<?php if ($mode == 'php') { ?> editor.getSession().setMode({path:'ace/mode/php', inline:true}); <?php } ?> document.getElementById('editor').style.fontSize='<?php echo $setting_size; ?> '; focus_editor(); //keyboard shortcut to execute command <?php key_press('ctrl+enter', 'down', 'window', null, null, "\$('form#frm').submit();", false); ?> //remove certain keyboard shortcuts editor.commands.bindKey("Ctrl-T", null); //disable transpose letters - prefer new browser tab editor.commands.bindKey("Ctrl-F", null); //disable find - control broken with bootstrap editor.commands.bindKey("Ctrl-H", null); //disable replace - control broken with bootstrap </script> <?php //show the result if (count($_POST) > 0) { if ($cmd != '') { switch ($handler) { case 'shell': if (permission_exists('exec_command')) {
if (permission_exists('voicemail_delete')) { echo "<a href='javascript:void(0);' onclick=\"if (confirm('" . $text['confirm-delete'] . "')) { document.forms.frm.submit(); }\" alt='" . $text['button-delete'] . "'>" . $v_link_label_delete . "</a>"; } echo "\t</td>\n"; echo "</tr>\n"; } echo "</table>"; echo "</form>"; if (strlen($paging_controls) > 0) { echo "<center>" . $paging_controls . "</center>\n"; } echo "<br /><br />" . ($num_rows == 0 ? "<br /><br />" : null); // check or uncheck all checkboxes if (sizeof($vm_ids) > 0) { echo "<script>\n"; echo "\tfunction check(what) {\n"; echo "\t\tdocument.getElementById('chk_all').checked = (what == 'all') ? true : false;\n"; foreach ($vm_ids as $vm_id) { echo "\t\tdocument.getElementById('" . $vm_id . "').checked = (what == 'all') ? true : false;\n"; } echo "\t}\n"; echo "</script>\n"; } if ($num_rows > 0) { // check all checkboxes key_press('ctrl+a', 'down', 'document', null, null, "check('all');", true); // delete checked key_press('delete', 'up', 'document', array('#search'), $text['confirm-delete'], 'document.forms.frm.submit();', true); } //include the footer require_once "resources/footer.php";
function hide_domains() { $('#domains_visible').val(0); $(document).ready(function() { $("#domains_block").animate({marginRight: '-=300'}, 400, function() { $("#domain_filter").val(''); domain_search($("#domain_filter").val()); $(".navbar").css('margin-right','0'); //restore navbar margin $("#domains_container").css('right','0'); //domain container right position $("#domains_container").hide(); $("body").css({'margin-right':'0','overflow':'auto'}); //enable body scroll bars }); }); } <?php key_press('escape', 'up', 'document', null, null, "if (\$('#domains_visible').val() == 0) { show_domains(); } else { hide_domains(); }", false); } ?> //link table rows (except the last - the list_control_icons cell) on a table with a class of 'tr_hover', according to the href attribute of the <tr> tag $('.tr_hover tr').each(function(i,e) { $(e).children('td:not(.list_control_icon,.list_control_icons,.tr_link_void)').click(function() { var href = $(this).closest("tr").attr("href"); if (href) { window.location = href; } }); }); //apply the auto-size jquery script to all text inputs $("input[type=text].txt,input[type=number].txt,input[type=password].txt,input[type=text].formfld,input[type=number].formfld,input[type=password].formfld").not('.datetimepicker,.datepicker').autosizeInput(); //apply bootstrap-datetime plugin
highlightGutterLine: false, useSoftTabs: false }); document.getElementById('editor').style.fontSize='<?php echo $setting_size; ?> '; focus_editor(); //prevent form submit with enter key on file path input <?php key_press('enter', 'down', '#current_file', null, null, 'return false;', false); ?> //save file <?php key_press('ctrl+s', 'down', 'window', null, null, "\$('form#frm_edit').submit(); return false;", false); ?> //open file manager/clip library pane <?php key_press('ctrl+q', 'down', 'window', null, null, 'toggle_sidebar(); focus_editor(); return false;', false); ?> //remove certain keyboard shortcuts editor.commands.bindKey("Ctrl-T", null); //new browser tab </script> </body> </html>
echo "\telse\t{\n"; echo " \t\tnode.nextSibling.style.display = 'none';\n"; echo "\t}\n"; echo "\n"; echo "}\n"; echo "</script>"; // keyboard shortcut bindings echo "<script language='JavaScript' type='text/javascript' src='" . PROJECT_PATH . "/resources/jquery/jquery-1.11.1.js'></script>\n"; //save file key_press('ctrl+s', 'down', 'window', null, null, "if (parent.document.getElementById('frm_edit')) { parent.\$('form#frm_edit').submit(); return false; }", true); //open file manager/clip library pane key_press('ctrl+q', 'down', 'window', null, null, "if (parent.document.getElementById('sidebar')) { parent.toggle_sidebar(); parent.focus_editor(); return false; }", true); //prevent backspace (browser history back) key_press('backspace', 'down', 'window', null, null, 'return false;', true); //keyboard shortcut to execute command (when included on command page) key_press('ctrl+enter', 'down', 'window', null, null, "if (!parent.document.getElementById('sidebar')) { parent.\$('form#frm').submit(); return false; }", true); echo "</head>\n"; echo "<body style='margin: 0; padding: 5px;' onfocus='blur();'>\n"; echo "<div style='text-align: left; padding-top: 3px;'>\n"; echo "<div style='padding-bottom: 3px;'><a href='javascript:void(0);' onclick=\"window.open('clipoptions.php?id=" . $row[id] . "','clipwin','left=20,top=20,width=310,height=350,toolbar=0,resizable=0');\" style='text-decoration:none; cursor: pointer;' title=\"" . $text['label-clip-library'] . "\"><img src='" . PROJECT_PATH . "resources/images/icon_gear.png' border='0' align='absmiddle' style='margin: 0px 2px 4px -1px;'>" . $text['label-clip-library'] . "</a></div>\n"; $sql = "select * from v_clips order by clip_folder asc, clip_name asc"; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); $result_count = count($result); if ($result_count > 0) { $master_array = array(); foreach ($result as $row) { $clip_folder = rtrim($row['clip_folder'], '/'); $clip_folder .= '/' . $row['clip_name']; $parts = explode('/', $clip_folder);
echo "\t}\n"; echo "\t// Collapse the branch if it IS visible\n"; echo "\telse {\n"; echo " \tnode.nextSibling.style.display = 'none';\n"; echo "\t}\n"; echo "\n"; echo "}\n"; echo "</SCRIPT>"; // keyboard shortcut bindings echo "<script language='JavaScript' type='text/javascript' src='" . PROJECT_PATH . "/resources/jquery/jquery-1.11.1.js'></script>\n"; //save file key_press('ctrl+s', 'down', 'window', null, null, "parent.\$('form#frm_edit').submit(); return false;", true); //open file manager/clip library pane key_press('ctrl+q', 'down', 'window', null, null, 'parent.toggle_sidebar(); parent.focus_editor(); return false;', true); //prevent backspace (browser history back) key_press('backspace', 'down', 'window', null, null, 'return false;', true); echo "</head>\n"; echo "<body style='margin: 0px; padding: 5px;'>\n"; echo "<div style='text-align: left; padding-top: 3px; padding-bottom: 3px;'><a href='javascript:void(0);' onclick=\"window.open('fileoptions.php?folder=" . urlencode($_SERVER["DOCUMENT_ROOT"]) . "','filewin','left=20,top=20,width=310,height=350,toolbar=0,resizable=0');\" style='text-decoration:none;' title='" . $text['label-files'] . "'><img src='resources/images/icon_gear.png' border='0' align='absmiddle' style='margin: 0px 2px 4px -1px;'>" . $text['label-files'] . "</a></div>\n"; echo "<div style='text-align: left; margin-left: -16px;'>\n"; //start the session ini_set("session.cookie_httponly", True); session_start(); switch ($_SESSION["app"]["edit"]["dir"]) { case 'scripts': echo recur_dir($_SESSION['switch']['scripts']['dir']); break; case 'php': echo recur_dir($_SERVER["DOCUMENT_ROOT"] . '/' . PROJECT_PATH); break; case 'grammer':