Skip to content

Commit a46fd60

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents adcbfed + 40b3dd8 commit a46fd60

File tree

12 files changed

+21
-12
lines changed

12 files changed

+21
-12
lines changed

install/dist/conf/ubuntu1604.conf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
$conf['jailkit']['config_dir'] = '/etc/jailkit';
188188
$conf['jailkit']['jk_init'] = 'jk_init.ini';
189189
$conf['jailkit']['jk_chrootsh'] = 'jk_chrootsh.ini';
190-
$conf['jailkit']['jailkit_chroot_app_programs'] = '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico /usr/bin/mysql /usr/bin/mysqldump /usr/bin/git /usr/bin/git-receive-pack /usr/bin/git-upload-pack /usr/bin/unzip /usr/bin/zip /bin/tar /bin/rm /usr/bin/patch';
190+
$conf['jailkit']['jailkit_chroot_app_programs'] = '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico /usr/bin/mysql /usr/bin/mysqldump /usr/bin/git /usr/bin/git-receive-pack /usr/bin/git-upload-pack /usr/bin/unzip /usr/bin/zip /bin/tar /bin/rm /usr/bin/patch /etc/localtime';
191191
$conf['jailkit']['jailkit_chroot_cron_programs'] = '/usr/bin/php /usr/bin/perl /usr/share/perl /usr/share/php';
192192

193193
//* Squid

install/lib/install.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ function ini_to_array($ini) {
663663
$section = strtolower($matches[1]);
664664
} elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) {
665665
$item = trim($matches[1]);
666+
if(!isset($config[$section])) $config[$section] = array();
666667
$config[$section][$item] = trim($matches[2]);
667668
}
668669
}

install/lib/mysql.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*/
2929

30-
class db extends mysqli
30+
class db
3131
{
3232
/**#@+
3333
* @access private

interface/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*/
2929

30-
class db extends mysqli
31-
{
30+
class db {
3231
/**#@+
3332
* @access private
3433
*/

interface/web/client/client_edit.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ function onAfterInsert() {
348348
$sql = "SELECT * FROM client_message_template WHERE template_type = 'welcome' AND sys_groupid = ?";
349349
$email_template = $app->db->queryOneRecord($sql, $client_group_id);
350350
$client = $app->tform->getDataRecord($this->id);
351-
352-
if(is_array($email_template) && $client['email'] != '') {
351+
if(is_array($email_template) && $email_template['subject'] != '' && $email_template['message'] != '' && $client['email'] != '') {
353352
//* Parse client details into message
354353
$message = $email_template['message'];
355354
$subject = $email_template['subject'];

interface/web/client/form/message_template.tform.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
'subject' => array (
7979
'datatype' => 'VARCHAR',
8080
'formtype' => 'TEXT',
81+
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
82+
'errmsg'=> 'subject_error_empty'),
83+
),
8184
'default' => '',
8285
'value' => '',
8386
'separator' => '',
@@ -89,6 +92,9 @@
8992
'message' => array (
9093
'datatype' => 'TEXT',
9194
'formtype' => 'TEXTAREA',
95+
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
96+
'errmsg'=> 'message_error_empty'),
97+
),
9298
'default' => '',
9399
'value' => '',
94100
'separator' => '',

interface/web/client/lib/lang/de_client_message_template.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ $wb['Settings'] = 'Einstellung';
88
$wb['variables_txt'] = 'Variable';
99
$wb['variables_description_txt'] = '(Die Benutzername und Passwort Variable können nur in Willkommensnachrichten verwendet werden.)';
1010
$wb['duplicate_welcome_error'] = 'Es kann nur eine Standard Willkommensnachrichten Vorlage geben. Bitte bearbeiten Sie die bestehende Vorlage anstatt eine neue hinzuzufügen.';
11+
$wb['subject_error_empty'] = 'Betreff ist leer';
12+
$wb['message_error_empty'] = 'Nachricht ist leer';
1113
?>

interface/web/client/lib/lang/en_client_message_template.lng

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ $wb['Settings'] = 'Setting';
88
$wb['variables_txt'] = 'Variables';
99
$wb['variables_description_txt'] = '(The username and password variables are only available in welcome emails.)';
1010
$wb['duplicate_welcome_error'] = 'There can be only one default welcome email template. Please edit the existing template instead of adding a new one.';
11-
?>
11+
$wb['subject_error_empty'] = 'Subject is empty';
12+
$wb['message_error_empty'] = 'Message is empty';
13+
?>

interface/web/dashboard/dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
if(isset($_GET['hide'])) {
3838
if($_GET['hide'] == 'donate') {
3939
$timeout = time()+31536000;
40-
$tmp = $app->db->queryOneRecord("SELECT value FROM sys_config WHERE group = 'interface' AND name = 'hide_donation_dashlet'");
40+
$tmp = $app->db->queryOneRecord("SELECT `value` FROM `sys_config` WHERE `group` = 'interface' AND `name` = 'hide_donation_dashlet'");
4141
if(is_array($tmp)) {
42-
$app->db->query("UPDATE sys_config SET value = ? WHERE group = 'interface' AND name = 'hide_donation_dashlet')",$timeout);
42+
$app->db->query("UPDATE `sys_config` SET `value` = ? WHERE `group` = 'interface' AND `name` = 'hide_donation_dashlet'",$timeout);
4343
} else {
4444
$app->db->query("INSERT INTO `sys_config` (`group`,`name`,`value`) VALUES ('interface','hide_donation_dashlet',?)",$timeout);
4545
}

interface/web/dns/templates/dns_dmarc_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
147147
<div class="form-group">
148148
<label class="col-sm-2 control-label">{tmpl_var name='active_txt'}</label>
149149
<div class="col-sm-3">
150-
<input type="checkbox" value="1" id="active" name="active" {tmpl_var name='active'} />
150+
{tmpl_var name='active'}
151151
</div>
152152
</div>
153153

0 commit comments

Comments
 (0)