Skip to content

Instantly share code, notes, and snippets.

@rahul01879
rahul01879 / admin.php
Created October 21, 2025 22:39
Its an admin Page for file Shairng Website where admin can manage user and files
<?phpsd
session_start();
dfsdsfd
// Database connection
$conn = new mysqli("127.0.0.1", "root", "", "project",3307);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Admin login
@rahul01879
rahul01879 / admin_dashboard.php
Created October 21, 2025 06:05
it an admin dashboard
<?php
session_start();
// Database connection
$conn = new mysqli("localhost", "root", "", "project",3307);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Check if admin is logged in
@rahul01879
rahul01879 / home.php
Created October 21, 2025 05:09
It an Client dashboard page for file sharing website
<?php
session_start();
// Ensure the user is logged in
if (!isset($_SESSION['user_id'])) {
header("Location: login.php");
exit();
}
$user_id = $_SESSION['user_id'];
@rahul01879
rahul01879 / App.css
Created October 21, 2025 04:52
Its a css file
@import "tailwindcss";
@keyframes fadeInScale {
0% {
opacity: 0;
transform: scale(0.85);
}
100% {
opacity: 1;
transform: scale(1);
@rahul01879
rahul01879 / admin_dashboard.php
Created October 21, 2025 04:52
it an admin dashboard
<?php
session_start();
// Database connection
$conn = new mysqli("localhost", "root", "", "project",3307);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Check if admin is logged in
@rahul01879
rahul01879 / App.css
Created October 20, 2025 06:18
Its a css file
@import "tailwindcss";
@keyframes fadeInScale {
0% {
opacity: 0;
transform: scale(0.85);
}
100% {
opacity: 1;
transform: scale(1);
@rahul01879
rahul01879 / SignUp.php
Created October 20, 2025 06:11
Its an sign up page for filesharing website
<?php session_start(); ?>fdg
<!DOCTYPE html>
<html lang="en">f
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-900 flex items-center justify-center h-screen">
@rahul01879
rahul01879 / admin_dashboard.php
Created October 20, 2025 05:48
it an admin dashboard
<?php
session_start();
// Database connection
$conn = new mysqli("localhost", "root", "", "project",3307);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Check if admin is logged in