function LogInClick($sender, $params) { //reset the button panel to non visible //check login info //only two accounts are allowed admin and board members for modification //of records //check that the user name is 'w3oiboardmem' or //check that the user name is 'w3oiadmin' if ($this->Username->Text != 'lvarcftp_w3oiboardmem' && $this->Username->Text != 'lvarcftp_w3oimgr' && $this->Username->Text != 'lvarcftp_w3oiadm') { $this->LoginStatus->Font->Color = 'Red'; $this->LoginStatus->Caption = 'Incorrect username or password'; return; } //check the user log in against the database $dbconnection = dbConnectOtherUsers($this->Username->Text, $this->Password->Text); //check for database connection success if ($dbconnection) { $this->LoginStatus->Font->Color = 'DarkGreen'; $this->LoginStatus->Caption = 'Success'; //redirect ?> <script> window.location = 'announcementeditor.php'; </script> <?php } else { $this->LoginStatus->Font->Color = 'Red'; $this->LoginStatus->Caption = 'Incorrect username or password'; } }
function LogInClick($sender, $params) { //check that the user name is 'w3oivoxeditor' or //check that the user name is 'w3oiadmin' if ($this->Username->Text != 'lvarcftp_w3oivoxeditor' && $this->Username->Text != 'lvarcftp_w3oimgr' && $this->Username->Text != 'lvarcftp_w3oiadm') { $this->AddPanel->Visible = false; $this->UploadPanel->Visible = false; $this->LoginStatus->Font->Color = Red; $this->LoginStatus->Caption = 'Incorrect username or password'; return; } //check the user log in against the database $dbconnection = dbConnectOtherUsers($this->Username->Text, $this->Password->Text); //check for connection success if ($dbconnection) { $this->LoginStatus->Font->Color = Green; $this->LoginStatus->Caption = 'Success'; //enable add panel $this->AddPanel->Visible = true; } else { $this->AddPanel->Visible = false; $this->UploadPanel->Visible = false; $this->LoginStatus->Font->Color = Red; $this->LoginStatus->Caption = 'Incorrect username or password'; } }
function LogInClick($sender, $params) { //reset the button panel to non visible $this->ButtonPanel->Visible = false; //check login info //only two accounts are allowed admin and VE members for modification //of records //check that the user name is 'w3oive' or //check that the user name is 'w3oiadmin' if ($this->Username->Text != 'lvarcftp_w3oive' && $this->Username->Text != 'lvarcftp_w3oimgr' && $this->Username->Text != 'lvarcftp_w3oiadm') { $this->LoginStatus->Font->Color = Red; $this->LoginStatus->Caption = 'Incorrect username or password'; return; } //check the user log in against the database $dbconnection = dbConnectOtherUsers($this->Username->Text, $this->Password->Text); //check for database connection success if ($dbconnection) { $this->LoginStatus->Font->Color = DarkGreen; $this->LoginStatus->Caption = 'Success'; $this->ButtonPanel->Visible = true; } else { $this->LoginStatus->Font->Color = Red; $this->LoginStatus->Caption = 'Incorrect username or password'; } }