Stack Frames
#0
{main}
plugins/vinexel/vision-serve/deeper/Modules/Database/Flex/Model/BaseModel.php : 34
app
#1
Deeper\Modules\Database\Flex\Model\BaseModel->query
/app/app/Flymetrade/Models/Admin/BrokerModel.php : 1341
app
#2
Flymetrade\Models\Admin\BrokerModel->getBrokerByName
/app/app/Flymetrade/Models/Admin/BrokerModel.php : 1359
app
#3
Flymetrade\Models\Admin\BrokerModel->getJustmarkets
/app/app/Flymetrade/Services/HomepageService.php : 41
app
#4
Flymetrade\Services\HomepageService->getHomepageData
/app/app/Flymetrade/Controllers/HomeController.php : 29
app
#5
Flymetrade\Controllers\HomeController->index
[internal code]
vendor
#6
call_user_func_array
plugins/vinexel/vision-serve/core/Modules/Router/Router.php : 594
app
#7
Vinexel\Modules\Router\Router::callAction
plugins/vinexel/vision-serve/core/Modules/Router/Router.php : 470
app
#8
Vinexel\Modules\Router\Router::{closure:Vinexel\Modules\Router\Router::handleMatch():470}
plugins/vinexel/vision-serve/core/Modules/Router/Router.php : 489
app
#9
Vinexel\Modules\Router\Router::handleMatch
plugins/vinexel/vision-serve/core/Modules/Router/Router.php : 356
app
#10
Vinexel\Modules\Router\Router::dispatch
plugins/vinexel/vision-serve/core/Modules/Router/RouterInitializer.php : 76
app
#11
Vinexel\Modules\Router\RouterInitializer::{closure:Vinexel\Modules\Router\RouterInitializer::run():74}
plugins/vinexel/vision-serve/core/Modules/Http/Middleware/ApiMiddleware.php : 17
app
#12
Vinexel\Modules\Http\Middleware\ApiMiddleware->handle
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php : 67
app
#13
Vinexel\Modules\Http\Kernel->{closure:{closure:Vinexel\Modules\Http\Kernel::handle():67}:67}
plugins/vinexel/vision-serve/core/Modules/Http/Middleware/TracingMiddleware.php : 33
app
#14
Vinexel\Modules\Http\Middleware\TracingMiddleware->handle
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php : 67
app
#15
Vinexel\Modules\Http\Kernel->{closure:{closure:Vinexel\Modules\Http\Kernel::handle():67}:67}
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php : 69
app
#16
Vinexel\Modules\Http\Kernel->handle
plugins/vinexel/vision-serve/core/Modules/Router/RouterInitializer.php : 74
app
#17
Vinexel\Modules\Router\RouterInitializer::run
plugins/vinexel/vision-serve/core/Modules/RegisterModule.php : 116
app
#18
Vinexel\Modules\RegisterModule->dispatch
/app/system/framework/Application.php : 140
vendor
#19
Vision\Application->run
/app/public/index.php : 89
app
plugins/vinexel/vision-serve/deeper/Modules/Database/Flex/Model/BaseModel.php
Line 34
28
/** @var array<string|int,mixed> */
29
protected array $currentParams = [];
30
protected string $tableName = '';
31
32
public function query(string $query): self
33
{
34
throw new \LogicException('Project models must use Vision\Modules\FlexOrm; raw SQL is not part of the application persistence contract.');
35
}
36
37
public function prepare(string $query): self
38
{
39
throw new \LogicException('Project models must use Vision\Modules\FlexOrm; raw prepared statements are not part of the application persistence contract.');
40
}
/app/app/Flymetrade/Models/Admin/BrokerModel.php
Line 1341
1335
throw $e;
1336
}
1337
}
1338
1339
public function getBrokerByName($broker_slug)
1340
{
1341
return $this->query("SELECT * FROM " . $this->table_brokers . " WHERE broker_slug = :broker_slug LIMIT 1")
1342
->bind(':broker_slug', $broker_slug)
1343
->resultSet();
1344
}
1345
1346
1347
public function getExness()
/app/app/Flymetrade/Models/Admin/BrokerModel.php
Line 1359
1353
{
1354
return $this->getBrokerByName('ec-markets');
1355
}
1356
1357
public function getJustmarkets()
1358
{
1359
return $this->getBrokerByName('just-markets');
1360
}
1361
/**
1362
* Get broker details by slug
1363
*
1364
* @param string $slug Broker slug
1365
* @return array Broker details
/app/app/Flymetrade/Services/HomepageService.php
Line 41
35
return array_merge(
36
$this->statsService->getPlatformStats(),
37
[
38
'top_user' => $this->balanceModel->getUsersByBalance(),
39
40
// Broker data
41
'justmarkets_data' => $this->brokerModel->getJustmarkets(),
42
'exness_data' => $this->brokerModel->getExness(),
43
'ecmarkets_data' => $this->brokerModel->getEcmarkets(),
44
45
// Content
46
'donations' => $this->donationService->getProgramData()['donations'],
47
'blogs' => $this->blogService->getBlogListingData()['blogs'],
/app/app/Flymetrade/Controllers/HomeController.php
Line 29
23
use Protection;
24
25
public function index(): void
26
{
27
try {
28
$homepageService = ServiceProvider::getHomepageService();
29
$homepageData = $homepageService->getHomepageData();
30
31
$seo = $this->getSeoData();
32
$data = $this->getData(_lang('page_titles.homepage'), array_merge($homepageData, [
33
'description' => 'Flymetrade adalah ekosistem IB Forex dan teknologi trading Flyme Tyrant untuk rebate, infrastruktur trading, serta pengembangan Expert Advisor dan analytical tools berbantuan AI.',
34
'seo_head' => $seo['seoHeadHtml'],
35
'title' => $seo['seoData']['title'] ?? 'Flymetrade',
[internal code]
Line 0
[Internal code — source not available]
plugins/vinexel/vision-serve/core/Modules/Router/Router.php
Line 594
588
$controllerInstance = Container::resolve($controllerClass);
589
590
if (!method_exists($controllerInstance, $method)) {
591
return self::sendServerError("Method '{$method}' in controller '{$controllerClass}' not found");
592
}
593
594
return call_user_func_array([$controllerInstance, $method], $params);
595
}
596
597
/**
598
* Execute middleware for the current route.
599
*
600
* @param string $key Middleware key
plugins/vinexel/vision-serve/core/Modules/Router/Router.php
Line 470
464
$matches,
465
fn($key) => !is_int($key),
466
ARRAY_FILTER_USE_KEY
467
)
468
);
469
470
$destination = fn () => self::callAction($route['action'], $params, $route['namespace'] ?? self::$namespace);
471
$middleware = array_values((array) ($route['middleware'] ?? []));
472
// API routes always enter the JSON/stateless boundary. Session remains
473
// an explicit route middleware (`api-session`).
474
if (RequestMode::isApiPath((string) ($route['uri'] ?? ''))
475
&& !in_array('api', $middleware, true)) {
476
array_unshift($middleware, 'api');
plugins/vinexel/vision-serve/core/Modules/Router/Router.php
Line 489
483
self::$currentMiddleware[] = (string) $middlewareKey;
484
return self::invokeMiddleware((string) $middlewareKey, $next);
485
};
486
}
487
488
try {
489
return $destination();
490
} catch (\Throwable $exception) {
491
if (RequestMode::isApi($_SERVER)) {
492
self::jsonError('internal_server_error', 'internal_server_error', 500);
493
return null;
494
}
495
throw $exception;
plugins/vinexel/vision-serve/core/Modules/Router/Router.php
Line 356
350
}
351
// --- End GoEngine Fast Route Lookup ---
352
353
// Immutable route manifests contain precompiled regexes, but static
354
// paths can bypass PCRE entirely. Global routes retain precedence.
355
if (isset(self::$staticRouteIndex[$requestMethod][$requestUri])) {
356
return self::handleMatch(self::$staticRouteIndex[$requestMethod][$requestUri], []);
357
}
358
359
// Check global routes first (highest priority)
360
foreach (self::$globalRoutes as $index => &$route) {
361
if (!isset($route['regex'])) {
362
$route['regex'] = self::convertToRegex($route['uri']);
plugins/vinexel/vision-serve/core/Modules/Router/RouterInitializer.php
Line 76
70
Request::setInstance($request);
71
$kernel = new Kernel();
72
73
// Jalankan Kernel untuk Middleware Global (Session, CSRF, dll)
74
$kernel->handle($request, function ($request) {
75
// Setelah middleware global lolos, jalankan router
76
Router::dispatch();
77
});
78
}
79
}
plugins/vinexel/vision-serve/core/Modules/Http/Middleware/ApiMiddleware.php
Line 17
11
/** Stateless API boundary: deterministic headers and shared rate limiting. */
12
final class ApiMiddleware
13
{
14
public function handle(Request $request, Closure $next): mixed
15
{
16
if (!$request->isApi()) {
17
return $next($request);
18
}
19
if ($request->getAttribute('_api_boundary') === true) {
20
return $next($request);
21
}
22
$request->setAttribute('_api_boundary', true);
23
header('Content-Type: application/json; charset=utf-8');
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php
Line 67
61
}
62
63
$pipeline = array_merge($this->middleware, $resolved);
64
65
return array_reduce(
66
array_reverse($pipeline),
67
fn($next, $m) => fn($req) => (new $m())->handle($req, $next),
68
$destination
69
)($request);
70
}
71
72
/**
73
* Resolve middleware class by key.
plugins/vinexel/vision-serve/core/Modules/Http/Middleware/TracingMiddleware.php
Line 33
27
28
// Inject into response header
29
header("X-Request-ID: {$requestId}");
30
31
// You could also inject this into a global logger context here if using Monolog
32
33
return $next($request);
34
}
35
}
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php
Line 67
61
}
62
63
$pipeline = array_merge($this->middleware, $resolved);
64
65
return array_reduce(
66
array_reverse($pipeline),
67
fn($next, $m) => fn($req) => (new $m())->handle($req, $next),
68
$destination
69
)($request);
70
}
71
72
/**
73
* Resolve middleware class by key.
plugins/vinexel/vision-serve/core/Modules/Http/Kernel.php
Line 69
63
$pipeline = array_merge($this->middleware, $resolved);
64
65
return array_reduce(
66
array_reverse($pipeline),
67
fn($next, $m) => fn($req) => (new $m())->handle($req, $next),
68
$destination
69
)($request);
70
}
71
72
/**
73
* Resolve middleware class by key.
74
*/
75
public function resolve(string $key): string
plugins/vinexel/vision-serve/core/Modules/Router/RouterInitializer.php
Line 74
68
{
69
$request = new Request();
70
Request::setInstance($request);
71
$kernel = new Kernel();
72
73
// Jalankan Kernel untuk Middleware Global (Session, CSRF, dll)
74
$kernel->handle($request, function ($request) {
75
// Setelah middleware global lolos, jalankan router
76
Router::dispatch();
77
});
78
}
79
}
plugins/vinexel/vision-serve/core/Modules/RegisterModule.php
Line 116
110
* This method executes the routing process and triggers
111
* the onCreate and onFinish lifecycle hooks.
112
*/
113
public function dispatch(): void
114
{
115
// Run the main router
116
RouterInitializer::run();
117
118
// Lifecycle start hook
119
$this->onCreate();
120
121
// Lifecycle finish hook
122
$this->onFinish([
/app/system/framework/Application.php
Line 140
134
if (!$stateless) {
135
Signature::injectHttpHeaders();
136
Signature::injectCookie();
137
}
138
139
// Dispatch the application request
140
$this->dispatch();
141
}
142
143
protected function onFinish(array $info): void
144
{
145
parent::onFinish($info);
146
}
/app/public/index.php
Line 89
83
}
84
};
85
register_shutdown_function($cleanup);
86
87
try {
88
$application = Transmitter::http();
89
$application->run();
90
} finally {
91
$cleanup();
92
}
93
94
// Flush output. The bootstrap's diagnostic probe is useful in server logs,
95
// but it must never become a text node after the document's closing tag: that
Request
| URL | http://flymetrade.com/ |
|---|---|
| Method | GET |
Query Parameters
No query parameters
Headers
| User-Agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
|---|---|
| Accept | */* |
| Accept-Encoding | gzip, br, zstd, deflate |
| Via | 2.0 Caddy |
| X-Forwarded-Proto | https |
| X-Real-Ip | 216.73.216.152 |
| X-Forwarded-For | 216.73.216.152 |
| X-Forwarded-Host | flymetrade.com |
Runtime
| Execution Time | 0.1067s |
|---|---|
| Memory Usage | 4.00 MB |
| PHP Version | 8.5.11 |
| Framework | Vinexel v2.0.0 |
Session Data
| _csrf_token | 80fe984651ede48c4cf20d7cbdd19b0abcbb7d797624aabe1b2565082e037c95 |
|---|---|
| _csrf_token_time | 1795115478 |