Update of /cvsroot/phpcms-plugins/formular4phpCMS
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22456
Added Files:
form4phpcms.php
Log Message:
extended the comments
--- NEW FILE: form4phpcms.php ---
<?php
/**
* Form4phpCMS - a simple form-engine for phpCMS
*
* <b>License</b>
*
* This program is free software; 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @author Martin Jahn <mj...@us...>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @copyright Copyright (c) 2004, Martin Jahn
* @version $Id: form4phpcms.php,v 1.1 2004/07/28 11:05:48 mjahn Exp $
* @package form4phpCMS
**/
/*
* $Log: form4phpcms.php,v $
* Revision 1.1 2004/07/28 11:05:48 mjahn
* extended the comments
*
*/
/**
* Set the path to the PEAR-repository
*
* You may insert the path to the directory with the necessary PEAR-packages.
* This script needs the following PEAR-packages:
* <ul>
* <li>PEAR</li>
* <li>XML_Serializer</li>
* <li>XML_Tree</li>
* <li>XML_Parser</li>
* <li>XML_Util</li>
* <li>MAIL</li>
* <li>HTML_QuickForm</li>
* <li>HTML_Common</li>
* </ul>
*
* If you have not installed PEAR on your webserver, please download these packages
* from http://pear.php.net/packages.php and put them into a sub-directory in this directory,
* i.e. pear/. Then put the path to the directory into the following line, where
* <ul>
* <li><b>dirname (__FILE__)</b> is the directory of the actual file</li>
* </ul>
*
* If you have installed the pear packages into the subdirectory pear/, you may not have to
* change anything.
**/
ini_set ('include_path', dirname (__FILE__).'/pear/:'. ini_get ('include_path'));
/**
* Set the path to the configfile
*
* <ul>
* <li><b>dirname (__FILE__)</b> is the directory of the actual file</li>
* </ul>
**/
$configfile = dirname (__FILE__).'/form4phpcms.conf.xml';
// include the class-file
include_once (dirname (__FILE__).'/include/class.form4phpcms.php');
// initialize a new object ...
$FORM = new form4phpcms ($configfile);
if (PEAR::isError ($FORM)) {
return true;
}
// ... and start the application
$FORM->start ();
// at the end clean the varscope
unset ($FORM);
?>
|