Fix to using most recent development translation set on development demo.
[openemr.git] / gacl / admin / acl_test.php
bloba0622869b337eb85aa411b70383ae937565312a3
1 <?php
2 /*
3 meinhard_jahn@web.de, 20041102: link to acl_test2.php and acl_test3.php
4 */
5 /*
6 if (!empty($_GET['debug'])) {
7 $debug = $_GET['debug'];
9 */
10 //First make sure user has access
11 include_once("../../interface/globals.php");
12 include_once("$srcdir/acl.inc");
13 //ensure user has proper access
14 if (!acl_check('admin', 'acl')) {
15 echo xl('ACL Administration Not Authorized');
16 exit;
18 //ensure php is installed
19 if (!isset($phpgacl_location)) {
20 echo xl('php-GACL access controls are turned off');
21 exit;
24 @set_time_limit(600);
26 require_once('../profiler.inc');
27 $profiler = new Profiler(true,true);
29 require_once("gacl_admin.inc.php");
31 $smarty->assign("return_page", $_SERVER['PHP_SELF'] );
33 $smarty->assign('current','acl_test');
34 $smarty->assign('page_title', 'ACL Test');
36 $smarty->assign("phpgacl_version", $gacl_api->get_version() );
37 $smarty->assign("phpgacl_schema_version", $gacl_api->get_schema_version() );
39 $smarty->display('phpgacl/acl_test.tpl');