Project

General

Profile

Bug #20464 ยป 20090518_RFC_11136.diff

Administrator Admin, 2009-05-19 09:31

View differences:

typo3/sysext/lowlevel/class.tx_lowlevel_cleaner.php (working copy)
if (is_array($this->pObj->MOD_MENU['tx_lowlevel_cleaner'])) {
$menu = '';
foreach($this->pObj->MOD_MENU['tx_lowlevel_cleaner'] as $key => $value) {
$menu.='<a href="index.php?id='.intval(t3lib_div::_GP('id')).'&tx_lowlevel_cleaner='.$key.'">'.htmlspecialchars($value).'</a><br/>';
$menu .= '<a href="index.php?id=' . intval(t3lib_div::_GP('id')) . '&tx_lowlevel_cleaner=' . $key . '">' . htmlspecialchars($value) . '</a><br />';
}
return $menu;
}
......
function quickDBlookUp() {
$output = 'Enter [table]:[uid]:[fieldlist (optional)] <input name="table_uid" value="'.htmlspecialchars(t3lib_div::_POST('table_uid')).'" />';
$output.='<input type="submit" name="_" value="REFRESH" /><br/>';
$output .= '<input type="submit" name="_" value="REFRESH" /><br />';
// Show record:
if (t3lib_div::_POST('table_uid')) {
......
if (count($rec)) {
if (t3lib_div::_POST('_EDIT')) {
$output.='<hr/>Edit:<br/><br/>';
$output .= '<hr />Edit:<br /><br />';
foreach($rec as $field => $value) {
$output.= htmlspecialchars($field).'<br/><input name="record['.$table.']['.$uid.']['.$field.']" value="'.htmlspecialchars($value).'" /><br/>';
$output .= htmlspecialchars($field) . '<br /><input name="record[' . $table . '][' . $uid . '][' . $field . ']" value="' . htmlspecialchars($value) . '" /><br />';
}
$output.='<input type="submit" name="_SAVE" value="SAVE" />';
} elseif (t3lib_div::_POST('_SAVE')) {
$incomingData = t3lib_div::_POST('record');
$GLOBALS['TYPO3_DB']->exec_UPDATEquery($table,'uid='.intval($uid),$incomingData[$table][$uid]);
$output.='<br/>Updated '.$table.':'.$uid.'...';
$output .= '<br />Updated ' . $table . ':' . $uid . '...';
$this->updateRefIndex($table,$uid);
} else if (t3lib_div::_POST('_DELETE')) {
$GLOBALS['TYPO3_DB']->exec_DELETEquery($table,'uid='.intval($uid));
$output.='<br/>Deleted '.$table.':'.$uid.'...';
$output .= '<br />Deleted ' . $table . ':' . $uid . '...';
$this->updateRefIndex($table,$uid);
} else {
$output.='<input type="submit" name="_EDIT" value="EDIT" />';
typo3/sysext/lowlevel/config/index.php (working copy)
if (t3lib_div::_GP('varname')) {
$this->content .= '<div id="lowlevel-config-var">
<strong>' . $GLOBALS['LANG']->getLL('variable', true) . '</strong><br />
<input type="text" name="_" value="'.trim(htmlspecialchars(t3lib_div::_GP('varname'))).'" size="120" /><br/>
<input type="text" name="_" value="' . trim(htmlspecialchars(t3lib_div::_GP('varname'))) . '" size="120" /><br />
' . $GLOBALS['LANG']->getLL('copyPaste', true) . '
</div>
';
}
$this->content.= '<br/><table border="0" cellpadding="1" cellspacing="0">';
$this->content.= '<br /><table border="0" cellpadding="1" cellspacing="0">';
$this->content.= '<tr>
<td><img src="clear.gif" width="1" height="1" alt="" /></td>
<td class="bgColor2">
    (1-1/1)