Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
scripts
examples
www
gcnproxyreal
index.php
1
<?php
2
/**
3
* Gentics Aloha Editor AJAX Gateway
4
* Copyright (c) 2010 Gentics Software GmbH
5
* Licensed unter the terms of http://www.aloha-editor.com/license.html
6
* aloha-sales@gentics.com
7
* Author Haymo Meran h.meran@gentics.com
8
* Author Johannes Schüth j.schuet@gentics.com
9
* Author Tobias Steiner t.steiner@gentics.com
10
*
11
* Testing from the command line:
12
* function getallheaders(){return array('X-Gentics' => 'X');};
13
* https url example: https://google.com/adsense
14
*
15
*/
16
17
/** For Frontend Editing - portal ajax proxy **/
18
19
if
( $_SERVER[
'HTTP_HOST'
] ==
'gportal-dev-dcr-frontend.gentics.com'
|| $_SERVER[
'HTTP_HOST'
] ==
'gportal-dev-fscr-frontend.gentics.com'
) {
20
21
$CMS_SERVERHOST =
'http://gportal-dev-dcr-frontend.gentics.com'
;
22
23
} elseif ( $_SERVER[
'HTTP_HOST'
] ==
'gportal-test-dcr.gentics.com'
|| $_SERVER[
'HTTP_HOST'
] ==
'gportal-test-fscr.gentics.com'
) {
24
25
$CMS_SERVERHOST =
'http://gportal-test-dcr.gentic.com'
;
26
}
else
{
27
$CMS_SERVERHOST =
'http://portaldemo.gentics.com:81'
;
28
}
29
30
$PROXYNAME =
'12345'
;
31
// replaces GET-variable url to path
32
$reset_url =
true
;
33
34
include(
'../gcnproxy/index.php'
);
35
36
?>
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2