Guest User

Untitled

a guest
Dec 20th, 2012
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. if (isset($_SERVER['SERVER_PORT'])) {
  2. if (($_SERVER['SERVER_PORT'] != 80) &&
  3. ($_SERVER['SERVER_PORT'] != 443)) { if (( isset($_SERVER['HTTPS']) &&
  4. $_SERVER['HTTPS'] == 'on' )) { $prefs['https_port'] = (int)
  5. $_SERVER['SERVER_PORT']; } else {
  6. $prefs['http_port'] = (int)
  7. $_SERVER['SERVER_PORT']; }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment