* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.view');
/**
* HTML Article View class for the Content component
*
* @package Joomla
* @subpackage Content
* @since 1.5
*/
class ContentViewArticle extends JView
{
function display($tpl = null)
{
global $mainframe;
$user =& JFactory::getUser();
$dispatcher =& JDispatcher::getInstance();
// Initialize some variables
$article = & $this->get( 'Article' );
$params = & $article->parameters;
// Create a user access object for the current user
$access = new stdClass();
$access->canEdit = $user->authorize('com_content', 'edit', 'content', 'all');
$access->canEditOwn = $user->authorize('com_content', 'edit', 'content', 'own');
$access->canPublish = $user->authorize('com_content', 'publish', 'content', 'all');
// Check to see if the user has access to view the full article
$aid = $user->get('aid');
*
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
}
// Propagate error to the next handler.
if ($this->platformExceptionHandler) {
call_user_func_array($this->platformExceptionHandler, [&$exception]);
}
}
/**
* Special case to deal with Fatal errors and the like.
*/
public function handleShutdown()
{
$handler = $this->whoopsShutdownHandler;
$error = $this->getLastError();
// Ignore core warnings and errors.
if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
$handler();
}
}
}
Key | Value |
format |
Key | Value |
joomla | TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTcyODA1MDtzOjQ6Imxhc3QiO2k6MTcxMTcyODA1MDtzOjM6Im5vdyI7aToxNzExNzI4MDUwO31zOjY6ImNsaWVudCI7Tzo4OiJzdGRDbGFzcyI6MTp7czo5OiJmb3J3YXJkZWQiO3M6MTM6IjQ0LjIwMC40OS4xOTMiO319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjA6e31zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO31zOjQ6InVzZXIiO086MjA6Ikpvb21sYVxDTVNcVXNlclxVc2VyIjoxOntzOjI6ImlkIjtpOjA7fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9 |
Key | Value |
CONTEXT_DOCUMENT_ROOT | /home/robertp/public_html |
CONTEXT_PREFIX | |
DOCUMENT_ROOT | /home/robertp/public_html |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_AUTHORIZATION | |
HTTP_HOST | robertphipps.com |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 44.200.49.193 |
HTTP_X_FORWARDED_HOST | robertphipps.com |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_FORWARDED_SERVER | robertphipps.com |
HTTP_X_REAL_IP | 44.200.49.193 |
PATH | /bin:/usr/bin |
PHP_INI_SCAN_DIR | /opt/cpanel/ea-php80/root/etc:/opt/cpanel/ea-php80/root/etc/php.d:. |
QUERY_STRING | format=pdf |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_QUERY_STRING | format=pdf |
REDIRECT_SCRIPT_URI | http://robertphipps.com/component/content/article/42-hypnotherapy-testimonials/86-jill |
REDIRECT_SCRIPT_URL | /component/content/article/42-hypnotherapy-testimonials/86-jill |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgblsrYIJcuYM5tdYojvBwAAAAw |
REDIRECT_URL | /component/content/article/42-hypnotherapy-testimonials/86-jill |
REDIRECT_isproxyrequest | 1 |
REMOTE_ADDR | 44.200.49.193 |
REMOTE_PORT | 41516 |
REQUEST_METHOD | GET |
REQUEST_SCHEME | http |
REQUEST_URI | /component/content/article/42-hypnotherapy-testimonials/86-jill?format=pdf |
SCRIPT_FILENAME | /home/robertp/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | http://robertphipps.com/component/content/article/42-hypnotherapy-testimonials/86-jill |
SCRIPT_URL | /component/content/article/42-hypnotherapy-testimonials/86-jill |
SERVER_ADDR | 5.77.63.165 |
SERVER_ADMIN | webmaster@robertphipps.com |
SERVER_NAME | robertphipps.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Europe/London |
UNIQUE_ID | ZgblsrYIJcuYM5tdYojvBwAAAAw |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711728050.8381 |
REQUEST_TIME | 1711728050 |
argv | Array ( [0] => format=pdf ) |
argc | 1 |