/docs/examples/wordpress/runner.php
https://bitbucket.org/ianb/silverlining/ · PHP · 12 lines · 12 code · 0 blank · 0 comment · 7 complexity · 8887f73182aed266dc37422dacd74d8d MD5 · raw file
- <?
- define('WP_SITEURL', rtrim("http://{$_SERVER['SILVER_CANONICAL_HOSTNAME']}{$_SERVER['SILVER_MATCH_PATH']}", "/"));
- if ($_SERVER['SCRIPT_NAME'] == "/silver-update.php") {
- include("silver-update.php");
- } else {
- $path = silver_call_next("{$silver_base}/wordpress/index.php");
- if ($_SERVER['REQUEST_METHOD'] == 'POST' && ! $_SERVER['SCRIPT_NAME'] != '/wp-login.php') {
- echo "I am listening\n";
- }
- include $path;
- }
- ?>