/usr/share/php/kohana2/modules/smarty/controllers/smarty_demo.php is in libkohana2-modules-php 2.3.4-2.
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 | <?php defined('SYSPATH') OR die('No direct access allowed.');
class Smarty_Demo_Controller extends Controller
{
// Do not allow to run in production
const ALLOW_PRODUCTION = FALSE;
public function index()
{
$welcome = new View('demo');
$welcome->message = "Welcome to the Kohana!";
$welcome->render(TRUE);
}
}
|