yamcsha

ImgLib config - Zend

Jun 26th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. /*
  2.   http://www.imglib.endofinternet.net/
  3.   imglib/include/lang/config.php
  4. */
  5.  
  6. // Initialize config
  7. $CFG = (object) true;
  8.  
  9. /*
  10.  * Enable debug output to browser
  11.  * In work configuration must be false with security reasons
  12.  */
  13. $CFG->debug = false;
  14.  
  15. /*
  16.  * Full path to a directory which holds the images.
  17.  */
  18. $CFG->imgUploadDir = realpath(dirname(__FILE__)) . '/../../../upload/pages';
  19.  
  20. /*
  21.  * An absolute or relative URL to the image folder WITHOUT end slash.
  22.  * This url is used to generate the source URL of the image.
  23.  */
  24. require_once('Zend/Config/Ini.php');
  25. $dynamic       = new Zend_Config_Ini(realpath(dirname(__FILE__) . '/../../..') . '/application/configs/dynamic.ini');
  26. $CFG->imgURL       = $dynamic->global->baseUrl . '/upload/pages';
Advertisement
Add Comment
Please, Sign In to add comment