diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-10-23 05:56:27 -0400 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-07-08 23:09:28 +1000 |
commit | 20cd96d17d111ba213804932b8c18a86090a2486 (patch) | |
tree | e0c09eca0dbdd094e5e6354321fa47707114e2ab | |
parent | 8d45bcb04d272ecf6a4f8f5b01f3f818b4a21a2b (diff) |
configs as samples
-rw-r--r-- | .gitignore | 13 | ||||
-rwxr-xr-x | .htaccess.sample (renamed from .htaccess) | 0 | ||||
-rwxr-xr-x | Config/Config.php.sample (renamed from Config/Config.php) | 7 | ||||
-rwxr-xr-x | admin/Config/Config.php.sample (renamed from admin/Config/Config.php) | 7 |
4 files changed, 19 insertions, 8 deletions
@@ -1,3 +1,12 @@ -*~ +# logs +Logs/ mysql/ -TAGS
\ No newline at end of file +TAGS + +# secrets +.htaccess +Config/Config.php +admin/Config/Config.php + +# litter +*~ diff --git a/.htaccess b/.htaccess.sample index 95ab62f..95ab62f 100755 --- a/.htaccess +++ b/.htaccess.sample diff --git a/Config/Config.php b/Config/Config.php.sample index 1290751..bad4d59 100755 --- a/Config/Config.php +++ b/Config/Config.php.sample @@ -23,20 +23,21 @@ if (!defined('EG')) die('Direct access not allowed!'); +/*db parameters*/ define('DB', 'hnode'); define('USER', 'root'); define('PWD', ''); define('HOST', 'localhost'); +/*website parameters*/ +define('DOMAIN_NAME','localhost'); + /*default controller name*/ define('DEFAULT_CONTROLLER','home'); /*default action*/ define('DEFAULT_ACTION','index'); -/*website parameters*/ -define('DOMAIN_NAME','localhost'); - /*type of database.*/ //it can be: Mysql, Mysqli or None (first letter in uppercase) define('DATABASE_TYPE','Mysqli'); diff --git a/admin/Config/Config.php b/admin/Config/Config.php.sample index 3f7866d..c9e128c 100755 --- a/admin/Config/Config.php +++ b/admin/Config/Config.php.sample @@ -6,20 +6,21 @@ if (!defined('EG')) die('Direct access not allowed!'); +/*db parameters*/ define('DB', 'hnode'); define('USER', 'root'); define('PWD', ''); define('HOST', 'localhost'); +/*website parameters*/ +define('DOMAIN_NAME','localhost/admin'); + /*default controller name*/ define('DEFAULT_CONTROLLER','adminusers'); /*default action*/ define('DEFAULT_ACTION','login'); -/*website parameters*/ -define('DOMAIN_NAME','localhost/admin'); - /*type of database.*/ //it can be: Mysql, Mysqli or None (first letter in uppercase) define('DATABASE_TYPE','Mysqli'); |