Skip to content
This repository
tag: REL_5_7_5
Fetching contributors…

Cannot retrieve contributors at this time

file 84 lines (79 sloc) 1.406 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
AutoVariable <<EOF
DefaultShipping
DescriptionField
ImageDir
ImageDirSecure
MailOrderTo
PriceField
ProductFiles
ProductDir
SecureURL
VendURL
EOF

ifdef @UI
UserDB ui database access
UserDB ui crypt 1
UserDB ui time_field last_login
UserDB ui admin 1
UserDB default admin 0

#AdminSub <<EOR
#add_gpg_key
#backup_database
#backup_file
#check_upload
#db_columns
#db_hash
#directive_value
#dump_session
#export_database
#file_navigator
#global_value
#grep_mm
#if_mm
#import_fields
#list_databases
#list_glob
#list_keys
#list_pages
#mm_value
#read_shipping
#read_ui_template
#regenerate
#rotate_file
#row_edit
#substitute_file
#uneval
#unlink_file
#version
#widget
#with
#write_relative_file
#write_shipping
#EOR

ParseVariables Yes

ActionMap ui_download <<EOR
sub {
my $status;
$CGI->{mv_nextpage} =~ s:^ui_download/::;
$CGI->{mv_nextpage} .= $Session->{extension};
if($Tag->if_mm('files', $CGI->{mv_nextpage}) ) {
# Take care of MSIE brain damage
if($Session->{browser} =~ /msie/i) {
$Document->header("Content-type: application/x-foolmsie");
}
else {
$Document->header("Content-type: application/octet-stream");
}
$Document->hot(1);
HTML ( $Tag->file($CGI->{mv_nextpage}) );
$status = 0;
}
else {
$Scratch->{ui_error} = "Not authorized for file $CGI->{mv_nextpage}";
$CGI->{mv_nextpage} = '__UI_BASE__/error';
$status = 1;
}
return $status;
}
EOR

endif
Something went wrong with that request. Please try again.