$programs ) { foreach ( (array) $programs as $program => $title ) { if ( is_int( $program ) ) { continue; } // FJ fix bug URL Modules.php?modname=Student_Billing/Statements.php&_ROSARIO_PDF. if ( $modname == $program || ( mb_strpos( $program, $modname ) === 0 && mb_strpos( $_SERVER['QUERY_STRING'], $program ) === 8 ) ) { $allowed = true; // Eg: "Student_Billing/Statements.php&_ROSARIO_PDF". $_ROSARIO['ProgramLoaded'] = $program; break 2; } } } } if ( $allowed ) { // Force search_modfunc to list. if ( Preferences( 'SEARCH' ) !== 'Y' ) { $_REQUEST['search_modfunc'] = 'list'; } elseif ( ! isset( $_REQUEST['search_modfunc'] ) ) { $_REQUEST['search_modfunc'] = ''; } if ( substr( $modname, -4, 4 ) !== '.php' || strpos( $modname, '..' ) !== false /*|| ! is_file( 'modules/' . $modname )*/ ) { require_once 'ProgramFunctions/HackingLog.fnc.php'; HackingLog(); } else { require_once 'modules/' . $modname; } } // Not allowed, hacking attempt? elseif ( User( 'USERNAME' ) ) { require_once 'ProgramFunctions/HackingLog.fnc.php'; HackingLog(); } // Output Footer HTML. Warehouse( 'footer' );