Revision 1718
Added by Dietmar about 12 years ago
modify.php | ||
---|---|---|
4 | 4 |
* @category modules |
5 | 5 |
* @package news |
6 | 6 |
* @author WebsiteBaker Project |
7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
8 | 8 |
* @link http://www.websitebaker2.org/ |
9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
10 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
20 | 20 |
if(defined('WB_PATH') == false) |
21 | 21 |
{ |
22 | 22 |
// Stop this file being access directly |
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
|
|
23 |
die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
|
|
24 | 24 |
} |
25 | 25 |
/* -------------------------------------------------------- */ |
26 |
// fixed escaping malformed URI reference |
|
27 |
$TEXT['ARE_YOU_SURE'] = str_replace(' ','%20',$TEXT['ARE_YOU_SURE']); |
|
28 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
29 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
26 | 30 |
|
27 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
28 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); |
|
29 |
|
|
30 | 31 |
//overwrite php.ini on Apache servers for valid SESSION ID Separator |
31 | 32 |
if(function_exists('ini_set')) { |
32 | 33 |
ini_set('arg_separator.output', '&'); |
... | ... | |
129 | 130 |
<?php } ?> |
130 | 131 |
</td> |
131 | 132 |
<td width="20"> |
132 |
<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
133 |
<a href="javascript:confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>','<?php echo WB_URL; ?>/modules/news/delete_post.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&post_id=<?php echo $pid; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
133 | 134 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" /> |
134 | 135 |
</a> |
135 | 136 |
</td> |
... | ... | |
171 | 172 |
<a href="<?php echo WB_URL; ?>/modules/news/modify_group.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&group_id=<?php echo $gid; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
172 | 173 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify - " /> |
173 | 174 |
</a> |
174 |
</td>
|
|
175 |
</td> |
|
175 | 176 |
<td width="50" style="text-align: right;"> |
176 | 177 |
<?php echo $group['group_id'] ?> |
177 | 178 |
</td> |
Also available in: Unified diff
! update headerinfo
! change multi-dimensional arrays (variables) to similar arrays