Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王兴勇
/
helper-config
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4bb2190a
authored
Oct 26, 2017
by
王兴勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除helper
parent
de1f282a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
helper/Using documents.php
+0
-21
No files found.
helper/Using documents.php
deleted
100644 → 0
View file @
de1f282a
<?php
//在 shopnc.php 头部插入下面两行代码
require
sprintf
(
'%s%sconfig%2$scommon.php'
,
dirname
(
__DIR__
),
DIRECTORY_SEPARATOR
);
$__DB_CONFIG
=
require_db_config
(
'local'
);
//选择数据库配置
//在 shopnc.php 尾部插入下面
//载入模拟登陆信息
faker_login
(
'170'
);
//在 config.ini.php 文件头部写入以下代码
if
(
!
function_exists
(
'local'
))
{
$path
=
dirname
(
dirname
(
dirname
(
__DIR__
)));
require
sprintf
(
'%s%sconfig%2$scommon.php'
,
$path
,
DIRECTORY_SEPARATOR
);
$__DB_CONFIG
=
require_db_config
(
'local'
);
}
//并修改数据库
$config
[
'db'
][
'master'
][
'dbhost'
]
=
$__DB_CONFIG
[
'dbhost'
];
$config
[
'db'
][
'master'
][
'dbport'
]
=
isset
(
$__DB_CONFIG
[
'dbport'
])
?
$__DB_CONFIG
[
'dbport'
]
:
'3306'
;
$config
[
'db'
][
'master'
][
'dbuser'
]
=
$__DB_CONFIG
[
'dbuser'
];
$config
[
'db'
][
'master'
][
'dbpwd'
]
=
$__DB_CONFIG
[
'dbpwd'
];
$config
[
'db'
][
'master'
][
'dbname'
]
=
$__DB_CONFIG
[
'dbname'
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment