more documentation, and set some extensions to be hidden from the user docs list
This commit is contained in:
parent
843e2b2cc9
commit
18c0fa7df8
@ -3,6 +3,7 @@
|
||||
* Name: Home Page
|
||||
* Author: Bzchan <bzchan@animemahou.com>
|
||||
* License: GPLv2
|
||||
* Visibility: admin
|
||||
* Description: Displays a front page with logo, search box and image count
|
||||
* Documentation:
|
||||
* Once enabled, the page will show up at the URL "home", so if you want
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Name: Logging (Database)
|
||||
* Author: Shish
|
||||
* Description: Keep a record of SCore events
|
||||
* Visibility: admin
|
||||
*/
|
||||
|
||||
class LogDatabase extends SimpleExtension {
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Name: Site Description
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* License: GPLv2
|
||||
* Visibility: admin
|
||||
* Description: A description for search engines
|
||||
* Documentation:
|
||||
* This extension sets the "description" meta tag in the header
|
||||
|
@ -4,6 +4,8 @@
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* License: GPLv2
|
||||
* Description: A simple wiki, for those who don't want the hugeness of mediawiki
|
||||
* Documentation:
|
||||
* Standard formatting APIs are used (This will be BBCode by default)
|
||||
*/
|
||||
|
||||
class WikiUpdateEvent extends Event {
|
||||
|
@ -6,8 +6,8 @@
|
||||
* License: GPLv2
|
||||
* Description: Edit the alias list
|
||||
* Documentation:
|
||||
* The list is visible at $site/alias/list; only site admins can edit it,
|
||||
* other people can view and download it
|
||||
* The list is visible at <a href="$site/alias/list">/alias/list</a>; only
|
||||
* site admins can edit it, other people can view and download it
|
||||
*/
|
||||
|
||||
class AddAliasEvent extends Event {
|
||||
|
@ -6,8 +6,7 @@
|
||||
* License: GPLv2
|
||||
* Description: Allow users to make comments on images
|
||||
* Documentation:
|
||||
* Formatting is done with BBCode, as interpreted by the
|
||||
* BBCode extension
|
||||
* Formatting is done with the standard formatting API (normally BBCode)
|
||||
*/
|
||||
|
||||
require_once "lib/akismet.class.php";
|
||||
|
@ -4,6 +4,7 @@
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Visibility: admin
|
||||
* Description: A thing for point & click extension management
|
||||
* Documentation:
|
||||
* Allows the admin to view a list of all extensions and enable or
|
||||
@ -18,7 +19,8 @@ function __extman_extcmp(ExtensionInfo $a, ExtensionInfo $b) {
|
||||
|
||||
/** @private */
|
||||
class ExtensionInfo {
|
||||
var $ext_name, $name, $link, $author, $email, $description, $documentation, $version;
|
||||
var $ext_name, $name, $link, $author, $email;
|
||||
var $description, $documentation, $version, $visibility;
|
||||
|
||||
function ExtensionInfo($main) {
|
||||
$matches = array();
|
||||
@ -33,6 +35,9 @@ class ExtensionInfo {
|
||||
if(preg_match("/Name: (.*)/", $line, $matches)) {
|
||||
$this->name = $matches[1];
|
||||
}
|
||||
if(preg_match("/Visibility: (.*)/", $line, $matches)) {
|
||||
$this->visibility = $matches[1];
|
||||
}
|
||||
if(preg_match("/Link: (.*)/", $line, $matches)) {
|
||||
$this->link = $matches[1];
|
||||
if($this->link[0] == "/") {
|
||||
@ -66,6 +71,7 @@ class ExtensionInfo {
|
||||
$this->documentation .= " ".substr($lines[$i+1], $start_len);
|
||||
$i++;
|
||||
}
|
||||
$this->documentation = str_replace('$site', make_http(get_base_href()), $this->documentation);
|
||||
}
|
||||
if(preg_match("/\*\//", $line, $matches)) {
|
||||
break;
|
||||
|
@ -18,6 +18,8 @@ class ExtManagerTheme extends Themelet {
|
||||
";
|
||||
$n = 0;
|
||||
foreach($extensions as $extension) {
|
||||
if(!$editable && $extension->visibility == "admin") continue;
|
||||
|
||||
$ext_name = $extension->ext_name;
|
||||
$h_name = empty($extension->name) ? $ext_name : html_escape($extension->name);
|
||||
$h_description = html_escape($extension->description);
|
||||
|
@ -4,6 +4,7 @@
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Visibility: admin
|
||||
* Description: Shows an error message when the user views a page with no content
|
||||
*/
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Name: Image Manager
|
||||
* Author: Shish
|
||||
* Description: Handle the image database
|
||||
* Visibility: admin
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Name: Post Index
|
||||
* Name: Image List
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Board Config
|
||||
* Author: Shish
|
||||
* Visibility: admin
|
||||
* Description: Allows the site admin to configure the board to his or her taste
|
||||
*/
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Name: Database Upgrader
|
||||
* Author: Shish
|
||||
* Description: Keeps things happy behind the scenes
|
||||
* Visibility: admin
|
||||
*/
|
||||
|
||||
class Upgrade implements Extension {
|
||||
|
Loading…
x
Reference in New Issue
Block a user