//check login info //only two accounts are allowed admin and treasury for modification //of records //check that the user name is 'w3oitreasury' or //check that the user name is 'w3oiadmin' if ($this->Username->Text != 'lvarcftp_w3oitreasury' && $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'; } } } global $application; global $MembershipController; //Creates the form $MembershipController = new MembershipController($application); //Read from resource file $MembershipController->loadResource(__FILE__); //Shows the form $MembershipController->show();
<?php /** * Created by PhpStorm. * User: Haziq * Date: 1/5/2016 * Time: 5:47 PM */ require_once $_SERVER['DOCUMENT_ROOT'] . '/matrimonialweb/Controller/MembershipController.php'; $Object = new MembershipController(); $result = $Object->getUserMembership(); //echo print_r($result); echo json_encode($result);
<?php /** * Created by PhpStorm. * User: Haziq * Date: 12/13/2015 * Time: 2:15 AM */ require_once $_SERVER['DOCUMENT_ROOT'] . '/matrimonialweb/Controller/MembershipController.php'; $Object = new MembershipController(); $result = $Object->getPremiumMembers(); //echo print_r($result); echo json_encode($result);