/usr/share/horde/ansel/faces/face.php is in php-horde-ansel 3.0.5+debian0-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 | <?php
/**
* Shows all images that the supplied, named face appears on.
*
* TODO: Maybe incorporate this into some kind of generic "result" view?
* At least, we need to rename this to something other that image.php to
* reflect what it's used for.
*
* Copyright 2008-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Duck <duck@obala.net>
*/
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');
$faces = $GLOBALS['injector']->getInstance('Ansel_Faces');
$face_id = Horde_Util::getFormData('face');
try {
$face = $faces->getFaceById($face_id);
} catch (Ansel_Exception $e) {
$notification->push($face->getMessage());
Horde::url('faces/index.php')->redirect();
exit;
}
$facename = htmlspecialchars($face['face_name']);
$page_output->header(array(
'title' => _("Face") . ' :: ' . $face['face_name']
));
$notification->notify(array('listeners' => 'status'));
require_once ANSEL_TEMPLATES . '/faces/face.inc';
$page_output->footer();
|