예제 #1
0
파일: bags.php 프로젝트: Sajaki/wowroster
}
include $addon['inc_dir'] . 'header.php';
if ($roster->auth->getAuthorized($addon['config']['show_bags'])) {
    $bag0 = bag_get($char->get('member_id'), 'Bag0');
    if (!is_null($bag0)) {
        $bag0->out();
    }
    $bag1 = bag_get($char->get('member_id'), 'Bag1');
    if (!is_null($bag1)) {
        $bag1->out();
    }
    $bag2 = bag_get($char->get('member_id'), 'Bag2');
    if (!is_null($bag2)) {
        $bag2->out();
    }
    $bag3 = bag_get($char->get('member_id'), 'Bag3');
    if (!is_null($bag3)) {
        $bag3->out();
    }
    $bag4 = bag_get($char->get('member_id'), 'Bag4');
    if (!is_null($bag4)) {
        $bag4->out();
    }
    $bag5 = bag_get($char->get('member_id'), 'Bag5');
    if (!is_null($bag5)) {
        $bag5->out();
    }
}
$roster->tpl->assign_var('L_BAG_TITLE', $roster->locale->act['bags']);
$roster->tpl->set_filenames(array('bag' => $addon['basename'] . '/bag.html'));
$roster->tpl->display('bag');
예제 #2
0
파일: bank.php 프로젝트: Sajaki/wowroster
    if (!is_null($bag1)) {
        $bag1->out();
    }
    $bag2 = bag_get($char->get('member_id'), 'Bank Bag2');
    if (!is_null($bag2)) {
        $bag2->out();
    }
    $bag3 = bag_get($char->get('member_id'), 'Bank Bag3');
    if (!is_null($bag3)) {
        $bag3->out();
    }
    $bag4 = bag_get($char->get('member_id'), 'Bank Bag4');
    if (!is_null($bag4)) {
        $bag4->out();
    }
    $bag5 = bag_get($char->get('member_id'), 'Bank Bag5');
    if (!is_null($bag5)) {
        $bag5->out();
    }
    $bag6 = bag_get($char->get('member_id'), 'Bank Bag6');
    if (!is_null($bag6)) {
        $bag6->out();
    }
    $bag7 = bag_get($char->get('member_id'), 'Bank Bag7');
    if (!is_null($bag7)) {
        $bag7->out();
    }
}
$roster->tpl->assign_var('L_BAG_TITLE', $roster->locale->act['bank']);
$roster->tpl->set_filenames(array('bag' => $addon['basename'] . '/bag.html'));
$roster->tpl->display('bag');