xADS - проблем +1

nasibginfo

Registered
ползвам тази система http://4storing.com/t1wko/181e7eb41aa3649e72c03d1853e2c833.html обаче във index.php дава проблем на 380 ред Parse error: parse error in C:\wamp\www\xads\index.php on line 380 моля помагайте +1
 

<?php
ob_start();
include("_engine/config.php");
// Add login/password pairs below, like described above
// NOTE: all rows except last must have comma "," at the end of line
// request login? true - show login and password boxes, false - password box only
define('USE_USERNAME', true);
// User will be redirected to this page after logout
define('LOGOUT_URL', 'http://webmaster-cp.blog4e.net/');
// time out after NN minutes of inactivity. Set to 0 to not timeout
define('TIMEOUT_MINUTES', 0);
// This parameter is only useful when TIMEOUT_MINUTES is not zero
// true - timeout time from last activity, false - timeout time from login
define('TIMEOUT_CHECK_ACTIVITY', true);
##################################################################
# SETTINGS END
##################################################################
///////////////////////////////////////////////////////
// do not change code below
/////////////////////////////////////////////////////////
//timeout in seconds
$timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 30);
// logout?
if(isset($_GET['logout'])) {
setcookie("verify", '', $timeout, '/'); // clear password;
header('Location: ' . LOGOUT_URL);
exit();
}
if(!function_exists('showLoginPasswordProtect')) {
// show login form
function showLoginPasswordProtect($error_msg) {
?>

<title>xADS - Вход</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>Please enter password to access this page</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</head>
<body>
<style>
a:link {
text-decoration: none;
color: #015885;
background: transparent;
}

a:active {
color: #FF0000;
text-decoration: none;
background: transparent;
}

a:visited {
text-decoration: none;
color: #015885;
background: transparent;
}

a:hover {
color: #000000;
text-decoration: none;
background: transparent;
}

body {
background-color: #5A77B2;
margin: 3px
}

td,div {
font-family : Verdana,Arial,sans-serif;
color : #000066;
font-size:10px;
background: transparent;
}

pre {
font-family: verdana,arial,monospace;
font-size: 10px;
margin-top: 0px;
margin-bottom: 0px;
background-color : #eeeeee;
border-width : 2px;
border-style : solid;
border-color : #ffffff;
}

table.main {
width: 98%;
background-color : #eeeeee;
border-width : 2px;
border-style : solid;
border-color : #ffffff;
}

table.header {
width: 98%;
background: transparent;
}

td.header {
font-size: 12px;
font-weight: bold;
color: #ffffff;
background: transparent;
}

td.help {
text-align: right;
color: #ffffff;
background: transparent;
}

table.menu {
width:100%;
border:0;
background-color : #ffffff;
}

table.menu_header {
width:100%;
border:0;
background: transparent;
}

td.menu_header {
font-size: 10px;
font-weight: bold;
color: #ffffff;
background: transparent;
}

td.menu_spacer {
height: 4px;
background: transparent;
}

td.menu {
background-color : #eeeeee;
}

td.menu_highlight {
background-color : #cccccc;
}

span.red {
color: #FF0000;
background: transparent;
}

span.help {
color: #ffffff;
background: transparent;
}

input.form,select.form,textarea.form {
background-color: #ffffff;
font-family: Verdana;
font-size: 10px;
color: #000066;
border-width : 1px;
border-style : solid;
border-color : #555555;
}

textarea.pagehelp {
background: transparent;
font-family : Verdana;
font-size : 10px;
color: #000066;
border: 0px;
scrollbar-DarkShadow-Color : #eeeeee;
scrollbar-Track-Color : #eeeeee;
scrollbar-Face-Color : #eeeeee;
scrollbar-Shadow-Color : #eeeeee;
scrollbar-Highlight-Color : #eeeeee;
scrollbar-3dLight-Color : #eeeeee;
scrollbar-Arrow-Color : #eeeeee;
}

</style>
<form method="post">
<table align="center" cellspacing="0" cellpadding="2" class="header">
<tr>
</tr>
</table>
<table align="center" cellpadding="2" cellspacing="2" class="main">
<tr>
<td colspan="2"><center>Моля въведете данните за вход!</center></td>
</tr>
<tr>
<td>Потребител:</td><td><input type="text" size="40" name="access_login" value="" class="form" /></td>
</tr>
<tr>
<td>Парола:</td>
<td><input type="password" size="40" name="access_password" value="" class="form" /></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="Вход" class="form" />
<br>
<font color="red"><?php echo $error_msg; ?></font><br />
</td>
</tr>

</table>
</html>

<?php
// stop at this point
die();
}
}

// user provided password
if (isset($_POST['access_password'])) {

$login = isset($_POST['access_login']) ? $_POST['access_login'] : '';
$pass = $_POST['access_password'];
if (!USE_USERNAME && !in_array($pass, $LOGIN_INFORMATION)
|| (USE_USERNAME && ( !array_key_exists($login, $LOGIN_INFORMATION) || $LOGIN_INFORMATION[$login] != $pass ) )
) {
showLoginPasswordProtect("<b>Грешни данни за вход</b>!");
}
else {
// set cookie if password was validated
setcookie("verify", md5($login.'%'.$pass), $timeout, '/');

// Some programs (like Form1 Bilder) check $_POST array to see if parameters passed
// So need to clear password protector variables
unset($_POST['access_login']);
unset($_POST['access_password']);
unset($_POST['Submit']);
}

}

else {

// check if password cookie is set
if (!isset($_COOKIE['verify'])) {
showLoginPasswordProtect("");
}

// check if cookie is good
$found = false;
foreach($LOGIN_INFORMATION as $key=>$val) {
$lp = (USE_USERNAME ? $key : '') .'%'.$val;
if ($_COOKIE['verify'] == md5($lp)) {
$found = true;
// prolong timeout
if (TIMEOUT_CHECK_ACTIVITY) {
setcookie("verify", md5($lp), $timeout, '/');
}
break;
}
}
if (!$found) {
showLoginPasswordProtect("");
}

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>xADS - Админ Панел</title>
<link rel="stylesheet" type="text/css" href="beta_style.css" media="screen" />
<script src="j1.js" language="Javascript" type="text/javascript"></script>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<style type="text/css" media="all">
@import "images/style.css";
</style>
</head>
<body>
<div class="content">

<div class="toph"></div>
<div class="right">
<div class="title"><center>Админ Панел</center></div>
<div class="nav">
<br />
<ul>
<li><a href="index.php">Начало</a></li>
<li><a href="index.php?command=banners">Банери</a></li>
<li><a href="index.php?command=codes">Рекламни кодове</a></li>
<li><a href="index.php?logout">Изход</a></li>
</ul>
</div>
<center>
<br>
</center>
</form>
<hr />

<div class="footer_text"><center> © Всички права запазени!</center>
<center><a href="mailto:semprom@abv.bg">xADS</a></center>
</div>

</div>
<div class="center">
<br>
<?php
$getse = (addslashes(htmlspecialchars(trim(strip_tags($_GET['command'])))));
switch($getse){
case banners:
include("_engine/banners.ini.php");
include("images/f.php");
break;
case remove:
include("_engine/remove.ini.php");
include("images/f.php");
break;
case codes:
include("_engine/show.ini.php");
include("images/f.php");
break;
default:


?>
<center><font size="2">Добавяне на банер</font></center>

<table align='center' width='100%'><br />
<form method='POST' action='process.php?command=add' name='insertform'>
<tr><td width='152'> Адрес на сайта</td><td width='339'><input name='href' type='text' size='58' /></td></tr>
<tr><td width='152'> Адрес на банера </td><td width='339'><input name='scr' type='text' size='58' /></td></tr>
<tr><td width='152'> Импресий </td><td width='339'><input name='allowed' type='text' size='58' /></td></tr>
<tr><td width='152'> Размер <td width='339'><select name='size'>
<option value='468x60'>468 на 60</option>
<option value='336x80'>336 на 80</option>
<option value='250x250'>250 на 250</option>
<option value='120x600'>120 на 600</option>
<option value='120x240'>120 на 240</option>
<option value='729x90'>729 на 90</option>
<option value='200x200'>200 на 200</option>
<option value='300x250'>300 на 250</option>
<option value='336x280'>336 на 280</option>
</select></td></tr>
<tr><td width='152'> Статус
<td width='339'><select name='status'><option value='enable'>Включен</option><option value='disable'>Изключен</option>
</select></td></tr>
<tr><td colspan='2' align='center'>
<br />
<input name='submit' type='submit' id='submit' value='Добави банера'/>
<input name='reset' type='reset' id='reset' value='Изчисти формата'/>
</tr></td>
</form>
</table>


</div>
<div class="footer"></div>
</div>
<div id="freecsstemplates" style="height:250px; display:none;">

</ul>
</div>
</div>
</div>
<br>

<ul id="trigger">
</body>
</html>
<?
break;
}
?>

Я пробвай сега :) ;] :lol:
 
нестава абе брат качих го на моя хост http://nasibg.info/xads/ всичко си върви без да дава тая грешка а на локала я дава етова немога да си го обясня обаче и друг път съм имал такива проблеми
 
Можеби хампа нещо те ебава..
Пробвал ли си с дург уеб сървър ? ;]
 
proba каза:
Можеби хампа нещо те ебава..
Пробвал ли си с дург уеб сървър ? ;]
не я да ползвам темата да те попитам още нещо дано да стане и да ти дам 1 значи във конфигурационния файл имам $xadsurl = "http://nasibg.info/xads"; тази променлива със стойнос така тя ми е като поставям кода някаде за да се добави банера и има линк към системата и докато беше на http://localhost/xads <-- говоря че е качен на платеня хост си имах достъп ама като промених линка на http://nasibg/xads вече нямам достъп Forbidden

You don't have permission to access /xads on this server.
 

Горе