. */ include("./include/include.php"); include("./include/Help.php"); admin_header(); if( !in_array($_SESSION['sess_access'], array("view", "edit", "localorg", "chair", "admin")) ) { echoln("You are not authorized to see this page."); }else { // Read the files from ./admin/*.help.php and add them to $fields; $help = array(); $helpfields = array(); $dir = dirname($_SERVER["SCRIPT_FILENAME"])."/help/*.php"; if( is_dir(dirname($dir)) ) { foreach( glob($dir) as $file ) { if( is_file($file) ) { include("./help/".basename($file)); $name = basename($file, ".php"); $class = "Help".$name; $help[ $name ] = new $class(); $helpsort[ $name ] = $help[ $name ]->get_title(); } } asort($helpsort); $helpfields = array_keys($helpsort); }else { debug(dirname($dir)." does not exist, failed loading application form fields"); } echoln("

Help

"); echoln("

Index

"); echoln(""); echoln("Top"); for( $i=0; $iget_name()."\">

".$help[ $helpfields[$i] ]->get_title()."

"); $help[ $helpfields[$i] ]->get_help(); echoln("

Top"); } } admin_footer(); ?>