<?php
defined('PHP168_PATH') or die();

/**
* µ¼³öÄ£ÐÍ
**/

$this_controller->check_admin_action($ACTION) or message('no_privilege');

if(REQUEST_METHOD == 'POST'){
	
	@set_time_limit(0);
	
	$name = isset($_POST['name']) ? preg_replace('/[^0-9a-zA-Z_]/', '', $_POST['name']) : '';
	$new_name = isset($_POST['new_name']) ? preg_replace('/[^0-9a-zA-Z_]/', '', $_POST['new_name']) : '';
	
	$this_module->export($name, $new_name) or message('fail');;
	
	message('done');
}