Ejemplo n.º 1
0
<?php

if ($MDL->IsModuleExists("users")) {
    global $usr_id, $CURRENT_USER;
    $USR = new CUsers($DIRS["users_data"], $DIRS["users_list"], $DIRS["users_private"], $DIRS["users_groups"], $DIRS["users_online"]);
    $USR->SetSeparators($GV["sep1"], $GV["sep2"]);
    $list = $USR->GetUsers();
    for ($i = 0; $i < count($list); ++$i) {
        $ud = $list[$i];
        $all_users[$i] = $list[$i]["id"];
        $users_info['login'][$i] = $ud["login"];
        $users_info['pass'][$i] = $ud["passwd"];
        $users_info['nick'][$i] = $ud["nick"];
        $users_info['city'][$i] = $ud["city"];
        $users_info['sex'][$i] = make_gender_str($ud["gender"]);
        $users_info['email'][$i] = $ud["email"];
        $users_info['url'][$i] = $ud["url"];
        $users_info['id'][$i] = $all_users[$i];
        $users_info['date'][$i] = date_dmy($ud["regdate"]);
        $users_info['rang'][$i] = $ud["rang"];
        $fud = get_forum_user_data($all_users[$i]);
        $users_info['count'][$i] = $fud["count"];
        //echo($list[$i]["id"]."==($i)".$CURRENT_USER["id"]."<br>");
        if ($list[$i]["id"] == $CURRENT_USER["id"]) {
            $usr_id = $i;
        }
        $users_info['raiting'][$i] = $ud["raiting"];
        $users_info['rights'][$i] = $ud["level"];
        $users_info['sign'][$i] = $ud["signature"];
        $users_info['info'][$i] = $ud["info"];
    }
Ejemplo n.º 2
0
</td></tr></table>
     <table  width=100%><tr><td>Подпись:<td></td></tr><tr><td><?php 
                OUT($user['signature']);
                ?>
</td></tr></table> 
     <table  width=100%><tr><td>Доп. инфо:<td></td></tr><tr><td><?php 
                OUT($user['info']);
                ?>
</td></tr></table>
     <table  width=100%>
     <tr><td>Примечание:<td></td><td><?php 
                OUT($user['prim']);
                ?>
</td></tr>
     <tr><td>Пол:<td></td><td><?php 
                OUT(make_gender_str($user['gender']));
                ?>
</td></tr>
     <tr><td>Дата истечения срока действия:<td></td><td>никогда</td></tr>
     <?php 
                if (isset($avdelete) && $avdelete == "true") {
                    ?>
     <tr><td>Аватар:<td></td><td>удалён</td></tr><?php 
                }
                ?>
    

     <?php 
                if (isset($avatar) && $avatar["tmp_name"] != "") {
                    ?>
     <tr><td>Аватар:<td></td><td><img src="<?php 
Ejemplo n.º 3
0
                                OUT($data["rang"]);
                                ?>
</td>
         </tr>
         <tr>
          <td width=50% class="td_tnd_link">Группа:</td>
          <td width=50% class="td_tnd_link"><?php 
                                $gdata = $USR->GetGroupData($data["group"]);
                                OUT($gdata["name"]);
                                ?>
</td>
         </tr>
         <tr>
          <td width=50% class="td_tnd_link">Пол:</td>
          <td width=50% class="td_tnd_link"><?php 
                                OUT(make_gender_str($data["gender"]));
                                ?>
</td>
         </tr>
         <tr>
          <td width=50% class="td_tnd_link">Ник:</td>
          <td width=50% class="td_tnd_link"><input class=inputbox type=text name="new_data[]" value="<?php 
                                OUT($data["nick"]);
                                ?>
" style="width:100%"></td>
         </tr>
         <tr>
          <td width=50% class="td_tnd_link">E-mail:</td>
          <td width=50% class="td_tnd_link"><input class=inputbox type=text name="new_data[]" value="<?php 
                                OUT($data["email"]);
                                ?>