Warning: mssql_select_db () [function.mssql-select-db]: message: The server principal "NT AUTHORITY \ SYSTEM" can not access the database "auth" in the current security context. (severity 14) in C: \ AppServ \ www \ register \ index.php on line 27
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>Arcadia Test Server</title>
5<?php
6require("conf.php");
7if ($registration ==0){
8?>
9 <h1>Registrations closed</h1>
10 </div>
11 </div>
12<?php
13exit;
14}
15if(isset($_SERVER['HTTP_REFERER'])
16 && $_SERVER['HTTP_REFERER']!=''
17 && substr($_SERVER['HTTP_REFERER'], 7, strlen($_SERVER['SERVER_NAME'])) != $_SERVER['SERVER_NAME'])
18 {
19 $_POST = array();
20 $_GET = array();
21 }
22function connect(){
23 require("conf.php");
24 $db = $Auth_db;
25 $connect = mssql_connect($sql_host, $sql_user, $sql_password);
26 if (!$connect) {echo 'connection error'; exit;}
27 mssql_select_db($db, $connect) or die("Couldn't open database $db");
28 return $connect;
}
$do = $_POST['do'];
switch($do){
and my other archive
<?php
$sql_host="LEONARDO-TI\SQLEXPRESS"; // It can be : localhost\sqlexpress
$sql_user="sa";
$sql_password="";
$Auth_db="auth";
$md5_key="2011";
$registration = "1";
$max_accounts = "50";
?>