root/branches/dsss-smi/config.php

Revision 210, 0.7 kB (checked in by Gregor, 2 years ago)

Loads of changes, fairly well-functioning now.

Line 
1 <?PHP
2 // DSSS SMI configuration
3
4 $privileges_master = "gregor";
5
6 // try to get privileges from sources/privileges, if it exists
7 $privileges = array();
8 if (file_exists("sources/privileges")) {
9     // read it all in: each line is a user
10     $lines = file("sources/privileges");
11
12     // turn it into the privileges array
13     foreach ($lines as $line) {
14         if ($line == "") continue;
15         if (substr($line, 0, 1) == "#") continue;
16        
17         $elems = explode(" ", $line);
18         $privileges[$elems[0]] = array_slice($elems, 1);
19     }
20 } else {
21     $privileges[$privileges_master] = array("privileges");
22 }
23
24 $dsss_user = "dsss";
25 $dsss_home = "/home/dsss";
26
27 ?>
Note: See TracBrowser for help on using the browser.