Файл: admin/settings_general.php
Строк: 53
<?php
/**************************************************************************************************
| Scritter Script
| http://www.scritterscript.com
| webmaster@scritterscript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License
| Agreement available at http://www.scritterscript.com/eula.html and to be bound by it.
|
| Copyright (c) 2011 ScritterScript.com. All rights reserved.
|**************************************************************************************************/
include("../include/config.php");
include_once("../include/functions/import.php");
verify_login_admin();
if($_POST['submitform'] == "1")
{
$arr = array("site_name", "short_name", "site_email", "emailsender", "items_per_page", "max_posts_userhome", "max_posts_newmem", "max_posts_srchchans", "max_posts_srchupdates", "max_syndicate_results", "max_post_chars", "max_posts_userupdates", "max_posts_userfollowing", "max_posts_userfollowers", "max_posts_recentupdates", "enable_captcha");
foreach ($arr as $value)
{
$sql = "update config set value='".mysql_real_escape_string($_POST[$value])."' where setting='$value'";
$conn->execute($sql);
Stemplate::assign($value,strip_mq_gpc($_POST[$value]));
}
$message = "General Settings Successfully Saved.";
Stemplate::assign('message',$message);
}
$mainmenu = "2";
$submenu = "1";
Stemplate::assign('mainmenu',$mainmenu);
Stemplate::assign('submenu',$submenu);
STemplate::display("administrator/global_header.tpl");
STemplate::display("administrator/settings_general.tpl");
STemplate::display("administrator/global_footer.tpl");
?>