This repository provides a simple training poll for sports clubs to manage their training sessions. Please note that it requires a custom configuration to function properly.
Before using the poll, ensure you have a config.php file set up with the following variables. This file should be located three folders above the root of the repository.
$server = "YOUR SERVER"; // Database server address
$dbuser = "YOUR USER"; // Database username
$dbpwd = "YOUR PASSWORD"; // Database password
$db = "YOUR DATABASE"; // Database name
$conn = NULL; // Connection variable
$admin_ip = "YOUR IP ADDRESS"; // IP address for admin access
$max_limit = 100; // Daily limit for poll submissions (NULL = no limit)
$today = date("d.m.Y", time()); // Current date
$week = date('W', time()); // Current week number
$days = array('SO', 'MO', 'DI', 'MI', 'DO', 'FR', 'SA'); // Days of the week
$server
, $dbuser
, $dbpwd
, and $db
) to match your environment.$admin_ip
is set to the IP address you want to allow admin access from.
This project is licensed under the MIT License. See the LICENSE for details.
To report any kinds of vulernabilities, please see SECURITY.