当前位置: 首页>>代码示例>>PHP>>正文


PHP loadblock函数代码示例

本文整理汇总了PHP中loadblock函数的典型用法代码示例。如果您正苦于以下问题:PHP loadblock函数的具体用法?PHP loadblock怎么用?PHP loadblock使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了loadblock函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: while

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
require '../includes/config.inc.php';
include "loggedin.inc.php";
if (isset($_POST['action']) && $_POST['action'] == "update") {
    if (is_dir($main_path . 'themes/' . $_POST['theme'])) {
        // Update database
        $query = "UPDATE " . $DBPrefix . "settings SET\r\n\t\t\t\ttheme = '" . $_POST['theme'] . "'";
        $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
        $system->SETTINGS['theme'] = $_POST['theme'];
        $ERR = $MSG['26_0005'];
    } else {
        $ERR = $ERR_068;
    }
}
if ($dir = @opendir(realpath($main_path . 'themes'))) {
    while (($atheme = readdir($dir)) !== false) {
        if ($atheme != '.' && $atheme != '..' && $atheme != 'CVS' && is_dir(realpath($main_path . 'themes') . '/' . $atheme)) {
            $THEMES[$atheme] = $atheme;
        }
    }
    @closedir($dir);
}
$selectsetting = $system->SETTINGS['theme'];
loadblock($MSG['26_0003'], $MSG['26_0004'], generateSelect('theme', $THEMES));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'gra', 'TYPENAME' => $MSG['25_0009'], 'PAGENAME' => $MSG['26_0002']));
$template->set_filenames(array('body' => 'adminpages.html'));
$template->display('body');
开发者ID:lavsurgut,项目名称:autoauc2,代码行数:31,代码来源:theme.php

示例2: define

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2013 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'fees';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t\ttaxuser = '" . $_POST['taxuser'] . "',\n\t\t\t\ttax = '" . $_POST['tax'] . "'";
    $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    $system->SETTINGS['taxuser'] = $_POST['taxuser'];
    $system->SETTINGS['tax'] = $_POST['tax'];
    $ERR = $MSG['1089'];
}
loadblock($MSG['1090'], $MSG['1091'], 'yesno', 'tax', $system->SETTINGS['tax'], array($MSG['030'], $MSG['029']));
loadblock($MSG['1092'], $MSG['1093'], 'yesno', 'taxuser', $system->SETTINGS['taxuser'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0012'], 'PAGENAME' => $MSG['1088']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:harshaDexterDex,项目名称:vbid,代码行数:31,代码来源:tax.php

示例3: define

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2016 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'users';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // clean submission and update database
    $system->writesetting("newsletter", intval($_POST['newsletter']), "int");
    $ERR = $MSG['30_0049'];
}
loadblock($MSG['603'], $MSG['604'], 'batch', 'newsletter', $system->SETTINGS['newsletter'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0010'], 'PAGENAME' => $MSG['25_0079']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:alenteria,项目名称:WeBid,代码行数:28,代码来源:activatenewsletter.php

示例4: define

define('InAdmin', 1);
$current_page = 'fees';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // update users
    if ($system->SETTINGS['fee_max_debt'] < $_POST['fee_max_debt']) {
        $query = "UPDATE " . $DBPrefix . "users SET suspended = 0 WHERE suspended = 7 AND balance > " . $_POST['fee_max_debt'];
        $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    }
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t  fees = '" . $_POST['fees'] . "',\n\t\t\t  fee_type = '" . $_POST['fee_type'] . "',\n\t\t\t  fee_max_debt = '" . $system->input_money($_POST['fee_max_debt']) . "',\n\t\t\t  fee_signup_bonus = '" . $system->input_money($_POST['fee_signup_bonus']) . "',\n\t\t\t  fee_disable_acc = '" . $_POST['fee_disable_acc'] . "'";
    $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    $system->SETTINGS['fees'] = $_POST['fees'];
    $system->SETTINGS['fee_type'] = $_POST['fee_type'];
    $system->SETTINGS['fee_max_debt'] = $_POST['fee_max_debt'];
    $system->SETTINGS['fee_signup_bonus'] = $_POST['fee_signup_bonus'];
    $system->SETTINGS['fee_disable_acc'] = $_POST['fee_disable_acc'];
    $ERR = $MSG['761'];
}
loadblock($MSG['395'], $MSG['397'], 'yesno', 'fees', $system->SETTINGS['fees'], array($MSG['759'], $MSG['760']));
loadblock($MSG['729'], $MSG['730'], 'batchstacked', 'fee_type', $system->SETTINGS['fee_type'], array($MSG['731'], $MSG['732']));
loadblock($MSG['733'], '', '', '', '', array(), true);
loadblock($MSG['734'], $MSG['735'], 'days', 'fee_max_debt', $system->SETTINGS['fee_max_debt']);
loadblock($MSG['736'], $MSG['737'], 'days', 'fee_signup_bonus', $system->SETTINGS['fee_signup_bonus']);
loadblock($MSG['738'], $MSG['739'], 'yesno', 'fee_disable_acc', $system->SETTINGS['fee_disable_acc'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0012'], 'PAGENAME' => $MSG['395'], 'B_TITLES' => true));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:ronando,项目名称:WeBid,代码行数:31,代码来源:enablefees.php

示例5: define

/***************************************************************************
 *   copyright				: (C) 2008 - 2014 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t  usersauth = '" . $_POST['usersauth'] . "',\n\t\t\t  activationtype = " . intval($_POST['usersconf']) . "";
    $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    $ERR = $MSG['895'];
    $system->SETTINGS['usersauth'] = $_POST['usersauth'];
    $system->SETTINGS['activationtype'] = $_POST['usersconf'];
}
loadblock($MSG['25_0151'], $MSG['25_0152'], 'yesnostacked', 'usersauth', $system->SETTINGS['usersauth'], array($MSG['2__0066'], $MSG['2__0067']));
loadblock($MSG['25_0151_a'], $MSG['25_0152_a'], 'select3num', 'usersconf', $system->SETTINGS['activationtype'], array($MSG['25_0152_b'], $MSG['25_0152_c'], $MSG['25_0152_d']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['894']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:30,代码来源:usersettings.php

示例6: array

            $_POST['accesses'] = 'n';
        }
        if (!isset($_POST['browsers'])) {
            $_POST['browsers'] = 'n';
        }
        if (!isset($_POST['domains'])) {
            $_POST['domains'] = 'n';
        }
        // Update database
        $query = "UPDATE " . $DBPrefix . "statssettings SET\n\t\t\t\tactivate = :activate,\n\t\t\t\taccesses = :accesses,\n\t\t\t\tbrowsers = :browsers";
        $params = array();
        $params[] = array(':activate', $_POST['activate'], 'str');
        $params[] = array(':accesses', $_POST['accesses'], 'str');
        $params[] = array(':browsers', $_POST['browsers'], 'str');
        $db->query($query, $params);
        $ERR = $MSG['5148'];
        $statssettings = $_POST;
    }
} else {
    $query = "SELECT * FROM " . $DBPrefix . "statssettings";
    $db->direct_query($query);
    $statssettings = $db->result();
}
loadblock('', $MSG['5144']);
loadblock($MSG['5149'], '', 'yesno', 'activate', $statssettings['activate'], array($MSG['030'], $MSG['029']));
loadblock('', $MSG['5150']);
loadblock('', '', 'checkbox', 'accesses', $statssettings['accesses'], array($MSG['5145']));
loadblock('', '', 'checkbox', 'browsers', $statssettings['browsers'], array($MSG['5146']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0023'], 'PAGENAME' => $MSG['5142']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:stats_settings.php

示例7: define

define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    if (($_POST['spam_sendtofriend'] == 2 || $_POST['spam_register'] == 2) && empty($_POST['recaptcha_public']) && empty($_POST['recaptcha_private'])) {
        $ERR = $MSG['751'];
    } else {
        $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t\t\trecaptcha_public = :recaptcha_public,\n\t\t\t\t\trecaptcha_private = :recaptcha_private,\n\t\t\t\t\tspam_sendtofriend = :spam_sendtofriend,\n\t\t\t\t\tspam_register = :spam_register";
        $params = array();
        $params[] = array(':recaptcha_public', $_POST['recaptcha_public'], 'str');
        $params[] = array(':recaptcha_private', $_POST['recaptcha_private'], 'str');
        $params[] = array(':spam_sendtofriend', $_POST['spam_sendtofriend'], 'int');
        $params[] = array(':spam_register', $_POST['spam_register'], 'int');
        $db->query($query, $params);
        $system->SETTINGS['recaptcha_public'] = $_POST['recaptcha_public'];
        $system->SETTINGS['recaptcha_private'] = $_POST['recaptcha_private'];
        $system->SETTINGS['spam_sendtofriend'] = $_POST['spam_sendtofriend'];
        $system->SETTINGS['spam_register'] = $_POST['spam_register'];
        $ERR = $MSG['750'];
    }
}
loadblock($MSG['746'], $MSG['748'], 'text', 'recaptcha_public', $system->SETTINGS['recaptcha_public']);
loadblock($MSG['747'], '', 'text', 'recaptcha_private', $system->SETTINGS['recaptcha_private']);
loadblock($MSG['743'], $MSG['745'], 'select3num', 'spam_register', $system->SETTINGS['spam_register'], array($MSG['740'], $MSG['741'], $MSG['742']));
loadblock($MSG['744'], '', 'select3num', 'spam_sendtofriend', $system->SETTINGS['spam_sendtofriend'], array($MSG['740'], $MSG['741'], $MSG['742']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['5142'], 'PAGENAME' => $MSG['749']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:keramist,项目名称:WeBid,代码行数:31,代码来源:spam.php

示例8: define

 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
include $main_path . 'language/' . $language . '/countries.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // clean submission
    $system->SETTINGS['defaultcountry'] = $system->cleanvars($_POST['country']);
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings SET defaultcountry = :defaultcountry";
    $params = array();
    $params[] = array(':defaultcountry', $system->SETTINGS['defaultcountry'], 'str');
    $db->query($query, $params);
    $ERR = $MSG['5323'];
}
$selectsetting = $system->SETTINGS['defaultcountry'];
loadblock($MSG['5322'], $MSG['5321'], generateSelect('country', $countries, false));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['5322']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:defaultcountry.php

示例9: define

 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update' && isset($_POST['defaultlanguage'])) {
    $query = "UPDATE " . $DBPrefix . "settings SET defaultlanguage = '" . $_POST['defaultlanguage'] . "'";
    $result = mysql_query($query);
    $system->check_mysql($result, $query, __LINE__, __FILE__);
    $system->SETTINGS['defaultlanguage'] = $_POST['defaultlanguage'];
}
$html = '';
if (is_array($LANGUAGES)) {
    reset($LANGUAGES);
    foreach ($LANGUAGES as $k => $v) {
        $html .= '<input type="radio" name="defaultlanguage" value="' . $k . '"' . ($system->SETTINGS['defaultlanguage'] == $k ? ' checked="checked"' : '') . '>
	<img src="../inc/flags/' . $k . '.gif" hspace="2">
	' . $v . ($system->SETTINGS['defaultlanguage'] == $k ? '&nbsp;' . $MSG['2__0005'] : '') . '<br>';
    }
}
loadblock($MSG['2__0004'], $MSG['2__0003'], $html);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['2__0002']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:ronando,项目名称:WeBid,代码行数:31,代码来源:multilingual.php

示例10: define

 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include INCLUDE_PATH . 'functions_admin.php';
include 'loggedin.inc.php';
include PACKAGE_PATH . 'ckeditor/ckeditor.php';
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // clean submission and update database
    $system->writesetting("errortext", $system->cleanvars($_POST['errortext'], true), "str");
    $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['413']));
}
$CKEditor = new CKEditor();
$CKEditor->basePath = $system->SETTINGS['siteurl'] . '/js/ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
loadblock($MSG['411'], $MSG['410'], $CKEditor->editor('errortext', $system->SETTINGS['errortext']));
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['5142'], 'PAGENAME' => $MSG['409']));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';
开发者ID:Nozlaf,项目名称:WeBid,代码行数:31,代码来源:errorhandling.php

示例11: unset

include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == "update") {
    if (isset($_FILES['logo']['tmp_name']) && !empty($_FILES['logo']['tmp_name'])) {
        // Handle logo upload
        $inf = GetImageSize($_FILES['logo']['tmp_name']);
        if ($inf[2] < 1 || $inf[2] > 3) {
            print $ERR_602;
            exit;
        }
        if (!empty($_FILES['logo']['tmp_name']) && $_FILES['logo']['tmp_name'] != "none") {
            if ($system->move_file($_FILES['logo']['tmp_name'], $main_path . 'uploaded/logo/' . $_FILES['logo']['name'])) {
                $LOGOUPLOADED = true;
            } else {
                $LOGOUPLOADED = false;
            }
        }
    }
    $v = $_FILES['logo']['name'];
    $params = array();
    $params[] = array(':logo', $v, 'str');
    $query = " UPDATE " . $DBPrefix . "settings SET logo = :logo ";
    $db->query($query, $params);
    $system->SETTINGS['logo'] = $_FILES['logo']['name'];
}
$logoURL = $system->SETTINGS['siteurl'] . 'uploaded/logo/' . $system->SETTINGS['logo'];
loadblock($MSG['531'], $MSG['556'], 'image', 'logo', $system->SETTINGS['logo']);
loadblock('', $MSG['602'], 'upload', 'logo', $system->SETTINGS['logo']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'IMAGEURL' => $logoURL));
$template->set_filenames(array('body' => 'logo_upload.tpl'));
$template->display('body');
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:logo_upload.php

示例12: array

        // Check if "username" already exists in the database
        $query = "SELECT id FROM " . $DBPrefix . "adminusers WHERE username = :username";
        $params = array();
        $params[] = array(':username', $system->cleanvars($_POST['username']), 'str');
        $db->query($query, $params);
        if ($db->numrows() > 0) {
            $ERR = sprintf($ERR_055, $_POST['username']);
        } else {
            include PACKAGE_PATH . 'PasswordHash.php';
            $phpass = new PasswordHash(8, false);
            $query = "INSERT INTO " . $DBPrefix . "adminusers (username, password, hash, status)\n\t\t\t\t\tVALUES (:username, :password, :hash, :status)";
            $params = array();
            $params[] = array(':username', $system->cleanvars($_POST['username']), 'str');
            $params[] = array(':password', $phpass->HashPassword($_POST['password']), 'str');
            $params[] = array(':hash', get_hash(), 'str');
            $params[] = array(':status', $_POST['status'], 'bool');
            $db->query($query, $params);
            header('location: adminusers.php');
            exit;
        }
    }
}
loadblock($MSG['username'], '', 'text', 'username', '');
loadblock($MSG['password'], '', 'password', 'password', '');
loadblock($MSG['564'], '', 'password', 'repeatpassword', '');
loadblock('', '', 'bool', 'status', '1', array($MSG['566'], $MSG['567']));
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0010'], 'PAGENAME' => $MSG['367']));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';
开发者ID:Nozlaf,项目名称:WeBid,代码行数:31,代码来源:newadminuser.php

示例13: mysql_query

            $_POST['accesses'] = 'n';
        }
        if (!isset($_POST['browsers'])) {
            $_POST['browsers'] = 'n';
        }
        if (!isset($_POST['domains'])) {
            $_POST['domains'] = 'n';
        }
        // Update database
        $query = "UPDATE " . $DBPrefix . "statssettings SET\r\n\t\t\t\t\tactivate = '" . $_POST['activate'] . "',\r\n\t\t\t\t\taccesses = '" . $_POST['accesses'] . "',\r\n\t\t\t\t\tbrowsers = '" . $_POST['browsers'] . "',\r\n\t\t\t\t\tdomains = '" . $_POST['domains'] . "'";
        $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
        $ERR = $MSG['5148'];
        $system->SETTINGS = $_POST;
    }
} else {
    $query = "SELECT * FROM " . $DBPrefix . "statssettings";
    $res = mysql_query($query);
    $system->check_mysql($res, $query, __LINE__, __FILE__);
    $system->SETTINGS = mysql_fetch_assoc($res);
}
loadblock('', $MSG['5144']);
loadblock($MSG['5149'], '', 'yesno', 'activate', $system->SETTINGS['activate'], $MSG['030'], $MSG['029']);
loadblock('', $MSG['5150']);
loadblock('', '', 'checkbox', 'accesses', $system->SETTINGS['accesses'], $MSG['5145']);
loadblock('', '', 'checkbox', 'browsers', $system->SETTINGS['browsers'], $MSG['5146']);
loadblock('', '', 'checkbox', 'domains', $system->SETTINGS['domains'], $MSG['5147']);
loadblock('', $MSG['5151']);
loadblock('', $MSG['5152'] . ' | ' . $MSG['5153'] . ' | ' . $MSG['5154']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'con', 'TYPENAME' => $MSG['25_0023'], 'PAGENAME' => $MSG['5142'], 'TITLEBARNAME' => $MSG['5141']));
$template->set_filenames(array('body' => 'adminpages.html'));
$template->display('body');
开发者ID:lavsurgut,项目名称:autoauc2,代码行数:31,代码来源:stats_settings.php

示例14: define

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2013 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t descriptiontag = '" . $system->cleanvars($_POST['descriptiontag']) . "',\n\t\t\t keywordstag = '" . $system->cleanvars($_POST['keywordstag']) . "'";
    $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    $ERR = $MSG['25_0185'];
    $system->SETTINGS['descriptiontag'] = $_POST['descriptiontag'];
    $system->SETTINGS['keywordstag'] = $_POST['keywordstag'];
}
loadblock($MSG['25_0180'], $MSG['25_0182'], 'textarea', 'descriptiontag', $system->SETTINGS['descriptiontag']);
loadblock($MSG['25_0181'], $MSG['25_0184'], 'textarea', 'keywordstag', $system->SETTINGS['keywordstag']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['25_0178']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:ronando,项目名称:WeBid,代码行数:31,代码来源:metatags.php

示例15: define

 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // clean submission
    $system->SETTINGS['contactseller'] = $system->cleanvars($_POST['contactseller']);
    $system->SETTINGS['users_email'] = ynbool($_POST['users_email']);
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings SET contactseller = :contactseller, users_email = :users_email";
    $params = array();
    $params[] = array(':contactseller', $system->SETTINGS['contactseller'], 'str');
    $params[] = array(':users_email', $system->SETTINGS['users_email'], 'str');
    $db->query($query, $params);
    $ERR = $MSG['25_0155'];
}
loadblock($MSG['25_0216'], $MSG['25_0217'], 'select3contact', 'contactseller', $system->SETTINGS['contactseller'], array($MSG['25_0218'], $MSG['25_0219'], $MSG['25_0220']));
loadblock($MSG['30_0085'], $MSG['30_0084'], 'yesno', 'users_email', $system->SETTINGS['users_email'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['25_0216']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:31,代码来源:contactseller.php


注:本文中的loadblock函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。