switch ($vertex->idSCHEMAVertex) { case self::ARTIST_VERTEX: $artists[] = $relations; break; case self::VENUES_VERTEX: $venue[] = $relations; break; case self::EVENT_TYPE_VERTEX: $eventType = $relations; break; } } $exhibitionType = (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual'); if (count($artists) > 1) { $exhibitionType = (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva'); } $expo_h1=$expo_h2=''; // print_r($event); die; $title = $event['displayName'] ? $event['displayName'] : $artists[0]['displayName']; $originalTitle = $event['displayName'] ? $event['displayName'] : $exhibitionType; $internalTitle = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : $originalTitle; if ($event['type'] == 'exhibition' || !$eventType) { //$type = !$eventType ? (LANGUAGE == en_US ? 'Exhibition' : 'Exposição') : $eventType['displayName']; $type = ( count($artists) == 1 ? (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual') : (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') ) ; //wacto $link = (LANGUAGE == en_US ? '/en' : '') . '/exposicoes/' . $id; if (count($artists) == 1) { $title = $artists[0]['displayName']; $expo_h1 = $artists[0]['displayName']; $expo_h2 = ($event['displayName'] ? $event['displayName'] : (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual')); } else { $expo_h1 = $event['displayName']; $expo_h2 = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : ''; } } else { $type = $eventType['displayName']; $link = (LANGUAGE == en_US ? '/en' : '') . '/agenda/' . $id; } if (empty($expo_h1)) {
switch ($vertex->idSCHEMAVertex) { case self::ARTIST_VERTEX: $artists[] = $relations; break; case self::VENUES_VERTEX: $venue[] = $relations; break; case self::EVENT_TYPE_VERTEX: $eventType = $relations; break; } } $exhibitionType = (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual'); if (count($artists) > 1) { $exhibitionType = (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva'); } $expo_h1=$expo_h2=''; // print_r($event); die; $title = $event['displayName'] ? $event['displayName'] : $artists[0]['displayName']; $originalTitle = $event['displayName'] ? $event['displayName'] : $exhibitionType; $internalTitle = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : $originalTitle; if ($event['type'] == 'exhibition' || !$eventType) { //$type = !$eventType ? (LANGUAGE == en_US ? 'Exhibition' : 'Exposição') : $eventType['displayName']; $type = ( count($artists) == 1 ? (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual') : (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') ) ; //wacto $link = (LANGUAGE == en_US ? '/en' : '') . '/exposicoes/' . $id; if (count($artists) == 1) { $title = $artists[0]['displayName']; $expo_h1 = $artists[0]['displayName']; $expo_h2 = ($event['displayName'] ? $event['displayName'] : (LANGUAGE == en_US ? "Solo exhibition" : 'Exposição individual')); } else { $expo_h1 = $event['displayName']; $expo_h2 = count($artists) > 1 ? (LANGUAGE == en_US ? "Collective exhibition" : 'Exposição coletiva') : ''; } } else { $type = $eventType['displayName']; $link = (LANGUAGE == en_US ? '/en' : '') . '/agenda/' . $id; } if (empty($expo_h1)) {
private $vertex; public function __construct() { global $hg; $this->hg = $hg; } public function handle($routes, $id) { if (in_array($routes->getPath(), ['/exposicoes/', '/en/exposicoes/'])) { $template = $this::TEMPLATE_EXHIBITION; } else { $template = $this::TEMPLATE_SCHEDULE; } $content = ContentService::getContent($template, $routes); $content = EventModel::getEventDetail($id, $content); $relateds = LabelModel::getRelatedContentByContentId($id); $content = str_replace('[#related#]', $relateds, $content); http_response_code(200); echo $content; } }
} if (array_key_exists($path, $this->routes[$this->method])) { $handler = new $this->routes[$this->method][$path]; $language = $this->variables[$this->method][$path]["language"]; setlocale(LC_TIME, $language . '.utf-8'); define('LANGUAGE', constant($language)); $handler->handle($this); return; } foreach ($this->regex[$this->method] as $key => $regex) { preg_match_all($regex, $path, $matches, PREG_SET_ORDER, 0); if ($matches) { $this->path = $key; $handler = new $this->routes[$this->method][$key]; $language = $this->variables[$this->method][$key]["language"]; setlocale(LC_TIME, $language . '.utf-8'); define('LANGUAGE', constant($language)); $handler->handle($this, $matches[0][2]); return; } } $this->show404(); } private function show404() { http_response_code(404); echo ContentService::getContent('template/404.html'); die(); } }
$routes->addRoute('/en/agenda', 'App\Handler\ScheduleHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/agenda/[name]', 'App\Handler\EventHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/artistas', 'App\Handler\ArtistsHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/artistas/[name]', 'App\Handler\ArtistHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/enunciados', 'App\Handler\EnunciadosHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/enunciados/[name]', 'App\Handler\EnunciadoHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/exposicoes', 'App\Handler\ExhibitionHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/exposicoes/[name]', 'App\Handler\EventHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/multimidia', 'App\Handler\MultimediaHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/planeje-sua-visita', 'App\Handler\VisitHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/post/[name]', 'App\Handler\PostHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/educacao', 'App\Handler\EducationProjectHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/publicacoes', 'App\Handler\PublicationsHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/relacoes', 'App\Handler\LabelsHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/relacoes/[name]', 'App\Handler\LabelHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/en/sobrea34', 'App\Handler\AboutHandler', 'GET', ['language' => 'en_US']); $routes->addRoute('/search', 'App\Handler\SearchHandler', 'POST', ['language' => 'pt_BR']); $routes->run();
<?php ob_start('ob_gzhandler'); // Set Cache-Control header header("Cache-Control: private, max-age=186400"); require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/config/config.development.php'; require __DIR__ . '/config/config.php'; require __DIR__ . '/config/config.mercurio.php'; require __DIR__ . '/config/config.routes.php'; ob_end_flush();
Key | Value |
REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID | Zga48-HTEThcrLKBVRJKVgAAAAc |
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URL | /exposicoes/7453 |
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URI | http://34.bienal.org.br/exposicoes/7453 |
REDIRECT_REDIRECT_REDIRECT_STATUS | 200 |
REDIRECT_REDIRECT_UNIQUE_ID | Zga48-HTEThcrLKBVRJKVgAAAAc |
REDIRECT_REDIRECT_SCRIPT_URL | /exposicoes/7453 |
REDIRECT_REDIRECT_SCRIPT_URI | http://34.bienal.org.br/exposicoes/7453 |
REDIRECT_REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | Zga48-HTEThcrLKBVRJKVgAAAAc |
REDIRECT_SCRIPT_URL | /exposicoes/7453 |
REDIRECT_SCRIPT_URI | http://34.bienal.org.br/exposicoes/7453 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | Zga48-HTEThcrLKBVRJKVgAAAAc |
SCRIPT_URL | /exposicoes/7453 |
SCRIPT_URI | http://34.bienal.org.br/exposicoes/7453 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | 34.bienal.org.br |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips |
SERVER_NAME | 34.bienal.org.br |
SERVER_ADDR | 10.16.64.5 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.238.64.201 |
DOCUMENT_ROOT | /var/www/html/fbsp.org.br |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /var/www/html/fbsp.org.br |
SERVER_ADMIN | root@localhost |
SCRIPT_FILENAME | /var/www/html/fbsp.org.br/mercuriohg/modules/34bienal/index.php |
REMOTE_PORT | 44944 |
REDIRECT_URL | /index.php |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /exposicoes/7453 |
SCRIPT_NAME | /mercuriohg/modules/34bienal/index.php |
PHP_SELF | /mercuriohg/modules/34bienal/index.php |
REQUEST_TIME_FLOAT | 1711716595.668 |
REQUEST_TIME | 1711716595 |