Skip to content

Commit 892b458

Browse files
authored
Add files via upload
1 parent 1a7f5ff commit 892b458

File tree

3 files changed

+560
-0
lines changed

3 files changed

+560
-0
lines changed

config.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/*
3+
* Author: Coding Mahib
4+
* Web: https://codingmahib.weekbly.com/
5+
* Email: codingmahib@outlook.com
6+
*/
7+
$ftp_host = '127.0.0.1';
8+
$ftp_port = 21;
9+
10+
$ftp_connect = ftp_connect($ftp_host,$ftp_port);
11+
if(!$ftp_connect){
12+
echo '<div class="alert alert-danger">Connection Failed</div>';
13+
}else{
14+
if(isset($_SESSION['login'])){
15+
?>
16+
<nav class="navbar-dark bg-dark lg-dark"><div class="navbar-brand">FTP FILE MANAGER</div><ul><li class="navbar-item active"><a href="logout.php" class="navbar-link active">Log Out</a></li></ul></nav>
17+
<?php
18+
}else{
19+
?>
20+
<script>alert("Login First")</script>
21+
<?php
22+
}
23+
}
24+
25+
?>

0 commit comments

Comments
 (0)