/usr/share/php/kohana3.2/modules/userguide/init.php is in libkohana3.2-mod-userguide-php 3.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | <?php defined('SYSPATH') or die('No direct script access.');
// Static file serving (CSS, JS, images)
Route::set('docs/media', 'guide/media(/<file>)', array('file' => '.+'))
->defaults(array(
'controller' => 'userguide',
'action' => 'media',
'file' => NULL,
));
// API Browser, if enabled
if (Kohana::$config->load('userguide.api_browser') === TRUE)
{
Route::set('docs/api', 'guide/api(/<class>)', array('class' => '[a-zA-Z0-9_]+'))
->defaults(array(
'controller' => 'userguide',
'action' => 'api',
'class' => NULL,
));
}
// User guide pages, in modules
Route::set('docs/guide', 'guide(/<module>(/<page>))', array(
'page' => '.+',
))
->defaults(array(
'controller' => 'userguide',
'action' => 'docs',
'module' => '',
));
// Simple autoloader used to encourage PHPUnit to behave itself.
class Markdown_Autoloader {
public static function autoload($class)
{
if ($class == 'Markdown_Parser' OR $class == 'MarkdownExtra_Parser')
{
include_once Kohana::find_file('vendor', 'markdown/markdown');
}
}
}
// Register the autoloader
spl_autoload_register(array('Markdown_Autoloader', 'autoload'));
|