mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
remove transphoto integration
пока добро не дали
This commit is contained in:
parent
d63f0f4df1
commit
69f69a13e7
1 changed files with 8 additions and 17 deletions
|
@ -5,23 +5,14 @@ use \App\Models\{User, UserCTTC};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (explode('@', $_SERVER['REQUEST_URI'])[1] === 'transphoto.org') {
|
$userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
||||||
$userprofile = new UserCTTC((int)explode('/', explode('@', $_SERVER['REQUEST_URI'])[0])[2]);
|
$usercttc = False;
|
||||||
$usercttc = True;
|
$city = htmlspecialchars(json_decode($userprofile->i('content'), true)['aboutlive']['value']);
|
||||||
$city = $userprofile->i('city');
|
$photourl = $userprofile->i('photourl');
|
||||||
$regdate = $userprofile->i('regdate');
|
$regdate = Date::zmdate($userprofile->content('regdate'));
|
||||||
$photourl = $userprofile->i('photourl');
|
$about = json_decode($userprofile->i('content'), true)['aboutmemo']['value'];
|
||||||
$about = $userprofile->i('about');
|
$birthdate = json_decode($userprofile->i('content'), true)['aboutbirthday']['value'];
|
||||||
$birthdate = $userprofile->i('birthdate');
|
|
||||||
} else {
|
|
||||||
$userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
|
||||||
$usercttc = False;
|
|
||||||
$city = htmlspecialchars(json_decode($userprofile->i('content'), true)['aboutlive']['value']);
|
|
||||||
$photourl = $userprofile->i('photourl');
|
|
||||||
$regdate = Date::zmdate($userprofile->content('regdate'));
|
|
||||||
$about = json_decode($userprofile->i('content'), true)['aboutmemo']['value'];
|
|
||||||
$birthdate = json_decode($userprofile->i('content'), true)['aboutbirthday']['value'];
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
|
|
Loading…
Reference in a new issue