Exemplo n.º 1
0
 function init(&$page)
 {
     $this->_page =& $page;
     $this->_header =& AMPContent_Header::instance($page);
     $this->initTemplate();
 }
Exemplo n.º 2
0
 function &AMP_getHeader()
 {
     if (defined('AMP_USERMODE_ADMIN') && AMP_USERMODE_ADMIN) {
         require_once 'AMP/System/Header.inc.php';
         return AMPSystem_Header::instance();
     }
     require_once 'AMP/Content/Header.inc.php';
     require_once 'AMP/Content/Page.inc.php';
     return AMPContent_Header::instance(AMPContent_Page::instance());
 }