summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b13beb)
raw | patch | inline | side by side (parent: 7b13beb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Apr 2006 07:02:11 +0000 (07:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Apr 2006 07:02:11 +0000 (07:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3084 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_debconfTemplate.inc | patch | blob | history |
index 4d94d0e9407f10777580dc05e738c1a325b620ba..d781321ec8daba9f701e18fa561ff5738a966e41 100644 (file)
$in_description = FALSE;
$got_local_description = FALSE;
+ /* get filename */
+ $filename= preg_replace("/\/+/", "/", $this->template_directory."/".$this->package.".templates");
+
+ /* Check if file is readable */
+ if (!is_file($filename) || !is_readable($filename)){
+ return(FALSE);
+ }
+
+ /* Open file and read content line by line */
$fh= fopen($filename, 'r');
- while (!feof($fh)){
+ /* While the file handle is valid && there is still data to read -> parse configuration file */
+ while ($fh && !feof($fh)){
$line= fgets($fh, 1024);
/* Reset description flag */