[WIP] sudo script doesn’t work yet
All checks were successful
gitea/evoadmin-mail/pipeline/head This commit looks good
All checks were successful
gitea/evoadmin-mail/pipeline/head This commit looks good
This commit is contained in:
parent
145b406c48
commit
c7a83045fc
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
class Config {
|
||||
private static $name='Evoadmin Mail', $mail='root@localhost', $log_level='error', $ldap=array(), $quota_path='';
|
||||
private static $name='Evoadmin Mail', $mail='root@localhost', $log_level='error', $ldap=array(), $quota_path='', $evoexec=array();
|
||||
public static function load() {
|
||||
$file = getenv("EVOADMINMAIL_CONFIG_FILE") or $file = '../config/config.ini';
|
||||
$ini = parse_ini_file($file, true);
|
||||
|
@ -10,6 +10,7 @@ class Config {
|
|||
self::$log_level = $ini['global']['log_level'];
|
||||
self::$ldap = $ini['ldap'];
|
||||
self::$quota_path = $ini['quota']['path'];
|
||||
self::$evoexec = $ini['evoexec'];
|
||||
}
|
||||
|
||||
public static function getName() {
|
||||
|
|
|
@ -149,7 +149,7 @@ class FormController {
|
|||
private static function delAccount() {
|
||||
PageController::$alerts[] = array('type' => 1, 'message' => 'Suppression du compte '.self::$form['uid'].'...');
|
||||
try {
|
||||
self::$domain->delAccount(self::$form['uid'],self::$form['cn']);
|
||||
self::$domain->delAccount(self::$form['uid'],self::$form['domain']);
|
||||
PageController::$alerts[] = array('type' => 0, 'message' => "Suppression effectuée."));
|
||||
} catch (Exception $e) {
|
||||
PageController::$alerts[] = array('type' => 2, 'message' => $e->getMessage());
|
||||
|
|
Loading…
Reference in a new issue