コード例 #1
0
    $array_fields = array('FIELD' => 'FIELD', $l->g(224) => 'VALUE');
    $array_values = array($protectedGet["value"], $protectedPost["newfield"]);
    $field_search = "field";
}
$fields = implode(',', $array_fields);
if ($protectedPost['onglet'] == 1) {
    $tab_options['CACHE'] = 'RESET';
    if (isset($protectedPost['del_check']) and $protectedPost['del_check'] != '') {
        $post_delete = $protectedPost['del_check'];
    }
    if (isset($protectedPost['SUP_PROF']) and $protectedPost['SUP_PROF'] != '') {
        $post_delete = $protectedPost['SUP_PROF'];
    }
    if (isset($post_delete)) {
        if ($table == "downloadwk_tab_values") {
            delete_tab($post_delete);
        }
        if ($table == "downloadwk_fields") {
            delete_field($post_delete);
        }
        if ($table == "downloadwk_conf_values") {
            delete_conf($post_delete);
        }
    }
    $queryDetails = "select ID," . $fields . " from " . $table . " where " . $field_search . "='%s' \n\t\t\t\t\tand (default_field is null or default_field=0) ";
    $argDetail = $protectedGet['value'];
    $resTypes = mysql2_query_secure($queryDetails, $_SESSION['OCS']["readServer"], $argDetail);
    $valTypes = mysql_fetch_array($resTypes);
    if (is_array($valTypes)) {
        $tab_options['ARG_SQL'] = $protectedGet['value'];
        if (!isset($protectedPost['SHOW'])) {
コード例 #2
0
ファイル: admin.tabs.php プロジェクト: brucewu16899/1.6.x
}
$GLOBALS["CURRENT_PAGE"] = CurrentPageName();
if (isset($_GET["HTTP_FILTER_STATS_LIST"])) {
    HTTP_FILTER_STATS_LIST();
    exit;
}
if (isset($_GET["tab"])) {
    switch_tabs();
    exit;
}
if (isset($_GET["Newtab"])) {
    add_tab();
    exit;
}
if (isset($_GET["delete-tab"])) {
    delete_tab();
    exit;
}
if (isset($_GET["DeleteTabConfirmed"])) {
    delete_tab_confirmed();
    exit;
}
if (isset($_GET["rebuild-icons"])) {
    rebuildicons();
    exit;
}
if (isset($_GET["add-icon"])) {
    main_icon_js();
    exit;
}
if (isset($_GET["show-icons"])) {
コード例 #3
0
                $response = change_visibility($data);
                break;
            case 'set_default_tab':
                $response = set_default_tab($data);
                break;
            case 'delete_widget':
                $response = delete_widget($data);
                break;
            case 'clone_tab':
                $response = clone_tab($data);
                break;
            case 'add_tab':
                $response = add_tab($data);
                break;
            case 'delete_tab':
                $response = delete_tab($data);
                break;
            case 'delete_wizard_session':
                $response = delete_wizard_session();
                break;
            case 'build_crumb':
                $response = build_crumb($data);
                break;
            default:
                $response['error'] = TRUE;
                $response['msg'] = _('Wrong Option Chosen');
        }
    }
}
echo json_encode($response);
$db->close();
コード例 #4
0
ファイル: admin.tabs.php プロジェクト: rsd/artica-1.5
include_once('ressources/class.templates.inc');
include_once('ressources/class.ini.inc');
include_once('ressources/class.syslogs.inc');

if(isset($_GET["verbose"])){
	$GLOBALS["DEBUG_TEMPLATE"]=true;
	$GLOBALS["VERBOSE"]=true;
	ini_set('display_errors', 1);
	ini_set('error_reporting', E_ALL);	
}
$GLOBALS["CURRENT_PAGE"]=CurrentPageName();


if(isset($_GET["tab"])){switch_tabs();exit;}
if(isset($_GET["Newtab"])){add_tab();exit;}
if(isset($_GET["delete-tab"])){delete_tab();exit;}
if(isset($_GET["DeleteTabConfirmed"])){delete_tab_confirmed();exit;}
if(isset($_GET["rebuild-icons"])){rebuildicons();exit;}
if(isset($_GET["add-icon"])){main_icon_js();exit;}
if(isset($_GET["show-icons"])){main_icon_list();exit;}
if(isset($_GET["new_icon"])){add_icon();exit;}
if(isset($_GET["delete_icon"])){del_icon();exit;}
if(isset($_GET["ChangeClass"])){echo main_icon_list_list();exit;}
if(isset($_GET["manage-icon"])){echo manage_icons_js();exit;}
if(isset($_GET["show-manage"])){echo manage_icon_page();exit;}
if(isset($_GET["move-widget"])){echo manage_icon_move();exit;}
if(isset($_GET["widget-manage-list"])){echo manage_icons_list($_GET["widget-manage-list"]);exit;}
if(isset($_GET["main"])){switch_main();exit;}
if(isset($_GET["left-menus"])){left_menus();exit;}

コード例 #5
0
ファイル: ad_main.php プロジェクト: user0101010/MSFC
 * @link        http://wot-news.com
 * @package     Clan Stat
 * @version     $Rev: 2.2.0 $
 *
 */
if (isset($_POST['cron_recreat'])) {
    cron_file_recreat();
}
if (isset($_POST['ajaxcre'])) {
    if (creat_ajax_tab($_POST) == TRUE) {
        $message['text'] = $_POST['file'] . ' ' . $lang['admin_ajax_new_error'];
        $message['color'] = 'red';
    }
}
if (isset($_GET['del'])) {
    delete_tab($_GET);
    header('Location: index.php?page=main' . $multi_get . '#tabs-2');
    exit;
}
if (isset($_GET['removeclan'])) {
    delete_multi($_GET);
    header('Location: index.php?page=main' . $multi_get . '#tabs-8');
    exit;
}
if (isset($_POST['consub']) || isset($_POST['consub_2'])) {
    insert_config($_POST);
    header('Location: index.php?page=main' . $multi_get . '#tabs-1');
    exit;
}
if (isset($_POST['mcsort'])) {
    edit_multi_clan($_POST);