本文整理汇总了PHP中Vote::setPointsPerVote方法的典型用法代码示例。如果您正苦于以下问题:PHP Vote::setPointsPerVote方法的具体用法?PHP Vote::setPointsPerVote怎么用?PHP Vote::setPointsPerVote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vote
的用法示例。
在下文中一共展示了Vote::setPointsPerVote方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif (isset($_GET['forum']) && $GLOBALS['CONFIG_SHOP_FORUM_ENABLED']) {
$shop = new Shop('forum', $GLOBALS['CONFIG_SHOP_FORUM'], 0, $acc->account_username);
$shop_page_vars = $shop->load();
$template_vars['acc_page'] = Template::load('shop_page.html', $shop_page_vars, 0);
} else {
$template_vars['acc_page'] = Template::load('shop.html', array(), 0);
}
} elseif (isset($_GET['vote']) && $GLOBALS['CONFIG_VOTE_ENABLED']) {
@(require_once sep_path(CMS_DIR . '/libraries/vote.class.inc'));
$vote = new Vote($acc->account_username);
if ($vote->setBannerId($_GET['banner'])) {
$vote->setServerId();
$vote->setBannerName();
$vote->setBannerLink();
$vote->setBannerImage();
$vote->setPointsPerVote();
$vote->vote_points = Vote::getVotePoints($acc->account_username);
$acc_page_vars['the_system'] = $vote->showBannerData();
} else {
$acc_page_vars['the_system'] = $vote->showBanners();
}
$template_vars['acc_page'] = Template::load('vote_system.html', $acc_page_vars, 0);
} else {
$template_vars['acc_page'] = Template::load('account_welcome.html', array('username' => $acc->account_username), 0);
}
} elseif (isset($_GET['register'])) {
$template_vars['val_user'] = isset($_POST['register_username']) ? $_POST['register_username'] : '';
$template_vars['val_pass'] = isset($_POST['register_password']) ? $_POST['register_password'] : '';
$template_vars['val_rpass'] = isset($_POST['register_rpassword']) ? $_POST['register_rpassword'] : '';
$template_vars['val_email'] = isset($_POST['register_email']) ? $_POST['register_email'] : '';
$template_vars['val_remail'] = isset($_POST['register_remail']) ? $_POST['register_remail'] : '';