Найдите в коде ошибку

Печать RSS
139

С
Автор
Пацак
0
<?php
header("expires: mon, 26 jul 1997 05:00:00 gmt");
header("cache-control: no-cache, must-revalidate");
header("pragma: no-cache");
header("last-modified: ".gmdate("d, d m y h:i:s")."gmt");

if ($gzip=="1") // gzip ������
{
ob_start('ob_gzhandler');
}
if (strtok($_SERVER['HTTP_USER_AGENT'],'/')!="Mozilla") {
header("Content-type:application/vnd.wap.xhtml+xml; charset=utf-8");
}else{
header("Content-type:text/html; charset=utf-8");}
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="shortcut icon" href="'.$home.'/themes/new_year/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="'.$home.'/themes/Sea-wave/xhtml.css" type="text/css" />
<title>'.$title.'</title>
</head>
<body>';

function myhtml($myhtml) {
$myhtml = str_replace('<br>','<br />',$myhtml);
$myhtml = str_replace('<hr>','<hr />',$myhtml);
$myhtml = str_replace('alt="">','alt="" />',$myhtml);
$myhtml = preg_replace('#<p align="(.*?)">#si','<p style="text-align:\1">',$myhtml);
$myhtml = str_replace('align="center','style="text-align:center',$myhtml);
$myhtml = preg_replace('#<font color="(.*?)">#si','<span style="color:\1">', $myhtml);
$myhtml = str_replace('</font>','</span>',$myhtml);
return $myhtml;
}
ob_start('myhtml');

echo '<div class="a">';
echo '<div align="center">';
if(!empty($logo))
{
echo '
<a href="'.$home.'">
<img src="'.$home.'/themes/Sea-wave/images/logo.gif" alt="" /><br />';}

echo '</div>';
echo '</div>';
С
Автор
Пацак
0
echo '<div class="lk">';
echo '<div align="center">';
echo $textlogo;
if(isset($_SESSION['pass']) && isset($passw) && $_SESSION['pass'] == $passw)
{
echo"<br /><a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\" class=\"cc\">Личный кабинет</a><br />";
echo vremya_sut($sdvigclock).' '.$login.'<br />';
if($new_ls > 0)
{
echo"<a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"err\">Новые сообщения: $new_ls</a><br />";
}
if($status == 1 || $status == 2 || $status == 3)
{
echo"<a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\" class=\"cc\">Админ панель</a><br />";
}
}
else
{
echo"<br /><a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\" class=\"cc\">Вход</a><br />";
echo"<a href=\"$dob_url/modules/kabinet/reg.php?".session_name()."=".session_id()."\" class=\"cc\">Регистрация</a><br />";
}
echo '</div>';
echo '</div>';

function re_icon($re_icon)
{
if(!strstr($_SERVER['SCRIPT_NAME'], 'modules/forum') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/zagruz') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/book') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/admin') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/kabinet/notepad'))
{
$re_icon = str_replace ('&#187;','<img src="/themes/Sea-wave/images/ico.png" alt="&#187;" />',$re_icon);
$re_icon = str_replace ('»','<img src="/themes/Sea-wave/images/ico.png" alt="&#187;" />',$re_icon);
}
return $re_icon;
}


ob_start(re_icon);
####################
echo '<div align="center">';
$file_all_top = file_get_contents($dob_url.'/data/reklama_all_top.txt');
if(!empty($file_all_top))
{
echo'<p class="rekl">'.$file_all_top.'</p>';
}
echo '</div>';
####################
list($msec,$sec)=explode(chr(32),microtime());
$headtime=$sec+$msec;
?>
С
Автор
Пацак
0
что сделать,что бы когда пользователь заходил ему показывало только вход и регистрацию,а то когда он заходит,его распознает как меня,и ему доступен лич.кабинет,админ панель,а реги и входа наоборот нету.

Пришелец
0
Напиши в личку.помогу чем смогу D

[̲̅$̲̅(̲̅ιοο̲̅)̲̅$̲̅
0
Права админа пропиши в коде.
M

Пацак
0
f($status == 1 || $status == 2 || $status == 3)
{
echo"<a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\" class=\"cc\">Админ панель</a><br />";
}
У админа какой статус? У простого пользователя какой?
J

Оранжевые штаны
0
Ну чеб люди помогали надо код в спец тег вставлять! Например мне лень. Потому что ничего не видно вообще)
С
Автор
Пацак
0
Все,сам справился.
M

Пацак
0
+ Тебе за это ставлю
S

Пришелец
0
Здраствуйте, у меня проблема вот она что эта за ошибки Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/settings.php on line 35 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/settings.php on line 37 Deprecated: Function ereg() is deprecated in /usr/home/spaxs/htdocs/sys/inc/ipua.php on line 13 Deprecated: Function eregi_replace() is deprecated in /usr/home/spaxs/htdocs/sys/inc/ipua.php on line 28 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 127 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/fnc/backup.php on line 6 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/inc/fnc.php on line 374 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/fnc/license.php on line 9 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/fnc/license.php on line 9 Deprecated: Function eregi() is deprecated in /usr/home/spaxs/htdocs/sys/fnc/license.php on line 9 Deprecated: Function eregi() is
Стикеры / Теги / Правила / Топ тем / Топ постов / Поиск