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: support.php
<?php require_once('auth.php'); $action = isset($_GET['a']) ? $_GET['a'] : 'gen'; switch ($action) { case 'gen': $tok = genToken(array('role' => 'support', 'api' => APIKEY, 'exp' => strtotime('+5 hour'))); localApiResponse(json_encode(array('token'=>$tok))); break; default: $r = array('error' => 'unknown action'); localApiResponse(json_encode($r), 'HTTP/1.0 400 Bad Request'); exit(); }
Save Changes
Rename File
Rename