Hello, Hi Franck, We got a problem with Liveview recording far more laps than reallity since release 240. Do you have an idea what causes this issue? Perhaps running multiple server instances, but we didn't had this problem with the previous builds. Thanks in advance
Hi, Franck http://217.16.12.195/live3/hotlaps.php?TrackName=Palm+Beach+Int+Road+Course Is it possible to add a link removed at the end of each row of the table? If possible access by password or session (that I can do it again), or make a admin page but the first suggestion is principal. The rest is not difficult to set up, I have not found / tried things that work. You who make the code, I think you can get there easily, I even ask on forums specialize in php and nothing conclusive thank you Franck
I managed to do what I wanted! you do not bothers Franck. So here's the php code: View résult : http://217.16.12.195/live2/hotlaps.php?TrackName=Circuit Thermalito (Full Layout) You add this line Code: "<th class='hotlaps' title='Delete'>Delete</th>" . after Another line : Add line in the file hotlaps php (Line 2 : Code: "<td>" . '<a href="suppr.php?id='.$row['ID'].'">Delete</a>' . "</td>"; Do not forget to change the connection information in the file Suppr.php Page Suppr.php Code: <?php header('Content-Type: text/html; charset=utf-8'); // Admin page by Valbuena72 if ((isset($_GET['action'])) && ($_GET['action'] == 'logout')) { *$_SESSION = array(); *session_destroy(); *session_start(); } * $_SESSION['login'] = ''; $_SESSION['password'] = ''; if (isset($_POST['submit'])) { *$login = (isset($_POST['login'])) ? $_POST['login'] : ''; *$pass = *(isset($_POST['pass'])) *? $_POST['pass'] *: ''; *if (($login == "Valbuena72" ) && ($pass == "xxxx" )) // Mode connecter *{ * if(isset($_GET['id'])) * * { * * $con = mysql_connect("localhost","xxxxx","xxxx" ); * * if (!$con) * * * { * * * die('Could not connect: ' . mysql_error()); * * * } * * mysql_select_db("vmliveview02", $con); * * $id = $_GET['id']; * * $result = *mysql_query("delete FROM hotlaps where id=$id" ); * $_SESSION['login'] = "Valbuena72"; * $_SESSION['password'] = "xxxx"; * echo '<p style="color:#FF0000; font-weight:bold;">Supprimer avec sucès</p>'; }} *else // Mode non admin *{ * echo '<p style="color:#FF0000; font-weight:bold;">Vous pouvez pas supprimer</p>'; *} } if (!isset($_POST['submit'])) { *echo ' *<form id="conn" method="post" action=""> * <p><label for="login">Login :</label><input type="text" id="login" name="login" /></p> * <p><label for="pass">Mot de Passe :</label><input type="password" id="pass" name="pass" /></p> * <p><input type="submit" id="submit" name="submit" value="Connexion" /></p> *</form>'; }; // fin if (!isset($_POST['submit']))) ?>
Hi Val, you don't have the problem of liveview recording more laps than it should? We got the problem when running multiple instances ...
Salut Valbuena, Où mets tu la deuxème ligne ? Et à cette ligne " $con = mysql_connect("localhost","xxxxx","xxxx" ) ", tu mets le login et mot de passe de la base de donnée ?
Il me met " Parse error: syntax error, unexpected '*' in D:\wamp\www\wtcc\Suppr.php on line 6 " quand je veux essayer de supprimer un pilote
Voila sans les astérix Code: <?php header('Content-Type: text/html; charset=utf-8'); // Admin page by Valbuena72 if ((isset($_GET['action'])) && ($_GET['action'] == 'logout')) { $_SESSION = array(); session_destroy(); session_start(); } $_SESSION['login'] = ''; $_SESSION['password'] = ''; if (isset($_POST['submit'])) { $login = (isset($_POST['login'])) ? $_POST['login'] : ''; $pass = (isset($_POST['pass'])) ? $_POST['pass'] : ''; if (($login == "Valbuena72" ) && ($pass == "xxxx" )) // Mode connecter { if(isset($_GET['id'])) { $con = mysql_connect("localhost","xxxxx","xxxx" ); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("vmliveview02", $con); $id = $_GET['id']; $result = mysql_query("delete FROM hotlaps where id=$id" ); $_SESSION['login'] = "Valbuena72"; $_SESSION['password'] = "xxxx"; echo '<p style="color:#FF0000; font-weight:bold;">Supprimer avec sucès</p>'; }} else // Mode non admin { echo '<p style="color:#FF0000; font-weight:bold;">Vous pouvez pas supprimer</p>'; } } if (!isset($_POST['submit'])) { echo ' <form id="conn" method="post" action=""> <p><label for="login">Login :</label><input type="text" id="login" name="login" /></p> <p><label for="pass">Mot de Passe :</label><input type="password" id="pass" name="pass" /></p> <p><input type="submit" id="submit" name="submit" value="Connexion" /></p> </form>'; }; // fin if (!isset($_POST['submit']))) ?>
Where in the hotlap.php I have the inserting? "<th class='hotlaps' title='Delete'> Delete </ th> <td> ". '<a href="suppr.php?id='.$row['ID'].'"> Delete </ a>'." </ td> " I do not find the Suppr.php. Where is it? greeting Mike
Where in the hotlap.php I have the inserting? <td> ". '<a href="suppr.php?id='.$row['ID'].'"> Delete </ a>'." </ td> " greeting Mike
Hello, What are the colors in hotlap? Thanks Bonjour, a quoi correspondent les couleurs dans les hotlaps ? Merci
what color? I have no color on my hotlap me Ok, I understood the hotlap but not talking about the live timing *answer in 5 minutes. I'll make you a legend on photoshop! I watch the first message and let Franck Legend is written ... --- Salut; Quelle couleur ? je n'ai pas de couleur sur mes hotlaps moi Ok, j'ai compris tu parle pas du hotlaps mais du live timing. Je re, dans 5 min. Je vais te faire une légénde sur photoshop ! Du coup, non j'ai regarder le premier post et c'est écrit : pilote: Magenta = dans la pitlineroule() Bleu = dans le box (arrêté) Rouge = Sur la piste (Au ralenti) CP (= Class position) Si tu es en P1,P2, GT1, GT2 Gris = Classe inconnue Autres = En raison de la configuration du serveur Gap (= Ecart par rapport au leader): Gris :: 1 tour ou plus derrière le leader Intervalle (= Ecart suivant): = Within striking distance (pas compris, je suppose qu'il doit dire que tu dois être prêt de ton adversaire, truc du genre) Gris = 1 tour ou plus derrière Sector1: Rouge = plus lent que le meilleur temps personnel actuel Vert = Plus rapide que le meilleur temps personnel actuel secteur2: Rouge = plus lent que le meilleur temps personnel actuel Vert = Plus rapide que le meilleur temps personnel actuel
Bonjour Valbuena , J'ai vu sur tes hotlaps que tu pouvais "supprimer tout " les hotlaps sur un circuit. Pourrais-tu me dire le code que tu utilise et où le placer exactement ? Merci d'avance .