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
00052 $BACK_PATH='';
00053 require ('init.php');
00054 require ('template.php');
00055 $LANG->includeLLFile('EXT:lang/locallang_wizards.xml');
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00074 class SC_wizard_list {
00075
00076
00077 var $pid;
00078
00079
00080 var $P;
00081 var $table;
00082 var $id;
00083
00084
00085
00086
00087
00093 function init() {
00094 $this->P = t3lib_div::_GP('P');
00095 $this->table = t3lib_div::_GP('table');
00096 $this->id = t3lib_div::_GP('id');
00097 }
00098
00105 function main() {
00106
00107
00108 $origRow = t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
00109
00110
00111 $TSconfig = t3lib_BEfunc::getTCEFORM_TSconfig($this->table,is_array($origRow)?$origRow:array('pid'=>$this->P['pid']));
00112
00113
00114 if (substr($this->P['params']['pid'],0,3)=='###' && substr($this->P['params']['pid'],-3)=='###') {
00115 $this->pid = intval($TSconfig['_'.substr($this->P['params']['pid'],3,-3)]);
00116 } else $this->pid = intval($this->P['params']['pid']);
00117
00118
00119 if (!strcmp($this->pid,'') || strcmp($this->id,'')) {
00120 header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
00121 } else {
00122 header('Location: '.t3lib_div::locationHeaderUrl('db_list.php?id='.$this->pid.'&table='.$this->P['params']['table'].'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))));
00123 }
00124 }
00125 }
00126
00127
00128 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/wizard_list.php']) {
00129 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/wizard_list.php']);
00130 }
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144 $SOBE = t3lib_div::makeInstance('SC_wizard_list');
00145 $SOBE->init();
00146 $SOBE->main();
00147 $SOBE->printContent();
00148 ?>