A comprehensive web-based admission management system for VidyaGuru College with Google OAuth authentication, student profile management, and online admission form submission.
- Google OAuth 2.0 Authentication - Secure login with Google accounts
- Student Profile Management - View and edit profile information
- Online Admission Form - Submit admission applications for various programs
- Admin Dashboard - Manage applications and student data
- Responsive Design - Works on desktop, tablet, and mobile devices
- Modern UI - Clean and professional interface with blue gradient theme
- Bachelor of Computer Applications (BCA)
- Bachelor of Business Administration (BBA)
- Bachelor of Commerce (BCom)
- Bachelor of Teaching (BTeach/B.Ed)
- Master of Business Administration (MBA)
- Master of Computer Applications (MCA)
- XAMPP (Apache + MySQL + PHP 7.4+)
- Google Cloud Console account for OAuth credentials
- GitHub account (optional, for version control)
git clone https://github.com/Mohit7276/php_project_sutex.git
cd php_project_sutex- Go to Google Cloud Console
- Create a new project or select existing one
- Enable Google+ API
- Create OAuth 2.0 credentials:
- Application type: Web application
- Authorized redirect URIs:
http://localhost:8081/php/google_callback.php
- Copy
php/google_credentials.example.phptophp/google_credentials.php - Add your credentials:
<?php
define('GOOGLE_CLIENT_ID', 'YOUR_CLIENT_ID_HERE');
define('GOOGLE_CLIENT_SECRET', 'YOUR_CLIENT_SECRET_HERE');
define('GOOGLE_REDIRECT_URI', 'http://localhost:8081/php/google_callback.php');
?>- Start XAMPP (Apache + MySQL)
- Open phpMyAdmin:
http://localhost/phpmyadmin or http://localhost:8080/phpmyadmin - Run the database creation script:
- Visit:
http://localhost:8081/create_vidhyaguru_db.php - Or manually import:
create_vidhyaguru_db.sql
- Visit:
Edit php/config.php if needed:
$DB_HOST = 'localhost';
$DB_USER = 'root';
$DB_PASS = '';
$DB_NAME = 'vidhyaguru_db';
$DB_PORT = 3306;- Move the project to XAMPP htdocs:
C:\xampp\htdocs\phpwebsite - Start Apache and MySQL in XAMPP Control Panel
- Visit:
http://localhost:8081/index.html
phpwebsite/
├── php/
│ ├── google_auth.php # Google OAuth handler
│ ├── google_callback.php # OAuth callback
│ ├── google_config.php # OAuth configuration
│ ├── google_credentials.php # Credentials (not in git)
│ ├── submit_admission.php # Form submission handler
│ ├── get_user_profile.php # Profile data API
│ ├── update_user_profile.php # Profile update API
│ └── config.php # Database configuration
├── assets/
│ ├── admission-form.css # Admission form styles
│ ├── auth-pages.css # Login/Register styles
│ └── professional-enhancements.css
├── images/ # Images and SVG files
├── index.html # Home page
├── admission.html # Admission form
├── profile.html # Student profile
├── login.html # Login page
├── register.html # Registration page
├── admin.html # Admin dashboard
└── README.md # This file
- Never commit
google_credentials.php- it contains sensitive OAuth credentials - The
.gitignorefile prevents this file from being tracked - Always use environment variables or separate credential files for sensitive data
- Enable HTTPS in production
- Regenerate OAuth credentials if accidentally exposed
Edit color variables in new.css and assets/admission-form.css:
/* Blue theme (default) */
background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.9) 100%);Edit the program options in admission.html:
<option value="new-program">New Program Name</option>- users - Student/user accounts
- applications - Admission applications
- admin_users - Admin accounts
Test pages are available:
test_submit_form.html- Test admission form submissionphp/test_admission_submit.php- View table structure and test data
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Mohit Vanjara
- GitHub: @Mohit7276
For issues or questions:
- Open an issue on GitHub
- Contact: info@vidyaguru.edu
Note: This is a college project for educational purposes. Please ensure proper security measures before deploying to production.