header("Location: list.php?board_id=1");
exit;
######################################################################################
##
## Program :
## Description :
## Programmer : äªÂÃѵ¹ì ÊØ¹·ÃÇÔÀÒµ
## Email : webmaster@sixhead.com
## : webmaster@todaysoftware.com
## Website : http://www.sixhead.com
## : http://www.todaysoftware.com
## Date :
## Modify log :
##
######################################################################################
#####################################################################
#### start setup ####
$tp_index = "_tp_index.html";
#### end of setup ####
#####################################################################
#####################################################################
#### start program ####
require "../module/_config.php";
require "../module/_module.php";
ob_start();
@$db = mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db($db_name);
if (!$db) { echo "Error connect to Database: " . mysql_error(); ob_end_flush(); exit; }
mysql_query("SET NAMES TIS620");
mysql_query("SET character_set_results=TIS620");
$sql = "SELECT * FROM $db_table_board_category";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
$board_id = $row[BOARD_ID];
$board_name = $row[BOARD_NAME];
#$board_name_enc = urlencode($board_name);
$DATA .= "- $board_name
\n";
}
mysql_free_result($result);
mysql_close($db);
$template = $tp_index;
$fp = fopen($template,"r");
$HTML = fread($fp,filesize($template)); fclose($fp);
$HTML = preg_replace("/\\$(\w+)/e","$$1",$HTML);
echo $HTML;
ob_end_flush();
exit;
ob_end_flush();
#### end of program ####
#####################################################################
#### Start sub program. Don't touch anything below ####
?>