rlm@0:
rlm@0: ";
rlm@0:
rlm@0: return $r;
rlm@0: }
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0: sub inputbox
rlm@0: {
rlm@0:
rlm@0: #grab the type of template we'll be using <<<<
rlm@0: $type = shift;
rlm@0: # return $type;
rlm@0: # we have to care about both the type of template and the material and the color. these are stored in $type>>>>
rlm@0:
rlm@0: #Then, update with a special custon paypal form, taken from the paypal folder and specially designed for that particular template.
rlm@0: #will probaly eventually create a script to automate the generation of these files.
rlm@0:
rlm@0:
rlm@0: #take care of everythign but acrylic clear type
rlm@2:
rlm@2:
rlm@2:
rlm@2: {
rlm@2: local( $/, *FH ) ;
rlm@2: open( FH, "<./paypal/$type.paylist" ) or die "sudden flaming death\n";
rlm@2: $z = ;
rlm@2: }
rlm@0:
rlm@0:
rlm@0: #every type has it's own associated paylist file the contains the things we need
rlm@2:
rlm@4: $z = '
';
rlm@2: return $z;
rlm@2:
rlm@2:
rlm@0:
rlm@0:
rlm@0:
rlm@0: }
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0: sub display
rlm@0: {
rlm@0: $all = shift;
rlm@0:
rlm@0:
rlm@0:
rlm@2: $t ="
rlm@16:
rlm@0: ";
rlm@0: return $t;
rlm@0:
rlm@0: }
rlm@0:
rlm@0:
rlm@0:
rlm@0:
rlm@0: sub gen
rlm@0: {
rlm@0: {
rlm@0: local( $/, *FH ) ;
rlm@0: open( FH, "<./buy.html" ) or die "sudden flaming death\n";
rlm@0: $a = ;
rlm@0: }
rlm@0:
rlm@0: {
rlm@0: local( $/, *FH ) ;
rlm@0: open( FH, "<./top_menu.include" ) or die "sudden flaming death\n";
rlm@0: $b = ;
rlm@0: }
rlm@0:
rlm@2:
rlm@2:
rlm@2: $a =~ s/PERL-REPLACE::TOP_MENU/$b/; #equivalent to , but in perl and with more memory problems :)
rlm@2: $b = &material("void_acrylic_clear",1);
rlm@2: $a =~ s/PERL-REPLACE::MATERIALS/$b/; #let's do it again!!! :)
rlm@2: $b = &template("classic_acrylic_clear");
rlm@2:
rlm@16: #$a =~ s/PERL-REPLACE::TEMPLATES//;
rlm@16: $a =~ s/PERL-REPLACE::TEMPLATES/$b/; #comment out one or the other!
rlm@2:
rlm@2:
rlm@18: $b = &display("classic_acrylic_clear");
rlm@18: $a =~ s/PERL-REPLACE::DISPLAY/$b/; #let's do it again!!! :)
rlm@18:
rlm@18: $b = &inputbox("classic_acrylic_clear");
rlm@18: $a =~ s/PERL-REPLACE::INPUTBOX/$b/; #let's do it again!!! :)
rlm@0:
rlm@0: return $a
rlm@0:
rlm@0:
rlm@2: }
rlm@0:
rlm@0:
rlm@2:
rlm@2: sub pokedex
rlm@2: {
rlm@2:
rlm@2: my $key = shift;
rlm@2:
rlm@2: return $key;
rlm@2:
rlm@2:
rlm@2: }