⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 import.php

📁 php 开发的内容管理系统
💻 PHP
字号:
<?phprequire_once ('admin.php');$title = __('Import');$parent_file = 'import.php';require_once ('admin-header.php');?><div class="wrap"><h2><?php _e('Import'); ?></h2><p><?php _e('If you have posts or comments in another system WordPress can import them into your current blog. To get started, choose a system to import from below:'); ?></p><?php// Load all importers so that they can register.$import_loc = 'wp-admin/import';$import_root = ABSPATH.$import_loc;$imports_dir = @ dir($import_root);if ($imports_dir) {	while (($file = $imports_dir->read()) !== false) {		if (preg_match('|^\.+$|', $file))			continue;		if (preg_match('|\.php$|', $file))			require_once("$import_root/$file");	}}$importers = get_importers();if (empty ($importers)) {	echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful} else {?><table width="100%" cellpadding="3" cellspacing="3"><?php	$style = '';	foreach ($importers as $id => $data) {		$style = ('class="alternate"' == $style || 'class="alternate active"' == $style) ? '' : 'alternate';		$action = "<a href='admin.php?import=$id' title='".wptexturize(strip_tags($data[1]))."'>{$data[0]}</a>";		if ($style != '')			$style = 'class="'.$style.'"';		echo "			<tr $style>				<td class=\"togl\">$action</td>				<td class=\"desc\">{$data[1]}</td>			</tr>";	}?></table><?php}?></div><?phpinclude ('admin-footer.php');?>

⌨️ 快捷键说明

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