Ошибка:
Цитата |
Warning: Cannot modify header information - headers already sent by (output started at X:\home\test1.ru\www\settings\config.php:17) in X:\home\test1.ru\www\modules\auth\logout.php on line 7 |
<?php
If (!$conect) {echo('Соединение с сервером не было установлено!<br>');}
$condb=mysql_select_db($dbname,$conect);
If (!$condb) {echo('Соединение с базой данных не было установлено!<br>');}
session_destroy(); //удаляем текущую сессию
$query = mysql_query("UPDATE `users` SET `sid` = '' WHERE `login` = '".$_SESSION['login']."'");
Header("Location: ".$surl."");
?>
<?php
$site_name='Ad2ad.ru';
$host='localhost';
$dbuser='admin';
$dbpas='061095';
$dbname='Ad2ad';
$surl='http://test1.ru';
$conect=mysql_connect("$host","$dbuser","$dbpas");?>
<?php
$modname=$_GET["modname"];
if (empty ($modname)) {$modname="projects";}
include "modules/header/index.php";
include "modules/top_reklama/index.php";
echo ('<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top">');
include "modules/blocks/index.php";
echo ('</td>
<td valign="top">');
if ($modname=="logout") {include "modules/auth/logout.php";} else {
if ($modname=="log") {include "modules/auth/log.php";} else {
if ($modname=="reg") {include "modules/register/reg.php";} else {
include "modules/".$modname."/index.php";}}}
echo ('</td>
</tr>
</table>');
?>
<?php
$modname = $_GET["modname"];
if(empty($modname))
{
$modname = "projects";
}
include "modules/header/index.php";
include "modules/top_reklama/index.php";
echo ('<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top">');
include "modules/blocks/index.php";
echo ('</td>
<td valign="top">');
if($modname == "logout")
{
include "modules/auth/logout.php";
}
else
{
if($modname == "log")
{
include "modules/auth/log.php";
}
else
{
if($modname == "reg")
{
include "modules/register/reg.php";
}
else
{
include "modules/". $modname ."/index.php";
}
}
}
echo ('</td>
</tr>
</table>');
?>