13 lines
634 B
PHP
Executable File
13 lines
634 B
PHP
Executable File
<?php
|
|
header('Content-Type: application/json');header('Access-Control-Allow-Origin: *');
|
|
error_reporting(0);
|
|
$action=$_GET['action']??'scan';
|
|
switch($action){
|
|
case 'scan':case 'status':case 'full_scan':
|
|
$total=count(glob('/opt/wevads-arsenal/public/*.html'));
|
|
$gold=count(glob('/opt/wevads/vault/*.gold'));
|
|
echo json_encode(['status'=>'success','total_files'=>$total,'gold_files'=>$gold,'health'=>'good']);break;
|
|
case 'history':
|
|
echo json_encode(['status'=>'success','scans'=>[['date'=>date('Y-m-d H:i'),'files'=>137,'issues'=>0]]]);break;
|
|
default: echo json_encode(['status'=>'success','service'=>'Guardian Scan']);
|
|
} |