Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2. if($_SERVER["HTTP_HOST"] == 'localhost'){
  3. $_SERVER['DOCUMENT_ROOT'] = dirname( __FILE__ );
  4. }
  5. define ('DEBUG_ON', true); // Enable debug logging to web server error log (STDERR)
  6. define ('DEBUG_LEVEL', 1); // Debug level 1 is less noisy and 3 is the most noisy
  7. define ('DEBUG_LOG_FILE', 'timthumb.log'); // Log file
  8.  
  9. define ('BLOCK_EXTERNAL_LEECHERS', false); // If the image or webshot is being loaded on an external site, display a red "No Hotlinking" gif.
  10. define ('ALLOW_EXTERNAL', true); // Allow image fetching from external websites. Will check against ALLOWED_SITES if
  11. // ALLOW_ALL_EXTERNAL_SITES is false
  12. define ('ALLOW_ALL_EXTERNAL_SITES', false);
  13.  
  14. $ALLOWED_SITES = array ('leacocks.com');
  15.  
  16. define ('NOT_FOUND_IMAGE', ''); //Image to serve if any 404 occurs
  17. define ('ERROR_IMAGE', ''); //Image to serve if an error occurs instead of showing error message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement