Example #1
0
                        ?>
          <table width=85% align=center><td> <?php 
                        OUT($news->GetNewsPost($news_info["file"]));
                        ?>
</td></table><?php 
                        if ($GV["news_comments"]) {
                            echo "<br><br><div align=center><b><u>Комментарии:</u></b><br><br>";
                            $comments = $news->get_comments($id);
                            if ($comments != NULL) {
                                for ($comm_idx = 0; $comm_idx < count($comments); ++$comm_idx) {
                                    $comment = $comments[$comm_idx];
                                    ?>
                      <table align=center width=100% class=tbl1>
                       <tr><td>
                      <?php 
                                    if (is_user_exists($comment["author"])) {
                                        $ud = get_user_data($comment["author"]);
                                        ?>
                                                                                      
                        Автор: <a href="?p=users&act=userinfo&id=<?php 
                                        OUT($comment["author"]);
                                        ?>
"><?php 
                                        OUT($ud["nick"]);
                                        ?>
</a>
                        <?php 
                                    } else {
                                        $ud = get_user_data($comment["author"]);
                                        if ($ud["id"] == "!GUEST!") {
                                            echo "Автор: " . $ud["nick"];
Example #2
0
}
echo "" . "{$td_all}" . "";
//$reg=0;
//for($h=0;$h<count($all_users);$h++){if($users_info['login'][$h]==$themes_data[$i]['nick'])$reg=1;}
if (is_user_exists($themes_data[$i]['nick'])) {
    $ud = get_user_data($themes_data[$i]['nick']);
    $user = $ud["nick"];
    echo "<a href=\"?p=users&act=userinfo&id=" . $themes_data[$i]['nick'] . "\">" . $user . "</a>\r\n\t\t\t" . "{$td_all}" . "";
} else {
    $user = $themes_data[$i]['nick'];
    echo $user . "\r\n  \t\t        " . "{$td_all}" . "";
}
echo "\r\n\t" . $themes_data[$i]['date'] . "\r\n\t" . "{$td_all}" . "";
if ($links > 0) {
    //$reg=0;
    //for($h=0;$h<count($all_users);$h++){if(($users_info['login'][$h]==$all_messages[$i]['nick'][$themes_data[$i]['count']-1])&&($all_messages[$i]['user_id'][$themes_data[$i]['count']-1]==$all_users[$h]))$reg=1;}
    if (is_user_exists($all_messages[$i]['user_id'][$themes_data[$i]['count'] - 1])) {
        $ud = get_user_data($all_messages[$i]['user_id'][$themes_data[$i]['count'] - 1]);
        //while($users_info['id'][$usr_id]!=$all_messages[$i]['nick'][$themes_data[$i]['count']-1] && $usr_id<count($users_info['id']))$usr_id++;
        $user = $ud['nick'];
        echo "<a href=\"?p=users&act=userinfo&id=" . $all_messages[$i]['user_id'][$themes_data[$i]['count'] - 1] . "\">\r\n\t\t        " . $user . "</a>";
    } else {
        $user = $all_messages[$i]['nick'][$themes_data[$i]['count'] - 1];
        echo "" . $user . "";
    }
    echo ",\r\n\t\t" . $themes_data[$i]['refresh'] . "";
    echo " <a href=\"?p={$p}&forum_ext={$forum_ext}&t_page={$t_page}&id=showtopic&topic={$topic}&page={$links}#last\"><img src=\"{$file_last}\" border=0></a>";
}
echo "\r\n\t" . "{$td_all}" . "\r\n\t" . $themes_data[$i]['views'] . "\r\n\t" . "{$td_all}" . "\r\n\t" . $themes_data[$i]['count'] . "\r\n\t" . "{$td_all}" . "\r\n\t<SMALL>" . $themes_data[$i]['descr'] . "</SMALL>";
?>
                      
Example #3
0
&a=admin">Администрирование</a>
    </div>
    <?php 
                    }
                    echo "<br><br><CENTER>Страница: " . $pagestext . "</CENTER>";
                    $messages = $guest->get_messages_onpage($p_idx);
                    for ($m_idx = 0; $m_idx < count($messages); ++$m_idx) {
                        $mess = $messages[$m_idx];
                        $answers = $guest->get_answer_mess($mess["id"]);
                        ?>
                  <table width=70% align=center style="border: 0px" class=tbl2>
                  <tr>
                  <td align=left width=50% colspan=2 class=tbl2>
                       <?php 
                        $ud = get_user_data($mess["name"]);
                        if (is_user_exists($mess["name"])) {
                            OUT("<a href=?p=users&act=userinfo&id=" . $mess["name"] . ">" . $ud["nick"] . "</a>");
                        } else {
                            OUT("" . $ud["nick"]);
                        }
                        ?>
, <?php 
                        if ($mess["email"]) {
                            echo make_email_str($mess["email"]);
                        }
                        ?>
                   <?php 
                        if ($mess["url"]) {
                            echo make_url_str($mess["url"]) . ",";
                        }
                        ?>
Example #4
0
 if (strstr($file, "." . $forums['ext'][$i])) {
     $_file1_ = file($vars['dir_themes'] . "/" . substr($file, 0, -strlen("." . $forums['ext'][$i])) . "." . $vars['mess_ext']);
     $_file1__ = implode("", $_file1_);
     $_file_ = explode("{$smb1}", $_file1__);
     $count_mes = count($_file_);
     //$_file=implode("",$_file_);
     //echo($_file_[count($_file_)-1]);
     //echo($file.":".$_file_[count($_file_)-2]."<hr>");
     //exit;
     $_mess = explode("{$smb}", $_file_[count($_file_) - 2]);
     //echo($_mess[4].">".$last_upd."<br>");
     if ($_mess[4] > $last_upd) {
         $last_upd = $_mess[4];
         $buf = implode("", file($vars['dir_themes'] . "/" . $file));
         $top_title = substr($buf, 0, strpos($buf, "{$smb}"));
         if (is_user_exists($_mess[6])) {
             $ud = get_user_data($_mess[6]);
             $forums['last'][$i] = "\"{$top_title}\"<br><a href=\"?p=users&act=userinfo&id=" . $_mess[6] . "\">" . $ud["nick"] . "</a>, " . $_mess[3];
         } else {
             $forums['last'][$i] = "\"{$top_title}\"<br>" . $_mess[0] . ", " . $_mess[3];
         }
         $links = 0;
         for ($j = 0; $j < $count_mes - 1; $j = $j + $vars['kvo']) {
             $links++;
         }
         $forums['pages'][$i] = $links;
         $forums['last_topic'][$i] = substr($file, 0, -strlen("." . $forums['ext'][$i]));
     }
     //echo($_mess[4]."<br>");
     $f_count++;
 }
Example #5
0
                            }
                            if ($cpage != "all") {
                                $pagescode .= "<a href=\"?p={$p}&act={$act}&topic={$topic}&art={$art}&cpage=all\">все</a>";
                            }
                            if (count($clist)) {
                                ?>
                                                                            
      <br>Страница: <?php 
                                OUT($pagescode);
                                ?>
<br>  
      <?php 
                                for ($i = 0; $i < count($clist); ++$i) {
                                    $data = $clist[$i];
                                    $uid = $data["nick"];
                                    if (is_user_exists($uid)) {
                                        $udata = get_user_data($uid);
                                        $nick = "<a href=?p=users&act=userinfo&id=" . $udata["id"] . ">" . $udata["nick"] . "</a>";
                                        $email = make_email_str($udata["email"]);
                                        $url = make_url_str($udata["url"]);
                                    } else {
                                        $nick = $data["nick"];
                                        $email = make_email_str($data["email"]);
                                        $url = make_url_str($data["url"]);
                                    }
                                    ?>
       <table width=100%>
       <tr><td class=tbl1 width=100%>
       <?php 
                                    OUT($nick);
                                    ?>
Example #6
0
                ?>
,<br>
     Страница: <?php 
                OUT($navig);
                ?>

     <?php 
                $list = $PDIV->GetPage($alist, $page);
                for ($i = 0; $i < count($list); ++$i) {
                    $data = $ANN->GetAnnData($list[$i]);
                    ?>
     <table width=100%>
     <td class=tbl1 width=100%>
     <table class=tbl2 width=100%><td class=tbl1 width=100%>
     <?php 
                    if (is_user_exists($data['login'])) {
                        ?>
     <a href="?p=users&act=userinfo&id=<?php 
                        $ud = get_user_data($data['login']);
                        OUT($ud["id"]);
                        ?>
"><?php 
                        OUT($ud["nick"]);
                        ?>
</a>, <?php 
                        OUT(norm_date($data['date']));
                        ?>
,
     <?php 
                    } else {
                        ?>
Example #7
0
        if ($_MODULE) {
            if ($_NOTBAR) {
                if (!file_exists(SK_DIR . "/users.php")) {
                    // skin doesn't support this module admin, let's draw all by ourself
                    // {
                    include "config.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"]);
                    global $FLTR;
                    $list = $USR->GetUsersList();
                    if (isset($CURRENT_USER["id"]) && is_user_exists($CURRENT_USER["id"])) {
                        $data = $USR->GetUserData($CURRENT_USER["id"]);
                    }
                    switch ($act) {
                        case "userinfo":
                            if (isset($id) && is_user_exists($id)) {
                                $udata = $USR->GetUserData($id);
                                if ($USR->IsUserOnline($id)) {
                                    $tonline = "Он-лайн";
                                } else {
                                    $tonline = "Офлайн";
                                }
                                ?>
        <div align=center><b>Информация о пользователе '<?php 
                                OUT($udata['nick']);
                                ?>
'</b></div>
        <table width=100%><tr><td width=100%>
        <table width=30% height=100% align=left class=tbl1>
          <tr><td width=100% align=center>
          <b><?php