Fixed GEOIP path
This commit is contained in:
parent
d8b3d28dd5
commit
5d954fe6b4
|
@ -85,7 +85,7 @@ $utopia->get('/v1/account/sessions')
|
|||
->action(
|
||||
function() use ($response, $user) {
|
||||
$tokens = $user->getAttribute('tokens', []);
|
||||
$reader = new Reader('../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$reader = new Reader(__DIR__ . '/../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$sessions = [];
|
||||
$current = Auth::tokenVerify($tokens, Auth::TOKEN_TYPE_LOGIN, Auth::$secret);
|
||||
$index = 0;
|
||||
|
@ -165,7 +165,7 @@ $utopia->get('/v1/account/security')
|
|||
'account.update.password',
|
||||
]);
|
||||
|
||||
$reader = new Reader('../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$reader = new Reader(__DIR__ . '/../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$output = [];
|
||||
|
||||
foreach($logs as $i => &$log) {
|
||||
|
|
|
@ -17,7 +17,7 @@ $utopia->get('/v1/locale')
|
|||
{
|
||||
$eu = include __DIR__ . '/../config/eu.php';
|
||||
$currencies = include __DIR__ . '/../config/currencies.php';
|
||||
$reader = new Reader('../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$reader = new Reader(__DIR__ . '/../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$output = [];
|
||||
$ip = $request->getIP();
|
||||
$time = (60 * 60 * 24 * 45); // 45 days cache
|
||||
|
|
|
@ -170,7 +170,7 @@ $utopia->get('/v1/users/:userId/sessions')
|
|||
}
|
||||
|
||||
$tokens = $user->getAttribute('tokens', []);
|
||||
$reader = new Reader('../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$reader = new Reader(__DIR__ . '/../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$sessions = [];
|
||||
$index = 0;
|
||||
$countries = Locale::getText('countries');
|
||||
|
@ -239,7 +239,7 @@ $utopia->get('/v1/users/:userId/logs')
|
|||
|
||||
$logs = $au->getLogsByUser($user->getUid(), $user->getAttribute('type', 0));
|
||||
|
||||
$reader = new Reader('../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$reader = new Reader(__DIR__ . '/../app/db/GeoLite2/GeoLite2-Country.mmdb');
|
||||
$output = [];
|
||||
|
||||
foreach($logs as $i => &$log) {
|
||||
|
|
Loading…
Reference in a new issue