File Editor
Directories:
.. (Back)
db
Files:
api.php
auth.php
campaigns.php
common.php
config.php
constants.php
diag.php
events.php
filters.php
go.php
index.html
index.php
login.php
state.php
stats.php
support.php
traffic.php
userconfig.php
Create New File
Create
Edit File: auth.php
<?php require_once('common.php'); function unauthorized() { header('HTTP/1.0 401 Unauthorized'); exit(); } function notFound() { header('HTTP/1.0 404 Not Found'); exit(); } if (isset($_SERVER['HTTP_AUTHORIZATION'])) { $token = substr($_SERVER['HTTP_AUTHORIZATION'],7); } elseif (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { $token = substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'],7); } else { notFound(); } if (!checkAuth($token)) unauthorized();
Save Changes
Rename File
Rename