js_rewrite_check.php 457 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Some servers don't allow PHP to check the rewrite, so try via AJAX
  4. *
  5. * @uses $vars['url'] URL to test via Ajax (note: not relying on legacy site URL injection)
  6. */
  7. $args = array(
  8. json_encode($vars['url']),
  9. json_encode(elgg_echo('install:check:rewrite:success')),
  10. json_encode(elgg_get_site_url() . 'install.php?step=database')
  11. );
  12. ?>
  13. <script type="text/javascript">
  14. elgg.installer.rewriteTest(<?php echo implode(', ', $args) ?>);
  15. </script>