Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,146
  • Joined

  • Last visited

  • Days Won

    150

Everything posted by Magictallguy

  1. Well, thank you all. Made me smile to see you all (almost have happy tears lol). It's nice to know I was appreciated ^.^ Sniko, thank you! +1! illusions, silly man! xD
  2. Aye, I remember you. I doubt I'll be LiveStreaming again - don't think the family could stand it lol
  3. After 2 years of homelessness (thanks Mother -.-), 2 more years of family taking priority, I'm back! I'm currently limited to the MC Codes as that's all I remember after 4 years of inactivity. Back to learning! I suppose, it'll be interesting to see how the PHP standards have changed ^.^ Magictallguy
  4. Old ass post but I thought I'd raise the dead.. I, personally, don't remember creating a CSS Administration mod - but if I did, it's something I'd release free anyway. As for anyone who bought the gallery mod, you are still entitled to your refund! Send me an email with your details and, once confirmed, I will send you a full refund! [email protected]
  5. My stylesheets won't be on here.. They were for use on my site(s) when they were up and running - of which they no longer are. If you really want my stylesheets... Well, it ain't gonna happen. I'm not rewriting them for a job I no longer do
  6. I've given you a link on MSN
  7. Getting back on topic.. The header() code would simply redirect you to robbery.php You would need an if() statement, tertiary statement, or similar code to determine whether the user has more than just criminal.php in their URL
  8. If they'd patched up the damn code in the first place, they wouldn't need to do this, what 2 - 3 years down the line?
  9. Please wrap your code in code tags! As for the event_add failing, this doesn't surprise me. The event_add() can be found in global_func.php, yet I see no call for that file ;)
  10. SamZ is a well-known scammer, I would recommend breaking all contact with him and leaving a public notice on it, as to prevent similar victimizations in the future.
  11. == "Weapons") { $shopname = "If its Weapons you need your here"; $from = "items"; $type = "weapon > '0'"; $show = 100; } elseif ($_GET == "Armour") { $shopname = "Our Best Armour Shop"; $from = "items"; $type = "armor > '0'"; $show = 100; } elseif ($_GET == "Medical") { $shopname = "Our Best Medical Supplies Shop"; $from = "items"; $type = "itmtype = 'ID OF ITEM TYPES FOR MEDICAL ITEMS'"; $show = 100; } else { echo"<h1> this shop dont exsist</h1>"; die(); } $res = mysql_query("SELECT * FROM $from WHERE $type ORDER BY itmbuyprice ASC") or die(mysql_error()); echo "<p class=\"heading\">$shopname</p>"; echo "<table style=\"margin: 0 auto 0 auto; border: solid #292929 0px; width: 90%;\"> <tr style=\"background-color: #6fde45;\"><td style=\"width: 1px;\"><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Img</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Item</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Price</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Buy</p></td></tr>"; while ($row = mysql_fetch_array($res)) { if ($row[itmbuyable] == 0) continue; $rfc = mt_rand(0, 100); if ($show < $rfc) continue; if (!$i) { $bg = "#ffffff"; $i = 1; } elseif ($i) { $bg = "#ececec"; $i = 0; } $imageuri = $row[itempic]; if (!$imageuri) $imageuri = "images/items/default.jpg"; echo "<tr style=\"background-color: $bg;\"><td><p style=\"margin: 0 0 0 0;\"><img src=\"$imageuri\" title=\"$row[itmdesc]\" style=\"height: 45px;\" /></p></td> <td><p style=\"margin: 0 0 0 0;\"><a href=\""; if ($from == "items") echo "item"; else echo "weapon"; echo "info.php?ID=$row[itmid]\">$row[itmname]</a></p></td> <td><p style=\"margin: 0 0 0 0;\">$". number_format($row[itmbuyprice]) ."</p></td> <td><p style=\"margin: 0 0 0 0;\"><a href=\"item"; if ($from == "items") echo "buy"; else echo "buy"; echo ".php?id=$row[id]\">Buy</a></p></td></tr>"; } echo "</table>"; $h->endpage(); ?> Just to be annoying, and keep my word - recoded towards my personal preferences <?php include(DIRNAME(__FILE__) . '/globals.php'); $pages = array('Weapons', 'Armour', 'Medical'); if(!in_array($_GET['page'], $pages)) { echo "This shop does not exist!"; $h->endpage(); exit; } if($_GET['page'] == "Weapons") { $shopname = "If its Weapons you need you're here"; $from = "items"; $type = "weapon > 0"; $show = 100; } else if($_GET['page'] == "Armour") { $shopname = "Our Best Armour Shop"; $from = "items"; $type = "armor > 0"; $show = 100; } else if($_GET['page'] == "Medical") { $shopname = "Our Best Medical Supplies Shop"; $from = "items"; $type = "itmtype = 'ID OF ITEM TYPES FOR MEDICAL ITEMS'"; $show = 100; } $res = $db->query(sprintf("SELECT * FROM %s WHERE %s ORDER BY itmbuyprice ASC", $from, $type)); echo "<p class='heading'>".$shopname."</p> <table style='margin: 0 auto 0 auto; border: solid #292929 0px; width: 90%;'> <tr style='background-color: #6fde45;'> <td style='width: 1px;'><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Img</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Item</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Price</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Buy</p></td> </tr>"; while($row = $db->fetch_row($res)) { if(!$row['itmbuyable']) continue; $rfc = mt_rand(0, 100); if($show < $rfc) continue; if(!$i) { $bg = "#ffffff"; $i = 1; } else { $bg = "#ececec"; $i = 0; } $imageuri = $row['itempic']; if(!$imageuri) $imageuri = "images/items/default.jpg"; echo "<tr style='background-color: $bg;'> <td><p style='margin: 0 0 0 0;'>[img=".$imageuri."]</p></td> <td><p style='margin: 0 0 0 0;'><a href='"; echo ($from == "items") ? "item" : "weapon"; echo "info.php?ID=".$row['itmid']."'>".$row['itmname']."</a></p></td> <td><p style='margin: 0 0 0 0;'>$". number_format($row['itmbuyprice']) ."</p></td> <td><p style='margin: 0 0 0 0;'>[url='itembuy.php?id=".$row[']Buy[/url]</p></td> </tr>"; } echo "</table>"; $h->endpage(); ?>
  12. I've been busy finding a place to live - I got kicked out of my old place and disowned by my mother 11 months ago - only just managed to find a decent place to live with internet access
  13. And what the hell gives you the right to put others down? Alright, we get it, you can code. You were worse than he is a one point, and you didn't like it when others put you down. Heck, I had to council you once just to get you back into WebDev'ing. Get off your high horse, and start appreciating people for who they are, and not their skill level in Website Development.
  14. In my defence, all I did was recode the standard MC Craps v2 forums.php, I didn't add any aestehic updates. You want those? Find a decent graphics designer
  15. <?php function gang_staff_pic() { global $db, $ir, $c, $userid, $gangdata; if($gangdata['gangPRESIDENT'] != $userid) { echo "You are not the gang leader"; $h->endpage(); exit; } if(isset($_POST['vp'])) { if(empty($_POST['vp'])) { print "You did not enter a new pic. [url='yourgang.php?action=staff']> Back[/url]"; $h->endpage(); exit; } if(!preg_match('~(.?).(jpg|jpeg|gif|png)~i', $_POST['newpic'])) { echo "Invalid Extension!"; $h->endpage(); exit; } if(@getimagesize($_POST['newpic']) === FALSE) { echo "Invalid Extension!"; $h->endpage(); exit; } $_POST['vp'] = str_replace(array(".php"), array(""), $_POST['vp']); $_POST['vp']=str_replace('\\\'','\'', $_POST['vp']); $_POST['vp'] = $db->escape($_POST['vp']); $db->query("UPDATE gangs SET gangPIC='{$_POST['vp']}' WHERE gangID={$gangdata['gangID']}",$c); print "Gang pic changed! [url='yourgang.php?action=staff']> Back[/url]"; } else { print "Current Pic: "; if($gangdata['gangPIC']) { print "[img=".htmlspecialchars(stripslashes($gangdata[]"; } else { print "[b]No Gang Picture[/b]"; } print"<hr /><form action='yourgang.php?action=staff&act2=pic' method='post'> Please note that the pic must be externally hosted, [url='http://tinypic.com']Tinypic[/url] is our recommendation. Any pics that are not 400x100 will be automatically resized. Pic: <input type='text' name='vp' value='' /> <input type='submit' value='Change' /></form>"; } }
  16. $whitelist = "the tags here"; You were missing the =
  17. Show us lines 8 - 11 of jailshout.php
  18. I develop my code to run without magic_quotes(), that and I don't use MC Craps.. So yeah :P
  19. You stated re-design, I was just saying it isn't a re-design its a whole new forum base ;) I.e. A redesign ;)
  20. Not a hack, just a basic exploit. Secure your source, or hire someone to do so
  21. Well said sir :)
  22. Easily done, simply link up your BBCode Parser (normally something like bccode_engine.php), and make it parse what it should ;)
  23. I presume you're using MC Codes. If so, then you want to change `admin` to `user_level`. The second error I can't help with until I see the rest of that form code
  24. Already created, and can be seen working at Deadly Country
×
×
  • Create New...