Wrzuciłem czysty plik:
<?php
//-----------------------------------------------
// (DP30) Custom Page
//-----------------------------------------------
//-----------------------------------------------
// Application
//-----------------------------------------------
// Author: DawPi
// Site: http://www.ipslink.pl/
// Written on: 04 / 02 / 2010
//-----------------------------------------------
// Copyright (C) 2010 DawPi
// All Rights Reserved
//-----------------------------------------------
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class public_core_global_page extends ipsCommand
{
/**
* Class entry point
*
* @access public
* @param object Registry reference
* @return void [Outputs to screen/redirects]
*/
public function doExecute( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
//-----------------------------------------
// What to do?
//-----------------------------------------
switch( $this->request['do'] )
{
default:
$this->showPage();
}
//-----------------------------------------
// If we have any HTML to print, do so...
//-----------------------------------------
$this->output .= "<div id='board_footer'><p id='copyright'>Powered by (DP30) Custom Page © ".date('Y')." <a target='_blank' href='http://www.forum.invisionize.pl/'>DawPi</a></p></div>";
$this->registry->getClass('output')->addContent( $this->output );
$this->registry->getClass('output')->sendOutput( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) );
}
/**
* Show custom page
*
* @access public
* @return string HTML Page
*/
public function showPage()
{
/* Set title */
$this->registry->output->setTitle( 'Custom Page by DawPi' );
/* Set navigation */
$this->registry->output->addNavigation( 'Nazwa strony w nawigacji', '' );
/* Add content */
$this->output = 'To jest treść testowej strony';
}
} // End of class