Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Re: Using time? Post being updated with correct one
  2. Re: Using time?   <?php include_once('globals.php'); if(mt_rand(1,100) == 49) { if(date('h') <= '19' || date('h') >= '21') { item_add($ir['userid'], 59, 1); echo 'You just been given the item x'; } } $h->endpage(); ?>
  3. Re: Using time? What's wrong with it? :S
  4. Re: Using time?   if(date('h') <= '19' || date('h') => '21') { item_add($ir['userid'], 59, 1); }   That will run all the time from 19 (7pm) all the way to 21 (9pm) but that will always be giving an item, make a mt_rand around it like this...   if(mt_rand(1,100) == 49) { if(date('h') <= '19' || date('h') => '21') { item_add($ir['userid'], 59, 1); } }
  5. Re: Using time?   if(date('h') == '07' || date('h') == '19') { give item }
  6. Re: [mccode v2] Gym Due to certain circumstances, she decided to leave, if im not mistaken.
  7. Re: [mccode v2] Search.php in one | Optimized   For what reason? MCCodes v2 does NOT always need $db->, it take's longer, plus their class is ubberly gah. Mysql_query will perform faster.
  8. Re: Hypothetically speaking http://criminalexistence.com/ceforums/h ... 45#p127645 In the upcoming months, i tend to develop an engine based of NO sql what so ever, just file based.
  9. Re: captcha or another method You class people as retarded? Wow. You do know, people have already created programs to easily bypass that. Best is to generate an image with the math equation.
  10. Re: Spam filter New-   function stop_bad_words($string) { //First we filter out all spaces; $string = str_replace(' ','', $string); //Then we filter out all line breaks; $string = str_replace('\n','', $string); //We create our array of bad words; $words = array('fuck','cunt'); //Add more if needed; //Now we search..; $text = implode('|', $words); return (preg_match('~(['.$text.'])~is', $string)) ? true : false; }   In mailbox just add:   if(stop_bad_words($_POST['text'])) { echo 'Invalid words!'; exit($h->endpage()); }
  11. Re: Getting hacked (SQL Injection) add in header for quick fix: $_GET['viewforum'] = abs(@intval($_GET['viewforum'])); $_GET['viewtopic'] = abs(@intval($_GET['viewtopic']));
  12. Re: How can you get a different Icon for your website? BD would it not be best to do...   $rand = mt_rand(1,2); echo '<link rel="icon" href="favicon'.$rand.'.ico" type="image/vnd.microsoft.icon" />';   ...???
  13. Re: [V2]Coin Toss Modification Many are upgrading to 6.0 as soon as it releases, it's more stable and "romours" say that it will be faster.
  14. Re: [V2]Coin Toss Modification As far as i know, ereg* is deprecated as of php 6.0
  15. Re: Cron Job Replacement Actualy, your's is far more improved. All mine does is use timestamp and the five min + minute one is just coded efficiently.
  16. Re: Cron Job Replacement I made a 1minute & five minute, MTG took mine and made it into 1 minute, 5 minute's, hourly & daily.
  17. Re: Cron Jobs Add me on [email protected] ill sort this out in a matter of 1minute
  18. Re: Cron Jobs OMGZ!. curl http://domain.tld/cron_fivemins.php?code=yourcode
  19. Re: Spam filter New-   function car_dropdown($connection,$ddname="car",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM cars_types ORDER BY carNAME ASC"); if($selected < 1) { $ret.="<option value='0' selected='selected'>-- None --</option>"; } else { $ret.="<option value='0'>-- None --</option>"; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['carID']}'"; if ($selected == $r['carID']) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['carNAME']}</option>"; } $ret.="\n</select>"; return $ret; } if (!function_exists('Error')) { function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error %s</span>", stripslashes($Message)); exit($h->endpage()); } } function filter_badwords($text) { global $set; if ($set['bad_words'] != "") { $words = explode(",", $set['bad_words']); for ($i = 0; $i < count($words); $i++) { if ($words[$i] != "") { $text = preg_replace("/". trim($words[$i]) ."/si", '***', $text); } } } return $text; }   Should be that.
  20. Re: [Mccodes V2] Player Mood BadGirl, you never coded cakePHP for most of your life, so hush
  21. Re: Mailbox.php alerts There u go again, who is this person you got?
  22. Re: Mailbox.php alerts After calling everyone c*nts, bi*ches, etc, what do you think? People should just spoon feed you?
  23. Re: Mailbox.php alerts As i said, LEARN RESPECT!
  24. Re: Mailbox.php alerts Respect people, they might respect you back and help!
  25. Re: (MCCODES) V2 Layout For Sale $100 is starting bid BadGirl aka you know who, rpg_style makes the same frigging template all the time, not different one's, he keep's the same style. Maybe he should change.
×
×
  • Create New...