-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
90 lines (72 loc) · 2.89 KB
/
Copy pathindex.php
File metadata and controls
90 lines (72 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<? session_start(); ?>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<link rel="stylesheet" href="photos.css">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js"></script>
<script src="star_rating_system.js"></script>
<script src="photos.js"></script>
<body style="padding:0px; margin:0px; background-color:#000; color:#eee;">
<div class="container-fluid">
<div class="row">
<div style="width:100%; background-color:#eee; padding:1%; margin:0px; margin-bottom:1%;">
<a href="map3.php">Map</a> <a href="single.php">Random</a>
<a class="force_blue" data-toggle="collapse" data-target="#SearchPane">Search </a>
<span style="display:block;float:right;"><a href="../x/">Admin</a>
<? if ($_SESSION['auth'] == '+yRjDNoj8GDPy+wcqDUB+MT56lQmKCxMT3vnJZs1kdU='){
echo 'logged in';
} ?>
</span>
</div>
</div>
<? include('querybar.php');
while($row = mysqli_fetch_array( $result )){
error_reporting(0);
$text = date( "F j, Y, g:i a" ,$row['time']);
error_reporting(1);
$i++;
//If beginning of results head with DATE
if ($i==1){
$prev_time = $row['time'];
$text = date( "F j, Y" ,$row['time']);
$month_break ="<div>RESULTS BEGIN ON ". $text . "</div><div class='row month'>";
//If a new month close preview month DIV
}elseif(($prev_time - $row['time']) > 2592000 ){
$prev_time = $row['time'];
$text = date( "F j, Y" ,$row['time']);
$month_break ="</div><div>". $text. "</div><div class='row month'>";
}else{
$month_break = "";
}
//Start the little box for thumb and details
echo $month_break . "<div id=". $row['ID'] . " class='col-sm-4'>";
require 'icon_bar.php';
$thumbwidth = 495;
if($row['type'] == "mov" || $row['type'] == "mp4" || $row['type'] == "3gp" || $row['type'] == "m4v" ){
$thumb = $row['ID'] . "_thumb_". $thumbwidth .".gif";
}else{
$thumb = $row['ID'] . "_thumb_". $thumbwidth .".jpg";
}
?>
<div style="text-align:center; width:100%;">
<a target="_blank" href="single.php?i=<? echo $row['ID'] ; ?>">
<img style="max-height:300px;" src='../thumbs/<? echo $thumb ; ?>'>
</a>
</div>
</div>
<?
}
if ($page > 1){
echo '<a href="index.php?start='. $_GET['start'] .'&stop='. $_GET['stop'] .'&rate='. $rate .'&view='. $view . '&page=' . ($page - 1) . '"><< Previous</a> | ';
}
if ($rowCount < 500){
echo $rowCount . ' Results';
}else{
echo '<a href="index.php?start='. $_GET['start'] .'&stop='. $_GET['stop'] .'&rate='. $rate .'&view='. $view . '&page=' . ($page + 1) . '">Next 500>></a>';
}
?>
</div>
</body>
</html>