Skip to content

Full-stack member management system with login, admin panel, session handling, and role-based access (PHP + HTML/CSS).

Notifications You must be signed in to change notification settings

Traccyyyyy/GelosMemberManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Member Management System

PHP Version License Maintenance Last Commit

🎯 Project Overview

A comprehensive web-based member management system for Gelos Enterprises, demonstrating proficiency in full-stack web development. This project showcases practical implementation of user authentication, role-based access control, and data management using PHP and web technologies.

πŸ” Demo Access

Test the application with these credentials:

Regular User Access:

Username: demo_user
Password: Demo123!

Admin Access:

Username: admin
Password: Admin123!

πŸ“ Project Structure

telos-member-management/
β”œβ”€β”€ admin/                 # Admin-specific functionality
β”‚   β”œβ”€β”€ admin.php         # Admin dashboard
β”‚   β”œβ”€β”€ adminlogin.php    # Admin login interface
β”‚   β”œβ”€β”€ adminprocess.php  # Admin authentication logic
β”‚   └── admin.txt         # Admin credentials storage
β”œβ”€β”€ auth/                 # User authentication
β”‚   β”œβ”€β”€ login.php        # User login interface
β”‚   β”œβ”€β”€ register.php     # User registration
β”‚   β”œβ”€β”€ logout.php       # Session termination
β”‚   └── accounts.txt     # User credentials storage
β”œβ”€β”€ includes/            # Common components
β”‚   β”œβ”€β”€ header.php      # Common header with navigation
β”‚   └── footer.php      # Common footer
β”œβ”€β”€ marks/              # Marks management
β”‚   β”œβ”€β”€ marks.php      # Marks input interface
β”‚   └── processMarks.php # Marks calculation logic
β”œβ”€β”€ css/               # Styling
β”‚   └── style.css     # Global styles
└── images/           # Asset storage
    └── *.png         # UI assets

πŸ’‘ Key Code Examples

Secure Password Validation

// Password validation with multiple requirements
$hasNumber = preg_match('/[0-9]/', $UserPass);
$hasLower = preg_match('/[a-z]/', $UserPass);
$hasUpper = preg_match('/[A-Z]/', $UserPass);
$hasSpecial = preg_match('/[!@#$%^&*()_+{}[\]<>?]/', $UserPass);

if (!$hasNumber || !$hasLower || !$hasUpper || !$hasSpecial) {
    header("Location: register.php?error=3");
    exit();
}

Session Management

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// Protected route check
if (!isset($_SESSION['username'])) {
    header("Location: ../auth/login.php");
    exit();
}

Marks Calculation

// Calculate statistics
$total = array_sum($marks);
$average = $total / count($marks);
$highest = max($marks);
$lowest = min($marks);

// Grade calculation
if ($average >= 85) $grade = 'HD';
elseif ($average >= 75) $grade = 'D';
elseif ($average >= 65) $grade = 'C';
elseif ($average >= 50) $grade = 'P';
else $grade = 'F';

πŸ“Έ Features & Screenshots

Home Page & Navigation

Home Page Clean and professional landing page with intuitive navigation

User Authentication

Registration System

Registration Form Secure registration form with password requirements

Password Validation Real-time password validation and requirements display

Registration Success Successful registration with welcome message

Registration Error Error handling for existing username or invalid input

Login Interface

Login Page User-friendly login interface with error handling

Marks Management

Input Interface

Marks Input Easy-to-use marks entry system

Results Display

Marks Results Comprehensive results display with statistics and grading

πŸš€ Key Features

  • User Authentication System

    • Secure login and registration functionality
    • Session management for users
    • Separate admin authentication portal
  • Role-Based Access Control

    • Admin dashboard for system management
    • User-specific content access
    • Marks/grades management system
  • Responsive Design

    • Mobile-friendly interface
    • Clean and professional UI
    • Consistent branding throughout

πŸ’» Technologies Used

  • Backend: PHP
  • Frontend: HTML5, CSS3
  • Data Storage: File-based system (.txt files)
  • Session Management: PHP Sessions

πŸ› οΈ Technical Implementation

  • Secure user authentication with password hashing
  • Form validation and sanitization
  • Responsive navigation system
  • Modular code structure
  • Clean separation of concerns (login process, registration, admin functions)

πŸ”’ Security Features

  • Protected admin access
  • Session-based authentication
  • Input validation and sanitization
  • Secure password handling

🎨 UI/UX Features

  • Intuitive navigation menu
  • Professional branding integration
  • Responsive layout
  • Clear user feedback mechanisms

πŸ”„ Development Practices

  • Modular code organization
  • Consistent coding style
  • Error handling implementation
  • Clean and maintainable codebase

🚧 Future Improvements

  1. Database Integration

    • Migrate from file-based storage to a proper database system (MySQL/PostgreSQL)
    • Implement proper data relationships and constraints
  2. Enhanced Security

    • Implement HTTPS
    • Add CSRF protection
    • Enhance password policies
    • Add rate limiting for login attempts
  3. Modern Framework Integration

    • Consider migrating to a modern PHP framework (Laravel/Symfony)
    • Implement MVC architecture
  4. Frontend Enhancements

    • Add JavaScript for dynamic interactions
    • Implement form validation on the client side
    • Add loading states and better user feedback
    • Enhance mobile responsiveness
  5. Additional Features

    • Password reset functionality
    • Email verification
    • User profile management
    • Activity logging
    • Data export capabilities

πŸ“ Developer Notes

This project demonstrates practical implementation of web development concepts including:

  • User authentication and authorization
  • Session management
  • Form handling and validation
  • File system operations
  • Responsive web design
  • Security best practices

🀝 Contributing

This is a portfolio project but suggestions and feedback are welcome. Feel free to open issues or submit pull requests.


Note: This project was developed as part of TAFE NSW coursework and uses a fictitious organization for educational purposes.

About

Full-stack member management system with login, admin panel, session handling, and role-based access (PHP + HTML/CSS).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published