From a02dc65816998ec35975339dbad1627c2e5fb444 Mon Sep 17 00:00:00 2001 From: www-data Date: Tue, 2 Dec 2014 11:24:48 +0100 Subject: [PATCH] new initial commit --- Server/JOURNAL | 28 + Server/logintesi.sql | 195 ++++ Server/server/tesi/.idea/compiler.xml | 22 + .../.idea/copyright/profiles_settings.xml | 3 + Server/server/tesi/.idea/description.html | 1 + Server/server/tesi/.idea/encodings.xml | 4 + Server/server/tesi/.idea/misc.xml | 12 + Server/server/tesi/.idea/modules.xml | 8 + Server/server/tesi/.idea/project-template.xml | 3 + .../tesi/.idea/scopes/scope_settings.xml | 5 + Server/server/tesi/.idea/uiDesigner.xml | 124 ++ Server/server/tesi/.idea/vcs.xml | 6 + Server/server/tesi/.idea/workspace.xml | 1003 +++++++++++++++++ .../tesi/com/company/DirectoryWatcher.class | Bin 0 -> 4523 bytes .../tesi/com/company/EmailSender.class | Bin 0 -> 3847 bytes .../tesi/com/company/EsNameParser.class | Bin 0 -> 4764 bytes .../out/production/tesi/com/company/MD5.class | Bin 0 -> 2110 bytes .../tesi/com/company/dbConnect.class | Bin 0 -> 9424 bytes .../production/tesi/com/company/esercizi.xml | 5 + .../production/tesi/com/company/global.class | Bin 0 -> 854 bytes .../tesi/com/company/guestServer.class | Bin 0 -> 2899 bytes .../tesi/com/company/httpget$MyHandler.class | Bin 0 -> 2506 bytes .../production/tesi/com/company/httpget.class | Bin 0 -> 2274 bytes .../production/tesi/com/company/keystore.bks | Bin 0 -> 2258 bytes .../production/tesi/com/company/keystore.crt | Bin 0 -> 897 bytes .../production/tesi/com/company/keystore.jks | Bin 0 -> 2252 bytes .../tesi/com/company/personalServer.class | Bin 0 -> 2302 bytes .../tesi/com/company/suString.class | Bin 0 -> 2637 bytes .../tesi/com/company/superServer.class | Bin 0 -> 3533 bytes .../tesi/com/company/xmlOperation.class | Bin 0 -> 3946 bytes .../testi/com/company/DeleteFileExample.class | Bin 0 -> 1115 bytes .../testi/com/company/EmailSender.class | Bin 0 -> 4937 bytes .../testi/com/company/EsNameParser.class | Bin 0 -> 4701 bytes .../testi/com/company/dbConnect.class | Bin 0 -> 11241 bytes .../production/testi/com/company/esercizi.xml | 3 + .../testi/com/company/guestServer.class | Bin 0 -> 2968 bytes .../testi/com/company/httpget$MyHandler.class | Bin 0 -> 2344 bytes .../testi/com/company/httpget.class | Bin 0 -> 2222 bytes .../production/testi/com/company/keystore.bks | Bin 0 -> 2258 bytes .../production/testi/com/company/keystore.crt | Bin 0 -> 897 bytes .../production/testi/com/company/keystore.jks | Bin 0 -> 2252 bytes .../testi/com/company/personalServer.class | Bin 0 -> 2705 bytes .../testi/com/company/suString.class | Bin 0 -> 2629 bytes .../testi/com/company/superServer.class | Bin 0 -> 3319 bytes .../src/com/company/DeleteFileExample.class | Bin 0 -> 916 bytes .../src/com/company/DirectoryWatcher.class | Bin 0 -> 4627 bytes .../src/com/company/DirectoryWhatcer.java | 147 +++ .../tesi/src/com/company/EmailSender.class | Bin 0 -> 3205 bytes .../tesi/src/com/company/EmailSender.java | 110 ++ .../tesi/src/com/company/EsNameParser.class | Bin 0 -> 3814 bytes .../tesi/src/com/company/EsNameParser.java | 144 +++ Server/server/tesi/src/com/company/MD5.class | Bin 0 -> 1713 bytes Server/server/tesi/src/com/company/MD5.java | 46 + Server/server/tesi/src/com/company/Makefile | 2 + .../tesi/src/com/company/dbConnect.class | Bin 0 -> 9152 bytes .../tesi/src/com/company/dbConnect.java | 355 ++++++ .../server/tesi/src/com/company/esercizi.xml | 10 + .../server/tesi/src/com/company/esercizi.xml~ | 4 + .../server/tesi/src/com/company/global.class | Bin 0 -> 964 bytes .../server/tesi/src/com/company/global.java | 16 + .../tesi/src/com/company/guestServer.class | Bin 0 -> 2288 bytes .../tesi/src/com/company/guestServer.java | 80 ++ .../src/com/company/httpget$MyHandler.class | Bin 0 -> 1780 bytes .../server/tesi/src/com/company/httpget.class | Bin 0 -> 1852 bytes .../server/tesi/src/com/company/httpget.java | 79 ++ .../server/tesi/src/com/company/keystore.bks | Bin 0 -> 2258 bytes .../server/tesi/src/com/company/keystore.crt | Bin 0 -> 897 bytes .../server/tesi/src/com/company/keystore.jks | Bin 0 -> 2252 bytes .../tesi/src/com/company/personalServer.class | Bin 0 -> 1778 bytes .../tesi/src/com/company/personalServer.java | 56 + .../tesi/src/com/company/suString.class | Bin 0 -> 2502 bytes .../server/tesi/src/com/company/suString.java | 96 ++ .../tesi/src/com/company/superServer.class | Bin 0 -> 2822 bytes .../tesi/src/com/company/superServer.java | 59 + .../tesi/src/com/company/testEsname.class | Bin 0 -> 475 bytes .../tesi/src/com/company/xmlOperation.class | Bin 0 -> 3261 bytes .../tesi/src/com/company/xmlOperation.java | 136 +++ Server/server/tesi/src/go.sh | 3 + Server/server/tesi/tesi.iml | 11 + Server/webApp/.prova.php.swp | Bin 0 -> 12288 bytes Server/webApp/esercizi/aalbero.xml | 16 + Server/webApp/esercizi/demorgan.xml | 27 + Server/webApp/esercizi/demorgan2.xml | 27 + Server/webApp/esercizi/risolvibile.xml | 35 + Server/webApp/esercizi/tautologia.xml | 15 + Server/webApp/esercizi/test.xml | 12 + Server/webApp/index.html | 17 + Server/webApp/index.html~ | 17 + Server/webApp/login.css | 16 + Server/webApp/login.js | 65 ++ Server/webApp/login.js~ | 66 ++ Server/webApp/login.php | 41 + Server/webApp/login.php~ | 42 + Server/webApp/logout.js | 18 + Server/webApp/logout.php | 7 + Server/webApp/main.php | 41 + Server/webApp/printEs.php | 13 + Server/webApp/prova.html~ | 12 + Server/webApp/prova.js | 72 ++ Server/webApp/prova.pho | 0 Server/webApp/prova.pho~ | 0 Server/webApp/prova.php | 39 + Server/webApp/prova.php~ | 44 + Server/webApp/prova.txt | 2 + Server/webApp/prova.txt~ | 0 Server/webApp/serverRequest.php | 54 + Server/webApp/upload.php | 53 + Server/webApp/upload.php~ | 33 + Server/webApp/util.php | 41 + Server/webApp/xmlPharse.php | 11 + public_html/esercizi/demorgan2.xml | 27 + public_html/esercizi/risolvibile.xml | 35 + public_html/esercizi/test.xml | 12 + public_html/esercizi/triviale.xml | 15 + public_html/index.html | 17 + public_html/index.html~ | 17 + public_html/login.css | 16 + public_html/login.js | 65 ++ public_html/login.js~ | 66 ++ public_html/login.php | 41 + public_html/login.php~ | 42 + public_html/logout.js | 18 + public_html/logout.php | 7 + public_html/main.php | 41 + public_html/printEs.php | 13 + public_html/prova.html~ | 12 + public_html/prova.js | 72 ++ public_html/prova.pho | 0 public_html/prova.pho~ | 0 public_html/prova.php | 39 + public_html/prova.php~ | 44 + public_html/prova.txt | 2 + public_html/prova.txt~ | 0 public_html/serverRequest.php | 54 + public_html/upload.php | 53 + public_html/upload.php~ | 33 + public_html/util.php | 41 + public_html/xmlPharse.php | 11 + 138 files changed, 4405 insertions(+) create mode 100644 Server/JOURNAL create mode 100644 Server/logintesi.sql create mode 100644 Server/server/tesi/.idea/compiler.xml create mode 100644 Server/server/tesi/.idea/copyright/profiles_settings.xml create mode 100644 Server/server/tesi/.idea/description.html create mode 100644 Server/server/tesi/.idea/encodings.xml create mode 100644 Server/server/tesi/.idea/misc.xml create mode 100644 Server/server/tesi/.idea/modules.xml create mode 100644 Server/server/tesi/.idea/project-template.xml create mode 100644 Server/server/tesi/.idea/scopes/scope_settings.xml create mode 100644 Server/server/tesi/.idea/uiDesigner.xml create mode 100644 Server/server/tesi/.idea/vcs.xml create mode 100644 Server/server/tesi/.idea/workspace.xml create mode 100644 Server/server/tesi/out/production/tesi/com/company/DirectoryWatcher.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/EmailSender.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/EsNameParser.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/MD5.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/dbConnect.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/esercizi.xml create mode 100644 Server/server/tesi/out/production/tesi/com/company/global.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/guestServer.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/httpget$MyHandler.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/httpget.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/keystore.bks create mode 100644 Server/server/tesi/out/production/tesi/com/company/keystore.crt create mode 100644 Server/server/tesi/out/production/tesi/com/company/keystore.jks create mode 100644 Server/server/tesi/out/production/tesi/com/company/personalServer.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/suString.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/superServer.class create mode 100644 Server/server/tesi/out/production/tesi/com/company/xmlOperation.class create mode 100644 Server/server/tesi/out/production/testi/com/company/DeleteFileExample.class create mode 100644 Server/server/tesi/out/production/testi/com/company/EmailSender.class create mode 100644 Server/server/tesi/out/production/testi/com/company/EsNameParser.class create mode 100644 Server/server/tesi/out/production/testi/com/company/dbConnect.class create mode 100644 Server/server/tesi/out/production/testi/com/company/esercizi.xml create mode 100644 Server/server/tesi/out/production/testi/com/company/guestServer.class create mode 100644 Server/server/tesi/out/production/testi/com/company/httpget$MyHandler.class create mode 100644 Server/server/tesi/out/production/testi/com/company/httpget.class create mode 100644 Server/server/tesi/out/production/testi/com/company/keystore.bks create mode 100644 Server/server/tesi/out/production/testi/com/company/keystore.crt create mode 100644 Server/server/tesi/out/production/testi/com/company/keystore.jks create mode 100644 Server/server/tesi/out/production/testi/com/company/personalServer.class create mode 100644 Server/server/tesi/out/production/testi/com/company/suString.class create mode 100644 Server/server/tesi/out/production/testi/com/company/superServer.class create mode 100644 Server/server/tesi/src/com/company/DeleteFileExample.class create mode 100644 Server/server/tesi/src/com/company/DirectoryWatcher.class create mode 100644 Server/server/tesi/src/com/company/DirectoryWhatcer.java create mode 100644 Server/server/tesi/src/com/company/EmailSender.class create mode 100644 Server/server/tesi/src/com/company/EmailSender.java create mode 100644 Server/server/tesi/src/com/company/EsNameParser.class create mode 100644 Server/server/tesi/src/com/company/EsNameParser.java create mode 100644 Server/server/tesi/src/com/company/MD5.class create mode 100644 Server/server/tesi/src/com/company/MD5.java create mode 100644 Server/server/tesi/src/com/company/Makefile create mode 100644 Server/server/tesi/src/com/company/dbConnect.class create mode 100644 Server/server/tesi/src/com/company/dbConnect.java create mode 100644 Server/server/tesi/src/com/company/esercizi.xml create mode 100644 Server/server/tesi/src/com/company/esercizi.xml~ create mode 100644 Server/server/tesi/src/com/company/global.class create mode 100644 Server/server/tesi/src/com/company/global.java create mode 100644 Server/server/tesi/src/com/company/guestServer.class create mode 100644 Server/server/tesi/src/com/company/guestServer.java create mode 100644 Server/server/tesi/src/com/company/httpget$MyHandler.class create mode 100644 Server/server/tesi/src/com/company/httpget.class create mode 100644 Server/server/tesi/src/com/company/httpget.java create mode 100644 Server/server/tesi/src/com/company/keystore.bks create mode 100644 Server/server/tesi/src/com/company/keystore.crt create mode 100644 Server/server/tesi/src/com/company/keystore.jks create mode 100644 Server/server/tesi/src/com/company/personalServer.class create mode 100644 Server/server/tesi/src/com/company/personalServer.java create mode 100644 Server/server/tesi/src/com/company/suString.class create mode 100644 Server/server/tesi/src/com/company/suString.java create mode 100644 Server/server/tesi/src/com/company/superServer.class create mode 100644 Server/server/tesi/src/com/company/superServer.java create mode 100644 Server/server/tesi/src/com/company/testEsname.class create mode 100644 Server/server/tesi/src/com/company/xmlOperation.class create mode 100644 Server/server/tesi/src/com/company/xmlOperation.java create mode 100755 Server/server/tesi/src/go.sh create mode 100644 Server/server/tesi/tesi.iml create mode 100644 Server/webApp/.prova.php.swp create mode 100644 Server/webApp/esercizi/aalbero.xml create mode 100644 Server/webApp/esercizi/demorgan.xml create mode 100644 Server/webApp/esercizi/demorgan2.xml create mode 100644 Server/webApp/esercizi/risolvibile.xml create mode 100644 Server/webApp/esercizi/tautologia.xml create mode 100644 Server/webApp/esercizi/test.xml create mode 100755 Server/webApp/index.html create mode 100755 Server/webApp/index.html~ create mode 100755 Server/webApp/login.css create mode 100755 Server/webApp/login.js create mode 100755 Server/webApp/login.js~ create mode 100755 Server/webApp/login.php create mode 100755 Server/webApp/login.php~ create mode 100755 Server/webApp/logout.js create mode 100755 Server/webApp/logout.php create mode 100755 Server/webApp/main.php create mode 100755 Server/webApp/printEs.php create mode 100755 Server/webApp/prova.html~ create mode 100755 Server/webApp/prova.js create mode 100755 Server/webApp/prova.pho create mode 100755 Server/webApp/prova.pho~ create mode 100755 Server/webApp/prova.php create mode 100755 Server/webApp/prova.php~ create mode 100755 Server/webApp/prova.txt create mode 100755 Server/webApp/prova.txt~ create mode 100755 Server/webApp/serverRequest.php create mode 100755 Server/webApp/upload.php create mode 100755 Server/webApp/upload.php~ create mode 100755 Server/webApp/util.php create mode 100755 Server/webApp/xmlPharse.php create mode 100644 public_html/esercizi/demorgan2.xml create mode 100644 public_html/esercizi/risolvibile.xml create mode 100644 public_html/esercizi/test.xml create mode 100644 public_html/esercizi/triviale.xml create mode 100755 public_html/index.html create mode 100755 public_html/index.html~ create mode 100755 public_html/login.css create mode 100755 public_html/login.js create mode 100755 public_html/login.js~ create mode 100755 public_html/login.php create mode 100755 public_html/login.php~ create mode 100755 public_html/logout.js create mode 100755 public_html/logout.php create mode 100755 public_html/main.php create mode 100755 public_html/printEs.php create mode 100755 public_html/prova.html~ create mode 100755 public_html/prova.js create mode 100755 public_html/prova.pho create mode 100755 public_html/prova.pho~ create mode 100755 public_html/prova.php create mode 100755 public_html/prova.php~ create mode 100755 public_html/prova.txt create mode 100755 public_html/prova.txt~ create mode 100755 public_html/serverRequest.php create mode 100755 public_html/upload.php create mode 100755 public_html/upload.php~ create mode 100755 public_html/util.php create mode 100755 public_html/xmlPharse.php diff --git a/Server/JOURNAL b/Server/JOURNAL new file mode 100644 index 0000000..9714212 --- /dev/null +++ b/Server/JOURNAL @@ -0,0 +1,28 @@ +### Librerie ### +- installare: apache, php5, php5-mysql, mysql-server, openjdk-8-jdk + +### Database ### +- aggiungere a logintesi.sql USE logintesi; se non c'e' +- mysql -u root -p + create database logintesi; +- mysql < ~claudio/tesi_applet/logintesi.sql -u root -p + +### Php server ### +- mkdir Server && cd Server && tar -zxvf ../Server.tar.gz +- cp -R ~claudio/tesi_applet/Server/webApp/* /var/www/html/ +- chown -R www-data:www-data esercizi +- serverRequest.php: /localhost, impostare password +- login.php: /localhost, impostare password +- username e password admin sono nel db, tabella admin + mysql -u root -p logintesi + mysql> insert into admin values("admin","AdMin#@"); +- xmlPharse.php: ~claudio/tesi_applet/Server/server/tesi/src/com/company/esercizi.xml + +### Java server ### +- vim ~/tesi_applet/Server/server/tesi/src/com/company/global.java + editare home, servername, ... +- cp ~claudio/tesi_applet/Server/java-8-oracle/jre/lib/ext/* /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/ + PERCHE' IL CLASSPATH NON FUNZIONA?? +- javac *.java +- cd /home/claudio/tesi_applet/Server/server/tesi/src + java com.company.superServer diff --git a/Server/logintesi.sql b/Server/logintesi.sql new file mode 100644 index 0000000..ec57f9c --- /dev/null +++ b/Server/logintesi.sql @@ -0,0 +1,195 @@ +-- phpMyAdmin SQL Dump +-- version 4.0.10deb1 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Generato il: Nov 14, 2014 alle 16:45 +-- Versione del server: 5.5.38-0ubuntu0.14.04.1 +-- Versione PHP: 5.5.9-1ubuntu4.4 + +USE logintesi; + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- +-- Database: `logintesi` +-- + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `admin` +-- + +CREATE TABLE IF NOT EXISTS `admin` ( + `username` varchar(30) COLLATE utf8_bin NOT NULL, + `password` varchar(30) COLLATE utf8_bin NOT NULL, + UNIQUE KEY `username` (`username`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +-- +-- Dump dei dati per la tabella `admin` +-- + +INSERT INTO `admin` (`username`, `password`) VALUES +('danilo.berardinelli', '123stella'); + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `aggprova` +-- + +CREATE TABLE IF NOT EXISTS `aggprova` ( + `chiave` varchar(50) COLLATE utf8_bin NOT NULL, + `time` double NOT NULL, + `checks` int(11) NOT NULL, + PRIMARY KEY (`chiave`), + UNIQUE KEY `key` (`chiave`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +-- +-- Dump dei dati per la tabella `aggprova` +-- + +INSERT INTO `aggprova` (`chiave`, `time`, `checks`) VALUES +('10157426982320510', 1415145803639, 1), +('10244937857444543', 1415284664538, 1), +('10308106918353456', 1415243065790, 1), +('10385651273134167', 1415289922479, 1), +('10414239987472834', 1415285560312, 1), +('1097785784725414', 1415284853312, 1), +('10983265112121106', 1415242393295, 1), +('1286713061377424', 1415036978051, 1), +('1408285479764558', 1415278883075, 1), +('1490801371315190', 1415285333816, 1), +('1741331087669285', 1415811578318, 1), +('18516070104459806', 1415276863684, 1), +('2217380018747176', 1415145507080, 1), +('2260502250327125', 1415284745047, 1), +('2473377684156933', 1415284628252, 1), +('2504043195911198', 1415285115955, 1), +('2686774762838581', 1415278911038, 1), +('2744239278608085', 1415036291300, 1), +('2956509786688513', 1415271435934, 1), +('2961042458190883', 1415277033282, 1), +('3109253928772677', 1415284540445, 1), +('3311335330604631', 1415237862686, 1), +('3486758220086141', 1415242975878, 1), +('3571361357113219', 1415285156048, 1), +('4091389111256716', 1415025754182, 1), +('42848425102166715', 1415242068918, 1), +('4457124515989723', 1415811050681, 1), +('4577865146663611', 1415285170075, 1), +('4796791993070257', 1415288554998, 1), +('5005653368852396', 1415285312682, 1), +('5226217037177487', 1415145721770, 1), +('5308112899337743', 1415037335958, 1), +('5362524692721963', 1415811381242, 1), +('5382075363462279', 1415272904986, 1), +('5650512812480934', 1415271249954, 1), +('5735648814288922', 1415036889526, 1), +('62029084106069252', 1415241839377, 1), +('6712150141518271', 1415285510994, 1), +('6786243849285602', 1415811389915, 1), +('6992436366972266', 1415242705239, 1), +('7106071695334106', 1415811170493, 1), +('7158700078303143', 1415284726466, 1), +('7307203380313108', 1415819825863, 1), +('75372031101482498', 1415284519581, 1), +('7703030541673651', 1415272914342, 1), +('8065501483698608', 1415819808393, 1), +('8468895456378674', 1415241733824, 1), +('8760904545449404', 1415285230458, 1), +('8838732364680254', 1415271877269, 1), +('9576830372163956', 1415283251776, 1); + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `confmail` +-- + +CREATE TABLE IF NOT EXISTS `confmail` ( + `user` varchar(50) COLLATE utf8_bin NOT NULL, + `pass` varchar(50) COLLATE utf8_bin NOT NULL, + `hash` varchar(50) COLLATE utf8_bin NOT NULL, + `time` double DEFAULT NULL, + UNIQUE KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `connessi` +-- + +CREATE TABLE IF NOT EXISTS `connessi` ( + `user` varchar(50) COLLATE utf8_bin NOT NULL, + `tempkey` varchar(50) COLLATE utf8_bin NOT NULL, + `thread` tinyint(1) NOT NULL, + `time` double NOT NULL, + UNIQUE KEY `tempkey` (`tempkey`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +-- +-- Dump dei dati per la tabella `connessi` +-- + +INSERT INTO `connessi` (`user`, `tempkey`, `thread`, `time`) VALUES +('danilo.berardinelli@studio.unibo.it', '2545550210880139', 0, 1415975986391); + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `esercizi` +-- + +CREATE TABLE IF NOT EXISTS `esercizi` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `esercizio` varchar(20) COLLATE utf8_bin NOT NULL, + `utente` varchar(50) COLLATE utf8_bin NOT NULL, + `click` int(11) NOT NULL, + `time` double NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `id` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=4 ; + +-- +-- Dump dei dati per la tabella `esercizi` +-- + +INSERT INTO `esercizi` (`id`, `esercizio`, `utente`, `click`, `time`) VALUES +(1, 'tautologia.xml', 'danilo.berardinelli@studio.unibo.it', 1, 1415923860705), +(2, 'tautologia.xml', 'danilo.berardinelli@studio.unibo.it', 1, 1415975624027), +(3, 'tautologia.xml', 'danilo.berardinelli@studio.unibo.it', 3, 1415975983857); + +-- -------------------------------------------------------- + +-- +-- Struttura della tabella `utenti` +-- + +CREATE TABLE IF NOT EXISTS `utenti` ( + `user` varchar(50) COLLATE utf8_bin NOT NULL, + `pass` varchar(15) COLLATE utf8_bin NOT NULL, + UNIQUE KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + +-- +-- Dump dei dati per la tabella `utenti` +-- + +INSERT INTO `utenti` (`user`, `pass`) VALUES +('danilo.berardinelli@studio.unibo.it', '123stella'); + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/Server/server/tesi/.idea/compiler.xml b/Server/server/tesi/.idea/compiler.xml new file mode 100644 index 0000000..9a8b7e5 --- /dev/null +++ b/Server/server/tesi/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/copyright/profiles_settings.xml b/Server/server/tesi/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/Server/server/tesi/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/description.html b/Server/server/tesi/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ b/Server/server/tesi/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/Server/server/tesi/.idea/encodings.xml b/Server/server/tesi/.idea/encodings.xml new file mode 100644 index 0000000..d821048 --- /dev/null +++ b/Server/server/tesi/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/misc.xml b/Server/server/tesi/.idea/misc.xml new file mode 100644 index 0000000..728f444 --- /dev/null +++ b/Server/server/tesi/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/modules.xml b/Server/server/tesi/.idea/modules.xml new file mode 100644 index 0000000..d9c1a63 --- /dev/null +++ b/Server/server/tesi/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/project-template.xml b/Server/server/tesi/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ b/Server/server/tesi/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Server/server/tesi/.idea/scopes/scope_settings.xml b/Server/server/tesi/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/Server/server/tesi/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/uiDesigner.xml b/Server/server/tesi/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/Server/server/tesi/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/vcs.xml b/Server/server/tesi/.idea/vcs.xml new file mode 100644 index 0000000..6564d52 --- /dev/null +++ b/Server/server/tesi/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Server/server/tesi/.idea/workspace.xml b/Server/server/tesi/.idea/workspace.xml new file mode 100644 index 0000000..7ff99c0 --- /dev/null +++ b/Server/server/tesi/.idea/workspace.xml @@ -0,0 +1,1003 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Control flow issues + + + + + InfiniteLoopStatement + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1415700559063 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No facets are configured + + + + + + + + + + + + + + + 1.8 + + + + + + + + tesi + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Server/server/tesi/out/production/tesi/com/company/DirectoryWatcher.class b/Server/server/tesi/out/production/tesi/com/company/DirectoryWatcher.class new file mode 100644 index 0000000000000000000000000000000000000000..cfca5342478875e98298e8ae940897ae8e701b02 GIT binary patch literal 4523 zcmZ`-dwdjE75-+kyR+F01OfpP0&JmB@?t4PkbuRKY-l72G@+qsRXW)nl7ZcsWp*|X zun)DZQd@07+XfY-KH{?$Y(rC8Y<*NMKJfj1Yqh>b|F9_HcV~7tyJ7SDWoPEzbMCq4 zeCIpo&g8}aJ$(kiTKp@BjW}3}CcH_;Z8B~T;Eo_laHqJuIf%F5tupQkq7(O{bg8tI1<3S#hUk&VICe5mwN(uSjHnk z)ZkzMqr%ovF?g?7`@R6)F9yfN-~$1CFi6jii)D`n@gaOz#z(~9qh%Pw$I9?=e4-4W z#HY&eX*?z_pONvnSaL$hP6qH^;J2<;hf`5~4==QY|=C3TKP}@TT&1OuKP~NT^T4y@Zr&&AIzBp$p z+RdmM?@=vXj5Cv7dq7V~Slk{p6Jh?6sxcC7(Jd`%o7TuK)s7Bm7B?x+TF!dp7ONxy4;u zs57J6R-^km)THC5gAe)8DdSlQ!6XgYkwML{B`lf>gyXX#+$bFMXbi8qAiUv3e0x%} zR9iOF_)Z?-hm)?##v0Y~>qkZ#UMTC}+4NED&hVaD`5x}&JM4pdJ`MBe^{VV`c$ zsCS!lQ`!tevzp^-DkZ#HGVRJMg+5)ISD3PqWHxP!rd_(J?piKfI<4F>EtJSj@|QJ1 zKqJFZEh*rjSEb#0zoFV`i|GqZ53VpF@GY^@hJ?V7V9GXaM8bk%TT?=>6i2IDvj+7j zt=AOO%t)#2(T3@PtK*QP&9F7gN++3(oWs7 zYbni&>Id|&u=Biv&*KX+zNnxVU!v~RLfDel<1x)r@B+T9;4Ap5f){aC#@7^l9p51N zw78zonF+HgB;%V3&f$5|J!zS&-h>*8>7k6q0VYlhi9%Gc8{d-gZ3W*!pMvk=dkVgf zAJBbg_kwQ1qKz1~H4=)t)Nc}={7}J<@MDr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GT*BtjAA|?!h-Ir zo4j>Z-cz`G?9xkATqEHqss&50Axk;2RszkuO5%69f9%rZW0=z}r0Xd?AsWqw6DR00 za5w+Qu+F(3W*{ypdQi!k9UR?2QgmSr6S0B7_Y&USgtHH~GFTNUK8+C0I}jsYduYp` zwE-L=G!GJ#!_+!LNFGK4k1*XL@z)ZTUj9TWQ3|7 Ra!=(wNF%jm_pScY{{sR)mm>fG literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/EmailSender.class b/Server/server/tesi/out/production/tesi/com/company/EmailSender.class new file mode 100644 index 0000000000000000000000000000000000000000..f7d68c063aa822f8b76faecf2f27ec70df78a0ea GIT binary patch literal 3847 zcmcgvX?q)26@ITQX{5+;l%1rN9BL>O%GR>A?EMS;0KV`5@0}UjSU!9ti-+-1NqtP7{4HdV^{j!3`1d=k;m5Xz6yfSn^%dt_}-i>bmDW z;J6jSrX0^Fr)K)TVf%)FRxv!^v~^#1O-Dd+s#U}HNhNEB=Lw{bn6~NPE^x7Lwe0^V z=inLYbj+zx=gniLZJcb>CJlE&pR~xyjX7oAIzt=ebHq&gQzk9QkCmNTk-xfb&lXSA zbkiyscExb%8r8I?O+DZVwDrk5vbBcgn|0l#pRNlGoGHpP#qk9`&$ZROs=(g(Ym@GD zZNo2)n>AyczSFA)ky+o>ZLjXE5;w8HCn%xQhW%?wJ6fr@6n0{!Y}9?zv58Jn9`U_# z{7I+OC{LYsooSPn#nFixv3ug!P&wvC9F`1K6r%#Ey6e>GxX}7y!>93-TsK_bG(0Mx zc+`lx2yBhZErnbHw#eL}{dYQ*+0*poVS%1Fa+$9dKs>jx}6PRF?3j3F^2T0g70YfF22V!T$1at*nHpe z1`Rt*-(9hHPWgi2kLYFJac2j^pmeSGx@@ts1$IkIW(JvjgPvy%mP%u#xDI-4(;K4j9sp-4ljelO5Ah z@D~k#m0I_%rQgcZ)$lirvl3$1b;?$tD+XF!uL7Ox^fXq4JQ+@aQzlwqht)Oe4w3^}aKGF|RQx#1_|P|G7AMd;(AKfu*9$t`XjDWTX|U&d14g&eR&y0lcD!+qiohq z%Ac5(&3xmEXKmEB4fmL=Z-W({m^ihfg{~=w?$z{4Wl@&EZOfdn_Mv!ZUeY|YZo-&h zmISSG3OIVw(tn8k1vjFbWhRugAYQ^p zPCNpESMcdaJfGp-Uzmd^9BLv_=x?H}FwjJ@kWV&|D&$j5qzn0U6G|bkG?BRyNO>jK z{ro%!_8>{UvgpAk>_Z1XtMj;?-2Ge+;1K#SO4QxqJ-7?6;uCKS^cMjoEl32Ew4p7a zq!r14l6Is5N?MW*C~1pA8^$mmT9UX(3@s7++Qsun=8-)+2X(wZw;`vsu<@S$+@``4 zNQLBPlF5+Vvhy0+Lo&C3>{#M$&20-`UYF|(2yqSDPY&>KejYn`#m=GRJa&=j8cNM$ z_t}9t>={bu)4V}xp*x?R$6mheXcp1tKV zwuaQLm!XE#&=tD4E|NmwzbtZZ=f5m+-^qVj+8_h_2tx-9FaSkpxB=U67~Qy$!Mq8# z@b3*U#3s`1sEQ6uiS49!!W3ONFM3c55~+?2yyHPiJ;jh;!bP0M ztCa{q_l_?S>VN&eDy||AFq=`;y_If7aB%Y>z z_e&4qacZd32b1(g50d|-iYbNKDyUFd1?NDrI;vobKQqnK=ZQ?<0)EV0rQC<{Bugy& EKLDB-H2?qr literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/EsNameParser.class b/Server/server/tesi/out/production/tesi/com/company/EsNameParser.class new file mode 100644 index 0000000000000000000000000000000000000000..6b5cef6a3ad2e4d6b2f72417f843da1b1296395d GIT binary patch literal 4764 zcma)9`+F4C8Gg_1?9ODf1Xx&LAz&yXxe%t@0xp*-7-}S-1&k8FGTBU$k=>nTb~XuW zRlF7zYHO8(wx!h;+ol$+CS0t&*g{KNwYNW@KlV?kj}P=cGdr7236H?Db7s!vJKuTV z_xrw+%U8~S0ALmV6~kJ%DoQE_RSanujv-z%ctXRI zwRj3o*WwvG8^hOeM8$J4OoyxCd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U&a+t7OgswRAFjZ!VQgVq*+Zv9W26~BTsIX=H z1~Jj_5jd}H|6+zf|AydLShW*uhF)M-;M;rdn~IuWbnK5i#OnMm zK_BX6^&d2QjlfYN31H$>FB|OTv$caS zAo$2ZG9CguDP_5mVThz3Li|8M!7hHIfl|XLWvy+1-FTL}I61tB8agYJ2qQt=JyCcJ zKI^GML1lSaSNY!_A9L1fe*Rf!Cibw{R(ae`%r+wwE(iM^zLWxN$jIV8iUAS zJ0>uM96>!rn~Q{VmWV9St4Mq*gnJ3kGx{i8;^tGgOx-Q&Rw&=0e3!CBw?YJMu6w!X zYlj)Uz^}qQ7ijq+$Ccs#%znH?tY>MH;%Nk5bUeb0pA38zeAUs#x!%JVBgkofjd2{{ zyfWO~MxsR_qT-;6tcsUa9OCdtTQc`1WpH*7Ld9XxVicu)8Yo)Wg7BL4VG3(z{2SRY zn`n_Z@y?#PWT?%o!ipm9w|*O6rE_~+!vqEdD8%Ob*#04|ud;aw^B!s=IE+aGsmOEzkkWIK XHt7yP8kD~Rc*LLd7I=-83Xc8*FGS5o literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/dbConnect.class b/Server/server/tesi/out/production/tesi/com/company/dbConnect.class new file mode 100644 index 0000000000000000000000000000000000000000..982753efe4d954c4cab731209a6a7f0219916ef8 GIT binary patch literal 9424 zcmd5?d3+r8b$@TQyE9sie5_9yV-{b!R+4ReA)m4(+cJ`DOR|m4xmt~-u~)nD9=^C6 zt^hGN0YiczBtS@rLO`}~0yMN-fu>1mX~_j7JpxJFgh1OsaKG<2v%9lsP5$cVQyssZ z`OWWm$M=2T`;GL{^L<{+7fG(w1HF_;T9{Kzm`TSvky!5xy;Oa;8<5D_Af2Y&y zW%T#-4*}e~A>IGz!wN*DmCu#YKhc}g{6wdp2Iyz>^8o#V-je2Rjoy*zztreg0h&s$ z>h#Y6noR#9&A;mOZ?fF4rFmDH_jLM=4F9c0{~n-OGWC%#+FUbzY$JSvoHa@FHF;%@UoL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y~c~^4PLCEAt!EFGw1v_;Y=xygyhSpbos;y6UryxOSxnW z(q;a9`yyQQa_-H+LQImc@xepGbjcCYybqJN + + aalbero.xml + tautologia.xml + diff --git a/Server/server/tesi/out/production/tesi/com/company/global.class b/Server/server/tesi/out/production/tesi/com/company/global.class new file mode 100644 index 0000000000000000000000000000000000000000..dc419800ebbb452cdfdda7c641dc07f256d97a8f GIT binary patch literal 854 zcmb7C*>2N76g`t>aS|636DTQ5DQg$-kcCo2g^(%`NTDDF<$YpIGO1%n_9UTv5wFM( zNIdWXd=%o2la##j;Cpu3jk^Z+H0~RCsPU0D zjyAl2#|6|G)_oZ(@hbKrSALZYc6%tMg8L%q^NxyS(0@)v$6-KKf$9o>;u&Z#T=YX% zC>aLJqXwD`*+Dq+7|c`etfRun`yk?Y#XS)^TcT!DFPb~$aTqDlNh1vGErXRt-Y7L* zM)OB9km?1)+Rkp5njD9ph{kHmz&n|YdS3KV^n8lgZJNpNib!gI5zMNAq#3GhHym;L z#v(Z5eLw68pOhI#uD>8Jb;3#HdatFXD$gq%y$loAaGhbFYjOPZBvQQNMsg|wDY)`t zC3zgVn){sJL=_f8zTRlIo*bCCtUbMzSZ~D{p2jAwq_O(5hEqQ{bm~s?(8LBT6IW3) zv56W9TIHNiM4SJ2LGOD*&s7Xh|6??7an;V3k$2L8Zb$VF_ zYPbLk)R(*rD&*TM{v{N(R>~E%$`naiilin*5|kooBFqpMEtKpH@;D(Q%WB6BKMCL9rsfB`8(4UM47OVg^mT aNz_0AIU*|2%of=y$`sda?ocj+yMF=C)U$N} literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/guestServer.class b/Server/server/tesi/out/production/tesi/com/company/guestServer.class new file mode 100644 index 0000000000000000000000000000000000000000..dbbf2f70587f05ad65b4d2d5fb5c237faf968d59 GIT binary patch literal 2899 zcmcImNp}=g6#ibP(^V-72!RY0Km#IXfV7ARbU+}HAsE8Y5oiRZ(y1gxI#o?|bpUZ5 zaGp^FCm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CIL z76%e9k%^^GA@LPlGipnqmP%V06q6c}hP!gO`;t7;(8jBaIQG8*S;ZX7@;R2zV0l93 zF~ZZhM^avqr+jZrHPjqdUV%E$l|%bgHUMH=Oz{1v2C{|cu#9UHRK8*@Knq%7P!z3* z@l9$AR$>?05vNFwQYIEEegn3GSH%flYS@dI;dThluD9lxhUV5n5CED-^w)6fvE)=7v;y4AqlT}$D z4v}j=#oH{GB`!2tzv1w#rR c18$<5mwzL1izO8F0D2W13^T|f9u48}zZpy2Hvj+t literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/httpget$MyHandler.class b/Server/server/tesi/out/production/tesi/com/company/httpget$MyHandler.class new file mode 100644 index 0000000000000000000000000000000000000000..0db2b2c775f6c069d124582da0ef3ea32f1da35d GIT binary patch literal 2506 zcma)8S$h*z7=EWsGGQ19l(IxwDw`=#q9Uki*;1$tbdeTNK*j0gm<&v3(pd@-cf?)P zU%@puLFIXTy!7$s_yg4U%uGsBih40;``&Lk-+9k>=8wOA`4zy6_))_)%xIX!c?}nE zQN!zaBa0KOaS4}ITv73+hAd`Oyrn_IOcrm;{;F)=krG3LiaBY(lucDmg@$)glTBTP zrQ({3>ndy&^BSIlqrz3uP_dvOGh#Vba7;mOVeq1Y)Tmn(3UU*cBc{UnIpLi*=4`I? zO}M6EUo<>R&XdJdP`7*qt0tS{hEuhLr$Dbbj_^ip!}kS6J0?tbzR0g(IL%@`2pTmJ z>|VkTGk|)es-RGauzu(i9T7xWUwDhcD~?m`^i7k%ni!T*s-9Q~g&!!`+-1KyH|o;8 z8PM)(PXwXooC}55l;K}97LB4!6UEuUvz!_sJuV~M6iY0(I2{I!FrZWz^OP#w_2yXU zFWAM|a}$g~Gy==v1vI*W726gy!#-)6!uPv?)-s^u2Zj?^ zhVYCZWFt5`?M7D^s zo(ey@62UT7E6|p%*$0BafppKhps(4SwExfNH z(D4C2RIqM2VH9la3oH(p}>tj;By>vH=$adD!bfI!a*5_Q5;8<98tE?Vd+DUx8&dOAmn}K{SQiZ`QWd;51 zQ|qkAw0?v2jkh^nxKfs0(x&bDoaY*>=d9bT7Uw;~6d1r(zNref^MUQ*$NSFNGaMD! zE9}$z9zeMtiFdNiM2q{di(@?oU^kxSjL#AVX@ttkpGaX9*KY4`p=a_y3%yfAKOt30 zpONXoZ%|9=hsa)ffK{bTKJyS7hpYSa7S`m`Y+6{`LawClUytAOY76V`w6LD$ z`byb+RxWI4p+BE(VdFh)FJ}{Na!+rr{ z@Yye7ob~c7Yh{IX@(gR*M3lC>SW8<+u@C#1&N6)-z!3jLE+B`4%zKvBfamZ$r4C0g z;1EZC6w_gjZgO;lF=c2qP29^IG1bX2$k8h(@i@}>kWr8DNHjF*ZwS5Ii_hqfbEn%O z82=DaC#fxuGM1Go8|6w7nZLQUjEYk#POBJG@v4e(wop`5xOj%&S$-4zCNr3#Qi^7# W>F_mPI(1bz& literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/httpget.class b/Server/server/tesi/out/production/tesi/com/company/httpget.class new file mode 100644 index 0000000000000000000000000000000000000000..95933471df42fcaf1c0123c9ae63f57e3d9a3749 GIT binary patch literal 2274 zcma)7T~`xV6y1}r31Mt(FetWK#IKMD(^{p}D6Jrrv_aGWO10I=8B& zBA86#MherIN#ZLx&dN_IiLX=m24y*!>%~pXtGLyJ+qjd$AyiUWz+w_hD(bz`BugK6prG7itki>ui~MCp1I9g!>-kZt3WH+ws5EFhUW=SLE@@qTmFQCXl{5( zL2SyY2?go0Ws94^dR4d!Mzu~)rtFwTeaUbwId3~-{;EZcY}s_yb^bRDdsAQa{l<#$ ziwaU+qi*@P1L1BeIGrm$F`gNE-LO~mitk$XN^!X53Vf@s&lwGFiCVP{1xkrb8iqx> znS;9&#Gke>d&BXej3kZp0kn8~rSE<>l>YsaHXA##F7F4rdT{eW&jiUIs`!SvMj>H( zR6J5)sL+{+=?zmfe9N&t6;;-wVy)PQAGl0x>D_tx-vpv=V6&v2aG%LipAPHd1-5Pr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*O%6`VXe!e;D^z-8Gw~|^@PS`STuo(3+e{k= ze|PJ=k1Ahl7wc?8GS6@$nH-x30Y*G!x04rB-iHq-IodWBqfsyG*>DdT3813vqMAx9 SBLyX(^opQe>Rv^z%J?r8quvMr literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/keystore.crt b/Server/server/tesi/out/production/tesi/com/company/keystore.crt new file mode 100644 index 0000000000000000000000000000000000000000..e60e9dbf2908624e14c1d804c061f6e25664204a GIT binary patch literal 897 zcmXqLVy-o4VoF`W%*4pV#KIgBn8`E5 zP{4o>#NiNTPs-29PtQw)iLfI?_zZYJYPf`1OY<_5@(rPUZWv$2Knf(!EG(Ron3tK8 zuaJ~llvtFKnU|WAlW8C)&TD95Xkct$WMph&WEKVFni?7ynL@ercTf|f5^|t0vNA9? zG4eAQG%<29H8CH)$8+ZrJ9gH0?(VSt>bm6hy`OV5dO4~t2ItM!O}#%;WzXf$584e3 zmz2&s+%T*5a8&m}x5$|xv+^XSzwX^I{eMdD%y{_%*Exrooq3l0$Wr*D;~=*Gg`RuB zy4UZs{{=K%DUm5S zYsA5+IkOYYBE4PysQgcJ?TqJ; z*rLmHU2dcCN~XGYQA9)yTTid3Nf3yBec=+Akkf&Su(oWMbno3AZ8v!5!^J&o(`DDtsGQ_;SNT z^FzBH^fcK7@3MUMOpA5CZiMD8N3NY;C%!nq@oUnARXD$+E7aF|&$>&#zpF80Oqe*0ptcYo{MN9#xHAP@+AQox^uppwX5 zRG(`UlIMwJ?18~cgFrA4ng%^YpJGF(umMm23FZX=7zj#(ezvf^SHJtyBu@NFA<>D_ zza`jwia1wvcb0jp{l{X9uH2(qNqH>mW!(3L%?z(SmQ*crv`-^;ybS13^4qZxp7`zt zzIENdC>9iK*BIxla5za3!ZOkC^3^%t*vsJ{vC<9$3P`+PF3p`&=Scm;FT?2gp0tr5421a0aH zwZR{M6)WTM9uha?8Qi&=#=5g|YJJx=d+Umy)J2^Hxjq;@0;qf)QoxsV`W1t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ykbTq5-o1H09)CKxn|}lT!j9 zz%&2=rMwmLEGg#DA*7UsAtK9LkLB6!@{G!syuQIU2Yt{T%MIYBut|*kmcqFLBMc|~ zj^3+RZi$TOq^885cL^n{)2w`@RCw4MD+(P&n#qxGez*O50$Q~sxS%U0H?qqixx>&t z$2ylHoV}V_lYQ)&n&TpMosi!J(dR1p?kjzGPFJw)^LZol>eVlPN9MHmH$+Y9#J$F< zS-V-6_wui-LObK~tgGRb+acqx~FbNG%qF%yaD zdSX2f^yeJCGn8d>yrVouGdd^G-qhew{@9C<3hoXCDg7Q3sWp`j%yubM&9p8Lqf|MMKWEtoS$j403 z`6BW1CQ3{51w!Iow0$*p-}I+JH#8kO{Ug?tT83X7l3@%i)b`8>7*aIwDM5(V*$%qD zMK6-rY1lJOj2=R6iS(G8p%Q#)3+$5g L8#c~;Me6?rty9`+ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/personalServer.class b/Server/server/tesi/out/production/tesi/com/company/personalServer.class new file mode 100644 index 0000000000000000000000000000000000000000..81fabd779821d9ca0f46eebe72eeaca57a3f9f38 GIT binary patch literal 2302 zcma)8TUQfT6#gb8Oc+Ona5HEXYil7~rWXq>T3e-BtpP8gAg#Sjk^>A(X5w5>dc)qU z4}I)k@R=?NU1inP=l-Ft)rYpl%`{B$pc+a+p%_o(3J$DrPhsz)cmi8d{}9E8b7y1G(Rl zoDb#lQ42oCCrOwZ@+c%xls1HlISofJpTt5EmWo9cODb#y&AwY$5`ltrcF|lm?;4H> z4BxknTrQi7Sf>>QvA`ll7d$K4_g9L!pdm<&sK;Z2!&o0L@6EtvMS=~?o-MvMmwmapJQw&0cw{>rAa zVw8pFyN+q+gtsg_hSyxME#WXdwNwu<;g@ZTl+J1tVPM(DInOg!vX&oErK{1~O1bW_ z|49mG_U3X{BIbn-*FKq-T7yVIcSEqn{J85lq9C2_^F$DO&h=1uL^|d&v#zRT%Qdcs zK{*TvxiCx8w(H-KiOYH!yVx_H6-0^0@{~EWC38NUn-iWWZt<0+Ed-*1UbtHj<-l?s zI#7uD{#;-dmL|+{1UK7NiM;lNc<)^Qu2 zg4QVD9qpszd7RYo0!}iPon_oYMu(3;MW|yL%%|t+DNDz930hsEF=5FiuHCyMI3HSe zQFuB&#b?Z0)A2dJ(D5Z!b=<>yZ(WuZn49p7Vw zU~HS-f>Os1k`)^@*ofE8O9&K!0o+K6BSL|5~RYz;R5w&5G0<5VZ2W2X^6tWKkX zHa{B6DR--%74%ofuwiVU*vTw>HHpTFV86}F`=PV%a!oC&U^P7IsKtD(YfnDi(~hE3 zB`U)cZW_)$UG404ws2p~>#jzpnRLzHZjPL}_HACR(sg3a4*i9O3g=e*K$PS>huhZ?lexyLb$i;YHEARh^|BPQ zdB-FQw(HaJ!H5z~?UZL01mBWgzBLM-MH6CjBKZKt^t4hF?EXGS0m> zvjHVDu#VW^uV|Xg48<#m|AE9hnlppzP}eBagaNKSXy)2Ztq!!Hlh02VY27%6Ll`6{ zQ?-X74D*YYVK5FQI=#pUV$?|CCA>^~uaK&fSEZaHMZv2W;mX*QHGWH9k2jH=-9Srr zAoB=n1=H4n>JT|nB;uwA>f|1hXurA6(PpaN4nM?bcA$c1YSBy#)-{gq(Rc`bf}T>xDoC#} zWAMVb&$svi*6@gX70F4W2pr|3e++HJDb3oQVC{yvUL*p z8^+H>b&Xg(B9iO;lkq!7BlK^vCP`jqqj-%dwjspp5$0)>Fox6gd;$fW!5gg7FmB>3 z-b8}d4o4a>+DhUroMX%nSe^4c$;v&hRdbx@!)W>o_f@?8FN+jYae+rDT>hr2!oX$A Gz4ISue?G$i literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/suString.class b/Server/server/tesi/out/production/tesi/com/company/suString.class new file mode 100644 index 0000000000000000000000000000000000000000..d504a2d2bfabf90c903f51731d2b2b290d710dc9 GIT binary patch literal 2637 zcma)7T~ixX7=BI?*sxt7Kp?F`3sxW>w5i}nX&@G;Rccz)L?}hEOA^D8NBX) z@V3JZm)e_@v7_USH~s-Hz4s?{rq$={CS(JP)5+xQ+4nu?J zIFBU-w^Vqrq#}S%0UK z%Z7Y!7=6`kqarYr%9eKH{O{?-{dlF8u9l5rAtBILv1XalLb$9os#Og$e!P_Xg~9(aLE3R7ic@<9&Xx1kTDiEYn>7L*JS*0Y1lmSof3Hcz z6~Nr-!;%Emov!NHM|br-O9ZA#pet<@iaJ5?{P{QKcSiWo<9xPSD%;AmDHjcIoJQn| zoG3MC7=Zzotpdq6j(7&xKE0XPOvy&vO7MwnHh?XMfizseTPzBznc5j?cz_KJ-{4yfoA^${LvZ;fwiIMFqy8A%GD8@7-Fh|yIH%VKVm8~5n zhIfLQFBYoX*2N{Si0rmrUZC9X$2q==@dIV;)c5xCMdG>Q#AA0=;xzn* z*lcxgAy3{X&^F==_^ZdA84RBelfW212j}_W0TljO7!Y`yvpAnjHaeouA)ayK!7#^8 z%h-hx&NX`hF5(j3x?~=?N^breKK_8z3wYL_!<+KXdy^y4I(!G1jgHjO5r{vq3k<9zzLY66pFp<)qXdOeI`^Rj(W`eL;7!uJ}Q zf+-;`54=PNuF&YgRgz{IH%M>t>7hN)Bpr($p=-?o?zMpTSjS)D!J~vfW`P^B_uxHD zbFZI28&V61v`8TKnKL|-UDG)8FGiG*te*um9cgO1Jk$U$2 zjsU0qeH`lioE~DteT8&B@lf}l9J*h$N@RiuPNJJig$QdFQ%LiDonlC>N9pZA#?o4f zv4Ici1+DiuY8I_XMZldcBOE2s+Q#Y+~eo!KPGevF$gWCxEhbdv1NHnMg> K3oKZYEdB?loL8Ix literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/superServer.class b/Server/server/tesi/out/production/tesi/com/company/superServer.class new file mode 100644 index 0000000000000000000000000000000000000000..74de9bce48e54e913536876b8d82472ed0b2c37e GIT binary patch literal 3533 zcma)9*>@XP9sb7KmB!GP`RYEP6KZ2#Enc+6QGRci8PTkBSxbn z4y7z%EiEmDvQw5egtfE=WH+WIK%r1}I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u1U0MVHApr@UoYth) zFJd5_)RRltFuiL5`tBMwrmkPaU|Q8xJ-MfbO{vX`xFOxGck5~mTNI^+8};rQUX|8# zZ5}t(u=NVIrF-VFJ+-5TA)VR`U%}3F?-F)R>%9xuo$d?d_DQ+@dOzh}y83r1wT8Wy zuHH}Eb9jZHJ!t2T0l>laeD-62zSxWuZ` z^6$i5I7|vg6yuoSdjNl<{zqx^X3phF+|Bgah8J;+t9DxXEHap4797A+cq@*R!x)~R zwYM>YPT(=zgJ}p_{s7*_vjk3(=XtbWr6ZC8Zx?unz&nHgdj;MlU=o>6;3`G*UIRlQ bD=;fy37it-MuHvJW~m6|X@^Y>+Hm^6yhqR< literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/tesi/com/company/xmlOperation.class b/Server/server/tesi/out/production/tesi/com/company/xmlOperation.class new file mode 100644 index 0000000000000000000000000000000000000000..143c10475b0b01f0e7839a6fbf6b84549cfa31cb GIT binary patch literal 3946 zcmbVPYj+dZ72PAty7G98LB=8C87BnnU{H89!6qbN8-nWxu?@zQCXA(tJy_C+(a2z+ z4M}O6v}w}^EzpL(8~0rxtqizL-;dP~{n8)MpOLltq3*t;nenJ5=|gL2=H7G9J@=fw z&p9*mmw(=S2f!};S;cmo642uqR}n#4AfuudhP=EeFrgxjQz|B5%F$_osX9E4tO^Zj zDaq9#4=av>iZieUiYl7m2$WPbOT*JDR!PlfoRuce#W5n!nTg}PiVL_XCm)fQkH+zm z+{S)7;Zt(-X%(;IGjV)YPTr`)=kR%fF9>{5 zLA;|?5txxNzte&4p4Li1(pXgK&+iT`cXP<(a*0y5`qFq*os*QbS-WVw5 z#tnN!AJ4j*t+bv!rrV~Rd%~zQX%-c%?n_&_6#oT1Ka)C_%MKO{TX#$=FAqrDhVIaU z@Dvm@^;z~r>U74+?MU@xjhvBps92M+(h63F*1D~9$y=Qn6fF>Ue)& zWz{iknu?f~g62xNrj=CE9m4wQ=+vjI9txS6t^wQ8E~!up&(3HkmjYtAswRSi&8R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--git a/Server/server/tesi/out/production/testi/com/company/DeleteFileExample.class b/Server/server/tesi/out/production/testi/com/company/DeleteFileExample.class new file mode 100644 index 0000000000000000000000000000000000000000..0e024f6be1e65e6bb8858cd0e1041bd07ba263f2 GIT binary patch literal 1115 zcmaJ=+fEZv6kVs3&M*uV%S}b3;DrLxX#o{!MaoSdDw>p#puQZYhdMa73{wN2;urXg z4<$rg z8Wc=Qiy==r6?wVOX_&`?iu(#4Xh`Crf<*<77!pOxwZdhFj?B~!LwwDv3Wj9aa>Z8N z*%QGw-?Pb*DtjikcX(jQd&?LP-&%(ZV`bBG4Ep=rJvP>bEkdzr*<#~}JH9OnMC)+N zWf;o5E+6ps+_1S@Gb&+VxwS%+cAvr-dYfL$GbEgFjEsYAkc}f#_@U*wl9LBDO5Xnu zN`{_F$jx`pxgRN|TG6{1w2D^`%t#xFxg<0zwdv@`0D~UsY$>5&bLoxk)uhb1Tt1h} z&*!srm%&Rq3MeXgtYaBZ7>56T;cDHot0K^`f|8C^tPy+KI!sriLRH6gtfQo0L&qkT z7)F}9(w;8@F5fC+_c>**X6d;X?B~VM@l;A4{cjf-`Yxa^_6~#@Qf)JB#ck_HqNy#K zidTOiE60bSaLD1+CH}l&FR7OyF$nHZZsNI%aOkr2#x_-2kBwPJ_S38 z+(Wb`nnn!MS#O=M;u_t$a2+FLk>JnhAUdFQhS+YZ;}r4oOaq-CF!2eAGbp>KP|48M zfR^f}r2)Nxo{#7zcd9o!suIz65~WzAVM-FE6fgmm)^2F%A?3Zup%05Br$E|^lzfH6 vNO5V3*O0{xj1or?aoogM#8x8Tc*F$4#(yBE;MR92s|s$%DdGRtdM literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/EmailSender.class b/Server/server/tesi/out/production/testi/com/company/EmailSender.class new file mode 100644 index 0000000000000000000000000000000000000000..e4c00d69024be9ad3fa90489529dd6011bedcefe GIT binary patch literal 4937 zcmcgwd3YRU8UKBo&CX;xY13^>*tS4gN=P>sMb3n)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5Q8x`Q({Qtfm-A2Z^A&>{UdiW{1X2 L@-Y65gJ}9M6RJs( literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/EsNameParser.class b/Server/server/tesi/out/production/testi/com/company/EsNameParser.class new file mode 100644 index 0000000000000000000000000000000000000000..bc79739b268fc5bacd36412b0ab8d9326a7555cf GIT binary patch literal 4701 zcma)A`F9i78NE*$X~wcJAP^u734{P%Q2}FIv4lWO<6sPB3&zl9ERSu0tP!J;F$q~q z(j*Yb1{9|YDQQVtmy$HK4W#Lk7FyaSUH*dp*gv719Nhb6G`3vq6F5in_V0b~-uu4q znOk?ReFC5k{|aF>aw=>Uc@4cG_;DlzANoQ#iYMjgsSu9g=@6d5v-0zthUZK10=`v> z<9IQIm+);BFNZJTgcq2Z(~Ukl+BPHT8w8ht~>n<31_TN>V0aYn`25bl%v z&Bra*u$r$?Px$rZ%TCMoYe@-LQ7)?P>Nzn$4u1-lJP7 z*)DV{c6TZ#Ft<5r_Qd(i>Y1bQ#$1cuV{F&0oMElu28PoXm|0QTd{FPz<7qw972j!F zsZ1Bgl?-P~`xA_blz?dBoX(W=A?D6WneokRH)XPUn`R8Xhi1y!^Qm-)VQtovwrL#| zsB$Lv#rt~F@vP%aF8+v_%=Z`>d*isdT&)&X3oQEbWt?A1tDZ4|So*bWF}Kjrc4^{EqJ((;uHuw`)oF?o_tytsIHh8 zj7gm6Oj$X5Q#Yw2068ORW;zNj`tS5A_R%b{D9aG0ZJmv2LlQ`r14%QVv58>T%%vnS zo-0jR(>8KcPHYlaFaTveGC%jP3*(&0mh0%&x zNruDt4SuWQcVYYY>G_N>!LsaNMt#jO==#r}^9GoEtw#dQlO8}saOPI=Lx z3M;+QHeR{O0;j;VG32+kA2gCYMuqIUmxxB!zH};OF;UcFz!+Ov6syKL$jivy^6xBTbo{t!I+FUNwbea4)A}{E2X}7gtARz4%^iaB;v1{{ppRUKQt# z%83J(z`O~87)>w>#%*5&Rbd8q*66kq>18l-v!8q5qS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IZQx4c9q| zBS3q5918rjx`~8JTJi-7{1Ti31^hePA&7rFz+#MRX9SXwr&cD31OkQJAcV{eJ~B{E R_*M7|{T}{;&dK0q{SV(db0Gi# literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/dbConnect.class b/Server/server/tesi/out/production/testi/com/company/dbConnect.class new file mode 100644 index 0000000000000000000000000000000000000000..c6a1217a55e0bc56a8d7e541708a7cbca8024f5d GIT binary patch literal 11241 zcmd5?3wTuJnf|_HX3ojv1mXaJAn1S!A(GI2RCX zy%g`aR_k4>XuZ`^O^K3C3FJXH?UbgtHT zx}QSyHV%BepU&YKa+s;{2|AxBCIn@KS#p>yhm&+ZStd9|=Q%phE$14ZSI)Iur*TN< zu+H;!uGhIi=LI^wD0de6X$7AuhehH#Tz*04#X9{==OtprX&Nu}QzyM$>ix^F0YfLB zUP`y$dWlTlsPi)Evs~vDI2A zrp_HYck0|Fqpa6?gU%au?$)_S=U$zL#lW-tyoopK{0Zr^Mdz(LZ$mtIyUu6p{7Ie9 z(fM3IN4QT8QJwpBHg(?N=K&rRkYi%Sd1CKQImG31NDc`&VH zm&Us_zJRHuzmI83$9a)mk^0Q}@%olzB4I|ev1DQylP8lM$}&wJyWNwGWX&Nnk;Pr# z@>n94UCC5hGj9_*wNC^5k-j)u0v*X{B)%z)y%=*bSoGE7rD zqRF9p{H7v_J@x&4_VhCPfSK)VUCcD6#+p7JNetBYWYe+4z_NMco8Zb&KhsRxRx_GQ z$Fh6sJIzccGGMmG2F#2YT`}Ztz(d!F+`val4X8zviCtzII9Cn}!*k_cw`voX;4af70J|fW9_lvT zlX@ga;8r|25JM*;9!uoYr&X-sXz5<8Mg3Njfy zs@XY=uNi7V~{TN!4*i2 zK0*(jSia8otU}5&xYRLlgy=~=IWRz+5|_a=8JF|^m)1&qe8BbzXo5z zmm2&T-e>S-d^tQ<;(C;(;2FNc;4AqmgRkampoFTIOXODNVsVgwi5m>Qmaju+`X%Jh zlIo8W8K&uD19s;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DyV$<hNIz literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/esercizi.xml b/Server/server/tesi/out/production/testi/com/company/esercizi.xml new file mode 100644 index 0000000..2d06edb --- /dev/null +++ b/Server/server/tesi/out/production/testi/com/company/esercizi.xml @@ -0,0 +1,3 @@ + + albero.xml + \ No newline at end of file diff --git a/Server/server/tesi/out/production/testi/com/company/guestServer.class b/Server/server/tesi/out/production/testi/com/company/guestServer.class new file mode 100644 index 0000000000000000000000000000000000000000..cc9ff21e80b5589383b8a731bc67641baa06433c GIT binary patch literal 2968 zcmcImS#uOs6#i~9neH?Vgdl`wkq9nHfQ%cW6J$vMK|@#ufr+4YCY_|oqs8233s6`>0&TG}t(%U|d5B1~ud{ zA)g%S%2iO%un5N$cpBQ^s|e&hl*^=w6Dm%sn36^hsW_$LVFiz9ScOLwJf`7VJT8|f z6g;Wn20W$UX$8+Hcvc|kySZ^I5HR|WnUm(plw$=c-_NHqnf^>9>Y>s`+p&X90?Rx8 zQ>*i!K%&nbwgl$)+m1C5P7GPz0dpwNoz{LgXXX!@o-N#>4PX#%Wy-Vid1Vm0nT|QiYy_`zz$o+WCv#RIV5USfHxrn-@!e)2 zYGp*H=g4*vUBUCDFo~w%1pzJNhF;FvVM`LU#CqE;E2^U#8+5G2It4H4cnL3)4Nwumj8gj*Hol@zXgJ`V`TYTeB|jj@pinFYsk-)ABr*DJc|=(u#oM&}&&J0e!_z zR0~rgq1->G<7>^V;^-SeMRM z4GKbZPn67~j@Fq`0`o?#AVwKt?dYs`9!TCLr6DF~N6ex}j+TX0QTbrVUDe|uk~2-< zs*2akhCwyg%#C|J(0z`An8xW6*+*jAai1g{2eZHbsg z%r$vXkb&}?mW%4SW;)5-nCWdLxJ1XU&OTZU50wYq_4O?34Zr!UcAW0AsMT`EC4_8L zi&`VOtl;J0D|eet$U)8fNIvw(m~_r{0@HRl0++=h_A!x+oSjb2>ggO5=q^d?Fr??o zG-RZ*g=aq zfSBs~5e-E&_Rk=ZT{DfQ-7`pL*G@wjSXYFaPJEB%8EDyQ%xTq&m}?}s6fv)e`9|V5 zv33S6lr2a%8HvUsT3c>9ixGn_MJ!AwOTMp4D>GP>HI!*APOCF$%Npu5mZY1Fif1E9 zr>#cC^HQU^h-II4z865rJfUISV zYoZvdX0R$N;~0r)td=QX8>M_*S~b)nu0MyC{xwB(oMTZnL;LkS8vrpT#`ysy?>^UY zQHbuo2<4rvl`Vc1tGOVTTyQVWR67 zc?^gGpM7M+Nn|66eMck~2I%z;@LLjnMAJirr?|5bcan-nFo;dWmt?$(-o=U@W0&<9 ztp!`K6$)cEp_dvec8Ydv!*;%3z`JEHs(6qG;V#m5fjGpRcah{v#Q^TcJ*-o^*ol5d zOAu`WyBSePa+i<59@cLIluIl_Qo&vY`xNX~kWp|z!M(uW=;q^J$X-GR1T}zO1qbg^ Na411XhiTq`?7!)P?O^}_ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/httpget$MyHandler.class b/Server/server/tesi/out/production/testi/com/company/httpget$MyHandler.class new file mode 100644 index 0000000000000000000000000000000000000000..2426f4af0c64b76e1465cb63580be0eea1e4a78e GIT binary patch literal 2344 zcma)8Yj+bx7=ETrGU>8VXv-xiP`PMIfv8;66bhsQEwrg^0mZ7gO~!O#yPNK%G~Vz6 z-u?)m`4Uvl@%YK(@kgo8Y?6|+#p8#a+xxtidFOd&_OHKx{SCk={AAz-6b(${9Ro9% zH86+kX`I`F8@MU)uEcu=(kM#YGGL&X#{0UT*Ubl7@}U8VkF8329 zBtDU-NGwX&5_cr-3Z%~3t{sjFbZ3Wd3M9t7vJ&W>v|Uw z+j`zyOoWSeAkZ^a8@JrDqkI8#!gZBD=2$_XC^|4%@|JS^s+L>JErwyWqQb*#_z?!M z7^@0ovoSV^+?=bz7#k>mMftgLs$E(w5m-?pI!fuQvUv7cUIYwJlQF!;>N=Je@+Y)+g` z$flGL*w?+XG0du<>bZd$R~Grp`!1QCxT^2a-Z;SxVZkf>75f;>NpBr@BxJ z^^Km$4$T(?23n`qerwYDJ>L#lpULceL3>G-94}B9#9qE`0x$BZ>*B|HjZ7N*$&~R!4X7_|Hh>6PZL` z@)xAK@H=Ea`4s6}PtcQ3Wl~RJaJZ$&vGz zX}!>2$3P}s$IeF>$fq6=%f`@6GM{?P0QRGd3UH~uwTIhR&gy(%mZwV z^|Kga!U{~#Q4I6dzkyyH!*Tu-*z|dVIZn|A@G4&8DB$RIoaAVgqf?A2#lF@|uO6LY zd^|dYjPWg|+JJ{VEq60&8zYQb?|Pn*4-+*?ZGA)y*?Gz?aD|e8xQUd+MTvsMn8e!> om)Jr`T;})+zj1zK>QyQvXyO{3O>*3YDI8{RaBVODgAO76FDF1#7ytkO literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/httpget.class b/Server/server/tesi/out/production/testi/com/company/httpget.class new file mode 100644 index 0000000000000000000000000000000000000000..740b7057bbc6980aa45e69ff2359a45171b9cb2b GIT binary patch literal 2222 zcma)7NmmqC7`?BjYMLTQV?)q5Fe!sjiBUpqH6mi@q;a4bB${YZ{e+UHs;z+o`}~e9 zvT++XjS1(t%O<}ki>zYqt8NeueKhBEzu|k|ci;V{SAYHc$6Ekbu$4g%rZn8nAcm6xcNy9=09hg%4MKvs`VOhhY z47#wQ;Rg+mH9Qe$ncJB)opMEb0(!x5q&HnLeP8+lsq4052R8-cL&Hk~iD|bi1=@?Y zBkzTqtI}IAS1Xici>_r>mQ2r9`-U(PtlPxM6)ktu;J<1*JH~ntRM%vX7s&Y4iXA)* zrMDx{KU92SZka~Kbk>Yg;MvYvez-0Q1G{3(nN^y^?eeyOD3D3jv`II6+)5z%vX0pr z%}FS4M}e*%H$E=8N%C!_z_d2#NE99oKWg|%!#D#m zvu(+0V7rd5;VJV`vez6l2t5Y2@bS3(Zvt^IbeK|KdRr>h{ZU^0&@mhtM0u&77_&@K zDN-V9K@zz`4jpjKvy#ZYWRVsCy!C8UsD6LTrSv4E7JZt*v3<8la zFa|oF!Q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1D=MlD_4L<2l3fy{iI74eKuqd+c>bXaVmDWYX8EVFB+ zxRBoyrG@pq;h1HRtw@!nmQ*ZLeXZbYi-l6Z+br`*gy5t-n{(vNa}ZP;nA2}v9tAHN z0~M+amZ1U1$J?fFDfQW_rM7%*v$Oi_QNHS7^ojNIN2f|`9ZsbLP;^3Xeohc~hkR#r z{M?i)BdJoO@(4$+`kl%I_H}&(vTAQ&t*ggDC^awWVx472gn-xJvbW>*MfErKaIoAP+PmE-9$=SuG*<-K)J zW~~rIt#cyt9QB=76rF3*dtfL-4cR&*O%6`VXe!e;D^z-8Gw~|^@PS`STuo(3+e{k= ze|PJ=k1Ahl7wc?8GS6@$nH-x30Y*G!x04rB-iHq-IodWBqfsyG*>DdT3813vqMAx9 SBLyX(^opQe>Rv^z%J?r8quvMr literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/keystore.crt b/Server/server/tesi/out/production/testi/com/company/keystore.crt new file mode 100644 index 0000000000000000000000000000000000000000..e60e9dbf2908624e14c1d804c061f6e25664204a GIT binary patch literal 897 zcmXqLVy-o4VoF`W%*4pV#KIgBn8`E5 zP{4o>#NiNTPs-29PtQw)iLfI?_zZYJYPf`1OY<_5@(rPUZWv$2Knf(!EG(Ron3tK8 zuaJ~llvtFKnU|WAlW8C)&TD95Xkct$WMph&WEKVFni?7ynL@ercTf|f5^|t0vNA9? zG4eAQG%<29H8CH)$8+ZrJ9gH0?(VSt>bm6hy`OV5dO4~t2ItM!O}#%;WzXf$584e3 zmz2&s+%T*5a8&m}x5$|xv+^XSzwX^I{eMdD%y{_%*Exrooq3l0$Wr*D;~=*Gg`RuB zy4UZs{{=K%DUm5S zYsA5+IkOYYBE4PysQgcJ?TqJ; z*rLmHU2dcCN~XGYQA9)yTTid3Nf3yBec=+Akkf&Su(oWMbno3AZ8v!5!^J&o(`DDtsGQ_;SNT z^FzBH^fcK7@3MUMOpA5CZiMD8N3NY;C%!nq@oUnARXD$+E7aF|&$>&#zpF80Oqe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UASfSr9zm*|bFs0|a+rv;zsX>Jv%4w6) zd+}`L8`&d?yv3pBV)OQ%M9DrZedlqm7Nuys35jqbvjb$>a?Qa^y6c`ad1{Q!QU=u; zA+AiG8yQyQc>eB%fY+rgKi}~e!N<+-gYUmHTvFVOF@=wZ*z3{K2P6N?Mws1s99k0u zg2bX}kVrHQOe%zc0WcT}v34*rg{?{mOe=F?&Q%<3|{^&vQ!-6S3?*6KOG3Vbbju!pn9m3D==|=G(`%Al% z0^I^VeJCU{*#|8t#I35PipHWb7_1rw?{I=RRWt_o7ykbTq5-o1H09)CKxn|}lT!j9 zz%&2=rMwmLEGg#DA*7UsAtK9LkLB6!@{G!syuQIU2Yt{T%MIYBut|*kmcqFLBMc|~ zj^3+RZi$TOq^885cL^n{)2w`@RCw4MD+(P&n#qxGez*O50$Q~sxS%U0H?qqixx>&t z$2ylHoV}V_lYQ)&n&TpMosi!J(dR1p?kjzGPFJw)^LZol>eVlPN9MHmH$+Y9#J$F< zS-V-6_wui-LObK~tgGRb+acqx~FbNG%qF%yaD zdSX2f^yeJCGn8d>yrVouGdd^G-qhew{@9C<3hoXCDg7Q3sWp`j%yubM&9p8Lqf|MMKWEtoS$j403 z`6BW1CQ3{51w!Iow0$*p-}I+JH#8kO{Ug?tT83X7l3@%i)b`8>7*aIwDM5(V*$%qD zMK6-rY1lJOj2=R6iS(G8p%Q#)3+$5g L8#c~;Me6?rty9`+ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/personalServer.class b/Server/server/tesi/out/production/testi/com/company/personalServer.class new file mode 100644 index 0000000000000000000000000000000000000000..03678d6fbef9c8f4e23e83a0a51e8a2cc33e1788 GIT binary patch literal 2705 zcma)8>r+%^82_DR*>^b{L_p9rRJ1ZcW%I5pYDk(CB8q8bsfXnN2bOczb5XIIm3F`1 zGrKyIe(8fvE=|ldeXi+?GfmS>Gxc}$A^W}O>@FTc6Adi?PL!#Si6 zWJsy)w$pm%uEiy@KDA9HOVo>F7He*tt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class b/Server/server/tesi/out/production/testi/com/company/suString.class new file mode 100644 index 0000000000000000000000000000000000000000..d8301c942011fc6788a692523afe4548439880fa GIT binary patch literal 2629 zcma)7%W@k<6g@4CtVhQ2Ba($dNnK>7f`7p;q;7TN!FN3siyn(?e5#>+;hA2$E#mn0Jx64 z2Y$>uvEYFX^B%adD4QkO+>ySIrM2wDUD<+Qe0pl2{y%4mf(t*py& z!>Lra^oqbxGE>@#@!Qpkd$CF_RW0kqd|Y6lVp!?YY`LuMCG|>GARJ0=YfrRTK`Z8C zjg?{3RjcZS*zr>C7dpRXf;8hu6kU4-&XjZ2TDiEU6>0?PJ1y3>1lmDjZ?{Rr62Nr# zVF`ljO;xqbw=3GNkpyZa;7;lJqDBxrf96g3of6*vB$ug{%4TLdG8YLw>PBRVoG6u| zwnH>(do+P_77?775J{DP5XibUJB@=r~>Jz#)Ah#C)Q)uijutZqYtt@tKwLIH0 zoVT5K3(@HR(CozHZ{xGpriehKA#f+Oc-SJfGOt$UXwAbifY&Vjbg2`>s8y9&2Joax zwQ?r6q{~~}+q|4t zKk1*V>4j{rtU|-4iVU*6%rO-?e52wjXnlYiDlXunifPOUc&%QMj`LPGw#D zuWlKSmV6#ETUvRRekHUVo@XspYMad$V<@z|Y*`_8ElWVY_B@*5Zx5Ey#77<6XPich6p^g zhvDK`9(ue6f(r=q{A;*`DO|<^{dX~9;EZseiUg@%f?cBG{1x^tt{TC6WZ}UaMmcLk zh!g5)O>fX~Q^4v+NqAe_-E3f3!(DvNHA}VZWjHl;A#w z#(c`elp{LqFgPjX^miMlAqEA{av@60V?-DwpK$~KMWPN+o@+!cS4HtYCfK{U%EaG7 zEj>-te%M~49}Xub37xH=p#M-~6a96f=Y46Q|C5Kv|@pFmFzx7 zj-Ya`H(JM8DNo;TaMK*@XH&;O@&G~W6>{>ajg)_EqkP_|xCzpj#2}Fbh$VrWSm*dL zMU*8bse6z%q_atM_>h80>gyzWh4M71n{#2#Nx{xS`4=81Zi>m_mR`5WcnWdul0`bf zo(X{~a)`l0oRbCCUgWn81ZI)D8Yy?nccqcB?^#wdVpg_;B-vyK NS@V7f%o-_~`w!85N{avh literal 0 HcmV?d00001 diff --git a/Server/server/tesi/out/production/testi/com/company/superServer.class b/Server/server/tesi/out/production/testi/com/company/superServer.class new file mode 100644 index 0000000000000000000000000000000000000000..44b721fb31960237377f1fa74a51beafa3f7483d GIT binary patch literal 3319 zcma)9`*$2w9sf)=$=#hy9^KNGY10>$HU-)#l=9dV6jLf~w6^J4?l2@N00D}=lF~Ni}iD7w%Oez_LyX6=icx8^L^Z# zzyIgGzW}%uADGyQi8NFilO_bFOcddzaaLg3LA}uVm6HnCccJ;^yBMkJZ$0-d_yn3so%b(AKy0d9eh{ddl@{6$I^J*#P{(7 z6Pxgaz>@+`nb?M>1)edn9X}L!R^Uely7zm&7u{_jHMH}DfzFZ2gfh^d_k4A%Rz9PG zF?puMoov41%F+oLczWH~?2L+DXu!_9m9oQ6Rr<3|SgWd_pn@3{3{zoQdcJ|RL#Oj+ z<&1Pn(w}k)QQ-Mg!`h(XYI#jM@AxWm!m#8N3i(3ComLU$yQXR?jF#GnHy3Rfq-R^y zj}-$YCn(%8P4BKvD4}v|ffvm>N7QT~ssxJk)O2~$z}6+^$#7Kqa!LgUrAy9Pttq6R z>z6Rn&yk8Bsq@;=R2Wj%_T?;zn@K=Tg$6y_e063jHHiG0m@5J9-t(@iMqb4yty2b5 zRI+*nV42qG@R%&ed0Pg1OdXXWg*#47%k5SDnB?wvoVLfgiJv*g|X^f#(E%BJjMxPuT%1aynY5)B;x>r0?{jr7Cx8L@eBZ z8x7p<6f0%rOxA+PDY$_*BYjUg5lhZ)e@8BIE4*Z2u+_*?47Hyxw}~e> z>it(NysCp(-KwAgA`9~HkpgkC@N4|Wz`EEzbE)w-~yExdu>QPEhQik{b7zqjxQT+;h*T6ha@6K)Id;Ex72YW?jk9FKsc?gjp2 z;m@dZvLspE5=JtJ)I?5T&ceKQ;a$AfaI;-aJPAl?4YH;GbpQ**po#BdlUR6P!_y|& zQU`6Q-hbvSYnO8**3(w>%xb*3Y=W?Z+oN7KIXHdVIhrHGz_w+i1e>-|VW20fj1*;X zPY}picKy&!-LrP=(W09=sRdT2Dzh?8_Rs+}DQhLhGdQ$!Ngp?P*`Kj{&I)>14OF9h z-oWrs%Lr=B?iHraQbUb_v92M#Xe8d(v;PVuJ`;}Dd|w|e@u|=imj`2~4~Kj%e3wmp z(+Ykxj4sO!V_UNlyFTMe6*<9a-XOClTKZx5^oVwC-%7GE3eDnNmTlVX)Tb%Cp&`E9 ztwjCq|3iJVRH(O)Ks485cU|Ql&!W2#Xg83^s$Eb6LeD)C0rEnR(~D?Xe_8T_63ip7>xI z3#6;C1w*{_>7NdMc(#D`$~TAK2EV&*n1k_lOy0$3cf7e4yZLS<3}oHIRR%ZX7Vc2E z;{|kL75Dy??Z{_Sb#xw$pU39WmF-S_08vLe*SUbqxZODiGuO3%o^iWt4py$)?yjSE z0e$0h=+B9mAT%Lur%A{T%wtt9V`mnS9lvo7t8c2~n(Uf+tj(FWX=irTu`YY*8 zJ8(VjA$J}-D7g!#h~Fe}D-*dIaeIi!Jx0!_c?o|J`*>j8flIiPM@tSLVHkhIep%3!MqP@M8=_BU=W^ZsfV`i z!l$WEUjX({=V#GN{aqNr0ZK4;xEBZcoub9h;XcNk!N)j+!z`43{1r#|mSU9eGODA@ z_Yl1~hWn{uFHiSTdeBX+&oSQP{8u8+JAHwBX^c_l1*9&MkP-NTzzKnq@!u(dae*%i ooaPg_Ou@dZa0omg@FjsS3p^M9KZ$vDo?gATa=1)}MRZ~y=R literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/DeleteFileExample.class b/Server/server/tesi/src/com/company/DeleteFileExample.class new file mode 100644 index 0000000000000000000000000000000000000000..25a7db8d4b1ff9c6ca6775bc6c81df7ad1634be9 GIT binary patch literal 916 zcmZuvT~8B16g|_H&URTSmM;~-7QYHecMGVMA}ESa6-`P^P+x}a&@Ap(%GSW|@X24` zGd{G5B>n(@k}<|RTMWUno4s@A&OPUzy?1{8`ThgI3O01)FvD?ELtaM$1!ZP4xP{vs zcXV*fsK{OA-P2H1>zs~xENHmTv8W@95{JoQF{IZV--*^4lEt~V45{ZqLo#G*jxV>{ z-kxmjh&`7gDNi^)!$k3Y?Ld4IrYroWS&v$d->fR&P(2d%$5$eZ^GO^PV$kbByJgFl zj-r@&Azc~8o2?_^g{~|qDg&b!V=!V`Cos>F?bQ!%(A+2Fl2x{>@^ZOEdzD-^u!Lof z6$20OkYVzFL7Q#IZOE2^N2nNhj8$UKJBRs3T)$B;P(_7f&A=0s8K!!=@ z}q(h+({VdHd2mZSff1 zT|m~44X@Z_NK%aj`a)4wVv@E=M-@;)}4;61GGESLmv$Cjo+EjO;k=rfFrg4$ODKPROCl zK{nkBB7;d>C10g}Mv}n5vr{B?bIC4JwS^7_zF_tn(x>3NU1$`@bfD)3$#h_JF!U9J zbetQGT}>fIPGa&3jXq0+s@yCzvV+huL^_9IVFVQ_T_vS!RQxHf(F=;Ee#7Fp{tJAQ NV=6^VHz=OK^k1si&-DNR literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/DirectoryWatcher.class b/Server/server/tesi/src/com/company/DirectoryWatcher.class new file mode 100644 index 0000000000000000000000000000000000000000..fb7ef98f5e0aba51d975356790d0781fe0a90dbb GIT binary patch literal 4627 zcma)A3wRXO75?vLcV{y@5KV}(7$J&c9>5}M)CExt!A3$rf?(82C%Z#3Fgvr(&H|xT zTT!c4t&dg>wzb;Ut<_qw8jPs5FKzA1+S-@3@7k(;X{}XM;(up1n_Uw6_4{__-nsYO zbI81^3B^T~R!M zuSW489*SZZ*D2U71s|3pBN03z+dWd|Q3a1h@VJ7nDR@G`*9C$Z-5U^?*0o9BqQ`C1 ziElJ5BfgrWiv+@pP22RA2prlpnLzV8Drk37hCof1X&c?Sbf4j_)%z?tlF3P7Z7fk8#^yKE1dd8RYP01FuZ@ck`XuY1V>e{xatIwC-92rXB2Y)cv$&vfj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P@g$nF@nm*gNYMaI RxSy>`T$k{_ldpuU-vdet*TMh* literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/DirectoryWhatcer.java b/Server/server/tesi/src/com/company/DirectoryWhatcer.java new file mode 100644 index 0000000..8b376a1 --- /dev/null +++ b/Server/server/tesi/src/com/company/DirectoryWhatcer.java @@ -0,0 +1,147 @@ +package com.company; + +import java.io.*; +import java.nio.file.Path; +import java.nio.file.StandardWatchEventKinds; +import java.nio.file.WatchEvent; +import java.nio.file.WatchEvent.Kind; +import java.nio.file.WatchKey; +import java.nio.file.WatchService; +import java.security.NoSuchAlgorithmException; +import java.sql.SQLException; +import java.util.ArrayList; + +// Simple class to watch directory events. +class DirectoryWatcher implements Runnable { + + private Path path; + + public DirectoryWatcher(Path path) { + this.path = path; + } + + //rimuove tutti gli elementi non validi + private void pulisciCartella() { + File dir = new File(global.locationEsercizi); + String[] lista=dir.list(); + for(String name : lista) + { + if (!EsNameParser.check(name)) + { + File file = new File(global.locationEsercizi+name); + if (file.delete()) + System.out.println("eliminato: "+name); + else + System.out.println("problema di eliminazione file"); + } + else + { + xmlOperation es=new xmlOperation(); + File car=new File(global.listaEsercizi); + if (car.exists()) { + dbConnect db=new dbConnect(); + try { + ArrayList esercizi=suString.stringToArrayList(db.dbQuery("4")); + boolean add=true; + for(String esercizio : esercizi) + { + if(esercizio.equals(name)) + add=false; + } + if(add) + es.add(name); + } catch (SQLException e) { + e.printStackTrace(); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InstantiationException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } + } + } + } + } + + // print the events and the affected file + private void printEvent(WatchEvent event) throws IOException { + Kind kind = event.kind(); + if (kind.equals(StandardWatchEventKinds.ENTRY_CREATE)) + { + Path pathCreated = (Path) event.context(); + System.out.println("Entry created:" + pathCreated); + boolean check = EsNameParser.check(pathCreated.getFileName().toString()); + if(!check) + { + File file = new File(global.locationEsercizi+pathCreated.getFileName().toString()); + if(file.delete()) + System.out.println("eliminato"); + else + System.out.println("problema di eliminazione file"); + } + else + { + xmlOperation es=new xmlOperation(); + File dir=new File(global.listaEsercizi); + if (dir.exists()) + es.add(pathCreated.getFileName().toString()); + } + } + else if (kind.equals(StandardWatchEventKinds.ENTRY_DELETE)) + { + Path pathDeleted = (Path) event.context(); + System.out.println("Entry deleted:" + pathDeleted); + xmlOperation es=new xmlOperation(); + File dir=new File(global.listaEsercizi); + if (dir.exists()) + es.remove(pathDeleted.getFileName().toString()); + } + else if (kind.equals(StandardWatchEventKinds.ENTRY_MODIFY)) + { + Path pathModified = (Path) event.context(); + System.out.println("Entry modified:" + pathModified); + } + } + + @Override + public void run() { + try { + pulisciCartella(); + WatchService watchService = path.getFileSystem().newWatchService(); + path.register(watchService, StandardWatchEventKinds.ENTRY_CREATE, + StandardWatchEventKinds.ENTRY_MODIFY, StandardWatchEventKinds.ENTRY_DELETE); + + // loop forever to watch directory + while (true) { + WatchKey watchKey; + watchKey = watchService.take(); // this call is blocking until events are present + + // poll for file system events on the WatchKey + for (final WatchEvent event : watchKey.pollEvents()) { + printEvent(event); + } + + // if the watched directed gets deleted, get out of run method + if (!watchKey.reset()) { + System.out.println("No longer valid"); + watchKey.cancel(); + watchService.close(); + break; + } + } + + } catch (InterruptedException ex) { + System.out.println("interrupted. Goodbye"); + return; + } catch (IOException ex) { + ex.printStackTrace(); // don't do this in production code. Use a loggin framework + return; + } + } + +} diff --git a/Server/server/tesi/src/com/company/EmailSender.class b/Server/server/tesi/src/com/company/EmailSender.class new file mode 100644 index 0000000000000000000000000000000000000000..8c301a816fbd209639f2735efab060bba14ab534 GIT binary patch literal 3205 zcmcguS$7;q75++^nQpb(i$-?r_9`#2<*_uA#1In6BsjJO5|(T{a)J}Gv}VeqwtKpV z?jA*A4}pXw33~{e*>Tvh6OEh*!g6?mCwSy9@B?_^0AF>Fr5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m;}!< zFfS1C3f_xXF@N z^4sBvowz9WqE2mKI%NJ!a8|=94wD+DG@J(6GvgZG$N$+JPf;ea3)A=sM}sM{fFI(= G==mS;A7#k^ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/EmailSender.java b/Server/server/tesi/src/com/company/EmailSender.java new file mode 100644 index 0000000..1abf701 --- /dev/null +++ b/Server/server/tesi/src/com/company/EmailSender.java @@ -0,0 +1,110 @@ +package com.company; + +import java.util.Date; +import java.util.Properties; +import javax.mail.Message; +import javax.mail.MessagingException; +import javax.mail.Multipart; +import javax.mail.NoSuchProviderException; +import javax.mail.Session; +import javax.mail.Transport; +import javax.mail.internet.AddressException; +import javax.mail.internet.InternetAddress; +import javax.mail.internet.MimeBodyPart; +import javax.mail.internet.MimeMessage; +import javax.mail.internet.MimeMultipart; + + + +public class EmailSender { + private String user; + private String password; + private String host; + private String mittente; + private String destinatario; + private String oggetto; + private String mess; + + + EmailSender(String user, String password, String host, + String mittente, String destinatario, + String oggetto, String mess){ + + this.user = user; + this.password = password; + this.host = host; + this.mittente = mittente; + this.destinatario = destinatario; + this.oggetto = oggetto; + this.mess=mess; + } + + + // Metodo che si occupa dell'invio effettivo della mail + public void inviaEmail() { + int port = 465; //porta 25 per non usare SSL + + Properties props = new Properties(); + props.put("mail.smtp.auth", "true"); + props.put("mail.smtp.user", mittente); + props.put("mail.smtp.host", host); + props.put("mail.smtp.port", port); + + // commentare la riga seguente per non usare SSL + props.put("mail.smtp.starttls.enable","true"); + props.put("mail.smtp.socketFactory.port", port); + + // commentare la riga seguente per non usare SSL + props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); + props.put("mail.smtp.socketFactory.fallback", "false"); + + Session session = Session.getInstance(props, null); + session.setDebug(true); + + // Creazione delle BodyParts del messaggio + MimeBodyPart messageBodyPart1 = new MimeBodyPart(); + + try{ + // COSTRUZIONE DEL MESSAGGIO + Multipart multipart = new MimeMultipart(); + MimeMessage msg = new MimeMessage(session); + + // header del messaggio + msg.setSubject(oggetto); + msg.setSentDate(new Date()); + msg.setFrom(new InternetAddress(mittente)); + + // destinatario + msg.addRecipient(Message.RecipientType.TO, + new InternetAddress(destinatario)); + + // corpo del messaggio + messageBodyPart1.setText(mess); + multipart.addBodyPart(messageBodyPart1); + + // allegato al messaggio + /*DataSource source = new FileDataSource(allegato); + messageBodyPart2.setDataHandler(new DataHandler(source)); + messageBodyPart2.setFileName(allegato); + multipart.addBodyPart(messageBodyPart2);*/ + + // inserimento delle parti nel messaggio + msg.setContent(multipart); + + Transport transport = session.getTransport("smtps"); //("smtp") per non usare SSL + transport.connect(host, user, password); + transport.sendMessage(msg, msg.getAllRecipients()); + transport.close(); + + System.out.println("Invio dell'email Terminato"); + + }catch(AddressException ae) { + ae.printStackTrace(); + }catch(NoSuchProviderException nspe){ + nspe.printStackTrace(); + }catch(MessagingException me){ + me.printStackTrace(); + } + + } +} diff --git a/Server/server/tesi/src/com/company/EsNameParser.class b/Server/server/tesi/src/com/company/EsNameParser.class new file mode 100644 index 0000000000000000000000000000000000000000..d2cfbe33ba50d020e5bf7cd90bc216c0e457c275 GIT binary patch literal 3814 zcma)9`*Rc575=WY(ynFk@PYtgo+S`J*@8h3853e-5(i@lrX;o@uwJk21xYKU6&ON8 zAdnRDXqvR4&=)OjNn1BfJFQJZr@wS2naK~G{u})h%4BfAyLwmzGmU3_pXZ)?&Ue0Z zuJ+3ZpZxir_mqESnc2cnJd$3}Q$&M>HI*#mhKW zi{mgO7>1={B!Y$5ufdl6sBFeGjLY7M-~>);NJ*t>6`2T@!_|;gaY{ulf>rXqmB`D+ zlTBJfA%X->%jS%R2@Pj8oYU}%RCQj%cQw4K;ev+OG+fkhNyFr??Wf^L=KTgT)Pvy(i4mrjar; zV@AK1b24M?0`vMk(>l4&%=+>^QrA?xrQ&TB@2Gf}J_&@Zaoaj65Nmi;MdKiS6^QyG zd)!>QkTM0D8+zT`m~p1fGDh6AvD>u@X*=V!&vm|hxF_p+cHR+)K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MD5.java b/Server/server/tesi/src/com/company/MD5.java new file mode 100644 index 0000000..623f11f --- /dev/null +++ b/Server/server/tesi/src/com/company/MD5.java @@ -0,0 +1,46 @@ +package com.company; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; + + +public class MD5 { + + MD5(){} + public static String digest(String filePath) { + InputStream inputStream = null; + try { + inputStream = new FileInputStream(global.locationEsercizi+filePath); + byte[] buffer = new byte[1024]; + MessageDigest digest = MessageDigest.getInstance("MD5"); + int numRead = 0; + while (numRead != -1) { + numRead = inputStream.read(buffer); + if (numRead > 0) + digest.update(buffer, 0, numRead); + } + byte [] md5Bytes = digest.digest(); + System.out.println(convertHashToString(md5Bytes)); + return convertHashToString(md5Bytes); + } catch (Exception e) { + return null; + } finally { + if (inputStream != null) { + try { + inputStream.close(); + } catch (Exception e) { } + } + } + } + + private static String convertHashToString(byte[] md5Bytes) { + String returnVal = ""; + for (int i = 0; i < md5Bytes.length; i++) { + returnVal += Integer.toString(( md5Bytes[i] & 0xff ) + 0x100, 16).substring(1); + } + return returnVal; + } +} diff --git a/Server/server/tesi/src/com/company/Makefile b/Server/server/tesi/src/com/company/Makefile new file mode 100644 index 0000000..2cc75ec --- /dev/null +++ b/Server/server/tesi/src/com/company/Makefile @@ -0,0 +1,2 @@ +all: + javac -cp "/tmp/ext/mysql-connector-java.jar:/tmp/ext/jdom-2.0.5.jar:/tmp/ext/mail-1.4.1.jar:." *.java diff --git a/Server/server/tesi/src/com/company/dbConnect.class b/Server/server/tesi/src/com/company/dbConnect.class new file mode 100644 index 0000000000000000000000000000000000000000..03ff58b2c3e3aad13dbd3c34995b9d3934e83e70 GIT binary patch literal 9152 zcmc&)d3+StegFQXUCn4U;#f{`*bBz!+C?@u0t`YDAdmz`0s=PJtJNSataim7obie8 zJ9c~qJNN`AZ7SnbNLFIIag7_dshzax6(_NsrcL6c&0(jlaZJB&X7&(ToWJ@hptn13 z-us>3-|?P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O*B|*z820V+#dA+6M_-DF>uTks) zvd7A=Gs*`thwKIPl=|ZxhdcXm*JIFJ$Kfh`5tG!>)jr?ZCvLAr-Hn3MmFiqRXuW>v Fe*qe(7Ty2= literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/dbConnect.java b/Server/server/tesi/src/com/company/dbConnect.java new file mode 100644 index 0000000..28d851c --- /dev/null +++ b/Server/server/tesi/src/com/company/dbConnect.java @@ -0,0 +1,355 @@ +package com.company; + +import java.sql.*; +import java.io.IOException; + +import java.math.BigInteger; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; + +import java.util.Random; + +import java.sql.Timestamp; + +import java.util.ArrayList; + +import java.lang.Double; + +public class dbConnect +{ + private static Connection db; + private static Statement stmt; + dbConnect() + {} + + + public static Long time() + { + java.util.Date date= new java.util.Date(); + Timestamp now=new Timestamp(date.getTime()); + return now.getTime(); + } + + //pulisce confmail e connessi da tutte le richieste maggiori di 10 minuti + private static void deletetmp() throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + PreparedStatement preparedStmt = db.prepareStatement("DELETE FROM confmail WHERE time<=?"); + preparedStmt.setLong (1,(time()-600000)); + preparedStmt.execute(); + preparedStmt = db.prepareStatement("DELETE FROM connessi WHERE time<=?"); + preparedStmt.setLong (1,(time()-600000)); + preparedStmt.execute(); + } + + //divide la stringa in user e password + private static String splitUsrPass(String userAndPass, int code) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + String user=null; + String pass=null; + ArrayList userPass= suString.stringToArrayList(userAndPass); + if(userPass.size()>=1) + user=userPass.get(0); + if(userPass.size()>=2) + pass=userPass.get(1); + + assert user != null; + if(!user.contains("@studio.unibo.it") && user.length()<16) + return "mail-error"; + else { + assert pass != null; + if(code==0) + return registration(user, pass); + else if(code==1) + return login(user, pass); + else if(code==2) + return recupero(user); + else + return "error"; + } + } + + //routin di gestione recupero pass + private static String recupero(String user) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM utenti where user='"+user+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + EmailSender email = new EmailSender(global.email, + global.emailPass, + "smtp.gmail.com", + global.email, + user, + "OGGETTO: recupero password", + "la tua password è "+returnQuery.getString("pass")); + email.inviaEmail(); + return "mail-pass-ok"; + } + else + return "user-error"; + } + else + return "user-error"; + } + + + //routin di gestione della registrazione + private static String registration(String user, String pass) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + String ran; + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM utenti where user='"+user+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + if(returnQuery.getString("user").compareTo(user)==0 && returnQuery.getString("pass").compareTo(pass)==0) + return "già-registrato"; + } + } + returnQuery=stmt.executeQuery("SELECT * FROM confmail where user='"+user+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + ran=returnQuery.getString("hash"); + if(returnQuery.getString("pass").compareTo(pass)!=0) + { + PreparedStatement preparedStmt = db.prepareStatement("UPDATE confmail SET pass =? where user=?"); + preparedStmt.setString (1,pass); + preparedStmt.setString (2,user); + preparedStmt.execute(); + } + } + else + { + Random random = new Random(); + ran=String.valueOf(random.nextInt(100000000)+10000000)+String.valueOf(random.nextInt(100000000)+10000000)+String.valueOf(random.nextInt(100000000)+10000000); + //returnQuery=stmt.executeQuery("INSERT INTO confmail VALUES('"+user+"','"+pass+"',"+hash+"')"); + PreparedStatement preparedStmt = db.prepareStatement("INSERT INTO confmail (user,pass,hash,time) VALUES(?,?,?,?)"); + preparedStmt.setString (1,user); + preparedStmt.setString (2,pass); + preparedStmt.setString (3,ran); + preparedStmt.setDouble (4,(double)time()); + preparedStmt.execute(); + } + } + else + { + Random random = new Random(); + ran=String.valueOf(random.nextInt(100000000)+10000000)+String.valueOf(random.nextInt(100000000)+10000000)+String.valueOf(random.nextInt(100000000)+10000000); + //returnQuery=stmt.executeQuery("INSERT INTO confmail VALUES('"+user+"','"+pass+"',"+hash+"')"); + PreparedStatement preparedStmt = db.prepareStatement("INSERT INTO confmail (user,pass,hash,time) VALUES(?,?,?,?)"); + preparedStmt.setString (1,user); + preparedStmt.setString (2,pass); + preparedStmt.setString (3,ran); + preparedStmt.setDouble (4,(double)time()); + preparedStmt.execute(); + } + EmailSender email = new EmailSender(global.email, + global.emailPass, + "smtp.gmail.com", + global.email, + user, + "OGGETTO: Registrazione App", + "per confermare la tua email clicka sul link: http://"+global.serverName+"/test?id="+ran); + email.inviaEmail(); + return "mail-reg-ok"; + } + + //routin conferma registrazione + private static String confirmRegistration(String hash) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM confmail where hash='"+hash+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + PreparedStatement preparedStmt = db.prepareStatement("INSERT INTO utenti (user,pass) VALUES(?,?)"); + preparedStmt.setString (1,returnQuery.getString("user")); + preparedStmt.setString (2,returnQuery.getString("pass")); + preparedStmt.execute(); + preparedStmt = db.prepareStatement("DELETE FROM confmail WHERE hash=?"); + preparedStmt.setString (1,hash); + preparedStmt.execute(); + return "registrazione-ok"; + } + } + return "registrazione-error"; + } + + //routin di gestione login + private static String login(String user, String pass) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM utenti where user='"+user+"' and pass='"+pass+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + if(returnQuery.getString("user").compareTo(user)==0 && returnQuery.getString("pass").compareTo(pass)==0) + return putConnessi(user); + } + } + return "login-error"; + } + + + //informazioni sulla connessione dell'utente + private String infoConnessi(String message) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + ArrayList split= suString.stringToArrayList(message); + if(split.size()>=1) + { + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM connessi WHERE tempkey='"+split.get(1)+"'"); + if(returnQuery!=null) + { + if(returnQuery.next()) + { + return "loggato"; + } + } + } + return "request-login"; + } + + //inserisce l'utente in connessi + private static String putConnessi(String user) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + Random random = new Random(); + String ran=String.valueOf(random.nextInt(100000000)+10000000)+String.valueOf(random.nextInt(100000000)+10000000); + PreparedStatement preparedStmt = db.prepareStatement("INSERT INTO connessi (user,tempkey,thread,time) VALUES(?,?,?,?)"); + preparedStmt.setString (1,user); + preparedStmt.setString (2,ran); + preparedStmt.setBoolean (3,false); + preparedStmt.setDouble (4,(double)time()); + preparedStmt.execute(); + return ran; + } + + //segnalare morte di un thread + private String threadDead(String key) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + PreparedStatement preparedStmt = db.prepareStatement("DELETE FROM confmail WHERE tempkey=?"); + preparedStmt.setString (1,key); + preparedStmt.execute(); + return "kill-ok"; + } + + //remposta il rimer dell'utente nella tabella connessi + private String connessiTimer(String key) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException + { + PreparedStatement preparedStmt = db.prepareStatement("UPDATE connessi SET time =? where tempkey=?"); + preparedStmt.setDouble (1,(double)time()); + preparedStmt.setString (2,key); + preparedStmt.execute(); + return "timer-settato"; + } + + private String exerciseAccept(String request) throws SQLException, IOException, NoSuchAlgorithmException { + ArrayList input=suString.stringToArrayList(request); + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM connessi where tempkey='"+input.get(0)+"'"); + String utente=null; + if(returnQuery!=null) + { + if(returnQuery.next()) + utente=returnQuery.getString("user"); + } + if(utente!=null) + { + String[] esercizi=suString.stringToVectorString(EsNameParser.esName()); + for(String esercizio : esercizi) + { + if(esercizio.contentEquals(input.get(1)))//se l'esercizio esiste + { + if(MD5.digest(esercizio).contentEquals(input.get(2)))//se il digest è uguale + { + PreparedStatement preparedStmt = db.prepareStatement("INSERT INTO esercizi (esercizio,utente,click,time) VALUES(?,?,?,?)"); + preparedStmt.setDouble(4, Double.parseDouble(input.get(3))); + preparedStmt.setInt (3,Integer.valueOf(input.get(4))); + preparedStmt.setString (2,utente); + preparedStmt.setString (1,input.get(1)); + preparedStmt.execute(); + return "es-ok"; + } + } + } + } + return "es-err"; + } + + private String userExercise(String request) throws SQLException { + ArrayList arrayResult=new ArrayList(); + ArrayList input=suString.stringToArrayList(request); + String result=null; + ResultSet returnQuery=stmt.executeQuery("SELECT * FROM connessi where tempkey='"+input.get(0)+"'"); + String utente=null; + if(returnQuery!=null) + { + if(returnQuery.next()) + utente=returnQuery.getString("user"); + } + if(utente!=null) + { + returnQuery=stmt.executeQuery("SELECT * FROM esercizi where utente='"+utente+"'"); + while(returnQuery.next()) + { + arrayResult.add(returnQuery.getString("esercizio")+"/"+MD5.digest(returnQuery.getString("esercizio"))+"/"+returnQuery.getDouble("time")+"/"+returnQuery.getInt("click")); + } + result=suString.multiToString(arrayResult); + } + return result; + } + + private String cambiaPass(String request) throws ClassNotFoundException, SQLException, InstantiationException, IOException, IllegalAccessException { + ArrayList input=suString.stringToArrayList(request); + if(input.size()>=3) { + String result = login(input.get(0), input.get(1)); + if(!result.contains("err")) + { + PreparedStatement preparedStmt = db.prepareStatement("UPDATE utenti SET pass =? where user=?"); + preparedStmt.setString (1,input.get(2)); + preparedStmt.setString (2,input.get(0)); + preparedStmt.execute(); + return "cambiata"; + } + } + return "error"; + } + + public String dbQuery(String input) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException, NoSuchAlgorithmException { + Class.forName("com.mysql.jdbc.Driver").newInstance(); + db = DriverManager.getConnection("jdbc:mysql://localhost/logintesi", "root", "csc@CerCo!"); + stmt = db.createStatement(); + deletetmp(); + if (input.charAt(0) == '0') + return splitUsrPass(input.substring(2), 0); + else if (input.charAt(0) == '1') + return splitUsrPass(input.substring(2), 1); + else if (input.charAt(0) == '2') + return recupero(input.substring(2)); + else if (input.charAt(0) == '3') + return confirmRegistration(input.substring(1)); + else if (input.charAt(0) == '4') + return EsNameParser.esName(); + else if (input.charAt(0) == '5') + return infoConnessi(input.substring(2)); + else if (input.charAt(0) == '6') + return connessiTimer(input.substring(2)); + /*else if (input.charAt(0) == '7') + return threadDead(input.substring(2));*/ + /*else if(input.charAt(0)=='8') + return aggToClient(input.substring(2)); + else if(input.charAt(0)=='9') + return aggForClient(input.substring(2)); + else if(input.charAt(0)=='a' && input.charAt(1)=='0') + return check(input.substring(3));*/ + else if (input.charAt(0) == '8') + return exerciseAccept(input.substring(2)); + else if (input.charAt(0) == '9') + return userExercise(input.substring(2)); + else if(input.charAt(0)=='a' && input.charAt(1)=='0') + return cambiaPass(input.substring(3)); + return "error"; + } +} diff --git a/Server/server/tesi/src/com/company/esercizi.xml b/Server/server/tesi/src/com/company/esercizi.xml new file mode 100644 index 0000000..c28cd97 --- /dev/null +++ b/Server/server/tesi/src/com/company/esercizi.xml @@ -0,0 +1,10 @@ + + + aalbero.xml + tautologia.xml + demorgan.xml + triviale.xml + test.xml + risolvibile.xml + demorgan2.xml + diff --git a/Server/server/tesi/src/com/company/esercizi.xml~ b/Server/server/tesi/src/com/company/esercizi.xml~ new file mode 100644 index 0000000..47eb032 --- /dev/null +++ b/Server/server/tesi/src/com/company/esercizi.xml~ @@ -0,0 +1,4 @@ + + + aalbero.xml + diff --git a/Server/server/tesi/src/com/company/global.class b/Server/server/tesi/src/com/company/global.class new file mode 100644 index 0000000000000000000000000000000000000000..00f0bd35533715c090653b57adc696ae089dd94e GIT binary patch literal 964 zcmbVKTTc@~6#k~rcDvnDSnw{Qc;liwltKj|#)M!rA!t&=E19li8JO;DcDF?QMZTJS zF!8}3;Eyt%*^2PslMj2oJ!if-m+#EaU*CTKXk*L86c!vT)-Z`B2g??pICyF?aKJ6D zIA~d1bS}LS)!u;7Lj&LM64(~ z5PB#bY%)x06N*fk==`dK=M3XVW*`~76M5FnOd{WjG`-~R3w!EPu~V6hoU$AUr5S1k zj`;Q1B$? z&_o|)LOP^jLQ61_92I-nx7q|$#lvmObg6nLK9Z*!k%w7Kd$@x+4|g#~i@V&=XgJ!^ z#WLUa>}U+T|2?Jc%080d(|{JX{O>&Ru%}gcc$5t^Kfl09-${C|fJ@T&m{oJBeJ4lFcXQNzFGpiae918}HTN<{^CICqr2?ub a6S~xUlk5!YG=p7HgNja2`bWem;qhr5Ahl?0G-V^FHr$_Wbtuk3Rv} zi_cZ`Vzdc8IIQ9bj&h8t2xFY%n2HFF%i%;5UcgC?2^A_v6`Ydq7v&IFF^MUTX%#IP zRdE_;%&Y(o8VGw&Y^kaZyQG*4W@JmC~w4)PN-g6VKBaFqf z!pI0mdgmG1YYt=H?5uD^rf$8g!9jt;)!<=?p`+rOGpuZs5}8(Z%rkS8iNMdRGNmj@V16`@UDjU@IFIl z4bZgbu0THTn63}`gEb)6t=Acts^LRi({KZO88kv>T1%!OfiZ;kMG37VE=%eLa(33V zG<<}cfkojsHkHK5n58HJ6oj4^PQkW}oKL&t@MG#kotT+9VmKq$Khf~1M6j`LJbpDT z@~&yqo}WomM=*1so2xQTr{;+%hSqwXvz}%73i6Y$ZttpSzfslRts!HE^;zKt#6hmz zJry}WrWz9bW?$!z8>DEM&zm@$&j*V*i_3J&<~{yP?uOPxMGpcgY8kdZ7Uc~ zlhmrpm50vA=Y^GF7^v9NGtt~@$5Uoyk-@%URbk7~=)v0k8 zm-R4ZA>X^0)hV!ujj@Q2V^fTm(U#PC3GFeZjElF4ln$~_Xw&lLR&wf}b#z#kaKU)aw!-~gjYwi6?42nX2& z4zVeWvN;@P3pm0&jIrw&XJ6nLyM;+Yaf*G7IJ=E$JVz*o!5`6P5srNv!yNlLp658g g2@D=0^(O}D>mibl2oobG$h&zYOf?;(=nxM518i?LHvj+t literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/guestServer.java b/Server/server/tesi/src/com/company/guestServer.java new file mode 100644 index 0000000..1fb6ce9 --- /dev/null +++ b/Server/server/tesi/src/com/company/guestServer.java @@ -0,0 +1,80 @@ +package com.company; + +import java.io.*; + +import javax.net.ssl.*; + +class guestServer implements Runnable +{ + private SSLSocket socket; + + guestServer(SSLSocket client) + { + socket=client; + } + + public void run() + { + try + { + + //Reading the message from the client + InputStream is = socket.getInputStream(); + InputStreamReader isr = new InputStreamReader(is); + BufferedReader br = new BufferedReader(isr); + String requestMessage = br.readLine(); + System.out.println("ho ricevuto: "+requestMessage); + /*System.out.println("Message received from client is "+returnMessage); + dbConnect request=new dbConnect(); + String returnQuery=request.dbQuery(returnMessage); + OutputStream os = socket.getOutputStream(); + OutputStreamWriter osw = new OutputStreamWriter(os); + BufferedWriter bw = new BufferedWriter(osw); + System.out.println(returnQuery); + bw.write(returnQuery+"\n"); + bw.flush();*/ + if(requestMessage!=null) + { + dbConnect request = new dbConnect(); + String returnQuery; + if ( requestMessage.charAt(0) == '0' || + requestMessage.charAt(0) == '1' || + requestMessage.charAt(0) == '2' || + (requestMessage.charAt(0) == 'a' && requestMessage.charAt(1) == '0')) { + returnQuery = request.dbQuery(requestMessage); + OutputStream os = socket.getOutputStream(); + OutputStreamWriter osw = new OutputStreamWriter(os); + BufferedWriter bw = new BufferedWriter(osw); + bw.write(returnQuery + "\n"); + bw.flush(); + System.out.println("ho inviato: " + returnQuery); + } + else + { + returnQuery = request.dbQuery("5/" + requestMessage); + if (returnQuery.contains("request-login") || returnQuery.contains("request-error")) + { + OutputStream os = socket.getOutputStream(); + OutputStreamWriter osw = new OutputStreamWriter(os); + BufferedWriter bw = new BufferedWriter(osw); + bw.write(returnQuery + "\n"); + bw.flush(); + System.out.println("ho inviato: " + returnQuery); + } + else if (returnQuery.contains("loggato")) + { + personalServer nuovaConnessione = new personalServer(socket, requestMessage); + Thread t = new Thread(nuovaConnessione); + t.start(); + } + } + } + + } + catch (Exception e) + { + e.printStackTrace(); + } + + } +} diff --git a/Server/server/tesi/src/com/company/httpget$MyHandler.class b/Server/server/tesi/src/com/company/httpget$MyHandler.class new file mode 100644 index 0000000000000000000000000000000000000000..7862be87ea690614f009e6b0aa355e994d87235b GIT bin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D0e^nKwoB<5_#mJ1Bg%-A+VY|$+X zhVFvxh_&E(NqC!PsY)8nuT^dNFc97m!;MT~-+W;jRnw^$Md{g2B{$Yk1=6k>t7a|7 z&{dSCbwIL$;8^2W=XgL^ONW-IN!xXNj)xRp(XKeA3_S9ae?RoxMduea3lu=q3mnP@ zIV`$?XNhGyWTNj$S*r*+8B)-39iK4tDmp55VtydXE2h6kku$In3S7qqiX_kL*u<8O zZR{|_w>Fn2W;h<{*v0pu@-Y$A@dQ6G^eaF|NFz^6(X|eQyjw1N!Y9f<>i7vyL)Rup zNr#0p!5LEclHr==J~!xJGo2%&8S3y^{d5RC(^0{m4m*sz=e!VSS=F(xj@lqGTspt7 zUfLHHxlEm_HUh_K6uiZ*QDG{mvOBFX`F?yc?+nAr%65${#}8^X*OQ{Wy{K6Q-mWaj!|aZM)`((|f_f*WN%|bR8)U ziSCnjd3*;@b3oA?d52LGo!oW$LM|N&E08WRA8I;Ny=l3Q6?mR-q;YDI3v&|prRh;* z-8C9mQVpj~&$I*v(ML0x;UgN*QTo$JpsxXvuF=kDkB=XNy&{1!OKUfqBn+n0!@ zc^%1A$7^VPi8PNrt)o+Y{Q*6SouA|E<=elqzY%ssdA|-$au0dCjBccHlcxP7uHpg7 z+eBoTPWusgOR5CNO%57iqx56M$vg~$pY splitQuery(String query) throws UnsupportedEncodingException + { + Map query_pairs = new LinkedHashMap(); + String[] pairs = query.split("&"); + for (String pair : pairs) + { + int idx = pair.indexOf("="); + query_pairs.put(URLDecoder.decode(pair.substring(0, idx), "UTF-8"), URLDecoder.decode(pair.substring(idx + 1), "UTF-8")); + } + return query_pairs; + } + + @Override + public void run() { + try { + HttpServer server = HttpServer.create(new InetSocketAddress(global.portaHttpServer), 0); + server.createContext("/test", new MyHandler()); + server.setExecutor(null); // creates a default executor + server.start(); + }catch (Exception e) + { + e.printStackTrace(); + } + } + + static class MyHandler implements HttpHandler + { + public void handle(HttpExchange t) throws IOException + { + + /*String response = "This is the response"; + System.out.println("mannaggia santa"); + t.sendResponseHeaders(200, response.length()); + OutputStream os = t.getResponseBody(); + os.write(response.getBytes());*/ + URI req=t.getRequestURI(); + String query=req.getQuery(); + Map result=splitQuery(query); + String id=result.get("id"); + //System.out.println(id); + try + { + dbConnect request=new dbConnect(); + String returnQuery=request.dbQuery("3"+id); + t.sendResponseHeaders(200, returnQuery.length()); + OutputStream os = t.getResponseBody(); + os.write(returnQuery.getBytes()); + os.close(); + } + catch(SQLException e) + {} + catch(ClassNotFoundException c) + {} + catch(IllegalAccessException a) + {} + catch(InstantiationException i) + {} catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } + } + } + +} diff --git a/Server/server/tesi/src/com/company/keystore.bks b/Server/server/tesi/src/com/company/keystore.bks new file mode 100644 index 0000000000000000000000000000000000000000..ecec32686813c5f809111c6f174fa5ad59e279dd GIT binary patch literal 2258 zcmchW`8$*g8^@n#jKLtw*cn?=6rLGO#L=OKEIGE(*olcLjX?=n#&ohAq>w!mNk_(( zeQZaFEG@D`8VA$JlI2AmQeIuxIoEssg7?SI_x|43bzk56z5xIL0RWIt-76jME>hyK zJl{&~!CNi5g)1)s0PhnxfD9!CUI-=oQ%HXMUQ1tH9CN<`1bB(s`j8<2@WerMo@j^; zBi-kLfiM`H$H~ zDM|}t^e~VvgvILWVR5eesE>iL`hVm9e;_)j`tMLcUVw)ViU1HDM8fDG2&4>4`;|Np zFu|uhj6_C1YTr{sq=}BJmb?r@%);+=#|eY_?{$-!3)=3_7Fu8h8MjPdyzohEj!kMw z{Amkcvc%plIFiaA`Pz}f&>~Ies?(NP7OlPeISAKcj};j*U6}IM&&1^2BzE2n%=gAAc?BQCb0PzG3-}~2ewjKg*tlYiZW%15Sr6}lrqzGry9?t10q}teqy(Y& z*NQ#>mx4=NSCre#*JQ4M7d(Nv?@nZi`oWEVhq!-P`yqk=O_bVIJNo9!0O+YbEhy|6 zTDj5^#EZJ6a%ETUv*eY0Um4X+-Yl{7OPX%4*IB?3w_??1=!9lD3(ziBc+^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lD_4L<2l3fy{iI74eKuqd+c>bXaVmDWYX8EVFB+ zxRBoyrG@pq;h1HRtw@!nmQ*ZLeXZbYi-l6Z+br`*gy5t-n{(vNa}ZP;nA2}v9tAHN z0~M+amZ1U1$J?fFDfQW_rM7%*v$Oi_QNHS7^ojNIN2f|`9ZsbLP;^3Xeohc~hkR#r z{M?i)BdJoO@(4$+`kl%I_H}&(vTAQ&t*ggDC^awWVx472gn-xJvbW>*MfErKaIoAP+PmE-9$=SuG*<-K)J zW~~rIt#cyt9QB=76rF3*dtfL-4cR&*O%6`VXe!e;D^z-8Gw~|^@PS`STuo(3+e{k= ze|PJ=k1Ahl7wc?8GS6@$nH-x30Y*G!x04rB-iHq-IodWBqfsyG*>DdT3813vqMAx9 SBLyX(^opQe>Rv^z%J?r8quvMr literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/keystore.crt b/Server/server/tesi/src/com/company/keystore.crt new file mode 100644 index 0000000000000000000000000000000000000000..e60e9dbf2908624e14c1d804c061f6e25664204a GIT binary patch literal 897 zcmXqLVy-o4VoF`W%*4pV#KIgBn8`E5 zP{4o>#NiNTPs-29PtQw)iLfI?_zZYJYPf`1OY<_5@(rPUZWv$2Knf(!EG(Ron3tK8 zuaJ~llvtFKnU|WAlW8C)&TD95Xkct$WMph&WEKVFni?7ynL@ercTf|f5^|t0vNA9? zG4eAQG%<29H8CH)$8+ZrJ9gH0?(VSt>bm6hy`OV5dO4~t2ItM!O}#%;WzXf$584e3 zmz2&s+%T*5a8&m}x5$|xv+^XSzwX^I{eMdD%y{_%*Exrooq3l0$Wr*D;~=*Gg`RuB zy4UZs{{=K%DUm5S zYsA5+IkOYYBE4PysQgcJ?TqJ; z*rLmHU2dcCN~XGYQA9)yTTid3Nf3yBec=+Akkf&Su(oWMbno3AZ8v!5!^J&o(`DDtsGQ_;SNT z^FzBH^fcK7@3MUMOpA5CZiMD8N3NY;C%!nq@oUnARXD$+E7aF|&$>&#zpF80Oqe*0ptcYo{MN9#xH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|a+rv;zsX>Jv%4w6) zd+}`L8`&d?yv3pBV)OQ%M9DrZedlqm7Nuys35jqbvjb$>a?Qa^y6c`ad1{Q!QU=u; zA+AiG8yQyQc>eB%fY+rgKi}~e!N<+-gYUmHTvFVOF@=wZ*z3{K2P6N?Mws1s99k0u zg2bX}kVrHQOe%zc0WcT}v34*rg{?{mOe=F?&Q%<3|{^&vQ!-6S3?*6KOG3Vbbju!pn9m3D==|=G(`%Al% z0^I^VeJCU{*#|8t#I35PipHWb7_1rw?{I=RRWt_o7ykbTq5-o1H09)CKxn|}lT!j9 zz%&2=rMwmLEGg#DA*7UsAtK9LkLB6!@{G!syuQIU2Yt{T%MIYBut|*kmcqFLBMc|~ zj^3+RZi$TOq^885cL^n{)2w`@RCw4MD+(P&n#qxGez*O50$Q~sxS%U0H?qqixx>&t z$2ylHoV}V_lYQ)&n&TpMosi!J(dR1p?kjzGPFJw)^LZol>eVlPN9MHmH$+Y9#J$F< zS-V-6_wui-LObK~tgGRb+acqx~FbNG%qF%yaD zdSX2f^yeJCGn8d>yrVouGdd^G-qhew{@9C<3hoXCDg7Q3sWp`j%yubM&9p8Lqf|MMKWEtoS$j403 z`6BW1CQ3{51w!Iow0$*p-}I+JH#8kO{Ug?tT83X7l3@%i)b`8>7*aIwDM5(V*$%qD zMK6-rY1lJOj2=R6iS(G8p%Q#)3+$5g L8#c~;Me6?rty9`+ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/personalServer.class b/Server/server/tesi/src/com/company/personalServer.class new file mode 100644 index 0000000000000000000000000000000000000000..1d5b025844eeae87c029ea6158f5c3ad33ed9a6b GIT binary patch literal 1778 zcma)7TUQ%Z6#h@(yibxt7)WN)xnOznt!vc> zANv>jjH?8fEW7&bA95`p)O}`>lF)W7AF@xfuV;Vz+b4hi^ZQc(Gq7b`!b~3$xFX{! zW@XIb0|_4r&Abo`60XUJVn&FMWL(F`5rU%Xmw|mkPG`k-Bj0Hr|CKb4%Zr+mhNy%6s|Cgc088c z?QL%H>Z!HLFn0C^ORiq8ieQdy1|}=0VMl?ET?Ko{NvJDmfIv}p%!F?2>zZTECnT5( zn%HFs%&H3RAxB`GroMThdM(p}Wyu1bZM_EAJ8j#D>$v zcU;5pCpFxi#CCm_FbvurT{g@`%hC?=x=ryZpB~+~FQj~8xQ<>|pSu#t{3d$UM2MQ; z?MQO99p(|!zaGU%)$(nZTg2O`S6AxgvNwj8YyfeRN_EecVLaKcdS>cWIo_^!)*|RT zbZYY%upqP%t=Z%T5h3@#uG(e?m5MrM2jk(+g?f7m|0rlEV0!t|g}3Xjz0)({(t+*p z2H|VE0$)FlnpvlnZ*%+kOnTLXdQ&*niJ9R_-L%Czdm3+RH!Q8f>5WU!8_4h`f(VF> zq=zveHqJX~>AVxPH!1Q;)2}>vhUiSBkHONJBLuR)Ay`c3LM?=zA$){LI(r1^kbD?2 zBqtCdIYd#z=)(v-i=(6)!z9MZBa57$nXOS~;ra9g(XC_jTVzD6-Eey9X5)Zd9`YXoT*4Q{%go|g5XFBQ$ zQc?a$$0Bd~)h;~7Tt3sn8|~W^vYm*FFGM_sQlLt)$rj>=gdgw#59x*f8Had6XTZau zNEiSY>91rGgM@pWkiSgGPm^3Bnde?4@bCy kKj^P&nzCI$@Gm@+p#Dq42}pRCzJihXo60b97UO*XKPa)a>Hq)$ literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/personalServer.java b/Server/server/tesi/src/com/company/personalServer.java new file mode 100644 index 0000000..1d338eb --- /dev/null +++ b/Server/server/tesi/src/com/company/personalServer.java @@ -0,0 +1,56 @@ +package com.company; + +import java.io.BufferedWriter; +import java.io.OutputStream; +import java.io.OutputStreamWriter; + +import javax.net.ssl.*; + + +import java.util.ArrayList; + +class personalServer implements Runnable +{ + private SSLSocket socket; + private String key; + private String requestMessage; + + personalServer(SSLSocket client, String message) + { + socket=client; + ArrayList split= suString.stringToArrayList(message); + key=split.get(1); + requestMessage=message; + } + + public void run() + { + try + { + dbConnect request=new dbConnect(); + String returnQuery=request.dbQuery(requestMessage); + OutputStream os = socket.getOutputStream(); + OutputStreamWriter osw = new OutputStreamWriter(os); + BufferedWriter bw = new BufferedWriter(osw); + bw.write(returnQuery+"\n"); + bw.flush(); + System.out.println("ho inviato: "+returnQuery); + request.dbQuery("6/"+key); + socket.close(); + } + catch (Exception e) + { + try + { + e.printStackTrace(); + dbConnect request=new dbConnect(); + request.dbQuery("7/"+key); + } + catch (Exception k) + { + //k.printStackTrace(); + System.out.println("PANIC!"); + } + } + } +} diff --git a/Server/server/tesi/src/com/company/suString.class b/Server/server/tesi/src/com/company/suString.class new file mode 100644 index 0000000000000000000000000000000000000000..6d094cb15686bafdf7011cf7a689fbeb2ef34bdd GIT binary patch literal 2502 zcma)6T~k|C6kR6?+z@XdgaD$1@*yQ3l%QA(grudk)L;N>D3qctmn1_|L&D^vGxfQz z`U9MC?C`>4^(AHO==kD;KKVQR37u(motqnSLvNi!8!o(y zPvs*aA1m_lnG;C`s|wZx+81(#TqQ1G4+J*_981MaR-h}HD`eNI2YcDlhPIdIPItLd z$`$rEii@R^_9&SvR|JBAHVT7#Pgrv29H$TEi{tS)>r~wMx-IG4Vgt%owPpiNmHzR)LVwrB-OspoPK;)&=60 z@zzuQQ2&fpsITaT$C18t0s870h5aIVwD?ExcfVbpY-+RCo zl7Xc>?fGnBzj9xn{sb?B^nI{=!x&}(iQZb(=#$2&bCIn_%%;yCr&E9E-M9n-*bsXi~H|$=!c6gXA5YGiOo_a$Y zcazEOMjv>A*!Q#KeFm+OU%**8on~LaLIsTQS{>j84s`HK&p=?1D?i`#0op>(Ab#dT za0_VHH#->2hVsIep+CUE50HEg+x9cqllGWB?hn=AIKo`WUqhQG@&vu%&>+|CH7Hwt z$8PKx{d$Ze^8{|5)!>vzkL}|4-#@}XF`rGZ7=nxIPB_uUl?Og}S=)yodNGZD%#*-1 z?ynI1FeAI*cm-9#h!A5vFVKcjJ=GW?(~Sn?X})dT_cS1fLnr9i(#zI~cEZl{b1XZ| z;v+_u^UOj!8(Ds2jEvgxy2yEujNduJy8d=#jxhclD)n%OYv`2xx_*a;OK&$HHF%T9 z@LNa7!^bx2@YJNk5EPa=&w>+hlYKuzn8PGe{Jo7SoqH!7FVUtTC}swl)I$UvW@Npw z!+Z;7a*}b+34Bs%b8lxD%{etF-eYGa#c@gQS9qE{ec{0dsgw@(9~0O<>JH3Oy*ajP zo{gNt7@|5z6}FdfDTs&{Y+b!O(=7TSKC*z=dxE~R5U((L=Cljn5umi+b&-@HrS}Gp zFzf#wUDA9~bxJ*IlG@uZJ7Sy}&Cq@Kr-{NS!80j!Sf=tfXo3W(tk8Q&#Q1v&YdRg> zZyi!|;Tvid{o~US`PLYb#fINZBQkY5B10h#hA}Q)^SHF_#&mptoA601g57uW=62y0 lCt{1(ZqpUpxX4?4j(eAJ*YJhCF%y$bh+~xdB6HaA$$yX}JoNwo literal 0 HcmV?d00001 diff --git a/Server/server/tesi/src/com/company/suString.java b/Server/server/tesi/src/com/company/suString.java new file mode 100644 index 0000000..666febe --- /dev/null +++ b/Server/server/tesi/src/com/company/suString.java @@ -0,0 +1,96 @@ +package com.company; + +import java.util.ArrayList; +import java.util.Collections; + +public class suString +{ + suString() + {} + + + public static ArrayList stringToArrayList(String string) + { + ArrayList returnValue=new ArrayList(); + int j=0; + for(int i=0;i vectorStringToArrayList(String[] vectorString) + { + ArrayList returnValue=new ArrayList(); + Collections.addAll(returnValue, vectorString); + return returnValue; + } + + public static String arrayListToString (ArrayList arraylist) + { + String returnValue= ""; + for(int i=0;i arraylist) + { + String[] returnValue=new String[arraylist.size()]; + for(int i=0;i input) + { + String returnValue=null; + int size=input.size(); + for(int i=0;i stringToMultiArray(String input) + { + ArrayList result=new ArrayList(); + int j=0; + for(int i=0;i zjTjZf?F?fwmSevQcgVOCcQG85(Sp0hgYH65MhIasa2Jlrh#)E+Vq$h&4C6vyTt)&0 zgXu;R_qbrmNWqq|4rzu77w%=4l+lR{!wDH(xR2o^!~GI!cEpUBy;DM^x8tycD!&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mode 100644 index 0000000..d755d9c --- /dev/null +++ b/Server/server/tesi/src/com/company/superServer.java @@ -0,0 +1,59 @@ +package com.company; + +import java.io.*; +import java.lang.Thread; +import java.security.*; +import javax.net.ssl.*; + +import java.nio.file.FileSystems; +import java.nio.file.Path; + + +class superServer +{ + public static void main(String[] args) + { + String ksName = global.home+global.keyStoreName; + char ksPass[] = global.keyStorePass.toCharArray(); + char ctPass[] = global.keyStorePass.toCharArray(); + + //thread di controllo directory esercizi + Path pathToWatch = FileSystems.getDefault().getPath(global.locationEsercizi); + DirectoryWatcher dirWatcher = new DirectoryWatcher(pathToWatch); + Thread dirWatcherThread = new Thread(dirWatcher); + dirWatcherThread.start(); + + //thread che si occupa del lato http + httpget regServer=new httpget(); + Thread httpServer=new Thread(regServer); + httpServer.start(); + + while(true) + { + try + { + KeyStore ks = KeyStore.getInstance("JKS"); + ks.load(new FileInputStream(ksName), ksPass); + KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); + kmf.init(ks, ctPass); + SSLContext sc = SSLContext.getInstance("TLS"); + sc.init(kmf.getKeyManagers(), null, null); + SSLServerSocketFactory ssf = sc.getServerSocketFactory(); + SSLServerSocket s= (SSLServerSocket) ssf.createServerSocket(global.portaServer); + System.out.println("Server started:"); + while(true) + { + SSLSocket c = (SSLSocket) s.accept(); + System.out.println("CSC: debug 1"); + guestServer guest=new guestServer(c); + Thread t=new Thread(guest); + t.start(); + } + } + catch (Exception e) + { + e.printStackTrace(); + } + } + } +} diff --git a/Server/server/tesi/src/com/company/testEsname.class b/Server/server/tesi/src/com/company/testEsname.class new file mode 100644 index 0000000000000000000000000000000000000000..4afb4d534db07a9a281170367da037cfa4dafcc8 GIT binary patch literal 475 zcmZvY%T59@6o&u8Kw%sKK~T9U>Sk~O8+Q;l23G`0Ff4FYurWhsre>xXeJow5ap42_ zP{vbS5E7fT=k)ad&ZXZ!pI-pZacYC3kim|PB1&28qHLprJ&t{j1BP_Z3q5_okaSxU z2J2GYNrwEu3*~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company/xmlOperation.java b/Server/server/tesi/src/com/company/xmlOperation.java new file mode 100644 index 0000000..c4eff71 --- /dev/null +++ b/Server/server/tesi/src/com/company/xmlOperation.java @@ -0,0 +1,136 @@ +package com.company; + +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.security.NoSuchAlgorithmException; + +import org.jdom2.Document; +import org.jdom2.Element; +import org.jdom2.JDOMException; +import org.jdom2.input.SAXBuilder; +import org.jdom2.output.Format; +import org.jdom2.output.XMLOutputter; + + +public class xmlOperation { + + xmlOperation(){} + static private String pathName=global.listaEsercizi; + + public void create() { + + try { + + Element company = new Element("esercizi"); + Document doc = new Document(company); + doc.setRootElement(company); + + // new XMLOutputter().output(doc, System.out); + XMLOutputter xmlOutput = new XMLOutputter(); + + // display nice nice + xmlOutput.setFormat(Format.getPrettyFormat()); + xmlOutput.output(doc, new FileWriter(pathName)); + + System.out.println("File Saved!"); + } catch (IOException io) { + System.out.println(io.getMessage()); + } + } + + + + public void add(String name) + { + try { + + SAXBuilder builder = new SAXBuilder(); + File xmlFile = new File(pathName); + + Document doc = (Document) builder.build(xmlFile); + Element rootNode = doc.getRootElement(); + + + // add new age element + Element newEs = new Element("esercizio").setText(name).setAttribute("md5",MD5.digest(name)); + rootNode.addContent(newEs); + + XMLOutputter xmlOutput = new XMLOutputter(); + + // display nice nice + xmlOutput.setFormat(Format.getPrettyFormat()); + xmlOutput.output(doc, new FileWriter(pathName)); + + // xmlOutput.output(doc, System.out); + + System.out.println("File updated!"); + } catch (IOException io) { + io.printStackTrace(); + } catch (JDOMException e) { + e.printStackTrace(); + } + } + + public String getMD5(String name) + { + try { + + SAXBuilder builder = new SAXBuilder(); + File xmlFile = new File(pathName); + + Document doc = (Document) builder.build(xmlFile); + Element rootNode = doc.getRootElement(); + + for(Element esercizio:rootNode.getChildren()) + { + if(esercizio.getText().contentEquals(name)) + { + return esercizio.getAttribute("md5").toString(); + } + } + } catch (IOException io) { + io.printStackTrace(); + } catch (JDOMException e) { + e.printStackTrace(); + } + return null; + } + + public void remove(String name) + { + try { + + SAXBuilder builder = new SAXBuilder(); + File xmlFile = new File(pathName); + + Document doc = (Document) builder.build(xmlFile); + Element rootNode = doc.getRootElement(); + + for(Element esercizio:rootNode.getChildren()) + { + if(esercizio.getText().contentEquals(name)) + { + System.out.println("trovato"); + rootNode.removeContent(esercizio); + } + } + + XMLOutputter xmlOutput = new XMLOutputter(); + + // display nice nice + xmlOutput.setFormat(Format.getPrettyFormat()); + xmlOutput.output(doc, new FileWriter(pathName)); + + // xmlOutput.output(doc, System.out); + + System.out.println("File updated!"); + } catch (IOException io) { + io.printStackTrace(); + } catch (JDOMException e) { + e.printStackTrace(); + } + } + + +} diff --git a/Server/server/tesi/src/go.sh b/Server/server/tesi/src/go.sh new file mode 100755 index 0000000..4baa8fb --- /dev/null +++ b/Server/server/tesi/src/go.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +java -cp "/tmp/ext/mysql-connector-java.jar:/tmp/ext/jdom-2.0.5.jar:/tmp/ext/mail-1.4.1.jar:." com.company.superServer diff --git a/Server/server/tesi/tesi.iml b/Server/server/tesi/tesi.iml new file mode 100644 index 0000000..37cc804 --- /dev/null +++ b/Server/server/tesi/tesi.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Server/webApp/.prova.php.swp b/Server/webApp/.prova.php.swp new file mode 100644 index 0000000000000000000000000000000000000000..48d1c1c43ad2807ddf1c1bc4fcb50b6f74056bc2 GIT binary patch literal 12288 zcmeI2&ubGw6vwB6heBILk6xZ@zy#84>JKVtT18qK&{k|JLMdUAed#XU>@2g}#H|#) z2znG0QBVE}{t=>ogNSGU1HqGTHrs8gh6+6?Z{W+Y*?HghozG4VA=|3ntKWv%$|XVL zq!3SEJB_>LvUoNtgjOmxA0IYk8?_h6!C2Q5pGY4_?@5nI4bpW|jWk92J}JaU(p%DV(md%K_4rJBM|wkg zMKXOOk|yzB0!)AjFaajO1egF5U;<3wzaua|C&sbuD!>QWE?V>k@O0bv0J_o(%=^HW zS+Fa{fd);3wbrWAIw?c!qDJV;2xI`LwbHO1`bs)punCFU*3j{MtXNmGdO$xyc$nKX zTufJhRe_d_Fpym=LZP`>zqPQsZkghST1y?Rjdjc1wl+!?u)w9BEyN(}hfdza>p-!q zde|H!L8obKiX%Lhl}{=5j(7BSEX#45{? z?q;yr6zU$RoJ9&NQ1QXsCUaqscV!D|HK?Y|spU-<+gqmb{%z_TVQhL$SC}gw?p`04lY;CI2h4D2D9StbEGBG*C?HYj-MCBQ69qF zYYsju{{B>k!TiBRj2FDF+{8t5ev%NO2B9<$t)mW@mG9hWEY+76SDFj=8w<;;^_Ark v0UHK5W3Goz1zGJ~I-Z81V>|MIWv6z?$W+$A!U%QS+wpAreq5V3@816e^LRwI literal 0 HcmV?d00001 diff --git a/Server/webApp/esercizi/aalbero.xml b/Server/webApp/esercizi/aalbero.xml new file mode 100644 index 0000000..8591816 --- /dev/null +++ b/Server/webApp/esercizi/aalbero.xml @@ -0,0 +1,16 @@ + + + + + + + a + b + + + c + d + + + + diff --git a/Server/webApp/esercizi/demorgan.xml b/Server/webApp/esercizi/demorgan.xml new file mode 100644 index 0000000..1445f1f --- /dev/null +++ b/Server/webApp/esercizi/demorgan.xml @@ -0,0 +1,27 @@ + + + + + + + A + B + + + + + A + + + B + + + + + + + 13 + 60 + 5 + + diff --git a/Server/webApp/esercizi/demorgan2.xml b/Server/webApp/esercizi/demorgan2.xml new file mode 100644 index 0000000..1445f1f --- /dev/null +++ b/Server/webApp/esercizi/demorgan2.xml @@ -0,0 +1,27 @@ + + + + + + + A + B + + + + + A + + + B + + + + + + + 13 + 60 + 5 + + diff --git a/Server/webApp/esercizi/risolvibile.xml b/Server/webApp/esercizi/risolvibile.xml new file mode 100644 index 0000000..ee115e9 --- /dev/null +++ b/Server/webApp/esercizi/risolvibile.xml @@ -0,0 +1,35 @@ + + + + + A + + B + + + R + + + + A + B + + + R + + + + + A + + + + + B + + + 13 + 60 + 5 + + diff --git a/Server/webApp/esercizi/tautologia.xml b/Server/webApp/esercizi/tautologia.xml new file mode 100644 index 0000000..4c8d1c3 --- /dev/null +++ b/Server/webApp/esercizi/tautologia.xml @@ -0,0 +1,15 @@ + + + + + + A + A + + + + 13 + 60 + 5 + + diff --git a/Server/webApp/esercizi/test.xml b/Server/webApp/esercizi/test.xml new file mode 100644 index 0000000..4a1e680 --- /dev/null +++ b/Server/webApp/esercizi/test.xml @@ -0,0 +1,12 @@ + + + + + top + + + + + + + diff --git a/Server/webApp/index.html b/Server/webApp/index.html new file mode 100755 index 0000000..62e3446 --- /dev/null +++ b/Server/webApp/index.html @@ -0,0 +1,17 @@ + + + + + + + + + +

Benvenuto nella pagina di amministazione

+
+ + + +
+ + diff --git a/Server/webApp/index.html~ b/Server/webApp/index.html~ new file mode 100755 index 0000000..e566e53 --- /dev/null +++ b/Server/webApp/index.html~ @@ -0,0 +1,17 @@ + + + + + + + + + +

Benvenuto nella pagina di amministazione

+
+ + + +
+ + \ No newline at end of file diff --git a/Server/webApp/login.css b/Server/webApp/login.css new file mode 100755 index 0000000..dc4f5da --- /dev/null +++ b/Server/webApp/login.css @@ -0,0 +1,16 @@ +#login +{ + width:100%; + display:inline-block; + text-align:center; +} +#esTable +{ + display:block; + float:left; +} +#tabella +{ + display:block; + float:left; +} diff --git a/Server/webApp/login.js b/Server/webApp/login.js new file mode 100755 index 0000000..e9afdc4 --- /dev/null +++ b/Server/webApp/login.js @@ -0,0 +1,65 @@ +function change() +{ +/*Quando viene chiamata, modifica il campo "location" di document*/ +/*effettuando un redirect sulla pagina main.php*/ +document.location.href="./main.php"; +} + + + + +function login() +{ + var jsonlogin=new Object(); + jsonlogin.username=$('#username').val(); //recupero i dati di login dai rispettivi campi dell'HTML + jsonlogin.password=$('#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/Server/webApp/login.js~ b/Server/webApp/login.js~ new file mode 100755 index 0000000..5866524 --- /dev/null +++ b/Server/webApp/login.js~ @@ -0,0 +1,66 @@ +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/Server/webApp/login.php b/Server/webApp/login.php new file mode 100755 index 0000000..4053a81 --- /dev/null +++ b/Server/webApp/login.php @@ -0,0 +1,41 @@ +"errore nella connessione al database"); + $ris=json_encode($arr); + echo $ris; + die; + } + else + { + $str="SELECT * FROM admin WHERE username='".$result->username."' AND password='".$result->password."';"; + $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/Server/webApp/login.php~ b/Server/webApp/login.php~ new file mode 100755 index 0000000..5206e97 --- /dev/null +++ b/Server/webApp/login.php~ @@ -0,0 +1,42 @@ +"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/Server/webApp/logout.js b/Server/webApp/logout.js new file mode 100755 index 0000000..9817f6a --- /dev/null +++ b/Server/webApp/logout.js @@ -0,0 +1,18 @@ +function change() +{ + document.location.href="index.html"; +} +function logout() +{ + $.ajax({ + type: 'POST', + url: 'logout.php', + async: false + }).success + ( + function(response) + { + change(); + } + ); +} diff --git a/Server/webApp/logout.php b/Server/webApp/logout.php new file mode 100755 index 0000000..7060d00 --- /dev/null +++ b/Server/webApp/logout.php @@ -0,0 +1,7 @@ +"logout effettuato con successo"); + $ris=json_encode($arr); + echo $ris; +?> diff --git a/Server/webApp/main.php b/Server/webApp/main.php new file mode 100755 index 0000000..2866325 --- /dev/null +++ b/Server/webApp/main.php @@ -0,0 +1,41 @@ + + + + + + + + + + + + +
+ Select file to upload: + + +
+
+
+ + + + +
Lista Esercizi
+ + + + + + + + + diff --git a/Server/webApp/printEs.php b/Server/webApp/printEs.php new file mode 100755 index 0000000..6c4b6e8 --- /dev/null +++ b/Server/webApp/printEs.php @@ -0,0 +1,13 @@ +"; + + while (false !== ($file = readdir($handle))) { + if($file!="." && $file!="..") + echo "$file
"; + } + + closedir($handle); + } +?> diff --git a/Server/webApp/prova.html~ b/Server/webApp/prova.html~ new file mode 100755 index 0000000..0e3d827 --- /dev/null +++ b/Server/webApp/prova.html~ @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Server/webApp/prova.js b/Server/webApp/prova.js new file mode 100755 index 0000000..62d03ef --- /dev/null +++ b/Server/webApp/prova.js @@ -0,0 +1,72 @@ +function update(event) +{ + var str; + if (event==null) + str='all'; + else{ + var object=event.target; + str=object.getAttribute("esercizio"); + } + var query="./serverRequest.php"; + var request=new Object(); + request.name=str; + var sendstr=JSON.stringify(request); + $.ajax({ + url:query, + type:"POST", + async: "true", + dataType: "json", + data:sendstr, + contentType: "application/json; charset=utf-8", + success:function(val) + { + $("#tabella").empty(); + $("#tabella").append(""); + $.each(val.esercizi, function(i, item) { + var id="es"+i; + for(j=0;j').attr('id',id_i)); + id_i="#"+id_i; + $(id_i).append($('"); + $.each(val.esercizi, function(i, item) { + var id="ex"+i; + $("#esTable").append($('').attr('id',id)); + $("#ex"+i).append($('
Nome EsercizioStudenteclick
Nome EsercizioStudenteClick').text(item.esercizio)); + $(id_i).append($('').text(item.risultati[j].utente)); + $(id_i).append($('').text(item.risultati[j].click)); + $(id_i).append($('').attr('risultato',item.risultati[j].click)); + } + }); + }, + }); +} + +function esList() +{ + var query="./xmlPharse.php"; + $.ajax({ + url:query, + type:"GET", + async: "true", + dataType: "json", + accepts: {json:"application/json"}, + success:function(val) + { + $("#esTable").empty(); + $("#esTable").append("
Nome Esercizio
').text(item)); + $("#ex"+i).append($('').attr('esercizio',item)); + $("#ex"+i).append($('').attr('esercizio',item)); + }); + $("#esTable").append(''); + $(".seleziona").click(function(event){update(event);}); + }, + }); +} + +$(document).ready(function(){ + esList(); + update(); + $(".seleziona").click(function(event){update(event);}); +}); diff --git a/Server/webApp/prova.pho b/Server/webApp/prova.pho new file mode 100755 index 0000000..e69de29 diff --git a/Server/webApp/prova.pho~ b/Server/webApp/prova.pho~ new file mode 100755 index 0000000..e69de29 diff --git a/Server/webApp/prova.php b/Server/webApp/prova.php new file mode 100755 index 0000000..6284333 --- /dev/null +++ b/Server/webApp/prova.php @@ -0,0 +1,39 @@ + 500000) { + echo "Sorry, your file is too large."; + $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."; + } + } + echo exec("php-cli main.php"); +?> + + + + + +
+ Select file to upload: + + +
+ diff --git a/Server/webApp/prova.php~ b/Server/webApp/prova.php~ new file mode 100755 index 0000000..0f7fcaa --- /dev/null +++ b/Server/webApp/prova.php~ @@ -0,0 +1,44 @@ + 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/Server/webApp/prova.txt b/Server/webApp/prova.txt new file mode 100755 index 0000000..28c1837 --- /dev/null +++ b/Server/webApp/prova.txt @@ -0,0 +1,2 @@ +mi sei riuscito a scaricare + diff --git a/Server/webApp/prova.txt~ b/Server/webApp/prova.txt~ new file mode 100755 index 0000000..e69de29 diff --git a/Server/webApp/serverRequest.php b/Server/webApp/serverRequest.php new file mode 100755 index 0000000..9140fd7 --- /dev/null +++ b/Server/webApp/serverRequest.php @@ -0,0 +1,54 @@ +"errore nella connessione al database"); + $ris=json_encode($arr); + echo $ris; + die; + } + if($result->name=='all') + $str="SELECT * FROM esercizi;"; + else + $str="SELECT * FROM esercizi WHERE esercizio='".$result->name."' ORDER BY esercizio;"; + $str=mysqli_query($con,$str); + if (!$str) + { + $arr= array('result'=>"nessun elemento presente"); + $ris=json_encode($arr); + echo $ris; + die; + } + $esercizi; + $risp=mysqli_fetch_array($str); + $risultati; + $esercizio['esercizio']=$risp['esercizio']; + do + { + if($esercizio['esercizio']==$risp['esercizio']) + { + //aggiungo utenti e click ell'es corrente + $risultati[]=array('id'=>$risp['id'],'utente'=>$risp['utente'],'click'=>$risp['click']); + } + else + { + //reimposto i campi per un nuovo esercizio + $esercizio['risultati']=$risultati; + $esercizi[]=$esercizio; + unset($esercizio); + unset($risultati); + $esercizio['esercizio']=$risp['esercizio']; + $risultati[]=array('id'=>$risp['id'],'utente'=>$risp['utente'],'click'=>$risp['click']); + } + }while($risp=mysqli_fetch_array($str)); + $esercizio['risultati']=$risultati; + $esercizi[]=$esercizio; + $ex=array('esercizi'=>$esercizi); + unset($esercizio); + unset($risultati); + $return_json=__json_encode($ex); + echo $return_json; +?> diff --git a/Server/webApp/upload.php b/Server/webApp/upload.php new file mode 100755 index 0000000..67c3a7a --- /dev/null +++ b/Server/webApp/upload.php @@ -0,0 +1,53 @@ + 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/Server/webApp/upload.php~ b/Server/webApp/upload.php~ new file mode 100755 index 0000000..9cf7a77 --- /dev/null +++ b/Server/webApp/upload.php~ @@ -0,0 +1,33 @@ + diff --git a/Server/webApp/util.php b/Server/webApp/util.php new file mode 100755 index 0000000..0c7fbec --- /dev/null +++ b/Server/webApp/util.php @@ -0,0 +1,41 @@ + $value ) { + $items [] = __json_encode ( "$key" ) . ':' . __json_encode ( $value ); + } + $json = '{' . implode ( ',', $items ) . '}'; + } + } elseif (is_string ( $data )) { + $json = '"' . addcslashes ( $data, '\\"' ) . '"'; + } else { + // int, floats, bools, null + $json = strtolower ( var_export ( $data, true ) ); + } + return $json; +} + +function GET_check() +{ +if (!isset($_GET['scope']) or !isset($_GET['type']) or !($_GET['lat']) or !isset($_GET['lng']) or !isset($_GET['radius']) or !isset($_GET['timemin']) or !isset($_GET['timemax']) or !isset($_GET['status'])) + return false; +else return true; +} +function POST_check($params) +{ +if (!$params->type or !$params->lat or !$params->lng) return false; +else return true; +} + +function NOTIFY_check($params) +{ +if (!$params->event_id or !$params->lat or !$params->lng or !$params->status) return false; +else return true; +} +?> diff --git a/Server/webApp/xmlPharse.php b/Server/webApp/xmlPharse.php new file mode 100755 index 0000000..a2090df --- /dev/null +++ b/Server/webApp/xmlPharse.php @@ -0,0 +1,11 @@ +esercizio as $esercizio) + { + $esercizi['esercizi'][]="$esercizio"; + } + $return_json=__json_encode($esercizi); + echo $return_json; +?> diff --git a/public_html/esercizi/demorgan2.xml b/public_html/esercizi/demorgan2.xml new file mode 100644 index 0000000..1445f1f --- /dev/null +++ b/public_html/esercizi/demorgan2.xml @@ -0,0 +1,27 @@ + + + + + + + A + B + + + + + A + + + B + + + + + + + 13 + 60 + 5 + + diff --git a/public_html/esercizi/risolvibile.xml b/public_html/esercizi/risolvibile.xml new file mode 100644 index 0000000..ee115e9 --- /dev/null +++ b/public_html/esercizi/risolvibile.xml @@ -0,0 +1,35 @@ + + + + + A + + B + + + R + + + + A + B + + + R + + + + + A + + + + + B + + + 13 + 60 + 5 + + diff --git a/public_html/esercizi/test.xml b/public_html/esercizi/test.xml new file mode 100644 index 0000000..7985a27 --- /dev/null +++ b/public_html/esercizi/test.xml @@ -0,0 +1,12 @@ + + + + + top + + + 1 + 5 + 1 + + diff --git a/public_html/esercizi/triviale.xml b/public_html/esercizi/triviale.xml new file mode 100644 index 0000000..b7fb3dc --- /dev/null +++ b/public_html/esercizi/triviale.xml @@ -0,0 +1,15 @@ + + + + + + A + A + + + + 2 + 10 + 2 + + diff --git a/public_html/index.html b/public_html/index.html new file mode 100755 index 0000000..62e3446 --- /dev/null +++ b/public_html/index.html @@ -0,0 +1,17 @@ + + + + + + + + + +

Benvenuto nella pagina di amministazione

+
+ + + +
+ + diff --git a/public_html/index.html~ b/public_html/index.html~ new file mode 100755 index 0000000..e566e53 --- /dev/null +++ b/public_html/index.html~ @@ -0,0 +1,17 @@ + + + + + + + + + +

Benvenuto nella pagina di amministazione

+
+ + + +
+ + \ No newline at end of file diff --git a/public_html/login.css b/public_html/login.css new file mode 100755 index 0000000..dc4f5da --- /dev/null +++ b/public_html/login.css @@ -0,0 +1,16 @@ +#login +{ + width:100%; + display:inline-block; + text-align:center; +} +#esTable +{ + display:block; + float:left; +} +#tabella +{ + display:block; + float:left; +} diff --git a/public_html/login.js b/public_html/login.js new file mode 100755 index 0000000..e9afdc4 --- /dev/null +++ b/public_html/login.js @@ -0,0 +1,65 @@ +function change() +{ +/*Quando viene chiamata, modifica il campo "location" di document*/ +/*effettuando un redirect sulla pagina main.php*/ +document.location.href="./main.php"; +} + + + + +function login() +{ + var jsonlogin=new Object(); + jsonlogin.username=$('#username').val(); //recupero i dati di login dai rispettivi campi dell'HTML + jsonlogin.password=$('#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.js~ b/public_html/login.js~ new file mode 100755 index 0000000..5866524 --- /dev/null +++ b/public_html/login.js~ @@ -0,0 +1,66 @@ +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 new file mode 100755 index 0000000..adadff4 --- /dev/null +++ b/public_html/login.php @@ -0,0 +1,41 @@ +"errore nella connessione al database"); + $ris=json_encode($arr); + echo $ris; + die; + } + else + { + $str="SELECT * FROM admin WHERE username='".$result->username."' AND password='".$result->password."';"; + $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/login.php~ b/public_html/login.php~ new file mode 100755 index 0000000..5206e97 --- /dev/null +++ b/public_html/login.php~ @@ -0,0 +1,42 @@ +"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/logout.js b/public_html/logout.js new file mode 100755 index 0000000..9817f6a --- /dev/null +++ b/public_html/logout.js @@ -0,0 +1,18 @@ +function change() +{ + document.location.href="index.html"; +} +function logout() +{ + $.ajax({ + type: 'POST', + url: 'logout.php', + async: false + }).success + ( + function(response) + { + change(); + } + ); +} diff --git a/public_html/logout.php b/public_html/logout.php new file mode 100755 index 0000000..7060d00 --- /dev/null +++ b/public_html/logout.php @@ -0,0 +1,7 @@ +"logout effettuato con successo"); + $ris=json_encode($arr); + echo $ris; +?> diff --git a/public_html/main.php b/public_html/main.php new file mode 100755 index 0000000..2866325 --- /dev/null +++ b/public_html/main.php @@ -0,0 +1,41 @@ + + + + + + + + + + + + +
+ Select file to upload: + + +
+
+
+ + + + +
Lista Esercizi
+ + + + + + + + + diff --git a/public_html/printEs.php b/public_html/printEs.php new file mode 100755 index 0000000..6c4b6e8 --- /dev/null +++ b/public_html/printEs.php @@ -0,0 +1,13 @@ +"; + + while (false !== ($file = readdir($handle))) { + if($file!="." && $file!="..") + echo "$file
"; + } + + closedir($handle); + } +?> diff --git a/public_html/prova.html~ b/public_html/prova.html~ new file mode 100755 index 0000000..0e3d827 --- /dev/null +++ b/public_html/prova.html~ @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public_html/prova.js b/public_html/prova.js new file mode 100755 index 0000000..62d03ef --- /dev/null +++ b/public_html/prova.js @@ -0,0 +1,72 @@ +function update(event) +{ + var str; + if (event==null) + str='all'; + else{ + var object=event.target; + str=object.getAttribute("esercizio"); + } + var query="./serverRequest.php"; + var request=new Object(); + request.name=str; + var sendstr=JSON.stringify(request); + $.ajax({ + url:query, + type:"POST", + async: "true", + dataType: "json", + data:sendstr, + contentType: "application/json; charset=utf-8", + success:function(val) + { + $("#tabella").empty(); + $("#tabella").append(""); + $.each(val.esercizi, function(i, item) { + var id="es"+i; + for(j=0;j').attr('id',id_i)); + id_i="#"+id_i; + $(id_i).append($('"); + $.each(val.esercizi, function(i, item) { + var id="ex"+i; + $("#esTable").append($('').attr('id',id)); + $("#ex"+i).append($('
Nome EsercizioStudenteclick
Nome EsercizioStudenteClick').text(item.esercizio)); + $(id_i).append($('').text(item.risultati[j].utente)); + $(id_i).append($('').text(item.risultati[j].click)); + $(id_i).append($('').attr('risultato',item.risultati[j].click)); + } + }); + }, + }); +} + +function esList() +{ + var query="./xmlPharse.php"; + $.ajax({ + url:query, + type:"GET", + async: "true", + dataType: "json", + accepts: {json:"application/json"}, + success:function(val) + { + $("#esTable").empty(); + $("#esTable").append("
Nome Esercizio
').text(item)); + $("#ex"+i).append($('').attr('esercizio',item)); + $("#ex"+i).append($('').attr('esercizio',item)); + }); + $("#esTable").append(''); + $(".seleziona").click(function(event){update(event);}); + }, + }); +} + +$(document).ready(function(){ + esList(); + update(); + $(".seleziona").click(function(event){update(event);}); +}); diff --git a/public_html/prova.pho b/public_html/prova.pho new file mode 100755 index 0000000..e69de29 diff --git a/public_html/prova.pho~ b/public_html/prova.pho~ new file mode 100755 index 0000000..e69de29 diff --git a/public_html/prova.php b/public_html/prova.php new file mode 100755 index 0000000..6284333 --- /dev/null +++ b/public_html/prova.php @@ -0,0 +1,39 @@ + 500000) { + echo "Sorry, your file is too large."; + $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."; + } + } + echo exec("php-cli main.php"); +?> + + + + + +
+ Select file to upload: + + +
+ diff --git a/public_html/prova.php~ b/public_html/prova.php~ new file mode 100755 index 0000000..0f7fcaa --- /dev/null +++ b/public_html/prova.php~ @@ -0,0 +1,44 @@ + 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 new file mode 100755 index 0000000..28c1837 --- /dev/null +++ b/public_html/prova.txt @@ -0,0 +1,2 @@ +mi sei riuscito a scaricare + diff --git a/public_html/prova.txt~ b/public_html/prova.txt~ new file mode 100755 index 0000000..e69de29 diff --git a/public_html/serverRequest.php b/public_html/serverRequest.php new file mode 100755 index 0000000..9f7a781 --- /dev/null +++ b/public_html/serverRequest.php @@ -0,0 +1,54 @@ +"errore nella connessione al database"); + $ris=json_encode($arr); + echo $ris; + die; + } + if($result->name=='all') + $str="SELECT * FROM esercizi;"; + else + $str="SELECT * FROM esercizi WHERE esercizio='".$result->name."' ORDER BY esercizio;"; + $str=mysqli_query($con,$str); + if (!$str) + { + $arr= array('result'=>"nessun elemento presente"); + $ris=json_encode($arr); + echo $ris; + die; + } + $esercizi; + $risp=mysqli_fetch_array($str); + $risultati; + $esercizio['esercizio']=$risp['esercizio']; + do + { + if($esercizio['esercizio']==$risp['esercizio']) + { + //aggiungo utenti e click ell'es corrente + $risultati[]=array('id'=>$risp['id'],'utente'=>$risp['utente'],'click'=>$risp['click']); + } + else + { + //reimposto i campi per un nuovo esercizio + $esercizio['risultati']=$risultati; + $esercizi[]=$esercizio; + unset($esercizio); + unset($risultati); + $esercizio['esercizio']=$risp['esercizio']; + $risultati[]=array('id'=>$risp['id'],'utente'=>$risp['utente'],'click'=>$risp['click']); + } + }while($risp=mysqli_fetch_array($str)); + $esercizio['risultati']=$risultati; + $esercizi[]=$esercizio; + $ex=array('esercizi'=>$esercizi); + unset($esercizio); + unset($risultati); + $return_json=__json_encode($ex); + echo $return_json; +?> diff --git a/public_html/upload.php b/public_html/upload.php new file mode 100755 index 0000000..67c3a7a --- /dev/null +++ b/public_html/upload.php @@ -0,0 +1,53 @@ + 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/upload.php~ b/public_html/upload.php~ new file mode 100755 index 0000000..9cf7a77 --- /dev/null +++ b/public_html/upload.php~ @@ -0,0 +1,33 @@ + diff --git a/public_html/util.php b/public_html/util.php new file mode 100755 index 0000000..0c7fbec --- /dev/null +++ b/public_html/util.php @@ -0,0 +1,41 @@ + $value ) { + $items [] = __json_encode ( "$key" ) . ':' . __json_encode ( $value ); + } + $json = '{' . implode ( ',', $items ) . '}'; + } + } elseif (is_string ( $data )) { + $json = '"' . addcslashes ( $data, '\\"' ) . '"'; + } else { + // int, floats, bools, null + $json = strtolower ( var_export ( $data, true ) ); + } + return $json; +} + +function GET_check() +{ +if (!isset($_GET['scope']) or !isset($_GET['type']) or !($_GET['lat']) or !isset($_GET['lng']) or !isset($_GET['radius']) or !isset($_GET['timemin']) or !isset($_GET['timemax']) or !isset($_GET['status'])) + return false; +else return true; +} +function POST_check($params) +{ +if (!$params->type or !$params->lat or !$params->lng) return false; +else return true; +} + +function NOTIFY_check($params) +{ +if (!$params->event_id or !$params->lat or !$params->lng or !$params->status) return false; +else return true; +} +?> diff --git a/public_html/xmlPharse.php b/public_html/xmlPharse.php new file mode 100755 index 0000000..6dbe115 --- /dev/null +++ b/public_html/xmlPharse.php @@ -0,0 +1,11 @@ +esercizio as $esercizio) + { + $esercizi['esercizi'][]="$esercizio"; + } + $return_json=__json_encode($esercizi); + echo $return_json; +?> -- 2.39.2