One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
sam
/
public_html
/
web
/
components
/
com_jce
/
Edit File:
jce.php
<?php /* * JCE 1.1.0 for Joomla 1.0.x * @version $Id: jce.php, v 1.1.0 2006/10/31 * @package JCE 1.1.0 * @copyright (C) 2005 - 2006 Ryan Demmer * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * Oficial website: http://www.cellardoor.za.net */ defined('_VALID_MOS') or die('Restricted Access.'); $task = mosGetParam( $_REQUEST, 'task' ); define( 'DS', DIRECTORY_SEPARATOR ); function cleanInput( $string ){ return preg_replace( '/[^a-zA-z._]/i','', $string ); } switch ( $task ) { case 'popup': showPopup(); break; case 'plugin': $query = "SELECT plugin" . "\n FROM #__jce_plugins" . "\n WHERE published = 1 AND type = 'plugin'" ; $database->setQuery( $query ); $plugins = $database->loadResultArray(); $plugin = cleanInput( mosGetParam( $_REQUEST, 'plugin' ) ); if( in_array( $plugin, $plugins ) ){ $file = cleanInput( basename( mosGetParam( $_REQUEST, 'file' ) ) ); $path = $mainframe->getCfg('absolute_path') . '/mambots/editors/jce/jscripts/tiny_mce/plugins/' . $plugin; if( is_dir( $path ) && file_exists( $path . '/' . $file ) ){ include_once $path . '/' . $file; }else{ die('File not found!'); } }else{ die('Plugin not found!'); } break; case 'help': $file = cleanInput( basename( mosGetParam( $_REQUEST, 'file' ) ) ); $path = $mainframe->getCfg('absolute_path') . '/mambots/editors/jce/jscripts/tiny_mce/libraries/' . $file; if( file_exists( $path ) ){ include_once $path; }else{ die('File not found!'); } break; } function getInput( $item, $def=null ){ return htmlspecialchars( mosGetParam( $_REQUEST, $item, $def ) ); } function showPopup() { global $mainframe, $template; $img = getInput( 'img' ); $title = str_replace( '_', ' ', getInput( 'title', 'Image' ) ); $mode = getInput( 'mode', '0' ); $right_click = getInput( 'click', '0' ); $print = getInput( 'print', '0' ); $w = getInput( 'w' ); $h = getInput( 'h' ); if( strpos( $mainframe->getCfg('live_site'), $img ) === false ) $img = $mainframe->getCfg('live_site').'/'.$img; ?> <style type="text/css"> body{ margin: 0px; padding: 0px; } </style> <script type="text/javascript"> var w = '<?php $w;?>'; var h = '<?php echo $h;?>'; var x = (screen.width-parseInt(w))/2; var y = (screen.height-parseInt(h))/2; window.moveTo(x, y); </script> <?php if($right_click){?> <script type="text/javascript"> function clickIE4(){ if (event.button==2){ return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false"); </script> <?php } switch( $mode ){ case '0': ?> <img src="<?php echo $img;?>" width="<?php echo $w;?>" height="<?php echo $h;?>" title="<?php echo $title;?>" alt="<?php echo $title;?>" style="cursor:pointer;" onclick="window.close();" /> <?php break; case '1': ?> <table align="center" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="left" class="contentheading" style="width:<?php echo $w-18;?>px; margin-left: 5px;"><?php echo $title;?></td> <td align="right" style="width:18px;" class="buttonheading"> <?php if($print){?> <a href="javascript:;" onClick="window.print(); return false"><img src="<?php echo $mosConfig_live_site; ?>/images/M_images/printButton.png" width="16" height="16" alt="<?php echo _CMN_PRINT;?>" title="<?php echo _CMN_PRINT;?>" border="0" style="vertical-align:middle;"/></a> <?php }?> </td> </tr> <tr> <td colspan="2"><img src="<?php echo $img;?>" width="<?php echo $w;?>" height="<?php echo $h;?>" title="<?php echo $title;?>" alt="<?php echo $title;?>" style="cursor:pointer;" onclick="window.close();" /></td> </tr> </table> <?php break; } } ?>
Simpan