function articleHits($vid) { $db = new FQuery(); $db->connect(); $hits = $vid + 1; $id = app_param('id'); $db->update(FDBPrefix . 'article', array('hits' => "{$hits}"), "id={$id}"); }
function update($a, $b) { $db = new FQuery(); $db->connect(); $qr = $db->update(FDBPrefix . "comment_setting", array('value' => "{$b}"), "name='{$a}'"); if ($qr) { return true; } }
* @version 1.5.0 * @package Fiyo CMS * @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see LICENSE.txt * @description Article Editor **/ session_start(); if ($_SESSION['USER_LEVEL'] <= 4) { define('_FINDEX_', 1); require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); if (isset($_POST['art_title']) and !empty($_POST['art_title'])) { $title = $_POST['art_title']; $title = str_replace('"', "'", $title); $qr = $db->update(FDBPrefix . 'article', array("title" => "{$title}", "editor" => $_SESSION['USER_ID']), "id={$_POST['id']}"); if (@$qr) { echo "Saved"; } else { echo "Failed!"; } } if (isset($_POST['_content_article']) and !empty($_POST['_content_article'])) { $article = str_replace('"', "'", "{$_POST['_content_article']}"); if (checkLocalhost()) { $flocal = $_POST['flocal']; $article = str_replace("http://localhost/{$flocal}", "/", $article); } $qr = $db->update(FDBPrefix . 'article', array("article" => "{$article}", "editor" => $_SESSION['USER_ID']), "id={$_POST['id']}"); if (@$qr) { echo "Saved";
} else { $_SESSION['NOTICE_ERROR'] = alert('error', Status_Invalid); } } } else { $_SESSION['NOTICE_ERROR'] = alert('error', Status_Invalid); } } /****************************************/ /* Edit Category Article */ /****************************************/ if (isset($_POST['edit_category']) or isset($_POST['apply_category'])) { if (!empty($_POST['name']) and !empty($_POST['id'])) { $_POST['name'] = str_replace('"', '', $_POST['name']); $_POST['name'] = str_replace("'", '', $_POST['name']); $qr = $db->update(FDBPrefix . 'article_category', array("name" => "{$_POST['name']}", 'parent_id' => "{$_POST['parent_id']}", 'level' => "{$_POST['level']}", 'keywords' => "{$_POST['keys']}", 'description' => "{$_POST['desc']}"), 'id=' . $_POST['id']); if ($qr and isset($_POST['edit_category'])) { notice('success', Category_Saved); redirect('?app=article&view=category'); } else { if ($qr and isset($_POST['apply_category'])) { notice('success', Category_Saved); redirect(getUrl()); } else { $_SESSION['NOTICE_ERROR'] = alert('error', Status_Invalid); } } } else { notice('error', Status_Invalid); } }
* @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ if (!isset($_POST['user'])) { die('Access Denied!'); } session_start(); define('_FINDEX_', 1); require '../../../system/jscore.php'; $db = new FQuery(); $user = mysql_real_escape_string($_POST['user']); $sql = $db->select(FDBPrefix . "user", "*", "status=1 AND user='******' AND password='******'pass']) . "'"); $qr = mysql_fetch_array($sql); $jml = mysql_affected_rows(); if ($jml > 0) { $_SESSION['USER_ID'] = $qr['id']; $_SESSION['USER'] = $qr['user']; $_SESSION['USER_NAME'] = $qr['name']; $_SESSION['USER_EMAIL'] = $qr['email']; $_SESSION['USER_LEVEL'] = $qr['level']; $_SESSION['USER_LOG'] = $qr['time_log']; $time_log = date('Y-m-d H:i:s'); $db->update(FDBPrefix . 'user', array("time_log" => "{$time_log}"), "id={$qr['id']}"); $db->delete(FDBPrefix . "session_login", "user_id={$qr['id']}"); $qr = $db->insert(FDBPrefix . "session_login", array("{$qr['id']}", "{$qr['user']}", "{$qr['level']}", date('Y-m-d H:i:s'))); } if ($qr or !empty($_SESSION['USER_ID']) and $_SESSION['USER_LEVEL'] <= 3 and userInfo()) { echo "{ \"status\":\"1\" , \"alert\":\"" . alert('success', Login_Success) . "\"}"; } else { echo "{ \"status\":\"0\" , \"alert\":\"" . alert('error', Login_Error) . "\"}"; }
* @copyright Copyright (C) 2012 Fiyo CMS. * @license GNU/GPL, see license.txt * @description **/ defined('_FINDEX_') or die('Access Denied'); // Access only for Administrator if ($_SESSION['USER_LEVEL'] > 2) { redirect('index.php'); } $db = new FQuery(); $db->connect(); if (isset($_POST['themes_submit'])) { if (empty($_POST['folder_themes'])) { alert('error', Please_select_theme); } else { $qr = $db->update(FDBPrefix . 'setting', array('value' => "{$_POST['folder_themes']}"), "name='site_theme'"); if ($qr) { alert('info', Theme_successfully_applied); } } } if (isset($_POST['themes_files'])) { if (empty($_POST['folder_themes'])) { alert('error', Please_select_theme); } else { $thm = $_POST['folder_themes']; if ($_GET['act'] == 'admin') { redirect("?app=theme&act=afiles&theme={$thm}"); } else { redirect("?app=theme&act=files&theme={$thm}"); }
if (@multipleSelect($pars)) { $pars = multipleSelect($pars); } else { $pars = $pars; } @($param .= $_POST["nameParam{$p}"] . "=" . $pars . ';\\n'); } } @($page = $_POST['page']); @($page = multipleSelect($page)); @($parameter = str_replace('"', "'", "{$_POST['editor']}")); @($parameter = $parameter . $param); if (checkLocalhost()) { $parameter = str_replace(FLocal . "media/", "media/", $parameter); } $qr = $db->update(FDBPrefix . 'module', array("name" => "{$_POST['title']}", "position" => "{$_POST['position']}", "short" => "{$_POST['short']}", "level" => "{$_POST['level']}", "status" => "{$_POST['status']}", "page" => "{$page}", "class" => "{$_POST['class']}", "style" => "{$_POST['style']}", "parameter" => "{$parameter}", "show_title" => "{$_POST['show_title']}"), "id={$_REQUEST['id']}"); if ($qr and isset($_POST['apply_edit'])) { alert('success', Module_Saved, 0, 0, 'NOTICE'); redirect(getUrl()); } elseif ($qr and isset($_POST['save_edit'])) { alert('success', Module_Saved, 0, 0, 'NOTICE_REF'); redirect('?app=module'); } else { $_SESSION['NOTICE'] = alert('error', Status_Invalid); } } else { $_SESSION['NOTICE'] = alert('error', Status_Invalid); } } /****************************************/ /* Delete Module */
function pdfHits() { $db = new FQuery(); $db->connect(); $hits = pdfInfo('pdfed') + 1; $id = pdfInfo('id'); $db->update(FDBPrefix . 'pustaka_file', array("pdfed" => "{$hits}"), "id ={$id}"); }
notice('error', Please_Select_User); } redirect(getUrl()); } /****************************************/ /* Redirect when User-Id not found */ /****************************************/ if (!isset($_POST['save_edit']) and !isset($_POST['apply_edit'])) { if (isset($_REQUEST['act'])) { if ($_REQUEST['act'] == 'edit' and !isset($_REQUEST['view'])) { $id = $_REQUEST['id']; $db = new FQuery(); $db->connect(); $sql = $db->select(FDBPrefix . 'user', '*', 'id=' . $id); $jml = mysql_num_rows($sql); if ($jml <= 0) { notice('info', 'UserID is null, wait for redirecting ...'); redirect('?app=user', 3); } } } } /****************************************/ /* User Configurtation */ /****************************************/ if (isset($_POST['config'])) { $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['new_member']}"), "name='new_member'"); if (isset($qr)) { notice('info', Status_Applied); } }
notice('success', Status_Added); redirect('?app=permalink&act=edit&id=' . $qr['id']); } else { notice('error', Status_Fail, 2); } } } else { notice('error', Status_Invalid, 2); } } /****************************************/ /* Permalink Edit */ /****************************************/ if (isset($_POST['save']) or isset($_POST['apply'])) { if (!empty($_POST['permalink']) and !empty($_POST['link'])) { $qr = $db->update(FDBPrefix . 'permalink', array("permalink" => "{$_POST['permalink']}", "link" => "{$_POST['link']}", "locker" => "{$_POST['lock']}", "status" => "{$_POST['status']}", "pid" => "{$_POST['page']}"), "id={$_POST['id']}"); if ($qr and isset($_POST['save'])) { notice('success', Status_Applied); redirect('?app=permalink'); } else { if ($qr and isset($_POST['apply'])) { notice('success', Status_Applied); redirect(getUrl()); } else { notice('error', Status_Exist); } } } else { notice('error', Status_Invalid); } }
<?php /** * @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Enable and Disbale SEF */ /****************************************/ if (isset($_GET['stat'])) { if ($_GET['stat'] == '1') { $db->update(FDBPrefix . 'permalink', array("locker" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['stat'] == '0') { $db->update(FDBPrefix . 'permalink', array("locker" => "0"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } }
* @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Enable and Disbale Modules */ /****************************************/ if (isset($_GET['stat'])) { if ($_GET['stat'] == '1') { $db->update(FDBPrefix . 'module', array("status" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['stat'] == '0') { $db->update(FDBPrefix . 'module', array("status" => "0"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } } /****************************************/ /* Enable and Disbale Name */ /****************************************/ if (isset($_GET['name'])) { if ($_GET['name'] == '1') { $db->update(FDBPrefix . 'module', array("show_title" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); }
* @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Site Theme */ /****************************************/ if (isset($_GET['type']) and $_GET['type'] == 'site') { if (isset($_GET['theme'])) { $db->update(FDBPrefix . 'setting', array("value" => "{$_GET['theme']}"), "name='site_theme'"); alert('success', Theme_successfully_applied, 1); } } /****************************************/ /* Admin Theme */ /****************************************/ if (isset($_GET['type']) and $_GET['type'] == 'admin') { if (isset($_GET['theme'])) { $db->update(FDBPrefix . 'setting', array("value" => "{$_GET['theme']}"), "name='admin_theme'"); alert('success', Theme_successfully_applied, 1); } } ?> <script>notice();</script>
function load_login() { if (isset($_POST['fiyo_login'])) { $db = new FQuery(); $user = mysql_real_escape_string($_POST['user']); $sql = $db->select(FDBPrefix . "user", "*", "status=1 AND user='******' AND password='******'pass']) . "'"); $qr = mysql_fetch_array($sql); $jml = mysql_affected_rows(); if ($jml > 0) { $_SESSION['USER_ID'] = $qr['id']; $_SESSION['USER'] = $qr['user']; $_SESSION['USER_NAME'] = $qr['name']; $_SESSION['USER_EMAIL'] = $qr['email']; $_SESSION['USER_LEVEL'] = $qr['level']; $_SESSION['USER_LOG'] = $qr['time_log']; $time_log = date('Y-m-d H:i:s'); $db->update(FDBPrefix . 'user', array("time_log" => "{$time_log}"), "id={$qr['id']}"); $db->delete(FDBPrefix . "session_login", "user_id={$qr['id']}"); $qr = $db->insert(FDBPrefix . "session_login", array("{$qr['id']}", "{$qr['user']}", "{$qr['level']}", date('Y-m-d H:i:s'))); } if ($qr or !empty($_SESSION['USER_ID']) and $_SESSION['USER_LEVEL'] <= 3 and userInfo()) { redirect(getUrl()); } else { select_themes('login'); alert('error', Login_Error); } } else { if (isset($_GET['theme']) and $_GET['theme'] == 'blank') { echo "Redirecting..."; } else { select_themes('login'); } } }
if (isset($_POST['save_edit']) or isset($_POST['apply_edit'])) { if (!empty($_POST['name']) and !empty($_POST['cat']) and !empty($_POST['link'])) { $param = ''; // first value from $param if (isset($_POST['totalParam'])) { for ($p = 1; $p <= $_POST['totalParam']; $p++) { @($param = $param . $_POST["nameParam{$p}"] . "=" . $_POST['param' . $p] . ';\\n'); } } $param = str_replace('"', "'", $param); @($parameter = $param); $db = new FQuery(); $db->connect(); $db->select(FDBPrefix . 'menu'); $cat = $_POST['cat']; $qr = $db->update(FDBPrefix . 'menu', array("category" => "{$_POST['cat']}", "name" => "{$_POST['name']}", "link" => "{$_POST['link']}", "app" => "{$_POST['apps']}", "parent_id" => "{$_POST['parent_id']}", "status" => "{$_POST['status']}", "show_title" => "{$_POST['show_title']}", "level" => "{$_POST['level']}", "title" => "{$_POST['title']}", "sub_name" => "{$_POST['sub_name']}", "class" => "{$_POST['class']}", "style" => "{$_POST['style']}", "short" => "{$_POST['short']}", "parameter" => "{$parameter}"), "id={$_POST['id']}"); if ($qr and isset($_POST['save_edit'])) { notice('success', Menu_Updated); redirect("?app=menu&cat={$_POST['cat']}"); } else { if ($qr and isset($_POST['apply_edit'])) { notice('success', Menu_Updated); redirect(getUrl()); } else { notice('error', Status_Invalid); } } } else { notice('error', Status_Invalid); } }
* @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Article Front Page */ /****************************************/ if (isset($_GET['fp'])) { if ($_GET['fp'] == '1') { $db->update(FDBPrefix . 'article', array("featured" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['fp'] == '0') { $db->update(FDBPrefix . 'article', array("featured" => "0"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } } /****************************************/ /* Enable and Disbale Article */ /****************************************/ if (isset($_GET['stat'])) { if ($_GET['stat'] == '1') { $db->update(FDBPrefix . 'article', array("status" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); }
* @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Enable and Disbale Article */ /****************************************/ if (isset($_GET['stat'])) { if ($_GET['stat'] == '1') { $db->update(FDBPrefix . 'menu', array("status" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['stat'] == '0') { $db->update(FDBPrefix . 'menu', array("status" => "0"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } } /****************************************/ /* Make Home Page */ /****************************************/ if (isset($_GET['home'])) { $qr = $db->update(FDBPrefix . 'menu', array("home" => "0"), 'id!=' . $_GET['id']); $qr = $db->update(FDBPrefix . 'menu', array("home" => "1"), 'id=' . $_GET['id']); if ($qr) { alert('success', Status_Applied, 1);
* @version 2.0 * @package Fiyo CMS * @copyright Copyright (C) 2014 Fiyo CMS. * @license GNU/GPL, see LICENSE. **/ define('_FINDEX_', 1); session_start(); if (!isset($_SESSION['USER_LEVEL']) and $_SESSION['USER_LEVEL'] > 2) { die; } require_once '../../../system/jscore.php'; $db = new FQuery(); $db->connect(); /****************************************/ /* Enable and Disbale User */ /****************************************/ if (isset($_GET['stat'])) { if ($_GET['stat'] == '1') { $db->update(FDBPrefix . 'user', array("status" => "1"), 'id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['stat'] == '0') { $db->update(FDBPrefix . 'user', array("status" => "0"), 'id=' . $_GET['id']); $db->delete(FDBPrefix . 'session_login', 'user_id=' . $_GET['id']); alert('success', Status_Applied, 1); } if ($_GET['stat'] == 'kick') { $db->delete(FDBPrefix . 'session_login', 'user_id=' . $_GET['id']); alert('success', Status_Applied, 1); } }
if (isset($_POST['patching']) and $_POST['patching'] != false and $site_version != $latest_version and $xml) { $plink = $p['link']; $root = "../../.."; $newfile = "{$root}/tmp/patch_{$p['number']}.zip"; if (!file_exists("{$root}/tmp")) { mkdir("{$root}/tmp"); } if (copy($plink, $newfile)) { if (extractZip($newfile, "{$root}/tmp")) { $dapur = siteConfig('backend_folder'); if (siteConfig('backend_folder') != 'dapur') { copy_directory("{$root}/dapur", "{$root}/{$dapur}", true); } $db = new FQuery(); $db->connect(); $db->update(FDBPrefix . 'setting', array('value' => "{$p['number']}"), "name='version'"); $sup = $p['number']; @unlink("{$root}/installer.php"); ?> <script> $(document).ready(function() { $(".update-info").LoadingDot({ "speed": 500, "maxDots": 4, "word": " <?php echo Installing_patch . $p['number']; ?> ." }); $(".modal-footer").hide();
} elseif ($qr and isset($_POST['save_add'])) { notice('success', Contact_Saved); redirect('?app=contact', 2); } else { notice('error', Status_Fail); } } else { notice('error', Status_Invalid); } } /****************************************/ /* Edit contact */ /****************************************/ if (isset($_POST['save_edit']) or isset($_POST['apply_edit'])) { if (!empty($_POST['name']) and !empty($_POST['gender']) and !empty($_POST['group'])) { $qr = $db->update(FDBPrefix . 'contact', array("name" => "{$_POST['name']}", "gender" => "{$_POST['gender']}", "group_id" => "{$_POST['group']}", "email" => "{$_POST['email']}", "address" => "{$_POST['address']}", "city" => "{$_POST['city']}", "state" => "{$_POST['state']}", "country" => "{$_POST['country']}", "zip" => "{$_POST['zip']}", "phone" => "{$_POST['phone']}", "fax" => "{$_POST['fax']}", "job" => "{$_POST['job']}", "photo" => "{$_POST['photo']}", "web" => "{$_POST['web']}", "ym" => "{$_POST['ym']}", "fb" => "{$_POST['fb']}", "tw" => "{$_POST['tw']}", "description" => "{$_POST['desc']}"), "id={$_POST['id']}"); if ($qr and isset($_POST['save_edit'])) { notice('success', Contact_Saved); redirect('?app=contact'); } else { if ($qr and isset($_POST['apply_edit'])) { notice('success', Contact_Saved); refresh(); } else { notice('error', Status_Fail); } } } else { notice('error', Status_Invalid); } }
} } if (isset($_POST['login'])) { $user = mysql_real_escape_string($_POST['user']); $qr = $db->select(FDBPrefix . "user", "*", "status=1 AND user='******' AND password='******'pass']) . "'"); $qr = mysql_fetch_array($qr); $ok = mysql_affected_rows(); if ($ok > 0) { $_SESSION['USER_ID'] = $qr['id']; $_SESSION['USER'] = $qr['user']; $_SESSION['USER_NAME'] = $qr['name']; $_SESSION['USER_EMAIL'] = $qr['email']; $_SESSION['USER_LEVEL'] = $qr['level']; $_SESSION['USER_LOG'] = $qr['time_log']; $time_log = date('Y-m-d H:i:s'); $db->update(FDBPrefix . 'user', array("time_log" => "{$time_log}"), "id={$qr['id']}"); if ($qr['id'] > 0) { $db->delete(FDBPrefix . "session_login", "id={$qr['id']}"); $db->insert(FDBPrefix . "session_login", array("{$qr['id']}", "{$qr['user']}", "{$qr['level']}", date('Y-m-d H:i:s'))); } if (!isset($_POST['prevpage'])) { $_POST['prevpage'] = $linkUser; } redirect($_POST['prevpage']); } else { define("userNotice", alert("error", user_Login_Error)); } } if (isset($_POST['edit'])) { if (!empty($_POST['email']) and @ereg("^.+@.+\\..+\$", $_POST['email'])) { $qrq = false;
} $vo1 = $vo + 1; $param = $qrs['parameter']; $pva = strpos($param, "rate_value={$va}"); if ($pva) { $param = str_replace("rate_value={$va}", "rate_value={$rating}", $param); } else { $param .= "rate_value={$rating}" . ";\n"; } $pvo = strpos($param, "rate_counter={$vo}"); if ($pvo) { $param = str_replace("rate_counter={$vo}", "rate_counter={$vo1}", $param); } else { $param .= "rate_counter={$vo1}" . ";\n"; } $param = strip_tags($param); $qr = $db->update(FDBPrefix . 'article', array("parameter" => "{$param}"), "id={$id}"); if ($qr) { $_SESSION["article_rate_{$id}"] = true; } } else { if ($_POST['do'] == 'getrate') { // get rating $va = mod_param('rate_value', $qrs['parameter']); $vo = mod_param('rate_counter', $qrs['parameter']); $rating = @round($va / $vo, 1) * 20; echo $rating; } } } }
if (!strpos("x{$pxt}", "/")) { $pxt = str_replace(".", "", $pxt); $pxt = ".{$pxt}"; } } else { if (!strpos("x{$pxt}", "/")) { $pxt = str_replace(".", "", $pxt); $pxt = ".{$pxt}"; } } } } /* * Query configuration */ $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['site_name']}"), "name='site_name'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['title']}"), "name='site_title'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['url']}"), "name='site_url'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['mail']}"), "name='site_mail'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['status']}"), "name='site_status'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['meta_keys']}"), "name='site_keys'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['meta_desc']}"), "name='site_desc'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['sef']}"), "name='sef_url'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['file_size']}"), "name='file_size'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['file_allowed']}"), "name='file_allowed'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['media_theme']}"), "name='media_theme'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['title_type']}"), "name='title_type'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['title_divider']}"), "name='title_divider'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['lang']}"), "name='lang'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['follow_link']}"), "name='follow_link'"); $qr = $db->update(FDBPrefix . "setting", array('value' => "{$_POST['member_registration']}"), "name='member_registration'");