}
public function run(){
$match = $this->match();
if( $match && is_callable( $match['target'] ) ) {
call_user_func_array( $match['target'], $match['params'] );
} else {
header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
echo Json::encode(['error' => 'invalid api call please contact provider']);
}
}
public function run(){
$match = $this->match();
if( $match && is_callable( $match['target'] ) ) {
call_user_func_array( $match['target'], $match['params'] );
} else {
header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
echo Json::encode(['error' => 'invalid api call please contact provider']);
}
<?php
define("SYSTEM_PATH", __dir__."/");
require_once SYSTEM_PATH."core/init.php";
$app->run();
| Key | Value |
| PATH | /bin:/usr/bin |
| HTTP_ACCEPT | */* |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_COOKIE | PHPSESSID=ot870uaneeg5uhfejtamf8dmms |
| HTTP_HOST | khata.thepos.xyz |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| DOCUMENT_ROOT | /home/thepos.xyz/khata |
| REMOTE_ADDR | 216.73.216.119 |
| REMOTE_PORT | 60113 |
| SERVER_ADDR | 51.15.178.130 |
| SERVER_NAME | khata.thepos.xyz |
| SERVER_ADMIN | info.hostinglo@gmail.com |
| SERVER_PORT | 443 |
| REQUEST_URI | /sitemap.xml |
| REDIRECT_URL | /sitemap.xml |
| HTTPS | on |
| REDIRECT_STATUS | 200 |
| X_SPDY | HTTP2 |
| SSL_PROTOCOL | TLSv1.3 |
| SSL_CIPHER | TLS_AES_256_GCM_SHA384 |
| SSL_CIPHER_USEKEYSIZE | 256 |
| SSL_CIPHER_ALGKEYSIZE | 256 |
| LSWS_EDITION | Openlitespeed 1.8.3 |
| X-LSCACHE | on,crawler |
| SCRIPT_FILENAME | /home/thepos.xyz/khata/index.php |
| QUERY_STRING | |
| SCRIPT_NAME | /index.php |
| SERVER_PROTOCOL | HTTP/1.1 |
| SERVER_SOFTWARE | LiteSpeed |
| REQUEST_METHOD | GET |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1766407587.4488 |
| REQUEST_TIME | 1766407587 |
| Key | Value |
| PHPSESSID | ot870uaneeg5uhfejtamf8dmms |