intervet

config.php

Mar 19th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. //DB SETTINGS
  3. $DBSERVER = "127.0.0.1";
  4. $DBUSER = "root";
  5. $DBPASS = "";
  6. $DBNAME = "coin";
  7.  
  8. //FORCE SSL
  9. //1 for on. 0 for off
  10. $FORCE_SSL = "0";
  11.  
  12.  
  13. //-------------FUNCTIONS-----------------
  14. //FORCE SSL
  15. if ($FORCE_SSL == 1) {
  16. if($_SERVER["HTTPS"] != "on")
  17. {
  18.     header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
  19.     exit();
  20. } }
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment