| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,75 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+use OCA\SMSRelentless\Notification\Notifier; |
|
| 32 |
+use OCP\Notification\IManager; |
|
| 33 |
+ |
|
| 34 |
+ |
|
| 35 |
+if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 36 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 37 |
+} |
|
| 38 |
+if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 39 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 40 |
+} |
|
| 41 |
+ |
|
| 42 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 43 |
+date_default_timezone_set($gettimezone); |
|
| 44 |
+ |
|
| 45 |
+class Application extends App {
|
|
| 46 |
+ |
|
| 47 |
+ public function __construct(array $urlParams=array()) {
|
|
| 48 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 49 |
+ |
|
| 50 |
+ $container = $this->getContainer(); |
|
| 51 |
+ |
|
| 52 |
+ // Controllers |
|
| 53 |
+ $container->registerService('PageController', function($c) {
|
|
| 54 |
+ return new PageController( |
|
| 55 |
+ $c->query('AppName'),
|
|
| 56 |
+ $c->query('Request')
|
|
| 57 |
+ ); |
|
| 58 |
+ }); |
|
| 59 |
+ |
|
| 60 |
+ $manager = $container->get(IManager::class); |
|
| 61 |
+ $manager->registerNotifierService(Notifier::class); |
|
| 62 |
+ } |
|
| 63 |
+ |
|
| 64 |
+ public function register() {
|
|
| 65 |
+ |
|
| 66 |
+ $gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 67 |
+ date_default_timezone_set($gettimezone); |
|
| 68 |
+ |
|
| 69 |
+ $server = $this->getContainer()->getServer(); |
|
| 70 |
+ |
|
| 71 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 72 |
+ $app->register(); |
|
| 73 |
+ } |
|
| 74 |
+} |
|
| 75 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,76 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
-use OCA\SMSRelentless\Notification\Notifier; |
|
| 32 |
-use OCP\Notification\IManager; |
|
| 33 |
- |
|
| 34 |
- |
|
| 35 |
-if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 36 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 37 |
-} |
|
| 38 |
- |
|
| 39 |
-if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 40 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 41 |
-} |
|
| 42 |
- |
|
| 43 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 44 |
-date_default_timezone_set($gettimezone); |
|
| 45 |
- |
|
| 46 |
-class Application extends App {
|
|
| 47 |
- |
|
| 48 |
- public function __construct(array $urlParams=array()) {
|
|
| 49 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 50 |
- |
|
| 51 |
- $container = $this->getContainer(); |
|
| 52 |
- |
|
| 53 |
- // Controllers |
|
| 54 |
- $container->registerService('PageController', function($c) {
|
|
| 55 |
- return new PageController( |
|
| 56 |
- $c->query('AppName'),
|
|
| 57 |
- $c->query('Request')
|
|
| 58 |
- ); |
|
| 59 |
- }); |
|
| 60 |
- |
|
| 61 |
- $manager = $container->get(IManager::class); |
|
| 62 |
- $manager->registerNotifierService(Notifier::class); |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public function register() {
|
|
| 66 |
- |
|
| 67 |
- $gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 68 |
- date_default_timezone_set($gettimezone); |
|
| 69 |
- |
|
| 70 |
- $server = $this->getContainer()->getServer(); |
|
| 71 |
- |
|
| 72 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 73 |
- $app->register(); |
|
| 74 |
- } |
|
| 75 |
-} |
|
| 76 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,76 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+use OCA\SMSRelentless\Notification\Notifier; |
|
| 32 |
+use OCP\Notification\IManager; |
|
| 33 |
+ |
|
| 34 |
+ |
|
| 35 |
+if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 36 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 37 |
+} |
|
| 38 |
+ |
|
| 39 |
+if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 40 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 41 |
+} |
|
| 42 |
+ |
|
| 43 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 44 |
+date_default_timezone_set($gettimezone); |
|
| 45 |
+ |
|
| 46 |
+class Application extends App {
|
|
| 47 |
+ |
|
| 48 |
+ public function __construct(array $urlParams=array()) {
|
|
| 49 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 50 |
+ |
|
| 51 |
+ $container = $this->getContainer(); |
|
| 52 |
+ |
|
| 53 |
+ // Controllers |
|
| 54 |
+ $container->registerService('PageController', function($c) {
|
|
| 55 |
+ return new PageController( |
|
| 56 |
+ $c->query('AppName'),
|
|
| 57 |
+ $c->query('Request')
|
|
| 58 |
+ ); |
|
| 59 |
+ }); |
|
| 60 |
+ |
|
| 61 |
+ $manager = $container->get(IManager::class); |
|
| 62 |
+ $manager->registerNotifierService(Notifier::class); |
|
| 63 |
+ } |
|
| 64 |
+ |
|
| 65 |
+ public function register() {
|
|
| 66 |
+ |
|
| 67 |
+ $gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 68 |
+ date_default_timezone_set($gettimezone); |
|
| 69 |
+ |
|
| 70 |
+ $server = $this->getContainer()->getServer(); |
|
| 71 |
+ |
|
| 72 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 73 |
+ $app->register(); |
|
| 74 |
+ } |
|
| 75 |
+} |
|
| 76 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,73 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
-use OCA\SMSRelentless\Notification\Notifier; |
|
| 32 |
-use OCP\Notification\IManager; |
|
| 33 |
- |
|
| 34 |
- |
|
| 35 |
-if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 36 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 37 |
-} |
|
| 38 |
- |
|
| 39 |
-if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 40 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 41 |
-} |
|
| 42 |
- |
|
| 43 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 44 |
-date_default_timezone_set($gettimezone); |
|
| 45 |
- |
|
| 46 |
-class Application extends App {
|
|
| 47 |
- |
|
| 48 |
- public function __construct(array $urlParams=array()) {
|
|
| 49 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 50 |
- |
|
| 51 |
- $container = $this->getContainer(); |
|
| 52 |
- |
|
| 53 |
- // Controllers |
|
| 54 |
- $container->registerService('PageController', function($c) {
|
|
| 55 |
- return new PageController( |
|
| 56 |
- $c->query('AppName'),
|
|
| 57 |
- $c->query('Request')
|
|
| 58 |
- ); |
|
| 59 |
- }); |
|
| 60 |
- |
|
| 61 |
- $manager = $container->get(IManager::class); |
|
| 62 |
- $manager->registerNotifierService(Notifier::class); |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public function register() {
|
|
| 66 |
- |
|
| 67 |
- $server = $this->getContainer()->getServer(); |
|
| 68 |
- |
|
| 69 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 70 |
- $app->register(); |
|
| 71 |
- } |
|
| 72 |
-} |
|
| 73 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,73 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+use OCA\SMSRelentless\Notification\Notifier; |
|
| 32 |
+use OCP\Notification\IManager; |
|
| 33 |
+ |
|
| 34 |
+ |
|
| 35 |
+if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 36 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 37 |
+} |
|
| 38 |
+ |
|
| 39 |
+if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 40 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 41 |
+} |
|
| 42 |
+ |
|
| 43 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 44 |
+date_default_timezone_set($gettimezone); |
|
| 45 |
+ |
|
| 46 |
+class Application extends App {
|
|
| 47 |
+ |
|
| 48 |
+ public function __construct(array $urlParams=array()) {
|
|
| 49 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 50 |
+ |
|
| 51 |
+ $container = $this->getContainer(); |
|
| 52 |
+ |
|
| 53 |
+ // Controllers |
|
| 54 |
+ $container->registerService('PageController', function($c) {
|
|
| 55 |
+ return new PageController( |
|
| 56 |
+ $c->query('AppName'),
|
|
| 57 |
+ $c->query('Request')
|
|
| 58 |
+ ); |
|
| 59 |
+ }); |
|
| 60 |
+ |
|
| 61 |
+ $manager = $container->get(IManager::class); |
|
| 62 |
+ $manager->registerNotifierService(Notifier::class); |
|
| 63 |
+ } |
|
| 64 |
+ |
|
| 65 |
+ public function register() {
|
|
| 66 |
+ |
|
| 67 |
+ $server = $this->getContainer()->getServer(); |
|
| 68 |
+ |
|
| 69 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 70 |
+ $app->register(); |
|
| 71 |
+ } |
|
| 72 |
+} |
|
| 73 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,68 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
-if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 33 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 34 |
-} |
|
| 35 |
- |
|
| 36 |
-if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 37 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 38 |
-} |
|
| 39 |
- |
|
| 40 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 41 |
-date_default_timezone_set($gettimezone); |
|
| 42 |
- |
|
| 43 |
-class Application extends App {
|
|
| 44 |
- |
|
| 45 |
- public function __construct(array $urlParams=array()) {
|
|
| 46 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 47 |
- |
|
| 48 |
- $container = $this->getContainer(); |
|
| 49 |
- |
|
| 50 |
- // Controllers |
|
| 51 |
- $container->registerService('PageController', function($c) {
|
|
| 52 |
- return new PageController( |
|
| 53 |
- $c->query('AppName'),
|
|
| 54 |
- $c->query('Request')
|
|
| 55 |
- ); |
|
| 56 |
- }); |
|
| 57 |
- |
|
| 58 |
- } |
|
| 59 |
- |
|
| 60 |
- public function register() {
|
|
| 61 |
- |
|
| 62 |
- $server = $this->getContainer()->getServer(); |
|
| 63 |
- |
|
| 64 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 65 |
- $app->register(); |
|
| 66 |
- } |
|
| 67 |
-} |
|
| 68 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,68 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 33 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 34 |
+} |
|
| 35 |
+ |
|
| 36 |
+if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 37 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 38 |
+} |
|
| 39 |
+ |
|
| 40 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 41 |
+date_default_timezone_set($gettimezone); |
|
| 42 |
+ |
|
| 43 |
+class Application extends App {
|
|
| 44 |
+ |
|
| 45 |
+ public function __construct(array $urlParams=array()) {
|
|
| 46 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 47 |
+ |
|
| 48 |
+ $container = $this->getContainer(); |
|
| 49 |
+ |
|
| 50 |
+ // Controllers |
|
| 51 |
+ $container->registerService('PageController', function($c) {
|
|
| 52 |
+ return new PageController( |
|
| 53 |
+ $c->query('AppName'),
|
|
| 54 |
+ $c->query('Request')
|
|
| 55 |
+ ); |
|
| 56 |
+ }); |
|
| 57 |
+ |
|
| 58 |
+ } |
|
| 59 |
+ |
|
| 60 |
+ public function register() {
|
|
| 61 |
+ |
|
| 62 |
+ $server = $this->getContainer()->getServer(); |
|
| 63 |
+ |
|
| 64 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 65 |
+ $app->register(); |
|
| 66 |
+ } |
|
| 67 |
+} |
|
| 68 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,72 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
-if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 33 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 34 |
-} |
|
| 35 |
- |
|
| 36 |
-if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 37 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 38 |
-} |
|
| 39 |
- |
|
| 40 |
-if ((@include_once __DIR__ . '/../../providers/Twilio/src/Twilio/autoload.php')===false) {
|
|
| 41 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 42 |
-} |
|
| 43 |
- |
|
| 44 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 45 |
-date_default_timezone_set($gettimezone); |
|
| 46 |
- |
|
| 47 |
-class Application extends App {
|
|
| 48 |
- |
|
| 49 |
- public function __construct(array $urlParams=array()) {
|
|
| 50 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 51 |
- |
|
| 52 |
- $container = $this->getContainer(); |
|
| 53 |
- |
|
| 54 |
- // Controllers |
|
| 55 |
- $container->registerService('PageController', function($c) {
|
|
| 56 |
- return new PageController( |
|
| 57 |
- $c->query('AppName'),
|
|
| 58 |
- $c->query('Request')
|
|
| 59 |
- ); |
|
| 60 |
- }); |
|
| 61 |
- |
|
| 62 |
- } |
|
| 63 |
- |
|
| 64 |
- public function register() {
|
|
| 65 |
- |
|
| 66 |
- $server = $this->getContainer()->getServer(); |
|
| 67 |
- |
|
| 68 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 69 |
- $app->register(); |
|
| 70 |
- } |
|
| 71 |
-} |
|
| 72 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,72 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+if ((@include_once __DIR__ . '/../../providers/Telnyx/vendor/autoload.php')===false) {
|
|
| 33 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 34 |
+} |
|
| 35 |
+ |
|
| 36 |
+if ((@include_once __DIR__ . '/../../providers/Plivo/vendor/autoload.php')===false) {
|
|
| 37 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 38 |
+} |
|
| 39 |
+ |
|
| 40 |
+if ((@include_once __DIR__ . '/../../providers/Twilio/src/Twilio/autoload.php')===false) {
|
|
| 41 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 42 |
+} |
|
| 43 |
+ |
|
| 44 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 45 |
+date_default_timezone_set($gettimezone); |
|
| 46 |
+ |
|
| 47 |
+class Application extends App {
|
|
| 48 |
+ |
|
| 49 |
+ public function __construct(array $urlParams=array()) {
|
|
| 50 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 51 |
+ |
|
| 52 |
+ $container = $this->getContainer(); |
|
| 53 |
+ |
|
| 54 |
+ // Controllers |
|
| 55 |
+ $container->registerService('PageController', function($c) {
|
|
| 56 |
+ return new PageController( |
|
| 57 |
+ $c->query('AppName'),
|
|
| 58 |
+ $c->query('Request')
|
|
| 59 |
+ ); |
|
| 60 |
+ }); |
|
| 61 |
+ |
|
| 62 |
+ } |
|
| 63 |
+ |
|
| 64 |
+ public function register() {
|
|
| 65 |
+ |
|
| 66 |
+ $server = $this->getContainer()->getServer(); |
|
| 67 |
+ |
|
| 68 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 69 |
+ $app->register(); |
|
| 70 |
+ } |
|
| 71 |
+} |
|
| 72 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,73 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
-} |
|
| 36 |
- |
|
| 37 |
-if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
-} |
|
| 40 |
- |
|
| 41 |
-if ((@include_once __DIR__ . '/../../Twilio/vendor/autoload.php')===false) {
|
|
| 42 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 43 |
-} |
|
| 44 |
- |
|
| 45 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 46 |
-date_default_timezone_set($gettimezone); |
|
| 47 |
- |
|
| 48 |
-class Application extends App {
|
|
| 49 |
- |
|
| 50 |
- public function __construct(array $urlParams=array()) {
|
|
| 51 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 52 |
- |
|
| 53 |
- $container = $this->getContainer(); |
|
| 54 |
- |
|
| 55 |
- // Controllers |
|
| 56 |
- $container->registerService('PageController', function($c) {
|
|
| 57 |
- return new PageController( |
|
| 58 |
- $c->query('AppName'),
|
|
| 59 |
- $c->query('Request')
|
|
| 60 |
- ); |
|
| 61 |
- }); |
|
| 62 |
- |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public function register() {
|
|
| 66 |
- |
|
| 67 |
- $server = $this->getContainer()->getServer(); |
|
| 68 |
- |
|
| 69 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 70 |
- $app->register(); |
|
| 71 |
- } |
|
| 72 |
-} |
|
| 73 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,73 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
+} |
|
| 36 |
+ |
|
| 37 |
+if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
+} |
|
| 40 |
+ |
|
| 41 |
+if ((@include_once __DIR__ . '/../../Twilio/vendor/autoload.php')===false) {
|
|
| 42 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 43 |
+} |
|
| 44 |
+ |
|
| 45 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 46 |
+date_default_timezone_set($gettimezone); |
|
| 47 |
+ |
|
| 48 |
+class Application extends App {
|
|
| 49 |
+ |
|
| 50 |
+ public function __construct(array $urlParams=array()) {
|
|
| 51 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 52 |
+ |
|
| 53 |
+ $container = $this->getContainer(); |
|
| 54 |
+ |
|
| 55 |
+ // Controllers |
|
| 56 |
+ $container->registerService('PageController', function($c) {
|
|
| 57 |
+ return new PageController( |
|
| 58 |
+ $c->query('AppName'),
|
|
| 59 |
+ $c->query('Request')
|
|
| 60 |
+ ); |
|
| 61 |
+ }); |
|
| 62 |
+ |
|
| 63 |
+ } |
|
| 64 |
+ |
|
| 65 |
+ public function register() {
|
|
| 66 |
+ |
|
| 67 |
+ $server = $this->getContainer()->getServer(); |
|
| 68 |
+ |
|
| 69 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 70 |
+ $app->register(); |
|
| 71 |
+ } |
|
| 72 |
+} |
|
| 73 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,77 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
-} |
|
| 36 |
- |
|
| 37 |
-if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
-} |
|
| 40 |
- |
|
| 41 |
-//if ((@include_once __DIR__ . '/../../Flowroute/vendor/autoload.php')===false) {
|
|
| 42 |
-// throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 43 |
-//} |
|
| 44 |
- |
|
| 45 |
-if ((@include_once __DIR__ . '/../../Twilio/vendor/autoload.php')===false) {
|
|
| 46 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 47 |
-} |
|
| 48 |
- |
|
| 49 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 50 |
-date_default_timezone_set($gettimezone); |
|
| 51 |
- |
|
| 52 |
-class Application extends App {
|
|
| 53 |
- |
|
| 54 |
- public function __construct(array $urlParams=array()) {
|
|
| 55 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 56 |
- |
|
| 57 |
- $container = $this->getContainer(); |
|
| 58 |
- |
|
| 59 |
- // Controllers |
|
| 60 |
- $container->registerService('PageController', function($c) {
|
|
| 61 |
- return new PageController( |
|
| 62 |
- $c->query('AppName'),
|
|
| 63 |
- $c->query('Request')
|
|
| 64 |
- ); |
|
| 65 |
- }); |
|
| 66 |
- |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- public function register() {
|
|
| 70 |
- |
|
| 71 |
- $server = $this->getContainer()->getServer(); |
|
| 72 |
- |
|
| 73 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 74 |
- $app->register(); |
|
| 75 |
- } |
|
| 76 |
-} |
|
| 77 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,77 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
+} |
|
| 36 |
+ |
|
| 37 |
+if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
+} |
|
| 40 |
+ |
|
| 41 |
+//if ((@include_once __DIR__ . '/../../Flowroute/vendor/autoload.php')===false) {
|
|
| 42 |
+// throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 43 |
+//} |
|
| 44 |
+ |
|
| 45 |
+if ((@include_once __DIR__ . '/../../Twilio/vendor/autoload.php')===false) {
|
|
| 46 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 47 |
+} |
|
| 48 |
+ |
|
| 49 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 50 |
+date_default_timezone_set($gettimezone); |
|
| 51 |
+ |
|
| 52 |
+class Application extends App {
|
|
| 53 |
+ |
|
| 54 |
+ public function __construct(array $urlParams=array()) {
|
|
| 55 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 56 |
+ |
|
| 57 |
+ $container = $this->getContainer(); |
|
| 58 |
+ |
|
| 59 |
+ // Controllers |
|
| 60 |
+ $container->registerService('PageController', function($c) {
|
|
| 61 |
+ return new PageController( |
|
| 62 |
+ $c->query('AppName'),
|
|
| 63 |
+ $c->query('Request')
|
|
| 64 |
+ ); |
|
| 65 |
+ }); |
|
| 66 |
+ |
|
| 67 |
+ } |
|
| 68 |
+ |
|
| 69 |
+ public function register() {
|
|
| 70 |
+ |
|
| 71 |
+ $server = $this->getContainer()->getServer(); |
|
| 72 |
+ |
|
| 73 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 74 |
+ $app->register(); |
|
| 75 |
+ } |
|
| 76 |
+} |
|
| 77 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,69 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
-} |
|
| 36 |
- |
|
| 37 |
-if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
-} |
|
| 40 |
- |
|
| 41 |
-$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 42 |
-date_default_timezone_set($gettimezone); |
|
| 43 |
- |
|
| 44 |
-class Application extends App {
|
|
| 45 |
- |
|
| 46 |
- public function __construct(array $urlParams=array()) {
|
|
| 47 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 48 |
- |
|
| 49 |
- $container = $this->getContainer(); |
|
| 50 |
- |
|
| 51 |
- // Controllers |
|
| 52 |
- $container->registerService('PageController', function($c) {
|
|
| 53 |
- return new PageController( |
|
| 54 |
- $c->query('AppName'),
|
|
| 55 |
- $c->query('Request')
|
|
| 56 |
- ); |
|
| 57 |
- }); |
|
| 58 |
- |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- public function register() {
|
|
| 62 |
- |
|
| 63 |
- $server = $this->getContainer()->getServer(); |
|
| 64 |
- |
|
| 65 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 66 |
- $app->register(); |
|
| 67 |
- } |
|
| 68 |
-} |
|
| 69 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,69 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
+} |
|
| 36 |
+ |
|
| 37 |
+if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
+} |
|
| 40 |
+ |
|
| 41 |
+$gettimezone = \OC::$server->getConfig()->getSystemValue('logtimezone', 'UTC');
|
|
| 42 |
+date_default_timezone_set($gettimezone); |
|
| 43 |
+ |
|
| 44 |
+class Application extends App {
|
|
| 45 |
+ |
|
| 46 |
+ public function __construct(array $urlParams=array()) {
|
|
| 47 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 48 |
+ |
|
| 49 |
+ $container = $this->getContainer(); |
|
| 50 |
+ |
|
| 51 |
+ // Controllers |
|
| 52 |
+ $container->registerService('PageController', function($c) {
|
|
| 53 |
+ return new PageController( |
|
| 54 |
+ $c->query('AppName'),
|
|
| 55 |
+ $c->query('Request')
|
|
| 56 |
+ ); |
|
| 57 |
+ }); |
|
| 58 |
+ |
|
| 59 |
+ } |
|
| 60 |
+ |
|
| 61 |
+ public function register() {
|
|
| 62 |
+ |
|
| 63 |
+ $server = $this->getContainer()->getServer(); |
|
| 64 |
+ |
|
| 65 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 66 |
+ $app->register(); |
|
| 67 |
+ } |
|
| 68 |
+} |
|
| 69 |
+ |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,72 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-/** |
|
| 3 |
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
- * |
|
| 5 |
- * @author Double Bastion LLC |
|
| 6 |
- * |
|
| 7 |
- * @license GNU AGPL version 3 or any later version |
|
| 8 |
- * |
|
| 9 |
- * This program is free software; you can redistribute it and/or |
|
| 10 |
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
- * License as published by the Free Software Foundation; either |
|
| 12 |
- * version 3 of the License, or any later version. |
|
| 13 |
- * |
|
| 14 |
- * This program is distributed in the hope that it will be useful, |
|
| 15 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
- * |
|
| 19 |
- * You should have received a copy of the GNU Affero General Public |
|
| 20 |
- * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
- * |
|
| 22 |
- */ |
|
| 23 |
- |
|
| 24 |
-declare(strict_types=1); |
|
| 25 |
- |
|
| 26 |
-namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
- |
|
| 28 |
-use OCP\AppFramework\App; |
|
| 29 |
-use OCP\IServerContainer; |
|
| 30 |
-use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
-} |
|
| 36 |
- |
|
| 37 |
-if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
- throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
-} |
|
| 40 |
- |
|
| 41 |
-$gettimezoneinit = exec("timedatectl | grep zone");
|
|
| 42 |
-$gettimezonesec = explode("Time zone:", $gettimezoneinit);
|
|
| 43 |
-$gettimezonetert = explode("(", $gettimezonesec[1]);
|
|
| 44 |
-$gettimezone = str_replace(" ", "", $gettimezonetert[0]);
|
|
| 45 |
-date_default_timezone_set($gettimezone); |
|
| 46 |
- |
|
| 47 |
- |
|
| 48 |
-class Application extends App {
|
|
| 49 |
- |
|
| 50 |
- public function __construct(array $urlParams=array()) {
|
|
| 51 |
- parent::__construct('sms_relentless', $urlParams);
|
|
| 52 |
- |
|
| 53 |
- $container = $this->getContainer(); |
|
| 54 |
- |
|
| 55 |
- // Controllers |
|
| 56 |
- $container->registerService('PageController', function($c) {
|
|
| 57 |
- return new PageController( |
|
| 58 |
- $c->query('AppName'),
|
|
| 59 |
- $c->query('Request')
|
|
| 60 |
- ); |
|
| 61 |
- }); |
|
| 62 |
- |
|
| 63 |
- } |
|
| 64 |
- |
|
| 65 |
- public function register() {
|
|
| 66 |
- $server = $this->getContainer()->getServer(); |
|
| 67 |
- |
|
| 68 |
- $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 69 |
- $app->register(); |
|
| 70 |
- } |
|
| 71 |
-} |
|
| 72 |
- |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,72 @@ |
| 1 |
+<?php |
|
| 2 |
+/** |
|
| 3 |
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com> |
|
| 4 |
+ * |
|
| 5 |
+ * @author Double Bastion LLC |
|
| 6 |
+ * |
|
| 7 |
+ * @license GNU AGPL version 3 or any later version |
|
| 8 |
+ * |
|
| 9 |
+ * This program is free software; you can redistribute it and/or |
|
| 10 |
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
| 11 |
+ * License as published by the Free Software Foundation; either |
|
| 12 |
+ * version 3 of the License, or any later version. |
|
| 13 |
+ * |
|
| 14 |
+ * This program is distributed in the hope that it will be useful, |
|
| 15 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 16 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 17 |
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
| 18 |
+ * |
|
| 19 |
+ * You should have received a copy of the GNU Affero General Public |
|
| 20 |
+ * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
| 21 |
+ * |
|
| 22 |
+ */ |
|
| 23 |
+ |
|
| 24 |
+declare(strict_types=1); |
|
| 25 |
+ |
|
| 26 |
+namespace OCA\SMSRelentless\AppInfo; |
|
| 27 |
+ |
|
| 28 |
+use OCP\AppFramework\App; |
|
| 29 |
+use OCP\IServerContainer; |
|
| 30 |
+use OCA\SMSRelentless\Controller\PageController; |
|
| 31 |
+ |
|
| 32 |
+ |
|
| 33 |
+if ((@include_once __DIR__ . '/../../Telnyx/vendor/autoload.php')===false) {
|
|
| 34 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 35 |
+} |
|
| 36 |
+ |
|
| 37 |
+if ((@include_once __DIR__ . '/../../Plivo/vendor/autoload.php')===false) {
|
|
| 38 |
+ throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
|
|
| 39 |
+} |
|
| 40 |
+ |
|
| 41 |
+$gettimezoneinit = exec("timedatectl | grep zone");
|
|
| 42 |
+$gettimezonesec = explode("Time zone:", $gettimezoneinit);
|
|
| 43 |
+$gettimezonetert = explode("(", $gettimezonesec[1]);
|
|
| 44 |
+$gettimezone = str_replace(" ", "", $gettimezonetert[0]);
|
|
| 45 |
+date_default_timezone_set($gettimezone); |
|
| 46 |
+ |
|
| 47 |
+ |
|
| 48 |
+class Application extends App {
|
|
| 49 |
+ |
|
| 50 |
+ public function __construct(array $urlParams=array()) {
|
|
| 51 |
+ parent::__construct('sms_relentless', $urlParams);
|
|
| 52 |
+ |
|
| 53 |
+ $container = $this->getContainer(); |
|
| 54 |
+ |
|
| 55 |
+ // Controllers |
|
| 56 |
+ $container->registerService('PageController', function($c) {
|
|
| 57 |
+ return new PageController( |
|
| 58 |
+ $c->query('AppName'),
|
|
| 59 |
+ $c->query('Request')
|
|
| 60 |
+ ); |
|
| 61 |
+ }); |
|
| 62 |
+ |
|
| 63 |
+ } |
|
| 64 |
+ |
|
| 65 |
+ public function register() {
|
|
| 66 |
+ $server = $this->getContainer()->getServer(); |
|
| 67 |
+ |
|
| 68 |
+ $app = new \OCA\SMSRelentless\AppInfo\Application(); |
|
| 69 |
+ $app->register(); |
|
| 70 |
+ } |
|
| 71 |
+} |
|
| 72 |
+ |