"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } function login_CL_for_third_form() { global $PHP_SELF, $logout_script, $registerCL_script, $register3_script, $third_login; echo ""; echo ""; echo "Which client?"; echo""; ?>
Please note that you must have cookies enabled to use this service...

For which client?

First name
Last name
Claim No.
Province
Login as a client
Please note that you must have cookies enabled to use this service...

Log in as a client?

Username
Password
Province
Login your client
Please note that you must have cookies enabled to use this service...

Log in your client?

Username
Province
You must enter a valid name and claim number combination.
"; echo "Click on the following link to try again.
\n"; echo "Log in!
\n"; } else { $_SESSION['userCLid1']=$_SESSION['userCLid'];///userCLid is right here/// $_SESSION['userCLprov']=$_POST['userCLprov']; $CL_id=$_SESSION['userCLid']; lastaccess($CL_id); echo "A client has been logged in! " . "Click " . "here " . "to log out.
"; echo "
If you wish to update the client's registration, click " . "here."; echo "
If you wish to check the client's appointments, click " . "here."; } break; case "login_self": $_SESSION['userCLid']=auth_client($_POST['userCLname'], $_POST['userCLpassword'], $_POST['userCLprov']); if(!$_SESSION['userCLid']) {echo "authorization failed"; $_SESSION['userCLid1']="";} else { $_SESSION['userCLid1']=$_SESSION['userCLid']; $_SESSION['userCLprov']=$_POST['userCLprov']; $CL_id=$_SESSION['userCLid']; lastaccess($CL_id); echo "You have been logged in as a client! " . "Click " . "here " . "to log out.
"; echo "
If you wish to update your registration, click " . "here."; echo "
If you wish to check your appointments, click " . "here."; echo "
To change your password, click " . "here."; } break; case "login_Proself": $_SESSION['userCLid']=auth_client_pro($_POST['userCLname'], $_POST['userCLprov']); if(!$_SESSION['userCLid']) {echo "authorization failed"; $_SESSION['userCLid1']="";} else { $_SESSION['userCLid1']=$_SESSION['userCLid']; $_SESSION['userCLprov']=$_POST['userCLprov']; $CL_id=$_SESSION['userCLid']; lastaccess($CL_id); echo "You have logged in your client! " . "Click " . "here " . "to log out.
"; echo "
If you wish to update the client's registration, click " . "here."; echo "
If you wish to go back to your appointments, click " . "here."; } break; default: if(!empty($_SESSION['userCLid'])) { if(!empty($_SESSION['user3id1'])) { echo "A client and a third party payor are both logged in! " . "Click " . "here " . "to log both out.
"; echo "
If you wish to update the client's registration, click " . "here."; echo "
If you wish to update the third party's registration, click " . "here."; echo "
If you wish to check the client's and free appointments, click " . "here."; } else if(!empty($_SESSION['userProid'])) { echo "A client and a service provider are both logged in! " . "Click " . "here" . " to log both out.
"; echo "
If you wish to update the client's registration, click " . "here."; echo "
If you wish to update the service provider's registration, click " . "here."; echo "
If you wish to check the service provider's appointments, click " . "here."; } else { echo "You are logged in as a client! " . "Click " . "here " . "to log out.
"; echo "
If you wish to update your registration, click " . "here."; echo "
If you wish to check your appointments, click " . "here."; echo "
To change your password, click " . "here."; //echo ""; } } else { { if(!empty($_SESSION['user3id1'])) { echo "

If you want to register a client, click "; echo "here

"; login_CL_for_third_form(); } else if(!empty($_SESSION['userProid'])) {echo "

You are logged in as a service provider

"; login_CL_Proform(); echo "if you are a third party payor please log in here"; } else { login_CL_form(); echo "if you are a third party payor please log in here"; } } } break; } echo "

Appointment booking method Patent Pending

"; echo "

"; echo ""; echo ""; ?>