From f7382071205c0c130cc00a1c21d9cc7899cfe9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 3 Dec 2020 23:26:00 +0200 Subject: [PATCH] Route all entrypoints via Symfony Router --- htdocs/access.php | 5 +---- htdocs/adv_search.php | 5 +---- htdocs/associate.php | 5 +---- htdocs/authorized_replier.php | 5 +---- htdocs/clock_status.php | 5 +---- htdocs/close.php | 5 +---- htdocs/convert_note.php | 5 +---- htdocs/csv.php | 5 +---- htdocs/custom_fields.php | 5 +---- htdocs/download.php | 5 +---- htdocs/duplicate.php | 5 +---- htdocs/edit_reporter.php | 5 +---- htdocs/emails.php | 5 +---- htdocs/faq.php | 5 +---- htdocs/file_upload.php | 5 +---- htdocs/get_attachment.php | 5 +---- htdocs/get_remote_data.php | 5 +---- htdocs/help.php | 5 +---- htdocs/history.php | 5 +---- htdocs/list.php | 5 +---- htdocs/mail_queue.php | 5 +---- htdocs/main.php | 5 +---- htdocs/new.php | 5 +---- htdocs/news.php | 5 +---- htdocs/notification.php | 5 +---- htdocs/opensearch.php | 5 +---- htdocs/partners.php | 5 +---- htdocs/phone_calls.php | 5 +---- htdocs/popup.php | 5 +---- htdocs/post.php | 5 +---- htdocs/post_note.php | 5 +---- htdocs/preferences.php | 5 +---- htdocs/redeem_incident.php | 5 +---- htdocs/removed_emails.php | 5 +---- htdocs/rss.php | 5 +---- htdocs/select_customer.php | 5 +---- htdocs/select_project.php | 5 +---- htdocs/self_assign.php | 5 +---- htdocs/send.php | 5 +---- htdocs/signup.php | 5 +---- htdocs/spell_check.php | 5 +---- htdocs/stats_chart.php | 5 +---- htdocs/switch.php | 5 +---- htdocs/time_tracking.php | 5 +---- htdocs/update.php | 5 +---- htdocs/validate.php | 5 +---- htdocs/view.php | 5 +---- htdocs/view_email.php | 5 +---- htdocs/view_headers.php | 5 +---- htdocs/view_note.php | 5 +---- 50 files changed, 50 insertions(+), 200 deletions(-) diff --git a/htdocs/access.php b/htdocs/access.php index 05f5216008..3274453537 100644 --- a/htdocs/access.php +++ b/htdocs/access.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\AccessController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/adv_search.php b/htdocs/adv_search.php index 3fc8372d04..3274453537 100644 --- a/htdocs/adv_search.php +++ b/htdocs/adv_search.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\AdvSearchController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/associate.php b/htdocs/associate.php index 326c08847a..3274453537 100644 --- a/htdocs/associate.php +++ b/htdocs/associate.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\AssociateController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/authorized_replier.php b/htdocs/authorized_replier.php index 4ab7c35da0..3274453537 100644 --- a/htdocs/authorized_replier.php +++ b/htdocs/authorized_replier.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\AuthorizedReplierController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/clock_status.php b/htdocs/clock_status.php index f010821181..3274453537 100644 --- a/htdocs/clock_status.php +++ b/htdocs/clock_status.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ClockStatusController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/close.php b/htdocs/close.php index c049c3a195..3274453537 100644 --- a/htdocs/close.php +++ b/htdocs/close.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\CloseController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/convert_note.php b/htdocs/convert_note.php index de7f969da7..3274453537 100644 --- a/htdocs/convert_note.php +++ b/htdocs/convert_note.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ConvertNoteController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/csv.php b/htdocs/csv.php index c7e73cdc21..3274453537 100644 --- a/htdocs/csv.php +++ b/htdocs/csv.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\CsvController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/custom_fields.php b/htdocs/custom_fields.php index d821c04651..3274453537 100644 --- a/htdocs/custom_fields.php +++ b/htdocs/custom_fields.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\CustomFieldsController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/download.php b/htdocs/download.php index 670234f846..3274453537 100644 --- a/htdocs/download.php +++ b/htdocs/download.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\DownloadController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/duplicate.php b/htdocs/duplicate.php index 6cec8bfb13..3274453537 100644 --- a/htdocs/duplicate.php +++ b/htdocs/duplicate.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\DuplicateController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/edit_reporter.php b/htdocs/edit_reporter.php index 51b3f99b4e..3274453537 100644 --- a/htdocs/edit_reporter.php +++ b/htdocs/edit_reporter.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\EditReporterController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/emails.php b/htdocs/emails.php index 88815534db..3274453537 100644 --- a/htdocs/emails.php +++ b/htdocs/emails.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\EmailsController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/faq.php b/htdocs/faq.php index 6e035a7782..3274453537 100644 --- a/htdocs/faq.php +++ b/htdocs/faq.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\FaqController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/file_upload.php b/htdocs/file_upload.php index ad982c2af3..3274453537 100644 --- a/htdocs/file_upload.php +++ b/htdocs/file_upload.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\FileUploadController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/get_attachment.php b/htdocs/get_attachment.php index bd562b580a..3274453537 100644 --- a/htdocs/get_attachment.php +++ b/htdocs/get_attachment.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\GetAttachmentController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/get_remote_data.php b/htdocs/get_remote_data.php index 5ad2e856ee..3274453537 100644 --- a/htdocs/get_remote_data.php +++ b/htdocs/get_remote_data.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\RemoteDataController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/help.php b/htdocs/help.php index 9906c50a12..3274453537 100644 --- a/htdocs/help.php +++ b/htdocs/help.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\HelpController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/history.php b/htdocs/history.php index cc3dc13a3f..3274453537 100644 --- a/htdocs/history.php +++ b/htdocs/history.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\HistoryController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/list.php b/htdocs/list.php index 4299b86f18..3274453537 100644 --- a/htdocs/list.php +++ b/htdocs/list.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ListController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/mail_queue.php b/htdocs/mail_queue.php index 4fb6196966..3274453537 100644 --- a/htdocs/mail_queue.php +++ b/htdocs/mail_queue.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\MailQueueController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/main.php b/htdocs/main.php index 1408d4cf8c..3274453537 100644 --- a/htdocs/main.php +++ b/htdocs/main.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\MainController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/new.php b/htdocs/new.php index 0e0ae0cb55..3274453537 100644 --- a/htdocs/new.php +++ b/htdocs/new.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\NewController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/news.php b/htdocs/news.php index fe5245c8df..3274453537 100644 --- a/htdocs/news.php +++ b/htdocs/news.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\NewsController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/notification.php b/htdocs/notification.php index 6fc6999851..3274453537 100644 --- a/htdocs/notification.php +++ b/htdocs/notification.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\NotificationController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/opensearch.php b/htdocs/opensearch.php index 4f96c316e3..3274453537 100644 --- a/htdocs/opensearch.php +++ b/htdocs/opensearch.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\OpenSearchController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/partners.php b/htdocs/partners.php index b83e1bb2f9..3274453537 100644 --- a/htdocs/partners.php +++ b/htdocs/partners.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PartnersController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/phone_calls.php b/htdocs/phone_calls.php index 17f2dfaa44..3274453537 100644 --- a/htdocs/phone_calls.php +++ b/htdocs/phone_calls.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PhoneCallsController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/popup.php b/htdocs/popup.php index 8c4e0ca434..3274453537 100644 --- a/htdocs/popup.php +++ b/htdocs/popup.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PopupController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/post.php b/htdocs/post.php index 21ad05a797..3274453537 100644 --- a/htdocs/post.php +++ b/htdocs/post.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PostController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/post_note.php b/htdocs/post_note.php index a203234f83..3274453537 100644 --- a/htdocs/post_note.php +++ b/htdocs/post_note.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PostNoteController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/preferences.php b/htdocs/preferences.php index ebd3d629d3..3274453537 100644 --- a/htdocs/preferences.php +++ b/htdocs/preferences.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\PreferencesController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/redeem_incident.php b/htdocs/redeem_incident.php index 0808f98223..3274453537 100644 --- a/htdocs/redeem_incident.php +++ b/htdocs/redeem_incident.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\RedeemIncidentController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/removed_emails.php b/htdocs/removed_emails.php index fe03c81f4a..3274453537 100644 --- a/htdocs/removed_emails.php +++ b/htdocs/removed_emails.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\RemovedEmailsController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/rss.php b/htdocs/rss.php index 1653a4912c..3274453537 100644 --- a/htdocs/rss.php +++ b/htdocs/rss.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\RssController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/select_customer.php b/htdocs/select_customer.php index 328518c854..3274453537 100644 --- a/htdocs/select_customer.php +++ b/htdocs/select_customer.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SelectCustomerController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/select_project.php b/htdocs/select_project.php index 70a04d12f8..3274453537 100644 --- a/htdocs/select_project.php +++ b/htdocs/select_project.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SelectProjectController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/self_assign.php b/htdocs/self_assign.php index f7b23364e8..3274453537 100644 --- a/htdocs/self_assign.php +++ b/htdocs/self_assign.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SelfAssignController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/send.php b/htdocs/send.php index 0b42c05e82..3274453537 100644 --- a/htdocs/send.php +++ b/htdocs/send.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SendController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/signup.php b/htdocs/signup.php index 89468925ab..3274453537 100644 --- a/htdocs/signup.php +++ b/htdocs/signup.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SignupController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/spell_check.php b/htdocs/spell_check.php index e872fd9a90..3274453537 100644 --- a/htdocs/spell_check.php +++ b/htdocs/spell_check.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SpellCheckController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/stats_chart.php b/htdocs/stats_chart.php index e20b3fd95a..3274453537 100644 --- a/htdocs/stats_chart.php +++ b/htdocs/stats_chart.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\StatsChartController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/switch.php b/htdocs/switch.php index 397d4b7a5e..3274453537 100644 --- a/htdocs/switch.php +++ b/htdocs/switch.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\SwitchController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/time_tracking.php b/htdocs/time_tracking.php index f136f59871..3274453537 100644 --- a/htdocs/time_tracking.php +++ b/htdocs/time_tracking.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\TimeTrackingController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/update.php b/htdocs/update.php index 95469bf5d6..3274453537 100644 --- a/htdocs/update.php +++ b/htdocs/update.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\UpdateController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/validate.php b/htdocs/validate.php index 5459e14522..3274453537 100644 --- a/htdocs/validate.php +++ b/htdocs/validate.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ValidateController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/view.php b/htdocs/view.php index 0ff06edfbb..3274453537 100644 --- a/htdocs/view.php +++ b/htdocs/view.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ViewController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/view_email.php b/htdocs/view_email.php index af0b64d04c..3274453537 100644 --- a/htdocs/view_email.php +++ b/htdocs/view_email.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ViewEmailController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/view_headers.php b/htdocs/view_headers.php index 6d91e0792c..3274453537 100644 --- a/htdocs/view_headers.php +++ b/htdocs/view_headers.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ViewHeadersController(); -$controller->run(); +require __DIR__ . '/index.php'; diff --git a/htdocs/view_note.php b/htdocs/view_note.php index 31b83a93c0..3274453537 100644 --- a/htdocs/view_note.php +++ b/htdocs/view_note.php @@ -11,7 +11,4 @@ * that were distributed with this source code. */ -require_once __DIR__ . '/../init.php'; - -$controller = new Eventum\Controller\ViewNoteController(); -$controller->run(); +require __DIR__ . '/index.php';