-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase.php
More file actions
23 lines (21 loc) · 694 Bytes
/
base.php
File metadata and controls
23 lines (21 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
include 'pagination.php';
date_default_timezone_set('America/Los_Angeles');
session_start();
/* DB Connection Information */
$dbhost = "o0tvd0xlpb.database.windows.net,1433";
$dbname = "SmalltalkMigrate2.0";
$dbuser = "CS05";
$dbpass = "!1Elcwebapp";
$connectionInfo = array( "Database"=>$dbname, "UID"=>$dbuser, "PWD"=>$dbpass);
$salt = "Th4nk";
$con = sqlsrv_connect($dbhost, $connectionInfo); if(!$con) {
die(print_r(sqlsrv_errors(), true));
}
function mssql_escape($data) {
if(is_numeric($data))
return $data;
$unpacked = unpack('H*hex', $data);
return '0x' . $unpacked['hex'];
}
?>