Location: PHPKode > projects > WebArchive > phparchive.0.1.82.beta/includes/constants.inc.php
<?php
/* ------------------------------------------------------------------------------ */
/* phparchive DataType Constants                                                  */
/* ------------------------------------------------------------------------------ */

/**
 * Constants
 * 
 * @version $Id: constants.inc.php,v 1.14 2004/01/09 00:35:10 freedev Exp $
 * @author Vincenzo D'Amore <hide@address.com>
 * @package wa_includes
*/

/**
 * Current version
 */
define("WA_PRODUCT_VERSION", "0.1.82 &szlig;eta");

/**
 * Session name
 */
define("WA_SESSION_NAME", "wasess");

/**
 * Rows per Page
 */
define("WA_ROWS_PER_PAGE", 15);
define("WA_MAX_ROWS_PER_PAGE", 100);

/**
 * Data types
 */
define("WA_BOOLEAN", 1);
define("WA_DATE", 2);
define("WA_FILE", 3);
define("WA_KEYNUM", 4);
define("WA_KEYUSEROWNER", 5);
define("WA_LONGTEXT", 6);
define("WA_NUMERIC", 7);
define("WA_STRING", 8);
define("WA_PASSWORD", 9);
define("WA_DATETIME", 10);
define("WA_TIME", 11);
define("WA_IMAGE", 12);
define("WA_USERID", 13);
define("WA_LIST", 14);
define("WA_KEYGROUPOWNER", 15);

/**
 * Join supported
 */
define("WA_JOIN_EQUIV", 1);
define("WA_JOIN_LEFT", 2);
define("WA_JOIN_RIGHT", 3);

/**
 * Relation supported
 */
define("WA_REL_MULTI", 1);
define("WA_REL_ONE", 2);
define("WA_REL_LIST", 3);

/**
 * Howto a relation can be shown
 */
define("WA_DISPLAY_COMBO", 1);
define("WA_DISPLAY_COSTANT", 2);

/**
 * Database Type String
 */
define("WA_DB_ODBC", "ODBC");
define("WA_DB_MYSQL", "MYSQL");
define("WA_DB_ORACLE", "ORACLE");
define("WA_DB_OCI", "OCI");

/**
 * Database Type ID
 */

define("WA_DB_ODBC_ID", 1);
define("WA_DB_MYSQL_ID", 2);
define("WA_DB_ORACLE_ID", 3);
define("WA_DB_OCI_ID", 4);

/**
 * Wildcard character, Date, Datetime and time delimiters for 
 * different Databases
 */

$GLOBALS[WA_DB_ODBC_ID]["WAWildcard"]	= "%";
$GLOBALS[WA_DB_ODBC_ID]["WADateS"]		= "'";
$GLOBALS[WA_DB_ODBC_ID]["WADateE"]		= "'";
$GLOBALS[WA_DB_ODBC_ID]["WADateTimeS"]	= "'";
$GLOBALS[WA_DB_ODBC_ID]["WADateTimeE"]	= "'";
$GLOBALS[WA_DB_ODBC_ID]["WATimeS"]		= "'";
$GLOBALS[WA_DB_ODBC_ID]["WATimeE"]		= "'";

$GLOBALS[WA_DB_MYSQL_ID]["WAWildcard"]		= "%";
$GLOBALS[WA_DB_MYSQL_ID]["WADateS"]		= "'";
$GLOBALS[WA_DB_MYSQL_ID]["WADateE"]		= "'";
$GLOBALS[WA_DB_MYSQL_ID]["WADateTimeS"]	= "'";
$GLOBALS[WA_DB_MYSQL_ID]["WADateTimeE"]	= "'";
$GLOBALS[WA_DB_MYSQL_ID]["WATimeS"]		= "'";
$GLOBALS[WA_DB_MYSQL_ID]["WATimeE"]		= "'";

$GLOBALS[WA_DB_ORACLE_ID]["WAWildcard"]	= "%";
$GLOBALS[WA_DB_ORACLE_ID]["WADateS"]		= "'";
$GLOBALS[WA_DB_ORACLE_ID]["WADateE"]		= "'";
$GLOBALS[WA_DB_ORACLE_ID]["WADateTimeS"]	= "'";
$GLOBALS[WA_DB_ORACLE_ID]["WADateTimeE"]	= "'";
$GLOBALS[WA_DB_ORACLE_ID]["WATimeS"]		= "'";
$GLOBALS[WA_DB_ORACLE_ID]["WATimeE"]		= "'";

$GLOBALS[WA_DB_OCI_ID]["WAWildcard"]	= "%";
$GLOBALS[WA_DB_OCI_ID]["WADateS"]		= "'";
$GLOBALS[WA_DB_OCI_ID]["WADateE"]		= "'";
$GLOBALS[WA_DB_OCI_ID]["WADateTimeS"]	= "'";
$GLOBALS[WA_DB_OCI_ID]["WADateTimeE"]	= "'";
$GLOBALS[WA_DB_OCI_ID]["WATimeS"]		= "'";
$GLOBALS[WA_DB_OCI_ID]["WATimeE"]		= "'";

/**
 * Current style page
 */
define("WA_CURRENT_CSS_FILE", "common_small.css");
define("WA_REDIRECT_LOGOUT_PAGE", "<html><head><META HTTP-EQUIV='Refresh' CONTENT='0;URL=nologin.php'></head><body></body></html>");
define("WA_REDIRECT_INSTALL_PAGE", "<html><head><META HTTP-EQUIV='Refresh' CONTENT='0;URL=install.php'></head><body><a href='install.php'>Click here to go on install page</a></body></html>");

/**
 * text size for file and image upload/download
 */
define("WA_FILENAME_SIZE", "80");
define("WA_FILENAME_MAXSIZE", "100");

?>
Return current item: WebArchive