Merge pull request #16591 from ixiam/dev/core#1575
[civicrm-core.git] / setup / res / finished.Backdrop.php
1 <?php \Civi\Setup::assertRunning(); ?>
2 <?php
3 throw new \Exception("A draft copy of this file is available but has not been tested. Please edit " . __FILE__);
4
5 // FIXME: Compute URL's with backdrop functions (e.g. 'url(...)')
6 // FIXME: Just echo instead of doing $output silliness.
7 // FIXME: Use finished.Common.php instead of $commonOutputMessage.
8
9 $registerSiteURL = "https://civicrm.org/register-site";
10 $commonOutputMessage = "<li>" . ts("Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to <a %1>fill out the site registration form</a>. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check Keep in Touch to receive technical updates (a low volume mailing list).", array(1 => "href='$registerSiteURL' target='_blank'")) . "</li>"
11 . "<li>" . ts("We have integrated KCFinder with CKEditor and TinyMCE. This allows a user to upload images. All uploaded images are public.") . "</li>";
12
13 $output = NULL;
14 $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
15 $output .= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';
16 $output .= '<head>';
17 $output .= '<title>' . ts('CiviCRM Installed') . '</title>';
18 $output .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
19 $output .= '<link rel="stylesheet" type="text/css" href="template.css" />';
20 $output .= '</head>';
21 $output .= '<body>';
22 $output .= '<div style="padding: 1em;"><p class="good">' . ts('CiviCRM has been successfully installed') . '</p>';
23 $output .= '<ul>';
24
25 $backdropURL = civicrm_cms_base();
26 $backdropPermissionsURL = "{$backdropURL}index.php?q=admin/config/people/permissions";
27 $backdropURL .= "index.php?q=civicrm/admin/configtask&reset=1";
28
29 $output .= "<li>" . ts("Backdrop user permissions have been automatically set - giving anonymous and authenticated users access to public CiviCRM forms and features. We recommend that you <a %1>review these permissions</a> to ensure that they are appropriate for your requirements (<a %2>learn more...</a>)", array(
30 1 => "target='_blank' href='{$backdropPermissionsURL}'",
31 2 => "target='_blank' href='http://wiki.civicrm.org/confluence/display/CRMDOC/Default+Permissions+and+Roles'",
32 )) . "</li>";
33 $output .= "<li>" . ts("Use the <a %1>Configuration Checklist</a> to review and configure settings for your new site", array(1 => "target='_blank' href='$backdropURL'")) . "</li>";
34 $output .= $commonOutputMessage;
35 $output .= '</ul>';
36 $output .= '</div>';
37 $output .= '</body>';
38 $output .= '</html>';
39 echo $output;