本文整理匯總了PHP中load::own_class方法的典型用法代碼示例。如果您正苦於以下問題:PHP load::own_class方法的具體用法?PHP load::own_class怎麽用?PHP load::own_class使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類load
的用法示例。
在下文中一共展示了load::own_class方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doin
public function doin()
{
global $_M;
if ($_M['form']['temname'] && $_M['form']['temname'] != '') {
$query = "INSERT INTO {$_M['table']['skin_table']} SET skin_name='{$_M['form']['temname']}',skin_file='{$_M['form']['temname']}',skin_info='',devices='{$_M['form']['devices']}'";
DB::query($query);
} else {
turnover("{$_M[url][own_name]}c=temtool&a=dotemlist", '操作失敗!請填寫模板文件夾名稱!');
die;
}
if (file_exists(PATH_WEB . "templates/{$_M['form']['temname']}/install/install.class.php")) {
copy(PATH_WEB . "templates/{$_M['form']['temname']}/install/install.class.php", PATH_OWN_FILE . 'tmp/install.class.php');
$ini = load::own_class('admin/tmp/install', 'new');
$file = $_M['form']['temname'];
$re = $ini->dosql();
$query = "DELETE FROM {$_M['table']['templates']} WHERE no='{$file}'";
DB::query($query);
foreach ($_M['langlist']['web'] as $key => $val) {
foreach ($re['sql'] as $ksql => $vsql) {
$query = "INSERT INTO {$_M['table']['templates']} SET no='{$file}',lang='{$key}',{$vsql}";
DB::query($query);
}
}
} else {
if (file_exists(PATH_WEB . "templates/{$_M['form']['temname']}/lang/language_cn.ini")) {
$ini = load::own_class('admin/class/inc', 'new');
$ini->ini($_M['form']['temname']);
}
}
turnover("{$_M[url][own_name]}c=temtool&a=dotemlist");
}