Skip to content

Commit

Permalink
little bit scary
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Jun 14, 2024
1 parent 6ae93ee commit 8a047e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions userstats/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@

//web app manifest rendering
zbs_ManifestCatchRequest();


if ($user_ip) {
if (!isset($_GET['module'])) {
if (!ubRouting::checkGet('module')) {
if ($us_config['UBA_ENABLED']) {
// UBAgent SUPPORT:
if (ubRouting::checkGet('ubagent')) {
Expand Down Expand Up @@ -93,8 +93,8 @@
// load poll form
if ($us_config['POLLS_ENABLED']) {
$poll = new Polls($user_login);
if (la_CheckPost(array('vote', 'poll_id'))) {
$poll->createUserVoteOnDB(vf($_POST['vote'], 3), vf($_POST['poll_id'], 3));
if (ubRouting::checkPost(array('vote', 'poll_id'))) {
$poll->createUserVoteOnDB(ubRouting::post('vote','int'), ubRouting::post('poll_id','int'));
}
show_window('', $poll->renderVotingForm());
}
Expand All @@ -105,7 +105,7 @@
}
}
} else {
zbs_LoadModule($_GET['module']);
zbs_LoadModule(ubRouting::get('module'));
}
//render logout form if user already signed in
if (isset($us_config['INLINE_LOGOUT']) and $us_config['INLINE_LOGOUT']) {
Expand Down

0 comments on commit 8a047e6

Please sign in to comment.