Script Showing Up on Main Page Script Showing Up on Main Page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Script Showing Up on Main Page

Started by saraek25, October 11, 2006, 02:44:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saraek25

I am getting this at the top of every page now:

; ?> url and all vars except $theme $cpgCurrentTheme = $_SERVER["SCRIPT_NAME"]."?"; foreach ($_GET as $key => $value) { if ($key!="theme"){$cpgCurrentTheme.= $key . "=" . $value . "&";} } $cpgCurrentTheme.="theme="; // get list of available languages $value = $CONFIG['theme']; $theme_dir = 'themes/'; $dir = opendir($theme_dir); while ($file = readdir($dir)) { if (is_dir($theme_dir . $file) && $file != "." && $file != "..") { $theme_array[] = $file; } } closedir($dir); natcasesort($theme_array); //start the output switch ($parameter) { case 'table': $return = 'not yet implemented'; break; default: $return.= $lineBreak . '' . $lineBreak; $return.= '' . $lineBreak; $return.='' . $lang_theme_selection['choose_theme'] . ''; foreach ($theme_array as $theme) { $return.= '' . strtr(ucfirst($theme), '_', ' ') . ($value == $theme ? '*' : ''). '' . $lineBreak; } if ($CONFIG['theme_reset'] == 1){ $return.= '' . $lang_theme_selection['reset_theme'] . '' . $lineBreak; } $return.= '' . $lineBreak; $return.= '' . $lineBreak; } return $return; } ?>


at http://winchesterfan.com/gallery

I moved servers and everything worked fine yesterday morning.

Any ideas on what that is or how to get it off??

Sara

Nibbler

You corrupted some file during transfer. Upload fresh copies from the Coppermine package.

saraek25

Thanks for the quick response :) Do you know which files to reupload? All?

Sara

Nibbler

Probably include/init.inc.php or include/functions.inc.php. You should re upload all just to be safe though.

saraek25

THANK YOU :)

I replaced those two files and the script is gone from the page except for " ; ?> " in the corner :) I appreciate your help a lot :)

Sara

Nibbler

Great. I just noticed you are using 1.3.3 however which is no longer supported. You should update your gallery as soon as you can.