Jump to content
MakeWebGames

oxidati0n

Members
  • Posts

    564
  • Joined

  • Last visited

Everything posted by oxidati0n

  1. Re: Password Protect Pages Have a look at www.php.net
  2. Re: Free News Script   I'm sorry, you got me. I stuck a query in there which cleaned out your user database. I'm only joking lol. No way, You're chatting out of your arse now.
  3. Re: [V2] Reward the active. - Punish the inactive. Simple as this, No extra fields required. :) function genTime($timeP); { $time = 15*60/15; $time = $time-$timeP; $time = time()-$time; return $time; } $time = genTime(15000); //5 Days.. I think. $lastActive = mysql_query("SELECT COUNT(*) AS `cnt` FROM `users` WHERE `lastaction` > '$time' AND `userid` = '{$_SESSION['userid']}'"); $lastActive = mysql_fetch_array($lastActive); $lastActive = $lastActive['cnt']; if($lastActive) { print "You have been online within the last 5 days."; } else { print "You haven't been online within the last 5 days"; }
  4. Re: Generate Password Try something like this. Just mess about with it, It's pretty cool. I made it just now. <script language="JavaScript1.1"> function randomPassword(length) { chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; pass = ""; for(x=0;x<length;x++) { i = Math.floor(Math.random() * 62); pass += chars.charAt(i); } return pass; } function Generate_Password() { var pass=randomPassword(6); document.getElementById("GetValue_b").value = pass; document.getElementById("GetValue_b").type = "text"; alert("Your password is: "+pass); setTimeout("returnField();", 1000); } function returnField() { document.getElementById("GetValue_b").type = "text"; } /*Made by oXi.*/ </script> <input type="password" name="password" value="" id="GetValue_b">Generate Password
  5. Another mod for a few minutes back to my old folks. A simple news script. Make a file name w/e you want <?php /*----------------------------------------------------- -- oXi's New Mod -- A free product. -- No copyright! -----------------------------------------------------*/ session_start(); if(file_exists("global_func.php")) { require "global_func.php"; } if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; if(file_exists("header.php")) { require "header.php"; } $h = new headers; $h->startheaders(); if(file_exists("mysql.php")) { include "mysql.php"; } global $c; $exist_=mysql_query("SELECT COUNT(*) AS `cnt` FROM `users` WHERE `userid` = '$userid'",$c) or die(mysql_error()); $exist_=mysql_fetch_array($exist_); $exist_=$exist_["cnt"]; if(!$exist || empty($userid)) { $_SESSION["userid"] = 0; echo "<script> window.reload(); </script>"; } $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='$'.number_format($ir['money']); $cm='$'.number_format($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "<h3>News</h3> "; function av($s) { $s = strip_tags($s); $s = stripslashes($s); $s = mysql_real_escape_string($s); $s = str_replace('$', '', $s); if($s) { return $s; } } $f = "news3.php"; //File URL if(file_exists($f)) { $f = include($f); eval($_s); foreach($s as $k=>$v) { $k = av($k); $v = av($v); print "[b]$k[/b] $v "; } } else { print "We cannot find any news stories from any recent date."; } $h->endpage(); ?>   and make a file called news3.php <?php $_s = "$s = array(\" 'New Mods' => 'We have added some new mods to improve the significant performance this site can really produce', 'Other' => 'Other Info' \");"; ?>   For every new line you want add 'TEXT' => 'content', on the news3.php file. No assistance, No help but feel free to use. Thanks!
  6. Re: SMF & MCCodes? Done it before. Pretty easy after you try it once.
  7. Re: Welcome back CE   Why are you still here then? :?
  8. Re: [$20] 50 / 50 Chance Game Mod is good, But everybody is out of ideas. UCC - Why can't you say anything nice?
  9. Re: Texas Hold 'Em Mod   Seanybob has started a PTC site called AdverBux. He is too busy with that. He won't finish this mod more than likely.
  10. Re: How much is your site worth mines worth $1.2k advercash is worth $92k my pagerank is now 2 rofl
  11. Re: Anti Bot Nice.. too bad I don't have the crappy MCcodes anymore. Why don't you think of creating your own engine, as this mod would be more useful.
  12. Re: THIS OR THAT? calm Humans or Aliens?
  13. Re: Update MySQL Table Using An Array It doesn't really matter where it comes from, He's just sharing the code.
  14. Re: [mccode] Annoucement Mod   Yes, I know that. But I'm not really putting enough work to name it AJAX then. I didn't use much stuff, but what the hell :-P
  15. Re: [mccode] Annoucement Mod   Why, isn't this the formula? PHP + JavaScript = AJAX?
  16. Re: [mccode] Mail Signatures!   Lol. If you didn't realize, Netcodes was me about 9 months ago.. Erm and that has nothing to do with this .. :-D Mail sigs doesn't have anything to do with contacts.
  17. Re: [mccode] Annoucement Mod   Yes thats easy. Add this in header (javascript compatibility browsers only): DEFINE( 'UNREAD_ANNS', $ir['new_annoucements'] ); if(UNREAD_ANNS > 0) { $anns = UNREAD_ANNS; print <<<JS <script language="javascript"> <!-- var readme = "You have {$anns} unread annoucements, Click Ok to read them."; var stuff = confirm ( readme ); if(stuff) { window.location = "ann.php"; } //--> </script> JS; }   Wala, easy AJAX. :wink:
  18. Re: [Free] [V1] Guess What Cup? (Casino Game)   LOL.
  19. Re: [Free.] Sign Up Addresses upon signup with auto installer. By the way, Once you've installed those steps .. run the install_oxi.php file, delete it after .. then your done. :lol:
  20. I have been very bored lately .. so why not help a needy community? :-P What version? Well v2 already has it ... so it's obviously V1 or Lite. Basicly these are the steps. 1. Listen to me 2. Say 'Hi'! Not really, Here you go (below).   1. Create a file called 'install_oxi.php' (this will be a temperary file) <?php /*----------------------------------------------------- -- Free Code -- A product of ???-entertainment -- Copyright held 2005 by oXi -- INDEX.php -----------------------------------------------------*/ 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'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "Installer [b]The oXi installer.[/b] "; if(!empty($_REQUEST['code'])) { mysql_query("ALTER TABLE `users` ADD `signup_ip` VARCHAR( 350 ) NOT NULL AFTER `lastip`;"); print "Installed.. You managed to experience ..! If you see this message, your game is cool! [url='index.php']Go to the next step of your life in a click. CLICK HERE![/url] "; } else { print " Are you sure you want to install this peice of shit? Click Yes to continue "; } print " oXi Installer remains copyright under Netcodes UK at all times of use. Still don't get this message? Click here. "; $h->endpage(); ?>   Open Register.php and find where it says $i = mysql_insert_id($c);   Add after. $ISP = ($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "127.0.0.1"; DEFINE('MY_IP', $ISP); if(!empty($i)) mysql_query("UPDATE `users` SET `signup_ip` = '".MY_IP."' WHERE `userid` = '$i'");   FIND IN viewuser.php Last IP: {$r['lastip']}   Add After SignUp: {$r['signup_ip']} "; if(!empty(gethostbyaddr($r['signup_ip']))) { echo "HostName: ". gethostbyaddr($r['signup_ip']); } print "   Not tested it, but I've really improved since I've been quiet from CE. Ok.. Peace.
  21. Re: [mccode] Annoucement Mod   In proper grammar please! Heh. I was going to sell it at around $15.00 which would have easily sold, but what the heck just take it :wink: It's only an annoucements mod. Basicly something free which has taken a LOT of time. :roll: No it did not. :-o :lol: Yeah. 30 Minutes, Very long. :( lol.
  22. Re: [v1] Maximum Users Online Counter   No problem Isomerizer. As it's free code, You may do as you wish with it. I made this modification! I lent it to oxi.. :roll: Your very funny .. Ferdi .. :P [He never made it, If your looking for FerdiMods - Try a Hardcore Warez site] :wink: .. {Joke}
  23. Re: [v1] Maximum Users Online Counter   No problem Isomerizer. As it's free code, You may do as you wish with it.
  24. Re: [v1] Maximum Users Online Counter   Your correct. You need to think about your server aswell, If your server doesn't stay sexy - It'll die up on you. So keep it sexy. 5 Minute Cron is a advantage but that does use up more proccesses, They advise Minute crons shouldn't be ran for several reasons. But at the end of the day, It's finer than header proccessing. My Advice => Either "authenticate.php" (before header("");) or "loggedin.php" as everyone visits them pages.
  25. Re: [v1][FREE] DONATION PACKS TO ITEMS Yes, one problem you haven't included. It just deletes the inventory row regardless of inventory quantities, If you have 3x as one row e.g. "DP Pack x3" you'll get the benefits as one pack.   Its not your fault, It's free. :cry: :roll: But now it's out of my mind.. :mrgreen:
×
×
  • Create New...