Tokens are now mandatory for this kind of things! :P
emanuele

emanuele commited on 2012-10-25 06:05:55
Showing 2 changed files, with 5 additions and 0 deletions.


Signed-off-by: emanuele <emanuele45@gmail.com>
... ...
@@ -323,6 +323,7 @@ function shd_admin_options($return_config)
323 323
 		redirectexit('action=admin;area=helpdesk_options;sa=' . $_REQUEST['sa']);
324 324
 	}
325 325
 
326
+	createToken('admin-dbsc');
326 327
 	prepareDBSettingContext($config_vars);
327 328
 }
328 329
 
... ...
@@ -552,6 +552,10 @@ function template_shd_show_settings()
552 552
 			</div>
553 553
 			</div>';
554 554
 
555
+	if (isset($context['admin-dbsc_token']))
556
+		echo '
557
+		<input type="hidden" name="', $context['admin-dbsc_token_var'], '" value="', $context['admin-dbsc_token'], '" />';
558
+
555 559
 	echo '
556 560
 		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
557 561
 		</form>
558 562