testing out new hooks option

This commit is contained in:
seek3r 2000-12-20 07:51:53 +00:00
parent 798ac55a33
commit b5e78d4ce4

View File

@ -626,7 +626,6 @@
global $phpgw, $phpgw_info; global $phpgw, $phpgw_info;
if ($order == ""){$order[] = $phpgw_info["flags"]["currentapp"];} if ($order == ""){$order[] = $phpgw_info["flags"]["currentapp"];}
// if ($order == ""){$order = Array();}
/* First include the apps own hook file */ /* First include the apps own hook file */
reset ($order); reset ($order);
while (list ($key, $appname) = each ($order)){ while (list ($key, $appname) = each ($order)){
@ -637,12 +636,6 @@
} }
$processed = 'if ($appname != "" '.$processed.'){'; $processed = 'if ($appname != "" '.$processed.'){';
echo "processed: ".$processed."<br>\n"; echo "processed: ".$processed."<br>\n";
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/hook_".$phpgw_info["flags"]["currentapp"];
if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php";}
if (file_exists($f)) {include($f);}
/* Then add the rest */ /* Then add the rest */
reset ($phpgw_info["user"]["app_perms"]); reset ($phpgw_info["user"]["app_perms"]);
while (list (, $appname) = each ($phpgw_info["user"]["app_perms"])){ while (list (, $appname) = each ($phpgw_info["user"]["app_perms"])){