Project

General

Profile

Feature #14127 » 0000036-db_new.php-bug-36.diff

Administrator Admin, 2005-03-08 16:52

View differences:

db_new.php 8 Mar 2005 15:50:22 -0000
// Setting GPvars:
$this->id = intval(t3lib_div::_GP('id')); // The page id to operate from
$this->returnUrl = t3lib_div::_GP('returnUrl');
if(!stristr($this->returnUrl, 'index.php')) {
$uParts = parse_url($this->returnUrl);
$fI = t3lib_div::split_fileref($uParts['path']);
if (!$fI['path'] && $fI['file'] && substr($fI['file'],-5)=='.html') {
$parts = explode('.',$fI['file']);
$pCount = count($parts);
if ($pCount>2) {
$type = intval($parts[$pCount-2]);
$id = $parts[$pCount-3];
} else {
$type = 0;
$id = $parts[0];
}
}
$this->returnUrl = $fI['path'].'index.php?id='.$id.'&type='.$type.'&'.$uParts['query'];
}
$this->pagesOnly = t3lib_div::_GP('pagesOnly');
// Create instance of template class for output
(4-4/4)