function admin_call($id, $va, $opt) { $_GET['admin'] = $id; if ($id == 'design' or $id == 'colors' or $id == 'restrictions' or $id == 'params' or $id == 'hubs' or $id == 'editor' or $id == 'update' or $id == 'msql' or $id == 'updb' or $id == 'console' or $id == 'finder' or $id == 'messages' or $id == 'plugin') { $ret = call_user_func('adm_' . ($id == 'design' ? 'css' : $id), $va, $opt); } elseif ($id == 'apps') { req('adminx'); $ret = adm_apps('', '', $va); } elseif ($id == 'css') { $ret = adm_admin($id, $va); } else { $ret = admin(); } return $ret; }
function adm_updb() { $_GET['admin'] = 'update'; return adm_admin('update'); }
function admin_call($id, $va, $opt) { $_GET['admin'] = $id; $sz = 550; if ($id == 'css' or $id == 'colors' or $id == 'console' or $id == 'htaccess' or $id == 'code' or $id == 'pictos' or $id == 'stats') { $sz = 680; } if ($id == 'editor') { $sz = 640; } elseif ($id == 'design' or $id == 'colors' or $id == 'restrictions' or $id == 'params' or $id == 'hubs' or $id == 'editor' or $id == 'update' or $id == 'msql' or $id == 'updb' or $id == 'console' or $id == 'finder' or $id == 'messages' or $id == 'plugin') { $reb = call_user_func('adm_' . ($id == 'design' ? 'css' : $id), $va, $opt); } elseif ($id == 'apps') { req('adminx'); $reb = adm_apps('', '', $va); } elseif ($id == 'css') { $reb = adm_admin($id, $va); } else { $reb = admin(); } return popup($id, $reb, $sz); }