Ich habe den Junior Admin Mod fast fertig eingebaut und habe nur ein Problem mit den Veränderungen an der Datei admin/index.php - Wenn ich die vorgegeben Verändernugen tätige, ladet er das AdminPanel nicht, sondern die Seite bleibt weiß.
Die Datei: admin/index.php
Und hier die Veränderungen, die getätigt werden müssen:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
$dir = @opendir(".");
$setmodules = 1;
while( $file = @readdir($dir) )
{
if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) )
{
include($file);
}
}
@closedir($dir);
unset($setmodules);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);
$module = jr_admin_get_module_list($jr_admin_userdata['user_jr_admin']);
#
#-----[ FIND ]------------------------------------------
#
ksort($module);
while( list($cat, $action_array) = each($module) )
{
$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);
$template->assign_block_vars("catrow", array(
"ADMIN_CATEGORY" => $cat)
);
ksort($action_array);
$row_count = 0;
while( list($action, $file) = each($action_array) )
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);
$template->assign_block_vars("catrow.modulerow", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"ADMIN_MODULE" => $action,
"U_ADMIN_MODULE" => append_sid($file))
);
$row_count++;
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
jr_admin_make_left_pane();
#
#-----[ FIND ]------------------------------------------
#
else
{
$template->assign_vars(array(
"L_NO_GUESTS_BROWSING" => $lang['No_users_browsing'])
);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
jr_admin_make_info_box();
Liebe Grüße
Mock