summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-02 17:15:37 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-02 17:15:37 +1100
commit2fa86beaf54573cb50f97c9e234ed132e7bf0e60 (patch)
tree1b19243181a0d64b460435b889d55149e8ca915b /inc
parentee43a11130035379ac341cd64c944795420b3fa5 (diff)
Manage users/mods
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php11
-rw-r--r--inc/functions.php2
2 files changed, 12 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index d19af058..03df743d 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -123,6 +123,7 @@
$config['error']['noaccess'] = 'You don\'t have permission to do that.';
$config['error']['invalidpost'] = 'That post doesn\'t exist…';
$config['error']['404'] = 'Page not found.';
+ $config['error']['modexists'] = 'That mod <a href="?/users/%d">already exists</a>!';
// How many reports you can create in the same request.
$config['report_limit'] = 2;
@@ -299,6 +300,16 @@
$config['mod']['manageboards'] = ADMIN;
// Delete a board
$config['mod']['deleteboard'] = ADMIN;
+ // List/manage users
+ $config['mod']['manageusers'] = MOD;
+ // Promote/demote users
+ $config['mod']['promoteusers'] = ADMIN;
+ // Edit any users' login information
+ $config['mod']['editusers'] = ADMIN;
+ // Delete a user
+ $config['mod']['deleteusers'] = ADMIN;
+ // Create a user
+ $config['mod']['createusers'] = ADMIN;
// Mod links (full HTML)
// Correspond to above permission directives
diff --git a/inc/functions.php b/inc/functions.php
index 3840e03b..8b8b2b59 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -865,7 +865,7 @@
$body = utf8tohtml($body, true);
if($config['wiki_markup']) {
- $body = preg_replace("/(^|\n)==(.+?)==\n?/m", "<h2>$2</h2>", $body);
+ $body = preg_replace("/(^|\n)==(.+?)==\n?/m", "<span class=\"heading\">$2</span>", $body);
$body = preg_replace("/'''(.+?)'''/m", "<strong>$1</strong>", $body);
$body = preg_replace("/''(.+?)''/m", "<em>$1</em>", $body);
$body = preg_replace("/\*\*(.+?)\*\*/m", "<span class=\"spoiler\">$1</span>", $body);