Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function ParseLogin()
- {
- $LoginForm = explode('[LOGIN_FORM_OFF]', $this->Template);
- $LoginForm2 = explode('[/LOGIN_FORM_OFF]', $LoginForm[1]);
- $PanelAccount = explode('[LOGIN_FORM_ON]', $LoginForm2[1]);
- $PanelAccount2 = explode('[/LOGIN_FORM_ON]', $PanelAccount[1]);
- $LoginOffLink = explode('[LOGIN_LINK_OFF]', $LoginForm[0]);
- $LoginOffLink2 = explode('[/LOGIN_LINK_OFF]', $LoginOffLink[1]);
- $LoginOnLink = explode('[LOGIN_LINK_ON]', $LoginOffLink2[1]);
- $LoginOnLink2 = explode('[/LOGIN_LINK_ON]', $LoginOnLink[1]);
- if(!isset($_SESSION['id']) || $_SESSION['id'] == 0)
- $LoginForm[0] = $LoginOffLink[0].$LoginOffLink2[0].$LoginOnLink[0].$LoginOnLink2[1];
- else
- $LoginForm[0] = $LoginOffLink[0].$LoginOnLink[0].$LoginOnLink2[0].$LoginOnLink2[1];
- $CompteInfo = Account::GetInfo($this->bdd);
- if(isset($_SESSION['login']) && isset($_SESSION['id']))
- {
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_ACCOUNTNAME]', strtolower($_SESSION['login']));
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_NOTIFNBR]', $CompteInfo->NotifNbr);
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_MPNBR]', $CompteInfo->MpNbr);
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_FRIENDNBR]', $CompteInfo->FriendNbr);
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_POINTSHIN]', $CompteInfo->Points);
- $LoginForm[0] = $this->ReplaceIfExist($LoginForm[0], '[PANEL_POINTVOTE]', $CompteInfo->PointsVote);
- $PanelAccount2[0] = $this->ParseLogged($PanelAccount2[0]);
- }
- $this->Template = (isset($_SESSION['login']) && isset($_SESSION['id'])) ? $LoginForm[0].$PanelAccount[0].$PanelAccount2[0].$PanelAccount2[1] : $LoginForm[0].$LoginForm2[0].$PanelAccount[0].$PanelAccount2[1];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement