示例#1
0
function print_autodetect_failed($sid, $id)
{
    global $title, $formats;
    $title = 'Data Upload';
    $formats = get_import_scripts();
    draw_page('upload_autodetect_failed.php');
    exit;
}
示例#2
0
} else {
    if ($pending_campaign != null) {
        $campaign = new Campaign((int) $pending_campaign['campaign_id']);
    }
}
// Draw the page.
$title = 'Character Permissions';
$cname = $character->cname;
$is_public = $character->public == 'y';
$is_inactive = $character->inactive == 'y';
$is_owner = $character->owner == $sid->GetUserName();
$profiles = $character->GetProfiles();
$templates = generate_template_array();
$current_template = get_sheet_name($character->template_id);
$exp_formats = get_export_scripts();
$imp_formats = get_import_scripts();
draw_page('char.php');
////////////////////////////////////////////////////////////////////////
// Helper functions.
// Remove a character from the current campaign they are in.
function apply_leave_campaign(&$character)
{
    return $character->SetCampaign(null);
}
// Apply to Join the specified campaign
function apply_join_campaign(&$character, $campaign_id)
{
    $campaign = new Campaign($campaign_id);
    if (!$campaign->open) {
        return "Campaign " . $campaign->cname . " not open for registration!";
    }