Pereiti prie turinio

Nepasileidžia PHP failas


Rekomenduojami pranešimai

Sveiki, nepasileidžia in.php failas, error rodo paskutinėje eilutėje..

Parse error: syntax error, unexpected $end in /home/blogz/domains/top.our.lt/public_html/in.php on line 136

<?php
error_reporting(E_ALL);
require 'functions.php';

if (empty($_REQUEST['id'])) $id = ''; else $id = intval($_REQUEST['id']);
if (empty($_REQUEST['ip'])) $ip = ''; else $ip = check_input($_REQUEST['ip']);
if (empty($_REQUEST['used_gate'])) $used_gate = ''; else $used_gate = check_input($_REQUEST['used_gate']);
if (empty($_REQUEST['voterip'])) $voterip = ''; else $voterip = check_input($_REQUEST['voterip']);
$show_cats = 'N';

db_connect();
checkip();
getsettings();
getlooks();
$goto = 'Y';

if (!id_exists($id)) error_msg('ID Invalid', 'The ID you have voted for is invalid!', 'Y', 'Y');
if ($id == '') error_msg('No ID Set!', 'There was no ID set to vote for the site.', 'Y', 'Y');
$cookiename = $prefix."".$id.'_rlin';
if (empty($HTTP_COOKIE_VARS[$cookiename])) $HTTP_COOKIE_VARS[$cookiename] = ''; else $HTTP_COOKIE_VARS[$cookiename] = $HTTP_COOKIE_VARS[$cookiename];
$votetime = (time() + $vote_time);

$site_info = mysql_query('select * from voxrank where id = '.$id);
$i = mysql_fetch_assoc($site_info);


if ($use_gate == 'Y' & $used_gate == 'Y' & $voterip == $ip) {
if ($use_gate != 'Y') {
	header('Location: index.php?vote=nogateway');
	die;
}
if ($used_gate != 'Y') {
	header('Location: index.php?vote=neverusedgate');
	die;
}
if ($voterip != $ip) {
	if ($show_cats == 'Y') {
		header('Location: index.php?cat='.$i['cat'].'&vote=gateipdosenotmatch');
		die;
	} else {
		header('Location: index.php?vote=gateipdosenotmatch');
		die;
	}
}
if (empty($id)) {
header('Location: index.php?vote=noid');
die;
}
if ($HTTP_COOKIE_VARS[$cookiename] == $cookiename) {
header('Location: index.php?vote=cookie');
die;
}
if ($i['lastip'] == $ip) {
if ($show_cats == 'Y') {
header('Location: index.php?vote=ipmatched');
die;
}
mysql_query("UPDATE voxrank SET hitsin=hitsin+1, lastip='".$ip."' WHERE id = ".$id."");
setcookie($cookiename, $cookiename, $votetime);
header('Location: index.php');
die;
}


if ($HTTP_COOKIE_VARS[$cookiename] == $cookiename) {
header('Location: index.php');
die;
} else {

if ($use_gate == 'Y') {
require 'include/header.php';
?>
<center><font face="<?php echo $font_face; ?>" size="<?php echo $title_size; ?>"><?php echo $site_title; ?> - Gateway Page</font></center>
<br />
<?php
//mainmenu();
?>

<form action="in.php" method="post">
<input type="hidden" name="voterip" value="<?php echo $ip; ?>">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="used_gate" value="Y">
<br>
<center><input type="submit" value="Vote For Site!"></center>
</form>
<br>
<center><font face="<?php echo $font_face; ?>" size="<?php echo $font_size; ?>"><a href="index.php">If you where tricked to enter this site please click here!</a></font></center>
<br>
<?php
require 'include/footer.php';
mysql_close();
die;
} else {
mysql_query("UPDATE voxrank SET hitsin=hitsin+1, lastip='".$ip."' WHERE id = ".$id."");
setcookie($cookiename, $cookiename, $votetime);
header('Location: index.php');
die;
}
}

if ($i['lastip'] == $ip) {
header('Location: index.php');
die;
} else {
if ($use_gate == 'Y') {
require 'include/header.php';
?>
<center><font face="<?php echo $font_face; ?>" size="<?php echo $title_size; ?>"><?php echo $site_title; ?> - Gateway Page</font></center>
<?php
mainmenu();
?>

<form action="in.php" method="post">
<input type="hidden" name="voterip" value="<?php echo $ip; ?>">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="used_gate" value="Y">
<br>
<center><input type="submit" value="Vote For Site!"></center>
</form>
<br>
<center><font face="<?php echo $font_face; ?>" size="<?php echo $font_size; ?>"><a href="index.php">If you where tricked to enter this site please click here!</a></font></center>
<br>
<?php
require 'include/footer.php';
mysql_close();
die;
} else {
mysql_query("UPDATE voxrank SET hitsin=hitsin+1, lastip='".$ip."' WHERE id = ".$id."");
setcookie($cookiename, $cookiename, $votetime);
header('Location: index.php');
die;
}
}

mysql_close();
?>

Gal žino kame problema? niekaip nerandu kas blogai..

Redagavo Charlie
Nuoroda į pranešimą
Dalintis kituose puslapiuose

Neužbaigei } skliaustų. Atidaromųjų { yra 18, o uždaromųjų { 17. Jei identuotum kodą, būtum pats ta atradęs :)

 

Tarp kitko, php kodo nebūtina užbaigt ?>. Jei tai yra kodas prieš outputą, netgi nerekomenduojama, kad koks nereikalaingas characteris nepraslystų ir nesutrugdytų headerius išsiųst

Redagavo Ingmaras
Nuoroda į pranešimą
Dalintis kituose puslapiuose

Prisijunkite prie diskusijos

Jūs galite rašyti dabar, o registruotis vėliau. Jeigu turite paskyrą, prisijunkite dabar, kad rašytumėte iš savo paskyros.

Svečias
Parašykite atsakymą...

×   Įdėta kaip raiškusis tekstas.   Atkurti formatavimą

  Only 75 emoji are allowed.

×   Nuorodos turinys įdėtas automatiškai.   Rodyti kaip įprastą nuorodą

×   Jūsų anksčiau įrašytas turinys buvo atkurtas.   Išvalyti redaktorių

×   You cannot paste images directly. Upload or insert images from URL.

Įkraunama...
  • Dabar naršo   0 narių

    Nei vienas registruotas narys šiuo metu nežiūri šio puslapio.

×
×
  • Pasirinkite naujai kuriamo turinio tipą...