Просмотр файла apanel/settings_guest.php

Размер файла: 3.13Kb
<?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['1_19'].''); 
echo'<div class="hdr"><b>'.$lng_a['1_20'].'</b></div>';
if (isset($_POST['save']))
{
if ($_POST['guest_guestbook_write']==1 || $_POST['guest_guestbook_write']==0)
{
$set['guest_guestbook_write']=intval($_POST['guest_guestbook_write']);
}
if ($_POST['guest_komm_write']==1 || $_POST['guest_komm_write']==0)
{
$set['guest_komm_write']=intval($_POST['guest_komm_write']);
}
if ($_POST['guest_forum_create_theme']==1 || $_POST['guest_forum_create_theme']==0)
{
$set['guest_forum_create_theme']=intval($_POST['guest_forum_create_theme']);
}
if ($_POST['guest_forum_write']==1 || $_POST['guest_forum_write']==0)
{
$set['guest_forum_write']=intval($_POST['guest_forum_write']);
} 
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_21'].':<br/><select name="guest_guestbook_write">' .
'<option value="1"'.($set['guest_guestbook_write']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['guest_guestbook_write']==0?' selected="selected"':null).'>'.$lng['1_63'].'</option>' .
'</select><br/>' .
'2) '.$lng_a['1_22'].':<br/><select name="guest_komm_write">' .
'<option value="1"'.($set['guest_komm_write']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['guest_komm_write']==0?' selected="selected"':null).'>'.$lng['1_63'].'</option>' .
'</select><br/>' .
'3) '.$lng_a['1_23'].':<br/><select name="guest_forum_create_theme">' .
'<option value="1"'.($set['guest_forum_create_theme']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['guest_forum_create_theme']==0?' selected="selected"':null).'>'.$lng['1_63'].'</option>' .
'</select><br/>' .
'4) '.$lng_a['1_24'].':<br/><select name="guest_forum_write">' .
'<option value="1"'.($set['guest_forum_write']==1?' selected="selected"':null).'>'.$lng['1_62'].'</option>' .
'<option value="0"'.($set['guest_forum_write']==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'; // დასასრული
?>