Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#212 Login/register    Go to Bottom
Go to Top

Source for file dpserver-ini.php

Documentation is available at dpserver-ini.php

  1. <?php
  2. /**
  3.  * Constants with global server settings
  4.  *
  5.  * Change these constants to match your desired configuration. These constants
  6.  * define the settings and behavious of {@link dpserver.php} and
  7.  * {@link dpclient.php}, that is, the communication between the DutchPIPE server
  8.  * and the user's browser. See {@link dpuniverse-ini.php} for settings dealing
  9.  * with the "universe".
  10.  *
  11.  * DutchPIPE version 0.4; PHP version 5
  12.  *
  13.  * LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
  14.  * If you did not receive a copy of the DutchPIPE license, you can obtain one at
  15.  * http://dutchpipe.org/license/1_0.txt or by sending a note to
  16.  * license@dutchpipe.org, in which case you will be mailed a copy immediately.
  17.  *
  18.  * @package    DutchPIPE
  19.  * @subpackage config
  20.  * @author     Lennert Stock <ls@dutchpipe.org>
  21.  * @copyright  2006, 2007 Lennert Stock
  22.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  23.  * @version    Subversion: $Id: dpserver-ini.php 308 2007-09-02 19:18:58Z ls $
  24.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  25.  * @see        dpserver.php, dpclient.php, dpuniverse-ini.php
  26.  */
  27.  
  28. /**
  29.  * Host on which DutchPIPE is running
  30.  *
  31.  * The URL part minus the absolute path to {@link dpclient.php} (/dpclient.php
  32.  * by default, as defined in {@link DPSERVER_CLIENT_URL}).
  33.  *
  34.  * @see        DPSERVER_CLIENT_URL, DPSERVER_CLIENTJS_URL
  35.  */
  36. define('DPSERVER_HOST_URL''http://www.yourdomain.com');
  37. //define('DPSERVER_HOST_URL', 'http://localhost');
  38.  
  39. if (!defined('DPSERVER_CLIENT_DIR')) {
  40.     /**
  41.      * The rest of the URL for the directory to to the client PHP script, / by
  42.      * default
  43.      *
  44.      * @see        DPSERVER_HOST_URL, DPSERVER_CLIENTJS_URL
  45.      */
  46.     define('DPSERVER_CLIENT_DIR''/');
  47. }
  48.  
  49. if (!defined('DPSERVER_CLIENT_FILENAME')) {
  50.     /**
  51.      * The rest of the URL for the client PHP script, dpclient.php by default
  52.      *
  53.      * @see        DPSERVER_HOST_URL, DPSERVER_CLIENTJS_URL
  54.      */
  55.     define('DPSERVER_CLIENT_FILENAME''dpclient.php');
  56. }
  57.  
  58. if (!defined('DPSERVER_CLIENT_URL')) {
  59.     /**
  60.      * The rest of the URL for the client PHP script, /dpclient.php by default
  61.      *
  62.      * @see        DPSERVER_HOST_URL, DPSERVER_CLIENTJS_URL
  63.      */
  64.     define('DPSERVER_CLIENT_URL'DPSERVER_CLIENT_DIR .
  65.         DPSERVER_CLIENT_FILENAME);
  66. }
  67.  
  68. /**
  69.  * The rest of the URL for the client Javascript, /dpclient-js.php by default
  70.  *
  71.  * @see        DPSERVER_HOST_URL, DPSERVER_CLIENTJS_URL
  72.  */
  73. define('DPSERVER_CLIENTJS_URL'DPSERVER_CLIENT_DIR 'dpclient-js.php');
  74.  
  75. /**
  76.  * The name of the cookie DutchPIPE uses to store user information
  77.  */
  78. define('DPSERVER_COOKIE_NAME''dutchpipe');
  79.  
  80. /**
  81.  * The timezone for the DutchPIPE site
  82.  *
  83.  * Use an identifier as definied by
  84.  * {@link http://www.php.net/manual/en/timezones.php}.
  85.  */
  86. define('DPSERVER_TIMEZONE''Europe/Amsterdam');
  87.  
  88. /**
  89.  * Type of socket {@link dpserver.php} and {@link dpclient.php} use to
  90.  * communicate
  91.  *
  92.  * See {@link http://www.php.net/socket_create} for more information.
  93.  * For *NIX, use AF_UNIX, for Windows, use AF_INET. AF_UNIX is a file based
  94.  * socket, AF_INET uses a local connection (can be remote but that is untested).
  95.  * AF_UNIX is much faster but isn't supported on Windows.
  96.  *
  97.  * @see        DPSERVER_SOCKET_PATH, DPSERVER_SOCKET_ADDRESS,
  98.  *              DPSERVER_SOCKET_PORT, DPSERVER_MAX_SOCKET_BACKLOG,
  99.  *              DPSERVER_SOCKERR_MSG
  100.  */
  101. define('DPSERVER_SOCKET_TYPE'AF_INET);
  102. //define('DPSERVER_SOCKET_TYPE', AF_UNIX);
  103.  
  104. /**
  105.  * Path to the file used for socket connections
  106.  *
  107.  * This file socket is used beween {@link dpserver.php} and {@link dpclient.php}
  108.  * for AF_UNIX type. Reads and writes to this open file to communicate.
  109.  *
  110.  * @see        DPSERVER_SOCKET_TYPE, DPSERVER_SOCKET_ADDRESS,
  111.  *              DPSERVER_SOCKET_PORT, DPSERVER_MAX_SOCKET_BACKLOG,
  112.  *              DPSERVER_SOCKERR_MSG
  113.  */
  114. define('DPSERVER_SOCKET_PATH''/tmp/dutchpipe.sock');
  115.  
  116. /**
  117.  * IP address for AF_INET type
  118.  *
  119.  * If you run DutchPIPE on Windows, this value will always be used in
  120.  * combination with {@link DPSERVER_SOCKET_PORT}. The DutchPIPE server will run
  121.  * on your machine using the address and port number provided.
  122.  *
  123.  * @see        DPSERVER_SOCKET_TYPE, DPSERVER_SOCKET_PATH,
  124.  *              DPSERVER_SOCKET_PORT, DPSERVER_MAX_SOCKET_BACKLOG,
  125.  *              DPSERVER_SOCKERR_MSG
  126.  */
  127. define('DPSERVER_SOCKET_ADDRESS''127.0.0.1');
  128.  
  129. /**
  130.  * Port number for AF_INET type
  131.  *
  132.  * If you run DutchPIPE on Windows, this value will always be used in
  133.  * combination with {@link DPSERVER_SOCKET_ADDRESS}. The DutchPIPE server will
  134.  * run on your machine using the address and port number provided. You should
  135.  * check if the port number is not in use by another application.
  136.  *
  137.  * @see        DPSERVER_SOCKET_TYPE, DPSERVER_SOCKET_PATH,
  138.  *              DPSERVER_SOCKET_ADDRESS, DPSERVER_MAX_SOCKET_BACKLOG,
  139.  *              DPSERVER_SOCKERR_MSG
  140.  */
  141. define('DPSERVER_SOCKET_PORT''3333');
  142.  
  143. /*
  144.  * If you just installed DutchPIPE, haven't changed the directory structure
  145.  * and just want it up and running, you're done here. Now adjust
  146.  * {@link dpuniverse-ini.php}. If you want multilingual support, see further
  147.  * below.
  148.  */
  149.  
  150. /**
  151.  * The maximum of backlog incoming connections queued for processing
  152.  *
  153.  * Used by socket_listen in dpserver.php. See
  154.  * {@link http://www.php.net/socket_listen} for more information.
  155.  *
  156.  * You should probably leave this untouched.
  157.  *
  158.  * @see        DPSERVER_SOCKET_TYPE, DPSERVER_SOCKET_PATH,
  159.  *              DPSERVER_SOCKET_ADDRESS, DPSERVER_SOCKET_PORT
  160.  */
  161. define('DPSERVER_MAX_SOCKET_BACKLOG'5);
  162.  
  163. /**
  164.  * Path to the root of the DutchPIPE installation
  165.  *
  166.  * Defaults to the mother directory of the directory this file is in.
  167.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  168.  */
  169. define('DPSERVER_ROOT_PATH'realpath(dirname(__FILE__'/..''/');
  170.  
  171. /**
  172.  * Path to the root of the DutchPIPE universe
  173.  *
  174.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  175.  */
  176. define('DPSERVER_DPUNIVERSE_PATH'DPSERVER_ROOT_PATH 'dpuniverse/');
  177.  
  178. /**
  179.  * Path to the directory with server and universe settings
  180.  *
  181.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  182.  */
  183. define('DPSERVER_DPUNIVERSE_CONFIG_PATH'DPSERVER_ROOT_PATH 'config/');
  184.  
  185. /**
  186.  * Path to the library directory
  187.  *
  188.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  189.  */
  190. define('DPSERVER_LIB_PATH'DPSERVER_ROOT_PATH 'lib/');
  191.  
  192. /**
  193.  * Path to the file with the DutchPIPE Server class
  194.  *
  195.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  196.  */
  197. define('DPSERVER_DPSERVERCLASS_PATH'DPSERVER_LIB_PATH 'dpserver.php');
  198.  
  199. /**
  200.  * Path to the file with the DutchPIPE Universe class
  201.  *
  202.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  203.  */
  204. define('DPSERVER_DPUNIVERSECLASS_PATH'DPSERVER_LIB_PATH 'dpuniverse.php');
  205.  
  206. /**
  207.  * Path to the directory with HTML templates
  208.  *
  209.  * Leave this untouched if the DutchPIPE directory structure wasn't changed.
  210.  *
  211.  * @see        DPSERVER_TEMPLATE_FILE, DPSERVER_TEMPLATE_DOWN_FILE
  212.  */
  213. define('DPSERVER_TEMPLATE_PATH'DPSERVER_ROOT_PATH 'template/');
  214.  
  215. if (!defined('DPSERVER_TEMPLATE_FILE')) {
  216.     /**
  217.      * Filename of the default template in the {@link DPSERVER_TEMPLATE_PATH}
  218.      * directory
  219.      *
  220.      * @see        DPSERVER_TEMPLATE_PATH, DPSERVER_TEMPLATE_DOWN_FILE
  221.      */
  222.     define('DPSERVER_TEMPLATE_FILE''dpdefault.tpl');
  223. }
  224.  
  225. /**
  226.  * Filename of the template in the {@link DPSERVER_TEMPLATE_PATH}
  227.  * directory used when the DutchPIPE server is down.
  228.  *
  229.  * @see        DPSERVER_TEMPLATE_PATH, DPSERVER_TEMPLATE_FILE
  230.  */
  231. define('DPSERVER_TEMPLATE_DOWN_FILE''dpdown.tpl');
  232.  
  233. /**
  234.  * Enable internationalization/localization support with dynamic gettext?
  235.  *
  236.  * This has a speed penalty. Set to TRUE to enable or FALSE to disable.
  237.  *
  238.  * Different languages are supported using GNU gettext, see
  239.  * {@link http://www.php.net/gettext}. Because PHP is an interpreted language,
  240.  * gettext slows things down as calls are dynamic (although it's quite fast).
  241.  * There are some tools around to make static PHP translations, but this has not
  242.  * been explored yet. Also, it is not yet possible to have multiple users use
  243.  * different languages on one site. It's in one language.
  244.  *
  245.  * Currently, standard English ("en") and Dutch ("nl_NL")  are part of the
  246.  * standard distribution. Also, all texts to translate are in only one file
  247.  * called messages.po (this will change in the future).
  248.  *
  249.  * If you'd like to translate for DutchPIPE, base your translation on
  250.  * locale/en/LC_MESSAGES/messages.po and please mail your results to
  251.  * contributors@dutchpipe.org. As I did with the Dutch translation, you'll
  252.  * probably run into a couple of problems getting it exactly right, because
  253.  * of presumptions made by the English language system. Please let us know
  254.  * so this can be fixed.
  255.  *
  256.  * @see        DPSERVER_GETTEXT_LOCALE_PATH, DPSERVER_GETTEXT_DOMAIN,
  257.  *              DPSERVER_GETTEXT_ENCODING, DPSERVER_LOCALE, DPSERVER_LOCALE_FULL,
  258.  *              DPSERVER_ENABLE_MBSTRING
  259.  */
  260. define('DPSERVER_GETTEXT_ENABLED'FALSE);
  261.  
  262. /**
  263.  * Path to the directory with translations
  264.  *
  265.  * Used when gettext is enabled.
  266.  *
  267.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_DOMAIN,
  268.  *              DPSERVER_GETTEXT_ENCODING, DPSERVER_LOCALE, DPSERVER_LOCALE_FULL,
  269.  *              DPSERVER_ENABLE_MBSTRING
  270.  */
  271. define('DPSERVER_GETTEXT_LOCALE_PATH'DPSERVER_ROOT_PATH 'locale/');
  272.  
  273. /**
  274.  * Name of translation table (the "domain" in GNU gettext jargon)
  275.  *
  276.  * Used when gettext is enabled.
  277.  *
  278.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_LOCALE_PATH,
  279.  *              DPSERVER_GETTEXT_ENCODING, DPSERVER_LOCALE, DPSERVER_LOCALE_FULL,
  280.  *              DPSERVER_ENABLE_MBSTRING
  281.  */
  282. define('DPSERVER_GETTEXT_DOMAIN''messages');
  283.  
  284. /**
  285.  * Gettext character encoding
  286.  *
  287.  * Used when gettext is enabled.
  288.  * DutchPIPE uses UTF-8 but I'm not sure how this works for other languages
  289.  *
  290.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_LOCALE_PATH,
  291.  *              DPSERVER_GETTEXT_DOMAIN, DPSERVER_LOCALE, DPSERVER_LOCALE_FULL,
  292.  *              DPSERVER_ENABLE_MBSTRING
  293.  */
  294. define('DPSERVER_GETTEXT_ENCODING''UTF-8');
  295.  
  296. /**
  297.  * Used when gettext is enabled, defines a "locale" supported by DutchPIPE
  298.  *
  299.  * Different systems have different naming schemes for locales, see
  300.  * {@link setlocale}.
  301.  *
  302.  * Use the '0' string to leave the locale settings untouched and use the
  303.  * default language (English in the standard distribution of DutchPIPE).
  304.  *
  305.  * To use one of the translations included in the standard DutchPIPE
  306.  * distribution, outcomment the first define which sets DPSERVER_LOCALE to '0',
  307.  * and remove comment characters from the language in the list below.
  308.  *
  309.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_LOCALE_PATH,
  310.  *              DPSERVER_GETTEXT_DOMAIN, DPSERVER_GETTEXT_ENCODING,
  311.  *              DPSERVER_LOCALE_FULL, DPSERVER_ENABLE_MBSTRING
  312.  */
  313. define('DPSERVER_LOCALE''0');
  314. //define('DPSERVER_LOCALE', 'nl_NL');
  315.  
  316. /**
  317.  * Multibyte string handling enabled?
  318.  *
  319.  * Enables your site to handle all UTF-8 chars, so people can communicate for
  320.  * example in East Asian languages. PHP must have the multibyte extension
  321.  * enabled if set to TRUE, otherwise this setting is ignored. Set to FALSE to
  322.  * disable.
  323.  *
  324.  * See also: http://www.php.net/manual/en/ref.mbstring.php
  325.  *
  326.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_LOCALE_PATH,
  327.  *              DPSERVER_GETTEXT_DOMAIN, DPSERVER_GETTEXT_ENCODING,
  328.  *              DPSERVER_LOCALE_FULL, DPSERVER_LOCALE
  329.  * @since      DutchPIPE 0.4.0
  330.  */
  331. define('DPSERVER_ENABLE_MBSTRING'TRUE);
  332.  
  333. /**
  334.  * You probably don't need to touch this
  335.  *
  336.  * @see        DPSERVER_GETTEXT_ENABLED, DPSERVER_GETTEXT_LOCALE_PATH,
  337.  *              DPSERVER_GETTEXT_DOMAIN, DPSERVER_GETTEXT_ENCODING,
  338.  *              DPSERVER_LOCALE
  339.  */
  340. define('DPSERVER_LOCALE_FULL'DPSERVER_LOCALE == '0'
  341.     ? '0' DPSERVER_LOCALE '.' DPSERVER_GETTEXT_ENCODING);
  342.  
  343. /**
  344.  * Don't touch this
  345.  *
  346.  * @access     private
  347.  */
  348. require_once(DPSERVER_LIB_PATH 'dptext.php');
  349.  
  350. /**
  351.  * The maximum number of seconds the server can stay up, 0 for no limit
  352.  */
  353. define('DPSERVER_MAXUPTIME'0);
  354.  
  355. /**
  356.  * The message shown in case of a socket error
  357.  *
  358.  * This usually means the server is down.
  359.  *
  360.  * @see        DPSERVER_SOCKET_TYPE, DPSERVER_SOCKET_PATH,
  361.  *              DPSERVER_SOCKET_ADDRESS, DPSERVER_SOCKET_PORT,
  362.  *              DPSERVER_MAX_SOCKET_BACKLOG
  363.  */
  364. define('DPSERVER_SOCKERR_MSG'dp_text('The DutchPIPE server is down'));
  365.  
  366. /**
  367.  * Error reporting level
  368.  *
  369.  * Which PHP errors to report, according to
  370.  * {@link http://www.php.net/manual/en/ref.errorfunc.php#errorfunc.constants}
  371.  *
  372.  * By default all messages including "strict" messages are shown.
  373.  *
  374.  * @see        DPSERVER_DEBUG_TYPE
  375.  */
  376. define('DPSERVER_ERROR_REPORTING'E_ALL E_STRICT);
  377.  
  378. /**
  379.  * Debug information modifier - don't show debug information
  380.  *
  381.  * Used by {@link DPSERVER_DEBUG_TYPE}. Don't change this.
  382.  *
  383.  * @see        DPSERVER_DEBUG_TYPE, DPSERVER_DEBUG_TYPE_MEMORY_GET_USAGE,
  384.  *              DPSERVER_DEBUG_TYPE_GETRUSAGE
  385.  */
  386. define('DPSERVER_DEBUG_TYPE_NONE'1);
  387.  
  388. /**
  389.  * Debug information modifier - show info line with memory and object counters
  390.  *
  391.  * *NIX only, doesn't work under Windows.
  392.  * Used by {@link DPSERVER_DEBUG_TYPE}. Don't change this.
  393.  *
  394.  * @see        DPSERVER_DEBUG_TYPE, DPSERVER_DEBUG_TYPE_NONE,
  395.  *              DPSERVER_DEBUG_TYPE_GETRUSAGE
  396.  */
  397. define('DPSERVER_DEBUG_TYPE_MEMORY_GET_USAGE'2);
  398.  
  399. /**
  400.  * Debug information modifier - show info based on *nix getrusage
  401.  *
  402.  * *NIX only, doesn't work under Windows.
  403.  * Used by {@link DPSERVER_DEBUG_TYPE}. Don't change this.
  404.  *
  405.  * @see        DPSERVER_DEBUG_TYPE, DPSERVER_DEBUG_TYPE_NONE,
  406.  *              DPSERVER_DEBUG_TYPE_MEMORY_GET_USAGE
  407.  */
  408. define('DPSERVER_DEBUG_TYPE_GETRUSAGE'3);
  409.  
  410. /**
  411.  * Debug information settings
  412.  *
  413.  * What kind of debug information should the server echo to the CLI/shell when
  414.  * running? The DPSERVER_DEBUG_TYPE must be one of:
  415.  *
  416.  * - {@link DPSERVER_DEBUG_TYPE_NONE}<br>
  417.  *   Don't show debug information. You must use this under Windows.
  418.  * - {@link DPSERVER_DEBUG_TYPE_MEMORY_GET_USAGE}<br>
  419.  *   Show info line with memory and object counters. *NIX only, doesn't work
  420.  *   under Windows.
  421.  * - {@link DPSERVER_DEBUG_TYPE_GETRUSAGE}<br>
  422.  *   Show info based on *nix getrusage. *NIX only, doesn't work under Windows.
  423.  *
  424.  * @see        DPSERVER_DEBUG_TYPE_NONE, DPSERVER_DEBUG_TYPE_MEMORY_GET_USAGE,
  425.  *              DPSERVER_DEBUG_TYPE_GETRUSAGE, DPSERVER_ERROR_REPORTING
  426.  */
  427. define('DPSERVER_DEBUG_TYPE'DPSERVER_DEBUG_TYPE_NONE);
  428.  
  429. /**
  430.  * Use base64_encode/decode on dpclient -> dpserver communication?
  431.  *
  432.  * If you are getting "unserialize" errors, set to TRUE. This has a small speed
  433.  * penalty.
  434.  *
  435.  * @see        DPSERVER_BASE64_SERVER2CLIENT
  436.  */
  437. define('DPSERVER_BASE64_CLIENT2SERVER'TRUE);
  438.  
  439. /**
  440.  * Use base64_encode/decode on dpserver -> dpclient communication?
  441.  *
  442.  * This has a small speed penalty.
  443.  *
  444.  * @see        DPSERVER_BASE64_CLIENT2SERVER
  445.  */
  446. define('DPSERVER_BASE64_SERVER2CLIENT'TRUE);
  447.  
  448. /**
  449.  * Maximum number of bytes {@link dpclient.php} can read from
  450.  * {@link dpserver.php} per chunk
  451.  *
  452.  * You should probably leave this untouched.
  453.  *
  454.  * @see        DPSERVER_SERVER_CHUNK
  455.  */
  456. define('DPSERVER_CLIENT_CHUNK'2048);
  457.  
  458. /**
  459.  * Maximum number of bytes {@link dpserver.php} can read from
  460.  * {@link dpclient.php} per chunk
  461.  *
  462.  * You should probably leave this untouched.
  463.  *
  464.  * @see        DPSERVER_CLIENT_CHUNK
  465.  */
  466. define('DPSERVER_SERVER_CHUNK'2048);
  467.  
  468. /**
  469.  * Maximum memory usage
  470.  *
  471.  * Memory limit in bytes that the server may allocate. Use -1 for unlimited.
  472.  * When an integer is used, the value is measured in bytes. You may also use
  473.  * shorthand notation as described in this FAQ:
  474.  * http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
  475.  *
  476.  * See also: http://www.php.net/manual/en/ini.core.php#ini.memory-limit
  477.  */
  478. define('DPSERVER_MEMORY_LIMIT''32M');
  479.  
  480. /**
  481.  * Apache minimal deflate/gzip size
  482.  *
  483.  * If you are using Apache's mod_deflate (or mod_gzip), even small Ajax requests
  484.  * are compressed, which is not effective. You can set a minimal size in bytes
  485.  * here the content of the request should have (200 is a good size). The
  486.  * DutchPIPE client will use the following PHP function call for small requests:
  487.  *    apache_setenv('no-gzip', '1');
  488.  * Set to FALSE if you're not running Apache with output compression or if you
  489.  * don't want to use this feature.
  490.  */
  491. define('DPSERVER_APACHE_GZIP_MIN'FALSE);
  492. //define('DPSERVER_APACHE_GZIP_MIN', 200);
  493.  
  494. /**
  495.  * Maximum width of object images in pixels
  496.  *
  497.  * @see        DPSERVER_OBJECT_IMAGE_MAX_HEIGHT
  498.  */
  499. define('DPSERVER_OBJECT_IMAGE_MAX_WIDTH'95);
  500.  
  501. /**
  502.  * Maximum height of object images in pixels
  503.  *
  504.  * @see        DPSERVER_OBJECT_IMAGE_MAX_WIDTH
  505.  */
  506. define('DPSERVER_OBJECT_IMAGE_MAX_HEIGHT'100);
  507.  
  508. /**
  509.  * Comma separated list of file extensions allowed for custom avatars and images
  510.  *
  511.  * @see        DPSERVER_OBJECT_IMAGE_CUSTOM_MAX_SIZE
  512.  */
  513. define('DPSERVER_OBJECT_IMAGE_VALID_TYPES''gif,jpg,png');
  514.  
  515. /**
  516.  * Maximum size in bytes of custom image uploads for avatars and other images
  517.  *
  518.  * @see        DPSERVERE_OBJECT_IMAGE_VALID_TYPES
  519.  */
  520. define('DPSERVER_OBJECT_IMAGE_CUSTOM_MAX_SIZE'1048576);
  521.  
  522. /**
  523.  * Maximum time in seconds the user can browse for a file during AJAX upload
  524.  *
  525.  * Browsing causes scripts to halt in a browser, and we don't want to throw
  526.  * people out. This should be a bigger number than
  527.  * DPUNIVERSE_LINKDEATH_KICKTIME.
  528.  *
  529.  * @see        DPUNIVERSE_LINKDEATH_KICKTIME
  530.  */
  531. define('DPSERVER_OBJECT_IMAGE_CUSTOM_MAX_BROWSETIME'60);
  532. ?>

Documentation generated on Mon, 03 Sep 2007 22:20:35 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#212
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.