From: cajus Date: Mon, 16 Jan 2006 14:54:23 +0000 (+0000) Subject: Fixed problem with header generation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d5bd35570cd13c1e42c7fef8563d32a2fab9558;p=gosa.git Fixed problem with header generation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2492 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index a018486a7..0918b0f03 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -107,18 +107,8 @@ class application extends plugin return ($display); } -# if(isset($_POST['ScriptTemplate'])){ - $head = $this->generateTemplate(); - $scr = $this->gotoLogonScript; - - if(preg_match("/### END HEADER ###/",$scr)){ - $pos = strrpos($scr,"### END HEADER ###"); - $pos = $pos + strlen("### END HEADER ###"); - $scr=substr($scr,$pos,(strlen($scr))); - } - - $this->gotoLogonScript = $head.$scr; -# } + $head = $this->generateTemplate(); + $this->gotoLogonScript= $this->generateTemplate().preg_replace('/.*### END HEADER ###/s', '', $this->gotoLogonScript); if((isset($_POST['upLoad']))&&(isset($_FILES['ScriptFile']))){ $str = file_get_contents($_FILES['ScriptFile']['tmp_name']);