f_config/app.php 삭제, AppConf 클래스로 통합

This commit is contained in:
2018-03-24 22:50:46 +09:00
parent e97bb32fba
commit 2cf6d0f01a
33 changed files with 51 additions and 102 deletions
+2 -5
View File
@@ -1,11 +1,8 @@
<?php
namespace sammo;
require_once('_common.php');
require_once(ROOT.'/f_config/SETTING.php');
if($SETTING->isExists()) {
require_once($SETTING->getSettingFile());
if(AppConf::getRoot()->isExists()) {
require_once(AppConf::getRoot()->getSettingFile());
} else {
Error('설정 파일이 없습니다. 설정을 먼저 하십시요!');
}
-14
View File
@@ -1,14 +0,0 @@
<?php
namespace sammo;
require_once('_common.php');
require_once(ROOT.'/f_func/class._Mail.php');
require_once(ROOT.'/f_config/SETTING.php');
if($SETTING->isExists()) {
$MAIL = new _Mail();
} else {
Error('설정 파일이 없습니다. 설정을 먼저 하십시요!');
}
-8
View File
@@ -1,8 +0,0 @@
<?php
namespace sammo;
require_once('_common.php');
$SETTING = new Setting(__DIR__.'/..');
-2
View File
@@ -5,8 +5,6 @@ if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.'/f_config/app.php');
require_once(ROOT.'/f_func/func.php');
CustomHeader();
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace sammo;
require_once('_common.php');
require_once(ROOT.'/f_func/class.Setting.php');
function getServerConfigList(){
static $serverList = null;
if($serverList !== null){
return $serverList;
}
$serverList = [
'che'=>['체', 'white', new Setting(__DIR__.'/../che')],
'kwe'=>['퀘', 'yellow', new Setting(__DIR__.'/../kwe')],
'pwe'=>['풰', 'orange', new Setting(__DIR__.'/../pwe')],
'twe'=>['퉤', 'magenta', new Setting(__DIR__.'/../twe')],
'hwe'=>['훼', 'red', new Setting(__DIR__.'/../hwe')]
];
return $serverList;
}
+4 -2
View File
@@ -3,9 +3,11 @@ namespace sammo;
ob_start();
require(__dir__.'/../vendor/autoload.php');
require_once(__dir__.'/func.php');
define('__LINE__',__FILE__." ".__FUNCTION__." ".__LINE__." : ");
define('IMAGE', '../../image');
define('IMAGES', '../../images');
//define('IMAGE', 'http://115.68.28.99/image');