-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnewpost.php
More file actions
31 lines (29 loc) · 1.63 KB
/
newpost.php
File metadata and controls
31 lines (29 loc) · 1.63 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
<?php
require_once("oj-header.php");
echo "<title>SDIBT Online Judge WebBoard >> New Thread</title>";
if (!isset($_SESSION['user_id'])){
echo "<a href=./loginpage.php>Please Login First</a>";
require_once("./oj-footer.php");
exit(0);
}
?>
<center>
<div style="width:90%; text-align:left">
<h2 style="margin:0px 10px">Post New Thread<?php if (array_key_exists('cid',$_REQUEST) && $_REQUEST['cid']!='') echo ' For Contest '.$_REQUEST['cid'];?></h2>
<form action="post.php?action=new" method=post>
<input type=hidden name=cid value="<?php if (array_key_exists('cid',$_REQUEST)) echo $_REQUEST['cid'];?>">
<div style="margin:0px 10px">Problem : </div>
<div><input name=pid style="border:1px dashed #8080FF; width:100px; height:20px; font-size:75%;margin:0 10px; padding:2px 10px" value="<?php if(array_key_exists('pid',$_REQUEST)) echo $_REQUEST['pid']; ?>"></div>
<div style="margin:0px 10px">Title : </div>
<div><input name=title style="border:1px dashed #8080FF; width:700px; height:20px; font-size:75%;margin:0 10px; padding:2px 10px"></div>
<div style="margin:0px 10px">Content : </div>
<div><textarea name=content style="border:1px dashed #8080FF; width:700px; height:400px; font-size:75%; margin:0 10px; padding:10px"></textarea></div>
<div><input type="submit" style="margin:5px 10px" value="Submit"></input></div>
<?php if($OJ_VCODE){?>
<div style="margin:0px 10px">Verification code:</div>
<div><input name="vcode" size=4 type=text style="border:1px dashed #8080FF; width:100px; height:20px; font-size:75%;margin:0 10px; padding:2px 10px"> <img src=vcode.php align="absmiddle">*</div>
<?php }?>
</form>
</div>
</center>
<?require_once("./oj-footer.php")?>