forked from devsam/core
f_config/app.php 삭제, AppConf 클래스로 통합
This commit is contained in:
+2
-5
@@ -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('설정 파일이 없습니다. 설정을 먼저 하십시요!');
|
||||
}
|
||||
|
||||
@@ -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('설정 파일이 없습니다. 설정을 먼저 하십시요!');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require_once('_common.php');
|
||||
|
||||
$SETTING = new Setting(__DIR__.'/..');
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user