Sindbad~EG File Manager
<?php
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2007 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
/**
* @package GalleryCore
* @subpackage Classes
* @author Bharat Mediratta <bharat@menalto.com>
* @version $Revision: 15534 $
*/
/*
* ****************************************
* Derivative types
* ****************************************
*/
/**
* Thumbnail image type
*/
define('DERIVATIVE_TYPE_IMAGE_THUMBNAIL', 1);
/**
* Resized image type
*/
define('DERIVATIVE_TYPE_IMAGE_RESIZE', 2);
/**
* Preferred image type
*/
define('DERIVATIVE_TYPE_IMAGE_PREFERRED', 3);
/*
* ****************************************
* Group types
* ****************************************
*/
/**
* A normal group
*/
define('GROUP_NORMAL', 1);
/**
* The "all users" group (everybody but the guest account)
*/
define('GROUP_ALL_USERS', 2);
/**
* The "site admins" group
*/
define('GROUP_SITE_ADMINS', 3);
/**
* The "everybody" group (all users plus any guest accounts)
*/
define('GROUP_EVERYBODY', 4);
/*
* ****************************************
* Storage constants
* ****************************************
*/
/**
* Integer type
*/
define('STORAGE_TYPE_INTEGER', 0x00000001);
/**
* String type
*/
define('STORAGE_TYPE_STRING', 0x00000002);
/**
* Text type
*/
define('STORAGE_TYPE_TEXT', 0x00000004);
/**
* Text type
*/
define('STORAGE_TYPE_BOOLEAN', 0x00000008);
/**
* Timestamp type
*/
define('STORAGE_TYPE_TIMESTAMP', 0x00000010);
/**
* ID type
*/
define('STORAGE_TYPE_ID', 0x00000020);
/**
* Bits type
*/
define('STORAGE_TYPE_BIT', 0x00000040);
/**
* Newly created flag
*/
define('STORAGE_FLAG_NEWLY_CREATED', 0x00000001);
/**
* Deleted flag
*/
define('STORAGE_FLAG_DELETED', 0x00000002);
/**
* Storage sizes
*/
define('STORAGE_SIZE_SMALL', 0x00000001);
define('STORAGE_SIZE_MEDIUM', 0x00000002);
define('STORAGE_SIZE_LARGE', 0x00000004);
/*
* ****************************************
* Item order constants
* ****************************************
*/
/**
* Order in an ascending fashion
*/
define('ORDER_ASCENDING', 'asc');
/**
* Order in an descending fashion
*/
define('ORDER_DESCENDING', 'desc');
/**
* Indicate a lower weight
*/
define('LOWER_WEIGHT', -1);
/**
* Indicate a higher weight
*/
define('HIGHER_WEIGHT', 1);
/*
* ****************************************
* Permission constants
* ****************************************
*/
/**
* This is the special "All Access" permission
*/
define('GALLERY_PERMISSION_ALL_ACCESS', 0x00000001);
/**
* This permission is a composite of other permissions
*/
define('GALLERY_PERMISSION_COMPOSITE', 0x00000002);
/**
* Key for storing permissions granted to this session
*/
define('GALLERY_PERMISSION_SESSION_KEY', 'core.sessionPermissionEntityIds');
/*
* ****************************************
* Lock constants
* ****************************************
*/
/**
* Read lock type
*/
define('LOCK_READ', 1);
/**
* Write lock type
*/
define('LOCK_WRITE', 2);
/*
* ****************************************
* View types
* ****************************************
*/
/**
* Module view
*/
define('VIEW_TYPE_MODULE', 1);
/**
* ShowItem view
*/
define('VIEW_TYPE_SHOW_ITEM', 2);
/**
* Administration view
*/
define('VIEW_TYPE_ADMIN', 3);
/**
* Progress bar
*/
define('VIEW_TYPE_PROGRESS_BAR', 4);
/**
* Error page
*/
define('VIEW_TYPE_ERROR', 5);
/**
* Default view
*/
define('GALLERY_DEFAULT_VIEW', 'core.ShowItem');
/*
* ****************************************
* Status code bitflags
* ****************************************
*/
/**
* The operation had errors
* @todo (bharat): Get rid of this; it's no longer necessary
*/
define('GALLERY_ERROR', 0x00000001);
/**
* A name collision happened in the filesystem or database as a result of this operation. A common
* cause of this is attempting to use an existing filename when moving an item from one location to
* another.
*/
define('ERROR_COLLISION', 0x00000002);
/**
* The object you're trying to access is no longer available. Perhaps it was deleted. You
* shouldn't get this when an object has simply moved.
*/
define('ERROR_MISSING_OBJECT', 0x00000004);
/**
* The lock you're trying to acquire is currently in use and was not released within the timeout
* period you specified.
*/
define('ERROR_LOCK_IN_USE', 0x00000008);
/**
* One of the parameters passed to this function is bad.
*/
define('ERROR_BAD_PARAMETER', 0x00000010);
/**
* You're missing a value necessary to continue with the current operation.
*/
define('ERROR_MISSING_VALUE', 0x00000020);
/**
* An unspecified storage error occurred.
*/
define('ERROR_STORAGE_FAILURE', 0x00000040);
/**
* A storage operation was attempted with an invalid storage connection.
*/
define('ERROR_STORAGE_CONNECTION', 0x00000080);
/**
* You attempted an operation which requires a valid authentication token.
*/
define('ERROR_REQUEST_FORGED', 0x00000100);
/**
* You attempted to modify an object using an in-memory version that is out of date with the version
* that's in the storage.
*/
define('ERROR_OBSOLETE_DATA', 0x00000200);
/**
* You attempted an operation which requires a lock.
*/
define('ERROR_LOCK_REQUIRED', 0x00000400);
/**
* You tried a file operation on an unsupported file type.
*/
define('ERROR_UNSUPPORTED_FILE_TYPE', 0x00000800);
/**
* You attempted an illegal operation on a deleted object.
*/
define('ERROR_DELETED_OBJECT', 0x00001000);
/**
* You attempted an operation which had a bad path component.
*/
define('ERROR_BAD_PATH', 0x00002000);
/**
* You attempted an operation which had a bad data type.
*/
define('ERROR_BAD_DATA_TYPE', 0x00004000);
/**
* You attempted to add a child to a GalleryItem which can't have children.
*/
define('ERROR_ILLEGAL_CHILD', 0x00008000);
/**
* An unspecified error occured while completing a toolkit command..
*/
define('ERROR_TOOLKIT_FAILURE', 0x00010000);
/**
* We experienced a platform specific error (perhaps filesystem related)
*/
define('ERROR_PLATFORM_FAILURE', 0x00020000);
/**
* You did an operation on a derivative that is broken.
*/
define('ERROR_BROKEN_DERIVATIVE', 0x00040000);
/**
* You tried an unsupported operation.
*/
define('ERROR_UNSUPPORTED_OPERATION', 0x00080000);
/**
* You were unable to get a lock in the time allotted.
*/
define('ERROR_LOCK_TIMEOUT', 0x00100000);
/**
* Something went wrong when loading or activating a plugin.
*/
define('ERROR_BAD_PLUGIN', 0x00200000);
/**
* The module you tried to use requires configuration.
*/
define('ERROR_CONFIGURATION_REQUIRED', 0x00400000);
/**
* You don't have permission to complete the given action.
*/
define('ERROR_PERMISSION_DENIED', 0x00800000);
/**
* You don't have enough space for the operation required.
*/
define('ERROR_OUT_OF_SPACE', 0x01000000);
/**
* The plugin exists, but the version on disk doesn't match the version in the database.
*/
define('ERROR_PLUGIN_VERSION_MISMATCH', 0x02000000);
/**
* The operation you attempted is unimplemented.
*/
define('ERROR_UNIMPLEMENTED', 0x40000000);
/**
* An unknown error occurred.
*/
define('ERROR_UNKNOWN', 0x80000000);
/**
* External access for entity members (default: none)
*/
define('EXTERNAL_ACCESS_READ', 0x00000001);
define('EXTERNAL_ACCESS_WRITE', 0x00000002);
define('EXTERNAL_ACCESS_FULL', 0x00000003);
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists