- Timestamp:
- 2013/06/13 19:35:56 (11 years ago)
- Location:
- branches/version-2_12-multilang
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang
- Property svn:mergeinfo changed
/branches/version-2_12-dev merged: 22580,22604,22797-22798,22802,22826 /branches/version-2_12_4en (added) merged: 22800-22801,22812-22816,22828-22829
- Property svn:mergeinfo changed
-
branches/version-2_12-multilang/data
- Property svn:mergeinfo changed
/branches/version-2_12-dev/data merged: 22580,22604,22797-22798,22826 /branches/version-2_12_4en/data (added) merged: 22800-22801,22812-22816,22828-22829
- Property svn:mergeinfo changed
-
branches/version-2_12-multilang/data/class/helper/SC_Helper_Session.php
r21867 r22859 216 216 */ 217 217 function adminAuthorization() { 218 $masterData = new SC_DB_MasterData_Ex(); 219 $arrExcludes = $masterData->getMasterData('mtb_auth_excludes'); 220 if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . '|', $_SERVER['SCRIPT_NAME'])) { 221 $is_auth = true; 222 223 foreach ($arrExcludes as $exclude) { 224 if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . $exclude . '|', $_SERVER['SCRIPT_NAME'])) { 225 $is_auth = false; 226 break; 218 if (($script_path = realpath($_SERVER['SCRIPT_FILENAME'])) !== FALSE) { 219 $arrScriptPath = explode('/', str_replace('\\', '/', $script_path)); 220 $arrAdminPath = explode('/', str_replace('\\', '/', substr(HTML_REALDIR . ADMIN_DIR, 0, -1))); 221 $arrDiff = array_diff_assoc($arrAdminPath, $arrScriptPath); 222 if (in_array(substr(ADMIN_DIR, 0, -1), $arrDiff)) { 223 return; 224 } else { 225 $masterData = new SC_DB_MasterData_Ex(); 226 $arrExcludes = $masterData->getMasterData('mtb_auth_excludes'); 227 foreach ($arrExcludes as $exclude) { 228 $arrExcludesPath = explode('/', str_replace('\\', '/', HTML_REALDIR . ADMIN_DIR . $exclude)); 229 $arrDiff = array_diff_assoc($arrExcludesPath, $arrScriptPath); 230 if (count($arrDiff) === 0) { 231 return; 232 } 227 233 } 228 234 } 229 if ($is_auth) { 230 SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex()); 231 } 232 } 235 } 236 SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex()); 233 237 } 234 238 }
Note: See TracChangeset
for help on using the changeset viewer.