phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.6,1.7


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.6,1.7
Date: Sun, 24 Feb 2002 19:51:57 -0500

Update of /cvsroot/phpgroupware/wcm/inc
In directory subversions:/tmp/cvs-serv7859/inc

Modified Files:
        class.bosite.inc.php 
Log Message:
Add some expiration code into the display template; array data for 
site,page,element
now written to output file within php tags



Index: class.bosite.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/inc/class.bosite.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** class.bosite.inc.php        24 Feb 2002 23:11:18 -0000      1.6
--- class.bosite.inc.php        25 Feb 2002 00:51:52 -0000      1.7
***************
*** 50,54 ****
                var $site = array();
  
!               var $phpheader = '<?php /* This is where some code will go to 
determine page and element expiration. */ ?>';
  
                function bosite($session=False)
--- 50,54 ----
                var $site = array();
  
!               var $phpfooter = '<?php /* This is where some code will go to 
determine page and element expiration. */ ?>';
  
                function bosite($session=False)
***************
*** 247,258 ****
                                $tpl->set_var('right_width',   $site_right ? 
$site_right : '130');
  
!                               $out = '<?php /* SITE:' . 
$this->site['site_name']
!                                       . ';PAGE:' . $page['page_name']
!                                       . ';PAGE_VERSION:' . 
$page['page_version']
!                                       . ';PAGEDATE:' . time()
!                                       . ';PAGEEXPIRE:' . $page['page_expire']
!                                       . ' */ ?>' . "\n";
                                /* add our expiration source code (coming soon) 
*/
-                               $out .= $this->phpheader;
  
                                /* Read and parse page header */
--- 247,256 ----
                                $tpl->set_var('right_width',   $site_right ? 
$site_right : '130');
  
!                               $out = '<?php $site = "' . 
$this->site['site_name'] . '"; '
!                                       . '$page = array("name" => "' . 
$page['page_name'] . '", '
!                                       . '"version" => "' . 
$page['page_version'] . '", '
!                                       . '"date" => "' . time() . '", '
!                                       . '"expire" => "' . 
$page['page_expire'] . '"); ?>' . "\n";
                                /* add our expiration source code (coming soon) 
*/
  
                                /* Read and parse page header */
***************
*** 276,284 ****
                                                {
                                                        $val['element_expire'] 
= $val['element_expire'] ? $val['element_expire'] : '0';
!                                                       $out .= "\n" . '<?php 
/* ELE:' . $val['element_name']
!                                                       . ';ELE_VERSION:' . 
$val['element_version']
!                                                       . ';ELEDATE:' . time()
!                                                       . ';ELEEXPIRE:' . 
$val['element_expire']
!                                                       . ' */ ?>' . "\n";
  
                                                        
switch($val['element_type'])
--- 274,281 ----
                                                {
                                                        $val['element_expire'] 
= $val['element_expire'] ? $val['element_expire'] : '0';
!                                                       $out .= '<?php $ele[] = 
array("name" => "' . $val['element_name'] . '", '
!                                                       . '"version" => "' . 
$val['element_version'] . '", '
!                                                       . '"date" => "' . 
time() . '", '
!                                                       . '"expire" => "' . 
$val['element_expire'] . '"); ?>' . "\n";
  
                                                        
switch($val['element_type'])
***************
*** 326,329 ****
--- 323,329 ----
                                /* end of page body */
                                $out .= $tpl->fp('out','framing_table_end');
+ 
+                               /* add our expiration source code (coming soon) 
*/
+                               $out .= $this->phpfooter;
  
                                /* Clean out the ^M for unix */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]