first commit

This commit is contained in:
bing
2026-04-03 11:32:07 +08:00
commit 003be19522
1142 changed files with 185854 additions and 0 deletions

31
doc/php/add_download.php Normal file
View File

@@ -0,0 +1,31 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=../version/QxOrm_1.5.0.zip">
<?php
settype($nb_errors, "integer");
settype($try_count, "integer");
/*
if ($_POST['created_by'] == "") { $errors = $errors . "\nYou must write your name or compagny name."; $nb_errors++; }
*/
if ($nb_errors != 0) { echo "<script type='text/javascript'>alert('" . $errors . "');</script>"; }
if ($nb_errors == 0)
{
$_POST['created_by'] = nl2br(htmlentities(stripslashes($_POST['created_by'])));
$_POST['message_text'] = nl2br(htmlentities(stripslashes($_POST['message_text'])));
$createdby = "<h3>**** Downloaded by " . $_POST['created_by'] . " (" . date(d."/".m."/"."Y") . " " . date(H.":".i) . ")</h3>";
$msg = "<p>" . $_POST['message_text'] . "</p>";
$filename = "./version_1.5.0.php";
while ((file_exists($filename)) && (! is_writable($filename)) && ($try_count < 200)) { usleep(100000); $try_count++; }
$fp = fopen($filename, "a");
fputs($fp, "\n");
fputs($fp, $createdby);
fputs($fp, "\n");
fputs($fp, $msg);
fclose($fp);
}
echo "<script type='text/javascript'>document.location.href='../version/QxOrm_1.5.0.zip';</script>";
?>
</head>
<body>
</body>
</html>