Changeset 791 for trunk/Application


Ignore:
Timestamp:
Jan 22, 2016, 5:31:05 PM (9 years ago)
Author:
chronos
Message:
  • Updated: Common package.
Location:
trunk/Application
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Application/System.php

    r790 r791  
    1010include_once(dirname(__FILE__).'/UpdateTrace.php');
    1111include_once(dirname(__FILE__).'/View.php');
     12include_once(dirname(__FILE__).'/DefaultConfig.php');
    1213
    1314class Core extends Application
     
    2627  var $Setup;
    2728  var $CommandLine;
     29  var $PageHeaders;
    2830
    2931  function __construct()
     
    4042      $this->RootURLFolder = substr($this->RootURLFolder, 0, -10);
    4143    $this->CommandLine = array();
     44    $this->PageHeaders = array();
    4245  }
    4346
     
    228231    $this->Bars[$BarName][$ItemName] = $Callback;
    229232  }
     233
     234  function RegisterPageHeader($Name, $Callback)
     235  {
     236    $this->PageHeaders[$Name] = $Callback;
     237  }
    230238}
    231239
  • trunk/Application/Version.php

    r789 r791  
    11<?php
    22
    3 $Revision = 789; // Subversion revision
     3$Revision = 790; // Subversion revision
    44$DatabaseRevision = 785; // SQL structure revision
    5 $ReleaseTime = strtotime('2016-01-15');
     5$ReleaseTime = strtotime('2016-01-22');
  • trunk/Application/View.php

    r783 r791  
    8888    '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->Style.'/global.js"></script>'.
    8989    '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title>';
    90     $Output .= $this->System->ModuleManager->Modules['RSS']->ShowRSSHeader();
     90
     91    // Show page headers
     92    $Bar = '';
     93    foreach($this->System->PageHeaders as $Item)
     94      $Output .= call_user_func($Item);
     95
    9196    $Output .= '</head><body'.$BodyParam.'>';
    9297    if($this->BasicHTML == false)
Note: See TracChangeset for help on using the changeset viewer.