/* Decoded by unphp.net */ // 보안설정용 if (!defined("THORD")) { die("who are you?"); } error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", "1"); //error_reporting(E_ALL); //ini_set("display_errors", "1"); if (!defined("admDocRoot")) { define("admDocRoot", DocRoot . "/cjeMng"); } if (!defined("AdminPath")) {//웹링크 define("AdminPath", "/cjeMng"); } if (!defined("ServerAddr")) { define("ServerAddr", $_SERVER["SERVER_ADDR"]); } if (!defined("ServerName")) { define("ServerName", $_SERVER["SERVER_NAME"]); } if (!defined("EnvRoot")) { define("EnvRoot", DocRoot."/_Env"); } if (!defined("ExtRoot")) { define("ExtRoot", DocRoot."/_Ext"); } if (!defined("FileRoot")) { define("FileRoot", DocRoot."/_File"); } if (!defined("ProgRoot")) { define("ProgRoot", DocRoot."/_Prog"); } if (!defined("urlReferer")) { define("urlReferer", $_SERVER["HTTP_REFERER"]); } $curUrl = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; $curPage = basename($_SERVER["PHP_SELF"]); $sitePos = strpos($curUrl, AdminPath); $curSite = ($sitePos!==false) ? "admin" : "user"; if (!defined("curSitePath")) { define("curSitePath", $curSite); } // common library include_once ExtRoot . "/lib.php"; include_once ExtRoot . "/lib2.php"; $crytpKey = "thordCMS"; include_once ExtRoot . "/decencrypt.php"; if (!defined("RemoteAddr")) { define("RemoteAddr", get_client_ip()); } // adodb database 연결 include EnvRoot . "/dbconn.php"; // session include EnvRoot . "/session.php"; if (ServerName!="chamhospital.mycafe24.com" && ServerName!="chamhosp.co.kr" && ServerName!="www.chamhosp.co.kr") { echo "사용할수 없는 도메인입니다."; exit; } // 기본 코드정리 include EnvRoot . "/var.php"; // 추가 기본 코드정리 include EnvRoot . "/var2.php"; //공통링크처리 //$linkParams = "&sitesession=".$sessionId; //$linkParamsJs = "&sitesession=".$sessionId; //아이피제한 사용 설정 $query = "select * from tb_connectIpConfig order by idx desc limit 1"; $ipConf = $db->getrow($query); $connectIpAdm = $ipConf['adminIpConnYn']; $connectIpUser = $ipConf['userIpConnYn']; //관리자접속관리 if (curSitePath=='admin') { if ($connectIpAdm=="Y") { $queryI = "select count(*) from tb_connectIpMng where connectIp='".RemoteAddr."' and userGubun in ('admin') and useYn='Y' and delYn='N' "; $ableCnt = $db->getone($queryI); if ($ableCnt==0) { echo "접속 제한이 걸렸습니다."; exit; } } } //사용자접속관리 if (curSitePath=='user') { if ($connectIpUser=="Y") { $queryI = "select count(*) from tb_connectIpMng where connectIp='".RemoteAddr."' and userGubun in ('user') and useYn='Y' and delYn='N' "; $ableCnt = $db->getone($queryI); if ($ableCnt==0) { echo "접속 제한이 걸렸습니다."; exit; } } } $p = reqStr(getVariance("p"), '1'); $pSplit = explode('_', $p); if (count($pSplit)>1) { $pl=$pSplit[0]; } else { $pl=$p; } $page = reqStr(getVariance("page"), 1);