Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <?php
  2.  
  3. define('SITE_NAME', 'yoursite.com'); // site name displayed in the header and FAQ/ToS
  4.  
  5. define('SITE_URL', 'admin@email.com'); // the domain ONLY for your site (i.e. without the "upld" folder)
  6. define('SCRIPT_PATH', ''); // folder where the script is located (leave blank if it's in the root directory)
  7.  
  8. // email for contact page
  9. define('CONTACT_EMAIL', 'contact@yoursite.com'); // the email on the contact page
  10. // email to get reports
  11. define('REPORT_EMAIL', 'reports@yoursite.com'); // where emails should be sent if someone reports an image
  12.  
  13. // use domain.com/imageID and i.domain.com/imageID.ext instead of domain.com/view.php?id=imageID and domain.com/images/imageID.ext for shorter URLs?
  14. // WARNING: ONLY enable this if you have configured your webserver to rewrite URLs - see INSTALL.txt
  15. define('FRIENDLY_URLS', false);
  16.  
  17. define('DB_SERVER', 'localhost');
  18. define('DB_USER', 'username');
  19. define('DB_PASS', 'password');
  20. define('DB_NAME', 'upld');
  21. define('DB_PORT', 3306); // usually 3306 by default. If you don't know what this is, leave it alone and ask your hosting company if it doesn't work
  22.  
  23. // allow remote downloads? GD (php5-gd) MUST be enabled for this to work
  24. define('ALLOW_REMOTE', true);
  25.  
  26. // max size in bytes - remember that you might need to change this in your PHP config file too
  27. define('ALLOWED_SIZE', 2000000); // 1000 = 1 kilobyte, 1000000 = 1 megabyte
  28.  
  29. // allow anonymous uploads? set to 0 false to only allow logged in members to upload
  30. define('ANON_UPLOADS', true);
  31.  
  32. // set to true to only allow image downloads from whitelisted URLs (below)
  33. define('URL_WHITELIST', false);
  34.  
  35. $allowed_urls = [
  36. 'i.imgur.com',
  37. 'i.upld.eu'
  38. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement