Scrub
07-13-2002, 07:57 PM
Hello all,
I've installed countless hack that have included the editing of functions.php. I get this error whenever viewing the thread.
Parse error: parse error, unexpected '}', expecting ']' in /home/www/theonlinelounge/forums/admin/functions.php(432) : eval()'d code on line 28
Now here is the lines between 1 and 55.
<?php
error_reporting(7);
// start prep shutdown function
$noshutdownfunc = 0; // #CHANGE ME IF YOU CAN'T USE register_shutdown_function
$ourtimenow = time(); // Make this available to all files
// Defined constants used for user field.
// Hope to convert all user fields into one integer.
define ("SHOWSIGNATURES", 1);
define ("SHOWAVATARS", 2);
define ("SHOWIMAGES", 4);
define ("SHOWVBCODE", 8);
unset($templatecache);
// ###################### Start getpagenav #######################
// template-based page splitting system from 3dfrontier.com :)
function getpagenav($results,$address) {
global $perpage,$pagenumber,$pagenavpages;
if ($results <= $perpage) {
return "";
}
$totalpages = ceil($results/$perpage);
if ($pagenumber>1) {
$prevpage = $pagenumber-1;
eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";");
}
if ($pagenumber<$totalpages) {
$nextpage = $pagenumber+1;
eval("\$nextlink = \"".gettemplate("pagenav_nextlink")."\";");
}
while ($curpage++<$totalpages) {
if ( ( $curpage <= $pagenumber-$pagenavpages || $curpage >= $pagenumber+$pagenavpages ) && $pagenavpages!=0 ) {
if ($curpage==1) {
eval("\$firstlink = \"".gettemplate("pagenav_firstlink")."\";");
}
if ($curpage==$totalpages) {
eval("\$lastlink = \"".gettemplate("pagenav_lastlink")."\";");
}
} else {
if ($curpage==$pagenumber) {
eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";");
} else {
eval("\$pagenav .= \"".gettemplate("pagenav_pagelink")."\";");
}
}
}
eval("\$pagenav = \"".gettemplate("pagenav")."\";");
return $pagenav;
}
Would one you of you be as to so kind to help me on this? The site co-owner thinks it may be with the away hack. But I did a search on the forums and found nothing! :(. This error only show up in in showthread. I mean it works fine on my localhost, but not on web server. The first post does not show up in the showthread, neither do the replys. :o. Could it be because of the other errors we were having with the FTP about the Warning: 206 errors and junk. :o
I've installed countless hack that have included the editing of functions.php. I get this error whenever viewing the thread.
Parse error: parse error, unexpected '}', expecting ']' in /home/www/theonlinelounge/forums/admin/functions.php(432) : eval()'d code on line 28
Now here is the lines between 1 and 55.
<?php
error_reporting(7);
// start prep shutdown function
$noshutdownfunc = 0; // #CHANGE ME IF YOU CAN'T USE register_shutdown_function
$ourtimenow = time(); // Make this available to all files
// Defined constants used for user field.
// Hope to convert all user fields into one integer.
define ("SHOWSIGNATURES", 1);
define ("SHOWAVATARS", 2);
define ("SHOWIMAGES", 4);
define ("SHOWVBCODE", 8);
unset($templatecache);
// ###################### Start getpagenav #######################
// template-based page splitting system from 3dfrontier.com :)
function getpagenav($results,$address) {
global $perpage,$pagenumber,$pagenavpages;
if ($results <= $perpage) {
return "";
}
$totalpages = ceil($results/$perpage);
if ($pagenumber>1) {
$prevpage = $pagenumber-1;
eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";");
}
if ($pagenumber<$totalpages) {
$nextpage = $pagenumber+1;
eval("\$nextlink = \"".gettemplate("pagenav_nextlink")."\";");
}
while ($curpage++<$totalpages) {
if ( ( $curpage <= $pagenumber-$pagenavpages || $curpage >= $pagenumber+$pagenavpages ) && $pagenavpages!=0 ) {
if ($curpage==1) {
eval("\$firstlink = \"".gettemplate("pagenav_firstlink")."\";");
}
if ($curpage==$totalpages) {
eval("\$lastlink = \"".gettemplate("pagenav_lastlink")."\";");
}
} else {
if ($curpage==$pagenumber) {
eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";");
} else {
eval("\$pagenav .= \"".gettemplate("pagenav_pagelink")."\";");
}
}
}
eval("\$pagenav = \"".gettemplate("pagenav")."\";");
return $pagenav;
}
Would one you of you be as to so kind to help me on this? The site co-owner thinks it may be with the away hack. But I did a search on the forums and found nothing! :(. This error only show up in in showthread. I mean it works fine on my localhost, but not on web server. The first post does not show up in the showthread, neither do the replys. :o. Could it be because of the other errors we were having with the FTP about the Warning: 206 errors and junk. :o