Vergleich inc/tasks/backupdb.php - 1.4.9 - 1.4.16

  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 4350 2009-04-14 23:14:07Z Tikitiki $

 * $Id: backupdb.php 5379 2011-02-21 11:06:42Z Tomm $

 */

 */

 
 
// 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 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
{