Example #1
0
  <td class=tbl1><a href="<?php 
                OUT("?p={$p}&act={$act}&action={$action}&show={$show}&page={$page}&sort=traffic");
                ?>
">Трафик</a></td>
  <td class=tbl1><a href="<?php 
                OUT("?p={$p}&act={$act}&action={$action}&show={$show}&page={$page}&sort=time");
                ?>
">Время</a></td>
  <td class=tbl1>Действия</td>  
  </tr>
  <?php 
            }
            $USR = new CUsers($DIRS["users_data"], $DIRS["users_list"], $DIRS["users_private"], $DIRS["users_groups"], $DIRS["users_online"]);
            $USR->SetSeparators($GV["sep1"], $GV["sep2"]);
            for ($i = 0; $i < count($list); ++$i) {
                $data = $BILL->GetUserData($list[$i]);
                $adata = $BILL->GetUserTotalAcctsData($list[$i]);
                if (isset($show) && $show == "tbl") {
                    ?>
    <tr>
    <td class=tbl1><?php 
                    OUT($i + 1);
                    ?>
</td> 
    <td class=tbl1><a href="?p=users&act=userinfo&id=<?php 
                    OUT($data["uid"]);
                    ?>
"><?php 
                    OUT($data["user"]);
                    ?>
</a></td>
Example #2
0
        //$BILL->KillUser($port);
        //$list=$BILL->GetOnlineUsersData();
        setpage("?p={$p}&act={$act}");
    } else {
        ?>
     <div align=center><b>Напишите сообщение следующим пользователям:</b></div>
     <table width=100% align=center class=tbl2><td> 
     <form action="<?php 
        OUT("?p={$p}&act={$act}&action=message&klip={$klip}&sure=true");
        ?>
" method=post>     
     <?php 
        for ($i = 0; $i < count($list); ++$i) {
            $uid = $BILL->GetUidByLogin($list[$i]["user"]);
            if (is_user_exists($uid)) {
                $data = $BILL->GetUserData($uid);
            } else {
                $data = array();
                $data["nick"] = "не зарегистрирован";
            }
            if ($list[$i]["port"] == $klport) {
                $ud = get_user_data($data["uid"]);
                if ($data["level"] < $CURRENT_USER["level"] || $CURRENT_USER["id"] == $data["id"]) {
                    ?>
                <table width=100% align=center class=tbl2>
                    <tr><td width=30%>
                      <table width=100% align=center><tr><td align=center width=100% align=center>
                      <a href="<?php 
                    OUT("?p=users&act=userinfo&id=" . $data["uid"]);
                    ?>
">
Example #3
0
$params[25] = 200;
$params[26] = 60;
//данные для прорисовки
$data = array();
//метки для данных
$labels = array();
if (!isset($gid)) {
    $gid = "all";
}
switch ($action) {
    case "topurl":
        if ($uid == null || $uid == "null") {
            $uid = null;
        }
        if ($uid) {
            $user = $BILL->GetUserData($uid);
            $byuser = "******" . $user['fio'];
        } else {
            $byuser = "";
        }
        if (!isset($groupby) || !$groupby) {
            $groupby = null;
        }
        if (!isset($sort)) {
            $sort = ">count";
        }
        if (!isset($limit) || !$limit) {
            $limit = 25;
        }
        if (!strstr($sort, "count") && !strstr($sort, "url") && !strstr($sort, "length")) {
            $sort = ">count";
Example #4
0
 function CheckAuth($login, $passwd)
 {
     global $MDL, $GV;
     $MDL->Load("smadbis");
     $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]);
     if (!$BILL->IsUserExists($login)) {
         return false;
     }
     $data = $BILL->GetUserData($BILL->GetUidByLogin($login));
     //die($login."==".$data['user']." && ".md5($passwd)."==".$data['password']);
     return $login == $data['user'] && $passwd == $data['password'];
     /*include $this->list_file;
       $data=$this->GetUserData($USERS_IDS[$login]);
       return($login==$data['login'] && md5($passwd)==$data['passwd']);*/
 }