TTC-Schenkon / training-poll

simple training poll for sports clubs
https://ttcschenkon.ch/training
MIT License
1 stars 1 forks source link
js mysql open-source php tabletennis training-attendance ttc-schenkon

Training Poll

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.

Configuration

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

Instructions

  1. Set the database credentials ($server, $dbuser, $dbpwd, and $db) to match your environment.
  2. Ensure the $admin_ip is set to the IP address you want to allow admin access from.

License

This project is licensed under the MIT License. See the LICENSE for details.

Security Policy

To report any kinds of vulernabilities, please see SECURITY.