chore: remove mariadb 11.1 from ci testing (#7738)
[openemr.git] / interface / main / about_page.php
blob0db4806fd60c59961afeda8bf2c399876d006b22
1 <?php
3 /**
4 * OpenEMR About Page
6 * This Displays an About page for OpenEMR Displaying Version Number, Support Phone Number
7 * If it have been entered in Globals along with the Manual and On Line Support Links
9 * @package OpenEMR
10 * @link http://www.open-emr.org
11 * @author Brady Miller <brady.g.miller@gmail.com>
12 * @author Robert Down <robertdown@live.com>
13 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
14 * @copyright Copyright (c) 2021-2023 Robert Down <robertdown@live.com>
15 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
18 // @TODO: jQuery UI Removal
21 require_once("../globals.php");
23 use OpenEMR\Common\Twig\TwigContainer;
24 use OpenEMR\Common\Uuid\UniqueInstallationUuid;
25 use OpenEMR\Services\VersionService;
27 $twig = new TwigContainer();
28 $t = $twig->getTwig();
30 $versionService = new VersionService();
32 $registrationTranslation = json_encode(array(
33 'title' => xla('OpenEMR Product Registration'),
34 'pleaseProvideValidEmail' => xla('Please provide a valid email address'),
35 'success' => xla('Success'),
36 'registeredSuccess' => xla('Your installation of OpenEMR has been registered'),
37 'submit' => xla('Submit'),
38 'noThanks' => xla('No Thanks'),
39 'registeredEmail' => xla('Registered email'),
40 'registeredId' => xla('Registered id'),
41 'genericError' => xla('Error. Try again later'),
42 'closeTooltip' => ''
43 ));
45 // Auto-generate the link if no override is specified. This is tied directly to the OpenEMR Wiki
46 $userManual = ($GLOBALS['user_manual_link'] === '')
47 ? "https://open-emr.org/wiki/index.php/OpenEMR_" . $versionService->asString(false, false) . "_Users_Guide"
48 : $GLOBALS['user_manual_link'];
50 $viewArgs = [
51 'onlineSupportHref' => $GLOBALS["online_support_link"],
52 'ackHref' => "../../acknowledge_license_cert.html",
53 'registrationTranslations' => $registrationTranslation,
54 'applicationTitle' => $openemr_name,
55 'versionNumber' => $versionService->asString(),
56 'supportPhoneNumber' => $GLOBALS['support_phone_number'] ?? false,
57 'theUUID' => UniqueInstallationUuid::getUniqueInstallationUuid(),
58 'userManualHref' => $userManual,
59 'onlineSupportLink' => $GLOBALS['online_support_link'] ?? false,
60 'displayAcknowledgements' => $GLOBALS['display_acknowledgements'],
61 'displayDonations' => $GLOBALS['display_review_link'],
62 'displayReview' => $GLOBALS['display_donations_link'],
65 echo $t->render('core/about.html.twig', $viewArgs);