/
registerxhgui.php
21 lines (19 loc) · 1.12 KB
/
registerxhgui.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>coreBOS Utility loader</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">@import url("themes/softed/style.css");br { display: block; margin: 2px; }</style>
</head><body class=small style="font-size: 12px; margin: 2px; padding: 2px; background-color:#f7fff3; ">
<table width="100%" border=0><tr><td><span style='color:red;float:right;margin-right:30px;'><h2>Proud member of the <a href='http://corebos.org'>coreBOS</a> family!</h2></span></td></tr></table>
<hr style="height: 1px">
<?php
// Turn on debugging level
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Module.php');
require_once('include/events/include.inc');
global $adb;
$em = new VTEventsManager($adb);
$em->registerHandler('corebos.header', 'build/coreBOSTests/loadcbxhgui.php', 'coreBOSxhguiLoader');
$em->registerHandler('corebos.audit.action', 'build/coreBOSTests/loadcbxhgui.php', 'coreBOSxhguiLoader');
echo "<h4>Event corebos.header::coreBOSxhguiLoader registered.</h4>";
echo '</body></html>';
?>