-
Notifications
You must be signed in to change notification settings - Fork 28
/
submit_prod.php
54 lines (40 loc) · 976 Bytes
/
submit_prod.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
54
<?php
require_once("bootstrap.inc.php");
require_once("include_pouet/box-modalmessage.php");
require_once("include_pouet/box-prod-submit.php");
if ($currentUser && !$currentUser->CanSubmitItems())
{
redirect("index.php");
exit();
}
$TITLE = "submit a prod";
$form = new PouetFormProcessor();
$form->SetSuccessURL( "prod.php?which={%NEWID%}", true );
$form->Add( "prod", new PouetBoxSubmitProd() );
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(){
if (!$("row_csdbID")) return;
PrepareSubmitForm();
});
</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");
?>