@@ -24,25 +24,25 @@ discard block |
||
24 | 24 | $timediff_inDays = (string)$timediff->format('%d'); |
25 | 25 | $timediff_inMonth = (string)$timediff->format('%m'); |
26 | 26 | |
27 | - if($timediff_inMonth!=0) |
|
27 | + if($timediff_inMonth != 0) |
|
28 | 28 | { |
29 | 29 | $timediff = $timediff_inMonth . "m"; |
30 | 30 | } |
31 | 31 | else |
32 | 32 | { |
33 | - if($timediff_inDays!=0) |
|
33 | + if($timediff_inDays != 0) |
|
34 | 34 | { |
35 | 35 | $timediff = $timediff_inDays . "d"; |
36 | 36 | } |
37 | 37 | else |
38 | 38 | { |
39 | - if($timediff_inHours!=0) |
|
39 | + if($timediff_inHours != 0) |
|
40 | 40 | { |
41 | 41 | $timediff = $timediff_inHours . "h"; |
42 | 42 | } |
43 | 43 | else |
44 | 44 | { |
45 | - if($timediff_inMinutes!=0) |
|
45 | + if($timediff_inMinutes != 0) |
|
46 | 46 | { |
47 | 47 | $timediff = $timediff_inMinutes . "m"; |
48 | 48 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | |
58 | 58 | ?> |
59 | - <article id ="postId-<?php echo $post['post_id']; ?>" class="jodel" style="background-color: #<?php echo $post['color'];?>;"> |
|
59 | + <article id ="postId-<?php echo $post['post_id']; ?>" class="jodel" style="background-color: #<?php echo $post['color']; ?>;"> |
|
60 | 60 | <content> |
61 | 61 | <?php |
62 | 62 | if(isset($post['image_url'])) |
@@ -74,24 +74,24 @@ discard block |
||
74 | 74 | <?php |
75 | 75 | if($isDetailedView) |
76 | 76 | {?> |
77 | - <a href="index.php?vote=up&getPostDetails=true&postId=<?php echo $post['post_id'];?>&postId_parent=<?php echo htmlspecialchars($_GET['postId']);?>" rel="nofollow"> |
|
77 | + <a href="index.php?vote=up&getPostDetails=true&postId=<?php echo $post['post_id']; ?>&postId_parent=<?php echo htmlspecialchars($_GET['postId']); ?>" rel="nofollow"> |
|
78 | 78 | <?php } |
79 | 79 | else |
80 | 80 | {?> |
81 | - <a href="index.php?vote=up&postId=<?php echo $post['post_id'];?>" rel="nofollow"> |
|
81 | + <a href="index.php?vote=up&postId=<?php echo $post['post_id']; ?>" rel="nofollow"> |
|
82 | 82 | <?php } ?> |
83 | 83 | <i class="fa fa-angle-up fa-3x"></i> |
84 | 84 | </a> |
85 | 85 | <br /> |
86 | - <?php echo $post["vote_count"];?><br /> |
|
86 | + <?php echo $post["vote_count"]; ?><br /> |
|
87 | 87 | <?php |
88 | 88 | if($isDetailedView) |
89 | 89 | {?> |
90 | - <a href="index.php?vote=down&getPostDetails=true&postId=<?php echo $post['post_id'];?>&postId_parent=<?php echo htmlspecialchars($_GET['postId']);?>" rel="nofollow"> |
|
90 | + <a href="index.php?vote=down&getPostDetails=true&postId=<?php echo $post['post_id']; ?>&postId_parent=<?php echo htmlspecialchars($_GET['postId']); ?>" rel="nofollow"> |
|
91 | 91 | <?php } |
92 | 92 | else |
93 | 93 | {?> |
94 | - <a href="index.php?vote=down&postId=<?php echo $post['post_id'];?>" rel="nofollow"> |
|
94 | + <a href="index.php?vote=down&postId=<?php echo $post['post_id']; ?>" rel="nofollow"> |
|
95 | 95 | <?php } ?> |
96 | 96 | <i class="fa fa-angle-down fa-3x"></i> |
97 | 97 | </a> |
@@ -103,14 +103,14 @@ discard block |
||
103 | 103 | <td class="time"> |
104 | 104 | <span class="tip" data-tooltip="Time"> |
105 | 105 | <i class="fa fa-clock-o"></i> |
106 | - <?php echo $timediff;?> |
|
107 | - <span class="tiptext"><?php echo $d->format('Y-m-d H:i:s');?></span> |
|
106 | + <?php echo $timediff; ?> |
|
107 | + <span class="tiptext"><?php echo $d->format('Y-m-d H:i:s'); ?></span> |
|
108 | 108 | </span> |
109 | 109 | </td> |
110 | 110 | <td class="comments"> |
111 | 111 | <?php if(!$isDetailedView) {?> |
112 | 112 | <span data-tooltip="Comments"> |
113 | - <a href="index.php?getPostDetails=true&view=<?php echo $view;?>&postId=<?php echo $post["post_id"];?>"> |
|
113 | + <a href="index.php?getPostDetails=true&view=<?php echo $view; ?>&postId=<?php echo $post["post_id"]; ?>"> |
|
114 | 114 | <i class="fa fa-commenting-o"></i> |
115 | 115 | <?php if(array_key_exists("child_count", $post)) { |
116 | 116 | echo $post["child_count"]; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | ?> |
141 | 141 | <span data-tooltip="Author"> |
142 | - <i class="fa fa-user-o"></i> #<?php echo $post["user_handle"];?> | |
|
142 | + <i class="fa fa-user-o"></i> #<?php echo $post["user_handle"]; ?> | |
|
143 | 143 | </span> |
144 | 144 | <?php |
145 | 145 | } |
@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | |
150 | 150 | <span class="tip" data-tooltip="Distance"> |
151 | 151 | <i class="fa fa-map-marker"></i> |
152 | - <?php echo $post['distance'];?> km |
|
153 | - <span class="tiptext"><?php echo $post['location']['name'];?></span> |
|
152 | + <?php echo $post['distance']; ?> km |
|
153 | + <span class="tiptext"><?php echo $post['location']['name']; ?></span> |
|
154 | 154 | </span> |
155 | 155 | </td> |
156 | 156 | </tr> |
@@ -3,8 +3,8 @@ discard block |
||
3 | 3 | $config = parse_ini_file('config/config.ini.php'); |
4 | 4 | if(!isset($_GET['pw']) || $config['pw'] != $_GET['pw']) |
5 | 5 | { |
6 | - error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php'); |
|
7 | - $respone = array("message" => $_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php',"success" => false); |
|
6 | + error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php'); |
|
7 | + $respone = array("message" => $_SERVER['REMOTE_ADDR'] . ' used a wrong password on vote-ajax.php', "success" => false); |
|
8 | 8 | echo json_encode($response); |
9 | 9 | |
10 | 10 | die(); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | -if (isset($captcha)) |
|
58 | +if(isset($captcha)) |
|
59 | 59 | { |
60 | 60 | $response = array("success" => $success, "message" => $message, "captcha" => $captcha, "deviceUid" => $deviceUid); |
61 | 61 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | if(!isset($_GET['pw']) || $config['pw'] != $_GET['pw']) |
6 | 6 | { |
7 | - error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on admin.php'); |
|
7 | + error_log($_SERVER['REMOTE_ADDR'] . ' used a wrong password on admin.php'); |
|
8 | 8 | die(); |
9 | 9 | } |
10 | 10 |