phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgroupware archiveTemplate.php,1.1.2.1,1.1.2.2


From: Pim Snel <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgroupware archiveTemplate.php,1.1.2.1,1.1.2.2
Date: Tue, 22 Apr 2003 19:53:59 -0400

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv11801

Modified Files:
      Tag: Version-0_9_16-branch
        archiveTemplate.php 
Log Message:
My thirst commit, yeh! New standard document header, with licence and usage

Index: archiveTemplate.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/Attic/archiveTemplate.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** archiveTemplate.php 18 Apr 2003 18:46:57 -0000      1.1.2.1
--- archiveTemplate.php 22 Apr 2003 23:53:57 -0000      1.1.2.2
***************
*** 1,33 ****
  <?php
! 
!       /************ description ***************
!       *
!       * this script quickly archives all 
!       * templates files of one selected 
!       * template so that this archive can be 
!       * submitted                     
!       *
!       * this script is published under GPL v2
!       * written by Pim Snel, address@hidden
!       *
!       ****************************************/
! 
!       /**************** help ******************
!       put this file in the root of the 
!       phpGW-dir and check the tar-path in the
!       config-vars
! 
!       if your running in save-mode copy tar
!       to your phpGW-root directory.
! 
!       have you done this.. then point your 
!       browser to http://......./archiveLang.php
!       and submit your lang
!       ****************************************/
  
        /************ configuration ************/
  
        $tar_location='tar';
! 
  
        /************ end configvars ************/
--- 1,27 ----
  <?php
!       
/**************************************************************************\
!       * phpGroupWare                                                          
   *
!       * http://www.phpgroupware.org                                           
   *
!       * This file written by Pim Snel <address@hidden>                        
 *
!       * --------------------------------------------                          
   *
!       *  This program is free software; you can redistribute it and/or modify 
it *
!       *  under the terms of the GNU General Public License as published by 
the   *
!       *  Free Software Foundation; either version 2 of the License, or (at 
your  *
!       *  option) any later version.                                           
   *
!       * --------------------------------------------                          
   *
!       * this script quickly archives all templates files of one selected      
   *
!       * template so that this archive can be submitted                        
   *
!       *                                                                       
   *
!       * ----- usage -----                                                     
   *
!       * put this file in the root of the phpGW-dir and check the tar-path in 
the *
!       * config variables if your running in save-mode copy tar to your        
   *
!       * phpGW-root directory. After have you done this.then point your 
browser   *
!       * to http://.../archiveLang.php and submit your lang                    
   *
!       
\**************************************************************************/
  
        /************ configuration ************/
  
        $tar_location='tar';
!       $compression='bz2'; # bz2 or gz
  
        /************ end configvars ************/
***************
*** 63,70 ****
                        }
  
! 
                        $today = date( "Ymd", time() );
!                       $archive=$target_template.'-'.$today.'.tar.bz2'; 
!                       $exec = $tar_location.' cvjf '. $archive .' '. $files;
                        echo $exec;
                
--- 57,74 ----
                        }
  
!                       if($compression=='bz2')
!                       {
!                               $tar_options = 'cvjf';
!                       }
!                       else
!                       {
!                               $tar_options = 'cvzf';
!                               $compression='gz';
!                       }
!                               
!                       
                        $today = date( "Ymd", time() );
!                       
$archive=$target_template.'-'.$today.'.tar.'.$compression; 
!                       $exec = $tar_location .' '. $tar_options .' '.$archive 
.' '. $files;
                        echo $exec;
                
***************
*** 75,79 ****
                        else
                        {
!                               echo 'Error. done nothing. Check if this 
scripts is allowed to write';
                        }
                        
--- 79,83 ----
                        else
                        {
!                               echo '<p><b>Error. done nothing. Check if this 
scripts is allowed to write</b></p>';
                        }
                        
***************
*** 81,85 ****
                else
                {
!                       echo 'Error. done nothing. Check if this scripts really 
is in the root of a phpGW-directory';
  
                }
--- 85,89 ----
                else
                {
!                       echo '<P><b>Error. done nothing. Check if this scripts 
really is in the root of a phpGW-directory</b></p>';
  
                }





reply via email to

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