Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php \Civi\Setup::assertRunning(); ?> |
2 | <?php | |
3 | // I don't really understand the behavior here -- seems to spend a lot of work | |
4 | // building a page, and then it immediately redirects away... | |
5 | ||
6 | $cmsURL = admin_url('admin.php?page=CiviCRM&q=civicrm/admin/configtask&reset=1'); | |
7 | $wpPermissionsURL = admin_url('admin.php?page=CiviCRM&q=civicrm/admin/access/wp-permissions&reset=1'); | |
8 | $wpInstallRedirect = admin_url('admin.php?page=CiviCRM&q=civicrm&reset=1'); | |
9 | ?> | |
10 | <h1><?php echo ts('CiviCRM Installed'); ?></h1> | |
11 | <div style="padding: 1em;"> | |
12 | <p style="background-color: #0C0; border: 1px #070 solid; color: white;"> | |
13 | <?php echo ts("CiviCRM has been successfully installed"); ?> | |
14 | </p> | |
15 | <ul> | |
16 | <li><?php | |
17 | echo ts("WordPress user permissions have been automatically set - giving Anonymous and Subscribers 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( | |
18 | 1 => "target='_blank' href='{$wpPermissionsURL}'", | |
19 | 2 => "target='_blank' href='http://wiki.civicrm.org/confluence/display/CRMDOC/Default+Permissions+and+Roles'", | |
20 | )); | |
21 | ?></li> | |
22 | <li><?php | |
23 | echo ts("Use the <a %1>Configuration Checklist</a> to review and configure settings for your new site", array(1 => "target='_blank' href='$cmsURL'")); | |
24 | ?></li> | |
25 | <?php include 'finished.Common.php'; ?> | |
26 | </ul> | |
27 | </div> | |
28 | <script> | |
29 | window.location = <?php echo json_encode($wpInstallRedirect); ?>; | |
30 | </script> |