Vergleich admin/modules/tools/backupdb.php - 1.8.10 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 94Zeile 94

if($mybb->input['action'] == "delete")
{


if($mybb->input['action'] == "delete")
{

	if($mybb->input['no'])

	if($mybb->get_input('no'))

	{
admin_redirect("index.php?module=tools-backupdb");
}

	{
admin_redirect("index.php?module=tools-backupdb");
}

Zeile 141Zeile 141

if($mybb->request_method == "post")
{


if($mybb->request_method == "post")
{

		if(!is_array($mybb->input['tables']))

		if(empty($mybb->input['tables']) || !is_array($mybb->input['tables']))

		{
flash_message($lang->error_tables_not_selected, 'error');
admin_redirect("index.php?module=tools-backupdb&action=backup");

		{
flash_message($lang->error_tables_not_selected, 'error');
admin_redirect("index.php?module=tools-backupdb&action=backup");

Zeile 219Zeile 219
			{
$structure = $db->show_create_table($table).";\n";
$contents .= $structure;

			{
$structure = $db->show_create_table($table).";\n";
$contents .= $structure;

				clear_overflow($fp, $contents);






if(isset($fp))
{
clear_overflow($fp, $contents);
}

			}

if($mybb->input['contents'] != 'structure')

			}

if($mybb->input['contents'] != 'structure')

Zeile 242Zeile 246
						if(!isset($row[$field]) || is_null($row[$field]))
{
$insert .= $comma."NULL";

						if(!isset($row[$field]) || is_null($row[$field]))
{
$insert .= $comma."NULL";

						}

						}

						else if($db->engine == 'mysqli')
{
$insert .= $comma."'".mysqli_real_escape_string($db->read_link, $row[$field])."'";

						else if($db->engine == 'mysqli')
{
$insert .= $comma."'".mysqli_real_escape_string($db->read_link, $row[$field])."'";

						}

						}

						else
{
$insert .= $comma."'".$db->escape_string($row[$field])."'";

						else
{
$insert .= $comma."'".$db->escape_string($row[$field])."'";

Zeile 255Zeile 259
					}
$insert .= ");\n";
$contents .= $insert;

					}
$insert .= ");\n";
$contents .= $insert;

					clear_overflow($fp, $contents);






if(isset($fp))
{
clear_overflow($fp, $contents);
}

				}
$db->free_result($query);
}

				}
$db->free_result($query);
}