Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 0f79fb5

Browse files
committed
Prima versione pubblica
1 parent 2cdc59d commit 0f79fb5

110 files changed

Lines changed: 15731 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
bld/
21+
[Bb]in/
22+
[Oo]bj/
23+
[Ll]og/
24+
25+
# Visual Studio 2015 cache/options directory
26+
.vs/
27+
phpside/.vscode/
28+
29+
# Uncomment if you have tasks that create the project's static files in wwwroot
30+
#wwwroot/
31+
32+
# MSTest test Results
33+
[Tt]est[Rr]esult*/
34+
[Bb]uild[Ll]og.*
35+
36+
# NUNIT
37+
*.VisualState.xml
38+
TestResult.xml
39+
40+
# Build Results of an ATL Project
41+
[Dd]ebugPS/
42+
[Rr]eleasePS/
43+
dlldata.c
44+
45+
# DNX
46+
project.lock.json
47+
project.fragment.lock.json
48+
artifacts/
49+
50+
*_i.c
51+
*_p.c
52+
*_i.h
53+
*.ilk
54+
*.meta
55+
*.obj
56+
*.pch
57+
*.pdb
58+
*.pgc
59+
*.pgd
60+
*.rsp
61+
*.sbr
62+
*.tlb
63+
*.tli
64+
*.tlh
65+
*.tmp
66+
*.tmp_proj
67+
*.log
68+
*.vspscc
69+
*.vssscc
70+
.builds
71+
*.pidb
72+
*.svclog
73+
*.scc
74+
75+
# Chutzpah Test files
76+
_Chutzpah*
77+
78+
# Visual C++ cache files
79+
ipch/
80+
*.aps
81+
*.ncb
82+
*.opendb
83+
*.opensdf
84+
*.sdf
85+
*.cachefile
86+
*.VC.db
87+
*.VC.VC.opendb
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
*.sap
94+
95+
# TFS 2012 Local Workspace
96+
$tf/
97+
98+
# Guidance Automation Toolkit
99+
*.gpState
100+
101+
# ReSharper is a .NET coding add-in
102+
_ReSharper*/
103+
*.[Rr]e[Ss]harper
104+
*.DotSettings.user
105+
106+
# JustCode is a .NET coding add-in
107+
.JustCode
108+
109+
# TeamCity is a build add-in
110+
_TeamCity*
111+
112+
# DotCover is a Code Coverage Tool
113+
*.dotCover
114+
115+
# NCrunch
116+
_NCrunch_*
117+
.*crunch*.local.xml
118+
nCrunchTemp_*
119+
120+
# MightyMoose
121+
*.mm.*
122+
AutoTest.Net/
123+
124+
# Web workbench (sass)
125+
.sass-cache/
126+
127+
# Installshield output folder
128+
[Ee]xpress/
129+
130+
# DocProject is a documentation generator add-in
131+
DocProject/buildhelp/
132+
DocProject/Help/*.HxT
133+
DocProject/Help/*.HxC
134+
DocProject/Help/*.hhc
135+
DocProject/Help/*.hhk
136+
DocProject/Help/*.hhp
137+
DocProject/Help/Html2
138+
DocProject/Help/html
139+
140+
# Click-Once directory
141+
publish/
142+
143+
# Publish Web Output
144+
*.[Pp]ublish.xml
145+
*.azurePubxml
146+
# TODO: Comment the next line if you want to checkin your web deploy settings
147+
# but database connection strings (with potential passwords) will be unencrypted
148+
#*.pubxml
149+
*.publishproj
150+
151+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
152+
# checkin your Azure Web App publish settings, but sensitive information contained
153+
# in these scripts will be unencrypted
154+
PublishScripts/
155+
156+
# NuGet Packages
157+
*.nupkg
158+
# The packages folder can be ignored because of Package Restore
159+
**/packages/*
160+
# except build/, which is used as an MSBuild target.
161+
!**/packages/build/
162+
# Uncomment if necessary however generally it will be regenerated when needed
163+
#!**/packages/repositories.config
164+
# NuGet v3's project.json files produces more ignoreable files
165+
*.nuget.props
166+
*.nuget.targets
167+
168+
# Microsoft Azure Build Output
169+
csx/
170+
*.build.csdef
171+
172+
# Microsoft Azure Emulator
173+
ecf/
174+
rcf/
175+
176+
# Windows Store app package directories and files
177+
AppPackages/
178+
BundleArtifacts/
179+
Package.StoreAssociation.xml
180+
_pkginfo.txt
181+
182+
# Visual Studio cache files
183+
# files ending in .cache can be ignored
184+
*.[Cc]ache
185+
# but keep track of directories ending in .cache
186+
!*.[Cc]ache/
187+
188+
# Others
189+
ClientBin/
190+
~$*
191+
*~
192+
*.dbmdl
193+
*.dbproj.schemaview
194+
*.jfm
195+
*.pfx
196+
*.publishsettings
197+
node_modules/
198+
orleans.codegen.cs
199+
200+
# Since there are multiple workflows, uncomment next line to ignore bower_components
201+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
202+
#bower_components/
203+
204+
# RIA/Silverlight projects
205+
Generated_Code/
206+
207+
# Backup & report files from converting an old project file
208+
# to a newer Visual Studio version. Backup files are not needed,
209+
# because we have git ;-)
210+
_UpgradeReport_Files/
211+
Backup*/
212+
UpgradeLog*.XML
213+
UpgradeLog*.htm
214+
215+
# SQL Server files
216+
*.mdf
217+
*.ldf
218+
219+
# Business Intelligence projects
220+
*.rdl.data
221+
*.bim.layout
222+
*.bim_*.settings
223+
224+
# Microsoft Fakes
225+
FakesAssemblies/
226+
227+
# GhostDoc plugin setting file
228+
*.GhostDoc.xml
229+
230+
# Node.js Tools for Visual Studio
231+
.ntvs_analysis.dat
232+
233+
# Visual Studio 6 build log
234+
*.plg
235+
236+
# Visual Studio 6 workspace options file
237+
*.opt
238+
239+
# Visual Studio LightSwitch build output
240+
**/*.HTMLClient/GeneratedArtifacts
241+
**/*.DesktopClient/GeneratedArtifacts
242+
**/*.DesktopClient/ModelManifest.xml
243+
**/*.Server/GeneratedArtifacts
244+
**/*.Server/ModelManifest.xml
245+
_Pvt_Extensions
246+
247+
# Paket dependency manager
248+
.paket/paket.exe
249+
paket-files/
250+
251+
# FAKE - F# Make
252+
.fake/
253+
254+
# JetBrains Rider
255+
.idea/
256+
*.sln.iml
257+
258+
# CodeRush
259+
.cr/
260+
261+
# Python Tools for Visual Studio (PTVS)
262+
__pycache__/
263+
*.pyc
264+
265+
# Folder VisualStudio
266+
.vscode/
267+
268+
#Per il momento eliminato a causa di informazioni sensibili all'interno
269+
.script/*
270+
script/notification.py

.htaccess

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
RewriteEngine on
2+
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
3+
RewriteRule ^ /%1 [NC,L,R]
4+
5+
RewriteCond %{REQUEST_FILENAME}.php -f
6+
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
7+
8+
#Change default directory page
9+
DirectoryIndex home.php home.html index.php index.html
10+
11+
#Prevent viewing of .htaccess file
12+
<Files .htaccess>
13+
order allow,deny
14+
deny from all
15+
</Files>
16+
17+
#Prevent directory listings
18+
Options All -Indexes
19+

OneSignalSDKUpdaterWorker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
importScripts('https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js');

OneSignalSDKWorker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
importScripts('https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js');

api/ajax/mediaMateria.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
// server should keep session data for AT LEAST 1 hour
3+
ini_set('session.gc_maxlifetime', 7200);
4+
5+
// each client should remember their session id for EXACTLY 1 hour
6+
session_set_cookie_params(7200);
7+
8+
session_start(); // ready to go!
9+
10+
//Controllo login
11+
if (strpos($_SERVER['PHP_SELF'], 'login') === false) {
12+
if (empty($_SESSION["cookies"]["__AntiXsrfToken"]) || empty($_SESSION["cookies"]["ASP.NET_SessionId"]) || $_SESSION["expire"] < time()) {
13+
header("location: /login?page=" . $_SERVER['PHP_SELF']);
14+
exit;
15+
}
16+
}
17+
18+
include "../../vendor/autoload.php";
19+
include "../class.php";
20+
21+
$axios = new axios;
22+
23+
$axios->postREFamilyData = $_SESSION["getPostREFamily"];
24+
$axios->student = $_SESSION["getStudentId"][$_COOKIE['studentNumber']];
25+
$axios->cookies = $_SESSION["cookies"];
26+
27+
$output = $axios->getAverageVote();
28+
29+
echo json_encode($output);
30+
31+
32+
if ($_GET["debug"] == true) {
33+
echo "<hr><pre>";
34+
var_dump($output);
35+
echo "</pre>";
36+
}

0 commit comments

Comments
 (0)