Пример #1
0
    
    <div class="list-group-item" style="background:#5cb85c;border-color:#5cb85c;">Téma: ' . htmlspecialchars($_POST["name"]) . '</div>

	<div class="list-group-item">
        <a href="#p0" class="idf">#0</a><strong>' . username($userinfo["user_id"], 1) . '</strong> - ' . $adminprava[$userinfo["user_perm"]] . '<span class="pull-right">' . date("j. n. Y H:i:s", $dataf3["post_time"]) . '</span>
    </div>
    
<div class="list-group-item">
    
    <div class="row">
    
        <div class="col-md-2 visible-md visible-lg">
	       ' . (useravatar($userinfo["user_id"]) != "/file/avatars/avatar.png" ? '<img src="' . useravatar($userinfo["user_id"]) . '" alt="avatar" class="img-responsive"/>' : '<img src="' . useravatar($userinfo["user_id"]) . '" alt="avatar" class="img-responsive" />') . '
        </div>
        <div class="col-md-10">
	       ' . userdetect(smiley(bbcode(badwords(nl2br($_POST["forumnew"]))))) . '
        </div>
    
    </div>
</div>
    <div class="list-group-item"></div>
</div>
		';
}
echo '<div class="list-group">
<form name="form" action="" method="POST">
    <div class="list-group-item list-group-item-warning">Vytvoriť novú tému v fóre: ' . forumcat($_GET["forumfid"]) . '</div>
    <div class="list-group-item">
    <input name="name" class="form-control" style="width:100%" value="' . (isset($_POST["name"]) ? $_POST["name"] : "") . '" placeholder="zadajte názov témy..." type="text">
    </div>
<textarea name="forumnew" class="list-group-item" rows="15" placeholder="" style="width:100%;padding:10px;font-size:12px;resize:vertical">' . (isset($_POST["forumnew"]) ? $_POST["forumnew"] : "") . '</textarea>
Пример #2
0
        $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>';
        }
        echo '
		</div>