ZenphotoCMS Forum
PHP Code at Top of Page - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: PHP Code at Top of Page (/thread-9602.html)



PHP Code at Top of Page - junko - 2012-02-07

Hi guys,

I'm attempting to move a zenphoto installation. I've run setup again and at the top of each page now is the following PHP code:

k]; ksort($filters); $c = 0; foreach ( (array) array_keys($filters) as $priority ) { foreach ($filters[$priority] as $filter=>$data) { if ( $filter == $idx ) { return $c; } $c++; } } return false; } ?>

It was also present in the setup page and doesn't appear to be in the index.php.

Any light on this would be much appreciate.

Cheers.




PHP Code at Top of Page - sbillard - 2012-02-08

The code is from the functions-filter.php script. But the only way I can think of that it could actually show up on a page is if there has been some corruption of the file.




PHP Code at Top of Page - junko - 2012-02-08

That was exactly the issue, sbillard. I re-uploaded the file and now all is well!

Thank you very much.