2018-11-17 14:43:50 +01:00
|
|
|
<?php
|
|
|
|
if( !isset( $_SESSION ) ) session_start();
|
|
|
|
if(empty($_SESSION['user'])){
|
|
|
|
header('Location: login.php');
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$user=$_SESSION['user'];
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2018-12-17 01:02:03 +01:00
|
|
|
<link rel="Shortcut icon" href="../blog-post/img/name-label.png"/>
|
2018-11-17 14:43:50 +01:00
|
|
|
|
|
|
|
<!-- SEO FRIENDLY ZONE -->
|
|
|
|
<title>Panel CMS</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="robots" content="noindex,nofollow" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<!-- END OF SEO FRIENDLY ZONE -->
|
|
|
|
|
|
|
|
<!-- CSS LOADER -->
|
|
|
|
<link rel="stylesheet" href="css/samples.css">
|
|
|
|
<link rel="stylesheet" href="toolbarconfigurator/lib/codemirror/neo.css">
|
|
|
|
<link rel="stylesheet" href="css/style2.css">
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="css/style.css">
|
|
|
|
<!-- END OF CSS LOADER -->
|
2018-12-17 01:02:03 +01:00
|
|
|
|
|
|
|
<!-- BOOTSTRAP SCRIPT LOADER -->
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
|
|
|
<!-- END OF BOOTSTRAP SCRIPT LOADER -->
|
|
|
|
</head>
|
2018-11-17 14:43:50 +01:00
|
|
|
<body>
|
|
|
|
<div class="wrapper">
|
|
|
|
<?php include "sidebar.php"; ?>
|
2018-12-17 01:02:03 +01:00
|
|
|
<div id="content" class="container-fluid">
|
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="flex-row">
|
|
|
|
<div class="navbar-header flex-column">
|
|
|
|
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
|
|
|
|
<i class="glyphicon glyphicon-align-left"></i>
|
|
|
|
<span>Toggle Sidebar</span>
|
|
|
|
</button>
|
|
|
|
<?php include "menu.php" ?>
|
|
|
|
<div id="aboutdown"></div>
|
|
|
|
</div>
|
2018-11-17 14:43:50 +01:00
|
|
|
</div>
|
2018-12-17 18:42:54 +01:00
|
|
|
</nav>
|
2018-12-17 11:54:35 +01:00
|
|
|
<form method="post" action="insert.php" ENCTYPE="multipart/form-data">
|
2018-11-17 14:43:50 +01:00
|
|
|
<div class="addPostForm">
|
2018-12-17 22:28:39 +01:00
|
|
|
<p>Tytul posta</p>
|
2018-11-17 14:43:50 +01:00
|
|
|
<input type="text" name="title" size="120">
|
|
|
|
<p>Meta opis</p>
|
|
|
|
<input name="meta_desc" size="120">
|
|
|
|
<p>Treść posta</p>
|
|
|
|
<textarea name="post_text" id="editor1" rows="10" cols="80"></textarea>
|
2018-12-17 11:54:35 +01:00
|
|
|
<p>Zdjęcie posta</p>
|
|
|
|
<label>Wybierz zdjęcie:</label>
|
|
|
|
<input type="file" name="avatar" accept="image/*" required />
|
2018-11-17 14:43:50 +01:00
|
|
|
<input type="submit" class="btn btn-success" value="Dodaj post">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- SCRIPTS LOADER -->
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
|
|
|
<script src="ckeditor/ckeditor.js"></script>
|
|
|
|
<script src="js/sample.js"></script>
|
|
|
|
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
|
|
|
|
<!-- Bootstrap Js CDN -->
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
|
|
|
<!-- jQuery Custom Scroller CDN -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
|
|
|
|
<!-- CKEDITOR REPLACE -->
|
|
|
|
<script>
|
|
|
|
CKEDITOR.replace('editor1');</script>
|
|
|
|
<!-- Toggle sidebar -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#sidebar").mCustomScrollbar({
|
|
|
|
theme: "minimal"
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#sidebarCollapse').on('click', function () {
|
|
|
|
$('#sidebar, #content').toggleClass('active');
|
|
|
|
$('.collapse.in').toggleClass('in');
|
|
|
|
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#dodajemy').click(function(){
|
|
|
|
$("#zawartosc").load('index.php');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<!-- END OF SCRIPTS LOADER -->
|
|
|
|
</body>
|
|
|
|
</html>
|