示例#1
0
文件: ajxf.php 项目: philum/cms
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;
}
示例#2
0
文件: admin.php 项目: philum/cms
function adm_updb()
{
    $_GET['admin'] = 'update';
    return adm_admin('update');
}
示例#3
0
文件: ajxf.php 项目: philum/cms
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);
}