C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$RFI5QEM\modules\calendar\admin.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
require("code.php");
if(
$code != $xcode) {
exit;
}
$day strip_dir_illegals($_GET['day']);
$month strip_dir_illegals($_GET['month']);
if(
$online == 1) {
if(
$u_rank >= $rank_required['mod_admin']) {
echo 
"<center><b>Admin Events</b></center><hr noshade />";
if((!isset(
$do)) || ($do == "")) {
echo <<<HTML

<ul>
<li><a href="
$mod_url">Edit/Delete Events</a></li>
</ul><br /><br />
HTML;
}
if(
$do == "edit_event") {
if((
$day >= 1) && ($day <= 31) && ($month >= 1) && ($month <= 12)) {
if(
file_exists($mod_root."/events/".$month."-".$day.".php")) {
require(
$mod_root."/events/".$month."-".$day.".php");
}
echo <<<HTML

$vxcode_info<br /><br />
<center>
<form action="
$admin_url&do=edit_event_go&month=$month&day=$day" method="POST">
<table 
$sp_table>
<tr 
$sp_htr><td colspan="2" $hp_ctd>Edit Event</td></tr>
<tr 
$sp_ctr><td $sp_ctd>Subject:</td><td $sp_ctd><input type="text" name="event_subject" value="$event_subject"></td></tr>
<tr 
$sp_ctr><td colspan="2" $sp_ctd>Event Content:</td></tr>
<tr 
$sp_ctr><td colspan="2" $sp_ctd><textarea name="event_content" cols="70" rows="12">$event_content</textarea></td></tr>
<tr 
$sp_ctr><td colspan="2" align="center" $sp_ctd><input type="submit" value="Edit Event"> <input type="reset" value="Reset"></td></tr>
</table>
</form>
</center>
HTML;
}
}
if(
$do == "edit_event_go") {
if((
$day >= 1) && ($day <= 31) && ($month >= 1) && ($month <= 12)) {
$event_subject alter($HTTP_POST_VARS['event_subject']);
$event_content alter($HTTP_POST_VARS['event_content']);
$err 0;
if(
$event_subject == "") {
derr("Subject is blank.");
$err 1;
}
if(
$event_content == "") {
derr("Content is blank.");
$err 1;
}
$event_poster $usr;
$event_signups "";
if(
$err == 0) {
require(
$admin_root."/event_info.php");
wf($admin_root."/events/".$month."-".$day.".php","w",$event_info);
echo <<<HTML

Event has been edited.<br /><br />
<center>[<a href="
$mod_url">Return to Events Main</a>]<br /><br /></center>
HTML;
}
}
}
if(
$do == "delete_event") {
if(
file_exists($admin_root."/events/".$month."-".$day.".php")) {
unlink($admin_root."/events/".$month."-".$day.".php");
echo <<<HTML

Event has been deleted.<br /><br />
<center>[<a href="
$mod_url">Return to Events Main</a>]<br /><br /></center>
HTML;
}
}
}
}
else { 
$viv "Not_Logged_In"; }
?>