Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. One word: Insecure.
  2. Two things; Welcome Back GRPG Sucks
  3. why wouldnt it work with two functions, mabey the others are one, doesnt meen it wont work with two, unless theres an error -.-
  4. well, call 112 then xD (if on a mobile)
  5. someone call triple 9, im about to die of shock :/
  6. Is this the engine where (old) mcc beats it in security :/
  7. Oh, forgot to say, welcome. That function offers more options for hashes and salts ;)
  8. Seen as were showing has function, mine is:   function hashme($hashtype = 'whirlpool', $tohash, $salt = '') { if(!$hashtype) { echo'Error! No hash type selected!'; return false; } if(!$tohash) { echo'Error! No hashing to do!'; return false; } if(!$salt) { echo'Error! No salt added!'; return false; } return hash($hashtype, ($salt.$tohash.$salt)); }
  9. i know xD I had fake tan on, on the hottest weekend so far....
  10. OR just use the green arrow that takes you to the last page.
  11. TBH Who doesnt care about profit.
  12. Lets be honest CB, you do care about profits or you wouldnt be charging for mcc now would you ;)
  13. So whats RTFM?
  14. im guessing your american, so is crazy, get the over it, theres way too many fatties in ameraica, admit it. and do you even know why the fat came in this?
  15. sniko, more than half of amercians are fattys, if i was barrack, i would go to every one, and call them fat, rob their food, and send to to africa. Then call myself Robin Hood xD
  16. Wow, we all hate fat people, mainly americans
  17. Thats why i said All fixed :P
  18. Come again...
  19. All fixed
  20. self::$query i dont see it. and jordan sush
  21. This is about the 3rd time ive heard about this guy scamming, but many more about good work
  22. [mccode v2.x] Log databse errors
  23. This is a simple mod, just to log errors. SQL's [mysql]CREATE TABLE IF NOT EXISTS `error_logs` ( `ID` INT(11) NOT NULL auto_increment, `Time` INT(11) NOT NULL, `Error` VARCHAR(225) NOT NULL, `Query` TEXT NOT NULL, PRIMARY KEY(`ID`) ) auto_increment=1;[/mysql] Then open your databse class diver find function query_error() { after the bracket add this: $this->log_error(mysql_error()); Then after that whole function (or before the ?> ) add this: <?php //not this :P function log_error($mysql_error) { $this->query("INSERT INTO `error_logs` VALUES('', unix_timestamp(), '".addslashes($mysql_error)."', '".addslashes($this->last_query)."');"); }   Open Staff_logs.php beofre ?> add this: <?php //not this function error_logs() { global $db; echo'<center><h3>Error Logs</h3></center> <table width=100% cellspacing="1" class="table"> <tr> <th>ID</th> <th>Time</th> <th>Mysql Error</th> <th>Query</th> <th>Page</th> </tr>'; $get_errors = $db->query("SELECT * FROM `error_logs` ORDER BY `ID`;"); while($error = $db->fetch_row($get_error)) { echo'<tr> <td>'.number_format($error['ID']).'</td> <td>'.date('F j Y', $error['Time']).' '.date('g:i:s a', $error['Time']).'</td> <td>'.$error['Error'].'</td> <td>'.$error['Query'].'</td> <td>'.$error['Page'].'</td> </tr>'; } echo'</table>'; stafflog_add("Viewed the error logs."); } Its a simple table, no pagnation, because i simple cbb :P open smenu, find staff logs link, add this before/after: (still in the same print statment) > Error Logs
  24. I did, before this topic was even alive. Previously posted on DF, ill bring it here now.
  25. the fre log system doesnt work
×
×
  • Create New...