728x90

킴스큐 사이트내에서 정보 찾아내려면 힘든 경우가 있어서 편리하게 찾아서 활용하고 싶어서 변수 저장 정보를 적어둔다.


<?php
$g = array(
    'path_root'   => './',
    'path_core'   => './_core/',
    'path_var'    => './_var/',
    'path_tmp'    => './_tmp/',
    'path_layout' => './layouts/',
    'path_module' => './modules/',
    'path_widget' => './widgets/',
    'path_switch' => './switchs/',
    'path_page'   => './pages/',
    'path_file'   => './files/',
    'sys_lang'    => 'korean'
);

$g['path_root']  = './';   // 파일 위치에 따라
$g['path_core']  = $g['path_root'].'_core/';
$g['path_var']  = $g['path_root'].'_var/';
$g['img_layout'] = './layouts/default/image'; // 이미지 경로때문에 임의추가
$g['files_layout'] = './layouts/default/files'; // 외부페이지 경로 임의추가


include_once $g['path_var'].'db.info.php';
include_once $g['path_var'].'table.info.php';
include_once $g['path_core'].'function/db.mysql.func.php';
include_once $g['path_var'].'db.info.php';
include_once $g['path_var'].'table.info.php';
include_once $g['path_core'].'function/db.mysql.func.php';
include_once $g['path_core'].'function/sys.function.php';
include_once $g['path_core'].'function/string.function.php';

define('__KIMS__',true);
error_reporting(E_ALL ^ E_NOTICE);
session_save_path($g['path_root'].'_tmp/session');
session_start();

$DB_CONNECT = isConnectDb($DB);
$my = array();
if ($_SESSION['mbr_uid'])
{
 $my = getUidData($table['s_mbrid'],$_SESSION['mbr_uid']);
 $my = array_merge(getDbData($table['s_mbrdata'],"memberuid='".$my['uid']."'",'*'),$my);
 if($my['pw'] != $_SESSION['mbr_pw']) exit;
}

?>


킴스큐 구조 파악을 위한 매뉴얼 http://www.kimsq.co.kr/r/freeboard/13482

블로그 이미지

Link2Me

,