"Credits", "version" => "0.7.8", "author" => "Starbeamrainbowlabs", "description" => "Adds the credits page. You *must* have this module :D", "id" => "page-credits", "code" => function() { /** * @api {get} ?action=credits Get the credits page * @apiName Credits * @apiGroup Utility * @apiPermission Anonymous */ /* * ██████ ██████ ███████ ██████ ██ ████████ ███████ * ██ ██ ██ ██ ██ ██ ██ ██ ██ * ██ ██████ █████ ██ ██ ██ ██ ███████ * ██ ██ ██ ██ ██ ██ ██ ██ ██ * ██████ ██ ██ ███████ ██████ ██ ██ ███████ */ add_action("credits", function() { global $settings, $version, $pageindex, $modules; $credits = [ "Code" => [ "author" => "Starbeamrainbowlabs", "author_url" => "https://starbeamrainbowlabs.com/", "thing_url" => "https://github.com/sbrl/Pepprminty-Wiki", "icon" => "https://avatars0.githubusercontent.com/u/9929737?v=3&s=24" ], "Mime type to file extension mapper" => [ "author" => "Chaos", "author_url" => "https://stackoverflow.com/users/47529/chaos", "thing_url" => "https://stackoverflow.com/a/1147952/1460422", "icon" => "https://www.gravatar.com/avatar/aaee40db39ad6b164cfb89cb6ad4d176?s=328&d=identicon&s=24" ], "Parsedown" => [ "author" => "Emanuil Rusev and others", "author_url" => "https://github.com/erusev/", "thing_url" => "https://github.com/erusev/parsedown/", "icon" => "https://avatars1.githubusercontent.com/u/184170?v=3&s=24" ], "CSS Minification Code" => [ "author" => "Jean", "author_url" => "http://www.catswhocode.com/", "thing_url" => "http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php" ], "Slightly modified version of Slimdown" => [ "author" => "Johnny Broadway", "author_url" => "https://github.com/jbroadway", "thing_url" => "https://gist.github.com/jbroadway/2836900", "icon" => "https://avatars2.githubusercontent.com/u/87886?v=3&s=24" ], "Insert tab characters into textareas" => [ "author" => "Unknown", "author_url" => "http://stackoverflow.com/q/6140632/1460422", "thing_url" => "https://jsfiddle.net/2wAzx/13/", ], "Default Favicon" => [ "author" => "bluefrog23", "author_url" => "https://openclipart.org/user-detail/bluefrog23/", "thing_url" => "https://openclipart.org/detail/19571/peppermint-candy-by-bluefrog23" ], "Bug Reports" => [ "author" => "nibreh", "author_url" => "https://github.com/nibreh/", "thing_url" => "", "icon" => "https://avatars2.githubusercontent.com/u/7314006?v=3&s=24" ], "PR #135: Fix repeated page names on sidebar" => [ "author" => "ikisler", "author_url" => "https://github.com/ikisler", "thing_url" => "https://github.com/sbrl/Pepperminty-Wiki/pull/135", "icon" => "https://avatars3.githubusercontent.com/u/12506147?v=3&s=24" ], "PR #136: Fix issue where bottom nav is cut off" => [ "author" => "ikisler", "author_url" => "https://github.com/ikisler", "thing_url" => "https://github.com/sbrl/Pepperminty-Wiki/pull/136", "icon" => "https://avatars3.githubusercontent.com/u/12506147?v=3&s=24" ], "PR #140: Edit Previewing" => [ "author" => "ikisler", "author_url" => "https://github.com/ikisler", "thing_url" => "https://github.com/sbrl/Pepperminty-Wiki/pull/140", "icon" => "https://avatars3.githubusercontent.com/u/12506147?v=3&s=24" ], "Issue #153: Authenticated DOS attack (XXD billion laughs attack)" => [ "author" => "ProDigySML", "author_url" => "https://github.com/ProDigySML", "thing_url" => "https://github.com/sbrl/Pepperminty-Wiki/issues/152", "icon" => "https://avatars3.githubusercontent.com/u/16996819?s=24&v=4" ] ]; //// Credits html renderer //// $credits_html = ""; /////////////////////////////// //// Module html renderer //// $modules_html = ""; foreach($modules as $module) { $modules_html .= " \n"; } $modules_html .= "
Name Version Author Description
" . $module["name"] . " " . $module["version"] . " " . $module["author"] . " " . $module["description"] . "
"; ////////////////////////////// $title = "Credits - $settings->sitename"; $content = "

$settings->sitename credits

$settings->sitename is powered by Pepperminty Wiki - an entire wiki packed inside a single file, which was built by Starbeamrainbowlabs, and can be found on GitHub (contributors will also be listed here in the future). Pepperminty Wiki is licensed under the Mozilla Public License 2.0 (simple version).

Main Credits

$credits_html

Site status

Site name:$settings->sitename ({$settings->admindisplaychar}Update, {$settings->admindisplaychar}Edit master settings, {$settings->admindisplaychar} Edit user table, Export as zip - Check for permission first)
Pepperminty Wiki version:$version
Number of pages:" . count(get_object_vars($pageindex)) . "
Number of modules:" . count($modules) . "

Installed Modules

$modules_html"; exit(page_renderer::render_main($title, $content)); }); } ]); ?>