本文整理汇总了PHP中admin_tools::decode64方法的典型用法代码示例。如果您正苦于以下问题:PHP admin_tools::decode64方法的具体用法?PHP admin_tools::decode64怎么用?PHP admin_tools::decode64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类admin_tools
的用法示例。
在下文中一共展示了admin_tools::decode64方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowAddon
/**
* Display addon details
*
*/
function ShowAddon($encoded_key)
{
global $config, $langmessage;
$addon_key = admin_tools::decode64($encoded_key);
if (!isset($config['addons'][$addon_key])) {
message($langmessage['OOPS'] . '(Addon Not Found)');
$this->Select();
return;
}
$show = $this->GetDisplayInfo();
$info = $show[$addon_key];
$this->ShowHeader($info['name']);
$this->UpgradeLinks($info);
//about
if (!empty($info['About'])) {
echo '<hr/>';
echo '<div class="lead">';
echo $info['About'];
echo '</div>';
echo '<hr/><br/>';
}
echo '<div id="adminlinks2">';
$format = array();
$format['end'] = '</div></div>';
$format['start'] = '<div class="panelgroup"><h3>%s</h3><div class="panelgroup2">';
$this->AddonPanel_Special($addon_key, $format);
$this->AddonPanel_Admin($addon_key, $format);
$this->AddonPanel_Gadget($addon_key, $format);
$this->AddonPanel_Hooks($addon_key, $format);
$this->OptionLinks($addon_key, $info, $format);
echo '</div>';
}
示例2: ShowAddon
/**
* Display addon details
*
*/
function ShowAddon($addon_key)
{
global $config, $langmessage;
$addon_key = admin_tools::decode64($addon_key);
if (!isset($config['addons'][$addon_key])) {
message($langmessage['OOPS'] . '(Addon Not Found)');
$this->Select();
return;
}
$info = $config['addons'][$addon_key];
$this->ShowHeader();
echo '<div id="adminlinks2">';
$this->PluginPanelGroup($addon_key, $info);
echo '</div>';
}