. */ include("./include/include.php"); require_once("./include/SendMailPage.php"); page_header(); $error_login = ""; ### Check password login ### if( isset($_POST['bodycode']) AND isset($_POST['password']) ) { $query="SELECT `BodyName`, `BodyStatus`, `BodyCategory`, `BodyCategoryOrder`, `MemberClaimed`, `MemberClaimedBy`, `MemberLastUpdate`, `NoDelegates`, `NoEnvoys`, `NoVisitors`, `NoObservers` FROM `ab_bodies` WHERE `BodyCode`='".addslashes($_POST['bodycode'])."' AND `Password`='".addslashes(md5($_POST['password']))."'"; if( @mysql_num_rows($res=doquery($query))==1 ) { // Valid password entered $row=mysql_fetch_array($res); $_SESSION['access_exppwd']=true; $_SESSION['body_BodyCode']=$_REQUEST['bodycode']; $_SESSION['body_BodyName']=$row["BodyName"]; $_SESSION['body_BodyStatus']=$row["BodyStatus"]; $_SESSION['body_BodyCategory']=$row["BodyCategory"]; $_SESSION['body_BodyCategoryOrder']=$row["BodyCategoryOrder"]; $_SESSION['body_MemberClaimed']=$row['MemberClaimed']; $_SESSION['body_MemberClaimedBy']=$row['MemberClaimedBy']; $_SESSION['body_MemberLastUpdate']=$row['MemberLastUpdate']; $_SESSION['body_NoDelegates']=$row["NoDelegates"]; $_SESSION['body_NoEnvoys']=$row["NoEnvoys"]; $_SESSION['body_NoVisitors']=$row["NoVisitors"]; $_SESSION['body_NoObservers']=$row["NoObservers"]; include("./include/numparticipants.php"); }else { // Failed login $error_login = "

Invalid body name/password entered.

"; } } if( isset($_REQUEST['apply']) OR ($_SERVER['REQUEST_METHOD']=="POST" AND isset($_POST['id']) ) ) { ### Show application form ### $appl_id = 0; include("./include/application.php"); }elseif( isset($_SESSION['body_BodyCode']) ) { ### Show board form ### if( isset($_REQUEST['nummem']) ) { include("./include/bodynummem.php"); }elseif( isset($_REQUEST['memlist']) ) { echoln("Back

"); include("./include/bodymemlist.php"); }elseif( isset($_REQUEST['viewmemlist']) ) { include("./include/bodymemlistview.php"); }else { include("./include/bodyedit.php"); } }else { ### Show welcome page ### echoln("

Apply as member of a Contact

"); echoln("As a member of a Contact you don't have an ".$ldap->getSystemName()." login or CSN (Card Serial Numer) to create an account. For this reason you can apply via this page. But, as you don't "); echoln("have an account, you will not be able to edit your application afterwards, so please make sure you don't make any mistakes."); echoln("

Apply now.

"); if( $setup['SetupBoardApproval']=="yes" ) { echoln("

Confirm applications

"); echoln("Because of lack of an ".$ldap->getSystemName()." account, board members of Contacts have to use the password that is mailed to them within 24 hours after the first application for their "); echoln("Contact is made. This password is normally sent to the e-mail address registered for your Contact as mentioned in the "); echoln("Address Book. If you did not receive it, please contact "); echoln(SendMailPage::getLink("headoffice", "the Headoffice")."."); if( $error_login!="" ) echoln($error_login); echoln("

"); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln("
Contact name:"); $query="SELECT `BodyCode`, `BodyName` FROM `ab_bodies` WHERE `BodyCategory`='Contacts' ORDER BY `BodyName`"; if( @mysql_num_rows( $res=doquery($query) )>0 ) { echoln(" "); }else { echoln(" Failed loading the Contacts, please contact ".SendMailPage::getLink("webmaster", "the webmaster")."."); } echoln("
Password:
"); echoln("

 

"); echoln("
"); } } page_footer(); ?>