Jump to content
MakeWebGames

Newbie

Members
  • Posts

    289
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Newbie

  1. add it into smenu.php not used mmcodes for a while but should deffo go in smenu.php if i remeber right because fourm done somthing there is error in the code should look like this please correct me if iam wrong   if($ir['user_level']==2) { print "<hr /><b>Donaion Packages</b> > <a href='staff_paypal.php?action=addpackage'>Add Package</a> > <a href='staff_paypal.php?action=editpackage'>Edit Package</a> > <a href='staff_paypal.php?action=delpackage'>Delete Package</a> "; }
  2. my freind was getting a error on his game when every he does a crime or gym havnt checked out what else it does it on but anyways he gets this error Deprecated: Function sql_regcase() is deprecated in /home/mymafia/public_html/globals.php on line 38 i dont know anything about security but the error is coming from this   function anti_inject($campo) { foreach($campo as $key => $val) { //remove words that contains syntax sql $val = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$val); //Remove empty spaces $val = trim($val); //Removes tags html/php $val = strip_tags($val); //Add inverted bars to a string $val = addslashes($val); // store it back into the array $campo[$key] = $val; } return $campo; //Returns the the var clean } $_GET = anti_inject($_GET); $_POST = anti_inject($_POST);   EDIT: sorry error comes from this line   $val = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$val);   the error goes away once u refresh page
  3. not quite sure about that still learning thanks for the help smokey works fine now
  4. my line 30 was already what you posted thanks anyways for trying
  5. thanks it did work You wouldnt know how to fix this would ya had a look through the code and cant see it Fireworks stand • <-- these 3 things > View Fireworks stand companies
  6. Fatal error: Call to a member function query() on a non-object in /home/mobst611/public_html/drugfarm.php on line 20 can anyone see whats wrong with this? line 20 $q=$db->query("SELECT * FROM drugs WHERE drug_available=1 ORDER BY drug_name ASC",$connection);   Thanks
  7.   Ok so i decided to start again from scratch and i got rid of all the errors from before and have come to the last one i hope on this file just cant get it figured out Parse error: syntax error, unexpected T_STRING in /home/mobst611/public_html/business_view.php on line 326 line 326 event_add($_GET['id'],"<a href="viewuser.php?u=$userid">{$ir['username']}</a> Attempted to Rob your Business but was caught.");
  8.   http:// and target="_blank"   these are in your codes they give me errors from a previous post somone said that its code left over from the old mwg fourm once i edit it out the page works fine its just when i come to these ones Line 45 inventory.php   echo'<a href="http://Unequip weapon" target="_blank">Unequip weapon</a></td><td>';   line 51 inv.php   echo'<a href="http://Unequip weapon" target="_blank">Unequip weapon</a></td><td>';   echo'<a href="http://Remove armor" target="_blank">Remove armor</a></td>';   i cant equip nothing when i click equips as armor or wepon it just goes into a blank screen then goes back to inventory
  9. ii got errors from the old fourm i managed to get them fixed and now when i try to equip a armor it doesnt equip it doesnt say any errors i know its sumthing to do with this   <a href="equip_armor.php?ID=">Equip as armor</a>]';   i tried using the code from inv still didnt work   [<a href='equip_armor.php?ID={$i['inv_id']}'>Equip as Armor</a>]";
  10. i get this on item info Parse error: syntax error, unexpected '<' in /home/mobst611/public_html/iteminfo.php on line 21   $itmpic = "<tr style='background: gray"><td colspan='2' style='text-align: center">[img=itmpics/".$id[]</td></tr>"; }
  11. thanks for that i was wondering how i would add a link to jail.php i tried it and it did not work for me
  12. thanks lucky worked i got a new error same type of thing so i did as you said and got this new error any ideas Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/mobst611/public_html/business_view.php on line 107   <td width="85%"><a href="business_view.php?page=profile&id='.$fb['busId'].'''>'.stripslashes($fb['busName']).'</a> - <a href="viewuser.php?u='.$fb['userid'].'''>'.stripslashes($fb['username']).'</a>.'$stars.'</td>
  13. i get this error on business_view.php Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobst611/public_html/business_view.php on line 30 here is line 30   <td width="275" align="left">> <a href="http://business_view.php?page=class&id='.$r['classId'].'" target="_blank">View '.stripslashes($r['className']).' companies</a></td>   also get this on business_home.php Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mobst611/public_html/business_home.php on line 107   You currently '.stripslashes($rank).' at '.stripslashes($r['busName']).' which is owned by <a href="http://viewuser.php?u='.$r['userid'].'" target="_blank">'.stripslashes($r['username']).'</a>.
×
×
  • Create New...