
Haunted Dawg
Members-
Posts
2,933 -
Joined
-
Last visited
Never -
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Haunted Dawg
-
Re: 3 Word Game saw his mom
-
Re: stop same ip transfers Have you ever read a code? Please read mine compare to yours. Mine is using a session and yours is using a query wich aint needed. Now what mine does is each time they login with no session it alerts id 1 and yours just alerts id 1 once in a life time unlike mine it tells id 1 that they are on a proxy. So please go read over my code befor you post your little shit? And no i dont love you a bit, infact i hate you :-)
-
Re: [v2] Family's [$30] Well I gave you the copy i gave to everyone else. And for them they never got errors installing this.
-
Re: online/offline/total users No becausing you killing the <?php befor it should. <?php $SecondsCounter = 600; $IPadres = $_SERVER["REMOTE_ADDR"];; $visitorsdb = "visitors.dat"; $time = time(); $count = 1; $file = file($visitorsdb); $OpenFile = fopen($visitorsdb,"w"); fputs($OpenFile,"<?=exit;?>"); while(list($nr,$line) = each($file)) { list($time,$ipadres) = explode("|",$line); if($time > $time-$SecondsCounter && $ipadres != $IPadres) { fputs($OpenFile,"\n$time|$ipadres|"); $count++; } } fputs($OpenFile,"\n$time|$IPadres|"); fclose($OpenFile); echo sprintf("%s user%s online", number_format($count), $count == 1 ? "" : "s"); ?> Could try that.
-
Re: Database...Annoying! Its called quotations ( ' & ' ) try them. $db->query("UPDATE users SET money='{$np['hPRICE']}',will=100,maxwill=100 WHERE userid='{$ir['userid']}'") or die(mysql_error());
-
Re: How many lines of code do you have? Was alterating this... <?php # Count total line numbers /* Apply a recursive directory/file reading function that will total up how many lines all the .php and .js files in the directory, and sub-directories starting from where this file is placed. */ echo '<title>Line Counter</title>'; function line_counter($dir) { //echo "Dir: $dir ----------- <hr>"; //take away the //if you want to display all the directories searched. $files = scandir($dir); static $count = 0; foreach ($files as $key => $filename) { if (in_array($key, array(0,1)) or in_array($filename, array('purifier'))) { continue; } if (is_dir($dir.$filename)) { $new_path = $dir . $filename . '/'; line_counter($new_path); } else { $link_name = explode('.',$filename); if (!isset($link_name[1]) or !in_array($link_name[1], array('php', 'js'))) { //Do something... } else { $count += count(file($dir.$filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)); } //echo "$dir.$filename<hr>"; //Remove the //if you want it to display all the files that were included in the count. } } return $count; } // End of line_counter() function. $count = line_counter("./"); echo '<h1>Final Tally: '.number_format($count).'</h1>'; ?> I used that and got this on www.finalkillah.com/zender.php
-
Re: [v2] Family's [$30] Wow i actualy never thought you would be so umm what way can i put it.... sensless... mysql_query(""); can be used in both versions. If i go into a v1 and add $db = new mysql; and some other stuff i could use $db->query(""); in v1. Willmax aint stated twice read the code it says willmax & maxwill! maxwill is your actual will and willmax is there for your house sharing. [url='proposals.php']Proposal Manager[/url] "; if($ir['married'] > 0) { echo '[url="family.php"]Family Manager[/url] '; } echo " why exactly would that be missing some thing? unless you can just go like "; if($ir['married'] == 0) { echo '[url="proposal.php"]Proposal Manager[/url] '; } else { echo '[url="family.php"]Family Manager[/url] '; } echo " I thought you would know that.
-
[FAQ] How do I redirect users? (Location Header)
Haunted Dawg replied to mdshare's topic in Tutorials
Re: [FAQ] How do I redirect users? (Location Header) Yes i have noticed lately that using this code: if($_SESSION['test'] != 1) { header("location: test_login.php"); } Generates a Warning error. But using this code: if($_SESSION['test'] != 1) { header("location: test_login.php"); exit; } Gets rid of the warning error. -
Re: 3 Word Game a man and
-
Re: No I'S Another "i" So i can make a rpg game and like put my stats up to a billion and put my level to 9999999999 and put a code to set me to all energy all brave all everything all money crystals no jail time no hospital time and all i will say is I made this game so i can do what ever i want. HA!
-
Re: No I'S Sorry you used a "i"; Me and my dad went to the caravan to fetch some toast, when we got there... THERE WAS NO TOAST. My friend and me wanted to go to the resort but my mom never had "money".
-
Re: 3 Word Game so he decided (ok lets face the fact this is starting to get anoying.... A dog eating beans on toast? :|)
-
Re: Guess the next poster Nope Spudinski
-
Re: stop same ip transfers You see you make my code a mess..... $select_multis = mysql_query("SELECT * FROM users WHERE lastip='{$IP}' AND lastip_login='{$IP}' AND lastip_signup='{$IP}'") or die(mysql_error()); if(mysql_num_rows($select_multis) > 1) { session_start(); if($_SESSION['detected_multi'] != 1) { event_add(1,"ID <a href=\"viewuser.php?u=".$ir['userid']."\">".$ir['userid']."</a> has got more than 1 account on his/her IP."); $_SESSION['detected_multi'] = 1; echo '<h1><font color="red">A Admin has been notified that you have more than 1 account.</font></h1>'; } else { echo '<h1><font color="red">A Admin has already been notified that you are a multi.</font></h1>'; } } Now that code will notify you each time some one logs in.
-
Re: 3 Word Game but he cant
-
Re: Page Tutorials [$5] **BUMP** Have you even sold a copy of this? Does everyone know how you copied torncity's style? I just went onto torncity now and went to City and noticed some thing. "City Tutorial" Same thing as what absolute zero has. He has also stolen the image from Torncity and the same table property lol.
-
Re: 3 Word Game But then he
-
Re: Enumeration Permutations - Minor Notice Will are you sure your script is right? It is just giving me the same letters the hole time.
-
Re: 3 Word Game cerial that he
-
Re: stop same ip transfers Wrong. $select = mysql_query("SELECT * FROM users WHERE lastip='{$IP}' AND lastip_login='{$IP}' AND lastip_signup='{$IP}'") or die(mysql_error()); if(mysql_num_rows($select) > 1) { event_add(1,"ID [url="viewuser.php?u="]".$ir['userid']."[/url] has got more than 1 account on his/her IP."); echo '<h1><font color="red">A Admin has been notified that you have more than 1 account.</font></h1>'; } You only need to notify them not kill the game for them :) This is only for same ip obviously but this basically will stop a user from signing into more than one name with there ip but theres is ways around which you all will comment on but this is just contribution to this modification... any editing on this would be appreciated greatly... thanks
-
Re: [v2] Family's [$30] Mod sent to email provided.
-
Re: 3 Word Game On them and
-
Re: online/offline/total users And why's that? I dont run to her to get her to help me to code everything. I have only asked for "HER" help "ONCE" and thats it.
-
Re: Discovery live messenger Well i am very fond of this program its a very nice program so all you haters go some where else :D
-
Re: 3 Word Game another japanese woman