<?
// $Header: /cvsroot/jwapmail/Jwapmail/html/ini.lib.php,v 1.1 2003/07/09 11:44:50 nasir Exp $
/**********************************************************************
*
* a libray used for jmail
*
* Copyright (C) 2002 3WSI <http://3wsi.com)
*
* Author : Nasir Simbolon <hide@address.com>
*
* This program is open source; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License <http://www.opensource.org/licenses/gpl-license.html>
* for a complete version of the license
*
**********************************************************************/
function parseIni ($file, $flag = 1) {
return parse_ini_file ($file, $flag);
}
function getSection ($inifile, $section) {
$a = parseIni ($inifile);
return $a[$section];
}
function getData ($inifile, $var) {
$a = parseIni ($inifile, 0);
return $a[$var];
}
?>