Advertisement
Guest User

Untitled

a guest
May 4th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. /**
  2. * Hostname specific wp-config statement
  3. *
  4. * @author Mirco Babini <mirkolofio@gmail.com>
  5. * @uses hostname (): */
  6. if (!function_exists ('hostname')) {
  7. function hostname () { return trim (php_uname ("n")); } } /*
  8. *
  9. * Place these lines before the first cond. statement in wp-load.php
  10. */
  11. $hostname = hostname ();
  12. // var_dump ($hostname); die;
  13. if (file_exists (ABSPATH."wp-config-{$hostname}.php")) {
  14.  
  15. /** Hostname specific wp-config */
  16. require_once (ABSPATH."wp-config-{$hostname}.php");
  17.  
  18. } else /* if (..) { .. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement