File size: 2.12Kb
<?php
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//
// Sitchi CMS - Mobile Content Management System //
// The author: Nikoloz Sitchinava [sitchi] //
// Link: http://sitchicms.num.ge //
// Skype: SitchiCMS //
// License: LICENSE.txt (see attached file) //
// Version: VERSION.txt (see attached file) //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
define('_SITCHICMS', 1);
$root_path='../';
require $root_path.'includes/db_connect.php';
require $root_path.'includes/start.php';
require $root_path.'includes/header.php';
require $root_path.'includes/functions.php';
require $root_path.'includes/head.php'; // თავი
$lng_a = load_lng('admin');
if($user['level']<6)
header("Location: /");
head(''.$lng['1_54'].' | '.$lng_a['1_12'].'');
echo'<div class="hdr"><b>'.$lng_a['1_12'].'</b></div>';
if (isset($_POST['save']))
{
if ($_POST['permission_reg']==1 || $_POST['permission_reg']==0)
{
$set['permission_reg']=intval($_POST['permission_reg']);
}
if ($_POST['email_reg']==1 || $_POST['email_reg']==0)
{
$set['email_reg']=intval($_POST['email_reg']);
}
if (save_settings($set))
{
msg('<div class="menu">'.$lng_a['1_10'].'</div>');
}else{
$err[] = '<div class="errmenu">'.$lng_a['1_11'].'</div>';
}}
err();
echo'<form method="post" action=""><div class="egmenu">' .
'1) '.$lng_a['1_14'].':<br/><select name="permission_reg">' .
'<option value="1"'.($set['permission_reg']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['permission_reg']==0?' selected="selected"':null).'>'.$lng['1_63'].'</option>' .
'</select><br/>' .
'2) '.$lng_a['1_17'].':<br/><select name="email_reg">' .
'<option value="1"'.($set['email_reg']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['email_reg']==0?' selected="selected"':null).'>'.$lng['1_63'].'</option>' .
'</select><br/>' .
'<input value="'.$lng_a['1_9'].'" name="save" type="submit" />' .
'</div></form>';
echo'<a href="/apanel/">'.$lng['1_54'].'</a>';
require $root_path.'includes/end.php'; // დასასრული
?>