Example #1
0
            if ($_G['timestamp'] - $visitor['dateline'] >= 3600) {
                show_credit();
            }
        }
        updatecreditbyaction('visit', 0, array(), $space['uid']);
    }
    if ($do != 'profile' && !ckprivacy($do, 'view')) {
        $_G['privacy'] = 1;
        require_once libfile('space/profile', 'include');
        include template('home/space_privacy');
        exit;
    }
    $widths = getlayout($userdiy['currentlayout']);
    $leftlist = formatdata($userdiy, 'left', $space);
    $centerlist = formatdata($userdiy, 'center', $space);
    $rightlist = formatdata($userdiy, 'right', $space);
    dsetcookie('home_diymode', 1);
}
$navtitle = !empty($space['spacename']) ? $space['spacename'] : lang('space', 'sb_space', array('who' => $space['username']));
$metakeywords = lang('space', 'sb_space', array('who' => $space['username']));
$metadescription = lang('space', 'sb_space', array('who' => $space['username']));
$space['medals'] = getuserprofile('medals');
if ($space['medals']) {
    loadcache('medals');
    foreach ($space['medals'] = explode("\t", $space['medals']) as $key => $medalid) {
        list($medalid, $medalexpiration) = explode("|", $medalid);
        if (isset($_G['cache']['medals'][$medalid]) && (!$medalexpiration || $medalexpiration > TIMESTAMP)) {
            $space['medals'][$key] = $_G['cache']['medals'][$medalid];
        } else {
            unset($space['medals'][$key]);
        }
Example #2
0
    } else {
        echo $cellstart . formatdata($row['chAncestor'], $bHTML) . $cellend . $separator;
    }
    echo $cellstart . formatdata($row['chNotes'], $bHTML) . $cellend . $separator;
    //Get OSPs
    $db_prefix = DB_PREFIX;
    $ospSql = "SELECT otID, ospName, otAdditionalText FROM {$db_prefix}osps, {$db_prefix}ospstaken " . "WHERE otPlayerID = " . $row['plPlayerID'] . " AND otospID = ospID order by ospName";
    $rOSPs = ba_db_query($link, $ospSql);
    echo $cellstart;
    while ($record = ba_db_fetch_assoc($rOSPs)) {
        $celldata = $record['ospName'];
        if ($record['otAdditionalText'] != "") {
            $celldata .= " (" . $record['otAdditionalText'] . ")";
        }
        echo formatdata($celldata, $bHTML) . '; ';
    }
    echo $cellend . $separator;
    //Get skills
    $db_prefix = DB_PREFIX;
    $skSql = "SELECT stSkillID, skName FROM {$db_prefix}skills, {$db_prefix}skillstaken " . "WHERE stPlayerID = " . $row['plPlayerID'] . " AND stSkillID = skID order by skName";
    $rSkills = ba_db_query($link, $skSql);
    echo $cellstart;
    while ($record = ba_db_fetch_assoc($rSkills)) {
        echo formatdata($record['skName'], $bHTML) . '; ';
    }
    echo $cellend . $rowend;
}
if ($_GET['action'] == 'view') {
    echo "</table>\n";
    include '../inc/inc_foot.php';
}
Example #3
0
            if ($_G['timestamp'] - $visitor['dateline'] >= 3600) {
                show_credit();
            }
        }
        updatecreditbyaction('visit', 0, array(), $space['uid']);
    }
    if ($do != 'profile' && !ckprivacy($do, 'view')) {
        $_G['privacy'] = 1;
        require_once libfile('space/profile', 'include');
        include template('home/space_privacy');
        exit;
    }
    $widths = getlayout($userdiy['currentlayout']);
    $leftlist = formatdata($userdiy, 'left');
    $centerlist = formatdata($userdiy, 'center');
    $rightlist = formatdata($userdiy, 'right');
    dsetcookie('home_diymode', 1);
}
$navtitle = !empty($space['spacename']) ? $space['spacename'] : lang('space', 'sb_space', array('who' => $space['username']));
$metakeywords = lang('space', 'sb_space', array('who' => $space['username']));
$metadescription = lang('space', 'sb_space', array('who' => $space['username']));
include_once template('home/space_index');
function formatdata($data, $position)
{
    $groupstatus = getglobal('setting/groupstatus');
    $list = array();
    foreach ((array) $data['block']['frame`frame1']['column`frame1_' . $position] as $blockname => $blockdata) {
        if (strpos($blockname, 'block`') === false || empty($blockdata) || !isset($blockdata['attr']['name'])) {
            continue;
        }
        $name = $blockdata['attr']['name'];
    echo "{$cellstart}. " . formatdata($row['dTelephone'], $bHTML) . " .{$cellend}" . $separator;
    echo "{$cellstart}. " . formatdata($row['dMobile'], $bHTML) . " .{$cellend}" . $separator;
    if ($bHTML === True) {
        echo "{$cellstart}<a href = 'mailto:" . $row['plEmail'] . "'>" . formatdata($row['plEmail'], $bHTML) . "</a>{$cellend}{$separator}";
    } else {
        echo $cellstart . formatdata($row['plEmail'], $bHTML) . $cellend . $separator;
    }
    //Date of birth is stored in YYYYMMDD format - need to decode
    $sDoB = $row['plDOB'];
    $iDobYear = substr($sDoB, 0, 4);
    $iMonth = substr($sDoB, 4, 2);
    $iDate = substr($sDoB, 6, 2);
    echo $cellstart . "{$iDate}-{$iMonth}-{$iDobYear}" . $cellend . $separator;
    echo $cellstart . formatdata($row['dMedicalInfo'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plEmergencyName'], $bHTML) . $cellend . $separator;
    echo "{$cellstart}. " . formatdata($row['dEmergencyNumber'], $bHTML) . " .{$cellend}" . $separator;
    echo $cellstart . formatdata($row['plEmergencyRelationship'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plCarRegistration'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plDietary'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plMarshal'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plRefNumber'], $bHTML) . $cellend . $separator;
    if (ALLOW_EVENT_PACK_BY_POST) {
        echo $cellstart . formatdata($row['plEventPackByPost'], $bHTML) . $cellend . $separator;
    }
    echo $cellstart . formatdata($row['plNotes'], $bHTML) . $cellend . $separator;
    echo $cellstart . formatdata($row['plAccess'], $bHTML) . $cellend . $rowend;
}
if ($_GET['action'] == 'view') {
    echo "</table>\n";
    include '../inc/inc_foot.php';
}