does anyone know why?
here the source:
<?php
$dbhostname = "localhost"; //MsSQl Server Addres
$db = array(
"Database" => "opennos", // Database Name
"Uid" => "", //Database User
"PWD" => "" // Database Password;
);
$hosturl = "http://127.0.0.1"; //Your host patch eg (without last slash " / ") ----- MUST BE STTED!
$title = "Register"; //site title ----- MUST BE SETTED!
$norplaymail = ""; // noreplay mail eg ""
///////////////////////////////////////////
////Do you want to display footer ? ////
////True = yes | False = no ////
///////////////////////////////////////////
$footer = true;
///////////////////////////////////////////
////Do you want to display ToS ? ////
////True = yes | False = no ////
///////////////////////////////////////////
$displaytos = false;
$toslink = ""; //link to your ToS page eg "//mywebsite.com/tos.html" (please use // instead of http or https !!!)
$pplink = ""; //link to your Privacy Policy page eg "//mywebsite.com/pp.html" (please use // instead of http or https !!!)
///////////////////////////////////////////
////Do you want to enable forgot ? ///
////true = yes | false = no ///
///////////////////////////////////////////
$forgot = false;
///////////////////////////////////////////////
////Do you want to send verification mail ? ///
////true = yes | false = no ///
///////////////////////////////////////////////
$sendverification = false;
///////////////////////////////////////////
////Do you want to use Google CAPTCHA ? ///
////true = yes | false = no ///
///////////////////////////////////////////
$usecaptcha = false; //if you want to use google captcha you can get secret key and public key there
$captchapublickey = ""; //If yes , put your PUBLIC key there (site key its called on google page's)
$captchasecret = ""; //If yes, put your SECRET key there
///////////////////////////////////////////
$dl['name1'] = ""; //Set Download Name for 1st Link
$dl['1'] = ""; //Download link 1 OPTIONAL
$dl['name2'] = ""; //Download Name for 2nd Link
$dl['2'] = ""; //Download link 2 OPTIONAL
///////////////////////////////////////////
////Do you want to enable login ? ///
////true = yes | false = no ///
///////////////////////////////////////////
//That mean to allow users to login in ther account and they can change his password, or email, ofc you my config this...
$login = true; //Allow login to site
$notifymail = true; //Send notification to mail for each login, if account are accesed a mail will be send to his address with some information.
$lcpw = false; //Allow change password
////Below setting are under development ///
////Please DO NOT TURN ON! ///
$lce = false; //Allow change email
///////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////DONT TUCH BELOW LINE///////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
$mssql = sqlsrv_connect($dbhostname, $db);
if(!$mssql)
die('Something went wrong while connecting to MSSQL');
if(empty($dbhostname))
die("<center><h1 style='color:tomato'>Server its not configurate. Please check config.php <br/> Configrate your database please!</h1></center>");
if(empty($title))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> check title!!!</h1></center>");
if(empty($hosturl))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check host url </h1></center>");
if($usecaptcha == true && empty($captchapublickey) && empty($captchasecret))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check Google Captcha </h1></center>");
if($displaytos == true && empty($toslink) && empty($pplink))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check ToS or Privacy Policy</h1></center>");
else {
require_once('recaptcha/autoload.php');
$recaptcha = new \ReCaptcha\ReCaptcha($captchasecret);
}
function thisword($word)
{
$badword = array("drop", "insert", "update", "delete", "alter", "index", "truncate", "'", '"');
$badreplace = array("***", "***", "****", "***", "****", "***", "*****", "*", "*");
$clean = str_replace($badword,$badreplace,$word);
return $clean;
}
function cleanthis($data)
{
$iclean = filter_var($data, FILTER_SANITIZE_STRING);
$iclean = thisword($iclean);
$iclean = htmlentities($iclean, ENT_QUOTES);
return $iclean;
}
?>
$dbhostname = "localhost"; //MsSQl Server Addres
$db = array(
"Database" => "opennos", // Database Name
"Uid" => "", //Database User
"PWD" => "" // Database Password;
);
$hosturl = "http://127.0.0.1"; //Your host patch eg (without last slash " / ") ----- MUST BE STTED!
$title = "Register"; //site title ----- MUST BE SETTED!
$norplaymail = ""; // noreplay mail eg ""
///////////////////////////////////////////
////Do you want to display footer ? ////
////True = yes | False = no ////
///////////////////////////////////////////
$footer = true;
///////////////////////////////////////////
////Do you want to display ToS ? ////
////True = yes | False = no ////
///////////////////////////////////////////
$displaytos = false;
$toslink = ""; //link to your ToS page eg "//mywebsite.com/tos.html" (please use // instead of http or https !!!)
$pplink = ""; //link to your Privacy Policy page eg "//mywebsite.com/pp.html" (please use // instead of http or https !!!)
///////////////////////////////////////////
////Do you want to enable forgot ? ///
////true = yes | false = no ///
///////////////////////////////////////////
$forgot = false;
///////////////////////////////////////////////
////Do you want to send verification mail ? ///
////true = yes | false = no ///
///////////////////////////////////////////////
$sendverification = false;
///////////////////////////////////////////
////Do you want to use Google CAPTCHA ? ///
////true = yes | false = no ///
///////////////////////////////////////////
$usecaptcha = false; //if you want to use google captcha you can get secret key and public key there
$captchapublickey = ""; //If yes , put your PUBLIC key there (site key its called on google page's)
$captchasecret = ""; //If yes, put your SECRET key there
///////////////////////////////////////////
$dl['name1'] = ""; //Set Download Name for 1st Link
$dl['1'] = ""; //Download link 1 OPTIONAL
$dl['name2'] = ""; //Download Name for 2nd Link
$dl['2'] = ""; //Download link 2 OPTIONAL
///////////////////////////////////////////
////Do you want to enable login ? ///
////true = yes | false = no ///
///////////////////////////////////////////
//That mean to allow users to login in ther account and they can change his password, or email, ofc you my config this...
$login = true; //Allow login to site
$notifymail = true; //Send notification to mail for each login, if account are accesed a mail will be send to his address with some information.
$lcpw = false; //Allow change password
////Below setting are under development ///
////Please DO NOT TURN ON! ///
$lce = false; //Allow change email
///////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////DONT TUCH BELOW LINE///////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
$mssql = sqlsrv_connect($dbhostname, $db);
if(!$mssql)
die('Something went wrong while connecting to MSSQL');
if(empty($dbhostname))
die("<center><h1 style='color:tomato'>Server its not configurate. Please check config.php <br/> Configrate your database please!</h1></center>");
if(empty($title))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> check title!!!</h1></center>");
if(empty($hosturl))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check host url </h1></center>");
if($usecaptcha == true && empty($captchapublickey) && empty($captchasecret))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check Google Captcha </h1></center>");
if($displaytos == true && empty($toslink) && empty($pplink))
die("<center><h1 style='color:tomato'>Configuration incomplete. check config.php <br/> Check ToS or Privacy Policy</h1></center>");
else {
require_once('recaptcha/autoload.php');
$recaptcha = new \ReCaptcha\ReCaptcha($captchasecret);
}
function thisword($word)
{
$badword = array("drop", "insert", "update", "delete", "alter", "index", "truncate", "'", '"');
$badreplace = array("***", "***", "****", "***", "****", "***", "*****", "*", "*");
$clean = str_replace($badword,$badreplace,$word);
return $clean;
}
function cleanthis($data)
{
$iclean = filter_var($data, FILTER_SANITIZE_STRING);
$iclean = thisword($iclean);
$iclean = htmlentities($iclean, ENT_QUOTES);
return $iclean;
}
?>
the complete error: Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\config.php on line 59