Author: ralfbecker
New Revision: 55634
URL: http://svn.stylite.de/viewvc/egroupware?rev=55634&view=rev
Log:
some more setup fix, 16.1 updates now 1.8, 14.x and installs itself new
Modified:
trunk/setup/config.php
trunk/setup/inc/class.setup.inc.php
trunk/setup/inc/class.setup_cmd_config.inc.php
— trunk/setup/config.php (original)
+++ trunk/setup/config.php Tue Apr 5 18:51:43 2016
@@ -87,7 +87,7 @@
{
$GLOBALS[‘egw_setup’]->db->transaction_commit();
// unset cached config, as this is the primary source for configuration now
- Api\Cache::unsetInstance(‘config’, ‘configs’);
— trunk/setup/inc/class.setup.inc.php (original)
+++ trunk/setup/inc/class.setup.inc.php Tue Apr 5 18:51:43 2016
@@ -31,13 +31,6 @@
var $cookie_domain;
/**
@@ -249,7 +242,7 @@
$ok = @session_start(); // suppress notice if session already started or warning in CLI
// need to decrypt session, in case session encryption is switched on in header.inc.php
-
$ret = Api\Auth::compare_password($pw, $hash, 'md5');
}
//error_log(__METHOD__."('$user', '$pw', '$conf_user', '$hash') returning ".array2string($ret));
return $ret;
@@ -709,7 +702,7 @@
}
}
// store default/forced preferences, if any found
@@ -735,7 +728,7 @@
* @param $location hook location - required
* @param $appname application name - optional
*/
- function hook($location, $appname=’’)
- static function hook($location, $appname=’’)
{
return Api\Hooks::single($location,$appname,True,True);
}
@@ -940,7 +933,7 @@
return false;
}
if (!isset($GLOBALS[‘egw’]->accounts)) $GLOBALS[‘egw’]->accounts = $this->accounts;
@@ -1002,7 +995,7 @@
elseif($passwd && $passwd != ‘unchanged’)
{
try {
@@ -1016,19 +1009,19 @@
return false;
}
}
— trunk/setup/inc/class.setup_cmd_config.inc.php (original)
+++ trunk/setup/inc/class.setup_cmd_config.inc.php Tue Apr 5 18:51:43 2016
@@ -5,10 +5,12 @@
+use EGroupware\Api;
/**
-
setup command: create / change eGW configuration
@@ -99,7 +101,7 @@
if ($save_mail_account) $this->_save_mail_account($values);
// flush instance cache, so above config get read from database not cache
@@ -286,7 +288,7 @@
{
if (!isset(self::$options[$arg]))
{
-
throw new Api\Exception\WrongUserinput(lang("Unknown option '%1' !!!",$arg),90);
}
$options = is_array(self::$options[$arg]) ? explode(',',array_shift($args)) : array(array_shift($args));
@@ -330,7 +332,7 @@
if (isset($name['allowed']) && !in_array($value,$name['allowed']))
{
-
throw new egw_exception_wrong_userinput(lang("'%1' is not allowed as %2. arguments of option %3 !!!",$value,1+$n,$arg)." ($name[name])",91);
-
throw new Api\Exception\WrongUserinput(lang("'%1' is not allowed as %2. arguments of option %3 !!!",$value,1+$n,$arg)." ($name[name])",91);
}
$name = $name['name'];
}
@@ -346,15 +348,15 @@
*/
function _save_mail_account(array $data)
{
-
case 'no': $data[$name] = emailadmin_account::SSL_NONE; break;
-
case 'starttls': $data[$name] = emailadmin_account::SSL_STARTTLS; break;
-
case 'ssl': $data[$name] = emailadmin_account::SSL_SSL; break;
-
case 'tls': $data[$name] = emailadmin_account::SSL_TLS; break;
-
case 'no': $data[$name] = Api\Mail\Account::SSL_NONE; break;
-
case 'starttls': $data[$name] = Api\Mail\Account::SSL_STARTTLS; break;
-
case 'ssl': $data[$name] = Api\Mail\Account::SSL_SSL; break;
-
case 'tls': $data[$name] = Api\Mail\Account::SSL_TLS; break;
}
}
// convert 'yes', 'no' to boolean
@@ -375,7 +377,7 @@
$data[‘acc_name’] = ‘Created by setup’;
$data[‘account_id’] = 0; // 0 = valid for all users
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs