Guest User

Config.php in the admin folder

a guest
Dec 28th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. // HTTP
  3. define('HTTP_SERVER', 'http://'.$_SERVER['SERVER_NAME'].'/');
  4.  
  5. // HTTPS
  6. define('HTTPS_SERVER', 'https://'.$_SERVER['SERVER_NAME'].'/');
  7.  
  8. // DIR
  9. define('DIR_APPLICATION', '/home/davofvpt/public_html/catalog/');
  10. define('DIR_SYSTEM', '/home/davofvpt/public_html/system/');
  11. define('DIR_IMAGE', '/home/davofvpt/public_html/image/');
  12. define('DIR_STORAGE', '/home/davofvpt/public_html/storage/');
  13. define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
  14. define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
  15. define('DIR_CONFIG', DIR_SYSTEM . 'config/');
  16. define('DIR_CACHE', DIR_STORAGE . 'cache/');
  17. define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
  18. define('DIR_LOGS', DIR_STORAGE . 'logs/');
  19. define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
  20. define('DIR_SESSION', DIR_STORAGE . 'session/');
  21. define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
  22.  
  23. // DB
  24. define('DB_DRIVER', 'mysqli');
  25. define('DB_HOSTNAME', 'localhost');
  26. define('DB_USERNAME', 'davofvpt_ocstar');
  27. define('DB_PASSWORD', '4970251217');
  28. define('DB_DATABASE', 'davofvpt_ocstar');
  29. define('DB_PORT', '3306');
  30. define('DB_PREFIX', 'oc_');
  31.  
  32. // HEADERS
  33. header('Access-Control-Allow-Origin: *');
  34. header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
Add Comment
Please, Sign In to add comment