1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01: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).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $
| $Revision: 1.3 $
| $Date: 2006-12-07 16:49:28 $
| $Author: sweetas $
| $Revision: 1.4 $
| $Date: 2007-04-14 09:30:39 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -33,7 +33,7 @@ if (!getperms("W")) {
include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_users.php");
require_once(e_HANDLER."userclass_class.php");
if (isset($_POST['testemail'])) {
if (isset($_POST['testemail']) && getperms("0")) {
if(trim($_POST['testaddress']) == ""){
$message = MAILAN_19;
}else{
@ -246,9 +246,9 @@ if (isset($_POST['submit'])) {
//. Update Preferences.
if (isset($_POST['updateprefs'])) {
if (isset($_POST['updateprefs']) && getperms("0")) {
$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_username'] = $tp->toDB($_POST['smtp_username']);
$pref['smtp_password'] = $tp->toDB($_POST['smtp_password']);
@ -276,7 +276,7 @@ if (isset($message)) {
// ----------------- Actions ----------------------------------------------->
if(e_QUERY == "prefs"){
if((e_QUERY == "prefs") && getperms("0")){
show_prefs();
}