Subversion Repositories ALCASAR

Rev

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

Rev 3028 Rev 3038
Line 124... Line 124...
124
		if(isset($_POST['mail_mdp']))		{ $mail_mdp = $_POST['mail_mdp']; }
124
		if(isset($_POST['mail_mdp']))		{ $mail_mdp = $_POST['mail_mdp']; }
125
		if(isset($_POST['mail_mdp2']))		{ $mail_mdp2 = $_POST['mail_mdp2']; }
125
		if(isset($_POST['mail_mdp2']))		{ $mail_mdp2 = $_POST['mail_mdp2']; }
126
		if ($admin_enable == "1") { $mail_admin = $_POST['mail_admin']; }
126
		if ($admin_enable == "1") { $mail_admin = $_POST['mail_admin']; }
127
		switch ($mail_type) {
127
		switch ($mail_type) {
128
			case '1': // Act as a SMTP server
128
			case '1': // Act as a SMTP server
129
				$mail_smtp_port = 25;
129
				$mail_smtp_port = 587;
130
				if ($admin_enable == "1"){
130
				if ($admin_enable == "1"){
131
					exec("sudo /usr/local/bin/alcasar-mail-install.sh -1 -a $mail_admin -w $mail_whitelist");
131
					exec("sudo /usr/local/bin/alcasar-mail-install.sh -1 -a $mail_admin -w $mail_whitelist");
132
				}
132
				}
133
				else {
133
				else {
134
					exec("sudo /usr/local/bin/alcasar-mail-install.sh -1 -w $mail_whitelist");
134
					exec("sudo /usr/local/bin/alcasar-mail-install.sh -1 -w $mail_whitelist");
Line 301... Line 301...
301
						<dt>
301
						<dt>
302
							<label for="mail_type"><?= $l_mail_choice ?></label><br>
302
							<label for="mail_type"><?= $l_mail_choice ?></label><br>
303
						</dt>
303
						</dt>
304
						<dd>
304
						<dd>
305
							<select id="mail_type" name="mail_type" onchange="onMailStatusChange();">
305
							<select id="mail_type" name="mail_type" onchange="onMailStatusChange();">
306
								<option value="1"<?= ($mail_type == '1') ? ' selected="selected"' : '' ?>><?= $l_use_internal_server ?></option>
306
								<option value="1"<?= ($mail_type == '1') ? ' selected="selected"' : '' ?> disabled><?= $l_use_internal_server ?></option>
307
								<option value="2"<?= ($mail_type == '2') ? ' selected="selected"' : '' ?>><?= $l_use_external_server ?></option>
307
								<option value="2"<?= ($mail_type == '2') ? ' selected="selected"' : '' ?> disabled><?= $l_use_external_server ?></option>
308
								<option value="3"<?= ($mail_type == '3') ? ' selected="selected"' : '' ?>><?= $l_use_email_address ?></option>
308
								<option value="3"<?= ($mail_type == '3') ? ' selected="selected"' : '' ?>><?= $l_use_email_address ?></option>
309
							</select>
309
							</select>
310
						</dd>
310
						</dd>
311
					</dl>
311
					</dl>
312
					<dl>
312
					<dl>