From 6dfc1f8aef2d75f5ca8fe694fb8ef27ef885b12c Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Sat, 01 May 2010 18:15:28 -0400 Subject: [PATCH] Added a new module called "domain". With this module you can manage all domains (web + mail). Per default this module is not active. To activate it, you have to change the System Interface Config -> domains -> use the domain module. You also have to activate the domain-module for the admin (and for every client if you want). Important: you can not use this module if you have reseller! --- interface/lib/classes/ini_parser.inc.php | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/interface/lib/classes/ini_parser.inc.php b/interface/lib/classes/ini_parser.inc.php index b302bd0..76bbc13 100644 --- a/interface/lib/classes/ini_parser.inc.php +++ b/interface/lib/classes/ini_parser.inc.php @@ -1,15 +1,7 @@ <?php -/** - * ini parser - * - * @author Till Brehm - * @copyright 2005, Till Brehm, projektfarm Gmbh - * @version 0.1 - * @package ISPConfig - */ /* -Copyright (c) 2006, Till Brehm, projektfarm Gmbh +Copyright (c) 2007, Till Brehm, projektfarm Gmbh All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -39,7 +31,8 @@ class ini_parser{ private $config; - + + //* Converts a ini string to array public function parse_ini_string($ini) { $ini = str_replace("\r\n", "\n", $ini); $lines = explode("\n", $ini); @@ -56,22 +49,27 @@ } return $this->config; } - - - - public function get_ini_string($file) { + + + //* Converts a config array to a string + public function get_ini_string($config_array = '') { + if($config_array == '') $config_array = $this->config; $content = ''; - foreach($this->config as $section => $data) { + foreach($config_array as $section => $data) { $content .= "[$section]\n"; foreach($data as $item => $value) { - if($value != ''){ + if($item != ''){ $content .= "$item=$value\n"; } } + $content .= "\n"; } return $content; } - + + + + } ?> \ No newline at end of file -- Gitblit v1.9.1