nice esqo
Printable View
nice esqo
gd i was goignt o do one of these tonight lol saves me doing it now. Nice script dude
alsoa I ahve done ur edits and it still gives me mssql error
hmm, when i try to register on mine it gives me a error on line 28 having to do with this. $msconnect=mssql_connect("$host","$alogin","$apass"); heres what my config.php looks like.
<?php
$xa = getenv('REMOTE_ADDR');
$badwords = array(";","'","\"","*","union","del","DEL","insert","update","drop","sele","memb","set","$","res3t","wareh","%","--");
foreach($_POST as $value)
foreach($badwords as $word)
if(substr_count($value, $word) > 0)
die("AN ATTEMPT OF INVASION WAS DETECTED TO COMMUNITY OF ALREADY THIS SEGURANCA OF MUTRIPLOX.VAI.LA TAKING YOU PROVIDE THEM SO THAT WE CAN HAVE AN EVERY TIME BETTER MU AND WITHOUT LAMMERS FDP IN OUR SERVER !");
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "localhost";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "pass";
//Database Name
$db = 'GunZDB';
//Host. IP If working remotely
$host = 'http://exe.hexguard.com/gunz';
$ip = "localhost";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
Maybe change the following line?
Quote:
$host = 'http://exe.hexguard.com/gunz';
Nah still gives me
Quote:
Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\config.php on line 28
You sure you edited the connection information?
Quote:
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "localhost";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "pass";
//Database Name
$db = 'GunZDB';
The pass part or the localhost? Yeah i switched the pass part back.
Well you have to edit what I posted to your settings...
Do I keep this part..
Quote:
<?php
$xa = getenv('REMOTE_ADDR');
$badwords = array(";","'","\"","*","union","del","DEL","insert","update","drop","sele","memb","set","$","res3t","wareh","%","--");
foreach($_POST as $value)
foreach($badwords as $word)
if(substr_count($value, $word) > 0)
die("AN ATTEMPT OF INVASION WAS DETECTED TO COMMUNITY OF ALREADY THIS SEGURANCA OF MUTRIPLOX.VAI.LA TAKING YOU PROVIDE THEM SO THAT WE CAN HAVE AN EVERY TIME BETTER MU AND WITHOUT LAMMERS FDP IN OUR SERVER !");
Yes..
Well I don't know if it will help you any but try it for yourself.. Also is it any problem to be using AppServ for my php and editing my ip site. Btw here it is TNY GunZ
And my config looks as follows.
Quote:
<?php
$xa = getenv('REMOTE_ADDR');
$badwords = array(";","'","\"","*","union","del","DEL","insert","update","drop","sele","memb","set","$","res3t","wareh","%","--");
foreach($_POST as $value)
foreach($badwords as $word)
if(substr_count($value, $word) > 0)
die("AN ATTEMPT OF INVASION WAS DETECTED TO COMMUNITY OF ALREADY THIS SEGURANCA OF MUTRIPLOX.VAI.LA TAKING YOU PROVIDE THEM SO THAT WE CAN HAVE AN EVERY TIME BETTER MU AND WITHOUT LAMMERS FDP IN OUR SERVER !");
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "localhost";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "pass";
//Database Name
$db = 'GunZDB';
//Host. IP If working remotely
$host = 'http://exe.hexguard.com/gunz';
$ip = "localhost";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
I have tried everything and nothing is working..
You still didnt edit
Quote:
//Host. IP If working remotely
$host = 'http://exe.hexguard.com/gunz';
This is good ?Quote:
<?php
$xa = getenv('REMOTE_ADDR');
$badwords = array(";","'","\"","*","union","del","DEL","insert","update","drop","sele","memb","set","$","res3t","wareh","%","--");
foreach($_POST as $value)
foreach($badwords as $word)
if(substr_count($value, $word) > 0)
die("AN ATTEMPT OF INVASION WAS DETECTED TO COMMUNITY OF ALREADY THIS SEGURANCA OF MUTRIPLOX.VAI.LA TAKING YOU PROVIDE THEM SO THAT WE CAN HAVE AN EVERY TIME BETTER MU AND WITHOUT LAMMERS FDP IN OUR SERVER !");
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "localhost";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "pass";
//Database Name
$db = 'GunZDB';
//Host. IP If working remotely
$host = 'http://tnygunz.no-ip.info';
$ip = "localhost";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
1) Where's the $alogin variable?PHP Code:// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "localhost";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "pass";
//Database Name
$db = 'GunZDB';
//Host. IP If working remotely
$host = 'http://tnygunz.no-ip.info';
$ip = "localhost";
$msconnect=mssql_connect("$host","$alogin","$apass ");
$msdb=mssql_select_db("$db",$msconnect);
2) Where's the $apass variable?
Edit C:\WINDOWS\php.ini, look for:
;extension_php-mssql.dll
and remove the ;