Revision 1457
Added by Dietmar over 13 years ago
setparameter.php | ||
---|---|---|
33 | 33 |
|
34 | 34 |
//Save post vars to the parameters file |
35 | 35 |
if ( !is_null($admin->get_post_escaped("save"))) { |
36 |
/* |
|
36 | 37 |
if (!$admin->checkFTAN()) |
37 | 38 |
{ |
38 |
$admin->print_error('SP5::'.$MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
39 |
exit(); |
|
39 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'],'browse.php',false); |
|
40 | 40 |
} |
41 |
|
|
41 |
*/ |
|
42 | 42 |
//Check for existing settings entry, if not existing, create a record first! |
43 | 43 |
if (!$database->query ( "SELECT * FROM ".TABLE_PREFIX."settings where `name`='mediasettings'" )) { |
44 | 44 |
$database->query ( "INSERT INTO ".TABLE_PREFIX."settings (`name`,`value`) VALUES ('mediasettings','')" ); |
... | ... | |
76 | 76 |
$template->set_var('DISPLAY_ADMIN', 'hide'); |
77 | 77 |
} |
78 | 78 |
$template->set_var(array( |
79 |
'TEXT_HEADER' => $TEXT['TEXT_HEADER'],
|
|
80 |
'SAVE_TEXT' => $TEXT['SAVE'],
|
|
81 |
'BACK' => $TEXT['BACK'],
|
|
82 |
)
|
|
83 |
);
|
|
79 |
'TEXT_HEADER' => $TEXT['TEXT_HEADER'], |
|
80 |
'SAVE_TEXT' => $TEXT['SAVE'], |
|
81 |
'BACK' => $TEXT['BACK'], |
|
82 |
) |
|
83 |
); |
|
84 | 84 |
|
85 |
|
|
86 | 85 |
$template->set_block('main_block', 'list_block', 'list'); |
87 | 86 |
$row_bg_color = ''; |
88 | 87 |
$dirs = directory_list(WB_PATH.MEDIA_DIRECTORY); |
... | ... | |
104 | 103 |
else $row_bg_color = 'DEDEDE'; |
105 | 104 |
|
106 | 105 |
$template->set_var(array( |
107 |
'ADMIN_URL' => ADMIN_URL,
|
|
108 |
'PATH_NAME' => $relative,
|
|
109 |
'WIDTH' => $TEXT['WIDTH'],
|
|
110 |
'HEIGHT' => $TEXT['HEIGHT'],
|
|
111 |
'FIELD_NAME_W' => $safepath.'-w',
|
|
112 |
'FIELD_NAME_H' => $safepath.'-h',
|
|
113 |
'CUR_WIDTH' => $cur_width,
|
|
114 |
'CUR_HEIGHT' => $cur_height,
|
|
115 |
'SETTINGS' => $TEXT['SETTINGS'],
|
|
116 |
'ADMIN_ONLY' => $TEXT['ADMIN_ONLY'],
|
|
117 |
'ADMIN_ONLY_SELECTED' => $pathsettings['global']['admin_only'],
|
|
118 |
'NO_SHOW_THUMBS' => $TEXT['NO_SHOW_THUMBS'],
|
|
119 |
'NO_SHOW_THUMBS_SELECTED' => $pathsettings['global']['show_thumbs'],
|
|
120 |
'ROW_BG_COLOR' => $row_bg_color,
|
|
121 |
'FTAN' => $admin->getFTAN()
|
|
122 |
)
|
|
123 |
);
|
|
106 |
'ADMIN_URL' => ADMIN_URL, |
|
107 |
'PATH_NAME' => $relative, |
|
108 |
'WIDTH' => $TEXT['WIDTH'], |
|
109 |
'HEIGHT' => $TEXT['HEIGHT'], |
|
110 |
'FIELD_NAME_W' => $safepath.'-w', |
|
111 |
'FIELD_NAME_H' => $safepath.'-h', |
|
112 |
'CUR_WIDTH' => $cur_width, |
|
113 |
'CUR_HEIGHT' => $cur_height, |
|
114 |
'SETTINGS' => $TEXT['SETTINGS'], |
|
115 |
'ADMIN_ONLY' => $TEXT['ADMIN_ONLY'], |
|
116 |
'ADMIN_ONLY_SELECTED' => $pathsettings['global']['admin_only'], |
|
117 |
'NO_SHOW_THUMBS' => $TEXT['NO_SHOW_THUMBS'], |
|
118 |
'NO_SHOW_THUMBS_SELECTED' => $pathsettings['global']['show_thumbs'], |
|
119 |
'ROW_BG_COLOR' => $row_bg_color, |
|
120 |
'FTAN' => $admin->getFTAN() |
|
121 |
) |
|
122 |
); |
|
124 | 123 |
$template->parse('list', 'list_block', true); |
125 | 124 |
} |
126 | 125 |
|
127 | 126 |
$template->parse('main', 'main_block', false); |
128 | 127 |
$template->pparse('output', 'page'); |
129 |
|
|
130 |
|
|
131 |
?> |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests