source: branches/2.4/install/db/80-database.php @ 15934

Last change on this file since 15934 was 12922, checked in by mistic100, 13 years ago

update Piwigo headers to 2012, last change before the expected (or not) apocalypse

  • Property svn:eol-style set to LF
File size: 35.3 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based photo gallery                                    |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
8// +-----------------------------------------------------------------------+
9// | This program is free software; you can redistribute it and/or modify  |
10// | it under the terms of the GNU General Public License as published by  |
11// | the Free Software Foundation                                          |
12// |                                                                       |
13// | This program is distributed in the hope that it will be useful, but   |
14// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
15// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
16// | General Public License for more details.                              |
17// |                                                                       |
18// | You should have received a copy of the GNU General Public License     |
19// | along with this program; if not, write to the Free Software           |
20// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
21// | USA.                                                                  |
22// +-----------------------------------------------------------------------+
23
24if (!defined('PHPWG_ROOT_PATH'))
25{
26  die('Hacking attempt!');
27}
28
29/* $list_files generated by this sh
30#!/bin/sh
31
32final_src=trunk-r3105
33
34LIST_SOURCES="\
35phpwebgallery-1.0.0 \
36phpwebgallery-1.1.0 \
37phpwebgallery-1.2.1 \
38phpwebgallery-1.3.0 \
39phpwebgallery-1.3.1 \
40phpwebgallery-1.3.2 \
41phpwebgallery-1.3.3 \
42phpwebgallery-1.3.4 \
43phpwebgallery-1.4.0 \
44phpwebgallery-1.4.1 \
45phpwebgallery-1.5.0 \
46phpwebgallery-1.5.1 \
47phpwebgallery-1.5.2 \
48phpwebgallery-1.6.0RC1 \
49phpwebgallery-1.6.0RC2 \
50phpwebgallery-1.6.0 \
51phpwebgallery-1.6.1 \
52phpwebgallery-1.6.2 \
53phpwebgallery-1.7.0RC1 \
54phpwebgallery-1.7.0RC2 \
55phpwebgallery-1.7.0 \
56phpwebgallery-1.7.1 \
57phpwebgallery-1.7.2 \
58phpwebgallery-1.7.3 \
59phpwebgallery-2.0.0RC1 \
60phpwebgallery-2.0.0RC2 \
61phpwebgallery-2.0.0RC3 \
62phpwebgallery-2.0.0RC4 \
63$final_src \
64"
65
66set $LIST_SOURCES
67LastSrc=$1
68shift
69
70dir_all=`pwd`
71dir_final_src=$dir_all/$Src/$final_src
72
73for Src in $@
74do
75  dir_current=$dir_all/$Src
76  cd $LastSrc
77  echo "// Comparison between $Src and $LastSrc"
78  for f in `find *`
79  do
80    current_file_or_dir=$dir_current/$f
81    final_file_or_dir=$dir_final_src/$f
82    # if not exists on current src
83    [ ! -f  $current_file_or_dir ] && [ ! -d  $current_file_or_dir ] && \
84    # if not exists on final src
85    [ ! -f  $final_file_or_dir ] && [ ! -d  $final_file_or_dir ] && \
86    # Display file or dir to delete
87      echo "'$f',"
88  done
89  cd -
90  LastSrc=$Src;
91done
92
93*/
94
95$list_files = array(
96// Comparison between phpwebgallery-1.1.0 and phpwebgallery-1.0.0
97'admin_phpwebgallery',
98'admin_phpwebgallery/admin.php',
99'admin_phpwebgallery/ajout.php',
100'admin_phpwebgallery/configuration.php',
101'admin_phpwebgallery/creationBD.php',
102'admin_phpwebgallery/historique.php',
103'admin_phpwebgallery/index.htm',
104'admin_phpwebgallery/install_step1.php',
105'admin_phpwebgallery/install_step2.php',
106'admin_phpwebgallery/isadmin.php',
107'admin_phpwebgallery/liste_users.php',
108'admin_phpwebgallery/manuel.php',
109'admin_phpwebgallery/miseajour.php',
110'admin_phpwebgallery/perm.php',
111'commenter.php',
112'debut_tableau.inc',
113'fin_tableau.inc',
114'help_phpwebgallery',
115'help_phpwebgallery/admin.png',
116'help_phpwebgallery/config_step2.png',
117'help_phpwebgallery/index.htm',
118'images_phpwebgallery',
119'images_phpwebgallery/bleu_01.gif',
120'images_phpwebgallery/bleu_02.gif',
121'images_phpwebgallery/bleu_03.gif',
122'images_phpwebgallery/bleu_04.gif',
123'images_phpwebgallery/bleu_05.gif',
124'images_phpwebgallery/bleu_06.gif',
125'images_phpwebgallery/bleu_07.gif',
126'images_phpwebgallery/bleu_08.gif',
127'images_phpwebgallery/bleu_09.gif',
128'images_phpwebgallery/commentaire.gif',
129'images_phpwebgallery/espace.gif',
130'images_phpwebgallery/gris_01.gif',
131'images_phpwebgallery/gris_02.gif',
132'images_phpwebgallery/gris_03.gif',
133'images_phpwebgallery/gris_04.gif',
134'images_phpwebgallery/gris_05.gif',
135'images_phpwebgallery/gris_06.gif',
136'images_phpwebgallery/gris_07.gif',
137'images_phpwebgallery/gris_08.gif',
138'images_phpwebgallery/gris_09.gif',
139'images_phpwebgallery/index.htm',
140'images_phpwebgallery/info.gif',
141'images_phpwebgallery/lost.gif',
142'images_phpwebgallery/lost2.gif',
143'images_phpwebgallery/moins.gif',
144'images_phpwebgallery/new_2.gif',
145'images_phpwebgallery/new_rouge.gif',
146'images_phpwebgallery/perm.gif',
147'images_phpwebgallery/php_sqreuil_artistes.gif',
148'images_phpwebgallery/plus.gif',
149'images_phpwebgallery/prev.gif',
150'images_phpwebgallery/puce.gif',
151'images_phpwebgallery/puce_noire.gif',
152'images_phpwebgallery/register.gif',
153'images_phpwebgallery/register2.gif',
154'images_phpwebgallery/supprimer.gif',
155'images_phpwebgallery/vert_01.gif',
156'images_phpwebgallery/vert_02.gif',
157'images_phpwebgallery/vert_03.gif',
158'images_phpwebgallery/vert_04.gif',
159'images_phpwebgallery/vert_05.gif',
160'images_phpwebgallery/vert_06.gif',
161'images_phpwebgallery/vert_07.gif',
162'images_phpwebgallery/vert_08.gif',
163'images_phpwebgallery/vert_09.gif',
164'images_phpwebgallery/violet_01.gif',
165'images_phpwebgallery/violet_02.gif',
166'images_phpwebgallery/violet_03.gif',
167'images_phpwebgallery/violet_04.gif',
168'images_phpwebgallery/violet_05.gif',
169'images_phpwebgallery/violet_06.gif',
170'images_phpwebgallery/violet_07.gif',
171'images_phpwebgallery/violet_08.gif',
172'images_phpwebgallery/violet_09.gif',
173'include_phpwebgallery',
174'include_phpwebgallery/config.php',
175'include_phpwebgallery/index.htm',
176'include_phpwebgallery/local/config/database.inc.php',
177'index.htm',
178// Comparison between phpwebgallery-1.2.1 and phpwebgallery-1.1.0
179'admin/isadmin.php',
180'images/commentaire.gif',
181'images/lost.gif',
182'images/prev.gif',
183'images/register.gif',
184'include/config.php',
185'template/agjimmy/blue',
186'template/agjimmy/blue/01.gif',
187'template/agjimmy/blue/02.gif',
188'template/agjimmy/blue/03.gif',
189'template/agjimmy/blue/04.gif',
190'template/agjimmy/blue/05.gif',
191'template/agjimmy/blue/06.gif',
192'template/agjimmy/blue/07.gif',
193'template/agjimmy/blue/08.gif',
194'template/agjimmy/blue/09.gif',
195'template/agjimmy/blue/collapsed.gif',
196'template/agjimmy/blue/commentaire.gif',
197'template/agjimmy/blue/conf.php',
198'template/agjimmy/blue/expanded.gif',
199'template/agjimmy/blue/lost.gif',
200'template/agjimmy/blue/new_long.gif',
201'template/agjimmy/blue/new_short.gif',
202'template/agjimmy/blue/prev.gif',
203'template/agjimmy/blue/register.gif',
204'template/eexell/coldblue/commentaire.gif',
205'template/eexell/coldblue/prev.gif',
206'template/neon',
207'template/neon/black',
208'template/neon/black/01.gif',
209'template/neon/black/02.gif',
210'template/neon/black/03.gif',
211'template/neon/black/04.gif',
212'template/neon/black/05.gif',
213'template/neon/black/06.gif',
214'template/neon/black/07.gif',
215'template/neon/black/08.gif',
216'template/neon/black/09.gif',
217'template/neon/black/collapsed.gif',
218'template/neon/black/commentaire.gif',
219'template/neon/black/conf.php',
220'template/neon/black/expanded.gif',
221'template/neon/black/lost.gif',
222'template/neon/black/new_long.gif',
223'template/neon/black/new_short.gif',
224'template/neon/black/prev.gif',
225'template/neon/black/register.gif',
226'template/rounded/blue',
227'template/rounded/blue/01.gif',
228'template/rounded/blue/02.gif',
229'template/rounded/blue/03.gif',
230'template/rounded/blue/04.gif',
231'template/rounded/blue/05.gif',
232'template/rounded/blue/06.gif',
233'template/rounded/blue/07.gif',
234'template/rounded/blue/08.gif',
235'template/rounded/blue/09.gif',
236'template/rounded/blue/collapsed.gif',
237'template/rounded/blue/commentaire.gif',
238'template/rounded/blue/conf.php',
239'template/rounded/blue/expanded.gif',
240'template/rounded/blue/lost.gif',
241'template/rounded/blue/new_long.gif',
242'template/rounded/blue/new_short.gif',
243'template/rounded/blue/prev.gif',
244'template/rounded/blue/register.gif',
245'template/rounded/darkgray/commentaire.gif',
246'template/rounded/darkgray/prev.gif',
247'template/rounded/gray',
248'template/rounded/gray/01.gif',
249'template/rounded/gray/02.gif',
250'template/rounded/gray/03.gif',
251'template/rounded/gray/04.gif',
252'template/rounded/gray/05.gif',
253'template/rounded/gray/06.gif',
254'template/rounded/gray/07.gif',
255'template/rounded/gray/08.gif',
256'template/rounded/gray/09.gif',
257'template/rounded/gray/collapsed.gif',
258'template/rounded/gray/commentaire.gif',
259'template/rounded/gray/conf.php',
260'template/rounded/gray/expanded.gif',
261'template/rounded/gray/lost.gif',
262'template/rounded/gray/new_long.gif',
263'template/rounded/gray/new_short.gif',
264'template/rounded/gray/prev.gif',
265'template/rounded/gray/register.gif',
266// Comparison between phpwebgallery-1.3.0 and phpwebgallery-1.2.1
267'a_propos.php',
268'admin/ajout.php',
269'admin/cat.php',
270'admin/edit_cat.php',
271'admin/historique.php',
272'admin/images/arrow_up.gif',
273'admin/images/moins.gif',
274'admin/images/plus.gif',
275'admin/images/puce.gif',
276'admin/liste_users.php',
277'admin/manuel.php',
278'admin/miseajour.php',
279'admin/perm.php',
280'diapo.php',
281'images',
282'images/php_sqreuil_artistes.gif',
283'include/functions.php',
284'include/index.htm',
285'include/style.php',
286'language/czech.php',
287'language/danish.php',
288'language/italiano.php',
289'language/nederlands.php',
290'personnaliser.php',
291'photo.php',
292'template/agjimmy',
293'template/agjimmy/lightred',
294'template/agjimmy/lightred/01.gif',
295'template/agjimmy/lightred/02.gif',
296'template/agjimmy/lightred/03.gif',
297'template/agjimmy/lightred/04.gif',
298'template/agjimmy/lightred/05.gif',
299'template/agjimmy/lightred/06.gif',
300'template/agjimmy/lightred/07.gif',
301'template/agjimmy/lightred/08.gif',
302'template/agjimmy/lightred/09.gif',
303'template/agjimmy/lightred/collapsed.gif',
304'template/agjimmy/lightred/commentaire.gif',
305'template/agjimmy/lightred/conf.php',
306'template/agjimmy/lightred/delete.gif',
307'template/agjimmy/lightred/del_favorite.gif',
308'template/agjimmy/lightred/expanded.gif',
309'template/agjimmy/lightred/favorite.gif',
310'template/agjimmy/lightred/lost.gif',
311'template/agjimmy/lightred/new_long.gif',
312'template/agjimmy/lightred/new_short.gif',
313'template/agjimmy/lightred/register.gif',
314'template/eexell',
315'template/eexell/coldblue',
316'template/eexell/coldblue/01.gif',
317'template/eexell/coldblue/02.gif',
318'template/eexell/coldblue/03.gif',
319'template/eexell/coldblue/04.gif',
320'template/eexell/coldblue/05.gif',
321'template/eexell/coldblue/06.gif',
322'template/eexell/coldblue/07.gif',
323'template/eexell/coldblue/08.gif',
324'template/eexell/coldblue/09.gif',
325'template/eexell/coldblue/collapsed.gif',
326'template/eexell/coldblue/conf.php',
327'template/eexell/coldblue/delete.gif',
328'template/eexell/coldblue/del_favorite.gif',
329'template/eexell/coldblue/expanded.gif',
330'template/eexell/coldblue/favorite.gif',
331'template/eexell/coldblue/lost.gif',
332'template/eexell/coldblue/new_long.gif',
333'template/eexell/coldblue/new_short.gif',
334'template/eexell/coldblue/register.gif',
335'template/erya',
336'template/erya/blue',
337'template/erya/blue/01.gif',
338'template/erya/blue/02.gif',
339'template/erya/blue/03.gif',
340'template/erya/blue/04.gif',
341'template/erya/blue/05.gif',
342'template/erya/blue/06.gif',
343'template/erya/blue/07.gif',
344'template/erya/blue/08.gif',
345'template/erya/blue/09.gif',
346'template/erya/blue/collapsed.gif',
347'template/erya/blue/conf.php',
348'template/erya/blue/delete.gif',
349'template/erya/blue/del_favorite.gif',
350'template/erya/blue/expanded.gif',
351'template/erya/blue/favorite.gif',
352'template/erya/blue/lost.gif',
353'template/erya/blue/new_long.gif',
354'template/erya/blue/new_short.gif',
355'template/erya/blue/register.gif',
356'template/melodie',
357'template/melodie/blue',
358'template/melodie/blue/01.gif',
359'template/melodie/blue/02.gif',
360'template/melodie/blue/03.gif',
361'template/melodie/blue/04.gif',
362'template/melodie/blue/05.gif',
363'template/melodie/blue/06.gif',
364'template/melodie/blue/07.gif',
365'template/melodie/blue/08.gif',
366'template/melodie/blue/09.gif',
367'template/melodie/blue/collapsed.gif',
368'template/melodie/blue/conf.php',
369'template/melodie/blue/delete.gif',
370'template/melodie/blue/del_favorite.gif',
371'template/melodie/blue/expanded.gif',
372'template/melodie/blue/favorite.gif',
373'template/melodie/blue/lost.gif',
374'template/melodie/blue/new_long.gif',
375'template/melodie/blue/new_short.gif',
376'template/melodie/blue/register.gif',
377'template/rounded',
378'template/rounded/darkgray',
379'template/rounded/darkgray/01.gif',
380'template/rounded/darkgray/02.gif',
381'template/rounded/darkgray/03.gif',
382'template/rounded/darkgray/04.gif',
383'template/rounded/darkgray/05.gif',
384'template/rounded/darkgray/06.gif',
385'template/rounded/darkgray/07.gif',
386'template/rounded/darkgray/08.gif',
387'template/rounded/darkgray/09.gif',
388'template/rounded/darkgray/collapsed.gif',
389'template/rounded/darkgray/conf.php',
390'template/rounded/darkgray/delete.gif',
391'template/rounded/darkgray/del_favorite.gif',
392'template/rounded/darkgray/expanded.gif',
393'template/rounded/darkgray/favorite.gif',
394'template/rounded/darkgray/lost.gif',
395'template/rounded/darkgray/new_long.gif',
396'template/rounded/darkgray/new_short.gif',
397'template/rounded/darkgray/register.gif',
398'template/square',
399'template/square/light',
400'template/square/light/01.gif',
401'template/square/light/02.gif',
402'template/square/light/03.gif',
403'template/square/light/04.gif',
404'template/square/light/05.gif',
405'template/square/light/06.gif',
406'template/square/light/07.gif',
407'template/square/light/08.gif',
408'template/square/light/09.gif',
409'template/square/light/collapsed.gif',
410'template/square/light/conf.php',
411'template/square/light/delete.gif',
412'template/square/light/del_favorite.gif',
413'template/square/light/expanded.gif',
414'template/square/light/favorite.gif',
415'template/square/light/lost.gif',
416'template/square/light/new_long.gif',
417'template/square/light/new_short.gif',
418'template/square/light/register.gif',
419// Comparison between phpwebgallery-1.3.1 and phpwebgallery-1.3.0
420'template/default/style.inc.php',
421'template/default/theme/conf.php',
422// Comparison between phpwebgallery-1.3.2 and phpwebgallery-1.3.1
423// Comparison between phpwebgallery-1.3.3 and phpwebgallery-1.3.2
424// Comparison between phpwebgallery-1.3.4 and phpwebgallery-1.3.3
425// Comparison between phpwebgallery-1.4.0 and phpwebgallery-1.3.4
426'admin/admin.php',
427'admin/create_listing_file.php',
428'admin/images/admin.png',
429'admin/install.php',
430'admin/phpwebgallery_structure.sql',
431'admin/user_modify.php',
432'include/init.inc.php',
433'include/vtemplate.class.php',
434'language/catala.php',
435'language/czech.php',
436'language/deutsch.php',
437'language/dutch.php',
438'language/english.php',
439'language/francais.php',
440'language/japanese.php',
441'language/magyar.php',
442'language/norsk.php',
443'language/portuguese-br.php',
444'language/russian.php',
445'language/spanish.php',
446'language/svenska.php',
447'readme.txt',
448'template/default/about.vtp',
449'template/default/admin/admin.vtp',
450'template/default/admin/cat_list.vtp',
451'template/default/admin/cat_modify.vtp',
452'template/default/admin/comments.vtp',
453'template/default/admin/configuration.vtp',
454'template/default/admin/group_list.vtp',
455'template/default/admin/group_perm.vtp',
456'template/default/admin/help.vtp',
457'template/default/admin/infos_image.vtp',
458'template/default/admin/install.vtp',
459'template/default/admin/picture_modify.vtp',
460'template/default/admin/stats.vtp',
461'template/default/admin/thumbnail.vtp',
462'template/default/admin/update.vtp',
463'template/default/admin/user_list.vtp',
464'template/default/admin/user_modify.vtp',
465'template/default/admin/user_perm.vtp',
466'template/default/admin/waiting.vtp',
467'template/default/category.vtp',
468'template/default/comments.vtp',
469'template/default/default-admin.css',
470'template/default/footer.htm',
471'template/default/footer.vtp',
472'template/default/header.htm',
473'template/default/header.vtp',
474'template/default/htmlfunctions.inc.php',
475'template/default/identification.vtp',
476'template/default/picture.vtp',
477'template/default/profile.vtp',
478'template/default/register.vtp',
479'template/default/search.vtp',
480'template/default/theme/01.gif',
481'template/default/theme/02.gif',
482'template/default/theme/03.gif',
483'template/default/theme/04.gif',
484'template/default/theme/05.gif',
485'template/default/theme/06.gif',
486'template/default/theme/07.gif',
487'template/default/theme/08.gif',
488'template/default/theme/09.gif',
489'template/default/theme/collapsed.gif',
490'template/default/theme/expanded.gif',
491'template/default/theme/new_long.gif',
492'template/default/theme/new_short.gif',
493'template/default/upload.vtp',
494// Comparison between phpwebgallery-1.4.1 and phpwebgallery-1.4.0
495// Comparison between phpwebgallery-1.5.0 and phpwebgallery-1.4.1
496'admin/admin_phpinfo.php',
497'admin/infos_images.php',
498'admin/search.php',
499'include/config.inc.php',
500'install/dbscheme.txt',
501'install/upgrade_1.3.2.php',
502'install/upgrade_1.3.3.php',
503'install/upgrade_1.3.4.php',
504'language/en_UK.iso-8859-1/faq.lang.php',
505'language/fr_FR.iso-8859-1/faq.lang.php',
506'template/default',
507'template/default/about.tpl',
508'template/default/admin',
509'template/default/admin/cat_list.tpl',
510'template/default/admin/cat_modify.tpl',
511'template/default/admin/cat_options.tpl',
512'template/default/admin/cat_perm.vtp',
513'template/default/admin/configuration.tpl',
514'template/default/admin/group_list.tpl',
515'template/default/admin/group_perm.tpl',
516'template/default/admin/help.tpl',
517'template/default/admin/images',
518'template/default/admin/images/arrow_down.gif',
519'template/default/admin/images/arrow_first.gif',
520'template/default/admin/images/arrow_last.gif',
521'template/default/admin/images/arrow_select.gif',
522'template/default/admin/images/arrow_up.gif',
523'template/default/admin/images/collapsed.gif',
524'template/default/admin/images/delete.gif',
525'template/default/admin/images/expanded.gif',
526'template/default/admin/images/icon_folder.gif',
527'template/default/admin/images/icon_folder_link.gif',
528'template/default/admin/images/icon_folder_lock.gif',
529'template/default/admin/images/icon_subfolder.gif',
530'template/default/admin/images/moins.gif',
531'template/default/admin/images/plus.gif',
532'template/default/admin/images/puce.gif',
533'template/default/admin/images/stat_left.gif',
534'template/default/admin/images/stat_middle.gif',
535'template/default/admin/images/stat_right.gif',
536'template/default/admin/infos_images.tpl',
537'template/default/admin/picture_modify.tpl',
538'template/default/admin/remote_site.tpl',
539'template/default/admin/search_username.tpl',
540'template/default/admin/stats.tpl',
541'template/default/admin/thumbnail.tpl',
542'template/default/admin/update.tpl',
543'template/default/admin/user_perm.tpl',
544'template/default/admin/waiting.tpl',
545'template/default/admin.tpl',
546'template/default/category.tpl',
547'template/default/comments.tpl',
548'template/default/default.css',
549'template/default/footer.tpl',
550'template/default/header.tpl',
551'template/default/identification.tpl',
552'template/default/images',
553'template/default/images/logo.jpg',
554'template/default/images/php_sqreuil_artistes.gif',
555'template/default/install.tpl',
556'template/default/mimetypes',
557'template/default/mimetypes/avi.png',
558'template/default/mimetypes/mp3.png',
559'template/default/mimetypes/mpg.png',
560'template/default/mimetypes/ogg.png',
561'template/default/mimetypes/zip.png',
562'template/default/picture.tpl',
563'template/default/profile.tpl',
564'template/default/redirect.tpl',
565'template/default/register.tpl',
566'template/default/search.tpl',
567'template/default/theme',
568'template/default/theme/button_bg.gif',
569'template/default/theme/categories.gif',
570'template/default/theme/delete.gif',
571'template/default/theme/del_favorite.gif',
572'template/default/theme/download.gif',
573'template/default/theme/eCard.gif',
574'template/default/theme/favorite.gif',
575'template/default/theme/left-arrow.gif',
576'template/default/theme/lost.gif',
577'template/default/theme/metadata.gif',
578'template/default/theme/properties.gif',
579'template/default/theme/recent.gif',
580'template/default/theme/register.gif',
581'template/default/theme/right-arrow.gif',
582'template/default/theme/slideshow.gif',
583'template/default/theme/tableh1_bg.gif',
584'template/default/upgrade.tpl',
585'template/default/upload.tpl',
586// Comparison between phpwebgallery-1.5.1 and phpwebgallery-1.5.0
587'include/.cvsignore',
588// Comparison between phpwebgallery-1.5.2 and phpwebgallery-1.5.1
589// Comparison between phpwebgallery-1.6.0RC1 and phpwebgallery-1.5.2
590'admin/include/isadmin.inc.php',
591'admin/remote_site.php',
592'admin/update.php',
593'include/category_calendar.inc.php',
594'install/upgrade_1.4.1.php',
595'template/yoga/admin/images',
596'template/yoga/admin/images/errors.png',
597'template/yoga/admin/images/infos.png',
598'template/yoga/admin/remote_site.tpl',
599'template/yoga/admin/update.tpl',
600'template/yoga/category.tpl',
601'template/yoga/mimetypes',
602'template/yoga/mimetypes/avi.png',
603'template/yoga/mimetypes/mp3.png',
604'template/yoga/mimetypes/mpg.png',
605'template/yoga/mimetypes/ogg.png',
606'template/yoga/mimetypes/zip.png',
607'template/yoga/theme/caddie_add.png',
608'template/yoga/theme/category_children.png',
609'template/yoga/theme/category_delete.png',
610'template/yoga/theme/category_edit.png',
611'template/yoga/theme/category_elements.png',
612'template/yoga/theme/category_jump-to.png',
613'template/yoga/theme/category_permissions.png',
614'template/yoga/theme/category_representant_random.png',
615'template/yoga/theme/delete.png',
616'template/yoga/theme/del_favorite.png',
617'template/yoga/theme/exit.png',
618'template/yoga/theme/favorite.png',
619'template/yoga/theme/help.png',
620'template/yoga/theme/home.png',
621'template/yoga/theme/left.png',
622'template/yoga/theme/lost_password.png',
623'template/yoga/theme/metadata.png',
624'template/yoga/theme/permissions.png',
625'template/yoga/theme/preferences.png',
626'template/yoga/theme/recent.png',
627'template/yoga/theme/register.png',
628'template/yoga/theme/representative.png',
629'template/yoga/theme/right.png',
630'template/yoga/theme/save.png',
631'template/yoga/theme/slideshow.png',
632'template/yoga/theme/sync_metadata.png',
633'template/yoga/theme/up.png',
634'template/yoga-dark',
635'template/yoga-dark/about.tpl',
636'template/yoga-dark/admin',
637'template/yoga-dark/admin/cat_list.tpl',
638'template/yoga-dark/admin/cat_modify.tpl',
639'template/yoga-dark/admin/cat_move.tpl',
640'template/yoga-dark/admin/cat_options.tpl',
641'template/yoga-dark/admin/cat_perm.tpl',
642'template/yoga-dark/admin/comments.tpl',
643'template/yoga-dark/admin/configuration.tpl',
644'template/yoga-dark/admin/double_select.tpl',
645'template/yoga-dark/admin/element_set_global.tpl',
646'template/yoga-dark/admin/element_set_unit.tpl',
647'template/yoga-dark/admin/group_list.tpl',
648'template/yoga-dark/admin/group_perm.tpl',
649'template/yoga-dark/admin/images',
650'template/yoga-dark/admin/images/errors.png',
651'template/yoga-dark/admin/images/infos.png',
652'template/yoga-dark/admin/intro.tpl',
653'template/yoga-dark/admin/maintenance.tpl',
654'template/yoga-dark/admin/picture_modify.tpl',
655'template/yoga-dark/admin/remote_site.tpl',
656'template/yoga-dark/admin/stats.tpl',
657'template/yoga-dark/admin/thumbnail.tpl',
658'template/yoga-dark/admin/update.tpl',
659'template/yoga-dark/admin/user_list.tpl',
660'template/yoga-dark/admin/user_perm.tpl',
661'template/yoga-dark/admin/waiting.tpl',
662'template/yoga-dark/admin.tpl',
663'template/yoga-dark/category.tpl',
664'template/yoga-dark/comments.tpl',
665'template/yoga-dark/content.css',
666'template/yoga-dark/dclear.css',
667'template/yoga-dark/default-colors.css',
668'template/yoga-dark/default-layout.css',
669'template/yoga-dark/fix-khtml.css',
670'template/yoga-dark/footer.tpl',
671'template/yoga-dark/header.tpl',
672'template/yoga-dark/identification.tpl',
673'template/yoga-dark/image.css',
674'template/yoga-dark/install.tpl',
675'template/yoga-dark/menubar.css',
676'template/yoga-dark/mimetypes',
677'template/yoga-dark/mimetypes/avi.png',
678'template/yoga-dark/mimetypes/mp3.png',
679'template/yoga-dark/mimetypes/mpg.png',
680'template/yoga-dark/mimetypes/ogg.png',
681'template/yoga-dark/mimetypes/zip.png',
682'template/yoga-dark/notification.tpl',
683'template/yoga-dark/password.tpl',
684'template/yoga-dark/picture.tpl',
685'template/yoga-dark/popuphelp.css',
686'template/yoga-dark/popuphelp.tpl',
687'template/yoga-dark/print.css',
688'template/yoga-dark/profile.tpl',
689'template/yoga-dark/redirect.tpl',
690'template/yoga-dark/register.tpl',
691'template/yoga-dark/search.tpl',
692'template/yoga-dark/theme',
693'template/yoga-dark/theme/button_bg.gif',
694'template/yoga-dark/theme/caddie_add.png',
695'template/yoga-dark/theme/category_children.png',
696'template/yoga-dark/theme/category_delete.png',
697'template/yoga-dark/theme/category_edit.png',
698'template/yoga-dark/theme/category_elements.png',
699'template/yoga-dark/theme/category_jump-to.png',
700'template/yoga-dark/theme/category_permissions.png',
701'template/yoga-dark/theme/category_representant_random.png',
702'template/yoga-dark/theme/delete.png',
703'template/yoga-dark/theme/del_favorite.png',
704'template/yoga-dark/theme/exit.png',
705'template/yoga-dark/theme/favorite.png',
706'template/yoga-dark/theme/help.png',
707'template/yoga-dark/theme/home.png',
708'template/yoga-dark/theme/left.png',
709'template/yoga-dark/theme/lost_password.png',
710'template/yoga-dark/theme/metadata.png',
711'template/yoga-dark/theme/permissions.png',
712'template/yoga-dark/theme/preferences.png',
713'template/yoga-dark/theme/recent.png',
714'template/yoga-dark/theme/register.png',
715'template/yoga-dark/theme/representative.png',
716'template/yoga-dark/theme/right.png',
717'template/yoga-dark/theme/save.png',
718'template/yoga-dark/theme/slideshow.png',
719'template/yoga-dark/theme/sync_metadata.png',
720'template/yoga-dark/theme/tableh1_bg.gif',
721'template/yoga-dark/theme/tableh2_bg.gif',
722'template/yoga-dark/theme/up.png',
723'template/yoga-dark/upgrade.tpl',
724'template/yoga-dark/upload.tpl',
725// Comparison between phpwebgallery-1.6.0RC2 and phpwebgallery-1.6.0RC1
726// Comparison between phpwebgallery-1.6.0 and phpwebgallery-1.6.0RC2
727'template/yoga/dclear.css',
728'template/yoga/image.css',
729// Comparison between phpwebgallery-1.6.1 and phpwebgallery-1.6.0
730'admin/images/index.htm',
731'admin/include/index.htm',
732'admin/index.htm',
733'galleries/index.htm',
734'language/index.htm',
735// Comparison between phpwebgallery-1.6.2 and phpwebgallery-1.6.1
736// Comparison between phpwebgallery-1.7.0RC1 and phpwebgallery-1.6.2
737'admin/images/daily_stats.img.php',
738'admin/images/global_stats.img.php',
739'admin/images/monthly_stats.img.php',
740'admin/images/phpBarGraph.php',
741'include/category_recent_cats.inc.php',
742'include/category_subcats.inc.php',
743'include/pngfix.js',
744'include/scripts.js',
745'install/db/22.1-database.php',
746'install/db/22.2-database.php',
747'install/db/22.3-database.php',
748'install/db/22.5-database.php',
749'install/db/22.6-database.php',
750'install/db/22.7-database.php',
751'install/db/22.8-database.php',
752'install/db/22.9-database.php',
753'language/en_UK.iso-8859-1/help/remote_site.html',
754'language/fr_FR.iso-8859-1/help/remote_site.html',
755'template/yoga/upgrade.tpl',
756// Comparison between phpwebgallery-1.7.0RC2 and phpwebgallery-1.7.0RC1
757'admin/waiting.php',
758'template/yoga/admin/waiting.tpl',
759// Comparison between phpwebgallery-1.7.0 and phpwebgallery-1.7.0RC2
760// Comparison between phpwebgallery-1.7.1 and phpwebgallery-1.7.0
761// Comparison between phpwebgallery-1.7.2 and phpwebgallery-1.7.1
762'include/functions_group.inc.php',
763'template/yoga/thumbnails-fix-ie5-ie6.css',
764// Comparison between phpwebgallery-1.7.3 and phpwebgallery-1.7.2
765// Comparison between phpwebgallery-2.0.0RC1 and phpwebgallery-1.7.3
766'admin/include/functions_check_integrity.inc.php',
767'admin/include/functions_tabsheet.inc.php',
768'admin/plugins.php',
769'admin/ws_checker.php',
770'include/template.php',
771'install/phpwebgallery_structure.sql',
772'language/en_UK.iso-8859-1',
773'language/en_UK.iso-8859-1/about.html',
774'language/en_UK.iso-8859-1/admin.lang.php',
775'language/en_UK.iso-8859-1/common.lang.php',
776'language/en_UK.iso-8859-1/help',
777'language/en_UK.iso-8859-1/help/advanced_feature.html',
778'language/en_UK.iso-8859-1/help/cat_modify.html',
779'language/en_UK.iso-8859-1/help/cat_move.html',
780'language/en_UK.iso-8859-1/help/cat_options.html',
781'language/en_UK.iso-8859-1/help/cat_perm.html',
782'language/en_UK.iso-8859-1/help/configuration.html',
783'language/en_UK.iso-8859-1/help/group_list.html',
784'language/en_UK.iso-8859-1/help/history.html',
785'language/en_UK.iso-8859-1/help/index.php',
786'language/en_UK.iso-8859-1/help/maintenance.html',
787'language/en_UK.iso-8859-1/help/notification_by_mail.html',
788'language/en_UK.iso-8859-1/help/permalinks.html',
789'language/en_UK.iso-8859-1/help/search.html',
790'language/en_UK.iso-8859-1/help/site_manager.html',
791'language/en_UK.iso-8859-1/help/synchronize.html',
792'language/en_UK.iso-8859-1/help/thumbnail.html',
793'language/en_UK.iso-8859-1/help/user_list.html',
794'language/en_UK.iso-8859-1/help/web_service.html',
795'language/en_UK.iso-8859-1/help.html',
796'language/en_UK.iso-8859-1/index.php',
797'language/en_UK.iso-8859-1/install.lang.php',
798'language/en_UK.iso-8859-1/iso.txt',
799'language/fr_FR.iso-8859-1',
800'language/fr_FR.iso-8859-1/about.html',
801'language/fr_FR.iso-8859-1/admin.lang.php',
802'language/fr_FR.iso-8859-1/common.lang.php',
803'language/fr_FR.iso-8859-1/help',
804'language/fr_FR.iso-8859-1/help/advanced_feature.html',
805'language/fr_FR.iso-8859-1/help/cat_modify.html',
806'language/fr_FR.iso-8859-1/help/cat_move.html',
807'language/fr_FR.iso-8859-1/help/cat_options.html',
808'language/fr_FR.iso-8859-1/help/cat_perm.html',
809'language/fr_FR.iso-8859-1/help/configuration.html',
810'language/fr_FR.iso-8859-1/help/group_list.html',
811'language/fr_FR.iso-8859-1/help/history.html',
812'language/fr_FR.iso-8859-1/help/index.php',
813'language/fr_FR.iso-8859-1/help/maintenance.html',
814'language/fr_FR.iso-8859-1/help/notification_by_mail.html',
815'language/fr_FR.iso-8859-1/help/permalinks.html',
816'language/fr_FR.iso-8859-1/help/search.html',
817'language/fr_FR.iso-8859-1/help/site_manager.html',
818'language/fr_FR.iso-8859-1/help/synchronize.html',
819'language/fr_FR.iso-8859-1/help/thumbnail.html',
820'language/fr_FR.iso-8859-1/help/user_list.html',
821'language/fr_FR.iso-8859-1/help/web_service.html',
822'language/fr_FR.iso-8859-1/help.html',
823'language/fr_FR.iso-8859-1/index.php',
824'language/fr_FR.iso-8859-1/install.lang.php',
825'language/fr_FR.iso-8859-1/iso.txt',
826'plugins/add_index/language/en_UK.iso-8859-1',
827'plugins/add_index/language/en_UK.iso-8859-1/help',
828'plugins/add_index/language/en_UK.iso-8859-1/help/advanced_feature.html',
829'plugins/add_index/language/en_UK.iso-8859-1/help/index.php',
830'plugins/add_index/language/en_UK.iso-8859-1/help/site_manager.html',
831'plugins/add_index/language/en_UK.iso-8859-1/index.php',
832'plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php',
833'plugins/add_index/language/fr_FR.iso-8859-1',
834'plugins/add_index/language/fr_FR.iso-8859-1/help',
835'plugins/add_index/language/fr_FR.iso-8859-1/help/advanced_feature.html',
836'plugins/add_index/language/fr_FR.iso-8859-1/help/index.php',
837'plugins/add_index/language/fr_FR.iso-8859-1/help/site_manager.html',
838'plugins/add_index/language/fr_FR.iso-8859-1/index.php',
839'plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php',
840'plugins/admin_advices/en_UK.iso-8859-1',
841'plugins/admin_advices/en_UK.iso-8859-1/index.php',
842'plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php',
843'plugins/admin_advices/fr_FR.iso-8859-1',
844'plugins/admin_advices/fr_FR.iso-8859-1/index.php',
845'plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php',
846'plugins/hello_world',
847'plugins/hello_world/index.php',
848'plugins/hello_world/main.inc.php',
849'template/yoga/admin',
850'template/yoga/admin/advanced_feature.tpl',
851'template/yoga/admin/cat_list.tpl',
852'template/yoga/admin/cat_modify.tpl',
853'template/yoga/admin/cat_move.tpl',
854'template/yoga/admin/cat_options.tpl',
855'template/yoga/admin/cat_perm.tpl',
856'template/yoga/admin/check_integrity.tpl',
857'template/yoga/admin/comments.tpl',
858'template/yoga/admin/configuration.tpl',
859'template/yoga/admin/default-layout.css',
860'template/yoga/admin/double_select.tpl',
861'template/yoga/admin/element_set_global.tpl',
862'template/yoga/admin/element_set_unit.tpl',
863'template/yoga/admin/group_list.tpl',
864'template/yoga/admin/group_perm.tpl',
865'template/yoga/admin/history.tpl',
866'template/yoga/admin/index.php',
867'template/yoga/admin/intro.tpl',
868'template/yoga/admin/maintenance.tpl',
869'template/yoga/admin/notification_by_mail.tpl',
870'template/yoga/admin/permalinks.tpl',
871'template/yoga/admin/picture_modify.tpl',
872'template/yoga/admin/plugin.tpl',
873'template/yoga/admin/plugins.tpl',
874'template/yoga/admin/profile.tpl',
875'template/yoga/admin/rating.tpl',
876'template/yoga/admin/site_manager.tpl',
877'template/yoga/admin/site_update.tpl',
878'template/yoga/admin/stats.tpl',
879'template/yoga/admin/tabsheet.tpl',
880'template/yoga/admin/tags.tpl',
881'template/yoga/admin/thumbnail.tpl',
882'template/yoga/admin/upload.tpl',
883'template/yoga/admin/user_list.tpl',
884'template/yoga/admin/user_perm.tpl',
885'template/yoga/admin/ws_checker.tpl',
886'template/yoga/admin.tpl',
887'template/yoga/icon/category_delete.png',
888'template/yoga/icon/category_elements.png',
889'template/yoga/icon/category_jump-to.png',
890'template/yoga/icon/category_permissions.png',
891'template/yoga/icon/check.png',
892'template/yoga/icon/edit_s.png',
893'template/yoga/icon/page_end.png',
894'template/yoga/icon/page_top.png',
895'template/yoga/icon/permissions.png',
896'template/yoga/icon/slideshow.png',
897'template/yoga/icon/star_e.gif',
898'template/yoga/icon/star_f.gif',
899'template/yoga/icon/sync_metadata.png',
900'template/yoga/icon/toggle_is_default_group.png',
901'template/yoga/icon/uncheck.png',
902'template/yoga/icon/virt_category.png',
903'template/yoga/popuphelp.css',
904'template-common/layout.css',
905// Comparison between phpwebgallery-2.0.0RC2 and phpwebgallery-2.0.0RC1
906'language/en_UK/help/web_service.html',
907'language/es_ES/help/web_service.html',
908'language/fr_FR/help/web_service.html',
909'language/it_IT/help/web_service.html',
910'language/nl_NL/help/web_service.html',
911'template/yoga/mail/text/html/admin',
912'template/yoga/mail/text/html/admin/cat_group_info.tpl',
913'template/yoga/mail/text/html/admin/index.php',
914'template/yoga/mail/text/html/admin/notification_by_mail.tpl',
915'template/yoga/mail/text/plain/admin',
916'template/yoga/mail/text/plain/admin/cat_group_info.tpl',
917'template/yoga/mail/text/plain/admin/index.php',
918'template/yoga/mail/text/plain/admin/notification_by_mail.tpl',
919'template-common/lib/plugins/jquery.growfield.js',
920'template-common/lib/plugins/jquery.growfield.packed.js',
921// Comparison between phpwebgallery-2.0.0RC3 and phpwebgallery-2.0.0RC2
922'admin/template/goto/icon/del_favorite.png',
923'admin/template/goto/theme/roma/datepicker.css',
924// Comparison between phpwebgallery-2.0.0RC4 and phpwebgallery-2.0.0RC3
925'template/yoga/install.tpl',
926'template/yoga/upgrade.tpl',
927// Comparison between trunk-r3105 and phpwebgallery-2.0.0RC4
928'admin/template/goto/theme/roma/images/bottom-left-bg.png',
929'admin/template/goto/theme/roma/images/top-left-bg.png',
930'local/config/database.inc.php',
931'template-common/lib/ui/ui.accordion.packed.js',
932'template-common/lib/ui/ui.core.packed.js',
933'template-common/lib/ui/ui.datepicker.css',
934'template-common/lib/ui/ui.datepicker.packed.js',
935'template-common/lib/ui/ui.dialog.packed.js',
936'template-common/lib/ui/ui.draggable.packed.js',
937'template-common/lib/ui/ui.droppable.packed.js',
938'template-common/lib/ui/ui.resizable.packed.js',
939'template-common/lib/ui/ui.selectable.packed.js',
940'template-common/lib/ui/ui.slider.packed.js',
941'template-common/lib/ui/ui.sortable.packed.js',
942'template-common/lib/ui/ui.tabs.packed.js',
943);
944
945$list_exlude_files = array(
946'local/config/database.inc.php',
947);
948
949
950$upgrade_description = 'Delete old and not used files';
951
952// +-----------------------------------------------------------------------+
953// |                            Upgrade content                            |
954// +-----------------------------------------------------------------------+
955// remove exclude files
956$files=array_diff($list_files, $list_exlude_files);
957// inverse sort in order to remove corretly directory
958rsort($files);
959
960foreach ($files as $file)
961{
962  if (is_file($file))
963  {
964    echo 'Delete file '.$file."\n";
965    @chmod($file, 0777);
966    if (! unlink($file))
967    {
968      echo 'Error on delete file '.$file."\n";
969    }
970  }
971  elseif (is_dir($file))
972  {
973    echo 'Delete directory '.$file."\n";
974    @chmod($file, 0777);
975    if (! rmdir($file))
976    {
977      echo 'Error on directory file '.$file."\n";
978    }
979  }
980}
981
982echo
983"\n"
984.'"'.$upgrade_description.'"'.' ended'
985."\n"
986;
987
988?>
Note: See TracBrowser for help on using the repository browser.