986 changed files with 153550 additions and 122736 deletions
@ -0,0 +1,6 @@ |
|||||
|
max_execution_time = 100 |
||||
|
max_input_time = 100 |
||||
|
max_input_nesting_level = 100 |
||||
|
memory_limit = 128M |
||||
|
upload_max_filesize = 128M |
||||
|
post_max_size = 128M |
@ -0,0 +1,10 @@ |
|||||
|
|
||||
|
RewriteEngine On |
||||
|
|
||||
|
Rewritebase /ADMIN/ |
||||
|
|
||||
|
RewriteCond %{REQUEST_FILENAME} !-f |
||||
|
RewriteCond %{REQUEST_FILENAME} !-d |
||||
|
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] |
||||
|
|
||||
|
|
@ -0,0 +1,6 @@ |
|||||
|
max_execution_time = 100 |
||||
|
max_input_time = 100 |
||||
|
max_input_nesting_level = 100 |
||||
|
memory_limit = 128M |
||||
|
upload_max_filesize = 128M |
||||
|
post_max_size = 128M |
@ -0,0 +1,6 @@ |
|||||
|
|
||||
|
<div id="MainContainer" class="col-12 col-md-10 px-0 pr-sm-0 px-md-2 pt-2"> |
||||
|
<?php |
||||
|
@include 'sheets/'.$getQ[1].'/'.$getQ[2].'.php'; |
||||
|
?> |
||||
|
</div> |
@ -0,0 +1,23 @@ |
|||||
|
|
||||
|
<header> |
||||
|
<div class="container main"> |
||||
|
<div class="row"> |
||||
|
<div class="col-2 col-md-4"></div> |
||||
|
<img class="logo" src="<?php echo $BASE_URLs;?>/images/header.png"> |
||||
|
|
||||
|
<div class="middle-right font-16 font-bold text-white px-5"> |
||||
|
PANNELLO DI AMMINISTRAZIONE |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<!-- |
||||
|
<div class="breadcrumb"> |
||||
|
<div class="container"> |
||||
|
<div class="crumbs"> |
||||
|
<span class="d-none d-sm-block">Ordine dei Farmacisti della Provincia di Salerno <i class="fa fa-angle-right"></i></span> <a href="">Home</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div>--> |
||||
|
|
||||
|
</header> |
@ -0,0 +1,93 @@ |
|||||
|
<?php |
||||
|
|
||||
|
session_start(); |
||||
|
|
||||
|
@include '../cgi-bin/conn.conn'; |
||||
|
@include '../cgi-bin/functions.inc'; |
||||
|
@include '../cgi-bin/params.inc'; |
||||
|
|
||||
|
$GLOBALS['getQ'][0]="home"; |
||||
|
$GLOBALS['conn']; |
||||
|
|
||||
|
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); |
||||
|
mysqli_set_charset($conn, "utf8"); |
||||
|
|
||||
|
if(@$_GET['q']){ |
||||
|
$GLOBALS['getQ']=explode("/",$_GET['q']); |
||||
|
} |
||||
|
|
||||
|
$BASE_URL = $BASE_URL."/ADMIN"; |
||||
|
|
||||
|
|
||||
|
if($_POST['usr'] && $_POST['pwd']){ |
||||
|
$q=mysqli_query($conn, "SELECT * FROM users WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'"); |
||||
|
if(mysqli_num_rows($q)){ |
||||
|
$_SESSION['ADMAUTH']=mysqli_fetch_array($q); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if($getQ[0]=="logout"){ |
||||
|
unset($_SESSION['ADMAUTH']); |
||||
|
session_destroy(); |
||||
|
header('Location: '.$BASE_URL); |
||||
|
} |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
|
||||
|
<title>ADMIN | Ordine dei Farmacisti della Provincia di Salerno</title> |
||||
|
|
||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||
|
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> |
||||
|
|
||||
|
<base href="<?php echo $BASE_URL;?>/"> |
||||
|
|
||||
|
<link href="<?php echo $BASE_URL;?>/../css/styles.css" rel="stylesheet" type="text/css"/> |
||||
|
<link href="<?php echo $BASE_URL;?>/../css/admin.css" rel="stylesheet" type="text/css"/> |
||||
|
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> |
||||
|
|
||||
|
</head> |
||||
|
<body class="admin"> |
||||
|
|
||||
|
<?php |
||||
|
@include 'header.php'; |
||||
|
?> |
||||
|
<section> |
||||
|
<div id="MainContent" class="container px-2"> |
||||
|
<div class="row"> |
||||
|
<?php |
||||
|
|
||||
|
if($_SESSION['ADMAUTH']) { |
||||
|
@include 'menu.php'; |
||||
|
@include 'content.php'; |
||||
|
} else { |
||||
|
@include 'login.php'; |
||||
|
} |
||||
|
|
||||
|
?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../node_modules/jquery/dist/jquery.min.js"></script> |
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../node_modules/jquery-colorbox/jquery.colorbox-min.js"></script> |
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../node_modules/tinymce/tinymce.min.js"></script> |
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../node_modules/jquery.datepicker-plus-css/jquery-datepicker.js"></script> |
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../node_modules/jquery-ui-datepicker-with-i18n/ui/i18n/jquery.ui.datepicker-it.js"></script> |
||||
|
|
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/../js/scripts.js"></script> |
||||
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/js/scripts.js"></script> |
||||
|
|
||||
|
|
||||
|
</body> |
||||
|
</html> |
||||
|
|
||||
|
|
||||
|
<?php |
||||
|
mysqli_close($conn); |
||||
|
?> |
@ -0,0 +1,47 @@ |
|||||
|
|
||||
|
$(document).ready( function(){ |
||||
|
|
||||
|
tinymce.init({ |
||||
|
selector: '.mce', |
||||
|
height: 300, |
||||
|
theme: 'modern', |
||||
|
menubar: false, |
||||
|
language: 'it', |
||||
|
forced_root_block : '', |
||||
|
force_br_newlines : true, |
||||
|
plugins: [ |
||||
|
'advlist autolink lists link paste' |
||||
|
], |
||||
|
toolbar: 'bold italic underline | alignleft aligncenter alignright alignjustify | link bullist numlist| removeformat', |
||||
|
image_advtab: false, |
||||
|
content_css: [ |
||||
|
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', |
||||
|
// '//www.tinymce.com/css/codepen.min.css'
|
||||
|
] |
||||
|
}); |
||||
|
|
||||
|
$( ".datepicker" ).datepicker({ |
||||
|
changeMonth: true, |
||||
|
changeYear: true, |
||||
|
dateFormat: 'dd/mm/yy', |
||||
|
yearRange: new Date().getFullYear()-90 + ':' + new Date().getFullYear(), |
||||
|
maxDate: "+1M", |
||||
|
regional:['it'] |
||||
|
}); |
||||
|
|
||||
|
|
||||
|
$('.form-mod').on('submit', function(e){ |
||||
|
e.preventDefault(); |
||||
|
var id = $(this).find('.id').val(); |
||||
|
var path = $(this).data('path') + "/" + id.trim(); |
||||
|
window.location = path; |
||||
|
}); |
||||
|
|
||||
|
|
||||
|
$('.files-list .add-file').on('click', function(e){ |
||||
|
e.preventDefault(); |
||||
|
var master = $(this).siblings('.list').find('.master:first-child').clone(); |
||||
|
$(this).siblings('.list').append($(master)); |
||||
|
}); |
||||
|
|
||||
|
}); |
@ -0,0 +1,33 @@ |
|||||
|
|
||||
|
|
||||
|
<form method="post"> |
||||
|
|
||||
|
Title |
||||
|
<input type="text" name="title"> |
||||
|
<br><br> |
||||
|
|
||||
|
Text |
||||
|
<textarea class="mce" name="text"></textarea> |
||||
|
<br><br> |
||||
|
|
||||
|
section |
||||
|
<input type="text" name="section" value="<?= $_POST['section'];?>"> |
||||
|
<br><br> |
||||
|
|
||||
|
<input type="submit"> |
||||
|
|
||||
|
</form> |
||||
|
|
||||
|
|
||||
|
<?php |
||||
|
|
||||
|
if(sizeof($_POST)){ |
||||
|
|
||||
|
$query = "INSERT INTO links VALUES(0, '".addslashes($_POST['title'])."', '".addslashes($_POST['text'])."', '".$_POST['section']."')"; |
||||
|
$q = mysqli_query($conn, $query); |
||||
|
|
||||
|
echo $query; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
?> |
@ -0,0 +1,11 @@ |
|||||
|
|
||||
|
<div class="col-10 col-md-5 my-5 mx-auto"> |
||||
|
<form method="post"> |
||||
|
<label class="font-10">Username</label> |
||||
|
<input type="text" name="usr" placeholder="username"> |
||||
|
|
||||
|
<label class="font-10">Password</label> |
||||
|
<input type="password" name="pwd" placeholder="password"> |
||||
|
<input type="submit" name="go" value="Accedi"> |
||||
|
</form> |
||||
|
</div> |
@ -0,0 +1,66 @@ |
|||||
|
|
||||
|
<div id="menuLeft" class="col-12 col-md-2 p-2"> |
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="user" ? "active":"" ?>"> |
||||
|
<div class="title">Gestione iscritti</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/user/list">Elenco iscritti </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/user/add">Aggiungi iscritto </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/user/mod">Modifica iscritto </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/user/del">Elimina iscritto </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="news" ? "active":"" ?>"> |
||||
|
<div class="title">Notizie</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/news/add">Aggiungi notizia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/news/mod">Modifica notizia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/news/del">Elimina notizia </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="files" ? "active":"" ?>"> |
||||
|
<div class="title">Files</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/files/add">Aggiungi file </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/files/del">Elimina file </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="links" ? "active":"" ?>"> |
||||
|
<div class="title">Links utili</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/links/add">Aggiungi link </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/links/del">Elimina link </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="pharmacy" ? "active":"" ?>"> |
||||
|
<div class="title">Farmacie</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/list">Elenco farmacie </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/add">Aggiungi farmacia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/mod">Modifica farmacia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/del">Elimina farmacia </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
<div class="dropdown <?= $getQ[1]=="parapharmacy" ? "active":"" ?>"> |
||||
|
<div class="title">Parafarmacie</div> |
||||
|
<ul class="items"> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/list">Elenco parafarmacie </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/add">Aggiungi parafarmacia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/mod">Modifica parafarmacia </a></li> |
||||
|
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/del">Elimina parafarmacia </a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue