Commit f1460aa4 authored by diesys's avatar diesys 🎈

login in admin.php

parent 1a873cae
<?php
$valid_passwords = array ("uova" => "frittata");
$valid_users = array_keys($valid_passwords);
$user = $_SERVER['PHP_AUTH_USER'];
$pass = $_SERVER['PHP_AUTH_PW'];
$validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]);
if (!$validated) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
die ("Not authorized");
}
?>
<!doctype html>
<html lang='it'>
<head>
......@@ -21,9 +39,8 @@
<h1 id='itolo'>Torneo '19</h1>
</span>
<h4 id='sottotitolo'>Pagina di amministrazione</h4>
<?php
$output = shell_exec('./tornelo.py --update prova aaaa dddd 0 --web 2>&1');
echo "<div id='content'><h2>CLASSIFICA</h2>", "<br/>";
$output2 = shell_exec('./tornelo.py --ranking prova --web 2>&1');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment