diff --git a/blocks/login.php b/blocks/login.php new file mode 100644 index 0000000..c037c6d --- /dev/null +++ b/blocks/login.php @@ -0,0 +1,29 @@ + +
  • +
    + + + + + + +
    +
  • +
  • Richiedi dati di accesso
  • +
  • Recupera password
  • + + + +
  • +

    Accesso effettuato per:

    +

    + +
  • + + diff --git a/cgi-bin/functions.inc b/cgi-bin/functions.inc index 69cc6bb..ba56c08 100755 --- a/cgi-bin/functions.inc +++ b/cgi-bin/functions.inc @@ -17,6 +17,12 @@ function conv_data($od,$lang){ return $stres; } +function conv_date($od){ + $tmp=explode("-",substr($od,0,10)); + $stres = $tmp[2]."/".$tmp[1]."/".$tmp[0].""; + return $stres; +} + function convert($stringa){ @@ -38,6 +44,10 @@ function conv_url($text){ return str_replace($entities, $replacements, urlencode($text)); } +function get_filesize($path){ + return filesize(realpath($_SERVER["DOCUMENT_ROOT"])."".$path); +} + function save_photo($foto,$basepath,$id){ @@ -76,4 +86,23 @@ function save_photo($foto,$basepath,$id){ + + + +function item_file($file){ + + @include 'params.inc'; + + $size = get_filesize($file['path']."/".$file['filename']); + if($size > 1000){$size = ($size/1000)."Mb";}else{$size = $size."Kb";} + + echo "
    +
    ".$file['title']."
    +
    ".$size."
    +
    ".date("d/m/Y", filemtime($file['path']."/".$file['filename']))."
    +
    "; +} + + + ?> diff --git a/cgi-bin/params.inc b/cgi-bin/params.inc index 1182a0a..66d7db1 100755 --- a/cgi-bin/params.inc +++ b/cgi-bin/params.inc @@ -1,5 +1,6 @@ diff --git a/content.php b/content.php index f604113..e0f38d9 100644 --- a/content.php +++ b/content.php @@ -1,5 +1,5 @@ -
    "> +
    diff --git a/contents.php b/contents.php new file mode 100644 index 0000000..89e6f44 --- /dev/null +++ b/contents.php @@ -0,0 +1,5 @@ + + + diff --git a/contents/modulistica.php b/contents/modulistica.php new file mode 100644 index 0000000..7ae295a --- /dev/null +++ b/contents/modulistica.php @@ -0,0 +1,51 @@ + + +
    +
    +
    Modulistica privata
    +
    + +
    +
    +
    +
    nome del file
    +
    dimensione
    +
    ultima mod.
    +
    +
    + +
    +
    + + + +
    +
    +
    Modulistica pubblica
    +
    + +
    +
    +
    +
    nome del file
    +
    dimensione
    +
    ultima mod.
    +
    +
    + +
    +
    diff --git a/css/styles.css b/css/styles.css index 89d2e5d..e60a9e9 100644 --- a/css/styles.css +++ b/css/styles.css @@ -14961,24 +14961,34 @@ header .breadcrumb .container .crumbs a:hover { /* line 53, sections/homepage.scss */ .banner { - height: 90px; - margin-bottom: 4px; + height: 120px; + margin-bottom: 8px; padding: 0; + width: 50%; + float: left; +} +/* line 60, sections/homepage.scss */ +.banner:nth-child(odd) { + padding-right: 4px; +} +/* line 63, sections/homepage.scss */ +.banner:nth-child(even) { + padding-left: 4px; } -/* line 59, sections/homepage.scss */ +/* line 68, sections/homepage.scss */ .contacts { padding: 15px 25px; font-size: 0.75rem; } -/* line 62, sections/homepage.scss */ +/* line 71, sections/homepage.scss */ .contacts .fa { color: #4e984a; width: 25px; font-size: 1rem; height: 25px; } -/* line 68, sections/homepage.scss */ +/* line 77, sections/homepage.scss */ .contacts b { color: #4e984a; } @@ -15030,6 +15040,44 @@ header .breadcrumb .container .crumbs a:hover { .news .item a:hover { color: black; } +/* line 41, sections/news.scss */ +.news .append .item .size { + float: right; +} + +/* line 1, sections/lists.scss */ +.file-list { + font-size: 0.75rem; +} +/* line 3, sections/lists.scss */ +.file-list .item { + border-bottom: 1px solid #d1efb5; + padding: 8px 10px; + transition: .4s; +} +/* line 7, sections/lists.scss */ +.file-list .item .date { + color: #aa0000; +} +/* line 10, sections/lists.scss */ +.file-list .item a { + color: #666; + text-decoration: none; + transition: .4s; +} +/* line 14, sections/lists.scss */ +.file-list .item a:hover { + color: black; +} +/* line 19, sections/lists.scss */ +.file-list .item:hover { + background: #d1efb5; +} +/* line 24, sections/lists.scss */ +.file-list .item-title { + border-bottom: 1px solid #d1efb5; + padding: 8px 10px; +} @media only screen and (min-width: 768px) { /* line 5, mediaqueries/viewports/_768up.scss */ @@ -15131,4 +15179,12 @@ header .breadcrumb .container .crumbs a:hover { #MainContent { top: 160px; } + + /* line 109, mediaqueries/viewports/_768up.scss */ + .banner { + height: 90px; + padding: 0 !important; + width: 100%; + float: left; + } } diff --git a/docs/files/filename1.txt b/docs/files/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/files/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/files/filename2.txt b/docs/files/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/files/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/files/filename3.txt b/docs/files/filename3.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/files/filename3.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/privata/filename1.txt b/docs/modulistica/privata/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/modulistica/privata/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/privata/filename2.txt b/docs/modulistica/privata/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/modulistica/privata/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/modulistica/privata/filename3.txt b/docs/modulistica/privata/filename3.txt new file mode 100644 index 0000000..e3fc7b8 --- /dev/null +++ b/docs/modulistica/privata/filename3.txt @@ -0,0 +1 @@ +s diff --git a/docs/modulistica/pubblica/filename1.txt b/docs/modulistica/pubblica/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/modulistica/pubblica/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/pubblica/filename2.txt b/docs/modulistica/pubblica/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/modulistica/pubblica/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/modulistica/pubblica/filename3.txt b/docs/modulistica/pubblica/filename3.txt new file mode 100644 index 0000000..e3fc7b8 --- /dev/null +++ b/docs/modulistica/pubblica/filename3.txt @@ -0,0 +1 @@ +s diff --git a/home.php b/home.php index a832615..8b06393 100644 --- a/home.php +++ b/home.php @@ -29,21 +29,24 @@
    -
    + -
    + -
    + -
    + -
    + -
    + -
    + -
    + -
    +
    Storia dell'Ordine
    diff --git a/index.php b/index.php index e4e7b1d..3d06f7d 100755 --- a/index.php +++ b/index.php @@ -7,6 +7,7 @@ @include 'cgi-bin/params.inc'; $GLOBALS['getQ'][0]="home"; + $GLOBALS['isHome'] = true; $GLOBALS['conn']; $conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); @@ -15,15 +16,31 @@ $GLOBALS['getQ']=explode("/",$_GET['q']); } + if($getQ[0]!="home"){ $isHome = false; } + + $description = " "; - /* - if($getQ[1]){ - $q=mysqli_query($conn,"SELECT * FROM `contents` WHERE id=".$getQ[1].""); - $r=mysqli_fetch_array($q); + + if($_POST['usr'] && $_POST['pwd']){ + $q=mysqli_query($conn, "SELECT * FROM board WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'"); + if(mysqli_num_rows($q)){ + $_SESSION['AUTH']=mysqli_fetch_array($q); + } } - - if(!$r['title']){$r['title']="New Media Arts";} - */ + + if($getQ[0]=="logout"){ + unset($_SESSION['AUTH']); + session_destroy(); + header('Location: '.$BASE_URL); + } +/* + $q=mysqli_query($conn,"SELECT * FROM board"); + while($r=mysqli_fetch_array($q)){ + if($r['pwd']!="-" && $r['pwd']!=""){ + mysqli_query($conn,"UPDATE board SET pwd='".md5($r['pwd'])."' WHERE id='".$r['id']."'"); + } + }*/ + ?> @@ -51,7 +68,7 @@ - +"> = 768){ $('#menuRight .banner').clone().appendTo('#menuLeft'); $('#menuRight').empty(); } if($(window).width() < 1024){ - if(!$('#MainContainer').hasClass('is-home')){ + if(!isHome){ $('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74}); } } + + if($(window).width() >= 768){ + $('#menuLeft .dropdown:first-child').addClass('active'); + } diff --git a/menu-left.php b/menu-left.php index 82d77f3..35ca7f6 100644 --- a/menu-left.php +++ b/menu-left.php @@ -1,56 +1,47 @@