Moved php from cgi-bin to backend

This commit is contained in:
Oleg Sh committed 2024-10-10 20:17:45 +02:00
1 parent aac9da9d45
commit 1576a1c6e4
24 files changed
+100 -100

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
include ("../core/config/main.php");
if (!isset($_COOKIE["vote0"]))
{
$index = $_GET["index"];
setcookie("vote0", "true", time() + 3600 * 24 * 90, '/'); // 3 month
$file = fopen("../" . $g_config['vote'], "a");
fprintf($file, "%d\n", $index);
fclose($file);
echo ("OK");
}
?>