コード例 #1
0
ファイル: index.php プロジェクト: aricent123/cadbis
    if ($BILLEVEL < 3) {
        return;
    }
    ?>
 <div align=center><b>Пользователи</b></div><br>
 <?php 
    if (isset($action) && $action == "add") {
        include SK_DIR . "/billing/admin_add_user.php";
    } elseif (isset($action) && $action == "delete") {
        include SK_DIR . "/billing/admin_delete_user.php";
    } elseif (isset($action) && $action == "edit") {
        include SK_DIR . "/billing/admin_edit_user.php";
    } elseif (isset($action) && $action == "block") {
        $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]);
        if ($BILL->IsUserActivated($uid)) {
            $BILL->BlockUser($uid);
            ?>
    <div align=center><b>Пользователь заблокирован!</b></div>
    <?php 
        } else {
            $BILL->ActivateUser($uid);
            ?>
    <div align=center><b>Пользователь активирован!</b></div>
    <?php 
        }
        ?>
  <div align=center><a href="<?php 
        OUT("?p={$p}&act={$act}");
        ?>
">назад</a></div>
  <?php