thebobby Posted February 10, 2011 Posted February 10, 2011 what causes the game to when u type in game link it gives u download option.. Quote
rulerofzu Posted February 10, 2011 Posted February 10, 2011 Incorrect mime type or bad server setup. Quote
thebobby Posted February 10, 2011 Author Posted February 10, 2011 it all worked but now it dont. It worked for a month got off last night and now says downloand index.php when trying to log on Quote
a_bertrand Posted February 10, 2011 Posted February 10, 2011 check the content of the downloaded file. If you get back the PHP sources, then you know that the PHP plugin is not correctly installed on the server side. If you get some other content, then your php file contains code that trigers the download like: header("Content-type: application/binary"); Quote
thebobby Posted February 11, 2011 Author Posted February 11, 2011 is there a hack that does this as it just started doing it Quote
thebobby Posted February 11, 2011 Author Posted February 11, 2011 what file would i need to look in. Quote
thebobby Posted February 11, 2011 Author Posted February 11, 2011 check the content of the downloaded file. which file is that there is no php file called download.php Quote
a_bertrand Posted February 11, 2011 Posted February 11, 2011 When you go on your site, and it ask to download the file, download it and check what you just grabbed. Doesn't seems so hard to understand. Now what's there? Your index.php file? or something else? if it is your index.php file source then you know your web server doesn't handle the PHP extension correctly. If not then inside your index.php there is something wrong. Quote
thebobby Posted February 11, 2011 Author Posted February 11, 2011 this is one of the files u can download General Info "; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print " Name: {$ir['username']} Points: {$cm} Level: {$ir['level']} Exp: {$exp}% Money: $fm Gang: "; $qs=$db->query("SELECT * FROM gangs WHERE gangID={$ir['gang']}"); $rs=$db->fetch_row($qs); if(!$db->num_rows($qs) ) { print "No Gang"; } else { print" {$rs['gangNAME']} "; } print " Property: {$ir['hNAME']} Days Old: {$ir['daysold']} Health: {$ir['hp']}/{$ir['maxhp']} Energy: {$ir['energy']}/{$ir['maxenergy']} Nerve: {$ir['brave']}/{$ir['maxbrave']} Awake: {$ir['will']}/{$ir['maxwill']} "; print " Status Info "; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['robskill']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['robrank']=get_rank($ir['robskill'],'robskill'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['robskill']=number_format($ir['robskill']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); print " Stat Amount Rank Strength {$ir['strength']} Rank: {$ir['strank']} Agility {$ir['agility']} Rank: {$ir['agirank']} Guard {$ir['guard']} Rank: {$ir['guarank']} Labour {$ir['labour']} Rank: {$ir['labrank']} Rob Skill {$ir['robskill']} Rank: {$ir['robrank']} IQ {$ir['IQ']} Rank: {$ir['IQrank']} Total Stats: {$ts} Rank: $tsrank "; $attacks_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_won FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'won')); $attacks_wonc = $db->fetch_row($attacks_won); $attacks_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_lost FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'lost')); $attacks_lostc = $db->fetch_row($attacks_lost); if ($attacks_lostc['attacking_lost']) { $attacking_perl = $attacks_lostc['attacking_lost'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_lostc['attacking_lost']) { $attacking_perl = 0; } if ($attacks_wonc['attacking_won']) { $attacking_perw = $attacks_wonc['attacking_won'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_wonc['attacking_won']) { $attacking_perw = 0; } $attacksd_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_won FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'lost')); $attacksd_wonc = $db->fetch_row($attacksd_won); $attacksd_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_lost FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'won')); $attacksd_lostc = $db->fetch_row($attacksd_lost); if ($attacksd_lostc['defending_lost']) { $defending_perl = $attacksd_lostc['defending_lost'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_lostc['defending_lost']) { $defending_perl = 0; } if ($attacksd_wonc['defending_won']) { $defending_perw = $attacksd_wonc['defending_won'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_wonc['defending_won']) { $defending_perw = 0; } $T_won = $attacks_wonc['attacking_won'] + $attacksd_wonc['defending_won']; $T_lost = $attacks_lostc['attacking_lost'] + $attacksd_lostc['defending_lost']; if ($T_won) { $T_won_per = $T_won / ($T_won + $T_lost) * 100; } elseif (!$T_won) { $T_won_per = 0; } if ($T_lost) { $T_lost_per = $T_lost / ($T_won + $T_lost) * 100; } elseif (!$T_lost) { $T_lost_per = 0; } echo " Attack Record "; echo sprintf(' Won Amount Lost Amount Attacking Won %u (%u%%) Attacking Lost %u (%u%%) Defending Won %u (%u%%) Defending Lost %u (%u%%) Total Won %u (%u%%) Total Lost %u (%u%%) ', $attacks_wonc['attacking_won'], $attacking_perw, $attacks_lostc['attacking_lost'], $attacking_perl, $attacksd_wonc['defending_won'], $defending_perw, $attacksd_lostc['defending_lost'], $defending_perl, $T_won, $T_won_per, $T_lost, $T_lost_per ); if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print " Personal Notepad Updated!"; } print " ".htmlspecialchars($ir['user_notepad'])." "; $h->endpage(); ?> Quote
thebobby Posted February 13, 2011 Author Posted February 13, 2011 wat fixes that as game did work and then was threaten to be hacked because it was raven code which i purchased mccode license. Quote
MrAnthony Posted February 13, 2011 Posted February 13, 2011 here... it shows the page now but am not tiding up the code you can do that... <?php $housequery=1; include "globals.php"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $exp=(int)($ir['exp']/$ir['exp_needed']*100); print " Name: {$ir['username']} Points: {$cm} Level: {$ir['level']} Exp: {$exp}% Money: $fm Gang: "; $qs=$db->query("SELECT * FROM gangs WHERE gangID={$ir['gang']}"); $rs=$db->fetch_row($qs); if(!$db->num_rows($qs) ) { print "No Gang"; } else { print" {$rs['gangNAME']} "; } print " Property: {$ir['hNAME']} Days Old: {$ir['daysold']} Health: {$ir['hp']}/{$ir['maxhp']} Energy: {$ir['energy']}/{$ir['maxenergy']} Nerve: {$ir['brave']}/{$ir['maxbrave']} Awake: {$ir['will']}/{$ir['maxwill']} "; print " Status Info "; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['robskill']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['robrank']=get_rank($ir['robskill'],'robskill'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['robskill']=number_format($ir['robskill']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); print " Stat Amount Rank Strength {$ir['strength']} Rank: {$ir['strank']} Agility {$ir['agility']} Rank: {$ir['agirank']} Guard {$ir['guard']} Rank: {$ir['guarank']} Labour {$ir['labour']} Rank: {$ir['labrank']} Rob Skill {$ir['robskill']} Rank: {$ir['robrank']} IQ {$ir['IQ']} Rank: {$ir['IQrank']} Total Stats: {$ts} Rank: $tsrank "; $attacks_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_won FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'won')); $attacks_wonc = $db->fetch_row($attacks_won); $attacks_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_lost FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'lost')); $attacks_lostc = $db->fetch_row($attacks_lost); if ($attacks_lostc['attacking_lost']) { $attacking_perl = $attacks_lostc['attacking_lost'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_lostc['attacking_lost']) { $attacking_perl = 0; } if ($attacks_wonc['attacking_won']) { $attacking_perw = $attacks_wonc['attacking_won'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_wonc['attacking_won']) { $attacking_perw = 0; } $attacksd_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_won FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'lost')); $attacksd_wonc = $db->fetch_row($attacksd_won); $attacksd_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_lost FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'won')); $attacksd_lostc = $db->fetch_row($attacksd_lost); if ($attacksd_lostc['defending_lost']) { $defending_perl = $attacksd_lostc['defending_lost'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_lostc['defending_lost']) { $defending_perl = 0; } if ($attacksd_wonc['defending_won']) { $defending_perw = $attacksd_wonc['defending_won'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_wonc['defending_won']) { $defending_perw = 0; } $T_won = $attacks_wonc['attacking_won'] + $attacksd_wonc['defending_won']; $T_lost = $attacks_lostc['attacking_lost'] + $attacksd_lostc['defending_lost']; if ($T_won) { $T_won_per = $T_won / ($T_won + $T_lost) * 100; } elseif (!$T_won) { $T_won_per = 0; } if ($T_lost) { $T_lost_per = $T_lost / ($T_won + $T_lost) * 100; } elseif (!$T_lost) { $T_lost_per = 0; } echo " Attack Record "; echo sprintf(' Won Amount Lost Amount Attacking Won %u (%u%%) Attacking Lost %u (%u%%) Defending Won %u (%u%%) Defending Lost %u (%u%%) Total Won %u (%u%%) Total Lost %u (%u%%) ', $attacks_wonc['attacking_won'], $attacking_perw, $attacks_lostc['attacking_lost'], $attacking_perl, $attacksd_wonc['defending_won'], $defending_perw, $attacksd_lostc['defending_lost'], $defending_perl, $T_won, $T_won_per, $T_lost, $T_lost_per ); if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print " Personal Notepad Updated!"; } print " ".htmlspecialchars($ir['user_notepad'])." "; $h->endpage(); ?> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.