diff --git a/mod.php b/mod.php index 31eb3be0..8ab39e68 100644 --- a/mod.php +++ b/mod.php @@ -108,7 +108,7 @@ : 'no subject' ) . - ' — by ' . + ' — by ' . utf8tohtml($_mod['username']) . ' at ' . date($config['post_date'], $notice['time']) . @@ -579,7 +579,7 @@ : 'no subject' ) . - ' — by ' . + ' — by ' . ($_mod ? utf8tohtml($_mod['username']) : @@ -665,7 +665,7 @@ : 'no subject' ) . - ' — by ' . + ' — by ' . $news['name'] . ' at ' . date($config['post_date'], $news['time']) . @@ -979,7 +979,7 @@ } elseif(preg_match('/^\/users$/', $query)) { if(!hasPermission($config['mod']['manageusers'])) error($config['error']['noaccess']); - $body = '
'; + $body = '
IDUsernameTypeBoardsLast action
'; $query = query("SELECT *, (SELECT `time` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `last`, (SELECT `text` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `action` FROM `mods` ORDER BY `type` DESC,`id`") or error(db_error()); while($_mod = $query->fetch()) { @@ -1468,7 +1468,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Manage – ' . sprintf($config['board_abbreviation'], $board['uri']), + 'title'=>'Manage – ' . sprintf($config['board_abbreviation'], $board['uri']), 'body'=>$body, 'mod'=>true )); @@ -1608,18 +1608,18 @@ set_time_limit($config['mod']['rebuild_timelimit']); - $body = '

Rebuilding…

'; + $body = '

Rebuilding…

'; - $body .= 'Clearing template cache…
'; + $body .= 'Clearing template cache…
'; $twig = new Twig_Environment($loader, Array( 'cache' => "{$config['dir']['template']}/cache" )); $twig->clearCacheFiles(); - $body .= 'Regenerating theme files…
'; + $body .= 'Regenerating theme files…
'; rebuildThemes('all'); - $body .= 'Generating Javascript file…
'; + $body .= 'Generating Javascript file…
'; buildJavascript(); $boards = listBoards(); @@ -1670,7 +1670,7 @@ if(empty($value)) $value = 'empty'; else - $value = '' . utf8tohtml(substr($value, 0, 110) . (strlen($value) > 110 ? '…' : '')) . ''; + $value = '' . utf8tohtml(substr($value, 0, 110) . (strlen($value) > 110 ? '…' : '')) . ''; } elseif(gettype($value) == 'integer') { $value = '' . $value . ''; }

IDUsernameTypeBoardsLast action