1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Add some extra vetting

This commit is contained in:
e107steved
2007-04-14 09:30:39 +00:00
parent a08cdf4270
commit 3a6c5db037

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $
| $Revision: 1.3 $ | $Revision: 1.4 $
| $Date: 2006-12-07 16:49:28 $ | $Date: 2007-04-14 09:30:39 $
| $Author: sweetas $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -33,7 +33,7 @@ if (!getperms("W")) {
include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_users.php"); include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_users.php");
require_once(e_HANDLER."userclass_class.php"); require_once(e_HANDLER."userclass_class.php");
if (isset($_POST['testemail'])) { if (isset($_POST['testemail']) && getperms("0")) {
if(trim($_POST['testaddress']) == ""){ if(trim($_POST['testaddress']) == ""){
$message = MAILAN_19; $message = MAILAN_19;
}else{ }else{
@@ -246,9 +246,9 @@ if (isset($_POST['submit'])) {
//. Update Preferences. //. Update Preferences.
if (isset($_POST['updateprefs'])) { if (isset($_POST['updateprefs']) && getperms("0")) {
$pref['mailer'] = $_POST['mailer']; $pref['mailer'] = $_POST['mailer'];
$pref['sendmail'] = $_POST['sendmail']; if (strpos($_POST['sendmail'],'sendmail') !== FALSE) $pref['sendmail'] = $_POST['sendmail'];
$pref['smtp_server'] = $tp->toDB($_POST['smtp_server']); $pref['smtp_server'] = $tp->toDB($_POST['smtp_server']);
$pref['smtp_username'] = $tp->toDB($_POST['smtp_username']); $pref['smtp_username'] = $tp->toDB($_POST['smtp_username']);
$pref['smtp_password'] = $tp->toDB($_POST['smtp_password']); $pref['smtp_password'] = $tp->toDB($_POST['smtp_password']);
@@ -276,7 +276,7 @@ if (isset($message)) {
// ----------------- Actions -----------------------------------------------> // ----------------- Actions ----------------------------------------------->
if(e_QUERY == "prefs"){ if((e_QUERY == "prefs") && getperms("0")){
show_prefs(); show_prefs();
} }