Commit 47e3bb63 authored by tbrehm's avatar tbrehm

Fixed errors in dbsync form.

parent 799e1f97
......@@ -53,7 +53,7 @@ $app->tpl->newTemplate("tabbed_form.tpl.htm");
$app->tform->loadFormDef($tform_def_file);
// ID importieren
$id = intval($_REQUEST["id"]);
$id = @intval($_REQUEST["id"]);
if(count($_POST) > 1) {
......@@ -84,7 +84,7 @@ if(count($_POST) > 1) {
// Welcher Tab wird angezeigt
if($app->tform->errorMessage == '') {
// wenn kein Fehler vorliegt
if($_REQUEST["next_tab"] != '') {
if(isset($_REQUEST["next_tab"]) && $_REQUEST["next_tab"] != '') {
// wenn nächster Tab bekannt
$active_tab = $_REQUEST["next_tab"];
} else {
......
......@@ -81,7 +81,7 @@ foreach($modules_list as $md) {
while ($file = @readdir ($handle)) {
if ($file != '.' && $file != '..' && substr($file, 0, 1) != '.') {
include_once(ISPC_WEB_PATH."/$md/form/$file");
if($form['db_history'] == 'yes') {
if(isset($form['db_history']) && $form['db_history'] == 'yes') {
$tmp_id = $form['db_table'];
$db_tables[$tmp_id] = $form['db_table'];
}
......
......@@ -29,7 +29,7 @@
</tr>
<tr>
<td class="frmText11">{tmpl_var name='db_password_txt'}:</td>
<td class="frmText11"><input name="db_password" type="text" class="text" value="{tmpl_var name='db_password'}" size="30" maxlength="255"></td>
<td class="frmText11"><input name="db_password" type="password" class="text" value="{tmpl_var name='db_password'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td class="frmText11">{tmpl_var name='db_tables_txt'}:</td>
......@@ -55,6 +55,6 @@
<td><input name="btn_save" type="button" class="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/dbsync_edit.php');"><div class="buttonEnding"></div>&nbsp;
<input name="btn_cancel" type="button" class="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/dbsync_list.php');"><div class="buttonEnding"></div>
</td>
</tr>
</table>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -202,7 +202,7 @@ $form["tabs"]['dns_records'] = array (
'class' => 'plugin_listview',
'options' => array(
'listdef' => 'list/dns_a.list.php',
'sqlextwhere' => "zone = ".intval(@$_REQUEST['id']),
'sqlextwhere' => "zone = ".@intval(@$_REQUEST['id']),
'sql_order_by' => "ORDER BY type, name"
)
)
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
......@@ -69,7 +69,7 @@ $form["tabs"]['dns'] = array (
'zone' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'default' => intval($_REQUEST["zone"]),
'default' => @intval($_REQUEST["zone"]),
'value' => '',
'width' => '30',
'maxlength' => '255'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment