-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: select multiple filters on the dashboard
feat: add multi email recipients feat: add option for also showing the original price on the dashboard feat: open edit form after cloning subscription fix: typo on export subscriptions to csv chore: removed version line from docker-compose file
- Loading branch information
Showing
34 changed files
with
364 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
$email['smtpUsername'] = $row["smtp_username"]; | ||
$email['smtpPassword'] = $row["smtp_password"]; | ||
$email['fromEmail'] = $row["from_email"] ? $row["from_email"] : "[email protected]"; | ||
$email['otherEmail'] = $row["other_email"]; | ||
$email['otherEmails'] = $row["other_emails"]; | ||
} | ||
|
||
// Check if Discord notifications are enabled and get the settings | ||
|
@@ -217,8 +217,15 @@ | |
$mail->setFrom($email['fromEmail'], 'Wallos App'); | ||
$mail->addAddress($emailaddress, $name); | ||
|
||
if (!empty($email['otherEmail'])) { | ||
$list = explode(';', $email['otherEmail']); | ||
if (!empty($email['otherEmails'])) { | ||
$list = explode(';', $email['otherEmails']); | ||
|
||
// Avoid duplicate emails | ||
$list = array_unique($list); | ||
$list = array_filter($list, function ($value) use ($emailaddress) { | ||
return $value !== $emailaddress; | ||
}); | ||
|
||
foreach($list as $value) { | ||
$mail->addCC(trim($value)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
$email['smtpUsername'] = $row["smtp_username"]; | ||
$email['smtpPassword'] = $row["smtp_password"]; | ||
$email['fromEmail'] = $row["from_email"] ? $row["from_email"] : "[email protected]"; | ||
$email['otherEmail'] = $row["other_email"]; | ||
$email['otherEmails'] = $row["other_emails"]; | ||
} | ||
|
||
// Check if Discord notifications are enabled and get the settings | ||
|
@@ -261,8 +261,15 @@ | |
$mail->setFrom($email['fromEmail'], 'Wallos App'); | ||
$mail->addAddress($emailaddress, $name); | ||
|
||
if (!empty($email['otherEmail'])) { | ||
$list = explode(';', $email['otherEmail']); | ||
if (!empty($email['otherEmails'])) { | ||
$list = explode(';', $email['otherEmails']); | ||
|
||
// Avoid duplicate emails | ||
$list = array_unique($list); | ||
$list = array_filter($list, function ($value) use ($emailaddress) { | ||
return $value !== $emailaddress; | ||
}); | ||
|
||
foreach($list as $value) { | ||
$mail->addCC(trim($value)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
require_once '../../includes/connect_endpoint.php'; | ||
|
||
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) { | ||
die(json_encode([ | ||
"success" => false, | ||
"message" => translate('session_expired', $i18n) | ||
])); | ||
} | ||
|
||
if ($_SERVER["REQUEST_METHOD"] === "POST") { | ||
$postData = file_get_contents("php://input"); | ||
$data = json_decode($postData, true); | ||
|
||
$show_original_price = $data['value']; | ||
|
||
$stmt = $db->prepare('UPDATE settings SET show_original_price = :show_original_price WHERE user_id = :userId'); | ||
$stmt->bindParam(':show_original_price', $show_original_price, SQLITE3_INTEGER); | ||
$stmt->bindParam(':userId', $userId, SQLITE3_INTEGER); | ||
|
||
if ($stmt->execute()) { | ||
die(json_encode([ | ||
"success" => true, | ||
"message" => translate("success", $i18n) | ||
])); | ||
} else { | ||
die(json_encode([ | ||
"success" => false, | ||
"message" => translate("error", $i18n) | ||
])); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,8 @@ | |
"smtp_username" => "SMTP Username", | ||
"smtp_password" => "SMTP Password", | ||
"from_email" => "From email (Optional)", | ||
"other_email" => "Other email (Use ; to separate)", | ||
"send_to_other_emails" => "Also send notifications to the following email addresses (use ; to separate them):", | ||
"other_emails_placeholder" => "[email protected];[email protected]", | ||
"smtp_info" => "SMTP Password is transmitted and stored in plaintext. For security, please create an account just for this.", | ||
"telegram" => "Telegram", | ||
"telegram_bot_token" => "Telegram Bot Token", | ||
|
@@ -197,6 +198,8 @@ | |
"save_custom_css" => "Save Custom CSS", | ||
"calculate_monthly_price" => "Calculate and show monthly price for all subscriptions", | ||
"convert_prices" => "Always convert and show prices on my main currency (slower)", | ||
"show_original_price" => "Also show original price when conversions or calculations are made", | ||
"disabled_subscriptions" => "Disabled Subscriptions", | ||
"hide_disabled_subscriptions" => "Hide disabled subscriptions", | ||
"show_disabled_subscriptions_at_the_bottom" => "Show disabled subscriptions at the bottom", | ||
"experimental_settings" => "Experimental Settings", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.