Permalink
Browse files

fix capcodes?

  • Loading branch information...
1 parent 551c777 commit 68846f4148fd82f8e0534fa4de00a22222d400a6 @Yushe committed on GitHub Oct 21, 2016
Showing with 11 additions and 10 deletions.
  1. +11 −10 _core/postform.php
View
@@ -30,12 +30,15 @@ function format($resno = null, $admin = false) {
if ($admin) {
$name = "";
- if (valid('moderator'))
- $name = '<span style="color:#770099;font-weight:bold;">Anonymous ## Mod</span> <img src="http://3chan.ml/static/mod-icon.png" alt="Mod Icon" title="This user is a 3chan Modorator." style="margin-bottom: -3px;"/>';
- if (valid('manager'))
+ if (valid('moderator')) {
+ $name = '<span style="color:#770099;font-weight:bold;">Anonymous ## Mod</span>';
+ }
+ if (valid('admin')) {
+ $name = '<span style="color:#FF101A;font-weight:bold;">Anonymous ## Admin</span>';
+ }
+ if (valid('manager')) {
$name = '<span style="color:#2E2EFE;font-weight:bold;">Anonymous ## Manager</span>';
- if (valid('admin'))
- $name = '<span style="color:#FF101A;font-weight:bold;">Anonymous ## Admin</span> <img src="http://3chan.ml/static/admin-icon.png" alt="Admin Icon" title="This user is a 3chan Administrator." style="margin-bottom: -3px;"/>';
+ }
$temp .= "<em>" . S_NOTAGS . " Posting as</em>: " . $name;
$temp .= "<input type='hidden' name='admin' value='" . PANEL_PASS . "'>";
@@ -49,7 +52,7 @@ function format($resno = null, $admin = false) {
$temp .= "<table>";
if (!FORCED_ANON) //Name
- $temp .= "<tr><td class='postblock' align='left'>" . S_NAME . "</td><td align='left'><input type='text' name='name' size='28' placeholder='" . S_ANONAME . "'></td></tr>";
+ $temp .= "<tr><td class='postblock' align='left'>" . S_NAME . "</td><td align='left'><input type='text' name='name' size='28'></td></tr>";
$temp .= "<tr><td class='postblock' align='left'>" . S_EMAIL . "</td><td align='left'><input type='text' name='email' size='28'>";
@@ -97,21 +100,19 @@ function format($resno = null, $admin = false) {
else
$temp .= '</table></form></div></div>';
- if (USE_ADS2) $temp .= ADS2 . "<hr>";
-
if (file_exists(GLOBAL_NEWS)) {
$news = file_get_contents(GLOBAL_NEWS);
if ($news !== "")
$temp .= "<div class='globalNews desktop'>" . file_get_contents( GLOBAL_NEWS ) . "</div><hr>";
$temp .= "<div class='globalNewsM mobile'>" . file_get_contents( GLOBAL_NEWS ) . "<hr></div>";
}
-
+
if ($resno) //Navigation bar above thread.
$temp .= "<div class='threadnav' /> [<a href='" . PHP_SELF2_ABS . "'>" . S_RETURN . "</a>] [<a href='" . $resno . PHP_EXT . "#bottom'/>Bottom</a>] </div>\n<hr>";
else
$temp .= "<div class='threadnav' /> [<a href='" . PHP_SELF2_ABS . "#bottom'/>Bottom</a>] [<a href='/" . BOARD_DIR . "/" . PHP_SELF . "?mode=catalog'>Catalog</a>]</div><hr>";
-
+ if (USE_ADS2) $temp .= ADS2 . "<hr>";
return $temp;
}

0 comments on commit 68846f4

Please sign in to comment.