Mostly just adding the Link to comments.
This commit is contained in:
parent
0cdc303397
commit
2d443f0be9
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Comment Word Ban
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: For stopping spam and other comment abuse
|
||||
* Documentation:
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Bulk Add
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Bulk add server-side images
|
||||
* Documentation:
|
||||
@ -30,7 +31,9 @@ class BulkAdd extends SimpleExtension {
|
||||
$this->theme->display_admin_block();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate the necessary DataUploadEvent for a given image and tags.
|
||||
*/
|
||||
private function add_image($tmpname, $filename, $tags) {
|
||||
assert(file_exists($tmpname));
|
||||
|
||||
|
@ -29,6 +29,9 @@ class ET extends SimpleExtension {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Collect the information and return it in a keyed array.
|
||||
*/
|
||||
private function get_info() {
|
||||
global $config, $database;
|
||||
global $_event_listeners; // yay for using secret globals \o/
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Featured Image
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Bring a specific image to the users' attentions
|
||||
* Documentation:
|
||||
|
@ -2,7 +2,8 @@
|
||||
/*
|
||||
* Name: Handle Flash
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Description: Handle Flash files
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* Description: Handle Flash files. (No thumbnail is generated for flash files)
|
||||
*/
|
||||
|
||||
class FlashFileHandler extends DataHandlerExtension {
|
||||
|
@ -2,7 +2,8 @@
|
||||
/*
|
||||
* Name: Handle SVG
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Description: Handle SVG files
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* Description: Handle SVG files. (No thumbnail is generated for SVG files)
|
||||
*/
|
||||
|
||||
class SVGFileHandler implements Extension {
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: IP Ban
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Ban IP addresses
|
||||
* Documentation:
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
/*
|
||||
* Name: Logging (Database)
|
||||
* Author: Shish
|
||||
* Description: Keep a record of SCore events
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* Description: Keep a record of SCore events (in the database).
|
||||
* Visibility: admin
|
||||
*/
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: News
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Show a short amount of text in a block on the post list
|
||||
* Documentation:
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Image Scores (Numeric)
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Allow users to score images
|
||||
* Documentation:
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Random Image
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Do things with a random image
|
||||
* Documentation:
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Image Ratings
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Allow users to rate images "safe", "questionable" or "explicit"
|
||||
*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Regen Thumb
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Description: Regenerate a thumbnail image
|
||||
* Documentation:
|
||||
|
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Name: Site Description
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* License: GPLv2
|
||||
* Visibility: admin
|
||||
* Description: A description for search engines
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
/**
|
||||
* Name: Tag List
|
||||
* Author: Shish
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* Description: Show the tags in various ways
|
||||
*/
|
||||
|
||||
@ -107,13 +108,18 @@ class TagList extends SimpleExtension {
|
||||
return make_link("post/list/$u_tag/1");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the minimum number of times a tag needs to be used
|
||||
* in order to be considered in the tag list.
|
||||
* @retval int
|
||||
*/
|
||||
private function get_tags_min() {
|
||||
if(isset($_GET['mincount'])) {
|
||||
return int_escape($_GET['mincount']);
|
||||
}
|
||||
else {
|
||||
global $config;
|
||||
return $config->get_int('tags_min');
|
||||
return $config->get_int('tags_min'); // get the default.
|
||||
}
|
||||
}
|
||||
|
||||
@ -170,6 +176,8 @@ class TagList extends SimpleExtension {
|
||||
|
||||
$tags_min = $this->get_tags_min();
|
||||
$starts_with = $this->get_starts_with();
|
||||
|
||||
// check if we have a cached version
|
||||
$cache_key = "data/tag_cloud-" . md5("tc" . $tags_min . $starts_with) . ".html";
|
||||
if(file_exists($cache_key)) {return file_get_contents($cache_key);}
|
||||
|
||||
@ -205,6 +213,8 @@ class TagList extends SimpleExtension {
|
||||
|
||||
$tags_min = $this->get_tags_min();
|
||||
$starts_with = $this->get_starts_with();
|
||||
|
||||
// check if we have a cached version
|
||||
$cache_key = "data/tag_alpha-" . md5("ta" . $tags_min . $starts_with) . ".html";
|
||||
if(file_exists($cache_key)) {return file_get_contents($cache_key);}
|
||||
|
||||
@ -239,6 +249,8 @@ class TagList extends SimpleExtension {
|
||||
global $database;
|
||||
|
||||
$tags_min = $this->get_tags_min();
|
||||
|
||||
// check if we have a cached version
|
||||
$cache_key = "data/tag_popul-" . md5("tp" . $tags_min) . ".html";
|
||||
if(file_exists($cache_key)) {return file_get_contents($cache_key);}
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
* Name: Database Upgrader
|
||||
* Author: Shish
|
||||
* Author: Shish <webmaster@shishnet.org>
|
||||
* Link: http://code.shishnet.org/shimmie2/
|
||||
* Description: Keeps things happy behind the scenes
|
||||
* Visibility: admin
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user