Phping #5
16 changed files with 258 additions and 481 deletions
|
@ -1,60 +1,7 @@
|
|||
<?php include 'gori.php'; ?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.html">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="index.html">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="table.html">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a id="activeHeaderLink" class="headerLink" href="about.html">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="contact.html">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="register.html">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<p>
|
||||
Links:
|
19
add.php
Normal file
19
add.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php include 'gori.php';?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<form class="contactForm" method="post">
|
||||
<label >
|
||||
Slika link:
|
||||
</label><br />
|
||||
<input type="text" id="emailField" name="slika"/> <br />
|
||||
<label >
|
||||
Tekst:
|
||||
</label><br />
|
||||
<textarea type="text" rows="30" cols="70" id="passwordField" name="vijest" ></textarea><br />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
80
contact.html
80
contact.html
|
@ -1,80 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.html">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="index.html">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="table.html">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="about.html">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a id="activeHeaderLink" class="headerLink" href="contact.html">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="register.html">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="contactForm">
|
||||
<label >
|
||||
First name:
|
||||
</label><br />
|
||||
<input type="text" name="firstName" /> <br />
|
||||
<label >
|
||||
Last name:
|
||||
</label><br />
|
||||
<input type="text" name="lastName" /><br />
|
||||
<label >
|
||||
Email:
|
||||
</label><br />
|
||||
<input type="text" name="lastName" /><br />
|
||||
<label >
|
||||
Message:
|
||||
</label><br />
|
||||
<input type="text" name="message" height="300px"/><br />
|
||||
<input type="button" name="send" value="Send"/>
|
||||
</div>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
27
contact.php
Normal file
27
contact.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php include 'gori.php';?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<div class="contactForm">
|
||||
<label >
|
||||
First name:
|
||||
</label><br />
|
||||
<input type="text" name="firstName" /> <br />
|
||||
<label >
|
||||
Last name:
|
||||
</label><br />
|
||||
<input type="text" name="lastName" /><br />
|
||||
<label >
|
||||
Email:
|
||||
</label><br />
|
||||
<input type="text" name="lastName" /><br />
|
||||
<label >
|
||||
Message:
|
||||
</label><br />
|
||||
<input type="text" name="message" height="300px"/><br />
|
||||
<input type="button" name="send" value="Send"/>
|
||||
</div>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
44
gori.php
Normal file
44
gori.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
session_start();
|
||||
$openShiftFolder = $_ENV['OPENSHIFT_DATA_DIR'];
|
||||
if(isset($_POST['username']) && isset($_POST['password'])) {
|
||||
$file = file_get_contents("users");
|
||||
$file = str_replace("\n", "", $file);
|
||||
$niz = explode(",", $file);
|
||||
$username = $_POST['username'];
|
||||
$password = $_POST['password'];
|
||||
if($niz[0] == $username && $niz[1] == sha1($password)) {
|
||||
$_SESSION['user']=$_POST['username'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['vijest'])) {
|
||||
$vijestiFile = file_get_contents("vijesti.csv");
|
||||
$vijest = $_POST['vijest'];
|
||||
if(strpos($vijest, ',') !== FALSE) {
|
||||
$vijest = str_replace('"', '""', $vijest);
|
||||
$vijest = '"'.$vijest.'"';
|
||||
}
|
||||
$slike = (isset($_POST['slika']))?$_POST['slika']:'';
|
||||
if(isset($_POST['slika'])) {
|
||||
if(strpos($slike, ',') !== FALSE) {
|
||||
$slike = str_replace('"', '""', $slike);
|
||||
$slike = '"'.$slike.'"';
|
||||
}
|
||||
}
|
||||
|
||||
print_r($slike);
|
||||
$time = date(DATE_ISO8601, strtotime("now"));
|
||||
$vijestiFile = $time.','.$slike.','.$vijest."\n".$vijestiFile;
|
||||
$vijestiFile = strip_tags($vijestiFile);
|
||||
file_put_contents("vijesti.csv", $vijestiFile);
|
||||
}
|
||||
|
||||
if(isset($_POST['logout'])) {
|
||||
unset($_SESSION['user']);
|
||||
}
|
||||
|
||||
if($_SERVER['REQUEST_URI'] == "/add.php" && !isset($_SESSION['user'])) {
|
||||
header('Location: index.php');
|
||||
}
|
||||
?>
|
89
header.php
Normal file
89
header.php
Normal file
|
@ -0,0 +1,89 @@
|
|||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<script type="text/javascript" src="js.js"></script>
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY <?php echo ($_SERVER['REQUEST_URI'] == "/index.php") ? ' onload="onLoad()"' : null?>>
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.php">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
<div id="login">
|
||||
<?php if (isset($_SESSION['user'])): ?>
|
||||
Zdravo <?php echo $_SESSION['user'] ?>
|
||||
<form id="logout" action="index.php" method="post">
|
||||
<input type="submit" name="logout" value="Logout"/>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<form id="login" method="post">
|
||||
<input type="text" name="username" placeholder="Username" />
|
||||
<input type="text" name="password" placeholder="Password"/>
|
||||
<input type="submit" value="Login"/>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/index.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="index.php">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/table.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="table.php">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/about.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="about.php">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/contact.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="contact.php">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<?php if(!isset($_SESSION['user'])):?>
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/register.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="register.php">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
<?php else:?>
|
||||
<li class="headerItem">
|
||||
<a <?php echo ($_SERVER['REQUEST_URI'] == "/add.php") ? 'id="activeHeaderLink"' : null?> class="headerLink" href="add.php">
|
||||
Dodaj vijest
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if($_SERVER['REQUEST_URI'] == "/index.php"): ?>
|
||||
<li class="headerItem">
|
||||
<select id="filter" name="filter" onchange="onFilter(this.value)">
|
||||
<option value="all">Sve novosti</option>
|
||||
<option value="daily">Današnje vijesti</option>
|
||||
<option value="weekly">Novosti ove sedmice</option>
|
||||
<option value="monthly">Novosti ovaj mjesec</option>
|
||||
</select>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
214
index.html
214
index.html
|
@ -1,214 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<script type="text/javascript" src="js.js"></script>
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY onload="onLoad()">
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.html">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a id="activeHeaderLink" class="headerLink" href="index.html">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="table.html">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="about.html">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="contact.html">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="register.html">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<select id="filter" name="filter" onchange="onFilter(this.value)">
|
||||
<option value="all">Sve novosti</option>
|
||||
<option value="daily">Današnje vijesti</option>
|
||||
<option value="weekly">Novosti ove sedmice</option>
|
||||
<option value="monthly">Novosti ovaj mjesec</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-01-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-03-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-04-03 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-04-02 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-03-29 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-03-20 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2015-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2016-01-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2015-11-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
<div class="news">
|
||||
<img src="http://ia.media-imdb.com/images/M/MV5BMjA3NzMyMzU1MV5BMl5BanBnXkFtZTcwNjc1ODUwMg@@._V1_UY113_CR6,0,76,113_AL_.jpg" />
|
||||
<p>
|
||||
<time class='vrijeme' datetime="2008-02-14 20:00"></time>
|
||||
What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.What did the world look like as it was transforming into the horrifying apocalypse depicted in "The Walking Dead"? This spin-off set in Los Angeles, following new characters as they face the beginning of the end of the world, will answer that question.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
25
index.php
Normal file
25
index.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php include 'gori.php';?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<?php $newsFile = file("vijesti.csv");
|
||||
foreach ($newsFile as $news) {?>
|
||||
<div class="news">
|
||||
<?php
|
||||
$nesto = str_getcsv($news);
|
||||
$image = $nesto[1];
|
||||
$timeOfNews = $nesto[0];
|
||||
$newsContent = $nesto[2];
|
||||
?>
|
||||
<img src="<?php echo (strlen($image)!=0)?$image:'no_image.png' ?>"/>
|
||||
<p>
|
||||
<time class='vrijeme' datetime="<?php echo $timeOfNews ?>"></time>
|
||||
<?php echo $newsContent ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
}?>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
BIN
no_image.ong.png
Normal file
BIN
no_image.ong.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
no_image.png
Normal file
BIN
no_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -1,77 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<script type="text/javascript" src="js.js"></script>
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.html">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="index.html">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="table.html">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="about.html">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="contact.html">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a id="activeHeaderLink" class="headerLink" href="register.html">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="contactForm">
|
||||
<label >
|
||||
Email:
|
||||
</label><br />
|
||||
<input type="text" id="emailField" name="email" oninput="validateEmail(this)"/> <br />
|
||||
<label >
|
||||
Password:
|
||||
</label><br />
|
||||
<input type="text" id="passwordField" name="password" oninput="validatePassword(this)" /><br />
|
||||
<label >
|
||||
Confirm:
|
||||
</label><br />
|
||||
<input type="text" id="confirmField" name="confirm" oninput="validateConfirm(this)" /><br />
|
||||
<input type="button" name="submit" value="Submit" />
|
||||
</div>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
23
register.php
Normal file
23
register.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php include 'gori.php';?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<div class="contactForm">
|
||||
<label >
|
||||
Email:
|
||||
</label><br />
|
||||
<input type="text" id="emailField" name="email" oninput="validateEmail(this)"/> <br />
|
||||
<label >
|
||||
Password:
|
||||
</label><br />
|
||||
<input type="text" id="passwordField" name="password" oninput="validatePassword(this)" /><br />
|
||||
<label >
|
||||
Confirm:
|
||||
</label><br />
|
||||
<input type="text" id="confirmField" name="confirm" oninput="validateConfirm(this)" /><br />
|
||||
<input type="button" name="submit" value="Submit" />
|
||||
</div>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
26
stil.css
26
stil.css
|
@ -19,6 +19,11 @@
|
|||
background-color: white;
|
||||
}
|
||||
|
||||
#login {
|
||||
position: fixed;
|
||||
left: 30%;
|
||||
}
|
||||
|
||||
.logoWrap {
|
||||
height: 100%;
|
||||
float: left;
|
||||
|
@ -129,9 +134,24 @@ border-color: transparent transparent transparent #1199CC;
|
|||
height: 400px;
|
||||
border: solid #1199CC 2px;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.news img {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin: 5px;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.news p {
|
||||
width: 95%;
|
||||
height: 300px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.contactForm {
|
||||
width: 50%;
|
||||
margin: auto;
|
||||
|
@ -145,6 +165,12 @@ border-color: transparent transparent transparent #1199CC;
|
|||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.contactForm textarea {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.contactForm label {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
|
|
@ -1,60 +1,7 @@
|
|||
<?php include 'gori.php';?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="stil.css" />
|
||||
<TITLE>
|
||||
Movie Database
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<div class="top">
|
||||
<a class="logoLink" href="index.html">
|
||||
<div class="fullLogo">
|
||||
<div class="logoWrap">
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
<div class="logoBack">
|
||||
<div class="logo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="logoLine">
|
||||
</div>
|
||||
</div>
|
||||
<p class="logoText">MDB</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header">
|
||||
|
||||
<ul class="headerBar">
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="index.html">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a id="activeHeaderLink" class="headerLink" href="table.html">
|
||||
Top rated
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="about.html">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="contact.html">
|
||||
Contact
|
||||
</a>
|
||||
</li>
|
||||
<li class="headerItem">
|
||||
<a class="headerLink" href="register.html">
|
||||
Register
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php include 'header.php'; ?>
|
||||
<div class="content">
|
||||
<table border="1" cellspacing="0">
|
||||
<tr class="tableHeader">
|
1
users
Normal file
1
users
Normal file
|
@ -0,0 +1 @@
|
|||
admin,d033e22ae348aeb5660fc2140aec35850c4da997
|
0
vijesti.csv
Normal file
0
vijesti.csv
Normal file
|
Loading…
Add table
Reference in a new issue