Location: PHPKode > scripts > Linker IMG > linker-img/manage/sqldump.php
<?php

//=====================================
// LINKER Category Engine
//=====================================
// Filename : add_category.php
// Path  : Manage directory
// last update : 2002/03/13
// Desc : Add category
//=====================================

//=====================================
// File include part
//=====================================

include ("./authen.php");
include ("../function/$Sdb_type.php"); 
include ("../$Slang/m_common.php"); 

//=====================================
// Make dump file
//=====================================

$db = new DB_Sql($Sdb_host,$Sdb_user,$Sdb_pass,$Sselect_db);

$linker_cat = $db->datadump ("LINKER_CAT");
$linker_link = $db->datadump ("LINKER_LINK");
$linker_com = $db->datadump ("LINKER_COM");
$linker_wait = $db->datadump ("LINKER_WAIT");
$linker_tword = $db->datadump ("LINKER_TWORD");
$linker_mail = $db->datadump ("LINKER_MAIL");

$content = $linker_cat . $linker_link . $linker_com . $linker_wait . $linker_tword . $linker_mail;

$file_name = "LINKER_DUMP-".date("Y-m-d") . ".dump";
Header("Content-type: application/octet-stream"); 
Header("Content-Disposition: attachment; filename=$file_name");
echo $content; 
exit;


?>
Return current item: Linker IMG