[evolvis-commits] r11295:=?UTF-8?Q?=20didn=EF=BF=BDt=20work=20on=20htt?==?UTF-8?Q?ps=20?=( redirection?) ↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 18:07:05 CET 2011


Author: mirabilos
Date: 2011-02-24 18:07:05 +0100 (Thu, 24 Feb 2011)
New Revision: 11295

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/www/forum/include/ForumHTML.class
Log:
didn�t work on https (redirection?)


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/forum/include/ForumHTML.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/forum/include/ForumHTML.class	2011-02-24 17:07:04 UTC (rev 11294)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/forum/include/ForumHTML.class	2011-02-24 17:07:05 UTC (rev 11295)
@@ -461,6 +461,12 @@
 		$g =& $this->Forum->getGroup();
 		$group_id = $g->getID();
 		
+		if (strtoupper(getStringFromServer('HTTPS')) == 'ON') {
+			$http = "https://";
+		} else {
+			$http = "http://";
+		}
+		
 		if ($this->Forum->userCanPost()) { // minor control, but anyways it should be an admin at this point
 			echo notepad_func();
 			$text_support = new TextSupport(); //for BBCODE
@@ -491,7 +497,7 @@
 				<?php
 				//plugin_hook("text_editor");
 				$oFCKeditor = new FCKeditor('body') ;
-				$oFCKeditor->BasePath = 'http://' . $sys_default_domain  . '/include/fckeditor/';
+				$oFCKeditor->BasePath = $http . $sys_default_domain  . '/include/fckeditor/';
 				$oFCKeditor->Value = $body;
 				$oFCKeditor->Width = "800";
 				$oFCKeditor->Height = "500";
@@ -522,6 +528,12 @@
 	function showPostForm($thread_id=0, $is_followup_to=0, $subject="") {
 		global $Language,$sys_default_domain;
 
+			if (strtoupper(getStringFromServer('HTTPS')) == 'ON') {
+				$http = "https://";
+			} else {
+				$http = "http://";
+			}
+		
 		if ($this->Forum->userCanPost()) {
 			if ($subject) {
 				//if this is a followup, put a RE: before it if needed
@@ -553,7 +565,7 @@
 			<?php 
 				//plugin_hook("text_editor");
 				$oFCKeditor = new FCKeditor('body') ;
-				$oFCKeditor->BasePath = 'http://' . $sys_default_domain  . '/include/fckeditor/';
+				$oFCKeditor->BasePath = $http . $sys_default_domain  . '/include/fckeditor/';
 				$oFCKeditor->Value = '';
 				$oFCKeditor->Width = "800";
 				$oFCKeditor->Height = "500";



More information about the evolvis-commits mailing list