proof of concept: include serendipity_editor.js from a serendipity_editor.js.tpl out of the template-directory. Breaks comment-page in backend for templates other than 2k11
This commit is contained in:
@@ -400,6 +400,9 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
||||
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
||||
} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
|
||||
$serendipity['view'] = 'plugin';
|
||||
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
||||
|
||||
#echo $serendipity["handler"]["test.js"];
|
||||
serendipity_plugin_api::hook_event('external_plugin', $matches[2]);
|
||||
if (!defined('NO_EXIT')) {
|
||||
exit;
|
||||
@@ -599,6 +602,8 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
||||
$serendipity['head_subtitle'] = $serendipity['blogTitle'];
|
||||
$serendipity['GET']['action'] = 'comments';
|
||||
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
||||
|
||||
|
||||
} else if (preg_match('@/(index(\.php|\.html)?)|'. preg_quote($serendipity['indexFile']) .'@', $uri) ||
|
||||
preg_match('@^/' . preg_quote(trim($serendipity['serendipityHTTPPath'], '/')) . '/?(\?.*)?$@', $uri)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user