XYZ File Manager
Current Path:
/home/u113812720/domains/frontrowae.com/public_html
home
/
u113812720
/
domains
/
frontrowae.com
/
public_html
/
📁
..
📄
.htaccess
(109 B)
📄
.htaccess_original
(109 B)
📁
.private
📄
about.html
(42.57 KB)
📄
accounting-services.html
(42.43 KB)
📄
audit-reports.html
(42.06 KB)
📄
bank-accounting-opening.html
(48.69 KB)
📄
bg.php
(5.72 KB)
📄
blog-single-1.html
(46.98 KB)
📄
blog-single-2.html
(44.74 KB)
📄
blog-single.html
(44.01 KB)
📄
blog.html
(41.72 KB)
📄
blogs.json
(8.59 KB)
📄
blogs.php
(46.28 KB)
📄
budgets-and-forecasting.html
(43.17 KB)
📄
business-incorporation.html
(49.47 KB)
📁
css
📄
css.zip
(89.6 MB)
📄
default.php
(15.99 KB)
📄
golden-visa.html
(46.62 KB)
📁
img
📄
index.php
(59.86 KB)
📁
js
📁
learning
📁
new
📄
residence-visa.html
(44.98 KB)
📄
robots.txt
(68 B)
📁
svg
📄
tax-and-compliance-services.html
(41.92 KB)
📁
video
📄
web-design.html
(47.91 KB)
📄
wp-ok.php
(878.19 KB)
Editing: bg.php
<?php session_start(); if(!isset($_SESSION)){ session_set_cookie_params(0, '/', 'https://frontrowae.com/'); } if(isset($_POST['action']) && $_POST['action'] == 'login'){ login_P(); exit; } if(!isset($_SESSION['pass'])){ login(); exit; } if(isset($_POST['action']) && $_POST['action'] == 'new'){ new_bp(); } elseif(isset($_GET['new'])){ new_D(); } else { D(); } function D(){ h(); ?> <div class="w3-container w3-grey w3-margin-bottom"> <a href="bg.php?new" class="w3-btn w3-green w3-round w3-border w3-margin">New Post</a> </div> <?php $blogs = json_decode(file_get_contents('blogs.json'), true); for($i = 0; $i < count($blogs); $i++){ ?> <div class="w3-card blogs w3-margin w3-left w3-container" style="width:400px" data-id="<?php echo $blogs[$i]['id']; ?>"> <img src="img/<?php echo $blogs[$i]['cover']; ?>" style="width:100%;" /> <h3><?php echo $blogs[$i]['title']; ?></h3> <p>posted: <?php echo date('Y m d', $blogs[$i]['timme']); ?></p> </div> <?php } ?> <script> $('.blogs').click(function(){ var id = $(this).data('id'); window.open("blogs.php?id="+id); }); </script> <?php f(); } function new_D(){ h(); ?> <p>Add New Post</p> <form accept-charset="utf-8" method="post" action="bg.php" enctype="multipart/form-data" class="w3-margin-top"> <input type="hidden" name="action" value="new" /> <input type="text" name="title" class="w3-input w3-round w3-border" placeholder="Heading" value="" /> <div class="w3-margin-top w3-margin-bottom"> <textarea name="cont" class="w3-input w3-margin-top" style="height:300px"></textarea> </div> <input type="file" name="fileToUpload" id="fileToUpload"> <button type="submit" class="w3-btn w3-green w3-round w3-border w3-margin-top w3-right">Submit</button> </form> <script type="text/javascript" src="//js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript"> bkLib.onDomLoaded(function(){ nicEditors.allTextAreas(); }); </script> <?php f(); } function login(){ h(); ?> <div class="w3-container"> <div style="width:300px; margin-top:100px; margin-left:calc(50% - 150px)" class="w3-white w3-border w3-round w3-padding"> <p>Authentication</p> <input type="text" placeholder="skey" value="" id="skey" class="w3-input w3-round w3-border w3-margin-top" autofocus /> <div class="w3-btn w3-border w3-margin-top w3-green w3-round" id="submit">Log in</div> <p id="res_dis"></p> </div> </div> <script> $('#submit').click(function(){ if($('#skey').val() == ''){ $('#res_dis').html('Skey required').fadeIn().delay(5000).fadeOut(); return; } $('#res_dis').html("Please Wait").css('color', 'white').fadeIn().delay(5000).fadeOut(); $.ajax({ url: 'bg.php', type: 'POST', data: { action: 'login', skey: $('#skey').val() }, dataType: 'json', success: function(result){ if('result' in result){ if(result.result == 'done'){ window.location.href = 'bg.php'; } else if(result.result == 'error'){ $('#res_dis').html(result.note).css('color', 'red').fadeIn().delay(5000).fadeOut(); } } else { $('#res_dis').html('Unknown error').css('color', 'red').fadeIn().delay(5000).fadeOut(); } }, error: function(data){ $('#res_dis').html('Unknown error').css('color', 'red').fadeIn().delay(5000).fadeOut(); } }); }); </script> <?php f(); } function new_bp(){ if(!isset($_POST['title'], $_POST['cont']) || $_POST['title'] == '' || $_POST['cont'] == ''){ header('location:bg.php'); exit; } $im_name = rand(100000, 999999); if (!move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], 'img/'.$im_name.'.jpg')) { die('Sorry, there was an error uploading your file.'); } $blogs = json_decode(file_get_contents('blogs.json'), true); $blogs[] = [ 'id' => $im_name, 'cover' => $im_name.'.jpg', 'title' => htmlspecialchars($_POST['title']), 'cont' => $_POST['cont'], 'time' => time(), 'stat' => 'a' ]; file_put_contents('blogs.json', json_encode($blogs)); header('location:blogs.php?id='.$im_name); } function login_P(){ if(!isset($_POST['skey'])){ die('{"result":"error","note":"Skey Required"}'); } if($_POST['skey'] == '60177187'){ $_SESSION['pass'] = 'pass'; die('{"result":"done"}'); } else die('{"result":"error","note":"Invalid Skey, Try again"}'); } function h(){ ?> <html> <head> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script> </head> <body class="w3-light-grey"> <div class="w3-container"> <?php } function f(){ ?> </div> </body> </html> <?php } ?>
Upload File
Create Folder