</div> '; $doublepostuserid = 0; } else { echo ' <div class="row forumpost" id="p' . $dataf3["post_id"] . '"> <div class="col-md-1 visible-md visible-lg"> ' . (useravatar($dataf3["post_userid"]) != "avatar.png" ? '<img src="' . useravatar($dataf3["post_userid"]) . '" alt="avatar" class="img-responsive img-circle" style="max-width:60px;"/>' : '<img src="' . useravatar($dataf3["post_userid"]) . '" alt="avatar" class="img-responsive img-circle" style="max-width:60px;" />') . ' </div> <div class="col-md-11"> <div class="forumpostbody"> <div class="forumposthead ' . ($resultf5["post_id"] == $dataf3["post_id"] ? "" : "OSTATNEPOSTY") . '"> <a href="#p' . $dataf3["post_id"] . '" class="idf">#' . $i . '</a> <strong>' . username($dataf3["post_userid"], 1) . '</strong> — ' . ($permuser >= 2 ? $adminprava[$permuser] : userrank($dataf3["post_userid"], 1)) . '<span class="pull-right time">' . timeago($dataf3["post_time"]) . '</span> </div> ' . userdetect(smiley(bbcode(badwords(nl2br($dataf3["post_text"])), 1))) . ' <div class="forumpostfooter"> ' . ($dataf3["post_edittime"] ? 'Upravil/a ' . username($dataf3["post_edituser"], 1) . ' dňa ' . date("j. n. Y H:i:s", $dataf3["post_edittime"]) . '' : '') . '' . (SADMIN ? " IP: " . $dataf3["post_ip"] : "") . ' </div> '; if ($dataf2["forumt_locked"] == 0) { echo '<span class="postbuttons">'; if (MEMBER && $userinfo["user_id"] == $dataf3["post_userid"] || userperm("5")) { echo '[<a href="?upravit=' . $dataf3["post_id"] . '#upravit">Upraviť</a>] ' . ($resultf5["post_id"] == $dataf3["post_id"] ? '' : '[<a href="?zmazatf=' . $dataf3["post_id"] . '" onclick="return confirm(\'Príspevok už nebude možné vrátiť späť. Prajete ho vymazať?\');">Vymazať</a>]'); } echo '</span>';
$res = ($ranknum[userrank($puser["user_id"], 0, 1)] - userrank($puser["user_id"])) / $ranknum[userrank($puser["user_id"], 0, 1)] * 100; echo ' <h4>Level: <strong>' . userrank($puser["user_id"], 1) . '</strong></h4> <div class="progress" style="background:#6ab455;box-shadow:none;padding:4px;border-radius: 16px;"> <div class="progress-bar progress-bar-success" style="width: ' . (100 - $res) . '%;background:#fff;border-radius: 16px;"> </div> <div style="color:#fff;margin-right:10px;margin-top:-1px;font-size:10px;"> ' . userrank($puser["user_id"]) . ' / ' . $ranknum[userrank($puser["user_id"], 0, 1)] . ' </div> </div> <small>Následujúci level: <strong>' . $ranklevel[userrank($puser["user_id"], 0, 1) + 1] . '</strong></small> '; } else { echo '<h4>Level: ' . userrank($puser["user_id"], 1) . '</h4>'; } echo ' </div> </div> </div> <div class="modal-body"> <h4>Informácie o užívateľovi</h4> '; echo ' <div class="row"> <div class="col-md-6"> <table class="table" style="font-size:11px;color:#888">
<li class="list-group-item">Zamknuté témy <span class="badge"><?php echo dbcount("(forumt_id)", "bg_forumtopic", "forumt_locked='1'"); ?> </span></li> <li class="list-group-item">Témy vo fóre <span class="badge"><?php echo dbcount("(forumt_id)", "bg_forumtopic"); ?> </span></li> <li class="list-group-item">Odpovede v témach <span class="badge"><?php echo dbcount("(post_topicid)", "bg_forumtopicpost"); ?> </span></li> </ul> </div> <div class="panel panel-success"> <div class="panel-heading">Online užívatelia</div> <ul class="list-group"> <?php $onlinec = dbquery("SELECT user_id,user_nick,user_lastactivity,user_perm FROM bg_users WHERE user_lastactivity > " . (time() + -5 * 60)); $onlineusers = dbrows($onlinec); while ($data58 = dbarray($onlinec)) { echo '<li class="list-group-item" title="Online ' . timeago($data58["user_lastactivity"]) . '">' . $data58["user_nick"] . '<span class="badge">' . ($data58["user_perm"] >= 2 ? $adminprava[$data58["user_perm"]] : userrank($data58["user_id"], 1)) . '</span></li>'; } ?> </ul> </div> </div> <div class="col-md-9">