2018-05-09 08:05:17 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
2018-09-11 07:51:35 -05:00
|
|
|
use App\Checks;
|
|
|
|
|
|
2018-05-09 08:05:17 -05:00
|
|
|
class LegacyController extends Controller
|
|
|
|
|
{
|
|
|
|
|
public function index($path = '')
|
|
|
|
|
{
|
2018-09-11 07:51:35 -05:00
|
|
|
Checks::postAuth();
|
|
|
|
|
|
2018-05-09 08:05:17 -05:00
|
|
|
ob_start();
|
|
|
|
|
include base_path('html/legacy_index.php');
|
|
|
|
|
$html = ob_get_clean();
|
|
|
|
|
|
|
|
|
|
return response($html);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function api($path = '')
|
|
|
|
|
{
|
|
|
|
|
include base_path('html/legacy_api_v0.php');
|
|
|
|
|
}
|
2018-09-30 21:23:00 -05:00
|
|
|
|
|
|
|
|
public function dash()
|
|
|
|
|
{
|
|
|
|
|
ob_start();
|
|
|
|
|
include base_path('html/legacy/ajax_dash.php');
|
|
|
|
|
$output = ob_get_contents();
|
|
|
|
|
ob_end_clean();
|
|
|
|
|
|
|
|
|
|
return response($output, 200, ['Content-Type' => 'application/json']);
|
|
|
|
|
}
|
2018-05-09 08:05:17 -05:00
|
|
|
}
|