当前位置: 首页>>代码示例>>PHP>>正文


PHP gpOutput::ExecInfo方法代码示例

本文整理汇总了PHP中gpOutput::ExecInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP gpOutput::ExecInfo方法的具体用法?PHP gpOutput::ExecInfo怎么用?PHP gpOutput::ExecInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gpOutput的用法示例。


在下文中一共展示了gpOutput::ExecInfo方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ExecInfo

 static function ExecInfo($scriptinfo)
 {
     global $dataDir;
     ob_start();
     gpOutput::ExecInfo($scriptinfo);
     return ob_get_clean();
 }
开发者ID:Knuzen,项目名称:gpEasy-CMS,代码行数:7,代码来源:special.php

示例2: ExecArea

 static function ExecArea($info)
 {
     //retreive from gadget cache if set
     if (isset($info['gpOutCmd'])) {
         $gadget = $info['gpOutCmd'];
         if (substr($gadget, 0, 7) == 'Gadget:') {
             $gadget = substr($gadget, 7);
         }
         if (isset(self::$gadget_cache[$gadget])) {
             echo self::$gadget_cache[$gadget];
             return;
         }
     }
     $info += array('arg' => '');
     $args = array($info['arg'], $info);
     gpOutput::ExecInfo($info, $args);
 }
开发者ID:Bomberus,项目名称:gpEasy-CMS,代码行数:17,代码来源:gpOutput.php

示例3: ExecHook

 /**
  * Execute the php code associated with a $hook
  * @param string $hook
  * @param array $hook_info
  * @param array $args
  *
  */
 static function ExecHook($hook, $info, $args = array())
 {
     global $dataDir, $gp_current_hook;
     if (gp_safe_mode) {
         if (isset($args[0])) {
             return $args[0];
         }
         return;
     }
     if (!is_array($args)) {
         $args = array($args);
     }
     $gp_current_hook[] = $hook;
     //value
     if (!empty($info['value'])) {
         $args[0] = $info['value'];
     }
     $args = gpOutput::ExecInfo($info, $args);
     array_pop($gp_current_hook);
     if (isset($args[0])) {
         return $args[0];
     }
     return false;
 }
开发者ID:VTAMAGNO,项目名称:gpEasy-CMS,代码行数:31,代码来源:Plugins.php

示例4: RunAdminScript

 /**
  * Find the requested admin script and execute it if the user has permissions to view it
  *
  */
 function RunAdminScript()
 {
     global $dataDir, $langmessage;
     //resolve request for /Admin_Theme_Content if the request is for /Admin_Theme_Conent/1234
     $parts = explode('/', $this->requested);
     do {
         $request_string = implode('/', $parts);
         $scriptinfo = false;
         $scripts = admin_tools::AdminScripts();
         if (isset($scripts[$request_string])) {
             $scriptinfo = $scripts[$request_string];
             if (admin_tools::HasPermission($request_string)) {
                 admin_display::OrganizeFrequentScripts($request_string);
                 gpOutput::ExecInfo($scriptinfo);
                 return;
             } else {
                 message($langmessage['not_permitted']);
                 $parts = array();
             }
         } elseif (count($scripts) > 0) {
             //check case
             $case_check = array_keys($scripts);
             $case_check = array_combine($case_check, $case_check);
             $case_check = array_change_key_case($case_check, CASE_LOWER);
             $lower = strtolower($request_string);
             if (isset($case_check[$lower])) {
                 $location = common::GetUrl($case_check[$lower], http_build_query($_GET), false);
                 common::Redirect($location);
             }
         }
         //these are here because they should be available to everyone
         switch ($request_string) {
             case 'Admin_Browser':
                 includeFile('admin/admin_browser.php');
                 new admin_browser();
                 return;
             case 'Admin_Preferences':
                 $this->label = $langmessage['Preferences'];
                 includeFile('admin/admin_preferences.php');
                 new admin_preferences();
                 return;
             case 'Admin_About':
                 $this->label = 'About gpEasy';
                 includeFile('admin/admin_about.php');
                 new admin_about();
                 return;
             case 'Admin_Finder':
                 if (admin_tools::HasPermission('Admin_Uploaded')) {
                     includeFile('thirdparty/finder/connector.php');
                     return;
                 }
                 break;
         }
         array_pop($parts);
     } while (count($parts));
     $this->AdminPanel();
 }
开发者ID:jdearaujo,项目名称:gpEasy-CMS,代码行数:61,代码来源:admin_display.php

示例5: ExecArea

 function ExecArea($info)
 {
     global $GP_GADGET_CACHE;
     //retreive from gadget cache if set
     if (isset($info['gpOutCmd']) && isset($GP_GADGET_CACHE[$info['gpOutCmd']])) {
         echo $GP_GADGET_CACHE[$info['gpOutCmd']];
         return;
     }
     $info += array('arg' => '');
     $args = array($info['arg'], $info);
     gpOutput::ExecInfo($info, $args);
 }
开发者ID:rizub4u,项目名称:gpEasy-CMS,代码行数:12,代码来源:gpOutput.php


注:本文中的gpOutput::ExecInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。