Jump to content

Recommended Posts

Recently we updated PHP 4 to PHP 5 and we have some code that was writing by a 3rd party which is no longer supporting their code and we cannot get the code to work. the errors are below. Thanks in advance

 

.Notice: A non well formed numeric value encountered in /home/hannibal/public_html/CE4/mainfile.php on line 23

 

Notice: Undefined variable: _SESSION in /home/hannibal/public_html/CE4/mainfile.php on line 27

 

Notice: Undefined variable: val in /home/hannibal/public_html/CE4/mainfile.php on line 30

 

Notice: Undefined variable: val in /home/hannibal/public_html/CE4/mainfile.php on line 32

 

Notice: Undefined variable: module_preview in /home/hannibal/public_html/CE4/mainfile.php on line 119

 

Line 23 = $general_time =

 

mktime(gmdate("H,i,s,m,d,y"));

 

Line 27 thru 32 =

 

if ($_SESSION['validated']==0) {

$handle = @file(base64_decode("aHR0cDovL2NsYW5lbmdpbmUuY29tL3JlZ2tleV9maWxlcy8=").$_SERVER['HTTP_HOST']."_".$set['sitekaccess'].base64_decode("LnR4dA=="));

if(is_array($handle)){list(,$val)=each($handle);}

if($val==1) {$_SESSION['validated']=$val;}else{$_SESSION['validated']=0;}

}

return $val;

 

Line 119 =

 

if (!$module_preview) {

 

 

Notice: Undefined index: back in /home/hannibal/public_html/CE4/index.php on line 30

 

. "<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" onLoad=\"return loopback('".$_GET['back']."');\" background=\"themes/$Default_Theme/$Whole_Site_BG\">\n"

 

Link to comment
https://forums.phpfreaks.com/topic/260627-php-4-to-php-5-issue/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.