summaryrefslogtreecommitdiff
blob: 3e37615695c1c5688dd4fd32313bda09375cf26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

require_once($path . './phpgacl/gacl.class.php');
require_once($path . './phpgacl/gacl_api.class.php');
require_once($path . './phpgacl/admin/gacl_admin_api.class.php'); #Not necessary.

$gacl_options = array(
  'db_type' => 'mysql',
  'db_host' => $db_host,
  'db_user' => $db_username,
  'db_password' => $db_password,
  'db_name' => $db_name,
  'db_table_prefix' => 'gacl_',
  'caching' => 'FALSE',
  'smarty_dir' => preg_replace('/\/$/', '', $smarty_dir),
  'smarty_template_dir' => 'templates',
  'smarty_compile_dir' => 'templates_c'
);

$acl = new gacl_admin_api($gacl_options);  #can be gacl_api

?>