/** * Should editing of sendmail path * @static * @return bool */ public static function allowSendmailPathEdit() { $allow = false; $sysConf = new sysConf(); /* Allow editing if from localhost or we have allowed editing from outside localhost */ if ($sysConf->allowSendmailPathEdit() && (CommonFunctions::isRequestFromLocalhost() || !$sysConf->sendmailPathEditOnlyFromLocalHost())) { $allow = true; } return $allow; }