www.gusucode.com > Elgg PHP开源SNS系统 V1.12.5源码程序 > elgg-1.12.5/views/installation/install/js_rewrite_check.php
<?php /** * Some servers don't allow PHP to check the rewrite, so try via AJAX * * @uses $vars['url'] URL to test via Ajax (note: not relying on legacy site URL injection) */ $args = array( json_encode($vars['url']), json_encode(elgg_echo('install:check:rewrite:success')), json_encode(elgg_get_site_url() . 'install.php?step=database') ); ?> <script type="text/javascript"> elgg.installer.rewriteTest(<?php echo implode(', ', $args) ?>); </script>