工会web
This commit is contained in:
31
GonghuiWeb/class/myInc.php
Normal file
31
GonghuiWeb/class/myInc.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
class myInc {
|
||||
function links($web_conn=''){
|
||||
if($web_conn=="agent"){//代理后台
|
||||
$hostname="47.100.47.128";
|
||||
$dbuser="sa";
|
||||
$dbpasswd="A4b9p3cbt0b6e*!#ypw";
|
||||
$dbname="QPPlatformManagerDB";
|
||||
}elseif($web_conn=="info"){
|
||||
$hostname="47.100.47.128";
|
||||
$dbuser="sa";
|
||||
$dbpasswd="A4b9p3cbt0b6e*!#ypw";
|
||||
$dbname="QPTreasureDB";
|
||||
}elseif($web_conn=="old"){
|
||||
$hostname="106.15.35.78";
|
||||
$dbuser="sa";
|
||||
$dbpasswd="A4b9p3cbt0b6e*!#ypw";
|
||||
$dbname="QPAccountsDB";
|
||||
}else{
|
||||
$hostname="47.100.47.128";
|
||||
$dbuser="sa";
|
||||
$dbpasswd="A4b9p3cbt0b6e*!#ypw";
|
||||
$dbname="QPAccountsDB";
|
||||
}
|
||||
$this->link=sqlsrv_connect($hostname,["UID"=>$dbuser, "PWD"=>$dbpasswd, "Database"=>$dbname]) or die("数据库用户密码错误!");
|
||||
return $this->link;
|
||||
}
|
||||
function __destruct(){
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user