테스트 사이트 - 개발 중인 베타 버전입니다

vscode 에서 정규표현식으로 검색하기

결론) Ctrl+Shift+F 에서 아래와 같이 체크한다음 정규표현식 검색을 하면 됩니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

회원님께서 

 

$_SESSION[$ss_name] = true;

 

위와 같은 코드를 아래의 코드로 수정하는게 어떻겠냐고 제안을 하셨습니다.

 

set_session($ss_name, TRUE);


그래서 저는 $_SESSION 이 앞에서 대입되는 변수로 사용하는 코드가 더 있는지 검색을 해 보았습니다.

 

^\s*\$_SESSION

 

문장의 시작에서 중간에 공란이 있어도 없어도 되는 $_SESSION 변수를 찾아 보았습니다.

이렇게나 많은 파일에서 발견이 되었네요.

너무 많은 부분을 수정해야 해서 해당 코드는 그냥 두는 것으로 했습니다.

 

28 results - 14 files

common.php:
  721  
  722: $_SESSION['ss_is_mobile'] = $is_mobile;
  723  define('G5_IS_MOBILE', $is_mobile);

bbs/download.php:
  87      // 다운로드 카운트를 증가시키고 세션을 생성
  88:     $_SESSION[$ss_name] = true;
  89  }

mobile/shop/lg/xpay_approval.php:
  131  
  132: $_SESSION['PAYREQ_MAP'] = $payReqMap;
  133  

plugin/kcaptcha/kcaptcha.lib.php:
  279      if ($_POST['captcha_key'] != get_session('ss_captcha_key')) {
  280:         $_SESSION['ss_captcha_count'] = $captcha_count + 1;
  281          return false;

plugin/lgxpay/AuthOnlyReq.php:
  86  
  87: $_SESSION['lgd_certify'] = $payReqMap;
  88  

plugin/lgxpay/lgdacom/XPayClient4DB.php:
  223          if(isset($_SESSION['tx_counter']))  
  224:             $_SESSION['tx_counter'] = $_SESSION['tx_counter'] + 1;
  225          else  
  226:             $_SESSION['tx_counter'] = 1;
  227  //        $this->log("session id = ".session_id().$_SESSION['tx_counter'], LGD_LOG_FATAL);

plugin/PHPMailer/get_oauth_token.php:
  143      $authUrl = $provider->getAuthorizationUrl();
  144:     $_SESSION['oauth2state'] = $provider->getState();
  145      header('Location: ' . $authUrl);

plugin/sns/twitter/callback-sample.php:
  14  if (isset($_REQUEST['oauth_token']) && $_SESSION['oauth_token'] !== $_REQUEST['oauth_token']) {
  15:   $_SESSION['oauth_status'] = 'oldtoken';
  16    header('Location: ./clearsessions.php');

  25  /* Save the access tokens. Normally these would be saved in a database for future use. */
  26: $_SESSION['access_token'] = $access_token;
  27  

  34    /* The user has been verified and the access tokens can be saved for future use */
  35:   $_SESSION['status'] = 'verified';
  36    header('Location: ./index.php');

plugin/sns/twitter/callback.php:
  18  if (isset($_REQUEST['oauth_token']) && $_SESSION['oauth_token'] !== $_REQUEST['oauth_token']) {
  19:     $_SESSION['oauth_status'] = 'oldtoken';
  20      header('Location: ./clearsessions.php');

  29  /* Save the access tokens. Normally these would be saved in a database for future use. */
  30: $_SESSION['access_token'] = $access_token;
  31  

  37  if (200 == $connection->http_code) {
  38:   $_SESSION['status'] = 'verified';
  39    header('Location: ./index.php');

plugin/sns/twitter/README.md:
  89      $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['oauth_token'],
  90:     $_SESSION['oauth_token_secret']);
  91  

plugin/sns/twitter/redirect.php:
  15  /* Save temporary credentials to session. */
  16: $_SESSION['oauth_token'] = $token = $request_token['oauth_token'];
  17: $_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret'];
  18  

plugin/social/Hybrid/Storage.php:
   39          if ($value) {
   40:             $_SESSION["HA::CONFIG"][$key] = serialize($value);
   41          } elseif (isset($_SESSION["HA::CONFIG"][$key])) {

   72          $key = strtolower($key);
   73:         $_SESSION["HA::STORE"][$key] = serialize($value);
   74      }

   80      function clear() {
   81:         $_SESSION["HA::STORE"] = array();
   82      }

   95              unset($f[$key]);
   96:             $_SESSION["HA::STORE"] = $f;
   97          }

  115              }
  116:             $_SESSION["HA::STORE"] = $f;
  117          }

  137      function restoreSessionData($sessiondata = null) {
  138:         $_SESSION["HA::STORE"] = unserialize($sessiondata);
  139      }

plugin/social/includes/functions.php:
  375  function social_login_session_clear($mycf=0){
  376:     $_SESSION["HA::STORE"]        = array(); // used by hybridauth library. to clear as soon as the auth process ends.
  377:     $_SESSION["HA::CONFIG"]       = array(); // used by hybridauth library. to clear as soon as the auth process ends.
  378      set_session('sl_userprofile', '');

  484              if( ! (isset($_SESSION['sl_userprofile']) && is_array($_SESSION['sl_userprofile'])) ){ 
  485:                 $_SESSION['sl_userprofile'] = array(); 
  486              }

  488              if( ! $is_member ){ 
  489:                 $_SESSION['sl_userprofile'][$provider_name] = json_encode( $user_profile );
  490              }

shop/lg/xpay_request.php:
  88  
  89: $_SESSION['PAYREQ_MAP'] = $payReqMap;
  90  
 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
98
97
91
87
80
76
75
72
71
70
69
68
62
61
60
57
55
54
49
40
36
33
32
31
29
21
11
8
4
1