-
Notifications
You must be signed in to change notification settings - Fork 28
/
submit_board.php
53 lines (41 loc) · 1009 Bytes
/
submit_board.php
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
<?php
require_once("bootstrap.inc.php");
require_once("include_pouet/box-modalmessage.php");
require_once("include_pouet/box-board-submit.php");
if ($currentUser && !$currentUser->CanSubmitItems())
{
redirect("index.php");
exit();
}
$TITLE = "submit a board";
$form = new PouetFormProcessor();
$form->SetSuccessURL( "boards.php?which={%NEWID%}", true );
$form->Add( "board", new PouetBoxSubmitBoard() );
if ($currentUser && $currentUser->CanSubmitItems())
$form->Process();
require_once("include_pouet/header.php");
require("include_pouet/menu.inc.php");
echo "<div id='content'>\n";
if (get_login_id())
{
$form->Display();
/*
?>
<script>
document.observe("dom:loaded",function(){
NameWarning({"ajaxURL":"./ajax_parties.php","linkURL":"party.php?which="});
});
</script>
<?php
*/
}
else
{
require_once("include_pouet/box-login.php");
$box = new PouetBoxLogin();
$box->Render();
}
echo "</div>\n";
require("include_pouet/menu.inc.php");
require_once("include_pouet/footer.php");
?>