[-
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 })
{
$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 }'";
%data = $db->select1( "$PACS_ID, $PACS_PASSWORD, $PACS_DELETED", $PACS_TABLE, $where);
$err = "Invalid Password, Please try again." if ($data{ $PACS_PASSWORD } ne $fdat{ $PACS_PASSWORD });
$err = "Invalid Email address, Please try again." if(!exists($data{ $PACS_PASSWORD }));
$err = "Invalid User, Please try again." if($data{ $PACS_DELETED } == 1);
if( exists($data{ $PACS_ID }) &&
$data{ $PACS_PASSWORD } eq $fdat{ $PACS_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) = $ENV{ HTTP_COOKIE } =~ m/\=(.*)/;
# print STDERR "COOKIE: $ENV{ HTTP_COOKIE }\n";
$data{ $PACS_ID } = $pac_id || 0;
$deleted = $db->value($PACS_DELETED, $PACS_TABLE, "$PACS_ID = $pac_id");
$passed_inspection = 1 if !$deleted;
}
-]
[$ if(exists($data{ $PACS_ID }) && $passed_inspection) $]
[$ if $cookie1 $]
[# print STDERR "Here $cookie1 \n"; #]
[$ endif $]
[- redirect("/download/mfr_list_catts.html") -]
[$ endif $]
[- $head_title = "Digital Templates" -]
[- $skipredirect = 1 -]
[+ includeexec2( "$ROOT_DIR/include/header.html" ) +]
 |
[+ $head_title +] |
 |
|
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. |
 |
|
|
|
|