extension.php

来自「采用模块化开发」· PHP 代码 · 共 18 行

PHP
18
字号
<?php
defined('IN_PHPCMS') or exit('Access Denied');

$result = $db->query("select * from ".$CONFIG['tablepre']."channel where module='info' ");
while($r = $db->fetch_array($result))
{
	if($r['islink']) continue;
	$table = $CONFIG['tablepre']."info_".$r['channelid'];
	$db->query("DROP TABLE IF EXISTS $table ");
	dir_delete(PHPCMS_ROOT.'/'.$r['channeldir'].'/');
}

$db->query("DROP TABLE IF EXISTS ".$CONFIG['tablepre']."info_area ");
$db->query("DELETE FROM ".$CONFIG['tablepre']."channel WHERE module='info'");
$db->query("DELETE FROM ".$CONFIG['tablepre']."module WHERE module='info'");

dir_delete(PHPCMS_ROOT.'/module/info/');
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?