예제 #1
0
<?php

require_once "conf/top.php";
//$user = new User($_SESSION['user_session']);
include_once 'models/class.Promo.php';
if (isset($_REQUEST['id'])) {
    $id = $_REQUEST['id'];
    if ($level == 1) {
        $promo = new Promo();
        $promo->remove_user($id);
        $user->remove_user($id);
        $session->redirect('user_list.php');
    } else {
        $session->redirect('user_list.php');
    }
} else {
    $session->redirect('user_list.php');
}