- Brand new PDF of the contact list (using FPDF). -MC
- Even include Photos in the PDF (kludgy !). -MC
- * Validation :
- - quite a lot of rewrite, simplifications. -MC
- - now possible to add comments without any action. -MC
-
* Skins :
- Openweb : update. -MC
+ * Validation :
+ - quite a lot of rewrite, simplifications. -MC
+
Bug/Wish :
+ * Validations :
+ - #137: now possible to add comments without any action. -MC
+
================================================================================
VERSION 0.9.3 27 Dec 2004
return ((float)$usec + (float)$sec);
}
$TIME_BEGIN = microtime_float();
-
+
// {{{ defines
$i=0;
define('SKINNED', 0);
define('NO_SKIN', 1);
+setlocale(LC_MESSAGES, 'fr_FR');
+setlocale(LC_TIME, 'fr_FR');
+
// }}}
// {{{ globals + session init
{
global $globals;
- setlocale(LC_MESSAGES, 'fr_FR');
- setlocale(LC_TIME, 'fr_FR');
-
$this->template_dir = $globals->spoolroot."/templates/";
$this->compile_dir = $globals->spoolroot."/templates_c/";
- $this->plugins_dir[] = $globals->spoolroot."/plugins/";
+ array_unshift($this->plugins_dir, $globals->spoolroot."/plugins/");
$this->config_dir = $globals->spoolroot."/configs/";
$this->compile_check = !empty($globals->debug);
--- /dev/null
+<?php
+/***************************************************************************
+ * Copyright (C) 2003-2004 Polytechnique.org *
+ * http://opensource.polytechnique.org/ *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ ***************************************************************************/
+
+function smarty_modifier_date_format($string, $format="%d %b %Y", $default_date=null)
+{
+ require_once('Date.php');
+ if($string != '') {
+ $date = new Date($string);
+ return $date->format($format);
+ } elseif (!empty($default_date)) {
+ $date = new Date($default_date);
+ return $date->format($format);
+ } else {
+ return;
+ }
+}
+
+?>