File size: 3.5Kb
<?php
#-----------------------------------------------------#
# ****** Сообщества ****** #
# Site : http://cobwap.net #
# E-mail : [email protected] #
# Для связи : 8(909)651-0-222 #
# ICQ : 384181109 #
# Автор скрипта : LAS #
#-----------------------------------------------------#
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
echo '<br><div class=b><img src="../images/img/partners.gif" alt=""> <b>Панель управления</b> </div> ';
$them = check($_GET['them']);
$soo = check($_GET['soo']);
$name = check($_POST['name']);
$mess = check($_POST['mess']);
$priv = check($_POST['priv']);
$pol = check($_POST['pol']);
$file = check($_POST['file']);
if($them!="" && !eregi("[^0-9-]",$them)){
$text = file(BASEDIR."local/comm/$them.soo");
if ($text!=""){
$uzdata = explode(":||:",$text[0]);
if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!="") {
$textom = file(BASEDIR."local/comm/$them.soo");
$uzdatam = explode(":||:",$textom[0]);
if ($dostup==101 || $dostup==102 || $log==$uzdatam[0]){
echo'<form method="post" action="apanell.php?soo='.$soo.'&them='.$them.'&'.SID.'" name="form" enctype="multipart/form-data">';
echo'Название сообщества:<br>';
echo'<input type="text" name="name" maxlength="40" value="'.$uzdatam[1].'" /><br>';
echo'Описание:<br>';
echo'<input type="text" name="mess" maxlength="700" value="'.$uzdatam[2].'" /><br>';
echo'Приветствие:<br>';
echo'<input type="text" name="priv" maxlength="200" value="'.$uzdatam[6].'" /><br>';
echo 'Статус:<br>';
if($uzdatam[5]=="1"){echo '<input name="pol" type="radio" value="1" checked>';} else {echo '<input name="pol" type="radio" value="1" />';}
echo 'Открытый <br>';
if($uzdatam[5]=="0"){echo '<input name="pol" type="radio" value="0" checked>';} else {echo '<input name="pol" type="radio" value="0" />';}
echo 'Закрытый<br>';
echo "Логотип:<br>
Максимальный размер картинки: 7кб<br>
<INPUT NAME=\"file\" TYPE=\"file\" value=\"Обзор\"><br> ";
echo'</b><br><input value="Сохранить" name="do" type="submit" /></form>';
} else {header ("Location: ../index.php?isset=404&".SID);}
} else {header ("Location: ../index.php?isset=404&".SID);}
} else {echo '<img src="../images/img/error.gif" alt=""> Сообщество не существует!<br>';}
} else {echo '<img src="../images/img/error.gif" alt=""> Произошла ошибка. Сообщество не существует!<br>';}
echo'<br><br><img src="../images/img/back.gif" alt=""> <a href="view.php?soo='.$soo.'&them='.$them.'&'.SID.'">Назад</a>';
echo'<br><img src="../images/img/back.gif" alt=""> <a href="index.php?'.SID.'">Сообщества</a>';
echo'<br><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';
include_once"../themes/$config_themes/foot.php";
?>