modernmafia Posted May 31, 2012 Posted May 31, 2012 checkem : <?php /************************************************************************************************** | Software Name : Ravan Scripts Online Mafia Game | Software Author : Ravan Soft Tech | Software Version : Version 2.0.1 Build 2101 | Website : http://www.ravan.info/ | E-mail : [email protected] |************************************************************************************************** | The source files are subject to the Ravan Scripts End-User License Agreement included in License Agreement.html | The files in the package must not be distributed in whole or significant part. | All code is copyrighted unless otherwise advised. | Do Not Remove Powered By Ravan Scripts without permission . |************************************************************************************************** | Copyright (c) 2010 Ravan Scripts . All rights reserved. |**************************************************************************************************/ //thx to http://www.phpit.net/code/valid-email/ for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } include "config.php"; include "language.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; if(!$_GET['password']) { die("<font color='red'>$rrerr10</font>"); } if(!valid_email($_GET['password'])) { die("<font color='red'>$rrerr8</font>"); } $un=$_GET['password']; $q=$db->query("SELECT * FROM users WHERE email='$un'"); if($db->num_rows($q)) { die("<font color='red'>$rrerr9</font>"); } print "<font color='green'>$rrerr13</font>"; ?> error message : Deprecated: Function ereg() is deprecated in /home/mafiasil/public_html/v2/checkem.php on line 20 Replaced With Preg_match then i get this error message : Warning: preg_match() [function.preg-match]: Unknown modifier '@' in /home/mafiasil/public_html/v2/checkem.php on line 20 Invalid - Bad Format any ideas Quote
Danny696 Posted May 31, 2012 Posted May 31, 2012 Ereg as a function has deprecated, meaning its not used any more, and will soon be removed. Try using current functions, maybe preg functions etc. Quote
modernmafia Posted May 31, 2012 Author Posted May 31, 2012 ive used preg_match which is replacing ereg ? but like i said i get the error when changing to preg_match : Warning: preg_match() [function.preg-match]: Unknown modifier '@' in /home/mafiasil/public_html/v2/checkem.php on line 20 Invalid - Bad Format also looked on this to get info http://www.php.net/manual/en/migration53.deprecated.php any more ideas Quote
Lithium Posted May 31, 2012 Posted May 31, 2012 maybe have a look at filter_var() if your host runs PHP 5.2 or higher filter_var($email, FILTER_VALIDATE_EMAIL)); Quote
modernmafia Posted May 31, 2012 Author Posted May 31, 2012 Warning: preg_match() [function.preg-match]: Unknown modifier '@' in /home/mafiasil/public_html/v2/checkem.php on line 20 Warning: preg_match() [function.preg-match]: Unknown modifier '_' in /home/mafiasil/public_html/v2/checkem.php on line 28 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/mafiasil/public_html/v2/checkem.php on line 32 Invalid - Already In Use Quote
Shaddy Posted June 1, 2012 Posted June 1, 2012 Maybe off topic, but Ravan.info isn't the illegal copy of MCCodes? Quote
Guest Posted June 1, 2012 Posted June 1, 2012 Maybe off topic, but Ravan.info isn't the illegal copy of MCCodes? Yes, I have told MM to warn his friend who is using the script. Quote
Spudinski Posted June 1, 2012 Posted June 1, 2012 I fail to see why this forum should support any form of illegal activity. Quote
KyleMassacre Posted June 1, 2012 Posted June 1, 2012 I fail to see why this forum should support any form of illegal activity. I could be wrong but I always though/read here that as long as you have a mc license your good just change the layout? Quote
Spudinski Posted June 2, 2012 Posted June 2, 2012 I could be wrong but I always though/read here that as long as you have a mc license your good just change the layout? No, the source is illegal. For you to use them is illegal. End of point. Quote
Nickson Posted June 2, 2012 Posted June 2, 2012 As spud said, we don't support the use of illegal engines. Locked. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.