00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00049 unset($MCONF);
00050 require ("conf.php");
00051 require ($BACK_PATH."init.php");
00052
00053 require_once (PATH_t3lib."class.t3lib_page.php");
00054 $BE_USER->modAccess($MCONF,1);
00055
00056
00057
00065 class SC_mod_web_view_index {
00066 var $MCONF=array();
00067 var $MOD_MENU=array();
00068 var $MOD_SETTINGS=array();
00069
00070 var $perms_clause;
00071 var $modTSconfig;
00072 var $type;
00073 var $pageinfo;
00074 var $url;
00075 var $id;
00076
00080 function init() {
00081 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
00082 $this->MCONF = $GLOBALS["MCONF"];
00083 $this->id = intval(t3lib_div::_GP("id"));
00084
00085 $this->perms_clause = $BE_USER->getPagePermsClause(1);
00086
00087
00088 $this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id,"mod.".$this->MCONF["name"]);
00089 $this->type = intval($this->modTSconfig["properties"]["type"]);
00090 }
00091
00097 function main() {
00098 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
00099
00100
00101 $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
00102 $access = is_array($this->pageinfo) ? 1 : 0;
00103 $addCmd="";
00104 if ($this->id && $access) {
00105 $addCmd = "&ADMCMD_view=1&ADMCMD_editIcons=1".t3lib_BEfunc::ADMCMD_previewCmds($this->pageinfo);
00106 }
00107
00108 $parts = parse_url(t3lib_div::getIndpEnv("TYPO3_SITE_URL"));
00109 $dName = t3lib_BEfunc::getDomainStartPage($parts["host"],$parts["path"]) ?
00110 t3lib_BEfunc::firstDomainRecord(t3lib_BEfunc::BEgetRootLine($this->id)):
00111 "";
00112
00113 $this->url.= ($dName?(t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https:
00114
00115 }
00116
00122 function printContent() {
00123 Header("Location: ".t3lib_div::locationHeaderUrl($this->url));
00124 }
00125 }
00126
00127
00128 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/viewpage/view/index.php"]) {
00129 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/viewpage/view/index.php"]);
00130 }
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144 $SOBE = t3lib_div::makeInstance("SC_mod_web_view_index");
00145 $SOBE->init();
00146 $SOBE->main();
00147 $SOBE->printContent();
00148 ?>