source: tags/build-Alligator02/include/constants.php @ 14518

Last change on this file since 14518 was 1727, checked in by plg, 17 years ago

Modification: new data model for history, more compact, more efficient. A
summary table is used as cache for history stats display.

New: a Perl script fill_history.pl was added to simulate a high load on
history table (making the efficiency of the new data model obvious).

Modification: function prepend_append_array_items moved from
include/functions_search.inc.php to include/functions_search.inc.php since
this function is used in new file admin/history.php

Modification: admin/images/*_stats.img.php replaced by a simpler and more
generic admin/images/stats.img.php unique file.

New: a history detail search page was added. Currently, only start and end
dates can be modified, it's just a beginning.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2007-01-16 23:39:39 +0000 (Tue, 16 Jan 2007) $
10// | last modifier : $Author: plg $
11// | revision      : $Revision: 1727 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27
28// Default settings
29define('PHPWG_VERSION', 'Alligator');
30define('PHPWG_DOMAIN', 'phpwebgallery.net');
31define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN);
32define('PHPWG_DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
33
34// Error codes
35define('GENERAL_MESSAGE', 200);
36define('GENERAL_ERROR', 202);
37define('CRITICAL_MESSAGE', 203);
38define('CRITICAL_ERROR', 204);
39
40// Access codes
41define('ACCESS_NONE', 0);
42define('ACCESS_GUEST', 1);
43define('ACCESS_CLASSIC', 2);
44define('ACCESS_ADMINISTRATOR', 3);
45define('ACCESS_WEBMASTER', 4);
46
47// Table names
48define('CATEGORIES_TABLE', $prefixeTable.'categories');
49define('COMMENTS_TABLE', $prefixeTable.'comments');
50define('CONFIG_TABLE', $prefixeTable.'config');
51define('FAVORITES_TABLE', $prefixeTable.'favorites');
52define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access');
53define('GROUPS_TABLE', $prefixeTable.'groups');
54define('HISTORY_TABLE', $prefixeTable.'history');
55define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary');
56define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category');
57define('IMAGES_TABLE', $prefixeTable.'images');
58define('SESSIONS_TABLE', $prefixeTable.'sessions');
59define('SITES_TABLE', $prefixeTable.'sites');
60define('USER_ACCESS_TABLE', $prefixeTable.'user_access');
61define('USER_GROUP_TABLE', $prefixeTable.'user_group');
62define('USERS_TABLE', $conf['users_table']);
63define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
64define('USER_FEED_TABLE', $prefixeTable.'user_feed');
65define('WAITING_TABLE', $prefixeTable.'waiting');
66define('IMAGE_METADATA_TABLE', $prefixeTable.'image_metadata');
67define('RATE_TABLE', $prefixeTable.'rate');
68define('USER_CACHE_TABLE', $prefixeTable.'user_cache');
69define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories');
70define('CADDIE_TABLE', $prefixeTable.'caddie');
71define('UPGRADE_TABLE', $prefixeTable.'upgrade');
72define('SEARCH_TABLE', $prefixeTable.'search');
73define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification');
74define('TAGS_TABLE', $prefixeTable.'tags');
75define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
76define('PLUGINS_TABLE', $prefixeTable.'plugins');
77define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access');
78?>
Note: See TracBrowser for help on using the repository browser.