Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Free website template

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 23, 2013
Messages
8
Reaction score
0
Here is a free TANTRA ONLINE website template for everyone. Feel free to use but please dont alter the credits. ;)

If you have questions you can ask or need help.

If you need customized and premium site as well just contact me or leave a message.

Here is the LINK :

Preview is attached below.



Enjoy!
 

Attachments

You must be registered for see attachments list
Last edited:
Skilled Illusionist
Joined
Mar 7, 2013
Messages
330
Reaction score
2
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 49

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 53





error found
 
Skilled Illusionist
Joined
Mar 31, 2011
Messages
382
Reaction score
48
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 49

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 53





error found


You need the table "LoginAttempts" in "UserLogin" database. It's what it say the error log.
 
Junior Spellweaver
Joined
Jan 22, 2013
Messages
132
Reaction score
7
error here! help!!

Warning: mssql_query() [ ]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_query() [ ]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 49

Warning: mssql_query() [ ]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_query() [ ]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 53

here is the auth.php
<?phprequire_once('config/config.php');


session_start();


if($_POST["txtUsername"] != "" && $_POST["txtPassword"] != "") {


$loginusername = str_replace("'", "''", $_POST["txtUsername"]); //anti sql injections para nws
$loginusername = str_replace("</", "&lt/", $_POST["txtUsername"]);
$loginusername = str_replace("#", "&#35", $_POST["txtUsername"]);
$loginusername = str_replace("'", "&apos;", $_POST["txtUsername"]);


$loginpassword = str_replace("'", "''", $_POST["txtPassword"]);
$loginpassword = str_replace("</", "&lt/", $_POST["txtPassword"]);
$loginpassword = str_replace("#", "&#35", $_POST["txtPassword"]);
$loginpassword = str_replace("'", "&apos;", $_POST["txtPassword"]);




if(isset($loginusername) && isset($loginpassword)){


$result2=mssql_query("select * from Account
where UserID='" . $loginusername . "' and Password='" . $loginpassword . "'");




$num2=mssql_num_rows($result2);
}


if($num2 = 1){


$_SESSION['username']= $loginusername;
$_SESSION['password']= $loginpassword;
}
}


if (isset($_SESSION['username']) && isset($_SESSION['password'])) {


$result=mssql_query("select * from Account
where UserID='" . $_SESSION['username'] . "' and Password='" . $_SESSION['password'] . "'");




$num=mssql_num_rows($result);


}




$IP = $_SERVER['REMOTE_ADDR'];


$select = mssql_query("SELECT * FROM LoginAttempts WHERE IP = '$IP'");
$selectrow = mssql_fetch_array($select);
$LastLogin = $selectrow["IP"];
$Attempts = $selectrow["Attempts"];
$selectdiff = mssql_query("SELECT DATEDIFF(n,LastLogin,getdate()) FROM LoginAttempts WHERE IP = '$IP'");
$selecteddiff = mssql_fetch_array($selectdiff);


if($num < 1 && $_POST["txtUsername"] != "" && $_POST["txtPassword"] != ""){


if($LastLogin == ''){
mssql_query("INSERT INTO LoginAttempts VALUES('$IP', '1', getdate())");


}


elseif($LastLogin != ''){
if($Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] < '5')
{
$Attemps1 = $Attempts + 1;
mssql_query("UPDATE LoginAttempts SET Attempts='$Attemps1', LastLogin=getdate() WHERE IP='$IP'");
}


elseif($Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] >= '5'){
mssql_query("UPDATE LoginAttempts SET Attempts='1', LastLogin = getdate() WHERE IP='$IP'");
}
}








$logeado = 2;
}


elseif ($num < 1) {
if($LastLogin == ''){
$logeado = 0;
}
elseif($LastLogin != '' && $Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] < '5'){
$logeado = 2;
}
elseif($LastLogin != '' && $Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] >= '5'){
$logeado = 0;
mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
}
elseif($LastLogin != '' && $Attempts == '5'){
$logeado = 2;
}
elseif($LastLogin != '' && $Attempts == '5' && $selecteddiff[0] < '15'){
$logeado = 0;
mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
}


}




else {


if($Attempts < '5'){
$logeado = 1;
mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
}


elseif($Attempts == '5' && $selecteddiff[0] >= '15'){
$logeado = 1;
$delete = mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
}


elseif($Attempts == '5' && $selecteddiff[0] < '15'){
$logeado = 2;
}


}



?>

 
Last edited:
Skilled Illusionist
Joined
Mar 31, 2011
Messages
382
Reaction score
48
error here! help!!

Warning: mssql_query() [ ]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_query() [ ]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 48

Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 49

Warning: mssql_query() [ ]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_query() [ ]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 52

Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 53

here is the auth.php


Your problem are in the info of config.php
 
Skilled Illusionist
Joined
Mar 7, 2013
Messages
330
Reaction score
2
<?php
//
// Description : Script anti flood
// Version : 0.0.1
// Auteur : Atmoner
// Url :
//
if (!isset($_SESSION)) {
session_start();
}
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
// users will be redirected to this page if it makes requests faster than 2 seconds
header("location: http://httpscript.org");
exit;
}
$_SESSION['last_session_request'] = time();
?>
 
Tantra Freelancer
Joined
Apr 9, 2014
Messages
541
Reaction score
23
I hope you guys can share on how to send item using website.
 
Skilled Illusionist
Joined
Mar 31, 2011
Messages
382
Reaction score
48
Sorry, the old admin panel.
 
Skilled Illusionist
Joined
Mar 7, 2013
Messages
330
Reaction score
2
can anyone help me with my problem I used to activate the accounts manually b'coz it won't send to their respective emails can anyone share their knowledge here
 
Initiate Mage
Joined
Jun 27, 2014
Messages
4
Reaction score
0
plase can you share loginattemp table from UserLogin? Thanks!
 
Coxiez
Banned
Joined
Aug 31, 2006
Messages
859
Reaction score
67
need help i need to know how can i make sql database you say in sql? i dont see any sql.ini or .text on the website you give so i cant import the sql file on xampp sql any tutorial?
 
Status
Not open for further replies.
Back
Top