本文整理匯總了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>';
}