[- use TEK::Utils; use TEK::Database; use TEK::Config; my $conf = new TEK::Config; my $db = new TEK::Database; %data = (); $passed_inspection = 0; # $db->debug(); if ($fdat{ SUBMIT }) { $fdat{ $PACS_EMAIL } =~ s/^\s*|\s*$//g if ($fdat{ $PACS_EMAIL }); $err = "Please enter a password." if (!$fdat{ $PACS_PASSWORD }); $err = "Please enter a vaild email address." if (!validate_email($fdat{ $PACS_EMAIL })); $err = "Please enter an email address." if (!$fdat{ $PACS_EMAIL }); if (!$err) { $where = "$PACS_EMAIL = '$fdat{ $PACS_EMAIL }' and $PACS_DELETED = 0"; %data = $db->select1( "$PACS_ID, $PACS_PASSWORD, $PACS_DELETED", $PACS_TABLE, $where); $crypted_password = crypt($fdat{ $PACS_PASSWORD }, substr($fdat{$PACS_PASSWORD}, 0, 2) ); $err = 1 if ($data{ $PACS_PASSWORD } ne $crypted_password); $err = 1 if (!exists($data{ $PACS_PASSWORD })); $err = 1 if ($data{ $PACS_DELETED } == 1); $err = "Invalid Login Credentials.
Please try again or contact us if the problem persists." if $err == 1; if ( exists($data{ $PACS_ID }) && $data{ $PACS_PASSWORD } eq $crypted_password && #Just making sure.. !$err ) { $expires = TEK::Date::cookiedatetime( time + ( $TEK::Date::SecondsYear * 10 ) ); # $cookie1 = "PAC_ID=$data{ $PACS_ID }; expires=$expires; path=/"; $cookie1 = "PAC_ID=$data{ $PACS_ID }; path=/"; $passed_inspection = 1; } } } #Auto Login if Cookie has already been set if ( $ENV{ HTTP_COOKIE } =~ /PAC_ID/ ) { ($pac_id) = $ENV{ HTTP_COOKIE } =~ m/PAC_ID\=(\d*)/; print STDERR "COOKIE pac_id: $pac_id\n"; $data{ $PACS_ID } = $pac_id || 0; $deleted = $db->value($PACS_DELETED, $PACS_TABLE, { $PACS_ID => $pac_id }); $passed_inspection = 1 if !$deleted; } else { print STDERR "NO COOKIE pac_id!\n"; } -] [$ if (exists($data{ $PACS_ID }) && $passed_inspection) $] [$ if $cookie1 $] [- print STDERR "Here Cookie1: $cookie1 \n"; -] [$ endif $] [- redirect("/download/mfr_list_catts.html") -] [$ endif $] [- $head_title = "Digital Templates" -] [- $skipredirect = 1 -] [+ includeexec2( "$ROOT_DIR/include/header.html" ) +]
[+ $head_title +] [Back]
Three easy steps to get started:

1. Complete the PACS Vendor Registration

2. Upon submission, you will be approved and given a
    password to use for all future inquiries.

3. Once approved, enter your password to select the
    manufacturer and files for download.
Already registered? Log in here.
[$ if ($err) $] [$ endif $]
E-Mail Address:

Password:

Forgot Password?
Not registered to download digital templates?
Click Here to Register

[+ $err +]