--- typo3/sysext/sys_action/class.tx_sysaction_OLD.php 2005-12-28 11:58:16.000000000 +0100
+++ typo3/sysext/sys_action/class.tx_sysaction.php 2006-01-13 02:21:39.000000000 +0100
@@ -90,7 +90,7 @@
// Types of actions:
switch($actionRow["type"]) {
- case 1:
+ case 1: // new BE user
$actionContent="";
$beRec = t3lib_BEfunc::getRecord("be_users",intval($actionRow["t1_copy_of_user"]));
if (is_array($beRec)) {
@@ -113,8 +113,6 @@
$newFlag=1;
}
-
-
// List of users...
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'be_users', 'pid=0 AND cruser_id='.intval($this->BE_USER->user['uid']).' AND createdByAction='.intval($actionRow['uid']).t3lib_BEfunc::deleteClause('be_users'), '', 'username');
$lines = array();
@@ -171,7 +169,7 @@
$theCode.= $this->pObj->doc->section($LANG->getLL("action_error"),''.$LANG->getLL("action_notReady").'',0,1);
}
break;
- case 2:
+ case 2: //SQL query
if (t3lib_extMgm::isLoaded("lowlevel")) {
$sql_query = unserialize($actionRow["t2_data"]);
if (is_array($sql_query) && strtoupper(substr(trim($sql_query["qSelect"]),0,6))=="SELECT") {
@@ -209,11 +207,10 @@
$theCode.= $this->pObj->doc->section($LANG->getLL("action_error"),'The extension "lowlevel" must be installed in order to create a quiry',0,1);
}
break;
- case 3:
- Header("Location: ".t3lib_div::locationHeaderUrl($this->backPath."db_list.php?id=".intval($actionRow["t3_listPid"])."&table=".$actionRow["t3_tables"]));
- exit;
+ case 3: //list records
+ return htmlspecialchars($this->headLInk('tx_taskcenterrootlist', 1)). '
'. $this->urlInIframe($this->backPath."db_list.php?id=".intval($actionRow["t3_listPid"])."&table=".$actionRow["t3_tables"],1);
break;
- case 4:
+ case 4: //edit records
$dbAnalysis = t3lib_div::makeInstance("t3lib_loadDBGroup");
$dbAnalysis->fromTC=0;
$dbAnalysis->start($actionRow["t4_recordsToEdit"],"*");
@@ -233,9 +230,8 @@
$actionContent = '