"; echo $_SERVER['PHP_SELF'].'//'.preg_match("/install/i",$_SERVER['PHP_SELF']); exit; } */ /** * Session에 보관된 장수 정보를 제거함. * _prefix_p_no, _prefix_p_name 두 값임 */ function resetSessionGeneralValues(){ $idKey = getServPrefix().'p_no'; $nameKey = getServPrefix().'p_name'; unset($_SESSION[$idKey]); unset($_SESSION[$nameKey]); } // MySQL 데이타 베이스에 접근 function dbConn($isRoot=false) { if($isRoot){ return getRootDB()->get(); } return getDB()->get(); } // 에러 메세지 출력 function Error($message, $url="") { global $setup, $connect, $dir, $config_dir; include "error.php"; if($connect) @MYDB_close($connect); exit; } // 게시판의 생성유무 검사 function isTable($connect, $str, $dbname='') { if(!$dbname) { $f=@file("d_setting/conf.php") or Error("conf.php파일이 없습니다. DB설정을 먼저 하십시요"); for($i=1;$i<=4;$i++) $f[$i]=str_replace("\n","",$f[$i]); $dbname=$f[4]; } $result = MYDB_list_tables($dbname, $connect) or Error(__LINE__." : list_table error : ".MYDB_error($connect),""); $cnt = MYDB_num_rows($result); for($i=0; $i < $cnt; $i++) { $tablename = MYDB_fetch_row($result); if($str == $tablename[0]) return 1; } return 0; } function MessageBox($str) { echo ""; } function PrintElapsedTime() { global $_startTime; $_endTime = round(microtime(true) - $_startTime, 3); echo "
| 경과시간 : {$_endTime}초 |