ja ich habe da ein Problem ich weiß nicht wo ich in der Admin Index es ersetzen soll, kann mir da jemand helfen... Danke für die Hilfe
Ach ja kleine Frage noch gibt es dafür noch ein deutsches Update
Gruß René
Code: Alles auswählen
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();