diff --git a/_sakura/changelog.json b/_sakura/changelog.json index b234a62..a988fb3 100644 --- a/_sakura/changelog.json +++ b/_sakura/changelog.json @@ -52,7 +52,9 @@ "20150825", "20150826", "20150828", - "20150829" + "20150829", + "20150830", + "20150831" ] @@ -2311,6 +2313,36 @@ "user": "Flashwave" } + ], + + "20150830": [ + + { + "type": "ADD", + "change": "Added donation tracker frontend.", + "user": "Flashwave" + } + + ], + + "20150831": [ + + { + "type": "UPD", + "change": "Changed main navigation to font awesome icons.", + "user": "Flashwave" + }, + { + "type": "FIX", + "change": "Fixed bug in settings panel with parent sections.", + "user": "Flashwave" + }, + { + "type": "UPD", + "change": "Updated twig libraries and switched to the unmodified Parsedown branch.", + "user": "Flashwave" + } + ] } diff --git a/_sakura/components/Payments.php b/_sakura/components/Payments.php index 325f442..ec19ea5 100644 --- a/_sakura/components/Payments.php +++ b/_sakura/components/Payments.php @@ -2,7 +2,7 @@ /* * Payment components (only slightly convoluted) */ - + namespace Sakura; use \PayPal\Api\Payer; diff --git a/_sakura/components/Users.php b/_sakura/components/Users.php index 08643e1..bb5bf44 100644 --- a/_sakura/components/Users.php +++ b/_sakura/components/Users.php @@ -1435,4 +1435,42 @@ class Users { } + // Get Premium tracker data + public static function getPremiumTrackerData() { + + // Create data array + $data = []; + + // Get database stuff + $table = Database::fetch('premium_log', true, null, ['id', true]); + + // Add raw table data to data array + $data['table'] = $table; + + // Create balance entry + $data['balance'] = 0.0; + + // Create users entry + $data['users'] = []; + + // Calculate the thing + foreach($table as $row) { + + // Calculate balance + $data['balance'] = $data['balance'] + $row['amount']; + + // Add userdata to table + if(!array_key_exists($row['uid'], $data['users'])) { + + $data['users'][$row['uid']] = new User($row['uid']); + + } + + } + + // Return the data + return $data; + + } + } diff --git a/_sakura/composer.json b/_sakura/composer.json index 8409f37..04c222c 100644 --- a/_sakura/composer.json +++ b/_sakura/composer.json @@ -3,9 +3,9 @@ "php": ">=5.4.0", "ext-curl": "*", "ext-json": "*", - "twig/twig": "~1.18", - "phpmailer/phpmailer": "~5.2", - "flashwave/parsedown": "~1.5", + "twig/twig": "*", + "phpmailer/phpmailer": "*", + "erusev/parsedown": "*", "paypal/rest-api-sdk-php": "*" } } diff --git a/_sakura/composer.lock b/_sakura/composer.lock index 946aa63..965ed6a 100644 --- a/_sakura/composer.lock +++ b/_sakura/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "becd1aabf8b14aea30aa9218aee65fdd", + "hash": "eece9a97b0a0328b534ad22d30aab9bf", "packages": [ { - "name": "flashwave/parsedown", - "version": "1.5.1", + "name": "erusev/parsedown", + "version": "1.5.4", "source": { "type": "git", - "url": "https://github.com/flashii/parsedown.git", - "reference": "9da19c1108c39df9b42adc42e39b8371070652d0" + "url": "https://github.com/erusev/parsedown.git", + "reference": "0e89e3714bda18973184d30646306bb0a482bd96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/flashii/parsedown/zipball/9da19c1108c39df9b42adc42e39b8371070652d0", - "reference": "9da19c1108c39df9b42adc42e39b8371070652d0", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/0e89e3714bda18973184d30646306bb0a482bd96", + "reference": "0e89e3714bda18973184d30646306bb0a482bd96", "shasum": "" }, "type": "library", @@ -26,7 +26,7 @@ "Parsedown": "" } }, - "notification-url": "http://packagist.org/downloads/", + "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -43,20 +43,20 @@ "markdown", "parser" ], - "time": "2015-01-24 13:01:47" + "time": "2015-08-03 09:24:05" }, { "name": "paypal/rest-api-sdk-php", - "version": "v1.5.0", + "version": "v1.5.1", "source": { "type": "git", "url": "https://github.com/paypal/PayPal-PHP-SDK.git", - "reference": "18e4eaaf319b48de2457abb7b2b1807cfe704c0a" + "reference": "70b03c51879fa3d2392d89052b96e92f6e6f6512" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/18e4eaaf319b48de2457abb7b2b1807cfe704c0a", - "reference": "18e4eaaf319b48de2457abb7b2b1807cfe704c0a", + "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/70b03c51879fa3d2392d89052b96e92f6e6f6512", + "reference": "70b03c51879fa3d2392d89052b96e92f6e6f6512", "shasum": "" }, "require": { @@ -91,7 +91,7 @@ "rest", "sdk" ], - "time": "2015-06-25 17:12:03" + "time": "2015-08-17 19:32:59" }, { "name": "phpmailer/phpmailer", @@ -150,25 +150,29 @@ }, { "name": "twig/twig", - "version": "v1.18.2", + "version": "v1.21.1", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "e8e6575abf6102af53ec283f7f14b89e304fa602" + "reference": "ca8d3aa90b6a01c82e07909fe815d6b443e75a23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/e8e6575abf6102af53ec283f7f14b89e304fa602", - "reference": "e8e6575abf6102af53ec283f7f14b89e304fa602", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/ca8d3aa90b6a01c82e07909fe815d6b443e75a23", + "reference": "ca8d3aa90b6a01c82e07909fe815d6b443e75a23", "shasum": "" }, "require": { "php": ">=5.2.7" }, + "require-dev": { + "symfony/debug": "~2.7", + "symfony/phpunit-bridge": "~2.7" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-master": "1.21-dev" } }, "autoload": { @@ -203,7 +207,7 @@ "keywords": [ "templating" ], - "time": "2015-06-06 23:31:24" + "time": "2015-08-26 08:58:31" } ], "packages-dev": [], diff --git a/_sakura/sakura.php b/_sakura/sakura.php index c583d12..d9042da 100644 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20150829'); +define('SAKURA_VERSION', '20150831'); define('SAKURA_VLABEL', 'Eminence'); define('SAKURA_COLOUR', '#6C3082'); define('SAKURA_STABLE', false); diff --git a/_sakura/templates/yuuno/global/header.tpl b/_sakura/templates/yuuno/global/header.tpl index 18bbd06..16a3f32 100644 --- a/_sakura/templates/yuuno/global/header.tpl +++ b/_sakura/templates/yuuno/global/header.tpl @@ -160,33 +160,33 @@
Create a new instance of Plan object
Fill up the basic information that is required for the plan
The possible values for such setters are mentioned in the setter method documentation.
diff --git a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/billing/UpdateBillingAgreement.html b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/billing/UpdateBillingAgreement.html
index ff42c07..b994665 100644
--- a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/billing/UpdateBillingAgreement.html
+++ b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/billing/UpdateBillingAgreement.html
@@ -5,8 +5,8 @@ API used: /v1/payments/billing-agreements/
Retrieving the Plan object from Create Plan Sample to demonstrate the List
Retrieving the Plan object from Create Plan Sample to demonstrate the List
This would send a notification to both merchant as well diff --git a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/CreateInvoice.html b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/CreateInvoice.html index 790abf6..d86432d 100644 --- a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/CreateInvoice.html +++ b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/CreateInvoice.html @@ -1,16 +1,17 @@
This sample code demonstrate how you can create an invoice.
Fill in all the information that is @@ -65,10 +66,12 @@ detailed breakdown of invoice
You could provide Tax information to each item.
Second Item
Second Item
Lets add some discount to this item.
You can add final discount to the invoice as shown below. You could either use "percent" or "value" when providing the discount
Delete invoice object by calling the diff --git a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/RetrieveQRCode.html b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/RetrieveQRCode.html index f1e982b..fb824d7 100644 --- a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/RetrieveQRCode.html +++ b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/invoice/RetrieveQRCode.html @@ -3,7 +3,6 @@ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; -use PayPal\Api\Notification; try {
Retrieve QR Code of Sent Invoice by calling the diff --git a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html index fc7bba9..a00e32c 100644 --- a/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html +++ b/_sakura/vendor/paypal/rest-api-sdk-php/sample/doc/lipp/GenerateAccessTokenFromRefreshToken.html @@ -6,11 +6,6 @@ $tokenInfo = new OpenIdTokeninfo(); $tokenInfo = $tokenInfo->createFromRefreshToken(array('refresh_token' => $refreshToken), $apiContext); -} catch (Exception $ex) { - // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY - ResultPrinter::printError("Obtained Access Token From Refresh Token", "Access Token", null, null, $ex); +} catch (Exception $ex) {
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Create a new instance of Plan object