本文整理汇总了PHP中TGM_Plugin_Activation::install_plugins_page方法的典型用法代码示例。如果您正苦于以下问题:PHP TGM_Plugin_Activation::install_plugins_page方法的具体用法?PHP TGM_Plugin_Activation::install_plugins_page怎么用?PHP TGM_Plugin_Activation::install_plugins_page使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TGM_Plugin_Activation
的用法示例。
在下文中一共展示了TGM_Plugin_Activation::install_plugins_page方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
}
switch ($this->navigation) {
case 'add-plugin':
if (!isset($_POST['plug-submit'])) {
include_once 'views/add-plugin.php';
} else {
if (empty($_POST) || !wp_verify_nonce($_POST['plugin-upload-field'], 'plugin-upload-action')) {
print __('Sorry, your nonce did not verify.', 'framework');
exit;
} else {
if (isset($_FILES['plugzip']['name']) && $_FILES['plugzip']['name'] != '') {
$exploded = explode('.', $_FILES['plugzip']['name']);
$file_ext = array_pop($exploded);
if ($file_ext == 'zip') {
$plugin_installer->load_new_plugin($_FILES['plugzip']);
$tgm->install_plugins_page();
echo $redirect;
} else {
$info_message = __('File must have <b>.zip</b> extension Please choose another file.', 'framework');
include_once 'views/add-plugin.php';
}
} else {
$info_message = __('Select a file', 'framework');
include_once 'views/add-plugin.php';
}
}
}
break;
case 'extensions':
global $extm;
$vals['extm'] = $extm;