Skip to content

Commit

Permalink
Proxy the widget javascript to support https
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 29, 2016
1 parent ae68678 commit b1429e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layout/home.html.php
Expand Up @@ -18,7 +18,7 @@
</script>
<!-- End Google Analytics -->
<script type="text/javascript" src="<?php echo $GLOBALS['host_base'] ?>/js/jquery-1.4.4.min.js"></script>
<script src="http://web.horde.org/widget/sidebarJS?url=<?php echo
<script src="//www.horde.org/widget.php?url=<?php echo
urlencode('http://' . @$_SERVER['HTTP_HOST'] . @$_SERVER['REQUEST_URI'])
?>&refererUrl=<?php echo urlencode(@$_SERVER['HTTP_REFERER']) ?>"></script>
</head>
Expand Down
4 changes: 4 additions & 0 deletions widget.php
@@ -0,0 +1,4 @@
<?php
//http://web.horde.org/widget/sidebarJS?url=http://horde.org
echo @file_get_contents('http://web.horde.org/widget/sidebarJS?url=' . @$_GET['url'] . '&refererUrl=' . @$_SERVER['HTTP_REFERRER']);
?>

0 comments on commit b1429e4

Please sign in to comment.