\n";
mysql_query($sql)
or die(DB_ERROR.': '.mysql_error().' ('.mysql_errno().')');
mysql_close($link);
}
// main part
// print_r($_SERVER);
// print_r($_POST);
if(isset($_POST['_filename'])) {
save_user();
$head = '
UAM Text Tools - '.DOWNLOAD_THANKS_PAGE_TITLE."\n";
$head .= "\n";
$content = DOWNLOAD_THANKS_CAPTION."
\n".
"
".DOWNLOAD_THANKS_EXTRA_LINK.
" ".$_POST['_filename'].".
\n".
"".DOWNLOAD_THANKS_MAINPAGE_LINK."\n";
getMainPage($head, $content);
}
else {
header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/down.php');
}
?>