~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/core/classes/GalleryConstants.class

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * $RCSfile: GalleryConstants.class,v $
4
4
 *
5
5
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
 
6
 * Copyright (C) 2000-2006 Bharat Mediratta
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License as published by
20
20
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
21
21
 */
22
22
/**
23
 
 * @version $Revision: 1.7 $ $Date: 2005/08/23 03:49:02 $
 
23
 * @version $Revision: 1.9 $ $Date: 2006/01/17 18:18:12 $
24
24
 * @package GalleryCore
25
25
 * @author Bharat Mediratta <bharat@menalto.com>
26
26
 */
123
123
 */
124
124
define('STORAGE_FLAG_DELETED', 0x00000002);
125
125
 
 
126
/**
 
127
 * Storage sizes
 
128
 */
 
129
define('STORAGE_SIZE_SMALL', 0x00000001);
 
130
define('STORAGE_SIZE_MEDIUM', 0x00000002);
 
131
define('STORAGE_SIZE_LARGE', 0x00000004);
 
132
 
126
133
/*
127
134
 * ****************************************
128
135
 *           Item order constants
167
174
define('GALLERY_PERMISSION_COMPOSITE',  0x00000002);
168
175
 
169
176
/**
170
 
 * This permission is for item administration
 
177
 * Key for storing permissions granted to this session
171
178
 */
172
 
define('GALLERY_PERMISSION_ITEM_ADMIN', 0x00000004);
 
179
define('GALLERY_PERMISSION_SESSION_KEY', 'core.sessionPermissionEntityIds');
173
180
 
174
181
/*
175
182
 * ****************************************
186
193
 * Write lock type
187
194
 */
188
195
define('LOCK_WRITE', 2);
 
196
 
 
197
/*
 
198
 * ****************************************
 
199
 *           View types
 
200
 * ****************************************
 
201
 */
 
202
 
 
203
/**
 
204
 * Module view
 
205
 */
 
206
define('VIEW_TYPE_MODULE', 1);
 
207
 
 
208
/**
 
209
 * ShowItem view
 
210
 */
 
211
define('VIEW_TYPE_SHOW_ITEM', 2);
 
212
 
 
213
/**
 
214
 * Administration view
 
215
 */
 
216
define('VIEW_TYPE_ADMIN', 3);
 
217
 
 
218
/**
 
219
 * Progress bar
 
220
 */
 
221
define('VIEW_TYPE_PROGRESS_BAR', 4);
 
222
 
 
223
/**
 
224
 * Default view
 
225
 */
 
226
define('GALLERY_DEFAULT_VIEW', 'core.ShowItem');
 
227
 
 
228
/*
 
229
 * ****************************************
 
230
 *           Status code bitflags
 
231
 * ****************************************
 
232
 */
 
233
 
 
234
/**
 
235
 * The operation had errors
 
236
 * TODO(bharat): Get rid of this; it's no longer necessary
 
237
 */
 
238
define('GALLERY_ERROR', 0x00000001);
 
239
 
 
240
/**
 
241
 * A name collision happened in the filesystem or database as a result of this
 
242
 * operation.  A common cause for this is attempting to use an existing filename
 
243
 * when moving an item from one location to another.
 
244
 */
 
245
define('ERROR_COLLISION', 0x00000002);
 
246
 
 
247
/**
 
248
 * The object you're trying to access is no longer available.  Perhaps it was
 
249
 * deleted.  You shouldn't get this when an object has simply moved.
 
250
 */
 
251
define('ERROR_MISSING_OBJECT', 0x00000004);
 
252
 
 
253
/**
 
254
 * The lock you're trying to acquire is currently in use and was not released
 
255
 * within the timeout period you specified.
 
256
 */
 
257
define('ERROR_LOCK_IN_USE', 0x00000008);
 
258
 
 
259
/**
 
260
 * One of the parameters passed to this function is bad.
 
261
 */
 
262
define('ERROR_BAD_PARAMETER', 0x00000010);
 
263
 
 
264
/**
 
265
 * Missing a value necessary to continue
 
266
 */
 
267
define('ERROR_MISSING_VALUE', 0x00000020);
 
268
 
 
269
/**
 
270
 * An unspecified storage error occurred
 
271
 */
 
272
define('ERROR_STORAGE_FAILURE', 0x00000040);
 
273
 
 
274
/**
 
275
 * A storage operation was attempted with an invalid storage connection
 
276
 */
 
277
define('ERROR_STORAGE_CONNECTION', 0x00000080);
 
278
 
 
279
/**
 
280
 * You attempted to modify an object using an in-memory version that
 
281
 * is out of date with the version that's in the storage
 
282
 */
 
283
define('ERROR_OBSOLETE_DATA', 0x00000200);
 
284
 
 
285
/**
 
286
 * You attempted an operation which requires a lock.
 
287
 */
 
288
define('ERROR_LOCK_REQUIRED', 0x00000400);
 
289
 
 
290
/**
 
291
 * We tried a file operation on an unsupported file type
 
292
 */
 
293
define('ERROR_UNSUPPORTED_FILE_TYPE', 0x00000800);
 
294
 
 
295
/**
 
296
 * You attempted an illegal operation on a deleted object
 
297
 */
 
298
define('ERROR_DELETED_OBJECT', 0x00001000);
 
299
 
 
300
/**
 
301
 * You attempted an operation which had a bad path component
 
302
 */
 
303
define('ERROR_BAD_PATH', 0x00002000);
 
304
 
 
305
/**
 
306
 * You attempted an operation which had a bad data type
 
307
 */
 
308
define('ERROR_BAD_DATA_TYPE', 0x00004000);
 
309
 
 
310
/**
 
311
 * You attempted to add a child to a GalleryItem which can't have children
 
312
 */
 
313
define('ERROR_ILLEGAL_CHILD', 0x00008000);
 
314
 
 
315
/**
 
316
 * An unspecified error occured while completing a toolkit command.
 
317
 */
 
318
define('ERROR_TOOLKIT_FAILURE', 0x00010000);
 
319
 
 
320
/**
 
321
 * We experienced a platform specific error (perhaps filesystem related)
 
322
 */
 
323
define('ERROR_PLATFORM_FAILURE', 0x00020000);
 
324
 
 
325
/**
 
326
 * You did an operation on a derivative that is broken
 
327
 */
 
328
define('ERROR_BROKEN_DERIVATIVE', 0x00040000);
 
329
 
 
330
/**
 
331
 * We tried an unsupported operation
 
332
 */
 
333
define('ERROR_UNSUPPORTED_OPERATION', 0x00080000);
 
334
 
 
335
/**
 
336
 * We were unable to get a lock in the time allotted
 
337
 */
 
338
define('ERROR_LOCK_TIMEOUT', 0x00100000);
 
339
 
 
340
/**
 
341
 * Something went wrong when loading or activating a plugin
 
342
 */
 
343
define('ERROR_BAD_PLUGIN', 0x00200000);
 
344
 
 
345
/**
 
346
 * The module you tried to use requires configuration
 
347
 */
 
348
define('ERROR_CONFIGURATION_REQUIRED', 0x00400000);
 
349
 
 
350
/**
 
351
 * You don't have permission to complete the given action
 
352
 */
 
353
define('ERROR_PERMISSION_DENIED', 0x00800000);
 
354
 
 
355
/**
 
356
 * You don't have enough space for the operation required
 
357
 */
 
358
define('ERROR_OUT_OF_SPACE', 0x01000000);
 
359
 
 
360
/**
 
361
 * The plugin exists, but the version on disk doesn't match the
 
362
 * version in the database.
 
363
 */
 
364
define('ERROR_PLUGIN_VERSION_MISMATCH', 0x02000000);
 
365
 
 
366
/**
 
367
 * The operation you attempted is unimplemented
 
368
 */
 
369
define('ERROR_UNIMPLEMENTED', 0x40000000);
 
370
 
 
371
/**
 
372
 * An unknown error occurred
 
373
 */
 
374
define('ERROR_UNKNOWN', 0x80000000);
 
375
 
189
376
?>