diff --git a/hwe/_admin1.php b/hwe/_admin1.php index 3dc537d3..6416cace 100644 --- a/hwe/_admin1.php +++ b/hwe/_admin1.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin1_submit.php b/hwe/_admin1_submit.php index 74d86344..ee4441a2 100644 --- a/hwe/_admin1_submit.php +++ b/hwe/_admin1_submit.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $admin = getAdmin($connect); diff --git a/hwe/_admin2.php b/hwe/_admin2.php index 6ba1c34a..266e7fa4 100644 --- a/hwe/_admin2.php +++ b/hwe/_admin2.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin4.php b/hwe/_admin4.php index 1d081a41..1d8e596b 100644 --- a/hwe/_admin4.php +++ b/hwe/_admin4.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin4_submit.php b/hwe/_admin4_submit.php index c1b1b85e..7805bf37 100644 --- a/hwe/_admin4_submit.php +++ b/hwe/_admin4_submit.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin5.php b/hwe/_admin5.php index c7a76751..386d74b2 100644 --- a/hwe/_admin5.php +++ b/hwe/_admin5.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin5_submit.php b/hwe/_admin5_submit.php index 63730443..53b6b0a0 100644 --- a/hwe/_admin5_submit.php +++ b/hwe/_admin5_submit.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin6.php b/hwe/_admin6.php index 86565b63..ab88f139 100644 --- a/hwe/_admin6.php +++ b/hwe/_admin6.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin7.php b/hwe/_admin7.php index c71f6509..2d269108 100644 --- a/hwe/_admin7.php +++ b/hwe/_admin7.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_admin8.php b/hwe/_admin8.php index 330b9933..cfba5ce0 100644 --- a/hwe/_admin8.php +++ b/hwe/_admin8.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(Session::getUserGrade() < 5) { diff --git a/hwe/_simul.php b/hwe/_simul.php index 16f2dcaf..09bbcd9d 100644 --- a/hwe/_simul.php +++ b/hwe/_simul.php @@ -46,7 +46,7 @@ $tch2 = array_fill(0,11, ''); $dec = 0; $rice = 0; -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("시뮬", 2); diff --git a/hwe/a_bestGeneral.php b/hwe/a_bestGeneral.php index 088deda8..c355868c 100644 --- a/hwe/a_bestGeneral.php +++ b/hwe/a_bestGeneral.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("명장일람", 2); diff --git a/hwe/a_genList.php b/hwe/a_genList.php index 63b600b5..6b9eeb87 100644 --- a/hwe/a_genList.php +++ b/hwe/a_genList.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("장수일람", 2); diff --git a/hwe/a_history.php b/hwe/a_history.php index f2e0cb6a..6e4c39af 100644 --- a/hwe/a_history.php +++ b/hwe/a_history.php @@ -5,7 +5,7 @@ include "lib.php"; include "func.php"; $yearmonth = $_POST['yearmonth']; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("연감", 5); diff --git a/hwe/a_kingdomList.php b/hwe/a_kingdomList.php index 85082b07..36339280 100644 --- a/hwe/a_kingdomList.php +++ b/hwe/a_kingdomList.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("세력일람", 2); diff --git a/hwe/a_status.php b/hwe/a_status.php index 1a2f642e..52fe1872 100644 --- a/hwe/a_status.php +++ b/hwe/a_status.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("세력도", 2); checkTurn($connect); diff --git a/hwe/b_auction.php b/hwe/b_auction.php index a2188dd2..74b87779 100644 --- a/hwe/b_auction.php +++ b/hwe/b_auction.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("거래장", 2); diff --git a/hwe/b_battleCenter.php b/hwe/b_battleCenter.php index 65cc4b72..151da885 100644 --- a/hwe/b_battleCenter.php +++ b/hwe/b_battleCenter.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("감찰부", 2); //전투 추진을 위해 갱신 diff --git a/hwe/b_betting.php b/hwe/b_betting.php index b159b305..5109048b 100644 --- a/hwe/b_betting.php +++ b/hwe/b_betting.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("베팅장", 1); checkTurn($connect); diff --git a/hwe/b_chiefboard.php b/hwe/b_chiefboard.php index 81a8e89c..23e0cef7 100644 --- a/hwe/b_chiefboard.php +++ b/hwe/b_chiefboard.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("기밀실", 1); diff --git a/hwe/b_chiefcenter.php b/hwe/b_chiefcenter.php index 01e06902..a437616f 100644 --- a/hwe/b_chiefcenter.php +++ b/hwe/b_chiefcenter.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("사령부", 1); diff --git a/hwe/b_currentCity.php b/hwe/b_currentCity.php index 8933bb63..cb07f9fe 100644 --- a/hwe/b_currentCity.php +++ b/hwe/b_currentCity.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("현재도시", 1); diff --git a/hwe/b_dipcenter.php b/hwe/b_dipcenter.php index 479ce430..23b2162f 100644 --- a/hwe/b_dipcenter.php +++ b/hwe/b_dipcenter.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("내무부", 1); diff --git a/hwe/b_diplomacy.php b/hwe/b_diplomacy.php index 0b873b94..fcbac195 100644 --- a/hwe/b_diplomacy.php +++ b/hwe/b_diplomacy.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("중원정보", 1); diff --git a/hwe/b_genList.php b/hwe/b_genList.php index 52aeda41..e81d98b8 100644 --- a/hwe/b_genList.php +++ b/hwe/b_genList.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("암행부", 2); diff --git a/hwe/b_myBossInfo.php b/hwe/b_myBossInfo.php index 14b209e9..819aa453 100644 --- a/hwe/b_myBossInfo.php +++ b/hwe/b_myBossInfo.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("인사부", 1); //훼섭 추방을 위해 갱신 diff --git a/hwe/b_myCityInfo.php b/hwe/b_myCityInfo.php index 29bb0775..6157906f 100644 --- a/hwe/b_myCityInfo.php +++ b/hwe/b_myCityInfo.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("세력도시", 1); diff --git a/hwe/b_myGenInfo.php b/hwe/b_myGenInfo.php index c48bc9bc..433eb081 100644 --- a/hwe/b_myGenInfo.php +++ b/hwe/b_myGenInfo.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("세력장수", 1); diff --git a/hwe/b_myKingdomInfo.php b/hwe/b_myKingdomInfo.php index 204ee709..fe5a85d0 100644 --- a/hwe/b_myKingdomInfo.php +++ b/hwe/b_myKingdomInfo.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("세력정보", 1); diff --git a/hwe/b_myPage.php b/hwe/b_myPage.php index 7564483e..8c2fbad2 100644 --- a/hwe/b_myPage.php +++ b/hwe/b_myPage.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("내정보", 1); diff --git a/hwe/b_nationboard.php b/hwe/b_nationboard.php index 3042e79f..6b78b1e6 100644 --- a/hwe/b_nationboard.php +++ b/hwe/b_nationboard.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("회의실", 1); diff --git a/hwe/b_nationrule.php b/hwe/b_nationrule.php index 4f1ab938..5ce89c6f 100644 --- a/hwe/b_nationrule.php +++ b/hwe/b_nationrule.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("국법", 1); ?> diff --git a/hwe/b_tournament.php b/hwe/b_tournament.php index 6ddfa804..bc9b9d97 100644 --- a/hwe/b_tournament.php +++ b/hwe/b_tournament.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("토너먼트", 1); checkTurn($connect); diff --git a/hwe/b_troop.php b/hwe/b_troop.php index c1a143ae..eb6636e7 100644 --- a/hwe/b_troop.php +++ b/hwe/b_troop.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("부대편성", 1); diff --git a/hwe/c_auction.php b/hwe/c_auction.php index 68f783c5..64aeebd4 100644 --- a/hwe/c_auction.php +++ b/hwe/c_auction.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("입찰", 1); diff --git a/hwe/c_betting.php b/hwe/c_betting.php index 2ec8a1ca..d5a49658 100644 --- a/hwe/c_betting.php +++ b/hwe/c_betting.php @@ -8,7 +8,7 @@ include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("베팅", 1); diff --git a/hwe/c_chiefboard.php b/hwe/c_chiefboard.php index c9011c96..a7df2564 100644 --- a/hwe/c_chiefboard.php +++ b/hwe/c_chiefboard.php @@ -6,7 +6,7 @@ include "func.php"; // $title, $msg, $num //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(getBlockLevel() != 1 && getBlockLevel() != 3) { diff --git a/hwe/c_dipcenter.php b/hwe/c_dipcenter.php index 7d9455fa..f216c1d0 100644 --- a/hwe/c_dipcenter.php +++ b/hwe/c_dipcenter.php @@ -6,7 +6,7 @@ include "func.php"; // $btn, $msg, $scoutmsg, $rate, $bill, $secretlimit //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select no,nation,level from general where owner='{$_SESSION['userID']}'"; diff --git a/hwe/c_double.php b/hwe/c_double.php index 5bc2a851..4a6ee106 100644 --- a/hwe/c_double.php +++ b/hwe/c_double.php @@ -6,7 +6,7 @@ include "func.php"; // $turn, $command, $cost, $name, $nationname, $note, $double, $third, $fourth //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if($command < 0) { $command = 0; } diff --git a/hwe/c_myBossInfo.php b/hwe/c_myBossInfo.php index 27c41937..a18adcb6 100644 --- a/hwe/c_myBossInfo.php +++ b/hwe/c_myBossInfo.php @@ -6,7 +6,7 @@ include "func.php"; // $btn, $level, $genlist, $outlist //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select startyear,year,month from game limit 1"; diff --git a/hwe/c_nationboard.php b/hwe/c_nationboard.php index 605cbbf3..81072196 100644 --- a/hwe/c_nationboard.php +++ b/hwe/c_nationboard.php @@ -6,7 +6,7 @@ include "func.php"; // $title, $msg, $num //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); if(getBlockLevel() != 1 && getBlockLevel() != 3) { diff --git a/hwe/c_nationrule.php b/hwe/c_nationrule.php index 2345d648..516184b6 100644 --- a/hwe/c_nationrule.php +++ b/hwe/c_nationrule.php @@ -6,7 +6,7 @@ include "func.php"; // $msg //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select no,nation from general where owner='{$_SESSION['userID']}'"; diff --git a/hwe/c_tournament.php b/hwe/c_tournament.php index 82c6fc51..0c14daf7 100644 --- a/hwe/c_tournament.php +++ b/hwe/c_tournament.php @@ -6,7 +6,7 @@ include "func.php"; // $btn, $msg //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select tournament,phase,tnmt_type,develcost from game limit 1"; diff --git a/hwe/c_vacation.php b/hwe/c_vacation.php index 88baa9ba..4c545b7d 100644 --- a/hwe/c_vacation.php +++ b/hwe/c_vacation.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select killturn from game limit 1"; diff --git a/hwe/c_vote.php b/hwe/c_vote.php index 9e1cb567..57ea6de9 100644 --- a/hwe/c_vote.php +++ b/hwe/c_vote.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select develcost,vote,votecomment from game limit 1"; diff --git a/hwe/d_ally.php b/hwe/d_ally.php index c0294255..51e4f184 100644 --- a/hwe/d_ally.php +++ b/hwe/d_ally.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); //$when = ($when + 1) * 2; diff --git a/hwe/d_cancel.php b/hwe/d_cancel.php index 43b260e5..3db235c5 100644 --- a/hwe/d_cancel.php +++ b/hwe/d_cancel.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select year,month from game limit 1"; diff --git a/hwe/d_cease.php b/hwe/d_cease.php index 4bd9a212..cb58e8f8 100644 --- a/hwe/d_cease.php +++ b/hwe/d_cease.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select year,month from game limit 1"; diff --git a/hwe/d_merge.php b/hwe/d_merge.php index 0d6ed37d..7af5b389 100644 --- a/hwe/d_merge.php +++ b/hwe/d_merge.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select year,month from game limit 1"; diff --git a/hwe/d_scout.php b/hwe/d_scout.php index 2f203476..e7e1fd82 100644 --- a/hwe/d_scout.php +++ b/hwe/d_scout.php @@ -10,7 +10,7 @@ include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select startyear,year,month,killturn from game limit 1"; diff --git a/hwe/d_surrender.php b/hwe/d_surrender.php index 3730b349..7670c963 100644 --- a/hwe/d_surrender.php +++ b/hwe/d_surrender.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select year,month from game limit 1"; diff --git a/hwe/func_legacy.php b/hwe/func_legacy.php index 84bcd773..bbba9bd5 100644 --- a/hwe/func_legacy.php +++ b/hwe/func_legacy.php @@ -2,18 +2,14 @@ namespace sammo; -function CheckLogin($type=0) { - //TODO: 직접해라. setReadOnly() 호출이 필요하다. - if(Session::Instance()->loginGame()->generalID){ - return; +function CheckLoginWithGeneralID() { + $session = Session::requireLogin()->loginGame()->setReadOnly(); + $generalID = $session->generalID; + if($generalID){ + return $generalID; } - if($type == 0) { - header('Location: ../'); - } - else { - header('Location: index.php'); - } - exit(); + header('Locatoin:..'); + die(); } diff --git a/hwe/map_history.php b/hwe/map_history.php index 4f53bb9a..2cfb5630 100644 --- a/hwe/map_history.php +++ b/hwe/map_history.php @@ -17,7 +17,7 @@ if(!$year || !$month) { include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select map from history where year='$year' and month='$month'"; diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index f0b9af5c..cefedf47 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("턴입력", 1); diff --git a/hwe/processing.php b/hwe/processing.php index be502707..d4e1c92b 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $count = sizeof($turn); diff --git a/hwe/turn.php b/hwe/turn.php index 6be0b804..ccee693b 100644 --- a/hwe/turn.php +++ b/hwe/turn.php @@ -6,7 +6,7 @@ include "func.php"; //로그인 검사 -CheckLogin(1); +CheckLoginWithGeneralID(); $connect = dbConn(); increaseRefresh("턴반복", 1); diff --git a/hwe/turn_pop_core.php b/hwe/turn_pop_core.php index 230f0564..30af6fd5 100644 --- a/hwe/turn_pop_core.php +++ b/hwe/turn_pop_core.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select no from general where owner='{$_SESSION['userID']}'"; diff --git a/hwe/turn_push_core.php b/hwe/turn_push_core.php index 1f6dd13e..9804b6dc 100644 --- a/hwe/turn_push_core.php +++ b/hwe/turn_push_core.php @@ -4,7 +4,7 @@ namespace sammo; include "lib.php"; include "func.php"; //로그인 검사 -CheckLogin(); +CheckLoginWithGeneralID(); $connect = dbConn(); $query = "select no from general where owner='{$_SESSION['userID']}'";