We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7f5ff commit 892b458Copy full SHA for 892b458
config.php
@@ -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
22
+ }
23
+}
24
25
+?>
0 commit comments