sl >= 4 && (SSFW_ONLY || $settings['show-r15'] == 'off')) return 'r15'; else if ($artwork->xRestrict == 1 && (SFW_ONLY || $settings['show-r18'] == 'off')) return 'r18'; else if ($artwork->xRestrict == 2 && (SFW_ONLY || $settings['show-r18g'] == 'off')) return 'r18g'; else if ($artwork->aiType == 2 && $settings['show-aigc'] == 'off') return 'aigc'; return false; } function die_with_message($status_code, $message) { http_response_code($status_code); $title = get_string('error'); render_page_header($title); ?>

0) echo '', $page_count - 1); } function format_date($date_string, $timezone = 'UTC') { global $settings; $date = new DateTime($date_string, new DateTimeZone($timezone)); $date->setTimezone(new DateTimeZone($settings['timezone'])); return $date->format(get_string('date-format')); }