일부 파일 가져옴
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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]));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user