⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
psa
/
admin
/
htdocs
/
spaw
/
js
/
common
/
View File Name :
engine.js
// Spaw Engine related data and operations function SpawEngine() { } // spaw directory SpawEngine.spaw_dir; SpawEngine.setSpawDir = function(spaw_dir) { SpawEngine.spaw_dir = spaw_dir; } SpawEngine.getSpawDir = function() { return (SpawEngine.spaw_dir); } // platform (php/asp.net) SpawEngine.platform; SpawEngine.setPlatform = function(platform) { SpawEngine.platform = platform; } SpawEngine.getPlatform = function() { return (SpawEngine.platform); } SpawEngine.addBrowserEventHandler = function(obj, evt, func) { if (document.attachEvent) { // ie obj.attachEvent("on"+evt, func); } else { obj.addEventListener(evt, func, false); } } // plugin registry SpawEngine.plugins = new Array(); // registers plugin object or class SpawEngine.registerPlugin = function(plugin_object) { SpawEngine.plugins.push(plugin_object); } // returns plugin class or object SpawEngine.getPlugin = function(name) { for (var i=0; i
(encwidth)) // resize textarea { // fix resizing //resobj.style.width = resobj.offsetWidth - w_delta + (document.getElementById(SpawEngine.resizingEditor.name + "_enclosure").offsetWidth - encwidth) + "px"; } SpawEngine.resizingEditor.lastMousePosX = event.clientX; } if (SpawEngine.resizingEditor.isVerticalResizingAllowed() && !event.shiftKey) // horizontal resizing only with shift pressed { //document.getElementById(SpawEngine.resizingEditor.name + "_enclosure").style.height = document.getElementById(SpawEngine.resizingEditor.name + "_enclosure").offsetHeight + event.clientY - SpawEngine.resizingEditor.lastMousePosY + "px"; var resobj; if (SpawEngine.resizingEditor.isInDesignMode()) resobj = SpawEngine.resizingEditor.getPageIframeObject(SpawEngine.resizingEditor.getActivePage().name); else resobj = SpawEngine.resizingEditor.getPageInput(SpawEngine.resizingEditor.getActivePage().name); resobj.style.height = resobj.offsetHeight + event.clientY - SpawEngine.resizingEditor.lastMousePosY + "px"; document.getElementById(SpawEngine.resizingEditor.name+'_enclosure').style.height = resobj.style.height; SpawEngine.resizingEditor.lastMousePosY = event.clientY; } } } SpawEngine.addBrowserEventHandler(document, "mousemove", SpawEngine.mouseMove); SpawEngine.mouseUp = function(event) { if (SpawEngine.resizingEditor != null) { SpawEngine.resizingEditor.isResizing = false; //SpawEngine.resizingEditor.showPage(SpawEngine.resizingEditor.getActivePage()); SpawEngine.resizingEditor.finalizeResizing(); SpawEngine.resizingEditor = null; } if (SpawEngine.movingToolbar != null) { SpawEngine.movingToolbar.isMouseMoving = false; SpawEngine.movingToolbar = null; } } SpawEngine.addBrowserEventHandler(document, "mouseup", SpawEngine.mouseUp); SpawEngine.resizingEditor; SpawEngine.movingToolbar; // context menu SpawEngine.active_context_menu; // opens standard dialog SpawEngine.openDialog = function(module, dialog, editor, arguments, querystring, callback, tbi, sender) { var posX = screen.availWidth/2 - 275; var posY = screen.availHeight/2 - 250; var durl = SpawEngine.spaw_dir + 'dialogs/dialog.' + SpawEngine.platform + '?module=' + module + '&dialog=' + dialog + '&theme=' + editor.theme.prefix + '&lang=' + editor.getLang() + '&charset=' + editor.getOutputCharset() + '&scid=' + editor.scid + "&" + querystring + editor.getRequestUriConfigValue(); var args = new Object(); args.editor = editor; args.arguments = arguments; args.callback = callback; args.tbi = tbi; args.sender = sender; var wnd = window.open(durl, module + '_' + dialog, 'status=no,resizable=yes,width=350,height=250,left='+posX+',top='+posY); window.dialogArguments = args; wnd.focus(); return wnd; }