Demo entry 6635739

rtr

   

Submitted by anonymous on Aug 19, 2017 at 00:23
Language: PHP. Code size: 10.4 kB.

<?php 
ob_start(); /*prevezienza: https://www.targetweb.it/risolvere-problema-cannot-modify-headers-information 
*//*per risolvere l'errore svolte da header('Location: login.php') */

function accessoOk()
{
    if(isset($_SESSION['email']) && isset($_SESSION['password']))
    {
       return true;

    }else{ return false; }
}


?>

<?php session_start();?>
<!doctype html>
<html lang="it">
<head>
   <title>WARDIAK</title>
   <meta charset="UTF-8"/>
   
   <!--PROFENIENZA: https://www.wardiakschools.com/wardiakcss/wardiakcss_templates.asp -->

   <meta http-equival="X-UA-Compatible" content="IE=edge">
   <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/bootstrap/css/bootstrap.css" rel="stylesheet">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/bootstrap/css/bootstrap-theme.css" rel="stylesheet">
   <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
   <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
   <link rel='stylesheet' href="colonne/css/styleImg_caricati.css" type="text/css">
   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
   <script src="http://localhost/PHP-JS/PROGETTI/WARDIAK/bootstrap/js/bootstrap.min.js"></script>
   <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/wardiak/wardiak.css" rel="stylesheet">
   
<?php if($pag == 'registrazione' || $pag == "detagli_applicazione" || $pag == "detagli_progetto"){?>
<?php /*BELLISIMO CODICE PROVENIENZA: http://plugins.krajee.com/file-avatar-upload-demo*/?>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/grafica_speciale/css/fileinput.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="http://localhost/PHP-JS/PROGETTI/WARDIAK/grafica_speciale/themes/explorer/theme.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://localhost/PHP-JS/PROGETTI/WARDIAK/grafica_speciale/js/plugins/sortable.js" type="text/javascript"></script>
    <script src="http://localhost/PHP-JS/PROGETTI/WARDIAK/grafica_speciale/js/fileinput.js" type="text/javascript"></script>
    <script src="http://localhost/PHP-JS/PROGETTI/WARDIAK/grafica_speciale/js/locales/it.js" type="text/javascript"></script>

    <script src="../themes/explorer/theme.js" type="text/javascript"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript"></script>

<?php } ?>

</head>

<?php if($pag == 'registrazione' || $pag == "detagli_applicazione" || $pag == "detagli_progetto"){?>

<style>
.kv-avatar .krajee-default.file-preview-frame,.kv-avatar .krajee-default.file-preview-frame:hover {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}
.kv-avatar .file-input {
    display: table-cell;
    max-width: 220px;
}
.kv-reqd {
    color: red;
    font-family: monospace;
    font-weight: normal;
}

body,h1,h2,h3,h4,h5 {font-family: "Poppins", sans-serif}
body {font-size: 16px;}
img {margin-bottom: -8px;}
.mySlides {display: none;}


::-webkit-scrollbar {
    display: none;
}

/**per impedire caricamento di documenti file imagine nella pagina detagli*/
div.input-group.file-caption-main{ display:none;}
/*  -----------------------------------------------*/
</style>
<?php }else{?>

<style>

body,h1,h2,h3,h4,h5 {font-family: "Poppins", sans-serif}
body {font-size: 16px;}
img {margin-bottom: -8px;}
.mySlides {display: none;}


::-webkit-scrollbar {
    display: none;
}

</style>

<?php } ?>

<body class="wardiak-light-grey">

<!-- Top container -->
<div class="wardiak-bar wardiak-top wardiak-black wardiak-large" >
  <button class="wardiak-bar-item wardiak-button wardiak-hide-large wardiak-hover-none wardiak-hover-text-light-grey" onclick="wardiak_open();"><i class="fa fa-bars"></i> &nbsp;Wardiak</button>
  <a href="http://localhost/PHP-JS/PROGETTI/WARDIAK"><button class="wardiak-bar-item wardiak-left wardiak-hide-small wardiak-hide-medium wardiak-button wardiak-hover-none wardiak-hover-text-light-grey">Wardiak</button></a>
  <span class="wardiak-right wardiak-bar-item">Logo</span>  
  <button class="wardiak-button wardiak-hide-small wardiak-right wardiak-bar-item wardiak-hover-<?php echo (accessoOk() ? "green" : "red");?> badge" style="margin-top:8px;margin-right:5px;background-color:<?php echo (accessoOk() ? "green" : "red");?>" onclick="window.location='<?php echo (accessoOk() ? "#" : "http://localhost/PHP-JS/PROGETTI/WARDIAK/login");?>'"><?php echo (accessoOk() ? "Online" : "Offline");?></button>


</div>

<!-- Sidebar/menu -->
   
<?php include('/navbar/nav.php'); ?>

<!-- Overlay effect when opening sidebar on small screens -->
<div class="wardiak-overlay wardiak-hide-large wardiak-animate-opacity" onclick="wardiak_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>

<!-- !PAGE CONTENT! -->
<div class="wardiak-main" style="margin-left:300px;margin-top:43px;">

  
  <hr>



<?php 
   
   if($pag == 'c')
   include("c/index_contenuto.php");
   elseif($pag == 'index')
   include("index_contenuto.php");
   elseif($pag == 'login')
   include("login/login_contenuto.php");
   elseif($pag == 'progetti')
   include('c/progetti/index_contenuto.php');
   elseif($pag == "detagli_progetto")
   include("c/progetti/detagli/index_contenuto.php");
   elseif($pag == "detagli_applicazione")
   include("c/applicazioni/detagli/index_contenuto.php");
   elseif($pag == "registrazione")
   include("reg/index_contenuto.php");
   elseif($pag == "confermaemail")
   include("reg/mail_conferma_contenuto.php");
   

   include('footer/footer.php');

?>

  <!-- End page content -->
</div>

<!-- Modal accesso -->
<div id="download" class="wardiak-modal wardiak-animate-opacity">
  <div class="wardiak-modal-content" style="padding:32px">
    <div class="wardiak-container wardiak-white">
      <i onclick="document.getElementById('download').style.display='none'" class="fa fa-remove wardiak-xlarge wardiak-button wardiak-transparent wardiak-right wardiak-xlarge"></i>
      <h2 class="wardiak-wide">Accesso</h2>
      <p>Bisogna essere rigistrati per scaricare un progetto</p>
      <i class="fa fa-Apple wardiak-large"></i> <i class="fa fa-linux wardiak-large"></i> <i class="fa fa-windows wardiak-large"></i>
      <p><input class="wardiak-input wardiak-border" type="text" placeholder="Enter e-mail"></p>
      <button type="button" class="wardiak-button wardiak-block wardiak-padding-large wardiak-red wardiak-margin-bottom" onclick="document.getElementById('download').style.display='none'">Fake Download</button>
    </div>
  </div>
</div>



<!-- funzione per la ricerca -->
<div id="cerca" class="wardiak-modal wardiak-animate-opacity">
  <div class="wardiak-modal-content" style="padding:32px">
    <div class="wardiak-container wardiak-white">
      <i onclick="document.getElementById('cerca').style.display='none'" class="fa fa-remove wardiak-xlarge wardiak-button wardiak-transparent wardiak-right wardiak-xlarge"></i>
      <h2 class="wardiak-wide" style="color:darkcyan">Cerca</h2>
      <p>Cerca argomenti e applicazioni desktop - console(FATTI DA NOI) da scaricare gratuitamente per:</p>
      </i> <i class="fa fa-linux wardiak-large" style="color:brown"></i> <i class="fa fa-windows wardiak-large" style="color:aqua"></i> <i class="fa fa-apple wardiak-large" style=""></i>
      <p>

         <?php  
            if($pag == 'c')
              include("../navbar/cerca.php");
            elseif($pag == 'index')
              include("navbar/cerca.php");
            elseif($pag == 'progetti')
              include('../../navbar/cerca.php');
            elseif($pag == "detagli")
              include("../../../navbar/cerca.php");
            elseif($pag == 'login')
              include("../navbar/cerca.php");
            elseif($pag == "registrazione")
              include("../navbar/cerca.php");
            elseif($pag == "confermaemail")
              include("../navbar/cerca.php");
          ?>

      </p>
    </div>
  </div>
</div>


<div id="cerca_progetto" class="wardiak-modal wardiak-animate-opacity"><!-- ID 'cerca_progetto' รจ chiamato dal file: c/progetto/detagli/app/msg_app_non_trovato.php -->
  <div class="wardiak-modal-content" style="padding:32px">
    <div class="wardiak-container wardiak-white">
      <i onclick="document.getElementById('cerca_progetto').style.display='none'" class="fa fa-remove wardiak-xlarge wardiak-button wardiak-transparent wardiak-right wardiak-xlarge"></i>
      <h2 class="wardiak-wide">CERCA</h2>
      <p>Download the app in AppStore, Google Play or Microsoft Store.</p>
      <i class="fa fa-Apple wardiak-large"></i> <i class="fa fa-linux wardiak-large"></i> <i class="fa fa-windows wardiak-large"></i>
      <p><?php include("../cerca/cerca.php"); ?></p>
      <button type="button" class="wardiak-button wardiak-block wardiak-padding-large wardiak-red wardiak-margin-bottom" onclick="document.getElementById('cerca_progetto').style.display='none'">Fake Download</button>
    </div>
  </div>
</div>



<script>
// Get the Sidebar
var mySidebar = document.getElementById("mySidebar");

// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");

// Toggle between showing and hiding the sidebar, and add overlay effect
function wardiak_open() {
    if (mySidebar.style.display === 'block') {
        mySidebar.style.display = 'none';
        overlayBg.style.display = "none";
    } else {
        mySidebar.style.display = 'block';
        overlayBg.style.display = "block";
    }
}

// Close the sidebar with the close button
function wardiak_close() {
    mySidebar.style.display = "none";
    overlayBg.style.display = "none";
}
</script>



</body>
</html>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).