00001 <?php 00017 function smarty_core_assign_smarty_interface($params, &$smarty) 00018 { 00019 if (isset($smarty->_smarty_vars) && isset($smarty->_smarty_vars['request'])) { 00020 return; 00021 } 00022 00023 $_globals_map = array('g' => 'HTTP_GET_VARS', 00024 'p' => 'HTTP_POST_VARS', 00025 'c' => 'HTTP_COOKIE_VARS', 00026 's' => 'HTTP_SERVER_VARS', 00027 'e' => 'HTTP_ENV_VARS'); 00028 00029 $_smarty_vars_request = array(); 00030 00031 foreach (preg_split('!!', strtolower($smarty->request_vars_order)) as $_c) { 00032 if (isset($_globals_map[$_c])) { 00033 $_smarty_vars_request = array_merge($_smarty_vars_request, $GLOBALS[$_globals_map[$_c]]); 00034 } 00035 } 00036 $_smarty_vars_request = @array_merge($_smarty_vars_request, $GLOBALS['HTTP_SESSION_VARS']); 00037 00038 $smarty->_smarty_vars['request'] = $_smarty_vars_request; 00039 } 00040 00041 /* vim: set expandtab: */ 00042 00043 ?>
| Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|
