From: www-data Date: Tue, 2 Dec 2014 10:41:49 +0000 (+0100) Subject: Development files dropped. X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=d0e85ec6a4eb82ca1e06b8a41465417171f00c86;p=logicplayer.git Development files dropped. --- diff --git a/public_html/index.html~ b/public_html/index.html~ deleted file mode 100755 index e566e53..0000000 --- a/public_html/index.html~ +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - -

Benvenuto nella pagina di amministazione

-
- - - -
- - \ No newline at end of file diff --git a/public_html/login.js~ b/public_html/login.js~ deleted file mode 100755 index 5866524..0000000 --- a/public_html/login.js~ +++ /dev/null @@ -1,66 +0,0 @@ -function change() -{ -/*Quando viene chiamata, modifica il campo "location" di document*/ -/*effettuando un redirect sulla pagina main.php*/ -document.location.href="./prova.html"; -} - - - - -function login() -{ - var jsonlogin=new Object(); - jsonlogin.username=$('#username').val(); //recupero i dati di login dai rispettivi campi dell'HTML - jsonlogin.password=$('#password').val(); - window.alert($('#username').val()+$('#password').val()); - var sendstr = JSON.stringify(jsonlogin); //creo il JSON di invio al server - $.ajax - ({ - type: 'POST', - url: 'login.php', - async: false, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - data: sendstr, - success: function(response) - { //in caso di successo della richiesta viene eseguita questa funzione - if (response['result']=="login effettuato con successo") - //cioè se il server ha ritornato che l'utente è stato trovato con successo - change(); - else - $("#errlogin").fadeIn(); - setTimeout(function(){$("#errlogin").fadeOut()}, 2000); - - } - }); -} - - - - - -$(document).ready -( - function () - { - $("#errlogin").hide(); //nasconde i div di errore del login - //funzione che effettua login se bottone viene cliccato - $("#loginForm").click - ( - function() - { - login(); - } - ); - //funzione che effettua login se tasto "INVIO" viene cliccato - $("#password").keyup( - function(invio) - { - if(invio.keyCode == 13) { - login(); - } - - }); - } -); diff --git a/public_html/login.php~ b/public_html/login.php~ deleted file mode 100755 index 5206e97..0000000 --- a/public_html/login.php~ +++ /dev/null @@ -1,42 +0,0 @@ -"errore nella connessione al database"); - $ris=json_encode($arr); - echo $ris; - die; - } - else - { - $str="SELECT * FROM admin WHERE username='danilo.berardinelli' AND password='123stella';"; - $exists= mysqli_query($con,$str); - if (!($exists)) - { - $arr=array('result'=>"errore nella ricerca all'interno del database"); - $ris=json_encode($arr); - echo $ris; - die; - } - $res=mysqli_num_rows($exists); - if ($res==1) - { - $ID=mysqli_fetch_array($exists); - $_SESSION["username"]=$result->username; - $arr = array('result'=>"login effettuato con successo"); - $ris=json_encode($arr); - echo $ris; - } - else - { - $arr= array('result'=>"Utente non trovato"); - $ris=json_encode($arr); - echo $ris; - } - - } - mysqli_close($con) -?> diff --git a/public_html/prova.html~ b/public_html/prova.html~ deleted file mode 100755 index 0e3d827..0000000 --- a/public_html/prova.html~ +++ /dev/null @@ -1,12 +0,0 @@ - - - - - -
- - - -
- - diff --git a/public_html/prova.pho~ b/public_html/prova.pho~ deleted file mode 100755 index e69de29..0000000 diff --git a/public_html/prova.php~ b/public_html/prova.php~ deleted file mode 100755 index 0f7fcaa..0000000 --- a/public_html/prova.php~ +++ /dev/null @@ -1,44 +0,0 @@ - 500000) { - echo "Sorry, your file is too large."; - $uploadOk = 0; - } - // Allow certain file formats - /*if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" - && $imageFileType != "gif" ) { - echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; - $uploadOk = 0; - }*/ - // Check if $uploadOk is set to 0 by an error - if ($uploadOk == 0) { - echo "Sorry, your file was not uploaded."; - // if everything is ok, try to upload file - } else { - if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { - echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded."; - } else { - echo "Sorry, there was an error uploading your file."; - } - } -?> diff --git a/public_html/prova.txt~ b/public_html/prova.txt~ deleted file mode 100755 index e69de29..0000000 diff --git a/public_html/upload.php~ b/public_html/upload.php~ deleted file mode 100755 index 9cf7a77..0000000 --- a/public_html/upload.php~ +++ /dev/null @@ -1,33 +0,0 @@ -