本文整理汇总了PHP中ynbool函数的典型用法代码示例。如果您正苦于以下问题:PHP ynbool函数的具体用法?PHP ynbool怎么用?PHP ynbool使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ynbool函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 = 'contents';
include '../common.php';
include INCLUDE_PATH . 'functions_admin.php';
include 'loggedin.inc.php';
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission and update database
$system->writesetting("boards", ynbool($_POST['boards']), "str");
$template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['msg_board_settings_updated']));
}
loadblock($MSG['enable_message_boards'], $MSG['enable_message_boards_explain'], 'yesno', 'boards', $system->SETTINGS['boards'], array($MSG['yes'], $MSG['no']));
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['msg_board_settings']));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';
示例2: 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 = 'contents';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
include $main_path . 'ckeditor/ckeditor.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// Update database
$system->writesetting("cookiespolicy", ynbool($_POST['cookiespolicy']), "str");
$system->writesetting("cookiespolicytext", $system->cleanvars($_POST['cookiespolicytext']), "str");
$ERR = $MSG['1115'];
}
loadblock($MSG['1111'], $MSG['1112'], 'yesno', 'cookiespolicy', $system->SETTINGS['cookiespolicy'], array($MSG['030'], $MSG['029']));
$CKEditor = new CKEditor();
$CKEditor->basePath = $main_path . 'ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
loadblock($MSG['1113'], $MSG['5080'], $CKEditor->editor('cookiespolicytext', $system->uncleanvars($system->SETTINGS['cookiespolicytext'])));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['1114']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
示例3: 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 = 'contents';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
include $main_path . 'ckeditor/ckeditor.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission
$system->SETTINGS['terms'] = ynbool($_POST['terms']);
$system->SETTINGS['termstext'] = $system->cleanvars($_POST['termstext']);
// Update database
$query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\tterms = :terms,\n\t\t\ttermstext = :termstext";
$params = array();
$params[] = array(':terms', $system->SETTINGS['terms'], 'str');
$params[] = array(':termstext', $system->SETTINGS['termstext'], 'str');
$db->query($query, $params);
$ERR = $MSG['5084'];
}
loadblock($MSG['5082'], $MSG['5081'], 'yesno', 'terms', $system->SETTINGS['terms'], array($MSG['030'], $MSG['029']));
$CKEditor = new CKEditor();
$CKEditor->basePath = $main_path . 'ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
示例4: 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 = 'contents';
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("terms", ynbool($_POST['terms']), "str");
$system->writesetting("termstext", $system->cleanvars($_POST['termstext'], true), "str");
$template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5084']));
}
loadblock($MSG['5082'], $MSG['5081'], 'yesno', 'terms', $system->SETTINGS['terms'], array($MSG['yes'], $MSG['no']));
$CKEditor = new CKEditor();
$CKEditor->basePath = $system->SETTINGS['siteurl'] . '/js/ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
loadblock($MSG['5083'], $MSG['5080'], $CKEditor->editor('termstext', $system->SETTINGS['termstext']));
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'con', 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['5075']));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';
示例5: 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 = '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
$system->writesetting("buyerprivacy", ynbool($_POST['buyerprivacy']), "str");
$ERR = $MSG['247'];
}
loadblock($MSG['237'], $MSG['238'], 'yesno', 'buyerprivacy', $system->SETTINGS['buyerprivacy'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['236'], 'B_TITLES' => true));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
示例6: elseif
} elseif (!empty($_POST['maxpictures']) && !intval($_POST['maxpictures'])) {
$template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_max_num_pics_numeric']));
} else {
$system->writesetting("proxy_bidding", ynbool($_POST['proxy_bidding']), 'str');
$system->writesetting("edit_starttime", $_POST['edit_starttime'], 'int');
$system->writesetting("edit_endtime", $_POST['edit_endtime'], 'int');
$system->writesetting("cust_increment", $_POST['cust_increment'], 'int');
$system->writesetting("hours_countdown", $_POST['hours_countdown'], 'int');
$system->writesetting("ao_hpf_enabled", ynbool($_POST['ao_hpf_enabled']), 'str');
$system->writesetting("ao_hi_enabled", ynbool($_POST['ao_hi_enabled']), 'str');
$system->writesetting("ao_bi_enabled", ynbool($_POST['ao_bi_enabled']), 'str');
$system->writesetting("subtitle", ynbool($_POST['subtitle']), 'str');
$system->writesetting("extra_cat", ynbool($_POST['extra_cat']), 'str');
$system->writesetting("autorelist", ynbool($_POST['autorelist']), 'str');
$system->writesetting("autorelist_max", $_POST['autorelist_max'], 'int');
$system->writesetting("ae_status", ynbool($_POST['status']), 'str');
$system->writesetting("ae_timebefore", $_POST['timebefore'], 'int');
$system->writesetting("ae_extend", $_POST['extend'], 'int');
$system->writesetting("picturesgallery", $_POST['picturesgallery'], 'int');
$system->writesetting("maxpictures", $_POST['maxpictures'], 'int');
$system->writesetting("maxuploadsize", $_POST['maxpicturesize'] * 1024, 'int');
$system->writesetting("thumb_show", $_POST['thumb_show'], 'int');
$system->writesetting("gallery_max_width_height", $_POST['gallery_max_width_height'], 'int');
$template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['auction_settings_updated']));
}
}
loadblock($MSG['enable_proxy_bidding'], $MSG['enable_proxy_bidding_explain'], 'yesno', 'proxy_bidding', $system->SETTINGS['proxy_bidding'], array($MSG['yes'], $MSG['no']));
loadblock($MSG['enable_custom_start_date'], $MSG['enable_custom_start_date_explain'], 'batch', 'edit_starttime', $system->SETTINGS['edit_starttime'], array($MSG['yes'], $MSG['no']));
loadblock($MSG['enable_custom_end_date'], $MSG['enable_custom_end_date_explain'], 'batch', 'edit_endtime', $system->SETTINGS['edit_endtime'], array($MSG['yes'], $MSG['no']));
loadblock($MSG['enable_custom_increments'], $MSG['enable_custom_increments_explain'], 'batch', 'cust_increment', $system->SETTINGS['cust_increment'], array($MSG['yes'], $MSG['no']));
loadblock($MSG['hours_until_countdown'], $MSG['hours_until_countdown_explain'], 'days', 'hours_countdown', $system->SETTINGS['hours_countdown'], array($MSG['25_0037']));
示例7: define
* 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 = 'tools';
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 wordsfilter = :wordsfilter";
$params = array();
$params[] = array(':wordsfilter', ynbool($_POST['wordsfilter']), 'str');
$db->query($query, $params);
//purge the old wordlist
$query = "DELETE FROM " . $DBPrefix . "filterwords";
$db->direct_query($query);
//rebuild the wordlist
$TMP = explode("\n", $_POST['filtervalues']);
if (is_array($TMP)) {
foreach ($TMP as $k => $v) {
$v = trim($v);
if (!empty($v)) {
$query = "INSERT INTO " . $DBPrefix . "filterwords VALUES (:word)";
$params = array();
$params[] = array(':word', $v, 'str');
$db->query($query, $params);
}
示例8: 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 = 'contents';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
include $main_path . 'ckeditor/ckeditor.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission
$system->writesetting("privacypolicy", ynbool($_POST['privacypolicy']), "str");
$system->writesetting("privacypolicytext", $system->cleanvars($_POST['privacypolicytext']), "str");
$ERR = $MSG['406'];
}
loadblock($MSG['403'], $MSG['405'], 'yesno', 'privacypolicy', $system->SETTINGS['privacypolicy'], array($MSG['030'], $MSG['029']));
$CKEditor = new CKEditor();
$CKEditor->basePath = $main_path . 'ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
loadblock($MSG['404'], $MSG['5080'], $CKEditor->editor('privacypolicytext', $system->uncleanvars($system->SETTINGS['privacypolicytext'])));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['402']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
示例9: addauction
function addauction()
{
global $DBPrefix, $_SESSION, $user, $a_starts, $a_ends, $payment_text, $system, $fee, $db;
$query = "INSERT INTO " . $DBPrefix . "auctions (user,title,subtitle,starts,description,pict_url,category,secondcat,minimum_bid,shipping_cost,shipping_cost_additional,reserve_price,buy_now,auction_type,duration,increment,shipping,payment,international,ends,photo_uploaded,initial_quantity,quantity,relist,shipping_terms,bn_only,bold,highlighted,featured,current_fee,tax,taxinc) VALUES\n\t(:user_id, :title, :subtitle, :starts, :description, :pict_url, :catone, :cattwo, :min_bid, :shipping_cost, :shipping_cost_additional, :reserve_price, :buy_now, :auction_type, :duration, :increment, :shipping, :payment, :international, :ends, :photo_uploaded, :initial_quantity, :quantity, :relist, :shipping_terms, :bn_only, :bold, :highlighted, :featured, :fee, :tax, :taxinc)";
$params = array();
$params[] = array(':user_id', $user->user_data['id'], 'int');
$params[] = array(':title', $system->cleanvars($_SESSION['SELL_title']), 'str');
$params[] = array(':subtitle', $system->cleanvars($_SESSION['SELL_subtitle']), 'str');
$params[] = array(':starts', $a_starts, 'int');
$params[] = array(':description', $_SESSION['SELL_description'], 'str');
$params[] = array(':pict_url', $system->cleanvars($_SESSION['SELL_pict_url']), 'str');
$params[] = array(':catone', $_SESSION['SELL_sellcat1'], 'int');
$params[] = array(':cattwo', $_SESSION['SELL_sellcat2'], 'int');
$params[] = array(':min_bid', $system->input_money($_SESSION['SELL_buy_now_only'] == 'n' ? $_SESSION['SELL_minimum_bid'] : $_SESSION['SELL_buy_now_price']), 'float');
$params[] = array(':shipping_cost', $system->input_money($_SESSION['SELL_shipping_cost']), 'float');
$params[] = array(':shipping_cost_additional', $system->input_money($_SESSION['SELL_additional_shipping_cost']), 'float');
$params[] = array(':reserve_price', $system->input_money($_SESSION['SELL_with_reserve'] == 'yes' ? $_SESSION['SELL_reserve_price'] : 0), 'float');
$params[] = array(':buy_now', $system->input_money($_SESSION['SELL_with_buy_now'] == 'yes' ? $_SESSION['SELL_buy_now_price'] : 0), 'float');
$params[] = array(':auction_type', $_SESSION['SELL_atype'], 'int');
$params[] = array(':duration', $_SESSION['SELL_duration'], 'int');
$params[] = array(':increment', $system->input_money($_SESSION['SELL_customincrement']), 'float');
$params[] = array(':shipping', $_SESSION['SELL_shipping'], 'int');
$params[] = array(':payment', $payment_text, 'str');
$params[] = array(':international', $_SESSION['SELL_international'], 'bool');
$params[] = array(':ends', $a_ends, 'int');
$params[] = array(':photo_uploaded', $_SESSION['SELL_file_uploaded'], 'bool');
$params[] = array(':initial_quantity', $_SESSION['SELL_iquantity'], 'int');
$params[] = array(':quantity', $_SESSION['SELL_iquantity'], 'int');
$params[] = array(':relist', $_SESSION['SELL_relist'], 'int');
$params[] = array(':shipping_terms', $system->cleanvars($_SESSION['SELL_shipping_terms']), 'str');
$params[] = array(':bn_only', ynbool($_SESSION['SELL_buy_now_only']), 'str');
$params[] = array(':bold', ynbool($_SESSION['SELL_is_bold']), 'str');
$params[] = array(':highlighted', ynbool($_SESSION['SELL_is_highlighted']), 'str');
$params[] = array(':featured', ynbool($_SESSION['SELL_is_featured']), 'str');
$params[] = array(':fee', $fee, 'float');
$params[] = array(':tax', ynbool($_SESSION['SELL_is_taxed']), 'str');
$params[] = array(':taxinc', ynbool($_SESSION['SELL_tax_included']), 'str');
$db->query($query, $params);
}
示例10: unset
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission
if (isset($_POST['auctions']) && $_POST['auctions'] != 'y') {
$_POST['auctions'] = 'n';
}
if (isset($_POST['users']) && $_POST['users'] != 'y') {
$_POST['users'] = 'n';
}
if (isset($_POST['online']) && $_POST['online'] != 'y') {
$_POST['online'] = 'n';
}
$system->SETTINGS['counter_auctions'] = ynbool($_POST['auctions']);
$system->SETTINGS['counter_users'] = ynbool($_POST['users']);
$system->SETTINGS['counter_online'] = ynbool($_POST['online']);
// Update database
$query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t counter_auctions = :counter_auctions,\n\t\t\t counter_users = :counter_users,\n\t\t\t counter_online = :counter_online";
$params = array();
$params[] = array(':counter_auctions', $system->SETTINGS['counter_auctions'], 'str');
$params[] = array(':counter_users', $system->SETTINGS['counter_users'], 'str');
$params[] = array(':counter_online', $system->SETTINGS['counter_online'], 'str');
$db->query($query, $params);
$ERR = $MSG['2__0063'];
}
loadblock($MSG['2__0062'], $MSG['2__0058']);
loadblock($MSG['2__0060'], '', 'checkbox', 'auctions', $system->SETTINGS['counter_auctions']);
loadblock($MSG['2__0061'], '', 'checkbox', 'users', $system->SETTINGS['counter_users']);
loadblock($MSG['2__0059'], '', 'checkbox', 'online', $system->SETTINGS['counter_online']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['2__0057']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
示例11: define
/***************************************************************************
* copyright : (C) 2008 - 2015 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') {
// clean submission
$system->SETTINGS['buyerprivacy'] = ynbool($_POST['buyerprivacy']);
// Update database
$query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t buyerprivacy = :buyerprivacy";
$params = array();
$params[] = array(':buyerprivacy', $system->SETTINGS['buyerprivacy'], 'str');
$db->query($query, $params);
$ERR = $MSG['247'];
}
loadblock($MSG['237'], $MSG['238'], 'yesno', 'buyerprivacy', $system->SETTINGS['buyerprivacy'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['236'], 'B_TITLES' => true));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
示例12: 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 = 'contents';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission
$system->SETTINGS['boards'] = ynbool($_POST['boards']);
// Update database
$query = "UPDATE " . $DBPrefix . "settings set\n\t\t\tboards = :boards";
$params = array();
$params[] = array(':boards', $system->SETTINGS['boards'], 'str');
$db->query($query, $params);
$ERR = $MSG['5051'];
}
loadblock($MSG['5048'], '', 'yesno', 'boards', $system->SETTINGS['boards'], array($MSG['030'], $MSG['029']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['5047']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
示例13: array
} else {
// Update database
$query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t\t proxy_bidding = :proxy_bidding,\n\t\t\t\t edit_starttime = :edit_starttime,\n\t\t\t\t cust_increment = :cust_increment,\n\t\t\t\t hours_countdown = :hours_countdown,\n\t\t\t\t ao_hpf_enabled = :ao_hpf_enabled,\n\t\t\t\t ao_hi_enabled = :ao_hi_enabled,\n\t\t\t\t ao_bi_enabled = :ao_bi_enabled,\n\t\t\t\t subtitle = :subtitle,\n\t\t\t\t extra_cat = :extra_cat,\n\t\t\t\t autorelist = :autorelist,\n\t\t\t\t autorelist_max = :autorelist_max,\n\t\t\t\t ae_status = :ae_status,\n\t\t\t\t ae_timebefore = :ae_timebefore,\n\t\t\t\t ae_extend = :ae_extend,\n\t\t\t\t picturesgallery = :picturesgallery,\n\t\t\t\t maxpictures = :maxpictures,\n\t\t\t\t maxuploadsize = :maxuploadsize,\n\t\t\t\t thumb_show = :thumb_show";
$params = array();
$params[] = array(':proxy_bidding', ynbool($_POST['proxy_bidding']), 'str');
$params[] = array(':edit_starttime', $_POST['edit_starttime'], 'int');
$params[] = array(':cust_increment', $_POST['cust_increment'], 'int');
$params[] = array(':hours_countdown', $_POST['hours_countdown'], 'int');
$params[] = array(':ao_hpf_enabled', ynbool($_POST['ao_hpf_enabled']), 'str');
$params[] = array(':ao_hi_enabled', ynbool($_POST['ao_hi_enabled']), 'str');
$params[] = array(':ao_bi_enabled', ynbool($_POST['ao_bi_enabled']), 'str');
$params[] = array(':subtitle', ynbool($_POST['subtitle']), 'str');
$params[] = array(':extra_cat', ynbool($_POST['extra_cat']), 'str');
$params[] = array(':autorelist', ynbool($_POST['autorelist']), 'str');
$params[] = array(':autorelist_max', $_POST['autorelist_max'], 'int');
$params[] = array(':ae_status', ynbool($_POST['status']), 'str');
$params[] = array(':ae_timebefore', $_POST['timebefore'], 'int');
$params[] = array(':ae_extend', $_POST['extend'], 'int');
$params[] = array(':picturesgallery', $_POST['picturesgallery'], 'int');
$params[] = array(':maxpictures', $_POST['maxpictures'], 'int');
$params[] = array(':maxuploadsize', $_POST['maxpicturesize'] * 1024, 'int');
$params[] = array(':thumb_show', $_POST['thumb_show'], 'int');
$db->query($query, $params);
$ERR = $MSG['5088'];
}
$system->SETTINGS['edit_starttime'] = $_POST['edit_starttime'];
$system->SETTINGS['cust_increment'] = $_POST['cust_increment'];
$system->SETTINGS['hours_countdown'] = $_POST['hours_countdown'];
$system->SETTINGS['ao_hpf_enabled'] = $_POST['ao_hpf_enabled'];
$system->SETTINGS['ao_hi_enabled'] = $_POST['ao_hi_enabled'];
$system->SETTINGS['ao_bi_enabled'] = $_POST['ao_bi_enabled'];
示例14: 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');
示例15: 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 = 'settings';
include '../common.php';
include INCLUDE_PATH . 'functions_admin.php';
include 'loggedin.inc.php';
if (isset($_POST['action']) && $_POST['action'] == 'update') {
// clean submission and update database
$system->writesetting("contactseller", $system->cleanvars($_POST['contactseller']), "str");
$system->writesetting("users_email", ynbool($_POST['users_email']), 'str');
$template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $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['yes'], $MSG['no']));
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['25_0216']));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';