Revision 1457
Added by Luisehahne over 14 years ago
| modify.php | ||
|---|---|---|
| 28 | 28 |
header("Location: index.php");
|
| 29 | 29 |
exit(0); |
| 30 | 30 |
} else {
|
| 31 |
$page_id = $_GET['page_id']; |
|
| 31 |
$page_id = (int)$_GET['page_id'];
|
|
| 32 | 32 |
} |
| 33 | 33 |
|
| 34 | 34 |
/* |
| 35 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) )
|
|
| 35 |
if( (!($page_id = $admin->checkIDKEY('page_id', $page_id, $_SERVER['REQUEST_METHOD']))) )
|
|
| 36 | 36 |
{
|
| 37 | 37 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
| 38 |
exit(); |
|
| 39 | 38 |
} |
| 40 | 39 |
*/ |
| 41 | 40 |
|
| ... | ... | |
| 55 | 54 |
// Convert the unix ts for modified_when to human a readable form |
| 56 | 55 |
|
| 57 | 56 |
$modified_ts = ($results_array['modified_when'] != 0) |
| 58 |
? $modified_ts = gmdate(TIME_FORMAT.', '.DATE_FORMAT, $results_array['modified_when']+TIMEZONE)
|
|
| 57 |
? $modified_ts = date(TIME_FORMAT.', '.DATE_FORMAT, $results_array['modified_when']+TIMEZONE) |
|
| 59 | 58 |
: 'Unknown'; |
| 60 |
|
|
| 59 |
// $ftan_module = $GLOBALS['ftan_module']; |
|
| 61 | 60 |
// Include page info script |
| 62 | 61 |
$template = new Template(THEME_PATH.'/templates'); |
| 63 | 62 |
$template->set_file('page', 'pages_modify.htt');
|
| 64 | 63 |
$template->set_block('page', 'main_block', 'main');
|
| 65 |
$template->set_var('FTAN', $admin->getFTAN());
|
|
| 64 |
$template->set_var('FTAN', $admin->getFTAN() );
|
|
| 66 | 65 |
|
| 67 | 66 |
$template->set_var(array( |
| 68 | 67 |
'PAGE_ID' => $results_array['page_id'], |
| ... | ... | |
| 180 | 179 |
$block_name = '#' . (int) $section['block']; |
| 181 | 180 |
} |
| 182 | 181 |
} |
| 183 |
print '<div id="wb_'.$section['section_id'].'"><b>' . $TEXT['BLOCK'] . ': </b>' . $block_name; |
|
| 182 |
|
|
| 183 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? 'id="'.SEC_ANCHOR.$section['section_id'].'"' : ''); |
|
| 184 |
print '<div class="section-info" '.$sec_anchor.' ><b>' . $TEXT['BLOCK'] . ': </b>' . $block_name; |
|
| 184 | 185 |
print '<b> Modul: </b>' . $section['module']." "; |
| 185 | 186 |
print '<b> ID: </b>' . $section_id."</div>\n"; |
| 187 |
|
|
| 186 | 188 |
} |
| 187 | 189 |
require(WB_PATH.'/modules/'.$module.'/modify.php'); |
| 188 | 190 |
} |
| ... | ... | |
| 192 | 194 |
|
| 193 | 195 |
// Print admin footer |
| 194 | 196 |
$admin->print_footer(); |
| 195 |
|
|
| 196 |
?> |
|
| 197 | 197 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests