includes/pageprocess.php
changeset 25 08d027882993
parent 24 9ecc94c4c7f5
child 26 acf6f55bf023
equal deleted inserted replaced
24:9ecc94c4c7f5 25:08d027882993
   310     if ( $this->revision_id )
   310     if ( $this->revision_id )
   311     {
   311     {
   312       echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;"><b>Notice:</b><br />The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.<br /><a href="'.makeUrlNS($this->namespace, $this->page_id).'" onclick="ajaxReset(); return false;">View current version</a>  |  <a href="'.makeUrlNS($this->namespace, $this->pageid, 'do=rollback&amp;id='.$this->revision_id).'" onclick="ajaxRollback(\''.$this->revision_id.'\')">Restore this version</a></div><br />';
   312       echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;"><b>Notice:</b><br />The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.<br /><a href="'.makeUrlNS($this->namespace, $this->page_id).'" onclick="ajaxReset(); return false;">View current version</a>  |  <a href="'.makeUrlNS($this->namespace, $this->pageid, 'do=rollback&amp;id='.$this->revision_id).'" onclick="ajaxRollback(\''.$this->revision_id.'\')">Restore this version</a></div><br />';
   313     }
   313     }
   314     
   314     
   315     $text = '?>' . RenderMan::render($text);
   315     if ( $incl_inner_headers )
       
   316     {
       
   317       $text = '?>' . RenderMan::render($text);
       
   318     }
       
   319     else
       
   320     {
       
   321       $text = '?>' . $text;
       
   322     }
   316     // echo('<pre>'.htmlspecialchars($text).'</pre>');
   323     // echo('<pre>'.htmlspecialchars($text).'</pre>');
   317     eval ( $text );
   324     eval ( $text );
   318     
   325     
   319     if ( $incl_inner_headers )
   326     if ( $incl_inner_headers )
   320     {
   327     {