添加后台代理代码

This commit is contained in:
2026-03-15 01:27:05 +08:00
parent 11f9ac4dc1
commit ea08c9366a
5254 changed files with 721042 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ index.php/$1 [L]

View File

@@ -0,0 +1,27 @@
<?php
use phprs\Bootstrap;
use phprs\util\Logger;
require '../../framework/bootstrap.inc.php';
//ini_set('display_errors', 0);
// ** if using composer, disable the following line **
require_once __DIR__.'/../../lib/phprs/AutoLoad.php';
// ** if using composer, enable the following line **
//require_once __DIR__."/../vendor/autoload.php";
//set log flag
//Logger::$flags = Logger::WARNING|Logger::DEBUG|Logger::ERROR|Logger::INFO;
//set log output
//Logger::$writer = Logger::$to_echo;
//simulate request in CLI
//$_SERVER['REQUEST_URI'] = '/api/apis';
//$_SERVER['REQUEST_METHOD'] = 'GET';
Bootstrap::run(__DIR__.'/../conf.php');
$_W = array();