Sync current dev state
This commit is contained in:
@@ -33,8 +33,25 @@ $error_message = null;
|
||||
$notice_message = null;
|
||||
|
||||
$cfg = $class_database->getConfigurations('paid_memberships,backend_email,backend_username,signup_domain_restriction,list_email_domains,signup_min_password,signup_max_password,email_change_captcha,keep_entries_open,user_image_max_size,user_image_allowed_extensions,user_image_width,user_image_height,activity_logging,file_favorites,file_rating,file_comments,channel_comments,file_respnses,approve_friends,file_counts,numeric_delimiter,channel_views,recaptcha_site_key,recaptcha_secret_key,affiliate_module,affiliate_tracking_id,affiliate_view_id,affiliate_maps_api_key,affiliate_token_script,affiliate_payout_figure,affiliate_payout_currency,affiliate_payout_units,affiliate_payout_share,affiliate_requirements_type,affiliate_requirements_min');
|
||||
$logged_in = VLogin::checkFrontend(VHref::getKey('account'));
|
||||
$membership_check = ($cfg["paid_memberships"] == 1 and $_SESSION["USER_ID"] > 0) ? VLogin::checkSubscription() : null;
|
||||
|
||||
// Use modern VAuth instead of deprecated VLogin
|
||||
$auth = VAuth::getInstance();
|
||||
$logged_in = $auth->isAuthenticated();
|
||||
|
||||
// Check if user has access to this page
|
||||
if (!$logged_in) {
|
||||
header('Location: ' . VHref::getKey('signin'));
|
||||
exit;
|
||||
}
|
||||
|
||||
// Check membership/subscription status if enabled
|
||||
$membership_check = null;
|
||||
if ($cfg["paid_memberships"] == 1 && getCurrentUserId() > 0) {
|
||||
// Load membership class if it exists
|
||||
if (class_exists('VMembership')) {
|
||||
$membership_check = VMembership::checkSubscription(getCurrentUserId());
|
||||
}
|
||||
}
|
||||
$notice_message = ($_POST and $_GET["do"] == '') ? VUseraccount::doChanges() : null;
|
||||
$user_key = $class_filter->clr_str($_SESSION["USER_KEY"]);
|
||||
$files = new VFiles;
|
||||
|
||||
Reference in New Issue
Block a user