mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Fix redirects in forum + polls
This commit is contained in:
parent
eb0c2a7674
commit
d5915df37e
@ -19,7 +19,7 @@ if ($ret === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$logged) {
|
if(!$logged) {
|
||||||
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ if ($ret === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$logged) {
|
if(!$logged) {
|
||||||
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ if(!$logged) {
|
|||||||
$extra_url = '?action=new_post&thread_id=' . $_GET['thread_id'];
|
$extra_url = '?action=new_post&thread_id=' . $_GET['thread_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode(getLink('forum') . $extra_url) . '">Log in</a> to post on the forum.<br /><br />';
|
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . urlencode(getLink('forum') . $extra_url) . '">Log in</a> to post on the forum.<br /><br />';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ if(!$logged) {
|
|||||||
$extra_url = '?action=new_thread§ion_id=' . $_GET['section_id'];
|
$extra_url = '?action=new_thread§ion_id=' . $_GET['section_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode(getLink('forum') . $extra_url) . '">Log in</a> to post on the forum.<br /><br />';
|
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . urlencode(getLink('forum') . $extra_url) . '">Log in</a> to post on the forum.<br /><br />';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ if ($ret === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$logged) {
|
if(!$logged) {
|
||||||
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . urlencode(getLink('forum')) . '">Log in</a> to post on the forum.<br /><br />';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ function getColorByPercent($percent)
|
|||||||
if($logged)
|
if($logged)
|
||||||
echo $link.'?id='.$poll['id'];
|
echo $link.'?id='.$poll['id'];
|
||||||
else
|
else
|
||||||
echo getLink('account/manage') . '?redirect=' . BASE_URL . urlencode($link.'?id='.$poll['id']);
|
echo getLink('account/manage') . '?redirect=' . urlencode($link.'?id='.$poll['id']);
|
||||||
|
|
||||||
echo '">'.$poll['question'] . '</a>
|
echo '">'.$poll['question'] . '</a>
|
||||||
</td>
|
</td>
|
||||||
@ -80,7 +80,7 @@ function getColorByPercent($percent)
|
|||||||
if($logged)
|
if($logged)
|
||||||
echo $link.'?id='.$poll['id'];
|
echo $link.'?id='.$poll['id'];
|
||||||
else
|
else
|
||||||
echo getLink('account/manage') . '?redirect=' . BASE_URL . urlencode($link.'?id='.$poll['id']);
|
echo getLink('account/manage') . '?redirect=' . urlencode($link.'?id='.$poll['id']);
|
||||||
|
|
||||||
echo '">'.$poll['question'] . '</a>
|
echo '">'.$poll['question'] . '</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user