remove transphoto integration

пока добро не дали
This commit is contained in:
themohooks 2024-10-05 13:05:00 +03:00
parent d63f0f4df1
commit 69f69a13e7

View file

@ -5,15 +5,6 @@ use \App\Models\{User, UserCTTC};
if (explode('@', $_SERVER['REQUEST_URI'])[1] === 'transphoto.org') {
$userprofile = new UserCTTC((int)explode('/', explode('@', $_SERVER['REQUEST_URI'])[0])[2]);
$usercttc = True;
$city = $userprofile->i('city');
$regdate = $userprofile->i('regdate');
$photourl = $userprofile->i('photourl');
$about = $userprofile->i('about');
$birthdate = $userprofile->i('birthdate');
} else {
$userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]); $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
$usercttc = False; $usercttc = False;
$city = htmlspecialchars(json_decode($userprofile->i('content'), true)['aboutlive']['value']); $city = htmlspecialchars(json_decode($userprofile->i('content'), true)['aboutlive']['value']);
@ -21,7 +12,7 @@ if (explode('@', $_SERVER['REQUEST_URI'])[1] === 'transphoto.org') {
$regdate = Date::zmdate($userprofile->content('regdate')); $regdate = Date::zmdate($userprofile->content('regdate'));
$about = json_decode($userprofile->i('content'), true)['aboutmemo']['value']; $about = json_decode($userprofile->i('content'), true)['aboutmemo']['value'];
$birthdate = json_decode($userprofile->i('content'), true)['aboutbirthday']['value']; $birthdate = json_decode($userprofile->i('content'), true)['aboutbirthday']['value'];
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ru"> <html lang="ru">