-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcheckun.php
36 lines (35 loc) · 1.71 KB
/
checkun.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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.
|**************************************************************************************************/
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(strlen($_GET['password']) < 4) { die("<font color='red'>$rrerr11a</font>"); }
$un=$_GET['password'];
$q=$db->query("SELECT * FROM users WHERE login_name='$un' OR username='$un'");
if($db->num_rows($q)) { die("<font color='red'>$rrerr12</font>"); }
print "<font color='green'>$rrerr13</font>";
?>