* * Modified by Stephen Brown * * to distribute admin across the application directories * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ $phpgw_info = array(); $phpgw_info["flags"]["currentapp"] = "admin"; include("../header.inc.php"); check_code($cd); // This func called by the includes to dump a row header function section_start($name="",$icon="") { global $phpgw,$phpgw_info; echo "\n"; echo ""; if ($icon != "") { echo ""; echo ""; } else { echo ""; } echo "\n"; echo "
[Icon]".lang($name)."$name
\n"; } function section_end() { echo "
\n\n"; } // We only want to list applications that are enabled, plus the common stuff // (if they can get to the admin page, the admin app is enabled, hence it is shown) $phpgw->db->query("select app_name from applications where app_enabled = 1 order by app_title"); // Stuff it in an array in the off chance the admin includes need the db while ($phpgw->db->next_record() ) { $apps[] = $phpgw->db->f("app_name"); } for( $i =0; $i < sizeof($apps); $i++) { $appname = $apps[$i]; $f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/hook_admin.inc.php"; if (file_exists($f)) { include($f); echo "

\n"; } } if ( $SHOW_INFO > 0 ) { echo "

link("", "SHOW_INFO=0")."\">Hide PHP Information"; echo "


\n"; phpinfo(); echo "
\n"; } else { echo "

link("", "SHOW_INFO=1")."\">PHP Information"; } $phpgw->common->phpgw_footer(); ?>