Jump to content
MakeWebGames

Karlos

Members
  • Posts

    951
  • Joined

  • Last visited

    Never

Everything posted by Karlos

  1. Re: New member search... Store the info in a session :-)
  2. Re: [mccode v2] Annoucements Upgrade!   <?php // Meh It's an old code... function announcements() { global $db, $ir, $c, $h, $set; if ($ir['user_level'] != 2) { echo '<span style="color: #FF0000;">403 - Unauthorized Access</span>'; exit($h->endpage()); } if (isset($_POST['TITLE'])) { if (strlen($_POST['TITLE']) < 5) { echo 'Sorry, the annoucement title is too short. [url="staff_annouce.php?addannouce"]Back[/url]'; exit($h->endpage()); } $db->query(sprintf("INSERT INTO mod_announcements (`annouce_NAME`, `annouce_TEXT`, `annouce_TIME`, `annouce_URGENCY`, `annouce_TOPIC`, `annouce_POSTED`) VALUES ('%s', '%s', unix_timestamp(), '{$_POST['URGENCY']}', '{$_POST['TOPIC']}', '%s')", mysql_real_escape_string($_POST['TITLE'], $c), mysql_real_escape_string($_POST['TEXT'], $c), mysql_real_escape_string($_POST['POSTED'], $c))); $db->query("UPDATE users SET `new_announcements` = `new_announcements` + 1"); echo 'Announcement added! > [url="annoucements.php"]View It![/url]'; stafflog_add('Posted A New Annoucement'); exit($h->endpage()); } else { echo 'Adding an announcement... Please try to make sure the announcement is concise and covers everything you want it to. <form action="staff.php?action=announce" method="post"> Announcement Title:<input type="text" name="TITLE"> Announcement Text: <textarea name="TEXT" rows="10" cols="60"></textarea> Announcement Urgency: <select name="URGENCY" type="dropdown"> <option value="No Ugency">No Ugency</option> <option value="Low">Low</option> <option value="Medium">Medium</option> <option value="High">High</option> <option value="Urgent">Urgent</option> </select> Announcement Topic: <select name="TOPIC" type="dropdown"> <option value="Updates">Updates</option> <option value="General News">General News</option> <option value="Fun">Fun</option> <option value="Warnings!">Warnings!</option> <option value="Design Info">Design Info</option> <option value="Edits">Edits</option> </select> <input type="hidden" name="POSTED" value="'.$ir['username'].'"> <input type="submit" value="Add Announcement!" /> </form>'; } }
  3. Re: What would you do with $100,000,000? Wooah, this the shortest reply from Rainbow? :-D   I'll invest it all to a trustworthy company, get more money and and invest that. :wink:
  4. Re: [MC Code v2] Saved Events Soory Voice4Vision, didn'y notice you other post..   By the way, no need to use mysql_real_escape_string() and htmlspecialchars() for both... Just a No No! :wink:
  5. Re: [mccode v2] Annoucements Upgrade! Meh.. Quit arguing for once!   This was created in '08.. Rendering it atleast 6 months old :wink:
  6. Re: [V2] Cron Mods Request   //Why not go for the whole lot and add an IF() with using LEAST() $db->query( "UPDATE `users` SET `brave`=LEAST(`brave`+((`maxbrave`/'10')+'0.5'), `maxbrave`), `hp`=LEAST(`hp`+(`maxhp`/'3'), `maxhp`), `will`=LEAST((`will`+'10'), `maxwill`), `energy`=IF(`donatordays`<>'0', LEAST(`energy`+(`maxenergy`/'6'), `maxenergy`), LEAST(`energy`+(`maxenergy`/'12.5'), `maxenergy`))" );
  7. Re: [MC Codes V2] Captcha ($1) All sent out :wink: Copies Left: 10
  8. Re: [MC Codes V2] Captcha ($1) Sorry, I haven't been on for a while, been kinda busy with exams at school :-P I'll sort it all out now :-) Edit: All sent now.. Copies Left: 13
  9. Re: [mccodes V2]Personal Status Mod[mccodes V2] BadGirl... You should specify the 2nd param for mres() :wink: Reason? Just think if you have two mysql connections? It's gonna open the last active one. And what if that's the wrong database? Your gonna get errors :lol:
  10. Re: I need help Please read asap   Are you f**king obsessed with posting my codes today? -.-
  11. Re: [V2]Coin Toss Modification Who's code? Because Mine prevents it as far as I know.
  12. Re: [V2]Coin Toss Modification   <?php include_once ('globals.php'); if (isset($_POST['bet'])) { if (!isset($_POST['money'])) { echo 'You Must Enter An Ammount Of Money'; exit($h->endpage()); } else if (!ctype_digit($_POST['money'])) { echo'Error, please try again'; exit($h->endpage()); } else if ($ir['money'] < $_POST['money']) { echo 'You Don\'t Have Enough Money.'; exit($h->endpage()); } else if ($_POST['money'] > 500000 || $_POST['money'] < 1) { echo'You can only bet a maximum of $500,000 and a minimum of $1. Please try again.'; exit($h->endpage()); } $Coin = (mt_rand(1, 2) == 1) ? $Landed = 'Heads' : $Landed = 'Tails'; if ($_POST['choose'] == $Coin) { $db->query(sprintf("UPDATE `users` SET `money`=`money`+'%d' WHERE `userid`='%d'", abs((float) $_POST['money'] * 2), abs($userid))); echo 'You chose [b]'.$_POST['choose'].'[/b] and WON! The coin landed on [b]'.$Landed.'[/b] For guessing correctly, you doubled your money. You win: [b]$'.abs((float) $_POST['money'] * 2).'[/b]!'; } else if ($_POST['choose'] != $Coin) { $db->query(sprintf("UPDATE `users` SET `money`=`money`-'%d' WHERE `userid`='%d'", abs((float) $_POST['money']), abs($userid))); echo 'You chose [b]'.$_POST['choose'].'[/b] and LOST! The coin landed on [b]'.$Landed.'[/b] Unlucky, you lose: [b]$'.abs((float) $_POST['money']).'[/b]!'; } else { echo'There has been an error, please try again. If this persists, please report as a bug'; exit($h->endpage()); } } else if (!isset($_POST['bet'])) { echo' <h3>Coin Toss Game</h3> Welcome to the Coin Toss game. You may bet up to $500,000 on this game. All you do is simply enter your bet and choose heads/tails. If you choose the correct one, you will double your money. <form action="' .$_SERVER['PHP_SELF']. '" method="post"> Your bet: <input type="text" value="0" name="money"> <select name="choose"> <option value="Heads">Heads</option> <option value="Tails">Tails</option> </select> <input type="submit" value="Bet" name="bet"> </form>'; } $h->endpage(); ?>   Could try that :wink:
  13. Re: [V2]Coin Toss Modification Why not use ctype_digit()? Edit:   exit; $h->endpage();   What are you trying to achieve there? :lol:
  14. Re: Great Potential You could make it 1 :lol:
  15. Re: Monkey Wrench Looks good? From the screen shots it look awesome :-P Any idea roughly yet for release? :wink:
  16. Re: Energy Bar too long? Personally... So would I, but he didn't mention where the bug was.. So I did the workaround.
  17. Re: Energy Bar too long?   if ($ir['energy'] > $ir['maxenergy']) { $db->query(sprintf("UPDATE `users` SET `energy`=`maxenergy` WHERE `userid`='%d'", $userid)); }
  18. Re: Help with auto ipn Ohh I see... Stop Multiple Logins Soo 23 lines to add into globals An SQL table with 3 columns 34 lines into authenticate And you think thats worthy to be paid?
  19. Re: Help with auto ipn Ohh I never I said I was too advanced for you... Did I? :lol: Ass But your coding in those mods are terrible.. I mean c'mon your coding is Bullsh*t! I've even had people say my coding is better than yours... Mods i've seen and failed. Court Donation + IPN Newspaper Voting Bounty   So what about if someone made your mods and gave them for free same thing. You wouldn't like it. Meh.. I'll already recoding a mod of his :lol:
  20. Re: Help with auto ipn Cronus... Don't blame me if I recode your mods, that much so they can't be reconsized... I might release them :wink: And guess what? THEY WILL ACTUALLY WORK! Ohh, Cronus.. What about the 'support' tickets for the mods I purchased? You never answered that :wink:
  21. Re: Zebra Styled Tables Meh.. I knew I forgot something :-P
  22. Re: Help with auto ipn Sorry Karlos, you are banned from posting or sending personal messages on this forum. Goodbye, and good riddance. Grow up. Your ban is not set to expire. Ahh, So I get banned from CronWerks for posting stuff and having an opinion on a different forum? Get a life! Ohh.. No sending personal messages? Does that include your crappy support ticket system.. If so.. I want my money back due to not being offered the support I am entitled to.
  23. Re: Help with auto ipn Meh.. I got the code... And Didn't even buy it.. I've got it so I can recode it for others.. But seriously... He needs to learn his mods DON'T F*CKING WORK!
  24. Re: Zebra Styled Tables Maybe this could help..   $tr = 0; while($r = mysql_fetch_array($q)) { ++$tr
  25. Re: [mccodes v2] Poll Modificaton Thanks! It kinda helps.. But still very confusing.. Maybe I should learn about the basic parts of OOP first :-P
×
×
  • Create New...