HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/proundcontra.mosmuc.de/pages/page.php
<?php
/*
 * Basic page class.
 */
class Page
{
    public function __construct($row)
    {
        global $sRequest, $sUser;

        $this->templateFile = $row->templateFile ?? '';
        $this->pageTitle    = $row->pageTitle ?? '';
        $this->error        = '';
        $this->notice       = '';
        $this->shortUrl     = '';
    }

    /*
     * Returns true if and only if $sUser can view this page
     */
    public function canView()
    {
        return true;
    }

    /*
     * Returns the HTML title of this page
     */
    public function title()
    {
        global $sTemplate;
        return $sTemplate->getString("HTML_META_TITLE");
    }

    public function templateFile()
    {
        return $this->templateFile;
    }

    protected function setError($error)
    {
        $this->error = $error;
    }

    public function error()
    {
        return $this->error;
    }

    protected function setNotice($notice)
    {
        $this->notice = $notice;
    }

    public function notice()
    {
        return $this->notice;
    }

    public function setShortUrl($url)
    {
        $this->shortUrl = $url;
    }

    public function shortUrl()
    {
        // Check if SHORTURL_BASE is defined to avoid notices in PHP 8
        if (!defined('SHORTURL_BASE') || !SHORTURL_BASE) {
            return "";
        }
        return $this->shortUrl;
    }

    public function pageTitle()
    {
        return $this->pageTitle;
    }

    public function getQuestion()
    {
        return false;
    }

    protected $templateFile;
    protected $pageTitle;
    protected $error;
    protected $notice;
    protected $shortUrl;
}
?>