<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8717&amp;type=atom" />
	<updated>2020-03-31T18:21:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8717</id>
		<entry>
			<title type="html"><![CDATA[Re: get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37209#p37209" />
			<content type="html"><![CDATA[<p>Links with information about get_magic_quotes_gpc()</p><p>https://www.php.net/manual/en/security.magicquotes.php<br />https://www.php.net/manual/en/function.get-magic-quotes-gpc.php</p><p>Regards.</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2020-03-31T18:21:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37209#p37209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37153#p37153" />
			<content type="html"><![CDATA[<p>Let&#039;s get clients feedback before move on with it. I heard it was no more and no further alternative to use it.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-03-18T09:44:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37153#p37153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37152#p37152" />
			<content type="html"><![CDATA[<p>This seems to be the way to do it. Have just consulted Janusz about it. Awaiting his comment.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-03-18T06:05:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37152#p37152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37146#p37146" />
			<content type="html"><![CDATA[<p>Hello, </p><p>Your PHP version must be 7.4. From this version the get_magic_quotes_gpc was deprecated. And there is no alternative to use it. So lets take out the code and make it work on. This function available inside <strong>session.inc</strong> and <strong>isession.inc</strong>.</p><div class="codebox"><pre><code>function strip_quotes($data)
{
    if(get_magic_quotes_gpc()) {
        if(is_array($data)) {
            foreach($data as $k =&gt; $v) {
                $data[$k] = strip_quotes($data[$k]);
            }
            return $data;
        } else
            return stripslashes($data);
    }
   
}</code></pre></div><p>And just remove the if condition like this </p><div class="codebox"><pre><code>function strip_quotes($data)
{
        if(is_array($data)) {
            foreach($data as $k =&gt; $v) {
                $data[$k] = strip_quotes($data[$k]);
            }
           return $data;
        } else
            return stripslashes($data);
    
    
}</code></pre></div><p>.</p><p>Hope it will fix your problem to work on.&nbsp; if its fixed just reply to this conversation, @joe will update to the core.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-03-17T16:24:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37146#p37146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[get_magic_quotes_gpc is depreciated in php version 7.0]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37144#p37144" />
			<content type="html"><![CDATA[<p>Hi Experts,</p><p>while upgrading the php version from 5.6 to 7.0 it is giving error get_magic_quotes_gpc is depreciated.</p><p>Regards,<br />Zia</p>]]></content>
			<author>
				<name><![CDATA[zia]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42577</uri>
			</author>
			<updated>2020-03-16T12:00:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37144#p37144</id>
		</entry>
</feed>
