[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.2,1.3
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.2,1.3 |
Date: |
Fri, 15 Feb 2002 00:27:32 -0500 |
Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv19645
Modified Files:
class.soetemplate.inc.php
Log Message:
added check if webserver has write-permission for dumping
$app/setup/etemplates.inc.php and renaming file to old first.
Index: class.soetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.soetemplate.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.soetemplate.inc.php 14 Feb 2002 14:06:30 -0000 1.2
--- class.soetemplate.inc.php 15 Feb 2002 05:27:30 -0000 1.3
***************
*** 388,392 ****
$this->db->query("SELECT * FROM $this->db_name WHERE
et_name LIKE '$app%'");
! if (!($f = fopen($path =
PHPGW_SERVER_ROOT.'/'.$app.'/setup/etemplates.inc.php','w')))
{
return 0;
--- 388,403 ----
$this->db->query("SELECT * FROM $this->db_name WHERE
et_name LIKE '$app%'");
! $dir = PHPGW_SERVER_ROOT . "/$app/setup";
! if (!is_writeable($dir))
! {
! return "Error: webserver is not allowed to
write into '$dir' !!!";
! }
! $file = "$dir/etemplates.inc.php";
! if (file_exists($file))
! {
! rename($file,"$dir/etemplates.old.inc.php");
! }
!
! if (!($f = fopen($file,'w')))
{
return 0;
***************
*** 405,409 ****
fclose($f);
! return "$n eTemplates for Application '$app' dumped to
'$path'";
}
--- 416,420 ----
fclose($f);
! return "$n eTemplates for Application '$app' dumped to
'$file'";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.2,1.3,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: etemplate/inc class.sbox2.inc.php,1.1.1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: email/inc class.bofilters.inc.php,NONE,1.12.2.1 class.uifilters.inc.php,NONE,1.10.2.1 class.bocompose.inc.php,1.1.2.1,1.1.2.2 class.uiindex.inc.php,1.17,1.17.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: etemplate/inc class.sbox2.inc.php,1.1.1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: email/inc class.bofilters.inc.php,NONE,1.12.2.1 class.uifilters.inc.php,NONE,1.10.2.1 class.bocompose.inc.php,1.1.2.1,1.1.2.2 class.uiindex.inc.php,1.17,1.17.2.1
- Index(es):