* 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 | TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTcyODA2NztzOjQ6Imxhc3QiO2k6MTcxMTcyODA2NztzOjM6Im5vdyI7aToxNzExNzI4MDY3O31zOjY6ImNsaWVudCI7Tzo4OiJzdGRDbGFzcyI6MTp7czo5OiJmb3J3YXJkZWQiO3M6MTI6IjEwMC4yNC4xMi4yMyI7fX1zOjg6InJlZ2lzdHJ5IjtPOjI0OiJKb29tbGFcUmVnaXN0cnlcUmVnaXN0cnkiOjM6e3M6NzoiACoAZGF0YSI7Tzo4OiJzdGRDbGFzcyI6MDp7fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fXM6NDoidXNlciI7TzoyMDoiSm9vbWxhXENNU1xVc2VyXFVzZXIiOjE6e3M6MjoiaWQiO2k6MDt9fX1zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO30= |
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 | www.robertphipps.com |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 100.24.12.23 |
HTTP_X_FORWARDED_HOST | www.robertphipps.com |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_FORWARDED_SERVER | www.robertphipps.com |
HTTP_X_REAL_IP | 100.24.12.23 |
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://www.robertphipps.com/training-courses/230-its-what-you-dont-say-that-matters |
REDIRECT_SCRIPT_URL | /training-courses/230-its-what-you-dont-say-that-matters |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | Zgblw80UpK9hInTZ26ebzAAAAAQ |
REDIRECT_URL | /training-courses/230-its-what-you-dont-say-that-matters |
REDIRECT_isproxyrequest | 1 |
REMOTE_ADDR | 100.24.12.23 |
REMOTE_PORT | 36234 |
REQUEST_METHOD | GET |
REQUEST_SCHEME | http |
REQUEST_URI | /training-courses/230-its-what-you-dont-say-that-matters?format=pdf |
SCRIPT_FILENAME | /home/robertp/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | http://www.robertphipps.com/training-courses/230-its-what-you-dont-say-that-matters |
SCRIPT_URL | /training-courses/230-its-what-you-dont-say-that-matters |
SERVER_ADDR | 5.77.63.165 |
SERVER_ADMIN | webmaster@robertphipps.com |
SERVER_NAME | www.robertphipps.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Europe/London |
UNIQUE_ID | Zgblw80UpK9hInTZ26ebzAAAAAQ |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711728067.1541 |
REQUEST_TIME | 1711728067 |
argv | Array ( [0] => format=pdf ) |
argc | 1 |