Kaydet (Commit) 68c341d7 authored tarafından mertcelen's avatar mertcelen

Server logs updated.

üst 522ee112
......@@ -131,7 +131,6 @@ class InternalController extends Controller
"extension_id" => extension()->id,
"server_id" => server()->id,
]);
ServerLog::new("Komut Çalıştırma", $output);
system_log(6, server()->id . ":" . "Komut Çalıştırma");
return $output;
......
......@@ -7,6 +7,7 @@ use Illuminate\Http\Request;
use App\UserSettings;
use App\Permission;
use App\Server;
use App\ServerLog;
use App\Classes\Sandbox\PHPSandbox;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
......@@ -50,6 +51,8 @@ class MainController extends Controller
? request('target_function')
: 'index';
ServerLog::new(extension()->name, $page);
list($output, $timestamp) = $this->executeSandbox($page);
system_log(7, "EXTENSION_RENDER_PAGE", [
......
......@@ -642,8 +642,8 @@ class OneController extends Controller
{
return view('l.table', [
"value" => ServerLog::retrieve(true),
"title" => ["Başlık", "Açıklama", "Kullanıcı"],
"display" => ["command", "output", "username"],
"title" => ["Başlık", "Açıklama", "Kullanıcı","İşlem Tarihi"],
"display" => ["command", "output", "username","created_at"],
]);
}
......
......@@ -47,6 +47,7 @@ class ServerLog extends Model
continue;
}
$log->username = $user->name;
$log->output = substr($log->output,0,100);
}
return $logs;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment