Loading...
Помощь по скриптам | помогите найти
где то в коде цыклическа переадресацыя
AddDefaultCharset utf-8
errordocument 404 /errordocument.php
errordocument 403 /errordocument.php

#Включает отслеживание сим-ссылок

Options +FollowSymLinks

#Запускает url_rewriting

RewriteEngine On
#RewriteCond %{HTTP:X-FORWARDED-PROTO} ^https$

#RewriteRule .? - [E=HTTPS:on]

#Блокирует все ссылки, содержащие <script>

RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

#Блокирует все скрипты, которые пытаются изменить переменные PHP Globals:

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

#Блокирует все скрипты, которые пытаются изменить переменную _REQUEST:

RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

#Перенаправляет все подобные попытки на страницу с ошибкой 403 - запрещено

RewriteRule ^(.*)$ index.php [F,L]

#RewriteEngine On
#RewriteCond %{SERVER_PORT} !^443$
#разное
#RewriteRule ^start/3/?$ /rega/step3.php
RewriteRule ^loading/?$ /index.php [L,QSA]
RewriteRule ^start/?$ /start.php [L,QSA]
RewriteRule ^home/?$ /home.php [L,QSA]
RewriteRule ^password/?$ /password.php [L,QSA]
RewriteRule ^auth/?$ /auth.php [L,QSA]

RewriteRule ^exit/?$ /exit.php [L,QSA]
RewriteRule ^chat/?$ /chat.php [L,QSA]
RewriteRule ^info/?$ /info.php [L,QSA]
RewriteRule ^forum/?$ /forum.php [L,QSA]
RewriteRule ^rating_users/?$ /rating_users.php [L,QSA]
RewriteRule ^rating_clan/?$ /clan/rating_clans.php [L,QSA]
RewriteRule ^online/?$ /online.php [L,QSA]
RewriteRule ^settings/?$ /settings.php [L,QSA]
RewriteRule ^profile([0-9]*)/?$ /profile.php?user_id=$1 [L,QSA]
RewriteRule ^clan([0-9]*)/?$ /clan/index.php?id=$1 [L,QSA]
AddHandler cgi-script .example

а если точнее то файл home.php именно на нём при попытке регистрации выводит ошибку.
Страница недоступна Сайт выполнил переадресацию слишком много раз.
Удалите файлы cookie..
ERR_TOO_MANY_REDIRECTS
Ну так скинь файл home
Alex Fartovy (15.01.2019 в 19:56)
Ну так скинь файл home

[code]<?php
require_once ('config/func.php');
require_once ('config/header.php');
auth();
//


$r = rand(300,399);
//запрос sql

if(!$tourney_user){
mysql_query("INSERT INTO `tourney_user` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}
if(!$tourney_clan && $user['clan'] >= 1){
mysql_query("INSERT INTO `tourney_clan` SET `id_clan` = '".$user['clan']."'");
header('Location: ?'.$r.'');
exit();
}
if(!$pr){
mysql_query("INSERT INTO `prof` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}
//
if(!$bonus){
mysql_query("INSERT INTO `bonus` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}
//
if(!$start){
mysql_query("INSERT INTO `start` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}

if(!$pit){
mysql_query("INSERT INTO `pit` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}
if(!$mag){
mysql_query("INSERT INTO `mag` SET `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}

if($user['user_save']==0 && $start['save'] >= 3){
header('Location: /save.php');
exit();
}

if(isset($_GET['act']) && $start['save'] != 3){
mysql_query("UPDATE `start` SET `save` = `save` + 1 WHERE `id_user` = '".$user['id']."'");
header('Location: ?'.$r.'');
exit();
}
if($user['comp'] == 0){
mysql_query('UPDATE `user` SET `comp` = 1 WHERE `id` = "'.$user['id'].'"');
mysql_query('UPDATE `user` SET `all` = `all` + 500, `gold` = `gold` + 500000, `cass` = `cass` + 30, `metal` = `metal` + 30, `zr` = `zr` + 30 WHERE `id` = "'.$user['id'].'"');
//

//
//
$_SESSION['notif'] = '<font color="lime">Компенсация</font></small><br><img src="/images/icon_alm.png" width="16" height="16"> 500 <img src="/images/icon_gold.png" width="16" height="16"> 500000 <img src="/images/icon_cass.png" width="16" height="16"> 30 <img src="/images/icon_metal.png" width="16" height="16"> 30 <img src="/images/icon_zr.png" width="16" height="16"> 30';

header('Location: ?');
exit();
}
if($bonus['ok'] == 0 && $bonus['time'] < time()){
mysql_query('UPDATE `bonus` SET `ok` = 1 WHERE `id_user` = "'.$user['id'].'"');
mysql_query('UPDATE `user` SET `all` = `all` + 10, `gold` = `gold` + 5000, `cass` = `cass` + 5, `metal` = `metal` + 5, `zr` = `zr` + 5 WHERE `id` = "'.$user['id'].'"');
//
mysql_query('UPDATE `bonus` SET `time` = "'.(time() + 86399).'" WHERE `id_user` = "'.$user['id'].'"');
//
//
$_SESSION['notif'] = '<font color="lime">Ежедневный бонус</font></small><br><img src="/images/icon_alm.png" width="16" height="16"> 10 <img src="/images/icon_gold.png" width="16" height="16"> 5000 <img src="/images/icon_cass.png" width="16" height="16"> 5 <img src="/images/icon_metal.png" width="16" height="16"> 5 <img src="/images/icon_zr.png" width="16" height="16"> 5';

header('Location: ?');
exit();
}
//начало
if($start['save'] >= 3){
$clan_go = mysql_fetch_array(mysql_query("SELECT * FROM `clan_go` WHERE `id_user` = '".$user['id']."' ORDER BY `id` DESC LIMIT 1"));
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '".$clan_go['id_clan']."' ORDER BY `id` DESC LIMIT 1"));
if($clan_go){
if(isset($_GET['clan_no'])){
mysql_query("DELETE FROM `clan_go` WHERE `id` = '".$clan_go['id']."'");
header('Location: /');
exit();
}
if(isset($_GET['clan_yes']) && $clan['user'] <= 39){
mysql_query("update `user` set `clan` = '".$clan['id']."',`vstup` = '".time()."', `mosh` = '".($user['mosh']+$clan['bon1'])."', `bon2` = '".($user['bon2']+$clan['bon2'])."', `bon3` = '".($user['bon3']+$clan['bon3'])."', `clan_rang` = '1' where (`id` = '".$user['id']."')");
mysql_query("update `clan` set `user` = `user` + 1 where (`id` = '".$clan['id']."')");

mysql_query("INSERT INTO `clan_history` SET `id_clan` = '".$clan['id']."', `time` = '".time()."', `text` = '$user[login] вступил в клан'");
mysql_query("DELETE FROM `clan_go` WHERE `id_user` = '".$user['id']."'");
header('Location: /');
exit();
}
echo "<div class='menu center'>";
echo "<h3>Вас приглашают в клан<br>$clan[name]<br><small>Мощь <font color='lime'>+ ".($clan['bon1'])."</font>, Опыт <font color='lime'>+ ".($clan['bon2'])."</font>, Золото <font color='lime'>+ ".($clan['bon3'])."</font></small></h3>";
echo "<table style='width:100%;'><tr><td style='width: 33%;' class='center'><a class='link' href='?clan_yes'>Вступить</a></td>";
echo "<td style='width:33%;' class='center'><a href='?clan_no' class='link'>Отказаться</a></td></tr></table>";
echo "</div>";
}
//


echo '<center><img src="/images/icons/logo.jpg" width="100%"></center>';
GRAFkool , Нет переадрисации скорее всего это файле step3.php кинь сюда
GRAFkool , код
________
посл. ред. 15.01.2019 в 20:30; всего 1 раз(а); by Sovet
Sovet (15.01.2019 в 20:28)
GRAFkool , Нет переадрисации скорее всего это файле step3.php кинь сюда

этот файл удалён и у htaccess заблокирован
Онлайн: 5
Время:
Gen. 0.1071
(c) Bym.Guru 2010-2026