From: Christian Weiske Date: Tue, 18 Sep 2012 22:10:19 +0000 (+0200) Subject: Merge remote-tracking branch 'jnovack/markdown' X-Git-Tag: v0.3.0~41 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/027c801a4dc51db673bcbfcfbd396845f244e357?hp=-c Merge remote-tracking branch 'jnovack/markdown' Conflicts: ChangeLog --- 027c801a4dc51db673bcbfcfbd396845f244e357 diff --combined ChangeLog index 4a9cfc5,8557be7..1dc1447 --- a/ChangeLog +++ b/ChangeLog @@@ -1,7 -1,7 +1,11 @@@ + 2012-09-18 Justin J. Novack + + * Add Markdown as a known file-type. + +2012-09-17 Justin J. Novack + + * Add OpenID authentication + 2012-09-16 Christian Weiske * Implement request #12: DOAP documents for all pastes diff --combined README.rst index 2ad6ff0,4a157bf..d41d89b --- a/README.rst +++ b/README.rst @@@ -84,6 -84,9 +84,9 @@@ phorkie stands on the shoulders of gian $ pear channel-discover zustellzentrum.cweiske.de $ pear install zz/mime_type_plaindetect-alpha + $ pear channel-discover pear.michelf.ca + $ pear install michelf/Markdown + Note that this version of GeSHi is a bit outdated, but it's the fastest way to install it. @@@ -192,11 -195,6 +195,11 @@@ URL List all pastes, with optional page ``/new`` Shows form for new paste +``/login`` + Login page for protecting site +``/user`` + Edit logged-in user information + Internal directory layout ========================= @@@ -235,7 -233,4 +238,7 @@@ If you use nginx, place the following l rewrite ^/search$ /search.php; rewrite ^/search/([0-9]+)$ /search.php?page=$1; + + rewrite ^/login$ /login.php; + rewrite ^/user$ /user.php; } diff --combined data/config.default.php index a087767,3fc48f6..abcb43e --- a/data/config.default.php +++ b/data/config.default.php @@@ -12,15 -12,6 +12,15 @@@ $GLOBALS['phorkie']['cfg'] = array 'geshi' => 'MediaWiki/geshi/geshi/geshi.php', 'index' => 'new'//"new" or "list" ); +$GLOBALS['phorkie']['auth'] = array( + // 0 = public, no authentication, 1 = protect adds/edits/deletes, + // 2 = require authentication + 'securityLevel' => 0, + 'listedUsersOnly' => false, + 'users' => array(), // Array of OpenIDs that may login + 'anonymousName' => 'Anonymous', // Email for non-authenticated commits + 'anonymousEmail' => 'anonymous@phorkie', // Email for non-authenticated commits +); $GLOBALS['phorkie']['tools'] = array( '\\phorkie\\Tool_Xmllint' => true, '\\phorkie\\Tool_PHPlint' => true, @@@ -66,6 -57,11 +66,11 @@@ $GLOBALS['phorkie']['languages'] = arra 'mime' => 'application/javascript', 'geshi' => 'javascript' ), + 'md' => array( + 'title' => 'Markdown', + 'mime' => 'text/x-markdown', + 'renderer' => '\\phorkie\\Renderer_Markdown' + ), 'pl' => array( 'title' => 'Perl', 'mime' => 'application/x-perl',