Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. DPS_accepted: [mysql]CREATE TABLE `dps_accepted` ( `dpID` int(11) NOT NULL auto_increment, `dpBUYER` int(11) NOT NULL default '0', `dpFOR` int(11) NOT NULL default '0', `dpTYPE` varchar(255) NOT NULL default '', `dpTIME` int(11) NOT NULL default '0', `dpTXN` varchar(255) NOT NULL default '', PRIMARY KEY (`dpID`) ) ENGINE=MyISAM ;[/mysql] Settings: [mysql]CREATE TABLE `settings` ( `conf_id` int(11) NOT NULL auto_increment, `conf_name` varchar(255) NOT NULL default '', `conf_value` text NOT NULL, PRIMARY KEY (`conf_id`) ) ENGINE=MyISAM ; INSERT INTO `settings` VALUES (NULL, 'validate_period', '15'); INSERT INTO `settings` VALUES (NULL, 'validate_on', '0'); INSERT INTO `settings` VALUES (NULL, 'regcap_on', '0'); INSERT INTO `settings` VALUES (NULL, 'hospital_count', '0'); INSERT INTO `settings` VALUES (NULL, 'jail_count', '0'); INSERT INTO `settings` VALUES (NULL, 'sendcrys_on', '1'); INSERT INTO `settings` VALUES (NULL, 'sendbank_on', '1'); INSERT INTO `settings` VALUES (NULL, 'ct_refillprice', '12'); INSERT INTO `settings` VALUES (NULL, 'ct_iqpercrys', '5'); INSERT INTO `settings` VALUES (NULL, 'ct_moneypercrys', '200'); INSERT INTO `settings` VALUES (NULL, 'staff_pad', 'Here you can store notes for all staff to see.'); INSERT INTO `settings` VALUES (NULL, 'willp_item', '0');[/mysql]
  2. isn't that menu bar from dynamic drive?
  3. ... Stop gaining your post count and read what he said...
  4. Maybe you should read what he put He hasn't actually said he made it ...
  5. Yeah you can't install mcv2 without paying for it for him...
  6. function area($vals, $func='square') { # base first in all calculations /* # This could of been used to identify what shape but i thought it would be easier to just simply type it out, you could edit this though. $array = array( 1 => 'square', 2 => 'rectangle', 3 => 'parallelogram', 4 => 'triangle' ); */ if ( !preg_match('/^[0-9]+(,[0-9]+)*$/', $vals) ) { $ret_txt = 'You didn\'t input the correct value format.'; // could also be FALSE } if ( in_array($func, array('square','rectangle','parallelogram','triangle')) ) { $ret_txt = 'You can only get the area of the following shapes, square, rectangle, parallelogram, triangle.'; // could also be FALSE } $split_vals = explode(',', $vals); if ( in_array($func, array('rectangle','parallelogram')) && count($split_vals) == 2 ) { $ret_txt = ($split_vals[0]) * ($split_vals[1]); } elseif ( $func == 'square' && count($split_vals) == 1 ) { $ret_txt = ($split_vals[0]) * ($split_vals[0]); } elseif ( $func == 'triangle' && count($split_vals) == 2 ) { $ret_txt = ($split_vals[0] / 2) * ($split_vals[1]); } else { $ret_txt = 'You didn\'t input the correct values.'; // could also be FALSE } return $ret_txt; } echo area('3','square'); // results in 9 echo ' '; echo area('2,4','triangle'); // results in 4 echo ' '; echo area('3,5', 'rectangle'); // results in 15 echo ' '; echo area('7,9', 'parallelogram'); // results in 63 echo ' '; echo area('1,2', 'square'); // fails echo ' '; echo area('1', 'noidea'); // fails May come in useful to people who need it, have fun...
  7. $result = mysql_query('SELECT `id` FROM `grpgusers` WHERE `city` = '.$user_class->city.' ORDER BY `exp` DESC LIMIT 5');
  8. Now this is fun since i did avgval people have done some functions, Good on you guys it's always good to submit them to the notes on php.net also.
  9. believe so DJK it's the dppacks and the log of transactions (i believe) pretty sh!t if you ask me lol
  10. Well im sure one of the original creators who own the forum will help you out, your version of MC is valid right? :pinch:
  11. I've not had GRPG but with basic mysql i'd so something like $query = mysql_query('SELECT `id`, `name` FROM `users` u LEFT JOIN `city` c ON c.`city` = u.`location` ORDER BY `column` DESC LIMIT 5') while ( $fetched = mysql_fetch_object($query) ) { echo ' <div> '.$fetched->name.' ('.$fetched->id.') </div> '; }
  12. http://www.ajdesigner.com/php_code_statistics/median.php
  13. no problem
  14. People don't use the search function true but if everyone bumped up their posts no one would see half of them so... if they don't use your mod then it's their loss. Rasheed Saeed no point in doing a rating system really... besides the karma system on the forum (Dayo's).
  15. $_SERVER['PHP_SELF'] is insecure if you want some info on it check here... $_SERVER['PHP_SELF'] alternative/vulnerability
  16. Illusions with your unique ideas i don't imagine them even getting away with the title lol DJK i dislike making free mods because of people like this, which is why i ain't made a free one in awhile or a paid one because of people like Decio and anthony (not MTG)
  17. Beware You Might Post Looks good man
  18. I forget was you the matt who used to pass around the paid mods of other coders?
  19. Options +FollowSymlinks RewriteEngine on RewriteRule ^page/([a-zA-Z0-9_])$ index.php?page=$1 Not sure if that would work but i think i use something like that on CG (would have to check).
  20. Why are all these new members posting other peoples stuff it's annoying...
  21. AWW thank you Zu! love you too lol
  22. Good point Alan im thinking maybe a little simple filter for some really bad words (P*do) but im considering allowing moderate swearing and the posting of links (i will obviously do a simply filter preventing it slightly but can't prevent it entirely but if i do try then i can't be held responsible).
  23. i have 5.2.13 am i special too :(?
  24. Try the search option before point BladeWolf
  25. pump enough money into watching human faeces decay and people will watch...
×
×
  • Create New...