일부 파일 가져옴

This commit is contained in:
2018-01-11 22:39:47 +09:00
parent 91a5ff805c
commit 6e71abe710
20 changed files with 93 additions and 50 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '.');
if(!defined('ROOT')){
define('ROOT', '.');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+11 -11
View File
@@ -1,11 +1,11 @@
<?php
db_host
db_user
db_pass
db_name
smtp_host
smtp_port
smtp_id
smtp_pw
smtp_sender
?>
<?php /*
localhost
sam_dev
letmein
sammo
smtp.gmail.com
465
aser
ewrwer
@gmail.com
*/?>
+1 -1
View File
@@ -1,5 +1,5 @@
var W = "/";
var HOME = "/sam/";
var HOME = "/dev_sam/"; //TODO:install시 수정
//var HOME = "http://62che.com/sam/";
//var HOME = "http://localhost/sam/";
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+5 -1
View File
@@ -12,7 +12,8 @@ class _Session {
session_start();
//첫 등장
if($_SESSION['ip'] == '') {
if(!isset($_SESSION['ip']) || $_SESSION['ip'] == '') {
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
$_SESSION['time'] = time();
}
@@ -53,6 +54,9 @@ class _Session {
}
public function IsLoggedIn() {
if(!isset($_SESSION['noMember'])){
return false;
}
if($_SESSION['noMember'] != 0) {
return true;
} else {
+8 -5
View File
@@ -26,11 +26,14 @@ class _Setting {
$this->dbId = trim(str_replace("\n", "", $f[2]));
$this->dbPw = trim(str_replace("\n", "", $f[3]));
$this->dbName = trim(str_replace("\n", "", $f[4]));
$this->mailHost = trim(str_replace("\n", "", $f[5]));
$this->mailPort = trim(str_replace("\n", "", $f[6]));
$this->mailId = trim(str_replace("\n", "", $f[7]));
$this->mailPw = trim(str_replace("\n", "", $f[8]));
$this->mailAddr = trim(str_replace("\n", "", $f[9]));
if(count($f) > 10){
$this->mailHost = trim(str_replace("\n", "", $f[5]));
$this->mailPort = trim(str_replace("\n", "", $f[6]));
$this->mailId = trim(str_replace("\n", "", $f[7]));
$this->mailPw = trim(str_replace("\n", "", $f[8]));
$this->mailAddr = trim(str_replace("\n", "", $f[9]));
}
}
}
+21 -18
View File
@@ -10,32 +10,35 @@ require_once(ROOT.W.F_CONFIG.W.DB.PHP);
// 시스템정보 1개 등록
$DB->InsertArray('SYSTEM', array(
JOIN => 'N',
LOGIN => 'N',
CRT_DATE => _Time::DatetimeNow(),
MDF_DATE => _Time::DatetimeNow()
'REG' => 'N',
'LOGIN' => 'N',
'CRT_DATE' => _Time::DatetimeNow(),
'MDF_DATE' => _Time::DatetimeNow()
));
// 운영자 1명 등록
$DB->InsertArray('MEMBER', array(
ID => $id,
PW => $pw,
PID => '-',
NAME => '운영자',
IP => $_SERVER['REMOTE_ADDR'],
GRADE => 6,
REG_DATE => _Time::DatetimeNow()
'ID' => $id,
'PW' => $pw,
'PID' => '-',
'NAME' => '운영자',
'EMAIL' => 'nomail@nomail.com',
'IP' => $_SERVER['REMOTE_ADDR'],
'GRADE' => 6,
'REG_DATE' => _Time::DatetimeNow()
));
// 부운영자 1명 등록
$DB->InsertArray('MEMBER', array(
ID => 'viceadmin',
PW => md5('12qw!@QW12qw!@QW'),
PID => '-',
NAME => '부운영자',
IP => $_SERVER['REMOTE_ADDR'],
GRADE => 5,
REG_DATE => _Time::DatetimeNow()
'ID' => 'viceadmin',
'PW' => md5('12qw!@QWQPQP%12qw!@QWQPQP%'),
'PID' => '-',
'NAME' => '부운영자',
'EMAIL' => 'nomail@nomail.com',
'IP' => $_SERVER['REMOTE_ADDR'],
'GRADE' => 5,
'REG_DATE' => _Time::DatetimeNow()
));
?>
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '.');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+4
View File
@@ -1,3 +1,5 @@
<?php
/*
<script type="text/javascript">
var _gaq = _gaq || [];
@@ -11,3 +13,5 @@
})();
</script>
*/
?>
+4 -1
View File
@@ -1,5 +1,8 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '../..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '../..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '../..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '../..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '../..');
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
define(ROOT, '..');
if(!defined('ROOT')){
define('ROOT', '..');
}
require_once(ROOT.'/f_config/config.php');
require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);