$act = getModeAction(getModule(), $wht);
// Define admin login name and ID number
- define('__ADMIN_LOGIN', getSession('admin_login'));
- define('__ADMIN_ID' , getCurrentAdminId());
+ $content['login'] = getSession('admin_login');
+ $content['id'] = getCurrentAdminId();
// Preload templates
if (EXT_IS_ACTIVE('admins')) {
- define('__ADMIN_WELCOME', LOAD_TEMPLATE('admin_welcome_admins', true));
+ $content['welcome'] = LOAD_TEMPLATE('admin_welcome_admins', true, $content);
} else {
- define('__ADMIN_WELCOME', LOAD_TEMPLATE('admin_welcome', true));
+ $content['welcome'] = LOAD_TEMPLATE('admin_welcome', true, $content);
}
- define('__ADMIN_FOOTER' , LOAD_TEMPLATE('admin_footer' , true));
- define('__ADMIN_MENU' , ADD_ADMIN_MENU($act, $wht, true));
+ $content['footer'] = LOAD_TEMPLATE('admin_footer' , true, $content);
+ $content['menu'] = ADD_ADMIN_MENU($act, $wht, true, $content);
// Tableset header
- LOAD_TEMPLATE('admin_main_header');
+ LOAD_TEMPLATE('admin_main_header', false, $content);
// Check if action/what pair is valid
$result_action = SQL_QUERY_ESC("SELECT `id` FROM `{!_MYSQL_PREFIX!}_admin_menu`
SQL_FREERESULT($result_action);
// Tableset footer
- LOAD_TEMPLATE('admin_main_footer');
+ LOAD_TEMPLATE('admin_main_footer', false, $content);
}
//
if (($menu == $act) && (empty($wht))) {
$OUT .= "<strong>";
} else {
- $OUT .= "[<a href=\"{!URL!}/modules.php?module=admin&action=".$menu."\">";
+ $OUT .= "[<a href=\"{?URL?}/modules.php?module=admin&action=".$menu."\">";
}
$OUT .= $title;
if ($wht == $wht_sub) {
$OUT .= "<strong>";
} else {
- $OUT .= "[<a href=\"{!URL!}/modules.php?module=admin&what=".$wht_sub."\">";
+ $OUT .= "[<a href=\"{?URL?}/modules.php?module=admin&what=".$wht_sub."\">";
}
} else {
$OUT .= "<em class=\"admin_note\">";
// Is this a PHP script?
if ((!isDirectory($file)) && (strpos($file, "".$type.'-') > -1) && (strpos($file, '.php') > 0)) {
// Then test if the file is readable
- $test = sprintf("%sinc/modules/%s/%s", constant('PATH'), $menu, $file);
+ $test = sprintf("inc/modules/%s/%s", $menu, $file);
// Is the file there?
- if (isFileReadable($test)) {
+ if (isIncludeReadable($test)) {
// Extract the value for what=xxx
$part = substr($file, (strlen($type) + 1));
$part = substr($part, 0, -4);
// Return link
//* DEBUG: */ OUTPUT_HTML("a:".$title."<br />");
- return "<a href=\"{!URL!}/modules.php?module=admin&what=".$wht."&uid=".$uid."\" title=\"{--ADMIN_USER_PROFILE_TITLE--}\">".$title."</a>";
+ return "<a href=\"{?URL?}/modules.php?module=admin&what=".$wht."&uid=".$uid."\" title=\"{--ADMIN_USER_PROFILE_TITLE--}\">".$title."</a>";
}
// Check "logical-area-mode"
// Is the userid set correctly?
if ($uid > 0) {
// Create a link to that profile
- return '{!URL!}/modules.php?module=admin&what=list_user&uid='.bigintval($uid);
+ return '{?URL?}/modules.php?module=admin&what=list_user&uid='.bigintval($uid);
} // END - if
// Return a link to the user list
- return '{!URL!}/modules.php?module=admin&what=list_user';
+ return '{?URL?}/modules.php?module=admin&what=list_user';
}
//