Vergleich inc/tasks/backupdb.php - 1.4.2 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: backupdb.php 3908 2008-06-13 07:09:05Z Tikitiki $

 * $Id: backupdb.php 4595 2009-12-10 08:00:04Z RyanGordon $

 */

 */

 
 
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


function task_backupdb($task)
{


function task_backupdb($task)
{

Zeile 35Zeile 41
	{
$db->set_table_prefix('');


	{
$db->set_table_prefix('');


		$file = MYBB_ADMIN_DIR.'backups/backup_'.substr(md5($mybb->user['uid'].TIME_NOW.random_str()), 0, 10);

		$file = MYBB_ADMIN_DIR.'backups/backup_'.substr(md5($mybb->user['uid'].TIME_NOW), 0, 10).random_str(54);

		
if(function_exists('gzopen'))
{

		
if(function_exists('gzopen'))
{

Zeile 60Zeile 66
				$field_list[] = $field['Field'];
}


				$field_list[] = $field['Field'];
}


			$fields = implode(",", $field_list);

			$fields = "`".implode("`,`", $field_list)."`";

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

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

Zeile 73Zeile 79
				$comma = '';
foreach($field_list as $field)
{

				$comma = '';
foreach($field_list as $field)
{

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

					if(!isset($row[$field]) || is_null($row[$field]))

					{

					{

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

						$insert .= $comma."NULL";

					}
else
{

					}
else
{