• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP plugin_list函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中plugin_list函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_list函数的具体用法?PHP plugin_list怎么用?PHP plugin_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: get_plugin_list

 /**
  * Returns array of plugin names
  *
  * @return array plugin names
  */
 function get_plugin_list()
 {
     if (is_null($this->_plugin_list)) {
         $list = plugin_list('', false);
         $this->_plugin_list = $list;
     }
     return $this->_plugin_list;
 }
开发者ID:LeutenmayrS,项目名称:dokuwiki-pageproperties,代码行数:13,代码来源:meta.class.php


示例2: p_get_parsermodes

function p_get_parsermodes()
{
    global $conf;
    //reuse old data
    static $modes = null;
    if ($modes != null) {
        return $modes;
    }
    //import parser classes and mode definitions
    require_once DOKU_INC . 'includes/parser/parser.php';
    // we now collect all syntax modes and their objects, then they will
    // be sorted and added to the parser in correct order
    $modes = array();
    // add syntax plugins
    $pluginlist = plugin_list('syntax');
    if (count($pluginlist)) {
        global $PARSER_MODES;
        $obj = null;
        foreach ($pluginlist as $p) {
            if (!($obj =& plugin_load('syntax', $p))) {
                continue;
            }
            //attempt to load plugin into $obj
            $PARSER_MODES[$obj->getType()][] = "plugin_{$p}";
            //register mode type
            //add to modes
            $modes[] = array('sort' => $obj->getSort(), 'mode' => "plugin_{$p}", 'obj' => $obj);
            unset($obj);
            //remove the reference
        }
    }
    // add default modes
    $std_modes = array('listblock', 'preformatted', 'notoc', 'nocache', 'header', 'table', 'linebreak', 'footnote', 'hr', 'unformatted', 'php', 'html', 'code', 'file', 'quote', 'multiplyentity', 'quotes', 'internallink', 'rss', 'media', 'externallink', 'emaillink', 'windowssharelink', 'eol');
    foreach ($std_modes as $m) {
        $class = "Doku_Parser_Mode_{$m}";
        $obj = new $class();
        $modes[] = array('sort' => $obj->getSort(), 'mode' => $m, 'obj' => $obj);
    }
    // add formatting modes
    $fmt_modes = array('strong', 'emphasis', 'underline', 'monospace', 'subscript', 'superscript', 'deleted');
    foreach ($fmt_modes as $m) {
        $obj = new Doku_Parser_Mode_formatting($m);
        $modes[] = array('sort' => $obj->getSort(), 'mode' => $m, 'obj' => $obj);
    }
    //sort modes
    usort($modes, 'p_sort_modes');
    return $modes;
}
开发者ID:BackupTheBerlios,项目名称:sitebe-svn,代码行数:48,代码来源:wiki.php


示例3: plugin_printCSSJS

/**
 * prints needed HTML to include plugin CSS and JS files
 *
 * @deprecated - now handled by the style and script loader in lib/exe
 */
function plugin_printCSSJS()
{
    global $conf;
    if (isset($conf['pluginmanager']) && $conf['pluginmanager'] && @file_exists(DOKU_INC . 'lib/plugins/plugin_style.css')) {
        // individual plugin instances of the files swept into one file each
        $dir = "lib/plugins/plugin_";
        if (@file_exists(DOKU_INC . $dir . 'style.css')) {
            print '  <link rel="stylesheet" type="text/css" href="' . DOKU_BASE . $dir . 'style.css" />' . "\n";
        }
        if (@file_exists(DOKU_INC . $dir . 'screen.css')) {
            print '  <link rel="stylesheet" media="screen" type="text/css" href="' . DOKU_BASE . $dir . 'screen.css" />' . "\n";
        }
        if (@file_exists(DOKU_INC . $dir . 'print.css')) {
            print '  <link rel="stylesheet" media="print" type="text/css" href="' . DOKU_BASE . $dir . 'print.css" />' . "\n";
        }
        if (@file_exists(DOKU_INC . $dir . 'script.js')) {
            print '  <script type="text/javascript" language="javascript" charset="utf-8" src="' . DOKU_BASE . $dir . 'script.js"></script>' . "\n";
        }
    } else {
        // no plugin manager (or aggregate files not setup) so individual instances of these files for any plugin that uses them
        $plugins = plugin_list();
        foreach ($plugins as $p) {
            $dir = "lib/plugins/{$p}/";
            if (@file_exists(DOKU_INC . $dir . 'style.css')) {
                print '  <link rel="stylesheet" type="text/css" href="' . DOKU_BASE . $dir . 'style.css" />' . "\n";
            }
            if (@file_exists(DOKU_INC . $dir . 'screen.css')) {
                print '  <link rel="stylesheet" media="screen" type="text/css" href="' . DOKU_BASE . $dir . 'screen.css" />' . "\n";
            }
            if (@file_exists(DOKU_INC . $dir . 'print.css')) {
                print '  <link rel="stylesheet" media="print" type="text/css" href="' . DOKU_BASE . $dir . 'print.css" />' . "\n";
            }
            if (@file_exists(DOKU_INC . $dir . 'script.js')) {
                print '  <script type="text/javascript" language="javascript" charset="utf-8" src="' . DOKU_BASE . $dir . 'script.js"></script>' . "\n";
            }
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:sitebe-svn,代码行数:43,代码来源:pluginutils.php


示例4: ws_run_report

function ws_run_report($window_name, $form = '')
{
    // Get the plugin location info.
    $reportlist = plugin_list('report');
    // Loop through the list of reports till we find the matching name
    foreach ($reportlist as $report) {
        if ($report['name'] == $form['report']) {
            // Load the report include file
            if (require_once $report['path']) {
                // Run the report and put it in the report_content box
                list($status, $report_output) = rpt_run($form, 'html');
            }
        }
    }
    // Insert the new html into the window
    // Instantiate the xajaxResponse object
    $response = new xajaxResponse();
    $response->addAssign("report_content", "innerHTML", $report_output);
    if ($js) {
        $response->addScript($js);
    }
    return $response->getXML();
}
开发者ID:edt82,项目名称:ona,代码行数:23,代码来源:display_report.inc.php


示例5: __call

 function __call($name, $arguments)
 {
     if (in_array('highlight', plugin_list())) {
         die('ERROR: highlight loaded');
     }
     require dirname(__FILE__) . '/mapping.php';
     $this->conf['m'] = $m;
     $m = $this->conf['m'];
     $args = func_get_args();
     array_shift($args);
     $args = $args[0];
     if (substr($name, -5) === '_open') {
         $type = 'OPEN';
         $multi = true;
         $this->opened++;
     } elseif (substr($name, -6) === '_close') {
         $type = 'CLOSE';
         $multi = true;
         $this->opened--;
     } else {
         $type = 'SINGLE';
         $multi = false;
     }
     $tag = str_replace(array('_open', '_close'), '', $name);
     // not nice but short
     // Footnote
     if (!isset($this->footnote_open)) {
         $this->footnote_open = false;
     }
     if ($tag == 'footnote') {
         $this->footnote_open = $type == 'OPEN';
     }
     if (isset($m[$tag])) {
         $mapping = $m[$tag];
     } else {
         foreach ($m as $key => $value) {
             if (in_array($tag, $value['alias'])) {
                 $mapping = $m[$key];
                 break;
             }
         }
     }
     if (!is_array($mapping)) {
         echo '<span style="color:red; display:block">No mapping found for function "' . $name . '()" and tag "' . $tag . '"</span>' . PHP_EOL;
         $this->doc = 'NO MAPPING FOUND' . $this->doc;
         exit;
     }
     // Use different template when p tag (paragraph) is open
     if (($this->pTagOpen or $this->sectionTagOpen) and isset($mapping['template_p_open'])) {
         $mapping['template'] = $mapping['template_p_open'];
     }
     // Special template for Headline level 1
     if (in_array($name, array('header', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'))) {
         if ($args[1] == 1) {
             $mapping['template'] = $mapping['template_level_0'];
         } else {
             // Reduce level by 1
             $args[1]--;
         }
     }
     // Get the corresponding part of the template
     $templateParts = explode($mapping['replacement'], $mapping['template']);
     switch ($type) {
         case 'OPEN':
             $doc = self::cleanTemplate($templateParts[0]);
             break;
         case 'CLOSE':
             $doc = self::cleanTemplate($templateParts[1]);
             break;
         case 'SINGLE':
             // $args[0] = str_replace('"',      '&quot;',   $args[0]); // seems not to work in headlines
             $args[0] = str_replace('&', '&amp;', $args[0]);
             $args[0] = str_replace('\'', '&apos;', $args[0]);
             $args[0] = str_replace('<', '&lt;', $args[0]);
             $args[0] = str_replace('>', '&gt;', $args[0]);
             if (isset($args[1]) and strpos($name, 'link') != false) {
                 $args[1] = str_replace('&', '&amp;', $args[1]);
                 $args[1] = str_replace('\'', '&apos;', $args[1]);
                 $args[1] = str_replace('<', '&lt;', $args[1]);
                 $args[1] = str_replace('>', '&gt;', $args[1]);
             }
             if ($name == 'emaillink') {
                 $args[0] = 'mailto:' . $args[0];
             }
             // Add link text if there is none
             if (($name === 'internallink' or $name === 'externallink' or $name === 'emaillink') and empty($args[1])) {
                 $args[1] = $args[0];
             }
             // Link text " -> &qout;
             if (($name === 'internallink' or $name === 'externallink' or $name === 'emaillink') and empty($args[1])) {
                 $args[1] = str_replace('"', '&quot;', $args[1]);
             }
             // Full URL for internal links
             if ($name === 'internallink') {
                 $args[0] = DOKU_URL . $args[0];
             }
             // Code linebreaks
             if ($name === 'code') {
                 $args[0] = str_replace("\n", '<dir-break-space/>', $args[0]);
             }
//.........这里部分代码省略.........
开发者ID:powtac,项目名称:Dokuwiki-Mellel-Export-Plugin,代码行数:101,代码来源:renderer.php


示例6: ona_sql

function ona_sql($options = "")
{
    // The important globals
    global $conf, $onadb, $base;
    // Version - UPDATE on every edit!
    $version = '1.05';
    // TODO: Maybe make this into a sys_config option
    $srvdir = dirname($base) . "/sql";
    printmsg('DEBUG => ona_sql(' . $options . ') called', 3);
    // Parse incoming options string to an array
    $options = parse_options($options);
    // Sanitize delimeter
    if (!$options['delimiter']) {
        $options['delimiter'] = ':';
    }
    // fix up the escaped ' marks.  may need the = and & stuff too????
    $options['sql'] = str_replace('\\\'', '\'', $options['sql']);
    $options['sql'] = str_replace('\\=', '=', $options['sql']);
    // Set "options[commit] to no if it's not set
    if (!array_key_exists('commit', $options)) {
        $options['commit'] = 'N';
    } else {
        $options['commit'] = sanitize_YN($options['commit'], 'N');
    }
    // Set "options[commit] to no if it's not set
    if (!array_key_exists('dataarray', $options)) {
        $options['dataarray'] = 'N';
    } else {
        $options['dataarray'] = sanitize_YN($options['dataarray'], 'N');
    }
    // Set "options[header] to yes if it's not set
    if (!array_key_exists('header', $options)) {
        $options['header'] = 'Y';
    } else {
        $options['header'] = sanitize_YN($options['header'], 'Y');
    }
    // Check permissions
    if (!auth('ona_sql')) {
        $self['error'] = "Permission denied!";
        printmsg($self['error'], 0);
        return array(10, $self['error'] . "\n");
    }
    // Return the usage summary if we need to
    if ($options['help'] or !($options['list'] and !$options['sql'] or !$options['list'] and $options['sql'])) {
        // NOTE: Help message lines should not exceed 80 characters for proper display on a console
        return array(1, <<<EOM

ona_sql-v{$version}
Runs the specified SQL query on the database and prints the result

  Synopsis: ona_sql [KEY=VALUE] ...

  Required:
    sql=STATEMENT|FILENAME   quoted SQL statement to execute
    OR
    list                     lists the SQL files available on the server side

  Optional:
    show                     displays contents of SQL, gives usage etc
    commit=yes|no            commit the transaction (no)
    header=yes|no            display record header (yes)
    delimiter=DELIMITER      record delimiter for output (:)
    (1,2,..)=VALUE           bind variables, replaces ? in query sequentially.
                             the first ? found is replaced by 1=value, and so on

  Notes:
    * Query is sent to the configured OpenNetAdmin database server.
    * The use of bind variables requires your options to match positionally.
    * The SQL option will be tried first as a local file, then as a server
      file, then as a raw text SQL query.  Filenames are case sensitive.
    * Server based SQL files are located in {$srvdir}
    * Some plugins may provide their own SQL dir inside the plugin directory
    * Use the show option to display contents of SQL files, this should contain
      a long description and any usage information that is needed.


EOM
);
    }
    // TODO: check that the user has admin privs? or at least a ona_sql priv
    // Get a list of the files
    $plugins = plugin_list();
    $files = array();
    $srvdirs = array();
    array_push($srvdirs, $srvdir);
    // add a local sql dir as well so they don't get overrriden by installs
    array_push($srvdirs, dirname($base) . '/www/local/sql');
    // loop through the plugins and find files inside of their sql directories.
    foreach ($plugins as $plug) {
        array_push($srvdirs, $plug['path'] . '/sql');
    }
    // Loop through each of our plugin directories and the default directory to find .sql files
    foreach ($srvdirs as $srvdir) {
        if ($handle = @opendir($srvdir)) {
            while (false !== ($file = readdir($handle))) {
                if ($file != "." && $file != ".." && substr($file, -4) == '.sql') {
                    // Build an array of filenames
                    array_push($files, $srvdir . '/' . $file);
                }
            }
//.........这里部分代码省略.........
开发者ID:edt82,项目名称:ona,代码行数:101,代码来源:sql.inc.php


示例7: plugin_multi_edit

function plugin_multi_edit()
{
    $selected = ps('selected');
    $method = ps('edit_method');
    if (!$selected or !is_array($selected)) {
        return plugin_list();
    }
    $where = "name IN ('" . join("','", doSlash($selected)) . "')";
    switch ($method) {
        case 'delete':
            safe_delete('txp_plugin', $where);
            break;
        case 'changestatus':
            safe_update('txp_plugin', 'status = (1-status)', $where);
            break;
        case 'changeorder':
            $order = min(max(intval(ps('order')), 1), 9);
            safe_update('txp_plugin', 'load_order = ' . $order, $where);
            break;
    }
    $message = gTxt('plugin_' . ($method == 'delete' ? 'deleted' : 'updated'), array('{name}' => join(', ', $selected)));
    plugin_list($message);
}
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:23,代码来源:txp_plugin.php


示例8: list

list($wspl, $wsjs) = workspace_plugin_loader('desktop_firsttasks', $record, $extravars);
print $wspl;
print <<<EOL



            <!-- END OF FIRST COLUMN OF SMALL BOXES -->
            </td>


        </tr>
        <tr>
            <td nowrap="true" valign="top" style="padding: 15px;">
EOL;
// Get all the plugin based worspace items
$wspl_list = plugin_list('wspl_item');
// Load all the dynamic plugins
foreach ($wspl_list as $p) {
    list($wspl, $wsjs) = workspace_plugin_loader($p['path'], $record, $extravars);
    print $wspl;
    $ws_plugin_js .= $wsjs;
}
print <<<EOL
            </td>
        </tr>
        </table>

        <!-- Print the MOTD info if any -->
        <div>{$MOTD}</div>

        </div>
开发者ID:edt82,项目名称:ona,代码行数:31,代码来源:html_desktop.inc.php


示例9: initialize

 /**
  * Receives current values for the setting $key
  *
  * @param mixed $default   default setting value
  * @param mixed $local     local setting value
  * @param mixed $protected protected setting value
  */
 function initialize($default, $local, $protected)
 {
     $format = $this->_format;
     foreach (plugin_list('renderer') as $plugin) {
         $renderer = plugin_load('renderer', $plugin);
         if (method_exists($renderer, 'canRender') && $renderer->canRender($format)) {
             $this->_choices[] = $plugin;
             $info = $renderer->getInfo();
             $this->_prompts[$plugin] = $info['name'];
         }
     }
     parent::initialize($default, $local, $protected);
 }
开发者ID:kevinlovesing,项目名称:dokuwiki,代码行数:20,代码来源:extra.class.php


示例10: js_pluginstrings

/**
 * Return an two-dimensional array with strings from the language file of each plugin.
 *
 * - $lang['js'] must be an array.
 * - Nothing is returned for plugins without an entry for $lang['js']
 *
 * @author Gabriel Birke <[email protected]>
 */
function js_pluginstrings()
{
    global $conf;
    $pluginstrings = array();
    $plugins = plugin_list();
    foreach ($plugins as $p) {
        if (isset($lang)) {
            unset($lang);
        }
        if (@file_exists(DOKU_PLUGIN . "{$p}/lang/en/lang.php")) {
            include DOKU_PLUGIN . "{$p}/lang/en/lang.php";
        }
        if (isset($conf['lang']) && $conf['lang'] != 'en' && @file_exists(DOKU_PLUGIN . "{$p}/lang/" . $conf['lang'] . "/lang.php")) {
            include DOKU_PLUGIN . "{$p}/lang/" . $conf['lang'] . "/lang.php";
        }
        if (isset($lang['js'])) {
            $pluginstrings[$p] = $lang['js'];
        }
    }
    return $pluginstrings;
}
开发者ID:ryankask,项目名称:dokuwiki,代码行数:29,代码来源:js.php


示例11: plugin_multi_edit

function plugin_multi_edit()
{
    $selected = ps('selected');
    $method = ps('edit_method');
    if (!$selected or !is_array($selected)) {
        return plugin_list();
    }
    $where = "name IN ('" . join("','", doSlash($selected)) . "')";
    switch ($method) {
        case 'delete':
            foreach ($selected as $name) {
                if (safe_field('flags', 'txp_plugin', "name ='" . doSlash($name) . "'") & PLUGIN_LIFECYCLE_NOTIFY) {
                    load_plugin($name, true);
                    callback_event("plugin_lifecycle.{$name}", 'disabled');
                    callback_event("plugin_lifecycle.{$name}", 'deleted');
                }
            }
            safe_delete('txp_plugin', $where);
            break;
        case 'changestatus':
            foreach ($selected as $name) {
                if (safe_field('flags', 'txp_plugin', "name ='" . doSlash($name) . "'") & PLUGIN_LIFECYCLE_NOTIFY) {
                    $status = safe_field('status', 'txp_plugin', "name ='" . doSlash($name) . "'");
                    load_plugin($name, true);
                    // NB: won't show returned messages anywhere due to potentially overwhelming verbiage.
                    callback_event("plugin_lifecycle.{$name}", $status ? 'disabled' : 'enabled');
                }
            }
            safe_update('txp_plugin', 'status = (1-status)', $where);
            break;
        case 'changeorder':
            $order = min(max(intval(ps('order')), 1), 9);
            safe_update('txp_plugin', 'load_order = ' . $order, $where);
            break;
    }
    $message = gTxt('plugin_' . ($method == 'delete' ? 'deleted' : 'updated'), array('{name}' => join(', ', $selected)));
    plugin_list($message);
}
开发者ID:psic,项目名称:websites,代码行数:38,代码来源:txp_plugin.php


示例12: get_plugin_list

 function get_plugin_list()
 {
     if (is_null($this->_plugin_list)) {
         $list = plugin_list('', true);
         // all plugins, including disabled ones
         // remove this plugin from the list
         $idx = array_search('config', $list);
         unset($list[$idx]);
         trigger_event('PLUGIN_CONFIG_PLUGINLIST', $list);
         $this->_plugin_list = $list;
     }
     return $this->_plugin_list;
 }
开发者ID:Kirill,项目名称:dokuwiki,代码行数:13,代码来源:config.class.php


示例13: getPluginMethods

 /**
  * @return array all plugin methods.
  */
 public function getPluginMethods()
 {
     if ($this->pluginMethods === null) {
         $this->pluginMethods = array();
         $plugins = plugin_list('remote');
         foreach ($plugins as $pluginName) {
             $plugin = plugin_load('remote', $pluginName);
             if (!is_subclass_of($plugin, 'DokuWiki_Remote_Plugin')) {
                 throw new RemoteException("Plugin {$pluginName} does not implement DokuWiki_Remote_Plugin");
             }
             $methods = $plugin->_getMethods();
             foreach ($methods as $method => $meta) {
                 $this->pluginMethods["plugin.{$pluginName}.{$method}"] = $meta;
             }
         }
     }
     return $this->pluginMethods;
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:21,代码来源:remote.php


示例14: _html_admin

 function _html_admin()
 {
     global $ID;
     global $INFO;
     global $lang;
     global $conf;
     global $auth;
     // build menu of admin functions from the plugins that handle them
     $pluginlist = plugin_list('admin');
     $menu = array();
     foreach ($pluginlist as $p) {
         if (($obj =& plugin_load('admin', $p)) === NULL) {
             continue;
         }
         // check permissions
         if ($obj->forAdminOnly() && !$INFO['isadmin']) {
             continue;
         }
         $menu[$p] = array('plugin' => $p, 'prompt' => $obj->getMenuText($conf['lang']), 'sort' => $obj->getMenuSort());
     }
     // check if UserManager available
     $usermanageravailable = true;
     if (!isset($auth)) {
         $usermanageravailable = false;
     } else {
         if (!$auth->canDo('getUsers')) {
             $usermanageravailable = false;
         }
     }
     // output main tasks
     ptln('<h1>' . $this->getLang('pageheader') . '</h1>');
     ptln('<div id="admin__maintable">');
     ptln('  <div id="admin__tasks">');
     if ($INFO['isadmin']) {
         if ($usermanageravailable) {
             ptln('    <div id="admin__usermanager"><a href="' . wl($ID, 'do=admin&amp;page=usermanager') . '">' . $menu[usermanager]['prompt'] . '</a></div>');
         }
         ptln('    <div id="admin__acl"><a href="' . wl($ID, 'do=admin&amp;page=acl') . '">' . $menu['acl']['prompt'] . '</a></div>');
         ptln('    <div id="admin__plugin"><a href="' . wl($ID, 'do=admin&amp;page=plugin') . '">' . $menu['plugin']['prompt'] . '</a></div>');
         ptln('    <div id="admin__config"><a href="' . wl($ID, 'do=admin&amp;page=config') . '">' . $menu['config']['prompt'] . '</a></div>');
     } else {
         ptln('&nbsp');
     }
     ptln('  </div>');
     ptln('  <div id="admin__version">');
     ptln('    <div><b>' . $this->getLang('wiki_version') . '</b><br/>' . getVersion() . '</div>');
     ptln('    <div><b>' . $this->getLang('php_version') . '</b><br/>' . phpversion() . '</div>');
     ptln('  </div>');
     ptln('</div>');
     // remove the four main plugins
     unset($menu['acl']);
     if ($usermanageravailable) {
         unset($menu['usermanager']);
     }
     unset($menu['config']);
     unset($menu['plugin']);
     // output the remaining menu
     usort($menu, 'p_sort_modes');
     ptln('<h2>' . $this->getLang('more_adminheader') . '</h2>');
     ptln('<div class="level2">');
     echo $this->render($this->getLang('more_admintext'));
     ptln('<ul id="admin__pluginlist">');
     foreach ($menu as $item) {
         if (!$item['prompt']) {
             continue;
         }
         ptln('  <li class="level1"><div class="li"><a href="' . wl($ID, 'do=admin&amp;page=' . $item['plugin']) . '">' . $item['prompt'] . '</a></div></li>');
     }
     ptln('</ul></div>');
 }
开发者ID:HakanS,项目名称:dokuwiki-plugin-adminhomepage,代码行数:70,代码来源:action.php


示例15: plugin_list

<?php

/**
 * Language file for fckg in UTF-8
 *  
 * @author:     Ianka Kryukov <[email protected]>
 */
$lang['groups'] = "Разделенный запятыми список групп, которым разрешено отключать таймер блокировки";
$lang['middot'] = "Разделенный запятыми список групп using &amp;middot; for &amp;nbsp;";
$lang['big_files'] = "Отметте чтобы защитить редактирование больших (oversized) файлов";
$lang['big_file_sz'] = "Размер большого (oversized) файла (в байтах)";
$lang['big_file_tm'] = "Обработка большого (oversized) файла будет закончена через (секунд):";
$lang['fck_preview'] = "FCK Preview Group";
$lang['guest_toolbar'] = "Отображать ли панель для незарегистрированных пользователей";
$lang['guest_media'] = "Могут ли незарегистрированные пользователи вставлять ссылки на медиа файлы";
$lang['open_upload'] = "Могут ли незарегистрированные пользователи загружать файлы";
$list = plugin_list('syntax');
$list = implode(", ", $list);
$lang['xcl_plugins'] = "Разделенный запятыми список плагинов Immutable Syntax. " . "Их имена должны быть точно такими же, как в этом списке инсталлированных плагинов: {$list}";
$lang['default_fb'] = "Доступ для просмотра файлов по умолчанию. Если выбрать none, то ACL не будет использоваться.";
$lang['openfb'] = "Открытый просмотр файлов. Это дает пользователю доступ ко всей структуре папок, несмотря на то, имеет ли он права на это или нет. При этом ACL применяется для разрешения загрузки.";
$lang['csrf'] = "Если Вы получаете CSRF предупреждения, отметте этот пункт.";
开发者ID:omusico,项目名称:isle-web-framework,代码行数:22,代码来源:settings.php


示例16: Doku_Event_Handler

 /**
  * event_handler
  *
  * constructor, loads all action plugins and calls their register() method giving them
  * an opportunity to register any hooks they require
  */
 function Doku_Event_Handler()
 {
     // load action plugins
     $plugin = NULL;
     $pluginlist = plugin_list('action');
     foreach ($pluginlist as $plugin_name) {
         $plugin =& plugin_load('action', $plugin_name);
         if ($plugin !== NULL) {
             $plugin->register($this);
         }
     }
 }
开发者ID:jalemanyf,项目名称:wsnlocalizationscala,代码行数:18,代码来源:events.php


示例17: _helpermethods_xhtml

 /**
  * list all installed plugins
  *
  * uses some of the original renderer methods
  */
 function _helpermethods_xhtml(Doku_Renderer &$renderer)
 {
     $plugins = plugin_list('helper');
     foreach ($plugins as $p) {
         if (!($po = plugin_load('helper', $p))) {
             continue;
         }
         if (!method_exists($po, 'getMethods')) {
             continue;
         }
         $methods = $po->getMethods();
         $info = $po->getInfo();
         $hid = $this->_addToTOC($info['name'], 2, $renderer);
         $doc = '<h2><a name="' . $hid . '" id="' . $hid . '">' . hsc($info['name']) . '</a></h2>';
         $doc .= '<div class="level2">';
         $doc .= '<p>' . strtr(hsc($info['desc']), array("\n" => "<br />")) . '</p>';
         $doc .= '<pre class="code">$' . $p . " = plugin_load('helper', '" . $p . "');</pre>";
         $doc .= '</div>';
         foreach ($methods as $method) {
             $title = '$' . $p . '->' . $method['name'] . '()';
             $hid = $this->_addToTOC($title, 3, $renderer);
             $doc .= '<h3><a name="' . $hid . '" id="' . $hid . '">' . hsc($title) . '</a></h3>';
             $doc .= '<div class="level3">';
             $doc .= '<div class="table"><table class="inline"><tbody>';
             $doc .= '<tr><th>Description</th><td colspan="2">' . $method['desc'] . '</td></tr>';
             if ($method['params']) {
                 $c = count($method['params']);
                 $doc .= '<tr><th rowspan="' . $c . '">Parameters</th><td>';
                 $params = array();
                 foreach ($method['params'] as $desc => $type) {
                     $params[] = hsc($desc) . '</td><td>' . hsc($type);
                 }
                 $doc .= join($params, '</td></tr><tr><td>') . '</td></tr>';
             }
             if ($method['return']) {
                 $doc .= '<tr><th>Return value</th><td>' . hsc(key($method['return'])) . '</td><td>' . hsc(current($method['return'])) . '</td></tr>';
             }
             $doc .= '</tbody></table></div>';
             $doc .= '</div>';
         }
         unset($po);
         $renderer->doc .= $doc;
     }
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:49,代码来源:syntax.php


示例18: _get_plugin_list

 /**
  * Returns a list of all plugins, including the disabled ones
  */
 function _get_plugin_list()
 {
     if (empty($this->plugin_list)) {
         $list = plugin_list('', true);
         // all plugins, including disabled ones
         sort($list);
         trigger_event('PLUGIN_PLUGINMANAGER_PLUGINLIST', $list);
         $this->plugin_list = $list;
     }
     return $this->plugin_list;
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:14,代码来源:admin.php


示例19: array

<?php

$blogtng_meta__excluded_syntax = array('info', 'blogtng_commentreply', 'blogtng_blog', 'blogtng_readmore', 'blogtng_header', 'blogtng_topic');
$meta['commentstatus_default'] = array('multichoice', '_choices' => array('enabled', 'closed', 'disabled'));
$meta['comments_allow_web'] = array('onoff');
$meta['comments_subscription'] = array('onoff');
$meta['comments_gravatar_rating'] = array('multichoice', '_choices' => array('X', 'R', 'PG', 'G'));
$meta['comments_gravatar_default'] = array('multichoice', '_choices' => array('blank', 'default', 'identicon', 'monsterid', 'wavatar'));
$meta['comments_forbid_syntax'] = array('multicheckbox', '_choices' => array_diff(plugin_list('syntax'), $blogtng_meta__excluded_syntax));
$meta['comments_xhtml_renderer'] = array('multicheckbox', '_choices' => array_diff(plugin_list('syntax'), $blogtng_meta__excluded_syntax));
$meta['editform_set_date'] = array('onoff');
$meta['tags'] = array('string');
$meta['receive_linkbacks'] = array('onoff');
$meta['send_linkbacks'] = array('onoff');
开发者ID:stretchyboy,项目名称:plugin-blogtng,代码行数:14,代码来源:metadata.php


示例20: _mixture_adminDropdown

/**
 * Adapted from tpl_admin.php file of Bootstrap3 template by Giuseppe Di Terlizzi <[email protected]>
 */
function _mixture_adminDropdown()
{
    global $ID, $ACT, $auth, $conf;
    $admin_plugins = plugin_list('admin');
    $tasks = array('usermanager', 'acl', 'extension', 'config', 'styling', 'revert', 'popularity', 'upgrade');
    $addons = array_diff($admin_plugins, $tasks);
    $adminmenu = array('tasks' => $tasks, 'addons' => $addons);
    foreach ($adminmenu['tasks'] as $task) {
        if (($plugin = plugin_load('admin', $task, true)) === null) {
            continue;
        }
        //        if($plugin->forAdminOnly() && !$INFO['isadmin']) continue;
        if ($task == 'usermanager' && !($auth && $auth->canDo('getUsers'))) {
            continue;
        }
        $label = $plugin->getMenuText($conf['lang']);
        if (!$label) {
            continue;
        }
        if ($task == "popularity") {
            $label = preg_replace("/\\([^)]+\\)/", "", $label);
        }
        if ($ACT == 'admin' and $_GET['page'] == $task) {
            $class = ' class="action active"';
        } else {
            $class = ' class="action"';
        }
        echo sprintf('<li><a href="%s" title="%s"%s>%s%s</a></li>', wl($ID, array('do' => 'admin', 'page' => $task)), $label, $class, _mixture_glyph($task, true), _mixture_menuitem_string($label, 'dropdown'));
    }
    $f = fopen(DOKU_INC . 'inc/lang/' . $conf['lang'] . '/adminplugins.txt', 'r');
    $line = fgets($f);
    fclose($f);
    $line = preg_replace('/=/', '', $line);
    echo '<li class="dropdown-header"><span>' . $line . '</span></li>';
    echo '<li class="divider"></li>';
    foreach ($adminmenu['addons'] as $task) {
        if (($plugin = plugin_load('admin', $task, true)) === null) {
            continue;
        }
        if ($task == "move_tree") {
            $parts = explode('<a href="%s">', $plugin->getLang('treelink'));
            $label = substr($parts[1], 0, -4);
        } else {
            $label = $plugin->getMenuText($conf['lang']);
        }
        if ($label == null) {
            $label = ucfirst($task);
        }
        if ($ACT == 'admin' and $_GET['page'] == $task) {
            $class = ' class="action active"';
        } else {
            $class = ' class="action"';
        }
        echo sprintf('<li><a href="%s" title="%s"%s>%s %s</a></li>', wl($ID, array('do' => 'admin', 'page' => $task)), ucfirst($task), $class, _mixture_glyph($task, true), _mixture_menuitem_string(ucfirst($label), 'dropdown'));
    }
    echo '<li class="dropdown-header"><span>Cache</span></li>';
    echo '<li class="divider"></li>';
    echo '<li><a href="';
    echo wl($ID, array("do" => $_GET['do'], "page" => $_GET['page'], "purge" => "true"));
    echo '" class="action"><i class="fa fa-fw text-alt fa-recycle"></i> Purge current page\'s cache</a></li>';
    echo '<li><a href="' . DOKU_URL . 'lib/exe/js.php" class="action"><i class="fa fa-fw text-alt fa-code"></i> Purge JavaScript cache</a></li>';
    echo '<li><a href="' . DOKU_URL . 'lib/exe/css.php" class="action"><i class="fa fa-fw text-alt fa-file-code-o"></i> Purge CSS cache</a></li>';
}
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:66,代码来源:tpl_functions.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP plugin_load函数代码示例发布时间:2022-05-15
下一篇:
PHP plugin_lang_get函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap