diff --git a/contrib/autocomplete/main.php b/contrib/autocomplete/main.php index 7cf81172..91b18952 100644 --- a/contrib/autocomplete/main.php +++ b/contrib/autocomplete/main.php @@ -6,8 +6,8 @@ * Description: Auto-complete for search and upload tags */ -class AutoComplete extends Extension { - public function receive_event($event) { +class AutoComplete implements Extension { + public function receive_event(Event $event) { if(($event instanceof PageRequestEvent) && ($event->page_name == "index" || $event->page_name == "view")) { $event->page->add_header(""); } diff --git a/contrib/ban_words/main.php b/contrib/ban_words/main.php index 126dae2d..02a758a9 100644 --- a/contrib/ban_words/main.php +++ b/contrib/ban_words/main.php @@ -6,8 +6,8 @@ * Description: For stopping spam and other comment abuse */ -class BanWords extends Extension { - public function receive_event($event) { +class BanWords implements Extension { + public function receive_event(Event $event) { if($event instanceof InitExtEvent) { global $config; $config->set_default_string('banned_words', " diff --git a/contrib/browser_search/main.php b/contrib/browser_search/main.php index 073ac0dc..f2e3cd21 100755 --- a/contrib/browser_search/main.php +++ b/contrib/browser_search/main.php @@ -11,8 +11,8 @@ * */ -class BrowserSearch extends Extension { - public function receive_event($event) { +class BrowserSearch implements Extension { + public function receive_event(Event $event) { global $page; global $config; diff --git a/contrib/bulk_add/main.php b/contrib/bulk_add/main.php index f8023169..293d360b 100644 --- a/contrib/bulk_add/main.php +++ b/contrib/bulk_add/main.php @@ -6,10 +6,10 @@ * Description: Bulk add server-side images */ -class BulkAdd extends Extension { +class BulkAdd implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("bulk_add", "BulkAddTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "bulk_add")) { diff --git a/contrib/danbooru_api/main.php b/contrib/danbooru_api/main.php index c270a790..118dd7ec 100644 --- a/contrib/danbooru_api/main.php +++ b/contrib/danbooru_api/main.php @@ -38,10 +38,10 @@ Completely compatibility will probably involve a rewrite with a different URL */ -class DanbooruApi extends Extension +class DanbooruApi implements Extension { // Receive the event - public function receive_event($event) + public function receive_event(Event $event) { // Check if someone is accessing /api/danbooru (us) if(($event instanceof PageRequestEvent) && ($event->page_name == "api") && ($event->get_arg(0) == 'danbooru')) diff --git a/contrib/downtime/main.php b/contrib/downtime/main.php index 00a4192b..f34ee036 100644 --- a/contrib/downtime/main.php +++ b/contrib/downtime/main.php @@ -6,10 +6,10 @@ * Description: Show a "down for maintenance" page */ -class Downtime extends Extension { +class Downtime implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("downtime", "DowntimeTheme"); if($event instanceof SetupBuildingEvent) { diff --git a/contrib/emoticons/main.php b/contrib/emoticons/main.php index c1d5e181..9144c2eb 100644 --- a/contrib/emoticons/main.php +++ b/contrib/emoticons/main.php @@ -6,8 +6,8 @@ * Description: Turn :smile: into a link to smile.gif */ -class Emoticons extends Extension { - public function receive_event($event) { +class Emoticons implements Extension { + public function receive_event(Event $event) { if($event instanceof TextFormattingEvent) { $event->formatted = $this->bbcode_to_html($event->formatted); $event->stripped = $this->bbcode_to_text($event->stripped); diff --git a/contrib/et/main.php b/contrib/et/main.php index 24629d98..f9915f69 100644 --- a/contrib/et/main.php +++ b/contrib/et/main.php @@ -6,10 +6,10 @@ * Description: Show various bits of system information, for debugging */ -class ET extends Extension { +class ET implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("et", "ETTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "system_info")) { diff --git a/contrib/event_log/main.php b/contrib/event_log/main.php index 5a8b822c..3c62ebbb 100644 --- a/contrib/event_log/main.php +++ b/contrib/event_log/main.php @@ -6,10 +6,10 @@ * Description: A log of things that happen, for abuse tracking */ -class EventLog extends Extension { +class EventLog implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("event_log", "EventLogTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/featured/main.php b/contrib/featured/main.php index 265ed886..795017cf 100644 --- a/contrib/featured/main.php +++ b/contrib/featured/main.php @@ -6,10 +6,10 @@ * Description: Bring a specific image to the users' attentions */ -class Featured extends Extension { +class Featured implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("featured", "FeaturedTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/handle_archive/main.php b/contrib/handle_archive/main.php index 8bff2fdf..031aba0e 100644 --- a/contrib/handle_archive/main.php +++ b/contrib/handle_archive/main.php @@ -5,8 +5,8 @@ * Description: Allow users to upload archives (zip, etc) */ -class ArchiveFileHandler extends Extension { - public function receive_event($event) { +class ArchiveFileHandler implements Extension { + public function receive_event(Event $event) { if($event instanceof InitExtEvent) { global $config; $config->set_default_string('archive_extract_command', 'unzip -d "%d" "%f"'); diff --git a/contrib/handle_flash/main.php b/contrib/handle_flash/main.php index ae6c5cb4..f61db9f0 100644 --- a/contrib/handle_flash/main.php +++ b/contrib/handle_flash/main.php @@ -5,10 +5,10 @@ * Description: Handle Flash files */ -class FlashFileHandler extends Extension { +class FlashFileHandler implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("handle_flash", "FlashFileHandlerTheme"); if(($event instanceof DataUploadEvent) && $this->supported_ext($event->type) && $this->check_contents($event->tmpname)) { diff --git a/contrib/handle_ico/main.php b/contrib/handle_ico/main.php index 8e9cdd98..b20d32d1 100644 --- a/contrib/handle_ico/main.php +++ b/contrib/handle_ico/main.php @@ -5,10 +5,10 @@ * Description: Handle windows icons */ -class IcoFileHandler extends Extension { +class IcoFileHandler implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("handle_ico", "IcoFileHandlerTheme"); if(($event instanceof DataUploadEvent) && $this->supported_ext($event->type) && $this->check_contents($event->tmpname)) { diff --git a/contrib/handle_mp3/main.php b/contrib/handle_mp3/main.php index 41ef55aa..3816a9ae 100644 --- a/contrib/handle_mp3/main.php +++ b/contrib/handle_mp3/main.php @@ -5,10 +5,10 @@ * Description: Handle MP3 files */ -class MP3FileHandler extends Extension { +class MP3FileHandler implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("handle_mp3", "MP3FileHandlerTheme"); if(($event instanceof DataUploadEvent) && $this->supported_ext($event->type) && $this->check_contents($event->tmpname)) { diff --git a/contrib/handle_svg/main.php b/contrib/handle_svg/main.php index 48a39e9e..73f81cd6 100644 --- a/contrib/handle_svg/main.php +++ b/contrib/handle_svg/main.php @@ -5,10 +5,10 @@ * Description: Handle SVG files */ -class SVGFileHandler extends Extension { +class SVGFileHandler implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("handle_svg", "SVGFileHandlerTheme"); if(($event instanceof DataUploadEvent) && $this->supported_ext($event->type) && $this->check_contents($event->tmpname)) { diff --git a/contrib/home/main.php b/contrib/home/main.php index f0cc8dae..c53a4b13 100644 --- a/contrib/home/main.php +++ b/contrib/home/main.php @@ -8,10 +8,10 @@ * page is accessed via /home. */ -class Home extends Extension { +class Home implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("home", "HomeTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "home")) diff --git a/contrib/image_hash_ban/main.php b/contrib/image_hash_ban/main.php index 764c1439..e54c8860 100644 --- a/contrib/image_hash_ban/main.php +++ b/contrib/image_hash_ban/main.php @@ -30,10 +30,10 @@ class AddImageHashBanEvent extends Event { } } // }}} -class Image_Hash_Ban extends Extension { +class Image_Hash_Ban implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("Image_Hash_Ban", "ImageBanTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php index 737ba90c..0a74d67f 100644 --- a/contrib/ipban/main.php +++ b/contrib/ipban/main.php @@ -30,10 +30,10 @@ class AddIPBanEvent extends Event { } // }}} -class IPBan extends Extension { +class IPBan implements Extension { var $theme; // event handler {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("ipban", "IPBanTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/link_image/main.php b/contrib/link_image/main.php index 95153df6..9b695019 100644 --- a/contrib/link_image/main.php +++ b/contrib/link_image/main.php @@ -4,10 +4,10 @@ * Author: Artanis * Description: Show various forms of link to each image, for copy & paste */ -class LinkImage extends Extension { +class LinkImage implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("link_image", "LinkImageTheme"); if(($event instanceof DisplayingImageEvent)) { global $config; diff --git a/contrib/news/main.php b/contrib/news/main.php index 636bc22e..72b28ee4 100644 --- a/contrib/news/main.php +++ b/contrib/news/main.php @@ -6,10 +6,10 @@ * Description: Show a short amonut of text in a block on the post list */ -class News extends Extension { +class News implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("news", "NewsTheme"); if($event instanceof PostListBuildingEvent) { diff --git a/contrib/notes/main.php b/contrib/notes/main.php index 03beac0a..a3e2ed01 100644 --- a/contrib/notes/main.php +++ b/contrib/notes/main.php @@ -6,10 +6,10 @@ * Description: Adds notes overlaid on the images */ -class Notes extends Extension { +class Notes implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("notes", "NotesTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/numeric_score/main.php b/contrib/numeric_score/main.php index ef754e8a..aa1095d6 100644 --- a/contrib/numeric_score/main.php +++ b/contrib/numeric_score/main.php @@ -16,10 +16,10 @@ class NumericScoreSetEvent extends Event { } } -class NumericScore extends Extension { +class NumericScore implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("numeric_score", "NumericScoreTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/piclens/main.php b/contrib/piclens/main.php index 17b67e26..140d8708 100644 --- a/contrib/piclens/main.php +++ b/contrib/piclens/main.php @@ -5,8 +5,8 @@ * License: GPLv2 * Description: Adds a link to piclensify the gallery */ -class PicLens extends Extension { - public function receive_event($event) { +class PicLens implements Extension { + public function receive_event(Event $event) { if($event instanceof PageRequestEvent) { $event->page->add_header(""); } diff --git a/contrib/random_image/main.php b/contrib/random_image/main.php index 81ab760a..a4237fc9 100644 --- a/contrib/random_image/main.php +++ b/contrib/random_image/main.php @@ -7,8 +7,8 @@ * Link: http://trac.shishnet.org/shimmie2/wiki/Contrib/Extensions/RandomImage */ -class RandomImage extends Extension { - public function receive_event($event) { +class RandomImage implements Extension { + public function receive_event(Event $event) { if(($event instanceof PageRequestEvent) && ($event->page_name == "random_image")) { global $database; diff --git a/contrib/rating/main.php b/contrib/rating/main.php index b2c10e69..aa042d60 100644 --- a/contrib/rating/main.php +++ b/contrib/rating/main.php @@ -16,10 +16,10 @@ class RatingSetEvent extends Event { } } -class Ratings extends Extension { +class Ratings implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("rating", "RatingsTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/regen_thumb/main.php b/contrib/regen_thumb/main.php index f6f3e12a..73908a72 100644 --- a/contrib/regen_thumb/main.php +++ b/contrib/regen_thumb/main.php @@ -6,10 +6,10 @@ * Description: Regenerate a thumbnail image */ -class RegenThumb extends Extension { +class RegenThumb implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("regen_thumb", "RegenThumbTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "regen_thumb")) { diff --git a/contrib/report_image/main.php b/contrib/report_image/main.php index cdb44c00..1078fdda 100755 --- a/contrib/report_image/main.php +++ b/contrib/report_image/main.php @@ -29,10 +29,10 @@ class AddReportedImageEvent extends Event { } } -class ReportImage extends Extension { +class ReportImage implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("report_image", "ReportImageTheme"); if($event instanceof InitExtEvent) { diff --git a/contrib/res_limit/main.php b/contrib/res_limit/main.php index 0eb0e380..b6e64bcc 100644 --- a/contrib/res_limit/main.php +++ b/contrib/res_limit/main.php @@ -5,8 +5,8 @@ * License: GPLv2 * Description: Allows the admin to set min / max image dimentions */ -class ResolutionLimit extends Extension { - public function receive_event($event) { +class ResolutionLimit implements Extension { + public function receive_event(Event $event) { if($event instanceof ImageAdditionEvent) { global $config; $min_w = $config->get_int("upload_min_width", -1); diff --git a/contrib/rss_comments/main.php b/contrib/rss_comments/main.php index 71917534..8a061577 100644 --- a/contrib/rss_comments/main.php +++ b/contrib/rss_comments/main.php @@ -6,9 +6,9 @@ * Description: Self explanitory */ -class RSS_Comments extends Extension { +class RSS_Comments implements Extension { // event handling {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if($event instanceof PostListBuildingEvent) { global $page; global $config; diff --git a/contrib/rss_images/main.php b/contrib/rss_images/main.php index ae39759b..a3b2dcf1 100644 --- a/contrib/rss_images/main.php +++ b/contrib/rss_images/main.php @@ -6,9 +6,9 @@ * Description: Self explanitory */ -class RSS_Images extends Extension { +class RSS_Images implements Extension { // event handling {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if($event instanceof PostListBuildingEvent) { global $page; global $config; diff --git a/contrib/site_description/main.php b/contrib/site_description/main.php index 108dbc14..636d482c 100644 --- a/contrib/site_description/main.php +++ b/contrib/site_description/main.php @@ -6,8 +6,8 @@ * Description: Sets the "description" meta-info in the page header, for * eg search engines to read */ -class SiteDescription extends Extension { - public function receive_event($event) { +class SiteDescription implements Extension { + public function receive_event(Event $event) { if($event instanceof PageRequestEvent) { global $config; if(strlen($config->get_string("site_description")) > 0) { diff --git a/contrib/svn_update/main.php b/contrib/svn_update/main.php index fb82f429..a30a6517 100644 --- a/contrib/svn_update/main.php +++ b/contrib/svn_update/main.php @@ -6,10 +6,10 @@ * Description: Provides a button to check for updates */ -class SVNUpdate extends Extension { +class SVNUpdate implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("svn_update", "SVNUpdateTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "update")) { diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index b2530fd6..2bc11a54 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -5,10 +5,10 @@ * Description: Keep a record of tag changes */ -class Tag_History extends Extension { +class Tag_History implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("tag_history", "Tag_HistoryTheme"); if(($event instanceof InitExtEvent)) { diff --git a/contrib/tagger/main.php b/contrib/tagger/main.php index bad7950d..f104cfb2 100644 --- a/contrib/tagger/main.php +++ b/contrib/tagger/main.php @@ -6,7 +6,7 @@ * Do not remove this notice. */ -class Tagger extends Extension { +class Tagger implements Extension { var $theme; public function receive_event ($event) { @@ -41,8 +41,8 @@ class Tagger extends Extension { add_event_listener(new Tagger()); // Tagger AJAX back-end -class TaggerXML extends Extension { - public function receive_event($event) { +class TaggerXML implements Extension { + public function receive_event(Event $event) { if(($event instanceof PageRequestEvent) && $event->page_name == "tagger" && $event->get_arg(0) == "tags") diff --git a/contrib/text_score/main.php b/contrib/text_score/main.php index d0178f26..2b0b3624 100644 --- a/contrib/text_score/main.php +++ b/contrib/text_score/main.php @@ -16,10 +16,10 @@ class TextScoreSetEvent extends Event { } } -class TextScore extends Extension { +class TextScore implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("text_score", "TextScoreTheme"); if(($event instanceof InitExtEvent)) { diff --git a/contrib/wiki/main.php b/contrib/wiki/main.php index 7e27914c..9054c4f6 100644 --- a/contrib/wiki/main.php +++ b/contrib/wiki/main.php @@ -51,10 +51,10 @@ class WikiPage { } } // }}} -class Wiki extends Extension { +class Wiki implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("wiki", "WikiTheme"); if(($event instanceof InitExtEvent)) { diff --git a/contrib/word_filter/main.php b/contrib/word_filter/main.php index 2d04f751..638421cd 100644 --- a/contrib/word_filter/main.php +++ b/contrib/word_filter/main.php @@ -6,8 +6,8 @@ * Description: Simple search and replace */ -class WordFilter extends Extension { - public function receive_event($event) { +class WordFilter implements Extension { + public function receive_event(Event $event) { if($event instanceof TextFormattingEvent) { $event->formatted = $this->filter($event->formatted); $event->stripped = $this->filter($event->stripped); diff --git a/contrib/zoom/main.php b/contrib/zoom/main.php index 72af5554..5cedd6cc 100644 --- a/contrib/zoom/main.php +++ b/contrib/zoom/main.php @@ -6,10 +6,10 @@ * Description: Scales down too-large images using browser based scaling */ -class Zoom extends Extension { +class Zoom implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if($this->theme == null) $this->theme = get_theme_object("zoom", "ZoomTheme"); if($event instanceof DisplayingImageEvent) { diff --git a/ext/admin/main.php b/ext/admin/main.php index 62fc4f18..d664bd54 100644 --- a/ext/admin/main.php +++ b/ext/admin/main.php @@ -11,10 +11,10 @@ class AdminBuildingEvent extends Event { } // }}} -class AdminPage extends Extension { +class AdminPage implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("admin", "AdminPageTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "admin")) { diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index 0b2a8052..9abd9765 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -10,10 +10,10 @@ class AddAliasEvent extends Event { } } -class AliasEditor extends Extension { +class AliasEditor implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("alias_editor", "AliasEditorTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "alias")) { diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index c28bd7c5..5d9b7236 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -1,7 +1,7 @@ formatted = $this->bbcode_to_html($event->formatted); $event->stripped = $this->bbcode_to_text($event->stripped); diff --git a/ext/comment/main.php b/ext/comment/main.php index 866d9180..d2805ae7 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -48,10 +48,10 @@ class Comment { // {{{ } } // }}} -class CommentList extends Extension { +class CommentList implements Extension { var $theme; // event handler {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("comment", "CommentListTheme"); if($event instanceof InitExtEvent) { diff --git a/ext/ext_manager/main.php b/ext/ext_manager/main.php index 10444b6a..5db9685d 100644 --- a/ext/ext_manager/main.php +++ b/ext/ext_manager/main.php @@ -53,10 +53,10 @@ class ExtensionInfo { // {{{ } } // }}} -class ExtManager extends Extension { +class ExtManager implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("ext_manager", "ExtManagerTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "ext_manager")) { diff --git a/ext/handle_404/main.php b/ext/handle_404/main.php index 3646044f..48309e54 100644 --- a/ext/handle_404/main.php +++ b/ext/handle_404/main.php @@ -1,7 +1,7 @@ page; // hax. diff --git a/ext/handle_pixel/main.php b/ext/handle_pixel/main.php index 00280955..f82fbe58 100644 --- a/ext/handle_pixel/main.php +++ b/ext/handle_pixel/main.php @@ -5,10 +5,10 @@ * Description: Handle JPG, PNG, GIF, etc files */ -class PixelFileHandler extends Extension { +class PixelFileHandler implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("handle_pixel", "PixelFileHandlerTheme"); if(($event instanceof DataUploadEvent) && $this->supported_ext($event->type) && $this->check_contents($event->tmpname)) { diff --git a/ext/image/main.php b/ext/image/main.php index 7712025e..742637d6 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -3,9 +3,9 @@ * A class to handle adding / getting / removing image * files from the disk */ -class ImageIO extends Extension { +class ImageIO implements Extension { // event handling {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if($event instanceof InitExtEvent) { global $config; $config->set_default_int('thumb_width', 192); diff --git a/ext/index/main.php b/ext/index/main.php index e21fc83d..e60574c4 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -10,10 +10,10 @@ class PostListBuildingEvent extends Event { } } -class Index extends Extension { +class Index implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("index", "IndexTheme"); if($event instanceof InitExtEvent) { diff --git a/ext/load_ext_data/main.php b/ext/load_ext_data/main.php index dd707d4c..47eeeef3 100644 --- a/ext/load_ext_data/main.php +++ b/ext/load_ext_data/main.php @@ -1,6 +1,6 @@ theme)) $this->theme = get_theme_object("setup", "SetupTheme"); if($event instanceof InitExtEvent) { diff --git a/ext/tag_edit/main.php b/ext/tag_edit/main.php index 5714b850..6a9b7691 100644 --- a/ext/tag_edit/main.php +++ b/ext/tag_edit/main.php @@ -1,9 +1,9 @@ theme)) $this->theme = get_theme_object("tag_edit", "TagEditTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "tag_edit")) { diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 2bf65eb9..8bb58057 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -1,10 +1,10 @@ theme == null) $this->theme = get_theme_object("tag_list", "TagListTheme"); if($event instanceof InitExtEvent) { diff --git a/ext/upgrade/main.php b/ext/upgrade/main.php index 91d09033..78f1891b 100644 --- a/ext/upgrade/main.php +++ b/ext/upgrade/main.php @@ -1,7 +1,7 @@ do_things(); } diff --git a/ext/upload/main.php b/ext/upload/main.php index cdbde216..2923fc7f 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -1,9 +1,9 @@ theme)) $this->theme = get_theme_object("upload", "UploadTheme"); $is_full = (disk_free_space("./images/") < 100*1024*1024); diff --git a/ext/user/main.php b/ext/user/main.php index d40179da..c6029c29 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -36,11 +36,11 @@ class UserCreationEvent extends Event { } } -class UserPage extends Extension { +class UserPage implements Extension { var $theme; // event handling {{{ - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("user", "UserPageTheme"); if($event instanceof InitExtEvent) { diff --git a/ext/view/main.php b/ext/view/main.php index 8f4baaee..78498c2d 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -39,10 +39,10 @@ class ImageAdminBlockBuildingEvent extends Event { $this->parts[$position] = $html; } } -class ViewImage extends Extension { +class ViewImage implements Extension { var $theme; - public function receive_event($event) { + public function receive_event(Event $event) { if(is_null($this->theme)) $this->theme = get_theme_object("view", "ViewTheme"); if(($event instanceof PageRequestEvent) && ($event->page_name == "post") && ($event->get_arg(0) == "view")) {