/* ChangeLog: * 2006 Mar 13 STP - changed header to redirect */ require_once("general.php"); redirect("/clients/login.php"); exit; session_start(); include 'includes/db_inc.php'; $conn = db_Connect(); /* if(!isSet($op)) { $SQL = 'SELECT client_id,firstname,lastname,company,account_type FROM client'; $res = mysql_db_query($GLOBALS[mydb],$SQL,$conn); if (!$res) { echo( mysql_error()); } while($row = mysql_fetch_array($res)) { $row = stripslashes_array($row); if($row[account_type] == 'third_party') { $type = '2'; } else { $type = '1'; } $options .= ""; } } elseif($op == 'login') { */ if($op == 'login') { $uid = preg_replace("/eww/","",$login); //list($client_id,$garbage) = explode("-",$uid); $client_id = $uid; $SQL = "SELECT client_id,firstname,lastname,company,account_type FROM client WHERE client_id = '$client_id' AND password = '$password'"; $res = mysql_db_query($GLOBALS[mydb],$SQL,$conn); if (!$res) { echo( mysql_error()); } $count = '0'; while($row = mysql_fetch_array($res)) { $row = stripslashes_array($row); $S = array( "client_id" => $row[client_id], "firstname" => $row[firstname], "lastname" => $row[lastname], "account_type" => $row[account_type] ); $count = '1'; } if($count == '1') { session_register("S"); if($S[account_type] == 'third_party') { header("Location: tp/clients.php"); } elseif($S[account_type] == 'first_party') { header("Location: fp/clients.php"); } else { echo "Error: invalid account type"; } } else { //echo "bblah"; header("Location: index.php?er=invaliduser"); } //exit; } elseif($op == 'logout') { setcookie ("PHPSESSID","",time() - 3600,"","secure.eworldwire.com",1); session_unregister("S"); session_unset(); session_destroy(); unset($S); header("Location: index.php"); exit; } ?> EWORLDWIRE: Log-in


Please sign-in to access your eWorldWire Distrbution Management System.

Please note, if your session ends due to inactivity or reaching the maximum time limit, you may be returned to this page when trying to access your eWorldWire homepage. If this happens, please log in again.



   
  Forgot your Login and/or password? We can send you an email to help you remember them.
   
  Sign-in help answers common questions about signing in.