コード例 #1
0
ファイル: profile.php プロジェクト: mistgrass/geeklog-ivywe
        $display .= $retval['display'];
        break;
    case 'delete':
        // 削除
        $retval = fncdelete();
        $information['pagetitle'] = $retval['title'];
        $display .= $retval['display'];
        break;
    case 'edit':
        // 編集
        if (!empty($id)) {
            $information['pagetitle'] = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['edit'];
            $display .= fncEdit($id, $edt_flg, $msg, "", $mode);
        }
        break;
    case 'import':
        // インポート
        $information['pagetitle'] = $LANG_USERBOX_ADMIN['piname'] . $LANG_USERBOX_ADMIN['import'];
        $display .= fncimport();
        break;
    default:
        // 初期表示、一覧表示
        $information['pagetitle'] = $LANG_USERBOX_ADMIN['piname'];
        if (isset($msg)) {
            $display .= COM_showMessage($msg, $pi_name);
        }
        $display .= fncList();
}
$display = COM_startBlock($LANG_USERBOX_ADMIN['piname'], '', COM_getBlockTemplate('_admin_block', 'header')) . ppNavbarjp($navbarMenu, $LANG_USERBOX_admin_menu[$menuno]) . fncMenu($pi_name) . $display . COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
$display = DATABOX_displaypage($pi_name, '_admin', $display, $information);
COM_output($display);
コード例 #2
0
if (isset($_REQUEST['msg'])) {
    $display .= COM_showMessage(COM_applyFilter($_REQUEST['msg'], true), $pi_name);
}
switch ($action) {
    case $LANG_USERBOX_ADMIN['config_init']:
        $dummy = LIB_Deleteconfig($pi_name, $config);
        $dummy = LIB_Initializeconfig($pi_name);
        echo COM_refresh($_CONF['site_admin_url'] . '/plugins/userbox/backuprestore.php');
        exit;
        break;
    case $LANG_USERBOX_ADMIN['config_backup']:
        $display .= LIB_Backupconfig($pi_name);
        break;
    case $LANG_USERBOX_ADMIN['config_restore']:
        $display .= LIB_Restoreconfig($pi_name, $config);
        break;
    case $LANG_USERBOX_ADMIN['config_update']:
        $dummy = LIB_Backupconfig($pi_name, "update");
        $dummy = LIB_Deleteconfig($pi_name, $config);
        $dummy = LIB_Initializeconfig($pi_name);
        $dummy = LIB_Restoreconfig($pi_name, $config, "update");
        echo COM_refresh($_CONF['site_admin_url'] . '/plugins/userbox/backuprestore.php');
        exit;
        break;
    default:
}
$display .= fncMenu($pi_name);
$display .= fncDisply($pi_name);
$display = COM_startBlock($LANG_USERBOX_ADMIN['piname'], '', COM_getBlockTemplate('_admin_block', 'header')) . $display . COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
$display = DATABOX_displaypage($pi_name, '_admin', $display, $information);
COM_output($display);
コード例 #3
0
ファイル: vars.php プロジェクト: mistgrass/geeklog-ivywe
}
if ($mode == "") {
} else {
    if (!SEC_checkToken()) {
        //    if (SEC_checkToken()){//テスト用
        COM_accessLog("User {$_USER['username']} tried to illegally and failed CSRF checks.");
        echo COM_refresh($_CONF['site_admin_url'] . '/index.php');
        exit;
    }
}
//次回回答済日時更新
if ($mode == "datetime") {
    fncdatetime();
}
//
$menuno = 3;
$display = '';
$display .= ppNavbarjp($navbarMenu, $LANG_ASSIST_admin_menu[$menuno]);
$information = array();
$information['what'] = 'menu';
$information['rightblock'] = false;
$information['pagetitle'] = $LANG_ASSIST_ADMIN['piname'];
$display .= fncMenu();
//FOR GL2.0.0
if (COM_versionCompare(VERSION, "2.0.0", '>=')) {
    $display = COM_createHTMLDocument($display, $information);
} else {
    $display = COM_siteHeader($information['what'], $information['pagetitle']) . $display;
    $display .= COM_siteFooter($information['rightblock']);
}
COM_output($display);