General Error: Illegal use of $_SERVER

PHP, MySQL, JavaScript, HTML, CSS и др.
Аватар
LiveBG
Извън линия
Потребител
Потребител
Мнения: 19
Регистриран на: 18 Дек 2018, 16:18

General Error: Illegal use of $_SERVER

Мнение от LiveBG » 20 Дек 2018, 17:26

Quickness написа: 20 Дек 2018, 16:59

Код за потвърждение: Избери целия код

<?php
header('Content-Type: text/html; charset=UTF-8');
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$request->enable_super_globals();
include($phpbb_root_path . 'common.' . $phpEx);


$user->session_begin();
$auth->acl($user->data);
$user->setup();

session_start();
ob_start();
DEFINE('justplay',true);
require "configs/connect.php";
require "inc/function_poll.php";
include 'inc/Lang.php';

if (isset($_GET['lang'])) {
    $lang = new Lang($_GET['lang']);
} else {
    $lang = new Lang('bg');
}

$lang->setLanguage();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo $lang->titlehome; ?> &bull; <?php echo $lang->moto; ?></title>
<meta name="author" content="Anton Stoqnov" />
<meta name="copyright" content="© Alienplay.info" />
<meta name="Keywords" content="counterstrike, Alienplay, cs servers, сървъри, servers, sms, banlist, сайт, форум, забавления, игра, интернет, sarvari, гейминг, клан, новини, лан, онлайн, hlds, halflife, dedicated, hns, aim, classic, jump, forum, site, plugins, amxmodx, amxx, articles, news, статии, csf, anticheat, alien, amd, hosting, copyright, hdd, external, lgsl, online statistic, support, team, esl, members, players, gothic, extreme, gameplay, cpu, the best, bulgaria, optimization" /> 
<meta name="Description" content="<?php echo $lang->deschome; ?>" />
<meta http-equiv="Content-Language" content="bg" />
<meta name="rating" content="general" />
<meta name="revisit-after" content="1 Days" />
<meta name="robots" content="index,follow" /> 
<link type="text/css" rel="StyleSheet" href="CSS.css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script_site.js"></script>
<script type="text/javascript" src="js/ujs.js"></script>
<script type="text/javascript" src="js/scrolltopcontrol.js"></script> 
</head>
<body>
<TABLE cellpadding="0" cellspacing="0" border="0" width="<?php echo $width; ?>" align="center"><TBODY><TR><TD align="right" width="0%" style="background:url('images/img/left.png') right repeat-y;"><IMG src="images/img/rl.png" border="0"></TD><TD width="90%" valign="top">


<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="30" style="background:url('images/img/menun.png');"> 
 <TBODY><TR> 
<?php require ('inc/menu.php'); ?>



<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url('images/img/center.png') repeat-x;">
<tr> 
<td>
<div align="left"> 
<center><TABLE width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url('images/img/center.png') repeat-x;"><TBODY><TR><TD><DIV align="left"><div style="position: absolute; margin-left: 14px; margin-top: 13px;" ><table border="0" cellpadding="5" cellspacing="0" width="100%" style="border:1px solid #;"></table></center></div> 
<div align="left" style="padding:40px;"><a href="index.php"><img src="images/head/logo_v3.png"></a></div></td> 
<td><div style="padding-right:45px;"> 
<div class="headeradd">
<?php require ('inc/reklama.php'); ?>
</div>
</div></td> 
</table> 


<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="41" style="border-bottom:1px solid #fefefe;background:url('images/img/login.png');"> 
<TBODY><TR> 
<td style="text-shadow: 0px 1px 0px #fff; color: #696969;
font-weight: bold; font-size: 11px; padding: 6px;">
<?php
if ($user->data['user_id'] == ANONYMOUS)
{
echo"<div style='padding-top: 3px;' /></div><img src='images/icons/icon_info_red.png' alt='' style='margin-left:5px; padding-right: 6px; margin-top:-3px; vertical-align: middle;' /><b> $lang->noregister</b>
";
}
else {
}
?></td>
<td style="text-shadow: 0px 1px 0px #fff; color: #696969;
font-size: 11px; padding: 6px;">
<?php require ('inc/login.php'); ?></td>
</TD> 
</tr> 
</DIV>
</TD> 
</TR> 
</TBODY></TABLE> 

</center></center>


</TD></TR></TBODY></TABLE>

<TABLE cellpadding="0" cellspacing="0" border="0" width="100%"><TBODY><TR><TD valign="top" style="background:#f1f1f1;">

<TABLE border="0" cellpadding="0" cellspacing="4" width="100%"><TBODY><TR>

<TD valign="top" style="width:180px;">
<?php require ('inc/navigation.php'); ?>
<?php require ('inc/left_menu.php'); ?>
</td>
</TD>
<TD valign="top">

  <?php
include 'inc/pagination.php';
$results    = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `novini`"), 0); 
if ($results > 0) {
$pagination = pagination($results, array(
    'get_vars'  => array(
        'cat'   => (int)@$_GET['cat'],
        'view'  => @$_GET['view']
    ), 
    'per_page'  => 4,
    'per_side'  => 3,
    'get_name'  => 'page'
));

$sql = mysql_query("SELECT * FROM `novini` order by `id` DESC LIMIT {$pagination['limit']['first']}, {$pagination['limit']['second']}");	
 $n_banner = 0;
 while($post = mysql_fetch_assoc($sql))	{
$id = $post['id'];
$rl = mysql_query('SELECT COUNT(*) as ctn FROM `com_news` WHERE novina='.$id);
$ruw = mysql_fetch_assoc($rl);
$comments = htmlspecialchars($ruw['ctn']);
if($n_banner == 2) {
include('inc/reklama2.php'); 
}
?>

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%" style=""><TBODY><TR><TD style="border:1px solid #c5c5c5;background:#ebebeb;padding:5px;-moz-border-radius: 2px;-webkit-border-radius:2px;border-radius: 2px;">

<table style="width: 100%; border-collapse: collapse">
<tbody><tr><td style='width: 33px; height: 66px; letter-spacing: 0px; word-spacing: 0px; background-image: url("/images/news/left2.png"); background-repeat: no-repeat; background-position: 100% 100%'>
<br></td><td style='letter-spacing: 0px; word-spacing: 0px; vertical-align: top; background-image: url("/images/news/center.png"); background-repeat: repeat-x; background-position: 50% 100%'>
<table style="width: 100%; border-collapse: collapse"><tbody><tr><td style="height: 27px; letter-spacing: 0px; padding-left:5px; word-spacing: 0px">
<div class="ntitle" style="padding-bottom:3px;"><a href="<?php echo 'news-'.htmlspecialchars_decode($post['id']).'.php '; ?>"><?php echo ' '.htmlspecialchars_decode($post['zaglavie']).' '; ?></a></div>
</td></tr><tr><td style="height: 25px; letter-spacing: 0px; word-spacing: 0px">
<div align="left" class="ndescr"><?php echo $lang->avtor; ?>:<a><?php echo ' '.htmlspecialchars_decode($post['avtor']).' '; ?></a> &middot; <?php echo $lang->pro4etena; ?>: <?php echo ' '.htmlspecialchars_decode($post['procheten']).' '; ?> &middot; <?php echo $lang->data; ?>: <?php echo ' '.htmlspecialchars_decode($post['date']).''; ?></div>
</td></tr></tbody></table></td>
<td style='width: 55px; letter-spacing: 0px; word-spacing: 0px; background-image: url("/images/news/right.png"); background-repeat: no-repeat; background-position: 0% 100%'>
<div class="ncom"><a href="<?php echo 'news-'.htmlspecialchars_decode($post['id']).'.php '; ?>"><?php if($comments == 0){

echo "0";

}
else
{
echo "$comments";
}
?></a></div>
</td></tr></tbody></table>
<table style="width: 100%; border-collapse: collapse"><tbody><tr>
<td style="vertical-align: top; padding-bottom: 5px; padding-left: 0px; letter-spacing: 0px; word-spacing: 0px">
<div class="ten"><img width="150" height="100" IMG src="<?php 
if ($post['img'] != null){  
echo ''.htmlspecialchars_decode($post['img']).'';
} else {
      echo 'images\news\no_photo.gif';
   }
 ?>" align="center" width="150" height="100" border="0"></div></td>
<td style="vertical-align: top; padding-left: 5px; letter-spacing: 0px; word-spacing: 0px">
<div align="left" class="nmessage"><br><?php echo ''.htmlspecialchars_decode($post['novina']).' '; ?></div>
</td></tr></tbody></table>
</TD></TR></TBODY></TABLE>
<br /> 
<?php
$n_banner++;
				

} 
echo '<br>';
    echo $pagination['output'];
} else {
    echo '<div class="error message">
		 <h3>'.$lang->nqmanovini.'</h3>
		 <p>'.$lang->explainnew.'</p></div>';
}                        
echo '<br>'; ?>

<TD valign="top" style="width:180px;">
<?php require ('inc/right_menu.php'); ?>
</TD>
</tr>
</table>
</td></tr></table>

<TABLE border="0" cellpadding="8" cellspacing="0" width="100%" style="background: url('images/img/foot.png')" height="45"><TBODY><TR><TD align="left" style="background:url('images/img/foot_left.png');" width="450"><br>
<div align="left" style="padding-left:10px;"> <?php echo $lang->sd; ?><br><?php echo $lang->reserved; ?></div></td>
<td align="right"><br><div align="right" id="mfooter">
<?php require ('inc/88x31.php'); ?>
</div>
</TD></TR></TBODY></TABLE>
</TD><TD align="left" width="0%" style="background:url('images/img/right.png') left repeat-y;"><IMG src="images/img/rl.png" border="0"></TD></TR></TBODY></TABLE>

</body>

</html>

не стана

Аватар
Алекс
Извън линия
Потребител
Потребител
Мнения: 114
Регистриран на: 03 Яну 2017, 01:13
Местоположение: $this->locale()
Се отблагодари: 3 пъти
Получена благодарност: 9 пъти
Обратна връзка:

General Error: Illegal use of $_SERVER

Мнение от Алекс » 20 Дек 2018, 17:37

LiveBG написа: 20 Дек 2018, 17:26
Quickness написа: 20 Дек 2018, 16:59

Код за потвърждение: Избери целия код

<?php
header('Content-Type: text/html; charset=UTF-8');
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$request->enable_super_globals();
include($phpbb_root_path . 'common.' . $phpEx);


$user->session_begin();
$auth->acl($user->data);
$user->setup();

session_start();
ob_start();
DEFINE('justplay',true);
require "configs/connect.php";
require "inc/function_poll.php";
include 'inc/Lang.php';

if (isset($_GET['lang'])) {
    $lang = new Lang($_GET['lang']);
} else {
    $lang = new Lang('bg');
}

$lang->setLanguage();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo $lang->titlehome; ?> &bull; <?php echo $lang->moto; ?></title>
<meta name="author" content="Anton Stoqnov" />
<meta name="copyright" content="© Alienplay.info" />
<meta name="Keywords" content="counterstrike, Alienplay, cs servers, сървъри, servers, sms, banlist, сайт, форум, забавления, игра, интернет, sarvari, гейминг, клан, новини, лан, онлайн, hlds, halflife, dedicated, hns, aim, classic, jump, forum, site, plugins, amxmodx, amxx, articles, news, статии, csf, anticheat, alien, amd, hosting, copyright, hdd, external, lgsl, online statistic, support, team, esl, members, players, gothic, extreme, gameplay, cpu, the best, bulgaria, optimization" /> 
<meta name="Description" content="<?php echo $lang->deschome; ?>" />
<meta http-equiv="Content-Language" content="bg" />
<meta name="rating" content="general" />
<meta name="revisit-after" content="1 Days" />
<meta name="robots" content="index,follow" /> 
<link type="text/css" rel="StyleSheet" href="CSS.css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script_site.js"></script>
<script type="text/javascript" src="js/ujs.js"></script>
<script type="text/javascript" src="js/scrolltopcontrol.js"></script> 
</head>
<body>
<TABLE cellpadding="0" cellspacing="0" border="0" width="<?php echo $width; ?>" align="center"><TBODY><TR><TD align="right" width="0%" style="background:url('images/img/left.png') right repeat-y;"><IMG src="images/img/rl.png" border="0"></TD><TD width="90%" valign="top">


<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="30" style="background:url('images/img/menun.png');"> 
 <TBODY><TR> 
<?php require ('inc/menu.php'); ?>



<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url('images/img/center.png') repeat-x;">
<tr> 
<td>
<div align="left"> 
<center><TABLE width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url('images/img/center.png') repeat-x;"><TBODY><TR><TD><DIV align="left"><div style="position: absolute; margin-left: 14px; margin-top: 13px;" ><table border="0" cellpadding="5" cellspacing="0" width="100%" style="border:1px solid #;"></table></center></div> 
<div align="left" style="padding:40px;"><a href="index.php"><img src="images/head/logo_v3.png"></a></div></td> 
<td><div style="padding-right:45px;"> 
<div class="headeradd">
<?php require ('inc/reklama.php'); ?>
</div>
</div></td> 
</table> 


<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="41" style="border-bottom:1px solid #fefefe;background:url('images/img/login.png');"> 
<TBODY><TR> 
<td style="text-shadow: 0px 1px 0px #fff; color: #696969;
font-weight: bold; font-size: 11px; padding: 6px;">
<?php
if ($user->data['user_id'] == ANONYMOUS)
{
echo"<div style='padding-top: 3px;' /></div><img src='images/icons/icon_info_red.png' alt='' style='margin-left:5px; padding-right: 6px; margin-top:-3px; vertical-align: middle;' /><b> $lang->noregister</b>
";
}
else {
}
?></td>
<td style="text-shadow: 0px 1px 0px #fff; color: #696969;
font-size: 11px; padding: 6px;">
<?php require ('inc/login.php'); ?></td>
</TD> 
</tr> 
</DIV>
</TD> 
</TR> 
</TBODY></TABLE> 

</center></center>


</TD></TR></TBODY></TABLE>

<TABLE cellpadding="0" cellspacing="0" border="0" width="100%"><TBODY><TR><TD valign="top" style="background:#f1f1f1;">

<TABLE border="0" cellpadding="0" cellspacing="4" width="100%"><TBODY><TR>

<TD valign="top" style="width:180px;">
<?php require ('inc/navigation.php'); ?>
<?php require ('inc/left_menu.php'); ?>
</td>
</TD>
<TD valign="top">

  <?php
include 'inc/pagination.php';
$results    = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `novini`"), 0); 
if ($results > 0) {
$pagination = pagination($results, array(
    'get_vars'  => array(
        'cat'   => (int)@$_GET['cat'],
        'view'  => @$_GET['view']
    ), 
    'per_page'  => 4,
    'per_side'  => 3,
    'get_name'  => 'page'
));

$sql = mysql_query("SELECT * FROM `novini` order by `id` DESC LIMIT {$pagination['limit']['first']}, {$pagination['limit']['second']}");	
 $n_banner = 0;
 while($post = mysql_fetch_assoc($sql))	{
$id = $post['id'];
$rl = mysql_query('SELECT COUNT(*) as ctn FROM `com_news` WHERE novina='.$id);
$ruw = mysql_fetch_assoc($rl);
$comments = htmlspecialchars($ruw['ctn']);
if($n_banner == 2) {
include('inc/reklama2.php'); 
}
?>

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%" style=""><TBODY><TR><TD style="border:1px solid #c5c5c5;background:#ebebeb;padding:5px;-moz-border-radius: 2px;-webkit-border-radius:2px;border-radius: 2px;">

<table style="width: 100%; border-collapse: collapse">
<tbody><tr><td style='width: 33px; height: 66px; letter-spacing: 0px; word-spacing: 0px; background-image: url("/images/news/left2.png"); background-repeat: no-repeat; background-position: 100% 100%'>
<br></td><td style='letter-spacing: 0px; word-spacing: 0px; vertical-align: top; background-image: url("/images/news/center.png"); background-repeat: repeat-x; background-position: 50% 100%'>
<table style="width: 100%; border-collapse: collapse"><tbody><tr><td style="height: 27px; letter-spacing: 0px; padding-left:5px; word-spacing: 0px">
<div class="ntitle" style="padding-bottom:3px;"><a href="<?php echo 'news-'.htmlspecialchars_decode($post['id']).'.php '; ?>"><?php echo ' '.htmlspecialchars_decode($post['zaglavie']).' '; ?></a></div>
</td></tr><tr><td style="height: 25px; letter-spacing: 0px; word-spacing: 0px">
<div align="left" class="ndescr"><?php echo $lang->avtor; ?>:<a><?php echo ' '.htmlspecialchars_decode($post['avtor']).' '; ?></a> &middot; <?php echo $lang->pro4etena; ?>: <?php echo ' '.htmlspecialchars_decode($post['procheten']).' '; ?> &middot; <?php echo $lang->data; ?>: <?php echo ' '.htmlspecialchars_decode($post['date']).''; ?></div>
</td></tr></tbody></table></td>
<td style='width: 55px; letter-spacing: 0px; word-spacing: 0px; background-image: url("/images/news/right.png"); background-repeat: no-repeat; background-position: 0% 100%'>
<div class="ncom"><a href="<?php echo 'news-'.htmlspecialchars_decode($post['id']).'.php '; ?>"><?php if($comments == 0){

echo "0";

}
else
{
echo "$comments";
}
?></a></div>
</td></tr></tbody></table>
<table style="width: 100%; border-collapse: collapse"><tbody><tr>
<td style="vertical-align: top; padding-bottom: 5px; padding-left: 0px; letter-spacing: 0px; word-spacing: 0px">
<div class="ten"><img width="150" height="100" IMG src="<?php 
if ($post['img'] != null){  
echo ''.htmlspecialchars_decode($post['img']).'';
} else {
      echo 'images\news\no_photo.gif';
   }
 ?>" align="center" width="150" height="100" border="0"></div></td>
<td style="vertical-align: top; padding-left: 5px; letter-spacing: 0px; word-spacing: 0px">
<div align="left" class="nmessage"><br><?php echo ''.htmlspecialchars_decode($post['novina']).' '; ?></div>
</td></tr></tbody></table>
</TD></TR></TBODY></TABLE>
<br /> 
<?php
$n_banner++;
				

} 
echo '<br>';
    echo $pagination['output'];
} else {
    echo '<div class="error message">
		 <h3>'.$lang->nqmanovini.'</h3>
		 <p>'.$lang->explainnew.'</p></div>';
}                        
echo '<br>'; ?>

<TD valign="top" style="width:180px;">
<?php require ('inc/right_menu.php'); ?>
</TD>
</tr>
</table>
</td></tr></table>

<TABLE border="0" cellpadding="8" cellspacing="0" width="100%" style="background: url('images/img/foot.png')" height="45"><TBODY><TR><TD align="left" style="background:url('images/img/foot_left.png');" width="450"><br>
<div align="left" style="padding-left:10px;"> <?php echo $lang->sd; ?><br><?php echo $lang->reserved; ?></div></td>
<td align="right"><br><div align="right" id="mfooter">
<?php require ('inc/88x31.php'); ?>
</div>
</TD></TR></TBODY></TABLE>
</TD><TD align="left" width="0%" style="background:url('images/img/right.png') left repeat-y;"><IMG src="images/img/rl.png" border="0"></TD></TR></TBODY></TABLE>

</body>

</html>

не стана
->

Код за потвърждение: Избери целия код

<?php
header('Content-Type: text/html; charset=UTF-8');
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$user->session_begin();
$auth->acl($user->data);
$user->setup();
$request->enable_super_globals();
01001100 01100001 01110010 01100001 01110110 01100101 01101100

Аватар
LiveBG
Извън линия
Потребител
Потребител
Мнения: 19
Регистриран на: 18 Дек 2018, 16:18

General Error: Illegal use of $_SERVER

Мнение от LiveBG » 20 Дек 2018, 18:29

Код за потвърждение: Избери целия код

<?php
header('Content-Type: text/html; charset=UTF-8');
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$user->session_begin();
$auth->acl($user->data);
$user->setup();
$request->enable_super_globals();
[/quote]


Пробвах но пак не стана нещо не тръгва гледайте линк: http://cs-breakdown.best-servers.eu/index.php (Не Реклама)

Аватар
kr33dz
Извън линия
Потребител
Потребител
Мнения: 186
Регистриран на: 17 Дек 2018, 20:27
Местоположение: In my dreams.
Се отблагодари: 5 пъти
Получена благодарност: 21 пъти

General Error: Illegal use of $_SERVER

Мнение от kr33dz » 20 Дек 2018, 18:40

path-a е грешен. Защо правиш всичко това на поддомейн на друг сайт?

Аватар
MadNESs
Извън линия
Потребител
Потребител
Мнения: 207
Регистриран на: 21 Мар 2017, 21:43
Местоположение: Sofia
Се отблагодари: 16 пъти
Получена благодарност: 11 пъти
Обратна връзка:

General Error: Illegal use of $_SERVER

Мнение от MadNESs » 20 Дек 2018, 20:56

МНЕНИЕТО Е СКРИТО ОТ СТРАНА НА МОДЕРАТОР! ЦЪКНИ ВЪРХУ ЛЕНТАТА ЗА ДА ГО ПРЕГЛЕДАШ.
Последно промяна от OciXCrom на 20 Дек 2018, 22:20, променено общо 1 път.
Причина: Създаване напрежение

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Уеб Програмиране”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 5 госта