Compare commits

...

514 commits
master ... 2.0

Author SHA1 Message Date
jpr928
c51b5f7d3d update ES_es language
git-svn-id: http://piwigo.org/svn/branches/2.0@6117 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-08 07:03:00 +00:00
vdigital
64e578c478 Fix: Scroll issue with long subcat descriptions
git-svn-id: http://piwigo.org/svn/branches/2.0@5942 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-23 19:39:26 +00:00
laurent.duretz
4dccf25776 Issue 1521 : report trunk on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@5938 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-22 13:11:32 +00:00
nikrou
3402ea7bf3 Bug 1621 fixed : CSS vulnerability in register.php
login and mail_address fields must be filtered with htmlspecialchars.
merge from trunk

git-svn-id: http://piwigo.org/svn/branches/2.0@5937 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-21 20:17:07 +00:00
nanticpwg
a734c052c2 git-svn-id: http://piwigo.org/svn/branches/2.0@5402 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-03-27 10:07:53 +00:00
nanticpwg
c32d95a139 few modifications
git-svn-id: http://piwigo.org/svn/branches/2.0@5386 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-26 16:33:11 +00:00
vdigital
57aa873139 [language_switch]
New: sr_RS (Serbian) Republic of Serbia flag 
Serbia, Република Србија, Republika Srbija


git-svn-id: http://piwigo.org/svn/branches/2.0@5290 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 20:25:38 +00:00
riopwg
f9d80c99a3 Update language IT
Minor corrections

git-svn-id: http://piwigo.org/svn/branches/2.0@5275 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 09:34:36 +00:00
riopwg
6ca3feaae0 Update language IT
"Accessi" better than "Diritti"

git-svn-id: http://piwigo.org/svn/branches/2.0@5274 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 08:48:02 +00:00
ddtddt
6c73a467ed [branche2] update es_AR thanks to Sebastian
git-svn-id: http://piwigo.org/svn/branches/2.0@5273 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 06:23:06 +00:00
ddtddt
db271b69c0 [Branche2] feature 1531 / add Serbia / thanks to Darko
git-svn-id: http://piwigo.org/svn/branches/2.0@5270 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 21:01:23 +00:00
laurent.duretz
d6cc2b0a0a Issue 1521 : Integration of LinkRoot plugin in Piwigo core
git-svn-id: http://piwigo.org/svn/branches/2.0@5254 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 11:09:32 +00:00
samli
9b86ed4be7 [branche2] minor bugfixes
git-svn-id: http://piwigo.org/svn/branches/2.0@5243 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 05:53:11 +00:00
samli
c988572c09 [branche2] minor bugfixes
git-svn-id: http://piwigo.org/svn/branches/2.0@5242 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 05:52:48 +00:00
ddtddt
a4ea2a0085 [Branche2] localisation hu/RU feature:1526 and feature:1527
git-svn-id: http://piwigo.org/svn/branches/2.0@5233 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 21:42:21 +00:00
ddtddt
3a0e03407c [Branche2] bug:1523 / Compatibility with PHP 5.3
git-svn-id: http://piwigo.org/svn/branches/2.0@5210 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 07:51:07 +00:00
samli
f69595a9f0 [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@5140 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-15 02:12:10 +00:00
ddtddt
a950187c2a [Branche2] bug:986
git-svn-id: http://piwigo.org/svn/branches/2.0@5093 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-09 17:09:45 +00:00
riopwg
5aa58dd09e Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@5081 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-08 07:05:07 +00:00
samli
3863648a7a [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@5077 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 17:45:52 +00:00
Gotcha
2aaed23c85 Choose the sorting of the categories management
bug:1119

git-svn-id: http://piwigo.org/svn/branches/2.0@5076 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 16:53:53 +00:00
samli
5f31dc10b5 [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@5074 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 14:49:01 +00:00
ddtddt
d714685995 [Branche2] bug:1486
git-svn-id: http://piwigo.org/svn/branches/2.0@5070 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 13:42:33 +00:00
samli
61cf190aaf add HU translate for plugin add_index
git-svn-id: http://piwigo.org/svn/branches/2.0@5069 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 01:31:36 +00:00
samli
0ddc14f87e [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@5059 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-05 19:11:44 +00:00
ddtddt
1ea0a9397b [Branche2] update NL thanks to Kees Hessels
git-svn-id: http://piwigo.org/svn/branches/2.0@5023 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-02 20:01:00 +00:00
rvelices
26e605d4b6 use fatal_error instead of die function (fatal_error leaves a trace in php error log making easier to see potential problems on "production" galleries)
git-svn-id: http://piwigo.org/svn/branches/2.0@5017 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 21:23:51 +00:00
plegall
117baff95c feature 1448 added: ability to set the upload directory (for pwg.images.add
API method).

Warning: due to risk on img src construction, the upload_dir must be relative
to the Piwigo directory itself.

git-svn-id: http://piwigo.org/svn/branches/2.0@5013 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 16:20:24 +00:00
laurent.duretz
2c2cfa0899 Issue 1471 : incomplete test correction
git-svn-id: http://piwigo.org/svn/branches/2.0@5012 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 13:02:49 +00:00
laurent.duretz
ab21bfa8c5 Issue 1473 : file missing in listing when icon is generated
git-svn-id: http://piwigo.org/svn/branches/2.0@5009 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 11:11:38 +00:00
laurent.duretz
27c9b04954 Issue 1472 : Listing genration fail if thumbnail directory does not exists
git-svn-id: http://piwigo.org/svn/branches/2.0@5008 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 10:43:19 +00:00
laurent.duretz
453c17d408 Adding JPG support on Wamp server : Wamp server gd_info() method return "JPEG Support" instead "JPG Support"
git-svn-id: http://piwigo.org/svn/branches/2.0@5007 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 10:19:16 +00:00
plegall
f1f59e937a improvement: avoid the use of @ instead of a real test
git-svn-id: http://piwigo.org/svn/branches/2.0@5003 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-28 20:58:45 +00:00
plegall
d2872aacef bug 1469 fixed: I should have permitted an empty feed in URL in r4742
git-svn-id: http://piwigo.org/svn/branches/2.0@5001 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-28 19:37:18 +00:00
jpr928
ee1a646e5a git-svn-id: http://piwigo.org/svn/branches/2.0@4982 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-27 15:32:05 +00:00
jpr928
7182415c71 git-svn-id: http://piwigo.org/svn/branches/2.0@4979 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-27 11:02:40 +00:00
samli
d590f86dd3 [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@4978 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-27 10:44:41 +00:00
jpr928
97a4fb2d55 git-svn-id: http://piwigo.org/svn/branches/2.0@4977 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-27 10:00:35 +00:00
jpr928
981b7c72c2 git-svn-id: http://piwigo.org/svn/branches/2.0@4976 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-27 09:59:49 +00:00
ddtddt
774488a703 [Branche2] update ES
git-svn-id: http://piwigo.org/svn/branches/2.0@4970 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-26 22:38:25 +00:00
plegall
db5c5f9518 bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which
happens when date_creation comes from corrupted EXIF)

bug 859 fixed: at display time only. Piwigo still inserts wrong date in the
database, to be fixed later.

git-svn-id: http://piwigo.org/svn/branches/2.0@4965 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-26 12:00:45 +00:00
riopwg
8e0bd9d1de Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@4963 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-25 07:04:17 +00:00
samli
7027feba8b bug 1452 fixed: check cookies are enabled in web browser and notify user
otherwise that she can't connect.

git-svn-id: http://piwigo.org/svn/branches/2.0@4958 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23 18:46:08 +00:00
plegall
080af5a889 bug 1452 fixed: check cookies are enabled in web browser and notify user
otherwise that she can't connect.

git-svn-id: http://piwigo.org/svn/branches/2.0@4955 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23 15:49:54 +00:00
plegall
d0f215731d feature 1453 added: ability to check for uniqueness on filename. No change on
the default behavior: uniqueness is set on md5sum.

git-svn-id: http://piwigo.org/svn/branches/2.0@4953 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23 14:38:38 +00:00
samli
6e6ba78b1b [extensions]- event_tracer add hu_HU
git-svn-id: http://piwigo.org/svn/branches/2.0@4943 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-22 16:06:47 +00:00
samli
dcf379fdec [extensions]- language_switch add hu_HU
git-svn-id: http://piwigo.org/svn/branches/2.0@4942 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-22 15:55:46 +00:00
samli
ef7d7e472e help.html update hu
git-svn-id: http://piwigo.org/svn/branches/2.0@4930 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-21 19:19:11 +00:00
samli
53c0d30c16 LocalFiles Editor update hu
git-svn-id: http://piwigo.org/svn/branches/2.0@4928 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-21 17:00:06 +00:00
samli
262056fe91 [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@4924 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-20 22:56:15 +00:00
samli
378be021d2 [branche2] update HU language
git-svn-id: http://piwigo.org/svn/branches/2.0@4923 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-20 22:55:00 +00:00
ddtddt
ec9019be2a [Branche2] add vi_VN admin.lang.php thanks to Em Ku
git-svn-id: http://piwigo.org/svn/branches/2.0@4920 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-20 21:01:48 +00:00
plegall
64c3d86cba feature 967: when clicking on the download link (only for high definition
currently), use images.file instead of basename(images.path) as download file
name.

git-svn-id: http://piwigo.org/svn/branches/2.0@4912 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-19 09:46:19 +00:00
plegall
c36a3d5adc feature 967: optionnaly transmit the original filename to pwg.images.add. When
transmitted, it fills the images.file column.

git-svn-id: http://piwigo.org/svn/branches/2.0@4910 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-19 09:19:21 +00:00
rub
ce326d88f3 Feature 0001142: notification on category, current user language depends on last group user
Thanks to cljosse and Eric for their help!


git-svn-id: http://piwigo.org/svn/branches/2.0@4907 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-18 23:10:16 +00:00
plegall
3ab6df98e8 bug 1423 fixed: support for ExtendedDescription (and all the ones using the
"render_category_name" event) in category names.

git-svn-id: http://piwigo.org/svn/branches/2.0@4902 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 16:15:41 +00:00
plegall
93559269f5 bug 1443 fixed: ability to uninstall a missing plugin. I had forgotten the
pwg_token for this specific action on this specific state in r4506 for
bug:1328

git-svn-id: http://piwigo.org/svn/branches/2.0@4901 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 15:50:41 +00:00
plegall
bf81ad9332 bug 1422 fixed: pwg.images.add (and sub methods) can create recursive
directories for windows.

add trace in ws_logfile for add_file + ws_images_add_chunk

git-svn-id: http://piwigo.org/svn/branches/2.0@4899 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 15:06:47 +00:00
plegall
de1f51c998 feature 1441 added: add link to pLoader for Mac
remove hr_HR help file because it is 100% equal to en_UK/help.hml

git-svn-id: http://piwigo.org/svn/branches/2.0@4898 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 10:12:47 +00:00
nikrou
213eb3b736 Bug 1426 fixed : admin help popup use gallery theme instead of admin theme
merge from trunk

git-svn-id: http://piwigo.org/svn/branches/2.0@4894 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15 21:40:52 +00:00
jpr928
58c91bb5f3 git-svn-id: http://piwigo.org/svn/branches/2.0@4891 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-15 15:43:51 +00:00
jpr928
7aa6798db0 git-svn-id: http://piwigo.org/svn/branches/2.0@4889 68402e56-0260-453c-a942-63ccdbb3a9ee 2010-02-15 15:17:07 +00:00
plegall
ac67da8a03 bug 1431: Community users now can see empty categories just like any admin.
git-svn-id: http://piwigo.org/svn/branches/2.0@4883 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-12 23:04:07 +00:00
nikrou
903b9cab2d bug 1425 fixed : internationalization's bug on the template comments
merge from trunk

git-svn-id: http://piwigo.org/svn/branches/2.0@4882 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-12 22:16:13 +00:00
ddtddt
ef465a2372 [branche2] update vi_VN
git-svn-id: http://piwigo.org/svn/branches/2.0@4865 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-09 21:01:52 +00:00
ddtddt
f70e159ce1 [Branche2] update da_DK thanks to Lars
git-svn-id: http://piwigo.org/svn/branches/2.0@4864 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-09 20:05:19 +00:00
vdigital
bcb81c3574 [language_switch]
New: tr_TR (Turkish) Republic of Turkey flag 
Turkey, Republic of Turkey: Türkiye, Türkiye Cumhuriyeti


git-svn-id: http://piwigo.org/svn/branches/2.0@4855 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-08 13:48:13 +00:00
vdigital
5cacc7fe9c Never start titles by "displays ..." but by "display ..."
That is correct.

git-svn-id: http://piwigo.org/svn/branches/2.0@4853 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-08 11:58:47 +00:00
vdigital
b2adc2ac54 "s" removed in name, comments and translation
Not done on keys, and directory

git-svn-id: http://piwigo.org/svn/branches/2.0@4851 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-08 11:49:34 +00:00
ddtddt
d3209d2b5f [branche2] add Vietnamese language thanks to Em Ku
git-svn-id: http://piwigo.org/svn/branches/2.0@4797 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-29 22:27:45 +00:00
vdigital
80372b668d [language_switch]
New: vi_VN (Vietnamese) Socialist Republic of Vietnam flag 
Vietnamese: Tiếng Việt
Vietnam: Việt Nam (Cộng hòa Xã hội Chủ nghĩa Việt Nam)


git-svn-id: http://piwigo.org/svn/branches/2.0@4794 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-29 20:15:02 +00:00
riopwg
b15c3d6f9f Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@4774 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-27 22:58:45 +00:00
ddtddt
4f10762d68 [Branche2] localisation
git-svn-id: http://piwigo.org/svn/branches/2.0@4758 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-26 22:42:32 +00:00
plegall
34338c5581 bug 1401 fixed: let's use the mysql_real_escape_string on POST fields (even if
I was not able to reproduce any attack because fields are heavily processed
before any SQL query).

git-svn-id: http://piwigo.org/svn/branches/2.0@4752 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-26 09:13:37 +00:00
vdigital
08bc35855c [Change] auto version mode.
git-svn-id: http://piwigo.org/svn/branches/2.0@4744 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-25 19:43:33 +00:00
plegall
fb21d51aa2 bug 1391 fixed: prevent from SQL injection
git-svn-id: http://piwigo.org/svn/branches/2.0@4742 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-25 15:18:49 +00:00
riopwg
f7470e555d Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@4733 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-24 09:20:46 +00:00
plegall
bec299bc36 bug 1396: when a photo was deleted, the code to avoid orphans as category
representative was 1) wrong (because a photo doesn't have to belong to a
category to represent it) 2) at the wrong place.

git-svn-id: http://piwigo.org/svn/branches/2.0@4730 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-23 22:56:11 +00:00
tosca
ac0929fe84 [extension][exif_view][update FR]
"télécharger", "téléchargement" replaced by "ajout de photos" (see bug 1393)

git-svn-id: http://piwigo.org/svn/branches/2.0@4723 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-22 19:34:27 +00:00
tosca
2302904b97 [extension][exif_view][update FR]
git-svn-id: http://piwigo.org/svn/branches/2.0@4722 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-22 19:28:53 +00:00
plegall
62139d941a feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to
Jochen Roth (Polly) for the patch.

git-svn-id: http://piwigo.org/svn/branches/2.0@4684 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15 11:27:53 +00:00
plegall
ee9232b650 feature 620: if no exif/iptc found in the "web resized" photo, then we search
into the high definition picture if available. Thanks to Jochen Roth (Polly)
for the patch.

git-svn-id: http://piwigo.org/svn/branches/2.0@4682 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15 10:47:19 +00:00
plegall
a6780831fe bug 1380: now correctly synchronizes metadata on a single photo, needs a nicer
fix on trunk.

git-svn-id: http://piwigo.org/svn/branches/2.0@4680 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15 10:38:55 +00:00
ddtddt
93822184ce [branche2] update Danish thanks to Lars Johansen
git-svn-id: http://piwigo.org/svn/branches/2.0@4671 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-12 20:47:01 +00:00
plegall
3903c17783 feature 1375: remove version in Piwigo archive root directory
git-svn-id: http://piwigo.org/svn/branches/2.0@4668 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-12 13:04:16 +00:00
riopwg
423b8032be Correction language IT
Tx to ddtddt

git-svn-id: http://piwigo.org/svn/branches/2.0@4665 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-11 07:34:00 +00:00
ddtddt
c51294e3b7 [branche2] update es_AR with missing translations thanks to Alberto
git-svn-id: http://piwigo.org/svn/branches/2.0@4661 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 19:22:17 +00:00
ddtddt
d86b5b643b [branche2] update Undefined index in language
git-svn-id: http://piwigo.org/svn/branches/2.0@4656 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 13:44:34 +00:00
riopwg
2efec524e2 Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@4654 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 13:22:46 +00:00
riopwg
1de05c8993 Update language IT
git-svn-id: http://piwigo.org/svn/branches/2.0@4653 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 13:22:20 +00:00
ddtddt
ad82b3c923 [branche2] update de_DE
git-svn-id: http://piwigo.org/svn/branches/2.0@4651 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 09:29:43 +00:00
ddtddt
997bf77d62 [branche2] update de_DE with missing translations thanks to xeomueller
git-svn-id: http://piwigo.org/svn/branches/2.0@4649 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 09:18:25 +00:00
ddtddt
56e0d7472a [branche2] [Tools] update translation_validated.inc.php ES
git-svn-id: http://piwigo.org/svn/branches/2.0@4648 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-10 00:04:54 +00:00
plegall
2ed479744e feature 1374 related: don't display the validated keys as "untranslated yet".
git-svn-id: http://piwigo.org/svn/branches/2.0@4646 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 23:52:32 +00:00
ddtddt
c85dbe813b [branche2] bug $lang
git-svn-id: http://piwigo.org/svn/branches/2.0@4645 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 23:50:48 +00:00
plegall
b41d62dfff feature 1374 related: improve the problems on translations. Ability to detect
if the key was duplicated from the reference language BUT not really
translated yet.

git-svn-id: http://piwigo.org/svn/branches/2.0@4644 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 23:26:45 +00:00
ddtddt
2a20b9d7a6 [branche2] update pt_BR
git-svn-id: http://piwigo.org/svn/branches/2.0@4643 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 23:16:28 +00:00
ddtddt
7f7b787785 [branche2] update ES
git-svn-id: http://piwigo.org/svn/branches/2.0@4641 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 23:07:28 +00:00
ddtddt
89ae3acbee [branche2] update FR thanks to tosca
git-svn-id: http://piwigo.org/svn/branches/2.0@4639 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 22:53:05 +00:00
plegall
38cfeceb36 feature 1374 related: force to load exactly the language requested and not any
fallback language. If the language file is missing, we tell it explicitely.

git-svn-id: http://piwigo.org/svn/branches/2.0@4638 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 20:54:52 +00:00
plegall
04792e79e9 feature 1374; first version of the script to detect missing translations. It
is very basic with an ugly output. It just does the job.

git-svn-id: http://piwigo.org/svn/branches/2.0@4637 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 19:37:53 +00:00
plegall
12f3495bdf feature 1374: removed the "/* TODO */" in language files, the script to detect
missing translations will come in a distinct commit.

git-svn-id: http://piwigo.org/svn/branches/2.0@4636 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 19:35:36 +00:00
mathiasm
14fa8df19b typos in fr_FR/admin.lang.php
git-svn-id: http://piwigo.org/svn/branches/2.0@4634 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-09 15:12:44 +00:00
plegall
e25d7b7565 feature 1364: subscribe to pl.piwigo.org/announcement when current language is pl_PL
git-svn-id: http://piwigo.org/svn/branches/2.0@4617 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-04 14:41:59 +00:00
ddtddt
2e52406238 [branche2] Add Danish file install tanks to Lars Johansen
git-svn-id: http://piwigo.org/svn/branches/2.0@4605 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-02 18:10:20 +00:00
mathiasm
260d611639 Fix bug:1358 on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@4600 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-01 21:37:04 +00:00
ddtddt
d8f952609f [branche2] bug:1353
git-svn-id: http://piwigo.org/svn/branches/2.0@4598 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-01 10:47:00 +00:00
vdigital
82319453da [language_switch]
New: he_IL (Hebrew: יִשְׂרָאֵל‎, Yisra'el) Israeli flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4582 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-30 21:11:42 +00:00
ddtddt
14e816c31d [branche2] update link
git-svn-id: http://piwigo.org/svn/branches/2.0@4565 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-25 23:30:13 +00:00
ddtddt
2b25d28384 [branche2] update link
git-svn-id: http://piwigo.org/svn/branches/2.0@4564 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-25 23:06:22 +00:00
ddtddt
6436f16221 [branche2] update PL Thanks to emcek
git-svn-id: http://piwigo.org/svn/branches/2.0@4563 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-25 20:59:20 +00:00
plegall
4a272ac950 bug fixed: es_AR iso.txt file was not UTF-8
git-svn-id: http://piwigo.org/svn/branches/2.0@4533 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 21:29:53 +00:00
plegall
b1e6222596 bug 1328: implements check_pwg_token at site management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4531 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 20:49:03 +00:00
plegall
d6e1139528 bug 1328: implements check_pwg_token at group management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4529 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 20:22:13 +00:00
ddtddt
87b1686ae6 [branche2] update doc/readme
git-svn-id: http://piwigo.org/svn/branches/2.0@4528 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 20:13:31 +00:00
rvelices
8b66788392 web method images.setPrivacyLevel (ws_images_setPrivacyLevel) is POST only
git-svn-id: http://piwigo.org/svn/branches/2.0@4512 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 21:08:21 +00:00
plegall
2a9b358dc8 bug 1334 fixed: for POST mode on pwg.categories.setInfo, pwg.images.setInfo,
pwg.images.addChunk web API methods.

git-svn-id: http://piwigo.org/svn/branches/2.0@4510 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 00:44:30 +00:00
plegall
093eeb2564 bug 1328: implements check_pwg_token for comment deletion on picture.php
git-svn-id: http://piwigo.org/svn/branches/2.0@4509 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 23:00:09 +00:00
plegall
2119631cd7 bug 1328: implement check_pwg_token for emails on user comments management.
The check_pwg_token and get_pwg_token functions were moved to the public side
(for use on comments.php)

The email sent to admins on new user comment does not directly includes
validate/delete actions.

git-svn-id: http://piwigo.org/svn/branches/2.0@4508 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 22:47:31 +00:00
plegall
587aaa0210 bug 1328: implements check_pwg_token at plugin management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4506 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 01:02:44 +00:00
plegall
f2fa6c16d9 bug 1328: check_pwg_token implemented on admin/cat_list forms (+delete action)
git-svn-id: http://piwigo.org/svn/branches/2.0@4505 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-16 21:48:09 +00:00
plegall
54ed1bfcdb bug 1328: first specific implementation of the check_pwg_token for the
admin/tags page (all actions : add/edit/delete).

The "check_token" function was renammed into check_pwg_token because the
word "token" is too much generic.

git-svn-id: http://piwigo.org/svn/branches/2.0@4503 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 23:22:49 +00:00
plegall
5d017241d3 merge r4493 from trunk to branch 2.0
Bug 1328 : improve check function


git-svn-id: http://piwigo.org/svn/branches/2.0@4502 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 22:54:11 +00:00
plegall
aca87d534d merge r4492 from trunk to branch 2.0
Bug 1328 add function to check token


git-svn-id: http://piwigo.org/svn/branches/2.0@4501 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 22:53:51 +00:00
plegall
742e2a7c0a bug 1329 fixed: add a check_input_parameter function to prevent hacking
attempts.

git-svn-id: http://piwigo.org/svn/branches/2.0@4495 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 00:33:57 +00:00
ddtddt
8bbbe6c794 [branche2] update es_AR
git-svn-id: http://piwigo.org/svn/branches/2.0@4485 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 20:47:15 +00:00
ddtddt
49fe88575d [branche2] bug:1323 update maintenance.html
git-svn-id: http://piwigo.org/svn/branches/2.0@4483 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 20:33:09 +00:00
ddtddt
bbfa5520ba [branche2] update DE thanks to el ninjo
git-svn-id: http://piwigo.org/svn/branches/2.0@4480 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 19:38:04 +00:00
plegall
f405878c3d bug 1317 fixed: force the HTTP response charset (ie encoding) to UTF-8.
git-svn-id: http://piwigo.org/svn/branches/2.0@4462 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 23:33:09 +00:00
plegall
6ddcd4fc87 feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.

git-svn-id: http://piwigo.org/svn/branches/2.0@4459 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 22:14:01 +00:00
ddtddt
a649fb4029 [branche2]- another step in Hungarian translation delivery thanks to sámli
git-svn-id: http://piwigo.org/svn/branches/2.0@4449 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07 23:52:22 +00:00
plegall
34014e496e feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.

git-svn-id: http://piwigo.org/svn/branches/2.0@4444 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07 22:28:40 +00:00
vdigital
72082dcc8b [language_switch]
New: mk_MK (Macedonian) Republic of Macedonia flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4434 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-06 22:40:50 +00:00
plegall
4d706af6f5 bug 1211 fixed: with PHP 5.3, the get_class function requires the input
parameter to be an object, or else throws a E_WARNING message. In webservices
files, I have replaced all "get_class" calls by "@get_class".

git-svn-id: http://piwigo.org/svn/branches/2.0@4426 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 23:18:46 +00:00
plegall
cbe2d9a168 bug 1210 fixed: check if the memory_get_usage function is available before
using it.

git-svn-id: http://piwigo.org/svn/branches/2.0@4424 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 21:54:32 +00:00
plegall
3a542bdb31 bug 1301 fixed: it is now possible to move root category 4 into root category
49. Sometimes a single comma makes a huge difference!

git-svn-id: http://piwigo.org/svn/branches/2.0@4400 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-01 00:03:17 +00:00
plegall
49988ab23a merge back r4364, test is OK
git-svn-id: http://piwigo.org/svn/branches/2.0@4365 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 22:43:17 +00:00
plegall
eac5275ecd no regression labelled commit to check the automatic update of code.piwigo.org with post-commit hook
git-svn-id: http://piwigo.org/svn/branches/2.0@4364 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 22:39:20 +00:00
plegall
d7f0f0f9b2 feature 1051: ability to add/update a file for an existing photo. For example,
you can add the "high" later. Another example is to update the "web resized"
file (new dimensions is a common example). It also works for thumbnails.
Updating an existing file has no impact on the logical level (list of tags,
list of categories, title, description and so on).

git-svn-id: http://piwigo.org/svn/branches/2.0@4345 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 23:38:57 +00:00
plegall
6768482bcf feature 1051: new API method pwg.images.checkFiles. This method will be useful
before asking for an update on photo files.

Enhancement in code factorization.

git-svn-id: http://piwigo.org/svn/branches/2.0@4344 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 22:09:41 +00:00
plegall
2bba9bc48a improvement: to prepare feature 1051, the code to add a single file (works for
the 3 picture types, ie thumb/file/high) has been factorized into a single
add_file function.

bug fixed: when a function not directly called by the API (such as merge_chunks
or the new add_file function) returning a PwgError, it was not stopping the
execution, it just sets the error code/message. Now we don't return PwgError,
we only create one and then exit().

git-svn-id: http://piwigo.org/svn/branches/2.0@4328 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 21:19:04 +00:00
rvelices
7cc7cb7817 merge -r4261 from trunk
quick search on image file name is not case sensitive anymore

git-svn-id: http://piwigo.org/svn/branches/2.0@4262 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-13 03:08:36 +00:00
ddtddt
ad5763f68a feature 1237:[branche 2] add ar_SA thanks to mohammed
git-svn-id: http://piwigo.org/svn/branches/2.0@4259 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 21:34:05 +00:00
vdigital
5a2f3a9a22 [language_switch]
UPDATE: ir_IR (Persian) flag renamed in fa_IR



git-svn-id: http://piwigo.org/svn/branches/2.0@4257 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:55:12 +00:00
vdigital
4c92e48174 [language_switch]
New: ar_SA (Arabic) Saudi Arabia (officially Kingdom of Saudi Arabia) flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4255 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:23:35 +00:00
patdenice
c05b8e808b Add Hungarian to LocalFiles Editor (thanks to samli).
git-svn-id: http://piwigo.org/svn/branches/2.0@4230 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-08 16:55:04 +00:00
plegall
00c0d36632 feature 1231: subscribe to cn.piwigo.org/announcement when current language is
zh_CN

git-svn-id: http://piwigo.org/svn/branches/2.0@4213 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 21:51:49 +00:00
ddtddt
1467945f2a [branche 2] update cz_CZ
git-svn-id: http://piwigo.org/svn/branches/2.0@4212 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 21:42:36 +00:00
rvelices
0257c3b2f1 merge -r4208 fro; trunk
admin multi view plugin : new option "do not save page visits to history table"

git-svn-id: http://piwigo.org/svn/branches/2.0@4209 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 20:15:16 +00:00
nikrou
ad1c1c1f5d Bug 1220 : partial revert of r4140 commit. No author id in branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@4191 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 09:52:20 +00:00
ddtddt
c68aa12c5a [branche 2] add localisation IT/DE/ES
git-svn-id: http://piwigo.org/svn/branches/2.0@4189 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 22:45:40 +00:00
vdigital
fd7786bea0 [language_switch]
New: zh_TW (Chinese (Traditional))  flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4184 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:52:46 +00:00
nikrou
bf79a365b5 bug 1220 : merge from trunk
fix regression when search by author or keyword contains quote

git-svn-id: http://piwigo.org/svn/branches/2.0@4183 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:51:56 +00:00
ddtddt
9a86950ebd [branche 2] update hu_HU
git-svn-id: http://piwigo.org/svn/branches/2.0@4172 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-02 18:44:12 +00:00
nikrou
2696a1a759 merge from trunk
bug 1220 : fix XSS vulnerability.
filter on since parameter (is_numeric)
use only htmlspecialchars to filter vars to display
revert rev:3600 add left join on users table

Todo : use only left join on users table when a search by author is made

git-svn-id: http://piwigo.org/svn/branches/2.0@4140 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-28 20:39:00 +00:00
vdigital
e0e12306cc [language_switch] merge 4130 from trunk
New: de_AT (Austrian) flag
New: ir_IR (Persian) flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4131 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-27 22:48:33 +00:00
ddtddt
1de6cc7dec [extensions]- pLoader / trunk - Add hu language thanks to Pal Mehesz
Feature 1214 added

git-svn-id: http://piwigo.org/svn/branches/2.0@4123 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-26 22:34:06 +00:00
rvelices
989343b5c9 merge -r2048 from trunk to branch 2
- avoid php warning in template when debug template option is activated

git-svn-id: http://piwigo.org/svn/branches/2.0@4069 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-20 19:30:09 +00:00
ddtddt
dc63ea09c3 [branche 2] new: de.piwigo.org/forum / es.piwigo.org/forum are online, PHPWG_DOMAIN updated inside Piwigo.
git-svn-id: http://piwigo.org/svn/branches/2.0@4046 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-15 15:15:55 +00:00
patdenice
e04bd969cb Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric.

git-svn-id: http://piwigo.org/svn/branches/2.0@4036 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 16:13:25 +00:00
patdenice
246634cb72 Replace some ereg function (depreciated) by preg_match.
git-svn-id: http://piwigo.org/svn/branches/2.0@4035 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 15:06:36 +00:00
patdenice
916fa5ea70 Plugins upgrade now delete obsolete files from obsolete.list.
git-svn-id: http://piwigo.org/svn/branches/2.0@4033 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 14:59:23 +00:00
Eric
676c314c58 [Piwigo] r4024 merged from Trunk to Branch
Bug 1189 fixed :
Adding {$NAVBAR} at top of users list.

git-svn-id: http://piwigo.org/svn/branches/2.0@4025 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-11 13:42:30 +00:00
nikrou
f571de9ab0 Bug fix 1185 : missing %s in admin vocab
merge from trunk

git-svn-id: http://piwigo.org/svn/branches/2.0@4016 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-10 18:25:38 +00:00
patdenice
d1f2f852c7 bug 1079: don't save settings in database when restore default settings.
git-svn-id: http://piwigo.org/svn/branches/2.0@4013 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-10 12:34:31 +00:00
Eric
0ecd32d2d0 [Piwigo] Bug 1079
Some common.lang.php updated

git-svn-id: http://piwigo.org/svn/branches/2.0@4010 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 20:55:57 +00:00
Eric
ce511ebf6b [Bug 1041] [REV 4008] Merged form trunk to branch
Coding guidelines improvement

git-svn-id: http://piwigo.org/svn/branches/2.0@4009 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 15:58:56 +00:00
patdenice
57225129b2 set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6

git-svn-id: http://piwigo.org/svn/branches/2.0@4005 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 14:38:54 +00:00
patdenice
6de7f6179c merge r4001-4003 from trunk to branch 2.0
Issue 1079: re-refactoring of code ;-)


git-svn-id: http://piwigo.org/svn/branches/2.0@4004 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 08:52:20 +00:00
ddtddt
74a8594c42 [branche2] Add ja_JP LocalFilesEditor language thanks to Mits
git-svn-id: http://piwigo.org/svn/branches/2.0@4000 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 07:35:01 +00:00
patdenice
7042db4041 merge r3927, r3928, r3951, r3953 from trunk to branch 2.0
r3927: Add Smarty's prefilter capability. see topic:16219 (FR).
r3928: Improve template prefilter functions
r3951: Allow to add prefilters, postfilters and output filters to templates.
r3953: Simplification of commit 3951.

git-svn-id: http://piwigo.org/svn/branches/2.0@3998 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 01:00:33 +00:00
Eric
a44ceedea6 [Piwigo] Merged from trunk to branch - Bug 1079 fixed : Return to default settings in user profile page.
(I don't really enjoy the code but it's the simplest way i've found)

git-svn-id: http://piwigo.org/svn/branches/2.0@3996 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-08 21:05:51 +00:00
ddtddt
327cdb0eab [branche2] Add pt_BR help.html language thanks to Alexandre.
git-svn-id: http://piwigo.org/svn/branches/2.0@3988 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-08 14:43:52 +00:00
ddtddt
bddd6d35fc [branche2] Add pt_BR install.lang.php language thanks to Alexandre.
git-svn-id: http://piwigo.org/svn/branches/2.0@3977 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-04 21:08:59 +00:00
ddtddt
ec0160705b [branche2] Add pt_BR admin.lang.php language thanks to Alexandre.
git-svn-id: http://piwigo.org/svn/branches/2.0@3972 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-03 07:09:24 +00:00
ddtddt
8b1a002087 [branche2] Add AR languga thanks to alberto
git-svn-id: http://piwigo.org/svn/branches/2.0@3952 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 14:59:41 +00:00
patdenice
6fdaceee16 Purge compiled templates when activate or deactivate a plugin.
Cf topic:16250 on french forum.

git-svn-id: http://piwigo.org/svn/branches/2.0@3949 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 10:41:40 +00:00
Eric
6d85089c9a [Bug 1041] Merged form trunk to branch : Switchable double/single password input with text or password type in admin using new $conf
git-svn-id: http://piwigo.org/svn/branches/2.0@3945 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-29 10:59:12 +00:00
rub
e4146c27da Bug 1176: Mail are not sent on Free sites
Add text/plain like alternative content-type

git-svn-id: http://piwigo.org/svn/branches/2.0@3937 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 20:47:55 +00:00
ddtddt
1215ac07d1 [branche2] update admin.lang.php en_UK
git-svn-id: http://piwigo.org/svn/branches/2.0@3933 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 15:44:52 +00:00
vdigital
7264a6fd24 [language_switch] New: pt_BR (Brasilian) flag
git-svn-id: http://piwigo.org/svn/branches/2.0@3929 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 04:50:18 +00:00
rub
36609cc5be Bug 1176: Mail are not sent on Free sites
"To: undisclosed-recipients: ;" are removed

git-svn-id: http://piwigo.org/svn/branches/2.0@3925 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 20:02:11 +00:00
ddtddt
f8423b0a62 update EN to branch 2 thanks to Alexandre.
git-svn-id: http://piwigo.org/svn/branches/2.0@3924 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 19:43:08 +00:00
nanticpwg
5f3374535a git-svn-id: http://piwigo.org/svn/branches/2.0@3923 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-09-27 18:14:31 +00:00
ddtddt
e01b6f6b5f Add Brazil to branch 2 thanks to Alexandre.
git-svn-id: http://piwigo.org/svn/branches/2.0@3919 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-26 06:23:22 +00:00
ddtddt
2c77b5319e bug:1164 update DE
git-svn-id: http://piwigo.org/svn/branches/2.0@3890 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-20 21:00:29 +00:00
ddtddt
8f7ddc4535 bug:1163 Error UTF-8 without boom
git-svn-id: http://piwigo.org/svn/branches/2.0@3889 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-20 20:53:55 +00:00
ddtddt
0e054189d5 Add DE description.txt to Branche2 thanks to el ninjo
git-svn-id: http://piwigo.org/svn/branches/2.0@3879 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-19 20:50:37 +00:00
ddtddt
af1237c9ca Add PL add_c13y_upgrade plugin to Branche 2 thanks to emcek
git-svn-id: http://piwigo.org/svn/branches/2.0@3862 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-17 22:17:03 +00:00
ddtddt
cf5f1a8ff1 Add PL description.txt to Branche2 thanks to emcek
git-svn-id: http://piwigo.org/svn/branches/2.0@3854 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-17 14:38:27 +00:00
riopwg
f25f98afc1 Langue IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3850 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-15 12:12:38 +00:00
ddtddt
34cfd54033 add description.txt file in language directory for plugin even tracer
git-svn-id: http://piwigo.org/svn/branches/2.0@3848 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-14 21:14:01 +00:00
ddtddt
652aa4518a Add Langue ES descriptions for plugins.
git-svn-id: http://piwigo.org/svn/branches/2.0@3847 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-14 20:22:49 +00:00
riopwg
80eca74262 Add Langue IT descriptions for plugins.
git-svn-id: http://piwigo.org/svn/branches/2.0@3832 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-06 22:01:00 +00:00
patdenice
203a8a33cf merge r3716-3717 from trunk to branch 2.0
Allow to add description.txt file in language directory for plugin description.
Add multilingual descriptions for plugins.

git-svn-id: http://piwigo.org/svn/branches/2.0@3824 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-05 11:35:20 +00:00
patdenice
d39ce214bc Update pclzip to 2.8.1 (PHP 5.3 compatibility)
git-svn-id: http://piwigo.org/svn/branches/2.0@3822 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-05 11:20:48 +00:00
rub
13872e6e92 merge -c3798 from trunk to branch 2.0
Bug 1145: Mails are sent in double


git-svn-id: http://piwigo.org/svn/branches/2.0@3799 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-26 20:17:28 +00:00
riopwg
128632c8e9 Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3783 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-23 10:52:16 +00:00
plegall
5ec75e5fe1 cherry picking merge 7795 to
git-svn-id: http://piwigo.org/svn/branches/2.0@3767 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-20 21:22:27 +00:00
plegall
adbe699749 bug 895: r3714 had replaced the "open in a new tab" (introduced in r3381 for
feature:1020)) into a "open in the same", but it is important to keep the
window with newsletter subscription links opened.

git-svn-id: http://piwigo.org/svn/branches/2.0@3765 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-20 21:20:30 +00:00
riopwg
1fde9c1925 Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3728 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-12 20:59:49 +00:00
rvelices
3181f90028 merge r3722 from trunk
- comment a css rule in admin page (was making Firefox very slow on form controls activation
- remove usage of jquery.dimensions because not required

git-svn-id: http://piwigo.org/svn/branches/2.0@3723 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-07 04:53:38 +00:00
patdenice
8caad629e6 bug 895 : At the end of install, webmaster is automatically connected with two buttons: "Home" and "Admin"
git-svn-id: http://piwigo.org/svn/branches/2.0@3714 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-01 12:37:43 +00:00
patdenice
f609411ba0 merge r3711 from trunk to branch 2.0
Disable database optimization for menubar order until it has been fixed.

git-svn-id: http://piwigo.org/svn/branches/2.0@3712 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-31 14:59:31 +00:00
rvelices
de08354729 merge r3703 from trunk - fix smarty debugging info (not important)
git-svn-id: http://piwigo.org/svn/branches/2.0@3704 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-30 04:00:04 +00:00
riopwg
a8ab279cbe Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3667 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-24 11:48:04 +00:00
vdigital
306c8e696f New: picture_nav_buttons.tpl gets in template-extension support
git-svn-id: http://piwigo.org/svn/branches/2.0@3664 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-23 18:45:43 +00:00
plegall
7edf366f8b feature 1071: improve log system on API calls. The log can be activated by a
configuration setting. The log file can be changed also with a configuration
setting.

improvement: pwg.images.add API methods gets a cleaner way to log received
parameters.

git-svn-id: http://piwigo.org/svn/branches/2.0@3661 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:40:47 +00:00
plegall
881aa5ab22 bug 1070: fix a pLoader bug on Piwigo side. Catch the bad communication:
don't try to find tags if tag_ids parameter is empty (but not null).

git-svn-id: http://piwigo.org/svn/branches/2.0@3659 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:18:51 +00:00
plegall
90ca8f2d0a update Subversion repository location on release creation script
git-svn-id: http://piwigo.org/svn/branches/2.0@3658 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 20:13:35 +00:00
plegall
5695654d35 feature 953: avoid fatal error when delete a photo (added with pwg.images.add
API) and the file doesn't not exist on the filesystem.

git-svn-id: http://piwigo.org/svn/branches/2.0@3656 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 20:07:44 +00:00
rvelices
d8f1c262de - bug fix (use uasort for computed categories instead of usort) - I think this is an old bug and somehow it worked before)
git-svn-id: http://piwigo.org/svn/branches/2.0@3643 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:37:37 +00:00
rvelices
30f0e85768 correct bug in commit r3623 ( feature 1053 )
git-svn-id: http://piwigo.org/svn/branches/2.0@3641 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:19:37 +00:00
ddtddt
65a094fdc2 update DE language branch2 thanks to Daniel
git-svn-id: http://piwigo.org/svn/branches/2.0@3638 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-19 17:29:34 +00:00
rvelices
17087ea615 merge r3622 from trunk to branch 2.0
- feature 1053: hide categories that contain no photo due to privacy level

git-svn-id: http://piwigo.org/svn/branches/2.0@3623 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-18 10:34:39 +00:00
plegall
cd10ccec6f feature 1057 added: let the IT/DE/ES users subscribe to the ID/DE/ES Piwigo
announcement newsletter.

git-svn-id: http://piwigo.org/svn/branches/2.0@3620 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-17 21:19:03 +00:00
rvelices
b7878bf914 merge r3611 from trunk
improve event tracer: add the possibility to dump all the included php files

git-svn-id: http://piwigo.org/svn/branches/2.0@3612 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-16 19:26:57 +00:00
riopwg
aa7b48409f Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3593 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-15 20:10:39 +00:00
patdenice
74476e34e0 Update smarty to 2.6.26
git-svn-id: http://piwigo.org/svn/branches/2.0@3583 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-15 11:41:41 +00:00
patdenice
c975589d63 Update pclzip library to 2.8
git-svn-id: http://piwigo.org/svn/branches/2.0@3581 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-15 11:34:06 +00:00
riopwg
d4167bf628 Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3564 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-10 19:27:43 +00:00
rvelices
49ef94b777 fix display of menubar tag cloud with IE8 (it was overflowing to the right outside the menubar)
git-svn-id: http://piwigo.org/svn/branches/2.0@3545 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-08 05:13:26 +00:00
rvelices
96407d5f72 merge r3537 from trunk
bug 1029 IE8 : rating system is gone - correction of javascript

git-svn-id: http://piwigo.org/svn/branches/2.0@3538 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-07 04:36:33 +00:00
riopwg
595d73f7ec Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3532 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-06 20:04:09 +00:00
ddtddt
a1e47bbf4c translate hide Branch2
git-svn-id: http://piwigo.org/svn/branches/2.0@3524 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 22:15:14 +00:00
ddtddt
a931a4dad8 update ES Branch 2
git-svn-id: http://piwigo.org/svn/branches/2.0@3523 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 22:04:57 +00:00
vdigital
0abd9b4945 New(minor): Add Logout from admin menu (net cafe or office shared desktop) - saqwild request
git-svn-id: http://piwigo.org/svn/branches/2.0@3521 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 21:24:12 +00:00
vdigital
cbc5f2c649 Minor: prevent for non numeric values (except all)
git-svn-id: http://piwigo.org/svn/branches/2.0@3519 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 20:39:58 +00:00
ddtddt
4ebd6b0090 update ES branch2 - thanks to Antonio Mengs
git-svn-id: http://piwigo.org/svn/branches/2.0@3518 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 20:37:53 +00:00
ddtddt
3aab1e4125 bug 986 branche 2
git-svn-id: http://piwigo.org/svn/branches/2.0@3516 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-04 19:05:48 +00:00
plegall
153c32e8ff bug 1043 fixed: avoid warning when merging chunks. This warning was preventing
the PwgError to work correctly and the error code was not transmitted.

git-svn-id: http://piwigo.org/svn/branches/2.0@3513 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-03 22:59:32 +00:00
Criss
c64b8adc63 bug 0001042
Files fixed on 2.0 branch

git-svn-id: http://piwigo.org/svn/branches/2.0@3506 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-03 13:58:53 +00:00
vdigital
588b9d0d16 New: jQuery status
git-svn-id: http://piwigo.org/svn/branches/2.0@3493 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-02 06:08:37 +00:00
vdigital
a61dfc631d Reverse of 3484
git-svn-id: http://piwigo.org/svn/branches/2.0@3490 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 21:06:55 +00:00
vdigital
7ee363b9f9 New: Extend of available fields within a category page for a template-extension simple usage.
Add thumbnail dimensions to remove as much as possible some PHP in tpl extensions.

{$thumbnails.FILE_TN_WIDTH}
{$thumbnails.FILE_TN_HEIGHT}

git-svn-id: http://piwigo.org/svn/branches/2.0@3484 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 19:19:24 +00:00
vdigital
ccb0eaca47 Bug 964 fixed and more
+ ?&lang=en_UK" => ?lang=en_UK"
+ =&lang=en_UK" => &lang=en_UK"
+ Works for any combinations of
$conf['question_mark_in_urls']
$conf['php_extension_in_urls']
=> BUT force a return to home in some cases.
+ Full technical code review

git-svn-id: http://piwigo.org/svn/branches/2.0@3477 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-30 21:16:24 +00:00
plegall
91c7200b59 feature 1033 added: new API method pwg.categories.setInfo makes possible to
change the name and comment of a given category.

git-svn-id: http://piwigo.org/svn/branches/2.0@3453 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-24 21:42:39 +00:00
riopwg
90cc8dccf3 Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3441 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-22 21:42:32 +00:00
ddtddt
ec31cce408 Add zh help/configuration.html thanks to winson
git-svn-id: http://piwigo.org/svn/branches/2.0@3430 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-18 04:48:54 +00:00
ddtddt
443c5e3d62 update Add lines in all admin.lang.php / en_UK
git-svn-id: http://piwigo.org/svn/branches/2.0@3420 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-15 20:35:28 +00:00
ddtddt
eb1b7aa872 Add zh help thanks to win son
git-svn-id: http://piwigo.org/svn/branches/2.0@3419 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-15 19:28:12 +00:00
riopwg
65d37b6b19 Update lang IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3413 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-12 11:30:10 +00:00
nikrou
8142ea730b merge from trunk : remove duplicate retrieved field
git-svn-id: http://piwigo.org/svn/branches/2.0@3406 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-10 19:07:45 +00:00
nikrou
50114c64f0 merge from trunk;bug fix 1024 : the way to discover protocol (http/https) was not correct
git-svn-id: http://piwigo.org/svn/branches/2.0@3404 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-09 15:55:21 +00:00
plegall
ccc032c809 feature 1020: simplify the URL to subscribe to Piwigo Announcements
Newsletter.

git-svn-id: http://piwigo.org/svn/branches/2.0@3401 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-08 21:12:06 +00:00
ddtddt
62d1bcfa38 Add Danish translation language thank to nile
git-svn-id: http://piwigo.org/svn/branches/2.0@3400 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-06 06:15:22 +00:00
ddtddt
848d97927c Add Czech language (Cestina) language thank to Pavel Budka (www.pbudka.co.cc) & Petr Jirsa
git-svn-id: http://piwigo.org/svn/branches/2.0@3399 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-06 06:14:08 +00:00
nanticpwg
86d75278d6 help files translation - continuation
git-svn-id: http://piwigo.org/svn/branches/2.0@3392 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-04 17:05:35 +00:00
plegall
bdf463d2b7 bug 1022 fixed: a photo can be associateed to no category (now that a photo
can have NULL as storage_category_id, it's possible to have no associated
category), the admin/picture_modify doesn't break anymore.

git-svn-id: http://piwigo.org/svn/branches/2.0@3389 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-02 20:20:42 +00:00
plegall
32a24fefc9 feature 1020 added: ability to subscribe to Piwigo Announcement Newsletter from
Piwigo itself. Admins can perform this action at the end of installation or on
administration panel index.

git-svn-id: http://piwigo.org/svn/branches/2.0@3381 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-31 19:35:51 +00:00
vdigital
e486b3c79a - 1 pixel around the flags panel
git-svn-id: http://piwigo.org/svn/branches/2.0@3379 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-31 10:44:46 +00:00
vdigital
01938c844d + Language Switch CSS review (inherit and overrides)
git-svn-id: http://piwigo.org/svn/branches/2.0@3377 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-30 16:25:40 +00:00
vdigital
13b1766027 + Language Switch code review (No cookies => session).
+ Optional $conf['no_flag_languages'] = Array() to remove flags

git-svn-id: http://piwigo.org/svn/branches/2.0@3375 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-30 15:21:43 +00:00
vdigital
b31faf23b5 + Language Switch enhanced design and concepts.
git-svn-id: http://piwigo.org/svn/branches/2.0@3368 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-29 21:26:27 +00:00
plegall
b6ed391396 bug 998 fixed: add the ability to switch to Croatian. The icon filename was
wrong in language_switch plugin.

git-svn-id: http://piwigo.org/svn/branches/2.0@3289 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-16 20:33:56 +00:00
plegall
e579ec2cad bug 968 fixed: charset is set in HTTP header.
improvement: in the "this gallery is locked" message, the link to the
"sign in" page is on the whole sentence, not only on the final dot.

git-svn-id: http://piwigo.org/svn/branches/2.0@3276 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-06 21:07:03 +00:00
ddtddt
d200bc5808 Add eid en tag 2.0.2 all basic plugin
git-svn-id: http://piwigo.org/svn/branches/2.0@3274 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-06 13:34:54 +00:00
ddtddt
c7ce7ef7e8 IE8 compatibility
git-svn-id: http://piwigo.org/svn/branches/2.0@3272 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-06 05:17:55 +00:00
plegall
4d7292c50c feature 981 added: ability to set the compression level for thumbnail creation.
git-svn-id: http://piwigo.org/svn/branches/2.0@3270 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-05 21:42:58 +00:00
plegall
4dba703493 bug fixed: remove the svn:mime-type that was set to "application/octet-stream"
on several Japanese help files.

git-svn-id: http://piwigo.org/svn/branches/2.0@3266 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-04 22:23:57 +00:00
ddtddt
95afe3b800 Add ja_PA pack thanks to Mits
git-svn-id: http://piwigo.org/svn/branches/2.0@3265 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-04 12:17:21 +00:00
ddtddt
ada6b2183d Add pt_PT install.lang.php thanks to sergio
git-svn-id: http://piwigo.org/svn/branches/2.0@3264 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-04 07:42:02 +00:00
ddtddt
2d984840c5 Add pt_PT thanks to sergio
git-svn-id: http://piwigo.org/svn/branches/2.0@3263 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-27 12:36:59 +00:00
rub
d50e5963ff merge -c3261 from trunk to branch 2.0
Resolved issue 0000977: Error on sendmail with smtp 

git-svn-id: http://piwigo.org/svn/branches/2.0@3262 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 18:36:17 +00:00
rub
6d758aec6b merge -c3259 from trunk to branch 2.0
Remove " " after ":" on smtp_mail

git-svn-id: http://piwigo.org/svn/branches/2.0@3260 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 15:05:07 +00:00
rub
ef20fa17b5 merge -c3257 from trunk to branch 2.0
Rollback "Missing <ul> on NBM" in order to dd <ul> on feed too.

git-svn-id: http://piwigo.org/svn/branches/2.0@3258 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 15:00:57 +00:00
rub
f81888fc2e merge -c3255 from trunk to branch 2.0
Missing <ul> on NBM

merge -c3254 from trunk to branch 2.0
Remove icon not used on public part.



git-svn-id: http://piwigo.org/svn/branches/2.0@3256 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 10:07:21 +00:00
rub
b113b3fb08 merge -c3243 from trunk to branch 2.0
Resolved issue 0000974: Adding a link to the gallery in the notification of inscription 

git-svn-id: http://piwigo.org/svn/branches/2.0@3244 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-21 17:10:36 +00:00
plegall
52db0a523c bug 949 fixed: to avoid memory limit on server side, base64 encode chunks one
by one on client side and base64 decode chunks one by one on server side.


git-svn-id: http://piwigo.org/svn/branches/2.0@3239 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-14 22:49:04 +00:00
riopwg
a3445bb236 Updates IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3237 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-13 12:22:42 +00:00
ddtddt
64e5c5ce72 add PL translate for plugin add_index. Thanks to voyteckst
git-svn-id: http://piwigo.org/svn/branches/2.0@3236 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-04 07:08:39 +00:00
ddtddt
e3e63e17ad Add zh_CN install.lang.php thanks to ZHU
git-svn-id: http://piwigo.org/svn/branches/2.0@3235 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-02 20:07:44 +00:00
ddtddt
1aab229f94 Add Chinese and Japanese translation
thinks to ZHU  and Mits 

git-svn-id: http://piwigo.org/svn/branches/2.0@3234 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-30 19:34:12 +00:00
gnantic
fb3b24f90f continuation of help translation
git-svn-id: http://piwigo.org/svn/branches/2.0@3225 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-24 19:02:53 +00:00
ddtddt
dfd9b32e59 Add pl to plugin localfilesEditor thanks to voyteckst
git-svn-id: http://piwigo.org/svn/branches/2.0@3223 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-24 18:09:20 +00:00
ddtddt
8e86d04622 update PL thanks to voyteckst
git-svn-id: http://piwigo.org/svn/branches/2.0@3220 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-23 13:47:02 +00:00
nikrou
462b87485c merge r3216 from trunk to branch 2.0
feature_948_accordion feature 948 : fix problem with incorrect submenu open in admin use a new variable (U_ACTIVE_MENU) and use default position defined in selected_admin_menu if not exists

git-svn-id: http://piwigo.org/svn/branches/2.0@3217 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-19 21:39:38 +00:00
nikrou
c86ae74710 merge r3184 backport from trunk to branch 2.0
bug 933 fixed : quick fix to prevent html injection

git-svn-id: http://piwigo.org/svn/branches/2.0@3214 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-19 19:29:03 +00:00
plegall
810a0b1783 new: it.piwigo.org/forum is online, PHPWG_DOMAIN updated inside Piwigo.
git-svn-id: http://piwigo.org/svn/branches/2.0@3210 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-17 21:33:47 +00:00
patdenice
00ce8c1bab merge r3207 from trunk to branch 2.0.
Add "tags" parameter for template extensions

git-svn-id: http://piwigo.org/svn/branches/2.0@3208 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 17:53:20 +00:00
patdenice
a45e1f526e merge r3205 from trunk to branch 2.0.
Update version in plugins table during plugin activation.

git-svn-id: http://piwigo.org/svn/branches/2.0@3206 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 17:22:46 +00:00
patdenice
796cbc8350 merge r3203 from trunk to branch 2.0.
Move template class inclusion to common.inc.php.
Add forum link in upgrade page.
Install and upgrade try to configure PHP5.

git-svn-id: http://piwigo.org/svn/branches/2.0@3204 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 17:04:13 +00:00
ddtddt
bbc19a5dc9 update ES
git-svn-id: http://piwigo.org/svn/branches/2.0@3200 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-15 21:05:05 +00:00
plegall
3994facacb feature 934 added: add link to pLoader extension pages in Piwigo embedded
instructions.


git-svn-id: http://piwigo.org/svn/branches/2.0@3199 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-15 20:47:58 +00:00
plegall
ab6f96964a bug 926 fixed: change links to piwigo.org so that they go to existing URLs.
new: if the current language is french, the links go to fr.piwigo.org insted.


git-svn-id: http://piwigo.org/svn/branches/2.0@3196 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-13 23:37:34 +00:00
plegall
497e753bcf bug 941 fixed: to be able to upload heavy photo, chunk the files, send parts
one by one, and then pwg.images.add merge chunks together. Now big uploads
works and you can even have a fine progress bar on client side.


git-svn-id: http://piwigo.org/svn/branches/2.0@3192 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-12 23:09:22 +00:00
patdenice
b70496545c merge part of r3190 from trunk to branch 2.0.
URL parameter for template extensions can be used in slideshow.

git-svn-id: http://piwigo.org/svn/branches/2.0@3191 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-12 13:19:22 +00:00
patdenice
77d508c6d4 merge r3186 from trunk to branch 2.0.
Cosmetic Corections for LocalFiles Editor.

git-svn-id: http://piwigo.org/svn/branches/2.0@3187 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-11 16:42:01 +00:00
patdenice
a49cd3f842 merge part of r3182 from trunk to branch 2.0.
Re-order templates extension alphabetically.

git-svn-id: http://piwigo.org/svn/branches/2.0@3183 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-07 21:38:38 +00:00
ddtddt
98d4f348d4 Add flag pt_PT
git-svn-id: http://piwigo.org/svn/branches/2.0@3174 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-06 09:50:45 +00:00
patdenice
776812e507 merge r3169 from trunk to branch 2.0
User's template extension must not be included in admin pages.


git-svn-id: http://piwigo.org/svn/branches/2.0@3170 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 22:39:08 +00:00
plegall
a1993b66d1 bug 913 fixed: ability to connect with an IPv6 address was added.
git-svn-id: http://piwigo.org/svn/branches/2.0@3165 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-26 20:09:26 +00:00
gnantic
eb85efa77d git-svn-id: http://piwigo.org/svn/branches/2.0@3157 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-02-16 16:07:24 +00:00
ddtddt
d3080428a1 update Nl thanks to Webmaster terwolde.net
git-svn-id: http://piwigo.org/svn/branches/2.0@3156 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-15 21:46:33 +00:00
riopwg
0005cd2b80 Updates IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3152 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-15 14:47:28 +00:00
ddtddt
700628ac60 uptate ES
git-svn-id: http://piwigo.org/svn/branches/2.0@3149 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-14 23:14:43 +00:00
rvelices
368059d535 merge 3145-3146 from trunk
Last (I hope) paranoic optims ...
- move get_uysername and get_groupname from public to admin/functions.inc.php
- optim in index.php
- tags.tpl does not need smarty modifier included
- move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page)

git-svn-id: http://piwigo.org/svn/branches/2.0@3147 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-14 02:28:21 +00:00
patdenice
35e9af66be merge r3143 from trunk to branch 2.0
- Show number of downloads in plugins list.
- Allow to sort plugins by number of downloads.
- Fix plugin revision URL (no more revision_view in PEM).

git-svn-id: http://piwigo.org/svn/branches/2.0@3144 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-13 21:03:02 +00:00
vdigital
164fd3a280 New IE6 transparency enhancement in admin (Thanks to tweakpng).
git-svn-id: http://piwigo.org/svn/branches/2.0@3138 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-13 13:39:07 +00:00
rvelices
b77b4f0aba merge r3136 from trunk
- moved check upgrade feed code to admin/include/functions_upgrade.php
- refactored some code (shorter and somehow faster - but nothing revolutionary)
- decrease lost space in permalinks.tpl and hard coded column width (was illisible)

git-svn-id: http://piwigo.org/svn/branches/2.0@3137 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-13 13:02:20 +00:00
plegall
bd8b4f51bb new: phpwebgallery renamed piwigo
modification: pwg_rel_create.sh only creates the zip file


git-svn-id: http://piwigo.org/svn/branches/2.0@3134 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-12 23:33:39 +00:00
plegall
9958d87e14 modification: phpwebgallery.net moves to piwigo.org
modification: doc/README_*.txt much simpler with link to piwigo.org for
installation and upgrade guides.

modification: latest_version has changed its path on the website to download
directory.

deletion: doc/ChangeLog was useless and outdated.


git-svn-id: http://piwigo.org/svn/branches/2.0@3132 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-12 23:12:39 +00:00
gnantic
c4d34ae15a Initial translation of help files part1
git-svn-id: http://piwigo.org/svn/branches/2.0@3130 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-11 22:07:34 +00:00
rvelices
15515695a1 - fix issue on my previous commit
git-svn-id: http://piwigo.org/svn/branches/2.0@3129 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 03:10:59 +00:00
rvelices
b019ad9b55 merge r 3126 from trunk
- embellish_url compacts now ..
- some trigger improvements (render_category_description)
- improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page )

git-svn-id: http://piwigo.org/svn/branches/2.0@3127 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 03:04:27 +00:00
rvelices
a44e905d0b merge r3124 from trunk
- removed triggers loc_index_thumbnail and loc_index_category_thumbnail
- changed triggers loc_end_index_thumbnails and loc_end_index_category_thumbnails from actions to events

git-svn-id: http://piwigo.org/svn/branches/2.0@3125 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 02:29:57 +00:00
rvelices
52281b5f44 merge r3122 from trunk
- removed second parameter $type from function format_date

git-svn-id: http://piwigo.org/svn/branches/2.0@3123 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-04 02:42:17 +00:00
rvelices
9428613b2d merge 3120 from trunk
optimizations (php only)
- removed unnecessary call to array_unique in get_image_ids_for_tags
- put back in smarty exec time counting (debug mode) for each included template
- prefix some smarty modifiers with @ in some templates
- do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier

git-svn-id: http://piwigo.org/svn/branches/2.0@3121 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-04 02:33:50 +00:00
gnantic
9a0510c88c initial translation final stage
git-svn-id: http://piwigo.org/svn/branches/2.0@3119 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-02 19:26:24 +00:00
rvelices
340563c298 merge r3117 from trunk:
- fix use $page['nb_image_page'] instead of $user... when creating the nav bar (same as category_default)
- rewrote function format_date without regular expressions (faster); parameter date type is not used anymore (but I left it there for now)

git-svn-id: http://piwigo.org/svn/branches/2.0@3118 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-31 01:12:20 +00:00
ddtddt
41658cba9e update language name
git-svn-id: http://piwigo.org/svn/branches/2.0@3116 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-30 22:37:23 +00:00
plegall
178451d372 subversion administration: remove svn:mime-type (files considered as binary)
on some russian files.


git-svn-id: http://piwigo.org/svn/branches/2.0@3115 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-30 22:24:33 +00:00
ddtddt
b475a61ea9 add of Russian. Thanks to nadusha
git-svn-id: http://piwigo.org/svn/branches/2.0@3114 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-28 23:14:59 +00:00
gnantic
e6332fcc01 initial translation part 2
git-svn-id: http://piwigo.org/svn/branches/2.0@3109 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-22 18:35:17 +00:00
rub
5d274e413b merge -c3104 from trunk to branch 2.0
French help correction

git-svn-id: http://piwigo.org/svn/branches/2.0@3105 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-18 23:36:51 +00:00
gnantic
3cebfc6ef7 initial work on translation Piwigo 2 into Croatian
git-svn-id: http://piwigo.org/svn/branches/2.0@3101 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-18 13:20:45 +00:00
rub
2bc6baee27 merge -c3099 from trunk to branch 2.0
Try to fix bad position for "nbm_repost_submit" button.

git-svn-id: http://piwigo.org/svn/branches/2.0@3100 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-18 08:43:11 +00:00
plegall
53e9f49330 merge r3088 from trunk to branch 2.0
admin_quickLocalSync_hover.png : unchanged (to make sure crop is the same as inactive image new version)


git-svn-id: http://piwigo.org/svn/branches/2.0@3096 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:22:45 +00:00
plegall
09aa43baae merge r3087 from trunk to branch 2.0
admin_quickLocalSync_inactiv.png : lightening effect on button (previous version : lightening effect was only on leaves)


git-svn-id: http://piwigo.org/svn/branches/2.0@3094 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:22:17 +00:00
plegall
5ca81295c2 merge r3086 from trunk to branch 2.0
Sylvia_top-left-bg.jpg : pinkTree = same design, shaper image


git-svn-id: http://piwigo.org/svn/branches/2.0@3093 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:21:43 +00:00
plegall
0eab9d3cb2 merge r3085 from trunk to branch 2.0
roma/images/top-left-bg.jpg : pinkTree = same design, sharper image


git-svn-id: http://piwigo.org/svn/branches/2.0@3092 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:21:10 +00:00
vdigital
0a49335e64 - Croatian flag
git-svn-id: http://piwigo.org/svn/branches/2.0@3091 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:15:19 +00:00
vdigital
192f33353b Title harmonization in the scope of Piwigo website integration.
$conf['reverse_home_title'] is false by default.
On reverse_home_title = true, only index page will reverse its title.

Compare to prior releases all titles are reversed.


git-svn-id: http://piwigo.org/svn/branches/2.0@3090 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:13:31 +00:00
gnantic
3c3d75d7bb git-svn-id: http://piwigo.org/svn/branches/2.0@3089 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-01-17 22:03:31 +00:00
ddtddt
0f99efa2a3 add Polish language thanks to voyteckst
git-svn-id: http://piwigo.org/svn/branches/2.0@3083 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 15:28:07 +00:00
patdenice
aa6e4dbaa4 merge -c3081 from trunk to branch 2.0.
Remove utf8 encode in plugin class.

git-svn-id: http://piwigo.org/svn/branches/2.0@3082 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 14:29:52 +00:00
gnantic
0985cc6253 git-svn-id: http://piwigo.org/svn/branches/2.0@3080 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-01-15 19:58:25 +00:00
gnantic
ebc2fe30b1 Pomoćni zapisi
git-svn-id: http://piwigo.org/svn/branches/2.0@3079 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-15 19:57:05 +00:00
gnantic
757616968d git-svn-id: http://piwigo.org/svn/branches/2.0@3078 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-01-15 19:54:27 +00:00
gnantic
c22fe083c6 Hrvatski prijevod PHP Web Gallery - Piwigo
git-svn-id: http://piwigo.org/svn/branches/2.0@3077 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-15 19:48:32 +00:00
rub
2b0f5ecaf3 Disabled optimization table for branch 2.0 only
git-svn-id: http://piwigo.org/svn/branches/2.0@3076 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-14 07:10:09 +00:00
patdenice
c3ca73c3b7 merge -c3074 from trunk to branch 2.0.
Display bug on install page

git-svn-id: http://piwigo.org/svn/branches/2.0@3075 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-14 01:25:28 +00:00
rub
882ffed349 merge -c3072 from trunk to branch 2.0
Fix bad $lang.
Remove not necessary information messages on upgrade.

git-svn-id: http://piwigo.org/svn/branches/2.0@3073 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-13 18:56:17 +00:00
patdenice
644f226af6 merge -c3070 from trunk to branch 2.0.
Send user language when retrieving datas from PEM api.

git-svn-id: http://piwigo.org/svn/branches/2.0@3071 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-13 00:40:40 +00:00
vdigital
120678f078 - Error icon misplaced
git-svn-id: http://piwigo.org/svn/branches/2.0@3068 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-11 20:08:22 +00:00
riopwg
451060b280 Updates IT
git-svn-id: http://piwigo.org/svn/branches/2.0@3066 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-09 07:43:03 +00:00
plegall
48c1eef07e bug 912 fixed: we need an extra original_sum to pwg.images.add API method to
check photo existence. Using the file_sum was a bad idea.


git-svn-id: http://piwigo.org/svn/branches/2.0@3064 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-08 23:31:49 +00:00
ddtddt
05b847a92a DE Updated with the work of Daniel
git-svn-id: http://piwigo.org/svn/branches/2.0@3063 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-08 22:03:07 +00:00
ddtddt
ec85dce77b DE Updated with the work of Daniel
git-svn-id: http://piwigo.org/svn/branches/2.0@3062 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-07 20:53:38 +00:00
vdigital
347a42bf21 - External links are following the Graphic Chart (class="external")
git-svn-id: http://piwigo.org/svn/branches/2.0@3060 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-07 19:52:51 +00:00
plegall
5aa076cf47 code administration: any text file should have the svn:eol-style property
set to LF.


git-svn-id: http://piwigo.org/svn/branches/2.0@3058 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-07 00:11:17 +00:00
plegall
680efc25ed Code administration: convert all text files to Unix file format (CR as eol
and not CRLF)


git-svn-id: http://piwigo.org/svn/branches/2.0@3054 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-06 21:31:04 +00:00
vdigital
19d096853d - Change tabs text background in hover case
git-svn-id: http://piwigo.org/svn/branches/2.0@3053 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-06 18:40:14 +00:00
vdigital
133b9d48fb - let it clickable ... (as it is now), ...
- but NO pink underline, please

git-svn-id: http://piwigo.org/svn/branches/2.0@3052 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-05 22:04:11 +00:00
ddtddt
f2ae0a3685 New structure of file for help.html
DE/NL/IT languages.

git-svn-id: http://piwigo.org/svn/branches/2.0@3051 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-05 14:42:49 +00:00
ddtddt
d3bbb3615c New: new instruction organization and display applied to SP language.
git-svn-id: http://piwigo.org/svn/branches/2.0@3050 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-05 13:57:09 +00:00
plegall
a4a103e945 bug fixed: convert some german language files from iso to utf-8.
git-svn-id: http://piwigo.org/svn/branches/2.0@3047 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 23:19:12 +00:00
plegall
aeaffa61bd Administration: happy new year 2009, all PHP headers updated.
git-svn-id: http://piwigo.org/svn/branches/2.0@3046 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 23:09:15 +00:00
plegall
4b8777dcbb New: new instruction organization and display applied to french language.
git-svn-id: http://piwigo.org/svn/branches/2.0@3045 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 22:38:49 +00:00
plegall
3965ae332d bug fixed: in english instruction, try to avoid the generic word "element"
and replace it by "photo". This commit changes only a section title, 4
"elements" remains in the file, but they are in the generic section "Add
photos, the FTP way" where the directory organization is detailed.


git-svn-id: http://piwigo.org/svn/branches/2.0@3044 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 21:26:11 +00:00
vdigital
094fedbde9 - Text background for tabsheet.
git-svn-id: http://piwigo.org/svn/branches/2.0@3043 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 11:49:48 +00:00
vdigital
d51c92831b - $conf['meta_ref'] is a new configuration parameter (Default true)
Meta tags for description, author, and keywords are generated,
except if meta robots "noindex" is forced (with some pages like search, recent cats, etc.).

In addition, $conf['meta_ref'] = false is forcing "noindex, nofollow".

git-svn-id: http://piwigo.org/svn/branches/2.0@3040 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-03 21:03:46 +00:00
vdigital
7aecaf7774 - New tabs from Stripy but not perfect again.
git-svn-id: http://piwigo.org/svn/branches/2.0@3038 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-03 14:07:31 +00:00
plegall
dcfa79065b modification: based on stripy request (see post:102812), administration
instructions section headers become pink and expand/collapse icons are also
pink (merge back 3035).


git-svn-id: http://piwigo.org/svn/branches/2.0@3036 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-02 19:43:04 +00:00
plegall
f38d06af1e modification: updated icons for expand/collapse actions in administration
instructions, pink was a bit too pink. Icons sent by stripy.


git-svn-id: http://piwigo.org/svn/branches/2.0@3035 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-31 18:35:37 +00:00
plegall
33a145d825 modification: use Roma compliant icons for expand/collapse actions in
administration instructions. Icons sent by stripy.


git-svn-id: http://piwigo.org/svn/branches/2.0@3034 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-31 00:35:56 +00:00
vdigital
7a75e9cfb3 - Change the title logic for a better index in Google images
(It was already done but it should be improved).

git-svn-id: http://piwigo.org/svn/branches/2.0@3031 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-30 20:17:37 +00:00
vdigital
437153c7b6 - active_tab2.png and inactive_tab2.png received from Stripy
git-svn-id: http://piwigo.org/svn/branches/2.0@3029 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-30 17:56:29 +00:00
ddtddt
8e3b3e580a Updated with the work of Daniel (and &uuml; to ü)
git-svn-id: http://piwigo.org/svn/branches/2.0@3027 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-29 16:46:47 +00:00
vdigital
d940c29e1b - ini_set usage removed.
git-svn-id: http://piwigo.org/svn/branches/2.0@3025 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-28 15:31:46 +00:00
vdigital
75d28ba5c6 - ini_set usage is sometimes prohibited.
git-svn-id: http://piwigo.org/svn/branches/2.0@3023 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-28 14:19:54 +00:00
ddtddt
636bbed6d2 Updated with the work of Daniel
git-svn-id: http://piwigo.org/svn/branches/2.0@3021 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-27 14:03:15 +00:00
vdigital
36ea7e0387 - Japanese flag
- <p> support in Sylvia menubar
- Admin Help is chartered (First use of the discrete links)

git-svn-id: http://piwigo.org/svn/branches/2.0@3017 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-23 19:33:44 +00:00
vdigital
05244c5cc7 - theHeader (10 points): 10px more
git-svn-id: http://piwigo.org/svn/branches/2.0@3015 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-22 22:05:42 +00:00
vdigital
2faf34386f - datePicker calendar to be re-chartered (roma).
- Identification > Notification : Translation review
- Header with no header (Sylvia only).

git-svn-id: http://piwigo.org/svn/branches/2.0@3013 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-22 21:38:17 +00:00
plegall
f6117dcec9 bug fixed: administration instructions, typo fixed and precision on authorized
characters in file and directory names.


git-svn-id: http://piwigo.org/svn/branches/2.0@3012 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-22 21:09:33 +00:00
plegall
7c0569088a modification: in administration instruction set, pwgScreen uses "&raquo;"
instead of ",", it makes screen names more readable.

bug fixed: in administration instruction set, precision on the category type
for user upload.

bug fixed: in administration instruction set, remove the synchronization
process step when validating an uploaded photo.


git-svn-id: http://piwigo.org/svn/branches/2.0@3011 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-22 17:58:49 +00:00
plegall
c78a503b58 modification: strongly updated admin>instructions content
bug fixed: CSS class pwgScreen had disappeared (even in Piwigo 1.6)


git-svn-id: http://piwigo.org/svn/branches/2.0@3010 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-22 00:31:28 +00:00
plegall
9330d8df50 modification: instructions are displayed by blocks that can be expanded
individually. The icon doesn't fit with roma theme currently.


git-svn-id: http://piwigo.org/svn/branches/2.0@3009 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-21 20:45:12 +00:00
vdigital
e6c2587e7c tags_list
Borders are the wrong colour.

git-svn-id: http://piwigo.org/svn/branches/2.0@3004 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-20 19:45:33 +00:00
vdigital
2e07e3d65c Stripy 24px active and inactive images.
git-svn-id: http://piwigo.org/svn/branches/2.0@3002 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-20 08:11:00 +00:00
patdenice
ae19b03367 merge -c3000 from trunk to branch 2.0.
Upgrade Smarty to 2.6.22

git-svn-id: http://piwigo.org/svn/branches/2.0@3001 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-19 18:15:50 +00:00
patdenice
676c65a701 merge -c2998 from trunk to branch 2.0.
Display bug in upgrade page.

git-svn-id: http://piwigo.org/svn/branches/2.0@2999 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-18 23:22:06 +00:00
grum
6a790afb8b PHP returns a Parse Error on these two lang file
git-svn-id: http://piwigo.org/svn/branches/2.0@2996 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-18 21:57:00 +00:00
vdigital
95609895c9 Border removal in mails on thumbnails (2). Need further tests.
git-svn-id: http://piwigo.org/svn/branches/2.0@2994 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-16 22:53:03 +00:00
vdigital
4592882498 Border removal in mails
git-svn-id: http://piwigo.org/svn/branches/2.0@2992 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-16 21:59:16 +00:00
vdigital
476d7539c0 #ff3300 replacement by #ff3333
git-svn-id: http://piwigo.org/svn/branches/2.0@2990 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-16 20:15:38 +00:00
vdigital
34dcd9c8e6 Sylvia mailing template : Need to be tested ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2988 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-15 23:23:49 +00:00
vdigital
a8590e3d5a Your coral is not the right colour code (to be confirmed)
git-svn-id: http://piwigo.org/svn/branches/2.0@2986 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-15 22:29:39 +00:00
vdigital
9c084c3a91 comments.php
Please, have the ancient squared boxes for each comment 

git-svn-id: http://piwigo.org/svn/branches/2.0@2984 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-15 21:23:03 +00:00
vdigital
2b00e51005 Fieldset background removal
Alternate colours of lines for each comment, AND have the "Add a comment" border (only) in orange

git-svn-id: http://piwigo.org/svn/branches/2.0@2982 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-15 20:36:17 +00:00
vdigital
fa5f9e7272 - errors.png is still old icon version
git-svn-id: http://piwigo.org/svn/branches/2.0@2980 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 14:31:20 +00:00
vdigital
963709278e - "First | Previous | 1 2 | Next | Last" :
- text-color = #666 (now #999)

git-svn-id: http://piwigo.org/svn/branches/2.0@2978 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 13:30:46 +00:00
vdigital
60ff7685d9 Links
In menu and on page : they don't have the same appearance. None is properly chartered.

git-svn-id: http://piwigo.org/svn/branches/2.0@2976 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 11:23:15 +00:00
vdigital
c7775c3240 It is not visible enough. Please, have just the text-color in #999.
git-svn-id: http://piwigo.org/svn/branches/2.0@2974 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 11:09:56 +00:00
vdigital
3351fd9409 Borders of Categories boxes
- wrong colour
- global mode : frameborders around thumbnails are the wrong colour

git-svn-id: http://piwigo.org/svn/branches/2.0@2972 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 08:57:15 +00:00
vdigital
40b93cfe49 - have the thumbnail and results (88/88 3.61 1.51 318) at top of the line
git-svn-id: http://piwigo.org/svn/branches/2.0@2970 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-14 07:45:21 +00:00
vdigital
bb1a28462f - calendar by posted date
- january, feb, march (or 1,2,3) : border = #666 (now #999)

(Default colors overrode)

git-svn-id: http://piwigo.org/svn/branches/2.0@2968 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-11 21:47:33 +00:00
vdigital
720bd28e34 - Quicksearch and Links review
git-svn-id: http://piwigo.org/svn/branches/2.0@2966 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-11 21:05:31 +00:00
vdigital
1b230ad50c - Temporary change on fieldset background
git-svn-id: http://piwigo.org/svn/branches/2.0@2965 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-10 20:59:53 +00:00
vdigital
129e4b5232 Why is there a blank line between: - Synchronize and - Manage
Removed (Pierrick: I have no opinion concerning this blank line, I don't understand it.)

- In english, titles need caps on each word.
(Pierrick: If it only costs a CSS rule, yes please add it for english only. )

git-svn-id: http://piwigo.org/svn/branches/2.0@2963 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-09 19:40:05 +00:00
patdenice
5b3a9696eb merge -c2961 from trunk to branch 2.0.
Update Smarty to 2.6.21

git-svn-id: http://piwigo.org/svn/branches/2.0@2962 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-09 16:12:25 +00:00
riopwg
c12da2fdfa Updates IT
git-svn-id: http://piwigo.org/svn/branches/2.0@2959 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-09 07:27:06 +00:00
vdigital
bb20beb816 favicon
- inactive : coral icon (Piwigo official logo and favicon is coral)
- hover: orange icon
(now, it is reversed)

git-svn-id: http://piwigo.org/svn/branches/2.0@2957 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-08 19:52:43 +00:00
vdigital
252d1178c5 - space between each tab should equivalent to one bullet
git-svn-id: http://piwigo.org/svn/branches/2.0@2955 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-08 19:22:33 +00:00
vdigital
87a2d77154 - fieldset :
border #666 (now : #999)

git-svn-id: http://piwigo.org/svn/branches/2.0@2953 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-08 19:02:12 +00:00
vdigital
ce4b8ef61b - "Upload" tab :...., it is not on the same line as "User access level to upload"
git-svn-id: http://piwigo.org/svn/branches/2.0@2951 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-08 18:35:34 +00:00
vdigital
4a234d8fa5 - "Choose an option" : is not a title, it is an instruction => please, align on left and lower text level
git-svn-id: http://piwigo.org/svn/branches/2.0@2949 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 19:44:43 +00:00
vdigital
8f106b922a - "down" arrow icon beside "Submit" button : 1/ is not aligned with input, 2/ misses info text
git-svn-id: http://piwigo.org/svn/branches/2.0@2947 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 17:44:33 +00:00
vdigital
ced7fa1b98 Categories > Permalinks
- it needs more space between "Permalinks" and "Permalinks History" (too crowed)

git-svn-id: http://piwigo.org/svn/branches/2.0@2945 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 16:28:34 +00:00
vdigital
02f2fa65f1 Pictures > Waiting > Pictures
- Please, center column titles (category, Date,    file, thumbnail, Author)
- Caps are missing : Category, File, Thumbnail

and Pictures > Waiting > Comments
    *  Reject * Validate aligned

and Pictures > Thumbnails
- Caps are missing : path, filesize

Translators: (Only English and French are updated)

git-svn-id: http://piwigo.org/svn/branches/2.0@2943 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 16:02:59 +00:00
vdigital
701f515b82 Pictures > Rating
- "First | Previous | 1 2 | Next | Last" :
    - text-color = #666 

git-svn-id: http://piwigo.org/svn/branches/2.0@2941 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 12:08:35 +00:00
vdigital
1c01934255 "datePicker" icon was not aligned (align is not tested with all browsers)
git-svn-id: http://piwigo.org/svn/branches/2.0@2939 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 10:13:57 +00:00
vdigital
321daa2536 - icon "toggle_is_default_group.png" : new icon
git-svn-id: http://piwigo.org/svn/branches/2.0@2937 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 09:27:12 +00:00
vdigital
8eeb953b6b - title "Subscribe" and "Unsubscribe" should centered (no right aligned) with select area
git-svn-id: http://piwigo.org/svn/branches/2.0@2935 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 09:09:32 +00:00
vdigital
6161920ac0 Special > History > Search
-"Submit" button should be aligned with "Image Id" input
- Column titles need caps (Time, User, Element Type ...)

Translators: (Only English and French are updated)

git-svn-id: http://piwigo.org/svn/branches/2.0@2933 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 08:48:35 +00:00
vdigital
245d0f1a7d page Picture
- line above "comment" should be ... HR (horizontal rule) hidden
- "submit" button should aligned with "author" input

git-svn-id: http://piwigo.org/svn/branches/2.0@2931 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-07 07:56:07 +00:00
vdigital
bf0e0df030 - error message : #FF3333 (now #FF3300)
git-svn-id: http://piwigo.org/svn/branches/2.0@2929 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 20:39:30 +00:00
vdigital
4963014261 - "register" and "lost password" icons are in bad shape in menu...
git-svn-id: http://piwigo.org/svn/branches/2.0@2927 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 20:30:57 +00:00
vdigital
384d6f87b5 Categories > Upload a picture
- "browse" input = border #666, 1px, bg #222 (now, bg #FFFFcc) 


=> CSS has been changed, but the result has not changed

git-svn-id: http://piwigo.org/svn/branches/2.0@2925 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 20:12:40 +00:00
patdenice
76181e5a49 merge -c2923 from trunk to branch 2.0.
- Add a "Bound Template" column for template extensions.


git-svn-id: http://piwigo.org/svn/branches/2.0@2924 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 02:31:02 +00:00
plegall
f4f4f9724a bug 907 fixed: avoid PHP warning when pwg.images.add adds a photo in a
category that either contains no "ranked" image or when category is empty.


git-svn-id: http://piwigo.org/svn/branches/2.0@2921 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-03 23:27:46 +00:00
plegall
031276b4c2 bug 905 fixed: avoid PHP notice when rank is implicit in the categories
parameter of the pwg.images.add web API method.


git-svn-id: http://piwigo.org/svn/branches/2.0@2918 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-02 23:40:51 +00:00
plegall
fa47fc120b bug 904 fixed: an index.htm is created in directories created by
pwg.images.add web API method, only directories that contains pictures.


git-svn-id: http://piwigo.org/svn/branches/2.0@2916 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-02 23:25:45 +00:00
patdenice
b66f527601 merge -c2914 from trunk to branch 2.0.
- Bug in eval_syntax function in LocalFiles Editor function... Come back to previous function (svn 2588)

git-svn-id: http://piwigo.org/svn/branches/2.0@2915 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-30 12:53:43 +00:00
riopwg
0111f50e63 Updates
git-svn-id: http://piwigo.org/svn/branches/2.0@2912 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-26 19:47:30 +00:00
ddtddt
58501b730f update ES
git-svn-id: http://piwigo.org/svn/branches/2.0@2911 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-25 21:56:45 +00:00
vdigital
343a85df3c Minor: Changes for IE6 better support (even if it is still very poor).
git-svn-id: http://piwigo.org/svn/branches/2.0@2908 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-25 18:26:57 +00:00
patdenice
d23fa6c579 merge -c2906 from trunk to branch 2.0.
- Replace all #content by .content in Sylvia theme.css.
- In LocalFiles Editor, show error message when creating new template file with empty filename.

git-svn-id: http://piwigo.org/svn/branches/2.0@2907 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-24 22:37:13 +00:00
vdigital
5f9b237e47 Recent Stripy's icons and adapted css (tested under IE7 and FF3).
git-svn-id: http://piwigo.org/svn/branches/2.0@2904 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-24 19:47:18 +00:00
patdenice
60f2d18f1f merge -c2902 from trunk to branch 2.0.
- Add home and identification buttons after installation.
- Use fetchRemote function for remote site actions.
- Corrections in fetchRemote fnction.
- Move PLUGIN_PICTURE_BEFORE in picture.tpl.

git-svn-id: http://piwigo.org/svn/branches/2.0@2903 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-23 17:25:24 +00:00
patdenice
a1e6ae0f15 merge -c2900 from trunk to branch 2.0.
- Bug fixed: username or password with accented character are now accepted for upgrade.
- Simplify query in  pwg_session_write function.
- Retrieve data with cURL method in fetchRemote function now work with forwarded URL.

git-svn-id: http://piwigo.org/svn/branches/2.0@2901 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-22 23:34:58 +00:00
vdigital
b75ddb8e9a Sylvia notes are similar to msgs (with transparent white grid)
git-svn-id: http://piwigo.org/svn/branches/2.0@2898 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-21 19:50:54 +00:00
vdigital
a61fe1c613 infos.png is moved from right to left in admin
git-svn-id: http://piwigo.org/svn/branches/2.0@2896 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-21 19:13:29 +00:00
vdigital
32142123d6 merge -c2894 from trunk to branch 2.0
remove_s.png icon for tag removal (forgotten)


git-svn-id: http://piwigo.org/svn/branches/2.0@2895 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-21 18:28:09 +00:00
rub
5e91a36359 Add argument at trigger_action in invalidate_user_cache function
merge -c2892 from trunk to branch 2.0
The exact copy of commit log in 2892.

git-svn-id: http://piwigo.org/svn/branches/2.0@2893 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 20:51:19 +00:00
rub
487ba19c94 Delete caches and optimize tables on upgrade
merge -c2890 from trunk to branch 2.0
The exact copy of commit log in 2890.

git-svn-id: http://piwigo.org/svn/branches/2.0@2891 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 20:06:20 +00:00
vdigital
bac95a7c7f Colored scrollbar in theme-ie.css (for IE)
git-svn-id: http://piwigo.org/svn/branches/2.0@2888 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 19:41:16 +00:00
riopwg
21d2da3b94 Corrections
git-svn-id: http://piwigo.org/svn/branches/2.0@2886 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 17:07:43 +00:00
patdenice
70e5f51d00 merge -c2884 from trunk to branch 2.0.
- Replace some mysql_query by pwg_query function.
- Add home button after upgrade.php.
- Add utf8 charset for access denied message.
- Replace some #content by .content in css files.
- Fix menubar blocks borders with IE.

git-svn-id: http://piwigo.org/svn/branches/2.0@2885 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 15:46:49 +00:00
rub
e037bbe726 Delete cache data when category is deleted.
merge -c2882 from trunk to branch 2.0
The exact copy of commit log in 2882.

git-svn-id: http://piwigo.org/svn/branches/2.0@2883 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-17 22:12:15 +00:00
patdenice
3b0caa8de4 merge -c2880 from trunk to branch 2.0
- Add fetchRemote function which allow to retrieve datas over HTTP protocol using cURL method, file_get_contents function or fsockopen method. This allow to retrieve datas or files even if allow_url_fopen is deactivated.
- Use fetchRemote function in plugins manager and in latest version checking.
- Add german translations for upgrade.lang.php.
- Remove empty line at the end of pclzip.lib.php.
- Change display of deactivated plugins after upgrade.

git-svn-id: http://piwigo.org/svn/branches/2.0@2881 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-15 21:11:58 +00:00
riopwg
b8322597d5 Corrections + del last phpwebgallery in help folder
git-svn-id: http://piwigo.org/svn/branches/2.0@2872 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-14 18:53:48 +00:00
patdenice
9a0aab2515 merge -c2865 from trunk to branch 2.0
- Remove advises of file removal at the end of install (forgotten in last commit!)


git-svn-id: http://piwigo.org/svn/branches/2.0@2866 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-12 13:50:38 +00:00
patdenice
b5b089670a merge -c2863 from trunk to branch 2.0
- Remove advises of file removal at the end of install/upgrade.
- Automatic change mysql.inc.php if file is writable, else purpose manual change to user.

git-svn-id: http://piwigo.org/svn/branches/2.0@2864 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-12 12:41:27 +00:00
plegall
df2f3a4f4d improvement: instead of checking for #history_summary table presence, we
check for #plugins table. Some web hosting provider have removed this table,
causing misleading information to the upgrade script from 1.7.0.


git-svn-id: http://piwigo.org/svn/branches/2.0@2861 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-11 13:39:56 +00:00
grum
a3f21b4051 Add a new config value 'show_php_error' to allow debugging of RC to be easier.
See topic #99192 on the forum.

git-svn-id: http://piwigo.org/svn/branches/2.0@2858 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-10 10:12:20 +00:00
rub
afe30fc962 Resolved issue 0000900: format_date function doesn't work when time is omitted with 'mysql_datetime' type
Continue correction of grum


merge -c2856 from trunk to branch 2.0
The exact copy of commit log in 2856.


git-svn-id: http://piwigo.org/svn/branches/2.0@2857 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 21:49:46 +00:00
riopwg
14b13c4d67 merge -c2854 from trunk to branch 2.0
Correction upgrade.lang.php

git-svn-id: http://piwigo.org/svn/branches/2.0@2855 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 18:43:53 +00:00
grum
4ecb7f0e25 Two fields in the database [image table] are in the 'yyyy-mm-dd' format
[date_metadata_update & date_creation] and for these fields the format_date
function is called with a 'mysql_datetime' format value (so, the function is
waiting for 'yyyy-mm-dd hh:mm:ss' date format)
Made a call with the 'us' to resolve the problem

git-svn-id: http://piwigo.org/svn/branches/2.0@2850 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 14:26:39 +00:00
plegall
e88cc0f6a5 bug fixed: in r2774 a bug was introduced, piwigo.org is not available yet,
and plugin manager can't connect to the extension manager.


git-svn-id: http://piwigo.org/svn/branches/2.0@2848 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 20:37:31 +00:00
ddtddt
b941dcdb3a Updates c13y_upgrade/language/es_ES/plugin.lang.php
git-svn-id: http://piwigo.org/svn/branches/2.0@2846 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 18:09:34 +00:00
ddtddt
a140ac0a52 merge -c2844 from trunk to branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@2845 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 18:04:16 +00:00
riopwg
71b9c9c8f4 merge -c2841 from trunk to branch 2.0
Updates upgrade.lang.php & c13y_upgrade/language/it_IT/plugin.lang.php

git-svn-id: http://piwigo.org/svn/branches/2.0@2843 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 13:36:22 +00:00
vdigital
ee8b8bb9cc New: Extend of available fields within a category page for a template-extension simple usage.
Refer to topic: "Smoothgallery plugin" where no plugin is requested to do it.

git-svn-id: http://piwigo.org/svn/branches/2.0@2840 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-07 18:48:38 +00:00
patdenice
2f586c6791 merge -c2838 from trunk to branch 2.0
- improve 1.3.1 upgrade (automatic write in mysql.inc.php).
- translate 1.3.1 upgrade informations messages.
- security fix in upgrade login.

git-svn-id: http://piwigo.org/svn/branches/2.0@2839 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-07 13:56:00 +00:00
patdenice
5f1fe1d4f9 merge -c2836 from trunk to branch 2.0
- Webmaster or administrator can login to run upgrade.
- Inserting upgrade line in mysql.inc.php still work.
- Convert espagnol upgrade file to utf8.
- Minor changes in upgrade processus.
- Remove all comments in pclzip.lib.php.

git-svn-id: http://piwigo.org/svn/branches/2.0@2837 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-06 14:46:41 +00:00
laurent.duretz
894a38a9bf Issue 899
git-svn-id: http://piwigo.org/svn/branches/2.0@2835 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-06 07:14:12 +00:00
rvelices
536129a4aa - remove some unnecessary modifiers from template - it should be somehow faster (arguably though)
git-svn-id: http://piwigo.org/svn/branches/2.0@2831 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-06 01:15:23 +00:00
rub
02be99a77f merge -c2829 from trunk to branch 2.0
The exact copy of commit log in 2829.

git-svn-id: http://piwigo.org/svn/branches/2.0@2830 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-05 22:59:42 +00:00
ddtddt
86f0830e1e update admin_advice to ES
git-svn-id: http://piwigo.org/svn/branches/2.0@2827 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-05 18:04:53 +00:00
vdigital
1eb4d0310e Neuronal correction... {html_head} in error related to template-extension/distributed/samples/my-thumbnails2.tpl
(=> A new function to build).

git-svn-id: http://piwigo.org/svn/branches/2.0@2825 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-05 13:54:28 +00:00
rvelices
43b7a7e872 - removed some unused constants from constants.php
- removed some unused css rules
- removed unused code

git-svn-id: http://piwigo.org/svn/branches/2.0@2823 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-04 01:46:17 +00:00
ddtddt
17334bdba3 file upgrade.lang.php in Spanish
git-svn-id: http://piwigo.org/svn/branches/2.0@2821 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-03 20:18:12 +00:00
patdenice
78af3df65b merge -c2819 from trunk to branch 2.0
- Add roma theme to upgrade page.
- Upgrade translation.

git-svn-id: http://piwigo.org/svn/branches/2.0@2820 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-03 19:55:35 +00:00
vdigital
2ddd90f3c3 Neuronal correction... {html_head} in error related to template-extension/distributed/samples/my-thumbnails2.tpl
git-svn-id: http://piwigo.org/svn/branches/2.0@2817 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-03 19:38:09 +00:00
patdenice
108937e81a merge -c2815 from trunk to branch 2.0
- bugs correction in upgrade_1.7.0.php.
- only non-standard plugins are deactivated during upgrade.


git-svn-id: http://piwigo.org/svn/branches/2.0@2816 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-01 21:22:08 +00:00
grum
059a02f5a7 menu item "quicksearch" will be displayed only if a $block->data is set (like
other menu items)
use of a boolean value for the "qsearch" $block->data variable
(see topic #98370)

git-svn-id: http://piwigo.org/svn/branches/2.0@2814 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-28 21:19:25 +00:00
plegall
027055eb9f based on forum discussion, a comment is added to explain why c13y_upgrade
plugin is activated at this precise moment.


git-svn-id: http://piwigo.org/svn/branches/2.0@2811 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-26 20:39:44 +00:00
rub
f0b54e852a Reintroduce c13y_upgrade remove on r2754
Merge trunk 2807:2808 into branch 2.0


git-svn-id: http://piwigo.org/svn/branches/2.0@2809 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-25 21:33:11 +00:00
riopwg
c63e8f5f18 UpdatesUpdates admin_advices
git-svn-id: http://piwigo.org/svn/branches/2.0@2807 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-25 14:46:12 +00:00
vdigital
359bbc6775 Minor: capitalization is limited to first-letter.
git-svn-id: http://piwigo.org/svn/branches/2.0@2804 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-25 08:05:29 +00:00
vdigital
1523ece688 Advices [19] $conf['subcatify'] replaced by $conf['tags_default_display_mode']
Translation is needed for German, Spanish, Italian...
Please reorder after translation.



git-svn-id: http://piwigo.org/svn/branches/2.0@2802 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-24 18:59:02 +00:00
vdigital
6cfa8e0194 Refer to SVN:2789 - Advices [34]( compiled_template_cache_language ) revised
Translation is needed for German, Spanish, Italian...

git-svn-id: http://piwigo.org/svn/branches/2.0@2800 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-24 17:33:14 +00:00
grum
82cf212731 deleting grum_plugins_classes-2 directory
git-svn-id: http://piwigo.org/svn/branches/2.0@2799 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-23 21:03:11 +00:00
grum
718bfbb9a1 deleting AMenumanager directory
git-svn-id: http://piwigo.org/svn/branches/2.0@2798 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-23 21:02:25 +00:00
vdigital
96edbac452 Error in French advice...
git-svn-id: http://piwigo.org/svn/branches/2.0@2796 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-23 20:43:30 +00:00
vdigital
f16f109b6b Format Sylvia theme.css
Minor: on default-layout.css category list on search page is enlarged.

git-svn-id: http://piwigo.org/svn/branches/2.0@2794 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-23 20:11:47 +00:00
vdigital
5c3c778c84 Refer to SVN:2789 - include Admin Advices in
[34]( compiled_template_cache_language )  and [35] ( template_compile_check )


Translation is needed for German, Spanish, Italian...

git-svn-id: http://piwigo.org/svn/branches/2.0@2793 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-23 20:10:03 +00:00
grum
de54bb8586 "remove AMM plugin
asked in topic #p98003"

git-svn-id: http://piwigo.org/svn/branches/2.0@2792 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 21:35:23 +00:00
grum
fbf7b9b6ce "remove grum_plugins_classes-2 and AMM plugin
asked in topic #p98003"

git-svn-id: http://piwigo.org/svn/branches/2.0@2791 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 21:08:44 +00:00
rvelices
1c1a18ccba - some german language changes
- added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local)
- load_language doesnt check first for en_uk.utf-8 directory ...

git-svn-id: http://piwigo.org/svn/branches/2.0@2789 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 01:34:45 +00:00
patdenice
8d9d904c67 Merge from trunk 2787:
- Move upgrade.tpl to admin template.
- Deactivate all active plugins during upgrade.php.
- Update Editarea for LocalFiles Editor to version 0.7.2.3 (bonEcho compatibility)

git-svn-id: http://piwigo.org/svn/branches/2.0@2788 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-21 23:48:48 +00:00
plegall
39eb742c25 bug 897 fixed: controls added in pwg.images.add to have clear error messages
if permission is denied or any error occur during file write.


git-svn-id: http://piwigo.org/svn/branches/2.0@2785 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-20 21:04:17 +00:00
riopwg
2a162361dd Updates & Corrections
git-svn-id: http://piwigo.org/svn/branches/2.0@2784 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-20 10:29:43 +00:00
riopwg
7f194e0e02 Lang file from iso8859 to utf8
git-svn-id: http://piwigo.org/svn/branches/2.0@2782 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-20 00:29:16 +00:00
vdigital
2f20671535 0 comment is removed (Start with 1)
Accurate samples/my-picture.tpl...


git-svn-id: http://piwigo.org/svn/branches/2.0@2779 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 21:00:18 +00:00
vdigital
4e6e78d04c CSS 2.1 cannot be reached (14 errors left).
IE rule set is created (including IE hack).

git-svn-id: http://piwigo.org/svn/branches/2.0@2778 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 20:55:23 +00:00
vdigital
aa1a71488f Jump to category icon is removed on user forbidden categories (previously check_restrictions was leading administrators to the access denied page).
git-svn-id: http://piwigo.org/svn/branches/2.0@2776 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 15:37:43 +00:00
vdigital
a48c2e5281 No metadata synchronization icon on a remote picture (Synchro failure)
git-svn-id: http://piwigo.org/svn/branches/2.0@2775 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 15:31:27 +00:00
vdigital
a007e95096 Delfault template and Piwigo domain ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2774 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 15:29:08 +00:00
rvelices
9652b322cb - php optims (small): remove/replace preg_xxx with faster simple string functions ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2772 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 01:07:13 +00:00
rvelices
7a28366cba - event tracer improvement: option to show all registered event handlers for every page ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2771 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 00:50:19 +00:00
rvelices
79d51b19c1 - added an image sort order by privacy level (admins only)
- fix an IE6 display issue with quick search on index page

git-svn-id: http://piwigo.org/svn/branches/2.0@2769 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 00:43:34 +00:00
vdigital
6c962fc1bb Last icons received from Stripy
git-svn-id: http://piwigo.org/svn/branches/2.0@2766 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-17 19:35:48 +00:00
rvelices
93313d760c - mysql potential injection paranoia + code compaction in common.inc.php
git-svn-id: http://piwigo.org/svn/branches/2.0@2765 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-17 01:06:00 +00:00
vdigital
376bd21335 Some Input text have been enlarged in Admin (class="large")
Bullet points removed on comments in picture page.

git-svn-id: http://piwigo.org/svn/branches/2.0@2760 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 19:19:42 +00:00
rvelices
6607c3882a - picture nav buttons use the get_extent modifier
- comments title on picture page is singular/plural language sensitive
- improved P@t commit (no double home display on picture nav bar) so that it works with my site


git-svn-id: http://piwigo.org/svn/branches/2.0@2758 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:50:37 +00:00
rvelices
f7f8c1688e - security paranoia: protect session/remember me cookies from XSS attacks (works only if php>=5.2 and with IE/FF maybe others)
git-svn-id: http://piwigo.org/svn/branches/2.0@2756 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:35:30 +00:00
rvelices
7807d6586a - fix vulnerability http://www.milw0rm.com/exploits/6755
git-svn-id: http://piwigo.org/svn/branches/2.0@2755 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:09:53 +00:00
plegall
57a366a7a5 new: upgrade script from 1.7.0. Instead of previous upgrade scripts, I call
directly the "unit" upgrades from 61 to current. Previous upgrades not in
the database are inserted but not applied (and have an explicit description
saying so).


git-svn-id: http://piwigo.org/svn/branches/2.0@2754 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 22:51:04 +00:00
patdenice
3e49cf5f56 Merge from trunk 2752:
- change mysql_escape_string function (deprecated) by mysql_real_escape_string.
- Correction on install.tpl (link color).

git-svn-id: http://piwigo.org/svn/branches/2.0@2753 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 20:58:36 +00:00
laurent.duretz
478291598f Issue 894 : Missing slash at the end of URL
git-svn-id: http://piwigo.org/svn/branches/2.0@2750 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 18:45:29 +00:00
patdenice
5ce101c193 Merge from trunk 2747:
- Install process now looks like goto/roma.
- Move install.tpl to goto template.
- add charset utf8 to fatal error function.
- Check php version on install and upgrade, and die if < 5. 


git-svn-id: http://piwigo.org/svn/branches/2.0@2748 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 17:55:18 +00:00
vdigital
fd1badf24b Neuronal correction... Buttons colors and comment list bullets.
git-svn-id: http://piwigo.org/svn/branches/2.0@2745 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 17:08:13 +00:00
rub
a81c0f4079 Resolved issue 0000893: 404 errors on template-common/lib/ui/i18n/ui.datepicker-en.js
New implementation.

Merge trunk 2720:2721 into branch 2.0

git-svn-id: http://piwigo.org/svn/branches/2.0@2744 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 04:57:44 +00:00
rvelices
be9bbd219d - fix broken plain text mails (end of header.tpl must have one empty line to separate from mime headers)
- fix position of flat button (recent commit changed html structure)
- increase font size from 80% to 90% for thumb legends (somehow the shown text is a lot smaller than 1.7)

git-svn-id: http://piwigo.org/svn/branches/2.0@2740 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 00:28:20 +00:00
vdigital
e7aeb42f0e ========= removed
git-svn-id: http://piwigo.org/svn/branches/2.0@2737 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-14 18:42:53 +00:00
vdigital
6c4ae93418 Stripy buttons have been reviewed.
git-svn-id: http://piwigo.org/svn/branches/2.0@2736 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-14 18:30:48 +00:00
vdigital
4d8e05b869 Remove of Swift Theme Creator from the branch (kept in trunk currently).
All functions were not available.

git-svn-id: http://piwigo.org/svn/branches/2.0@2732 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-13 19:55:44 +00:00
patdenice
8aef36a07d Merge from trunk 2726:
Dutch language pack for LocalFiles Editor.

git-svn-id: http://piwigo.org/svn/branches/2.0@2727 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-12 19:13:56 +00:00
plegall
720d6134bd version management: the Piwigo version changes to 2.0 instead of Butterfly
which was its codename on trunk.


git-svn-id: http://piwigo.org/svn/branches/2.0@2724 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-12 18:46:06 +00:00
rub
320d2a88ea jQuery autosize:
Prepare public section in order to use autosize on version after butterfly

Merge trunk 2720:2721 into branch 2.0


git-svn-id: http://piwigo.org/svn/branches/2.0@2723 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 20:38:33 +00:00
plegall
933b820e07 feature 892 added: pwg.images.setInfo added so that once we have discovered
the photo was already in the database (thanks to pwg.images.exist), we can
only set the photo metadata.


git-svn-id: http://piwigo.org/svn/branches/2.0@2722 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 20:37:54 +00:00
vdigital
6e9b50b27b Previous change in defect.
git-svn-id: http://piwigo.org/svn/branches/2.0@2720 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 20:27:45 +00:00
rub
b8f1c37530 jQuery Datepicker:
Readd resize for list of categories
Use include for double select list

Merge trunk 2717:2718 into branch 2.0

git-svn-id: http://piwigo.org/svn/branches/2.0@2719 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 20:23:30 +00:00
patdenice
9772b96f9a Merge from trunk 2716:
- Remove known_template function.
- Replace it by a modifier function: get_extent.

git-svn-id: http://piwigo.org/svn/branches/2.0@2717 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 17:23:10 +00:00
ddtddt
c17dac678d following commint plugin of p@t
Add dutch language.
Thank you to Eric


git-svn-id: http://piwigo.org/svn/branches/2.0@2714 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 13:23:54 +00:00
patdenice
f72c8de387 Merge from trunk 2712:
- Add known_template function (maybe we can change function name).
- Template extensions are working with menubar blocks templates.

git-svn-id: http://piwigo.org/svn/branches/2.0@2713 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 12:57:31 +00:00
patdenice
f2b0b09a0a Merge from 2710:
- Move filter button back to menubar_categories.tpl.
- Add dutch plugins language.

git-svn-id: http://piwigo.org/svn/branches/2.0@2711 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 10:21:33 +00:00
ddtddt
df412b0a01 git-svn-id: http://piwigo.org/svn/branches/2.0@2709 68402e56-0260-453c-a942-63ccdbb3a9ee 2008-10-11 05:54:05 +00:00
vdigital
34f020326d Comments page review. (Merge 2706)
git-svn-id: http://piwigo.org/svn/branches/2.0@2707 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-10 22:16:52 +00:00
rub
650a40bf78 jQuery Datepicker:
Move code source to template-common in order to use datepicker on version after butterfly

Merge trunk 2703:2704 into branch 2.0


git-svn-id: http://piwigo.org/svn/branches/2.0@2705 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-10 21:52:00 +00:00
plegall
c752304164 branch 2.0 creation from trunk r2702
git-svn-id: http://piwigo.org/svn/branches/2.0@2703 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-10 21:36:48 +00:00
958 changed files with 35966 additions and 19855 deletions

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -177,8 +177,7 @@ $http_headers[] = 'Content-Type: '.$ctype;
if (!isset($_GET['view']))
{
$http_headers[] = 'Content-Disposition: attachment; filename="'
.basename($file).'";';
$http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";';
$http_headers[] = 'Content-Transfer-Encoding: binary';
}
else

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -95,6 +95,7 @@ $template->assign(
'U_PERMALINKS'=> $link_start.'permalinks',
'U_RETURN'=> make_index_url(),
'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php',
'U_LOGOUT'=> PHPWG_ROOT_PATH.'index.php?act=logout',
'U_PLUGINS'=> $link_start.'plugins_list',
)
);

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -92,7 +92,8 @@ $start_url = get_root_url().'admin.php?page=advanced_feature&amp;action=';
$template->assign(
array
(
'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature'
'U_HELP' => get_root_url().'popuphelp.php?page=advanced_feature',
'U_ACTIVE_MENU' => 5
));
// advanced_features

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -33,6 +33,11 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
if (!empty($_POST) or isset($_GET['delete']))
{
check_pwg_token();
}
// +-----------------------------------------------------------------------+
// | functions |
// +-----------------------------------------------------------------------+
@ -64,6 +69,8 @@ function save_categories_order($categories)
// | initialization |
// +-----------------------------------------------------------------------+
check_input_parameter('parent_id', $_GET, false, PATTERN_ID);
$categories = array();
$base_url = get_root_url().'admin.php?page=cat_list';
@ -132,6 +139,29 @@ SELECT id, name
l10n('Categories ordered alphanumerically')
);
}
// sort categories alpha-numerically reverse
else if (isset($_POST['submitOrderAlphaNumReverse']))
{
$query = '
SELECT id, name
FROM '.CATEGORIES_TABLE.'
WHERE id_uppercat '.
(!isset($_GET['parent_id']) ? 'IS NULL' : '= '.$_GET['parent_id']).'
;';
$result = pwg_query($query);
while ($row = mysql_fetch_assoc($result))
{
$categories[ $row['id'] ] = strtolower($row['name']);
}
arsort($categories, SORT_REGULAR);
save_categories_order(array_keys($categories));
array_push(
$page['infos'],
l10n('Categories ordered alphanumerically reverse')
);
}
// +-----------------------------------------------------------------------+
// | Navigation path |
@ -161,6 +191,7 @@ if (isset($_GET['parent_id']))
$template->assign(array(
'CATEGORIES_NAV'=>$navigation,
'F_ACTION'=>$form_action,
'PWG_TOKEN' => get_pwg_token(),
));
// +-----------------------------------------------------------------------+
@ -236,6 +267,7 @@ foreach ($categories as $category)
if (empty($category['dir']))
{
$tpl_cat['U_DELETE'] = $self_url.'&amp;delete='.$category['id'];
$tpl_cat['U_DELETE'].= '&amp;pwg_token='.get_pwg_token();
}
if ( array_key_exists($category['id'], $categories_with_images) )

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -235,6 +235,7 @@ if (!empty($category['id_uppercat']))
$template->assign(
array(
'CATEGORIES_NAV' => $navigation,
'CAT_ID' => $category['id'],
'CAT_NAME' => @htmlspecialchars($category['name']),
'CAT_COMMENT' => @htmlspecialchars($category['comment']),
@ -470,7 +471,7 @@ SELECT id, file, path, tn_ext
'image_file' => $element['file'],
'category' => $category
))
.'"><img src="'.get_thumbnail_url($element).'"/></a>';
.'" class="thumblnk"><img src="'.get_thumbnail_url($element).'"/></a>';
}
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -139,7 +139,7 @@ SELECT c.id, c.image_id, c.date, c.author, c.content, i.path, i.tn_ext
INNER JOIN '.IMAGES_TABLE.' AS i
ON i.id = c.image_id
WHERE validated = \'false\'
ORDER BY c.date DESC
ORDER BY c.date DESC
;';
$result = pwg_query($query);
while ($row = mysql_fetch_assoc($result))
@ -160,7 +160,7 @@ while ($row = mysql_fetch_assoc($result))
'ID' => $row['id'],
'TN_SRC' => $thumb,
'AUTHOR' => trigger_event('render_comment_author', $row['author']),
'DATE' => format_date($row['date'],'mysql_datetime',true),
'DATE' => format_date($row['date'], true),
'CONTENT' => trigger_event('render_comment_content',$row['content'])
)
);

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -39,6 +39,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
check_input_parameter('selection', $_POST, true, PATTERN_ID);
// +-----------------------------------------------------------------------+
// | caddie management |
// +-----------------------------------------------------------------------+
@ -133,6 +135,7 @@ SELECT element_id
else if ('not_linked' == $_GET['cat'])
{
$page['title'] = l10n('Elements_not_linked');
$template->assign(array('U_ACTIVE_MENU' => 5 ));
// we are searching elements not linked to any virtual category
$query = '
@ -163,6 +166,7 @@ SELECT DISTINCT(image_id)
else if ('duplicates' == $_GET['cat'])
{
$page['title'] = l10n('Duplicates');
$template->assign(array('U_ACTIVE_MENU' => 5 ));
// we are searching related elements twice or more to physical categories
// 1 - Retrieve Files

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -43,6 +43,12 @@ check_status(ACCESS_ADMINISTRATOR);
// | deletion form submission |
// +-----------------------------------------------------------------------+
// the $_POST['selection'] was already checked in element_set.php
check_input_parameter('add_tags', $_POST, true, PATTERN_ID);
check_input_parameter('del_tags', $_POST, true, PATTERN_ID);
check_input_parameter('associate', $_POST, false, PATTERN_ID);
check_input_parameter('dissociate', $_POST, false, PATTERN_ID);
if (isset($_POST['delete']))
{
if (isset($_POST['confirm_deletion']) and 1 == $_POST['confirm_deletion'])
@ -85,21 +91,9 @@ SELECT
if (count($deletables) > 0)
{
// what will be the categories to update? (to avoid orphan on
// representative_picture_id)
$query = '
SELECT
category_id
FROM '.IMAGE_CATEGORY_TABLE.'
WHERE image_id IN ('.implode(',', $deletables).')
;';
$categories_to_update = array_from_query($query, 'category_id');
$physical_deletion = true;
delete_elements($deletables, $physical_deletion);
update_category($categories_to_update);
array_push(
$page['infos'],
sprintf(

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -60,7 +60,9 @@ $relevant_parameters = array(
'posted-monthly-calendar',
'search',
'flat',
'list',); /* <=> Random */
'list', /* <=> Random */
'tags',
);
$query = '
SELECT permalink
FROM '.CATEGORIES_TABLE.'
@ -73,30 +75,43 @@ $relevant_parameters = array_merge($relevant_parameters, $permalinks);
/* Link all supported templates to their respective handle */
$eligible_templates = array(
'----------' => 'N/A',
'about.tpl' => 'about',
'identification.tpl' => 'identification',
'mainpage_categories.tpl' => 'index_category_thumbnails',
'thumbnails.tpl' => 'index_thumbnails',
'redirect.tpl' => 'redirect',
// 'menubar.tpl' => 'menubar', // TODO by blocks
'header.tpl' => 'header',
'footer.tpl' => 'tail',
'index.tpl' => 'index',
'nbm.tpl' => 'nbm',
'notification.tpl' => 'notification',
'picture_content.tpl' => 'default_content',
'picture.tpl' => 'picture',
'popuphelp.tpl' => 'popuphelp',
'profile.tpl' => 'profile',
'profile_content.tpl' => 'profile_content',
'register.tpl' => 'register',
'search.tpl' => 'search',
'search_rules.tpl' => 'search_rules',
'slideshow.tpl' => 'slideshow',
'tags.tpl' => 'tags',
'upload.tpl' => 'upload',);
$flip_templates = array_flip($eligible_templates);
'----------' => 'N/A',
'about.tpl' => 'about',
'footer.tpl' => 'tail',
'header.tpl' => 'header',
'identification.tpl' => 'identification',
'index.tpl' => 'index',
'mainpage_categories.tpl' => 'index_category_thumbnails',
'menubar.tpl' => 'menubar',
'menubar_categories.tpl' => 'mbCategories',
'menubar_identification.tpl' => 'mbIdentification',
'menubar_links.tpl' => 'mbLinks',
'menubar_menu.tpl' => 'mbMenu',
'menubar_specials.tpl' => 'mbSpecials',
'menubar_tags.tpl' => 'mbTags',
'nbm.tpl' => 'nbm',
'notification.tpl' => 'notification',
'picture.tpl' => 'picture',
'picture_content.tpl' => 'default_content',
'picture_nav_buttons.tpl' => 'picture_nav_buttons',
'popuphelp.tpl' => 'popuphelp',
'profile.tpl' => 'profile',
'profile_content.tpl' => 'profile_content',
'redirect.tpl' => 'redirect',
'register.tpl' => 'register',
'search.tpl' => 'search',
'search_rules.tpl' => 'search_rules',
'slideshow.tpl' => 'slideshow',
'tags.tpl' => 'tags',
'thumbnails.tpl' => 'index_thumbnails',
'upload.tpl' => 'upload',);
$flip_templates = array_flip($eligible_templates);
$available_templates = array_merge(
array('N/A' => '----------'),
get_dirs(PHPWG_ROOT_PATH.'template'));
// +-----------------------------------------------------------------------+
// | selected templates |
// +-----------------------------------------------------------------------+
@ -112,9 +127,11 @@ if (isset($_POST['submit']) and !is_adviser())
$handle = $eligible_templates[$original];
$url_keyword = $_POST['url'][$i];
if ($url_keyword == '----------') $url_keyword = 'N/A';
$bound_tpl = $_POST['bound'][$i];
if ($bound_tpl == '----------') $bound_tpl = 'N/A';
if ($handle != 'N/A')
{
$replacements[$newtpl] = array($handle, $url_keyword);
$replacements[$newtpl] = array($handle, $url_keyword, $bound_tpl);
}
$i++;
}
@ -144,7 +161,7 @@ foreach ($tpl_extension as $file => $conditions)
}
foreach ($new_extensions as $file)
{
$tpl_extension[$file] = array('N/A', 'N/A');
$tpl_extension[$file] = array('N/A', 'N/A', 'N/A');
}
$template->set_filenames(array('extend_for_templates'
@ -161,14 +178,17 @@ foreach ($tpl_extension as $file => $conditions)
{
$handle = $conditions[0];
$url_keyword = $conditions[1];
$bound_tpl = $conditions[2];
{
$template->append('extents',
array(
'replacer' => $file,
'url_parameter' => $relevant_parameters,
'original_tpl' => array_keys($eligible_templates),
'selected_tpl' => $flip_templates[$handle],
'selected_url' => $url_keyword,)
'replacer' => $file,
'url_parameter' => $relevant_parameters,
'original_tpl' => array_keys($eligible_templates),
'bound_tpl' => $available_templates,
'selected_tpl' => $flip_templates[$handle],
'selected_url' => $url_keyword,
'selected_bound' => $bound_tpl,)
);
}
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -33,6 +33,11 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
if (!empty($_POST) or isset($_GET['delete']) or isset($_GET['toggle_is_default']))
{
check_pwg_token();
}
// +-----------------------------------------------------------------------+
// | delete a group |
// +-----------------------------------------------------------------------+
@ -107,7 +112,7 @@ SELECT COUNT(*)
INSERT INTO '.GROUPS_TABLE.'
(name)
VALUES
(\''.mysql_escape_string($_POST['groupname']).'\')
(\''.mysql_real_escape_string($_POST['groupname']).'\')
;';
pwg_query($query);
@ -155,6 +160,7 @@ $template->assign(
array(
'F_ADD_ACTION' => get_root_url().'admin.php?page=group_list',
'U_HELP' => get_root_url().'popuphelp.php?page=group_list',
'PWG_TOKEN' => get_pwg_token(),
)
);
@ -191,9 +197,9 @@ SELECT COUNT(*)
'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('is_default_group').']' : ''),
'MEMBERS' => l10n_dec('%d member', '%d members', $counter),
'U_MEMBERS' => $members_url.$row['id'],
'U_DELETE' => $del_url.$row['id'],
'U_DELETE' => $del_url.$row['id'].'&amp;pwg_token='.get_pwg_token(),
'U_PERM' => $perm_url.$row['id'],
'U_ISDEFAULT' => $toggle_is_default_url.$row['id']
'U_ISDEFAULT' => $toggle_is_default_url.$row['id'].'&amp;pwg_token='.get_pwg_token(),
)
);
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -110,7 +110,7 @@ if (isset($_POST['submit']))
$search['fields']['filename'] = str_replace(
'*',
'%',
mysql_escape_string($_POST['filename'])
mysql_real_escape_string($_POST['filename'])
);
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -23,7 +23,6 @@
include(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php');
// The function delete_site deletes a site and call the function
// delete_categories for each primary category of the site
function delete_site( $id )
@ -114,11 +113,16 @@ DELETE FROM '.CATEGORIES_TABLE.'
;';
pwg_query($query);
$query='
$query='
DELETE FROM '.OLD_PERMALINKS_TABLE.'
WHERE cat_id IN ('.implode(',',$ids).')';
pwg_query($query);
$query='
DELETE FROM '.USER_CACHE_CATEGORIES_TABLE.'
WHERE cat_id IN ('.implode(',',$ids).')';
pwg_query($query);
trigger_action('delete_categories', $ids);
}
@ -138,7 +142,7 @@ function delete_elements($ids, $physical_deletion=false)
if ($physical_deletion)
{
include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
// we can currently delete physically only photo with no
// storage_category_id (added via pLoader)
//
@ -166,7 +170,7 @@ SELECT
foreach (array($file_path, $thumbnail_path, $high_path) as $path)
{
if (isset($path) and !unlink($path))
if (isset($path) and is_file($path) and !unlink($path))
{
die('"'.$path.'" cannot be removed');
}
@ -230,6 +234,20 @@ DELETE FROM '.IMAGES_TABLE.'
;';
pwg_query($query);
// are the photo used as category representant?
$query = '
SELECT
id
FROM '.CATEGORIES_TABLE.'
WHERE representative_picture_id IN (
'.wordwrap(implode(', ', $ids), 80, "\n").')
;';
$category_ids = array_from_query($query, 'id');
if (count($category_ids) > 0)
{
update_category($category_ids);
}
trigger_action('delete_elements', $ids);
}
@ -1226,7 +1244,7 @@ SELECT uppercats
{
// technically, you can't move a category with uppercats 12,125,13,14
// into a new parent category with uppercats 12,125,13,14,24
if (preg_match('/^'.$category['uppercats'].'/', $new_parent_uppercats))
if (preg_match('/^'.$category['uppercats'].',/', $new_parent_uppercats))
{
array_push(
$page['errors'],
@ -1593,7 +1611,7 @@ DELETE
/**
* Do maintenance on all PWG tables
*
* @return nono
* @return none
*/
function do_maintenance_all_tables()
{
@ -1642,7 +1660,7 @@ function do_maintenance_all_tables()
{
array_push(
$page['infos'],
l10n('Optimization completed')
l10n('Optimizations completed')
);
}
else
@ -1736,34 +1754,39 @@ SELECT image_id
*/
function pwg_URL()
{
global $lang_info;
$urls = array(
'WIKI' => 'http://'.PHPWG_DOMAIN.'/doc/',
'HOME' => 'http://'.PHPWG_DOMAIN.'/',
'DEMO' => 'http://demo.'.PHPWG_DOMAIN.'/',
'FORUM' => 'http://forum.'.PHPWG_DOMAIN.'/',
'BUGS' => 'http://bugs.'.PHPWG_DOMAIN.'/',
'HOME' => 'http://'.PHPWG_DOMAIN,
'WIKI' => 'http://'.PHPWG_DOMAIN.'/doc',
'DEMO' => 'http://'.PHPWG_DOMAIN.'/demo',
'FORUM' => 'http://'.PHPWG_DOMAIN.'/forum',
'BUGS' => 'http://'.PHPWG_DOMAIN.'/bugs',
'EXTENSIONS' => 'http://'.PHPWG_DOMAIN.'/ext',
);
if ( isset($lang_info['code']) and
in_array($lang_info['code'], array('fr','en')) )
{ /* current wiki languages are French or English */
$urls['WIKI'] .= 'doku.php?id='.$lang_info['code'].':'.$lang_info['code'];
$urls['HOME'] .= '?lang='.$lang_info['code'];
}
return $urls;
}
/**
* Invalidates cahed data (permissions and category counts) for all users.
*/
function invalidate_user_cache()
function invalidate_user_cache($full = true)
{
$query = '
if ($full)
{
$query = '
TRUNCATE TABLE '.USER_CACHE_CATEGORIES_TABLE.';';
pwg_query($query);
$query = '
TRUNCATE TABLE '.USER_CACHE_TABLE.';';
pwg_query($query);
}
else
{
$query = '
UPDATE '.USER_CACHE_TABLE.'
SET need_update = \'true\'';
pwg_query($query);
trigger_action('invalidate_user_cache');
SET need_update = \'true\';';
pwg_query($query);
}
trigger_action('invalidate_user_cache', $full);
}
/**
@ -1847,7 +1870,7 @@ function get_extents($start='')
{
$extents = array_merge($extents, get_extents($path));
}
elseif ( !is_link($path) and file_exists($path)
elseif ( !is_link($path) and file_exists($path)
and get_extension($path) == 'tpl' )
{
$extents[] = substr($path, 21);
@ -1899,4 +1922,228 @@ SELECT id
);
}
}
/**
* Is the category accessible to the (Admin) user ?
*
* Note : if the user is not authorized to see this category, category jump
* will be replaced by admin cat_modify page
*
* @param int category id to verify
* @return bool
*/
function cat_admin_access($category_id)
{
global $user;
// $filter['visible_categories'] and $filter['visible_images']
// are not used because it's not necessary (filter <> restriction)
if (in_array($category_id, explode(',', $user['forbidden_categories'])))
{
return false;
}
return true;
}
/**
* Retrieve data from external URL
*
* @param string $src: URL
* @param global $dest: can be a file ressource or string
* @return bool
*/
function fetchRemote($src, &$dest, $user_agent='Piwigo', $step=0)
{
// Try to retrieve data from local file?
if (!url_is_remote($src))
{
$content = @file_get_contents($src);
if ($content !== false)
{
is_resource($dest) ? @fwrite($dest, $content) : $dest = $content;
return true;
}
else
{
return false;
}
}
// After 3 redirections, return false
if ($step > 3) return false;
// Initialize $dest
is_resource($dest) or $dest = '';
// Try curl to read remote file
if (function_exists('curl_init'))
{
$ch = @curl_init();
@curl_setopt($ch, CURLOPT_URL, $src);
@curl_setopt($ch, CURLOPT_HEADER, 1);
@curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = @curl_exec($ch);
$header_length = @curl_getinfo($ch, CURLINFO_HEADER_SIZE);
$status = @curl_getinfo($ch, CURLINFO_HTTP_CODE);
@curl_close($ch);
if ($content !== false and $status >= 200 and $status < 400)
{
if (preg_match('/Location:\s+?(.+)/', substr($content, 0, $header_length), $m))
{
return fetchRemote($m[1], $dest, $user_agent, $step+1);
}
$content = substr($content, $header_length);
is_resource($dest) ? @fwrite($dest, $content) : $dest = $content;
return true;
}
}
// Try file_get_contents to read remote file
if (ini_get('allow_url_fopen'))
{
$content = @file_get_contents($src);
if ($content !== false)
{
is_resource($dest) ? @fwrite($dest, $content) : $dest = $content;
return true;
}
}
// Try fsockopen to read remote file
$src = parse_url($src);
$host = $src['host'];
$path = isset($src['path']) ? $src['path'] : '/';
$path .= isset($src['query']) ? '?'.$src['query'] : '';
if (($s = @fsockopen($host,80,$errno,$errstr,5)) === false)
{
return false;
}
fwrite($s,
"GET ".$path." HTTP/1.0\r\n"
."Host: ".$host."\r\n"
."User-Agent: ".$user_agent."\r\n"
."Accept: */*\r\n"
."\r\n"
);
$i = 0;
$in_content = false;
while (!feof($s))
{
$line = fgets($s);
if (rtrim($line,"\r\n") == '' && !$in_content)
{
$in_content = true;
$i++;
continue;
}
if ($i == 0)
{
if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/',rtrim($line,"\r\n"), $m))
{
fclose($s);
return false;
}
$status = (integer) $m[2];
if ($status < 200 || $status >= 400)
{
fclose($s);
return false;
}
}
if (!$in_content)
{
if (preg_match('/Location:\s+?(.+)$/',rtrim($line,"\r\n"),$m))
{
fclose($s);
return fetchRemote(trim($m[1]),$dest,$user_agent,$step+1);
}
$i++;
continue;
}
is_resource($dest) ? @fwrite($dest, $line) : $dest .= $line;
$i++;
}
fclose($s);
return true;
}
/**
* returns the groupname corresponding to the given group identifier if
* exists
*
* @param int group_id
* @return mixed
*/
function get_groupname($group_id)
{
$query = '
SELECT name
FROM '.GROUPS_TABLE.'
WHERE id = '.intval($group_id).'
;';
$result = pwg_query($query);
if (mysql_num_rows($result) > 0)
{
list($groupname) = mysql_fetch_row($result);
}
else
{
return false;
}
return $groupname;
}
/**
* returns the username corresponding to the given user identifier if exists
*
* @param int user_id
* @return mixed
*/
function get_username($user_id)
{
global $conf;
$query = '
SELECT '.$conf['user_fields']['username'].'
FROM '.USERS_TABLE.'
WHERE '.$conf['user_fields']['id'].' = '.intval($user_id).'
;';
$result = pwg_query($query);
if (mysql_num_rows($result) > 0)
{
list($username) = mysql_fetch_row($result);
}
else
{
return false;
}
return $username;
}
function get_newsletter_subscribe_base_url($language) {
$subscribe_domain = 'piwigo.org';
$domain_of = array(
'fr_FR' => 'fr.piwigo.org',
'it_IT' => 'it.piwigo.org',
'de_DE' => 'de.piwigo.org',
'es_ES' => 'es.piwigo.org',
'zh_CN' => 'cn.piwigo.org',
'pl_PL' => 'pl.piwigo.org',
);
if (isset($domain_of[$language])) {
$subscribe_domain = $domain_of[$language];
}
return 'http://'.$subscribe_domain.'/announcement/subscribe/';
}
?>

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -141,11 +141,22 @@ SELECT id
if ($conf['use_exif'])
{
$exif = get_sync_exif_data($file);
if (count($exif) == 0 and isset($data['high_filesize']))
{
$exif = get_sync_exif_data($high_file);
}
$data = array_merge($data, $exif);
}
if ($conf['use_iptc'])
{
$iptc = get_sync_iptc_data($file);
if (count($iptc) == 0 and isset($data['high_filesize']))
{
$iptc = get_sync_iptc_data($high_file);
}
$data = array_merge($data, $iptc);
if (count($iptc) > 0)
{
foreach (array_keys($iptc) as $key)

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -415,7 +415,15 @@ function do_subscribe_unsubscribe_notification_by_mail($is_admin_request, $is_su
$section_action_by = ($is_subscribe ? 'subscribe_by_' : 'unsubscribe_by_');
$section_action_by .= ($is_admin_request ? 'admin' : 'himself');
$env_nbm['mail_template']->assign( $section_action_by, true );
$env_nbm['mail_template']->assign
(
array
(
$section_action_by => true,
'GOTO_GALLERY_TITLE' => $conf['gallery_title'],
'GOTO_GALLERY_URL' => $conf['gallery_url'],
)
);
if (pwg_mail
(

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -33,7 +33,9 @@ function selected_admin_menu()
case 'tags':
return 3;
case 'user_list':
case 'user_perm':
case 'group_list':
case 'group_perm':
case 'notification_by_mail':
return 4;
case 'stats':

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -23,17 +23,11 @@
function check_upgrade()
{
// Is Piwigo already installed ?
if (!defined('PHPWG_IN_UPGRADE') or !PHPWG_IN_UPGRADE)
if (defined('PHPWG_IN_UPGRADE'))
{
$message = 'Piwigo is not in upgrade mode. In include/mysql.inc.php,
insert line
<pre style="background-color:lightgray">
define(\'PHPWG_IN_UPGRADE\', true);
</pre>
if you want to upgrade';
die($message);
return PHPWG_IN_UPGRADE;
}
return false;
}
// concerning upgrade, we use the default tables
@ -94,4 +88,149 @@ function create_empty_local_files()
}
}
?>
// Deactivate all non-standard plugins
function deactivate_non_standard_plugins()
{
global $page;
$standard_plugins = array(
'add_index',
'admin_advices',
'admin_multi_view',
'c13y_upgrade',
'event_tracer',
'language_switch',
'LocalFilesEditor'
);
$query = '
SELECT id
FROM '.PREFIX_TABLE.'plugins
WHERE state = "active"
AND id NOT IN ("' . implode('","', $standard_plugins) . '")
;';
$result = pwg_query($query);
$plugins = array();
while ($row = mysql_fetch_assoc($result))
{
array_push($plugins, $row['id']);
}
if (!empty($plugins))
{
$query = '
UPDATE '.PREFIX_TABLE.'plugins
SET state="inactive"
WHERE id IN ("' . implode('","', $plugins) . '")
;';
pwg_query($query);
array_push($page['infos'],
l10n('deactivated plugins').'<p><i>'.implode(', ', $plugins).'</i></p>');
}
}
// Check access rights
function check_upgrade_access_rights($current_release, $username, $password)
{
global $conf, $page;
if(!@get_magic_quotes_gpc())
{
$username = mysql_real_escape_string($username);
}
if (version_compare($current_release, '2.0', '<'))
{
$username = utf8_decode($username);
$password = utf8_decode($password);
}
if (version_compare($current_release, '1.5', '<'))
{
$query = '
SELECT password, status
FROM '.USERS_TABLE.'
WHERE username = "'.$username.'"
;';
}
else
{
$query = '
SELECT u.password, ui.status
FROM '.$conf['users_table'].' AS u
INNER JOIN '.USER_INFOS_TABLE.' AS ui
ON u.'.$conf['user_fields']['id'].'=ui.user_id
WHERE '.$conf['user_fields']['username'].'="'.$username.'"
;';
}
$row = mysql_fetch_assoc(pwg_query($query));
if (!isset($conf['pass_convert']))
{
$conf['pass_convert'] = create_function('$s', 'return md5($s);');
}
if ($row['password'] != $conf['pass_convert']($password))
{
array_push($page['errors'], l10n('invalid_pwd'));
}
elseif ($row['status'] != 'admin' and $row['status'] != 'webmaster')
{
array_push($page['errors'], l10n('You do not have access rights to run upgrade'));
}
else
{
define('PHPWG_IN_UPGRADE', true);
}
}
/**
* which upgrades are available ?
*
* @return array
*/
function get_available_upgrade_ids()
{
$upgrades_path = PHPWG_ROOT_PATH.'install/db';
$available_upgrade_ids = array();
if ($contents = opendir($upgrades_path))
{
while (($node = readdir($contents)) !== false)
{
if (is_file($upgrades_path.'/'.$node)
and preg_match('/^(.*?)-database\.php$/', $node, $match))
{
array_push($available_upgrade_ids, $match[1]);
}
}
}
natcasesort($available_upgrade_ids);
return $available_upgrade_ids;
}
/**
* returns true if there are available upgrade files
*/
function check_upgrade_feed()
{
// retrieve already applied upgrades
$query = '
SELECT id
FROM '.UPGRADE_TABLE.'
;';
$applied = array_from_query($query, 'id');
// retrieve existing upgrades
$existing = get_available_upgrade_ids();
// which upgrades need to be applied?
return (count(array_diff($existing, $applied)) > 0);
}
?>

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -109,7 +109,9 @@ INSERT INTO ' . PLUGINS_TABLE . ' (id,version) VALUES ("'
if (empty($errors))
{
$query = '
UPDATE ' . PLUGINS_TABLE . ' SET state="active" WHERE id="' . $plugin_id . '"';
UPDATE ' . PLUGINS_TABLE . '
SET state="active", version="'.$this->fs_plugins[$plugin_id]['version'].'"
WHERE id="' . $plugin_id . '"';
pwg_query($query);
}
break;
@ -211,7 +213,11 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
{
$plugin['uri'] = trim($val[1]);
}
if ( preg_match("|Description: (.*)|", $plg_data, $val) )
if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
{
$plugin['description'] = trim($desc);
}
elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
{
$plugin['description'] = trim($val[1]);
}
@ -264,12 +270,13 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
*/
function get_server_plugins($new=false)
{
global $user;
// Retrieve PEM versions
$version = PHPWG_VERSION;
$versions_to_check = array();
$url = PEM_URL . '/api/get_version_list.php?category_id=12&format=php';
if ($source = @file_get_contents($url)
and $pem_versions = @unserialize($source))
if (fetchRemote($url, $result) and $pem_versions = @unserialize($result))
{
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
{
@ -302,15 +309,17 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
// Retrieve PEM plugins infos
$url = PEM_URL . '/api/get_revision_list.php?category_id=12&format=php&last_revision_only=true';
$url .= '&version=' . implode(',', $versions_to_check);
$url .= '&lang=' . substr($user['language'], 0, 2);
$url .= '&get_nb_downloads=true';
if (!empty($plugins_to_check))
{
$url .= $new ? '&extension_exclude=' : '&extension_include=';
$url .= implode(',', $plugins_to_check);
}
if ($source = @file_get_contents($url))
if (fetchRemote($url, $result))
{
$pem_plugins = @unserialize($source);
$pem_plugins = @unserialize($result);
if (!is_array($pem_plugins))
{
return false;
@ -321,6 +330,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
}
return true;
}
return false;
}
/**
@ -342,6 +352,9 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
case 'author':
uasort($this->server_plugins, array($this, 'extension_author_compare'));
break;
case 'downloads':
usort($this->server_plugins, array($this, 'extension_downloads_compare'));
break;
}
}
@ -357,8 +370,10 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
{
$url = PEM_URL . '/download.php?rid=' . $revision;
$url .= '&origin=piwigo_' . $action;
if (@copy($url, $archive))
if ($handle = @fopen($archive, 'wb') and fetchRemote($url, $handle))
{
fclose($handle);
include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
$zip = new PclZip($archive);
if ($list = $zip->listContent())
@ -397,6 +412,27 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
break;
}
}
if (file_exists($extract_path.'/obsolete.list')
and $old_files = file($extract_path.'/obsolete.list', FILE_IGNORE_NEW_LINES)
and !empty($old_files))
{
array_push($old_files, 'obsolete.list');
foreach($old_files as $old_file)
{
$path = $extract_path.'/'.$old_file;
if (is_file($path))
{
@unlink($path);
}
elseif (is_dir($path))
{
if (!$this->deltree($path))
{
$this->send_to_trash($path);
}
}
}
}
}
else $status = 'extract_error';
}
@ -503,6 +539,12 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
else return $r;
}
function extension_downloads_compare($a, $b)
{
if ($a['extension_nb_downloads'] < $b['extension_nb_downloads']) return 1;
else return -1;
}
function sort_plugins_by_state()
{
uasort($this->fs_plugins, 'name_compare');

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -42,17 +42,14 @@ check_status(ACCESS_ADMINISTRATOR);
// Check for upgrade : code inspired from punbb
if (isset($_GET['action']) and 'check_upgrade' == $_GET['action'])
{
if (!ini_get('allow_url_fopen'))
if (!fetchRemote(PHPWG_URL.'/download/latest_version', $result))
{
array_push(
$page['errors'],
l10n('Unable to check for upgrade since allow_url_fopen is disabled.')
);
array_push($page['errors'], l10n('Unable to check for upgrade.'));
}
else
{
$versions = array('current' => PHPWG_VERSION);
$lines = @file(PHPWG_URL.'/latest_version');
$lines = @explode("\r\n", $result);
// if the current version is a BSF (development branch) build, we check
// the first line, for stable versions, we check the second line
@ -118,6 +115,15 @@ else if (isset($_GET['action']) and 'phpinfo' == $_GET['action'])
$template->set_filenames(array('intro' => 'intro.tpl'));
if ($conf['show_newsletter_subscription']) {
$template->assign(
array(
'EMAIL' => $user['email'],
'SUBSCRIBE_BASE_URL' => get_newsletter_subscribe_base_url($user['language']),
)
);
}
$php_current_timestamp = date("Y-m-d H:i:s");
list($mysql_version, $db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT VERSION(), CURRENT_TIMESTAMP;'));
@ -185,6 +191,7 @@ list($nb_comments) = mysql_fetch_row(pwg_query($query));
$template->assign(
array(
'PHPWG_URL' => PHPWG_URL,
'PWG_VERSION' => PHPWG_VERSION,
'OS' => PHP_OS,
'PHP_VERSION' => phpversion(),
@ -224,7 +231,7 @@ SELECT MIN(date_available)
'DB_DATE' =>
sprintf(
l10n('first element added on %s'),
format_date($first_date, 'mysql_datetime')
format_date($first_date)
)
)
);

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -46,7 +46,7 @@ switch ($action)
update_uppercats();
update_category('all');
update_global_rank();
invalidate_user_cache();
invalidate_user_cache(true);
break;
}
case 'images' :
@ -100,6 +100,15 @@ DELETE
$c13y->maintenance();
break;
}
case 'search' :
{
$query = '
DELETE
FROM '.SEARCH_TABLE.'
;';
pwg_query($query);
break;
}
case 'compiled-templates' :
{
$template->delete_compiled_templates();
@ -129,6 +138,7 @@ $template->assign(
'U_MAINT_FEEDS' => $start_url.'feeds',
'U_MAINT_DATABASE' => $start_url.'database',
'U_MAINT_C13Y' => $start_url.'c13y',
'U_MAINT_SEARCH' => $start_url.'search',
'U_MAINT_COMPILED_TEMPLATES' => $start_url.'compiled-templates',
'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=maintenance',
)

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -99,6 +99,7 @@ if ( isset($_POST['submit']) and !is_adviser() )
make_consecutive( $mb_conf );
// BEGIN OPTIM - DONT ASK ABOUT THIS ALGO - but optimizes the size of the array we save in DB
/* !!! OPTIM DISABLED UNTIL IT HAS BEEN FIXED !!!
$reg_keys = array_keys($reg_blocks);
$cnf_keys = array_keys($mb_conf);
$best_slice = array( 'len'=>0 );
@ -121,7 +122,9 @@ if ( isset($_POST['submit']) and !is_adviser() )
}
}
}
*/
$mb_conf_db = $mb_conf;
/*
if ($best_slice['len'])
{
for ($j=0; $j<$best_slice['start_cnf']; $j++ )
@ -137,7 +140,7 @@ if ( isset($_POST['submit']) and !is_adviser() )
}
//var_export( $best_slice ); var_export($mb_conf); var_export($mb_conf_db);
// END OPTIM
*/
$query = '
UPDATE '.CONFIG_TABLE.'
SET value="'.addslashes(serialize($mb_conf_db)).'"

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -100,7 +100,7 @@ DELETE FROM '.OLD_PERMALINKS_TABLE.'
LIMIT 1';
pwg_query($query);
if (mysql_affected_rows()==0)
array_push($page['errors'], 'Cannot delete the old permalink !');
array_push($page['errors'], l10n('Cannot delete the old permalink !'));
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -33,6 +33,9 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
check_input_parameter('image_id', $_GET, false, PATTERN_ID);
check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
// +-----------------------------------------------------------------------+
// | synchronize metadata |
// +-----------------------------------------------------------------------+
@ -241,8 +244,7 @@ $template->assign(
'FILESIZE' => @$row['filesize'].' KB',
'REGISTRATION_DATE' =>
format_date($row['date_available'], 'mysql_datetime', false),
'REGISTRATION_DATE' => format_date($row['date_available']),
'AUTHOR' => isset($_POST['author']) ? $_POST['author'] : @$row['author'],
@ -413,7 +415,7 @@ $query.= '
display_select_cat_wrapper($query, array(), 'associated_options');
$result = pwg_query($query);
$associateds = array();
$associateds = array(-1);
if (isset($storage_category_id))
{
array_push($associateds, $storage_category_id);

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -32,16 +32,25 @@ $template->set_filenames(array('plugins' => 'plugins_list.tpl'));
$order = isset($_GET['order']) ? $_GET['order'] : 'name';
$base_url = get_root_url().'admin.php?page='.$page['page'].'&amp;order='.$order;
$action_url = $base_url.'&amp;plugin='.'%s'.'&amp;pwg_token='.get_pwg_token();
$plugins = new plugins();
//--------------------------------------------------perform requested actions
if (isset($_GET['action']) and isset($_GET['plugin']) and !is_adviser())
{
$page['errors'] =
$plugins->perform_action($_GET['action'], $_GET['plugin']);
check_pwg_token();
$page['errors'] = $plugins->perform_action($_GET['action'], $_GET['plugin']);
if (empty($page['errors'])) redirect($base_url);
if (empty($page['errors']))
{
if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate')
{
$template->delete_compiled_templates();
}
redirect($base_url);
}
}
//--------------------------------------------------------------------Tabsheet
@ -90,7 +99,7 @@ foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
array('NAME' => $display_name,
'VERSION' => $fs_plugin['version'],
'DESCRIPTION' => $desc,
'U_ACTION' => $base_url.'&amp;plugin='.$plugin_id);
'U_ACTION' => sprintf($action_url, $plugin_id));
if (isset($plugins->db_plugins_by_id[$plugin_id]))
{
@ -109,14 +118,12 @@ $missing_plugin_ids = array_diff(
foreach($missing_plugin_ids as $plugin_id)
{
$action_url = $base_url.'&amp;plugin='.$plugin_id;
$template->append( 'plugins',
array(
'NAME' => $plugin_id,
'VERSION' => $plugins->db_plugins_by_id[$plugin_id]['version'],
'DESCRIPTION' => "ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW !",
'U_ACTION' => $base_url.'&amp;plugin='.$plugin_id,
'U_ACTION' => sprintf($action_url, $plugin_id),
'STATE' => 'missing'
)
);

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -38,6 +38,8 @@ $plugins = new plugins();
//------------------------------------------------------automatic installation
if (isset($_GET['revision']) and isset($_GET['extension']) and !is_adviser())
{
check_pwg_token();
$install_status = $plugins->extract_plugin_files('install', $_GET['revision'], $_GET['extension']);
redirect($base_url.'&installstatus='.$install_status);
@ -83,45 +85,44 @@ $template->assign('order_options',
$link.'date' => l10n('Post date'),
$link.'revision' => l10n('plugins_revisions'),
$link.'name' => l10n('Name'),
$link.'author' => l10n('Author')));
$link.'author' => l10n('Author'),
$link.'downloads' => l10n('Number of downloads')));
$template->assign('order_selected', $link.$order);
// +-----------------------------------------------------------------------+
// | start template output |
// +-----------------------------------------------------------------------+
if (!ini_get('allow_url_fopen'))
{
array_push($page['errors'], l10n('Unable to retrieve server informations since allow_url_fopen is disabled.'));
}
elseif ($plugins->get_server_plugins(true))
if ($plugins->get_server_plugins(true))
{
$plugins->sort_server_plugins($order);
foreach($plugins->server_plugins as $plugin)
{
/* Need to remove this lines for final release : piwigo website will be utf8 only */
$plugin['extension_description'] = utf8_encode($plugin['extension_description']);
$plugin['revision_description'] = utf8_encode($plugin['revision_description']);
list($date, ) = explode(' ', $plugin['revision_date']);
$ver_desc = sprintf(l10n('plugins_description'),
$plugin['revision_name'],
$date,
$plugin['revision_description']);
$ext_desc = '<i>'.l10n('Downloads').':</i> '.$plugin['extension_nb_downloads']."\r\n"
."\r\n"
.$plugin['extension_description'];
$rev_desc = '<i>'.l10n('Version').':</i> '.$plugin['revision_name']."\r\n"
.'<i>'.l10n('Released on').':</i> '.$date."\r\n"
.'<i>'.l10n('Downloads').':</i> '.$plugin['revision_nb_downloads']."\r\n"
."\r\n"
.$plugin['revision_description'];
$url_auto_install = htmlentities($base_url)
. '&amp;revision=' . $plugin['revision_id']
. '&amp;extension=' . $plugin['extension_id'];
. '&amp;extension=' . $plugin['extension_id']
. '&amp;pwg_token='.get_pwg_token()
;
$template->append('plugins', array(
'EXT_NAME' => $plugin['extension_name'],
'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['extension_id'],
'EXT_DESC' => $plugin['extension_description'],
'EXT_DESC' => $ext_desc,
'VERSION' => $plugin['revision_name'],
'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin['revision_id'],
'DATE' => $date,
'VER_DESC' => $ver_desc,
'VER_DESC' => $rev_desc,
'AUTHOR' => $plugin['author_name'],
'URL_INSTALL' => $url_auto_install,
'URL_DOWNLOAD' => $plugin['download_url'] . '&amp;origin=piwigo_download'));

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -37,6 +37,8 @@ $plugins = new plugins();
//-----------------------------------------------------------automatic upgrade
if (isset($_GET['plugin']) and isset($_GET['revision']) and !is_adviser())
{
check_pwg_token();
$plugin_id = $_GET['plugin'];
$revision = $_GET['revision'];
@ -48,6 +50,7 @@ if (isset($_GET['plugin']) and isset($_GET['revision']) and !is_adviser())
redirect($base_url
. '&revision=' . $revision
. '&plugin=' . $plugin_id
. '&pwg_token='.get_pwg_token()
. '&reactivate=true');
}
@ -86,7 +89,7 @@ if (isset($_GET['upgradestatus']) and isset($_GET['plugin']))
default:
array_push($page['errors'],
sprintf(l10n('plugins_extract_error'), $_GET['installstatus']),
sprintf(l10n('plugins_extract_error'), $_GET['upgradestatus']),
l10n('plugins_check_chmod'));
}
}
@ -97,11 +100,7 @@ set_plugins_tabsheet($page['page']);
// +-----------------------------------------------------------------------+
// | start template output |
// +-----------------------------------------------------------------------+
if (!ini_get('allow_url_fopen'))
{
array_push($page['errors'], l10n('Unable to connect to PEM server since allow_url_fopen is disabled.'));
}
elseif ($plugins->get_server_plugins())
if ($plugins->get_server_plugins())
{
foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
{
@ -110,41 +109,44 @@ elseif ($plugins->get_server_plugins())
{
$plugin_info = $plugins->server_plugins[$fs_plugin['extension']];
/* Need to remove this lines for final release : piwigo website will be utf8 only */
$plugin_info['extension_description'] = utf8_encode($plugin_info['extension_description']);
$plugin_info['revision_description'] = utf8_encode($plugin_info['revision_description']);
list($date, ) = explode(' ', $plugin_info['revision_date']);
$ver_desc = sprintf(l10n('plugins_description'),
$plugin_info['revision_name'],
$date,
$plugin_info['revision_description']);
$ext_desc = '<i>'.l10n('Downloads').':</i> '.$plugin_info['extension_nb_downloads']."\r\n"
."\r\n"
.$plugin_info['extension_description'];
$rev_desc = '<i>'.l10n('Version').':</i> '.$plugin_info['revision_name']."\r\n"
.'<i>'.l10n('Released on').':</i> '.$date."\r\n"
.'<i>'.l10n('Downloads').':</i> '.$plugin_info['revision_nb_downloads']."\r\n"
."\r\n"
.$plugin_info['revision_description'];
if ($plugins->plugin_version_compare($fs_plugin['version'], $plugin_info['revision_name']))
{
// Plugin is up to date
$template->append('plugins_uptodate', array(
'URL' => $fs_plugin['uri'],
'URL' => PEM_URL.'/extension_view.php?eid='.$plugin_info['extension_id'],
'NAME' => $fs_plugin['name'],
'EXT_DESC' => $plugin_info['extension_description'],
'VERSION' => $fs_plugin['version']));
'EXT_DESC' => $ext_desc,
'VERSION' => $fs_plugin['version'],
'VER_DESC' => $rev_desc));
}
else
{
// Plugin need upgrade
$url_auto_update = $base_url
. '&amp;revision=' . $plugin_info['revision_id']
. '&amp;plugin=' . $plugin_id;
. '&amp;plugin=' . $plugin_id
. '&amp;pwg_token='.get_pwg_token()
;
$template->append('plugins_not_uptodate', array(
'EXT_NAME' => $fs_plugin['name'],
'EXT_URL' => $fs_plugin['uri'],
'EXT_DESC' => $plugin_info['extension_description'],
'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin_info['extension_id'],
'EXT_DESC' => $ext_desc,
'VERSION' => $fs_plugin['version'],
'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin_info['revision_id'],
'NEW_VERSION' => $plugin_info['revision_name'],
'NEW_VER_DESC' => $ver_desc,
'NEW_VER_DESC' => $rev_desc,
'URL_UPDATE' => $url_auto_update,
'URL_DOWNLOAD' => $plugin_info['download_url'] . '&amp;origin=piwigo_download'));
}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -33,6 +33,11 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
if (!empty($_POST) or isset($_GET['action']))
{
check_pwg_token();
}
/**
* requests the given $url (a remote create_listing_file.php) and fills a
* list of lines corresponding to request output
@ -44,8 +49,9 @@ function remote_output($url)
{
global $template, $page;
if($lines = @file($url))
if (fetchRemote($url, $result))
{
$lines = explode("\r\n", $result);
// cleaning lines from HTML tags
foreach ($lines as $line)
{
@ -112,8 +118,9 @@ SELECT COUNT(id) AS count
$clf_url = $url.'create_listing_file.php';
$clf_url.= '?action=test';
$clf_url.= '&version='.PHPWG_VERSION;
if ( ($lines = @file($clf_url)) !== false)
if (fetchRemote($clf_url, $result))
{
$lines = explode("\r\n", $result);
$first_line = strip_tags($lines[0]);
if (!preg_match('/^PWG-INFO-2:/', $first_line))
{
@ -196,11 +203,13 @@ SELECT galleries_url
}
}
$template->assign( array(
'U_HELP' => get_root_url().'popuphelp.php?page=site_manager',
'F_ACTION' => get_root_url().'admin.php'
.get_query_string_diff( array('action','site') )
) );
$template->assign(
array(
'U_HELP' => get_root_url().'popuphelp.php?page=site_manager',
'F_ACTION' => get_root_url().'admin.php'.get_query_string_diff(array('action','site','pwg_token')),
'PWG_TOKEN' => get_pwg_token(),
)
);
// +-----------------------------------------------------------------------+
// | remote sites list |
@ -240,6 +249,7 @@ while ($row = mysql_fetch_array($result))
$base_url = PHPWG_ROOT_PATH.'admin.php';
$base_url.= '?page=site_manager';
$base_url.= '&amp;site='.$row['id'];
$base_url.= '&amp;pwg_token='.get_pwg_token();
$base_url.= '&amp;action=';
$update_url = PHPWG_ROOT_PATH.'admin.php';

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -48,7 +48,7 @@ function RemoteSiteReader($url, $listing_url)
if (!isset($listing_url))
{
$this->listing_url = $this->site_url.'/listing.xml';
$this->listing_url = $this->site_url.'listing.xml';
}
else
{
@ -65,11 +65,10 @@ function open()
{
global $errors;
if (@fopen($this->listing_url, 'r'))
if ($xml_content = getXmlCode($this->listing_url))
{
$this->site_dirs = array();
$this->site_files = array();
$xml_content = getXmlCode($this->listing_url);
$info_xml_element = getChild($xml_content, 'informations');
if (getAttribute($info_xml_element , 'phpwg_version') != PHPWG_VERSION)
{

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
@ -29,6 +29,11 @@ if( !defined("PHPWG_ROOT_PATH") )
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
check_status(ACCESS_ADMINISTRATOR);
if (!empty($_POST))
{
check_pwg_token();
}
// +-----------------------------------------------------------------------+
// | edit tags |
// +-----------------------------------------------------------------------+
@ -189,7 +194,8 @@ $template->set_filenames(array('tags' => 'tags.tpl'));
$template->assign(
array(
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags'
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
'PWG_TOKEN' => get_pwg_token(),
)
);

View file

@ -7,7 +7,7 @@ jQuery().ready(function(){ldelim}
jQuery('#menubar').accordion({ldelim}
header: "dt.rdion",
event: "click",
active: {$themeconf.selected_admin_menu}
active: {$U_ACTIVE_MENU|default:$themeconf.selected_admin_menu}
});
});
</script>
@ -20,6 +20,7 @@ jQuery().ready(function(){ldelim}
<li><a href="{$U_RETURN}">{'home'|@translate}</a></li>
<li><a href="{$U_FAQ}">{'instructions'|@translate}</a></li>
<li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li>
<li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li>
{if isset($pwgmenu)}
<li class="external"><a class="external" href="{$pwgmenu.WIKI}" onclick="window.open(this.href, '');
return false;">{'WIKI / DOC'|@translate}</a></li>
@ -46,7 +47,7 @@ jQuery().ready(function(){ldelim}
<dd>
<ul>
<li><a href="{$U_SITE_MANAGER}">{'Site manager'|@translate}</a></li>
<li><a href="{$U_CAT_UPDATE}">{'update'|@translate}</a><br />&nbsp;</li>
<li><a href="{$U_CAT_UPDATE}">{'update'|@translate}</a></li>
<li><a href="{$U_CATEGORIES}">{'manage'|@translate}</a></li>
<li><a href="{$U_MOVE}">{'Move'|@translate}</a></li>
<li><a href="{$U_CAT_OPTIONS}">{'cat_options_title'|@translate}</a></li>

View file

@ -27,20 +27,24 @@
<h3>{$CATEGORIES_NAV}</h3>
<form id="addVirtual" action="{$F_ACTION}" method="post">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
<p>
{'cat_add'|@translate} : <input type="text" name="virtual_name" />
<input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} />
{if count($categories)>9 }
<a href="#EoP" class="button"><img src="{$themeconf.admin_icon_dir}/page_end.png" class="button" alt="page_end" /></a>
<a href="#EoP" class="button" style="border:0;">
<img src="{$themeconf.admin_icon_dir}/page_end.png" title="{'Page end'|@translate}" class="button" alt="page_end" style="margin-bottom:-0.6em;"/></a>
{/if}
</p>
</form>
{if count($categories) }
<form id="categoryOrdering" action="{$F_ACTION}" method="post">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
<p>
<input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
<input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
<input class="submit" name="submitOrderAlphaNumReverse" type="submit" value="{'Order alphanumerically reverse'|@translate}" {$TAG_INPUT_ENABLED} />
</p>
<ul class="categoryUl">
@ -48,7 +52,9 @@
<li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}" id="cat_{$category.ID}">
<!-- category {$category.ID} -->
<ul class="categoryActions">
{if cat_admin_access($category.ID)}
<li><a href="{$category.U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
{/if}
<li><a href="{$category.U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li>
{if isset($category.U_MANAGE_ELEMENTS) }
<li><a href="{$category.U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
@ -83,6 +89,7 @@
<p>
<input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
<input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
<input class="submit" name="submitOrderAlphaNumReverse" type="submit" value="{'Order alphanumerically reverse'|@translate}" {$TAG_INPUT_ENABLED} />
</p>
</form>

View file

@ -1,6 +1,7 @@
{* $Id$ *}
{include file='include/autosize.inc.tpl'}
{include file='include/resize.inc.tpl'}
<div class="titrePage">
<h2>{'title_edit_cat'|@translate}</h2>
@ -9,7 +10,9 @@
<h3>{$CATEGORIES_NAV}</h3>
<ul class="categoryActions">
{if cat_admin_access($CAT_ID)}
<li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
{/if}
{if isset($U_MANAGE_ELEMENTS) }
<li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
<li><a href="{$U_MANAGE_RANKS}" title="{'manage image ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}" /></a></li>
@ -39,7 +42,7 @@
<tr>
<td><strong>{'Name'|@translate}</strong></td>
<td>
<input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/>
<input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60"/>
</td>
</tr>
<tr>
@ -155,7 +158,7 @@
<table>
<tr>
<td>{'Virtual category name'|@translate}</td>
<td><input type="text" name="virtual_name"></td>
<td><input type="text" class="large" name="virtual_name"></td>
</tr>
<tr>

View file

@ -1,5 +1,7 @@
{* $Id$ *}
{include file='include/resize.inc.tpl'}
<div class="titrePage">
<h2>{'Move categories'|@translate}</h2>
</div>

View file

@ -13,11 +13,11 @@
<a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" /></a>
<p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
<blockquote>{$comment.CONTENT}</blockquote>
</div>
<ul class="actions">
<li><label><input type="radio" name="action-{$comment.ID}" value="reject" />{'Reject'|@translate}</label></li>
<li><label><input type="radio" name="action-{$comment.ID}" value="validate" />{'Validate'|@translate}</label></li>
</ul>
</div>
{/foreach}
<p class="bottomButtons">

View file

@ -3,7 +3,7 @@
/* So that non-links are slightly greyed out */
.content .navigationBar {
color: #b0b0b0;
color: #999;
}
/* Tables & forms */
@ -11,12 +11,12 @@
INPUT.text, INPUT.password, INPUT.button,
INPUT.submit, INPUT.reset, INPUT.file,
SELECT, TEXTAREA {
color:black;
background-color: #d3d3d3; /* lightgrey */
color:#999;
background-color: #666;
}
INPUT:focus, SELECT:focus, TEXTAREA:focus, INPUT.focus, FORM .focus {
background-color: #f5f5f5; /* whitesmoke */
background-color: #444; /* whitesmoke */
}
/* some theme set a border on INPUT which is not pretty for radio/checkbox */
@ -29,12 +29,12 @@ INPUT.radio, INPUT.checkbox {
}
.errors { /* Errors display */
color: red;
background-color: #ffe1e1;
color: #f33;
background-color: transparent;
font-weight: bold;
text-align: left;
margin: 5px;
border: 1px solid red;
border: 1px solid #666;
background-image: url(icon/errors.png);
background-repeat: no-repeat;
background-position: top right;
@ -46,8 +46,8 @@ INPUT.radio, INPUT.checkbox {
*/
.infos {
text-align: left;
color: #002000;
background-color: #98fb98; /* palegreen */
color: #f70;
background-color: transparent;
background-image: url(icon/infos.png);
background-repeat: no-repeat;
background-position: top right;
@ -61,8 +61,8 @@ INPUT.radio, INPUT.checkbox {
.header_msgs {
text-align:center;
font-weight: bold;
color:#696969; /* dimgray */
background-color: #d3d3d3;
color:#333;
background-color: transparent;
margin: 1px;
padding: 1px;
}
@ -71,7 +71,7 @@ INPUT.radio, INPUT.checkbox {
* Header notes box in public/administration
*/
.header_notes {
border: 1px solid #aaaaaa; /* border color and style */
border: 1px solid #666;
text-align: center;
background-image: url(icon/note.png);
background-repeat: no-repeat;

View file

@ -2,12 +2,12 @@
/* History tables */
TABLE.table2 {
border: 1px solid black;
border: 1px solid #111;
margin: 1em auto;
padding: 0;
}
TABLE.table2 TD {
TABLE.table2 TD, TABLE.table2 TH {
padding: 0 5px;
}
@ -38,6 +38,7 @@ TABLE#detailedStats {
}
/* Plugins tables */
TABLE.plugins { min-width: 400px; }
TABLE.plugins A { border: 0; }
TABLE.plugins TR TD { padding: 4px 10px; }
TABLE.plugins TR TD.pluginState { padding: 4px 16px; }
@ -85,7 +86,7 @@ UL.categoryUl {
LI.categoryLi {
width: 100%;
border: 1px solid gray;
border: 1px solid #666;
padding: 0px 5px;
margin-bottom: 5px;
}
@ -150,24 +151,28 @@ FIELDSET#historyConf SPAN.property {
}
FIELDSET#mainConfCheck INPUT,
FIELDSET#historyConf INPUT,
FIELDSET#commentsConf INPUT,
FIELDSET#uploadConf SELECT,
FIELDSET#uploadConf INPUT {
FIELDSET#commentsConf INPUT {
margin-left: 5%;
}
FIELDSET#uploadConf SELECT {
float: right;
margin: 2px 10px 0px;
}
FIELDSET#uploadConf INPUT {
float: right;
margin: 5px 10px 0px;
}
FIELDSET#uploadConf SPAN.property {
width: 65%;
}
FIELDSET#commentsConf SPAN.property {
width: 85%;
}
FIELDSET#uploadConf SPAN.property {
width: 73%;
}
.statBar {
height: 10px;
background-color: #ff7700;
border: 1px solid black;
border: 1px solid #666;
}
.over{
@ -182,10 +187,10 @@ z-index: 50;
.over SPAN{ /*CSS for enlarged image*/
position: absolute;
background-color: #eee;
background-color: #222;
padding: 5px;
left: -1000px;
border: 1px solid #69c;
border: 1px solid #ff3363;
visibility: hidden;
color: black;
text-decoration: none;
@ -227,10 +232,10 @@ H2 {
A {
text-decoration:none;
border-bottom: 1px dotted #005e89;
border-bottom: 0;
}
A:hover {
border-bottom: 1px solid #858460;
border-bottom: 1px solid #FF3363;
}
A.button, A.button:hover {
border: 0;
@ -374,7 +379,7 @@ FORM.filter FIELDSET P
}
FORM.filter INPUT[type="submit"] {
margin-top: 5px;
margin-top: 1.8em;
}
FORM.properties UL, FORM#update UL {

View file

@ -1,21 +1,6 @@
{* $Id$ *}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery(".doubleSelect select.categoryList").resizable({ldelim}
handles: "w,e",
animate: true,
animateDuration: "slow",
animateEasing: "swing",
preventDefault: true,
preserveCursor: true,
autoHide: true,
ghost: true
});
});
</script>
{include file='include/dbselect.inc.tpl'}
<table class="doubleSelect">
<tr>

View file

@ -125,7 +125,7 @@
<label><input type="radio" name="author_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
<label><input type="radio" name="author_action" value="unset" /> {'unset'|@translate}</label>
<label><input type="radio" name="author_action" value="set" id="author_action_set" /> {'set to'|@translate}</label>
<input onchange="document.getElementById('author_action_set').checked = true;" type="text" name="author" value="" />
<input onchange="document.getElementById('author_action_set').checked = true;" type="text" class="large" name="author" value="" />
</td>
</tr>
@ -135,7 +135,7 @@
<label><input type="radio" name="name_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
<label><input type="radio" name="name_action" value="unset" /> {'unset'|@translate}</label>
<label><input type="radio" name="name_action" value="set" id="name_action_set" /> {'set to'|@translate}</label>
<input onchange="document.getElementById('name_action_set').checked = true;" type="text" name="name" value="" />
<input onchange="document.getElementById('name_action_set').checked = true;" type="text" class="large" name="name" value="" />
</td>
</tr>

View file

@ -40,12 +40,12 @@
<tr>
<td><strong>{'Name'|@translate}</strong></td>
<td><input type="text" name="name-{$element.ID}" value="{$element.NAME}" /></td>
<td><input type="text" class="large" name="name-{$element.ID}" value="{$element.NAME}" /></td>
</tr>
<tr>
<td><strong>{'Author'|@translate}</strong></td>
<td><input type="text" name="author-{$element.ID}" value="{$element.AUTHOR}" /></td>
<td><input type="text" class="large" name="author-{$element.ID}" value="{$element.AUTHOR}" /></td>
</tr>
<tr>

View file

@ -9,6 +9,7 @@
<th>{'Replacers'|@translate}</th>
<th>{'Original templates'|@translate}</th>
<th>{'Optional URL keyword'|@translate}</th>
<th>{'Bound template'|@translate}</th>
</tr>
{foreach from=$extents item=tpl name=extent_loop}
<tr class="{if $smarty.foreach.extent_loop.index is odd}row1{else}row2{/if}">
@ -22,6 +23,9 @@
<td>
{html_options name=url[] output=$tpl.url_parameter values=$tpl.url_parameter selected=$tpl.selected_url}
</td>
<td>
{html_options name=bound[] output=$tpl.bound_tpl values=$tpl.bound_tpl selected=$tpl.selected_bound}
</td>
</tr>
{/foreach}
</table>

View file

@ -15,7 +15,7 @@
*}
{'powered_by'|@translate}
<a href="http://piwigo.org" class="Piwigo">
<a href="{$PHPWG_URL}" class="Piwigo">
<span class="Piwigo">Piwigo</span></a>
{$VERSION}
{if isset($CONTACT_MAIL)}

View file

@ -4,6 +4,7 @@
</div>
<form method="post" name="add_user" action="{$F_ADD_ACTION}" class="properties">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
<fieldset>
<legend>{'Add group'|@translate}</legend>

View file

@ -20,13 +20,13 @@
<li><label>{'search_date_from'|@translate}</label></li>
<li>
<select id="start_day" name="start_day">
<option value="0">--</option>
{section name=day start=1 loop=32}
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
{/section}
<option value="0">--</option>
{section name=day start=1 loop=32}
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
{/section}
</select>
<select id="start_month" name="start_month">
{html_options options=$month_list selected=$START_MONTH_SELECTED}
{html_options options=$month_list selected=$START_MONTH_SELECTED}
</select>
<input id="start_year" name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" >
<input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/>
@ -36,13 +36,13 @@
<li><label>{'search_date_to'|@translate}</label></li>
<li>
<select id="end_day" name="end_day">
<option value="0">--</option>
{section name=day start=1 loop=32}
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
{/section}
<option value="0">--</option>
{section name=day start=1 loop=32}
<option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
{/section}
</select>
<select id="end_month" name="end_month">
{html_options options=$month_list selected=$END_MONTH_SELECTED}
{html_options options=$month_list selected=$END_MONTH_SELECTED}
</select>
<input id="end_year" name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" >
<input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/>
@ -52,15 +52,15 @@
<label>
{'Element type'|@translate}
<select name="types[]" multiple="multiple" size="4">
{html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected}
{html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected}
</select>
</label>
<label>
{'User'|@translate}
<select name="user">
<option value="-1">------------</option>
{html_options options=$user_options selected=$user_options_selected}
<option value="-1">------------</option>
{html_options options=$user_options selected=$user_options_selected}
</select>
</label>
@ -73,18 +73,18 @@
{'File name'|@translate}
<input name="filename" value="{$FILENAME}" type="text">
</label>
<label>
{'Thumbnails'|@translate}
<select name="display_thumbnail">
{html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected}
</select>
</label>
<label>
{'Thumbnails'|@translate}
<select name="display_thumbnail">
{html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected}
</select>
</label>
<input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" />
</fieldset>
</form>
{if isset($search_summary)}
<fieldset>
<legend>{'Summary'|@translate}</legend>
@ -102,13 +102,13 @@
</fieldset>
{/if}
{if !empty($NAV_BAR)}
<div class="navigationBar">
{$NAV_BAR}
</div>
{/if}
{if !empty($NAV_BAR)}
<div class="navigationBar">
{$NAV_BAR}
</div>
{/if}
<table class="table2" id="detailedStats">
<tr class="throw">
@ -123,7 +123,7 @@
<th>{'tags'|@translate}</th>
</tr>
{if !empty($search_results) }
{foreach from=$search_results item=detail name=res_loop}
{foreach from=$search_results item=detail name=res_loop}
<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}">
<td class="hour">{$detail.DATE}</td>
<td class="hour">{$detail.TIME}</td>
@ -135,13 +135,13 @@
<td>{$detail.CATEGORY}</td>
<td>{$detail.TAGS}</td>
</tr>
{/foreach}
{/foreach}
{/if}
</table>
{if !empty($NAV_BAR)}
<div class="navigationBar">
{$NAV_BAR}
</div>
{/if}
{if !empty($NAV_BAR)}
<div class="navigationBar">
{$NAV_BAR}
</div>
{/if}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 883 B

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 915 B

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 B

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,196 +1,25 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.packed.js"}
{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
{known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"}
{assign var="datepicker_language" value="template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:$datepicker_language}
{/if}
{html_head}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/lib/ui/ui.datepicker.css">
{/html_head}
{literal}
<script type="text/javascript">
// return formated date with control values
// day, month, year: selectors of visible date controls
function pwg_get_fmt_datepicker(day, month, year)
{
return $(year).val() + "-" + $(month).val() + "-" + $(day).val();
}
// initialize controls
// day, month, year: selectors of visible date controls
// linked_date: selector of hidden linked dates control
// checked_on_change: selector of control to change "checked" attribut
// min_linked_date: selector of hidden linked date control witch give min value
// max_linked_date: selector of hidden linked date control witch give max value
function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date)
{
// Action on change date value
function pwg_on_date_change()
{
pwg_check_date();
if (checked_on_change != null)
{
$(checked_on_change).attr("checked", "true");
}
}
// In order to desable element of list
function pwg_disabled_selection()
{
array_date = $(linked_date).val().split('-');
y = array_date[0];
m = array_date[1];
// Init list
$(day + " option").attr("disabled", "");
$(month + " option").attr("disabled", "");
var daysInMonth = 32 - new Date(y, m - 1, 32).getDate();
$(day + " option:gt(" + (daysInMonth) +")").attr("disabled", "disabled");
if ((min_linked_date != null) && ($(min_linked_date).datepicker("getDate") != null))
{
date_cmp = min_linked_date;
op_cmp = "lt";
}
else if ((max_linked_date != null) && ($(max_linked_date).datepicker("getDate") != null))
{
date_cmp = max_linked_date;
op_cmp = "gt";
}
else
{
date_cmp = null;
op_cmp = null;
}
if (op_cmp != null)
{
array_date = $(date_cmp).val().split('-');
y_cmp = array_date[0];
m_cmp = array_date[1];
d_cmp = array_date[2];
if (y == y_cmp)
{
$(month + " option:" + op_cmp + "(" + (m_cmp) +")").attr("disabled", "disabled");
if (op_cmp == "lt")
{
$(month + " option:eq(" + (0) +")").attr("disabled", "");
}
if (m == m_cmp)
{
$(day + " option:" + op_cmp + "(" + (d_cmp) +")").attr("disabled", "disabled");
if (op_cmp == "lt")
{
$(day + " option:eq(" + (0) +")").attr("disabled", "");
}
}
}
}
}
// Prevent selection of invalid dates through the select controls
function pwg_check_date()
{
last_date = $(linked_date).val();
$(linked_date).val(pwg_get_fmt_datepicker(day, month, year));
if ((min_linked_date != null) && ($(min_linked_date).datepicker("getDate") != null))
{
cancel = ($(min_linked_date).datepicker("getDate") > $(linked_date).datepicker("getDate"));
}
else if ((max_linked_date != null) && ($(max_linked_date).datepicker("getDate") != null))
{
cancel = ($(max_linked_date).datepicker("getDate") < $(linked_date).datepicker("getDate"));
}
else
{
cancel = false;
}
if (cancel)
{
array_date = last_date.split('-');
$(year).val(array_date[0]);
$(month).val(array_date[1]);
$(day).val(array_date[2]);
// check again
pwg_check_date();
}
}
jQuery().ready(function(){
// Init hidden value
$(linked_date).val(pwg_get_fmt_datepicker(day, month, year));
// Init Datepicker
jQuery(linked_date).datepicker({
dateFormat:'yy-m-d',
beforeShow:
// Prepare to show a date picker linked to three select controls
function readLinked(input) {
//$(linked_date).val(pwg_get_fmt_datepicker(day, month, year));
if (min_linked_date != null)
{
return {minDate: $(min_linked_date).datepicker("getDate")};
}
else if (max_linked_date != null)
{
return {maxDate: $(max_linked_date).datepicker("getDate")};
}
else
{
return {};
}
},
onSelect:
// Update three select controls to match a date picker selection
function updateLinked(date) {
if (date.length == 0)
{
$(year).val("");
$(month).val("0");
$(day).val("0");
}
else
{
array_date = date.split('-');
$(year).val(array_date[0]);
$(month).val(array_date[1]);
$(day).val(array_date[2]);
}
pwg_on_date_change();
},
showOn: "both",
{/literal}
buttonImage: "{$ROOT_URL}admin/template/{$themeconf.template}/icon/datepicker.png",
{literal}
buttonImageOnly: true,
buttonText: ""
});
// Check showed controls
jQuery(day + ", " + month + ", " + year).change(
function ()
{
pwg_on_date_change();
});
// Check showed controls
jQuery(day + ", " + month + ", " + year).focus(
function ()
{
pwg_disabled_selection();
});
// In order to init linked input
pwg_check_date();
});
{ldelim}
return pwg_common_initialization_datepicker(
"{$ROOT_URL}admin/template/{$themeconf.template}/icon/datepicker.png",
day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date);
}
</script>
{/literal}

View file

@ -0,0 +1,23 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
{* Resize possible *}
{literal}
<script type="text/javascript">
jQuery().ready(function(){
// Resize possible for double select list
jQuery(".doubleSelect select.categoryList").resizable({
handles: "w,e",
animate: true,
animateDuration: "slow",
animateEasing: "swing",
preventDefault: true,
preserveCursor: true,
autoHide: true,
ghost: true
});
});
</script>
{/literal}

View file

@ -0,0 +1,23 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
{* Resize possible *}
{literal}
<script type="text/javascript">
jQuery().ready(function(){
// Resize possible for list
jQuery(".categoryList").resizable({
handles: "all",
animate: true,
animateDuration: "slow",
animateEasing: "swing",
preventDefault: true,
preserveCursor: true,
autoHide: true,
ghost: true
});
});
</script>
{/literal}

View file

@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008 Piwigo Team http://piwigo.org |
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+

View file

@ -0,0 +1,171 @@
{* $Id$ *}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}">
<meta http-equiv="Content-script-type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
{literal}
<style type="text/css">
.content {
width: 800px;
margin: auto;
text-align: center;
}
.table2 {
width: 100%;
margin-bottom: 1em !important;
}
TD {
text-align: left;
padding: 0.1em 0.5em;
height: 2.5em;
}
.sql_content, .infos a {
color: #ff3363;
}
</style>
{/literal}
<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
</head>
<body>
<div id="headbranch"></div> {* Dummy block for double background management *}
<div id="the_page">
<div id="theHeader"></div>
<div id="content" class="content">
<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2>
{if isset($errors)}
<div class="errors">
<ul>
{foreach from=$errors item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($infos)}
<div class="infos">
<ul>
{foreach from=$infos item=info}
<li>{$info}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($install)}
<form method="POST" action="{$F_ACTION}" name="install_form">
<table class="table2">
<tr class="throw">
<th colspan="2">{'Initial_config'|@translate}</th>
</tr>
<tr>
<td style="width: 30%">{'Default_lang'|@translate}</td>
<td>
<select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;">
{html_options options=$language_options selected=$language_selection}
</select>
</td>
</tr>
</table>
<table class="table2">
<tr class="throw">
<th colspan="3">{'step1_title'|@translate}</th>
</tr>
<tr>
<td style="width: 30%;">{'step1_host'|@translate}</td>
<td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}" /></td>
<td>{'step1_host_info'|@translate}</td>
</tr>
<tr>
<td>{'step1_user'|@translate}</td>
<td align=center><input type="text" name="dbuser" value="{$F_DB_USER}" /></td>
<td>{'step1_user_info'|@translate}</td>
</tr>
<tr>
<td>{'step1_pass'|@translate}</td>
<td align=center><input type="password" name="dbpasswd" value="" /></td>
<td>{'step1_pass_info'|@translate}</td>
</tr>
<tr>
<td>{'step1_database'|@translate}</td>
<td align=center><input type="text" name="dbname" value="{$F_DB_NAME}" /></td>
<td>{'step1_database_info'|@translate}</td>
</tr>
<tr>
<td>{'step1_prefix'|@translate}</td>
<td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}" /></td>
<td>{'step1_prefix_info'|@translate}</td>
</tr>
</table>
<table class="table2">
<tr class="throw">
<th colspan="3">{'step2_title'|@translate}</th>
</tr>
<tr>
<td style="width: 30%;">{'install_webmaster'|@translate}</td>
<td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}" /></td>
<td>{'install_webmaster_info'|@translate}</td>
</tr>
<tr>
<td>{'step2_pwd'|@translate}</td>
<td align="center"><input type="password" name="admin_pass1" value="" /></td>
<td>{'step2_pwd_info'|@translate}</td>
</tr>
<tr>
<td>{'step2_pwd_conf'|@translate}</td>
<td align="center"><input type="password" name="admin_pass2" value="" /></td>
<td>{'step2_pwd_conf_info'|@translate}</td>
</tr>
<tr>
<td>{'conf_mail_webmaster'|@translate}</td>
<td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}" /></td>
<td>{'conf_mail_webmaster_info'|@translate}</td>
</tr>
</table>
<table>
<tr>
<td style="text-align: center;">
<input class="submit" type="submit" name="install" value="{'Start_Install'|@translate}" />
</td>
</tr>
</table>
</form>
{else}
<p>
<br />
<input type="button" name="home" value="{'home'|@translate}" onClick="window.open('index.php');"/>
<input type="button" name="admin" value="{'admin'|@translate}" onClick="window.open('admin.php');"/>
</p>
<div class="infos">
<ul>
<li>{'Subscribe to Piwigo Announcements Newsletter'|@translate}</li>
</ul>
</div>
<p>
<br />
<input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');"/>
</p>
{/if}
</div> {* content *}
<div style="text-align: center">{$L_INSTALL_HELP}</div>
</div> {* the_page *}
</body>
</html>

View file

@ -1,12 +1,27 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery('.cluetip').cluetip({ldelim}
width: 300,
splitTitle: '|'
});
});
</script>
<h2>{'title_default'|@translate}</h2>
<dl style="padding-top: 30px;">
<dt>{'Piwigo version'|@translate}</dt>
<dd>
<ul>
<li><a href="http://piwigo.org" onclick="window.open(this.href, '');
<li><a href="{$PHPWG_URL}" onclick="window.open(this.href, '');
return false;">Piwigo</a> {$PWG_VERSION}</li>
<li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
{if isset($SUBSCRIBE_BASE_URL)}
<li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" onclick="window.open(this.href); return false;" class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Subscribe to Piwigo Announcements Newsletter'|@translate|htmlspecialchars|nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li>
{/if}
</ul>
</dd>

View file

@ -14,6 +14,7 @@
<li><a href="{$U_MAINT_HISTORY_SUMMARY}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'purge history summary'|@translate}</a></li>
<li><a href="{$U_MAINT_SESSIONS}" {$TAG_INPUT_ENABLED}>{'purge sessions'|@translate}</a></li>
<li><a href="{$U_MAINT_FEEDS}" {$TAG_INPUT_ENABLED}>{'purge never used notification feeds'|@translate}</a></li>
<li><a href="{$U_MAINT_SEARCH}"onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'Purge search history'|@translate}</a></li>
<li><a href="{$U_MAINT_COMPILED_TEMPLATES}" {$TAG_INPUT_ENABLED}>{'Purge compiled templates'|@translate}</a></li>
</ul>

View file

@ -11,7 +11,7 @@
<td>{'Author'|@translate}</td>
<td>{'Name'|@translate}</td>
<td>{'Position'|@translate}</td>
<td>Hide</td>
<td>{'Hide'|@translate}</td>
</tr>
{foreach from=$blocks item=block name="block_loop"}
<tr class="{if $smarty.foreach.block_loop.index is odd}row1{else}row2{/if}">

View file

@ -28,40 +28,40 @@
<h3>{'Permalinks'|@translate}</h3>
<table class="table2">
<tr class="throw">
<td>Id {$SORT_ID}</td>
<td>{'Category'|@translate} {$SORT_NAME}</td>
<td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
</tr>
<tr class="throw">
<td>Id {$SORT_ID}</td>
<td>{'Category'|@translate} {$SORT_NAME}</td>
<td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
</tr>
{foreach from=$permalinks item=permalink name="permalink_loop"}
<tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}">
<td>{$permalink.id}</td>
<td>{$permalink.name}</td>
<td>{$permalink.permalink}</td>
</tr>
<tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}" style="line-height:1.5em;">
<td style="text-align:center;">{$permalink.id}</td>
<td>{$permalink.name}</td>
<td>{$permalink.permalink}</td>
</tr>
{/foreach}
</table>
<h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3>
<table class="table2">
<tr class="throw">
<td>Id {$SORT_OLD_CAT_ID}</td>
<td>{'Category'|@translate}</td>
<td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
<td>Deleted on {$SORT_OLD_DATE_DELETED}</td>
<td>Last hit {$SORT_OLD_LAST_HIT}</td>
<td>Hit {$SORT_OLD_HIT}</td>
<td></td>
</tr>
<tr class="throw">
<td>Id {$SORT_OLD_CAT_ID}</td>
<td>{'Category'|@translate}</td>
<td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
<td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td>
<td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td>
<td style="width:20px;">{'Hit'|@translate} {$SORT_OLD_HIT}</td>
<td style="width:5px;"></td>
</tr>
{foreach from=$deleted_permalinks item=permalink}
<tr>
<td>{$permalink.cat_id}</td>
<td>{$permalink.name}</td>
<td>{$permalink.permalink}</td>
<td>{$permalink.date_deleted}</td>
<td>{$permalink.last_hit}</td>
<td>{$permalink.hit}</td>
<td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'delete'|@translate}]" class="button"></a></td>
</tr>
<tr style="line-height:1.5em;">
<td style="text-align:center;">{$permalink.cat_id}</td>
<td>{$permalink.name}</td>
<td>{$permalink.permalink}</td>
<td>{$permalink.date_deleted}</td>
<td>{$permalink.last_hit}</td>
<td>{$permalink.hit}</td>
<td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'delete'|@translate}]" class="button"></a></td>
</tr>
{/foreach}
</table>

View file

@ -1,6 +1,7 @@
{* $Id$ *}
{include file='include/autosize.inc.tpl'}
{include file='include/dbselect.inc.tpl'}
{include file='include/datepicker.inc.tpl'}
{literal}
@ -17,7 +18,9 @@
{if isset($U_JUMPTO) }
<li><a href="{$U_JUMPTO}" title="{'jump to image'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to image'|@translate}" /></a></li>
{/if}
{if !url_is_remote($path)}
<li><a href="{$U_SYNC}" title="{'synchronize metadata'|@translate}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.admin_icon_dir}/sync_metadata.png" class="button" alt="{'synchronize'|@translate}" /></a></li>
{/if}
</ul>
<form action="{$F_ACTION}" method="post" id="properties">
@ -83,12 +86,12 @@
<tr>
<td><strong>{'Name'|@translate}</strong></td>
<td><input type="text" name="name" value="{$NAME}" /></td>
<td><input type="text" class="large" name="name" value="{$NAME}" /></td>
</tr>
<tr>
<td><strong>{'Author'|@translate}</strong></td>
<td><input type="text" name="author" value="{$AUTHOR}" /></td>
<td><input type="text" class="large" name="author" value="{$AUTHOR}" /></td>
</tr>
<tr>

View file

@ -1,6 +1,5 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.dimensions" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.dimensions.packed.js"}
{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
<script type="text/javascript">
@ -15,7 +14,7 @@ jQuery().ready(function(){ldelim}
<div class="titrePage">
<span class="sort">
{'Sort order'|@translate} :
<select onchange="document.location = this.options[this.selectedIndex].value;" style="width:150px">
<select onchange="document.location = this.options[this.selectedIndex].value;">
{html_options options=$order_options selected=$order_selected}
</select>
</span>
@ -37,7 +36,7 @@ jQuery().ready(function(){ldelim}
{foreach from=$plugins item=plugin name=plugins_loop}
<tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
<td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
<td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
<td style="text-align:center;"><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
<td>{$plugin.DATE}</td>
<td>{$plugin.AUTHOR}</td>
<td style="text-align:center;"><a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'plugins_confirm_install'|@translate|@escape:javascript}');">{'plugins_auto_install'|@translate}</a>

View file

@ -1,6 +1,5 @@
{* $Id$ *}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.dimensions" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.dimensions.packed.js"}
{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
<script type="text/javascript">
@ -32,7 +31,7 @@ jQuery().ready(function(){ldelim}
<tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
<td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
<td style="text-align:center;">{$plugin.VERSION}</td>
<td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.NEW_VER_DESC|htmlspecialchars|nl2br}">{$plugin.NEW_VERSION}</a></td>
<td style="text-align:center;"><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.NEW_VER_DESC|htmlspecialchars|nl2br}">{$plugin.NEW_VERSION}</a></td>
<td style="text-align:center;"><a href="{$plugin.URL_UPDATE}" onclick="return confirm('{'plugins_confirm_upgrade'|@translate|@escape:javascript}');">{'plugins_auto_update'|@translate}</a>
/ <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a></td>
</tr>
@ -54,7 +53,7 @@ jQuery().ready(function(){ldelim}
{foreach from=$plugins_uptodate item=plugin name=plugins_loop}
<tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
<td><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.NAME}</a></td>
<td style="text-align:center;">{$plugin.VERSION}</td>
<td style="text-align:center;"><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
</tr>
{/foreach}
</table>

View file

@ -0,0 +1,12 @@
<div id="content" class="content">
{$HELP_CONTENT}
</div> <!-- content -->
<ul class="categoryActions">
<li>
<a href="#" onclick="window.close();" title="{'Close this window'|@translate}">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/exit.png" class="button" alt="exit">
</a>
</li>
</ul>

View file

@ -46,7 +46,7 @@
<td></td>
</tr>
{foreach from=$images item=image name=image}
<tr valign="bottom" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
<tr valign="top" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
<td rowspan="{$image.NB_RATES_TOTAL+1}"><a href="{$image.U_URL}"><img src="{$image.U_THUMB}" alt="{$image.FILE}" title="{$image.FILE}"></a></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>

View file

@ -17,6 +17,7 @@
{'remote_site_local_found'|@translate} {$local_listing.URL}
{if isset($local_listing.CREATE)}
<form action="{$F_ACTION}" method="post">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
<p>
{'remote_site_local_create'|@translate}:
<input type="hidden" name="no_check" value="1"/>
@ -64,6 +65,7 @@
{/if}
<form action="{$F_ACTION}" method="post">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
<p>
<label for="galleries_url" >{'site_create'|@translate}</label>
<input type="text" name="galleries_url" id="galleries_url" />

View file

@ -1,5 +1,7 @@
{* $Id$ *}
{include file='include/resize.inc.tpl'}
<div class="titrePage">
<h2>{'title_update'|@translate}: <a href="{$SITE_URL}">{$SITE_URL}</a></h2>
</div>
@ -55,7 +57,7 @@
{/if}
{if isset($introduction)}
<h3>{'update_default_title'|@translate}</h3>
<h4>{'update_default_title'|@translate}</h4>
<form action="" method="post" id="update">
<fieldset id="syncFiles">

View file

@ -4,6 +4,7 @@
</div>
<form action="{$F_ACTION}" method="post">
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
{if isset($EDIT_TAGS_LIST)}
<fieldset>

Some files were not shown because too many files have changed in this diff Show more