Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2020-04-11 20:19:07 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2020-04-11 20:19:18 +0300
commita03a153ad5578bffcef450e83b1b7dc67568b4d8 (patch)
tree01b2c9be0dcf02d10c859ec0c50e9c09748caa9f /page-ionossubmit.php
parent84eddbc014e0c464d95370143e59fb2bfc0952b6 (diff)
minimum of 5, allow for more than 200
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-ionossubmit.php')
-rw-r--r--page-ionossubmit.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/page-ionossubmit.php b/page-ionossubmit.php
index 45acef81..a478a2d5 100644
--- a/page-ionossubmit.php
+++ b/page-ionossubmit.php
@@ -208,6 +208,7 @@ if(isset($_POST['email'])) {
error_log("JS ($givenprice)calculated something different than PHP ($price) " . json_encode($_POST));
}
+
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
$string = str_replace($bad,"",$string);
@@ -215,6 +216,10 @@ if(isset($_POST['email'])) {
}
if($error_message === '') {
+ if($users == "201") {
+ $givenprice = "requesting quote";
+ $users = "more than 200, details below";
+ }
// the app review mailing list address
$email_subject = "IONOS_Viakom_Order_form from " . clean_string($organization);
@@ -248,8 +253,9 @@ if(isset($_POST['email'])) {
'Cc: ' . $email_from . "\r\n" .
'Content-Type: text/plain; charset=UTF-8';
// Send the email
- $recipients = ['orders'];
-// $recipients = ['jos']; // for testing
+// $recipients = ['orders'];
+ $recipients = ['sales'];
+ $recipients = ['jos']; // for testing
$successfullySend = true;
foreach ($recipients as $recipient) {
$successfullySend &= mail($recipient . '@nextcloud.com', $email_subject, $email_message, $headers);