HEX
Server: LiteSpeed
System: Linux srv158.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: u1694298 (3732)
PHP: 7.4.33
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: /home/u1694298/www/wp-content/plugins/td-composer/mobile/parts/login.php
<?php
//get current logd in user data
global $current_user;
//check if admin allow registration
$users_can_register = get_option('users_can_register');

//if admin permits registration
$users_can_register_tab = '';

if ($users_can_register == 1) {
	//add the Register tab to the modal window if `Anyone can register` chec
	$users_can_register_tab = ' <span></span><a id="register-link">' . __td('Join', TD_THEME_NAME) . '</a>';
}

echo '
    <div class="td-guest-wrap">
        <div class="td-menu-avatar"><div class="td-avatar-container">' . get_avatar($current_user->ID, 80) . '</div></div>
        <div class="td-menu-login"><a id="login-link">' . __td('Sign in', TD_THEME_NAME) . '</a>' . $users_can_register_tab . '</div>
    </div>
';