You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
(23) |
May
(11) |
Jun
(24) |
Jul
(18) |
Aug
(7) |
Sep
(6) |
Oct
(34) |
Nov
(6) |
Dec
(23) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(16) |
Sep
(12) |
Oct
(2) |
Nov
|
Dec
(6) |
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
From: <el...@us...> - 2008-01-15 15:28:26
|
Revision: 218 http://elma.svn.sourceforge.net/elma/?rev=218&view=rev Author: elch86 Date: 2008-01-15 07:28:24 -0800 (Tue, 15 Jan 2008) Log Message: ----------- Oops.. forgot to remove a debugging statement Modified Paths: -------------- trunk/modules/content_alias_new.php Modified: trunk/modules/content_alias_new.php =================================================================== --- trunk/modules/content_alias_new.php 2008-01-15 15:02:17 UTC (rev 217) +++ trunk/modules/content_alias_new.php 2008-01-15 15:28:24 UTC (rev 218) @@ -79,8 +79,6 @@ $my_alias["mailaliasedname"] = preg_split("/\r?\n/", $_POST['nlo_mailaliasedname']); - print_r($my_alias); - $validation_errors = validate_alias($my_alias); if (count($validation_errors) == 0) { $this->ldap->addAlias($domain,$my_alias); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <el...@us...> - 2008-01-15 15:02:22
|
Revision: 217 http://elma.svn.sourceforge.net/elma/?rev=217&view=rev Author: elch86 Date: 2008-01-15 07:02:17 -0800 (Tue, 15 Jan 2008) Log Message: ----------- "Most textual Internet protocols (including HTTP, SMTP, FTP, IRC and many others) mandate the use of ASCII CR+LF (0Dh 0Ah) on the protocol level, but recommend that tolerant applications recognize lone LF as well. In practice, there are many applications that erroneously use the C newline character '\n' instead (see section Newline in programming languages below)." http://en.wikipedia.org/wiki/Newline Modified Paths: -------------- trunk/modules/content_alias_new.php Modified: trunk/modules/content_alias_new.php =================================================================== --- trunk/modules/content_alias_new.php 2008-01-07 15:37:31 UTC (rev 216) +++ trunk/modules/content_alias_new.php 2008-01-15 15:02:17 UTC (rev 217) @@ -77,8 +77,10 @@ $my_alias["mailstatus"] = "FALSE"; } - $my_alias["mailaliasedname"] = explode("\n", $_POST['nlo_mailaliasedname']); + $my_alias["mailaliasedname"] = preg_split("/\r?\n/", $_POST['nlo_mailaliasedname']); + print_r($my_alias); + $validation_errors = validate_alias($my_alias); if (count($validation_errors) == 0) { $this->ldap->addAlias($domain,$my_alias); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2008-01-07 15:37:36
|
Revision: 216 http://elma.svn.sourceforge.net/elma/?rev=216&view=rev Author: dweuthen Date: 2008-01-07 07:37:31 -0800 (Mon, 07 Jan 2008) Log Message: ----------- validation changes Modified Paths: -------------- trunk/modules/content_user_edit.php trunk/templates/simple/content_user_edit.tpl trunk/templates/simple/print_submit_status.tpl trunk/templates/simple/style.css Modified: trunk/modules/content_user_edit.php =================================================================== --- trunk/modules/content_user_edit.php 2007-12-17 13:42:25 UTC (rev 215) +++ trunk/modules/content_user_edit.php 2008-01-07 15:37:31 UTC (rev 216) @@ -124,6 +124,8 @@ } else { //END SUBMIT $this->smarty->assign("submit_status",-1); SmartyValidate::connect($this->smarty, true); + SmartyValidate::register_validator('cn', 'cn', 'notEmpty'); + SmartyValidate::register_validator('sn', 'sn', 'notEmpty'); SmartyValidate::register_validator('password', 'clearpassword:nlo_clearpassword1', 'isEqual'); } Modified: trunk/templates/simple/content_user_edit.tpl =================================================================== --- trunk/templates/simple/content_user_edit.tpl 2007-12-17 13:42:25 UTC (rev 215) +++ trunk/templates/simple/content_user_edit.tpl 2008-01-07 15:37:31 UTC (rev 216) @@ -1,10 +1,15 @@ -{validate id="password" message="passwords do not match<br>" assign="submit_status1"} + {validate id="cn" message="First name not valid or empty" append="validation_errors"} + {validate id="sn" message="Last name not valid or empty" append="validation_errors"} + {validate id="password" message="passwords do not match" append="validation_errors"} + <div id="Content"> <h2>{t}Edit user{/t} {$user.uid.0}@{$domain}</h2> {if $smarty.post.submit} {include file="print_submit_status.tpl"} {/if} + <form action="{$smarty.server.REQUEST_URI}" method="post"> + <fieldset> <legend>{$user.uid.0}@{$domain}</legend> <table> Modified: trunk/templates/simple/print_submit_status.tpl =================================================================== --- trunk/templates/simple/print_submit_status.tpl 2007-12-17 13:42:25 UTC (rev 215) +++ trunk/templates/simple/print_submit_status.tpl 2008-01-07 15:37:31 UTC (rev 216) @@ -3,7 +3,12 @@ {t}Data has been saved.{/t} </div> {else} - <div> - {t}Sorry, your data could not be saved. The following error occured:{/t} {$submit_status} {$submit_status1} - </div> + <fieldset class="error"> + <legend class="error">An error occured</legend> + <p>{t}Sorry, your data could not be saved. The following error(s) occured:{/t} {$submit_status}</p> + {foreach from=$validation_errors item="error"} + - <font color="red">{$error}</font><br/> + {/foreach} + </fieldset> + <p/> {/if} Modified: trunk/templates/simple/style.css =================================================================== --- trunk/templates/simple/style.css 2007-12-17 13:42:25 UTC (rev 215) +++ trunk/templates/simple/style.css 2008-01-07 15:37:31 UTC (rev 216) @@ -222,6 +222,20 @@ padding-right: 5px; } +fieldset.error { + border: 1px red solid; +} + +legend.error { + font-weight: bold; + border: 0; + border-left: 2px red solid; + border-right: 2px red solid; + padding-left: 5px; + padding-right: 5px; +} + + .space25 { height: 25px; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-17 13:42:27
|
Revision: 215 http://elma.svn.sourceforge.net/elma/?rev=215&view=rev Author: dweuthen Date: 2007-12-17 05:42:25 -0800 (Mon, 17 Dec 2007) Log Message: ----------- added two missing symlinks Added Paths: ----------- trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate.php trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate_init.php Added: trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate.php 2007-12-17 13:42:25 UTC (rev 215) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/function.validate.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate_init.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate_init.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate_init.php 2007-12-17 13:42:25 UTC (rev 215) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/function.validate_init.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/function.validate_init.php ___________________________________________________________________ Name: svn:special + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-11 20:18:21
|
Revision: 214 http://elma.svn.sourceforge.net/elma/?rev=214&view=rev Author: Panther_1 Date: 2007-12-11 12:18:14 -0800 (Tue, 11 Dec 2007) Log Message: ----------- Add first demonstration of SmartyValdiate. The code need now some clean up. Modified Paths: -------------- trunk/includes/smarty.inc.php trunk/modules/content_user_edit.php trunk/templates/simple/content_user_edit.tpl trunk/templates/simple/print_submit_status.tpl Modified: trunk/includes/smarty.inc.php =================================================================== --- trunk/includes/smarty.inc.php 2007-12-09 00:19:12 UTC (rev 213) +++ trunk/includes/smarty.inc.php 2007-12-11 20:18:14 UTC (rev 214) @@ -28,10 +28,9 @@ */ require(getcwd().'/vendor/smarty/libs/Smarty.class.php'); +require(getcwd().'/vendor/smarty/libs/SmartyValidate.class.php'); -if ( !isset($smarty) ) { - $smarty = new Smarty; -} +$smarty = new Smarty; $smarty->template_dir = getcwd().'/templates/'.TEMPLATE.'/'; $smarty->caching = false; $smarty->php_handling = SMARTY_PHP_REMOVE; Modified: trunk/modules/content_user_edit.php =================================================================== --- trunk/modules/content_user_edit.php 2007-12-09 00:19:12 UTC (rev 213) +++ trunk/modules/content_user_edit.php 2007-12-11 20:18:14 UTC (rev 214) @@ -67,6 +67,8 @@ // new user created or existing user modified if (isset($_POST["submit"])) { + SmartyValidate::connect($this->smarty); + if(SmartyValidate::is_valid($_POST)) { // create array of submitted values $eximFilterValues["vacation"]["values"] = array( "STATUS" => "", @@ -114,9 +116,15 @@ } else { $this->smarty->assign("submit_status","Invalid Data"); $this->smarty->assign("validation_errors",$validation_errors); + SmartyValidate::disconnect(); } } else { + $this->smarty->assign($_POST); + } + } else { //END SUBMIT $this->smarty->assign("submit_status",-1); + SmartyValidate::connect($this->smarty, true); + SmartyValidate::register_validator('password', 'clearpassword:nlo_clearpassword1', 'isEqual'); } if ( $user == "new" ) { Modified: trunk/templates/simple/content_user_edit.tpl =================================================================== --- trunk/templates/simple/content_user_edit.tpl 2007-12-09 00:19:12 UTC (rev 213) +++ trunk/templates/simple/content_user_edit.tpl 2007-12-11 20:18:14 UTC (rev 214) @@ -1,3 +1,4 @@ +{validate id="password" message="passwords do not match<br>" assign="submit_status1"} <div id="Content"> <h2>{t}Edit user{/t} {$user.uid.0}@{$domain}</h2> {if $smarty.post.submit} @@ -91,7 +92,8 @@ {t}Password{/t} </td> <td> - <input type="password" name="clearpassword" value="{$user.clearpassword.0}" /> + password: <input type="password" name="clearpassword" size="10" value="{$user.clearpassword.0}"><br /> + password: <input type="password" name="nlo_clearpassword1" size="10" value="{$user.clearpassword.0}"><br /> </td> </tr> <tr> Modified: trunk/templates/simple/print_submit_status.tpl =================================================================== --- trunk/templates/simple/print_submit_status.tpl 2007-12-09 00:19:12 UTC (rev 213) +++ trunk/templates/simple/print_submit_status.tpl 2007-12-11 20:18:14 UTC (rev 214) @@ -4,6 +4,6 @@ </div> {else} <div> - {t}Sorry, your data could not be saved. The following error occured:{/t} {$submit_status} + {t}Sorry, your data could not be saved. The following error occured:{/t} {$submit_status} {$submit_status1} </div> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2007-12-09 00:19:13
|
Revision: 213 http://elma.svn.sourceforge.net/elma/?rev=213&view=rev Author: killefiz Date: 2007-12-08 16:19:12 -0800 (Sat, 08 Dec 2007) Log Message: ----------- add link to svn-version of readme.html Modified Paths: -------------- website/content/en/docs.htm website/index.php Modified: website/content/en/docs.htm =================================================================== --- website/content/en/docs.htm 2007-12-09 00:12:09 UTC (rev 212) +++ website/content/en/docs.htm 2007-12-09 00:19:12 UTC (rev 213) @@ -35,6 +35,6 @@ </ul> <h3>manual</h3> <ul> - <li><a href="/content/en/INSTALL.html">HTML - Quick Installation Guide</a></li> + <li><a href="http://elma.svn.sourceforge.net/viewvc/*checkout*/elma/trunk/doc/INSTALL.html?revision=HEAD">HTML - Quick Installation Guide (svn-version)</a></li> </ul> Modified: website/index.php =================================================================== --- website/index.php 2007-12-09 00:12:09 UTC (rev 212) +++ website/index.php 2007-12-09 00:19:12 UTC (rev 213) @@ -1,7 +1,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> - <title>Exim Ldap Mail Administratortitle</title> + <title>Exim Ldap Mail Administrator</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2007-12-09 00:12:11
|
Revision: 212 http://elma.svn.sourceforge.net/elma/?rev=212&view=rev Author: killefiz Date: 2007-12-08 16:12:09 -0800 (Sat, 08 Dec 2007) Log Message: ----------- * add link to sf-project-page * remove german translation Modified Paths: -------------- website/index.php Removed Paths: ------------- website/content/de/ Modified: website/index.php =================================================================== --- website/index.php 2007-12-08 23:13:28 UTC (rev 211) +++ website/index.php 2007-12-09 00:12:09 UTC (rev 212) @@ -8,7 +8,9 @@ <div id="Seite"> <h1>Exim Ldap Mail Administrator</h1> + <!-- <div id="Language"><a href="?page=<?php echo $page ?>&lang=en"><img src="images/flag-uk.gif"/></a></div> + --> <ul id="Navigation"> <?php @@ -43,7 +45,23 @@ ?> </div> - <p id="Fusszeile"><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=191637&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a> <a href="http://www.exim.org"><img src="images/exim.png" border=0 alt="Exim" /></a> <a href="http://www.php.net"><img src="images/php-power-white.png" border=0 alt="PHP powered" /></a> <a href="http://www.openldap.org"><img src="images/openldap.jpg" border=0 alt="OpenLDAP powered" /></a></p> + <p id="Fusszeile"> + <a href="https://sourceforge.net/projects/elma/"> + <img src="http://sflogo.sourceforge.net/sflogo.php?group_id=191637&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /> + </a> + + <a href="http://www.exim.org"> + <img src="images/exim.png" border=0 alt="Exim" /> + </a> + + <a href="http://www.php.net"> + <img src="images/php-power-white.png" border=0 alt="PHP powered" /> + </a> + + <a href="http://www.openldap.org"> + <img src="images/openldap.jpg" border=0 alt="OpenLDAP powered" /> + </a> + </p> </div> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 23:13:30
|
Revision: 211 http://elma.svn.sourceforge.net/elma/?rev=211&view=rev Author: dweuthen Date: 2007-12-08 15:13:28 -0800 (Sat, 08 Dec 2007) Log Message: ----------- transfer Modified Paths: -------------- trunk/includes/smarty.inc.php Modified: trunk/includes/smarty.inc.php =================================================================== --- trunk/includes/smarty.inc.php 2007-12-08 22:32:24 UTC (rev 210) +++ trunk/includes/smarty.inc.php 2007-12-08 23:13:28 UTC (rev 211) @@ -29,7 +29,9 @@ require(getcwd().'/vendor/smarty/libs/Smarty.class.php'); -$smarty = new Smarty; +if ( !isset($smarty) ) { + $smarty = new Smarty; +} $smarty->template_dir = getcwd().'/templates/'.TEMPLATE.'/'; $smarty->caching = false; $smarty->php_handling = SMARTY_PHP_REMOVE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2007-12-08 22:32:29
|
Revision: 210 http://elma.svn.sourceforge.net/elma/?rev=210&view=rev Author: killefiz Date: 2007-12-08 14:32:24 -0800 (Sat, 08 Dec 2007) Log Message: ----------- add website-content Added Paths: ----------- website/ website/content/ website/content/de/ website/content/de/about.htm website/content/de/docs.htm website/content/de/download.htm website/content/de/faq.htm website/content/de/nav.php website/content/de/screenshots.htm website/content/en/ website/content/en/INSTALL.html website/content/en/about.htm website/content/en/docs.htm website/content/en/download.htm website/content/en/faq.htm website/content/en/nav.php website/content/en/screenshots.htm website/content/en/screenshots.php website/functions.php website/images/ website/images/download.gif website/images/exim.png website/images/flag-de.gif website/images/flag-uk.gif website/images/openldap.jpg website/images/php-power-white.png website/images/screenshots/ website/images/screenshots/0.1/ website/images/screenshots/0.1/alias_new.png website/images/screenshots/0.1/domains_list.png website/images/screenshots/0.1/login.png website/images/screenshots/0.1/user_new.png website/images/screenshots/0.1/users_list.png website/index.php website/style.css Added: website/content/de/about.htm =================================================================== --- website/content/de/about.htm (rev 0) +++ website/content/de/about.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,12 @@ +<h2>über</h2> +<p>Der Exim Ldap Mail Administrator stellt ein umfassendes Frontend zur Verwaltung kleiner Single-Server bis hin zu komplexen Multi-Server Umgebungen dar. Die Verwaltung umfasst:</p> +<ul> + <li>mehrer virtuelle E-Mail Domänen</li> + <li>mehrer Administratoren pro Domäne</li> + <li>mehrer Domänen pro Administrator (z.B. fuer Reseller) + <li>Benutzer und Aliase</li> + <li>Spamfilter-Einstellungen</li> + <li>Abwesenheitsmitteilungen erstellen</li> + <li>..und Vieles mehr</li> +</ul> +weitere Informationen zum Leistungsumpfang und geplanten Funktionen im <a href="http://elma.sourceforge.net/?page=docs&lang=de" id=contentlink>Release Plan</a>. Added: website/content/de/docs.htm =================================================================== --- website/content/de/docs.htm (rev 0) +++ website/content/de/docs.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,32 @@ +<h2>dokumente</h2> +<h3>changelog</h3> +<p id="italic">*** in Bearbeitung ***</p> +<h3>release plan</h3> +<p>geplante Funktionen für Version 0.1 - Anfang/Mitte April 2007</p> +<ul> + <li>ein Administrator</li> + <li>mehrere Domänen</li> + <li>Benutzer und Aliase</li> +</ul> +<p>Version 0.2 - Ende April</p> +<ul> + <li>hinzufuegen mehrere Administratoren pro Domäne</li> + <li>hinzufuegen von Multi-Domänen Administratoren (z.B. für Reseller)</li> +</ul> +<p>Version 0.3</p> +<ul> + <li>hinzufügen von Statistiken</li> +</ul> +<p>Version 0.4</p> +<ul> + <li>Abwesenheitsnachrichten</li> +</ul> +<h3>handbuch</h3> +<p id="italic">*** in Bearbeitung ***</p> +<p>Version 0.1</p> +<ul> + <li>HTML - eine Seite</li> + <li>HTML - mehrere Seiten</li> + <li>PDF</li> +</ul> + Added: website/content/de/download.htm =================================================================== --- website/content/de/download.htm (rev 0) +++ website/content/de/download.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,11 @@ +<h2>download</h2> +<h3>source<h3> +<ul> + <li>letzte stabile Version heruterladen <a href="http://sourceforge.net/project/showfiles.php?group_id=191637"><img src="images/download.gif"/></a></li> + <li>letzte Entwicklungsversion via SVN herunterladen<br><span id="italic">svn co https://elma.svn.sourceforge.net/svnroot/elma/trunk elma</span></li> +</ul> +<h3>debian<h3> +<ul> + <li>letzte stabile Version heruterladen <a href="http://sourceforge.net/project/showfiles.php?group_id=191637"><img src="images/download.gif"/></a></li> +</ul> + Added: website/content/de/faq.htm =================================================================== --- website/content/de/faq.htm (rev 0) +++ website/content/de/faq.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,3 @@ +<h2>frequently asked questions</h2> +<p> Es wurden noch keine Fragen gestellt.</p> + Added: website/content/de/nav.php =================================================================== --- website/content/de/nav.php (rev 0) +++ website/content/de/nav.php 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,5 @@ +<li><a href="?page=about&lang=<?php echo $lang ?>">über</a></li> +<li><a href="?page=screenshots&lang=<?php echo $lang ?>">screenshots</a></li> +<li><a href="?page=download&lang=<?php echo $lang ?>">download</a></li> +<li><a href="?page=docs&lang=<?php echo $lang ?>">dokumente</a></li> +<li><a href="?page=faq&lang=<?php echo $lang ?>">faq</a></li> Added: website/content/de/screenshots.htm =================================================================== --- website/content/de/screenshots.htm (rev 0) +++ website/content/de/screenshots.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,3 @@ +<h2>screenshots</h2> +sorry, no screenshots yet. + Added: website/content/en/INSTALL.html =================================================================== --- website/content/en/INSTALL.html (rev 0) +++ website/content/en/INSTALL.html 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,82 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<HTML> +<HEAD> +<TITLE></TITLE> +<META NAME="generator" CONTENT="HTML::TextToHTML v2.44"> +</HEAD> +<BODY> +<P>########## ELMA 0.2 Quick Installation Guide ########## + +<P>Content of this document + +<P><STRONG>1.1 REQUIREMENTS</STRONG> +<P> 1.1.1 Debian Etch<BR> +<STRONG>1.2 PREPARATIONS</STRONG> +<P> 1.2.1 LDAP Server<BR> +<STRONG>1.3 INSTALLATION</STRONG> + +<P><STRONG>-----------------------------------------------------</STRONG> + +<P><STRONG>1.1 REQUIREMENTS</STRONG> + +<P>The requirements are based on the current Debian GNU/Linux stable branch also known as "Etch". +ELMA has been developed and test on that distribution. If you have successfully installed and +run it on any other distributions plaese send a short mail and this list will be completed. + +<P>1.1.1 Debian Etch + +<UL> + <LI>Apache 2.2.3 + <LI>PHP 5.2.0, PHP 4.4.4 should also work + <LI>OpenLDAP 2.3.30 + <LI>Smarty 2.6.14 + <LI>Smarty-Gettext 1.0b1 +</UL> +<P><STRONG>1.2 PREPARATIONS</STRONG> + +<P>1.2.1 LDAP Server + +<P>ELMA has been testet only to work with OpenLDAP Server. + +<P>Install and set up your ldap server as described in your distriubution's manual. +There is an example openldap slapd.conf in the ldap subdirectory of the doc folder. +First copy the elma-0.2.schema file into you LDAP server schema folder + +<P> # cp examples/ldap/elma-0.2.schema /etc/ldap/schema/ + +<P>To start with an empty LDAP tree, clear your LDAP tree (refer to distriubution's manual) and run + +<P> # slapadd -l examples/ldap/example.ldif + +<P>from within the directory where this INSTALL file is located. This will create an admin user +with the dn "uid=admin,ou=users,o=mybasedn" and the password "adminpass". Also an exim user +("uid=exim4,ou=users,o=mybasedn") with read only access to the LDAP will be created. The password +is "exim4pass". I think it is obvious to tell you that you should change the passwords for your +installation. <BR> +IMPORTANT NOTE: The above step creates the database files who's owner is "root". If you run +your LDAP server under an other uid/gid, as you should if you care about security concerns, you +will have to change the ownership of the LDAP database files corrosponding to the LDAP servers uid/gid. + +<P><STRONG>1.3 INSTALLATION</STRONG> + +<P>Copy the downloaded tarball to your webserver's document root directory (e.g. /var/www). + +<P> # cp elma-0.2.tar.gz /var/www + +<P>Extract the tarball in your webserver's document root directory. + +<P> # tar -xzvf elma-0.2.tar.gz + +<P>Create the smart's template cache directory called "template_c" and make it writable for you +webserver's user (e.g www-data) + +<P> # mkdir /var/www/templates_c/<BR> + # chown www-data:www-data /var/www/templates_c/ + # chmod 775 /var/www/templates_c/ + +<P>Now you should be able to log in to ELMA via a webbrowser using the user "admin" with password +"adminpass". To change the admin's user password you have to use the ldap tools of you distribution +or use something similar to "phpLdapAdmin" or "gq". + +</BODY> +</HTML> Added: website/content/en/about.htm =================================================================== --- website/content/en/about.htm (rev 0) +++ website/content/en/about.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,22 @@ +<h2>about</h2> +<p>The Exim Ldap Mail Administrator provides a comprehensive frontend to manage single server up to multiple server email sites. The management options includes:</p> +<ul> + <li>multiple virtual email domains</li> + <li>multiple admins per domain</li> + <li>multiple domains per admin (e.g. for reseller accounts) + <li>user and aliases</li> +</ul> +Planed features are: +<ul> + <li>spamfilter settings</li> + <li>vacation settings</li> + <li>..and much more</li> +</ul> +For more information about the management options and planned features have a look at the <a href="http://elma.sourceforge.net/?page=docs&lang=en" id=contentlink>release plan</a>. + +<h2>news</h2> +<ul> + <li>2007/07/12 - Version 0.2 released, see download section. + <li>2007/05/27 - Version 0.1.1 released, just a few bugfixes, see download section. + <li>2007/05/01 - Version 0.1 released, see download section. +</ul> Added: website/content/en/docs.htm =================================================================== --- website/content/en/docs.htm (rev 0) +++ website/content/en/docs.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,40 @@ +<h2>documentation</h2> +<h3>changelog</h3> +<pre>2007-07-12 Daniel Weuthen <da...@we...> + * Feature added: multiple systemusers + * Feature added: multiple administrators per domain selectable from + systemusers and domainsusers + * Feature added: simple usage statistics on welcome page +</pre> +<pre>2007-05-24 Daniel Weuthen <da...@we...> + * Bugfix 1712754: missing documentation + * Bugfix 1712706: Ldap config not complete + * Bugfix 1712690: inconsistence in slapd.conf + * Bugfix 1712643: No example in exim4.conf for disable user / domain + or alias +</pre> +<pre>2007-05-01 Daniel Weuthen <da...@we...> + * Initial release: consider this software to be in alpha stadium +</pre> +<h3>release plan</h3> +<p>version 0.1 - mid of may 2007</p> +<ul> + <li>only one administrator</li> + <li>multiple domains</li> + <li>users and aliases</li> +</ul> +<p>Version 0.2 - mid of july 2007</p> +<ul> + <li>multiple administrators</li> + <li>multiple domains per administrator (e.g. for reseller)</li> + <li>simple usage statistics</li> +</ul> +<p>Version 0.3 - end of august 2007</p> +<ul> + <li>vacation settings</li> +</ul> +<h3>manual</h3> +<ul> + <li><a href="/content/en/INSTALL.html">HTML - Quick Installation Guide</a></li> +</ul> + Added: website/content/en/download.htm =================================================================== --- website/content/en/download.htm (rev 0) +++ website/content/en/download.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,11 @@ +<h2>download</h2> +<h3>Source<h3> +<ul> + <li>download latest stable release <a href="http://sourceforge.net/project/showfiles.php?group_id=191637"><img src="images/download.gif"/></a></li> + <li>download development snapshot via svn<br><span id="italic">svn co https://elma.svn.sourceforge.net/svnroot/elma/trunk elma</span></li> +</ul> +<h3>Debian<h3> +<ul> + <li>download latest stable <a href="http://sourceforge.net/project/showfiles.php?group_id=191637"><img src="images/download.gif"/></a></li> +</ul> + Added: website/content/en/faq.htm =================================================================== --- website/content/en/faq.htm (rev 0) +++ website/content/en/faq.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,3 @@ +<h2>frequently asked questions</h2> +<p>No questions have been asked.</p> + Added: website/content/en/nav.php =================================================================== --- website/content/en/nav.php (rev 0) +++ website/content/en/nav.php 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,5 @@ +<li><a href="?page=about&lang=<?php echo $lang ?>">about</a></li> +<li><a href="?page=screenshots&lang=<?php echo $lang ?>">screenshots</a></li> +<li><a href="?page=download&lang=<?php echo $lang ?>">download</a></li> +<li><a href="?page=docs&lang=<?php echo $lang ?>">docs</a></li> +<li><a href="?page=faq&lang=<?php echo $lang ?>">faq</a></li> Added: website/content/en/screenshots.htm =================================================================== --- website/content/en/screenshots.htm (rev 0) +++ website/content/en/screenshots.htm 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,2 @@ +<h2>screenshots</h2> +See SourceForges's <a href="http://sourceforge.net/project/screenshots.php?group_id=191637">Screenshot</a> page. Added: website/content/en/screenshots.php =================================================================== --- website/content/en/screenshots.php (rev 0) +++ website/content/en/screenshots.php 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,7 @@ +<h2>screenshots</h2> +<center> +<?php +include("functions.php"); +my_gallery("/home/groups/e/el/elma/htdocs/images/screenshots/0.1"); +?> +</center> Added: website/functions.php =================================================================== --- website/functions.php (rev 0) +++ website/functions.php 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,95 @@ +<?php +function my_gallery ($dir) { + $pics=directory($dir,'jpg,JPG,JPEG,jpeg,png,PNG'); + $pics=ditchtn($pics,'tn_'); + if ($pics[0]!='') + { + foreach ($pics as $p) + { + createthumb($dir."/".$p,$dir."/tn_".$p,100,100); + } + } +} + +function ditchtn($arr,$thumbname) +{ + foreach ($arr as $item) + { + if (!preg_match("/^".$thumbname."/",$item)){$tmparr[]=$item;} + } + return $tmparr; +} + +/* + Function createthumb($name,$filename,$new_w,$new_h) + creates a resized image + variables: + $name Original filename + $filename Filename of the resized image + $new_w width of resized image + $new_h height of resized image +*/ +function createthumb($name,$filename,$new_w,$new_h) +{ + $system=explode(".",$name); + if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);} + if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);} + $old_x=imageSX($src_img); + $old_y=imageSY($src_img); + if ($old_x > $old_y) + { + $thumb_w=$new_w; + $thumb_h=$old_y*($new_h/$old_x); + } + if ($old_x < $old_y) + { + $thumb_w=$old_x*($new_w/$old_y); + $thumb_h=$new_h; + } + if ($old_x == $old_y) + { + $thumb_w=$new_w; + $thumb_h=$new_h; + } + $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); + imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); + if (preg_match("/png/",$system[1])) + { + imagepng($dst_img,$filename); + } else { + imagejpeg($dst_img,$filename); + } + imagedestroy($dst_img); + imagedestroy($src_img); +} + +/* + Function directory($directory,$filters) + reads the content of $directory, takes the files that apply to $filter + and returns an array of the filenames. + You can specify which files to read, for example + $files = directory(".","jpg,gif"); + gets all jpg and gif files in this directory. + $files = directory(".","all"); + gets all files. +*/ +function directory($dir,$filters) +{ + $handle=opendir($dir); + $files=array(); + if ($filters == "all"){while(($file = readdir($handle))!==false){$files[] = $file;}} + if ($filters != "all") + { + $filters=explode(",",$filters); + while (($file = readdir($handle))!==false) + { + for ($f=0;$f<sizeof($filters);$f++): + $system=explode(".",$file); + if ($system[1] == $filters[$f]){$files[] = $file;} + endfor; + } + } + closedir($handle); + return $files; +} + Added: website/images/download.gif =================================================================== (Binary files differ) Property changes on: website/images/download.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/exim.png =================================================================== (Binary files differ) Property changes on: website/images/exim.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/flag-de.gif =================================================================== (Binary files differ) Property changes on: website/images/flag-de.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/flag-uk.gif =================================================================== (Binary files differ) Property changes on: website/images/flag-uk.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/openldap.jpg =================================================================== (Binary files differ) Property changes on: website/images/openldap.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/php-power-white.png =================================================================== (Binary files differ) Property changes on: website/images/php-power-white.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/screenshots/0.1/alias_new.png =================================================================== (Binary files differ) Property changes on: website/images/screenshots/0.1/alias_new.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/screenshots/0.1/domains_list.png =================================================================== (Binary files differ) Property changes on: website/images/screenshots/0.1/domains_list.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/screenshots/0.1/login.png =================================================================== (Binary files differ) Property changes on: website/images/screenshots/0.1/login.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/screenshots/0.1/user_new.png =================================================================== (Binary files differ) Property changes on: website/images/screenshots/0.1/user_new.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/images/screenshots/0.1/users_list.png =================================================================== (Binary files differ) Property changes on: website/images/screenshots/0.1/users_list.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: website/index.php =================================================================== --- website/index.php (rev 0) +++ website/index.php 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,51 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> + <head> + <title>Exim Ldap Mail Administratortitle</title> + <link rel="stylesheet" type="text/css" href="style.css" /> + </head> + <body> + + <div id="Seite"> + <h1>Exim Ldap Mail Administrator</h1> + <div id="Language"><a href="?page=<?php echo $page ?>&lang=en"><img src="images/flag-uk.gif"/></a></div> + + <ul id="Navigation"> + <?php + if (empty($lang)) { $lang = "en"; }; + include("content/$lang/nav.php"); + ?> + </ul> + + <div id="Inhalt"> + <?php + + switch ($page) { + case about: + include("content/$lang/about.htm"); + break; + case screenshots: + include("content/$lang/screenshots.htm"); + break; + case download: + include("content/$lang/download.htm"); + break; + case docs: + include("content/$lang/docs.htm"); + break; + case faq: + include("content/$lang/faq.htm"); + break; + default: + include("content/$lang/about.htm"); + } + + ?> + </div> + + <p id="Fusszeile"><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=191637&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a> <a href="http://www.exim.org"><img src="images/exim.png" border=0 alt="Exim" /></a> <a href="http://www.php.net"><img src="images/php-power-white.png" border=0 alt="PHP powered" /></a> <a href="http://www.openldap.org"><img src="images/openldap.jpg" border=0 alt="OpenLDAP powered" /></a></p> + </div> + + </body> +</html> + Added: website/style.css =================================================================== --- website/style.css (rev 0) +++ website/style.css 2007-12-08 22:32:24 UTC (rev 210) @@ -0,0 +1,129 @@ +body { + color: black; + background-color: white; + font-size: 100.01%; + font-family: Helvetica,Arial,sans-serif; + margin: 0; + padding: 1em 0; + text-align: center; /* Zentrierung im Internet Explorer */ +} + +div#Seite { + text-align: left; /* Seiteninhalt wieder links ausrichten */ + margin: 0 auto; /* standardkonforme horizontale Zentrierung */ + width: 760px; + padding: 0; + border: 2px ridge silver; +} + +h1 { + font-size: 1.5em; + margin: 0; padding: 0.3em; + text-align: center; + border-bottom: 1px solid silver; + background: #99CCFF; +} + +hr { + width: 400px; + border: solid lightblue 1px; + text-align: left; +} + +img { + border: 0; +} + +img.sc { + width: 480px; +} + +#italic { + font-style:italic; +} + +a#contentlink { + text-color: green; + font-weight: bold; +} + +a { + text-decoration: none; +} + +ul#Navigation { + font-size: 0.83em; + float: left; + width: 130px; + margin: 0 0 1.2em; + padding: 0; +} +ul#Navigation li { + list-style: none; + margin: 0; + padding: 0.5em; +} +ul#Navigation a { + display: block; + padding: 0.2em; + font-weight: bold; +} +ul#Navigation a:link { + color: #666; + background-color: white; +} +ul#Navigation a:visited { + color: #666; + background-color: white; +} +ul#Navigation a:hover { + color: black; + background-color: #eee; +} +ul#Navigation a:active { + color: white; + background-color: gray; +} + +img#Navigation a:active { + color: white; + background-color: blue; +} + +div#Language { + text-align: right; + padding: 0.2em 0.2em 0.2em 0.2em; + background: #006699; +} + +div#Inhalt { + margin: 0 0 1em 150px; + padding: 0 1em; +} +* html div#Inhalt { + height: 1em; /* Workaround gegen den 3-Pixel-Bug des Internet Explorer bis Version 6 */ + margin-bottom: 0; +} +div#Inhalt h2 { + font-size: 1.2em; + margin: 0.2em 0; + color: navy; +} +div#Inhalt h3 { + font-size: 0.9em; + margin: 0.2em 0; + color: navy; +} +div#Inhalt p { + font-size: 1em; + margin: 1em 0; +} + +p#Fusszeile { + clear: both; + font-size: 0.83em; + margin: 0; padding: 0.1em; + text-align: center; + background-color: #99CCFF; + border-top: 1px solid silver; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2007-12-08 22:06:19
|
Revision: 209 http://elma.svn.sourceforge.net/elma/?rev=209&view=rev Author: killefiz Date: 2007-12-08 14:06:17 -0800 (Sat, 08 Dec 2007) Log Message: ----------- remove mispel-template (bit-rot) Removed Paths: ------------- trunk/templates/mispel/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-08 22:04:50
|
Revision: 208 http://elma.svn.sourceforge.net/elma/?rev=208&view=rev Author: Panther_1 Date: 2007-12-08 14:04:49 -0800 (Sat, 08 Dec 2007) Log Message: ----------- Repair SmartyValidate installation Added Paths: ----------- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class.php Removed Paths: ------------- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class Deleted: trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class 2007-12-08 21:53:43 UTC (rev 207) +++ trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class 2007-12-08 22:04:49 UTC (rev 208) @@ -1 +0,0 @@ -link ../../SmartyValidate-2.9/libs/SmartyValidate.class.php \ No newline at end of file Added: trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class.php 2007-12-08 22:04:49 UTC (rev 208) @@ -0,0 +1 @@ +link ../../SmartyValidate-2.9/libs/SmartyValidate.class.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class.php ___________________________________________________________________ Name: svn:special + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-08 21:53:44
|
Revision: 207 http://elma.svn.sourceforge.net/elma/?rev=207&view=rev Author: Panther_1 Date: 2007-12-08 13:53:43 -0800 (Sat, 08 Dec 2007) Log Message: ----------- Add SmartyValidate Added Paths: ----------- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.dummyValid.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCExpDate.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCNum.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDate.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateAfter.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateBefore.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateEqual.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrAfter.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrBefore.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEmail.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEqual.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileSize.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileType.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFloat.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isInt.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isLength.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isNumber.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isPrice.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRange.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRegExp.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isURL.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.notEmpty.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.default.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.makeDate.php trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.trim.php trunk/vendor/SmartyValidate-2.9/ trunk/vendor/SmartyValidate-2.9/COPYING.lib trunk/vendor/SmartyValidate-2.9/NEWS trunk/vendor/SmartyValidate-2.9/README trunk/vendor/SmartyValidate-2.9/libs/ trunk/vendor/SmartyValidate-2.9/libs/SmartyValidate.class.php trunk/vendor/SmartyValidate-2.9/plugins/ trunk/vendor/SmartyValidate-2.9/plugins/function.validate.php trunk/vendor/SmartyValidate-2.9/plugins/function.validate_init.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.dummyValid.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isCCExpDate.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isCCNum.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDate.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDateAfter.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDateBefore.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDateEqual.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDateOnOrAfter.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isDateOnOrBefore.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isEmail.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isEqual.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isFileSize.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isFileType.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isFloat.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isInt.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isLength.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isNumber.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isPrice.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isRange.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isRegExp.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.isURL.php trunk/vendor/SmartyValidate-2.9/plugins/validate_criteria.notEmpty.php trunk/vendor/SmartyValidate-2.9/plugins/validate_transform.default.php trunk/vendor/SmartyValidate-2.9/plugins/validate_transform.makeDate.php trunk/vendor/SmartyValidate-2.9/plugins/validate_transform.trim.php Added: trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../SmartyValidate-2.9/libs/SmartyValidate.class.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/SmartyValidate.class ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.dummyValid.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.dummyValid.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.dummyValid.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.dummyValid.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.dummyValid.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCExpDate.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCExpDate.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCExpDate.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isCCExpDate.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCExpDate.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCNum.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCNum.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCNum.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isCCNum.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isCCNum.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDate.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDate.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDate.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDate.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDate.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateAfter.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateAfter.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateAfter.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDateAfter.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateAfter.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateBefore.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateBefore.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateBefore.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDateBefore.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateBefore.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateEqual.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateEqual.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateEqual.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDateEqual.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateEqual.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrAfter.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrAfter.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrAfter.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDateOnOrAfter.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrAfter.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrBefore.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrBefore.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrBefore.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isDateOnOrBefore.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isDateOnOrBefore.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEmail.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEmail.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEmail.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isEmail.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEmail.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEqual.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEqual.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEqual.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isEqual.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isEqual.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileSize.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileSize.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileSize.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isFileSize.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileSize.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileType.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileType.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileType.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isFileType.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFileType.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFloat.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFloat.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFloat.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isFloat.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isFloat.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isInt.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isInt.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isInt.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isInt.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isInt.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isLength.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isLength.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isLength.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isLength.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isLength.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isNumber.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isNumber.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isNumber.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isNumber.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isNumber.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isPrice.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isPrice.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isPrice.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isPrice.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isPrice.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRange.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRange.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRange.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isRange.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRange.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRegExp.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRegExp.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRegExp.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isRegExp.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isRegExp.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isURL.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isURL.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isURL.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.isURL.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.isURL.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.notEmpty.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.notEmpty.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.notEmpty.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_criteria.notEmpty.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_criteria.notEmpty.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.default.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.default.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.default.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_transform.default.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.default.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.makeDate.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.makeDate.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.makeDate.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_transform.makeDate.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.makeDate.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.trim.php =================================================================== --- trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.trim.php (rev 0) +++ trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.trim.php 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1 @@ +link ../../../SmartyValidate-2.9/plugins/validate_transform.trim.php \ No newline at end of file Property changes on: trunk/vendor/Smarty-2.6.18/libs/plugins/validate_transform.trim.php ___________________________________________________________________ Name: svn:special + * Added: trunk/vendor/SmartyValidate-2.9/COPYING.lib =================================================================== --- trunk/vendor/SmartyValidate-2.9/COPYING.lib (rev 0) +++ trunk/vendor/SmartyValidate-2.9/COPYING.lib 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1,458 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS Added: trunk/vendor/SmartyValidate-2.9/NEWS =================================================================== --- trunk/vendor/SmartyValidate-2.9/NEWS (rev 0) +++ trunk/vendor/SmartyValidate-2.9/NEWS 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1,186 @@ +2.9 Apr 23, 2007 +---------------- + +* fix bug with multiple validators on a field (mckneisler, monte) +* fix bug with initialization of multiple forms (schildi, monte) +* fix looping on non-numeric index arrays (kayk, monte) + +2.8 Aug 7, 2006 +--------------- + +* fix bug with failed fields function (kills, monte) + +2.7 March 29, 2006 +------------------ + +* add SMARTY_VALIDATE_DEFAULT_FORM constant (kills, monte) +* split up is_valid process for easier method subclassing (kills, monte) +* fix more PHP 5 date problems (kills, monte) +* fix PHP 5.1 problem with isDate (sguillory6, monte) +* fix bug with duplicate error messages (monte) +* fix problem when is_valid() called multiple times (monte) +* fix problem with testing array keys in zero-index fields (andrea_c75,monte) +* fix undefined index notice (Temas, monte) + +2.6 Aug 17, 2005 +---------------- + +* fix variable reference notice (boots, monte) +* fix error with array validation (monte) +* fix error when form is redrawn and no validation was done + but error could still show (monte) +* fix typo in isLength plugin (rainco, monte) +* fix bug when using append (monte) +* make is_valid return true if no validators defined (Pete Darwin, monte) +* add ability to pass parameters to transform in register_validator() + +2.5 May 17, 2005 +---------------- + +* fix bug with isRange criteria (Alexey Kuimov, monte) +* fix problems with looping validators that have been + registered/unregistered (monte) +* fix bug with assign/append in validator tags (monte) +* fix default transform function, errors on non-empty value (monte) +* fix undefined index notices (rainco, monte) +* change e-mail validator logic to simpler method (monte) +* give better error when registering a validator with + unregistered form (monte) +* fix some PHP notices (monte) + +2.4 April 4, 2005 +----------------- + +* fix ccExpDate criteria bug, it didn't work (monte) +* add set_page() function, update README (monte) +* add register_validator() function, update README (monte) +* fix documentation on custom criteria/transforms (monte) +* add support for specific array keys field="foo[bar]" (monte) +* allow array brackets field=foo[] (monte) +* add better error reporting when connect() was not called (monte) + +2.3 December 20, 2004 +--------------------- + +* fix problem with _execute_transform test (monte) +* add "default" transform function (Isidor128, monte) +* fix false test with transform parameter (Thomas Keller, monte) +* update isEmail validation plugin to better validation regex (monte) +* allow dashes in hostname for isURL syntax checking (monte) +* fix condition where form criteria has not been defined (such as lost session) + and is_valid() passes (B00zy, monte) +* make append array associative with field name as key (Isidor128, monte) +* fixed validation error for unset formvars (B00zy, monte) +* use strict mode for booleanize test (B00zy, monte) +* add {validate_init} tag for initializing validate tag paramters (monte) + +2.2 July 13, 2004 +----------------- + +* fix parenthesis placement with connect method (nzsmarty, monte) +* add the optional form name tag to the docs (Peter Belt, monte) +* fixed bug: halt ignored when assigning message to a var (monte) +* fixed connect() so that it properly checks for class (boots) +* assign/append smarty vars in is_valid function call + so variables are available anywhere in the template, + even before validator tags (pabianjs, monte) +* remove PHP license mention in README, add LGPL (monte) +* fix bug with isURL validator regex (monte) + +2.2-b1 June 24, 2004 +-------------------- + +* add dummyValid, isDateEqual, isDateAfter, isDateBefore, + isDateOnOrAfter, isDateOnOrBefore criteria functions (monte) +* add makeDate transform function (monte) +* fix bug with is_error not getting assigned when form is registered (hristov, monte) +* pass $params and $formvars to transform functions (monte) +* fixed _object_instance() so that it properly returns a reference (boots) +* add isURL criteria (monte) +* change is_form_registered() to is_registered_form(), change + is_object_registered() to is_registered_object() to conform + to other naming conventions (monte) +* add isFileType and isFileSize criteria (monte) +* show error when connect() is executed with no PHP session (monte) +* add parameter 'name' to register_criteria and register_function. + breaks BC but makes criteria/transforms more flexible and simpler + "isCustom" is GONE, not necessary an confusing anyways (monte) +* move all criteria/tranform functions to plugins (monte) +* add second param to connect() to reset default form (xces, monte) +* updated disconnect() to release object references (boots) +* updated _object_instance() to accept a release all parameter (boots) +* removed _smarty_instance(). Now _object_instance() used exlusively (boots) +* update connect() with stronger Smarty class checking (boots) +* remove deprecated register_function() method (monte) +* make register_form() remove any previously registered data when passed second + parameter of "true", remove reset_form(), no longer necessary. (monte) +* update isEmail to check all addresses separated by newlines (monte) +* make criteria and transformations work on array elements unless + specifically stated in {validate ...} tag as @foo (monte) + +2.1-b1 June 10, 2004 +-------------------- + +* add "halt" parameter for stopping validation on a form (monte) +* add register_object() method, add support for foo->bar isCustom functions (monte) +* change register_form() behavior: do NOT throw an error when a form is already + registered. Just return false (monte) +* use message from validator tag instead of session so updates are seen (monte) +* document reset_form() method (was in RC1, not documented) (monte) + +2.0RC1 June 7, 2004 +------------------- + +* remove clear(), add disconnect() method (monte) +* add register_form(), unregister_form(), is_form_registered() methods (monte) +* remove init(), add connect() method, require smarty object as param (monte) + +1.6 June 1, 2004 +---------------- + +* change assign/append to act separately (monte, xces) +* add transform parameter, deprecate trim parameter (monte) +* add register_criteria() and register_transform() methods, + deprecate register_function() method (monte) +* add is_init() and clear() methods (monte) + +1.5 May 27th, 2004 +------------------ + +* fix bug with passing form name to custom function (xces, monte) +* added "append" attribute as alternate to "assign" (xces, monte) +* added fourth parameter to custom functions to access all form vars. (monte) + +1.4 May 26th, 2004 +------------------ + +* added third parameter to custom functions to access all available attrs. +* fixed bug in is_registered_function() method (only affects custom funcs) +* fixed incorrect example of is_valid() in the docs + +1.3 May 25th, 2004 +------------------ + +* added isLength validator +* stop validation after one validator fails (per field) +* fix trim() functionality +* fix _is_float function call (typo) +* fix foreach() error condition + +1.2 May 7th, 2004 +----------------- + +* changed behavior of isCustom functions to require registration + (instead of allowing anything when no functions are registered.) + +1.1 May 7th, 2004 +----------------- + +* fixed some documentation errors +* renamed isValid() to is_valid to more closely follow Smarty function names +* added register_function() to secure function calls with "isCustom" + +1.0 May 6th, 2004 +----------------- + +initial release. Added: trunk/vendor/SmartyValidate-2.9/README =================================================================== --- trunk/vendor/SmartyValidate-2.9/README (rev 0) +++ trunk/vendor/SmartyValidate-2.9/README 2007-12-08 21:53:43 UTC (rev 207) @@ -0,0 +1,1095 @@ +NAME: + + SmartyValidate: a class/plugin for validating form variables + within the Smarty template environment. + +AUTHOR: + Monte Ohrt (monte [AT] ohrt [DOT] com) + +VERSION: + 2.9 + +DATE: + April 23rd, 2007 + +WEBSITE: + http://www.phpinsider.com/php/code/SmartyValidate/ + +DOWNLOAD: + http://www.phpinsider.com/php/code/SmartyValidate/SmartyValidate-current.tar.gz + +ANONYMOUS CVS: (leave password empty) + cvs -d :pserver:ano...@cv...:/export/CVS login + cvs -d :pserver:ano...@cv...:/export/CVS checkout SmartyValidate + +SYNOPSIS: + + index.php + --------- + + session_start(); + require('Smarty.class.php'); + require('SmartyValidate.class.php'); + + $smarty =& new Smarty; + + + if(empty($_POST)) { + SmartyValidate::connect($smarty, true); + SmartyValidate::register_validator('fname','FullName','notEmpty'); + SmartyValidate::register_validator('fdate','Date','isDate'); + $smarty->display('form.tpl'); + } else { + SmartyValidate::connect($smarty); + // validate after a POST + if(SmartyValidate::is_valid($_POST)) { + // no errors, done with SmartyValidate + SmartyValidate::disconnect(); + $smarty->display('success.tpl'); + } else { + // error, redraw the form + $smarty->assign($_POST); + $smarty->display('form.tpl'); + } + } + + form.tpl + -------- + + <form method="POST" action="index.php"> + + {validate id="fname" message="Full Name cannot be empty"} + Full Name: <input type="text" name="FullName"> + + {validate id="fdate" message="Date is not valid"} + Date: <input type="text" name="Date"> + + <input type="submit"> + </form> + +DESCRIPTION: + + What is SmartyValidate? + + SmartyValidate is a form validation class. Its design goals are to + leverage the Smarty templating environment and make form validation + as easy and flexible as possible. + +BACKGROUND: + + Form validation is one of the most frequently performed tasks when + it comes to web application programming. Developing form validation + can be a tedious and time consuming task. SmartyValidate simplifies + this effort by abstracting the validation process. You basically + provide the validation criteria and error messages, SmartyValidate + does the rest! + + On the application side, you call SmartyValidate::connect($smarty) first, + passing your smarty object as the parameter. Then you register your + validators with the SmartyValidate::register_validator() function, once for + each validation criteria on the form. Once the form is posted, you call + SmartyValidate::is_valid($_POST) and depending on the outcome, you either + continue with a valid form or begin a form redraw cycle until all the + validation criteria is met. This keeps the form validation process to a bare + minimum on the application side. + + In the form template, you put {validate ...} tags which handle error + messages that get displayed upon a validation error. + + +FEATURES: + + Supplied validation criteria includes empty, integer, float, price, + email syntax, credit card checksums, credit card exp dates, valid + date syntax, equality between fields, ranges, lengths, regular expression + matching and custom function calls. Create your own through Smarty plugins, + PHP functions or class methods. + + Transform functions can be applied to form values prior to validation, + such as trimming, upper-casing, etc. Create your own through Smarty Plugins, + PHP functions or class methods. + + {validate ...} tags can be located anywhere in your template, regardless of + where the corresponding fields are located. + + Multiple validators may be used for one field. Once one validator fails, + the remaining validators for that field are ignored. A "halt" parameter can + also stop validation on remaining fields. + + +CAVEATS: + + Smarty supports validation on single-level array values such as foo[] and + foo[bar], but does not (currently) support nested array validation such as + foo[bar][blah]. So you can do this: + + {validate field="foo[bar]" criteria="notEmpty" ...} + <input type="text" name="foo[bar]"> + + But not this: + + {validate field="foo[bar][blah]" criteria="notEmpty" ...} + <input type="text" name="foo[bar][blah]"> + + +REQUIREMENTS: + + You must enable session management prior to using SmartyValidate. Do this + by calling session_start() at the top of your PHP application. + SmartyValidate also requires the Smarty template environment. + +INSTALLATION: + + It is assumed that you are familiar with the Smarty templating + installation and setup, so I will not explain Smarty template + directories and such. Please refer to the Smarty documentation for + that information. + + To install SmartyValidate: + + * Copy the 'SmartyValidate.class.php' file to a place within your + php_include path (or use absolute pathnames when including.) + * Copy all of the plugins to your Smarty plugin directory. (located + in the plugins/ directory of the distribution.) + +EXAMPLE: + + Here is a full working example of how to use SmartyValidate. Put the + form.tpl and success.tpl files in your Smarty template directory. + + + index.php + --------- + + <?php + session_start(); + + // you will ... [truncated message content] |
From: <dwe...@us...> - 2007-12-08 21:47:17
|
Revision: 206 http://elma.svn.sourceforge.net/elma/?rev=206&view=rev Author: dweuthen Date: 2007-12-08 13:47:16 -0800 (Sat, 08 Dec 2007) Log Message: ----------- added remarks Modified Paths: -------------- trunk/includes/acl.inc.php Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-08 21:09:07 UTC (rev 205) +++ trunk/includes/acl.inc.php 2007-12-08 21:47:16 UTC (rev 206) @@ -1,6 +1,13 @@ <?php -// ACLs +/* ACLs + * + * Remarks: + * + * user_edit_himself is only used to show the menu enty for a user to edit his own settings + * + */ + define ("ACL",serialize(array( "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","statistics"), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-08 21:09:14
|
Revision: 205 http://elma.svn.sourceforge.net/elma/?rev=205&view=rev Author: Panther_1 Date: 2007-12-08 13:09:07 -0800 (Sat, 08 Dec 2007) Log Message: ----------- User can't deactivate/active his self Modified Paths: -------------- trunk/includes/acl.inc.php trunk/templates/simple/content_user_edit.tpl Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-08 20:48:11 UTC (rev 204) +++ trunk/includes/acl.inc.php 2007-12-08 21:09:07 UTC (rev 205) @@ -2,8 +2,8 @@ // ACLs define ("ACL",serialize(array( - "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), - "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","statistics"), + "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), + "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_edit.active","user_delete","alias_new","alias_edit","alias_delete","statistics"), "user" => array("main", "user_edit", "user_edit_himself") ))); Modified: trunk/templates/simple/content_user_edit.tpl =================================================================== --- trunk/templates/simple/content_user_edit.tpl 2007-12-08 20:48:11 UTC (rev 204) +++ trunk/templates/simple/content_user_edit.tpl 2007-12-08 21:09:07 UTC (rev 205) @@ -28,6 +28,7 @@ <input type="text" name="sn" value="{$user.sn.0}" /> </td> </tr> + {if @in_array("user_edit.active",$acl)} <tr> <td> {t}Is active?{/t} @@ -36,6 +37,7 @@ <input type="checkbox" name="mailstatus" {if $user.mailstatus.0 eq "FALSE"}{else}checked="checked"{/if} /> </td> </tr> + {/if} <tr> <td colspan="2"> <hr/> @@ -89,7 +91,7 @@ {t}Password{/t} </td> <td> - <input type="text" name="clearpassword" value="{$user.clearpassword.0}" /> + <input type="password" name="clearpassword" value="{$user.clearpassword.0}" /> </td> </tr> <tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-08 20:48:15
|
Revision: 204 http://elma.svn.sourceforge.net/elma/?rev=204&view=rev Author: Panther_1 Date: 2007-12-08 12:48:11 -0800 (Sat, 08 Dec 2007) Log Message: ----------- fix user change password Modified Paths: -------------- trunk/modules/content_user_edit.php Modified: trunk/modules/content_user_edit.php =================================================================== --- trunk/modules/content_user_edit.php 2007-12-08 20:28:35 UTC (rev 203) +++ trunk/modules/content_user_edit.php 2007-12-08 20:48:11 UTC (rev 204) @@ -1,141 +1,146 @@ -<?php -/** - * @author Daniel Weuthen <da...@we...> - * @version $LastChangedRevision$ - * @package ELMA - * - * $Id$ - * $LastChangedBy$ - * - * ===================================================================== - * - * 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., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA - * - * ===================================================================== - */ - -/** - * content user edit - * - * This content module is used for creating the user edit/add form and - * handling the submited data. - */ - -class content_user_edit extends module_base -{ - - /** - * Constructor of this class - */ - function content_user_edit() - { - parent::module_base(); - } - - /** - * This method is called after the constructor by the main page - */ - function proceed() - { - - if ($_SESSION["userclass"] == "user") { - - $email = split ( '@', $_SESSION["username"] ); - $user = $email[0]; - $domain = $email[1]; - } else { - - $user = $_GET["user"]; - $domain = $_GET["domain"]; - - } - - $this->smarty->assign("domain",$domain); - - // new user created or existing user modified - if (isset($_POST["submit"])) { - - // create array of submitted values - $eximFilterValues["vacation"]["values"] = array( "STATUS" => "", - "RECIPIENT" => $_POST["uid"]."@".$domain, - "MESSAGE" => $_POST["nlo_vacationmessage"]); - if (! isset($_POST["nlo_vacationstatus"])) { - $eximFilterValues["vacation"]["values"]["STATUS"] = "#"; - } - - $eximFilterValues["redirect"]["values"] = array( "STATUS" => "", - "RECIPIENT" => $_POST["nlo_redirectrecipient"]); - if (! isset($_POST["nlo_redirectstatus"])) { - $eximFilterValues["redirect"]["values"]["STATUS"] = "#"; - } - - // remove all non LDAP objects from submited form - // an the submit and mode value - $my_user = remove_key_by_str($_POST,"nlo_"); - unset($my_user["submit"]); - - if (isset($_POST["mailstatus"])) { - $my_user["mailstatus"] = "TRUE"; - } else { - $my_user["mailstatus"] = "FALSE"; - } - - $my_user["mailSieveFilter"] = createEximFilter( $eximFilterValues ); - - $my_user["userpassword"] = "{MD5}".base64_encode(pack("H*",md5($my_user["clearpassword"]))); - $validation_errors = validate_user($my_user); - if (count($validation_errors) == 0) { - $this->ldap->modifyUser($domain,$my_user); - $submit_status = ldap_errno($this->ldap->cid); - if ($submit_status == "0") { - $this->smarty->assign("submit_status",$submit_status); - $user = $my_user["uid"]; - } else { - $this->smarty->assign("submit_status",ldap_err2str($submit_status)); - } - } else { - $this->smarty->assign("submit_status","Invalid Data"); - $this->smarty->assign("validation_errors",$validation_errors); - } - } else { - $this->smarty->assign("submit_status",-1); - } - - if ( $user == "new" ) { - $this->smarty->assign("mode","add"); - } else { - $my_user = $this->ldap->getUser($domain,$user); - $eximFilterValues = parseEximFilter($my_user["mailsievefilter"][0]); - $this->smarty->assign("mode","modify"); - $this->smarty->assign("user",$my_user); - $this->smarty->assign("vacationsettings",$eximFilterValues["vacation"]["values"]); - $this->smarty->assign("redirectsettings",$eximFilterValues["redirect"]["values"]); - } - } - - /** - * This method returns any content that should be echoed by the - * main page. - * - * @return string - */ - function getContent() - { - $_content = $this->smarty->fetch('content_user_edit.tpl'); - return $_content; - } -} -// vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler: +<?php +/** + * @author Daniel Weuthen <da...@we...> + * @version $LastChangedRevision$ + * @package ELMA + * + * $Id$ + * $LastChangedBy$ + * + * ===================================================================== + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA + * + * ===================================================================== + */ + +/** + * content user edit + * + * This content module is used for creating the user edit/add form and + * handling the submited data. + */ + +class content_user_edit extends module_base +{ + + /** + * Constructor of this class + */ + function content_user_edit() + { + parent::module_base(); + } + + /** + * This method is called after the constructor by the main page + */ + function proceed() + { + + if ($_SESSION["userclass"] == "user") { + + $email = split ( '@', $_SESSION["username"] ); + $user = $email[0]; + $domain = $email[1]; + } else { + + $user = $_GET["user"]; + $domain = $_GET["domain"]; + + } + + $this->smarty->assign("domain",$domain); + + // new user created or existing user modified + if (isset($_POST["submit"])) { + + // create array of submitted values + $eximFilterValues["vacation"]["values"] = array( "STATUS" => "", + "RECIPIENT" => $_POST["uid"]."@".$domain, + "MESSAGE" => $_POST["nlo_vacationmessage"]); + if (! isset($_POST["nlo_vacationstatus"])) { + $eximFilterValues["vacation"]["values"]["STATUS"] = "#"; + } + + $eximFilterValues["redirect"]["values"] = array( "STATUS" => "", + "RECIPIENT" => $_POST["nlo_redirectrecipient"]); + if (! isset($_POST["nlo_redirectstatus"])) { + $eximFilterValues["redirect"]["values"]["STATUS"] = "#"; + } + + // remove all non LDAP objects from submited form + // an the submit and mode value + $my_user = remove_key_by_str($_POST,"nlo_"); + unset($my_user["submit"]); + + if (isset($_POST["mailstatus"])) { + $my_user["mailstatus"] = "TRUE"; + } else { + $my_user["mailstatus"] = "FALSE"; + } + + $my_user["mailSieveFilter"] = createEximFilter( $eximFilterValues ); + + $my_user["userpassword"] = "{MD5}".base64_encode(pack("H*",md5($my_user["clearpassword"]))); + $validation_errors = validate_user($my_user); + if (count($validation_errors) == 0) { + $this->ldap->modifyUser($domain,$my_user); + $submit_status = ldap_errno($this->ldap->cid); + if ($submit_status == "0") { + if ($_SESSION["userclass"] == "user") { + $LDAP_BINDPASS = $my_user["clearpassword"]; + $crypt = new mycrypt(); + $_SESSION["ldap_bindpass"] = $crypt->encrypt($LDAP_BINDPASS); + } + $this->smarty->assign("submit_status",$submit_status); + $user = $my_user["uid"]; + } else { + $this->smarty->assign("submit_status",ldap_err2str($submit_status)); + } + } else { + $this->smarty->assign("submit_status","Invalid Data"); + $this->smarty->assign("validation_errors",$validation_errors); + } + } else { + $this->smarty->assign("submit_status",-1); + } + + if ( $user == "new" ) { + $this->smarty->assign("mode","add"); + } else { + $my_user = $this->ldap->getUser($domain,$user); + $eximFilterValues = parseEximFilter($my_user["mailsievefilter"][0]); + $this->smarty->assign("mode","modify"); + $this->smarty->assign("user",$my_user); + $this->smarty->assign("vacationsettings",$eximFilterValues["vacation"]["values"]); + $this->smarty->assign("redirectsettings",$eximFilterValues["redirect"]["values"]); + } + } + + /** + * This method returns any content that should be echoed by the + * main page. + * + * @return string + */ + function getContent() + { + $_content = $this->smarty->fetch('content_user_edit.tpl'); + return $_content; + } +} +// vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 20:28:37
|
Revision: 203 http://elma.svn.sourceforge.net/elma/?rev=203&view=rev Author: dweuthen Date: 2007-12-08 12:28:35 -0800 (Sat, 08 Dec 2007) Log Message: ----------- bug fixing for last changes Modified Paths: -------------- trunk/includes/acl.inc.php trunk/index.php trunk/modules/content_user_edit.php Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-08 20:02:19 UTC (rev 202) +++ trunk/includes/acl.inc.php 2007-12-08 20:28:35 UTC (rev 203) @@ -4,7 +4,7 @@ define ("ACL",serialize(array( "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","statistics"), - "user" => array("main, user_edit, user_edit_himself") + "user" => array("main", "user_edit", "user_edit_himself") ))); ?> Modified: trunk/index.php =================================================================== --- trunk/index.php 2007-12-08 20:02:19 UTC (rev 202) +++ trunk/index.php 2007-12-08 20:28:35 UTC (rev 203) @@ -80,6 +80,8 @@ $content = $content_module->getContent(); } else { $content = "no access"; + my_print_r($_SESSION); + my_print_r($acl); } $smarty->display("header.tpl"); Modified: trunk/modules/content_user_edit.php =================================================================== --- trunk/modules/content_user_edit.php 2007-12-08 20:02:19 UTC (rev 202) +++ trunk/modules/content_user_edit.php 2007-12-08 20:28:35 UTC (rev 203) @@ -51,7 +51,7 @@ function proceed() { - if ($_SESSION["userclass"] = "user") { + if ($_SESSION["userclass"] == "user") { $email = split ( '@', $_SESSION["username"] ); $user = $email[0]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 20:02:21
|
Revision: 202 http://elma.svn.sourceforge.net/elma/?rev=202&view=rev Author: dweuthen Date: 2007-12-08 12:02:19 -0800 (Sat, 08 Dec 2007) Log Message: ----------- give the user the possibility to edit his own settings Modified Paths: -------------- trunk/includes/acl.inc.php Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-08 19:59:28 UTC (rev 201) +++ trunk/includes/acl.inc.php 2007-12-08 20:02:19 UTC (rev 202) @@ -4,7 +4,7 @@ define ("ACL",serialize(array( "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","statistics"), - "user" => array("main, user_edit_himself") + "user" => array("main, user_edit, user_edit_himself") ))); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 19:59:53
|
Revision: 201 http://elma.svn.sourceforge.net/elma/?rev=201&view=rev Author: dweuthen Date: 2007-12-08 11:59:28 -0800 (Sat, 08 Dec 2007) Log Message: ----------- still testing Modified Paths: -------------- trunk/includes/acl.inc.php trunk/index.php trunk/templates/simple/navigation.tpl Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-08 19:52:14 UTC (rev 200) +++ trunk/includes/acl.inc.php 2007-12-08 19:59:28 UTC (rev 201) @@ -4,7 +4,7 @@ define ("ACL",serialize(array( "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","statistics"), - "user" => array("main, user_edit") + "user" => array("main, user_edit_himself") ))); ?> Modified: trunk/index.php =================================================================== --- trunk/index.php 2007-12-08 19:52:14 UTC (rev 200) +++ trunk/index.php 2007-12-08 19:59:28 UTC (rev 201) @@ -43,10 +43,7 @@ $module = $_POST["module"]; else if (isset($_GET["module"])) $module = $_GET["module"]; -else if ( (isset($_SESSION["userclass"])) && ($_SESSION["userclass"] == "user") ) { - $module = "user_edit"; - $_GET["module"] = $module; -} else { +else { $module = "main"; $_GET["module"] = $module; } Modified: trunk/templates/simple/navigation.tpl =================================================================== --- trunk/templates/simple/navigation.tpl 2007-12-08 19:52:14 UTC (rev 200) +++ trunk/templates/simple/navigation.tpl 2007-12-08 19:59:28 UTC (rev 201) @@ -4,7 +4,7 @@ {if @in_array("domains_list",$acl) } <li><a href="{$smarty.server.PHP_SELF}?module=domains_list">{t}Domains{/t}</a></li> {/if} - {if $smarty.session.userclass eq "user" } + {if @in_array("user_edit_himself",$acl) } <li><a href="{$smarty.server.PHP_SELF}?module=user_edit">{t}Settings{/t}</a></li> {/if} {if @in_array("settings",$acl) } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 19:52:17
|
Revision: 200 http://elma.svn.sourceforge.net/elma/?rev=200&view=rev Author: dweuthen Date: 2007-12-08 11:52:14 -0800 (Sat, 08 Dec 2007) Log Message: ----------- just testing Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2007-12-08 18:50:19 UTC (rev 199) +++ trunk/index.php 2007-12-08 19:52:14 UTC (rev 200) @@ -43,11 +43,15 @@ $module = $_POST["module"]; else if (isset($_GET["module"])) $module = $_GET["module"]; -else { +else if ( (isset($_SESSION["userclass"])) && ($_SESSION["userclass"] == "user") ) { + $module = "user_edit"; + $_GET["module"] = $module; +} else { $module = "main"; $_GET["module"] = $module; } + if (!isset($_SESSION["login"])) { session_destroy(); if (isset($_GET["loginerror"])) $smarty->assign("loginerror",$_GET["loginerror"]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dwe...@us...> - 2007-12-08 18:50:27
|
Revision: 199 http://elma.svn.sourceforge.net/elma/?rev=199&view=rev Author: dweuthen Date: 2007-12-08 10:50:19 -0800 (Sat, 08 Dec 2007) Log Message: ----------- removed templates_c and cache. will now be ignored by svn again Removed Paths: ------------- trunk/cache/ trunk/templates_c/ Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Name: svn:ignore - + templates_c cache This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-07 15:59:50
|
Revision: 198 http://elma.svn.sourceforge.net/elma/?rev=198&view=rev Author: Panther_1 Date: 2007-12-07 07:59:46 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Now user can edit his own settings Modified Paths: -------------- trunk/includes/acl.inc.php trunk/modules/content_user_edit.php trunk/templates/simple/navigation.tpl Modified: trunk/includes/acl.inc.php =================================================================== --- trunk/includes/acl.inc.php 2007-12-07 13:51:15 UTC (rev 197) +++ trunk/includes/acl.inc.php 2007-12-07 15:59:46 UTC (rev 198) @@ -4,7 +4,7 @@ define ("ACL",serialize(array( "systemadmin" => array("main","domains_list","domain_new","domain_new.mailstorageserver","domain_new.spamfilter","domain_edit","domain_edit.mailstorageserver","domain_edit.spamfilter","domain_delete","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","settings","systemusers_list","systemuser_edit","systemuser_delete","globaladmins_edit","statistics"), "domainadmin" => array("main","domains_list","domain_edit","domain_edit.spamfilter","users_list","user_new","user_edit","user_delete","alias_new","alias_edit","alias_delete","statistics"), - "user" => array("main") + "user" => array("main, user_edit") ))); ?> Modified: trunk/modules/content_user_edit.php =================================================================== --- trunk/modules/content_user_edit.php 2007-12-07 13:51:15 UTC (rev 197) +++ trunk/modules/content_user_edit.php 2007-12-07 15:59:46 UTC (rev 198) @@ -50,8 +50,19 @@ */ function proceed() { + + if ($_SESSION["userclass"] = "user") { + + $email = split ( '@', $_SESSION["username"] ); + $user = $email[0]; + $domain = $email[1]; + } else { + $user = $_GET["user"]; $domain = $_GET["domain"]; + + } + $this->smarty->assign("domain",$domain); // new user created or existing user modified Modified: trunk/templates/simple/navigation.tpl =================================================================== --- trunk/templates/simple/navigation.tpl 2007-12-07 13:51:15 UTC (rev 197) +++ trunk/templates/simple/navigation.tpl 2007-12-07 15:59:46 UTC (rev 198) @@ -4,6 +4,9 @@ {if @in_array("domains_list",$acl) } <li><a href="{$smarty.server.PHP_SELF}?module=domains_list">{t}Domains{/t}</a></li> {/if} + {if $smarty.session.userclass eq "user" } + <li><a href="{$smarty.server.PHP_SELF}?module=user_edit">{t}Settings{/t}</a></li> + {/if} {if @in_array("settings",$acl) } <li><a href="{$smarty.server.PHP_SELF}?module=settings">{t}Settings{/t}</a></li> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <el...@us...> - 2007-12-07 13:51:16
|
Revision: 197 http://elma.svn.sourceforge.net/elma/?rev=197&view=rev Author: elch86 Date: 2007-12-07 05:51:15 -0800 (Fri, 07 Dec 2007) Log Message: ----------- templates_c is now under version control, but w/o files. Edited svn:ignore accordingly... Added Paths: ----------- trunk/templates_c/ Removed Paths: ------------- trunk/vendor/Smarty-2.6.18.tar.gz trunk/vendor/smarty-gettext-1.0b1.tgz Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Name: svn:ignore - templates_c + Property changes on: trunk/templates_c ___________________________________________________________________ Name: svn:ignore + * Deleted: trunk/vendor/Smarty-2.6.18.tar.gz =================================================================== (Binary files differ) Deleted: trunk/vendor/smarty-gettext-1.0b1.tgz =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Pan...@us...> - 2007-12-07 13:51:02
|
Revision: 196 http://elma.svn.sourceforge.net/elma/?rev=196&view=rev Author: Panther_1 Date: 2007-12-07 05:50:59 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Activate cacheing Modified Paths: -------------- trunk/includes/smarty.inc.php Added Paths: ----------- trunk/cache/ Modified: trunk/includes/smarty.inc.php =================================================================== --- trunk/includes/smarty.inc.php 2007-12-07 13:35:44 UTC (rev 195) +++ trunk/includes/smarty.inc.php 2007-12-07 13:50:59 UTC (rev 196) @@ -36,5 +36,6 @@ $smarty->assign('_SELF',$_SERVER['PHP_SELF']); $smarty->assign('template_path',"templates/".TEMPLATE); $smarty->compile_dir = getcwd().'/templates_c'; +$smarty->cache_dir = getcwd().'/cache'; // vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <el...@us...> - 2007-12-07 13:35:52
|
Revision: 195 http://elma.svn.sourceforge.net/elma/?rev=195&view=rev Author: elch86 Date: 2007-12-07 05:35:44 -0800 (Fri, 07 Dec 2007) Log Message: ----------- compile_dir has to be set explicitly Modified Paths: -------------- trunk/includes/smarty.inc.php Modified: trunk/includes/smarty.inc.php =================================================================== --- trunk/includes/smarty.inc.php 2007-12-07 12:58:37 UTC (rev 194) +++ trunk/includes/smarty.inc.php 2007-12-07 13:35:44 UTC (rev 195) @@ -35,5 +35,6 @@ $smarty->php_handling = SMARTY_PHP_REMOVE; $smarty->assign('_SELF',$_SERVER['PHP_SELF']); $smarty->assign('template_path',"templates/".TEMPLATE); +$smarty->compile_dir = getcwd().'/templates_c'; // vim:tabstop=4:expandtab:shiftwidth=4:filetype=php:syntax:ruler: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <el...@us...> - 2007-12-07 12:58:39
|
Revision: 194 http://elma.svn.sourceforge.net/elma/?rev=194&view=rev Author: elch86 Date: 2007-12-07 04:58:37 -0800 (Fri, 07 Dec 2007) Log Message: ----------- putenv() is needless. Modified Paths: -------------- trunk/includes/gettext.inc.php Modified: trunk/includes/gettext.inc.php =================================================================== --- trunk/includes/gettext.inc.php 2007-12-07 12:57:14 UTC (rev 193) +++ trunk/includes/gettext.inc.php 2007-12-07 12:58:37 UTC (rev 194) @@ -33,7 +33,6 @@ $set_language = DEFAULT_LANGUAGE; } -putenv("LANG=".$set_language); setlocale(LC_ALL, $set_language); // Set the text domain as 'messages' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |