4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on December 07, 2005, 12:51:06 AM

Title: [1.7 / 1.7.1] Edit templates = no changes being saved
Post by: V@no on December 07, 2005, 12:51:06 AM
On servers where register_globals in PHP settings is turned off, editing templates from ACP (Admin Control Panel) will not save the changes.

To fix that, in admin/templates.php find:
Code: [Select]
if (isset($HTTP_GET_VARS['template_folder']) || isset($HTTP_POST_VARS['template_folder'])) {Insert above:
Code: [Select]
if (isset($HTTP_POST_VARS['content'])) {
  $content = trim($HTTP_POST_VARS['content']);
}
else {
  $content = "";
}
Title: Re: [1.7 / 1.7.1] Edit templates = no changes being saved
Post by: tatty on February 23, 2006, 05:28:17 PM
Thanks for this ;)
Title: Re: [1.7 / 1.7.1] Edit templates = no changes being saved
Post by: vile on February 25, 2006, 07:14:54 PM
hi i've got that same problem because i've got a server but is torned off register_globals
i try to talk for active that but i don't have choise, untill torn off register globals and my 4images shows error

Fatal error: Call to undefined function: show_admin_header() in /var/www/localhost/megaman/htdocs/4images/admin/home.php on line 35
i did what you say V@no but untill sohw me that error

what i must to do?
Title: Re: [1.7 / 1.7.1] Edit templates = no changes being saved
Post by: V@no on February 25, 2006, 08:26:24 PM
I think you did more that just that...the error comes from home.php file, and the fix above has nothing to do with that file...