diff --git a/BUGS b/BUGS index 6ff78653..2976f0ba 100644 --- a/BUGS +++ b/BUGS @@ -5,7 +5,8 @@ a built-in workaround for. PHP 4.0.4 has a bug with user callbacks which would cause this syntax in Smarty to crash PHP: {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with modifiers. if you are passing variables to {include} statements, you will need PHP 4.0.4 or later, which requires the -use of get_defined_vars() function. +use of get_defined_vars() function. Some versions of Windows 2k have a problem +with flock(). Comment out the flock() command in _write_file to get around this. To be absolutely safe, use 4.0.4pl or later with Smarty. diff --git a/INSTALL b/INSTALL index 1f06c77e..a0e00cce 100644 --- a/INSTALL +++ b/INSTALL @@ -11,8 +11,8 @@ libraries is included in your php include_path. Unix users check INSTALLATION: -* copy the Smarty.class.php, Smarty.addons.php and Config_File.class.php - scripts to a directory that is in your PHP include_path. +* copy the Smarty.class.php, Smarty.addons.php, Smarty_Compile.class.php and + Config_File.class.php scripts to a directory that is in your PHP include_path. * in the same directory as your php application, create a "templates" directory, "configs" directory and a "templates_c" directory. Be sure the diff --git a/NEWS b/NEWS index 6e4b259e..c1d44df3 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +Version 1.3.1 +------------- - document first, last, index_prev, index_next (Monte) - added 'first' and 'last' section properties. (Andrei) - split out compiling code to separate class for faster template execution diff --git a/QUICKSTART b/QUICKSTART index 6098653a..d4d1bf70 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -13,10 +13,10 @@ understand the difference in your OS regarding file permissions. INSTALLATION ------------ -Unpack the Smarty tarball. You will see three class files: Smarty.class.php, -Smarty.addons.php and Config_File.class.php. You will need to have all three of -these files somewhere in your PHP include path, so when you call -require("Smarty.class.php") from within your application, it can find the +Unpack the Smarty tarball. You will see fou: class files: Smarty.class.php, +Smarty.addons.php, Smarty_Compiler.class.php and Config_File.class.php. You will +need to have all three of these files somewhere in your PHP include path, so when +you call require("Smarty.class.php") from within your application, it can find the class. Smarty uses the PEAR libraries for some of its error handling routines. PEAR diff --git a/README b/README index 9587d2b6..9115a2b6 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME: Smarty - the PHP compiling template engine -VERSION: 1.3.0 +VERSION: 1.3.1 AUTHORS: diff --git a/Smarty.addons.php b/Smarty.addons.php index 30c77b13..99235814 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -4,7 +4,7 @@ * File: Smarty.addons.php * Author: Monte Ohrt * Andrei Zmievski - * Version: 1.3.0 + * Version: 1.3.1 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/Smarty.class.php b/Smarty.class.php index 0dafdb23..9001130b 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.0 + * Version: 1.3.1 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index eba013f7..68f1a6f8 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1,5 +1,43 @@ + * Andrei Zmievski + * + * Version: 1.3.1 + * Copyright: 2001 ispi of Lincoln, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * You may contact the authors of Smarty by e-mail at: + * monte@ispi.net + * andrei@ispi.net + * + * Or, write to: + * Monte Ohrt + * CTO, ispi + * 237 S. 70th suite 220 + * Lincoln, NE 68510 + * + * The latest version of Smarty can be obtained from: + * http://www.phpinsider.com/ + * + */ + class Smarty_Compiler extends Smarty { // internal vars diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 0dafdb23..9001130b 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 1.3.0 + * Version: 1.3.1 * Copyright: 2001 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index eba013f7..68f1a6f8 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1,5 +1,43 @@ + * Andrei Zmievski + * + * Version: 1.3.1 + * Copyright: 2001 ispi of Lincoln, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * You may contact the authors of Smarty by e-mail at: + * monte@ispi.net + * andrei@ispi.net + * + * Or, write to: + * Monte Ohrt + * CTO, ispi + * 237 S. 70th suite 220 + * Lincoln, NE 68510 + * + * The latest version of Smarty can be obtained from: + * http://www.phpinsider.com/ + * + */ + class Smarty_Compiler extends Smarty { // internal vars