aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Resolved issue 0000697: with generic user a author name is necessary to ↵rub2007-06-051-2/+1
| | | | | | | | | comment picture. + Change way to determinate if user is a guest (use functions like is_admin) git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
* Updates:vdigital2007-03-131-1/+1
| | | | | | | | - Copyrights 2003-2007 - help - Some HTML comform requests git-svn-id: http://piwigo.org/svn/trunk@1903 68402e56-0260-453c-a942-63ccdbb3a9ee
* - change the way conf['guest_access'] is handled so that web services work ↵rvelices2007-02-221-13/+0
| | | | | | correctly (and also nbm.php and feed.php) git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
* - user comments are not saved in the database with htmlspecialchars anymorervelices2007-02-221-0/+1
| | | | | | | - web service: added the possibility to enter a user comment using the service... - new comment functions from picture_comment.inc.php git-svn-id: http://piwigo.org/svn/trunk@1849 68402e56-0260-453c-a942-63ccdbb3a9ee
* - plugins with own independent scripts work now (cookie_path and url root arervelices2007-01-241-9/+3
| | | | | | | | | correct) - prepare a bit some url functions so that later we can fully embed pwg in scripts located outside pwg - remove some unnecessary language strings git-svn-id: http://piwigo.org/svn/trunk@1750 68402e56-0260-453c-a942-63ccdbb3a9ee
* - revert feature 564: log the login of each user; but add the possibility to bervelices2007-01-231-0/+11
| | | | | | | | | | | | done by a plugin - create a "standard" way to define PHP functions that we use but might not be available in the current php version - when a comment is rejected (spam, anti-flood etc), put the content back to the browser in case there is a real user behind it - now a comment can be entered only if the page was retrieved between 2 seconds ago and 1 hour ago git-svn-id: http://piwigo.org/svn/trunk@1744 68402e56-0260-453c-a942-63ccdbb3a9ee
* There are no filter enabled if filter configuration is empty (no icon, no ↵rub2007-01-151-1/+7
| | | | | | | | | | | | | functions, ...) New system for the filter page configuration View mode flat_recent_cat becomes flat_cat (recent period is removed because global filter is sufficient) Recent period of global filter must be defined "after" start parameter (default value is $user['recent_period']). git-svn-id: http://piwigo.org/svn/trunk@1722 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000496: Integrate MOD add_index on PWG with plugin.lang.phprub2007-01-081-0/+1
| | | | | | | | | | | | | | | | | | Add some plugin triggers: o for help o for language o for site manager o for advanced features Allow to launch directly plugin page (without section key) Add add_index plugin, available on site manager and advanced features Configuration page and best help must be coming soon. git-svn-id: http://piwigo.org/svn/trunk@1699 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000529 Re-Fixed.rub2007-01-021-2/+1
| | | | | | | | $_SERVER["SCRIPT_FILENAME"] not treated (only $_SERVER['SCRIPT_FILENAME'] was treated) Merge branch-1_6 1690:1691 into BSF git-svn-id: http://piwigo.org/svn/trunk@1692 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000529 Re-Fixed.rub2007-01-021-3/+4
| | | | | | | | Problem with "Options +MultiViews" .htaccess configuration. Merge branch-1_6 1688:1689 into BSF git-svn-id: http://piwigo.org/svn/trunk@1690 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000529 Fixed.rub2006-12-311-1/+1
| | | | | | | | Problem with $_SERVER['SCRIPT_FILENAME'] on IIS server Merge branch-1_6 1685:1686 into BSF git-svn-id: http://piwigo.org/svn/trunk@1687 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000527: Language localization - local.lang.php can be ↵vdigital2006-12-251-1/+2
| | | | | | added to each language directory. Authorize your own translation to be keep over migrations. git-svn-id: http://piwigo.org/svn/trunk@1679 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000601: Filter all public pages with only recent elementsrub2006-12-211-0/+12
| | | | | | | | | | | | | | | | | | | | | It's a finalized version. Obsolete code of draft are removed. You can filter categories and images with recent date period on your screen selection. In the future, filter could be easy done on other type data (plugin?) You can flat categories and sub-categories with a recent date period of your choice. Next, perhaps, a panel to choice recent date for the 2 features. On draft, there have problem with MySql 5, be careful! Css problem not resolved: - Menu "Categories" is bad centered - Icon on dark too on the top git-svn-id: http://piwigo.org/svn/trunk@1677 68402e56-0260-453c-a942-63ccdbb3a9ee
* - plugins admin menu appear now in the admin page menubarrvelices2006-12-141-2/+1
| | | | | | | | - plugins are loaded immediately after loading the config (allow them to hack more of pwg like user init, template init etc...) - trigger event format_exif_data (for picture display only) git-svn-id: http://piwigo.org/svn/trunk@1655 68402e56-0260-453c-a942-63ccdbb3a9ee
* - comments.php improvements:rvelices2006-11-081-1/+5
| | | | | | | | | | - unvalidated comments are shown only for administrators - added delete/validate icons for admins - removed some unused code - display of comment content performed through an event - replace some get_thumbnail_src with get_thumbnail_url git-svn-id: http://piwigo.org/svn/trunk@1598 68402e56-0260-453c-a942-63ccdbb3a9ee
* plugins: first prototype versionrvelices2006-10-261-0/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
* - put back config['session_length'] disappeared in r1493 but has always beenrvelices2006-10-201-57/+50
| | | | | | | | | | | | | used in the code (generates mysql errors on session garbage collector) - fix auto_login (die mysql when session timed out, but user has remember) - when a user reconnects from identification.php, the remember cookie was not deleted - fix all redirect warnings/errors (many changes - mainly in common.inc.php and user.inc.php) - reduced $conf['remember_me_length'] to 60 days, because now at each auto login the 60 days countdown restarts git-svn-id: http://piwigo.org/svn/trunk@1568 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 488: when gallery is locked, white page with no messagervelices2006-07-261-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1502 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -r1424:1425 from branch 1.6 to trunk (bug 395 fixed: the upgrade feedplegall2006-07-031-1/+3
| | | | | | | can be performed only if PHPWG_IN_UPGRADE is true). git-svn-id: http://piwigo.org/svn/trunk@1426 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000375: rub2006-06-291-1/+2
| | | | | | | | | o Line too long o Use paragraph Merge BSF r1413:1414 into branch-1_6 git-svn-id: http://piwigo.org/svn/trunk@1418 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000375: rub2006-06-281-8/+8
| | | | | | | | | | o Keep same format display o Add css class o rename warning to header_msg Merge BSF r1411:1412 into branch-1_6 git-svn-id: http://piwigo.org/svn/trunk@1414 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000429: rub2006-06-281-1/+7
| | | | | | | | Fix Line too long cf coding convention git-svn-id: http://piwigo.org/svn/trunk@1412 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000429: Value on config_default.inc.php is a default value not ↵rub2006-06-271-1/+1
| | | | | | | | defined by default. Merge BSF r1407:1408 into branch-1_6 git-svn-id: http://piwigo.org/svn/trunk@1410 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix bug 375: html bug; warnings are displayed outside from the html tree.nikrou2006-06-221-24/+15
| | | | git-svn-id: http://piwigo.org/svn/trunk@1380 68402e56-0260-453c-a942-63ccdbb3a9ee
* svn merge -r1366:1371 from branch 1.6 into trunknikrou2006-06-221-1/+9
| | | | git-svn-id: http://piwigo.org/svn/trunk@1377 68402e56-0260-453c-a942-63ccdbb3a9ee
* issue 426 step 1 reverted:nikrou2006-06-221-9/+1
| | | | | | | | svn merge -r1466:1465 . svn merge -r1463:1462 . git-svn-id: http://piwigo.org/svn/trunk@1376 68402e56-0260-453c-a942-63ccdbb3a9ee
* small fix: problem with undefined constant in public zone.nikrou2006-06-181-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1366 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 426: first step; separation of admin and public into two templatesnikrou2006-06-181-1/+9
| | | | | | | Need to simplify and delete files not needed git-svn-id: http://piwigo.org/svn/trunk@1363 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000371:rub2006-05-071-0/+13
| | | | | | | | | | | o Sorry but reverse r1299/1300 Issue ID 0000356: o Add new html properties tags on adviser mode git-svn-id: http://piwigo.org/svn/trunk@1303 68402e56-0260-453c-a942-63ccdbb3a9ee
* html bug fixed: the sentence "mod adviser enabled" must be add in the page!nikrou2006-05-051-13/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@1299 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -r1281:1283 from branch 1.6 to trunk (bug 228 fixed one more time, andplegall2006-04-271-26/+1
| | | | | | | other little things) git-svn-id: http://piwigo.org/svn/trunk@1284 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: tags replace keywords. Better data model, lessplegall2006-04-021-0/+1
| | | | | | | | limitations. Each image can be associated to as many tag as needed. Tags can contain non ASCII characters. Oriented navigation with tags by association. git-svn-id: http://piwigo.org/svn/trunk@1119 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix: allow adviser message was not allowing cookies to be sentrvelices2006-04-011-0/+1
| | | | | | | | | | fix: cookie deletion on logout uses ini_get (on some systems ini_set(cookie_path) is ignored) bug 322: locked category is visible to all the users/groups that have been assigned the permissions git-svn-id: http://piwigo.org/svn/trunk@1117 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewriting: capable of fully working with urls without ?rvelices2006-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | URL rewriting: works with image file instead of image id (change make_picture_url to generate urls with file name instead of image id) URL rewriting: completely works with category/best_rated and picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url and 'picture.php?' to 'picture' in make_picture_url to see it) fix: picture category display in upper bar fix: function rate_picture variables and use of the new user type fix: caddie icon appears now on category page fix: admin element_set sql query was using storage_category_id column (column has moved to #image_categories) fix: replaced some old $_GET[xxx] with $page[xxx] fix: pictures have metadata url (use ? parameter - might change later) git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee
* Step 7 improvement issue 0000301:rub2006-03-161-0/+12
| | | | | | | | | | o can attribute status <= current user o define mode adviser => buttons disabled (gray on IE, not on FF) => truncated actions => display info mode adviser git-svn-id: http://piwigo.org/svn/trunk@1085 68402e56-0260-453c-a942-63ccdbb3a9ee
* Step 5 improvement issue 0000301:rub2006-03-101-25/+25
| | | | | | | | | o upgrade_feed.php is showed only for administrator user This functionality is removed following mail of Pierrick LE GALL git-svn-id: http://piwigo.org/svn/trunk@1076 68402e56-0260-453c-a942-63ccdbb3a9ee
* Step 4 improvement issue 0000301:rub2006-03-101-26/+26
| | | | | | | | | | o Correction lock categories and is_admin (functions with parameters now) o Cannot use check_status with upgrade.php and upgrade_feed.php => New function check_upgrade use in upgrade*.php (new functionality for upgrade_feed.php) o upgrade_feed.php is showed only for administrator user git-svn-id: http://piwigo.org/svn/trunk@1075 68402e56-0260-453c-a942-63ccdbb3a9ee
* Step 1 improvement issue 0000301:rub2006-03-081-1/+1
| | | | | | | | | | | o Change status of table #_user_infos o Don't send password to webmaster, guest, generic Next Step: o Functions Check of status o Restricted Access for user generic git-svn-id: http://piwigo.org/svn/trunk@1070 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix: permissioning not working (2 bugs)rvelices2006-02-231-3/+6
| | | | | | | | | | | | | fix: locked gallery cannot be unlocked (impossible to login) improvement: nicer display in redirect.tpl improvement: when a page is not accessible because of permissions (accessed through bookmark or email), redirect to identification.php and after identification to the initially requested page git-svn-id: http://piwigo.org/svn/trunk@1052 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: $page['where'] string replaced by $page['items'].plegall2006-02-121-1/+19
| | | | | | | | | | | | | | | | | | | | | | | $page['where'] was an SQL clause used to retrieve pictures in #images table. $page['items'] is the list of picture ids of the current section. improvement: function initialize_category replaced by dedicated included PHP script include/section_init.inc.php. Code was refactored to improve readibility and maintenability. $page['navigation_bar'] is now build in category.php instead of initialize_category function. Function check_cat_id was also replaced by a piece of code in the new file. The file to include to display thumbnails from category.php is now set in section_init.inc.php instead of calculated in category.php. bug fix: the test for rel="up" link for standard HTML navigation links in category menu was not working with non numeric categories, such as "favorites". improvement: function check_login_authorization removed because useless but in profile.php. git-svn-id: http://piwigo.org/svn/trunk@1036 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remake of Remote sites and Synchronize: rvelices2006-02-081-0/+1
| | | | | | | | | | | | | | | - synchronization for remote and local sites are done by the same code - remote sites can update metadata now (not before) - bug 279 - fixes bug 82: has_high column - improve feature 280: user sort by filename - fix path to template mimetypes icons - bug 284: session cookie lifetime, deletion on logout and corrected issue when db upgrades were missing git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: upgrades id retrieving in include/common.inc.php andplegall2006-02-061-18/+2
| | | | | | | | | | | | upgrade_feed.php are now made by dedicated function get_available_upgrade_ids. bug fixed: after an installation, you had to play all available upgrades, which was wrong. install.php inserts informations related to all available upgrades at installation time. Thus avoiding automatic upgrades. git-svn-id: http://piwigo.org/svn/trunk@1027 68402e56-0260-453c-a942-63ccdbb3a9ee
* improve template : split theme from template itselfchrisaga2005-12-031-0/+6
| | | | | | | rest of the job : template (yoga), themes (clear dark), and php to handle them git-svn-id: http://piwigo.org/svn/trunk@960 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new: system to notify and upgrade database among developersplegall2005-11-241-1/+41
| | | | git-svn-id: http://piwigo.org/svn/trunk@953 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug 168 fixed: crash when language file does not exists. Constantplegall2005-09-271-23/+2
| | | | | | | | PHPWG_DEFAULT_LANGUAGE added. New function get_language_filepath always used to find language files. git-svn-id: http://piwigo.org/svn/trunk@879 68402e56-0260-453c-a942-63ccdbb3a9ee
* - improvement: long localized messages are in HTML files instead of $langplegall2005-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | array. This is the case of admin/help and about pages. - deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute). - new: many new contextual help pages to replace descriptions previously included in pages. - modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1. git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new : external authentication in another users table. Previous users tableplegall2005-08-081-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | is divided between users (common properties with any web application) and user_infos (phpwebgallery specific informations). External table and fields can be configured. - modification : profile.php is not reachable through administration anymore (not useful). - modification : in profile.php, current password is mandatory only if user tries to change his password. Username can't be changed. - deletion : of obsolete functions get_user_restrictions, update_user_restrictions, get_user_all_restrictions, is_user_allowed, update_user - modification : $user['forbidden_categories'] equals at least "-1" so that category_id NOT IN ($user['forbidden_categories']) can always be used. - modification : user_forbidden table becomes user_cache so that not only restriction informations can be stored in this table. git-svn-id: http://piwigo.org/svn/trunk@808 68402e56-0260-453c-a942-63ccdbb3a9ee
* - include/config.inc.php becomes include/config_default.inc.php : this fileplegall2005-04-251-1/+2
| | | | | | | | should not be modified. A new file include/config_local.inc.php can be used for overwriting configuration parameters git-svn-id: http://piwigo.org/svn/trunk@770 68402e56-0260-453c-a942-63ccdbb3a9ee
* - L�g�re modification pour permettre une installation m�me si le ↵gweltas2005-04-251-1/+1
| | | | | | | | | | fichier mysql.inc.php n'existe pas. - Introduction des statistiques mensuelles. - Modification des labels anglais lors de l'installation git-svn-id: http://piwigo.org/svn/trunk@766 68402e56-0260-453c-a942-63ccdbb3a9ee
* - replacement of variable names in include/mysql.inc.php (for upgrades) :plegall2005-01-081-2/+2
| | | | | | | | | | | dbname => cfgBase dbuser => cfgUser dbpasswd => cfgPassword dbhost => cfgHote table_prefix => prefixeTable git-svn-id: http://piwigo.org/svn/trunk@681 68402e56-0260-453c-a942-63ccdbb3a9ee