Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 60694 Details for
Bug 175875
The Link boxes in the theme should use absolute paths
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch to implement $App->getWWWPrefix()
patch.txt (text/plain), 2.24 KB, created by
Denis Roy
on 2007-03-13 13:06:51 EDT
(
hide
)
Description:
patch to implement $App->getWWWPrefix()
Filename:
MIME Type:
Creator:
Denis Roy
Created:
2007-03-13 13:06:51 EDT
Size:
2.24 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.phoenix >Index: eclipse.org-common/system/app.class.php >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.phoenix/eclipse.org-common/system/app.class.php,v >retrieving revision 1.20 >diff -u -r1.20 app.class.php >--- eclipse.org-common/system/app.class.php 24 Oct 2006 14:44:16 -0000 1.20 >+++ eclipse.org-common/system/app.class.php 13 Mar 2007 17:04:35 -0000 >@@ -21,6 +21,7 @@ > # Description: Functions and modules related to the application > # > # HISTORY: >+ # 2007-03-13: added WWW_PREFIX functionality, and default class constructor > # > #***************************************************************************** > >@@ -35,10 +36,21 @@ > var $PUB_DOWNLOAD_URL = "http://download.eclipse.org"; > var $DOWNLOAD_BASE_PATH = "/home/data/httpd/download.eclipse.org"; > >+ var $WWW_PREFIX = ""; # default is relative >+ > var $ExtraHtmlHeaders = ""; > > var $THEME_LIST = array("", "Phoenix", "Miasma", "Blue", "Industrial","Lazarus"); > >+ # Default constructor >+ function App() { >+ # Set value for WWW_PREFIX >+ if($_SERVER['SERVER_NAME'] != "www.eclipse.org") { >+ $this->WWW_PREFIX = "http://www.eclipse.org"; >+ } >+ } >+ >+ > function getAppVersion() { > return $this->APPVERSION; > } >@@ -66,6 +78,7 @@ > return $this->DEFAULT_ROW_HEIGHT; > } > >+ > function sendXMLHeader() { > header("Content-type: text/xml"); > } >@@ -82,6 +95,10 @@ > return $this->PUB_DOWNLOAD_URL; > } > >+ function getWWWPrefix() { >+ return $this->WWW_PREFIX; >+ } >+ > function getUserLanguage() { > /* @return: String > * >@@ -140,7 +157,7 @@ > * > */ > >- $currentScript = $_SERVER['SCRIPT_NAME']; >+ $currentScript = $_SERVER['SCRIPT_FILENAME']; > $strLen = strlen($currentScript); > $found = false; > $antiLooper = 0; >@@ -150,8 +167,8 @@ > > > while($strLen > 1 && ! $found) { >- $currentScript = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($currentScript, "/")); >- $testPath = $_SERVER['DOCUMENT_ROOT'] . $currentScript . "/_projectCommon.php"; >+ $currentScript = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($currentScript, "/")); >+ $testPath = $currentScript . "/_projectCommon.php"; > > if(file_exists($testPath)) { > $found = true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 175875
: 60694 |
60699
|
60700
|
60701