// Show the profile if it exists
$columns = 2;
if ($CheckUser) {
if ($Homepage) {
$Homepage = str_replace("http://","",$Homepage);
$Homepage = str_replace("https://","",$Homepage);
$Homepage = htmlspecialchars($Homepage);
$Homepage = "<a href=\"http://$Homepage\" target=\"new\">http://$Homepage</a>";
}
// If this is the user allow visibility of class database link
if ($User == $user['USER_ID']) {
if ($config['CUSTOM_FIELD_1']) {
$Extra1 = str_replace("http://","",$Extra1);
$Extra1 = str_replace("https://","",$Extra1);
$Extra1 = htmlspecialchars($Extra1);
$CUSTOM_FIELD_1 = "J/30 Record: <a href=\"http://$Extra1\" target=\"new\">http://$Extra1</a>";
}
}
// If this is the main admin user allow visibility of class database link
if ($user['USER_ID'] == $config['MAIN_ADMIN_ID']) {
if ($config['CUSTOM_FIELD_1']) {
$Extra1 = str_replace("http://","",$Extra1);
$Extra1 = str_replace("https://","",$Extra1);
$Extra1 = htmlspecialchars($Extra1);
$CUSTOM_FIELD_1 = "J/30 Record: <a href=\"http://$Extra1\" target=\"new\">http://$Extra1</a>";
}
}
// If this is the any other admin allow visibility of class database link
if (($user['USER_MEMBERSHIP_LEVEL'] == "Administrator") && $Userstatus != "Administrator") {
if ($config['CUSTOM_FIELD_1']) {
$Extra1 = str_replace("http://","",$Extra1);
$Extra1 = str_replace("https://","",$Extra1);
$Extra1 = htmlspecialchars($Extra1);
$CUSTOM_FIELD_1 = "J/30 Record: <a href=\"http://$Extra1\" target=\"new\">http://$Extra1</a>";
}
}
if ($config['CUSTOM_FIELD_2']) {