В файле index.php есть такая строчка:
<? include("./conf/auth.php"); ?> А в auth.php вот такая:
<?//Ââîä ñ ôîðìû àâòîðèçàöèè.
echo $id;
if ($id==\'\') {
include "./conf/conf_clients.php";
$result = @mysql_connect($db_host_clients, $db_user_clients, $db_password_clients);
if ($result) {$result_SQL = mysql($db_name_clients, "Select * from clients WHERE login=\'$Login\'");
if ($password == mysql_result($result_SQL,0,\'pass\'))
{SetCookie ("id", mysql_result($result_SQL,0,\'id\'), time()+3600);
SetCookie ("Login", $Login, time()+3600);
} else { echo "Íåâåðíûé ïàðîëü";};
if ($result_SQL) {ECHO "";} else {ECHO "
DATES NOT Selected!!!";}
$result = mysql_close($result);
} else {ECHO "Connect problem!!!";};};И все это в конце выдает вот это
Warning: Cannot add header information - headers already sent by (output started at d:\\www\\ktscom-client\\index.php:9) in ./conf/auth.php on line 8
Warning: Cannot add header information - headers already sent by (output started at d:\\www\\ktscom-client\\index.php:9) in ./conf/auth.php on line 9
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 6
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 7
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 8
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 9
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 10
Warning: Supplied argument is not a valid MySQL result resource in ./main.php on line 11