| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/TSCP2/ |
Upload File : |
<?php
include ('config.php');
dbConn();
if (isset($_GET['browse'])) { $browse = $_GET['browse']."/"; } else { $browse = ""; }
$dp = explode("/",$browse);
$count_dp = count($dp) - 2;
if ($count_dp < 1) {
$current = "";
} else {
$current = str_replace("/".$dp[$count_dp]."/","",$browse);
}
$open = $mem_contentroot.$browse;
if ($handle = opendir($open)) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
$files[] = $entry;
}
}
closedir($handle);
}
?>
<br>
<br>
<table width="800" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC"><span class="fourbold">Content Browse</span> - <a href="content.php">Back To Content List</a>
</tr>
<tr>
<td><strong>Browsing:</strong> <?=$open?></td>
</tr>
<tr>
<td>
<table align="center" width="600" border="0" cellpadding="5" cellspacing="5">
<? if ($current == "") { ?>
<tr><td width=100></td><td bgcolor="#E6E6E6"><a href="content_browse.php">UP</a><br /></td></tr>
<? } else { ?>
<tr><td width=100></td><td bgcolor="#E6E6E6"><a href="content_browse.php?browse=<?=$current?>">UP</a><br /></td></tr>
<? } ?>
<?php
foreach ($files as $file){
$working = $open.$file;
$check = @mysql_query("SELECT * FROM cms_content WHERE content_path='".$browse.$file."/'");
if(@mysql_num_rows($check) == 0) {
if(is_dir($working)) {
$perm = substr(sprintf('%o', fileperms($working)), -4);
echo "<tr>";
if($perm == "0777") {
echo "<td width=125 bgcolor=#CCCCCC><a href=\"content.php?add=yes&content_path=".$browse.$file."/\">ADD CONTENT</a></td>";
} else {
echo "<td width=125>CHMOD 777 FIRST</td>";
}
echo "<td bgcolor=#E6E6E6><a href=\"content_browse.php?browse=".$browse.$file."\">".$file."</a></td></tr>";
}
}
}
?>
</table>
</td>
</tr>
</table>