× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Aggiornamento swpi_logger.php

More
11 years 1 month ago - 11 years 1 month ago #120 by tony
Ho apportato delle modifiche al logger. Come era fatto prima c'erano dei seri problemi di sicurezza. Chiunque poteva inserire dati del database mysql inviando un semplice HTTP POST.

Ora nel file config.php c'è anche la password che deve corrispondere a quella inserita in swpi.cfg sulla Rasbberry :
?php
$server = "localhost";
$user = "root";
$pwd = "";
$db = "test";
$swpipwd = "admin";
?>

Per scaricare i 2 file modificati ( swpi_logger.php e config.php ),al solito, seguite il link server.zip nella sezione download.

TT
Last edit: 11 years 1 month ago by tony.
The following user(s) said Thank You: Charlie970

Please Log in to join the conversation.

More
11 years 1 month ago #143 by Roberto Vaccaro
Oltre al logger e al config il controllo è fatto anche all'interno di altre pagine?
Aggiornando il server quando tento di entrare nelle mie pagine modificate ho questo errore:
Parse error: syntax error, unexpected T_VARIABLE in D:\inetpub\webs\iw1purcom\swpi\config.php on line 7

ciao
Roberto

Please Log in to join the conversation.

More
11 years 1 month ago - 11 years 1 month ago #146 by tony
Replied by tony on topic Aggiornamento swpi_logger.php
Sembrerebbe che hai scritto male qualcosa in config.php

Attento ai puntoevirgola e alle virgolette ( di solito quell'errore è dovuto alla mancanza di un ; )


<?php
$server = "localhost";
$user = "root";
$pwd = "";
$db = "test";
$swpipwd = "admin";
?>
Last edit: 11 years 1 month ago by tony.

Please Log in to join the conversation.

More
11 years 1 month ago #157 by Roberto Vaccaro
Risolto, problema mio.

Roberto

Please Log in to join the conversation.

Time to create page: 0.855 seconds