Changeset 21481 for branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php
- Timestamp:
- 2012/02/11 05:48:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php
r21420 r21481 52 52 $this->tpl_subtitle = "プラグイン「{$this->arrPluginInfo['name']}」の設定"; 53 53 54 if (empty($_POST[ "mode"])) {55 $_POST[ "mode"] = "";54 if (empty($_POST['mode'])) { 55 $_POST['mode'] = ""; 56 56 } 57 57 58 if (empty($_GET[ "mode"])) {59 $_GET[ "mode"] = "";58 if (empty($_GET['mode'])) { 59 $_GET['mode'] = ""; 60 60 } 61 61 } … … 64 64 * Page のプロセス. 65 65 * 66 * POST パラメーター "mode"が register の場合は登録処理を行う.67 * 登録処理の後, 自ページをリロードし, GET パラメーター "mode"を付与する.68 * 登録に成功し, GET パラメーター "mode"の値が success の場合は66 * POST パラメーター 'mode' が register の場合は登録処理を行う. 67 * 登録処理の後, 自ページをリロードし, GET パラメーター 'mode' を付与する. 68 * 登録に成功し, GET パラメーター 'mode' の値が success の場合は 69 69 * 「登録に成功しました」というメッセージをポップアップで表示する. 70 * 登録に失敗し, GET パラメーター "mode"の値が failure の場合は70 * 登録に失敗し, GET パラメーター 'mode' の値が failure の場合は 71 71 * 「登録に失敗しました」というメッセージをポップアップで表示する. 72 72 * … … 79 79 SC_Utils_Ex::sfIsSuccess(new SC_Session()); 80 80 81 switch ($_POST[ "mode"]) {82 case "register":81 switch ($_POST['mode']) { 82 case 'register': 83 83 if ($this->register($_POST['ga_ua'])) { 84 SC_Response_Ex::reload(array( "mode" => "success"), true);84 SC_Response_Ex::reload(array('mode' => 'success'), true); 85 85 exit; 86 86 } else { 87 SC_Response_Ex::reload(array( "mode" => "failure"), true);87 SC_Response_Ex::reload(array('mode' => 'failure'), true); 88 88 exit; 89 89 } … … 93 93 } 94 94 95 switch ($_GET[ "mode"]) {96 case "success":95 switch ($_GET['mode']) { 96 case 'success': 97 97 $this->tpl_onload .= "window.alert('登録に成功しました。');"; 98 98 break; 99 99 100 case "failure":100 case 'failure': 101 101 $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 102 102 break; … … 124 124 125 125 $configFile = $this->arrPluginInfo['fullpath'] . "classes/pages/ga_config.php"; 126 $handle = fopen($configFile, "w");126 $handle = fopen($configFile, 'w'); 127 127 if (!$handle) { 128 128 return false;
Note: See TracChangeset
for help on using the changeset viewer.