Просмотр файла public_html/soobsh/priv.php

Размер файла: 2.37Kb
<?php
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";
$nal=trim($udata[41]);
$dir = opendir ("prof");
while ($file = readdir ($dir)) {
if (( $file != ".") && ($file != "..") && ($file != ".htaccess") && ($file != "index.php")){$a[]=$file;}}
closedir ($dir); $total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("prof/$a[$i]");
$data = explode(":||:",$tex[0]);
if ($data[40]==$log){$dat_log[]=$data[0];$dat_tuning[]=$data[14];$banda[]=$data[40];$dat_por[]=$data[39];$dat_tachka[]=$data[1];$dat_kt[]=$data[2];}
}arsort($dat_tuning);
$kol=count($dat_tuning);
$gamedata9 = @file("soobsh/$log.club"); 
$gtxt9 = explode(":||:",
$gamedata9[0]);
$prov = $gtxt9[0];
$nazvanie = $gtxt9[1];
$kapital = $gtxt9[41];
if ($prov==""){
echo'<font color="red"><b>Bxoд тoлькo для создателей сообщества!!!</b></font><br><br>'; 
exit;
}else{
if(!isset($action)){
echo "<form action=\"priv.php?action=dob&amp;".SID."\" method=\"post\" name=\"form\" enctype=\"multipart/form-data\">
Приветствие*:<br/>
<INPUT name=\"autor\" value=\"\"><br>
<INPUT TYPE=\"submit\" VALUE=\"Сохранить\"></FORM><br><br>";}
if($action=="dob"){
$avat_size=$_FILES['file']['size'];
$avat_name=$_FILES['file']['name'];
$av_file = file($_FILES['file']['tmp_name']);
$av_string = substr($av_file[0], 0, 3);
$ext = strtolower(substr($avat_name, 1 + strrpos($avat_name, ".")));
$autor=check($autor);
$content ="$autor";
$omf=fopen("welcome/$log.dat","w+");
fputs($omf,"$content\r\n");
fclose($omf);
chmod ("welcome/$log.dat", 0666);
echo 'Приветствие успешно изменено!<br/>';
echo'<a href="priv.php?'.SID.'">Вернуться</a><br/>';}}
echo'<img src="../images/img/back.gif" alt=""> <a href="panel.php">Bxoд в пaнeль</a><br>';
echo'<img src="../images/img/back.gif" alt=""> <a href="index.php?'.SID.'">Сообщества</a><br>';
echo'<img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a><br>';
include_once"../themes/$config_themes/foot.php";
?>