use Time::Local; ############################################################### ### Define any globals ############################################################### my $org_url = "lyaa"; my $method = "post"; #Use Post for production, it hides the parameters. #my $paypal_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; #my $paypal_acc = "jeremyhlmclean\@yahoo.com"; #my $paypal_acc = "jeremy_1195331242_biz\@yahoo.com"; #my $paypal_acc = "jeremymclean\@gmail.com"; my $paypal_acc = "lyaaball\@comcast.net"; #my $page_url = "devreg.html"; my $page_url = "reg.html"; my $thanks_url = "https://www.hometeamzonline.com/lyaa/" . $page_url . "?action=pp"; my $ipn_url = "http://www.hometeamzonline.com/pp/ipn.php"; my $base_reg_url = "https://www.hometeamzonline.com/$org_url/" . $page_url; #my $paypal_acc = "jeremymclean\@gmail.com"; my $paypal_url = "https://www.paypal.com/cgi-bin/webscr"; #my $thanks_url = "https://www.hometeamzonline.com/$org_url/thanks.html?transaction="; $phone_example = "Format 847-999-9999"; ################################################################ ### This is the admin Sub routing for the home page ################################################################ sub main_thanks{ $failed_login = 0; ############################################################### ### Get paramters ############################################################### $page = param('page'); $sub = param('sub'); $coach = param('coach'); $newnews = param('news'); $title = param('title'); $date = param('date'); $update = param('update'); $obj_id = param('obj_id'); $month = param('month'); $year = param('year'); $day = param('day'); #$org_id = param('org_id'); $league_id = param('league_id'); $user = param('user'); $pass = param('pass'); $filter = param('filter'); $admin = param('admin'); $info_id = param('info_id'); $login = param('login'); $personal = param('personal'); $action = param('action'); $newemail = param('newemail'); ############################################################### ### Print Header ############################################################### %site_info = get_site_info($org_id); $site_info{"site_banner_image"} =~ s/\/home\/homete3\/public_html//; $site_info{"site_logo"} =~ s/\/home\/homete3\/public_html//; print header(); print_start_header_main(); print_style(); ############################################################### ### Print Body of HTML doc ############################################################### print <<__HTML__;
__HTML__ $active_id{"login"} = ""; $active_id{"create"} = ""; $active_id{"register"} = ""; $active_id{"verify"} = ""; $active_id{"pay"} = ""; #ADDED this portion to show logout feature. my $email = param('email'); my $pw = param('pw'); my $session_id = check_reg_login($email, "$pw"); if($session_id ne ""){ $transaction_id = param("transaction"); $valid = check_transaction_user($session_id, $transaction_id); }else{ $valid = 0; } print_top($session_id); #print_right_border($org_id); #print_menu($org_id); print_reg_info(); print "VALID: $valid| \n"; if($access_level == 1){ #print "Welcome, $valid_user{\"FIRSTNAME\"}\n"; ################################# ## If Admin ################################# if($access_level >= 3){ print " Control Panel\n"; } if($access_level >= 1){ #print " My Hometeamz\n"; print " Logout"; } }else{ #print "Login"; } print <<__HTML__; |
$site_info{"site_banner_text"} |
|
| ";
$html .= " Invalid Transaction You have tried to view a transaction you do not have permissions for or have been logged out of your account. Click HERE to return to the registration page. |
| ";
$html .= " Step 6 : Order Complete
Thank-you for registering for the Lakes Youth Athletic Association 2008 Season.\n Your order is complete. If you require any assistance with the online registration process, or have any general questions regarding LYAA registration, please contact the board by emailing board\@lyaa.org, or leaving a message at (847) 604-0270. \n"; $html .= "\n"; $html .= " |
| ";
$html .= " Step 6: Order Complete
\n"; $html .= " | ||||||||||||