Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: akinomatics on January 11, 2017, 05:25:02 PM

Title: How can i turn the Magic_Quote_gpc ON
Post by: akinomatics on January 11, 2017, 05:25:02 PM
Hello, Pls I am having a problem in turning the Magic_quote_gpc ON, I installed smeserver 9 and restore an Old joomla site on it, but was not displaying well just due to the Magic_quote_gpc which is Off in smeserver 9.

How can I turn it on?

Any contribution will be highly appreciated.
thanks
Title: Re: How can i turn the Magic_Quote_gpc ON
Post by: Stefano on January 11, 2017, 05:34:41 PM
Hi there, welcome here..

searched a bit for Magic_quote_gpc here and in the wiki, no results.. so I guess you'd need a custom fragment for php

see https://wiki.contribs.org/Template_Tutorial
Title: Re: How can i turn the Magic_Quote_gpc ON
Post by: Jean-Philippe Pialasse on January 11, 2017, 09:57:05 PM
I just give one warning, but you must already be aware of this : http://php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc

 magic_quotes_runtime boolean
    Warning

    This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

    If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. If magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a backslash.

SME9 has php 5.3, but beware it will not be available for long, so I would advise to only enable them the time to update your joomla to a version that ask it to be disabled.