Tên tài khoản:
Mật khẩu:
Đăng Nhập
api[var]
IP của bạn là: {{api.browser.ip}}
$twig->addExtension(new FormURI()); if ($type_db == 'phpSQLite3') { $twig->addExtension(new phpSQLite3()); } else $twig->addExtension(new QuerySQL()); $twig->addExtension(new SomeFunctions()); $twig->addExtension(new SomeFilter()); $twigrender = $twig->render($pathTWIG, [ 'dir' => ['css' => '/', 'js' => '/', 'img' => '/'] ]);
$FormURI = new FormURI(); $SomeFunctions = new SomeFunctions(); if ($type_db == 'phpSQLite3') { $QuerySQL = new phpSQLite3(); } else $QuerySQL = new QuerySQL(); $twig->addExtension($FormURI); $twig->addExtension($QuerySQL); $twig->addExtension($SomeFunctions); $twig->addExtension(new SomeFilter()); $twigrender = $twig->render($pathTWIG, [ 'dir' => ['css' => '/', 'js' => '/', 'img' => '/'], 'api' => [ 'is_login' => $GLOBALS['QuerySQL']->is_login(), 'uri' => [ 'segments' => $GLOBALS['FormURI']->get_uri_segments(), 'current' => $GLOBALS['FormURI']->current_url() ], 'browser' => [ 'ip' => $GLOBALS['SomeFunctions']->ip(), 'user_agent' => $GLOBALS['SomeFunctions']->user_agent() ], ] ]);