Вход Регистрация
Файл: id3508/club.php
Строк: 406
<?
//////////////////////////////////////////////////////////////////
                                                                                                                       
include "lang.php";
//                                                              //
//                          Club v.1.0                          //
//                                                              //
//                                                              //
//                     Copyright (c) 2002 by                    // 
//       Alexey. V. Lyanguzov :: alexey@lyanguzov.inc.ru        //
//                                                              //
//       За последними версиями срипта "Клуб" обращайтесь       //
//       на мой сайт: http://club.lyanguzov.inc.ru или на       //
//       http://www.lyanguzov.inc.ru,  если вы  считаете,       //
//       что "клубу" не хватает какой-нибудь функции,  то       //
//       обращайтесь ко мне, возможно я ее добавлю в сле-       //
//       дующие версии.                                         //
//                                                              //
//                                                              //
//       =================== !ВАЖНО! ====================       //
//       После того, как этот скрипт будет установлен на        //
//       ваш сайт ОБЯЗАТЕЛЬНО сообщите мне  об  этом  на        //
//       alexey@lyanguzov.inc.ru и я добавлю  ссылку  на        //
//       ваш сайт на официальную страничку клуба:               //
//       http://club.lyanguzov.inc.ru !!!   Этот  скрипт        //
//       БЕСПЛАТНЫЙ и распостраняется свободно  (условия        //
//       написаны в файле license.txt)  Просто мне важно        //
//       знать кто пользуется моим скриптом,  а  для вас        //
//       это лишний балл в индексе цитирования.                 //
//                                                              //

//////////////////////////////////////////////////////////////////


//
//  ВНИМАНИЕ!!!  ЭТОТ ФАЙЛ НЕЛЬЗЯ РЕДАКТИРОВАТЬ,  
//               ИНАЧЕ СКРИПТ НЕ БУДЕТ РАБОТАТЬ!!!
//
//

require "settings.php";
require 
"lang.php";

$xx22 "error";
if (
$p == "1") {
print 
"
<html>
<head>
<head>
<meta http-equiv="
Content-Type" content="text/htmlcharset=windows-1251">
<title>Alexey. V. Lyanguzov Homepage + Internet Robot</title>
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgt background=$bgi1>
<table width=100% height=70><tr><td valign=middle>
&nbsp;&nbsp;<a href=http://club.lyanguzov.inc.ru target="
_top"><img src="logo.gif" alt="Club" border="0" align=center></a>&nbsp;&nbsp;<font face="Verdana" size="2">$title1</font>
</td></tr></table>

</body>
</HTML>
"
;
}
//$file = "club.php";
//$size = filesize($file);
//if ($size != "15532") { print "$xx22"; 
//                                                                                            //                                                                                            //                                       exit; }


if ($p == "2") {
print 
"
<html>
<head>
<head>
<meta http-equiv="
Content-Type" content="text/htmlcharset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgt1 background=$bgi2>
"
;
$file "users/$login.dat";
$file file($file);
$time1 date("Y");
$time2 date("m");
$time3 date("d");
$time = ($time2*31)+(($time1*12)*31)+$time3;
$sss $time-$file[0];

if (
$sss 7) { $status "Живой"; }
if (
$sss 20) { $status "Умер"$dead "1"; }
if (
$sss && $dead != "1") { $status "Больше недели здесь не появлялся"; }


print 
"<table width=100% cellspacing=0 cellpadding=0><tr><td>";
$aaa "A"$vvv "В";
require 
"menu.txt";
$maiil "alexey@lyanguzov.inc.ru>";
print 
"
<BR><hr size=1 color=gray>
&nbsp; 
$x12 <b>$file[3]</b><br>
&nbsp; 
$x13 <b>$sss</b> дней назад.<br>
&nbsp; 
$x14 <b>$file[1]</b><br>
&nbsp; 
$x15 <b>$status</b><br>
&nbsp;<img src=str.gif>&nbsp;<a href=club.php?p=7&login=
$login target=main>$x16</a><br>
&nbsp;<img src=str.gif>&nbsp;<a href=club.php?p=9&login=
$login&password=$password target=main>Закачать свою фотографию</a><br>
<hr size=1 color=gray>

&nbsp;<font color=
$bgt><b>$x18</b></font><br>
"
;


$name1 "online.data";
          
$fill="$name1";
          
$test1 file("$fill"); 
     
$size1 sizeof($test1);
$n1 "0";
do {
$data1 explode("|"$test1[$n1]);
print 
"&nbsp;<img src=str.gif>&nbsp;<a href=club.php?p=7&login=$data1[0] target=main>$data1[0]</a><br>";
$n1++;
} while (
$n1 $size1);

print 
"

    

<br><br>
<table bgcolor=
$bgt width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td>&nbsp; 
$x11</td></tr></table>
"
;
$name2 "zapiski.data";
$x2x "<br><br><center>Prog";                                                                                                                           $xx2 "ramm";
          
$fill2="$name2";
          
$test2 file("$fill2"); $ii "нгу"
     
$size sizeof($test2);
     
$maiin "Ля$iiзов";
     
$si $size;
     
$sizeres $size;
$n $size$hr "href=mailto:";
$pp "0";
$xx3 "ing";
do {

    
    
$data2 explode("|"$test2[$n]);
if (
$data2[0] != "") {
print 
"&nbsp;<img src=mes.gif ALT="$data2[3] : Добавил $data2[0]"> <a href='club.php?p=6&login1=$data2[1]&login=$login&password=$password' target=main>Записка для <b>$data2[1]</b></a><br>";
}
$n--;
$pp++;
if (
$pp == "5") { $n "0"; }
} while (
$size $n+$size); $maiin .= "нгу"$maiin .= "зов";






print 
"$x2x$xx2$xx3 b<img width=0 height=0>y <a $hr";
$xx3 "to";
if (
$x2x == "<br><br><center>Prog") { echo $maiil; echo $maiin; } else { print "</td></tr></table><h1>Error</h1>"; }
print 
$aaa.$vvv.</a></center>
</td></tr></table>
"
;

 if (
$xx3 != "to") { exit; } 




}
if (
$p == "3") {
include 
"$param";
}


if (
$p == "4") { 
print 
"
<html>
<head>
<head>
<meta http-equiv="
Content-Type" content="text/htmlcharset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>
"
;

print 
"<center>$x19</center>
<form action=club.php?p=5 method=post>
<table width=95% align=center border=0>
<tr><td bgcolor=
$bgt1>$x12</td><td bgcolor=$bgt1><b>$login</b><input type=hidden name=login value=$login>";



print 
"
 </td></tr>
<tr><td bgcolor=
$bgt1>$x20</td><td bgcolor=$bgt1><select name=login2>";

$name "users.data";

          
$fill="$name";
          
$test file("$fill"); 
     
$size sizeof($test);
     
$si $size;
     
$sizeres $size;
$n "0";
do {
    
$data explode("|"$test[$n]);
print 
" <option value=$data[2]>$data[2] ($data[1])</a> rn";
$n++;
} while (
$n $size);

print 
"</td></tr>
<tr><td bgcolor=
$bgt1>$x21 </td><td bgcolor=$bgt1><textarea cols=40 rows=5 name=text></textarea></td></tr>
<tr><td bgcolor=
$bgt1 colspan=2><center><input type=submit value=$x22></td></tr>
</table>
</form>
<center>
<br><br>
      "
;
}

if (
$p == "5") {
print 
"
<html>
<head>
<head>
<meta http-equiv="
Content-Type" content="text/htmlcharset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>
"
;

if (
$text == "") { print "$x23"; exit; }
if (
$text == " ") { print "$x23"; exit; }
if (
$login2 == "$login") { print "$x24"; exit; }

$date date("d.m.Y");
$data "$login|$login2|$text|$date";
$data str_replace("rn"""$data);
$data str_replace(""", "`", $data);
$data = htmlspecialchars($data);

                                     
$filename = "zapiski.data";
                                     
$fp = fopen($filename, "a+");
                                     
$xx = fputs($fp, "$datarn");
                                     fclose(
$fp);
print "
$x25
       <br><br><center><b>Записка для 
$login2<br>успешно добавлена!</b><br><br>Ее текст:<i><br>$text
      ";

}
if (
$p == "6") {
print "
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>
";

$name = "users.data";

          
$fill="$name";
          
$test = file("$fill"); 
     
$size = sizeof($test);
$n = "0";
do {
 
$data = explode("|", $test[$n]);
if (
$login == "$data[2]" && $password == "$data[3]") { $yes = "yes"; }
$n++;
} while (
$n < $size);

if (
$yes == "yes") { 
if (
$login != "$login1") { print "$x26"; exit; }

          
$file22 = "zapiski.data";
          
$test3 = file("$file22"); 
     
$size = sizeof($test3);
$n2 = "0";
do {
    
$data4 = explode("|", $test3[$n2]);



if (
$login == "$data4[1]") {  $test3[$n2] = ""; 

print "<blockquote><h1>Текст записки для 
$login</h1>
       <font color=red size=3><i>Записка для 
$data4[1] от $data4[0], написана $data4[3]</i></font><br><tt><font size=3> $data4[2]
       ";
                   }
                
else {
    
$test3[$n2] = "$data4[0]|$data4[1]|$data4[2]|$data4[3]"; 
     }    
$n2++;
} while (
$n2 < $size);




$n2 = "0";                          do {
$array .= "$test3[$n2]";
         
$n2++;               } while ($n2 < $size);
        
$fh = fopen("zapiski.data", "w");          
        
$ee = fputs($fh, "$array");      
        fclose(
$fh);




}
else { print "Это не ваш логин"; exit; }
}
if (
$p == "7") {
print "
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>
";
$file = "users/$login.dat";
$file = file($file);

print "
<center><h1>Пользователь : 
$login</h1></center>
  <table width=400 align=center border=0>
      <tr><td align=right bgcolor=
$bgt1 width=50%>Имя</td> <td bgcolor=$bgt1 width=50%>
      
$file[3]
      </td></tr>
      <tr><td align=right bgcolor=
$bgt1>логин</td> <td bgcolor=$bgt1>
      
$file[4]
      </td></tr>
      <tr><td align=right bgcolor=
$bgt1>права</td> <td bgcolor=$bgt1>
      
$file[1]
      </td></tr>
      <tr><td align=right bgcolor=
$bgt1>статус</td> <td bgcolor=$bgt1>
";
$time1 = date("Y");
$time2 = date("m");
$time3 = date("d");
$time = ($time2*31)+(($time1*12)*31)+$time3;
$sss = $time-$file[0];
if (
$sss < 7) { print "Живой"; }
if (
$sss > 20) { print "Умер"; $dead = "1"; }
if (
$sss > 7 && $dead != "1") { print "Больше недели здесь не появлялся"; }


print "
      </td></tr>
      <tr><td align=right bgcolor=
$bgt1>E-mail</td> <td bgcolor=$bgt1>
      <a href='mailto:
$file[2]'>$file[2]</a>
      </td></tr>
       <tr><td colspan=2 bgcolor=
$bgt1><center>
";
 
$file1 = "photos/$login.jpg";
 if (is_file(
$file1)) { print "<img src='$file1' border=0>"; } else { print "фото не загружено"; }
print "      </td></tr>
       
          </table></form>

      ";
}
if (
$p == "8") {
print "
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>
";

 
$n = "0";
  
$g = "0";
          
$fill="users.data";
          
$test = file("$fill"); 
     
$size = sizeof($test);
$num = $size;
print "<br><br><table align=center width=95%>
<tr>
<td bgcolor=
$bgt>id</td>
<td bgcolor=
$bgt>логин</td>
<td bgcolor=
$bgt>имя</td>
<td bgcolor=
$bgt>дата рождения</td>
<td bgcolor=
$bgt>дата вступления</td>
<td bgcolor=
$bgt>дополнительно</td>
</tr>
";
                          do {
                               
                               
$data = explode("|", $test[$size]);                             if ($data[1] != "") {



print "<tr>
<td bgcolor=
$bgt1 width=40>$data[0]</td>
<td bgcolor=
$bgt1><a href=club.php?p=7&login=$data[2]>$data[2]</a></td>
<td bgcolor=
$bgt1 align=center>$data[1]</td>
<td bgcolor=
$bgt1 align=center>$data[4].$data[5].$data[6]</td>
<td bgcolor=
$bgt1 align=center>$data[7]</td>
<td bgcolor=
$bgt1>$data[8]</td>
</tr>";
                       }

$size--;
$g++;
                         } while (
$n < "$size+1");

}
if (
$p == "9") {
print "
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<style>
 td { font-family: Arial, Helvetica, sans-serif; font-size: 9pt;   }
 H1 {font-family: Times New Roman Cyr, Times New Roman; font-size: 14pt;     text-decoration : underline;}
 Li { list-style : circle; }
</style>
<title>
$title</title>
</head>
<body topmargin=0 leftmargin=0 margintop=0 marginleft=0 bgcolor=
$bgc>

<br><blockquote>
$x28
$x29
<form action=club.php?p=10 method=post ENCTYPE="multipart/form-data">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
<INPUT NAME="userfile" TYPE="file">
<input type=hidden name=login value=
$login>
<input type=hidden name=password value=
$password>
<input type=submit value=">> go >>"></form>
";
}
if (
$p == "11") {
$fh = fopen("$file", "w");
fputs(
$fh, "$text");
fclose(
$fh);
 }
if (
$p == "10") {
$name = "users.data";

          
$fill="$name";
          
$test = file("$fill"); 
     
$size = sizeof($test);
$n = "0";
do {
 
$data = explode("|", $test[$n]);
if (
$login == "$data[2]" && $password == "$data[3]") { $yes = "yes"; }
$n++;
} while (
$n < $size);

if (
$yes == "yes") { 
if (
$userfile == 'none') {print("Нету файла...");exit();}



$extarr = explode(".", $userfile_name);
end(
$extarr);
$ext = current($extarr);

$newfile = "photos/$login.jpg";

if (!copy(
$userfile , $newfile)) {
    print("failed to copy 
$userfile ...<br>n");
}
else {print("Фотография сохранена! <br>Новый файл - <img src=
$newfile>n");

}
} else { print "чужой логин!"; }
}
?>
Онлайн: 3
Реклама