assign('c_section', VHref::getKey("index")); // Check if user is logged in $is_logged_in = VSession::isLoggedIn(); // Get basic stats from database try { $stats = [ 'videos' => '1,000+', 'views' => '50K+', 'users' => '500+' ]; // Try to get real stats if possible if (class_exists('VDatabase')) { $video_count = $class_database->execute("SELECT COUNT(*) as count FROM db_videofiles WHERE privacy = 'public'"); if ($video_count && isset($video_count[0]['count'])) { $stats['videos'] = number_format($video_count[0]['count']) . '+'; } $user_count = $class_database->execute("SELECT COUNT(*) as count FROM db_accountuser WHERE usr_active = 1"); if ($user_count && isset($user_count[0]['count'])) { $stats['users'] = number_format($user_count[0]['count']) . '+'; } } } catch (Exception $e) { // Use default stats if database query fails $stats = [ 'videos' => '1,000+', 'views' => '50K+', 'users' => '500+' ]; } ?>
The ultimate platform for sharing and discovering amazing videos
Upload your videos in multiple formats and share them with the world instantly.
Browse through thousands of videos across different categories and find what you love.
Connect with other creators, comment on videos, and build your audience.