2008-10-15 Sancho Lerena <slerena@artica.es>
* include/functions.php: Enterprise hook functions upgrade. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1157 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c6d2c1b61f
commit
f6957e14cc
|
@ -1,3 +1,8 @@
|
||||||
|
|
||||||
|
2008-10-15 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* include/functions.php: Enterprise hook functions upgrade.
|
||||||
|
|
||||||
2008-10-15 Ramon Novoa <rnovoa@artica.es>
|
2008-10-15 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_network.php: Removed SNMP
|
* godmode/agentes/module_manager_editor_network.php: Removed SNMP
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
require_once ('functions_html.php');
|
require_once ('functions_html.php');
|
||||||
|
|
||||||
|
define ('ENTERPRISE_NOT_HOOK', -1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints a help tip icon.
|
* Prints a help tip icon.
|
||||||
*
|
*
|
||||||
|
@ -1199,9 +1201,13 @@ function safe_sql_string ($string) {
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function enterprise_hook ($function_name) {
|
function enterprise_hook ($function_name, $parameters = false) {
|
||||||
if (function_exists ($function_name))
|
if (function_exists ($function_name)) {
|
||||||
call_user_func ($function_name);
|
if (!is_array ($parameters))
|
||||||
|
return call_user_func ($function_name);
|
||||||
|
return call_user_func_array ($function_name, $parameters);
|
||||||
|
}
|
||||||
|
return ENTERPRISE_NOT_HOOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
function enterprise_include ($filename) {
|
function enterprise_include ($filename) {
|
||||||
|
@ -1212,7 +1218,7 @@ function enterprise_include ($filename) {
|
||||||
include ($fullfilename);
|
include ($fullfilename);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return ENTERPRISE_NOT_HOOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue