1234567891011121314151617181920 |
- <?php
- $script_name = $_SERVER['SCRIPT_NAME'];
- $script_parts = explode('/', $script_name);
- array_pop($script_parts);
- while (!file_exists('./index.php')) {
- chdir('..');
- array_pop($script_parts);
- }
- $_SERVER['SCRIPT_NAME'] = implode('/', $script_parts) . '/index.php';
- $_GET['q'] = 'admin/config/development/qunit';
- $qunit_hack = TRUE;
- require_once('./index.php');
|