/htroot/manager/actions/mutate_role.dynamic.php
PHP | 239 lines | 205 code | 32 blank | 2 comment | 14 complexity | 57e08d48098475d66209adaaf4978a0b MD5 | raw file
- <?php
- 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.");
- switch((int) $_REQUEST['a']) {
- case 35:
- if(!$modx->hasPermission('edit_role')) {
- $e->setError(3);
- $e->dumpError();
- }
- break;
- case 38:
- if(!$modx->hasPermission('new_role')) {
- $e->setError(3);
- $e->dumpError();
- }
- break;
- default:
- $e->setError(3);
- $e->dumpError();
- }
- $role = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
- // check to see the role editor isn't locked
- $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";
- $rs = mysql_query($sql);
- $limit = mysql_num_rows($rs);
- if($limit>1) {
- for ($i=0;$i<$limit;$i++) {
- $lock = mysql_fetch_assoc($rs);
- if($lock['internalKey']!=$modx->getLoginUserID()) {
- $msg = sprintf($_lang["lock_msg"],$lock['username'],"role");
- $e->setError(5, $msg);
- $e->dumpError();
- }
- }
- }
- // end check for lock
- if($_REQUEST['a']=='35') {
- $sql = "SELECT * FROM $dbase.`".$table_prefix."user_roles` WHERE $dbase.`".$table_prefix."user_roles`.id=".$role.";";
- $rs = mysql_query($sql);
- $limit = mysql_num_rows($rs);
- if($limit>1) {
- echo "More than one role returned!<p>";
- exit;
- }
- if($limit<1) {
- echo "No role returned!<p>";
- exit;
- }
- $roledata = mysql_fetch_assoc($rs);
- $_SESSION['itemname']=$roledata['name'];
- } else {
- $roledata = 0;
- $_SESSION['itemname']="New role";
- }
- ?>
- <script type="text/javascript">
- function changestate(element) {
- documentDirty=true;
- currval = eval(element).value;
- if(currval==1) {
- eval(element).value=0;
- } else {
- eval(element).value=1;
- }
- }
- function deletedocument() {
- if(confirm("<?php echo $_lang['confirm_delete_role']; ?>")==true) {
- document.location.href="index.php?id=" + document.userform.id.value + "&a=37";
- }
- }
- </script>
- <form action="index.php?a=36" method="post" name="userform">
- <input type="hidden" name="mode" value="<?php echo $_GET['a'] ?>">
- <input type="hidden" name="id" value="<?php echo $_GET['id'] ?>">
- <h1><?php echo $_lang['role_title']; ?></h1>
- <div id="actions">
- <ul class="actionButtons">
- <li><a href="#" onclick="documentDirty=false; document.userform.save.click();"><img src="<?php echo $_style["icons_save"] ?>" /> <?php echo $_lang['save'] ?></a></li>
- <li id="btn_del"><a href="#" onclick="deletedocument();"><img src="<?php echo $_style["icons_delete"] ?>" /> <?php echo $_lang['delete'] ?></a></li>
- <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>
- </ul>
- <?php if($_GET['a']=='38') { ?>
- <script type="text/javascript">document.getElementById("btn_del").className='disabled';</script>
- <?php } ?>
- </div>
- <div class="sectionBody">
- <fieldset>
- <table border="0" cellspacing="0" cellpadding="4">
- <tr>
- <td><?php echo $_lang['role_name']; ?>:</td>
- <td> </td>
- <td><input name="name" type="text" maxlength=50 value="<?php echo $roledata['name'] ; ?>" onchange="documentDirty=true;"></td>
- </tr>
- <tr>
- <td><?php echo $_lang['resource_description']; ?>:</td>
- <td> </td>
- <td><input name="description" type="text" maxlength=255 value="<?php echo $roledata['description'] ; ?>" size="60" onchange="documentDirty=true;"></td>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['page_data_general']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_content_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_template_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_snippet_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_chunk_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_plugin_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_module_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_eventlog_management']; ?></h3>
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_user_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_web_user_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_udperms']; ?></h3>
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_role_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <fieldset>
- <h3><?php echo $_lang['role_config_management']; ?></h3>
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- <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 />
- </fieldset>
- <input type="submit" name="save" style="display:none">
- </form>
- </div>