diff --git a/oc454/apps/files_sharing_widget/lib/widgethelper.php b/oc454/apps/files_sharing_widget/lib/widgethelper.php index 4e51e35..ccead32 100644 --- a/oc454/apps/files_sharing_widget/lib/widgethelper.php +++ b/oc454/apps/files_sharing_widget/lib/widgethelper.php @@ -102,7 +102,7 @@ public static function loadTemplateReal($WIDTH="770",$HEIGHT="570",$TITLE='Zeus- \n \n \n - \n\n + \n\n \n \n
\n diff --git a/oc454/apps/files_sharing_widget/templates/settings.php b/oc454/apps/files_sharing_widget/templates/settings.php index abb14cc..7a23100 100644 --- a/oc454/apps/files_sharing_widget/templates/settings.php +++ b/oc454/apps/files_sharing_widget/templates/settings.php @@ -55,7 +55,7 @@ cssAddWidget:{'width':670,'height':400} } - + diff --git a/oc454/apps/files_sharing_widget/widgetloader.php b/oc454/apps/files_sharing_widget/widgetloader.php deleted file mode 100644 index cc8af3d..0000000 --- a/oc454/apps/files_sharing_widget/widgetloader.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * - */ -$cleanText='widgetloader.php'; -$pathload=str_replace($cleanText,'',$_SERVER['REQUEST_URI']); -$pathload= webUrl().$pathload."js/widget.js"; -//print $pathload; -header ("Content-type: text/javascript"); -readfile($pathload); - - - function webUrl() { - - if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { - $proto = 'https'; - $host=$_SERVER['HTTP_X_FORWARDED_HOST'].'/'.$_SERVER['SERVER_NAME']; - }else{ - if(isset($_SERVER['HTTPS']) and !empty($_SERVER['HTTPS']) and ($_SERVER['HTTPS']!='off')) { - $proto = 'https'; - }else{ - $proto = 'http'; - } - $host = $_SERVER['HTTP_HOST']; - } - return $proto.'://'.$host; - } - -?> \ No newline at end of file diff --git a/oc454/widgetloader.php b/oc454/widgetloader.php new file mode 100644 index 0000000..0fd42f9 --- /dev/null +++ b/oc454/widgetloader.php @@ -0,0 +1,16 @@ + + * + * + */ + +$pathload= "apps/files_sharing_widget/js/widget.full.js"; + +header ("Content-type: text/javascript"); +readfile($pathload); + +?> \ No newline at end of file