@@ 378-382 (lines=5) @@ | ||
375 | global $SETTINGS; |
|
376 | ||
377 | // load PhpEncryption library |
|
378 | if (!isset($SETTINGS['cpassman_dir']) || empty($SETTINGS['cpassman_dir'])) { |
|
379 | $path = '../includes/libraries/Encryption/Encryption/'; |
|
380 | } else { |
|
381 | $path = $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'; |
|
382 | } |
|
383 | ||
384 | require_once $path.'Crypto.php'; |
|
385 | require_once $path.'Encoding.php'; |
@@ 804-808 (lines=5) @@ | ||
801 | </td><td> |
|
802 | <input type="hidden" id="roles_allowed_to_print" name="roles_allowed_to_print" value="', isset($SETTINGS['roles_allowed_to_print']) ? $SETTINGS['roles_allowed_to_print'] : '', '" /> |
|
803 | <select id="roles_allowed_to_print_select" name="roles_allowed_to_print_select" class="text ui-widget-content" multiple="multiple" onchange="refreshInput()">'; |
|
804 | if (!isset($SETTINGS['roles_allowed_to_print']) || empty($SETTINGS['roles_allowed_to_print'])) { |
|
805 | $arrRolesToPrint = array(); |
|
806 | } else { |
|
807 | $arrRolesToPrint = explode(";", $SETTINGS['roles_allowed_to_print']); |
|
808 | } |
|
809 | $roles = DB::query("SELECT id, title FROM ".prefix_table("roles_title")); |
|
810 | foreach ($roles as $role) { |
|
811 | echo '<option value="'.$role['id'].'"', in_array($role['id'], $arrRolesToPrint) ? ' selected="selected"' : '', '>'.addslashes($role['title']).'</option>'; |