* 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');
<?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 = '******'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');
<?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');
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');
/*************************************************************************** * 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');
$_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');
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');
* 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');
* 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 ? ' ' . $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');
* 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';
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');
// 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';
$_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');
<?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');
***************************************************************************/ /*************************************************************************** * 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');
<?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');
* 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['counter_auctions'] = isset($_POST['auctions']) ? 'y' : 'n'; $system->SETTINGS['counter_users'] = isset($_POST['users']) ? 'y' : 'n'; $system->SETTINGS['counter_online'] = isset($_POST['online']) ? 'y' : 'n'; // Update database $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t\tcounter_auctions = :counter_auctions,\n\t\t\t\tcounter_users = :counter_users,\n\t\t\t\tcounter_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')); $template->display('body');
<?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 catsorting = '" . $_POST['catsorting'] . "',\n\t\t\t catstoshow = '" . intval($_POST['catstoshow']) . "'"; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); $system->SETTINGS['catsorting'] = $_POST['catsorting']; $system->SETTINGS['catstoshow'] = $_POST['catstoshow']; $ERR = $MSG['25_0150']; } loadblock('', $MSG['25_0147'], 'sortstacked', 'catsorting', $system->SETTINGS['catsorting'], array($MSG['25_0148'], $MSG['25_0149'])); loadblock($MSG['30_0030'], $MSG['30_0029'], 'percent', 'catstoshow', $system->SETTINGS['catstoshow']); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['25_0146'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
$ERR = $ERR_025; } else { // Update database $query = "UPDATE " . $DBPrefix . "maintainance SET\n\t\t\t\tsuperuser = '******',\n\t\t\t\tmaintainancetext = '" . htmLawed($_POST['maintainancetext'], array('safe' => 1)) . "',\n\t\t\t\tactive = '" . $_POST['active'] . "'"; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); $ERR = $MSG['_0005']; } $system->SETTINGS['superuser'] = $_POST['superuser']; $system->SETTINGS['maintainancetext'] = $_POST['maintainancetext']; $system->SETTINGS['active'] = $_POST['active']; } else { $query = "SELECT * FROM " . $DBPrefix . "maintainance LIMIT 1"; $res = mysql_query($query); $system->check_mysql($res, $query, __LINE__, __FILE__); $data = mysql_fetch_assoc($res); $system->SETTINGS['superuser'] = $data['superuser']; $system->SETTINGS['maintainancetext'] = $data['maintainancetext']; $system->SETTINGS['active'] = $data['active']; } loadblock('', $MSG['_0002']); loadblock($MSG['_0006'], '', 'yesno', 'active', $system->SETTINGS['active'], array($MSG['030'], $MSG['029'])); loadblock($MSG['003'], '', 'text', 'superuser', $system->SETTINGS['superuser'], 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['_0004'], '', $CKEditor->editor('maintainancetext', stripslashes($system->SETTINGS['maintainancetext']))); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['5436'], 'PAGENAME' => $MSG['_0001'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
***************************************************************************/ /*************************************************************************** * 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');
* 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 timecorrection = " . intval($_POST['timecorrection']) . ",\n\t\t\t datesformat = '" . $_POST['datesformat'] . "'"; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); $system->SETTINGS['timecorrection'] = $_POST['timecorrection']; $system->SETTINGS['datesformat'] = $_POST['datesformat']; $ERR = $MSG['347']; } $TIMECORRECTION = array(); for ($i = 12; $i > -13; $i--) { $TIMECORRECTION[$i] = $MSG['TZ_' . $i]; } $selectsetting = $system->SETTINGS['timecorrection']; $html = generateSelect('timecorrection', $TIMECORRECTION); //load the template loadblock($MSG['363'], $MSG['379'], 'datestacked', 'datesformat', $system->SETTINGS['datesformat'], array($MSG['382'], $MSG['383'])); loadblock($MSG['346'], $MSG['345'], 'dropdown', 'timecorrection', $system->SETTINGS['timecorrection']); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'OPTIONHTML' => $html, 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['344'], 'DROPDOWN' => $html)); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
* 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; loadblock($MSG['5083'], $MSG['5080'], $CKEditor->editor('termstext', $system->uncleanvars($system->SETTINGS['termstext']))); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'con', 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['5075'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
/*************************************************************************** * 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 = 'banners'; 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['banners'] = intval($_POST['banners']); // Update database $query = "UPDATE " . $DBPrefix . "settings SET banners = :banners"; $params = array(); $params[] = array(':banners', $system->SETTINGS['banners'], 'int'); $db->query($query, $params); $ERR = $MSG['600']; } loadblock($MSG['597'], '', 'batch', 'banners', $system->SETTINGS['banners'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'TYPENAME' => $MSG['25_0011'], 'PAGENAME' => $MSG['5205'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
<?php /*************************************************************************** * copyright : (C) 2008 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. ***************************************************************************/ require '../includes/config.inc.php'; include "loggedin.inc.php"; unset($ERR); if (isset($_POST['action']) && $_POST['action'] == "update") { $query = "update " . $DBPrefix . "settings set banners = '" . $system->cleanvars($_POST['banners']) . "'"; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); $ERR = $MSG['600']; $system->SETTINGS['banners'] = $_POST['banners']; } loadblock($MSG['597'], $MSG['_0009'], 'batch', 'banners', $system->SETTINGS['banners'], $MSG['030'], $MSG['029']); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'ban', 'TYPENAME' => $MSG['25_0011'], 'PAGENAME' => $MSG['5205'])); $template->set_filenames(array('body' => 'adminpages.html')); $template->display('body');
* 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['aboutus'] = ynbool($_POST['aboutus']); $system->SETTINGS['aboutustext'] = $system->cleanvars($_POST['aboutustext']); // Update database $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\t aboutus = :aboutus,\n\t\t\t aboutustext = :aboutustext"; $params = array(); $params[] = array(':aboutus', $system->SETTINGS['aboutus'], 'str'); $params[] = array(':aboutustext', $system->SETTINGS['aboutustext'], 'str'); $db->query($query, $params); $ERR = $MSG['5079']; } loadblock($MSG['5077'], $MSG['5076'], 'yesno', 'aboutus', $system->SETTINGS['aboutus'], 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['5078'], $MSG['5080'], $CKEditor->editor('aboutustext', $system->uncleanvars($system->SETTINGS['aboutustext']))); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0018'], 'PAGENAME' => $MSG['5074'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
$system->SETTINGS['perpage'] = intval($_POST['perpage']); $system->SETTINGS['thumb_list'] = intval($_POST['thumb_list']); $system->SETTINGS['loginbox'] = intval($_POST['loginbox']); $system->SETTINGS['newsbox'] = intval($_POST['newsbox']); $system->SETTINGS['newstoshow'] = intval($_POST['newstoshow']); $system->SETTINGS['lastitemsnumber'] = intval($_POST['lastitemsnumber']); $system->SETTINGS['hotitemsnumber'] = intval($_POST['hotitemsnumber']); $system->SETTINGS['endingsoonnumber'] = intval($_POST['endingsoonnumber']); // Update database $system->writesetting("perpage", $system->SETTINGS['perpage'], 'int'); $system->writesetting("thumb_list", $system->SETTINGS['thumb_list'], 'int'); $system->writesetting("lastitemsnumber", $system->SETTINGS['lastitemsnumber'], 'int'); $system->writesetting("hotitemsnumber", $system->SETTINGS['hotitemsnumber'], 'int'); $system->writesetting("endingsoonnumber", $system->SETTINGS['endingsoonnumber'], 'int'); $system->writesetting("loginbox", $system->SETTINGS['loginbox'], 'int'); $system->writesetting("newsbox", $system->SETTINGS['newsbox'], 'int'); $system->writesetting("newstoshow", $system->SETTINGS['newstoshow'], 'int'); $ERR = $MSG['795']; } loadblock($MSG['789'], $MSG['790'], 'days', 'perpage', $system->SETTINGS['perpage']); loadblock($MSG['25_0107'], $MSG['808'], 'decimals', 'thumb_list', $system->SETTINGS['thumb_list'], array($MSG['2__0045'])); loadblock($MSG['807'], '', '', '', '', array(), true); loadblock($MSG['5013'], $MSG['5014'], 'days', 'lastitemsnumber', $system->SETTINGS['lastitemsnumber']); loadblock($MSG['5015'], $MSG['5016'], 'days', 'hotitemsnumber', $system->SETTINGS['hotitemsnumber']); loadblock($MSG['5017'], $MSG['5018'], 'days', 'endingsoonnumber', $system->SETTINGS['endingsoonnumber']); loadblock($MSG['532'], $MSG['537'], 'batch', 'loginbox', $system->SETTINGS['loginbox'], array($MSG['030'], $MSG['029'])); loadblock($MSG['533'], $MSG['538'], 'batch', 'newsbox', $system->SETTINGS['newsbox'], array($MSG['030'], $MSG['029'])); loadblock('', $MSG['554'], 'days', 'newstoshow', $system->SETTINGS['newstoshow']); $template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['5142'], 'PAGENAME' => $MSG['788'])); $template->set_filenames(array('body' => 'adminpages.tpl')); $template->display('body');
} $INFO = $MSG['email_settings_updated']; } } $selectsetting = isset($system->SETTINGS['mail_protocol']) ? $system->SETTINGS['mail_protocol'] : '0'; loadblock($MSG['1119'], '', generateSelect('mail_protocol', $mail_protocol)); loadblock($MSG['1120'], '<span class="non_smtp para">' . $MSG['1121'], 'text', 'mail_parameter', $system->SETTINGS['mail_parameter']); loadblock($MSG['1133'] . '<span class="smtp"></span>' . $MSG['1141'], '', '', '', '', array(), true); loadblock($MSG['1128'], '<span class="smtp"></span>', 'yesno', 'smtp_authentication', $system->SETTINGS['smtp_authentication'], array($MSG['yes'], $MSG['no'])); $selectsetting = isset($system->SETTINGS['smtp_security']) ? $system->SETTINGS['smtp_security'] : 'none'; loadblock($MSG['1127'], '<span class="smtp"></span>', generateSelect('smtp_security', $smtp_secure_options)); loadblock($MSG['1126'], '<span class="smtp"></span>', 'text', 'smtp_port', $system->SETTINGS['smtp_port']); loadblock($MSG['1124'], '<span class="smtp"></span>', 'text', 'smtp_username', $system->SETTINGS['smtp_username']); loadblock($MSG['1125'], '<span class="smtp"></span>', 'text', 'smtp_password', $system->SETTINGS['smtp_password']); loadblock($MSG['1122'], '<span class="smtp"></span>', 'text', 'smtp_host', $system->SETTINGS['smtp_host']); loadblock($MSG['1129'], sprintf($MSG['1130'], $system->SETTINGS['adminmail']), 'text', 'alert_emails', $system->SETTINGS['alert_emails']); $mail_info2 = ''; // send test email if (isset($_GET['test_email'])) { $user_name = filter_var($_POST["user_name"], FILTER_SANITIZE_STRING); $to_email = filter_var($_POST["user_email"], FILTER_SANITIZE_EMAIL); $subject = filter_var($_POST["subject"], FILTER_SANITIZE_STRING); $message = filter_var($_POST["message"], FILTER_SANITIZE_STRING); $emailer = new email_handler(); $emailer->email_basic($subject, $to_email, $message); die; } $template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['524'], 'PAGENAME' => $MSG['1131'], 'MAIL_PROTOCOL' => $mail_protocol[$system->SETTINGS['mail_protocol']], 'SMTP_AUTH' => $system->SETTINGS['smtp_authentication'], 'SMTP_SEC' => $system->SETTINGS['smtp_security'], 'SMTP_PORT' => !empty($system->SETTINGS['smtp_port']) && is_numeric($system->SETTINGS['smtp_port']) ? $system->SETTINGS['smtp_port'] : 25, 'SMTP_USER' => $system->SETTINGS['smtp_username'], 'SMTP_PASS' => $system->SETTINGS['smtp_password'], 'SMTP_HOST' => $system->SETTINGS['smtp_host'], 'ALERT_EMAILS' => $system->SETTINGS['alert_emails'], 'ADMIN_EMAIL' => $system->SETTINGS['adminmail'])); include 'header.php'; $template->set_filenames(array('body' => 'emailsettings.tpl')); $template->display('body');
<?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';
* 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 $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\tprivacypolicy = '" . $_POST['privacypolicy'] . "',\n\t\t\tprivacypolicytext = '" . mysql_real_escape_string($_POST['privacypolicytext']) . "'"; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); $system->SETTINGS['privacypolicy'] = $_POST['privacypolicy']; $system->SETTINGS['privacypolicytext'] = $_POST['privacypolicytext']; $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', stripslashes($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');
* 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['privacypolicy'] = ynbool($_POST['privacypolicy']); $system->SETTINGS['privacypolicytext'] = $system->cleanvars($_POST['privacypolicytext']); // Update database $query = "UPDATE " . $DBPrefix . "settings SET\n\t\t\tprivacypolicy = :privacypolicy,\n\t\t\tprivacypolicytext = :privacypolicytext"; $params = array(); $params[] = array(':privacypolicy', $system->SETTINGS['privacypolicy'], 'str'); $params[] = array(':privacypolicytext', $system->SETTINGS['privacypolicytext'], 'str'); $db->query($query, $params); $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');