Commit graph

1563 commits

Author SHA1 Message Date
mistic100
180e1a185c feature 2976: add three methods for permissions management
git-svn-id: http://piwigo.org/svn/trunk@25245 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-30 20:29:48 +00:00
plegall
df6718f3f8 feature 1668, user manager redesign: ability to add a new user (call to pwg.users.add through AJAX)
Move the "send connection settings" code to function register_user (avoid code duplication).


git-svn-id: http://piwigo.org/svn/trunk@25237 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-30 12:54:46 +00:00
rvelices
e0518947f3 private method becomes public (use in plugin)
git-svn-id: http://piwigo.org/svn/trunk@25231 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-30 06:34:21 +00:00
mistic100
fc5c5d4b7c add two extra param to render_element_description trigger: main_page_element_description and picture_page_element_description
git-svn-id: http://piwigo.org/svn/trunk@25202 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-29 09:31:06 +00:00
mistic100
1996dadfe7 feature 2976: add 'display' parameter for pwg.users.getList
git-svn-id: http://piwigo.org/svn/trunk@25196 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-28 17:53:36 +00:00
mistic100
492a65418a feature 2976: new options for pwg.users.setInfo + user_id can be an array
git-svn-id: http://piwigo.org/svn/trunk@25195 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-28 17:20:34 +00:00
mistic100
4445af1217 feature 2976: can change user status and level
fix saving problem of groups.is_default value
use WS_PARAM_OPTIONAL when possible (TODO: use for old methods)

git-svn-id: http://piwigo.org/svn/trunk@25118 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 16:21:24 +00:00
mistic100
757fe9a821 feature 2976: API methods for users and groups management
TODO : methods to manage albums permissions

git-svn-id: http://piwigo.org/svn/trunk@25117 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 13:38:12 +00:00
mistic100
2d2a2e2813 bug 2988: register_user() must returns new user id
git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 13:01:25 +00:00
mistic100
d6211432ec two new options for API methods : 'admin_only' and 'post_only'
git-svn-id: http://piwigo.org/svn/trunk@25115 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 10:01:35 +00:00
mistic100
e7fafb73a1 bug:2947 fix compatibility with PHP 5.2 and 5.3
git-svn-id: http://piwigo.org/svn/trunk@25114 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 09:07:17 +00:00
mistic100
fcf12b0b28 feature 2978: error func_get_args(): Can't be used as a function parameter on PHP <= 5.2
git-svn-id: http://piwigo.org/svn/trunk@25113 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 08:42:36 +00:00
mistic100
24b977d877 feature:2982 API: add high-level type check
introduces some constants fro bool, int, float, positive and notnull parameters
types are tested in PwgServer::invoke and no in each method
+ some optimizations + update methods descriptions

git-svn-id: http://piwigo.org/svn/trunk@25077 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-22 12:58:58 +00:00
mistic100
f11fcfcb0b fix parse error from r25018
git-svn-id: http://piwigo.org/svn/trunk@25026 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-20 14:29:27 +00:00
mistic100
3e9c75d2bb add "abstract" keyword for API base classes + PwgRestRequestHandler inherits from PwgRequestHandler
git-svn-id: http://piwigo.org/svn/trunk@25025 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-20 09:37:45 +00:00
mistic100
4926fced5e replace some mass_updates/inserts by single_update/insert
git-svn-id: http://piwigo.org/svn/trunk@25019 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 18:17:10 +00:00
mistic100
ae707279a1 remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 17:43:04 +00:00
mistic100
2f08283864 feature 2978: remove useless sprintf in the core
git-svn-id: http://piwigo.org/svn/trunk@25005 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 11:04:11 +00:00
mistic100
6313ae831d feature 2978: l10n() and {translate} with additional arguments
TODO: apply in core

git-svn-id: http://piwigo.org/svn/trunk@24988 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 09:21:01 +00:00
plegall
a397debf02 merge r24967 from branch 2.5 to trunk
bug 2973 fixed: automatically use encoding windows-1252 instead of iso-8859-1
(unless we find utf-8 signs) on IPTC before converting to utf-8



git-svn-id: http://piwigo.org/svn/trunk@24968 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-17 20:15:51 +00:00
rvelices
5abcfccff0 removed unused css rules, password recover form has a fieldset as all other forms, no exit if mail send fails
git-svn-id: http://piwigo.org/svn/trunk@24966 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-17 19:38:06 +00:00
plegall
6380e4d475 feature 2965: move phpmailer files in a specific directory
git-svn-id: http://piwigo.org/svn/trunk@24953 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-17 13:25:12 +00:00
plegall
ed40a38fca feature 2965: move phpmailer files in a specific directory
git-svn-id: http://piwigo.org/svn/trunk@24952 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-17 13:24:36 +00:00
plegall
d1a0a85520 feature 2965: replace custom mail functions by PHPMailer (version 5.2.7).
Based on patch by msakik.

function pwg_send_mail no longer used (all is done in pwg_mail)

new param $conf['smtp_secure']

work still in progress, some obsolete code must be removed


git-svn-id: http://piwigo.org/svn/trunk@24951 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-17 13:05:30 +00:00
mistic100
efbc08e537 2816: {strip} removes too much things, fixed again for smarty 3
git-svn-id: http://piwigo.org/svn/trunk@24877 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-12 11:14:07 +00:00
mistic100
92d692a334 make get_query_string_diff compatible with arrays and use build-in functions
git-svn-id: http://piwigo.org/svn/trunk@24833 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-10 10:53:59 +00:00
mistic100
d05cff9ccc add function conf_delete_param
git-svn-id: http://piwigo.org/svn/trunk@24350 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-09-05 10:41:12 +00:00
mistic100
12707a70f2 bug 2865: correct handle of sockets for mysqli
git-svn-id: http://piwigo.org/svn/trunk@24346 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-09-05 08:06:31 +00:00
mistic100
8dc9978c02 feature:2950 add function request_plugin_update()
git-svn-id: http://piwigo.org/svn/trunk@24160 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-08-14 21:30:28 +00:00
mistic100
e9e8d495ef bug:2947 rewrite format_date() and time_since() with DateTime class + new parameters
git-svn-id: http://piwigo.org/svn/trunk@24099 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-08-01 17:03:57 +00:00
mistic100
0b203a8701 add mandatory option for check_input_parameter
git-svn-id: http://piwigo.org/svn/trunk@24009 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-21 12:05:10 +00:00
plegall
80fc1c2f96 feature 2941: add trigger on get_webmaster_mail_address
git-svn-id: http://piwigo.org/svn/trunk@23887 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-09 16:41:59 +00:00
mistic100
b1316542e4 bug:2939 switch_lang_to() must reload plugins files
git-svn-id: http://piwigo.org/svn/trunk@23823 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-07 12:54:44 +00:00
mistic100
92134bc102 bug:2933 make plain url when picture_url_style='id-file'
git-svn-id: http://piwigo.org/svn/trunk@23822 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-07 12:45:48 +00:00
mistic100
29e2ed6b91 bug 2931: revert r23675 & r23721, make element_set_ranks.php uses ASC keyword (+ migration task)
git-svn-id: http://piwigo.org/svn/trunk@23813 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-06 18:31:14 +00:00
rvelices
4514e1592c bug 2931: photos sort order, "default" is meaningless (fix again when order contains " ASC")
git-svn-id: http://piwigo.org/svn/trunk@23721 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-01 19:01:51 +00:00
rvelices
3c3c3aacc9 replace the language_prefilter with a postfilter (now that smarty has modifiercompiler feature, there is no need for prefilter)
git-svn-id: http://piwigo.org/svn/trunk@23688 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-30 05:34:55 +00:00
rvelices
56b3516bae fix missing prev/next nav items in the calendar view (Smarty get_template_vars by reference not working anymore)
git-svn-id: http://piwigo.org/svn/trunk@23618 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-27 20:45:32 +00:00
rvelices
cbd0a1e886 fix define_derivative (matter of smarty3 variable scope)
git-svn-id: http://piwigo.org/svn/trunk@23588 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-27 04:37:38 +00:00
plegall
f599ea711c merge r23498 from branch 2.5 to trunk
feature 2929: strip metadata on configurable threshold



git-svn-id: http://piwigo.org/svn/trunk@23499 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-24 13:34:03 +00:00
rvelices
d12e519e1a Smart 3 - fix per handle prefilters
git-svn-id: http://piwigo.org/svn/trunk@23495 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-24 04:16:53 +00:00
rvelices
61ca0d0c6c Smarty EOL style LF svn property
git-svn-id: http://piwigo.org/svn/trunk@23485 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-23 19:25:17 +00:00
rvelices
b93085c7fb Smarty3 added 'translate_dec' compilermodifier (generated code is a lot better than $pwg->l10n_dec)
git-svn-id: http://piwigo.org/svn/trunk@23476 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-23 18:39:31 +00:00
rvelices
9da3d7f92e bug 2858: Smarty3 fix php warnings, concat, used modifier on array
git-svn-id: http://piwigo.org/svn/trunk@23425 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-21 05:04:57 +00:00
rvelices
6fc07742f8 smarty 3 - first pass for tests
git-svn-id: http://piwigo.org/svn/trunk@23384 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-20 03:38:47 +00:00
mistic100
6119b6895e Add trigger "load_conf" at the end of load_conf_from_db()
not usable for the first call in common.inc.php (plugins not loaded)

git-svn-id: http://piwigo.org/svn/trunk@23372 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-19 15:21:12 +00:00
flop25
c17bc66aeb bug:2855
new otpion "inherit" for create_virtual_category(), and $conf['inheritance_by_default'] = false;
ToDo: album registred from Ftp

git-svn-id: http://piwigo.org/svn/trunk@23272 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-16 19:52:51 +00:00
mistic100
2b8ea75b1d feature:2785 Improve template method to sort actions buttons
+ add default rank = 50

git-svn-id: http://piwigo.org/svn/trunk@23263 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-16 17:15:24 +00:00
mistic100
0a98109a9e feature:2926 add option to hide API methods to reflection.getMethodList
git-svn-id: http://piwigo.org/svn/trunk@23261 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-16 16:51:59 +00:00
mistic100
6529d1db10 set trunk version to 2.6.0beta1
git-svn-id: http://piwigo.org/svn/trunk@23217 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-14 21:35:42 +00:00