EOF #------------------------------------------------------------------------------ setup $uid=(split(/\//,$htx))[1]; $HTTP_REFERER{(split "=",$_)[0]}=(split "=",$_)[1] for (split "&",$_HTTP_REFERER); $pic_bp_ico="\"\""; $pic_on_work=""; $path=""; $_error=""; $datum=datum("jetzt","Tag0.Monat0.Jahr"); $bp_office="bp-Office"; #---------------------------------------- sub sub login {my $form=""; $form="
"; $form.=""; $form.=""; $form.=""; $form.=" Kennung: "; $form.=" Passwort: "; $form.="
"; return($form);} sub action {$filetype=$_[0]; $action=$_[1]; $value=$_[2]; my $style="color:#000000;" if($action eq "$cmd"); my $form=""; $form="
"; $form.=""; $form.=""; $form.=""; $form.=""; $form.=""; $form.=""; $form.="" ; $form.="" if($action eq "new"); $form.="
"; return($form);} sub logout {my $form=""; $form="
"; $form.=""; $form.="
"; return($form);} sub main_opt {my $form=""; my $color=($_get{dir} eq "" ? "#d80000;font-weight:bold":"#000000"); $form="
"; $form.=""; $form.=""; $form.="
"; return($form);} sub no_null_end {my $field=$_[0]; $field =~ s/\s*\Z//; return($field);} sub check_filename {my $file=$_[0]; my $error=""; $error.="Sonderzeichen, Umlaute und Leerzeichen sind nicht erlaubt!" if ($file =~ /[^\w]/); return($error);} sub check_filesize {my $file=$_[0]; my $size=length($file)/1000; my $filesize=sprintf('%.2f',$size); # KB auf 2 nachkommastellen return($filesize);} #------------------------ ende sub if($cmd eq "login") { if($_get{upw} eq $pw and $_get{use} eq $ke) { $USER{upw}=$pw; $USER{use}=$ke; $USER{uid}=$_get{uid}; $_session{user}= serial %USER; %MENU=eval get "http://baseportal.de/files/bei123/menu.txt"; $_session{menu}= serial %MENU; } } #------------------------------ User %USER = eval $_session{user}; %MENU = eval $_session{menu}; if($USER{uid} eq "") {$LOG=&login(); } else {$LOG=&logout(); $MAIN=&main_opt(); if($_get{menu} ne "") {%PROG = eval $_session{prog}; if($PROG{file} eq "") {my $file=$MENU{$_get{menu}}; @code= get "$file"; $PROG{file}="out< 2.bp-Office $uid ::: Alles aus baseportal herausholen bei123.de - © 2007 www.bei123.de

$MAIN$LOG $datum
$OPT EOF #MENU if($USER{uid} ne "") {&{$CMD_MENU{$filetype}}($filename,$cmd) if($filetype ne "");} out<
$USER{uid}/$path $_error
EOF #CONTENT if($USER{uid} ne "") { if($filetype ne "") { &{$CMD_CONTENT{$filetype}}($filename,$cmd); } out "

$bp_office Programmauswahl

Bitte wählen Sie ein Programm aus!" if($filetype eq ""); outl dump(%HTTP_REFERER); } else { out "

$bp_office Willkommen !

Bitte mit Kennung und Passwort anmelden!
"; outl dump(%HTTP_REFERER); outl dump(%_get); } out "
"; out "$pic_bp_ico Version: $_version - Ausführungszeit: ".runtime."

Demo bp-Office von H.Fehde, © 2007 - www.bei123.de

"; out "
"; out<