| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
require_once 'PEAR/PackageFileManager2.php'; |
|---|
| 20 |
require_once 'PEAR/PackageFileManager/Svn.php'; |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
$version = '0.9.0b3-gettext'; |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
$apiVersion = '0.9.0'; |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
$state = 'beta'; |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
$apiStability = 'stable'; |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
$notes = <<<EOT |
|---|
| 46 |
Gettext patch of patForms 0.9.x |
|---|
| 47 |
- applied working patch that removes alle translation stuff from patForms and |
|---|
| 48 |
uses GNU Gettext |
|---|
| 49 |
- added simple examples |
|---|
| 50 |
|
|---|
| 51 |
Third release candidate for 0.9.0. |
|---|
| 52 |
|
|---|
| 53 |
Changes since v0.9.0b2: |
|---|
| 54 |
* patForms main: |
|---|
| 55 |
- Fixed flexy dependency group in PEAR package (schst) |
|---|
| 56 |
- Added smarty dependency group in PEAR package (schst) |
|---|
| 57 |
- Added a missing error check in the createForm method (argh) |
|---|
| 58 |
- Added the class attribute to the form (schst) |
|---|
| 59 |
- Removed version 1 package.xml from distribution (schst) |
|---|
| 60 |
- Added dependency on PEAR::Date (required by the Date element) (schst) |
|---|
| 61 |
- Fixed patTemplate dependency group (schst) |
|---|
| 62 |
- patForms is now cabable to load custom modules from other directories (gERD) |
|---|
| 63 |
|
|---|
| 64 |
* Elements |
|---|
| 65 |
- File: determining the session's save path now correctly uses the php.ini setting if available (argh) |
|---|
| 66 |
- File: improved error messages with useful information and error solving hints (argh) |
|---|
| 67 |
- Radio: fixed bug #203: problems with Radio/RadioGroup and value '0' (schst) |
|---|
| 68 |
- File: fixed the notice that occurrs when the maxsize attribute is not set (argh) |
|---|
| 69 |
- Added new SwitchGroup element that handles checkbox groups (argh) |
|---|
| 70 |
|
|---|
| 71 |
* Rules |
|---|
| 72 |
- fixed typos in patForms_Rule_MaxLength (sfuchs) |
|---|
| 73 |
|
|---|
| 74 |
* Storages |
|---|
| 75 |
- fixed bug #205: semicolon at end of SQL (schst) |
|---|
| 76 |
|
|---|
| 77 |
* Clientside features |
|---|
| 78 |
|
|---|
| 79 |
* Propel Integration |
|---|
| 80 |
- fixed patForms_Creator_Definition reference problem with adding rules (sfuchs) |
|---|
| 81 |
- fixed patForms_Storage_Propel to write results back to the form after saving (sfuchs) |
|---|
| 82 |
|
|---|
| 83 |
* Renderer |
|---|
| 84 |
- no changes |
|---|
| 85 |
|
|---|
| 86 |
* Parser |
|---|
| 87 |
- Added missing error checks in the createFormFromTemplate method (argh) |
|---|
| 88 |
|
|---|
| 89 |
* Examples collection |
|---|
| 90 |
- Tweaked the output of submitted form variables to include variable type information (argh) |
|---|
| 91 |
- Added array values display to the ouput of submitted form variables (argh) |
|---|
| 92 |
EOT; |
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 |
$description = <<<EOT |
|---|
| 98 |
patForms is a powerful package that helps you creating an validating forms. It is not limited to HTML forms. |
|---|
| 99 |
EOT; |
|---|
| 100 |
|
|---|
| 101 |
$package = new PEAR_PackageFileManager2(); |
|---|
| 102 |
|
|---|
| 103 |
$result = $package->setOptions(array( |
|---|
| 104 |
'license' => 'LGPL', |
|---|
| 105 |
'filelistgenerator' => 'svn', |
|---|
| 106 |
'ignore' => array( 'package.php', 'autopackage2.php', 'package2.xml', '.cvsignore', '.svn', 'examples/cache', 'rfcs' ), |
|---|
| 107 |
'simpleoutput' => true, |
|---|
| 108 |
'baseinstalldir' => 'pat', |
|---|
| 109 |
'packagedirectory' => './', |
|---|
| 110 |
'dir_roles' => array( |
|---|
| 111 |
'rfcs' => 'doc', |
|---|
| 112 |
'docs' => 'doc', |
|---|
| 113 |
'examples' => 'doc', |
|---|
| 114 |
'tests' => 'test', |
|---|
| 115 |
) |
|---|
| 116 |
)); |
|---|
| 117 |
if (PEAR::isError($result)) { |
|---|
| 118 |
echo $result->getMessage(); |
|---|
| 119 |
die(); |
|---|
| 120 |
} |
|---|
| 121 |
|
|---|
| 122 |
$package->setPackage('patForms'); |
|---|
| 123 |
$package->setSummary('Powerful form management package.'); |
|---|
| 124 |
$package->setDescription($description); |
|---|
| 125 |
|
|---|
| 126 |
$package->setChannel('pear.php-tools.net'); |
|---|
| 127 |
$package->setAPIVersion($apiVersion); |
|---|
| 128 |
$package->setReleaseVersion($version); |
|---|
| 129 |
$package->setReleaseStability($state); |
|---|
| 130 |
$package->setAPIStability($apiStability); |
|---|
| 131 |
$package->setNotes($notes); |
|---|
| 132 |
$package->setPackageType('php'); |
|---|
| 133 |
$package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.txt'); |
|---|
| 134 |
|
|---|
| 135 |
$package->addMaintainer('lead', 'argh', 'Sebastian Mordziol', 'argh@php-tools.net', 'yes'); |
|---|
| 136 |
$package->addMaintainer('lead', 'schst', 'Stephan Schmidt', 'schst@php-tools.net', 'yes'); |
|---|
| 137 |
$package->addMaintainer('lead', 'sfuchs', 'Sven Fuchs', 'svenfuchs@artweb-design.de', 'yes'); |
|---|
| 138 |
$package->addMaintainer('developer', 'gerd', 'Gerd Schaufelberger', 'gerd@php-tools.net', 'yes'); |
|---|
| 139 |
$package->addMaintainer('helper', 'luckec', 'Carsten Lucke', 'carsten@tool-garage.de'); |
|---|
| 140 |
|
|---|
| 141 |
$package->setPhpDep('4.3.0'); |
|---|
| 142 |
$package->setPearinstallerDep('1.4.0'); |
|---|
| 143 |
|
|---|
| 144 |
$package->addPackageDepWithChannel('required', 'patError', 'pear.php-tools.net', '1.1.0'); |
|---|
| 145 |
$package->addPackageDepWithChannel('required', 'Date', 'pear.php.net', '1.4.0'); |
|---|
| 146 |
|
|---|
| 147 |
$package->addDependencyGroup('pattemplate', 'Render your forms with patTemplate.'); |
|---|
| 148 |
$package->addGroupPackageDepWithChannel('package', 'pattemplate', 'patTemplate', 'pear.php-tools.net', '3.0.0'); |
|---|
| 149 |
|
|---|
| 150 |
$package->addDependencyGroup('flexy', 'Render your forms with Flexy.'); |
|---|
| 151 |
$package->addGroupPackageDepWithChannel('package', 'flexy', 'HTML_Template_Flexy', 'pear.net'); |
|---|
| 152 |
|
|---|
| 153 |
$package->addDependencyGroup('smarty', 'Render your forms with Smarty.'); |
|---|
| 154 |
$package->addGroupPackageDepWithChannel('package', 'smarty', 'Smarty', 'pearified.net'); |
|---|
| 155 |
|
|---|
| 156 |
$package->addDependencyGroup('storagedb', 'Automatically store submitted results in a database.'); |
|---|
| 157 |
$package->addGroupPackageDepWithChannel('package', 'storagedb', 'DB', 'pear.php.net', '1.7.0'); |
|---|
| 158 |
|
|---|
| 159 |
$package->addDependencyGroup('storagemail', 'Automatically email submitted results.'); |
|---|
| 160 |
$package->addGroupPackageDepWithChannel('package', 'storagemail', 'Mail', 'pear.php.net', '1.1.0'); |
|---|
| 161 |
|
|---|
| 162 |
$package->addDependencyGroup('validatemail', 'Advanced email validation by querying the mail-server.'); |
|---|
| 163 |
$package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_DNS', 'pear.php.net'); |
|---|
| 164 |
$package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_SMTP', 'pear.php.net'); |
|---|
| 165 |
|
|---|
| 166 |
$package->generateContents(); |
|---|
| 167 |
|
|---|
| 168 |
if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) { |
|---|
| 169 |
$result = $package->writePackageFile(); |
|---|
| 170 |
} else { |
|---|
| 171 |
$result = $package->debugPackageFile(); |
|---|
| 172 |
} |
|---|
| 173 |
|
|---|
| 174 |
if (PEAR::isError($result)) { |
|---|
| 175 |
echo $result->getMessage(); |
|---|
| 176 |
die(); |
|---|
| 177 |
} |
|---|
| 178 |
?> |
|---|
| 179 |
|
|---|