PageRenderTime 480ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/htroot/manager/actions/mutate_role.dynamic.php

https://github.com/gunf/novo-isaak.local
PHP | 239 lines | 205 code | 32 blank | 2 comment | 14 complexity | 57e08d48098475d66209adaaf4978a0b MD5 | raw file
  1. <?php
  2. if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");
  3. switch((int) $_REQUEST['a']) {
  4. case 35:
  5. if(!$modx->hasPermission('edit_role')) {
  6. $e->setError(3);
  7. $e->dumpError();
  8. }
  9. break;
  10. case 38:
  11. if(!$modx->hasPermission('new_role')) {
  12. $e->setError(3);
  13. $e->dumpError();
  14. }
  15. break;
  16. default:
  17. $e->setError(3);
  18. $e->dumpError();
  19. }
  20. $role = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
  21. // check to see the role editor isn't locked
  22. $sql = "SELECT internalKey, username FROM $dbase.`".$table_prefix."active_users` WHERE $dbase.`".$table_prefix."active_users`.action=35 and $dbase.`".$table_prefix."active_users`.id=$role";
  23. $rs = mysql_query($sql);
  24. $limit = mysql_num_rows($rs);
  25. if($limit>1) {
  26. for ($i=0;$i<$limit;$i++) {
  27. $lock = mysql_fetch_assoc($rs);
  28. if($lock['internalKey']!=$modx->getLoginUserID()) {
  29. $msg = sprintf($_lang["lock_msg"],$lock['username'],"role");
  30. $e->setError(5, $msg);
  31. $e->dumpError();
  32. }
  33. }
  34. }
  35. // end check for lock
  36. if($_REQUEST['a']=='35') {
  37. $sql = "SELECT * FROM $dbase.`".$table_prefix."user_roles` WHERE $dbase.`".$table_prefix."user_roles`.id=".$role.";";
  38. $rs = mysql_query($sql);
  39. $limit = mysql_num_rows($rs);
  40. if($limit>1) {
  41. echo "More than one role returned!<p>";
  42. exit;
  43. }
  44. if($limit<1) {
  45. echo "No role returned!<p>";
  46. exit;
  47. }
  48. $roledata = mysql_fetch_assoc($rs);
  49. $_SESSION['itemname']=$roledata['name'];
  50. } else {
  51. $roledata = 0;
  52. $_SESSION['itemname']="New role";
  53. }
  54. ?>
  55. <script type="text/javascript">
  56. function changestate(element) {
  57. documentDirty=true;
  58. currval = eval(element).value;
  59. if(currval==1) {
  60. eval(element).value=0;
  61. } else {
  62. eval(element).value=1;
  63. }
  64. }
  65. function deletedocument() {
  66. if(confirm("<?php echo $_lang['confirm_delete_role']; ?>")==true) {
  67. document.location.href="index.php?id=" + document.userform.id.value + "&a=37";
  68. }
  69. }
  70. </script>
  71. <form action="index.php?a=36" method="post" name="userform">
  72. <input type="hidden" name="mode" value="<?php echo $_GET['a'] ?>">
  73. <input type="hidden" name="id" value="<?php echo $_GET['id'] ?>">
  74. <h1><?php echo $_lang['role_title']; ?></h1>
  75. <div id="actions">
  76. <ul class="actionButtons">
  77. <li><a href="#" onclick="documentDirty=false; document.userform.save.click();"><img src="<?php echo $_style["icons_save"] ?>" /> <?php echo $_lang['save'] ?></a></li>
  78. <li id="btn_del"><a href="#" onclick="deletedocument();"><img src="<?php echo $_style["icons_delete"] ?>" /> <?php echo $_lang['delete'] ?></a></li>
  79. <li><a href="#" onclick="documentDirty=false;document.location.href='index.php?a=86';"><img src="<?php echo $_style["icons_cancel"] ?>" /> <?php echo $_lang['cancel'] ?></a></li>
  80. </ul>
  81. <?php if($_GET['a']=='38') { ?>
  82. <script type="text/javascript">document.getElementById("btn_del").className='disabled';</script>
  83. <?php } ?>
  84. </div>
  85. <div class="sectionBody">
  86. <fieldset>
  87. <table border="0" cellspacing="0" cellpadding="4">
  88. <tr>
  89. <td><?php echo $_lang['role_name']; ?>:</td>
  90. <td>&nbsp;</td>
  91. <td><input name="name" type="text" maxlength=50 value="<?php echo $roledata['name'] ; ?>" onchange="documentDirty=true;"></td>
  92. </tr>
  93. <tr>
  94. <td><?php echo $_lang['resource_description']; ?>:</td>
  95. <td>&nbsp;</td>
  96. <td><input name="description" type="text" maxlength=255 value="<?php echo $roledata['description'] ; ?>" size="60" onchange="documentDirty=true;"></td>
  97. </tr>
  98. </table>
  99. </fieldset>
  100. <fieldset>
  101. <h3><?php echo $_lang['page_data_general']; ?></h3>
  102. <input name="framescheck" type="checkbox" onClick="changestate(document.userform.frames)" checked disabled><input type="hidden" name="frames" value="1"> <span style="cursor:hand"><?php echo $_lang['role_frames']; ?></span><br />
  103. <input name="homecheck" type="checkbox" onClick="changestate(document.userform.home)" checked disabled><input type="hidden" name="home" value="1"> <span style="cursor:hand"><?php echo $_lang['role_home']; ?></span><br />
  104. <input name="messagescheck" type="checkbox" onClick="changestate(document.userform.messages)" <?php echo $roledata['messages']==1 ? "checked" : "" ; ?>><input type="hidden" name="messages" value="<?php echo $roledata['messages']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.messagescheck.click()"><?php echo $_lang['role_messages']; ?></span><br />
  105. <input name="logoutcheck" type="checkbox" onClick="changestate(document.userform.logout)" checked disabled><input type="hidden" name="logout" value="1"> <span style="cursor:hand"><?php echo $_lang['role_logout']; ?></span><br />
  106. <input name="helpcheck" type="checkbox" onClick="changestate(document.userform.help)" checked><input type="hidden" name="help" value="1"> <span style="cursor:hand"><?php echo $_lang['role_help']; ?></span><br />
  107. <input name="action_okcheck" type="checkbox" onClick="changestate(document.userform.action_ok)" checked disabled><input type="hidden" name="action_ok" value="1"> <span style="cursor:hand"><?php echo $_lang['role_actionok']; ?></span><br />
  108. <input name="error_dialogcheck" type="checkbox" onClick="changestate(document.userform.error_dialog)" checked disabled><input type="hidden" name="error_dialog" value="1"> <span style="cursor:hand"><?php echo $_lang['role_errors']; ?></span><br />
  109. <input name="aboutcheck" type="checkbox" onClick="changestate(document.userform.about)" checked disabled><input type="hidden" name="about" value="1"> <span style="cursor:hand"><?php echo $_lang['role_about']; ?></span><br />
  110. <input name="creditscheck" type="checkbox" onClick="changestate(document.userform.credits)" checked disabled><input type="hidden" name="credits" value="1"> <span style="cursor:hand"><?php echo $_lang['role_credits']; ?></span><br />
  111. <input name="change_passwordcheck" type="checkbox" onClick="changestate(document.userform.change_password)" <?php echo $roledata['change_password']==1 ? "checked" : "" ; ?>><input type="hidden" name="change_password" value="<?php echo $roledata['change_password']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.change_passwordcheck.click()"><?php echo $_lang['role_change_password']; ?></span><br />
  112. <input name="save_passwordcheck" type="checkbox" onClick="changestate(document.userform.save_password)" <?php echo $roledata['save_password']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_password" value="<?php echo $roledata['save_password']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_passwordcheck.click()"><?php echo $_lang['role_save_password']; ?></span><br />
  113. </fieldset>
  114. <fieldset>
  115. <h3><?php echo $_lang['role_content_management']; ?></h3>
  116. <input name="view_documentcheck" type="checkbox" onClick="changestate(document.userform.view_document)" checked disabled><input type="hidden" name="view_document" value="1"> <span style="cursor:hand"><?php echo $_lang['role_view_docdata']; ?></span><br />
  117. <input name="new_documentcheck" type="checkbox" onClick="changestate(document.userform.new_document)" <?php echo $roledata['new_document']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_document" value="<?php echo $roledata['new_document']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_documentcheck.click()"><?php echo $_lang['role_create_doc']; ?></span><br />
  118. <input name="edit_documentcheck" type="checkbox" onClick="changestate(document.userform.edit_document)" <?php echo $roledata['edit_document']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_document" value="<?php echo $roledata['edit_document']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_documentcheck.click()"><?php echo $_lang['role_edit_doc']; ?></span><br />
  119. <input name="save_documentcheck" type="checkbox" onClick="changestate(document.userform.save_document)" <?php echo $roledata['save_document']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_document" value="<?php echo $roledata['save_document']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_documentcheck.click()"><?php echo $_lang['role_save_doc']; ?></span><br />
  120. <input name="publish_documentcheck" type="checkbox" onClick="changestate(document.userform.publish_document)" <?php echo $roledata['publish_document']==1 ? "checked" : "" ; ?>><input type="hidden" name="publish_document" value="<?php echo $roledata['publish_document']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.publish_documentcheck.click()"><?php echo $_lang['role_publish_doc']; ?></span><br />
  121. <input name="delete_documentcheck" type="checkbox" onClick="changestate(document.userform.delete_document)" <?php echo $roledata['delete_document']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_document" value="<?php echo $roledata['delete_document']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_documentcheck.click()"><?php echo $_lang['role_delete_doc']; ?></span><br />
  122. <input name="empty_trashcheck" type="checkbox" onClick="changestate(document.userform.empty_trash)" <?php echo $roledata['empty_trash']==1 ? "checked" : "" ; ?>><input type="hidden" name="empty_trash" value="<?php echo $roledata['empty_trash']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.empty_trashcheck.click()"><?php echo $_lang['role_empty_trash']; ?></span><br />
  123. <input name="edit_doc_metatagscheck" type="checkbox" onClick="changestate(document.userform.edit_doc_metatags)" <?php echo $roledata['edit_doc_metatags']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_doc_metatags" value="<?php echo $roledata['edit_doc_metatags']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_doc_metatagscheck.click()"><?php echo $_lang['role_edit_doc_metatags']; ?></span><br />
  124. <input name="empty_cachecheck" type="checkbox" onClick="changestate(document.userform.empty_cache)" checked disabled><input type="hidden" name="empty_cache" value="1"> <span style="cursor:hand"><?php echo $_lang['role_cache_refresh']; ?></span><br />
  125. <input name="view_unpublishedcheck" type="checkbox" onClick="changestate(document.userform.view_unpublished)" <?php echo $roledata['view_unpublished']==1 ? "checked" : "" ; ?>><input type="hidden" name="view_unpublished" value="<?php echo $roledata['view_unpublished']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.view_unpublishedcheck.click()"><?php echo $_lang['role_view_unpublished']; ?></span><br />
  126. </fieldset>
  127. <fieldset>
  128. <h3><?php echo $_lang['role_template_management']; ?></h3>
  129. <input name="new_templatecheck" type="checkbox" onClick="changestate(document.userform.new_template)" <?php echo $roledata['new_template']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_template" value="<?php echo $roledata['new_template']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_templatecheck.click()"><?php echo $_lang['role_create_template']; ?></span><br />
  130. <input name="edit_templatecheck" type="checkbox" onClick="changestate(document.userform.edit_template)" <?php echo $roledata['edit_template']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_template" value="<?php echo $roledata['edit_template']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_templatecheck.click()"><?php echo $_lang['role_edit_template']; ?></span><br />
  131. <input name="save_templatecheck" type="checkbox" onClick="changestate(document.userform.save_template)" <?php echo $roledata['save_template']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_template" value="<?php echo $roledata['save_template']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_templatecheck.click()"><?php echo $_lang['role_save_template']; ?></span><br />
  132. <input name="delete_templatecheck" type="checkbox" onClick="changestate(document.userform.delete_template)" <?php echo $roledata['delete_template']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_template" value="<?php echo $roledata['delete_template']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_templatecheck.click()"><?php echo $_lang['role_delete_template']; ?></span><br />
  133. </fieldset>
  134. <fieldset>
  135. <h3><?php echo $_lang['role_snippet_management']; ?></h3>
  136. <input name="new_snippetcheck" type="checkbox" onClick="changestate(document.userform.new_snippet)" <?php echo $roledata['new_snippet']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_snippet" value="<?php echo $roledata['new_snippet']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_snippetcheck.click()"><?php echo $_lang['role_create_snippet']; ?></span><br />
  137. <input name="edit_snippetcheck" type="checkbox" onClick="changestate(document.userform.edit_snippet)" <?php echo $roledata['edit_snippet']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_snippet" value="<?php echo $roledata['edit_snippet']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_snippetcheck.click()"><?php echo $_lang['role_edit_snippet']; ?></span><br />
  138. <input name="save_snippetcheck" type="checkbox" onClick="changestate(document.userform.save_snippet)" <?php echo $roledata['save_snippet']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_snippet" value="<?php echo $roledata['save_snippet']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_snippetcheck.click()"><?php echo $_lang['role_save_snippet']; ?></span><br />
  139. <input name="delete_snippetcheck" type="checkbox" onClick="changestate(document.userform.delete_snippet)" <?php echo $roledata['delete_snippet']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_snippet" value="<?php echo $roledata['delete_snippet']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_snippetcheck.click()"><?php echo $_lang['role_delete_snippet']; ?></span><br />
  140. </fieldset>
  141. <fieldset>
  142. <h3><?php echo $_lang['role_chunk_management']; ?></h3>
  143. <input name="new_chunkcheck" type="checkbox" onClick="changestate(document.userform.new_chunk)" <?php echo $roledata['new_chunk']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_chunk" value="<?php echo $roledata['new_chunk']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_chunkcheck.click()"><?php echo $_lang['role_create_chunk']; ?></span><br />
  144. <input name="edit_chunkcheck" type="checkbox" onClick="changestate(document.userform.edit_chunk)" <?php echo $roledata['edit_chunk']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_chunk" value="<?php echo $roledata['edit_chunk']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_chunkcheck.click()"><?php echo $_lang['role_edit_chunk']; ?></span><br />
  145. <input name="save_chunkcheck" type="checkbox" onClick="changestate(document.userform.save_chunk)" <?php echo $roledata['save_chunk']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_chunk" value="<?php echo $roledata['save_chunk']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_chunkcheck.click()"><?php echo $_lang['role_save_chunk']; ?></span><br />
  146. <input name="delete_chunkcheck" type="checkbox" onClick="changestate(document.userform.delete_chunk)" <?php echo $roledata['delete_chunk']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_chunk" value="<?php echo $roledata['delete_chunk']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_chunkcheck.click()"><?php echo $_lang['role_delete_chunk']; ?></span><br />
  147. </fieldset>
  148. <fieldset>
  149. <h3><?php echo $_lang['role_plugin_management']; ?></h3>
  150. <input name="new_plugincheck" type="checkbox" onClick="changestate(document.userform.new_plugin)" <?php echo $roledata['new_plugin']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_plugin" value="<?php echo $roledata['new_plugin']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_plugincheck.click()"><?php echo $_lang['role_create_plugin']; ?></span><br />
  151. <input name="edit_plugincheck" type="checkbox" onClick="changestate(document.userform.edit_plugin)" <?php echo $roledata['edit_plugin']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_plugin" value="<?php echo $roledata['edit_plugin']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_plugincheck.click()"><?php echo $_lang['role_edit_plugin']; ?></span><br />
  152. <input name="save_plugincheck" type="checkbox" onClick="changestate(document.userform.save_plugin)" <?php echo $roledata['save_plugin']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_plugin" value="<?php echo $roledata['save_plugin']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_plugincheck.click()"><?php echo $_lang['role_save_plugin']; ?></span><br />
  153. <input name="delete_plugincheck" type="checkbox" onClick="changestate(document.userform.delete_plugin)" <?php echo $roledata['delete_plugin']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_plugin" value="<?php echo $roledata['delete_plugin']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_plugincheck.click()"><?php echo $_lang['role_delete_plugin']; ?></span><br />
  154. </fieldset>
  155. <fieldset>
  156. <h3><?php echo $_lang['role_module_management']; ?></h3>
  157. <input name="new_modulecheck" type="checkbox" onClick="changestate(document.userform.new_module)" <?php echo $roledata['new_module']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_module" value="<?php echo $roledata['new_module']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_modulecheck.click()"><?php echo $_lang['role_new_module']; ?></span><br />
  158. <input name="edit_modulecheck" type="checkbox" onClick="changestate(document.userform.edit_module)" <?php echo $roledata['edit_module']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_module" value="<?php echo $roledata['edit_module']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_modulecheck.click()"><?php echo $_lang['role_edit_module']; ?></span><br />
  159. <input name="save_modulecheck" type="checkbox" onClick="changestate(document.userform.save_module)" <?php echo $roledata['save_module']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_module" value="<?php echo $roledata['save_module']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_modulecheck.click()"><?php echo $_lang['role_save_module']; ?></span><br />
  160. <input name="delete_modulecheck" type="checkbox" onClick="changestate(document.userform.delete_module)" <?php echo $roledata['delete_module']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_module" value="<?php echo $roledata['delete_module']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_modulecheck.click()"><?php echo $_lang['role_delete_module']; ?></span><br />
  161. <input name="exec_modulecheck" type="checkbox" onClick="changestate(document.userform.exec_module)" <?php echo $roledata['exec_module']==1 ? "checked" : "" ; ?>><input type="hidden" name="exec_module" value="<?php echo $roledata['exec_module']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.exec_modulecheck.click()"><?php echo $_lang['role_run_module']; ?></span><br />
  162. </fieldset>
  163. <fieldset>
  164. <h3><?php echo $_lang['role_eventlog_management']; ?></h3>
  165. <input name="view_eventlogcheck" type="checkbox" onClick="changestate(document.userform.view_eventlog)" <?php echo $roledata['view_eventlog']==1 ? "checked" : "" ; ?>><input type="hidden" name="view_eventlog" value="<?php echo $roledata['view_eventlog']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.view_eventlogcheck.click()"><?php echo $_lang['role_view_eventlog']; ?></span><br />
  166. <input name="delete_eventlogcheck" type="checkbox" onClick="changestate(document.userform.delete_eventlog)" <?php echo $roledata['delete_eventlog']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_eventlog" value="<?php echo $roledata['delete_eventlog']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_eventlogcheck.click()"><?php echo $_lang['role_delete_eventlog']; ?></span><br />
  167. </fieldset>
  168. <fieldset>
  169. <h3><?php echo $_lang['role_user_management']; ?></h3>
  170. <input name="new_usercheck" type="checkbox" onClick="changestate(document.userform.new_user)" <?php echo $roledata['new_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_user" value="<?php echo $roledata['new_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_usercheck.click()"><?php echo $_lang['role_new_user']; ?></span><br />
  171. <input name="edit_usercheck" type="checkbox" onClick="changestate(document.userform.edit_user)" <?php echo $roledata['edit_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_user" value="<?php echo $roledata['edit_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_usercheck.click()"><?php echo $_lang['role_edit_user']; ?></span><br />
  172. <input name="save_usercheck" type="checkbox" onClick="changestate(document.userform.save_user)" <?php echo $roledata['save_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_user" value="<?php echo $roledata['save_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_usercheck.click()"><?php echo $_lang['role_save_user']; ?></span><br />
  173. <input name="delete_usercheck" type="checkbox" onClick="changestate(document.userform.delete_user)" <?php echo $roledata['delete_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_user" value="<?php echo $roledata['delete_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_usercheck.click()"><?php echo $_lang['role_delete_user']; ?></span><br />
  174. </fieldset>
  175. <fieldset>
  176. <h3><?php echo $_lang['role_web_user_management']; ?></h3>
  177. <input name="new_web_usercheck" type="checkbox" onClick="changestate(document.userform.new_web_user)" <?php echo $roledata['new_web_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_web_user" value="<?php echo $roledata['new_web_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_web_usercheck.click()"><?php echo $_lang['role_new_web_user']; ?></span><br />
  178. <input name="edit_web_usercheck" type="checkbox" onClick="changestate(document.userform.edit_web_user)" <?php echo $roledata['edit_web_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_web_user" value="<?php echo $roledata['edit_web_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_web_usercheck.click()"><?php echo $_lang['role_edit_web_user']; ?></span><br />
  179. <input name="save_web_usercheck" type="checkbox" onClick="changestate(document.userform.save_web_user)" <?php echo $roledata['save_web_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_web_user" value="<?php echo $roledata['save_web_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_web_usercheck.click()"><?php echo $_lang['role_save_web_user']; ?></span><br />
  180. <input name="delete_web_usercheck" type="checkbox" onClick="changestate(document.userform.delete_web_user)" <?php echo $roledata['delete_web_user']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_web_user" value="<?php echo $roledata['delete_web_user']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_web_usercheck.click()"><?php echo $_lang['role_delete_web_user']; ?></span><br />
  181. </fieldset>
  182. <fieldset>
  183. <h3><?php echo $_lang['role_udperms']; ?></h3>
  184. <input name="access_permissionscheck" type="checkbox" onClick="changestate(document.userform.access_permissions)" <?php echo $roledata['access_permissions']==1 ? "checked" : "" ; ?>><input type="hidden" name="access_permissions" value="<?php echo $roledata['access_permissions']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.access_permissionscheck.click()"><?php echo $_lang['role_access_persmissions']; ?></span><br />
  185. <input name="web_access_permissionscheck" type="checkbox" onClick="changestate(document.userform.web_access_permissions)" <?php echo $roledata['web_access_permissions']==1 ? "checked" : "" ; ?>><input type="hidden" name="web_access_permissions" value="<?php echo $roledata['web_access_permissions']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.web_access_permissionscheck.click()"><?php echo $_lang['role_web_access_persmissions']; ?></span><br />
  186. </fieldset>
  187. <fieldset>
  188. <h3><?php echo $_lang['role_role_management']; ?></h3>
  189. <input name="new_rolecheck" type="checkbox" onClick="changestate(document.userform.new_role)" <?php echo $roledata['new_role']==1 ? "checked" : "" ; ?>><input type="hidden" name="new_role" value="<?php echo $roledata['new_role']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.new_rolecheck.click()"><?php echo $_lang['role_new_role']; ?></span><br />
  190. <input name="edit_rolecheck" type="checkbox" onClick="changestate(document.userform.edit_role)" <?php echo $roledata['edit_role']==1 ? "checked" : "" ; ?>><input type="hidden" name="edit_role" value="<?php echo $roledata['edit_role']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.edit_rolecheck.click()"><?php echo $_lang['role_edit_role']; ?></span><br />
  191. <input name="save_rolecheck" type="checkbox" onClick="changestate(document.userform.save_role)" <?php echo $roledata['save_role']==1 ? "checked" : "" ; ?>><input type="hidden" name="save_role" value="<?php echo $roledata['save_role']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.save_rolecheck.click()"><?php echo $_lang['role_save_role']; ?></span><br />
  192. <input name="delete_rolecheck" type="checkbox" onClick="changestate(document.userform.delete_role)" <?php echo $roledata['delete_role']==1 ? "checked" : "" ; ?>><input type="hidden" name="delete_role" value="<?php echo $roledata['delete_role']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.delete_rolecheck.click()"><?php echo $_lang['role_delete_role']; ?></span><br />
  193. </fieldset>
  194. <fieldset>
  195. <h3><?php echo $_lang['role_config_management']; ?></h3>
  196. <input name="logscheck" type="checkbox" onClick="changestate(document.userform.logs)" <?php echo $roledata['logs']==1 ? "checked" : "" ; ?>><input type="hidden" name="logs" value="<?php echo $roledata['logs']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.logscheck.click()"><?php echo $_lang['role_view_logs']; ?></span><br />
  197. <input name="settingscheck" type="checkbox" onClick="changestate(document.userform.settings)" <?php echo $roledata['settings']==1 ? "checked" : "" ; ?>><input type="hidden" name="settings" value="<?php echo $roledata['settings']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.settingscheck.click()"><?php echo $_lang['role_edit_settings']; ?></span><br />
  198. <input name="file_managercheck" type="checkbox" onClick="changestate(document.userform.file_manager)" <?php echo $roledata['file_manager']==1 ? "checked" : "" ; ?>><input type="hidden" name="file_manager" value="<?php echo $roledata['file_manager']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.file_managercheck.click()"><?php echo $_lang['role_file_manager']; ?></span><br />
  199. <input name="bk_managercheck" type="checkbox" onClick="changestate(document.userform.bk_manager)" <?php echo $roledata['bk_manager']==1 ? "checked" : "" ; ?>><input type="hidden" name="bk_manager" value="<?php echo $roledata['bk_manager']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.bk_managercheck.click()"><?php echo $_lang['role_bk_manager']; ?></span><br />
  200. <input name="manage_metatagscheck" type="checkbox" onClick="changestate(document.userform.manage_metatags)" <?php echo $roledata['manage_metatags']==1 ? "checked" : "" ; ?>><input type="hidden" name="manage_metatags" value="<?php echo $roledata['manage_metatags']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.manage_metatagscheck.click()"><?php echo $_lang['role_manage_metatags']; ?></span><br />
  201. <input name="importcheck" type="checkbox" onClick="changestate(document.userform.import_static)" <?php echo $roledata['import_static']==1 ? "checked" : "" ; ?>><input type="hidden" name="import_static" value="<?php echo $roledata['import_static']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.importcheck.click()"><?php echo $_lang['role_import_static']; ?></span><br />
  202. <input name="exportcheck" type="checkbox" onClick="changestate(document.userform.export_static)" <?php echo $roledata['export_static']==1 ? "checked" : "" ; ?>><input type="hidden" name="export_static" value="<?php echo $roledata['export_static']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.exportcheck.click()"><?php echo $_lang['role_export_static']; ?></span><br />
  203. <input name="removelockscheck" type="checkbox" onClick="changestate(document.userform.remove_locks)" <?php echo $roledata['remove_locks']==1 ? "checked" : "" ; ?>><input type="hidden" name="remove_locks" value="<?php echo $roledata['remove_locks']==1 ? 1 : 0 ; ?>"> <span style="cursor:hand" onClick="document.userform.remove_lockscheck.click()"><?php echo $_lang['role_remove_locks']; ?></span><br />
  204. </fieldset>
  205. <input type="submit" name="save" style="display:none">
  206. </form>
  207. </div>