
Phases
Members-
Posts
24 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Phases
-
Re: v3 game engine I work in a very technical community. I've had friends file claims for information that was plagarized from their sites. You post a fix on your blog for some MS bug, and then 50 people (some who have higher visitor rates, and advertising) strip your content verbatim and don't give credit. Or... you publish a script that does something really cool, and offer it as shareware or gratitude donations... somebody takes your script and starts selling it. Seen things like that go... and settle out of court. But... you have to want to hire a lawyer (which could cost you more than you'll get). for most of the illegal game runners here there would be no profit in dabs going after them... they make maybe 50 bucks a month. Some, a very few, are profitable and stay that way... but they are rare... I mean, c'mon... if you don't have the ethics to pay for the code... you'll probably hire dome dipshit to code a mod for you and some cut rate price, and he'll crash your db, steal your users and do some other damage... or... you're friends, who you make admins, will screw it up by bullying the players..,
-
Re: v3 game engine I think this is more a question of morals than copyright... You all know who made the original code. V1, V1.1, V2... Now, there are poeple who don't know about CE or who REALLY made it... but people who buy stolen property can still be busted. Also, as to copyright, the statements. For printed items (including websites), you do not have to file a copyright in a legal sense. All you have to do is prove that it's your original or based on your work and you can win. (not always set in stone, but I've watched this very thing happen) Is it worth it at this point for Dabs to do it? Probably not, it would cost him more than it's worth to go after all the non-paying game runners.
-
Re: final assassins Guess this one gets chalked up to immature kids messing with people's real business.
-
Okay - today, some dipshit owned one of my admin accounts and completely f*cked my game up. Glad I had a restore to put things back. :-) At any rate - the person who did it spent a lot of energy advertising Final Assassins on my site. I would like to know any information ANYONE has on who owns Final Assassins. If the owners feel they are blameless on the hacking - then I will offer a bounty on IP address of the person who hacked my site. I'll discuss money privately - as it is variable depending on the information you have and how current/accurate it is. Phases
-
Re: Java netbeans can open java. http://java.sun.com Download J2SE w/ NetBeans IDE. It's free.
-
Re: **!!Help!!** Uh.... that's a lot of money... why not adjust your game economy... obviously, do don't have enough ways to take money from your players... Raise Item Prices (or add more expensive/powerful items) Add more comsumables with benefits (speed, ecstacy... ) Decrease profit from crimes Offer donator days for sale in game (1 day = $1,000,000) Add more housing that costs more... Create NPCs that can attack players and steal money.
-
Re: Awesome 1st step to email validation. That's interesting... I don't have DNS.php either. Sorry - I felt the file descriptions at the top were sufficient for what to do... First File: email_validation.php - This is the actual class that checks the email address - put this in your class folder. Second File: getmxrr.php - you probably won't need this one, I didn't. I is a replacement function if your PHP was compiled w/o getmxrr. If you need it, I'd suggest putting in your class folder as well. Third File: Test file - you can name it whatever you want. Also - as far as simple... I made a staff_email.php file that allows staff to see (obviously, re-used my IP Banning code... LOL) <? session_start(); include "sglobals.php"; if($ir[user_level] != 2){ echo "You are not an administrator and should not be trying to access this file. Logged."; stafflog_add("<font color=\"red\">Attempted to access email ban (not admin)</font>"); $h->endpage(); exit; } if(!isset($_POST[submit])){ banform(); $h->endpage(); exit; } else { ban_ip(); $h->endpage(); exit; } function ban_ip(){ global $db, $ir, $h; $reason = mysql_real_escape_string($_POST[ban_reason]); $address = mysql_real_escape_string($_POST[address]); $db->query("INSERT INTO blacklist_domains (bl_text, bl_reason, bl_date, bl_userid) VALUES ('$address', '$reason', unix_timestamp(), $ir[userid])"); echo "You have banned the domain: $address for $reason. This has been logged."; stafflog_add("Banned domain: $address"); echo "<hr>"; banform(); $h->endpage(); exit; } function banform(){ global $db, $ir, $h; $ipq = "SELECT * FROM blacklist_domains WHERE bl_text = '$_GET[address]'"; $ips = $db->query($ipq); if($db->num_rows($ips) > 0){ echo "<font color=\"red\">This email is already banned\"</font> "; } require("class/email_validation.php"); $validator=new email_validation_class; if(!function_exists("GetMXRR")) { $_NAMESERVERS=array(); include("getmxrr.php"); } $validator->timeout=10; $validator->data_timeout=0; $validator->localuser="mailtestacct"; $validator->localhost="alteredfuture.com"; $validator->debug=0; $validator->html_debug=1; $validator->exclude_address=""; if(IsSet($_GET["address"])) $email=$_GET["address"]; if(IsSet($email) && strcmp($email,"")) { if(($result=$validator->ValidateEmailBox($email))<0) echo "<font color=\"yellow\">It was not possible to determine if [b]$email[/b] is a valid address.</font>\n"; else echo "<font color=\"yellow\">[b]$email[/b] is ".($result ? "" : "<font color=\"red\">not</font> ")."a valid address.</font>\n"; } else { $port=(strcmp($port=getenv("SERVER_PORT"),"") ? intval($port) : 80); $site="http://".(strcmp($site=getenv("SERVER_NAME"),"") ? $site : "localhost").($port==80 ? "" : ":".$port).GetEnv("REQUEST_URI"); echo "<H2>Access this page using a URL like: $site?email=<A HREF=\"[email protected]\"><TT>[email protected]</TT></A></H2>\n"; } list($username, $domain)=split('@',$_GET[address]); echo ' <form action="staff_email.php" method="post"> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"> </td> </tr> <tr> <td>Domain to blacklist:</td> <td><input name="address" type="text" size="30" maxlength="30" value="'.$domain.'"></td> </tr> <tr> <td>Reason:</td> <td><input name="ban_reason" type="text" size="50" maxlength="50"></td> </tr> <tr> <td colspan="2"><div align="right"> <input type="submit" name="submit" value="Submit"> </div></td> </tr> </table> </form> } ?> When the administrator clicks on the users email address from the admin panel - they see one of the following:
-
Re: Awesome 1st step to email validation. Of course - I must be fair and say that I did not write this... I just thought it was worth sharing.
-
Test for Manuel Lemos's PHP E-mail validation class <?php require("email_validation.php"); $validator=new email_validation_class; /* * If you are running under Windows or any other platform that does not * have enabled the MX resolution function GetMXRR() , you need to * include code that emulates that function so the class knows which * SMTP server it should connect to verify if the specified address is * valid. */ if(!function_exists("GetMXRR")) { /* * If possible specify in this array the address of at least on local * DNS that may be queried from your network. */ $_NAMESERVERS=array(); include("getmxrr.php"); } /* * If GetMXRR function is available but it is not functional, you may * use a replacement function. */ /* else { $_NAMESERVERS=array(); if(count($_NAMESERVERS)==0) Unset($_NAMESERVERS); include("rrcompat.php"); $validator->getmxrr="_getmxrr"; } */ /* how many seconds to wait before each attempt to connect to the destination e-mail server */ $validator->timeout=10; /* how many seconds to wait for data exchanged with the server. set to a non zero value if the data timeout will be different than the connection timeout. */ $validator->data_timeout=0; /* user part of the e-mail address of the sending user ([email protected] in this example) */ $validator->localuser="info"; /* domain part of the e-mail address of the sending user */ $validator->localhost="phpclasses.org"; /* Set to 1 if you want to output of the dialog with the destination mail server */ $validator->debug=1; /* Set to 1 if you want the debug output to be formatted to be displayed properly in a HTML page. */ $validator->html_debug=1; /* When it is not possible to resolve the e-mail address of destination server (MX record) eventually because the domain is invalid, this class tries to resolve the domain address (A record). If it fails, usually the resolver library assumes that could be because the specified domain is just the subdomain part. So, it appends the local default domain and tries to resolve the resulting domain. It may happen that the local DNS has an * for the A record, so any sub-domain is resolved to some local IP address. This prevents the class from figuring if the specified e-mail address domain is valid. To avoid this problem, just specify in this variable the local address that the resolver library would return with gethostbyname() function for invalid global domains that would be confused with valid local domains. Here it can be either the domain name or its IP address. */ $validator->exclude_address=""; if(IsSet($_GET["email"])) $email=$_GET["email"]; if(IsSet($email) && strcmp($email,"")) { if(($result=$validator->ValidateEmailBox($email))<0) echo " It was not possible to determine if $email is a valid deliverable e-mail box address.\n"; else echo " $email is ".($result ? "" : "not ")."a valid deliverable e-mail box address.\n"; } else { $port=(strcmp($port=getenv("SERVER_PORT"),"") ? intval($port) : 80); $site="http://".(strcmp($site=getenv("SERVER_NAME"),"") ? $site : "localhost").($port==80 ? "" : ":".$port).GetEnv("REQUEST_URI"); echo "Access this page using a URL like: [email protected] \n"; } ?>
-
Re: Send Crystals FREE!! Maybe that was a poor choice of words... How about: If I don't ask questions, I might end up taking longer to find the answer. http://www.mysql.com or http://www.mysql.org http://www.phpmyadmin.net To answer this piece of your question... You need to use a MySQL client to create your tables. Your host should have provided you with some sort of tool to do it... phpMyAdmin being the most common. If not - you can find a nice *safe* directory and upload phpMyAdmin yourself, configure it to connect to your database and then voila! Once you either get the command line (should you have shell to your host) or the phpMyAdmin up and running... you simply need to look around for how to execute a SQL command.
-
Re: [2.0] User Verification Mod It might require a little tweaking... I think I forgot to post a couple parts... but it should be enough to give you an idea...
-
WTF - the BBCode is not letting me post the entire code... Hang in there a sec... I'll repost. <?php $AYT = 1; include "globals.php"; $current_time = mktime() - 7200; if ($current_time < $ir[last_login]){ echo "[b]You can load this file![/b] "; $h->endpage(); exit; } if(isset($_POST[submit])){ if(md5($_POST[ayt_key]) == $_SESSION[ayt_key]){ $_SESSION[last_login] = mktime(); $_SESSION[ayt_key] = ''; thankyou(); } else { echo "[b]Sorry, the text you entered was incorrect. Please try again.[/b] "; ayt_form(); } } else { ayt_form(); } function ayt_form(){ $_SESSION[ayt_count] = $_SESSION[ayt_count] + 1; echo ' </pre> <table width="550" border="0" cellpadding="0" cellspacing="0"> Are You There? You have been logged in for over two hours. Could you please confirm that you are still there? [img=captchapng.php] Please enter the text you see in the image and click "Verify" </table> <br>';<br>}<br><br>function thankyou(){<br>echo ' <table width="550" border="0" cellspacing="0" cellpadding="0"> Thank You! You have been verified. We apologize for the inconvenience. </table>';<br>}<br><br>$h->endpage();<br Next generate the captcha image: <? session_start(); $md5=md5(microtime()*mktime()); $string=substr($md5,0,5); $captcha=imagecreate(55,25); imagefill($captcha, 0, 0, $background_color); $background_color = imagecolorallocate($captcha, 22, 42, 64); $text_color = imagecolorallocate($captcha, 233, 14, 91); imagefill($captcha, 0, 0, $background_color); imagestring($captcha, 5, 5, 5, $string, $text_color); $_SESSION['ayt_key']=md5($string); header("Content-type:image/png"); imagepng($captcha); ?> And... modify globals.php Find: if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } Add below: //User activity verifcation (are you there) $current_time = mktime(); $current_time = $current_time - 7200; if ($current_time > $_SESSION[last_login]){ if($AYT <> 1){ if(!isset($_SESSION[ayt_count])){ $_SESSION[ayt_count] = 0; } if($_SESSION[ayt_count] >=6){ header("Location: logout.php"); } else { header("Location: areyouthere.php"); } } }
-
Re: auto backup your site. BTW - TheRipper... thanks... slight change to match my host's configuration... and it worked like a champ.
-
Re: auto backup your site. Well - you've written plenty of superior mods... you should be able to fix it and resell - right?
-
Re: Urgent -- Sign Up Bug... It looks like the error I see is in your mainmenu.php Look for the query near your Events link.
-
Re: Urgent -- Sign Up Bug... What version are you using? It looks like Lite. It also looks like you modified the user details. Look at the SQL error: " 'AND evREAD=0' at line 1" find that query and look right before the AND. You'll probalby see your error there.
-
Re: Help me!!!!!!!!!!!!!!! You should move your crons out of the web folder. :x
-
Re: User "sifter" cron Really? $25 for like 30 lines of code. Wow... I may not be the best programmer out there - but this is an easy one...