forked from root/threadr.lostcave.ddnss.de
board is visible to public, posting is only possible when logged in
parent
55977fcf05
commit
7b544103af
|
@ -3,7 +3,6 @@ session_start();
|
||||||
%SET_LOGIN_VARIABLE%
|
%SET_LOGIN_VARIABLE%
|
||||||
%NO_CHEAP_SESSION_STEALING%
|
%NO_CHEAP_SESSION_STEALING%
|
||||||
%PLEAZE_NO_CACHE%
|
%PLEAZE_NO_CACHE%
|
||||||
%REQUIRE_LOGIN%
|
|
||||||
$navbar="boards";
|
$navbar="boards";
|
||||||
$id=$_GET['id'];
|
$id=$_GET['id'];
|
||||||
?>
|
?>
|
||||||
|
@ -51,19 +50,21 @@ $id=$_GET['id'];
|
||||||
</div>
|
</div>
|
||||||
<div class="item-3">
|
<div class="item-3">
|
||||||
<?php
|
<?php
|
||||||
if(isset($_GET['action'])) {
|
if($login) {
|
||||||
if($_GET['action']=='post') {
|
if(isset($_GET['action'])) {
|
||||||
include("./post.php");
|
if($_GET['action']=='post') {
|
||||||
} elseif($_GET['action']=='submit') {
|
include("./post.php");
|
||||||
$user_id=$_SESSION[user_id];
|
} elseif($_GET['action']=='submit') {
|
||||||
$title=$_POST['title'];
|
$user_id=$_SESSION[user_id];
|
||||||
$content=$_POST['content'];
|
$title=$_POST['title'];
|
||||||
include("./submit.php");
|
$content=$_POST['content'];
|
||||||
} elseif($_GET['action']=='edit') {
|
include("./submit.php");
|
||||||
include("./edit.php");
|
} elseif($_GET['action']=='edit') {
|
||||||
|
include("./edit.php");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
include("./default.php");
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
include("./default.php");
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue