From cabd6f6205756a51064fb856aca2ed94d28b1cf7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 12 Sep 2008 11:31:19 -0400
Subject: [PATCH] Disabled suphp_UserGroup directive by default to make the setup compatible with the suphp compile options from most linux distributions. If you want some extra security, enable this directive again and recompile mod_suphp with the the option --with-setid-mode=paranoid

---
 interface/web/admin/index.php |   53 ++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 46 insertions(+), 7 deletions(-)

diff --git a/interface/web/admin/index.php b/interface/web/admin/index.php
index 4aef3c0..6c3d51a 100644
--- a/interface/web/admin/index.php
+++ b/interface/web/admin/index.php
@@ -26,14 +26,53 @@
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
 
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
 
-$app->tpl->setVar('error',$error);
-$app->tpl->setInclude('content_tpl','templates/index.htm');
-$app->tpl->pparse();
+class admin_index {
+
+	var $status = 'OK';
+	var $target = '';
+
+	function render() {
+		
+		global $app;
+		
+		$app->uses('tpl');
+		$app->tpl->newTemplate("form.tpl.htm");
+
+		$app->tpl->setVar('error',$error);
+		$app->tpl->setInclude('content_tpl','admin/templates/index.htm');
+		return $app->tpl->grab();
+		/*
+		$filename = 'test.txt';
+$somecontent = $app->tpl->grab();
+
+// Sichergehen, dass die Datei existiert und beschreibbar ist
+
+
+    // Wir �ffnen $filename im "Anh�nge" - Modus.
+    // Der Dateizeiger befindet sich am Ende der Datei, und
+    // dort wird $somecontent sp�ter mit fwrite() geschrieben.
+    if (!$handle = fopen($filename, "w")) {
+         print "Kann die Datei $filename nicht �ffnen";
+         exit;
+    }
+
+    // Schreibe $somecontent in die ge�ffnete Datei.
+    if (!fwrite($handle, $somecontent)) {
+        print "Kann in die Datei $filename nicht schreiben";
+        exit;
+    }
+
+
+    fclose($handle);
+
+
+
+		
+		return 'dd';
+		*/
+	}
+}
 
 ?>
\ No newline at end of file

--
Gitblit v1.9.1