일부 파일 가져옴

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);
+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]));
}
}
}