Beispiel #1
0
         foreach ($myInsecureArray as $requestvar => $requestval) {
             $_REQUEST[$requestvar] = $requestval;
         }
     } else {
         // Strip all tags from all input values
         $_REQUEST = $vmInputFilter->process($_REQUEST);
         $_REQUEST = $vmInputFilter->safeSQL($_REQUEST);
     }
     // Limit the keyword (=search string) length to 50
     $keyword = substr(urldecode(vmGet($_REQUEST, 'keyword')), 0, 50);
     $vars = vmRequest::get('', VMREQUEST_ALLOWRAW);
 }
 // The Page will change with every different parameter / argument, so provide this for identification
 // "call" will call the function load_that_shop_page when it is not yet cached with exactly THESE parameters
 // or the caching time range has expired
 $GLOBALS['cache_id'] = vmTemplate::getCacheId();
 if ($option == "com_virtuemart") {
     // Check if we have to run a Shop Function
     // and if the user is allowed to execute it
     $funcParams = $ps_function->getFuncPermissions($func);
     /**********************************************
      ** Get Page/Directory Permissions
      ** Displays error if directory is not registered,
      ** user has no permission to view it , or file doesn't exist
      ************************************************/
     if (empty($page)) {
         // default page
         if (defined('_VM_IS_BACKEND')) {
             $page = "store.index";
         } else {
             $page = HOMEPAGE;