Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
list of removed files

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Wed Aug 14, 2013 5:48 pm    Post subject: list of removed files Reply with quote

Hi

Is there a complete list, which files were removed when upgrading a 2.6.x version to a current 3.1.14? Actually I already have a list between Smarty 2.6.27 (Sep 25th, 2012) and 3.1.14, but I would like to know if there is more or if my list needs a change. (*) I do not want to remove libs completely, since there might be personal plugin adds.

I'd like to add a function to remove these (leftover) files before upgrading the system.

(*)
Quote:
./config_file.class.php only in Smarty/libs
./smarty_compiler.class.php only in Smarty/libs
./internals/core.assemble_plugin_filepath.php only in Smarty/libs
./internals/core.assign_smarty_interface.php only in Smarty/libs
./internals/core.create_dir_structure.php only in Smarty/libs
./internals/core.display_debug_console.php only in Smarty/libs
./internals/core.get_include_path.php only in Smarty/libs
./internals/core.get_microtime.php only in Smarty/libs
./internals/core.get_php_resource.php only in Smarty/libs
./internals/core.is_secure.php only in Smarty/libs
./internals/core.is_trusted.php only in Smarty/libs
./internals/core.load_plugins.php only in Smarty/libs
./internals/core.load_resource_plugin.php only in Smarty/libs
./internals/core.process_cached_inserts.php only in Smarty/libs
./internals/core.process_compiled_include.php only in Smarty/libs
./internals/core.read_cache_file.php only in Smarty/libs
./internals/core.rm_auto.php only in Smarty/libs
./internals/core.rmdir.php only in Smarty/libs
./internals/core.run_insert_handler.php only in Smarty/libs
./internals/core.smarty_include_php.php only in Smarty/libs
./internals/core.write_cache_file.php only in Smarty/libs
./internals/core.write_compiled_include.php only in Smarty/libs
./internals/core.write_compiled_resource.php only in Smarty/libs
./internals/core.write_file.php only in Smarty/libs
./plugins/compiler.assign.php only in Smarty/libs
./plugins/function.assign_debug_info.php only in Smarty/libs
./plugins/function.config_load.php only in Smarty/libs
./plugins/function.debug.php only in Smarty/libs
./plugins/function.eval.php only in Smarty/libs
./plugins/function.popup.php only in Smarty/libs
./plugins/function.popup_init.php only in Smarty/libs
./plugins/modifier.cat.php only in Smarty/libs
./plugins/modifier.count_characters.php only in Smarty/libs
./plugins/modifier.count_paragraphs.php only in Smarty/libs
./plugins/modifier.count_sentences.php only in Smarty/libs
./plugins/modifier.count_words.php only in Smarty/libs
./plugins/modifier.default.php only in Smarty/libs
./plugins/modifier.indent.php only in Smarty/libs
./plugins/modifier.lower.php only in Smarty/libs
./plugins/modifier.nl2br.php only in Smarty/libs
./plugins/modifier.string_format.php only in Smarty/libs
./plugins/modifier.strip.php only in Smarty/libs
./plugins/modifier.strip_tags.php only in Smarty/libs
./plugins/modifier.upper.php only in Smarty/libs
./plugins/modifier.wordwrap.php only in Smarty/libs
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7258
Location: Lincoln Nebraska, USA

PostPosted: Wed Aug 14, 2013 6:36 pm    Post subject: Reply with quote

As a rule of thumb, put all 3rd party plugins in their own directory. You should not be touching anything inside the Smarty /libs/ folder, as this just makes it much harder to update. An upgrade of Smarty should be as simple as replace the entire /libs/ folder, and remove cache/compile files.
Back to top
View user's profile Send private message Visit poster's website
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Thu Aug 15, 2013 6:25 am    Post subject: Reply with quote

Thanks mohrt.
I do not ask this on my behalf, since I would know on how to avoid passing private plugins etc in there, but not everybody knows.
I just wanted to have a complete list of removed files between Smarty 2.6 and 3.1 Series, to automatically remove them on autoupdates.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7258
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 15, 2013 1:51 pm    Post subject: Reply with quote

If you are upgrading from 2.x to 3.x, you would want to remove ALL of the files that ship with Smarty 2. So to get your file list, download the appropriate Smarty 2 version, and run:

Code:
find ./Smarty-2.xx/


on the unzipped folder to see a complete list. here is a list of Smarty 2.6.27 ( you are probably only interested in the /libs/ folder):

Quote:
./Smarty-2.6.27/
./Smarty-2.6.27/demo
./Smarty-2.6.27/demo/templates
./Smarty-2.6.27/demo/templates/header.tpl
./Smarty-2.6.27/demo/templates/index.tpl
./Smarty-2.6.27/demo/templates/footer.tpl
./Smarty-2.6.27/demo/templates_c
./Smarty-2.6.27/demo/index.php
./Smarty-2.6.27/demo/configs
./Smarty-2.6.27/demo/configs/test.conf
./Smarty-2.6.27/NEWS
./Smarty-2.6.27/FAQ
./Smarty-2.6.27/INSTALL
./Smarty-2.6.27/COPYING.lib
./Smarty-2.6.27/libs
./Smarty-2.6.27/libs/debug.tpl
./Smarty-2.6.27/libs/Config_File.class.php
./Smarty-2.6.27/libs/internals
./Smarty-2.6.27/libs/internals/core.process_cached_inserts.php
./Smarty-2.6.27/libs/internals/core.assign_smarty_interface.php
./Smarty-2.6.27/libs/internals/core.run_insert_handler.php
./Smarty-2.6.27/libs/internals/core.write_compiled_include.php
./Smarty-2.6.27/libs/internals/core.get_microtime.php
./Smarty-2.6.27/libs/internals/core.load_plugins.php
./Smarty-2.6.27/libs/internals/core.get_php_resource.php
./Smarty-2.6.27/libs/internals/core.read_cache_file.php
./Smarty-2.6.27/libs/internals/core.rm_auto.php
./Smarty-2.6.27/libs/internals/core.write_compiled_resource.php
./Smarty-2.6.27/libs/internals/core.is_trusted.php
./Smarty-2.6.27/libs/internals/core.assemble_plugin_filepath.php
./Smarty-2.6.27/libs/internals/core.create_dir_structure.php
./Smarty-2.6.27/libs/internals/core.load_resource_plugin.php
./Smarty-2.6.27/libs/internals/core.display_debug_console.php
./Smarty-2.6.27/libs/internals/core.rmdir.php
./Smarty-2.6.27/libs/internals/core.write_cache_file.php
./Smarty-2.6.27/libs/internals/core.get_include_path.php
./Smarty-2.6.27/libs/internals/core.is_secure.php
./Smarty-2.6.27/libs/internals/core.process_compiled_include.php
./Smarty-2.6.27/libs/internals/core.smarty_include_php.php
./Smarty-2.6.27/libs/internals/core.write_file.php
./Smarty-2.6.27/libs/Smarty_Compiler.class.php
./Smarty-2.6.27/libs/plugins
./Smarty-2.6.27/libs/plugins/outputfilter.trimwhitespace.php
./Smarty-2.6.27/libs/plugins/modifier.count_sentences.php
./Smarty-2.6.27/libs/plugins/function.popup_init.php
./Smarty-2.6.27/libs/plugins/function.eval.php
./Smarty-2.6.27/libs/plugins/function.assign_debug_info.php
./Smarty-2.6.27/libs/plugins/modifier.default.php
./Smarty-2.6.27/libs/plugins/function.mailto.php
./Smarty-2.6.27/libs/plugins/modifier.indent.php
./Smarty-2.6.27/libs/plugins/modifier.lower.php
./Smarty-2.6.27/libs/plugins/function.html_checkboxes.php
./Smarty-2.6.27/libs/plugins/function.counter.php
./Smarty-2.6.27/libs/plugins/modifier.replace.php
./Smarty-2.6.27/libs/plugins/modifier.debug_print_var.php
./Smarty-2.6.27/libs/plugins/modifier.upper.php
./Smarty-2.6.27/libs/plugins/modifier.date_format.php
./Smarty-2.6.27/libs/plugins/function.fetch.php
./Smarty-2.6.27/libs/plugins/modifier.truncate.php
./Smarty-2.6.27/libs/plugins/function.cycle.php
./Smarty-2.6.27/libs/plugins/modifier.regex_replace.php
./Smarty-2.6.27/libs/plugins/function.html_image.php
./Smarty-2.6.27/libs/plugins/function.html_table.php
./Smarty-2.6.27/libs/plugins/modifier.count_words.php
./Smarty-2.6.27/libs/plugins/function.config_load.php
./Smarty-2.6.27/libs/plugins/function.debug.php
./Smarty-2.6.27/libs/plugins/modifier.capitalize.php
./Smarty-2.6.27/libs/plugins/function.popup.php
./Smarty-2.6.27/libs/plugins/function.html_options.php
./Smarty-2.6.27/libs/plugins/block.textformat.php
./Smarty-2.6.27/libs/plugins/modifier.spacify.php
./Smarty-2.6.27/libs/plugins/modifier.nl2br.php
./Smarty-2.6.27/libs/plugins/modifier.count_characters.php
./Smarty-2.6.27/libs/plugins/modifier.cat.php
./Smarty-2.6.27/libs/plugins/shared.make_timestamp.php
./Smarty-2.6.27/libs/plugins/modifier.strip_tags.php
./Smarty-2.6.27/libs/plugins/modifier.count_paragraphs.php
./Smarty-2.6.27/libs/plugins/modifier.string_format.php
./Smarty-2.6.27/libs/plugins/function.html_select_date.php
./Smarty-2.6.27/libs/plugins/shared.escape_special_chars.php
./Smarty-2.6.27/libs/plugins/function.html_select_time.php
./Smarty-2.6.27/libs/plugins/modifier.strip.php
./Smarty-2.6.27/libs/plugins/modifier.wordwrap.php
./Smarty-2.6.27/libs/plugins/function.html_radios.php
./Smarty-2.6.27/libs/plugins/modifier.escape.php
./Smarty-2.6.27/libs/plugins/compiler.assign.php
./Smarty-2.6.27/libs/plugins/function.math.php
./Smarty-2.6.27/libs/Smarty.class.php
./Smarty-2.6.27/TODO
./Smarty-2.6.27/README
./Smarty-2.6.27/ChangeLog
./Smarty-2.6.27/RELEASE_NOTES
./Smarty-2.6.27/BUGS
./Smarty-2.6.27/QUICK_START
Back to top
View user's profile Send private message Visit poster's website
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Thu Aug 15, 2013 3:44 pm    Post subject: Reply with quote

Thanks.
How come your list has so much more "dead" files?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7258
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 15, 2013 3:46 pm    Post subject: Reply with quote

Aristophan wrote:
Thanks.
How come your list has so much more "dead" files?


What do you mean by dead files? This is the entire distro. You probably only install what is in the /libs/ folder, as stated above.
Back to top
View user's profile Send private message Visit poster's website
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Thu Aug 15, 2013 4:30 pm    Post subject: Reply with quote

Sorry I did not make this clear enough.
I only want to remove dead files by upgrading years old systems with 2.x libs to a current 3.1.x. Well, yes, I could just take that list and remove all files and dirs, but our autoupdate copies new files first, before upgrading routines are processed. This is why a need a list of all possibble dead files over the years.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7258
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 15, 2013 6:41 pm    Post subject: Reply with quote

2.x did go through a bit of a file restructure at one point, so I'm not sure how far back you want to go, or how well this approach will work. For the most part, the list above should work for you. Just remove all files in that list older than the date you installed Smarty 3.
Back to top
View user's profile Send private message Visit poster's website
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Fri Aug 16, 2013 7:46 am    Post subject: Reply with quote

How far back? To be sure since v2.6.9, or might also be a later state v2.6.18. Is that still possible to check this out for you, or did the 2.x file restructure happen inbetween?
Using dates is another idea, but I am not sure this stricly fits on all systems...
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7258
Location: Lincoln Nebraska, USA

PostPosted: Fri Aug 16, 2013 2:31 pm    Post subject: Reply with quote

it was a while back, before 2.6
Back to top
View user's profile Send private message Visit poster's website
Aristophan
Smarty Regular


Joined: 10 Jan 2011
Posts: 84

PostPosted: Fri Aug 16, 2013 3:45 pm    Post subject: Reply with quote

OK, thanks. Then my pasted list is the valid one, I guess.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP