Jump to content

htaccess shows php code


JustMike

Recommended Posts

Hi, I have a problem after I moved a site froma a webhosting company to another.

After I finished moving the files and the database I had the surprise to see the php code in the browser.

For example, this is my home.php file:

<?phprequire_once "include/code.php";loggedinorreturn();if($USER){	if ($_SERVER["REQUEST_METHOD"] === "POST" && $USER)		{			$choice = mysql_real_escape_string(htmlspecialchars($_POST["choice"]));				if ($USER && $choice != "" && $choice < 256 && $choice == floor($choice)){					$res = sql_query("SELECT id FROM polls ORDER BY added DESC LIMIT 1") or sqlerr();					$arr = mysql_fetch_assoc($res) or die("No poll");					$pollid = $arr["id"];					$userid = $USER["id"];					$res = sql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr();					$arr = mysql_fetch_assoc($res);					if ($arr) die("Dupe vote");					mysql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or sqlerr();					mysql_query("UPDATE users SET poll_voted = 'yes' WHERE id = $USER[id] AND poll_voted = 'no'") or sqlerr();					if (mysql_affected_rows() != 1)						stderr("Error", "An error occured. Your vote has not been counted.");						header("Location: home.php");						die;				}		}}stdhead("Home");//news + poll (side by side ?)if($USER){echo "<table border='0' width='910'>";echo "<tr><td class='news_side' style='padding: 5px;vertical-align: top;'>";//news START	$select_news = mysql_query("SELECT * FROM news_items") or sqlerr(__FILE__,__LINE__);		echo "<div id='accordion'>";			while($row = mysql_fetch_assoc($select_news)){			echo "<h3><b>".$row['title']."</b> added on <em>".$row['added']."</em></h3>";			echo "<div><p>".$row['body']."</p></div>";			}		echo "</div>";		echo '<script>				$( "#accordion" ).accordion();			</script>';//news END//seeding opportunity Startif($USER['id'] == 1){			$uid = $USER['id'];$t_q1 = <<<SQLSELECT userid AS uid, torrentid AS tid, complete_date AS cd, id AS tidt, leechers AS l FROM snatched, torrent INNER JOIN on(torrentid = id)WHERE uid = {$uid} AND cd <> '0000-00-00 00:00:00' AND l <> '0'SQL;#		$my_q = "SELECT * FROM snatched WHERE userid = {$uid} AND complete_date <> '0000-00-00 00:00:00'";$tq = @mysql_query($t_q1);		if(mysql_num_rows($tq) != 0){		$htmlout = "<br/><div id='accordion'>";		$htmlout .= "<h3>Seeding Opportunity</h3>";		$htmlout .= "<div><p></p></div>";		$htmlout .= "</div>";		echo $htmlout;		}}//seeding opportunity End//chat STARTecho "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 636px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/chat_new_index.png);background-color: #367074; width: 636px; height: 20px;padding: 0; margin: 0;'><font style='font-size: 11px; color: white; float: right;padding-right: 5px;'>  [<a style="color:#FFFFFF;" href="javascript: void(0)" onclick="window.open('shoutbox_popup.php', 'windowname1', 'width=588, height=450'); return false;"><font style=''>Open chat in Pop-Up</font></a>]   [<a style='color:#FFFF99;' href='shoutbox' target='sbox'>refresh</a>]  </font>	</td></tr>";echo "<tr><td>";echo "<iframe src='shoutbox.php' width='630' height='300' align='center' frameborder='0' name='sbox' marginwidth='0' class='sbced' marginheight='0' border='0'></iframe>";echo "</td></tr>";echo "<tr><td>";echo "	<form action='shoutbox.php' method='get' target='sbox' style='padding-bottom: 0px;' name='shbox' onSubmit='mySubmit()'>	<span align='center'>	<img src='pic/shout_now_arrow.PNG'>	<input class='inputf' type='text' name='shbox_text' size='60' style='height: 18px;background: url(pic/shout_msg_bg_1.png);border: 1px solid #5a5a5a;'>	<input type='submit' class='button1' value=' Shout! ' style='background: url(pic/shout_msg_bg_1.png);border: 1px solid #5a5a5a;'>	<input type='hidden' name='sent' value='yes'>		<span align='center'>	<a href="javascript: SmileIT(':-)','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/smile1.gif border='0'></a>	<a href="javascript: SmileIT(':smile:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/smile2.gif border='0'></a>	<a href="javascript: SmileIT(':-D','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/grin.gif border='0'></a>	<a href="javascript: SmileIT(':-|','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/noexpression.gif border='0'></a>	<a href="javascript: SmileIT(':-/','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/confused.gif border='0'></a>	<a href="javascript: SmileIT(':-(','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img border=0 src=pic/smilies/sad.gif border='0'></a>	<a href="javascript: SmileIT(':weep:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/weep.gif border='0'></a>	<a href="javascript: SmileIT(':-O','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/ohmy.gif border='0'></a>	<a href="javascript: SmileIT('8-)','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/cool1.gif border='0'></a>	<a href="javascript: SmileIT(':yawn:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/yawn.gif border='0'></a>	<a href="javascript: SmileIT(':sly:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/sly.gif border='0'></a>	<a href="javascript: SmileIT(':weirdo:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/weirdo.gif border='0'></a>	<a href="javascript: SmileIT(':sneaky:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/sneaky.gif border='0'></a>	<a href="javascript: SmileIT(':kiss:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/kiss.gif border='0'></a>	<a href="javascript: SmileIT(':evil:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/evil.gif border='0'></a>	<a href="javascript: SmileIT(':yucky:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/yucky.gif border='0'></a>	<a href="javascript: SmileIT(':wave:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/wave.gif border='0'></a>	<a href="javascript: SmileIT(':?:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/question.gif border='0'></a>	<a href="javascript: SmileIT(':lol:','shbox','shbox_text')" style='padding: 0px 3px 0px 3px;'><img src=pic/smilies/laugh.gif border='0'></a>	<a href="javascript: PopMoreSmiles('shbox','shbox_text')" style='font-family: philosopher; font-size: 14px;'><b>All Smilies</b></a>		</span>	</form>";echo "</td></tr>";echo "</table>";//chat END/*Active Users START*****************************************************/	if (get_user_class() >= UC_POWER_USER){	$dt = gmtime() - (60 * 5);	$dt = sqlesc(get_date_time($dt));	$res = sql_query("SELECT id, username, iconitasb, class, warned, donor, isdj, gender FROM users WHERE last_access >= $dt ORDER BY class DESC") or print(mysql_error());	$numberactive = mysql_num_rows($res);	while ($arr = mysql_fetch_assoc($res))		{			if ($activeusers) $activeusers .= ",n";	switch ($arr["class"])		{	case UC_HUNTER:$arr["username"] = '<font color="#151B8D">'.$arr['username'].'</font>'; break;			case UC_STAFFLEADER:$arr["username"] = '<font color="#F0F8FF" style="font-size: 12px;">'.$arr['username'].'</font>';break;			case UC_SYSOP:$arr["username"] = "<font color="#6eb7be" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_CODDER:$arr["username"] = "<font color="#2F4F4F" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_ELITE:$arr["username"] = "<font color="#4B0082" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_ADMINISTRATOR:$arr["username"] = "<font color="#E2A012" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_ELITEMOD:$arr["username"] = "<font color="#F0E68C" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_MODERATOR:$arr["username"] = "<font color="#696969" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_POWER:$arr["username"] = "<font color="#00BFFF" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_UPLOADER:$arr["username"] = "<font color="#FA8072" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_JUNIOR_UPLOADER:$arr["username"] = "<font color="#046288" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_ICELEGEND:$arr["username"] = "<font color="#BA55D3" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_SPECIALVIP:$arr["username"] = "<font color="#7B68EE" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_EXTREMVIP:$arr["username"] = "<font color="#1F005C" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_VIP:$arr["username"] = "<font color="#008000" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_ICE_LOVER:$arr["username"] = "<font color="#008080" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_EXTREME_USER:$arr["username"] = "<font color="#7F6A00" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_POWER_USER:$arr["username"] = "<font color="#80A82A" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_USER:$arr["username"] = "<font color="#000000" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;			case UC_HAHALERA:$arr["username"] = "<font color="#FF0000" style='font-size: 12px;'>" . $arr["username"] . "</font>";break;  }$arr["username"] = '<a href="userdetails?id='.$arr['id'].'">'.$arr["username"].'</a>';if ($arr["donor"] == "yes")  $star = "<img src="pic/star.gif" alt="Donated"/>";else $star = "";if ($arr["warned"] == "yes")  $warn = "<img src="pic/warned.gif" alt="Warned"/>";else $warn = "";if ($arr["isdj"] == "yes")  $isdjj = "<img src=/pic/isdj.gif title='This user is DJ'>";else $isdjj = "";$donator = $arr["donor"] > 0;  if ($donator)    $activeusers .= "";    $activeusers .= $arr["username"].$star.$warn.$isdjj;}if (!$activeusers)  $activeusers = "Nici un user online in ultimele 5 minute.";  $dt = gmtime() - 3600;$dt = sqlesc(get_date_time($dt));$res = sql_query("SELECT id, username, class, warned, donor FROM users WHERE last_access >= $dt ORDER BY username") or print(mysql_error());while ($arr = mysql_fetch_assoc($res))if ($rec["value"] < $numberactive) sql_query("UPDATE config SET value=$numberactive, text='".get_date_time()."' WHERE name='max_online'");echo "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 636px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/active_users_title.PNG);background-color: #367074; width: 636px; height: 20px;padding: 0; margin: 0;'></td></tr><tr><td>";echo $activeusers;echo "</td></tr></table>";}/*Active Users END*****************************************************/	//forumsecho "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 636px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/now_in_forums_title.png);background-color: #367074; width: 636px; height: 20px;padding: 0; margin: 0;'></td></tr><tr><td>"; 	echo "<table width='100%'>		<td style='background: #366f74;border:1px solid #778d44;'>Topic</td>		<td style='background: #366f74;border:1px solid #778d44;' width='7%'>Author</td>		<td style='background: #366f74;border:1px solid #778d44;' width='25%'>Last Post</td>	</tr>";  $res = mysql_query("SELECT posts.id AS pid, posts.topicid, posts.userid AS userpost, posts.added, topics.id AS tid, topics.userid AS usertopic, topics.subject, topics.forumid, topics.lastpost, topics.views, forums.name, forums.minclassread, forums.postcount, users.username, topicposter.username AS tusername  FROM posts, topics, forums, users, users AS topicposter  WHERE posts.topicid = topics.id AND topics.forumid = forums.id AND posts.userid = users.id AND topics.userid = topicposter.id AND minclassread <=" . $USER["class"] . "  ORDER  BY posts.added DESC   LIMIT 5");$i = 0;  while ($postsx = mysql_fetch_assoc($res))  {  $i++;  if($i == 5){$dotted_style = "";}else{  $dotted_style = "style='border-bottom: 1px dotted black;font-size:14px;'";  }  $title = ucwords($postsx["subject"]);	echo "<tr>";	echo "<td {$dotted_style}>		<a style='color: #cbd93f;font-family: philosopher;' href="forums.php?action=viewtopic&topicid={$postsx["tid"]}&page=p{$postsx["pid"]}#{$postsx["pid"]}"><b><i>{$title}</i></b></a><br />in <a style='color: #92b058;font-family: philosopher;' href="forums.php?action=viewforum&forumid={$postsx["forumid"]}">{$postsx["name"]}</a></td>";	echo "<td {$dotted_style}><a style='color: #cbd93f;font-family: philosopher;' href=userdetails.php?id={$postsx["usertopic"]}><b>{$postsx["tusername"]}</b></a></td>";	echo "<td {$dotted_style}>{$postsx["added"]}<br />by <a style='color: #cbd93f;font-family: philosopher;' href=userdetails.php?id={$postsx["userpost"]}><b>{$postsx["username"]}</b></a></td>";	echo "</tr>";  }	echo "</table>";echo "</td></tr></table>";//forumsecho "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 636px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/affiliates_title_bg.png);background-color: #367074; width: 636px; height: 20px;padding: 0; margin: 0;'></td></tr><tr><td>";echo "<marquee onMouseover='this.scrollAmount=2' onMouseout='this.scrollAmount=6'><a target='_blank' href='http://www.alphatherm.org/'><img width='160' height='32' border='0' alt='AlphaTherm' title='AlphaTherm'  src='/pic/alpha_term.gif'><a target='_blank' href='http://www.icetorrent.org/'><img src='http://img96.imageshack.us/img96/5152/icetorrento.png' WIDTH=160 HEIGHT=32></a><a target='_blank' href='http://www.ronudism.ro/'><img src='/pic/RoNudism.jpg' WIDTH=160 HEIGHT=32></a><a target='_blank' href='http://www.restaurant-bellini.ro'><img src='pic/bellini.png' title='Bellini, Restaurant Italian' WIDTH=160 HEIGHT=32></a></marquee>";echo "</td></tr></table>";echo "</td><td class='poll_side' style='width: 250px;padding: 5px;vertical-align: top;'>";/*poll START*****************************************************/  // Get current poll  $res = sql_query("SELECT * FROM polls ORDER BY id DESC LIMIT 1") or sqlerr();  if($pollok=(mysql_num_rows($res)))  {  	$arr = mysql_fetch_assoc($res);  	$pollid = $arr["id"];  	$userid = $USER["id"];  	$question = $arr["question"];  	$o = array($arr["option0"], $arr["option1"], $arr["option2"], $arr["option3"], $arr["option4"],    	$arr["option5"], $arr["option6"], $arr["option7"], $arr["option8"], $arr["option9"],    	$arr["option10"], $arr["option11"], $arr["option12"], $arr["option13"], $arr["option14"],    	$arr["option15"], $arr["option16"], $arr["option17"], $arr["option18"], $arr["option19"]);  // Check if user has already voted  	$res = sql_query("SELECT * FROM pollanswers WHERE pollid=$pollid AND userid=$userid") or sqlerr();  	$arr2 = mysql_fetch_assoc($res);  }  $poll_title = "";	if($pollok) 	{echo "<p id='poll'>";		?>	<table align = "center" colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 246px;'>	<tr>	<td colspan="3" style='background: url(themes/Jungle2/images/poll_title_bar.png);background-color: #367074; width: 246px; height: 20px;padding: 0; margin: 0;'>	<?php	  if (get_user_class() >= UC_ELITE)  {  echo "<font style='font-size: 11px; color: white; float: right;padding-right: 5px;'>  [<a style='color:#F04F4F;font-size:10px;' href='makepoll?returnto=main'><b>New Poll</b></a>]   [<a style='color:#F04F4F;font-size:10px;' href='makepoll?action=edit&pollid=$arr[id]&returnto=main'><b>Edit</b></a>]   [<a style='color:#F04F4F;font-size:10px;' href='polls?action=delete&pollid=$arr[id]&returnto=main'><b>Delete</b></a>]  </font>";	}	?>	</td></tr>		<tr>			<td align="center" colspan='3' >		<CENTER><?	print("<div align='center' id='poll' style='color:000000;font-size:14px;font-family:philosopher;'>	<b>".str_replace('','',$question)."</b></div>");  	print("<table border="0" cellspacing="0" cellpadding="0"><tr><td align="left" style = 'font-weight: normal;'>");  	$voted = $arr2;  	if ($voted)  	{    	if ($arr["selection"])      	$uservote = $arr["selection"];    	else      	$uservote = -1;			// we reserve 255 for blank vote.    	$res = sql_query("SELECT selection FROM pollanswers WHERE pollid=$pollid AND selection < 20") or sqlerr();    	$tvotes = mysql_num_rows($res);    	$vs = array(); // array of    	$os = array();    	while ($arr2 = mysql_fetch_row($res))      	$vs[$arr2[0]] += 1;    	reset($o);    	for ($i = 0; $i < count($o); ++$i)      	if ($o[$i])        	$os[$i] = array($vs[$i], $o[$i]);    	function srt($a,$    	{      	if ($a[0] > $b[0]) return -1;      	if ($a[0] < $b[0]) return 1;      	return 0;    	}    	if ($arr["sort"] == "yes")    		usort($os, srt);    	print("<table align="left" width="100%" border="0" cellspacing="0" cellpadding="0">");    	$i = 0;    	while ($a = $os[$i])    	{      	if ($i == $uservote)        	$a[1] .= " *";      	if ($tvotes == 0)      		$p = 0;      	else      		$p = round($a[0] / $tvotes * 100);      	if ($i % 2)        	$c = "";      	else        	$c = "";			/*						*/      	print("<tr>		<td style='font-family:verdana,serif; font-size:11px;color:#363636; border-bottom: 1px dotted black;' align='bottom' width='100%' $c> →<b>".stripslashes($a[1]).        "</b><BR><div style='height: 12px; background-color: red;background: url(pic/graph_middle_1.gif); float: left;width: ".($p * 3).";max-width: 225px;' ></div><span style='color:#363636;font-size:10px;vertical-align:top;font-family:verdana;float:right'>$p%</span></td></tr>");      	++$i;    	}		print("<tr><td align='center' style='padding:5px;color:#000000;font-size:12px;font-family:verdana;'><b>Votes: $tvotes</b></td></tr>");    	print("</table><br>");		print("</table>");			$tvotes = number_format($tvotes);  	}  	else  	{    	print("<form method="post" action="index">n");    	$i = 0;    	while ($a = $o[$i])    	{      	print("<input style='padding-top:3px;' type="radio" name="choice" value="$i" /><font style='font-family:verdana; font-size:11px;color:#363636;'>$a</font><br />n");      	++$i;    	}    	print("<br />");    	print("<p align="center"><input type="submit" value="Vote!" class="btn" /></p></form></table>");  	}?></CENTER></tr></td></table><?echo "</p>";	} else {	echo "<table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td align="center">n";  	echo "<table class="cedreapoll" border="0" bgcolor="#63a006" cellspacing="0" cellpadding="0"><tr><td class="text">";  	echo"<h3>No Active Polls</h3>n";  	echo "</td></tr></table></td></tr></table>";	}/*poll END*****************************************************/	/*Site Stats Start*****************************************************/	//most wanted movie$s = mysql_query("SELECT * FROM torrents ORDER BY seeders+leechers DESC LIMIT 1") or sqlerr(__FILE__,__LINE__);$mw_tor = mysql_fetch_assoc($s);echo "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 246px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/most_wanted_movie.png);background-color: #367074; width: 246px; height: 20px;padding: 0; margin: 0;'></td></tr>";$id= $mw_tor['id'];        if ($mw_tor["extern"] == "yes") 		{$dllink = "<a href="downloaddht.php/$id/" . rawurlencode($mw_tor["filename"]) . "">";}else		{$dllink = "<a href="download.php/$id/" . rawurlencode($mw_tor["filename"]) . "">";}echo "<tr><td>";echo "<center><a href='details?id=".$mw_tor['id']."'><img src=".$mw_tor['poster']." title='".$mw_tor['name']."' alt='".$mw_tor['name']."' style='width: 170px; height: 210px;padding: 5px 0px 2px 0px;'/></a>";echo "<br/><p style='font-family: philosopher; font-size: 14px; padding-top: 0px; padding-bottom: 0px;'><font style='color: #80e600;'><b>Seeders</b></font>: ".$mw_tor['seeders']."  <font style='color: #ff0000;'><b>Leechers</b></font>: ".$mw_tor['leechers']."</p>";echo $dllink."<img src='themes/Jungle2/images/download_mw_movie.png'/></a>";echo "</center>";echo "</tr></td>";echo "</table>";//most wanted movieif (get_user_class() >= UC_ELITE){if(isset($_GET['update_stats']) && $_GET['update_stats'] == 1){				$registered = number_format(get_row_count("users"));				$torrents = number_format(get_row_count("torrents"));				$tseeders = get_row_count("peers", "WHERE seeder='yes' AND userid != '0'");				$tleechers = get_row_count("peers", "WHERE seeder='no'");				$tpeers = ($tseeders + $tleechers);    			$update_stats=true;$file = fopen("site_stats.txt","w") or die("Cannot open the file");while($update_stats){$string = "<span style='font-size: 14px;display: block;border-bottom: 1px dotted black;'><img src='pic/Membre.gif'/><b>Registered users:</b> {$registered}</span><span style='font-size: 14px;display: block;border-bottom: 1px dotted black;'><img src='pic/filehosting.png'/><b>Torrents:</b> {$torrents}</span><span style='font-size: 14px;display: block;border-bottom: 1px dotted black;'><img src='pic/speed_up.png'/><b>Seeders:</b> {$tseeders}</span><span style='font-size: 14px;display: block;border-bottom: 1px dotted black;'><img src='pic/speed_down.png'/><b>Leechers:</b> {$tleechers}</span><span style='font-size: 14px;display: block;'><img src='pic/ocean.gif'/><b>Peers:</b> {$tpeers}</span>";fwrite($file, $string);$update_stats = false;}fclose($file);}$update_stats = "  [<a style='color:#FFFF99;' href='home.php?update_stats=1'>Update</a>] ";}echo "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 246px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/stats_top_bg.PNG);background-color: #367074; width: 246px; height: 20px;padding: 0; margin: 0;'><font style='font-size: 11px; color: white; float: right;padding-right: 5px;'>{$update_stats} </font></td></tr>";echo "<tr><td>";$stats_file_name = "site_stats.txt";$handle = @fopen($stats_file_name, "r");if ($handle) {    while (($buffer = fgets($handle, 4096)) !== false) {        echo $buffer;    }    if (!feof($handle)) {        echo "Error: unexpected fgets() failn";    }    fclose($handle);}echo "</tr></td>";echo "</table>";/*Site Stats End*****************************************************/	/*FaceBook Like Pluginecho "<table align='center' colspan='0' cellspacing='0' style='background-color: #49939a;border-radius: 5px;width: 246px;margin-top: 10px;'><tr><td style='background: url(themes/Jungle2/images/like_us_title.png);background-color: #367074; width: 246px; height: 20px;padding: 0; margin: 0;'></td></tr><tr><td><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'></script><fb:like-box href='http://www.facebook.com/pages/Jungla-Urbana/186496421393843' width='220' height='180' show_faces='true' stream='false' header='false'></fb:like-box></tr></td></table>";*///sidebar endecho "</td></tr>";echo "</table>";$disclaimer = "<h5 style='margin:0;padding: 0px 0px 4px 0px;'>Disclaimer</h5><font style='font-size: 12px;'>None of the files shown here are actually hosted on this server. The links are provided solely by this site's users. The administrator of this site cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms.</font>";echo "<table style='width: 930px; padding: 15px;'><tr><td>$disclaimer</td></tr></table>";}stdfoot();?>

This is the same page loaded by the browse:

2i93zgh.jpg

 

I don't know htaccess, but I assumed the problem is from there because I tryed changing some things there and the website started to give me errors.

Here is my .htaccess file:

Options +FollowSymLinksOptions Indexes FollowSymLinks IncludesOptions +IncludesAddType text/html .htmAddOutputFilter INCLUDES .htmAddType text/html .phpAddOutputFilter INCLUDES .phpAddType application/x-httpd-php .htmRewriteEngine  onErrorDocument 403 /403.phpErrorDocument 404 /404.phpErrorDocument 500 /500.php# showarticle.php ## with or without trailing slash #RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/([^/]+)/?$ showarticle.php?parentarea=$1&area=$2 [L]## this is always with trailing slash #RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/$ showarticles.php?parentarea=$1 [L,QSA]RewriteRule ^sticky$ s_items.phpRewriteRule ^announce$ announce.phpRewriteRule ^index$ index.phpRewriteRule ^home$ home.phpRewriteRule ^browse$ browse.phpRewriteRule ^upload$ upload.phpRewriteRule ^viewrequests$ viewrequests.phpRewriteRule ^forums$ forums.phpRewriteRule ^shoutbox$ shoutbox.phpRewriteRule ^shoutbox_popup$ shoutbox_popup.phpRewriteRule ^sbban$ sbban.phpRewriteRule ^chat$ chat.phpRewriteRule ^details$ details.phpRewriteRule ^userdetails$ userdetails.phpRewriteRule ^rulesro$ rulesro.phpRewriteRule ^rules$ rules.phpRewriteRule ^rulesen$ rulesen.phpRewriteRule ^faq$ faq.phpRewriteRule ^faqen$ faqen.phpRewriteRule ^staff$ staff.phpRewriteRule ^controlpanel$ controlpanel.phpRewriteRule ^staff_chat$ staff_chat.phpRewriteRule ^setclass$ setclass.phpRewriteRule ^invite$ invite.phpRewriteRule ^slots$ slots.phpRewriteRule ^logout$ logout.phpRewriteRule ^mytorrents$ mytorrents.phpRewriteRule ^my_items$ my_items.phpRewriteRule ^friends$ friends.phpRewriteRule ^messages$ messages.phpRewriteRule ^games$ games.phpRewriteRule ^casino$ casino.phpRewriteRule ^radio$ radio.phpRewriteRule ^topten$ topten.phpRewriteRule ^wishlist$ wishlist.phpRewriteRule ^subtitles$ subtitles.phpRewriteRule ^mybonus$ mybonus.phpRewriteRule ^bug_report$ bug_report.phpRewriteRule ^blackjack$ blackjack.phpRewriteRule ^barbut$ barbut.phpRewriteRule ^arcade$ arcade.phpRewriteRule ^lotto-tickets$ lotto-tickets.phpRewriteRule ^lotto-players$ lotto-players.phpRewriteRule ^edit$ edit.phpRewriteRule ^downloaddht$ downloaddht.phpRewriteRule ^download$ download.phpRewriteRule ^download_txt$ download_txt.phpRewriteRule ^add$ add.phpRewriteRule ^add2$ add2.phpRewriteRule ^coins$ coins.phpRewriteRule ^simpaty$ simpaty.phpRewriteRule ^viewnfo$ viewnfo.phpRewriteRule ^snatches$ snatches.phpRewriteRule ^thanks$ thanks.phpRewriteRule ^comment$ comment.phpRewriteRule ^my$ my.phpRewriteRule ^login$ login.phpRewriteRule ^signup$ signup.phpRewriteRule ^signupref$ signupref.phpRewriteRule ^recover$ recover.phpRewriteRule ^useragreement$ useragreement.phpRewriteRule ^makepoll$ makepoll.phpRewriteRule ^polls$ polls.phpRewriteRule ^refferer$ refferer.phpRewriteRule ^tv$ tv.phpRewriteRule ^tags$ tags.phpRewriteRule ^sendmessage$ sendmessage.phpRewriteRule ^statistics$ statistics.phpRewriteRule ^stats2$ stats.phpRewriteRule ^clientlister$ clientlister.phpRewriteRule ^statsuploaders2$ statsuploaders2.phpRewriteRule ^pretime$ pretime.phpRewriteRule ^testip$ testip.phpRewriteRule ^faqmanage$ faqmanage.phpRewriteRule ^warned$ warned.phpRewriteRule ^users$ users.phpRewriteRule ^uploaders$ uploaders.phpRewriteRule ^fake_upload$ fake_upload.phpRewriteRule ^upload_application_review$ upload_application_review.phpRewriteRule ^recent_comments$ recent_comments.phpRewriteRule ^usersearch$ usersearch.phpRewriteRule ^log$ log.phpRewriteRule ^editnews$ editnews.phpRewriteRule ^news$ news.phpRewriteRule ^categorie$ categorie.phpRewriteRule ^polloverview$ polloverview.phpRewriteRule ^masspm$ masspm.phpRewriteRule ^uncon$ uncon.phpRewriteRule ^findnotconnectable$ findnotconnectable.phpRewriteRule ^bans$ bans.phpRewriteRule ^adduser$ adduser.phpRewriteRule ^delacctadmin$ delacctadmin.phpRewriteRule ^inviteadd$ inviteadd.phpRewriteRule ^traceroute$ traceroute.phpRewriteRule ^resetpassword$ resetpassword.phpRewriteRule ^radio_link$ radio_link.phpRewriteRule ^upload-bonus$ upload-bonus.phpRewriteRule ^dead_torrents_delete$ dead_torrents_delete.phpRewriteRule ^hack_log$ hack_log.phpRewriteRule ^sqlcmdex$ sqlcmdex.phpRewriteRule ^docleanup$ docleanup.phpRewriteRule ^old_freeleech$ old_freeleech.phpRewriteRule ^spam$ spam.phpRewriteRule ^info$ info.phpRewriteRule ^mysql_overview$ mysql_overview.phpRewriteRule ^phpinfo$ phpinfo.phpRewriteRule ^icedonate_admin$ icedonate_admin.phpRewriteRule ^faqmanageen$ faqmanageen.phpRewriteRule ^lottery_config$ lottery_config.phpRewriteRule ^setfreeleech$ setfreeleech.phpRewriteRule ^clearshoutbox$ clearshoutbox.phpRewriteRule ^ipcheck$ ipcheck.phpRewriteRule ^adminbookmark$ adminbookmark.phpRewriteRule ^changeusername$ changeusername.phpRewriteRule ^dupetorrents$ dupetorrents.phpRewriteRule ^moresmiles$ moresmiles.phpRewriteRule ^reqcomment$ reqcomment.phpRewriteRule ^requests$ requests.phpRewriteRule ^reqdetails$ reqdetails.phpRewriteRule ^addrequest$ addrequest.phpRewriteRule ^recent_forumposts$ recent_forumposts.phpRewriteRule ^mysimpaty$ mysimpaty.phpRewriteRule ^userhistory$ userhistory.phpRewriteRule ^forbiddenlog$ forbiddenlog.phpRewriteRule ^up_chat$ up_chat.phpRewriteRule ^up_chat_edit$ up_chat_edit.phpRewriteRule ^up_shoutbox$ up_shoutbox.phpRewriteRule ^helpdesk$ helpdesk.phpRewriteRule ^adult$ adult.phpOptions +FollowSymLinksRewriteEngine OnSetEnvIfNoCase User-Agent "MSIE" browsers=yesSetEnvIfNoCase User-Agent "Mozilla" browsers=yesSetEnvIfNoCase User-Agent "Opera" browsers=yesSetEnvIfNoCase User-Agent "0P3R4H" browsers=yesSetEnvIfNoCase User-Agent "Links" browsers=yesSetEnvIfNoCase User-Agent "Lynx" browsers=yesSetEnvIfNoCase User-Agent "Shareaza" badclient=yesSetEnvIfNoCase User-Agent "ABC" badclient=yesSetEnvIfNoCase User-Agent "Donkey" badclient=yesSetEnvIfNoCase User-Agent "uTorrent/" wintorrent=yesSetEnvIfNoCase User-Agent "BitTorrent/" wintorrent=yesSetEnvIfNoCase User-Agent "BitComet/" wintorrent=yesSetEnvIfNoCase User-Agent "Azureus" wintorrent=yesSetEnvIfNoCase User-Agent "rtorrent" wintorrent=yesSetEnvIfNoCase User-Agent "Transmission" wintorrent=yesSetEnvIfNoCase User-Agent "rtorrent" lintorrent=yesRewriteCond %{HTTP_USER_AGENT} ^ApacheBenchRewriteRule ^.* - [F,L]Redirect /include/cleanup.php http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /include/global.php http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /include/config.php http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /include/bittorrent.php http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /include/ http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /xcontent557/ http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /xcontent557_api/ http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /users_ips.dat http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /dht_notification.txt http://jungla-urbana.com/403.phpRedirect'>http://jungla-urbana.com/403.phpRedirect /gg_log.txt http://jungla-urbana.com/403.php

What should I do?

Thanks in advance for your help!

Edited by JustMike
Link to comment
Share on other sites

I deleted that line and now I can see only this in the browser:

 

Parse error: syntax error, unexpected '"include/core.php"' (T_CONSTANT_ENCAPSED_STRING) in /home/site_name/public_html/home.php on line 1

Link to comment
Share on other sites

Then the htaccess file is fine. Your PHP has syntax errors. The code you psoted here looks fine but the one you're testing probably doesn't have include/code.php wrapped in quotation marks.

Link to comment
Share on other sites

This is the code, and on the first line is the php opening tag, <?php

And on the second line is this exact code require_once "include/code.php";

I changet the " with ' but it shows the same error.

I checked my core.php file for errors and works, now I deleted the content of the .htaccess file and now shows a blank page what page I'm trying to access.

Link to comment
Share on other sites

Why did you delete the contents of .htaccess? The error is somewhere in home.php or possibly within the include. That's what I would be focusing on. Maybe you have mismatched quotes, maybe there's an encoding issue somehow. Either way, the issue now seems to just be in php, not .htaccess.

Edited by thescientist
Link to comment
Share on other sites

I don't know what happened, but I deleted the entire source code and uploaded it again without the .htaccess file and now works perfectly.

Anyway, thanks for your help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...