1
$content
=
2
"
<?php
3
// ** MySQL 设置 ** //
4
\
$dbname
='
$sName
'; // 数据库名称
5
\
$dbuser
= '
$sUser
'; // MySQL 用户名
6
\
$dbpw
= '
$sPass
'; // 和密码
7
\
$dbhost
= '
$h
'; // 在 99% 的情况下您无需修改这个值
8
\
$tablepre
\t=\t'
$tablepre
'; //数据表前缀
9![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
\
$serPath
\t=\t'
$AbsolutePath
';\t\t//服务器根目录(绝对路径)
11
\
$sitePath
\t=\t'
$sPath
'; //网站根目录(相对服务器根目录路径)
12
\
$siteUrl
= '
$siteUrl
';
13![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
14![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
include('DB_connect.inc.php');
16
?>
"
;
17
include
(
'
fun.inc.php
'
);
18
writeover(
"
global.php
"
,
$content
);
19
?>
20![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
function
writeover(
$filename
,
$data
,
$method
=
"
rb+
"
){
22
@
touch
(
$filename
);
23
if
(
$handle
=
@
fopen
(
$filename
,
$method
)){
24
flock
(
$handle
,
LOCK_EX);
25
fputs
(
$handle
,
$data
);
26
if
(
$method
==
"
rb+
"
)
ftruncate
(
$handle
,
strlen
(
$data
));
27
fclose
(
$handle
);
28
}
29
}
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
16
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
17
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
18
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
19
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
20
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
22
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
23
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
24
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
25
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
26
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
27
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
28
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
29
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)