phpBB

Code Changes

File: includes/acp/acp_database.php

  Unmodified   Added   Modified   Removed
Line 38Line 38

$action = request_var('action', '');
$submit = (isset($_POST['submit'])) ? true : false;


$action = request_var('action', '');
$submit = (isset($_POST['submit'])) ? true : false;

 

$form_key = 'acp_database';
add_form_key($form_key);


$template->assign_vars(array(
'MODE' => $mode


$template->assign_vars(array(
'MODE' => $mode

Line 60Line 63
						if (!sizeof($table))
{
trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);

						if (!sizeof($table))
{
trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);

 
						}

if (!check_form_key($form_key))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);

						}

$store = $download = $structure = $schema_data = false;

						}

$store = $download = $structure = $schema_data = false;

Line 1173Line 1181
				$this->flush($sql_data . ";\n");
}
}

				$this->flush($sql_data . ";\n");
}
}

 
		$db->sql_freeresult($result);


$sql_data = '-- Table: ' . $table_name . "\n";
$sql_data .= "DROP TABLE $table_name;\n";


$sql_data = '-- Table: ' . $table_name . "\n";
$sql_data .= "DROP TABLE $table_name;\n";

Line 1557Line 1566
		{
$this->write_data_mssql($table_name);
}

		{
$this->write_data_mssql($table_name);
}

		else if($db->get_sql_layer() === 'mssqlnative')

		else if ($db->get_sql_layer() === 'mssqlnative')

		{
$this->write_data_mssqlnative($table_name);
}

		{
$this->write_data_mssqlnative($table_name);
}