{"id":31028239,"url":"https://github.com/classyid/promotional-login-system","last_synced_at":"2026-02-15T01:33:18.497Z","repository":{"id":302787393,"uuid":"1013623511","full_name":"classyid/promotional-login-system","owner":"classyid","description":"🎯 Innovative login/register system with dynamic promotional sidebar and admin CMS. Perfect for SaaS, e-commerce, or any platform wanting to showcase promotions during authentication. Built with PHP \u0026 MySQL.","archived":false,"fork":false,"pushed_at":"2025-07-04T07:45:36.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T08:36:10.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/classyid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T07:45:05.000Z","updated_at":"2025-07-04T07:45:39.000Z","dependencies_parsed_at":"2025-07-04T08:48:09.210Z","dependency_job_id":null,"html_url":"https://github.com/classyid/promotional-login-system","commit_stats":null,"previous_names":["classyid/promotional-login-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/classyid/promotional-login-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Fpromotional-login-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Fpromotional-login-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Fpromotional-login-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Fpromotional-login-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/classyid","download_url":"https://codeload.github.com/classyid/promotional-login-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Fpromotional-login-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275020152,"owners_count":25391651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-13T20:06:53.571Z","updated_at":"2026-02-15T01:33:18.492Z","avatar_url":"https://github.com/classyid.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promotional Login System - Dynamic Marketing CMS\n\n[![PHP Version](https://img.shields.io/badge/PHP-7.4%2B-blue.svg)](https://php.net)\n[![MySQL](https://img.shields.io/badge/MySQL-5.7%2B-orange.svg)](https://mysql.com)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\nSistem login dan registrasi yang inovatif dengan **promotional sidebar dinamis** dan panel admin untuk mengelola konten marketing. Cocok untuk SaaS, e-commerce, atau platform apapun yang ingin menampilkan promosi menarik di halaman autentikasi.\n\n## 🎯 Fitur Unggulan\n\n### 🎨 Promotional Login Experience\n- **Dynamic Promo Sidebar** - Tampilkan promosi real-time di halaman login/register\n- **Discount Display** - Showcase multiple discount dengan animasi menarik\n- **Domain Pricing** - Tampilkan harga khusus dan penawaran terbatas\n- **Visual Effects** - Gradient backgrounds dan animasi CSS yang smooth\n\n### 🔐 Authentication System\n- **User Registration** - Form registrasi dengan validasi lengkap\n- **Secure Login** - Sistem login dengan session management\n- **Admin Authentication** - Panel admin terpisah dengan akses terbatas\n- **User Dashboard** - Dashboard pengguna setelah login berhasil\n\n### 🛠️ Admin Management Panel\n- **Promotion Manager** - Buat, edit, dan kelola promosi secara real-time\n- **Content Editor** - Kelola hero section, services, dan testimonials\n- **Landing Page CMS** - Edit konten landing page tanpa coding\n- **User Statistics** - Monitor registrasi dan aktivitas pengguna\n\n### 📱 Modern Design\n- **Responsive Layout** - Optimal di desktop, tablet, dan mobile\n- **Split-Screen Design** - Promo di kiri, form di kanan\n- **Gradient Themes** - Kombinasi warna yang eye-catching\n- **Micro-interactions** - Hover effects dan smooth transitions\n\n## 🚀 Demo Screenshots\n\n```\n┌─────────────────────────────────────────────────────────┐\n│  PROMO SIDEBAR          │         LOGIN FORM            │\n│  ┌─────────────────┐    │    ┌─────────────────────┐    │\n│  │ 🔥 SPECIAL      │    │    │  Welcome Back!     │    │\n│  │ Up to 50% OFF   │    │    │  ┌───────────────┐  │    │\n│  │     +           │    │    │  │ Email         │  │    │\n│  │   15% Extra     │    │    │  └───────────────┘  │    │\n│  └─────────────────┘    │    │  ┌───────────────┐  │    │\n│  ┌─────────────────┐    │    │  │ Password      │  │    │\n│  │ DOMAIN PROMO    │    │    │  └───────────────┘  │    │\n│  │ From 299K/month │    │    │  [  Login  ]        │    │\n│  └─────────────────┘    │    └─────────────────────┘    │\n└─────────────────────────────────────────────────────────┘\n```\n\n## 📋 Requirements\n\n- PHP 7.4+ dengan PDO extension\n- MySQL 5.7+ atau MariaDB 10.3+\n- Web Server (Apache/Nginx)\n- Modern browser untuk optimal experience\n\n## 🛠️ Quick Installation\n\n1. **Clone \u0026 Setup**\n   ```bash\n   git clone https://github.com/username/promotional-login-system.git\n   cd promotional-login-system\n   ```\n\n2. **Database Setup**\n   ```sql\n   CREATE DATABASE promo_login_db;\n   CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';\n   GRANT ALL PRIVILEGES ON promo_login_db.* TO 'login'@'localhost';\n   ```\n\n3. **Import Database Schema**\n   ```sql\n   -- Users table\n   CREATE TABLE users (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       name VARCHAR(255) NOT NULL,\n       email VARCHAR(255) UNIQUE NOT NULL,\n       password VARCHAR(255) NOT NULL,\n       phone VARCHAR(20),\n       company VARCHAR(255),\n       status ENUM('active', 'inactive') DEFAULT 'active',\n       created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n   );\n\n   -- Promotional content table (CORE FEATURE)\n   CREATE TABLE promotional_content (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       title VARCHAR(255) NOT NULL,\n       subtitle TEXT,\n       type ENUM('discount', 'domain', 'special') NOT NULL,\n       content JSON,\n       price VARCHAR(100),\n       status ENUM('active', 'inactive') DEFAULT 'active',\n       display_order INT DEFAULT 1,\n       created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n   );\n\n   -- Landing page settings\n   CREATE TABLE landing_settings (\n       setting_key VARCHAR(100) PRIMARY KEY,\n       setting_value TEXT,\n       updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n   );\n\n   -- Services for landing page\n   CREATE TABLE landing_services (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       icon VARCHAR(10) NOT NULL,\n       title VARCHAR(255) NOT NULL,\n       description TEXT NOT NULL,\n       status ENUM('active', 'inactive') DEFAULT 'active',\n       display_order INT DEFAULT 1\n   );\n\n   -- Customer testimonials\n   CREATE TABLE landing_testimonials (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       name VARCHAR(255) NOT NULL,\n       company VARCHAR(255),\n       content TEXT NOT NULL,\n       rating INT DEFAULT 5,\n       status ENUM('active', 'inactive') DEFAULT 'active',\n       created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n   );\n   ```\n\n4. **Configure Database Connection**\n   \n   Update database config in all PHP files:\n   ```php\n   $host = 'localhost';\n   $dbname = 'db';\n   $username = 'user';\n   $password = 'password';\n   ```\n\n## 📁 Project Structure\n\n```\npromotional-login-system/\n├── 📄 index.php              # Landing page with services showcase\n├── 🔐 login.php              # LOGIN WITH PROMOTIONAL SIDEBAR ⭐\n├── 📝 register.php           # REGISTRATION WITH PROMO DISPLAY ⭐\n├── 📊 dashboard.php          # User dashboard after login\n├── ⚙️ admin_panel.php        # ADMIN: Manage promotions ⭐\n├── 🎨 admin_landing.php      # ADMIN: Landing page editor\n├── 🚪 logout.php             # Logout functionality\n└── 📖 README.md              # This documentation\n```\n\n## 🎮 How to Use\n\n### 👤 User Experience\n1. **Landing Page**: Visit `index.php` to see the main website\n2. **See Promos**: Go to `login.php` or `register.php` to see **live promotions**\n3. **Register**: Create account with promotional offers visible\n4. **Login**: Access dashboard with promotional incentives\n\n### 👨‍💼 Admin Management\n1. **Admin Login**: \n   - Email: `admin@yoursite.com`\n   - Password: `admin123`\n2. **Manage Promos**: Use `admin_panel.php` to create/edit promotional content\n3. **Update Landing**: Use `admin_landing.php` to manage website content\n\n### 🎯 Promotional Features\n\n#### Discount Promotions\n```php\n// Example: Create stacked discounts\n$promotion = [\n    'title' =\u003e 'Black Friday Special',\n    'type' =\u003e 'discount',\n    'content' =\u003e json_encode([\n        ['label' =\u003e 'Disc up to', 'value' =\u003e '70%'],\n        ['label' =\u003e 'Extra', 'value' =\u003e '15%'],\n        ['label' =\u003e 'Cashback', 'value' =\u003e '10%']\n    ])\n];\n```\n\n#### Domain/Product Pricing\n```php\n// Example: Special pricing display\n$domainPromo = [\n    'title' =\u003e 'Domain Flash Sale',\n    'type' =\u003e 'domain',\n    'price' =\u003e '199K/year',\n    'subtitle' =\u003e 'Buy 1 Get 1 Free + Transfer'\n];\n```\n\n## 🎨 Customization Guide\n\n### 🌈 Change Color Scheme\n```css\n/* Primary gradient - Update in all CSS sections */\nbackground: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n\n/* Accent color for buttons and highlights */\nbackground: #4CAF50;\n\n/* Promotional badges */\nbackground: linear-gradient(45deg, #ff6b6b, #ffa726);\n```\n\n### ✨ Add New Promotion Types\n1. Add new ENUM value in database:\n   ```sql\n   ALTER TABLE promotional_content \n   MODIFY COLUMN type ENUM('discount', 'domain', 'special', 'flash_sale');\n   ```\n\n2. Update admin panel form and display logic\n3. Add corresponding CSS styling\n\n### 📱 Mobile Optimization\nThe system is fully responsive, but you can customize breakpoints:\n```css\n@media (max-width: 768px) {\n    .container {\n        flex-direction: column;\n    }\n    .promo-section {\n        order: 2; /* Show promo after form on mobile */\n    }\n}\n```\n\n## 🔥 Advanced Features\n\n### Real-time Promo Updates\nPromotions update immediately after admin changes - no caching issues!\n\n### A/B Testing Ready\nEasy to implement different promotional layouts:\n```php\n// Example: Random promo display\n$promoLayout = (rand(1,2) == 1) ? 'layout_a' : 'layout_b';\n```\n\n### Analytics Integration\nAdd tracking to promotional elements:\n```javascript\n// Track promo clicks\ndocument.querySelectorAll('.promo-card').forEach(card =\u003e {\n    card.addEventListener('click', () =\u003e {\n        gtag('event', 'promo_click', {\n            'promo_type': card.dataset.type,\n            'promo_title': card.dataset.title\n        });\n    });\n});\n```\n\n## 🛡️ Security Features\n\n- ✅ SQL Injection protection with prepared statements\n- ✅ XSS prevention with input sanitization\n- ✅ Session management with proper logout\n- ✅ Admin access control\n- ⚠️ **Note**: Password hashing uses MD5 (consider upgrading to bcrypt)\n\n### Recommended Security Upgrade\n```php\n// Upgrade password hashing\n$hash = password_hash($password, PASSWORD_DEFAULT);\n\n// Verify password\nif (password_verify($inputPassword, $storedHash)) {\n    // Login successful\n}\n```\n\n## 📊 Database Schema Focus\n\n### 🎯 Promotional Content Table (Core Feature)\n| Field | Type | Purpose |\n|-------|------|---------|\n| type | ENUM | discount/domain/special |\n| content | JSON | Flexible promo data storage |\n| display_order | INT | Control promo sequence |\n| status | ENUM | Enable/disable promos |\n\n### Example JSON Content Structure\n```json\n{\n  \"discounts\": [\n    {\"label\": \"Save up to\", \"value\": \"50%\"},\n    {\"label\": \"Extra\", \"value\": \"15%\"}\n  ],\n  \"features\": [\"Free Setup\", \"24/7 Support\"],\n  \"deadline\": \"2024-12-31\"\n}\n```\n\n## 🎯 Use Cases\n\n### 🛍️ E-commerce Platform\n- Show product discounts during checkout\n- Display seasonal promotions\n- Highlight member benefits\n\n### 💼 SaaS Application\n- Promote plan upgrades\n- Show trial extensions\n- Highlight new features\n\n### 🎓 Educational Platform\n- Course discounts\n- Certification promotions\n- Early bird pricing\n\n### 🏢 Business Services\n- Service packages\n- Limited-time offers\n- Referral bonuses\n\n## 🐛 Troubleshooting\n\n### Promotions Not Showing\n1. Check database connection\n2. Verify promotional_content table exists\n3. Ensure status = 'active' in admin panel\n\n### CSS Not Loading\n1. Check file paths are correct\n2. Verify web server serves CSS properly\n3. Clear browser cache\n\n### Admin Access Issues\n```php\n// Default admin credentials\nEmail: admin@yoursite.com\nPassword: admin123\n\n// Create new admin user manually in database if needed\n```\n\n## 🔄 Roadmap\n\n- [ ] **Email marketing integration** for promotional campaigns\n- [ ] **Scheduled promotions** with start/end dates\n- [ ] **User-specific promotions** based on behavior\n- [ ] **Promotion analytics** dashboard\n- [ ] **A/B testing framework** for promotional layouts\n- [ ] **Mobile app integration** APIs\n- [ ] **Social media sharing** for promotions\n- [ ] **Multilingual support** for global reach\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create feature branch (`git checkout -b feature/PromoFeature`)\n3. Commit changes (`git commit -m 'Add promotional feature'`)\n4. Push to branch (`git push origin feature/PromoFeature`)\n5. Create Pull Request\n\n**Focus Areas for Contribution:**\n- New promotional layouts\n- Additional authentication methods\n- Performance optimizations\n- Security enhancements\n\n## 📄 License\n\nMIT License - feel free to use in commercial projects!\n\n## 🌟 Star History\n\nIf this promotional login system helps your project, please give it a ⭐!\n\n## 📞 Support\n\n- 📧 Email: kontak@classy.id\n- 💬 Discussions: Use GitHub Discussions\n- 🐛 Issues: Report bugs via GitHub Issues\n- 📖 Wiki: Check the project wiki for advanced guides\n\n**Project Link**: [https://github.com/classyid/promotional-login-system](https://github.com/classyid/promotional-login-system)\n\n---\n\n**💡 Perfect for**: Marketing-focused startups, e-commerce platforms, SaaS applications, or any business that wants to convert visitors during the login process!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclassyid%2Fpromotional-login-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclassyid%2Fpromotional-login-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclassyid%2Fpromotional-login-system/lists"}