Advertisement
Guest User

roundcubeplugin owncloud

a guest
Jul 10th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.64 KB | None | 0 0
  1. mail.php
  2. 172c172
  3. <                   $(\'#roundcubeFrame\').contents().find(\'#mainscreen\').css(\'top\',\'15px\');
  4. ---
  5. >                   //$(\'#roundcubeFrame\').contents().find(\'#mainscreen\').css(\'top\',\'15px\');
  6.  
  7. RoundcubeLogin.class.php
  8. 268c268
  9. <         if ($_COOKIE['roundcube_sessid'])
  10. ---
  11. >         if (isset($_COOKIE['roundcube_sessid']))
  12. 271c271
  13. <         if ($_COOKIE['roundcube_sessauth'])
  14. ---
  15. >         if (isset($_COOKIE['roundcube_sessauth']))
  16. 322,324c322,331
  17. <         $port = ($_SERVER['HTTPS']) ? 443 : 80;
  18. <         $host = ($port == 443) ? "ssl://localhost" : "localhost";
  19. <        
  20. ---
  21. >         //$port = 443;
  22. >       $port = (isset($_SERVER['HTTPS'])) ? 443 : 80;
  23. >       if(isset($_SERVER['HTTP_X_FORWARDED_HOST'])){
  24. >           $port = 443;
  25. >           $host = "ssl://" .$_SERVER['HTTP_X_FORWARDED_HOST'];
  26. >           $reqhost = $_SERVER['HTTP_X_FORWARDED_HOST'];
  27. >       }else{
  28. >           $host = (($port == 443) ? "ssl://" : "").$_SERVER['HTTP_HOST'];
  29. >           $reqhost = $_SERVER['HTTP_HOST'];
  30. >       }
  31. 333c340
  32. <         if (!$_COOKIE['roundcube_sessid'] && $this->rcSessionID)
  33. ---
  34. >         if (!isset($_COOKIE['roundcube_sessid']) && $this->rcSessionID)
  35. 336c343
  36. <         if (!$_COOKIE['roundcube_sessauth'] && $this->rcSessionAuth)
  37. ---
  38. >         if (!isset($_COOKIE['roundcube_sessauth']) && $this->rcSessionAuth)
  39. 345c352
  40. <                 . "Host: ".$_SERVER['HTTP_HOST']."\r\n"
  41. ---
  42. >                 . "Host: ".$reqhost."\r\n"
  43. 359c366
  44. <                 . "Host: ".$_SERVER['HTTP_HOST']."\r\n"
  45. ---
  46. >                 . "Host: ".$reqhost."\r\n"
  47.  
  48. userSettings.php
  49. 12c12
  50. < foreach($params as $param){
  51. ---
  52. > /*foreach($params as $param){
  53. 15c15
  54. < }
  55. ---
  56. > }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement