Permalink
Browse files

Update third-party extensions

  • Loading branch information...
0bitus committed Jul 26, 2017
1 parent 94fe68a commit fe4323d93f04c32bf8661e8834660077c6b7c2b6
Showing 515 changed files with 67,896 additions and 54,221 deletions.
@@ -1 +1 @@
1.1.0
3
@@ -7,8 +7,8 @@
require_once('./config/mainconf.php');
require_once("./process/script_access.php");
require_once('./process/user_auth.php');
require_once($PATH_classes . "/vendor/autoload.php");
require_once($PATH_classes . "/class.KeyHandler.php");
require_once($PATH_classes . "/Smarty/libs/Smarty.class.php");
require_once($PATH_classes . "/class.Customize.php");
require_once($PATH_l10n . "/locallang.php");
@@ -28,55 +28,57 @@
$expDate;
$pass;
switch ($_POST["action"]) {
if (isset($_POST["action"])) {
switch ($_POST["action"]) {
case "edit":
$expire = isset($_POST["expire"]) ? (string) $_POST["expire"] : "";
if (empty($expire)) {
echo Helper::boxError("Invalid expire date given.");
}
if (date("Y/m/d", strtotime($sub["exp_time"])) != date("Y/m/d", strtotime($expire))) {
if ($subscription->set_expire($sID, $expire)) {
echo Helper::boxHighlight("Subscription #{$sID} successfully updated.");
} else {
echo Helper::boxError("<b>Subscription #{$sID} could not be updated:</b><br/>" . $subscription->error_msg);
case "edit":
$expire = isset($_POST["expire"]) ? (string) $_POST["expire"] : "";
if (empty($expire)) {
echo Helper::boxError("Invalid expire date given.");
}
}
$active = isset($_POST["active"]) ? (int) $_POST["active"] : 0;
if ($active != $sub["active"]) {
if ($subscription->toggle_subscription($sID)) {
echo Helper::boxHighlight("Subscription #{$sID} successfully updated.");
} else {
echo Helper::boxError("<b>Subscription #{$sID} could not be updated:</b><br/>" . $subscription->error_msg);
if (date("Y/m/d", strtotime($sub["exp_time"])) != date("Y/m/d", strtotime($expire))) {
if ($subscription->set_expire($sID, $expire)) {
echo Helper::boxHighlight("Subscription #{$sID} successfully updated.");
} else {
echo Helper::boxError("<b>Subscription #{$sID} could not be updated:</b><br/>" . $subscription->error_msg);
}
}
}
break;
case "delete":
if ($subscription->delete_subscription($sID)) {
$keyHandler = new KeyHandler();
$deletedKeys = $keyHandler->search_key_data("", "", "", $sID);
$error = FALSE;
foreach ($deletedKeys as $key) {
if (!$keyHandler->set_status($key["kID"], KeyHandler::STATUS_DELETED))
$error = TRUE;
$active = isset($_POST["active"]) ? (int) $_POST["active"] : 0;
if ($active != $sub["active"]) {
if ($subscription->toggle_subscription($sID)) {
echo Helper::boxHighlight("Subscription #{$sID} successfully updated.");
} else {
echo Helper::boxError("<b>Subscription #{$sID} could not be updated:</b><br/>" . $subscription->error_msg);
}
}
if ($error) {
echo Helper::boxError("<b>One or more effected keys could not be deleted:</b><br/>" . $keyHandler->error_msg);
break;
case "delete":
if ($subscription->delete_subscription($sID)) {
$keyHandler = new KeyHandler();
$deletedKeys = $keyHandler->search_key_data("", "", "", $sID);
$error = FALSE;
foreach ($deletedKeys as $key) {
if (!$keyHandler->set_status($key["kID"], KeyHandler::STATUS_DELETED))
$error = TRUE;
}
if ($error) {
echo Helper::boxError("<b>One or more effected keys could not be deleted:</b><br/>" . $keyHandler->error_msg);
} else {
echo Helper::boxHighlight("Subscription #{$sID} successfully deleted.");
}
} else {
echo Helper::boxHighlight("Subscription #{$sID} successfully deleted.");
echo Helper::boxError("<b>Subscription #{$sID} could not be deleted:</b><br/>" . $subscription->error_msg);
}
} else {
echo Helper::boxError("<b>Subscription #{$sID} could not be deleted:</b><br/>" . $subscription->error_msg);
}
break;
break;
break;
break;
default:
break;
default:
break;
}
}
$sub = $subscription->get_subscription($sID);

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit fe4323d

Please sign in to comment.