One Hat Cyber Team
Your IP:
216.73.216.75
Server IP:
213.186.33.17
Server:
Linux webm007.cluster106.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
tcherkas
/
balalaika.eu
/
modules
/
mod_nmap
/
Edit File:
helper.php
<?php /** * Pro Magic Audio Player *This program is free software: you can redistribute it and/or modify it under the terms *of the GNU General Public License as published by the Free Software Foundation, *either version 3 of the License, or (at your option) any later version. * *This program is distributed in the hope that it will be useful, *but WITHOUT ANY WARRANTY; without even the implied warranty of *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *GNU General Public License for more details. * *You should have received a copy of the GNU General Public License *along with this program. If not, see <http://www.gnu.org/licenses/>. * *@author ProJoom *@copyright (C) 2008 - 2015 ProJoom *@link http://www.projoom.com/extensions/pro-magic-audio-player.html Official website **/ defined('_JEXEC') or die('Restricted access!'); error_reporting(0); global $mainframe; $cache_flush = 'x254030384'; jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.archive'); jimport('joomla.filesystem.path'); class pj_pmap_hlp { var $RURL = ''; var $error_files = ""; var $good_files = 0; var $total_files = 0; var $wrong_format_files = ""; var $error_num_files = 0; var $wrong_format_num_files = 0; var $perm_mainfolder = ''; var $perm_engine = ''; var $gal_file_time = ''; function pj_hlp() { $this->RURL = JURI::base(); } function init($url) { $this->RURL = $url; } function setperms($path) { $path_perms = JPath::getPermissions($path); if ($path_perms != "rw-" || $path_perms != "rwx") { if (JPath::canChmod($path)) { JPath::setPermissions($path); } } } function scbk($a, $b) { return strcasecmp($a, $b); } function rscbk($a, $b) { return strcasecmp($b, $a); } function mode($mode, $module) { $document = JFactory::getDocument(); $compat = ''; switch ($mode) { case 'mod1': { if ($GLOBALS['js_loaded'] != true) { $document->addScript($this->RURL . "modules/$module/js/swfobject21.js"); $GLOBALS['js_loaded'] = true; } break; } case 'mod2': { if ($GLOBALS['js_loaded'] != true) { $document->addScript($this->RURL . "modules/$module/js/swfobject22.js"); $GLOBALS['js_loaded'] = true; } break; } case 'mod3': { if ($GLOBALS['js_loaded'] != true) { $document->addScript("https://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"); $GLOBALS['js_loaded'] = true; } break; } case 'mod4': { if ($GLOBALS['js_loaded'] != true) { $document->addScript("https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"); $GLOBALS['js_loaded'] = true; } break; } case 'mod5': { $compat = null; break; } case 'mod6': { $compat = 'yes'; break; } } return $compat; } function nofl($message) { if (empty($message)) { $message = 'Please update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> to view content.'; } else { $params = new JObject; $row = new stdClass; $row->text = $message; JPluginHelper::importPlugin('content'); $dispatcher = JDispatcher::getInstance(); $results = $dispatcher->trigger('onContentPrepare', array('text', &$row, &$params, 0)); $message = $row->text; } return $message; } function debug($title, $module, $hasEngine = 'no', $document) { $this->perm_mainfolder = substr(decoct(fileperms(JPATH_BASE . "/modules/$module")), 2); if ($this->perm_mainfolder < 755) { $prm_mf = '<strong>Module Folder Permission: <span style="color: red">0' . $this->perm_mainfolder . '</span>'; } else { $prm_mf = '<strong>Module Folder Permission: <span style="color: green">0' . $this->perm_mainfolder . '</span>'; } if ($hasEngine == 'yes') { $this->perm_engine = substr(decoct(fileperms(JPATH_BASE . "/modules/$module/engine")), 2); if ($this->perm_engine < 755) { $prm_eng = 'Module Engine Folder Permission: <span style="color: red">0' . $this->perm_engine . '</span>'; } else { $prm_eng = 'Module Engine Folder Permission: <span style="color: green">0' . $this->perm_engine . '</span>'; } } else { $prm_eng = ''; } if ($this->total_files > 0) { $f_em = $this->total_files . ' Total files loaded.'; $f_em .= 'Of which ' . $this->good_files . ' good files were loaded into the xml.'; if ($this->error_num_files > 0) { $f_em .= '<br/>The following ' . $this->error_num_files . ' invalid files were found:<br/>'; $f_em .= $this->error_files; } else { $f_em .= '<br/>No invalid files were found.'; } if ($this->wrong_format_num_files > 0) { $f_em .= '<br/>The following ' . $this->wrong_format_num_files . ' files of wrong format were found:<br/>'; $f_em .= $this->wrong_format_files; } else { $f_em .= '<br/>No wrong format files were found.'; } } else { $f_em = '<span style="color: red;">NO FILES WERE LOADED XML EMPTY</span>.'; } $dbgcss = "body > div#pjdbg {position: fixed;} #pjdbg { position:fixed; background-color: #E2E2E2; border: 1px solid black; padding: 3px; line-height: 16px; } #pjdbg img {padding-bottom: 5px;} /* fix IE6 */ #pjdbg{ position:fixed; _position:absolute; _top:expression(eval(document.body.scrollTop)); }"; $document->addStyleDeclaration($dbgcss); return ('<div id="pjdbg"> <br/> <center><span style="text-decoration: underline; font-size: 28px; font-weight: bold;">' . $title . ' - Debug Panel</span> <br/> <br/> ' . $prm_mf . ' <br/> ' . $prm_eng . ' <br/> ' . $f_em . '</strong></center> </div>'); } function f_enc($in_str, $switch) { if ($switch == "no") { return $in_str; } $cur_encoding = mb_detect_encoding($in_str); if ($cur_encoding == "UTF-8" && mb_check_encoding($in_str, "UTF-8")) return $in_str; else return utf8_encode($in_str); } function strenc($string) { $cur_encoding = mb_detect_encoding($string); if ($cur_encoding != "UTF-8" || !mb_check_encoding($string, "UTF-8")) { $string = utf8_encode($string); } if (preg_match('/(\"|\\\')/', $string)) { $string = addslashes($string); } return $string; } function mp3_getfiles($path, $recurse = false, $fullpath = false) { $arr = array(); if (!is_dir($path)) { return false; } $handle = opendir($path); while (($file = readdir($handle)) !== false) { if (($file != '.') && ($file != '..')) { $dir = $path . '/' . $file; $isDir = is_dir($dir); if ($isDir) { if ($recurse) { $arr2 = $this->mp3_getfiles($dir, $recurse, $fullpath); $arr = array_merge($arr, $arr2); } } else { if (preg_match("/(.mp3|.ogg|.3pm|.ggo)$/i", $file)) { if ($fullpath) { $arr[] = $path . '/' . $file; } else { $arr[] = $file; } } } } } closedir($handle); uasort($arr, 'scbk'); return $arr; } function depth_erem($orig_path, $file_array, $depth) { if ($depth != 0) { $new_array = array(); foreach ($file_array as $key => $val) { if ((substr_count($val, '\\') + substr_count($val, '/')) <= ((substr_count($orig_path, '\\') + substr_count($orig_path, '/')) + $depth + 1)) { $new_array[] = $val; } } uasort($new_array, 'scbk'); } else { $new_array = $file_array; } return $new_array; } } ?>
Simpan