Vergleich admin/modules/tools/backupdb.php - 1.4.0 - 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 3948 2008-06-24 18:58:41Z nickman $

 * $Id: backupdb.php 4594 2009-12-10 07:49:33Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 141Zeile 141
		
if($mybb->input['method'] == 'disk')
{

		
if($mybb->input['method'] == 'disk')
{

			$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($mybb->input['filetype'] == 'gzip')
{

			
if($mybb->input['filetype'] == 'gzip')
{

Zeile 160Zeile 160
		}
else
{

		}
else
{

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

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

			if($mybb->input['filetype'] == 'gzip')
{
if(!function_exists('gzopen')) // check zlib-ness

			if($mybb->input['filetype'] == 'gzip')
{
if(!function_exists('gzopen')) // check zlib-ness

Zeile 169Zeile 169
					admin_redirect("index.php?module=tools/backupdb&action=backup");
}


					admin_redirect("index.php?module=tools/backupdb&action=backup");
}


				// Send headers for gzip file (do ob_start too)
header('Content-Encoding: x-gzip');

				// Send headers for gzip file
header('Content-Encoding: gzip');

				header('Content-Type: application/x-gzip');
header('Content-Disposition: attachment; filename="'.$file.'.sql.gz"');
}

				header('Content-Type: application/x-gzip');
header('Content-Disposition: attachment; filename="'.$file.'.sql.gz"');
}

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


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


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

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

			if($mybb->input['contents'] != 'data')
{
$structure = $db->show_create_table($table).";\n";

			if($mybb->input['contents'] != 'data')
{
$structure = $db->show_create_table($table).";\n";

Zeile 218Zeile 218
					$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
{

Zeile 252Zeile 252
			
if($mybb->input['filetype'] == 'gzip')
{

			
if($mybb->input['filetype'] == 'gzip')
{

				$ext = '.gz';

				$ext = '.sql.gz';

			}
else
{

			}
else
{

Zeile 288Zeile 288
		exit;
}


		exit;
}


	$page->extra_header = "	<script type=\"text/javascript\" language=\"Javascript\">

	$page->extra_header = "	<script type=\"text/javascript\">

	function changeSelection(action, prefix)
{
var select_box = document.getElementById('table_select');

	function changeSelection(action, prefix)
{
var select_box = document.getElementById('table_select');