Vergleich admin/dbtools.php - 1.2.1 - 1.2.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright © 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright © 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *
* $Id$
*/

 *
* $Id$
*/

Zeile 106Zeile 106
	}

$time = date('dS F Y \a\t H:i', time());

	}

$time = date('dS F Y \a\t H:i', time());

	$header = "-- MyBB Database Backup\n-- Generated: ".$time."\n---------------------------------------\n\n";

	$header = "-- MyBB Database Backup\n-- Generated: ".$time."\n-- -------------------------------------\n\n";

	$contents = $header;
foreach($mybb->input['tables'] as $table)
{

	$contents = $header;
foreach($mybb->input['tables'] as $table)
{

Zeile 119Zeile 119
		$fields = implode(",", $field_list);
if($mybb->input['contents'] != 'data')
{

		$fields = implode(",", $field_list);
if($mybb->input['contents'] != 'data')
{

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

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

			$contents .= $structure;

			$contents .= $structure;

 
			seq_backup($fp, $contents);

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

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

Zeile 133Zeile 134
				{
if(!isset($row[$field]) || trim($row[$field]) == "")
{

				{
if(!isset($row[$field]) || trim($row[$field]) == "")
{

						$insert .= $comma.'NULL';

						$insert .= $comma."''";

					}
else
{

					}
else
{

Zeile 141Zeile 142
					}
$comma = ',';
}

					}
$comma = ',';
}

				$insert .= ")\n";

				$insert .= ");\n";

				$contents .= $insert;

				$contents .= $insert;

 
				seq_backup($fp, $contents);

			}
}
}

			}
}
}

Zeile 462Zeile 464
	echo "</td>\n";
echo "</tr>\n";
makeyesnocode($lang->analyse_optimise, 'analyse');

	echo "</td>\n";
echo "</tr>\n";
makeyesnocode($lang->analyse_optimise, 'analyse');

 
	makeyesnocode($lang->sequential_backup, 'sequential_backup');

	endtable();
endform($lang->perform_backup);
cpfooter();

	endtable();
endform($lang->perform_backup);
cpfooter();

 
}

function seq_backup($fp, &$contents)
{
global $mybb;

if($mybb->input['sequential_backup'] == 'yes')
{
if($mybb->input['write'] == 'disk')
{
if($mybb->input['type'] == 'gzip')
{
gzwrite($fp, $contents);
}
else
{
fwrite($fp, $contents);
}
}
else
{
if($mybb->input['type'] == "gzip")
{
echo gzencode($contents);
}
else
{
echo $contents;
}
}

$contents = '';
}

}
?>

}
?>