Просмотр файла wwphpmaster1.03/www.phpedited.com/adm/anketa.php

Размер файла: 7.33Kb
<?php
////////////////////////////////////////////////////////////////////////////
//               -_- W|W PHP-master -_-                                   //
//                                                                        //
//                Copyright 2008 MyIE                                     //
//  Create and Design by -_- MyIE                                         //
//  Site (web)           -_- http://www.phpedited.com                     //
//  Site (wap)           -_- http://wap.phpedited.com                     //
//  E-mail (MyIE)        -_- [email protected]                           //
//  ICQ (MyIE)           -_- 952-11-78                                    //
//                                                                        //
//  Вы не имеете право убирать копирайт                                   //
//  оффициального сайта!                                                  //
//This program is free software: you can redistribute it and/or modify    //
//it under the terms of the GNU General Public License as published by    //
//the Free Software Foundation, either version 3 of the License, or       //
//(at your option) any later version.                                     //
//                                                                        //
//This program is distributed in the hope that it will be useful,         //
//but WITHOUT ANY WARRANTY; without even the implied warranty of          //
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            //
//GNU General Public License for more details.                            //
//                                                                        //
//You should have received a copy of the GNU General Public License       //
//along with this program. If not, see <http://www.gnu.org/licenses/>.    //
////////////////////////////////////////////////////////////////////////////
require_once"../tmpl/cnf.php";
require_once"../tmpl/func.php";
require_once"../tmpl/ses.php";
require_once"../tmpl/hd.php";
require_once"../tmpl/hd_dw.php";

$f=fopen("../wap/lcl/panel3.dt","r");
$ifda=fgets($f);
$ifda=trim($ifda);
if ($ifda==1)
{
echo "<table border=0 cellspacing=5 cellpadding=0 width=100%>";
echo "<tr>";
echo "<td valign=_top width=100%>";
require_once"../panel/panel3q.php";
echo "</td>";
echo "</tr>";
echo "</table>";
}
else
{
echo "</td>";
echo "</tr>";
echo "</table>";
}

$f=fopen("../wap/lcl/panel1.dt","r");
$ifda=fgets($f);
$ifda=trim($ifda);
if ($ifda==1)
{
echo "<table border=0 cellspacing=5 cellpadding=0 width=100%>";
echo "<tr>";
echo "<td valign=_top>";
require_once"../panel/panel1q.php";
echo "</td>";
echo "<td width=100% valign=_top>";
}
else
{
echo "<table border=0 cellspacing=5 cellpadding=0 width=100%>";
echo "<tr>";
echo "<td valign=_top width=100%>";
}
?>

<table border=0 cellspacing=5 cellpadding=0 width=100%>
<tr>
<?php
echo("<td background='../thm-wb/$url_thm/pls.gif' align=center>");
echo("<img src='../thm-wb/$url_thm/plsl.gif' align=left>");
echo("<img src='../thm-wb/$url_thm/plsr.gif' align=right>");
?> 
Изменение данных
</td>
</tr>
<tr>
<td align=center>

<?php
echo("Юзер <font color=red>$log_pr_adm</font>");
$file_array=file("../wap/lcl/prof/$log_pr_adm");
?>
<table cellpadding=0 cellspacing=0>
  <tr>
<?php
echo "<form method='post' action='anketa_edited_adm.php?log_pr_adm=$log_pr_adm'>";
?>
    <td>Логин:</td>
<?php
$file_array[0]=trim($file_array[0]);
echo "<td><input name='$log' type='text' value='$file_array[0]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Пароль:</td>
<?php
$file_array[1]=trim($file_array[1]);
echo "<td><input name='pass' type='text' value='$file_array[1]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>E-mail адрес:</td>
<?php
$file_array[19]=trim($file_array[18]);
echo "<td><input name='e_mail' type='text' value='$file_array[18]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
    <td>Уровень доступа:</td>
<td>
<select name='dostup' style='width:140px'>
<option value='101'>Admin
<option value='102'>SuperModerator
<option value='103'>Moderator
<option value='1'>User
</td>
  </tr>
  <tr>
    <td>Оператор: </td>
<?php
$file_array[3]=trim($file_array[3]);
echo "<td><input name='operator' type='text' value='$file_array[3]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Интересы: </td>
<?php
$file_array[4]=trim($file_array[4]);
echo "<td><input name='interested' type='text' value='$file_array[4]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Род занятий: </td>
<?php
$file_array[5]=trim($file_array[5]);
echo "<td><input name='work' type='text' value='$file_array[5]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Город: </td>
<?php
$file_array[6]=trim($file_array[6]);
echo "<td><input name='City' type='text' value='$file_array[6]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Мобила: </td>
<?php
$file_array[7]=trim($file_array[7]);
echo "<td><input name='mobile' type='text' value='$file_array[7]' size=20 style='width:140px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>День рожденья: </td>
  </tr>
  <tr>
    <td>Дата</td>
<?php
$file_array[8]=trim($file_array[8]);
echo "<td><input name='datar' type='text' value='$file_array[8]' size=20 style='width:80px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Месяц</td>
<?php
$file_array[9]=trim($file_array[9]);
echo "<td><input name='month' type='text' value='$file_array[9]' size=20 style='width:80px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>Год</td>
<?php
$file_array[10]=trim($file_array[10]);
echo "<td><input name='year' type='text' value='$file_array[10]' size=20 style='width:80px' class=input>&nbsp;</td>";
?>
  </tr>
  <tr>
    <td>О себе: </td>
<?php
$file_array[11]=trim($file_array[11]);
echo "<td><textarea cols=40 rows=5 name=about class=input>$file_array[11]</textarea></td>";
?>
  </tr>
</table>
<br><center><input value='Изменить' type='submit' class=submit></form></center>

<table cellpadding=0 cellspacing=>
  <tr>
    <td>Забанить</td>
  </tr>
  <tr>
<?php
echo "<form method='post' action='anketa_banned.php?log_pr_adm=$log_pr_adm'>";
?>
    <td>Банить по:</td>
<td>
<select name='banned' style='width:140px'>
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo "<option value='$log'>Нику";
echo "<option value='$ip'>IP";
?>
</td>
  </tr>
  <tr>
    <td>Время бана:</td>
<td>
<select name='timeban' style='width:140px'>
<option value='1'>1 час
<option value='6'>6 часов
<option value='12'>12 часов
<option value='24'>24 часа
<option value='96'>4 дня
<option value='168'>7 дней
<option value='336'>14 дней
<option value='672'>1 месяц
<option value='999999999999999'>Вечный бан
</td>
  </tr>
</table>
<br><center><input value='Банить' type='submit' class=submit></form></center>
<a href=index.php?enter=right>В админ-панель</a><br>

</td>
</tr>
</table>

<?php
$f=fopen("../wap/lcl/panel2.dt","r");
$ifda=fgets($f);
$ifda=trim($ifda);
if ($ifda==1)
{
echo "</td>";
echo "<td width=100% valign=_top>";
require_once"../panel/panel2q.php";
}

require_once"../tmpl/dw.php";
decoder();
echo "</BODY>";
echo "</HTML>";
?>