Вход Регистрация
Файл: region_clean/mod_reg.php
Строк: 49
<?php
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "start.php";
require_once 
"sid.php";

header("Cache-Control: no-cache");
if (
$ver == "wml")header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require_once 
"inc.php";
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link);
require_once 
"version.php";

if (
$row['level'] != 8) {
require_once 
"obolochka.php";
echo 
'<b>Нет прав доступа!</b>';
exit;
}

if (
$ver == "wml") {
    echo 
$xml $dtd '
<wml>
  <head>
    <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
  </head>
  <card id="ban" title="Регистрация">
    <p align="center">'
;
} else {
    echo 
'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" type="text/css" href="css/'
.$css.'.css"/>
    <title>Регистрация
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  </head>
  <body>'
;
}

if (isset(
$_GET['ok'])) mysql_query("UPDATE users SET mod_reg = 0 WHERE id = '" . (int)$_GET['ok'] . "' LIMIT 1");
if (isset(
$_GET['del'])) mysql_query("DELETE FROM users WHERE id = '" . (int)$_GET['del'] . "' LIMIT 1");
if (isset(
$_GET['mod_reg'])){    $f fopen('log/mod_reg.dat''w');
    
fwrite($f'<?$mod_reg = '.(int)$_GET['mod_reg'].';?>');
    
fclose($f);
    
chmod('log/mod_reg.dat'0666);
}
include 
'log/mod_reg.dat';

echo 
$mod_reg 'Проверка включена. [<a href="mod_reg.php?mod_reg&amp;' $ses '">Выкл.</a>]<br />' 'Проверка выключена. [<a href="mod_reg.php?mod_reg=1&amp;' $ses '">Вкл.</a>]<br />';
$sql mysql_query("SELECT * FROM `users` WHERE mod_reg = 1");
echo 
'Список новых юзеров:<br/>';
while (
false != ($res mysql_fetch_assoc($sql))) {
    echo 
'<a href="info.php?nk=' $res['id'] . '&amp;' $ses '">' $res['user'] . '</a> [<a href="mod_reg.php?ok=' $res['id'] . '&amp;' $ses '">Ок</a>][<a href="mod_reg.php?del=' $res['id'] . '&amp;' $ses '">Del</a>]<br />';
}

if (!
mysql_num_rows($sql)) echo 'Пусто!<br/>';
echo 
'<br/><div class = "d1"><a href = "apanel.php?'.$ses.'&amp;ref='.$ref.'">В админку</a><br/>
      <a href = "enter.php?'
.$ses.'&amp;ref='.$ref.'">В прихожую</a></div>';
include_once 
'foot.php';

?>
Онлайн: 1
Реклама