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


PHP admin_tools::encode64方法代码示例

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


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

示例1: PluginPanelGroup

 function PluginPanelGroup($addon_key, $info)
 {
     global $langmessage, $gpLayouts;
     $addon_config = gpPlugin::GetAddonConfig($addon_key);
     $addon_config += $info;
     //merge the upgrade info
     echo '<div class="panelgroup" id="panelgroup_' . md5($addon_key) . '">';
     echo '<h3>';
     echo common::Link('Admin_Addons/' . admin_tools::encode64($addon_key), $addon_config['name']);
     echo '</h3>';
     echo '<div class="panelgroup2">';
     echo '<ul class="submenu">';
     $this->AddonPanelGroup($addon_key);
     $this->OptionLinks($addon_key, $addon_config);
     echo '</ul>';
     $this->UpgradeLinks($addon_config);
     echo '</div>';
     echo '</div>';
 }
开发者ID:VTAMAGNO,项目名称:gpEasy-CMS,代码行数:19,代码来源:admin_addons.php

示例2: LayoutDiv

 /**
  * Display layout label and options
  *
  */
 function LayoutDiv($layout, $info)
 {
     global $page, $langmessage;
     $layout_info = common::LayoutInfo($layout, false);
     echo '<div class="panelgroup" id="panelgroup_' . md5($layout) . '">';
     echo $this->GetLayoutLabel($layout, $info);
     echo '<div class="panelgroup2">';
     echo '<ul class="submenu">';
     echo '<li>';
     echo common::Link('Admin_Theme_Content/' . rawurlencode($layout), $langmessage['edit_this_layout'], '', ' title="' . htmlspecialchars($langmessage['Arrange Content']) . '" ');
     echo '</li>';
     //layout options
     echo '<li class="expand_child_click">';
     echo '<a>' . $langmessage['Layout Options'] . '</a>';
     echo '<ul>';
     $this->LayoutOptions($layout, $layout_info);
     echo '</ul>';
     //css options
     echo '<li class="expand_child_click">';
     echo '<a>CSS</a>';
     echo $this->CSSPreferenceForm($layout, $layout_info);
     echo '</li>';
     // layouts with hooks
     ob_start();
     $addon_config = false;
     if (isset($layout_info['addon_key'])) {
         $addon_key = $layout_info['addon_key'];
         $addon_config = gpPlugin::GetAddonConfig($addon_key);
         echo '<li>';
         echo common::link('Admin_Addons/' . admin_tools::encode64($addon_key), '<span class="gpicon_plug"></span> ' . $addon_config['name']);
         echo '</li>';
         //hooks
         $this->AddonPanelGroup($addon_key, false);
     }
     //version
     if (!empty($layout_info['version'])) {
         echo '<li><a>' . $langmessage['Your_version'] . ' ' . $layout_info['version'] . '</a></li>';
     } elseif ($addon_config && !empty($addon_config['version'])) {
         echo '<li><a>' . $langmessage['Your_version'] . ' ' . $addon_config['version'] . '</a></li>';
     }
     //upgrade
     echo '<li>';
     if ($layout_info['is_addon']) {
         $source = $layout_info['name'] . '(remote)/' . $layout_info['theme_color'];
     } else {
         $source = $layout_info['theme_name'] . '(local)/' . $layout_info['theme_color'];
     }
     echo common::Link('Admin_Theme_Content', $langmessage['upgrade'], 'cmd=updatetheme&source=' . rawurlencode($source), array('data-cmd' => 'creq'));
     echo '</li>';
     $options = ob_get_clean();
     if (!empty($options)) {
         echo '<li class="expand_child_click">';
         echo '<a>' . $langmessage['options'] . '</a>';
         echo '<ul>';
         echo $options;
         echo '</ul></li>';
     }
     //new versions
     if (isset($layout_info['addon_id'])) {
         $addon_id = $layout_info['addon_id'];
         $version =& $layout_info['version'];
         //local or already downloaded
         if (isset($this->versions[$addon_id]) && version_compare($this->versions[$addon_id]['version'], $version, '>')) {
             $version_info = $this->versions[$addon_id];
             $label = $langmessage['upgrade'] . ' &nbsp; ' . $version_info['version'];
             $source = $version_info['index'] . '/' . $layout_info['theme_color'];
             //could be different folder
             echo '<div class="gp_notice">';
             echo common::Link('Admin_Theme_Content', $label, 'cmd=updatetheme&source=' . $source, array('data-cmd' => 'creq'));
             echo '</div>';
             //remote version
         } elseif (gp_remote_themes && isset(admin_tools::$new_versions[$addon_id]) && version_compare(admin_tools::$new_versions[$addon_id]['version'], $version, '>')) {
             $version_info = admin_tools::$new_versions[$addon_id];
             $label = $langmessage['new_version'] . ' &nbsp; ' . $version_info['version'] . ' &nbsp; (gpEasy.com)';
             echo '<div class="gp_notice">';
             echo common::Link('Admin_Theme_Content', $label, 'cmd=remote_install&id=' . $addon_id . '&name=' . rawurlencode($version_info['name']) . '&layout=' . $layout);
             echo '</div>';
         }
     }
     echo '</ul>';
     echo '</div>';
     echo '</div>';
 }
开发者ID:VTAMAGNO,项目名称:gpEasy-CMS,代码行数:87,代码来源:admin_theme_content.php

示例3: PluginPanelGroup

 function PluginPanelGroup($addon_key, $info)
 {
     global $config, $langmessage, $gpLayouts;
     $addon_config = gpPlugin::GetAddonConfig($addon_key);
     $addon_config += $info;
     //merge the upgrade info
     echo '<div class="panelgroup" id="panelgroup_' . md5($addon_key) . '">';
     $label = '<i class="gpicon_plug"></i>' . $addon_config['name'];
     echo common::Link('Admin_Addons/' . admin_tools::encode64($addon_key), $label);
     echo '<div class="panelgroup2">';
     echo '<ul class="submenu">';
     $this->AddonPanelGroup($addon_key, $addon_config);
     //options
     if (!isset($addon_config['is_theme']) || !$addon_config['is_theme']) {
         echo '<li class="expand_child_click">';
         echo '<a>' . $langmessage['options'] . '</a>';
         echo '<ul>';
         //editable text
         if (isset($config['addons'][$addon_key]['editable_text']) && admin_tools::HasPermission('Admin_Theme_Content')) {
             echo '<li>';
             echo common::Link('Admin_Theme_Content', $langmessage['editable_text'], 'cmd=addontext&addon=' . urlencode($addon_key), array('title' => urlencode($langmessage['editable_text']), 'data-cmd' => 'gpabox'));
             echo '</li>';
         }
         //upgrade link
         if (isset($addon_config['upgrade_from'])) {
             echo '<li>';
             echo common::Link('Admin_Addons', $langmessage['upgrade'], 'cmd=local_install&source=' . $addon_config['upgrade_from'], array('data-cmd' => 'creq'));
             echo '</li>';
         }
         //uninstall
         echo '<li>';
         echo common::Link('Admin_Addons', $langmessage['uninstall'], 'cmd=uninstall&addon=' . rawurlencode($addon_key), 'data-cmd="gpabox"');
         echo '</li>';
         //version
         if (!empty($addon_config['version'])) {
             echo '<li><a>' . $langmessage['Your_version'] . ' ' . $addon_config['version'] . '</a></li>';
         }
         //rating
         if (isset($addon_config['id']) && is_numeric($addon_config['id'])) {
             $id = $addon_config['id'];
             $rating = 5;
             if (isset($this->addonReviews[$id])) {
                 $rating = $this->addonReviews[$id]['rating'];
             }
             $label = $langmessage['rate_this_addon'] . ' ' . $this->ShowRating($id, $rating);
             echo '<li><span>' . $label . '</span></li>';
         }
         echo '</ul></li>';
     } else {
         //show list of themes using these addons
         echo '<li class="expand_child_click">';
         echo '<a>' . $langmessage['layouts'] . '</a>';
         echo '<ul>';
         foreach ($gpLayouts as $layout_id => $layout_info) {
             if (!isset($layout_info['addon_key']) || $layout_info['addon_key'] !== $addon_key) {
                 continue;
             }
             echo '<li>';
             echo '<span>';
             echo '<span class="layout_color_id" style="background:' . $layout_info['color'] . '"></span> ';
             echo common::Link('Admin_Theme_Content', $layout_info['label']);
             echo ' ( ';
             echo common::Link('Admin_Theme_Content/' . $layout_id, $langmessage['edit']);
             echo ' )';
             echo '</span>';
             //echo '<a>';
             //echo $layout_info['label'];
             //echo '</a>';
             //echo pre($layout_info);
             echo '</li>';
         }
         echo '</ul>';
         echo '</li>';
     }
     echo '</ul>';
     //upgrade gpeasy.com
     if (isset($addon_config['id']) && isset(admin_tools::$new_versions[$addon_config['id']])) {
         $version_info = admin_tools::$new_versions[$addon_config['id']];
         echo '<div class="gp_notice">';
         echo '<a href="' . addon_browse_path . '/Plugins?id=' . $addon_config['id'] . '" data-cmd="remote">';
         echo $langmessage['new_version'];
         echo ' &nbsp; ' . $version_info['version'] . ' (gpEasy.com)</a>';
         echo '</div>';
     }
     //upgrade local
     if (isset($addon_config['upgrade_from']) && isset($addon_config['upgrade_version'])) {
         if (version_compare($addon_config['upgrade_version'], $addon_config['version'], '>')) {
             echo '<div class="gp_notice">';
             $label = $langmessage['new_version'] . ' &nbsp; ' . $addon_config['upgrade_version'];
             echo common::Link('Admin_Addons', $label, 'cmd=local_install&source=' . $addon_config['upgrade_from'], array('data-cmd' => 'creq'));
             echo '</div>';
         }
     }
     echo '</div>';
     echo '</div>';
 }
开发者ID:GedionChang,项目名称:gpEasy-CMS,代码行数:96,代码来源:admin_addons.php


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