Changeset 18007 for branches/version-2/data/class/pages/frontparts
- Timestamp:
- 2009/05/15 16:30:40 (17 years ago)
- Location:
- branches/version-2/data/class/pages/frontparts
- Files:
-
- 2 edited
-
LC_Page_FrontParts_LoginCheck.php (modified) (2 diffs)
-
bloc/LC_Page_FrontParts_Bloc_Calendar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php
r17220 r18007 67 67 // パラメータ情報の初期化 68 68 $this->lfInitParam(); 69 //パスワード・Eメールにある空白をトリム 70 $_POST["login_email"] = preg_replace('/^[ \r\n]*(.*?)[ \r\n]*$/u', '$1', $_POST["login_email"]); 71 $_POST["login_pass"] = trim($_POST["login_pass"]); //認証用 72 $_POST["login_pass1"] = $_POST["login_pass"]; //最小桁数比較用 73 $_POST["login_pass2"] = $_POST["login_pass"]; //最大桁数比較用 69 74 // POST値の取得 70 75 $this->objFormParam->setParam($_POST); … … 139 144 $this->objFormParam->addParam("記憶する", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 140 145 $this->objFormParam->addParam("メールアドレス", "login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK")); 141 $this->objFormParam->addParam("パスワード", "login_pass", MTEXT_LEN, "", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 146 $this->objFormParam->addParam("パスワード", "login_pass", PASSWORD_LEN1, "", array("EXIST_CHECK")); 147 $this->objFormParam->addParam("パスワード", "login_pass1", PASSWORD_LEN1, "", array("EXIST_CHECK", "MIN_LENGTH_CHECK")); 148 $this->objFormParam->addParam("パスワード", "login_pass2", PASSWORD_LEN2, "", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 142 149 } 143 150 } -
branches/version-2/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php
r17143 r18007 63 63 } 64 64 65 // 休日取得取得 66 $this->arrHoliday = $this->lfGetHoliday(); 67 65 68 // 定休日取得取得 66 $this->arr Holiday = $this->lfGetHoliday();69 $this->arrRegularHoliday = $this->lfGetRegularHoliday(); 67 70 68 71 // カレンダーデータ取得 … … 127 130 $arrCalendar[$j][$i]['month'] = $month; 128 131 $arrCalendar[$j][$i]['day'] = $Day->day; 129 if ($this->lfCheckHoliday($ month, $Day->day) || $Day->first || $Day->last) {132 if ($this->lfCheckHoliday($year, $month, $Day->day)) { 130 133 $arrCalendar[$j][$i]['holiday'] = true; 131 134 } else { … … 152 155 } 153 156 157 // 定休日取得 158 function lfGetRegularHoliday() { 159 $objSIteInfo = new SC_SiteInfo(); 160 $arrRegularHoliday = explode('|', $objSIteInfo->data['regular_holiday_ids']); 161 return $arrRegularHoliday; 162 } 154 163 // 休日チェック 155 function lfCheckHoliday($ month, $day) {164 function lfCheckHoliday($year, $month, $day) { 156 165 if (!empty($this->arrHoliday[$month])) { 157 166 if (in_array($day, $this->arrHoliday[$month])) { 167 return true; 168 } 169 } 170 if (!empty($this->arrRegularHoliday)) { 171 $w = date('w', mktime(0,0,0 ,$month, $day, $year)); 172 if (in_array($w, $this->arrRegularHoliday)) { 158 173 return true; 159 174 }
Note: See TracChangeset
for help on using the changeset viewer.
