Ejemplo n.º 1
0
<?php

//引入配置文件
require_once '../lib/config.php';
require_once '_check.php';
$sub = $_POST['code_sub'];
$type = $_POST['code_type'];
$num = $_POST['code_num'];
$c = new \Ss\User\InviteCode();
$c->AddCode($sub, $type, $num);
echo ' <script>alert("添加成功!")</script> ';
echo " <script>window.location='invite.php';</script> ";