Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Re: [V2] Saved Events   You might think that, with the knowledge of php you can overcome javascript very easy. And with the knowledge of javascript and taking a small tutorial you can overcome ajax also very easy.
  2. Re: [Mccodes v2] DatatBase quiestion But not what he is trying to get, what he want's is when one server fail's the other kicks in.. @mtg
  3. Re: [Mccodes v2] DatatBase quiestion Clustered server mean's that you have 2 servers and if one fail's or drop's then your other one kick's in automaticly and everyone is still playing.. all the file's and databases are syncronized so they are alway's up to date on both server's. If the first one drop's and sends to second server, once first one is up all the database table's are then updated from the second one.
  4. Re: [Mccodes v2] DatatBase quiestion Google "Clustered Servers"
  5. Re: [Mccodes v2] DatatBase quiestion You would need your own server and then setting up clustering.
  6. Re: [V2] Saved Events If i do have to make one, i would go on with some ajaxorization :P
  7. Re: [V2] Saved Events If you have an already existing identifier.. in this case $c you wouldn't even need it because it's grabbing the last existing identifier from the last mysql_connect. And since mccode's does not have mysql_close() $c is alway's open.
  8. Re: [V2] Saved Events   $amountq = sprintf("SELECT COUNT(*) AS cnt FROM `events` WHERE `evSAVED` = '0' AND `evUSER`='%d'", abs($userid)); $amountq = $db->query($amountq); $amountq = $db->fetch_row($amountq); $amount = $amountq["cnt"]; That's not even needed. Ever thought of mysql_affected_rows? ;) Putting quote's around a number? Yup, we using '' around a number because there your telling SQL it's a string and take's longer to process.. Using COUNT(*) Your selecting everything when all you needed was `evID`.. All that sprintf() is almost as useless..
  9. Re: [V2] Saved Events Optimized? No definatly, for sure it is VERY optimized... *hint* * *hint*
  10. Re: FlashChat 4.7 Auto Login?   Wrong, viewsource show's the hidden field's. @ chaoswar4u, the password field for flashchat is only for admin's therefor, remove the password bit and it will only use the username.. Simple as That.
  11. Re: [mccodes][V2]changable currency mod What my script does is before all the html and stuff is produced, it will change $ to ? as people wan't to change $ to ? and they won't need to do it through the entire script :/
  12. Re: [mccode] Free Starter Pack   Say hello to a new smart ass :D
  13. Re: Looking To Buy   Pfft, You do good work. Maybe you just need to spend a tiny bit more time on them before releasing them ;)   And some testing to get better performance from the modification :)
  14. Re: Looking To Buy Wrong Topic
  15. Re: First attempt at securing files.   mres() is mysql_real_escape_string() for short. ($c) will be the link identifer so mres know's what to connect to. mrse() i think he made a spelling mistake and wanted it to be mres.
  16. Re: Looking To Buy I've already made a nice working one before richard made his, can be found on artsofwar.net.. I will sell you a copy for $20 :)
  17. Re: Crime Update it's simple as:   if($ir['crimexp'] >= VALUE) { $brave = 2 mysql_query('UPDATE `users` SET `brave` = (`brave` + ',$brave,'),`maxbrave` = (`maxbrave` + ',$brave,'),`crimexp` = 0 WHERE `userid` = ',$ir['userid']); }
  18. Re: Need an artist People charge around $1 per item image being made for a game.. now make that 120 game's that's $120, but all those image's come off google.
  19. Re: Noob question echo '<font color="#00FF00">Your Gang</font> ';
  20. Re: Noob question   Not if you put your colour code inside the <a*> tag
  21. Re: Converter Well, what mine does is.. you post the entire v1 script, it will take the first 15-19 lines and take it away, then i add to it <?php\ninclude_once('globals.php');\n/*Mod converter converted this mod*/ which i then echo it through highlight_string() and will produce a php highlighted v2 modification :)
  22. Re: Converter Here's an online version which work's for me.. But it add's excessive line breaks :/   <?php echo '<title>Mod Converter</title>'; if(isset($_POST['do'])) { echo '<h2>v1 to v2 Mod has been Converted</h2> '; echo 'Ok, Cheif lazy. your work is done. '; echo '[url="'.$_SERVER['PHP_SELF'].'"]> Go Back[/url] '; $post = trim($_POST['do']); if(empty($post)) { echo 'Seems the submit was empty. '; echo '[url="'.$_SERVER['PHP_SELF'].'"]> Go Back[/url]'; } else if(strlen($post) < 5) { echo 'It seems that the submit was not long enough. '; echo '[url="'.$_SERVER['PHP_SELF'].'"]> Go Back[/url]'; } else { $array_1 = array( 'session_start();', 'require "global_func.php";', 'if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }', '$userid=$_SESSION['userid'];', 'require "header.php";', '$h = new headers;', '$h->startheaders();', 'include "mysql.php";', 'global $c;', '$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());', '$ir=mysql_fetch_array($is);', 'check_level();', '$fm=money_formatter($ir['money']);', '$cm=money_formatter($ir['crystals']);', '$cm=money_formatter($ir['crystals'],'');', '$lv=date('F j, Y, g:i a',$ir['laston']);', '$h->userdata($ir,$lv,$fm,$cm);', '$h->menuarea();' ); $_POST['do'] = stripslashes($_POST['do']); $converted = str_replace($array_1,'', $_POST['do']); $converted = str_replace('<?php',"<?php include_once('globals.php'); /*Mod converter converted this mod*/", $converted); highlight_string($converted); } } else { echo '<h2>v1 to v2 Mod Converter</h2> '; echo 'Just enter you stuff in the area below, it will change it for you since you are to lazy to. '; echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">'; echo '<textarea rows="100" cols="100" name="do"></textarea>'; echo ' <input type="submit" value="Convert It" />'; echo '</form>'; } ?>   Yes i took alabama's code and modified it.
  23. Re: [mccodes][V2]changable currency mod function buffer($output) { return str_replace('$','?', $output); } ob_start('buffer');
  24. Re: Looking for PHP-coder assistance What's the page ranking and site statistics for your site?
  25. Re: [mccode v2] Site lockdown   Lol, look at this one "But for trying". OMFW! it's another person who want's to be spoon fed. When you buy a computer part, does it come with a full manual to show you step by step on where to put it? I don't think so. Please go to some other post as i have had my thread's bashed but i always end up coming back (Yes it's a part of me to take my anger further ;)). And the reason why i never put it in code tag's was because i wanted the php highlighting colour's so i decided to [*php](.*?)[/php*] it ;)
×
×
  • Create New...