- Joined
- Jun 22, 2010
- Messages
- 81
- Reaction score
- 18
Re: LocalMS Client Source
this is not an error , these are the fucking packets
this is not an error , these are the fucking packets
<?php
## Database Information
$database = array(
"host" => "localhost",
"user" => "root",
"pass" => "",
"dbse" => "fapsauce"
);
## Connect To Database
mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline.");
mysql_select_db($database['dbse']) or die("0-Database isn't available.");
## All the other stuff...
if (!empty($_GET['username']) && !empty($_GET['password'])) {
$username = htmlspecialchars(mysql_real_escape_string($_GET['username']));
$password = mysql_real_escape_string($_GET['password']);
$AQuery = sprintf("
SELECT COUNT('id')
FROM accounts
WHERE name = '%s' AND password = '%s'",
$username, $password);
$aresult = mysql_query($AQuery);
$atotal = mysql_result($aresult, 0);
$reply = ($atotal > 0) ? true : false;
// return $reply;
if ($reply) {
echo '1';
} else {
echo '0-Wrong username or password.';
}
}
?>
only change ip in the program.cs and edit the ip checks only?
when i select channel it dces me. how to fix this?
replace in program.cs? "public static bool checkIP(string input)"change your ip encrypt with MD5
I can't select character how to fix it :?:
It checks for account using php on the webserver.
Code:<?php ## Database Information $database = array( "host" => "localhost", "user" => "root", "pass" => "", "dbse" => "fapsauce" ); ## Connect To Database mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline."); mysql_select_db($database['dbse']) or die("0-Database isn't available."); ## All the other stuff... if (!empty($_GET['username']) && !empty($_GET['password'])) { $username = htmlspecialchars(mysql_real_escape_string($_GET['username'])); $password = mysql_real_escape_string($_GET['password']); $AQuery = sprintf(" SELECT COUNT('id') FROM accounts WHERE name = '%s' AND password = '%s'", $username, $password); $aresult = mysql_query($AQuery); $atotal = mysql_result($aresult, 0); $reply = ($atotal > 0) ? true : false; // return $reply; if ($reply) { echo '1'; } else { echo '0-Wrong username or password.'; } } ?>
You can also tweak it with 'banned' messages etc.
I need help with this.
auphhy(at)live.com.sg
Is there a way to skip the account check or just allow it to pass?
nah you have to do that, its needed to allow person to login.
NOOB ALERT: idk how to even use this...=_=
<?php
//echo "0-Testing custom server maintenance message! HELLLLLOOOO? CAN YOU SEE THE FOX?!"; die();
//Just unquote above this line for a custom maintenance message. =3
## Database Information
$database = array(
"host" => "localhost",
"user" => "root",
"pass" => "f0xwait1sd1zt3hrea!p45sw0rd?!",
"dbse" => "maple"
);
## Connect To Database
mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline.");
mysql_select_db($database['dbse']) or die("0-Database isn't available.");
## All the other stuff...
if (!empty($_GET['username']) && !empty($_GET['password'])) {
$username = htmlspecialchars(mysql_real_escape_string($_GET['username']));
$password = mysql_real_escape_string($_GET['password']);
$AQuery = sprintf("
SELECT COUNT('id')
FROM accounts
WHERE name = '%s' AND password = '%s'",
$username, $password);
$aresult = mysql_query($AQuery);
$atotal = mysql_result($aresult, 0);
$reply = ($atotal > 0) ? true : false;
// return $reply;
if ($reply) {
$sql = mysql_query("SELECT `banned`,`banreason` FROM `accounts` WHERE `name`='".$username."'") or die(mysql_error());
$sqlly = mysql_fetch_row($sql);
if($sqlly[0] == 1){
echo "0-This account is banned.";
if($sqlly[1]){
echo " BAN REASON: {$sqlly[1]}";
}
} else {
echo '1';
}
} else {
echo "0-Wrong username or password (account {$username})";
}
}
?>
This was my custom account-check script, includes ban messages for the n00bz:
PHP:<?php //echo "0-Testing custom server maintenance message! HELLLLLOOOO? CAN YOU SEE THE FOX?!"; die(); //Just unquote above this line for a custom maintenance message. =3 ## Database Information $database = array( "host" => "localhost", "user" => "root", "pass" => "f0xwait1sd1zt3hrea!p45sw0rd?!", "dbse" => "maple" ); ## Connect To Database mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline."); mysql_select_db($database['dbse']) or die("0-Database isn't available."); ## All the other stuff... if (!empty($_GET['username']) && !empty($_GET['password'])) { $username = htmlspecialchars(mysql_real_escape_string($_GET['username'])); $password = mysql_real_escape_string($_GET['password']); $AQuery = sprintf(" SELECT COUNT('id') FROM accounts WHERE name = '%s' AND password = '%s'", $username, $password); $aresult = mysql_query($AQuery); $atotal = mysql_result($aresult, 0); $reply = ($atotal > 0) ? true : false; // return $reply; if ($reply) { $sql = mysql_query("SELECT `banned`,`banreason` FROM `accounts` WHERE `name`='".$username."'") or die(mysql_error()); $sqlly = mysql_fetch_row($sql); if($sqlly[0] == 1){ echo "0-This account is banned."; if($sqlly[1]){ echo " BAN REASON: {$sqlly[1]}"; } } else { echo '1'; } } else { echo "0-Wrong username or password (account {$username})"; } } ?>
Hey, the dbse would be the same as the one running maple right?
Oh dear, it's true about what they say about the average intelligence here.