<?php
|
|
|
class regset_controller extends adminCommon
|
{
|
|
function index_action()
|
{
|
$Coupon = $this->MODEL('coupon');
|
|
$rows = $Coupon->getList();
|
|
$this->yunset("rows", $rows);
|
|
$this->yunset("config", $this->config);
|
|
$this->yuntpl(array('admin/admin_regset'));
|
}
|
|
// 保存
|
function save_action()
|
{
|
if ($_POST['config']) {
|
|
unset($_POST['config']);
|
unset($_POST['pytoken']);
|
|
$configM = $this->MODEL('config');
|
|
$configM->setConfig($_POST);
|
|
$this->web_config();
|
|
$this->layer_msg("注册设置成功!", 9, 1);
|
}
|
}
|
}
|
?>
|