<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[DeltaScripts — Weird issue with PHP / PHP Classifieds]]></title>
		<link>http://www.deltascripts.com/board/viewtopic.php?id=13694</link>
		<atom:link href="http://www.deltascripts.com/board/extern.php?action=feed&amp;tid=13694&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Weird issue with PHP / PHP Classifieds.]]></description>
		<lastBuildDate>Wed, 12 May 2010 14:40:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Weird issue with PHP / PHP Classifieds]]></title>
			<link>http://www.deltascripts.com/board/viewtopic.php?pid=49818#p49818</link>
			<description><![CDATA[<p>Hi -</p><p>I&#039;m facing a weird issue with PHP Classifieds and can&#039;t find what I missed...</p><p>I&#039;m moving PHP Classifieds 7.5:</p><p>-&gt; from a Linux box running Apache 2.2.4, PHP 5.2.3 and MySQL 5.0.45<br />-&gt; to a Sun Solaris box running Sun Java Web Server 7.0, PHP 5.2.13 and MySQL 5.1.40</p><p>I just did a backup/restore of the MySQL database, took the whole PHP Classifieds files tree, changed the url and the path in /admin/config/gen_inc.php. Files permissions and php.ini are similar and I have several PHP apps running flawlessly on the same machine. I cross checked everything and didn&#039;t find anything abnormal.</p><p>Now, when try to access to PHP Classified, I get a broken PHP page like:</p><div class="codebox"><pre><code>SECURITY WARNING
You have not followed our instructions to delete install.php immediately after install. Leaving this file here is a major security problem and opens your site up to wild hacking.

&quot;; } print &#039;
&#039;; // If we are on the frontpage, write out welcome message along with flags if ($catid==0 AND !$special_mode) { echo &quot;
$name_of_site
&quot;; echo formatString($welcome_message, array(&quot;$name_of_site&quot;)); include &quot;templates/flags_frontpage.html&quot;; ?&gt;
&quot;; // Print out categories include(&quot;catcol.php&quot;); // This is the column containing special ads if (!empty($set_special) AND !isset($_REQUEST[&quot;catid&quot;])) { print &quot;    &quot;; include &quot;special.php&quot;; print &quot;
&quot;; } // Print out ad-listings include(&quot;links.php&quot;); // Counter (if activated from admin area) $frontpage=1; if (isset($set_count_dynamic)) { $str = &quot;&quot;; if (isset($validation)) { if ($validation&lt;&gt;&quot;&quot;) $str = &quot; where valid=1&quot;; } $row = mysql_fetch_array(mysql_query(&quot;select count(ad_username) from $ads_tbl $str&quot;)); $upd_ads = $row[&quot;count(ad_username)&quot;]; $row = mysql_fetch_array(mysql_query(&quot;select count(email) from $usr_tbl&quot;)); $upd_users = $row[&quot;count(email)&quot;]; $row = mysql_fetch_array(mysql_query(&quot;select sum(sitehits) from $ads_tbl $str&quot;)); $upd_sitehits = $row[&quot;sum(sitehits)&quot;]; if (!$upd_sitehits) $upd_sitehits = 0; $la_s_bar = formatString($la_s_bar, array(&quot;$upd_users&quot;,&quot;$upd_ads&quot;,&quot;$upd_sitehits&quot;)); $show_bar = 1; } print &quot;\n&quot;; print &quot;&quot;; include_once(&quot;footer_inc.php&quot;); ?&gt;</code></pre></div><p>or:</p><div class="codebox"><pre><code>SECURITY WARNING
You have not followed our instructions to delete install.php immediately after install. Leaving this file here is a major security problem and opens your site up to wild hacking.
&quot;;     } } /* while ($lCatCounter&lt;100) { $lCatFatherId=1; $lCatAllowAds=&#039;on&#039;; $lCatName=&quot;testcat_&quot; . $lCatCounter; $lCatDescription=&quot;&quot;; $sql=&quot;insert into $cat_tbl (cat_name,cat_description,cat_allow_ads,cat_fatherid) values (&quot;; $sql.=&quot;&#039;$lCatName&#039;, &#039;$lCatDescription&#039;,&#039;$lCatAllowAds&#039;,$lCatFatherId)&quot;; $res=q($sql); $id=mysql_insert_id();     $lCatCounter++; }     */ // If we are on the frontpage, write out welcome message along with flags $tplIndex=new TplLoad; $tplIndex-&gt;assign(&quot;catname&quot;,&quot;$lCatName&quot;); $val_string = &quot;&quot;; $tplIndex-&gt;assign(&quot;index_catid&quot;,$catid); $tplIndex-&gt;assign(&quot;banner&quot;,$lBanner); $tplIndex-&gt;assign(&quot;isFrontpage&quot;,&quot;$fp&quot;); if ($fp &amp;&amp; !$set_latest_fp) $tplIndex-&gt;assign(&quot;HideLastListFp&quot;,&quot;1&quot;); $tplIndex-&gt;assign(&quot;index_nameofsite&quot;,$set_sitename); $tplIndex-&gt;assign(&quot;index_welcome&quot;,formatString(WELCOME_MESSAGE, array(&quot;$set_sitename&quot;))); $tplIndex-&gt;assign(&quot;index_welcome_1&quot;,formatString(LA_WELCOME_1, array(&quot;$set_sitename&quot;))); $tplIndex-&gt;assign(&quot;index_welcome_2&quot;,formatString(LA_WELCOME_2, array(&quot;$set_sitename&quot;))); $tplIndex-&gt;assign(&quot;index_welcome_91&quot;,formatString(LA_WELCOME_LOGGED_1, array($_SESSION[&#039;user_name&#039;]))); $tplIndex-&gt;assign(&quot;index_welcome_92&quot;,formatString(LA_WELCOME_LOGGED_2, array($_SESSION[&#039;user_name&#039;]))); $tplIndex-&gt;assign(&quot;member&quot;,$_SESSION[&quot;valid_user&quot;]); $tplIndex-&gt;assign(&quot;premium_picture&quot;,$set_premium_picture); $tplIndex-&gt;assign(&quot;set_special&quot;,$set_special); $tplIndex-&gt;assign(&quot;premium_picture&quot;,$set_premium_picture); $tplIndex-&gt;assign(&quot;set_special&quot;,$set_special); if ($set_special) { $limit=$set_premium_limit; $sql_str = &quot;select ad_title, ad_id from $ads_tbl where ad_is_premium=1 &quot;; if ($catid AND $set_special_categories) $sql_str.=&quot; AND ad_cat_id=$catid&quot;; if ($set_special_only_frontpage AND $catid) $sql_str.=&quot; AND 2&lt;1&quot;; $sql_str.=&quot; $val_string order by ad_id desc limit $limit&quot;; $res_sp = q($sql_str); $sp_i=0; while ($row_sp=mysql_fetch_array($res_sp)) { $s_title = $row_sp[&quot;ad_title&quot;];     $s_id = $row_sp[&quot;ad_id&quot;]; $lSpecialAds[$sp_i][&quot;s_title&quot;]=dotString($s_title,$set_special_string_length); $lSpecialAds[$sp_i][&quot;s_id&quot;]=$s_id; $lSpecialAds[$sp_i][&quot;s_link&quot;]=linkDetail($s_id); $sp_i++; } $tplIndex-&gt;assign(&quot;special_list&quot;,$lSpecialAds);     if ($sp_i==0) $tplIndex-&gt;assign(&quot;size&quot;,&quot;100&quot;);     else $tplIndex-&gt;assign(&quot;size&quot;,&quot;70&quot;);     } else {     $tplIndex-&gt;assign(&quot;size&quot;,&quot;100&quot;);     } $tplIndex-&gt;display(&quot;index.tpl&quot;); include_once(&quot;footer_inc.php&quot;); ?&gt;</code></pre></div><p>Of course, the install.php file doesn&#039;t exist.</p><p>It&#039;s just like if the paths couldn&#039;t be read.</p><p>Any hint would be greatly appreciated!</p><p>Thanks,</p><p>Georges</p>]]></description>
			<author><![CDATA[null@example.com (Georges)]]></author>
			<pubDate>Wed, 12 May 2010 14:40:05 +0000</pubDate>
			<guid>http://www.deltascripts.com/board/viewtopic.php?pid=49818#p49818</guid>
		</item>
	</channel>
</rss>
