Revision 1889
Added by Luisehahne over 12 years ago
| modify.php | ||
|---|---|---|
| 210 | 210 |
$section_id = $section['section_id']; |
| 211 | 211 |
$module = $section['module']; |
| 212 | 212 |
//Have permission? |
| 213 |
if(!is_numeric(array_search($module, $module_permissions))) |
|
| 214 |
{
|
|
| 213 |
if(!is_numeric(array_search($module, $module_permissions))) {
|
|
| 215 | 214 |
// Include the modules editing script if it exists |
| 216 |
if(file_exists(WB_PATH.'/modules/'.$module.'/modify.php')) |
|
| 217 |
{
|
|
| 215 |
if(file_exists(WB_PATH.'/modules/'.$module.'/modify.php')) {
|
|
| 218 | 216 |
print /* '<a name="'.$section_id.'"></a>'. */"\n"; |
| 219 | 217 |
// output block name if blocks are enabled |
| 220 |
if (SECTION_BLOCKS) {
|
|
| 221 |
if (isset($block[$section['block']]) && trim(strip_tags(($block[$section['block']]))) != '') |
|
| 222 |
{
|
|
| 218 |
// if (SECTION_BLOCKS) {
|
|
| 219 |
if (isset($block[$section['block']]) && trim(strip_tags(($block[$section['block']]))) != '') {
|
|
| 223 | 220 |
$block_name = htmlentities(strip_tags($block[$section['block']])); |
| 224 | 221 |
} else {
|
| 225 |
if ($section['block'] == 1) |
|
| 226 |
{
|
|
| 222 |
if ($section['block'] == 1) {
|
|
| 227 | 223 |
$block_name = $TEXT['MAIN']; |
| 228 | 224 |
} else {
|
| 229 | 225 |
$block_name = '#' . (int) $section['block']; |
| 230 | 226 |
} |
| 231 | 227 |
} |
| 232 |
|
|
| 233 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? 'id="'.SEC_ANCHOR.$section['section_id'].'"' : 'section_'.$section_id); |
|
| 228 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? 'id="'.SEC_ANCHOR.$section['section_id'].'"' : 'section_'.$section_id); |
|
| 234 | 229 |
print '<div class="section-info" '.$sec_anchor.' ><b>' . $TEXT['BLOCK'] . ': </b>' . $block_name; |
| 235 | 230 |
print '<b> Modul: </b>' . $section['module']." "; |
| 236 | 231 |
print '<b> ID: </b>' . $section_id."</div>\n"; |
| 237 |
|
|
| 238 |
} |
|
| 232 |
// } |
|
| 239 | 233 |
require(WB_PATH.'/modules/'.$module.'/modify.php'); |
| 240 | 234 |
} |
| 241 | 235 |
} |
Also available in: Unified diff
! update sections table change some varchar to int(11)
+ upgradeHelper class for better module upgrade