converting to the new hooks system

This commit is contained in:
seek3r 2000-12-15 21:56:09 +00:00
parent b29f5b637e
commit c115717da0
5 changed files with 4 additions and 14 deletions

View File

@ -1,5 +1,6 @@
<?php <?php
{ {
echo "<p>\n";
$img = "/" . $appname . "/images/" . $appname .".gif"; $img = "/" . $appname . "/images/" . $appname .".gif";
if (file_exists($phpgw_info["server"]["server_root"].$img)) { if (file_exists($phpgw_info["server"]["server_root"].$img)) {
$img = $phpgw_info["server"]["webserver_url"].$img; $img = $phpgw_info["server"]["webserver_url"].$img;
@ -15,7 +16,7 @@
// Actual content // Actual content
echo "<br><a href=\"" . $phpgw->link("changepassword.php") . "\">" echo "<a href=\"" . $phpgw->link("changepassword.php") . "\">"
. lang("change your password") . "</a>"; . lang("change your password") . "</a>";
echo "<br><a href=\"" . $phpgw->link("changetheme.php") . "\">" echo "<br><a href=\"" . $phpgw->link("changetheme.php") . "\">"
. lang("select different theme") . "</a>"; . lang("select different theme") . "</a>";

View File

@ -37,18 +37,7 @@
echo "</TD></TR></TABLE>\n\n"; echo "</TD></TR></TABLE>\n\n";
} }
// The account stuff that should be at the top of the list $phpgw->common->hook();
$appname = "preferences";
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/preferences.inc.php";
if (file_exists($f)) {
include($f);
}
while (list(,$appname) = each($phpgw_info["user"]["app_perms"])) {
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/preferences.inc.php";
if (file_exists($f)) {
echo "<p>\n";
include($f);
}
}
$phpgw->common->phpgw_footer(); $phpgw->common->phpgw_footer();
?> ?>