Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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

Posted
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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...