numerischer index) if(($i+1)<$az) $final .= ", "; } $final .= ") VALUES ("; for($i=0;$i<$z;$i++) { $einschub = "'".str_replace("'","`", $inhalt[$i])."'"; $final .= preg_replace('/\r\n|\r|\n/', '\r\n', $einschub); if(($i+1)<$z) $final .= ", "; } $final .= ");\n"; } $final .= "\n"; } systeminc('session'); systeminc('login'); $anz=mysql_num_rows(safe_query("SELECT userID FROM ".PREFIX."user_groups WHERE (page='1' OR super='1') AND userID='$userID'")); if($anz) { header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Description: File Transfer"); if(is_integer(strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), "msie")) AND is_integer(strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), "win" ))) header("Content-Disposition: filename=backup.sql;"); else header("Content-Disposition: attachment; filename=backup.sql;"); header("Content-Transfer-Encoding: binary"); echo $final; } } else { if(!ispageadmin($userID) OR substr(basename($_SERVER[REQUEST_URI]),0,15) != "admincenter.php") die('Access denied.'); echo '

database

Export/Download backup (experimental)
Optimize database
• Import backup
Select a file where to import sql data from.
Important: Create a backup before import another one!

backup file:
 
• SQL-Query
Allowed commands: insert, alter table, select
Enter SQL-Query:

'; } ?>