feat: Add complete Docker deployment with web-based setup wizard

Major additions:
- Web-based setup wizard (setup.php, setup_wizard.php, setup-wizard.js)
- Production Docker configuration (docker-compose.prod.yml, .env.production)
- Database initialization SQL files (deploy/init_settings.sql)
- Template builder system with drag-and-drop UI
- Advanced features (OAuth, CDN, enhanced analytics, monetization)
- Comprehensive documentation (deployment guides, quick start, feature docs)
- Design system with accessibility and responsive layout
- Deployment automation scripts (deploy.ps1, generate-secrets.ps1)

Setup wizard allows customization of:
- Platform name and branding
- Domain configuration
- Membership tiers and pricing
- Admin credentials
- Feature toggles

Database includes 270+ tables for complete video streaming platform with
advanced features for analytics, moderation, template building, and monetization.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
SamiAhmed7777
2025-10-26 01:42:31 -07:00
parent 0b7e2d0a5b
commit d22b3e1c0d
90 changed files with 22329 additions and 268 deletions

View File

@@ -18,7 +18,7 @@ defined('_ISVALID') or header('Location: /error');
class VLogin
{
/* check subscription when logged in */
public function checkSubscription()
public static function checkSubscription()
{
global $cfg, $backend_access_url;
@@ -29,14 +29,14 @@ class VLogin
}
}
/* update login activity */
public function updateOnLogin($user_id)
public static function updateOnLogin($user_id)
{
global $db, $class_filter, $cfg;
$do_count = $cfg['frontend_signin_count'] == 1 ? ', usr_logins=usr_logins+1' : null;
$db->execute(sprintf("UPDATE `db_accountuser` SET `usr_lastlogin`='%s', `usr_IP`='%s' " . $do_count . " WHERE `usr_id`='%s' LIMIT 1;", date("Y-m-d H:i:s"), $class_filter->clr_str($_SERVER[REM_ADDR]), intval($user_id)));
}
/* log in */
public function loginAttempt($section, $username, $password, $remember = '')
public static function loginAttempt($section, $username, $password, $remember = '')
{
global $db, $class_database, $cfg, $language, $class_filter;
$username = $class_filter->clr_str($username);
@@ -126,7 +126,7 @@ class VLogin
}
/* log out */
public function logoutAttempt($section, $redirect = 1)
public static function logoutAttempt($section, $redirect = 1)
{
require 'f_core/config.backend.php';
global $class_database, $class_redirect, $cfg, $language;
@@ -188,7 +188,7 @@ class VLogin
}
/* logged in redirect */
public function isLoggedIn($section = 'fe')
public static function isLoggedIn($section = 'fe')
{
require 'f_core/config.backend.php';
global $class_redirect, $cfg;
@@ -200,7 +200,7 @@ class VLogin
}
}
/* check if logged in on frontend */
public function checkFrontend($next = '')
public static function checkFrontend($next = '')
{
global $cfg, $class_redirect;
@@ -210,7 +210,7 @@ class VLogin
}
}
/* check if logged in on backend */
public function checkBackend($next = '')
public static function checkBackend($next = '')
{
require 'f_core/config.backend.php';
global $class_database, $class_redirect, $cfg;