Changeset 15056 for branches/beta/data/class
- Timestamp:
- 2007/07/18 10:17:57 (17 years ago)
- Location:
- branches/beta/data/class
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/data/class/SC_CartSession.php
r14730 r15056 344 344 } 345 345 346 347 346 } 348 347 ?> -
branches/beta/data/class/SC_CheckError.php
r12037 r15056 812 812 $this->arrErr[$value[1]] = "¢¨ " . $value[0] . "¤Ï·ÈÂÓÅÅÏäΤâ¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£<br />"; 813 813 } 814 } 814 } 815 /** 816 * ¶Ø»ßʸ»úÎó¤Î¥Á¥§¥Ã¥¯ 817 * value[0] = ¹àÌÜ̾ value[1] = ȽÄêÂоÝʸ»úÎó 818 * value[2] = ÆþÎϤò¶Ø»ß¤¹¤ëʸ»úÎó(ÇÛÎó) 819 * 820 * @example $objErr->doFunc(array("URL", "contents", $arrReviewDenyURL), array("PROHIBITED_STR_CHECK")); 821 */ 822 function PROHIBITED_STR_CHECK( $value ) { 823 if( isset($this->arrErr[$value[1]]) || empty($this->arrParam[$value[1]]) ) { 824 return; 825 } 826 827 $targetStr = $this->arrParam[$value[1]]; 828 $prohibitedStr = str_replace(array('|', '/'), array('\|', '\/'), $value[2]); 829 830 $pattern = '/' . join('|', $prohibitedStr) . '/i'; 831 if(preg_match_all($pattern, $this->arrParam[$value[1]], $matches)) { 832 $this->arrErr[$value[1]] = "¢¨ " . $value[0] . "¤ÏÆþÎϤǤ¤Þ¤»¤ó¡£<br />"; 833 } 834 } 815 835 } 816 836 ?> -
branches/beta/data/class/SC_Session.php
r17 r15056 13 13 var $sid; // ¥»¥Ã¥·¥ç¥óID 14 14 var $member_id; // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î¼ç¥¡¼ 15 15 var $uniqid; // ¥Ú¡¼¥¸Á«°Ü¤ÎÀµÅöÀ¥Á¥§¥Ã¥¯¤Ë»ÈÍÑ 16 16 17 /* ¥³¥ó¥¹¥È¥é¥¯¥¿ */ 17 18 function SC_Session() { … … 23 24 $this->sid = session_id(); 24 25 $this->cert = $_SESSION['cert']; 25 $this->login_id = $_SESSION['login_id'];26 $this->login_id = $_SESSION['login_id']; 26 27 $this->authority = $_SESSION['authority']; // ´ÉÍý¼Ô:0, °ìÈÌ:1, ±ÜÍ÷:2 27 28 $this->member_id = $_SESSION['member_id']; 29 $this->uniqid = $_SESSION['uniq_id']; 30 28 31 // ¥í¥°¤ËµÏ¿¤¹¤ë 29 32 gfPrintLog("access : user=".$this->login_id." auth=".$this->authority." sid=".$this->sid); … … 64 67 } 65 68 69 /** ¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ **/ 70 function getUniqId() { 71 // ¥æ¥Ë¡¼¥¯ID¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¥»¥Ã¥È¤¹¤ë¡£ 72 if( empty($_SESSION['uniqid']) ) { 73 $this->setUniqId(); 74 } 75 return $this->GetSession('uniqid'); 76 } 77 78 /** ¥æ¥Ë¡¼¥¯ID¤Î¥»¥Ã¥È **/ 79 function setUniqId() { 80 // ͽ¬¤µ¤ì¤Ê¤¤¤è¤¦¤Ë¥é¥ó¥À¥àʸ»úÎó¤òÉÕÍ¿¤¹¤ë¡£ 81 $this->SetSession('uniqid', sfGetUniqRandomId()); 82 } 83 66 84 /* ¥»¥Ã¥·¥ç¥ó¤ÎÇË´þ */ 67 85 function EndSession() { … … 87 105 unset($_SESSION['authority']); 88 106 unset($_SESSION['member_id']); 107 unset($_SESSION['uniqid']); 89 108 // ¥í¥°¤ËµÏ¿¤¹¤ë 90 109 gfPrintLog("logout : user=".$this->login_id." auth=".$this->authority." sid=".$this->sid); -
branches/beta/data/class/SC_View.php
r14676 r15056 44 44 $this->_smarty->register_function("sfPrintEbisTag","sfPrintEbisTag"); 45 45 $this->_smarty->register_function("sfPrintAffTag","sfPrintAffTag"); 46 $this->_smarty->default_modifiers = array('script_escape'); 46 $this->_smarty->register_function("sfIsHTTPS","sfIsHTTPS"); 47 $this->_smarty->default_modifiers = array('script_escape'); 47 48 48 49 if(ADMIN_MODE == '1') {
Note: See TracChangeset
for help on using the changeset viewer.