Vergleich admin/dbtools.php - 1.2.2 - 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 121Zeile 121
		{
$structure = $db->show_create_table($table).";\n";
$contents .= $structure;

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

 
			seq_backup($fp, $contents);

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

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

Zeile 143Zeile 144
				}
$insert .= ");\n";
$contents .= $insert;

				}
$insert .= ");\n";
$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 = '';
}

}
?>

}
?>