-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
113 lines (110 loc) · 4.52 KB
/
edit.php
File metadata and controls
113 lines (110 loc) · 4.52 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
//========================//
if(INCLUDED !== TRUE)
{
echo "No Direct File Linking Allowed!";
exit;
}
// ==================== //
if (!isset ($_GET['pic']))
{
echo '
<center>
'.$module_lang['nopictoedit'].'<br/>
<a href="?module='. MODULE_NAME .'">'.$module_lang[$galleries].' </a>
</center>
';
exit;
}
$picture = $DB->selectRow("SELECT * FROM mw_gallery WHERE `id`='".$_GET['pic']."'");
if ($user['username'] == $picture['autor'] or $user['account_level'] >= 3 )
{
echo '
<form method="post" action="?module='. MODULE_NAME .'" enctype="multipart/form-data">
<table style="margin: 7px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/lt.png" class="png" style="width: 12px; height: 9px;" border="0" height="0" width="0"></td>
<td background="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_t.gif"><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_.gif" height="0" width="0"></td>
<td><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/rt.png" class="png" style="width: 12px; height: 9px;" border="0" height="0" width="0"></td>
</tr>
<tr>
<td background="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_l.gif"><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_.gif" height="0" width="0"></td>
<td>';
if ($picture['cat'] == 'deleted')
{
echo '<a href="images/'. $picture['oldcat'] .'s/'. $picture['img'] .'" target="_blank"><img src="modules/'. MODULE_NAME .'/show_picture.php?filename='. $picture['img'] .'&gallery='. $picture['oldcat'] .'&width=282" width="282" alt="" style="border: 1px solid #333333"/>';
}
Else
{
echo '<a href="images/'. $picture['cat'] .'s/'. $picture['img'] .'" target="_blank"><img src="modules/'. MODULE_NAME .'/show_picture.php?filename='. $picture['img'] .'&gallery='. $picture['cat'] .'&width=282" width="282" alt="" style="border: 1px solid #333333"/>';
}
echo '
</td>
<td background="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_r.gif"><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_.gif" height="0" width="0"></td>
<td width="25" />
<td width="200">
<br /> '.$module_lang['comment'].': '.$picture['comment'].'
<br /> '.$module_lang['author'].": ".$picture['autor'].'
<br /> '.$module_lang['date'].": ".$picture['date'].'
';
if ($picture['cat'] == 'deleted')
echo'
<br/>
<b>'.$module_lang['deleted'].' '.$module_lang[$picture['oldcat']].'<b>
';
echo '
</td>
</tr>
<tr>
<td><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/lb.png" class="png" style="width: 12px; height: 12px;" border="0" height="12" width="12"></td>
<td background="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_b.gif"><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/_.gif" height="1" width="9"></td>
<td><img src="modules/'. MODULE_NAME .'/templates/'.$moduletheme.'/frame/rb.png" class="png" style="width: 12px; height: 12px;" border="0" height="12" width="12"></td>
</tr>
</tr>
</tbody>
</table>
<input type="hidden" name="picid" value="'.$_GET['pic'].'">
<select name="galtype">
<option value="'.$picture['cat'].'">'.$module_lang[$picture['cat']].'</option>
';
foreach($Gal_list as $listings)
{
echo"
<option value=".$listings.">".$module_lang[$listings]."</option>
";
}
echo'
</select>
<br/>
'.$module_lang['comment'].':<br/>
<textarea name="message" cols="5" rows="5" id="textarea" style="width: 40%; height: 70px;">'.$picture['comment'].'</textarea><br/>
<br/>
<center>
<input type="submit" value="'.$module_lang['edit'].'" name="doedit">
<input type="submit" value="'.$module_lang['cancel'].'" name="cancel">
<br/>
</center>
';
echo '
</form>
';
echo '
<form method="post" action="index.php?module='. MODULE_NAME .'" enctype="multipart/form-data">
<center>
<input type="submit" value="'.$module_lang['home'].'" name="mainmenu">
</center>
</form>
';
}
else
{
echo'
<center>
'.$module_lang['notowneredit'].'<br/>
<a href="?module='. MODULE_NAME .'">'.$module_lang[$galleries].' </a>
</center>
';
exit;
}
?>