<?php
defined('PHP168_PATH') or die();
$this_controller->check_admin_action($ACTION) or message('no_privilege');

if(REQUEST_METHOD=='GET'){

$config = $this_module->get_config();

include template($this_module,'config','admin');

}else if(REQUEST_METHOD=='POST'){
	
	$_POST = p8_stripslashes2($_POST);

	$config = isset($_POST['config']) && is_array($_POST['config']) ? $_POST['config'] : array();
	
	$this_module->set_module_config($config);
	$this_system->log(array(
		'title' => $P8LANG['_module_config_admin_log'],
		'request' => $_POST,
	));
	message('done',$this_url);
}
