Subversion Repositories ALCASAR

Rev

Rev 2450 | Rev 2528 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2450 Rev 2488
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: menu.php 2450 2017-12-05 21:53:42Z tom.houdayer $
2
# $Id: menu.php 2488 2018-02-25 14:53:54Z lucas.echard $
3
 
3
 
4
/****************************************************************
4
/****************************************************************
5
*			GLOBAL FILE PATHS			*
5
*			GLOBAL FILE PATHS			*
6
*****************************************************************/
6
*****************************************************************/
7
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
7
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
Line 35... Line 35...
35
	}
35
	}
36
}
36
}
37
fclose($file_conf);
37
fclose($file_conf);
38
 
38
 
39
// Retrieve the user's profil
39
// Retrieve the user's profil
40
$user_htdigest = $_SERVER['PHP_AUTH_USER'];
40
$user_htdigest = $_SERVER['REMOTE_USER'];
41
exec('sudo alcasar-profil.sh --list | cut -d":" -f2', $output);
41
exec('sudo alcasar-profil.sh --list | cut -d":" -f2', $output);
42
$admin_members   = explode(' ', ltrim($output[0], " \t"));
42
$admin_members   = explode(' ', ltrim($output[0], " \t"));
43
$backup_members  = explode(' ', ltrim($output[1], " \t"));
43
$backup_members  = explode(' ', ltrim($output[1], " \t"));
44
$manager_members = explode(' ', ltrim($output[2], " \t"));
44
$manager_members = explode(' ', ltrim($output[2], " \t"));
45
 
45