本文整理匯總了PHP中load::app_class方法的典型用法代碼示例。如果您正苦於以下問題:PHP load::app_class方法的具體用法?PHP load::app_class怎麽用?PHP load::app_class使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類load
的用法示例。
在下文中一共展示了load::app_class方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dodelapp
public function dodelapp()
{
global $_M;
$no = $_M['form']['no'];
$getapp = load::mod_class('myapp/class/getapp', 'new');
$app = $getapp->get_oneapp($no);
if ($app['m_class']) {
$uninstall = load::app_class($app['m_name'] . '/admin/uninstall', 'new');
$uninstall->dodel();
turnover($_M['url']['own_name'] . '&c=myapp&a=doindex', $_M['word']['physicaldelok']);
} else {
$query = "DELETE FROM {$_M['table']['applist']} WHERE no='{$no}'";
DB::query($query);
$query = "SELECT * FROM {$_M['table']['app']} WHERE no='{$no}' AND download=1";
$app_old = DB::get_one($query);
if (file_exists(PATH_WEB . $_M['config']['met_adminfile'] . '/app/' . $app['m_name'] . '/delapp.php')) {
header('location:' . $_M['url']['site_admin'] . 'app/' . $app['m_name'] . '/delapp.php?lang=' . $_M['lang'] . '&id=' . $app_old['id'] . '&action=del');
} else {
header('location:' . $_M['url']['site_admin'] . 'app/dlapp/delapp.php?lang=' . $_M['lang'] . '&id=' . $app_old['id'] . '&action=del');
}
}
}