PageRenderTime 29ms CodeModel.GetById 27ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1<?
 2define('WP_SITEURL', rtrim("http://{$_SERVER['SILVER_CANONICAL_HOSTNAME']}{$_SERVER['SILVER_MATCH_PATH']}", "/"));
 3if ($_SERVER['SCRIPT_NAME'] == "/silver-update.php") {
 4    include("silver-update.php");
 5} else {
 6    $path = silver_call_next("{$silver_base}/wordpress/index.php");
 7    if ($_SERVER['REQUEST_METHOD'] == 'POST' && ! $_SERVER['SCRIPT_NAME'] != '/wp-login.php') {
 8        echo "I am listening\n";
 9    }
10    include $path;
11}
12?>