/usr/share/phpgacl/admin/gacl_admin.inc.php is in phpgacl 3.3.7-7.3.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | <?php
/*
* phpGACL - Generic Access Control List
* Copyright (C) 2002 Mike Benoit
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* For questions, help, comments, discussion, etc., please join the
* phpGACL mailing list. http://sourceforge.net/mail/?group_id=57103
*
* You may contact the author of phpGACL by e-mail at:
* ipso@snappymail.ca
*
* The latest version of phpGACL can be obtained from:
* http://phpgacl.sourceforge.net/
*
*/
require_once(dirname(__FILE__).'/../gacl.class.php');
require_once(dirname(__FILE__).'/../gacl_api.class.php');
require_once(dirname(__FILE__).'/gacl_admin_api.class.php');
// phpGACL Configuration file.
if ( !isset($config_file) ) {
# $config_file = '../gacl.ini.php';
$config_file = dirname(__FILE__).'/../gacl.ini.php';
}
//Values supplied in $gacl_options array overwrite those in the config file.
if ( file_exists($config_file) ) {
$config = parse_ini_file($config_file);
if ( is_array($config) ) {
if ( isset($gacl_options) ) {
$gacl_options = array_merge($config, $gacl_options);
} else {
$gacl_options = $config;
}
}
unset($config);
}
$gacl_api = new gacl_admin_api($gacl_options);
$gacl = &$gacl_api;
$db = &$gacl->db;
//Setup the Smarty Class.
require_once($gacl_options['smarty_dir'].'/Smarty.class.php');
$smarty = new Smarty;
$smarty->compile_check = TRUE;
$smarty->template_dir = $gacl_options['smarty_template_dir'];
$smarty->compile_dir = $gacl_options['smarty_compile_dir'];
/*
* Email address used in setup.php, please do not change.
*/
$author_email = 'ipso@snappymail.ca';
/*
* Don't need to show notices, some of them are pretty lame and people get overly worried when they see them.
* Mean while I will try to fix most of these. ;) Please submit patches if you find any I may have missed.
*/
error_reporting (E_ALL ^ E_NOTICE);
?>
|