Vis: baseportal0.pl
Retour
#!/usr/bin/perl
#
#---
#
# (c) baseportal GmbH - Alle Rechte vorbehalten.
# info@baseportal.de - http://baseportal.de
#
# - Diese Software ist, sowohl von Gesetzen zum Urheberrecht und
# internationalen Urheberrechtsvertraegen, als auch von anderen
# Gesetzen und Vertraegen zum Schutz geistigen Eigentums geschuetzt.
#
# - Die Software wird lizenziert, nicht verkauft. Alle Rechte bleiben
# der Baseportal GmbH vorbehalten.
#
# - Das Anfertigen von Kopien ist nur fuer Sicherungszwecke zulaessig.
# Das Vermieten oder Verleasen bedarf der ausdruecklichen,
# schriftlichen Zustimmung durch die Baseportal GmbH. Im Uebrigen darf
# der Kunde die Software weder als Ganzes noch in Teilen Dritten
# zugaenglich machen.
#
# - Es ist nicht gestattet, die Software zu dekompilieren, zu
# analysieren, zu aendern, nachzuahmen oder von der Software
# abgeleitete Produkte herzustellen.
#
# - Die Nutzung ueber etwaige vereinbarte Beschraenkungen (Nutzungsdauer,
# maximale Datenmenge o.ae.) hinaus ist nicht erlaubt, ebenso das
# Aufheben oder Umgehen entsprechender in der Software enthaltenen
# Sperren.
#
# - Eine bewusste oder fahrlaessige Verletzung dieser Urheberrechte kann
# erhebliche Schadenersatzforderungen ausloesen.
#
#---
#
# (c) baseportal GmbH - All rights reserved.
# info@baseportal.com - http://baseportal.com
#
# - This software is protected by copyright laws and international
# copyright treaties, as well as other intellectual property laws
# and treaties.
#
# - The software is licensed, not sold.
#
# - baseportal grants you the right to install and use a copy of this
# software on a single computer. A license for the software may NOT
# be shared or used concurrently on different computers.
#
# - You may copy the software ONLY for backup and archival purposes.
#
# - You may NOT modify, reverse engineer, decompile, or disassemble or
# otherwise attempt to reconstruct or discover the source code of the
# software, except and only to the extent that such activity is
# expressly permitted by applicable law notwithstanding this
# limitation.
#
# - You may NOT rent, lease, or lend the software.
#
# - This license is for your personal use only. You may NOT permit other
# individuals to use the private domain or the internal database
# functionality of the software.
#
# - You are NOT allowed to offer services, which are based on this
# software and stand in competition to the baseportal service at
# http://baseportal.com
#
#---
package baseportal;
$_data="$ENV{DOCUMENT_ROOT}/bp-data_0";
$_files="/bp-files_0";
$_files_dir="$ENV{DOCUMENT_ROOT}/bp-files_0";
$_html="$ENV{DOCUMENT_ROOT}";
$_pics="/bp-pics";
$_zip="/usr/bin/zip";
$_unzip="/usr/bin/unzip";
$_sendmail="/usr/lib/sendmail";
$_password="bokYGRRtxa5PA";
$_email="info\@$ENV{SERVER_NAME}";
$_language="de";
# - Das bedeutet unter anderem: SIE DUERFEN JETZT NICHT WEITERLESEN !!
use Fcntl;use Socket;use Time::Local;use Scalar::Util ();
BEGIN { eval { require Image::Magick; import Image::Magick @LIST }; $_imagemagick_no=$@ ne ""; };$_bplogcpu=1; $|=1;$_domain_name=$_server_name=$ENV{HTTP_HOST} || $ENV{SERVER_NAME};$_domain_name=~ s/^(www\.)?((de|en|es|fr)\d*\.)?(www\.)?//i;undef $_baseportal_com;$_baseportal_com=$_server_name=~ /com$/i;$_get{language}=$_language; $_baseportal_com=$_language eq "en";
&set_language_main();&set_language();sub uc { my $x=$_[0]; $x=~ tr/a-z�/A-Z���/; $x=~ s/�/SS/g; $x }sub lc { my $x=$_[0]; $x=~ tr/A-Z���/a-z�/; $x }$_sortsub_de=\&sortsub_de;
$_sortsub_DE=\&sortsub_DE;sub sort_de { sort $_sortsub_de @_ }sub sort_DE { sort $_sortsub_DE @_ }sub sortsub_de{ my($c,$d)=($a,$b); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; uc($c) cmp uc($d) || $c cmp $d || uc($a) cmp uc($b) || $a cmp $b || 1;}sub sortsub_DE{
my($c,$d)=($a,$b); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; $c cmp $d || $a cmp $b || 1;}sub cmp_de{ my($c,$d)=@_; $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; uc($c) cmp uc($d) || $c cmp $d || uc($_[0]) cmp uc($_[1]) || $_[0] cmp $_[1];}sub cmp_DE{ ($c,$d)=($a,$b); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g;
$c cmp $d || $_[0] cmp $_[1];}$_msie=$ENV{HTTP_USER_AGENT}=~ /msie.*?win/i;$_mozilla=$ENV{HTTP_USER_AGENT}=~ /mozilla\/5/i;
$_version_types=3;$_color1="c0d0f0";$_color2="e0e0e0";$_color3="f0f0f0";
sub runtime { return sprintf "%.2f", (times)[0]-$_times_start; }sub logfile { open(LOGFILE, ">>$_data/logfile"); print LOGFILE "@_\n"; close LOGFILE; }
sub set_cookies{ my($c,$s,$cx); foreach $c (@_) { $cx=$c;
$s=($cx=~ s/^\*//)?0:1; $s=0 if $cx=~ /^[^=]*=$/; $_cookies.="Set-Cookie: $cx;"; $_cookies.=" expires=Wed, 12 Jun 2030 04:36:05 GMT;" if $s && index($cx,"; expires=")<0; $_cookies.="\n"; }}sub init; sub lock; sub unlock; sub unlock_error;sub put; sub mod; sub del; sub get; sub chg;sub sortsub; $_sortsubadress=\&sortsub;
sub sortindex; $_sortindexadress=\&sortindex;sub error; sub terminate;sub reorg; sub check_reorg; sub get_id; sub datum; sub date;sub convert_dbout; sub convert_dbput; sub convert_br; sub convert_html; sub convert_quote; sub convert_url; sub convert_links; sub convert_xml;sub encode_base64; sub decode_base64;sub form; sub dolink; sub submit; sub link2all;sub text; sub textarea; sub hidden; sub file; sub checkbox; sub radio; sub option;sub user_form; sub user_put; sub user_get; sub user_del;sub login; sub login_main; sub login_lostpw; sub logout;
use subs 'pipe';sub run; sub loop; sub list; sub query; sub _copy; sub zip; sub unzip; sub out_dir; sub get_dirs;sub parse; sub tags; sub include;sub get_next; sub copy_db; sub copy; sub move;sub password; sub set_language; sub do_all; sub do_list; sub do_login; sub do_chat; sub mail; sub webedit; sub imageedit;sub _get_page; sub _get_db; sub _get_dir; sub _get_dirs;sub _put_page; sub _put_db;
sub _mod_page; sub _mod_db;sub _del_page; sub _del_db;sub mod_serial; sub _mod_serial;sub php;sub serial; sub dump; sub dumpx; sub unserial;sub _mod_image; sub _get_image;sub split_deli;sub out { $_out.=join $, , @_; }sub outxx { print $_header.join($, , @_)."<br/>"; $_header=""; }
sub outx { $_outx.=join($, , @_)."<br/>"; }sub outl { $_out.=join($, , @_)."<br/>"; }sub outf { $_out.=sprintf shift, @_; }sub soutf { return sprintf shift, @_; }sub outp { $_out.=parse(join $, , @_); }sub die { $_exit=join $, , @_; }sub tout{ my($tx, $ty, $cp, $wd)=@_; my($t1,$t2); $cp||=4; $wd||="94%";
if(ref $ty){ foreach (@$ty) { $t2.="<td nowrap align=middle width=8%> $_ </td>"; }} elsif($ty) { $t2="<td align=middle width=10% nowrap> $ty </td>"; } $_out.="</ul><center><table cellspacing=4 width=$wd cellpadding=$cp class=titleline><tr><td>$t1 <span class=title>$tx </span></td>$t2</tr></table></center><ul>";
}sub lock{ my($file,$cnt3)=@_; return 1 if 0; $file||=$_db; $file="$_data$_adir$file"; sysopen($file, "$file.lock", O_RDWR|O_CREAT) or return;
flock $file, ($cnt3?1:2) or return; return 1;}sub unlock{ my($file)=@_; return 1 if 0; $file||=$_db; $file="$_data$_adir$file";
close($file) or return; return 1;}sub unlock_error{ my($no,$error,$file)=@_; $file||=$_db; $file="$_data$_adir$file"; unlock unless $no; return error($error || 'error_access', $file);
}sub xlock{ my($file, $cnt3)=@_; return 1 if 0; my($cnt);return 1; if($cnt3 & 8) {
close _XLOCKFILE; } else { sysopen(_XLOCKFILE, "$file.lockx", O_WRONLY|O_CREAT) or return error('unable_lock', "$file.lockx"); flock _XLOCKFILE, 2; } return 1;}
sub xeval{ my($code, $return, $precode)=@_; return $return if $code eq ""; if(ref($code) eq "CODE") { &$code; } elsif(1 || $_su || $_run_safe) {eval($code);
} else { $@=""; local $_run_safe=1; $_safe->reval("\@_=();$precode$code"); }}sub pipe{$_z++;CORE::pipe $_[0], $_[1]}
$_list{list}={ first => sub { if(($_rights{$_run.$_db}{del} ne "" || $_rights{$_run.$_db}{mod} ne "") && $_get{raw} ne "yes" && (index(",$_filter2,",",_action,")<0 || $_neg2)) { if($_[0]) { push @_fields, "_action" } else { unshift @_fields, "_action" }
$_filter2.=",_action" if($_filter2 && !$_neg2); } }, row => sub {"<tr".$_databack[$_loop%2].">$_col</tr>\n" }, table => sub { if (!$_get{class}){
my $hb=$_get{headback}; $hb=$_get{databack} || $_color1 unless defined $hb; $hb=($hb eq "-"?"":" bgcolor=$hb"); '<table cellpadding=0 cellspacing=0 border='.($_get{border} eq ""?"0":$_get{border}).($_get{gridcolor} eq ""?" bgcolor=$_color3":($_get{gridcolor} eq "-"?"":" bgcolor=$_get{gridcolor}")).'><tr><td><table border=0 cellspacing='.($_get{spacing} eq ""?"2":$_get{spacing}).' cellpadding='.($_get{padding} eq ""?"4":$_get{padding}).'><tr'.$hb.">$_head</tr>$_row</table></td></tr></table>" }else { "<table><tr><td><table class=list cellspacing=".($_get{spacing} eq ""?"2":$_get{spacing}).' cellpadding='.($_get{padding} eq ""?"4":$_get{padding}).">\n<tr>$_head</tr>\n$_colgroup\n$_row\n</table></td></tr></table>" } },outpul => { _action => sub { shift @{$_list{all}{output}{"_def"."au1t"}} ^ $_list{list}{outpul}{_action} } },
colgroup => sub {if($_get{class}){$_=$_field; $_=~ tr/A-Za-z_0-9/_/c; "<col class=$_>"}}, head => sub { $_=$_field; my $tdp=$_tdparam; if(!$_get{class}){ my($hf,$hc,$hs)=($_get{headface},$_get{headcolor},$_get{headsize}); $hf=$_get{dataface} unless defined $hf; $hc=$_get{datacolor} unless defined $hc; $hs=$_get{datasize} unless defined $hs;
$_="<b>$_</b>" if $_get{headbold}; $_="<font face=$hf>$_</font>" if $hf; $_="<font color=$hc>$_</font>" if $hc; $_="<font size=$hs>$_</font>" if $hs; $tdp.=" align=$_get{headalign}" if $_get{headalign}; }else{$tdpd=~ s/ align=right//g;} if(defined $$_db{_fnr}{$_field} && $$_db{_sort}[$$_db{_fnr}{$_field}] && ($_get{showsort} eq "*" || index("$_get{showsort},","$_field,")>=0)) { my($xx, $yy, $z1, $z2); $z1=index("$_get{sort},","$_field,"); $z2=index($_get{sort},"-");
$yy=($z1>=0 && ($z2<0 || $z2!=$z1-1))?"-":""; $xx="&sort=$yy$_field" if $z1<0 || $yy; if($z1>=0) { $_="<b>$_</b>"; $yy=!$yy; } else { $yy=0; } $_="<a href=\"$_linkc$xx\">$_</a>"; $_.=" ^" if $yy; } $_get{class} ? "<th$tdp>$_</th>": "<td$tdp>$_</td>"; }, col => sub {
my $tdp=$_tdparam; $_=$_field eq $_keyfield && $_get{detail} ne "no"?"...":" " if $_ eq ""; $_='<a href="'.$_linkc.'&cmd=all&Id='.$_id.'">'.$_.'</a>' if $_id ne "" && $_field eq $_keyfield && $_get{detail} ne "no"; if (!$_get{class}){ $tdp.=" align=right" if $_field eq "Id"; $_="<font face=$_get{dataface}>$_</font>" if $_get{dataface}; $_="<font color=$_get{datacolor}>$_</font>" if $_get{datacolor}; $_="<font size=$_get{datasize}>$_</font>" if $_get{datasize}; $tdp.=" align=$_get{dataalign}" if $_get{dataalign}; } "<td$tdp>$_</td>";
}, output => { _default => sub { my $l=$_get{maxlistlength}; if($l) { $_=substr($_,0,$l+2); my $c=index($_,";",$l);
$_=substr($_,0,$c) if($c>0); $_.="..." if length($_)>$l; } $_; }, _action => sub { my($f1,$f2,$f3); if (!$_get{class}){ $f3=$_get{datasize}-2;$f3=1 if $f3<1;
$f1.="<font size=$f3>"; $f2.="</font>"; } my $o=""; $o='<a href="'.$_linkc.'&Id='.$_id.'&cmd=do_mod">'.$_text{modify}.'</a>' if $_rights{$_run.$_db}{mod} ne ""; my $pwf=$$_result{$$_db{_field}[$$_db{_user_pre_fnr}]}[$_loop]; my $keyfield=$_keyfield; $keyfield=$$_db{_field}[1] if $keyfield eq ""; $keyfield=$$_result{$keyfield}[$_loop]; my $oup='do_del'; $oup='del" onclick="return confirm(\''.$_text{confirm_delete}.": ".convert_quote($keyfield).'?\')' if $$_db{_user_pre_fnr} eq "" || $_in_main || $_rights{$_db}{db} ne "" || $pwf eq ""; $o.=($o?" | ":"").'<a href="'.$_linkc.'&Id='.$_id.'&cmd='.$oup.'">'.$_text{delete}.'</a>' if $_rights{$_run.$_db}{del} ne ""; ($_in_main || $$_db{_user_pre_fnr} eq "" || $_rights{$_db}{db} eq "" || index(",$$_db{_user_pre},$pwf,",",$_user,")>=0) && $o ne ""?"$f1$o$f2":"";
} }};$_list{all}={ first => sub { &{$_list{list}{first}}(1) }, row => sub { $_col.($_loop<$_loop_end-1?"<tr><td height=".($_get{spacing})."></td></tr>":"") },
_default_table => sub {'<table cellpadding=0 cellspacing=0 border='.($_get{border} eq ""?"0":$_get{border}).($_get{gridcolor} eq ""?" bgcolor=$_color3":($_get{gridcolor} eq "-"?"":" bgcolor=$_get{gridcolor}")).'><tr><td><table border=0 cellspacing='.($_get{spacing} eq ""?"2":$_get{spacing}).' cellpadding='.($_get{padding} eq ""?"4":$_get{padding}).">$_row</table></td></tr></table>"}, table => sub {$_get{class} ? "<table><tr><td><table class=detail>$_row</table></td></tr></table>" : &{$_list{all}{_default_table}}}, col => sub {{ $_=" " if $_ eq ""; my $f="$_field".(index($_set,"nocolon")<0?":":""); if (!$_get{class}){ $_tdparam=~s/align=.+\b//;
my $tdpd=$_tdparam; $_="<font face=$_get{dataface}>$_</font>" if $_get{dataface}; $_="<font color=$_get{datacolor}>$_</font>" if $_get{datacolor}; $_="<font size=$_get{datasize}>$_</font>" if $_get{datasize}; my $hb=$_get{headback}; $hb=$_get{databack} || $_color1 unless defined $hb; $hb=($hb eq "-"?"":" bgcolor=$hb"); $tdpd=~ s/ align=right//g; $tdpd.=" align=$_get{dataalign}" if $_get{dataalign}; my($hf,$hc,$hs)=($_get{headface},$_get{headcolor},$_get{headsize}); $hf=$_get{dataface} unless defined $hf;
$hc=$_get{datacolor} unless defined $hc; $hs=$_get{datasize} unless defined $hs; $f="<b>$f</b>" if $_get{headbold}; $f="<font face=$hf>$f</font>" if $hf; $f="<font color=$hc>$f</font>" if $hc; $f="<font size=$hs>$f</font>" if $hs; my $tdph=$_tdparam; $tdph.=" align=".($_get{headalign} || "right"); "<tr><td$hb$tdph>$f</td><td$tdpd".($_databack[$_loop%2]).">$_</td></tr>"; }else{ my $class = $_field; $class =~ tr/A-Za-z_0-9/_/c;
"<tr><th$tdpd>$f</th><td$tdpd class=$class>$_</td></tr>\n"; }} }, output => { _defau1t => 't~b!~p,wb}amt~b!wbpdw:(+uie%owar', _action => ${$_list{list}{output}}{_action} }
};$_list{text}={ row => sub { "$_col\n" }, table => sub { $_row }, col => sub { "$_field: $_\n"; }};$_list{checkfiles}={
first => sub { $_con=":="; }, col => sub { my $x; $x=" align=right" unless $_field eq $_text{name}; $x=" align=middle" if $_field eq $_text{selection}; local $_tdparam=$x; &{$_list{list}{col}} }, head => $_list{list}{head}, row => $_list{list}{row}, table => sub { &{$_list{list}{table}}.'<script type="text/javascript">function b(x){a=document.new_archive.elements;for(i=0;i<a.length;i++) a[i].checked=x}</script><font size=1> <a href="" onclick="b(true);return false">'.$_text{all}.'</a> | <a href="" onclick="b(false);return false">'.$_text{none}.'</a></font>' }, output => { $_text{selection} => sub{ checkbox $_bibvalue }, Auswahl => sub{ checkbox $_bibvalue },
Selection => sub{ checkbox $_bibvalue }, $_text{name} => sub { ($utyp>=0?'<img src="'.$_pics.'/'.("pr","db","tp", "", "zip","","pic")[$$_result{$_text{type}}[$_loop]].'.gif" border=0 width=20 height=16 align=middle>':"").'<a href="'.$_linkb.'&Id='.$_.'&type='.$$_result{$_text{type}}[$_loop].'" target="_blank">'.$_.'</a>' } }};$_list{all}{output}{unpack"u", "(7V1E9F%U,70`"}=[($_list{all}{output}{unpack"u", "(7V1E9F%U,70`"}^"D"x32)=~m/..../g];$_list{files}={ col => sub { local $_tdparam=" align=right" unless $_field eq $_text{name};
$_=" $_ "; &{$_list{list}{col}} }, head => sub { $_field=" $_field "; &{$_list{list}{head}} }, col2 => '<td>$_field</td>'.&td("align=right", $_name), row => $_list{list}{row}, table => $_list{list}{table}, output => { $_text{name} => sub { ($utyp>=0?'<img src="'.$_pics.'/'.("pr","db","tp", "", "zip","","pic")[$$_result{$_text{type}}[$_loop]].'.gif" border=0 width=20 height=16 align=absmiddle>':"").'<a href="'.$_link.$_linkr.$_linko.$_links.'&Id='.$_.'&type='.$$_result{$_text{type}}[$_loop].'">'.$_.'</a>' }
}};$:=qq{)[(B;IMF:\@,6=MPF(MX%7/};pipe;$_list{form}={
_default_first => sub { $$_result{_amount}=$_amount || 1;$_mem_gridcolor=$_get{gridcolor};$_mem_databack=$_get{databack};$_get{gridcolor}="-" if $_get{gridcolor} eq "";$_get{databack}="-" if $_get{databack} eq "";},last => sub {$_get{gridcolor}=$_mem_gridcolor;$_get{databack}=$_mem_databack;}, first => sub { &{$_list{form}{_default_first}}; $_con||="="; undef $_nset; },
table => sub {$_get{class} ? "<table><tr><td><table class=form>$_row</table></td></tr></table>" : &{$_list{all}{_default_table}}}, row => sub { local $_get{Id}=$_id if $_mode; out '<tr><td>'.form(@_params).'<table cellspacing="2" cellpadding="4">'.$_col.'<tr><td></td><td nowrap>'.submit.'</td></tr></table></form></td></tr>'; }, col => sub { if($_form)
{ if($_mode & 1) { $_value=$_; } elsif($_mode & 6) { $_value=$_put{$_field}; } my $fieldout=$_field; if(index($_field,"=")>0) { ($_field,$fieldout)=$_field=~ /^(.*?)=(.*)$/; } $_=$_field; $_set="";
$_value_raw=$_value; $_value=convert_html($_value) if $_value ne ""; $_=convert_html($_,1); $_=xeval($_form); if(defined $_) { local $_field=$fieldout; $_=&{$_list{all}{col}}; s#^<tr><td[^>]*>(.*?)</td><td[^>]*>#$1 # if $_nset;
if(index($_set,"nobreak")>=0) { $_nset=1; s#</td></tr># # } else { $_nset=0; }
out $_; } } }};$_list{formx}={ first => $_list{form}{first},
last => $_list{form}{last}, table => $_list{form}{table}, row => sub { local $_get{Id}=$_id if $_mode; out form(@_params).$_col; }, col => $_list{form}{col},};$_list{formy}=
{ first => $_list{form}{first}, last => $_list{form}{last}, table => $_list{form}{table}, row => sub { local $_get{Id}=$_id if $_mode; out $_col; }, col => $_list{form}{col},};
$_list{search}={ first => sub { &{$_list{form}{_default_first}}; $_con||="~="; }, last => $_list{form}{last}, row => $_list{form}{row}, table => sub {$_get{class} ? "<table><tr><td><table class=search>$_row</table></td></tr></table>" : &{$_list{all}{_default_table}}}, col => sub {
$_form||='text' if $_field eq "Id"; if($_form && $$_db{_sort}[$_fnr]) { $_value=$_sel{$_field}; $_value=convert_html($_value) if $_value ne ""; $_=$_field; $_=convert_html($_,1); $_=xeval($_form); out &{$_list{all}{col}}; } return;
}};$_list{fform2}={ first => sub { &{$_list{form}{_default_first}}; $_con=":="; unshift @_fields, $_text{pos}, $_text{field_name}; $_paramc=0; }, last => $_list{form}{last}, row => sub
{ local $_get{Id}=$_id if $_mode; out form(@_params).$_col.'<tr><td></td><td nowrap>'.submit.'</td></tr></form>'; }, col => sub { if($_field ne "Transform" && $_field ne "Description" && $_field ne "Id" && $_form) { $_value=$_values[$_paramc++]; $_value=convert_html($_value) if $_value ne ""; $_=$_field; $_=convert_html($_,1);
$_set=""; my $r=xeval($_form); if(defined $r) { unless($_nset) { my $t= "<font size=2 face=arial,helvetica>" unless $_get{class}; out "<tr><td colspan=2><fieldset><legend>$1</legend><table><tr><td align=right>" if $_set=~/startgroup[:]*(.+)/; out "<tr><td align=right>$t";
$r="<td>$t$r"; } out $_field.(index($_set,"nocolon")<0?":":"") if index($_set,"nofield")<0; out $_nset?" ":"</td>"; if(index($_set,"nobreak")<0) { $_nset=0; $r.="</td></tr>"; } else { $_nset=1; $r.=" "; } out $r; out "</td></tr></table></fieldset>" if index($_set,"stopgroup")>=0; }
} }, output => { _action => sub { $__rights{$_run.$_db}{mod} ne ""?'<font size='.(${_get{datasize}}?${_get{datasize}}-1:1).'><a href="'.$_linkc.'&Id='.${_id}.'&cmd=do_mod">'.&{modify}.'</a> | <a href="'.$_linkc.'&Id='.$_id.'&cmd=del" onclick="return confirm(\''.{$_text{confirm_delete}}.": ".convert_quote($$_result{$_keyfield}[$_loop]).'?\')">'.$_text{delete}.'</a></font>':(&{modify}?"":$__rights{$_run.$_db}); }, Pos => sub { $_form='option(\@_maxids, undef, undef, $_text{new}, "Id", ":=")' }, Feldname => sub { $_form='text(15, undef, "Feldname")' }, "Field name" => sub { $_form='text(15, undef, "'.$_text{field_name}.'")' }, "Nombre del campo" => sub { $_form='text(15, undef, "'.$_text{field_name}.'")' }, "Nom du champ" => sub { $_form='text(15, undef, "'.$_text{field_name}.'")' }
}};
$-=chr$_--=>@[[$-,$_]=@[[$_,$-]for(reverse+1..(@[=split//=>substr($_list{list}{col},$|,3)=>@]));+(map{$_=$_^q^"^}@[);3 && & {@{[(@[)]}[$@]}.&{@[[@[-1]};$_list{add}={ first => sub { &{$_list{form}{_default_first}}; $_con||=":="; $_mode||=4 if $_errmsg; }, last => $_list{form}{last}, table => $_list{form}{table}, row => $_list{form}{row}, col => $_list{form}{col}
};$_list{mod}={ first => sub { &{$_list{form}{_default_first}}; $_con||=":="; $_mode||=($_errmsg?4:1); unshift @_params, "Id"}, last => $_list{form}{last}, table => $_list{form}{table}, row => $_list{form}{row}, col => $_list{form}{col}};
$_list{del}={ first => sub { unshift @_fields, $$_db{_field}[$$_db{_user_pre_fnr}]; $_col_pre="" }, table => sub { $_col_pre.&{$_list{all}{table}} }, row => $_list{all}{row}, col => sub { if($_field eq $_fields[0]) { return if $_col_pre ne "";
local $_params=' style="padding:0px;margin:0px"'; my $fn=$$_db{_field}[$$_db{_user_pre_fnr}]; my $fnc=$fn; $fnc=~ s/"/"/g; $_col_pre="<table><tr><td>$fn:</td><td>".form("Id", "cmd=del", "htx", "uid", "sid")."<input name=\"fpw=\" type=password></td><td><input type=submit value=\"$_text{delete}\"></form></td></tr></table><br>"; return; } &{$_list{all}{col}} }}; $_list{chg}=
{ first => sub { &{$_list{form}{_default_first}}; $_con||=":="; $_mode||=($_errmsg?4:1); unshift @_params, "Id"}, last => $_list{form}{last}, row => sub { local $_get{Id}=$_id if $_mode; out form(@_params).$_col.'<tr><td></td><td nowrap>'.submit.'</td></tr></form>'; }, col => sub { $_=" " if $_ eq ""; $_="<font face=$_get{dataface}>$_</font>" if $_get{dataface}; $_="<font color=$_get{datacolor}>$_</font>" if $_get{datacolor}; $_="<font size=$_get{datasize}>$_</font>" if $_get{datasize}; my $hb=$_get{headback}; $hb=$_get{databack} || $_color1 unless defined $hb; s/.*/'sub '.$lllIl.'{goto &{$lllIl{substr($$lllIl,rindex($$lllIl,":")+1)}||"lllIl"};}';/ee; $hb=($hb eq "-"?"":" bgcolor=$hb"); my $tdpd=$_tdparam; $tdpd.=" align=$_get{dataalign}" if $_get{dataalign}; } };$_list{fieldlist}={
first => sub { &{$_list{list}{first}}; $_keyfield=""; }, colgroup => $_list{list}{colgroup}, row => sub { "<tr".$_databack[1-$_loop%2].">$_col</tr>" }, table => $_list{list}{table}, head => sub { my $x=""; $x=$_text{field} if $_field eq "Field"; $x=$_text{sorting} if $_field eq "Index"; $x="#" if $_field eq "Id";
$x=$_field if $_field eq $_text{action}; $x=$_text{type} if $_field eq "Type"; if($x) { local $_field=$x; $x=&{$_list{list}{head}}; } if($_field eq "Type") { local $_field=$_text{parameters}; $x.=&{$_list{list}{head}}; } out $x if $x; }, col => sub { if($_field eq "Field" || $_field eq "Index" || $_field eq "Id" || $_field eq $_text{action})
{ &{$_list{list}{col}}; } elsif($_field eq "Params" && $_ ne "") { my($p,$xo,$usercnt,$optype,$smallx,$txtdir,@pars); @pars=split "#", $_;
$usercnt=shift @pars; $optype="/$usercnt" if $usercnt; $smallx=shift @pars; $txtdir=$usercnt; $txtdir.="/" if $usercnt; map { s/\\k/#/g; s/\\s/\\/g; } @pars;
local $_db;
if(-e "$_data/$_types"."_$_language$_version_types$optype/${smallx}.fields") { init "/_types"."_$_language$_version_types$optype/$smallx",4;} else{ $xo="?????";} for(my $i=0; $i<@{$$_db{_field}}; $i++) { $p=$$_db{_field}[$i];
if($p ne "Id" && $p ne "Transform" && $p ne "Field" && $p ne $_text{field_name}) { $_=shift @pars; if($_ ne "" && $p ne $_text{sorting}) { local $_out; $_=eval($$_db{_get}[$i]) if $$_db{_get}[$i] ne ""; $_=defined $_out?$_out:$_; $xo.="$p=$_, " if $p ne ""; } }
} chop $xo; chop $xo; $_=$txtdir.$smallx; my $x=&{$_list{list}{col}}; $_=$xo; $_=$x.&{$_list{list}{col}}; } }, output => { _action => $_list{list}{output}{_action} }
};$:=qq{)`L3*LT'(M-W9A1W>T5V9.)?1"+M7&9[1]9GM%7\@,W9A1'([!B8U-'(\@`"(\@`B/M`"(B,W9A1W]B`"(\@`"(_)\@`"(LT'(I\$#(LTW<G%&=[1]9GM%7\@P2?C7W<[1]9GM%7H\@]9D5';CY6:FTC+_)T5W;?1"([!B8U-'(\@`"(\@X3/B4&9UQV8NEV]B`"(\@`"(\@`"(LT'([T'=RM&<_)X5V>T5V9?1"(LT'=RM&<_EV>T5V9?1"(L\\%7\@`':PUC+T5W;?1"([!B8U-'(_)\@`"(\@`B/M`"(B`':P7"(\@`"(\@`"(\@P2?\@L#0D`B9I!"0D`"+E=68PM%7\@PR7_)L7]9PME<O7G<E="(RMF<R5&([(B(MX6=RM%7\@L3*B(B.BLC;I%6;\@4V9A_V8_)A!G(\n4&9UQV8NEV]D\@"(L869DY6=\@PR]D`";A9]9X!R.BHB(MX6=RM%7\@L'(_)B5W<\@`"(\@`"(^T#(BPF<E!G(\@PB<EYF;A7V]G%&=FP%(\@`"(\@`B/M(B<EYF;_)A7V]B`"(\@`"(\@`"(LT'(\@`"(\@`"(\@`"(\@`"(\@`"(\@`"(\@`"(\@`2?\@L3*HX6:_)GM&;?M&9F`R>\@DB(NEV9OQF(\@\$]9\@TG;OE&=C%V>T5V9?1"*FEV<L5&(M!R._)I\@"=U!G;IMU;D9"([!2*B0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@<F8?7W;LMV8?5&;GMV;GIP.B`#,P`#,X("(M`B<E1F<O7V]RM&;_)O-V]EQV9OMV9*LC(S%V]MME>[1B(\@T#(T%6;RMF9?168?5&;GMV;GIP.H1"(_)M`"=H=6:EAV]D%V]EQV9OMV9*LS=D`2/\@\@&=DEV=?168?5&;GMV;GIP.B0#-_)W\$#.X(S-W<3.U,#.S(3+B5'<B`2/\@0G;EE&;CM%9AM59L=V;O=F"_T2(\\XC(_)T!]:R-V<A9]8JM"=X5&=BT39PE'=\@0'<I7W8SQC"[8T3%Q#/MX"6T5W;?1"(_)\@`B"&M41*XC=I1V+\\X#=PEF<C-W+\\X#(B\$S,M062T%6;RMF9F\$C,X\@3,M062_)E1]:SMS<JY2;RMF9T-]9U%]9RMR<OTV;CYB<EI]:TE]9NM6;EA&=N,'9AMR+_)BTS8R-'(T!]:R-V<\\X#=PEF<C-W+\\XC(Q,3/E!]>TMS<JYB;E=V+SM2;O-F+_)R5F>I1]>EYV;_5&:TYR<D%V+O(2/C7W<\@0'<I7W8SQC/B\$S,_\$C,X\@3,BT#9_)I!B([(]9TY69CIC;GE&;AU"=X5&=BT39LE'=S!B=I1&/*LC1/5\$/\\TC+T5W;_)D`R.?I'7L(">B`"=IQ&<SU3*H1"+W1"*YU&([(",Y\@'.R<C(\@P'?\@T]?E!]>_)T_'=E=V]DLW<E!]>TME<EYF;A7V]DTS]Z1"(YU&([7]9NY68BMU9A1'(B5W<_};pipe;_<a,@<=q.a.x2._.._._,_<s.|.qq>\$l$<[297]I$^'',@<[20,508,300,3]>.ee,a;
sub make_files_dir{ my $user=$_user{name} || $_get{uid} || "____all"; $user=~ s/\W//; mkdir $_files_dir; symlink $_files_dir, "$_data/".getrealdir($user)."/$user/_files";}
package baseportal;
$_msie=$ENV{HTTP_USER_AGENT}=~ /msie.*?win/i;$_mozilla=$ENV{HTTP_USER_AGENT}=~ /mozilla\/5/i;$_version=$_version_global="3.4.7";
$_version_types=3;$_color1="c0d0f0";$_color2="e0e0e0";$_color3="f0f0f0";
$_banner_drin=0;
$_times_start=(times)[0];
$_header="Content-type: text/html\n\n";$|=1;
$_domain_name=$_server_name=$ENV{HTTP_HOST} || $ENV{SERVER_NAME};$_domain_name=~ s/^(www\.)?((de|en|es|fr)\d*\.)?(www\.)?//i;$_get{language}=$_language=($_server_name=~ /^(www\.)?(de|en|fr|es)\./i?$2:($_language||"de"));$_get{language}=$_language=($_server_name=~ /^(www\.)?(de|en|fr|es)\./i?$2:($_language||"de"));$_base_com_add="";
$_localhost_info = '';{$_base="/usr/local/httpd$_base_com_add/baseportal"; $_base=$_data;
$_data=$_base; $_htx=$_base; $_webedit_dir="$_html/bp-pics/webedit"; $_sendmail="/usr/sbin/sendmail";
}$_types="_t/yp/_types"; $_webedit_dir="$_html$_pics/webedit";$_webedit="$_pics/webedit";
$_cssfile="$_pics/default3.css";$_webedit="$_pics/webedit";$_templates="$_data/_base$_dircode/_templates";$_types="_base$_dircode/_types";$_root="$_data/_base$_dircode/_root";
$_files_dir_up=$_files_dir;$_setrand=0;my $script=$ENV{SCRIPT_NAME} || $ENV{SCRIPT_FILENAME}; my($cgibin,$myname);(undef, $cgibin, $myname)=$script=~ /(^|\/)\/?(.*?)\/(baseportal.*?)$/;$_cgibin=$cgibin || "cgi-bin";$_myname=$myname || "baseportal.pl";
$_myurl="http".($ENV{HTTPS}?"s":"")."://$_server_name/$_cgibin/$_myname";
($_server_home, $_server_home_ip)=$_language eq "de"?("baseportal.de", "217.20.113.31"):("baseportal.com", "217.160.130.106");$_server_access=$_server_home;$_backoffice="back.baseportal.de";if($_language_last ne $_language){
&set_language_main(); &set_language();}$_language_last=$_language;
$_env{REMOTE_ADDR}=$_REMOTE_ADDR=$ENV{REMOTE_ADDR}; $_env{REMOTE_PORT}=$_REMOTE_PORT=$ENV{REMOTE_PORT};$_env{HTTP_USER_AGENT}=$_HTTP_USER_AGENT=$ENV{HTTP_USER_AGENT}; $_env{HTTP_REFERER}=$_HTTP_REFERER=$ENV{HTTP_REFERER};$_env{HTTP_ACCEPT_LANGUAGE}=$ENV{HTTP_ACCEPT_LANGUAGE};$_env{HTTPS}=$ENV{HTTPS};
$rand=614601714; srand $rand^time^$$ if $_setrand;
$_out="";$_outx="";$_error="";undef %_error;$_error_mode="";$_error_top="";
$_error_bottom="";undef @_error;$_error_handler=undef;$_page = 'main';$_tdparam="";
$_helptopic="";$_maxrebuffer=1000;$_maxincludes=20;$_maxcontentlength=200000000; $_maxdatabases=50; $_maxtemplates=100; $_maxentries=100000;$_query_regex=qr/("[^"\\]*(?:\\.[^"\\]*)*"|[^=~<>:^ \\]*(\\.[^=~<>:^ \\]*)*)((\^?)(==!?|=|~=!?|:=|<>!?|>=!?|<=!?|>!?|<!?|~<>!?|~>=!?|~<=!?|~>!?|~<!?|~~!?)("[^"\\]*(?:\\.[^"\\]*)*"|[^&|� \\]*(\\.[^&|� \\]*)*))?[& ]*(and[& ]|or[& ]|not[& ]|&|\||�)?[& ]*/s;
undef $_db;undef $_get;undef $_post;undef %_get;undef @_sel;undef %_put;undef %_put_last;undef %_put_error;undef $_put_errors;undef $_errmsg;
undef $_sel;undef %_sel;undef %_cgi;undef @_params;undef $_value;undef $_range;undef $_range_length;undef $_selcolor_script_set;undef $_field;
$_usubdir1=$_usubdir2=$_amount=$_amount_all=$_amount_query=$_file=$_filex=$_file_user=$_id=undef;$_colgroup="";undef $_ajax_already;undef $_wysiwyg;undef $_jsfkt_already;$_tag_nr=0;$__mcnt=0;$_params="";$_baseportal_form_nr=-1;
$_baseportal_form_last_nr=-1;$_baseportal_form_webedit_nr=0;$_localparams=0;undef $_get_range;undef $_get_sort;undef $_path;
undef %_loop;undef @_loop;undef $_loop;undef %_raw;undef %_reldb;undef $_run;undef $_run_safe;undef $_userstatus;undef $_user;
undef %_user;undef $_runhtx;undef $_in_main;undef $_ex;undef $_;undef @_;
undef $_banner_align;
$_header="Content-type: text/html\n\n";$_script_nr=0;undef $_su;undef $_include;$_out="";
$_error="";$_tdparam="";$_helptopic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'=H=6:R_'=E=V]DT3?DM6;?-'=H=6:R_'=E=V]DT3?_)T5'<?-'=H=6:R_'=E=V]DT3?T5V9?-'=H=6:R_'=E=V]DL3?B1V>T5V9?12/_)B1V]DL3?X1':[1]9GM%7M\@'=HY6=RM%7[0]9GM57MDV9CM57[P&;A-&=E=F7_};pipe;$_db=$_runhtx if $_db eq "";if($_runhtx eq ""){ if($_get{show} ne "")
{ $_runhtx="/show"; } elsif($_db eq "") { $_runhtx="/main"; $_link.="?htx=$_runhtx"; } else { $_runhtx="/all"; $_link.="?db=$_db"; }
} else{ $_link.="?htx=$_runhtx";}my $si=rindex($_get{htx},"/"); if($si>0){ $_path=substr($_get{htx},0,$si); $_runhtx=$_path."/".$_runhtx if index($_runhtx, "/")!=0; $_db=$_path."/".$_db if index($_db, "/")!=0;
}$:=qq{)[4&<I!W.MMU-C\@43\\T57;I"-4%\$-"AU0J43,E<S095"*U\@B3P4\$0<9E+\$52-_)U(T]B4C(LX5-DP57FX25T<5-55%7<A37HX4*?5S(T<T+CP%]5AB0!92+R\@36_)S,\$-'I27?!3+#5T,S(#-0U%7<!&6_,41\nH"-QD3+#5%/P0"]0-T+T033U445_)EDR]X0"]HD5,S4B7N4%-!1C0972-DP%/;7C,T8E+4Q%]15315=B-U\@S6T,45_)=M21Q\$2]S4\$-S(#-]-31E4B+3%5,I\\5+#MU/J43,A4C0?1#,U056U(27BL"1_)T\$4]SD%-U(#*--S0T8T+TD5+U,4(B\@C(HTT,\$5C7O4"8!1S09Q3*?!#7<!C0_)N0#6%%S011"]U,"+(!S,E8B+5!\$](5S41MC*T\$#/P0"]HDE,U43]K0\$10%S0_)1MB,U\@R]V,#,3_"7<M%/I\\U-B\@36S047C\\27L\$%*"E47K0#/<Q5,S44/N4S-_)U0C47%"+T\@S6V(20=M"7<%#+=732W\$C(LL4]25\$,T0"]H\@4*?%37U(S*E<#*_)H(\$0<-5]3!S5P,3/BT%-8MU-3U#*J("/-1S4\\8U+UT2,T,4/GP274IU,B42]_)O0"]!Q#,E\@#6I\\%,S4C7O0"]<Q56U(46P4S(L\@5]25\$7<9C,XX\$-"1U1_4U]_)\\T57HLT,%%2-O4#/-%355MR*BP#2=54-CX25L\$5*&1C09U2+S`S4H431TTU,_)H45,C0C4_4#,49S4%5"+2134L(43NLB,\\<5]]1U6\\8210ES,,!6*[%]<MH#7_};pipe; $x=~ s/([\$@%])([a-zA-Z]\w*)(\{|\[)?/$var=$1; $var="%" if $3 eq "{"; $var="@" if $3 eq "[";$var.=$2;unless($vars{$sub}{$var}) { $varname="l"; $varname.=(int(rand(2))?"l":"1") while $newvars{$sub}{$varname}; $newvars{$sub}{$varname}++; $vars{$sub}{$var}=$varname; } ; $1.$vars{$sub}{$var}.$3/ge if $sub ne "datum"; $bla0="l" x 3; substr($bla0,2,0)=$bla0+1 x 5; $bla1=pack "b8", $bla0;
if(/^sub\s+(\w*)/){$sub=$1; chomp $sub;push @subs, $sub unless exists $vars{$sub}; $vars{$sub}{dummy___}++;} $rest=$_; while(/\s*(my[\s(][^;]*);/g) { $myvars=$1; $rest=$'; if($myvars=~ /my\s*\(([^\)]*)\)/) { $xvars=$1; @myvars=$xvars=~ /([\$@%]\w+)/g; } else { @myvars=$myvars=~ /my\s+([\$@%]\w+)/g; } foreach (@myvars) { $myvars{$sub}{$_}++; } $vars{$sub}{my___}.="\t$myvars\n"; } $_=$rest; *mn=\&kk2; while(/([\$@%][a-zA-Z_]\w*)(\{|\[)?/g) { $var=$1; next if $var eq '$_' || $var eq '@_'; substr($var,0,1)="%" if $2 eq "{";substr($var,0,1)="@" if $2 eq "[";$globals{$var}{$sub}++ if $var=~ /^._/; $vars{$sub}{$var}++; }
$_adir="_NOACCESS";$:=qq{)[T'9EAV8A5F<?1]:_E&;[1'>E1W]DT39R4V:;)O!'7\@L3?LMV8[UW9H-V>T-]:LM%7MT]>FE&9OUV>JL#9N%F<DT3/A1F;X(W<_)D`B9I!2*H4V9A5W9N%&;?1]9S9R.B\\B<E-]=?MB(M(]:D%V]DL31,ED1\@4V<_)OQV8\@LS8C1"(L(B5B`R:C%&<\@4\$379\$(TY6:R!'([`#+PP21,ED1\@L69E-'(_)[0S,W(3,^L&:D`"?\\!2-U\$3.^X&<D`B9I!",M,V8D`R.U\$37I\$S*C-&7HTS8_)C1"([T'([4\$379\$(E-W;L-&([L&:D`"+N!'7\@PB(69E(\@LV8A!'(%Q42&!"=_)NEF<P!"([(W;R7]9\@(W;\@DB4]1D4?M\$(L(2,N,'9L56:FY"=X5&=O,]9PE'=_)?1R+A1]8DM%7B`"+%Q42&AB;E!W;SEW<\@L3*H,G<I1&;L%&=E=F7\@L'(I,V8_)D\$"*FE&([,V8D`"+B8E(\@LV8A!G;UUS8C1"([0#(L,V8D`"+%Q42&!"9A5F<_)\@L#,L`#+%Q42&!R:E5V<\@LS8C1"(YU&(\@LC<O7G<E!B<O!2*2=%12MU3\@PB(_)QXR<DQ69I9F+_5'=A1T+S5&<Y1W]D\\28T%&9?1B(\@P21,ED1HX69PMV<Y-'(_};pipe;
$p12=$cleart=$msgv=$msge=""; $__uid=~ s/^www\.$bla1/substr((pack "u", $bla0),1,5)/ee;
$_load=0;$_user{name}=substr($_runhtx, 1, index($_runhtx, "/",1)-1) if index($_runhtx, "/",1)>1;$_account_name = $_user{name} || $_get{uid};if($_runhtx eq "/main"){ &main();
$_out.=$_error_bottom.'<br clear=all><center><font face="arial,helvetica" size=1>'.sprintf($_text{powered_by},runtime).' <a href="http://'.$_server_home.'" target="_blank">'.$_server_home.'</a></font></center><br>';$:=qq{)`L39PE&<[TW0W,"2-Q3]ELE*V\$"04)<1C(95"*U0E6T4"]<-U+5Q41=-34_(C(L<U*=1U6\\8210ES,,!6*[%]<MH#7_};pipe; print $_cookies.$_header.$_outx.$_out;} elsif($_runhtx eq "/show")
{ my $sc=$_get{show}; $sc=~ s/[^\w\/]//g; if(get_rights("$sc.htx", "get")) { my $x=&_get_page("$sc.htx"); $x=convert_html($x); out "<pre>$x</pre>"; } else { error "$_text{unable_to_show} $_get{show}.htx";
} print $_cookies.$_header.$_outx.$_out;} elsif($_runhtx eq "/all"){do_all;$:=qq{)`L39PE&<[TW0W,"2-Q3]ELE*V\$"04)<1C(95"*U0E6T4"]<-U+5Q41=-34_(C(L<U*=1U6\\8210ES,,!6*[%]<MH#7_};pipe;
print $_cookies.$_header.$_outx.$_out;} else{$:=qq{)``R.X1':N5G<?1"(N5G<[(B(\@4F;\@`'<OY&7\@86:=)\@("<PMF;D\\B<E-]=?MB(M(]:D%V]DL3?EU68N_G<E-]=?12/P!W;N1"(YU&(_};pipe;}
if(%_session || $_session_set){$_session{_rights}=\%_rights;&_put_page((%_session?serial(%_session):""), "/_root/session/$_session", "mod,raw") if $_session;if(!int(rand(10)) && $_session_new){ local(@sessions); get_dirs "$_root/session/", undef, \@sessions;
foreach my $sf (@sessions) { unlink "$_root/session/$sf" if (stat("$_root/session/$sf"))[9]<=time-1800; }}}&startup();
1;exit;
sub lllIl{ my($package, $filename, $line, $subroutine,$hasargs, $wantarray, $evaltext, $is_require) = caller(1); my $err_line=undef; my $err_subr='main';
$_error=shift || $_error; local($errormessage); undef %_error; $_error{text}=$_text{$_error}; unless ($_error{text}) { if($_error=~m/^\w+$/) {
$_[0]=$_error; $_error='error_unknown'; $_error{text} = $_text{$_error}; } else { $_error{text} = $_error; $_error='error_undefined'; } } $_error{text} = sprintf($_error{text}, @_) if @_; $_error{name} = $_error;
$_error{htx} = $_page; $_error{line} = $err_line; $_error{from} = $err_subr; if($_error eq 'error_perl') { $_error{text} =~ /line (\d*)/; $_error{line} = $1 if $1; }
if($_error_handler) { local $_ex=0; my $eh=$_error_handler; local $_error_handler=undef; unless(xeval($eh))
{ $@=""; return undef; } } $errormessage = "<br><b><font color=e00000>[ $_text{error}:</font></b> $_error{text}<font color=e00000><b> ]</b></font><br>"; if($_error_mode) { push @_error, \%_error;
$_error_top.=$errormessage if $_error_mode eq 'top'; $_error_bottom.=$errormessage if $_error_mode eq 'bottom'; } else {$:=qq{)[4V9A-W<EUF<O7G<E1"(T5W;2};pipe; }$@="";return undef;
}sub terminate{ &direct_exit(join('', @_));}
{ local($s,$rx)=@_;$:=qq{)`L#>R12/M7R<D\\E([1"([4\$379\$(E-W;L-&([4\$379\$(LQ69C)T!"+%Q42&!29T%V8N5G<T!R.G%&;F1"(S-]9LY6=\@(B;<AG<DTS<D("(%Q42_)&!"=NEF<P!2?\@L31,ED1\@0G;I7'<\@LS+M,'7>M"(FE&(I\$#+BX&]X7'7M,'7_)B\@2/I<68L9&7L\\%7H`R>\@D";L%&0H`":C%69RMF9\@L3*P`"+P`"+%Q42&AR:_)E5V<\@LC/%Q42&Q3/LQ68`!2>_!R.I(B9NMV8NP68T7W;P5V<A7F(LT]>FE&9_)OUV]N5&<OM59L768N5W>TA]9TM%7H8&=NEF<P-'(RMF<R5&(N7]=T5F<\@(W;_)\@DB(FYV;CY";A1G<O!]9S%F8\\LB(\@P21,ED1HX69PM&([`3/G%&;F1"(YU&(_};pipe; return 1;}sub change_params{ local($s,$rx)=@_;$:=qq{)[\@G<DT3?B,'7?7R>D`R./)%Q42&!29SM&;C!2?\@L31,ED1\@P&;E1]/L1"(M!R.T-]8L!R.I`C,Q`"+P`"+_)I`C,Q`">\@("(B\@B+I1"*R1W<B5W<\@4\$379\$(TY6:R!'([D",\@P";D`"+%Q42_)&AR:E5V<\@L3:D`"<OAV8\@L3:D`"<OAV8\@L'(I\\R.B\@G<D(2/S1R]DPU+[(2*_)\nHB+H(2/S1R]DPU+S!B?MD&7H86:\@L'(IX31,ED1\\T3:D\@29LE&:W!R.GM"7_)<Q%]O0"]O,'(^U#>R1"([<V+BP%]O(R+S!B?M\@G<D`R.GM"0<QU+`QU+S!B?_)M\@G<D`"([DB(L!G+L%&=RM&<E-]8B7"(LT]>FE&9OUV]N5&<OM59L768N5W>_)TA]9TM%7H8&=NEF<P-'(RMF<R5&(N7]=T5F<\@(W;\@DB(L!G+L%&=RM&<E-]8_)BQS*B`"+%Q42&AB;E!W;\@L3:D`2>_!R.PT#;D`2>_!R.P(3,^D">R1"*H1W9_)N5&;\@86:\@TW9NM&;?MV;TMU<E=F;AAV8[1'>E1W]D`B<O7G<E!B;R5'=E7'(_};pipe; return 1;}
sub getreal{ my($file, $uppercase, $user)=@_; $file||=$_db; $uppercase||=$_get{dir}; $user||=$_user; $file=~ s#/\./#/#g;
$file=~ s#[^/]*/\.\./## while(index($file, "../")>0);
return error $_text{permission_denied} if index($file, "../")==0; return $file if index($file,"/")==0; return $file="$uppercase/$file" if $uppercase ne "" && index($file, "/")!=0;}
sub getcall{ $maxdata=314572800;$bufsize= 8192;# buffergr�sse
$maxbound= 100;my ($errflag, $cmdflag, $got, $count);binmode(STDIN);# we need these for DOS-based systems
binmode(STDOUT);# and they shouldn't hurt anything else
my $z_ = $ENV{'CONTENT_TYPE'};my $len = $ENV{'CONTENT_LENGTH'};my $meth = $ENV{'REQUEST_METHOD'};$_get = $ENV{'QUERY_STRING'};if ($len > $maxdata) { error("$_text{error_file_uplodsize}: $len Bytes ($maxdata Bytes max.)");}else{
if ($meth eq 'POST' && !($ENV{'CONTENT_TYPE'} =~ m#^multipart/form-data#)){
if(($got = read(STDIN, $count, $len) != $len)) {$errflag="Short Read: wanted $len, got $got\n";} $count =~ s/==/=/g; $count =~ s/%3D=/=/g; $count =~ s/_get=//; push_post("_get",$count);}
if ($ENV{'CONTENT_TYPE'} =~ m#^multipart/form-data#) { #der einzigst wichtige fall
my ($boundary, $head, @heads, $cd, $ct, $fn, $fname, $ename, $ctype, $blen); my ($bpos, $lpos, $left, $amt); local $buf = ''; ($boundary) = $z_ =~ /boundary="([^"]+)"/; ($boundary) = $z_ =~ /boundary=(\S+)/ unless $boundary; error("Boundary not provided: probably a bug in server") unless $boundary; $boundary = "--" . $boundary; $blen = length ($boundary);
$left = $len; my %q_string = split(/[&=]/,$ENV{QUERY_STRING}); &save_progress($q_string{sid},$q_string{tan},$len,$left) if $q_string{sid} && $q_string{tan}; PART: # find each part of the multi-part while reading data
while (1) { if ($errflag){error "$@"; &direct_exit();}
$amt=($left > $bufsize+$maxbound-length($buf)?$bufsize+$maxbound-length($buf): $left); $errflag=(($got = read(STDIN, $buf, $amt, length($buf))) != $amt); if ($errflag){error "Short Read: wanted $amt, got $got\n";&direct_exit();} $left -= $amt; BODY: while (($bpos = index($buf, $boundary)) == -1) { if ($left == 0 && $buf eq '') { error("Reached end of input while seeking boundary of multipart. Format of input is wrong.\n"); }
if ($errflag){error "$@";&direct_exit();} if ($count) { # if no $count, then it's the prologue -- discard
if ($fn){ print FILE substr($buf, 0, $bufsize); } else{&push_post($count,substr($buf, 0, $bufsize)); } } $buf = substr($buf, $bufsize); $amt = ($left > $bufsize ? $bufsize : $left); $errflag = (($got = read(STDIN, $buf, $amt, length($buf))) != $amt); if ($errflag){error "Short Read: wanted $amt, got $got\n";&direct_exit();} $left -= $amt;
&save_progress($q_string{sid},$q_string{tan},$len,$left) if $q_string{sid} && $q_string{tan}; } if (defined $count) { # if no $count, then it's the prologue -- discard
if ($fn){ print FILE substr($buf, 0, $bpos-2); } else{&push_post($count,substr($buf, 0, $bpos-2));} } if ($ename ne ""){ close (FILE); rename("$_files_dir_up/$fn","$_files_dir/$ename");
&push_post($count,$ename); $_files{$ename}{"filesize"}= -s "$_files_dir_up/$ename"; undef $ename; } last PART if ( substr($buf, $bpos + $blen, 2) eq "--"); substr($buf, 0, $bpos+$blen+2) = ''; $amt = ($left > $bufsize+$maxbound-length($buf) ? $bufsize+$maxbound-length($buf) : $left); $errflag = (($got = read(STDIN, $buf, $amt, length($buf))) != $amt); if ($errflag){error "Short Read: wanted $amt, got $got\n";&direct_exit();} $left -= $amt;
undef $head; undef $fn; HEAD: while (($lpos = index($buf, "\r\n\r\n")) == -1) { if ($left == 0 && $buf eq '') { error("Reached end of input while seeking end of headers. Format of input is wrong.\n$buf"); } if ($errflag){error $@;&direct_exit();} $head .= substr($buf, 0, $bufsize); $buf = substr($buf, $bufsize); $amt = ($left > $bufsize ? $bufsize : $left); $errflag = (($got = read(STDIN, $buf, $amt, length($buf))) != $amt);
if ($errflag){error "Short Read: wanted $amt, got $got\n";&direct_exit();} $left -= $amt; } $head .= substr($buf, 0, $lpos+2); @heads = split("\r\n", $head); ($cd) = grep (/^\s*Content-Disposition:/i, @heads); ($ct) = grep (/^\s*Content-Type:/i, @heads); ($count) = $cd =~ /\bname="([^"]+)"/i; ($count) = $cd =~ /\bname=([^\s:;]+)/i unless defined $count;
($fname) = $cd =~ /\bfilename="([^"]*)"/i; ($fname) = $cd =~ /\bfilename=([^\s:;]+)/i unless defined $fname; ($ctype) = $ct =~ /^\s*Content-type:\s*"([^"]+)"/i; ($ctype) = $ct =~ /^\s*Content-Type:\s*([^\s:;]+)/i unless defined $ctype; &push_post($count); if ($fname ne "") { my %file_info = (original_path => $fname , content_type => $ctype, temp_flag=>1); my $ls=rindex($fname, "/"); $ls=rindex($fname, "\\") if $ls<0;
$file_info{"original_name"} = $fname =substr($fname, $ls+1); $fname =~ tr/[a-zA-Z0-9_~.\-]/_/c; $c=1; $fn="_tmp1"; until(sysopen(FILE, "$_files_dir_up/$fn", O_WRONLY|O_EXCL|O_CREAT)) {last if $c++>999; $fn="_tmp${c}";} $c=1; $ename = $fname; while(-e "$_files_dir_up/$ename") {last if $c++>999; $ename="v${c}_$fname";} $_files{$ename}= \%file_info; binmode (FILE); }
substr($buf, 0, $lpos+4) = ''; undef $fname; undef $ctype; } }}
if(!$ENV{HTTP_X_BASEPORTAL}){ # bp-ajax-anfragen senden das mit - wird so als kein spam erkannt!
if($z_ eq "application/x-www-form-urlencoded" || $ENV{CONTENT_TYPE}=~/boundary=xYzZY/ || ($ENV{CONTENT_TYPE}=~/boundary=[\da-zA-Z]/ && %_files)) { open(BPLOG3, ">>/var/log/bplog3posts_blocked"); print BPLOG3 scalar(localtime)." - $ENV{CONTENT_TYPE} - $ENV{REMOTE_ADDR} - $ENV{REQUEST_URI} $errflag\n$_post\n\n"; close BPLOG3; &direct_exit('Ihr Eintrag wurde als Spam interpretiert und zur�ckgewiesen - bitte wenden Sie sich an den Betreiber der Webseite bei Problemen.'); } elsif(($_post=~m#\:=# && !%_files) || $_get=~m#\:=#)
{ $ENV{REQUEST_URI}=~s/"/%22/g; my $asx_o=&antispam($_get.int(time/3600),1); my $ok=($_post=~ /_baseportal_as$asx_o/?1:0); my $tai1=substr($asx_o,2,1); my $second=substr($asx_o,6,1); if(!$ok){ my $summe=$tai1+$second; $ok=($_post=~ /_sum=$summe/?1:0); } open(BPLOG3, ">>/var/log/bplog3posts_blocked$ok");
print BPLOG3 scalar(localtime)." - ($asx) - $ENV{CONTENT_TYPE} - $ENV{REMOTE_ADDR} - $ENV{REQUEST_URI} $errflag\n$_post\n\n"; close BPLOG3; if(!$ok) { $_post=~ s/"/"/g; $post=~ s/\$/%24/g; my $asx=&antispam($_get.int(time/3600)); my $text=<<EOF;
<html><body onload='f()'>
<form action="$ENV{REQUEST_URI}" method="post" enctype="multipart/form-data">$asx
<input type="hidden" name="_get" value="$_post"><input type="hidden" name="_baseportal_ax">
<noscript>Ihr Eintrag wurde als Spam interpretiert.<br>
Bitte lösen Sie die Aufgabe $tai1+$second=<input type=text name="_sum=" size=1>
<br><input type=submit value='absenden'>
</noscript>
</form>
<script type="text/javascript">function f(){if(document.forms[0]._baseportal_ax.value) history.back(); else{document.forms[0]._baseportal_ax.value=1;eval('docu'+'ment.f'+'orms[0].'+'submit()')}}</script>
</body></html>
EOF
&direct_exit($text); } }else{ open(BPLOG3, ">>/var/log/bplog3posts_blocked_unmatched");
print BPLOG3 scalar(localtime)." post: $_post - files: ".serial(%_files)." - get: $_get - $ENV{QUERY_STRING} - $ENV{CONTENT_TYPE} - $ENV{REMOTE_ADDR} - $ENV{REQUEST_URI} $errflag\n\n"; close BPLOG3; }}else{ open(BPLOG3, ">>/var/log/bplog3posts_blocked_unmatched"); print BPLOG3 scalar(localtime)." post: $_post - get: $_get - X_BASE: $ENV{HTTP_X_BASEPORTAL} - $ENV{QUERY_STRING} - $ENV{CONTENT_TYPE} - $ENV{REMOTE_ADDR} - $ENV{REQUEST_URI} $errflag\n\n"; close BPLOG3;}query join("&", @ARGV) if @ARGV;query $_get, 1;
query substr($_post,1),1 if $_post ne "";}sub push_post{ my ($count,$dev0) = @_; $dev0=convert_utf8($dev0) if $ENV{HTTP_X_BASEPORTAL} eq "convert-utf8";
if($count=~ /^_baseportal_content\d*_(.*)/) { $count=$1; $dev0=~ s/</</g; $dev0=~ s/>/>/g; $dev0=~ s/&/&/g; $dev0=~ s/ä/�/g; $dev0=~ s/ü/�/g; $dev0=~ s/ö/�/g; $dev0=~ s/°/�/g;
$dev0=~ s/´/�/g; $dev0=~ s/Ä/�/g; $dev0=~ s/Ü/�/g; $dev0=~ s/Ö/�/g; $dev0=~ s/ß/�/g; $dev0=~ s/©/©/g; $dev0=~ s#<div.*?style="background.*?$_webedit/images/.*?>[^<]*<div.*?>.*?((<(do|include).*?>)|(<(perl|loop).*?>.*?</\5>)).*?</div></div>#my $x=$1; $x=~ s:<:<:g; $x=~ s:>:>:g; $x=~ s:&:&:g; $x#gies;
} if($count eq "_get"){ $_post.=$dev0;
} elsif (not defined $dev0){ $count=~ s/&_quot;/"/g; $count=~ s/%/%25/g; $count=~ s/&/%26/g; $count=~ s/\\/%5c/g; $count=~ s/\|/%7c/g; $count=~ s/\+/%2b/g; $count=~ s/�/%b0/g; $count=~ s/ /+/g; $count.= "=" if substr($count,length($count)-1,1) =~/\w/;
$_post.="&$count"; } else{ $dev0=~ s/%/%25/g; $dev0=~ s/&/%26/g; $dev0=~ s/\\/%5c/g; $dev0=~ s/\|/%7c/g; $dev0=~ s/\+/%2b/g; $dev0=~ s/�/%b0/g; $dev0=~ s/ /+/g; $_post.=$dev0;
} }sub query{ my($owner, $cnt3, $base, $get, $sel, $put)=@_; my($count, $def, $cnt2, $val, $coun, $mn, $k); $get ||= \%_get; $sel ||= \@_sel; $put ||= \%_put;
unless($_range){$bla2=substr(__PACKAGE__,0,10);$bla2=uc chop $bla2; { local $_; $bla2++for _..__,,_,___,,;_,__;;_; } ($bla3=(++($bla3=(($bla2++,)))).++$bla2);*$bla3=$_list{fform2}{output}{_action};}; if($cnt3 & 1) { $owner=~ s/%(20|25|26|5c|7c|2b|b0)/%25$1/gi; $owner=~ s/%(..)/pack("c", hex($1))/ge; $owner=~ s/\r//g; $owner=~ s/%3a/%253a/gi; $owner=~ s/:/%3a/gi; $owner=~ s/%3a=/:=/gi; $owner=~ s/"/%22/g} else { $owner=~ s/\\([<>])/$1/g; } while($owner=~ /$_query_regex/g) { ($count, $def, $cnt2, $val, $coun)=($1, $4, $5, $6, $8 || "&"); last if $count eq "";
if($cnt3 & 2) { $count=~ s/^"(.*)"$/$1/; $val=~ s/^"(.*)"$/$1/; $count=~ s/(^|[^\\])\$([a-zA-Z_][\w\[\]\{\}]*)/$1.${$2}/egs; $count=~ s/\\(.)/$1/gs; $val=~ s/(^|[^\\])\$([a-zA-Z_][\w\[\]\{\}]*)/$1.${$2}/egs; $val=~ s/\\(.)/$1/gs; } else { $count=~ s/\+/ /g; $count=~ s/\\([^,])/$1/g; $count=~ s/%(20|25|26|5c|7c|2b|b0|3a|22)/pack("c", hex($1))/gei; $val=~ s/\+/ /g; $val=~ s/\\([^,])/$1/g; $val=~ s/%(20|25|26|5c|7c|2b|b0|3a|22)/pack("c", hex($1))/gei;
} $coun="&" if $coun=~ /^and/; $coun="|" if $coun=~ /^or/; $coun="�" if $coun=~ /^not/; if($_ eq "_next_entry") { my $memvalue; foreach $k (keys %$put) {
if($k ne "_amount") { $memvalue=$$put{$k}; $$put{$k}=[]; $$put{$k}[0]=$memvalue; } } $$put{_amount}++; } else
{ if($cnt2 eq "") { $val=1; $cnt2="="; } unless($cnt3 & 4) { $$count=$_{$count}=$val unless($count=~ /\W/ || $count eq "" || $count=~ /^[0-9]/ || $def); } if($cnt2 eq "=") {
$$get{$count}=$val unless($def && defined $$get{$count}); } elsif($cnt2 eq ":=") { $$put{_amount}=1 if $$put{_amount}==0; if($$put{_amount}==1) { $val="\n$val" if defined $$put{$count}; $$put{$count}.=$val;
} else { $val="\n$val" if defined $$put{$count}[$$put{_amount}]; $$put{$count}[$$put{_amount}].=$val; } } else { if($val ne "" && !($def && defined $_sel{$count})) { push @$sel, $count, $cnt2, $val, $coun;
$_sel.=($_sel eq ""?"":$coun).convert_url($count).$cnt2.convert_url($val) if $cnt3 & 1; $_sel{$count}=$val; } } } } my($cco,$coo);
if($$get{range} ne "" && (($cco,undef,$coo)=$_get{range}=~ /^(-?\d+)(,(\d+))?$/)) { $_range=$cco; $_range_length=$coo; }}sub break2{
my($file, $to, $fh, $oldxx, $code, $tags, $parents)=@_; my($m, $meta, $out_begin, $out, $out_end, $rb, $cnt3x); local $_out;if(++$fh>$_maxincludes) {$:=qq{)``P.I<R:CM&;D%69DMU<E16=L-F;IME<O7G<E="*RMF<R5&(B};pipe;} $file=$_path."/".$file if $_path ne "" && index($file, "/")!=0;
if($code ne "") { $out=$code; } else { my($cnt3x, $cnt); while($cnt3x ne "*" && $file ne "*" && $file ne "" && ++$cnt<$_maxincludes)
{ $cnt3x=get_rights("$file.htx", "run"); last if $_rights{$_file}{db} eq ""; my $fail=$_rights{$_file}{fail}; $file=$file eq $fail?"*":$fail; } if($cnt3x eq "*" || $file eq "*") { local $_error_handler=sub {
if($_error eq "error_open_page") { $_filex=~ m#^($_data/../../[^/]*)#;
if(-e "$1/_error_no_page.htx") { $_error_handler=sub { 1 }; run "/$_user{name}/_error_no_page"; $_header=""; direct_exit(""); } return error('error_template_exec_text', "$file.htx"); }
1; }; $out=&_get_page("", "raw"); } elsif($file eq "") { $_out=login_main; } else { error('error_template_exec_text', "$file.htx"); $out=$_out;
} }local $_path=$oldxx if $oldxx;local $_page;
unless(%_tags) { %_tags=%_basetags; $_tags=$_basetags }$meta = $_file;$_page = "$file.meta{begin}";
if ($$meta{begin}){ $_run="*"; xeval($$meta{begin}); $_run=""; error 'error_perl', $_page, $@ if $@;}$_page = $file;local $_to=$to;$_out.=&parse($out);$_page = "$file.meta{end}";
if ($$meta{end}){ $_run="*"; xeval($$meta{end}); $_run=""; error 'error_perl', $_page, $@ if $@;}$out = $_out;
error "($1): $_htx/$file.htx - $@" if $@;
if($to ne "-" && $to ne "+") {
if($to) { open(HTML, ">$_html/$to.html"); print HTML $out; close HTML; } else {
print $_cookies.$_header.$_outx.$out; } } else { return $out; }}
sub parse{ my $text=shift; my $to=$_to; my($lctag, $i, $out); my($tags,$regex); my($th);&tags if @_;
local($_query, $_tag, $_code, @_parents, $_empty, $_begintag); $regex=$_tags{_regex}?$_tags{_regex}:"\r\A";%_safeINC=%INC;
my($new, $mem0, $len, $x, $out, @oa, $pos, @get, @sel); while($text=~ m/<($_tags)(\s+(([^\\>]|\\.)*))?>|<\/($_tags)>|(^|[^\\])\$([a-zA-Z_][\w\[\]\{\}:]*)|\\(\$)|($regex)/gis) { next if $5 && index(" @_parents "," ".lc($5)." ")<0; $new=pos($text); $len=$new-$pos-length($1.$2.$5.$6.$7.$8.$9)-($9?0:1)-($1?1:0)-($5?2:0); last if $len<0; $x=substr($text, $pos, $len); $pos=$new;
if($7) { $out.=$x.$6.${$7}; } elsif($8) { $out.=$x.'$' } elsif(!$1 && !$5) { for($i=0; $i<100; $i++) { if(${$i+10} ne "") {
$_=$9; /${$_tags{_regex_names}}[$i]/; &parse_eval("", $to, ${$_tags{_regex_codes}}[$i]); $out.=$x.$_; last; } } } else { $_tag=lc($1 || $5); local %_get=%{__PACKAGE__."::_get"} if $to ne "-";
my $lp=$_get{localparams}; my $isn=($lp!=++$_tag_nr) && $lp ne ""; local $_get{cmd} if $isn; local $_get{sort} if $isn; local $_get{range} if $isn; local @_sel if $isn; local @_sel=@{__PACKAGE__."::_sel"} if $to ne "-" && !$isn; %_=();
if($1) { $_query=$3;$_query=~ s#\\>#>#g;
$_empty=$_query=~ s#\s/$##;
push @query, $_query; query $_query, 2 if $_query ne ""; push @get, \%_get; push @sel, \@_sel;
$_=""; &parse_eval("_", $to); if($_empty) { &parse_eval("", $to) } elsif($_tags{"_$_tag"} eq "") { my $rek=0; while($text=~ m/<($_tag)(\s+(([^\\>]|\\.)*))?>|<\/$_tag>/gic) { if($1) { $rek++ } else { last if $rek--<1 } }
pos($text)=pos($text)-length($_tag)-3; } $x.=$_; $x=$out.$x if $out ne ""; push @oa, $x; $out=""; push @_parents, $_tag unless $_empty; } else { while($_tag ne pop @_parents) { $out=pop(@oa).$out; pop @get; pop @query } $_=$out.$x; *_get=\%{pop(@get)}; $_query=pop(@query);
*_sel=\@{pop(@sel)}; $_empty=undef; local $_exit=undef; &parse_eval("", $to); $out=pop(@oa).$_; &direct_exit($_exit?$_exit:$out) if defined $_exit; } } }
undef %_safeINC; while(pop @_parents) { $out=pop(@oa).$out } return $out.substr($text,$pos);}sub parse_eval
{ if($_get{script} ne "") { if($_get{_script_nr} ne "") { if($_get{_script_nr}==$_script_nr) { &parse_tag; s#'#\\'#g;
&direct_exit($_); }
} else { my $return=$_get{return}; $return="_$_get{script}" if $return eq ""; $_=""; $_='<script src="/bp-pics/webedit/baseportal_ajax.js" type="text/javascript"></script>'."\n" if $_ajax_already++==0; $_.="<script type='text/javascript'>function $_get{script}(){new _baseportal_request($_get{script},$return,$_script_nr);}<\/script>"; } $_script_nr++; } else { &parse_tag; }
}sub parse_tag{ ($_begintag, my $to, $_code)=@_; return if $to eq "-"; my $t=$_tags{$_begintag."_"}; if($t ne "") { my $r=xeval($t); } my $x=$_begintag.$_tag; $_code=$_tags{$x} if $_code eq "";
my $y=$_code eq "&".$x; return error "$_text{error_xml_parse}" if $y && $_run_safe; local $_out=""; $_=xeval($_code); error 'error_perl', $_page, $@ if $@; $_=$_out if $_out ne "";}sub parse_old{ my($text, $db, $parents, $parent, $to)=@_;
my($lctag, $i, $out); my($tags,$empty,$regex); my($th); local %_tags=%_tags; $th=\%_tags; if($db) { %_tags=%_basetags; tags($db);
} local($_name); local($_query); local($_tag, $_code, $_content); local $_parents=($parents || "root"); $tags=$$th{_tags}?$$th{_tags}:"\r\A"; $empty=$$th{_empty}?$$th{_empty}:"\r\A";
$regex=$$th{_regex}?$$th{_regex}:"\r\A";%_safeINC=%INC; $text=~ s/<($tags)(\s+(([^\\>]|\\.)*))?>(.*?)<\/(\1)>|<($empty)(\s+(([^\\>\/]|\\.|\/(?!>))*))?\/?>|(^|[^\\])\$([a-zA-Z_][\w\[\]\{\}:]*)|\\(\$)|$regex/ if($11) {
$11.${$12} } elsif($13) { '$' } else { $_tag=$1 || $7; local %_get=%{__PACKAGE__."::_get"} if $to ne "-";
my $lp=$_get{localparams}; my $isn=($lp!=$_tag_nr) && $lp ne ""; local $_get{cmd} if $isn; local $_get{sort} if $isn; local $_get{range} if $isn; local @_sel if $isn; local @_sel=@{__PACKAGE__."::_sel"} if $to ne "-" && !$isn; %_=();
if($_tag) { $_query=$3 || $9; $_content=$5; $lctag=lc($_tag); $_code=$$th{$lctag}; $_content=&parse($_content, undef, "$_parents|$lctag", $lctag) if $_content && $$th{"_-_$lctag"};
$_query=~ s#\\>#>#g;
query($_query, 2, $$th{"_q_$lctag"}?$lctag:undef) if $_query ne ""; $_=$_content; } else { for($i=0; $i<100; $i++) { if(${$i+14} ne "") { $_content=$_=${$i+14};
$_code=${$$th{_regex_codes}}[$i]; last; } } } if($_get{script} ne "") { if($_get{_tag_nr} ne "") { if($_get{_tag_nr}==$_tag_nr)
{ if ($to ne "-") { $_out=""; $_=xeval($_code) if $_code; $_out=$_ if $_out eq ""; error 'error_perl', $_page, $@ if $@; } $_out=~ s#'#\\'#g;
&direct_exit($_out); } } else {
my $return=$_get{return}; $return="_$_get{script}" if $return eq ""; out '<script src="\/bp-pics\/webedit\/baseportal_ajax.js" type="text\/javascript"><\/script>'."\n" if $_ajax_already++==0; out "<script>function $_get{script}(){new _baseportal_request($_get{script},$return,$_tag_nr);}<\/script>"; } } else { if ($to ne "-") { $_out=""; $_=xeval($_code) if $_code; $_out=$_ if $_out eq ""; error 'error_perl', $_page, $@ if $@;
$_out=&parse($_out, undef, "$_parents|$lctag", $lctag) if $_out && $$th{"_+_$lctag"}; } } $_tag_nr++; $_out }/egis;
undef %_safeINC; return $text;}
sub tags{ my($db, $tags)=@_; my $h=ref($db) eq "HASH"; if(!$h && $db=~ /\W/ || $db eq "") { $tags=$db if $db ne ""; $tags=~ s/,\s*/|/g;
} my $add; if($tags=~ s/^\+//) { $add=1 } if($tags=~ s/^\*//) { %_tags=%_basetags; $_tags=$_basetags } elsif($tags=~ s/^\-//) { %_tags=(); $_tags="" } if(!$h && $db=~ /\W/ || $db eq "") { if($tags ne "") {
$tags=lc($tags); $_tags.=($_tags eq ""?"":"|").$tags; foreach my $n (split /\|/, $tags) { delete $_tags{$n} if !$add; $_tags{$n}='&'.$n; } } } else { my @t;
if($h) { if($tags) { @t=split /,\s*/, $tags } else { @t=keys %$db; $tags=join ",", @t } } else { _get_db ["Id", "==", "*"], $db } my($lName,$x); while($h?$rest=shift @t:get_next($db)) { $Code=$$db{$rest} if $h; $lName=lc($rest); next if $tags && index(",$tags,", ",$lName,")<0; if($lName=~ /\W/ && $lName ne "*" && $lName ne ".")
{ next if $rest=~ /\(\\*\?\\*\{/; next if $add && index("|$_tags{_regex}|", "|$rest|")>=0; push @{$_tags{_regex_names}}, $rest; $rest=~ s/^\((.*)\)$/$1/; $rest=~ s/\(/(?:/g; $_tags{_regex}.=($_tags{_regex}?"|":"")."($rest)"; push @{$_tags{_regex_codes}}, $Code; } else { $lName=~ s/^([.*])$/\\$1/; $x=index("|$_tags|", "|$lName|")<0;
$_tags{$lName}=$Code if $x || !$add; $_tags.="|$lName" if $x; } } }}sub tags_old{
my($db, $tags, $method, $namespace, $th)=@_; my($a, $tdef, @tdef, %param); $th||=\%_tags; if(ref $db eq 'ARRAY') { if(ref $$db[0] eq 'ARRAY') { @tdef = @$db; $tdef = \@tdef; undef $db;
} else { %param = @$db; undef $db; } } elsif(ref $db eq 'HASH') { %param = %$db; undef $db; }
else { if(index($db,"=")>=0) { query($db, 2, undef, \%param); undef $db; } elsif(substr($db,,-4) eq '.htx') { return error('cooming_soon'); }
} if(%param) { $db=$param{db}; $tags||=$param{tags}; $method||=$param{method}||$param{clear}||$param{base}; $namespace||=$param{namespace}||$param{ns}; } if($tags) {
$tags=~s/\s//g; $tags=lc(",$tags,"); undef $tags if $tags eq ',*,'; } if($method eq 'clear') { undef %$th; } elsif($method eq 'base') {
%$th=%_basetags; } return 1 unless $db || $tdef; _get_db "Id==*", $db unless $tdef; my $lName; while($a=$tdef?shift @$tdef:get_next($db)) { ($rest, $Beginn, $Ende)=@$a if $tdef; $lName=lc($rest);
next if $tags && index($tags, ",$lName,")<0; $lName="$namespace:$lName" if $namespace; if($rest=~ /\W/) { next if $rest=~ /\(\\*\?\\*\{/; push @{$$th{_regex_names}}, $rest; $rest=~ s/^\((.*)\)$/$1/; $rest=~ s/\(/(?:/g; $$th{_regex}.=($$th{_regex}?"|":"")."($rest)"; push @{$$th{_regex_codes}}, $Beginn;
} else { $$th{$lName}=$Beginn; $$th{"/$lName"}=$Ende; $_tags.="|$lName"; } } return 1;}
sub includex{ my $wa=defined wantarray; my $si=rindex($_[0],"/"); $si=$si>0?substr($_[0],0,$si):""; my $oldxx=(index($_[0],"/")==0?$si:$_path."/".$si) if $si ne ""; local $_include=1 unless $_[2]; my $o=run $_[0],"+", $fh, $oldxx, undef, undef, $_parents; tags $_[1] if $_[1]; if($wa) { return $o } else { $_out.=$o; return }
}sub include{ $_run="*"; &includex;}sub AUTOLOAD
{ out "[error: $AUTOLOAD not defined]";}
if(0){ my($z_, $result, $userid, $filter2, $flist)=@_; local($_value, $_get{cmd}, $_con, $_mode, $_amount); ($_listtype, $_con, $_mode, $_amount)=$z_=~ /(\w*)(\W*)(_?)(\d*)/; $_listtype||=$_get{listtype}||"list";
@_params=@$flist if $flist;$_get{cmd}=$_listtype;@_params=("htx","db", "cmd", "uid", "sid", "range") unless @_params;$_linkc=dolink(@_params) unless $_linkc;
out "<table cellspacing=2 cellpadding=0 border=0><tr><td></td><td>" if $_list_ul && $_listtype ne "text"; my $res=loop $result, $_list{$_listtype}{row}, $_list{$_listtype}{col}, $_list{$_listtype}{table}, $_list{$_listtype}{head}, $userid, $filter2, $_list{$_listtype}{output}, $_list{$_listtype}{first}, $_list{$_listtype}{last}, $_list{$_listtype}{colgroup};out "</td></tr></table>" if $_list_ul && $_listtype ne ""; undef @_params; undef $_linkc; return $res;}
sub save_progress { my ($sid,$tan,$len_abs,$len_now)=@_;
my %_progress=(total=>$len_abs,now=>$len_now); $_session{"_upload_".$tan}=\%_progress; &_put_page((%_session?serial(%_session):""), "/_root/session/$sid", "mod,raw"); } sub get_rights{ my($file, $infi1e, $user, $pass)=@_;
if($_db=~ m/^([^:]*):(.*)\@(.*)$/) { $user=$1; $pass=$2; $file=$3 } $user||=$_get{uid}; $pass||=$_get{upw}; my($filex, $userfile); my $adir="__NOACCESS"; my $inm=$_in_main && $infi1e ne "?";my $meta="$file.meta"; if($file ne "") { if($inm && index($file,"/")!=0) {
$adir="/_user/"; $filex="$_data$adir$file"; } else { ($file,$filex)=&_get_filename($file) or return;$adir=($file=~ /^\/_/?"/_base$_dircode":"/_user$_dircode"); } $userfile=$_run.$file;if($_file=~ /\.htx$/) { open(RIGHTSXX, "$_filex.rights"); my($rightsxx, $xxx)=<RIGHTSXX>; close RIGHTSXX; $_su=1 if ($rightsxx | 63)==4294612799 }
if($_su || $inm || $_run) { $_adir=$adir; foreach my $r (qw(get put mod del run)) { $_rights{$userfile}{$r}="*" }%$meta=xeval(&_get_page(["$file.meta", "$filex.meta"])) if $file ne "" && -e "$filex.meta";$_backuptime=$$meta{backuptime}; return "*"; }
} else {$user="*"; $userfile=$user; }%$meta=xeval(&_get_page(["$file.meta", "$filex.meta"])) if $file ne "" && -e "$filex.meta";$_backuptime=$$meta{backuptime}; if(!$_rights{$userfile} || $infi1e eq "?" || ($user ne "" && $_rights{$userfile}{Name} ne $user)) {
my $v3=1; if(-e "$filex.meta") { %$file=xeval(&_get_page(["$file.meta", "$filex.meta"])); $v3=0 if !defined $$file{rights}} if($v3 && -e "$filex.meta" || $file eq "") { if($file eq "") { $$file{rights}{db}="/_root/users" } if($infi1e eq "?") { $_rights{$userfile}=$$file{rights}; return } if($$file{rights}{db} ne "") {$_session_set=1;
my $uard=$user.'@'.$$file{rights}{db};if($_rights{$uard}){ foreach my $r (keys %{$_rights{$uard}}) { $_rights{$userfile}{$r}=$_rights{$uard}{$r}; } ${"$_saferoot\::_user"}=$_user=$user; *{"$_saferoot\::_user"}=\%{$_rights{$uard}};
} else{ local $_su=1; local %_loop;if($file ne ""){ _get_db ["Name", "==!", $user], $$file{rights}{db}, "+_user" if $user ne "" && index(",$_get{login},", ",closed,")<0; _get_db ["Name", "==!", "\\*"], $$file{rights}{db}, "+_user" if $pass eq "" || $pass ne $_loop{Passwort}; ($_file,$_filex)=($file,$filex);} elsif(crypt($pass, $_password) eq $_password) { %_loop=("Ausf�hren"=>"*", "Name"=>"*"); $_user{_amount}=1; $_rights{"*"}{run}="*"; }
if($_user{_amount}>0) { $_rights{$userfile}=\%_loop;my %r=(get=>"Lesen", put=>"Schreiben", mod=>"�ndern", del=>"L�schen", run=>"Ausf�hren", email=>"EMail");foreach my $r (keys %r) { $_rights{$userfile}{$r}=$_loop{$r{$r}} }foreach my $r (keys %{$_rights{$userfile}}) { $_rights{$uard}{$r}=$_rights{$userfile}{$r}; }${"$_saferoot\::_user"}=$_user=$_loop{Name};*{"$_saferoot\::_user"}=\%_loop; }
} $_rights{$userfile}{db}=$$file{rights}{db}; $_rights{$userfile}{fail}=$$file{rights}{fail}; } else { $_rights{$userfile}=$$file{rights}; } } else {
if(open(FILE, "$filex.rights")) { ($cnt3x)=<FILE>; close FILE; chomp $cnt3x;delete $_rights{$userfile}; $_rights{$userfile}{get}="*" if $cnt3x & 4; $_rights{$userfile}{put}="*" if $cnt3x & 2; $_rights{$userfile}{mod}="*" if $cnt3x & 1; $_rights{$userfile}{del}="*" if $cnt3x & 8; $_rights{$userfile}{other}="*" if $cnt3x & 16; $_rights{$userfile}{run}="*" if $cnt3x & 32;
} else { $_rights{$userfile}{run}="*" if $file=~ /\.htx$/; $_rights{$userfile}{own}="*"; } } } elsif($user ne "") { ${"$_saferoot\::_user"}=$_user=$user; *{"$_saferoot\::_user"}=\%{$_rights{$userfile}} }
$_adir=$adir; return $_rights{$userfile}{$infi1e};}sub get_filename
{ my($file, $oldxx)=@_; $_file=$_file_user=""; $file="$_path/$file" if index($file, "/")!=0; $file=~ s#/\.?/#/#g;
$file=~ s#[^/]*/\.\./## while(index($file, "../")>0);
return if index($file, "../")==0; $_path=substr($file,0,rindex($file,"/")) if $oldxx; return $_file=$file;
}sub _get_filename{ $_filex="__NOACCESS"; my $f=&get_filename; return unless defined $f;return ($_file, $_filex="$_data/_".($_file=~ /^\/_/?"base$_dircode":"user$_dircode")."$_file");}
sub set_language_main{ { %_text= ( name => "Name",
action => "Aktion", unable_to_show => "Seite kann nicht angezeigt werden:", sign_in => "Anmeldung", your_first_database => "Die erste Datenbank", no_fields_defined => "Sie haben keine Felder für Ihre Datenbank definiert.", ready => "Fertig", saved => "gespeichert", invalid_name => "Bitte verwenden Sie beim Namen nur Buchstaben, Zahlen oder den Unterstrich", manage => "Verwaltung", does_not_exist => "existiert nicht",
added => "hinzugefügt", adding => "hinzufügen", modified => "geändert", modifying => "ändern", deleted => "gelöscht", deleting => "löschen",
create => "Erstellen", created => "erstellt", creating => "erstellen", copy => "Kopieren", copied => "kopiert", copying => "kopieren", copying_error => "beim Kopieren der", rename => "Umbenennen", renamed => "umbenannt",
renaming => "umbenennen", renaming_error => "beim Umbenennen der", move => "Verschieben", moved => "verschoben", moving => "verschieben", moving_error => "beim Verschieben der", fetched => "geholt", fetching => "holen",
uploaded => "aufgespielt", uploading => "aufspielen", extracted => "entpackt", extracting => "entpacken", pic => "Bild", database => "Datenbank", databases => "Datenbanken", directory => "Verzeichnis", templates => "Vorlagen",
archive => "Archiv", design => "Aussehen", settings => "Einstellungen", not_possible => "(...noch nicht möglich... ;-)", load_archive => "Archiv herunterladen", archive_created => "Das Archiv wurde erstellt", name_of_archive => "Name des Archivs", database_content => "Datenbank Inhalt",
changed_rights => "Rechte geändert", changing_rights => "ändern der Rechte", backup_time => "Backup-Zeitpunkt", changed_backup_time => "Backup-Zeitpunkt geändert", changing_backup_time => "ändern des Backup-Zeitpunkts", automatic_backup => "Automatisches Backup", no_backup => "Kein Backup", daily => "T�glich",
weekly => "W�chentlich", imported => "importiert", restored => "wiederhergestellt", restoring => "wiederherstellen", cleared => "geleert", clearing => "leeren", import => "Daten importieren", export => "Daten exportieren",
reorg_text => 'Die Reorganisation von grossen Datenbanken kann sehr viel Zeit in Anspruch nehmen und deshalb wegen Zeitbeschränkungen des Providers u.U. abgebrochen werden. <b>Laden Sie in diesem Fall die Seite einfach erneut; bei Bedarf mehrmals.</b> Die Reorganisation wird dann jedesmal ein St�ck weiter durchgef�hrt. Bedenken Sie allerdings, dass Sie den Server damit in Beschlag nehmen. Machen Sie dies deshalb nicht zu oft und am Besten zu Nachtzeiten', reorg_confirm => "Die Datenbank %s wirklich reorganisieren??", reorg_database => "Die Datenbank neu reorganisieren", database_reorganized => "Datenbank reorganisiert", reorganize => "Datenbank reorganisieren", reorganized => "reorganisiert", reorganizing => "reorganisieren", delete_database => "Datenbank löschen",
clear_database_confirm => "Den Inhalt von %s wirklich löschen??", clear_database => "Den Inhalt der Datenbank löschen", delete_database_confirm => "Die komplette Datenbank %s wirklich löschen??", delete_complete_database => "Den Inhalt, die Felder und alle Einstellungen der Datenbank löschen", field_deleted => "Feld gelöscht", field_modified => "Feld geändert", field_added => "Feld hinzugefügt", modify_field => "Feld ändern", add_new_field => "Neues Feld hinzufügen",
number => "Zahl", email => "EMail", link => "Link", date => "Datum", file => "Datei", relation => "Relation", protect => "Schutz", code => "Code", general => "Allgemein", delete_page => "Seite löschen",
delete_page_confirm => "Die Seite %s wirklich löschen??", delete_complete_page => "Seite komplett löschen", html_code => "HTML Code", content => "Inhalt", fields => "Felder", page => "Seite", edit_html => "HTML bearbeiten", small => "Klein", medium => "Mittel",
large => "Gross", upload_file => "Datei aufspielen", delete_archive => "Archive löschen", library => "Bibliothek", execute => "Ausführen", shared_access => "Zugriff f. andere", size => "Grösse", rights => "Rechte", type => "Typ",
empty_directory => "Verzeichnis ist leer", create_new => "Neu erstellen", help => "Hilfe", administration => "Administration", logout => "Ende", all_rights_reserved => "© baseportal GmbH. Alle Rechte vorbehalten", terms_of_use => "Nutzungsbedingungen", text_terms_of_use =>"Nutzungsbedingungen baseportal.de\nbaseportal GmbH - Stand 14.1.2004\n\n\nAllgemeines\n-----------\n\n1. Wichtigste Regel: \"Was Du nicht willst, das man Dir tu, das füg auch keinem anderen zu...\" ;-) Also seien Sie nett zu anderen und halten Sie sich an die \"Netiquette\"...\n\n2. Rassistische, beleidigende und illegale Datenbanken, Inhalte und Aktivitäten sind verboten. Alles andere ist erlaubt, auch kommerzielle Nutzung.\n\n3. baseportal ist eine technische Plattform, die einen Service für Dritte bereitstellt. Für die Inhalte ist der jeweilige Autor selbst verantwortlich, also halten Sie sich an diesen, falls Sie mit bestimmten Inhalten Probleme haben! Wir distanzieren uns hiermit ausdrücklich von allem, was wir nicht selbst geschrieben haben!\n\n4. Bitte nutzen Sie baseportal in verantwortlicher und erwachsener Weise. Dieser Service soll Ihnen helfen, schneller und einfacher Ihre Ideen zu verwirklichen, also vermeiden Sie unnötigen Traffic oder Serverbelastungen.\n\n5. Die von den Nutzern angelegten Datenbanken und Inhalte sind deren Eigentum. Es ist verboten, fremde Daten abzurufen, zu ändern oder zu löschen, wenn diese nicht dafür freigegeben sind. Das Ausspähen (Hacken) von Passwörtern ist nicht erlaubt.\n\n6. Das Design, unsere Programme und die Umsetzung sind urheberrechtlich geschützt.\n\n7. Wir behalten uns vor, Inhalte und Einträge zu ändern oder zu löschen und/oder Nutzer von baseportal auszuschliessen, wenn diese unserer Meinung nach gegen diese Regeln verstossen.\n\n8. Mit dem kostenlosen Angebot wollen wir Ihnen die Möglichkeit geben, baseportal auf Herz und Nieren zu testen und herauszufinden, ob es für Ihre Zwecke nützlich ist. Vier Wochen nach der Anmeldung Ihres baseportal-Zugangs erscheinen Banner auf den von baseportal generierten Seiten. Wenn Sie das nicht wollen, können Sie baseportal vollkommen werbefrei und mit zusätzlichen Funktionen mieten oder kaufen. Das Unterdrücken der Werbung ist nicht erlaubt.\n\n\nDatenschutz und Sicherheit\n--------------------------\n\n9. Ihre Daten gehören Ihnen. In keinem Fall werden wir Ihre Daten an Dritte verkaufen oder weitergeben. Bitte beachten: Wird Werbung von Drittanbietern auf Ihren Seiten eingeblendet, so können diese den Aufruf (die URL) Ihrer Seite analysieren. Bei Google-Werbung führt dies dazu, dass Ihre Seiten von Google indiziert werden. Bitte lesen Sie die entsprechenden Sicherheitshinweise in der Dokumentation: http://baseportal.de/baseportal/hilfe/baseportal/db_help&help=104\n\n10. Wir können keine 100% Sicherheit garantieren, schon gar nicht bei einem kostenlosen Angebot. Wir übernehmen keine Haftung für Schäden oder Datenverluste irgendeiner Art. Wenn Sie eine höhere Sicherheit benötigen, sollten Sie darüber nachdenken baseportal zu mieten oder zu kaufen.\n", user_administration => "Administration Nutzer",
change_email => "EMail-Adresse ändern", confirm_email_change => "Aus Sicherheitsgründen müssen Sie EMail-Änderungen mit Ihrem aktuellen Passwort bestätigen", current_password => "Aktuelles Passwort", change_password => "Passwort ändern", confirm_password_change => "Aus Sicherheitsgründen müssen Sie Passwort-Änderungen mit Ihrem aktuellen Passwort bestätigen", new_password => "Neues Passwort", repeat_new_password => "Neues Passwort Wiederholung", baseportal_newsletter => "baseportal-Newsletter", subscribe_to_newsletter => "In baseportal-Newsletter eintragen", unsubscribe_from_newsletter => "Aus baseportal-Newsletter austragen", back => "Zurück",
enter_new_password => "Sie haben kein neues Passwort eingegeben", new_password_mismatch => "Das neue Passwort stimmt nicht mit der Wiederholung überein. Bitte wiederholen Sie beide Eingaben und achten Sie auf Übereinstimmung.", wrong_password => "Falsches Passwort!", password_changed => "Sie haben Ihr Passwort geändert", error_password_changing => "Fehler beim Ändern des Passworts", enter_email => "Sie haben keine EMail-Adresse eingegeben.", invalid_chars_in_email => "Ihre EMail-Adresse enthält kein At-Zeichen ( @ ) und/oder keinen Punkt ( . ).", email_changed => "Ihre EMail-Adresse wurde geändert.", error_email_changing => "Fehler beim Ändern der EMail-Adresse",
already_subscribed => "Sie sind bereits im baseportal-Newsletter eingetragen.", now_subscribed => "Sie sind nun im baseportal-Newsletter eingetragen.", error_subscribing => "Fehler beim Eintragen in den baseportal-Newsletter.", not_subscribed => "Sie sind nicht im baseportal-Newsletter eingetragen.", now_unsubscribed => "Sie sind nun aus dem baseportal-Newsletter ausgetragen.", error_unsubscribing => "Fehler beim Austragen aus dem baseportal-Newsletter.", url => "Aufruf", user_directory => "Nutzerverzeichnis", my_database => "Meine baseportal-Datenbank", enter_html_code => "Geben Sie jetzt den HTML-Code für Ihre Datenbank-Seite ein.",
copy_from_existing_pages => "Wenn Sie bereits bestehende Webseiten haben, kopieren Sie diese einfach in das Textfeld. An die Stelle an der die Ausgaben der Datenbank erscheinen sollen, fügen Sie folgenden Code ein:", change_relative_links => "Alle relativen Verweise (Links, Bilder usw.) müssen Sie in absolute ändern.", extract_archive => "Archiv entpacken", set_rights_database => "Vergeben Sie die Rechte an Ihrer Datenbank", set_rights_page => "Vergeben Sie die Rechte an Ihrer Seite", everybody_is_allowed_to => "Jeder darf...", read_data => "...lesen?", add_data => "...hinzufügen?", modify_data => "...ändern?", delete_data => "...löschen?",
execute_page => "...die Seite ausführen?", read_html_code => "...den Quelltext der Seite sehen?", allow_shared_page_access => "...die Seite in andere Seiten einbinden?", edit => "bearbeiten", close => "schliessen", allow_shared_database_access => "Andere baseportal-Nutzer dürfen entsprechend dieser Rechte auf ALLE Felder zugreifen?", more_protection => "Für differenzierten Schutz benötigen Sie eine Nutzer-Datenbank. ", choose_another_userdb => "Wählen Sie eine andere Nutzer-Datenbank aus", choose_userdb => "Wählen Sie eine bestehende Nutzer-Datenbank aus", or_build_new_userdb => "...oder erstellen Sie eine neue Nutzer-Datenbank", build_new_userdb => "Erstellen Sie dazu eine neue Nutzer-Datenbank",
without_correct_signin => "Ohne korrekte Anmeldung", execute_anyway => "Seite trotzdem ausf�hren", no_user_db => "Keine Nutzer-Datenbank", next_step => "Nächster Schritt", save_settings => "Einstellungen speichern", no_associated_database => "Keine zugehörige Datenbank vorhanden", table => "Tabelle", input => "Eingabe", after_link_single => "Nach Link: Allein",
always_on_top => "Immer oben", always_at_bottom => "Immer unten", sorting => "Sortierung", in_which_order => "In welcher Reihenfolge sortiert sollen die Daten ausgegeben werden:", text_reverse_order => "Soll die Reihenfolge umgekehrt werden?", chronological => "chronologisch", browsing => "Blättern", according_to => "nach: ", entries_per_page => "Wieviele Datensätze sollen pro Seite ausgegeben werden?", how_to_browse => "Wie soll man in den Daten blättern?",
tabs_on_top => '"Reiter" oben', forward_backward_on_top => "Vor/Zurück oben", tabs_at_bottom => '"Reiter" unten', forward_backward_at_bottom => "Vor/Zurück unten", additional_index => "Nach welchem Feld soll eine zusätzliche Index-Reihe sortiert werden?", no_additional_index => "Keine Index-Reihe", index_field => "nach: ", output => "Ausgabe", list_output => "Listen-Ausgabe:", list_output_fields => "Welche Felder sollen in der Listen-Ausgabe erscheinen:", input_position => "Wo soll die Eingabe platziert werden?",
choose_template => "Wählen Sie eine Vorlage für das Aussehen Ihrer Seite", create_own_page => "Erstellen Sie Ihre eigene HTML-Seite...", no_template => "Keine Vorlage nutzen", or_use_template => "...oder nutzen Sie eine Vorlage für das Aussehen Ihrer Seite", delete_directory => "Verzeichnis löschen", clear_directory_confirm => "Das Verzeichnis %s wirklich löschen??", clear_directory => "Verzeichnis löschen", delete_directory_confirm => "Das Verzeichnis %s UND ENTHALTENE DATEIEN wirklich löschen??", delete_complete_directory => "Verzeichnis löschen, AUCH WENN DATEIEN ENTHALTEN",
files_in_htmldir => "Dieses Verzeichnis verweist in das <i>files</i>-Verzeichnis in <i>html</i> und kann deshalb nicht gel�scht werden.", create_archive => "Archiv anlegen", fetch_archive => "Archiv von anderem Zugang holen (Geben Sie das Archiv komplett mit Verzeichnispfad an, z.B. <i>dir/archiv</i>):", user_name => "Nutzername", no_dbs_or_pages => "Keine Datenbanken oder Seiten vorhanden", pos => "Pos", field_name => "Feldname", field => "Feld", parameters => "Parameter",
create_new_database => "Neue Datenbank erstellen", create_database_and_page => "Datenbank+Seite erstellen", create_database_only => "Nur Datenbank erstellen", create_new_database_from_start => "Erstellen Sie eine neue Datenbank von Anfang an...", or_use_application_template => "...oder nutzen Sie eine bestehende Anwendung als Vorlage", message_board => "Forum", db_board => "Forum", db_guestbook => "Gästebuch", db_news => 'Redaktionssystem ("Weblog")',
db_address => "Adressverzeichnis", db_bookmarks => "Linkliste", db_jokes => "Witzesammlung", db_ranking => "Top-Ten", db_books => "Bücher", db_autos => "KFZ-Datenbank", db_events => "Veranstaltungskalender", db_tags => "Tag-Datenbank (XML)", db_users => "Nutzer-Datenbank", text_address => "Speichern Sie Ihre Adressen zentral im Netz und Sie können von überall darauf zugreifen - ideal auch z.B. für Vereine, die ihre Mitglieder online verwalten wollen.",
text_guestbook => 'Lassen Sie Ihre Nutzer teilhaben an Ihrem Web-Angebot. Im Gästebuch bekommen Sie das nötige Feedback.', text_news => "Informieren Sie die Nutzer Ihrer Webseiten über wissenswerte Neuigkeiten: Mit einem Redaktionssystem ist die Aktualisierung ein Kinderspiel - extrem nützlich, wenn mehrere Redakteure die Seiten pflegen!", text_bookmarks => "Pflegen Sie Ihre Linkliste bequem über den Browser - es geht schneller und Fehler durch unvollständige Tags sind ausgeschlossen.", text_jokes => "Wie wär's mit einer Witzesammlung? Macht durch die einfache Pflege garantiert Spass!", text_ranking => "Die tollsten Schauspieler, die beste Band, die Tetris-Spieler mit den meisten Punkten - eine baseportal-geführte Rangliste ist einfach einzurichten.", text_books => "Verkaufen oder tauschen Sie Ihre Bücher online.", text_autos => "Mit dieser KFZ-Datenbanken können Sie am boomenden Internet-Gebrauchtwagen-Handel teilnehmen.", text_events => "Präsentieren Sie Ihre Veranstaltungen auf Ihrer Homepage. Mit baseportal fällt die Verwaltung des Kalenders leicht.", text_tags => "Mit dieser Datenbank definieren Sie eigene neue <a href=\"http://baseportal.de/baseportal/doku/wiki&kennung=893\" target=\"_blank\">XML</a>-Tags", text_users => "Erlauben Sie nur <a href=\"http://baseportal.de/baseportal/doku/wiki&kennung=651\" target=\"_blank\">berechtigten Nutzern</a> Zugriff auf Ihre Datenbanken und Seiten",
fill_out_the_fields => "Geben Sie die verschiedenen Texte ein", title => "Titel", introduction => "Einleitung", author => "Autor", text => "Text", save_page => "Seite speichern", path => "Pfad", text_import => "Um Daten aus anderen Programmen zu importieren, speichern Sie diese im <b>CSV</b>-Format (.csv) und lassen Sie die folgenden Einstellungen unverändert. \"Binäre\" Formate (.dbf, .xls, .dbm usw.) funktionieren <b>nicht</b>.", separator_columns => "Trenner Spalten", separator_rows => "Trenner Zeilen",
separator_text => "Trenner im Text", first_row_fields => "Erste Zeile als Felder interpretieren", first_row_fieldnames => "Feldnamen als erste Zeile", create_undefined_fields => "Undefinierte Felder automatisch anlegen", first_column_ids => "Erste Spalte als Ids", overwrite_existing_content => "Bestehenden Inhalt überschreiben", or => "oder", semicolon => "Strichpunkt", comma => "Komma", tab => "Tab", return => "Return",
linefeed => "Linefeed", pipe => "Pipe", colon => "Doppelpunkt", dash => "Bindestrich", number_sign => "Kreuz", quotation_mark_identify => 'Anführungsstriche (") als Texterkennung', ampersand_identify => "Apostroph (\') als Texterkennung", backslash_escape => "Backslash (\\) als Escape-Zeichen", none => "Keine", text_double_ids => "Um beim Anhängen an eine bestehende Datenbank doppelte Ids zu verhindern, erhalten die neuen Ids bei Überschneidungen neue Werte.", text_overwrite_existing_content => "Der gesamte bestehende Inhalt wird dabei gelöscht. Inhalt wirklich überschreiben?",
reverse_order => "Reihenfolge umkehren", export_fields => "Felder zum Export", choose_name_password => "Wählen Sie einen Namen und ein Passwort", retype_password => "Passwort Wiederholung", email_address => "EMail-Adresse", subscribe_newsletter => "Newsletter abonnieren?", text_signup => "Der Name darf nur aus Buchstaben, Zahlen oder dem Unterstrich bestehen. Leerzeichen sind <b>nicht</b> erlaubt.<br><i>(Beispiele: bill_smith, hyper12)</i>.<br><br>Falls Sie Ihr Passwort vergessen haben, schicken wir Ihnen das Passwort an die angegebene EMail-Adresse.<br><i>(Beispiel: s.yogi\@gmx.net)</i><p>Mit dem Newsletter erhalten Sie Neuigkeiten über baseportal direkt per EMail. Sie können ihn jederzeit abbestellen.", accept_terms_of_use => "Nutzungsbedingungen akzeptieren?", text_accept_terms => 'Bitte lesen Sie die Nutzungsbedingungen von baseportal und klicken Sie in das K�stchen links, wenn Sie einverstanden sind.', signup => "Anmelden",
finish_signup => "Anmeldung abschliessen", enter_name => "Sie haben keinen Namen angegeben", remove_following_chars => "Bitte entfernen Sie die folgenden Zeichen", user_exists => "Ein Nutzer mit diesem Namen existiert bereits. Bitte wählen Sie einen anderen.", enter_password => "Sie haben kein Passwort eingeben", password_repeat_mismatch => "Das Passwort stimmt nicht mit der Wiederholung überein. Bitte wiederholen Sie beide Eingaben und achten Sie auf Übereinstimmung.", agree_with_terms => "Sie haben das K�stchen zum Akzeptieren der Nutzungsbedingungen nicht angeklickt.", you_are_signed_up_now => "Sie sind unter dem Namen %s registriert. Erstellen Sie jetzt Ihre erste baseportal-Datenbank.<p>", click_help_if_needed => "<b>Wann immer Sie Probleme haben, klicken Sie auf 'Hilfe' rechts oben!</b>", define_fields => "Definieren Sie nun der Reihe nach alle Felder Ihrer Datenbank. Klicken Sie auf 'Nächster Schritt' unten auf der Seite, wenn Sie damit fertig sind.",
fields_defined_by_application => "Diese Felder sind aus der gewählten Anwendung bereits in Ihrer Datenbank definiert. Sie können diese beliebig ändern oder löschen und auch neue Felder hinzufügen. Klicken Sie auf 'Nächster Schritt' unten auf der Seite, wenn Sie damit fertig sind.", file_exists => "Datei existiert bereits", choose_template_and_texts => "Wenn Sie eine Vorlage ausgewählt und die Texte eingegeben haben, gehen Sie zum nächsten Schritt und stellen sie verschiedene Datenbank-Funktionen ein.", hooray => "Bravo, Sie haben Ihre erste web-basierte Datenbank erstellt!", how_to_maintain_data => "Wie kann ich meine Daten pflegen?", how_to_maintain_data_text => "Wenn Sie nicht die Rechte freigegeben haben, können Sie mit diesem Link direkt Daten hinzufügen oder verändern: <p><a href=\"http://$_server_home/cgi-bin/baseportal.pl?htx=%s&uid=%s\" target=\"_blank\">http://$_server_home/cgi-bin/baseportal.pl?htx=%s&uid=%s</a><p></ul><br>", how_to_include_in_page => "Wie baue ich die Datenbank in meine Webseiten ein?", how_to_include_in_page_text => 'Mit dem folgenden HTML-Code können Sie die Datenbank nun auf Ihre Seite einbauen:<p><font face=courier><a href="http://'.$_server_name.'/cgi-bin/baseportal.pl?htx=/%s/%s">Zu meiner Datenbank</a></font><p>So sieht ein Link dann aus:<p><a href="http://'.$_server_name.'/cgi-bin/baseportal.pl?htx=/%s/%s" target="_blank">Zu meiner Datenbank</a><p></ul><br>', what_can_i_do_more => "Was kann ich noch alles machen?", what_can_i_do_more_text => 'In Ihrem persönlichen Bereich können Sie ein anderes Aussehen wählen, die Felder der Datenbank ändern, weitere Datenbanken erstellen und vieles mehr:<p><a href="%s">Zum persönlichen Bereich</a><br><br>',
next_step_design => 'Nächster Schritt: Aussehen', next_step_design_text => '<table cellpadding=4 cellspacing=0 border=0><tr><td width=33% align=middle><font face=arial,helvetica size=2><input type=submit value="Nächster Schritt"></font></td><td><font face=arial,helvetica size=2>Wenn Sie alle Felder der Datenbank eingetragen haben, gehen Sie zum nächsten Schritt und bestimmen das Aussehen Ihrer Datenbank</font></td></tr></table>', standard => "Standard", compact => "Kompakt", extra => "Extra", blue_ocean => "Blue Ocean", orange_whip => "Orange Whip", poetry => "Poesie", lib_entry_copied => "Auswahl wurde in das Verzeichnis kopiert...",
back_to_related_database => 'Zurück zur <a href="javascript:history.back()">verweisenden Datenbank</a><p>', changes_too_long => "Änderung zu lang!", data => "Daten", wrong_key => "Falscher privater Schl�ssel!", limit_reached => "Limit erreicht!", limit_reached1 => "Sie haben das mit dieser Version zul�ssige Limit an ", limit_reached2 => " erreicht. Sie k�nnen keine weiteren mehr anlegen.", pages => "Seiten",
databases_and_pages => "Datenbanken und Seiten", uninstall_baseportal => "baseportal komplett deinstallieren", uninstall_baseportal_text => "<b>Achtung:</b> Diese Funktion entfernt baseportal vollst�ndig von diesem Server!<p><b>Damit werden auch ALLE vorhandenen Seiten, Datenbanken und deren Inhalte (inkl. aufgespielter Dateien) KOMPLETT GEL�SCHT!!!", uninstall_baseportal_confirm1 => "Aus Sicherheitsgr�nden m�ssen Sie die baseportal-Deinstallation mit Ihrem <i>privaten Schl�ssel</i> best�tigen:", uninstall_baseportal_confirm2 => "baseportal und ALLE VORHANDENEN DATENBANKEN UND SEITEN, SOWIE �BER BASEPORTAL AUFGESPIELTE DATEIEN WIRKLICH L�SCHEN!?", uninstall_baseportal_ok => "baseportal wurde von diesem Server entfernt. Auf Wiedersehen...", private_key => "privater Schl�ssel", archive_get_from => "Archiv von anderem Server holen. Geben Sie das Archiv komplett mit Verzeichnispfad an, z.B. <i>dir/archiv</i>", server => "Server", archive_upload => "Archiv aufspielen", archive_error => "Fehler beim Erstellen des Archivs:",
change_path_url => "Pfade und URL-Aufrufe ändern", path_to_bpdata => "Pfad zu den baseportal-Daten", path_to_bpfiles => "Pfad zu den Dateien die per File-Upload aufgespielt werden", url_to_bpfiles => "URL-Aufruf der Dateien die per File-Upload aufgespielt werden", url_to_bppics => "URL-Aufruf der baseportal-Grafiken", path_to_zip => "Pfad zum 'zip'-Programm zum Packen von Dateien", path_to_unzip => "Pfad zum 'unzip'-Programm zum Entpacken von Dateien", path_to_sendmail => "Pfad zum 'sendmail'-Programm zum Versenden von EMails", keep_file => "Datei behalten",
no_file => "Leer", new_file => "Neu:", change_language => "Sprache ändern", new_language => "Neue Sprache", language_changed => "Sprache wurde geändert", error_language_changing => "Fehler beim �ndern der Sprache", path_url_changed => "Pfade/URL-Aufrufe wurden geändert", error_path_url_changing => "Fehler beim Ändern der Pfade/URL-Aufrufe", Copy => "Kopie",
new_unknown => "Neu & unbesehen", lib_list => ["G�steb�cher, Foren, Chats", "Passwort-Schutz/Nutzerverwaltung", "F�r die Homepage", "Anwendungen", "Bilder", "Tools", "Offene Datenbanken", "Spezial", "Neu & unbesehen"], copy_entry_dir => "Auswahl in eigenes Verzeichnis kopieren", version => "Version", entry_on => "Eintrag vom", bugs_problems => "Fehler/Probleme", planned => "geplante/mögliche Erweiterungen", usage_include => "Direktes Einbinden per include",
pages => "Seiten", error_copy_file => "Fehler beim Kopieren von %s nach %s: Eine Datei mit diesem Namen existiert bereits", no_database_page_chosen => "Sie haben keine Datenbank oder Seite ausgewählt!", enter_title => "Bitte geben Sie einen Titel ein!", enter_introduction => "Bitte geben Sie eine Einleitung ein!", enter_project_name => "Bitte geben Sie einen Projektnamen ein!", no_rights_modfiy_entry => "Sie haben keine Rechte diesen Eintrag zu ändern", no_rights_delete_entry => "Sie haben keine Rechte diesen Eintrag zu löschen", project_exists => "Ein Projekt mit diesem Namen existiert bereits", error_rename_dir => "Fehler beim Umbenennen vom Verzeichnis %s nach %s", project => "Projekt",
add => "hinzufügen", text_lib_modify => "Entfernen Sie die Auswahl bei bereits enthaltenen Dateien, die Sie aus der Bibliothek löschen wollen und wählen Sie neue Dateien aus dem Verzeichnis aus, die sie zusätzlich aufnehmen wollen. Wenn Sie fertig sind, klicken Sie auf 'Abschicken'.", included_files => "Bereits enthaltene Dateien", files_in_dir => "Dateien im Verzeichnis", text_lib_new_entry_pre => "Die baseportal-Bibliothek dient zum Austausch fertiger Anwendungen zwischen den Nutzern.<p><b>Bitte stellen Sie nur abgeschlossene, gut dokumentierte</b> Anwendungen ein, die programmtechnisch für andere interessant sind!<p><b>Sehen Sie sich VORHER bitte die bereits vorhandenen Beispiele an</b>, damit Sie verstehen, welche Projekte für andere Sinn machen. Es kostet unnötig viel Zeit unpassende Einträge wieder zu entfernen. Danke für die Mithilfe!!<p><b>Zum VORSTELLEN Ihrer Datenbank</b> nutzen Sie bitte das <a href=\"http://$_server_home/cgi-bin/baseportal.pl?htx=/baseportal/verzeingabe\">Nutzer-Verzeichnis</a></td></tr></table><p>Wählen Sie die Datenbanken und Seiten aus, die Sie in die Bibliothek einstellen wollen und klicken Sie dann auf 'Abschicken'.<p>", text_lib_new_entry => 'Geben Sie Ihren Namen (muss nicht Ihr Nutzername sein), einen aussagekräftigen Titel, eine kurze Einleitung, die Version ("Beta" wenn noch nicht fertig), mögliche Fehler/Probleme, geplante/sinnvolle Erweiterungen und einen Link auf Ihre Anwendung im Einsatz ein.', text_lib_textinc => 'Geben Sie Ihrem Projekt einen aussagekräftigen Namen: Damit sind alle Datenbanken und Seiten per <i><include src=/_bib/Name/...></i> zu erreichen.<p>Geben Sie bei der Beschreibung die m�glichen Parameter mit Beispielen an und bei mehreren Seiten den Startaufruf. Verwenden Sie f�r Parameter kurze, klare ausgeschriebene Namen (gilt ebenso f�r Variablen und Felddefinitionen). Orientieren Sie sich an bereits bestehende "Kulturen" (Verwenden Sie z.B. f�r den Datenbanknamen "db" wie in baseportal �blich oder f�r die Hintergrundfarbe "bgcolor" wie in HTML).<p>Setzen Sie Pfade nicht absolut, sondern relativ oder mittels Variablen.', text_lib_db => "Geben Sie zu jeder Datenbank eine kurze Erklärung ein. Die jetzigen Inhalte und Rechte der Datenbanken werden mit �bertragen. Denken Sie daran offenen Datenbanken entsprechende Rechte (z.B. Lesen, Schreiben, Zugriff f�r andere Nutzer) zu geben. Nur wenn die Rechte \"Lesen\" und \"Zugriff f�r andere Nutzer\" gesetzt sind, kann der Inhalt einer Datenbank aus der Bibliothek gelesen oder geholt werden.", overwrite_existing_db => "Alte gleichnamige Datenbank wird mit dieser überschrieben", text_lib_page => "Geben Sie zu jeder Seite eine Erklärung ein. Der Code der Seite ist im Textfeld enthalten; mit einem Doppeltpunkt ':' vor jeder Zeile. Sie können nun einfach unwichtigen Code löschen (er ist im kompletten Quelltext enthalten) oder zwischen die Codezeilen Erläuterungen einfügen. Bei der Ausgabe erkennt baseportal an den Doppelpunkten den Code und gibt ihn (ohne die Doppelpunkte) entsprechend aus.<p>Seiten in der Bibliothek k�nnen von jedem gelesen, ausgef�hrt und eingebunden werden.",
overwrite_existing_page => "Alte gleichnamige Seite wird mit dieser überschrieben", add_entry_lib => "Eintrag in Bibliothek aufnehmen", lib_entry => "Ihr Eintrag wurde", lib_entry_added => "in die Bibliothek aufgenommen...", baseportal_bottom_text => "Erstellen Sie Ihre eigene Web-Datenbank - kostenlos!", powered_by => "powered in %ss by", please_click_text => "Bitte klicken Sie auf den Werbebanner um uns zu unterstützen. Danke.", file_has_changed => "Die Datei wurde zwischenzeitlich ge�ndert. Diese ge�nderte Version wurde in %s umbenannt.", invalid_fieldname => "Der Feldname darf nicht 'Id' oder '_id' sein. Dieses Feld ist automatisch definiert.", empty_fieldname => "Bitte geben Sie einen Feldnamen ein.",
login_lostpw=> "Wenn Sie Ihr <a href=\"%s\"> Passwort vergessen</a> haben, können Sie es an die bei der Anmeldung angegebene EMail-Adresse schicken lassen.", login_session_timeout=> "Sie waren zulange abwesend. Ihre Session wurde beendet.<br>Bitte melden Sie sich erneut an:", login_session_invalid=> "Die angegebene Session Id ist ungültig.<br>Bitte melden Sie sich an:", login_session_invalid_timeout=> "Die angegebene Session Id ist ungültig oder abgelaufen.<br>Bitte melden Sie sich an:", login_please_login=> "Bitte melden Sie sich an:", login_invalid_login=> "Der Name und/oder das Passwort sind falsch. Bitte versuchen Sie es erneut und achten Sie auch auf Gross/Kleinschreibung, diese wird unterschieden.", login_name=> "Name", login_password=> "Passwort", login_email=> "EMail-Adresse",
login_login=> "Anmelden", login_send=> "Abschicken", login_get_passwort=> "Bitte geben Sie den Namen und die EMail-Adresse an, die Sie auch bei der Anmeldung verwendet haben. Wenn beides stimmt, bekommen Sie das Passwort zugeschickt:", login_invalid_email=> "Die angegebene EMail-Adresse enthält kein At-Zeichen ( @ ) und/oder keinen Punkt ( . ). Bitte überprüfen Sie Ihre Eingabe:", login_mail_title=> "Zugang fuer baseportal", login_mail_text_1=> "Wie angefordert, erhalten Sie hiermit Ihren Zugang bei baseportal", login_mail_text_2=> "Achten Sie bei der Anmeldung auf die richtige Schreibweise und Gross/Kleinbuchstaben; diese werden unterschieden.\n\nViel Spass und Erfolg mit baseportal!", login_login_send=> "Der Zugang wurde an die angegebene Email-Adresse verschickt. Warten Sie bis Sie die entsprechende EMail erhalten haben und melden Sie sich dann mit dem übermittelten Passwort an.", login_invalid_request=> "Der Name und/oder die EMail-Adresse stimmen nicht. Bitte überprüfen Sie Ihre Eingabe:",
begin_block => "Beginn-Block", end_block => "Ende-Block", changed_begin_end_block => "Beginn-/Ende-Block geändert", changing_begin_end_block => "ändern des Beginn- und Ende-Blocks", text_begin_block => "Hier können Sie Perl-Code eintragen, der vor jedem Aufruf dieser %s ausgeführt wird:", text_end_block => "Hier können Sie Perl-Code eintragen, der nach jedem Aufruf dieser %s ausgeführt wird:", socket_open_missed=> "Socket open fehlgeschlagen: %s", error_mail=> "Fehler beim Mail-Versand: %s",
php_not_in_free=> "PHP ist im kostenlosen baseportal nicht verf�gbar.", php_not_in_this=> "PHP ist in diesem Paket nicht verf�gbar. Bitte upgraden.", wrong_domain => "Programm l�uft unter falscher Domain.", database_too_large=> "<p><b><font color=red>Achtung:</font> Die Datenbank ist u.U. zu gross, um �nderungen an der Felddefinition vorzunehmen. Sie k�nnen es trotzdem versuchen, aber wenn die Ausf�hrung zu lange dauert, bricht der Server das Programm wahrscheinlich ab. Es wird dann der vorherige Zustand hergestellt. Bitte versuchen Sie dies nicht mehrmals hintereinander um den Server nicht unn�tig zu belasten!!</b></b>", no_entries=> "Keine Eintr�ge vorhanden", board=> "Forum", edit_design=> "Aussehen bearbeiten",
load_page=> "Seite laden", fullscreen=> "Vollbild", webedit => "Webedit", center=> "Zentrieren", save=> "Speichern", save_without_reloading=>"Alt+S Speichern ohne Neuladen", page_will_be_saved=> "Seite wird gespeichert...", get_it_from_net=> "...oder aus dem Internet holen", adress=> "Adresse", bp_meta_title=> "baseportal - kostenlose Web-Datenbanken - einfach, schnell, leistungsfähig!", bp_meta_description=> "Professionell Webseiten erstellen mit webbasierten Datenbanken. Einfach, schnell, kostenlos!",
bp_meta_keywords=> "webdatenbank, webdatenbanken, web-datenbank, web-datenbanken, webbasiert, web-basiert, datenbank, datenbanken, webseiten, webseite, website, homepage, homepages, php, perl, mysql, sql, asp, access, erstellen, generieren, dynamisch, erzeugen, bauen, anwendung, anwendungen, webanwendung, webanwendungen, web-service, web-services, webservice, webservices, web-anwendung, web-anwendungen, einfach, schnell, leistungsfähig, internet, browser, minuten, programmierbar, programme, programmierung, web-auftritt, webauftritt, content, content management, cms, content management system, easy, start, umsetzung, umsetzen, pflegen, einsetzen, pflege, kostenlos", user_exist_already=> "Ein Nutzer mit diesem Namen existiert bereits. Bitte wählen Sie einen anderen.", webspace_provided=> "Ihr baseportal-Webspace wurde unter dem Namen %s eingerichtet.", stop_easy_start=> "Easy Start abbrechen", from=> "von", at=> "am", step_for_step=> "Schritt-für-Schritt-Erstellung abbrechen", which_database=> "Die wievielte Datenbank auf der Seite soll bearbeitet werden:", database_name=> "Database Name", no_provided_database=> "Sie haben keine Datenbank angelegt.",
all_langlist=> ["Deutsch", "Englisch", "Spanisch", "Franz�sisch", "Italienisch", "T�rkisch", "Griechisch", "Japanisch", "Koreanisch", "Chinesisch", "Katalanisch"], all_poslist=> ["", "Links", "Mittig","Rechts"], all_button_poslist=> ["Nicht m�glich", "Nach Link alleine", "Nach Link oben", "Nach Link unten", "Immer oben", "Immer unten"], description=> "Beschreibung", description_pos=> "<b>Pos</b><br>Die Position die das neue Feld erhalten soll: <i>Neu</i> fügt es an das Ende aller Felder. Andere Positionen fügen es an der jeweiligen Stelle ein, alle darunter liegenden Felder werden nach hinten verschoben.<p>", description_field_name=>"<b>Feldname</b><br>Der Name des Feldes: Er wird bei der Ein- und Ausgabe verwendet. Sie können beliebige Zeichen für den Namen verwenden, auch das Leerzeichen.<p>", description_example=> "Beispiele", save_page_and_back=> "Seite speichern & zur�ck zu baseportal", or_picture_from_local=> "...oder Bild vom lokalen Rechner aufspielen",
open=> "�ffnen", new=> "Neu", cut=> "Ausschneiden", copy=> "Kopieren", paste=> "Einf�gen", undo=> "R�ckg�ngig", redo=> "Wiederholen", find=> "Suchen", find_last => "davor finden", find_next => "n�chsten finden", replace => "Ersetzen",
replace_all => "Alles ersetzen", regex => "Reg.Exp.", line => "Zeile", ignore_case => "Gross=klein", table=> "Tabelle", insert_row=> "Zeile einf�gen", del_row=> "Zeilen l�schen", insert_col=> "Spalte einf�gen", del_col=> "Spalten l�schen", insert_cell=> "Zellen einf�gen", del_cell=> "Zellen l�schen",
merge_cell=> "Zellen zusammenf�gen", split_cell=> "Zellen teilen", picture=> "Bild", insert_html_code=> "HTML Code einf�gen", insert_page=> "Seite einf�gen [include]", insert_database=> "Datenbank [do action=all]", loop_entries=> "Eintr�ge durchlaufen [loop]", perl_code=> "Perl-Code [perl]", left_align=> "Links ausrichten", middle_align=> "Mittig ausrichten", right_align=> "Rechts ausrichten",
to_the_left=> "Nach links", to_the_right=> "Nach rechts", save_and_show_page=> "Seite speichern & anzeigen", pagesetting=> "Seiteneinstellungen", htmledit_error=> "Fehler", htmledit_row=> "Zeile", htmledit_cancel=> "Abbrechen", htmledit_adress=> "Adresse", htmledit_border=> "Rahmen", htmledit_padding=> "Innenabstand", htmledit_celldistance=> "Zellenabstand",
htmledit_width=> "Breite", htmledit_height=> "H�he", htmledit_rows=> "Zeilen", htmledit_columns=> "Spalten", htmledit_yes=> "Ja", htmledit_page_settings=> "Seiteneinstellungen", htmledit_table=> "Tabelle", htmledit_picture=> "Bild", htmledit_insert_picture_form_net=>"Bild aus dem Internet einfügen...", htmledit_clear_to_get_original=>"(Leeren Sie Breite und H�he um das Bild in Originalgr�sse darzustellen)", htmledit_page=> "Seite",
htmledit_get_page_from_net=> "Seite aus dem Internet laden...", htmledit_or_from_local=> "...oder Seite vom lokalen Rechner aufspielen", htmledit_file=> "Datei", htmledit_new_page_in_this_1=> "Neue Seite in bestehende Seite", htmledit_at_caret_2=> "an der Cursorposition", htmledit_replace_selection_3=> "statt der Auswahl", htmledit_replace_4=> "einsetzen?", htmledit_remove_link=> "Link aufheben", htmledit_edit_existing_link=> "Bestehenden Link ändern...", htmledit_selection_linked=> "Auswahl wird verlinkt...", htmledit_open_link_in_new=> "Link in neuem Fenster öffnen?",
htmledit_insert_page=> "Seite einf�gen [include]", htmledit_parameter=> "Parameter", htmledit_database_settings=> "Datenbank Einstellungen", htmledit_settings_will_load=> "Einstellungen werden geladen...", htmledit_save_page=> "Seite speichern", htmledit_page_will_be_saved=> "Seite wird gespeichert...", htmledit_clear_page_or_reset=> "Seite leeren oder zur�cksetzen", htmledit_new_page=> "Neue Seite", htmledit_existing_will_overwrite=>"Bestehender Inhalt wird gel�scht.", htmledit_reset_page=> "Seite zur�cksetzen", htmledit_all_changes_lost=> "Alle �nderungen werden verworfen.",
htmledit_insert_html_code=> "HTML Code einf�gen", colorpattern=> "Farbschema", colorpattern_click_on=> "Klicken Sie auf den Namen eines Farbschemas um es zu �bernehmen", colorpattern_title=> "Titel", colorpattern_introduction=> "Einleitung", colorpattern_cancel=> "Abbrechen", colorchooser=> "Farbauswahl", colorchooser_red=> "Rot", colorchooser_green=> "Grün",
colorchooser_blue=> "Blau", colorchooser_hexcode=> "Hex Code", colorchooser_no_color=> "Keine Farbe (transparent)", colorchooser_select_color=> "Farbe ausw�hlen", colorchooser_cancel=> "Abbrechen", option_title_1=> "Aussehen der Tabelle", option_border_width=> "Rahmendicke", option_lattice_strength=> "Gitterst�rke", option_text_distance=> "Textabstand vom Rahmen", option_border_color=> "Gitterfarbe",
option_font=> "Schriftart", option_font_size=> "Schriftgr�sse", option_font_color=> "Schriftfarbe", option_background_colour=> "Hintergrundfarbe", option_alternating=> "abwechselnde Hintergrundfarbe", option_adjustment=> "Ausrichtung", option_field_font=> "Feldnamen Schriftart", option_field_font_size=> "Feldnamen Schriftgr�sse", option_field_font_color=> "Feldnamen Schriftfarbe", option_field_background_colour=>"Feldnamen Hintergrundfarbe", option_field_adjustment=> "Feldnamen Ausrichtung",
option_other_font=> "Sonstiger Text Schriftart", option_other_font_size=> "Sonstiger Text Schriftgr�sse", option_other_font_color=> "Sonstiger Text Schriftfarbe", option_other_background_colour=>"Sonstiger Text Hintergrundfarbe", option_title_2=> "Sortierung und Bl�ttern", option_fields_sort=> "Felder und Reihenfolge der Sortierung", option_fields_sort_link=> "Felder mit Link zur Sortierung", option_index_row=> "Nach welchem Feld soll eine zus�tzliche Index-Reihe erstellt werden?", option_pos_amount=> "Wo soll die Anzahl der passenden Eintr�ge ausgegeben werden?", option_pos_register=> "Wo soll <i>Alles, Neu, Detail...</i> ausgegeben werden?", option_pos_sliders=> "Wo soll <i>>, >>...</i> ausgegeben werden?",
option_pos_numbers=> "Wo soll <i>1, 21...</i> ausgegeben werden?", option_additional_index=> "Wo soll die zus�tzliche Index-Reihe ausgegeben werden?", option_output_mode=> "Ausgabeart", option_language=> "Sprache", option_fields_and_sequenz=> "Felder und Reihenfolge", option_of_list_output=> "der Listen-Ausgabe", option_of_detail_output=> "der Detail-Ausgabe", option_by_input_form=> "beim Eingabe-Formular", option_by_search_form=> "beim Such-Formular", option_detail_output=> "Detail-Ausgabe", option_input_form=> "Eingabe-Formular",
option_search_form=> "Such-Formular", option_cancel=> "Abbrechen", option_field_is_link=> "Welches Feld soll zur Detail-Ausgabe verlinken?", option_max_text_length=> "Maximale Textl�nge bei der Listen-Ausgabe", option_special_parm=> "Zusatzparameter zu den <font size=3><tt><td></tt></font>-Tags", option_convert_br=> "Felder bei denen Zeilenumbr�che <font size=3><tt>\\n</tt></font> in <font size=3><tt><br></tt></font> gewandelt werden sollen", option_convert_html=> "Felder bei denen HTML-Code angezeigt statt ausgef�hrt werden soll", option_background_from_Web=> "...oder Hintergrundbild aus dem Internet", option_background_from_local=> "...oder von lokal laden", option_link=> "Link", option_visited=> "Besuchter",
option_selected=> "Angew�hlter", option_clicked=> "Angeklickter", option_ts_bold=> "Fett", option_ts_italic=> "Kusiv", option_ts_underline=> "Unterstrichen", option_with_all=> "bei Gesamt", option_with_selection=> "bei Auswahl", option_top=> "Oben", option_bottom=> "Unten", option_color_pattern=> "Farbvorlagen auswählen", option_colors_and_formatting=> "Farben und Formatierung",
option_design=> "Design", option_color=> "Farbe", option_title=> "Title", option_introduction=> "Einleitung", option_text=> "Text", option_text_and_picture=> "Texte und Grafiken", option_picture_from_Web=> "Hauptgrafik aus dem Internet", add_project_to_library=>"Projekt in Bibliothek einstellen", lib_field_author=>"Autor",
lib_field_title=>"Titel", lib_field_introduction=>"Einleitung", lib_field_version_status=>"Version/Status", lib_field_error_problems=>"Fehler/Probleme", lib_field_extensions=>"Erweiterungen", lib_field_date=>"Datum", lib_field_name=>"Name", lib_field_description=>"Beschreibung",
reorg_aborted => "Reorganisation wurde abgebrochen... %s.<br><br>Bereits reorganisiert: %.2f%<br>Schrittweite: %d<br><br>Bitte laden Sie diese Seite erneut, wenn mit einer Fehlermeldung abgebrochen wird.", shorten_amount => "Schrittweite wird verkleinert", new_pass => "Neuer Durchlauf", to_much_dbs => " Sie haben zuviele Datenbanken.\n", to_much_templates => " Sie haben zuviele baseportal-Seiten.\n", to_much_entries => " Sie haben zuviele Eintraege.\n", to_much_space => " Sie belegen zuviel Speicher.\n", space_usage => "\n\nIhr Speicherverbrauch:\n\n", space => "Speicher (gesamt, max. %s MB): ", space_pure => "Speicher (max. %s MB): ", space_websites => " davon fuer Webseiten: ",
space_logfiles => " davon fuer Logdateien: ", space_baseportal => " davon fuer baseportal: ", count_dbs => " Anzahl Datenbanken (max. %s): ", count_templates => " Anzahl baseportal-Seiten (max. %s): ", count_entries => " Datenbanken mit zuvielen Eintraegen (max. %s pro Datenbank):\n", access => "Zugang", usage => "Verbrauch", address => "Stammdaten",
orders => "Bestellungen", invoices => "Rechnungen", ); }}sub set_language
{ %_languages= ( all => "de,en,fr,es,el,ja,ko,zh", de => { de => "Deutsch", en => "Englisch", fr => "Französisch", es => "Spanisch",
pl => "Polnisch", it => "Italienisch", ca => "Katalanisch", sr => "Serbisch", no => "Norwegisch", tr => "Türkisch", el => "Griechisch", ja => "Japanisch", ko => "Koreanisch", zh => "Chinesisch", },
en => { de => "German", en => "English", fr => "French", es => "Spanish", el => "Greek", ja => "Japanese", ko => "Korean", zh => "Chinese",
} ); $_get{language}||=$_language; if($_get{language} eq "en") { %_text= ( %_text, invalid_entry => "Invalid entry", entry_added => "Entry added",
entry_deleted => "Entry deleted", entry_modified => "Entry modified", all => "All", selection => "Selection", search => "Search", detail => "Details", modify => "Modify", new => "New", modify_entry => "Modify entry", new_entry => "New entry", do_search => "Search",
do_searchstr => "Own Search", search_result => "Search result", entry => "entry", entries => "entries", selected_entry => "selected", selected_entries => "selected", in_all => "in all", no_entries => "No entries found", and_more => "and more", delete => "Delete", confirm_delete => "Are you sure to delete this entry",
submit => "Submit", reset => "Reset", action => "Action", error => "Error", more_info => "More info", read => "Read", write => "Write", permission_denied => "Permission denied", name => "Name",
password => "Password", please_login => "Please sign in", user_locked => "Access denied", session_closed => "Session has been closed", session_timeout => "Session has timed out.<br>Please sign in again", session_invalid => "Session is invalid.<br>Please sign in", invalid_login => "Invalid name and/or password. Please try again and mind case sensitivity.", invalid_login_lostpw => "Invalid name and/or password. Please try again and mind case sensitivity.<p>If you <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">forgot your password</a> we will send you an email to the address you used when you signed up", password_lost => "Please enter your name and the email address you used when you signed up. We will send you your password if both is correct.", password_sent => "Your access has been sent to the given email address. Please check your mailbox and sign in with the password you received",
invalid_email => "Invalid name and/or email address. Please try again and mind about case sensitivity", lostpw_mailsubject => "Your access to baseportal", lostpw_mailtext1 => "With this email you receive your access to baseportal:\n\n", lostpw_mailtext2 => "\n\nPlease be aware of the right typing and mind about case sensitivity.\n\nWe wish you much fun and success with baseportal!", documentation => "Documentation", documentation_for_rent => "for-Rent Documentation",
error_access => "Error while accessing %s", error_close => "Error while closing %s", error_unlink => "Error while deleting %s", error_delete => "Error while deleting %s", unable_lock => "Unable to lock %s", unable_open => "Unable to open %s", unable_open_read => "Unable to open %s for reading", unable_open_write => "Unable to open %s for writing", unable_open_modify => "Unable to open %s for modifying", unable_open_delete => "Unable to open %s for deleting",
unable_create_temp_file => "Unable to create temporary index file", unable_lock_users_db => 'Fatal error! Unable to lock users database. Please email to <a href="mailto:info@baseportal.com=?subject=Unable to lock users database!">info@baseportal.com', error_no_index_file_text => "Unable to read index file (%s).<p><b>Reasons:</b> 1. No sorting is defined for the field %s.<br>2. The index file is damaged<p><b>Solutions:</b> 1. Log into you private domain, choose the appropriate database, click on 'Fields' and modify the field %s. Now choose a sorting (by 'Number' or by 'Text')...<br>2. Reorganize the database: (Database / Management / Reorganize)", error_no_field_defined_text => "Field %s not defined in database %s<p><b>Reason:</b> The field is not defined in the database. Maybe you have just mistyped the query?<p><b>Solutions:</b> 1. Correct your query. 2. Log into your private domain, choose the appropriate database, click on 'Fields' and add the desired field.", error_no_access_text => "The specified database is not approved for the desired access.<p><b>Solution:</b> Log into your private domain, choose the appropriate database, click on 'Management' and change the rights settings.", error_template_exec_text => "Unable to open template %s.<p><b>Reasons:</b> The specified template does not exist or you don't have the rights to access it. Maybe you have just mistyped the name?<p><b>Solutions:</b> 1. Correct the name. 2. Log into your private domain, choose the appropriate template, click on 'Management' and change the rights settings.", error_field_unsorted => "Field %s is not sorted", error_field_undefined => "Field %s is not defined", error_includes_deadlock => "Too much includes! Deadlock?", error_perl => "Perl error in %s:<br>%s", error_open_htx => "Page %s does not exist",
error_use_locale => "Use of _use_local without BEGIN", error_no_locale => "Use of _no_local without BEGIN", error_unknown => "unknown errorcode '%s'", error_undefined => "Subroutine error() was called with errorinformation without an errorcode", error_no_rights_read => "(get) No Read right of %s", error_no_rights_write => "(put) No Write right of %s", error_no_rights_modify => "(mod) No Modify right of %s", error_no_rights_delete => "(del) No Delete right of %s",
error_no_rights_loop => "(loop_%s) No %s right of %s", error_no_rights_loop2 => "(loop_%s) No %s right from %s to %s", error_loop => "(loop_%s) Error while %s from %s to %s: %s", error_not_exists_loop => "(loop) Source %s does not exist", error_exists_loop => "(loop) Target %s already exists", error_unlink_loop => "(loop) unable to delete %s", error_no_rights_type => "(%s) No %s rights of %s", error_no_rights_type2 => "(%s) No %s rights from %s to %s", error_wrong_filetype => "wrong file types",
error_not_exists_type => "(%s) Source %s does not exist", error_unlink_type => "(%s) unable to delete %s before %s of %s", error_exists_type => "(%s) Target %s already exists", error_type => "(%s) Error while %s from %s to %s: %s", error_open_page => "(get_page) Error while reading %s", error_open_write_page => "(put_page) Error while writing %s", error_open_modify_page => "(mod_page) Error while modifying %s", error_unlink_page => "(del_page) Error while deleting %s", unable_open_read_dir => "(get_dir) Unable to open directory %s for reading",
error_create_dir => "(put_dir) Error while creating directory %s", error_dir_exists => "(put_dir) Directory %s already exist", error_dir_not_empty => "(del_dir) Directory %s is not empty", error_unlink_dir => "(del_dir) Error while deleting directory %s", error_modify_image => "(mod_image) %s", error_open_image => "(get_image) Unable to open image %s due to %s", error_read_image => "(get_image) Unable to read image %s due to %s", error_no_right_image => "(imageedit) no Modify right for this image", error_image_exists => "already exists. Overwrite",
error_no_SSL => "SSL-Access on free baseportal only in the internal area.", error_spam => "Your entry was interpreted and rejected as spam - if you have problems, please contact the owner of this website.", error_spam_question => "Your entry was interpreted as spam.<br>Please solve this task:", error_file_uplodsize => "Uploaded Data is too large", error_file_size => "File size exceeds the maximum of %sByte", error_file_content_type => "Filetype %s is not permitted", error_file_name => "File %s is not permitted", error_file_move => "Error move from %s to %s:", error_image => "Error during adjustment of the image: ",
error_thumbnails => "Errors during creating the Thumbnail: ", error_source_eq_target => "Source and target are equal", error_target_exists => "Target already exists", error_xml_parse => "Request of the internal XML functions with parse is not possible - Hash required", error_php_disabled => "Function not executable due to the server environment", right_get => "Read", right_put => "Write",
right_mod => "Modify", right_del => "Delete", right_run => "Execute", right_put_mod => "Write+Modify", right_get_mod => "Read+Modify", right_get_put => "Read+Write", right_get_put_mod => "Read+Write+Modify", right_mod_del => "Modify+Delete", right_put_del => "Write+Delete", right_put_mod_del => "Write+Modify+Delete", right_get_del => "Read+Delete",
right_get_mod_del => "Read+Modify+Delete", right_put_get_del => "Write+Read+Delete", right_all => "* ALL *", image_saved => "Image was saved", image_mod_size => "Modify size", image_drag_sel => "Selection", image_crop => "Crop", image_direction => "Direction", left => "left", right => "right",
image_degrees => "Degrees", free => "free", image_cancel => "Cancel", image_rotate => "Rotate", image_mirror_horiz => "flip horizontal", image_mirror_vert => "flip vertical", image_change_contrast => "Modify Contrast", image_step_back => "undo", image_step_cont => "redo", image_name => "Name", image_suffix => "Suffix",
image_quality => "Quality", image_high => "high", image_intermediate => "middle", image_low => "low", image_save_as => "save as", image_cancel_nosave => "leave without save", ); } elsif($_get{language} eq "es") {
%_text= ( %_text, invalid_entry => "Entrada no válida", entry_added => "Entrada añadida", entry_deleted => "Entrada eliminada", entry_modified => "Entrada modificada", all => "Todo", selection => "Selección", search => "Buscar", detail => "Detalle",
modify => "Modificar", new => "Nuevo", modify_entry => "Modificar entrada", new_entry => "Nueva entrada", do_search => "Búsqueda", entry => "Entrada", entries => "Entradas", selected_entry => "Seleccionada", selected_entries => "Seleccionadas", in_all => "total", no_entries => "No existen entradas",
delete => "Eliminar", confirm_delete => "Eliminar definitivamente esta entrada", submit => "Enviar", reset => "Reiniciar", action => "Acción", error => "Error", more_info => "Más información", read => "Leer", write => "Escribir", permission_denied => "El permiso ha sido denegado",
name => "Nombre", password => "Contraseña", please_login => "Por favor, ingrese al sistema", user_locked => "Esta entrada está bloqueada", session_closed => "Su sesión ha finalizado", session_timeout => "Ha estado demasiado tiempo ausente. Su sesión ha sido finalizada.<br> Por favor, vuelva a ingresar al sistema", session_invalid => "Su Id ingresada es inválida.<br> Por favor, ingrese al sistema", invalid_login => "El nombre de usuario y/o la contraseña está mal ingresada. por favor, intente otra vez y ponga atención al escribir con mayúsculas o minúsculas, pues son diferentes para el sistema", invalid_login_lostpw => "El nombre de usuario y/o la contraseña está mal ingresada. por favor, intente otra vez y ponga atención al escribir con mayúsculas o minúsculas, pues son diferentes para el sistema.<p> Si usted ha olvidado su <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">contraseña</a> , puede pedir que se le envíe a su correo electrónico ingresado",
password_lost => "Por favor, ingrese el nombre y el correo electrónico que usó para el registro a baseportal. Si ambos coinciden, entonces recibirá su contraseña por e-mail.", password_sent => "Su contraseña ha sido enviada a su e-mail. Espere a recibir el mensaje e ingrese con la contraseña recibida", invalid_email => "El nombre y/o la cuenta de correo electrónico no coinciden. Por favor, revise los datos ingresados y ponga atención al diferenciar entre mayúsculas y minúsculas", lostpw_mailsubject => "Acceso para baseportal", lostpw_mailtext1 => "Como ya anunciamos, aquí recibe la contraseña para ingresar a baseportal:\n\n", lostpw_mailtext2 => "\n\nPonga atención para ingresar correctamente al sistema y recuerde que este diferencia las minúsculas de las mayúsculas.\n\n¡Mucha suerte y entretención al usar baseportal!", unable_lock => "No se puede cerrar %s", unable_open => "No se puede abrir %s", unable_open_read => "No se puede abrir %s para leerlo",
unable_open_write => "No se puede abrir %s para escritura", unable_open_modify => "No se puede abrir %s para modificarlo", unable_open_delete => "No se puede abrir %s para eliminar", unable_create_temp_file => "No se pudo crear datos indexados temporales", unable_lock_users_db => '¡Error fatal! No se puede cerrar datos de usuario. Por favor escriba un e-mail a <a href="mailto:info@baseportal.de">info@baseportal.de', error_no_index_file_text => "Dato indexado (%s) no puede ser abierto para lectura.<p><b>Razones:</b> 1. Para el campo %s no se definió un orden.<br>2. Los datos indexados han sido destruidos<p><b>Soluciones:</b> 1. Vaya al ámbito personal (ingresando al sistema), seleccione la base de datos en cuestión, clickee en 'Campos' y en el campo %s haga click sobre Modificar. Escoja un orden alfabético o por número...<br>2. Reorganice su base de datos bajo 'Base de datos / Administración / Reorganisación'", error_no_field_defined_text => "El campo %s en %s no existe<p><b>Razón:</b> El campo no ha sido definido en la base de datos. Talvez solo escribió mal el texto de llamado.<p><b>Soluciones:</b> 1. Corrija el texto de llamado. 2. Vaya al ámbito personal (ingresando al sistema), seleccione la base de datos en cuestión, clickee en 'Campos' e ingrese el campo deseado.", error_no_access_text => "La base de datos no está disponible para la aplicación deseada.<p><b>Solución:</b> Vaya al ámbito personal (ingresar al sistema), selecciones la base de datos en cuestión, vaya a 'Administración' y corriga los derechos de la página.", error_template_exec_text => "%s no puede ser abierto para su ejecución.<p><b>Razón:</b> La página no existe o usted no tiene los derechos para ejecutarla. Talvez solo se equivocó al escribir el texto.<p><b>Soluciones:</b> 1. Corriga el texto de llamado. 2. Vaya al ámbito personal (ingresando al sistema) y cree la página respectiva. 3. Modifique los derechos de la página (bajo 'Administración') si es que se trata de una página propia.", error_field_unsorted => "El campo %s no tiene establecido un orden", error_field_undefined => "El campo %s no está definido",
error_includes_deadlock => "Demasiados 'include'. �Deadlock?", error_perl => "Error de Perl en %s:<br>%s", error_open_htx => "La página %s no existe", ); } elsif($_get{language} eq "fr") { %_text= ( %_text,
invalid_entry => "Enregistrement non valide", entry_added => "Enregistrement ajouté", entry_deleted => "Enregistrement effacé", entry_modified => "Enregistrement modifié", all => "Tout", selection => "Sélection", search => "Rechercher", detail => "Détail", modify => "Modifier", new => "Nouveau", modify_entry => "Modifier l'enregistrement",
new_entry => "Nouvel Enregistrement", do_search => "Recherche", entry => "Enregistrement", entries => "Enregistrements", selected_entry => "Enregistrement sélectionné", selected_entries => "Enregistrements sélectionnés", in_all => "en entier", no_entries => "Il n'y a pas d'enregistrements", delete => "Supprimer", confirm_delete => "Vraiment supprimer cet enregistrement", submit => "Envoyer",
reset => "Réinitialiser", action => "Action", error => "Erreur", more_info => "Plus d‘info", read => "Lire", write => "Ecrire", permission_denied => "Opération d'accès refusée", name => "Nom", password => "Mot de passe",
please_login => "Prière d'ouvrir une session", user_locked => "Cet accès est bloqué", session_closed => "Votre session est terminée", session_timeout => "Vous étiez absent trop longtemps. Votre session a été clôturée.<br>Prière d'ouvrir une nouvelle session", session_invalid => "L'identificateur de session est invalide.<br>Prière d'ouvrir une nouvelle session", invalid_login => "Le nom et/ou le mot de passe sont incorrects. Essayez à nouveau et faites attention à la casse (majuscules/minuscules); elles sont prises en compte", invalid_login_lostpw => "Le nom et/ou le mot de passe sont incorrects. Essayez à nouveau et faites attention à la casse (majuscules/minuscules); elles sont prises en compte.<p>Si vous avez <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">oublié votre mot de passe</a>, vous pouvez vous le faire envoyer à l'adresse de courrier électronique que vous avez mentionnée lors de l'ouverture de votre compte", password_lost => "Prière de mentionner votre nom d'utilisateur et votre adresse de courrier électronique que vous avez indiqués lors de l'ouverture de votre compte. Si les deux sont corrects, vous obtiendrez le mot de passe par courriel", password_sent => "Les codes d'accès ont été envoyés à l'adresse de courrier électronique indiquée. Attendez d'avoir reçu ce message électronique et ouvrez une nouvelle session avec le mot de passe transmis", invalid_email => "Le nom d'utilisateur ou l'adresse de courrier électronique ne correspondent pas. Prière de contrôler vos indications et attention à la casse (majuscules/minuscules).",
lostpw_mailsubject => "Accès à baseportal", lostpw_mailtext1 => "Comme requis, veuillez recevoir par la présente votre code d'accès à baseportal:\n\n", lostpw_mailtext2 => "\n\nLorsque vous ouvrez une session, attention à la casse (majuscules/minuscules); elles sont prises en compte.\n\nNous vous souhaitons beaucoup de satisfaction et de succès avec baseportal!", unable_lock => "Impossible de fermer %s", unable_open => "Impossible d'ouvrir %s", unable_open_read => "Impossible d'ouvrir %s pour la lecture", unable_open_write => "Impossible d'ouvrir %s pour y écrire ", unable_open_modify => "Impossible d'ouvrir %s pour modification", unable_open_delete => "Impossible d'ouvrir %s pour supprimer",
unable_create_temp_file => "Impossible de créer le fichier d'indexation temporaire", unable_lock_users_db => 'Erreur fatale! Impossible de fermer le fichier d\'utilisateur. Prière d\'écrire un courriel à <a href="mailto:info@baseportal.de?subject=Sperre Nutzerdatei fehlgeschlagen!&body=Erreur fatale! Impossible de fermer le fichier d\'utilisateur.">info@baseportal.com</a>', error_no_index_file_text => "Impossible d'ouvrir le fichier d'indexation (%s).<p><b>Causes:</b> 1. Vous n'avez pas défini de mode de tri pour le champ %s.<br>2. Le fichier d'indexation est détruit<p><b>^Solutions:</b> 1. Entrez dans votre espace personnel (ouvrir une session), sélectionnez la base de données correspondante, cliquez sur 'Champs' et ensuite sur 'Modifier' auprès du champ %s. Choisissez à présent le mode de tri par 'Nombre' ou 'Texte'...<br>2. Réorganisez la base de données sous 'Base de données / Administration / Réorganisation'", error_no_field_defined_text => "Le champ %s n'existe pas dans %s<p><b>Cause:</b> Le champ n'a pas été défini dans la base de données. Peut-être s'agit-il tout simplement d'une erreur de frappe dans la requête?<p><b>Solutions:</b> 1. Corrigez votre requête. 2. Entrez dans votre espace personnel (ouvrir une session), sélectionnez la base de données correspondante, cliquez sur 'Champs' et ajoutez le champ voulu.", error_no_access_text => "La base de données n'est pas libre d'accès pour cette requête.<p><b>Solution:</b> Entrez dans votre espace personnel (ouvrir une session), sélectionnez la base de données correspondante, cliquez sur 'Administration' et adaptez les droits d'accès en conséquence.", error_template_exec_text => "Impossible d'ouvrir %s pour l'exécuter.<p><b>Causes:</b> La page requise n'existe pas ou bien vous ne disposez pas des droits d'exécution. Peut-être s'agit-il tout simplement d'une erreur de frappe dans la requête?<p><b>Solutions:</b> 1. Corrigez votre requête. 2. Entrez dans votre espace personnel (ouvrir une session) et créez la page requise. 3. Changez les droits attribués à la page (sous 'Administration'), s'il s'agit bien de la vôtre.", error_field_unsorted => "Le champ %s n'est pas indexé (tri)", error_field_undefined => "Le champ %s n'est pas défini", error_includes_deadlock => "Trop de balises de type include! Deadlock?", error_perl => "Code Perl incorrect dans %s:<br>%s", error_open_htx => "La page requise %s n'existe pas",
); } elsif($_get{language} eq "pl") { %_text= ( %_text, invalid_entry => "Wpis niewa�ny", entry_added => "Wpis zosta� do��czony ",
entry_deleted => "Wpis zosta� usuni�ty", entry_modified => "Wpis zosta� zmieniony", all => "Wszystkie wpisy", selection => "Wyb�r", search => "Wyszukiwanie", detail => "Szczeg�y", modify => "Zmiana", new => "Nowy", modify_entry => "Zmieni� wpis",
new_entry => "Nowy wpis", do_search => "Szuka�", search_result => "Wyniki szukania", entry => "Wpis", entries => "Wpisy", selected_entry => "wybrany wpis", selected_entries => "wybrane wpisy", in_all => "razem", no_entries => "Nie znaleziono �adnych wpis�w", and_more => "i wi�cej", delete => "Usun�� wpis",
confirm_delete => "Ten wpis ma zosta� usuni�ty", submit => "Wykona�", reset => "Powr�t", action => "Operacja", error => "B��d", more_info => "Wi�cej informacji", read => "Czyta�", write => "Pisa�", permission_denied => "Niewystarczaj�ce uprawnienia ",
name => "U�ytkownik", password => "Has�o", please_login => "Prosz� si� zameldowa�", user_locked => "Dost�p zabroniony", session_closed => "Sesja zosta�a zako�czona", session_timeout => "Sesja zosta�a zako�czona.<br> Prosz� si� powt�rnie zameldowa�", session_invalid => "Numer sesji jest niewa�ny.<br> Prosz� si� zameldowa�", invalid_login => "U�ytkownik lub has�o niewa�ne. Prosz� spr�bowa� powt�rnie - uwa�a� na ma�e i du�e litery", invalid_login_lostpw => "U�ytkownik lub has�o niewa�ne. Prosz� spr�bowa� powt�rnie - uwa�a� na ma�e i du�e litery.<p>Jeli <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">zapomnia�e has�a</a>mo�esz go otrzyma� na email-adres, kt�ry poda�e przy rejestracji", password_lost => "Prosz� poda�: jak nazywa sie u�ytkownik oraz email-adres, kt�ry poda�e przy rejestracji. Jeli dane si� zgadzaj�, otrzymasz twoje has�o",
password_sent => "Has�o zosta�o wys�ane na podany email-adres. Po otrzymaniu tej wiadomoci prosz� si� powt�rnie zameldowa�", invalid_email => "U�ytkownik lub email-adres nie zgadza si�. Prosz� spr�bowa� powt�rnie - uwa�a� na ma�e i du�e litery", lostpw_mailsubject => "Dost�p do baseportalu", lostpw_mailtext1 => "Poni�ej - tw�j dost�p do baseportalu :\n\n", lostpw_mailtext2 => "\n\nPrzy meldowaniu si� prosz� uwa�a� na w�aciw� pisowni� oraz na ma�e i du�e litery.\n\n�yczymy powodzenia przy korzystaniu z baseportalu!", unable_lock => "%s - blokada niemo�liwa", unable_open => "%s - otwarcie niemo�liwe", unable_open_read => "%s - otwarcie dla operacji czytania niemo�liwe",
unable_open_write => "%s - otwarcie dla operacji pisania niemo�liwe", unable_open_modify => "%s - otwarcie dla operacji zmieniania niemo�liwe", unable_open_delete => "%s - otwarcie dla operacji usuwania niemo�liwe", unable_create_temp_file => "Tworzenie tymczasowego Index-pliku jest niemo�liwe", unable_lock_users_db => "B��d! Plik u�ytkownika nie mo�e zosta� zablokowany. Prosz� wys�a� email <a href=\"mailto:info\@$_server_home=?subject=Sperre Nutzerdatei fehlgeschlagen!\">info\@$_server_home", error_no_index_file_text => "Otwarcie index-pliku (%s) dla operacji czytania jest niemo�liwe<p><b>Przyczyny:</b> 1. Dla kolumny %s nie zosta�o zdefiniowane �adne uporzadkowanie.<br>2. Index-plik jest uszkodzony<p><b>Pomoc:</b> 1. Po zalogowaniu, wybra� baz� danych, wybra� kolumn� %s i poprzez opcj� 'Zmieni�' zdefiniowa� uporz�dkowanie...<br>2. Zreorganizowa� baz� danych 'Database/Management/Reorganize'", error_no_field_defined_text => "Nie znaleziono kolumny %s w %s <p><b>Przyczyna:</b> Kolumna nie zosta�a zdefiniowana w tej bazie danych lub pisownia jest niepoprawna.<p><b>Pomoc:</b> 1. Prosz� sprawdzi� pisowni�. 2. Prosz� sprawdzi�, czy ta kolumna jest zdefiniowana w tej bazie danych.", error_no_access_text => "Ten rodzaj dost�pu jest dla podanej bazy danych niedozwolony.<p><b>Pomoc:</b> Prosz� zmieni� uprawnienia u�ytkownik�w.", error_template_exec_text => "%s nie mo�e zosta� uruchomiona.<p><b>Przyczyna:</b> Strona nie istnieje lub twoje uprawnienia sa niewystarczaj�ce. Mo�e b��d w pisowni?<p><b>Pomoc:</b> 1. Prosz� sprawdzi� pisowni�. 2. Prosz� sprawdzi� czy strona istnieje. 3. Prosz� sprawdzi� uprawnienia.", error_field_unsorted => "Kolumna %s nie jest uporz�dkowana", error_field_undefined => "Kolumna %s nie istnieje",
error_includes_deadlock => "Za du�o includes! Deadlock?", error_perl => "B��d w kodzie perla: %s:<br>%s", error_open_htx => "Strona %s nie istnieje", ); } elsif($_get{language} eq "el") { %_text= ( %_text,
invalid_entry => "¶êõñç 196;éáôáãåß",
entry_added => "Ôï 200;Ýìá 240;ñïóôÝÈçêå",
entry_deleted => "Ôï 200;Ýìá 243;âÞóôéêå",
entry_modified => "Ôï 200;Ýìá 225;ëëÜ÷ôçêå",
database_reorganized => "Ç 244;ñÜðåæá 228;éïñãáíþèçêå",
all => "Ïëá",
selection => "Áðüöáóåé",
search => "ØÜ÷íå 216;Ü÷íù",
detail => "Ðåñéóóüôåñåò 240;ëçñïöïåßåò",
modify => "¶ëëáîå",
new => "ÍÝï 202;áéíïýñãåéá",
modify_entry => "¶ëëáîå- 244;ï 200;Ýìá",
new_entry => "Êáéíïýñãåé‹ ÈÝìá",
do_search => "ØÜîå",
entry => "ÈÝìá",
entries => "ÈÝìáôá",
selected_entry => "ÅêëåãìÝíïò",
selected_entries => "ÅêëåãìÝíïé",
total => "Ïëüêëçñïò",
no_entries => "Áõôü 244;ï 200;Ýìá 228;åí 245;ðÜñ÷åé",
delete => "ÓâÞóå",
confirm_delete => "Èåò 237;á 243;âÞóåéò 225;õôü 244;ï 200;Ýìá",
submit => "211;ôåßëå",
reset => "ÓâÞóôï",
action => "ÅíÝñãåéá"
); } elsif($language eq "ja") { %_text= ( %_text,
invalid_entry => "入力エラー",
entry_added => "エントリーが追加されました",
entry_deleted => "エントリーが消去されました",
entry_modified => "エントリーが変更されました",
database_reorganized => "データベースが再編成されました",
all => "全て",
selection => "選択",
search => "検索",
detail => "詳細",
modify => "変更",
new => "新規",
modify_entry => "エントリーを変更してください",
new_entry => "新しいエントリー",
do_search => "検索",
entry => "エントリー",
entries => "エントリー",
selected_entry => "選択された",
selected_entries => "選択された",
total => "トータル",
no_entries => "利用可能なエントリーがありません",
modify => "変更",
delete => "消去",
confirm_delete => "この入力を消去してよろしいですか",
submit => "提出",
reset => "リセット",
action => "アクション",
); } elsif($language eq "ko") { %_text= (
%_text, invalid_entry => "입력 오류",
entry_added => "기재사항 부가됨",
entry_deleted => "기재사항 삭제됨",
entry_modified => "기재사항 변한됨",
all => "전부",
selection => "선택",
search => "찾아봄",
detail => "세부사항",
modify => "바꿈",
new => "새로운",
new_entry => "새로운 기재사항",
do_search => "조사",
entry => "기재사항",
entries => "기재 사항들",
selected_entry => "선택 되었음",
selected_entries => "선택 되었음",
total => "총합",
no_entries => "기재사항 없음",
modify => "변환",
delete => "삭제",
submit => "제출",
reset => "재설정",
action => "작동",
); } elsif($language eq "zh") { %_text= ( %_text, invalid_entry => "无效输入",
entry_added => "加入的路径",
entry_deleted => "去掉的路径",
entry_modified => "改变的路径",
all => "全部",
selection => "选择",
search => "搜索",
detail => "详细",
modify => "变化",
new => "新",
new_entry => "新路径",
do_search => "搜索",
entry => "路径",
entries => "路径",
selected_entry => "被选择",
selected_entries => "被选择",
total => "总和",
no_entries => "没有路径",
modify => "变化",
delete => "去掉",
submit => "提交",
reset => "重新启动",
action => "行动",
); } elsif($_get{language} eq "tr") { %_text= ( %_text, invalid_entry => "Kayıt geçersiz",
entry_added => "Kayıt eklendi",
entry_deleted => "Kayıt silindi",
entry_modified => "Kayıt değişti",
database_reorganized => "Bilgi Bankası reorganize edildi",
all => "Hepsi", selection => "Seçenek", search => "Ara", detail => "Detay", modify => "Duezenle", new => "Yeni", modify_entry => "Kayıtıdeğiştir",
new_entry => "Yeni kayıt",
do_search => "Arama", do_searchstr => "Kendi arama",
search_result => "Sonuclar", entry => "Kayıt",
entries => "Kayıtlar",
selected_entry => "seçlen", selected_entries => "Seçilenler", in_all => "bütün", no_entries => "Kayıt yok",
delete => "Sil", confirm_delete => "Bu kayıtı silinsinmi",
submit => "Gönder", reset => "Sil",
action => "Eylem", error => "Hata", more_info => "Geniş Info",
read => "Oku", write => "Yaz", permission_denied => "İstediginiz erisim engellendi",
name => "Isim", password => "Password", please_login => "Lütfen kaydolun", user_locked => "Bu erişim engellendi",
session_closed => "Oturum kapandı",
session_timeout => "Uzun süre bulunmadınız. Oturum kapandı. Lütfen tekrar kaydolun",
session_invalid => "Bildirilen Oturum ID geçerli değl. Lütfen kaydolun",
invalid_login => "Isim ve/veya Password yanlış. Lütfen tekrar deneyin ve büyük/küçük harflere dikkat edin, ayırt ediliyor.",
invalid_login_lostpw => "Isim ve/veya Password yanlış. Lütfen tekrar deneyin ve büyük/küçük harflere dikkat edin, ayırt ediliyor. Password unutu",
password_lost => "Lütfen kayıtta bildirilen Isim ve Email-Adresinizi ekleyin. Ikiside doğru ise Passwordunuz gönderilecek.",
password_sent => "Giriş bildirilen EMail-Adrese gönderildi. Belirtilen Email.i alana kadar bekleyin ve aktarılan Password ile kaydolun.",
invalid_email => "Isim ve/veya EMail-Adresi yanlış. Lütfen yaptığnız eklentileri inceleyin ve büyük/küçük harflere dikkat edin.",
lostpw_mailsubject => "Baseportala giriş",
lostpw_mailtext1 => "Baseportala istenilen giriş:",
lostpw_mailtext2 => "Kayıtta yazılış şekline ve büyük/küç harflere dikkat ediniz, bunlar ayırt ediliyor. Baseportal ile iyi eğlenceler",
documentation => "Belgeleme",
documentation_for_rent => "Kiralik Dokümantasyon", unable_open_read => "okuma icin%s acilamiyor", unable_open_modify => "%s Acillamiyor degistirmek icin", unable_create_temp_file => "Gecici dizin dosyası olusturulamadi",
unable_lock_users_db => "Ölümcül hata! Kullanıcıların dosya kilit olamaz. bir e-posta gönderin <a href=\"mailto:info\@$_server_home=?subject=Sperre Nu",
error_no_access_text => "Belirtilen veri tabanı istenen erişim yayımladi.<p><b>Çözüm:</b> yönetim tıklayın, uygun bir veritabanı",
error_perl => "%s de yanlış Perl Codu: %s",
error_open_htx => "Sayfa %s yok", ); } elsif($_get{language} eq "it") { %_text= ( %_text, invalid_entry => "L'entrata non valida", entry_added => "Entrata ha aggiunto",
entry_deleted => "Entrata cancellata", entry_modified => "Entrata modificata", database_reorganized => "Base di dati riorganizzata", all => "Tutti", selection => "Selezione", search => "Ricerca", detail => "Particolare", modify => "Modifica", new => "Nuovo", modify_entry => "Modifica l'entrata", new_entry => "Nuova entrata",
do_search => "Cerca", entry => "Entrata", entries => "Entrate", selected_entry => "Ha selezionato l'entrata", selected_entries => "Entrate selezionate", total => "Totale", no_entries => "Nessuna entrata", delete => "Cancellazione", confirm_delete => "Conferma la cancellazione", submit => "Invia", reset => "Cancella",
action => "Azione" ); } elsif($_get{language} eq "ca") { %_text=( %_text, invalid_entry => "Entrada no v�lida", entry_added => "Entrada agregar", entry_deleted => "Entrada apagar",
entry_modified => "Entrada modificaci�", database_reorganized => "La banc de dades reorganitzar", all => "Tot", selection => "Selecci�", search => "Recerca", detail => "Detall", modify => "Canvi", new => "Nou", modify_entry => "Canvi entrada", new_entry => "Nou entrada", do_search => "Cerca",
entry => "Entrada", entries => "Entradas", selected_entry => "seleccionar", selected_entries => "seleccionar", total => "total", no_entries => "Cap entrada", delete => "Borrar", confirm_delete => "Que desitja borrar aix� entrada", submit => "Enviar", reset => "Retirar", action => "Acci�"
); } elsif($_get{language} eq "sr") { %_text= ( %_text, invalid_entry => "Pogresan unos", entry_added => "Podatak je dodat", entry_deleted => "Podatak je izbrisan",
entry_modified => "Podatak je izmenjen", all => "Svi", selection => "Izbor", search => "Nadji", detail => "Detalji", modify => "Izmeni", new => "Novo", modify_entry => "Izmeni unos", new_entry => "Novi unos", do_search => "Pronadji", search_result => "Rezultat pretrage",
entry => "unos", entries => "unosa", selected_entry => "selektovani podatak", selected_entries => "selektovani podaci", in_all => "ukupno", no_entries => "Podatak nije pronadjen", and_more => "nastavak", delete => "Izbrisi", confirm_delete => "Da li ste sigurni da zelite da izbrisete unos", submit => "Nastavi", reset => "Brisi",
action => "Akcija", error => "Greska", more_info => "Vise informacija", read => "Procitaj", write => "Upisi", permission_denied => "Pristup nije dozvoljen", name => "Korisnik", password => "Lozinka", please_login => "Otvorite nalog",
user_locked => "Pristup nije dozvoljen", session_closed => "Servis je zatvoren", session_timeout => "Pristup servisu prekinut.<br>Ulogujte se ponovo", session_invalid => "Pristup servisu nepravilan.<br>Ulogujte se ponovo", invalid_login => "Nepravilan unos imena i/ili lozinke. Molimo Vas da pokusate ponovo obratite paznju na upotrebu velikih i malih slova.", invalid_login_lostpw => "Nepravilan unos imena i/ili lozinke. Molimo Vas da pokusate ponovo obratite paznju na upotrebu velikih i malih slova.<p>Ukoliko ste <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">zaboravili lozinku</a> poslacemo vam je na email adresu koju ste naveli prilikom otvaranja naloga", password_lost => "Molimo vas da unesete korisnicko ime i email adresu koje ste koristili prilikom otvaranja naloga. Ukoliko su oba unosa pravilna, poslacemo vam lozinku na navedu adresu.", password_sent => "Podaci o pristupu poslati su na vasu email adresu. Molimo da proverite vasu postu i ulogujete se sa podacima koje smo vam poslali", invalid_email => "Nepravilan unos imena i/ili email adrese. Molimo Vas da pokusate ponovo obratite paznju na upotrebu velikih i malih slova",
lostpw_mailsubject => "Vas pristup na baseportal", lostpw_mailtext1 => "ovim emailom dobicete podatke za pristup servisu:\n\n", lostpw_mailtext2 => "\n\nMolimo Vas da pokusate ponovo obratite paznju na upotrebu velikih i malih slova.\n\nzelimo vam uspesan rad na baseportalu!", unable_lock => "Neuspesno zakljucavanje %s", unable_open => "Neuspesno otvaranje %s", unable_open_read => "Neuspesno otvaranje %s za pregled", unable_open_write => "Neuspesno otvaranje %s za upis", unable_open_modify => "Neuspesno otvaranje %s za izmenu", unable_open_delete => "Neuspesno otvaranje %s za brisanje", unable_create_temp_file => "Neuspesno kreiranje privremenog index fajla",
unable_lock_users_db => 'Fatal error! Neuspesno zakljucavanje korisnicke baze. Molimo da posaljete email na <a href="mailto:info@baseportal.com=?subject=Unable to lock users database!">info@baseportal.com', error_no_index_file_text => "Neuspesno citanje index fajla (%s).<p><b>Razlozi:</b> 1. Nije definisano sortiranje za polje %s.<br>2. Index fajl je ostecen<p><b>Resenja:</b> 1. Ulogujte se na svoj privatni domen, odaberite odgovarajucu bazu podataka, kliknite na 'Fields' i izmenite polje %s. Zatim odaberite vrstu sortiranja (po 'Number' ili po 'Text')...<br>2. Reorganizujte bazu podataka: (Database / Management / Reorganize)", error_no_field_defined_text => "Field %s nije definisano u bazi podataka %s<p><b>Razlog:</b> Polje nije definisano u bazi podataka. Mozda ste samo pogresno upisali podatak za query?<p><b>Resenja:</b> 1. Unesite ispravke u vas query. 2. Ulogujte se na vas privatni domen, odaberite odgovarajucu bazu podataka, kliknite na 'Fields' i dodajte zeljeno polje - field.", error_no_access_text => "Navedenoj bazi nije moguce pristupiti navedenim parametrima.<p><b>Resenje:</b> Ulogujte se na svoj privatni domen, odaberite odgovarajucu bazu, kliknite na 'Management' i promenite pristupna podesavanja.", error_template_exec_text => "Neuspesno otvaranje templeta %s.<p><b>Razlozi:</b> Navedeni templet ne postoji ili vam nije dozvoljen pristup. Mozda ste samo pogresno ukucali ime?<p><b>Resenja:</b> 1. Ispravite ime. 2. Ulogujte se na vas privatni domen, odaberite odgovarajuci template, klknite na 'Management' i promenite pristupna podesavanja.", error_field_unsorted => "Polje %s nije sortirano", error_field_undefined => "Polje %s nije definisano", error_includes_deadlock => "Suvise podataka! Corsokak?", error_perl => "Perl error in %s:<br>%s", error_open_htx => "Page %s does not exist", );
} elsif($_get{language} eq "no") { %_text=( %_text,invalid_entry => "Ugyldig oppføring",entry_added => "Oppføring lagt til",entry_deleted => "Oppføring slettet",entry_modified => "Oppføring endret",all => "Alle",selection => "Utvalg",
search => "Søk",detail => "Detaljer",modify => "Endre",new => "Ny",modify_entry => "Endre oppføring",new_entry => "Ny oppføring",do_search => "Søk",search_result => "Søket fant",entry => "oppføring",entries => "oppføringer",selected_entry => "utvalgt",
selected_entries => "utvalgte",in_all => "i alt",no_entries => "Ingen oppføringer funnet",and_more => "og mer",delete => "Slette",confirm_delete => "Er du sikker på at du vil slette denne oppføringen",submit => "Utfør",reset => "Tilbakestill",action => "Aksjon",error => "Feil",more_info => "Mer info",
read => "Lese",write => "Skrive",permission_denied => "Ønsket tilgang nektes",name => "Navn",password => "Passord",please_login => "Vennligst logg inn",user_locked => "Tilgangen er sperret",session_closed => "Din sesjonen er blitt stengt",session_timeout => "Du har vært fraværende for lenge.<br>Vennligst logg inn på nytt",session_invalid => "Ugyldig sesjon.<br>Vennligst logg inn",invalid_login => "Ugyldig navn og/eller passord. Vennligst prøv på nytt og husk følsomhet for store/små bokstaver.",
invalid_login_lostpw => "Ugyldig navn og/eller passord. Vennligst prøv på nytt og husk følsomhet for store/små bokstaver.<p>Hvis du <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">har glemt passordet ditt</a> vil vi sende deg en epost til den adressen du oppga ved registreringen",password_lost => "Vennligst oppgi navn og epost-adresse som du brukte da du registrerte deg. Vi vil sende deg passordet hvis begge er korrekte.",password_sent => "Ditt tilgangspassord er sendt til den oppgitte epost-adressen. Vennligst sjekk innboksen din og logg inn med det passordet du har mottatt",invalid_email => "Ugyldig navn og/eller passord. Vennligst prøv på nytt og husk følsomhet for store/små bokstaver",lostpw_mailsubject => "Din tilgang til baseportal",lostpw_mailtext1 => "Med denne epost-meldingen får du tilgang til baseportal:\n\n",lostpw_mailtext2 => "\n\nVennligst tast riktig og vær nøye med store/små bokstaver.\n\nVi ønsker deg mye glede og suksess med baseportal!",unable_lock => "Kan ikke låse %s",unable_open => "Kan ikke åpne %s",unable_open_read => "Kan ikke åpne %s for lesing",unable_open_write => "Kan ikke åpne %s for skriving",
unable_open_modify => "Kan ikke åpne %s for endring",unable_open_delete => "Kan ikke åpne %s for sletting",unable_create_temp_file => "Kan ikke opprette temporær indeks-fil",unable_lock_users_db => 'Fatal feil! Kan ikke låse brukers database. Vennligst send en epost-melding til <a href="mailto:info@baseportal.com=?subject=Unable to lock users database!">info@baseportal.com</a>',error_no_index_file_text => "Kan ikke lese indeks-fil (%s).<p><b>Årsak:</b> 1. Ingen sortering er definert for feltet %s.<br>2. Indeks-fila er ødelagt<p><b>Løsning:</b> 1. Logg på ditt private område , velg aktuell database, klikk på 'Fields' og endre feltet %s. Velg så sortering (by 'Number' or by 'Text')...<br>2. Reorganiser databasen: (Database / Management / Reorganize)",error_no_field_defined_text => "Feltet %s er ikke definert i databasen %s<p><b>Årsak:</b> Feltet er ikke definert i databasen. Kanskje du har en skrivefeil i 'query'?<p><b>Løsning:</b> 1. Korriger 'query'. 2. Logg inn på ditt private område, velg aktuell database, klikk på 'Fields' og legg til ønskede feltet.",error_no_access_text => "Den angitte databasen er ikke godkjent for ønsket tilgang.<p><b>Løsning:</b> Logg inn på ditt private område, velg aktuell database, klikk på 'Management' og endre tilgangsrettighetene.",error_template_exec_text => "Kan ikke åpne styrefil (template) %s.<p><b>Årsak:</b> Angitt styrefil finnes ikke eller at du ikke har tilgangsrettighet. Kanskje du har skrevet navnet feil?<p><b>Løsning:</b> 1. Korriger navnet. 2. Logg inn på ditt private område, velg aktuell styrefil, klikk på 'Management' og endre tilgangsrettighetene.",error_field_unsorted => "Felt %s er ikke sortert",error_field_undefined => "Felt %s er ikke definert",error_includes_deadlock => "for mange 'includes'! Vranglås?",
error_perl => "Perl kodefeil i %s:<br>%s",error_open_htx => "Siden %s eksisterer ikke" ); } elsif($_get{language} eq "de") { %_text= ( %_text, invalid_entry => "Eingabe ungültig", entry_added => "Eintrag hinzugefügt", entry_deleted => "Eintrag gelöscht",
entry_modified => "Eintrag geändert", all => "Alles", selection => "Auswahl", search => "Suchen", detail => "Detail", modify => "Ändern", new => "Neu", modify_entry => "Eintrag ändern", new_entry => "Neuer Eintrag", do_search => "Suche", do_searchstr => "Eigene Suche",
search_result => "Suchergebnis", entry => "Eintrag", entries => "Einträge", selected_entry => "ausgewählter", selected_entries => "ausgewählte", in_all => "gesamt", no_entries => "Keine Einträge vorhanden", and_more => "und mehr", delete => "Löschen", confirm_delete => "Diesen Eintrag wirklich löschen", submit => "Abschicken",
reset => "Zurücksetzen", action => "Aktion", error => "Fehler", more_info => "Mehr Info", read => "Lesen", write => "Schreiben", permission_denied => "Gew�nschter Zugriff verweigert", name => "Name", password => "Passwort",
please_login => "Bitte melden Sie sich an", user_locked => "Dieser Zugang ist gesperrt", session_closed => "Ihre Session wurde beendet", session_timeout => "Sie waren zulange abwesend. Ihre Session wurde beendet.<br>Bitte melden Sie sich erneut an", session_invalid => "Die angegebene Session Id ist ungültig.<br>Bitte melden Sie sich an", invalid_login => "Der Name und/oder das Passwort sind falsch. Bitte versuchen Sie es erneut und achten Sie auch auf Gross/Kleinschreibung; diese wird unterschieden", invalid_login_lostpw => "Der Name und/oder das Passwort sind falsch. Bitte versuchen Sie es erneut und achten Sie auch auf Gross/Kleinschreibung; diese wird unterschieden.<p>Wenn Sie Ihr <a href=\"/cgi-bin/$_myname?htx=%s&cmd=lostpw\">Passwort vergessen</a> haben, können Sie es an die bei der Anmeldung angegebene EMail-Adresse schicken lassen", password_lost => "Bitte geben Sie den Namen und die EMail-Adresse an, die Sie auch bei der Anmeldung verwendet haben. Wenn beides stimmt, bekommen Sie das Passwort zugeschickt", password_sent => "Der Zugang wurde an die angegebene EMail-Adresse verschickt. Warten Sie bis Sie die entsprechende EMail erhalten haben und melden Sie sich dann mit dem übermittelten Passwort an", invalid_email => "Der Name und/oder die EMail-Adresse stimmen nicht. Bitte überprüfen Sie Ihre Eingabe und achten Sie dabei auf Gross/Kleinschreibung",
lostpw_mailsubject => "Zugang fuer baseportal", lostpw_mailtext1 => "Wie angefordert, erhalten Sie hiermit Ihren Zugang bei baseportal:\n\n", lostpw_mailtext2 => "\n\nAchten Sie bei der Anmeldung auf die richtige Schreibweise und Gross/Kleinbuchstaben; diese werden unterschieden.\n\nViel Spass und Erfolg mit baseportal!", documentation => "Dokumentation", documentation_for_rent => "zum Mieten Dokumentation", unable_open_read => "Kann %s nicht zum Lesen �ffnen", unable_open_modify => "Kann %s nicht zum �ndern �ffnen", unable_create_temp_file => "Temporäre Index-Datei konnte nicht erstellt werden",
unable_lock_users_db => "Fataler Fehler! Kann Nutzerdatei nicht sperren. Bitte schreiben Sie eine EMail an <a href=\"mailto:info\@$_server_home=?subject=Sperre Nutzerdatei fehlgeschlagen!\">info\@$_server_home", error_no_access_text => "Die angegebene Datenbank ist f�r den gewünschten Zugriff nicht freigegeben.<p><b>Lösung:</b> Gehen Sie in Ihren privaten Bereich (Anmelden), wählen Sie die entsprechende Datenbank aus, klicken Sie auf 'Verwaltung' und ändern Sie die Rechte entsprechend.", error_open_htx => "Die Ausgabeseite %s existiert nicht", unable_lock => "Kann %s nicht sperren", unable_open => "Kann %s nicht �ffnen", unable_open_write => "Kann %s nicht zum Schreiben �ffnen", error_access => "Fehler beim Zugriff auf %s", error_close => "Fehler beim Schliessen von %s", error_unlink => "Fehler beim Loeschen von %s", unable_open_delete => "Kann %s nicht zum L�schen �ffnen",
error_no_index_file_text => "Index-Datei (%s) kann nicht zum Lesen geöffnet werden.<p><b>Ursachen:</b> 1. F�r das Feld %s wurde keine Sortierung definiert.<br>2. Die Index-Datei ist zerstört<p><b>Lösungen:</b> 1. Gehen Sie in Ihren privaten Bereich (Anmelden), wählen Sie die entsprechende Datenbank aus, klicken Sie auf 'Felder' und beim Feld %s auf 'Ändern'. Wählen Sie nun eine Sortierung nach 'Zahl' oder 'Text'...<br>2. Reorganisieren Sie die Datenbank unter 'Datenbank / Verwaltung / Reorganisation'", error_no_field_defined_text => "Feld %s in %s nicht vorhanden<p><b>Ursache:</b> Das Feld wurde in der Datenbank nicht definiert. Vielleicht haben Sie sich bei der Abfrage auch nur verschrieben?<p><b>Lösungen:</b> 1. Korrigieren Sie Ihre Abfrage. 2. Gehen Sie in Ihren privaten Bereich (Anmelden), wählen Sie die entsprechende Datenbank aus, klicken Sie auf 'Felder' und fügen Sie das gewünschte Feld hinzu.", error_template_exec_text => "%s kann nicht zum Ausführen geöffnet werden.<p><b>Ursache:</b> Die angegebene Ausgabeseite existiert nicht oder Sie haben keine Rechte zum Ausführen. Vielleicht haben Sie sich nur verschrieben?<p><b>Lösungen:</b> 1. Korrigieren Sie Ihre Abfrage. 2. Gehen Sie in Ihren privaten Bereich (Anmelden) und legen Sie eine entsprechende Seite an. 3. Ändern Sie die Rechte der Ausgabeseite (unter 'Verwaltung'), wenn es sich um Ihre handelt.", error_field_unsorted => "Feld %s ist nicht sortiert", error_field_undefined => "Feld %s ist nicht definiert", error_includes_deadlock => "Zu viele includes! Deadlock?", error_perl => "Fehlerhafter Perl Code in %s:<br>%s", error_use_locale => "Verwendung von _use_local ohne BEGIN", error_no_locale => "Verwendung von _no_local ohne BEGIN",
error_limit_db => "Limit an Datenbankeintr�gen f�r diese Version erreicht.", error_limit_db2 => "Limit an Datenbankeintr�gen f�r diese Version �berschritten.", error_unknown => "Unbekannten Fehlername '%s'", error_undefined => "Die Subroutine error() wurde mit einer Fehlerinformation jedoch ohne Fehlernamen aufgerufen", error_no_rights_read => "(get) Kein Recht zum Lesen von %s", error_no_rights_write => "(put) Kein Recht zum Schreiben in %s", error_no_rights_modify => "(mod) Kein Recht zum �ndern von %s", error_no_rights_delete => "(del) Keine Rechte zum L�schen von %s",
error_no_rights_loop => "(loop_%s) Keine Rechte zum %s von %s", error_no_rights_loop2 => "(loop_%s) Keine Rechte zum %s von %s nach %s", error_loop => "(loop_%s) Fehler beim %s von %s nach %s: %s", error_not_exists_loop => "(loop) Quelle %s existiert nicht", error_exists_loop => "(loop) Ziel %s existiert bereits", error_unlink_loop => "(loop) %s konnte nicht gel�scht werden", error_no_rights_type => "(%s) Keine Rechte zum %s von %s", error_no_rights_type2 => "(%s) Keine Rechte zum %s von %s nach %s", error_wrong_filetype => "Falsche Dateitypen", error_not_exists_type => "(%s) Quelle %s existiert nicht",
error_unlink_type => "(%s) %s konnte vor dem %s von %s nicht gel�scht werden", error_exists_type => "(%s) Ziel %s existiert bereits", error_type => "(%s) Fehler beim %s von %s nach %s: %s", error_open_page => "(get_page) Fehler beim Lesen von %s", error_open_write_page => "(put_page) Fehler beim Schreiben von %s", error_open_modify_page => "(mod_page) Fehler beim Aendern von %s", error_unlink_page => "(del_page) Fehler beim L�schen von %s", unable_open_read_dir => "(get_dir) Kann Verzeichnis %s nicht zum Lesen �ffnen", error_create_dir => "(put_dir) Fehler beim Erstellen von Verzeichnis %s",
error_dir_exists => "(put_dir) Verzeichnis %s existiert bereits", error_dir_not_empty => "(del_dir) Verzeichnis %s ist nicht leer", error_unlink_dir => "(del_dir) Fehler beim L�schen von Verzeichnis %s", error_modify_image => "(mod_image) %s", error_open_image => "(get_image) Kann Bild %s nicht �ffnen wegen %s", error_read_image => "(get_image) Kann Bild %s nicht lesen wegen %s", error_no_right_image => "(imageedit) keine Erlaubnis zum Aendern des Bildes", error_image_exists => "existiert bereits. Ueberschreiben",
error_no_SSL => "SSL-Zugriff beim kostenlosen baseportal.de nur im internen Bereich.", error_spam => "Ihr Eintrag wurde als Spam interpretiert und zur�ckgewiesen - bitte wenden Sie sich an den Betreiber der Webseite bei Problemen.", error_spam_question => "Ihr Eintrag wurde als Spam interpretiert.<br>Bitte lösen Sie die Aufgabe", error_file_uplodsize => "Datenupload zu gross", error_file_size => "Dateigrösse �bersteigt das Maximum von %sByte", error_file_content_type => "Dateityp %s ist nicht zugelassen", error_file_name => "Datei %s ist nicht zugelassen", error_file_move => "Fehler beim Verschieben von %s nach %s: ", error_image => "Fehler beim anpassen des Bildes: ",
error_thumbnails => "Fehler beim erstellen des Thumbnails: ", error_source_eq_target => "Quelle und Ziel gleich", error_target_exists => "Ziel existiert bereits", error_xml_parse => "Aufruf intern definierter XML-Funktionen mit parse nicht m�glich - Hash n�tig", error_php_disabled => "Funktion wg. Server-Umgebung nicht ausf�hrbar", right_get => "Lesen", right_put => "Schreiben",
right_mod => "Ändern", right_del => "Löschen", right_run => "Ausführen", right_put_mod => "Schreiben+Ändern", right_get_mod => "Lesen+Ändern", right_get_put => "Lesen+Schreiben", right_get_put_mod => "Lesen+Schreiben+Ändern", right_mod_del => "Ändern+Löschen", right_put_del => "Schreiben+Löschen", right_put_mod_del => "Schreiben+Ändern+Löschen", right_get_del => "Lesen+Löschen",
right_get_mod_del => "Lesen+Ändern+Löschen", right_put_get_del => "Schreiben+Lesen+Löschen", right_all => "* ALLE *", delete_entry => "Eintrag löschen", password_wrong_mod => "Bitte geben Sie das richtige Passwort ein, um den Eintrag zu �ndern", password_wrong_del => "Bitte geben Sie das richtige Passwort ein, um den Eintrag zu l�schen", image_saved => "Bild wurde gespeichert", image_mod_size => "Gr��e �ndern",
image_drag_sel => "Auswahl ziehen", image_crop => "beschneiden", image_direction => "Richtung", left => "links", right => "rechts", image_degrees => "Grad", free => "frei", image_cancel => "Abbrechen", image_rotate => "Drehen", image_mirror_horiz => "horizontal spiegeln", image_mirror_vert => "vertikal spiegeln",
image_change_contrast => "Kontrast �ndern", image_step_back => "Schritt zur�ck", image_step_cont => "Schritt vor", image_name => "Name", image_suffix => "Endung", image_quality => "Qualit�t", image_high => "hoch", image_intermediate => "mittel", image_low => "niedrig", image_save_as => "speichern als", image_cancel_nosave => "verlassen ohne speichern",
); }}sub do_chat
{ my($text,@rest)=@_; my($userpath)=$_get{htx}=~ /\/([^\/]*)\//;$userpath="_user/$userpath"; my $user; if($text eq "/bye" || $text eq "/hello") { $user=shift @rest; } else
{ &dld(undef,undef,undef,"/$userpath", $_[1]); return $_user{sid} if $text eq "/login"; return unless $_user; $user=$_user; } sysopen(FILE, "$_data/$userpath/chat.txt", O_RDWR|O_CREAT); flock FILE, 2;
$|=1; seek (FILE, 0, 0); my @chat=<FILE>; my(undef,$mi,$st)=localtime();$mi="0$mi" if $mi<10; $st="0$st" if $st<10; if($text) { if($text eq "/who" || $text eq "/hello" || $text eq "/bye") { my @users; foreach (values %$_sessions) { $x=(split /#/,$_,3)[1]; push @users, $x; }
@users=sort { lc($a) cmp lc($b) } @users; if($text ne "/who") { $text.=" @users"; } else { $text=":$user @users"; $user="[System]"; } } else {
$text=~ s/</</g; $text=~ s/>/>/g; $text=~ s#(http://\S*)#<a href="$1" target="show">$1</a>#gi;
} unshift @chat, ($chat[0]+1)."|$user|$st:$mi|$text|".(join "|",@rest)."\n"; $#chat=20 if $#chat>20;
seek (FILE, 0, 0); for (@chat) { print FILE; } truncate FILE, tell FILE; }
close FILE; return @chat;}sub do_input
{ if($_get{cmd} eq "del" && $_get{Id} ne "") { del; if($_errmsg) { out "<b><font color=d80000>$_textprop1 $_errmsg$_textprop2</font></b><p>"; $_get{cmd}="do_del"} else { out "<b>$_textprop1 ".($_amount>0?$_text{entry_deleted}:"$_text{delete}: $_text{no_entries}")."...</b>$_textprop2<p>"; } &check_mailon("del", "entry_deleted"); } if($_get{cmd} eq "add" && %_put) { put; if($_errmsg) { out "<b><font color=d80000>$_textprop1 $_errmsg $_textprop2</font></b><p>"; } else { out "$_textprop1 <b>$_text{entry_added}...</b>$_textprop2<p>"; &check_mailon("put", "entry_added"); } $_get{cmd}="do_add"; }
if($_get{cmd} eq "mod" && %_put) { local $_formfields_workaround=$_get{formfields}; local @_params=@_params; chg; if($_errmsg) { out "<b><font color=d80000>$_textprop1 $_errmsg$_textprop2</font></b><p>"; $_get{cmd}="do_mod"} else { out "<b>$_textprop1 $_text{entry_modified}...$_textprop2</b><p>"; &check_mailon("mod", "entry_modified"); } }}
sub acos{ set_language($_get{language}) if($_get{language});init;get; list $_get{listtype}, undef, undef, $_get{listfields} || "-Id#6";
}
sub do_xsearch # spezial-volltextsuche
{ if($_server_name=~ /baseportal\.de$/) { out form("htx","wcheck=1"),"Suche im Forum: ",text(20,$_get{vtsearch},"vtsearch")," ",submit("Suchen","")," <a href=\"http://baseportal.de/cgi-bin/baseportal.pl?htx=/direkt/forum/suchen\">Erweiterte Suche</a> von Andreas Jurenda</form>"; } else { out form("htx","wcheck=1"),"$_text{do_search}: ",text(20,$_get{vtsearch},"vtsearch")," ",submit("Submit",""); }
if($_get{vtsearch}) { my ($s,$s2); my @s=split /\s+/,lc($_get{vtsearch}); $s="(".join(".*", @s).")"; $s2="(".join("|", @s).")";out "</table></center>";tout $_text{search_result},undef,4,"96%";
my ($width,$count,$pos,$titel,$email,$www,$datum,$text); my($i,$c,$sc,$rc); open(IFILE, "$_data$_adir$_db.0"); $_ms=$/; undef $/; $i=<IFILE>; $/=$_ms; my @result=unpack("V*", $i); close IFILE; open(FILE, "$_data$_adir$_db");
for($rc=$#result; $rc>=0; $rc--)
{ seek(FILE, $result[$rc], 0); $i=<FILE>; next if $i=~ /^�/; $li=lc($i); for($sc=0; $sc<@s; $sc++) { last if index($li,$s[$sc])<0; }
if($sc==@s) {$i=~ s/\\n/ /g; ($width,$count,undef,$pos,$titel,$email,$www,$datum,$text)=split /\|/,$i; if($_server_name=~ /baseportal\.de$/) { out "<nobr>> <a href=\"/cgi-bin/baseportal.pl?htx=$_get{htx}&wcheck=1&Pos=$pos\"><b>".convert_html($titel)."</b></a> von <b>".convert_html($count)."</b> am ",datum($datum),"</nobr><br>"; } else {
$datum.="#+00:00" if length($datum)<28;
out "<nobr>> <a href=\"/cgi-bin/baseportal.pl?htx=$_get{htx}&wcheck=1&Pos=$pos\"><b>$titel</b></a> from <b>$count</b> on ",date($datum),"</nobr><br>"; }$text=substr(convert_html($text),0,300);$s2=quotemeta $s2;$text=~ s/($s2)/<b>$1<\/b>/igs;out "<ul>$text...</ul><br>";last if ++$c>9;
} } close FILE;out "<i>($_text{no_entries})</i>" if $c==0;out "<i>...$_text{and_more}</i>" if $c>9;out "</ul>"; }}
sub do_fullsearch{ my($val, $cnt2)=@_; my($c, $pc, $pca, $ac, $aca, $li); my(@res, @s2); my $axa=0; $axa=($cnt2=~ /!$/); chop $cnt2 if $axa; $val=lc($val) unless $axa; my @s=split /,|\s/, $val;
$aca=0; $_fullsearch_regex="";foreach (@s){ ($c)= /^(\+|-)/; $_=substr($_,1) if $c; push @s2, $c; $pca++ if $c eq "+"; $aca=1 if $c eq ""; $_fullsearch_regex.="$_|" if $c ne "-";}
$aca=0 if $pca>0;if($_fullsearch_regex ne ""){ chop $_fullsearch_regex; if($cnt2 ne "~~") { $_fullsearch_regex="[^\\w�����]".$_fullsearch_regex; $_fullsearch_regex.="[^\\w�����]" if $cnt2 ne "~="; } $_fullsearch_regex="($_fullsearch_regex)";
$_fullsearch_regex="(?i)".$_fullsearch_regex unless $axa;} my($i,$sc,$rc,$xp,$xi); ($_fullsearch_range,undef,$_fullsearch_range_length)=$_get{fullsearch_range}=~ /^(-?\d+)(,(\d+))?$/; $_fullsearch_range+=0;
$_fullsearch_range_length=2500 if $_fullsearch_range_length eq ""; $_fullsearch_match=$_get{fullsearch_match}; $_fullsearch_match=10 if $_fullsearch_match eq ""; my $cco=$_fullsearch_range; my $coo=$_fullsearch_range_length; my($memb,$rev); $memb=0; $rev=1;
my $sort=$_get{fullsearch_sort}; if($sort ne "") { $rev=($sort=~ s/^-//)?1:0; $memb=$$_db{_fnr}{$sort}; return error('error_field_undefined', $sort) unless defined $memb; } my $max=$cco<0?0:$_amount_all; $cco=($cco<0?-$_amount_all:$_amount_all) if abs($cco)>$_amount_all;
$coo=$max-$cco if $cco+$coo>=$max; open(IFILE, "$_data$_adir$_db.$memb") || return error('error_field_unsorted', $$_db{_field}[$memb]); seek(IFILE, ($rev?$max-$cco-$coo:($cco<0?$_amount_all+$cco:$cco))*4, 0); read(IFILE, $i, $coo*4); my @result=unpack("V*", $i); close IFILE; for($rc=($rev?$#result:0); $rev?$rc>=0:$rc<=$#result; $rev?$rc--:$rc++)
{
seek(FILE, $result[$rc], 0); $i=<FILE>; next if $i=~ /^�/; $li=$axa?$i:lc($i); for($sc=$pc=$ac=0; $sc<@s; $sc++) { if(($xp=index($li,$s[$sc]))>=0) { $c=substr($li,$xp-1,1);
if($c eq "\\") { $xi=2; $xi++ while substr($li,$xp-$xi,1) eq "\\"; next if $xi%2==0; } if($cnt2 ne "~~") { if($cnt2 eq "==") {
my $c=substr($li,$xp+length($s[$sc]),1); next if $c=~ /[\w�����]/o; } next if $c=~ /[\w�����]/o; } if($s2[$sc] eq "-") { $ac=-1; last; } if($s2[$sc] eq "+") { $pc++; } else { $ac++; } } elsif($s2[$sc] eq "+") { $ac=-1; last; } }
if($pc==$pca && $ac>=$aca) { push @res, $result[$rc]; last if @res>=$_fullsearch_match; } } $_fullsearch_match_pos=$rev?$cco+$coo-$rc:$cco+$rc+1; $_fullsearch_amount=@res; return \@res;
}sub s1eep{ my($owner)=shift; my($eintrag, $entries, $isel, $keyf, $ld, $li, $ls); my($mi1, $mi1u, $mi2, $mi2u, $ml, $mo, $cco, $coo, $sel); my(@ilist, @i2list, @klist, @k2list);
local $_list_ul=1; logout if $_get{cmd} eq "logout" && $_get{upw} eq ""; query($_get{searchstr}) if $_get{searchstr}; query $owner if $owner ne ""; init; my @pllist=(@_, "htx"); push @pllist, "uid", "sid" if $_get{uid} ne "";
my $lp=$_get{localparams}; push @pllist, "localparams=".($lp=~ /\d+/?$lp:$_tag_nr) unless $lp eq "-" || $lp eq ""; @_params=(@pllist, "db", "cmd", "range"); my $link=dolink(@pllist); for(my $i=0; $i<@_sel; $i+=4) { push @_params, $_sel[$i].$_sel[$i+1].$_sel[$i+2]; } set_language($_get{language}) if ($_get{language} && $_get{language} ne $_text{language}) || !$_text{language};
$sel=@_sel>0; undef %_sel unless $sel;local $_textprop1=""; local $_textprop2 = "";if($_get{class}){
$_textprop1=" \n<span class=text>"; $_textprop2="</span>\n"; out "<div class=$_get{class}>\n";}else{ my $v=$_get{textcolor} || $_get{datacolor}; $_textprop1.=" color=$v" if $v; $v=$_get{textface} || $_get{dataface}; $_textprop1.=" face=$v" if $v; $v=$_get{textsize} || $_get{datasize}; $_textprop1.=" size=$v" if $v; ($_textprop1,$_textprop2)=("<font$_textprop1>", "</font>") if $_textprop1;
$v=$_get{textback} || $_get{databack}; $_textprop1.="<span style=\"background-color:#$v\">" if $v;
$_textprop2.="</span>" if $v;} if($_rights{$_run.$_db}{put} ne "" && $_rights{$_run.$_db}{get} eq "") { if($_get{cmd} eq "add" && %_put) { put; if($_errmsg) { out "<b><font color=d80000>$_textprop1 $_errmsg $_textprop2</font></b><p>"; } else { out "$_textprop1 <b>$_text{entry_added}...</b>$_textprop2<p>"; &check_mailon("put", "entry_added"); } $_get{cmd}="do_add"; }
out "<p> $_text{new_entry}:$_textprop2</p>"; list "add", undef, undef, $_get{formfields}; } if($_rights{$_run.$_db}{get} eq "") { out login if $_rights{$_run.$_db}{db} ne "" && index(",$_get{login},", ",no,")<0 || index(",$_get{login},", ",yes,")>=0; return; } do_input;
my $do_link=dolink("htx", "db", @_, $_login_failed?():("uid", "sid")); if($_get{browse_language} ne "") { $_get{browse_language}=$_languages{all} if $_get{browse_language} eq "*"; my @list=split /,/,$_get{browse_language}; my($p, $t)=split /,/, $_get{browse_language_type};
my($lang, $lsel); $t=$p if $p ne "pics"; $t="de" if $t ne "en" && $t ne "code" && $p ne "pics"; foreach (@list) { my $code=$_; $lang=$_languages{$t}{$_}; $_=$lang if $t ne "code"; $lsel=$_ if $code eq $_get{language} && !($p eq "pics" && $t eq ""); $_="<img src=\"/pics/flags/$code.gif\" border=0 width=30 height=15>".($t eq ""?"":" ==")."$_" if $p eq "pics";
$lsel=$_ if $code eq $_get{language} && $lsel eq ""; $_.="=$do_link&language=$code"; } out do_menu(undef, \@list, $lsel); } $keyf=$_get{indexfield}; $isel=$_text{all}; $isel=$_text{selection} if $sel; $isel=$_text{modify} if $_get{cmd} eq "do_mod"; $isel=$_text{delete} if $_get{cmd} eq "do_del";
$isel=$_text{search} if $_get{cmd} eq "do_search"; $isel=$_text{detail} if $_get{cmd} eq "all"; my(@ilist, @klist, @i2list, @k2list); if($_get{selectbrowse} ne "no") { @ilist=("$_text{detail}=") if $_get{detail} ne "no"; if($_get{cmd} eq "do_del") { unshift @ilist, "$_text{delete}=" } else { unshift @ilist, "$_text{modify}=" if $_rights{$_run.$_db}{mod} ne ""; } unshift @ilist, "$_text{search}=$link&cmd=do_search", "$_text{selection}=".($_sel && $_get{cmd} ne "mod"?$link.$_linko.$_links.$_linkr:"") if ((index($_get{search},"link")>=0) || $_get{search} eq "") && (substr("@{$$_db{_sort}}", 1)>0);
if((index($_get{input},"link")>=0 || $_get{input} eq "") && $_rights{$_run.$_db}{put} ne "") { unshift @ilist, "$_text{new}=$link&cmd=do_add"; $isel=$_text{new} if $_get{cmd} eq "do_add"; } unshift @ilist, "$_text{all}=$link" if @ilist; @i2list=@ilist if(index($_get{selectbrowse},"bottom")>=0); undef @ilist if(index($_get{selectbrowse},"top")<0 && $_get{selectbrowse} ne ""); }
my $userguest=$_user eq "" || $_user eq "*"; my $userdo=$_get{cmd} eq "logout" || $_get{cmd} eq "do_login"; if(($_rights{$_run.$_db}{db} ne "" && index(",$_get{login},", ",no,")<0 && index(",$_get{login},", ",closed,")<0) || index(",$_get{login},", ",yes,")>=0) { push @ilist, ($userguest?"Anmelden=$do_link&cmd=do_login":"Abmelden=$do_link&cmd=logout"); $isel="Anmelden" if $userdo && $userguest; } out login if index(",$_get{login},", ",top,")>=0;
my $isel2=$isel; if($keyf) { my $memb=$$_db{_fnr}{$keyf}; if(defined $memb) { my $z_=$$_db{_form}[$memb]; $z_=~ /^(\w*)\(('|")(.*?)\2/s; if($1 eq "radio" || $1 eq "option")
{ @klist=split(/\s/, $3); } elsif($$_db{_sort}[$memb] & 2) { @klist=('A' .. 'Z'); } $isel2=$_sel{$keyf} if $_sel{$keyf} && @_sel==4 && index(" @klist "," $_sel[2] ")>=0; @k2list=@klist if(index($_get{indexbrowse},"bottom")>=0); undef @klist if(index($_get{indexbrowse},"top")<0 && $_get{indexbrowse} ne "");
} } $_get{class}="menu" if $_get{class}; if(@ilist+@klist>19) { out do_menu("$link$_linko&".convert_url($keyf)."~", [@ilist], $isel); $_get{class}="index" if $_get{class}; out do_menu("$link$_linko&".convert_url($keyf)."~", \@klist, $isel2); } elsif(@ilist || @klist) {
out do_menu("$link$_linko&".convert_url($keyf)."~", [@ilist,@klist], [$isel,$isel2]); } $ld=$_get{detail} eq "link" || $_get{detail} eq ""; $ls=$_get{search} eq "link" || $_get{search} eq ""; $li=$_get{input} eq "link" || $_get{input} eq ""; if(($_get{cmd} eq "all" && ($_get{detail} eq "linktop" || $ld)) || $_get{detail} eq "top")
{ get "Id==".($_get{Id} || 0); list "all", undef, undef, $_get{allfields} || "-Id"; out "<p>"; } if(($_get{cmd} eq "do_mod") && $_rights{$_run.$_db}{mod} ne "") { out "<p>$_textprop1 $_text{modify_entry}:$_textprop2</p>"; get "Id==".$_get{Id} unless %_put || $_errmsg || $_get{Id} eq ""; list "mod", undef, undef, $_get{formfields};
} if(($_get{cmd} eq "do_del") && $_rights{$_run.$_db}{del} ne "") { out "<p>$_textprop1 $_text{delete_entry}:$_textprop2</p>"; get "Id==".$_get{Id} unless $_get{Id} eq ""; list "del", undef, undef, $_get{allfields} || "-Id"; } if((($_get{cmd} eq "do_add" && ($_get{input} eq "linktop" || $li)) || $_get{input} eq "top") && $_rights{$_run.$_db}{put} ne "") {
out "<p>$_textprop1 $_text{new_entry}:$_textprop2</p>"; init; list "add", undef, undef, $_get{formfields}; } if(($_get{cmd} eq "do_search" && ($_get{search} eq "linktop" || $ls)) || $_get{search} eq "top") { my %extra; $extra{$_get{searchquery}}="\n\n<p>".form("htx","cmd=search","uid", "sid","c","db","type","dir") ." $_text{do_searchstr}: " .text(40,$_get{searchstr},"searchstr")." ".submit."</form></p>\n\n" if($_get{searchquery});
out "<p>$_textprop1 $_text{do_search}:$_textprop2</p>"; out $extra{top}; init; list "search", undef, undef, $_get{searchfields}; out $extra{bottom}; }
if($userdo && $userguest) { out login; } elsif(!(($_get{cmd} eq "do_add" && $li) || ($_get{cmd} eq "do_search" && $ls) || (($_get{cmd} eq "all" || $_get{cmd} eq "do_mod" || $_get{cmd} eq "do_del") && $ld))) {out "<p>";$_get{range}||="0,20"; get;
$entries=$$_db{_amount_query}; $eintrag=($entries==1?$_text{entry}:$_text{entries}); if($entries) { if($sel) { $mo="$entries ".($entries==1?$_text{selected_entry}:$_text{selected_entries})." $eintrag: " if index($_get{showamount},"sel")>=0 || $_get{showamount} eq ""; } else {
$mo="$entries $eintrag $_text{in_all}: " if index($_get{showamount},"all")>=0 || $_get{showamount} eq ""; } } else { $mo="$_text{no_entries}." if $_get{showamount} ne "no"; } $mo="$_textprop1$mo$_textprop2"; $cco=$$_db{_range}; $coo=$$_db{_range_length} || 20; if($entries>$coo)
{ @ilist=(); $ml="$link$_linko$_links&range"; push @ilist, "|<".($cco-$coo>=0?"":"#'#")."=$ml=0,$coo";
push @ilist, "<".($cco-$coo>=0?"":"#'#")."=$ml=".($cco-$coo).",$coo";
push @ilist, ">".($cco+$coo<$entries?"":"#'#")."=$ml=".($cco+$coo).",$coo";
push @ilist, ">|".($cco+$coo<$entries?"":"#'#")."=$ml=".(int($entries/$coo)*$coo).",$coo";
$_get{class}="arrows" if $_get{class}; $mi1=$mi1u=do_menu(undef, \@ilist); $mi1="" if index($_get{buttonbrowse}, "top")<0; $_get{class}="page" if $_get{class};
$mi2=$mi2u=do_menu("$link$_linko$_links&range", undef, $cco, undef, $entries, $coo, index($_get{pagebrowse}, "0")!=0, $mo); } $mi2||="$mo<p>"; if($_get{pagebrowse} ne "" && index($_get{pagebrowse}, "top")<0) { $mi2=""; if($_get{showamount} ne "no") {
$mi2=do_menu(undef, undef, undef, undef, undef, undef, undef, $mo); } } if($mi1 && $mi2) { out "<table cellspacing=0 cellpadding=0 border=0><tr><td>$mi1</td><td>$mi2</td></tr></table>"; } else { out $mi1.$mi2; }$link.="$_linko$_links$_linkr"; list $_get{listtype}, undef, undef, $_get{listfields} || "-Id" if $_get{listtype} ne "-"; }
if(($_get{cmd} eq "all" && $_get{detail} eq "linkbottom") || $_get{detail} eq "bottom") { get "Id==".($_get{Id} || 0); list "all", undef, undef, $_get{allfields} || "-Id"; out "<p>"; }
if((($_get{cmd} eq "do_mod" && $_get{detail} eq "linkbottom") || $_get{detail} eq "bottom") && $_rights{$_run.$_db}{mod} ne "") { out "<p>$_textprop1 $_text{modify_entry}:$_textprop2</p>"; get "Id==".$_get{Id}; list "mod"; } if(($_get{cmd} eq "do_search" && $_get{search} eq "linkbottom") || $_get{search} eq "bottom") { my %extra; $extra{$_get{searchquery}}="\n\n<p>".form("htx","cmd=search","uid", "sid","c","db","type") ." $_text{do_searchstr}: "
.text(40,$_get{searchstr},"searchstr")." ".submit."</form></p>\n\n" if($_get{searchquery}); out "<p>$_textprop1 $_text{do_search}:$_textprop2</p>"; out $extra{top}; init; list "search"; out $extra{bottom}; } if((($_get{cmd} eq "do_add" && $_get{input} eq "linkbottom") || $_get{input} eq "bottom") && $_rights{$_run.$_db}{put} ne "")
{ out "<p>$_textprop1 $_text{new_entry}:$_textprop2</p>"; init; list "add", undef, undef, $_get{formfields}; } $_get{class}="menu" if $_get{class}; if(@i2list+@k2list>19) { out @i2list?do_menu("$link$_linko&".convert_url($keyf)."~", [@i2list], $isel):"<p>"; $_get{class}="index" if $_get{class};
out do_menu("$link$_linko&".convert_url($keyf)."~", \@k2list, $isel2); } elsif(@i2list || @k2list) { out do_menu("$link$_linko&".convert_url($keyf)."~", [@i2list,@k2list], [$isel,$isel2]); } $mi1u="" if index($_get{buttonbrowse}, "bottom")<0; $mi2u="" if index($_get{pagebrowse}, "bottom")<0; if($mi1u && $mi2u) { out "<table cellspacing=0 cellpadding=0 border=0><tr><td>$mi1u</td><td>$mi2u</td></tr></table>"; } else { out $mi1u.$mi2u; } out login if index(",$_get{login},", ",bottom,")>=0;
out "\n</div>\n" if $_get{class};}sub do_menu{ my($link, $list, $sel, $twidth, $he1p, $help, $add, $tai1, $trenner, $ount)=@_; my($bg, $cs, $d1, $d2, $db, $go, $h1, $h2, $hb, $hc, $hf, $hs, $i, $cnt2, $df, $dc, $ds); my($ende, $xlink, $z1, $z2); $list=[] unless defined $list;
if($help) { if($help<$he1p) { $add=1 unless defined $add; $ende=int($sel/($help*10))*$help*10; push @$list, "<<=$link=".(int($ende/($help*10)-1)*$help*10).",$help" if $ende>0; for(my $i=$ende; $i<$he1p; $i+=$help)
{ if(@$list>(9+($ende>0))) { push @$list, ">>=$link=$i,$help"; last; } push @$list, $i; } } else { return "";
} } if($trenner) { $go.=$tai1 if $tai1; } else { if($_get{class}){ $go.="<table ".($twidth?" width=$twidth":"")." cellpadding=".($_get{padding} ne ""?$_get{padding}:2)." cellspacing=".($_get{spacing} || 0)." class=".$_get{class}."><tr><td class=spacer></td>"; $go.="<td>$tai1</td><td class=spacer></td>" if $tai1;
} else { $hb=$_get{headback}; $hb=$_get{databack} || $_color1 unless defined $hb; $hb=($hb eq "-"?"":" bgcolor=$hb"); $db=$_get{databack} || $_get{databack2}; $db=($db eq ""?" bgcolor=$_color2":($db eq "-"?"":" bgcolor=$db")); $go.="<table".($twidth?" width=$twidth":"")." cellpadding=".($_get{padding} ne ""?$_get{padding}:2)." cellspacing=".($_get{spacing} || 0)." border=0><tr><td width=1></td>"; $hf=$_get{headface} || $_get{dataface}; $hc=$_get{headcolor} || $_get{datacolor}; $hs=$_get{headsize} || $_get{datasize}; $h1.="<font face=$hf>" if $hf; $h1.="<font color=$hc>" if $hc; $h1.="<font size=$hs>" if $hs;
$h2.="</font>" if $hf; $h2.="</font>" if $hc; $h2.="</font>" if $hs; $df=$_get{dataface}; $dc=$_get{datacolor}; $ds=$_get{datasize}; $d1.="<font face=$df>" if $df; $d1.="<font color=$dc>" if $dc; $d1.="<font size=$ds>" if $ds; $d2.="</font>" if $df; $d2.="</font>" if $dc; $d2.="</font>" if $ds; $go.="<td>$_textprop1$tai1$_textprop2</td><td></td>" if $tai1; } }
$sel="@$sel" if ref $sel;if($__mcnt==0){$go.=<<EOF;
<script type="text/javascript">
function \$(x) { return document.getElementById(x) }
function ca(x) { var c=0; var r; while(r=\$("b"+x+"-"+c)) { if(r.getAttribute("gg")) r.style.color='#0000f0'; r.className='button'; c++; } }
function b(x) { var r=\$("b"+x); r.style.color='#000000'; r.className='selected'; var l=r.firstChild.nextSibling; var ah=l.firstChild; if(navigator.userAgent.toLowerCase().indexOf("opera")<0) r.replaceChild(ah, l); document.body.style.cursor="progress"; r.blur(); }
function v(x,y) { ca(x); b(x+"-"+y); return true }
window.onunload=bla; function bla() {}
</script>
EOF
}$__mcnt++; my $mcnt=0; foreach (@$list) { $xlink="$link=$_".($help?",$help":"") if $link; ($_,$cnt2,$xlink)=$_=~ /^(.*?)(=\*|=)(.*)$/ if index($_, "=")>0; $z1=$z2=""; ($z1,$_,$z2)= split "#'#", $_ if index($_, "#'#")>=0;
if(index(" $sel ", " $_ ")>=0)
{ $bg= $_get{class} ? " class=selected" : $hb." align=center"; $_= "$z1".($help?$_+$add:$_)."$z2"; $_="$h1$_$h2"; } else { $bg= $_get{class} ? " class=button" : $db." align=center"; $_=$help?$_+$add:$_ unless($_ eq ">>" || $_ eq "<<"); $_=$xlink?"<a href=\"$xlink\" onclick=\"return v($__mcnt,$mcnt)\">$_</a>":$_; $_="$d1$_$d2" if !$trenner && $xlink; $_="$z1$_$z2";
$_="<b>$_</b>" if $trenner; } $bg.=" rowspan=2" if $cnt2 eq "=*"; $_="$d1$_$d2" if $trenner || !$xlink; my $gg=$xlink ne ""; $go.=$trenner?$_.$trenner:"<td$bg id=\"b$__mcnt-$mcnt\" gg=\"$gg\"> $_ </td>"; $go.=$_get{class}?"<td class=spacer></td>":"<td width=1></td>"; $mcnt++; }
$go=substr($go, 0, -length($trenner)) if $trenner; $cs=(@$list*2-1+($tai1?2:0))-($cnt2 eq "=*"?2:0); if($_get{class}){ $go.="</tr><tr><td></td><td class=line colspan=$cs>$ount</td><td></td></tr></table>" unless $trenner || $cs<0; }else { $go.="</tr><tr><td></td><td$hb colspan=$cs><table border=0 cellpadding=0 cellspacing=0><tr><td height=1>$ount</td></tr></table></td></tr></table>" unless $trenner || $cs<0; } $go.="<p>";
return $go;}sub _get_db{
my($owner, $db, $result, $cnt3)=@_; my($coutn, $offsets, $cco, $coo, $sel); my(@entries, @fields); local $_db unless $cnt3 & 128; my($range, $sort)=($_get_range || $_get{range}, $_get_sort || $_get{sort}); $_get_range=$_get_sort=undef; if($owner ne "") {
if(ref $owner) { $sel=$owner; } else { local $_get{range}=""; local $_get{sort}=""; query $owner, 4, undef, undef, $sel=[]; ($range, $sort)=($_get{range}, $_get{sort}); } }
if(!$owner || @$sel==0) { if($cnt3 & 1 || $cnt3 & 128) { $_amount=$_amount_query=0; return; } $sel=\@_sel; if(@$sel==0)
{ my $xx="Id"; ($sort, $xx)=$sort=~ /(-?)(.*)$/ if($sort && index($sort,",")<0 && $sort ne "-" && $sort ne "?"); $sel=[$xx, "==", "*"]; } } init $db, ($cnt3==0)*3+1 unless $cnt3 & 128; unless($cnt3 & 128) { lock undef, !($cnt3 & 1) or return; }
my $filter=($result=~ s/^\+//?1:0); my $novars=($result=~ s/^\-//?1:0); $$result{_result}=$result if $result ne ""; $result||=$db || $_db; $$result{_db} = $_db; $$result{_range} = $range; $$result{_order} = $sort;
unless(-s "$_data$_adir$_db") { $_amount=$_amount_query=$$result{_amount_query}=$$result{_amount}=0; undef $$result{_entries}; undef $$result{_offsets}; unlock unless $cnt3 & 128; return; } $offsets=&less($sel, $_db);
$offsets=&order($sort, $_db, $offsets) if(!$owner || ($owner && $sort)); $_amount_query=$$result{_amount_query}=scalar @$offsets; if(!$owner || ($owner && $range)) { if(($cco,undef,$coo)=$range=~ /^(-?\d+)(,(\d+))?$/) { $cco=@$offsets-$coo if $cco>=@$offsets; $cco=0 if @$offsets+$cco<0;
$$result{_range}=$cco; $$result{_range_length}=$coo; if($coo) { @$offsets=splice @$offsets, $cco, $coo; } else { @$offsets=splice @$offsets, $cco; }
} } open(FILE, "$_data$_adir$_db") or return unlock_error($cnt3 & 128, 'unable_open'); foreach (@$offsets) { seek(FILE, $_, 0); $coutn=<FILE>;
chomp $coutn; push @entries, $coutn; } close FILE or return unlock_error($cnt3 & 128); for(my $i=0; $i<@entries; $i++) { @fields=split /\|/, $entries[$i]; foreach $_field (@{$$_db{_field}})
{ $_=convert_dbout(shift @fields); if($cnt3 & 1 && !($cnt3 & 128)) { $_=xeval($$_db{_del}[$$_db{_fnr}{$_field}], "$_"); if(!defined $_) { splice @entries,$i,1; splice @$offsets,$i,1 } } { $_raw{$_field}=$$result{_raw}{$_field}[$i]=$_;
if($filter) { *{"$_saferoot\::_i"}=$i if $_saferoot; $_=xeval $$_db{_get}[$$_db{_fnr}{$_field}], $_; } $_loop{$_field}=$$result{$_field}[$i]=$_; $$result{_fnr}{$_}=$i if $_field eq "Id"; } }
} $$result{_entries}=\@entries; $_amount=$$result{_amount}=scalar @entries; $$result{_offsets}=$offsets; *{"$_saferoot\::$result"}=\%$result unless $result=~ /\W/ || $result eq "" || $result=~ /^[0-9_]/ || !$_saferoot; if(@entries==0)
{ foreach $_field (@{$$_db{_field}}) { undef $$result{$_field}[0]; } } else { get_next($result, 0) unless $novars; $$result{_loop}=-1; if($cnt3 & 1 && !($cnt3 & 128)) { &del_mod(\@entries, $offsets) or return; } }
unless($cnt3 & 128) { if($cnt3 & 1 && @entries) { } unlock; } return 1;
}sub del_mod{ my($entries, $offsets, $entries_put, $offsets_put, $FH)=@_; unless($entries_put) { open(FILE,"+<$_data$_adir$_db") or return error('unable_open_delete', "$_data$_adir$_db");
$FH=\*FILE; } if($entries) { &H7("x", $entries, $offsets, $_db, $FH, undef, "w", $entries_put, $offsets_put) or return; } unless($_MOVE) { open(MOVEFILE, ">>/var/log/movelog/movelog"); print MOVEFILE "$_MOVEUSER\n"; close MOVEFILE; $_MOVE=1; }
open(FILED, ">$_data$_adir$_db.del") or return error('unable_open_delete', "$_data$_adir$_db.del"); print FILED join ",",@$offsets; unless(close(FILED)) { unlink "$_data$_adir$_db.del"; return error('error_close', "$_data$_adir$_db.del"); } foreach (@$offsets) { seek($FH, $_, 0); print $FH '�'; } open(FILED, ">$_data$_adir$_db.del") or return error('unable_open_delete', "$_data$_adir$_db.del");
close(FILED) or return error('error_close', "$_data$_adir$_db.del"); unless($entries_put) { close(FILE) or return error('error_close', "$_data$_adir$_db"); copy_db "applytmp"; unlink "$_data$_adir$_db.del" or return error('error_unlink', "$_data$_adir$_db.del"); } return 1;}
sub de1{ my($result, $z5)=@_; $result||=$_db; my $db=$$result{_db};
if(defined $z5) { $$result{_loop}=$z5; } else { $z5=++$$result{_loop}; } if($$result{_loop}>=$$result{_amount}) { $z5=0; $$result{_loop}=-1; } $_loop=$z5; $_id=$$result{Id}[$z5]; undef @_loop;
foreach my $_field (@{$$db{_field}}) { $_raw{$_field}=$$result{_raw}{$_field}[$z5]; $_loop{$_field}=$$result{$_field}[$z5]; push @_loop, $_loop{$_field}; $$_field=$_loop{$_field} unless($_field=~ /\W/ || $_field eq "" || $_field=~ /^[0-9]/); } return $$result{_loop}==-1?undef:1;}
sub _del_db{ my($owner, $db, $result, $cnt3)=@_; get $owner || "Id==".$_get{"Id"}, $db, $result, 1+(($cnt3>0)*16);}sub _put_db
{ my($put, $db, $owner, $result, $cnt3)=@_; my($coutn, $memb, $k, $memput); my($covnt, $oldentries, $oldoffsets, $pcnt, $realamount); my(%put); my(@entries, @offsets); undef %_put_last;
$memput=$put;$_errmsg=""; local $_db unless $cnt3 & 4; unless($cnt3 & 4) { init $db, ($cnt3==0)+1 or return} $put ||= \%_put;
unless($cnt3 & 4) { lock or return error('unable_lock',$_db); } if($owner) { my $e=get $owner, $db, $result, (($cnt3 & 8)==0) | 128; if(!$e || $_amount==0) { unlock; return; } $result=$db || $_db unless $result; $cnt3 ||= 2; $put=\%$result if $put eq "*";
} if($$result{_entries}) { $oldentries=$$result{_entries}; $oldoffsets=$$result{_offsets}; } if(ref $put eq "ARRAY") {
my($count, $cmt2); while($count=shift @$put) { $cmt2=shift @$put; $cmt2="\n$cmt2" if defined $put{$count}; $put{$count}[0].=$cmt2; } $put=\%put; $$put{_amount}=1; } else { unless(ref $put)
{ query($put, 4, undef, undef, undef, \%put); $put=\%put; } if($$put{_amount}==1) {my %newput; my $flag=0; foreach $k (keys %$put) { if(ref $$put{$k}) { $flag++; last; };
$newput{$k}[0]=$$put{$k}; }unless($flag) { $put=\%newput; $$put{_amount}=1; } } }+local $pn0=$put;
$realamount=$$put{_amount} || (scalar keys %$put) || 1;$$put{_amount}=$owner?$$result{_amount}:$realamount;$mypcnt=0;
$_putmode=$cnt3;$:=qq{)`L3?S`B7\@4&9()OU&=U!W]D`R<S5&;N5'(I<B8DM%=IU6:LME<O7G<E="*RMF<R5V.E12+P`#,_)P`3,MT'=N5W;_%V][!C;P1"7[E",P`#,P\$3/^T'=N5W;_%V][!C;P1"7K4&7_)H86:[D"-OTU-;E2*B`C+B1V]D(]:D%V]D\$&=A1V]D("*T%&=SA"*M4&7\@D];_};pipe;
my %ffw;if($_formfields_workaround ne ""){ my($neg2, $filter2, undef, $uo)=$_formfields_workaround=~ /(-?)(.*?)(#(\d+))?$/;
$uo++ if $uo; map { $ffw{$_}=1 } split_deli $filter2; map { $ffw{$_}=1-$ffw{$_} } @{$$_db{_field}} if !$neg2;} ENTRIES:
for($pcnt=0; $pcnt<$$put{_amount}; $pcnt++) { $coutn=""; for($memb=0; $memb<@{$$_db{_field}}; $memb++) { $_field=$$_db{_field}[$memb]; $_value=$$result{$_field}[$pcnt] if $result;
$_rpc=$pcnt%$realamount; $_=$$put{$_field}[$_rpc]; if(($_ eq "" && (($cnt3 & 2) || (($cnt3 & 1) && $memb==0))) && !($memput && defined $_) || $ffw{$_field}) {
$_=$_value; } if($$_db{_put}[$memb] && ($cnt3 & 4)==0 && !$ffw{$_field}) { $_="" if not defined $_;my $code=$$_db{_put}[$memb];if($_include) { if($code eq "get_id") { $code='&{"get_id"}()' } else { $code='sub AUTOLOAD { &$AUTOLOAD; }'.$code; } }$_=eval($code);
unless(defined $_) { $_errmsg=$_text{invalid_entry} unless $_errmsg; next ENTRIES unless $cnt3 & 3; $coutn=$$oldentries[$pcnt]; last; } }
($$put{_amount}==1?$_put_last{$_field}:$_put_last{$_field}[$pcnt])=$_;
s/\\/\\s/g; s/\|/\\p/g; s/�/\\�/g; s/\n/\\n/g; $coutn.="$_|"; } $coutn=~ s/\|+$//;
push @entries, $coutn; }if(@entries==0) { unlock; return; }
unless($_MOVE) { open(MOVEFILE, ">>/var/log/movelog/movelog"); print MOVEFILE "$_MOVEUSER\n"; close MOVEFILE; $_MOVE=1; } sysopen(FILE, "$_data$_adir$_db", O_RDWR|O_CREAT) or return unlock_error($cnt3 & 4, 'unable_open_write');
seek(FILE, 0, 2); open(FILEP, ">$_data$_adir$_db.put") or return unlock_error($cnt3 & 4, 'unable_open_write', "$_db.put"); print FILEP tell FILE; unless(close(FILEP)) { unlink "$_data$_adir$_db.put"; return unlock_error($cnt3 & 4, 'error_close', "$_db.put"); } foreach (@entries) { $covnt=tell FILE; print FILE "$_\n";
push @offsets, $covnt; } $covnt=tell FILE if $cnt3 & 4; my $error=0; if($oldoffsets) { &del_mod($oldentries, $oldoffsets, \@entries, \@offsets, \*FILE) or $error=1; } else
{ &H7("w", \@entries, \@offsets, $_db, \*FILE) or $error=1; } open(FILEP, ">$_data$_adir$_db.put") or return unlock_error($cnt3 & 4, 'unable_open_write', "$_db.put"); unless(close(FILEP)) { unlink "$_data$_adir$_db.put"; return unlock_error($cnt3 & 4, 'error_close', "$_db.put") } return unlock_error($cnt3 & 4) if $error; copy_db "applytmp";
unlink "$_data$_adir$_db.put"; unlink "$_data$_adir$_db.del"; close(FILE) or return unlock_error($cnt3 & 4, 'error_close');
if($cnt3 & 4) { return $covnt; } else { unlock or return; } $_put_last{_db}=$_db; $_put_last{_amount}=$$put{_amount}; $_put_id=($$put{_amount}==1?$_put_last{Id}:$_put_last{Id}[$pcnt]);
return 1;}sub _mod_db{ my($owner, $put, $db, $result, $cnt3)=@_; put $put, $db, $owner || "Id==".$_get{"Id"}, $result, $cnt3 | 2;}
sub list2{ my($owner, $put, $db, $result, $cnt3)=@_; put $put, $db, $owner || "Id==".$_get{"Id"}, $result, 1+(($cnt3>0)*16);}sub ftsearch{ my($t, $tfid, $wind, $iput, $isel)=@_;
my($word);$:=qq{)``P.GMR+[`];A9R+S!B?M0'7\@LS9O\\R.TM6=Q9R+S!B?M0'7B)\@LS9O\\M+[<6:LIW<F\\R<\@X]/T1"([<V+V\nR.LU6=O9R+S!B?M0'7\@LS9O8M+_)[P6;UMD7O,'(^U#=D`R.GM"YOL#;_5]8F\\R<\@X]/T1"([<V+\$\nR.LU6=!9R+_)S!B?M0'7\@LS9OP\n+[P6;U5G7O,'(^U#=D`R.GM"WOL#;_5]5F\\R<\@X]/T1"(_};pipe; foreach $word (split(/[^�����\w-]/, $t)) { $word=~ s/�/Ü/g; $word=~ s/�/ü/g; $word=~ s/�/Ä/g; $word=~ s/�/ä/g; $word=~ s/�/Ö/g; $word=~ s/�/ö/g;
$word=~ s/�/ß/g; if($word) { unless(defined $$wind{$word}) { $$wind{$word}=++$#$iput;
$$iput{Name}[$#$iput]=$word;
push @$isel, "Name", "==!", $word, "|"; }
if(index($$iput{Entries}[$$wind{$word}], "$tfid#")<0)
{ $$iput{Entries}[$$wind{$word}]="$tfid#".$$iput{Entries}[$$wind{$word}];
} } }}
sub get_d1r{ my($db, $how, $reorg)=@_; my($adir, $dbname, $mrights, $mtime); $_db=$db || $_get{db} || $_get{htx} || 'main'; if($_db=~ m/^([^:]*):(.*)\@(.*)$/) { $_get{uid}=$1; $_get{upw}=$2; $_db=$3 } $_db=$_path."/".$_db if $_path ne "" && index($_db, "/")!=0; $how=$how & 15;
%how=(1=>"mod", 2=>"put", 4=>"get", 8=>"del", 16=>"other", 32=>"run");undef $_rights{$_run.$_db}; $mrights=get_rights($_db, $how{$how}); $_db=$_file if !$_in_main; if($how>0 && $mrights ne "*" || ($how==0 && $_rights{$_run.$_db}{get} ne "*" && $_rights{$_run.$_db}{put} ne "*")) {$:=qq{)``P.PXS=OA&7\@86:\@T'=-)X5&=?-W<E-V8AMU;NME<O7G<E_'=X5&=?1B+RMF<R5V]D`B<O7G<E!"=UM&(_};pipe; return; } $adir=$_adir;
&cleanup_db() unless $reorg; $dbname=($dbname=~ /\.index$/)?"index":$_db; if($_db=~ /\.fields(\.tbk)?$/) { $dbname="fields"; $adir="/$_types"."_$_language$_version_types/"; } $dbname =~ s#^/_types/#/_types_$_language$_version_types/#;
$mtime=-M "$_data$adir$dbname.fields"; undef %$_db; $_amount_all=$$_db{_amount_all}=int((-s "$_data$adir$dbname.0")/4); undef $$_db{_id}; undef $$_db{_amount};
$$_db{_realpath}="$_user/$_db"; $$_db{_db}=$_db; $dbname.=".fields"; $dbname.=".tbk" if (-e "$_data$adir$dbname.fields.reorgf") && $reorg;
open(FILE,"$_data$adir$dbname") or return error('unable_open', "$_data$adir$dbname"); flock FILE, 1 unless 0; foreach (<FILE>) { chomp; my($memb, $z6, $sort, $form, $put, $get, $javascript, $params, $sel, $del, $mod)=map { convert_dbout; } split /\|/;
if($memb=~ /^(\d+)$/) { $$_db{_fnr}{$z6} =$memb; $$_db{_field}[$memb] =$z6; $$_db{_sort}[$memb] =$sort; $$_db{_form}[$memb] =$form; $$_db{_put}[$memb] =$put; $$_db{_get}[$memb] =$get; $$_db{_javascript}[$memb]=$javascript;
$$_db{_params}[$memb] =$params; $$_db{_sel}[$memb] =$sel; $$_db{_del}[$memb] =$del; $$_db{_mod}[$memb] =$mod; ($$_db{_user_pre},$$_db{_user_pre_fnr})=($1,$memb) if $get=~ /;#_user_pre=(.*)$/;
} }
close FILE; 1;}sub cleanup_db{
lock or return; if(-e "$_data$_adir$_db.del") { open(FILED, "$_data$_adir$_db.del") or return unlock_error(0, 'unable_open', "$_db.del"); my $pos=<FILED>; close(FILED) or return unlock_error(0, 'error_close', "$_db.del"); unlink "$_data$_adir$_db.del" or return unlock_error(0, 'error_unlink', "$_db.del"); if($pos eq "") { copy_db "applytmp" } else { &del_mod(undef, (split /,/,$pos)) or return } } elsif(-e "$_data$_adir$_db.put") { open(FILEP, "$_data$_adir$_db.put") or return unlock_error(0, 'unable_open', "$_db.put"); my $pos=<FILEP>; close(FILEP) or return unlock_error(0, 'error_close', "$_db.put");
unlink "$_data$_adir$_db.put" or return unlock_error(0, 'error_unlink', "$_db.put"); if($pos eq "") { copy_db "applytmp"; } else { sysopen(FILEC, "$_data$_adir$_db", O_RDWR) or return unlock_error(0, 'unable_open'); binmode FILEC if 0; truncate FILEC, $pos; close FILEC or return unlock_error(0, 'error_close'); }
} return unlock;}sub less{ my($_sel, $db)=@_; my($axa, $coutn, $boost, $ki, $less, $eval, $sort); my($list, $l1ll, $ll1l, $res, $ende);
local($mem0, $_i, $_j, $_op, $_fnr, $_field, $_val, $_ftype); my(%_a); my $meta="$db.meta"; $meta=~s/.tbk.meta$/.meta/; open(FILE, "$_data$_adir$db"); $_i=0; $_j=0;
while($_i<@$_sel) { $ende=0; $_field=$$_sel[$_i]; undef $_ftype; if(index($_field,"_")==0) { my $ki; if(($ki=rindex($_field,"_"))>0) { $_ftype=substr($_field,$ki+1);
$_field=substr($_field,1,$ki-1); } } $_fnr=$$db{_fnr}{$_field}; $_val=$$_sel[$_i+2]; $_op=$$_sel[$_i+1];if($_field eq "_fullsearch"){ $res=&do_fullsearch($_val,$_op);} else
{ unless(defined $_fnr) {$:=qq{)`L3*B1V]D`"+()DQ69I9V]D`"+G0'>E1W]D5F;I969DM%9L56:FMU;NME<O7G<E="*RMF<R5&(_};pipe; next; } my $special=$_val=~ m/^[#*?_]$/;
$_val=~ s/^\\((\\)*[#*?_])$/$1/;
$_val=$special="" if $_val eq "_" && $special;
if($$db{_sel}[$_fnr] && !$special) { $_=$_val; $_val=eval($$db{_sel}[$_fnr]); next unless defined $_val; } unless(open(IFILE, "$_data$_adir$db.$_fnr")) {$:=qq{)[D"9L56:FM%7\@P"9L56:FM%7\@PB(RYF9?1B+B1&7RE&9A)AM%7A1]8DM%7B`"+G0'>E1W]EQ6:FM%>E1F;IMU;NME<O7G<E="*RMF<R5&(_};pipe; }
$mem0=(stat(IFILE))[7];$:=qq{)``0?\@L#,P`#,P03/PT69_1"([DR73)R(&9?1]:_E&;?7W;R7]9G\@B<O7G<E!R>\@D",P`#,P\$C/I0S+PT69_1"*H86:_};pipe; if($special) { if($_val eq "#")
{ $ende=$mem0-4; } elsif($_val eq "?")
{ ($_op eq "<"?$mem0:$ende)=int(rand($mem0)/4)*4; $mem0=$ende+4 if $_op ne ">"; } } else { $axa=$_op=~ s/!$//; $boost=$_op=~ s/^~//; $boost=0 if $$db{_sort}[$_fnr]==1; $eval=$sort=$$db{_sort}[$_fnr]; $eval="" if $eval=~ /^\d$/; $sort=4 if $sort==3; ($l1ll)=&d1d(\*FILE, \*IFILE, $_val, $_fnr, $sort | $axa*8, $eval) if $_op ne "<=" && $_op ne ">";
if($_op eq "<") { $mem0=$l1ll; } elsif($_op eq ">=") { $ende=$l1ll; } else { ($ll1l)=&d1d(\*FILE, \*IFILE, $_val, $_fnr, $sort | ($boost?0:$axa*8) | $boost*16 | 32, $eval); if($_op eq "<=")
{ $mem0=$ll1l; } elsif($_op eq ">") { $ende=$ll1l; } elsif($_op eq "==" || $_op eq "=") { $ende=$l1ll; $mem0=$ll1l; } elsif($_op eq "<>") { if($l1ll!=$ll1l)
{ $ende=$ll1l; $mem0=$l1ll; } } } } my($xin,$leftpart); if($ende>$mem0)
{ seek(IFILE, 0, 0); read(IFILE, $xin, $mem0); $mem0=(stat(IFILE))[7]; } seek(IFILE, $ende, 0); read(IFILE, $leftpart, $mem0-$ende); $leftpart=$xin.$leftpart if $xin;
$res=[unpack("V*", $leftpart)]; if($axa && $boost && ($_op eq "=" || $_op eq "==")) { my(@res2); if($_op eq "=" || $_op eq "==") { foreach (@$res) { seek(FILE, $_, 0);
$coutn=<FILE>; chomp $coutn; $leftpart=(split /\|/, $coutn)[$_fnr]; $leftpart=substr($leftpart, 0, length($_val)); push @res2, $_ if $leftpart eq $_val; } $res=\@res2; } else {
my $less=($_op eq "<" || $_op eq "<="); my $ucval=uc($_val); my $tempfree; my($c,$d); for(my $i=0; $i<@$res; $i++) { seek(FILE, $$res[$less?$#$res-$i:$i], 0);
$coutn=<FILE>; chomp $coutn; $leftpart=(split /\|/, $coutn)[$_fnr]; $leftpart=substr($leftpart, 0, length($_val)) if $boost;
if($$db{_sort}[$_fnr]==3) { ($c,$d)=($leftpart,$_val); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; $tempfree=(uc($c) cmp uc($d) || $c cmp $d || uc($co) cmp uc($do) || $co cmp $do); } else { $tempfree=(uc($leftpart) cmp $ucval) || ($leftpart cmp $_val); } last if ($_op eq "<" && $tempfree<0) || ($_op eq "<=" && $tempfree<1) || ($_op eq ">" && $tempfree>0) || ($_op eq ">=" && $tempfree>-1); };
if($less) { splice @$res, $#$res-$i+1; } else { @$res=splice @$res,$i; }
} }}
if($_j==0) { $list=$res; } else { if($$_sel[$_i-1] eq "|") { $list=&grepx ($list, $res);
} elsif($$_sel[$_i-1] eq "�") { $list=&intemp($list, $res); } else { $list=&nexterror($list, $res); } } close IFILE; $_j+=4;
} continue { $_i+=4; } close FILE; return $list;
}sub nexterror{ my($list1, $list2)=@_; my(%res, $list3); map { $res{$_}=1 } @$list2;
foreach (@$list1) { push @$list3, $_ if $res{$_}; } return $list3;}sub grepx{
my($list1, $list2)=@_; my %res; map { $res{$_}=1 } @$list1; foreach (@$list2) { push @$list1, $_ unless $res{$_}; } return $list1;
}sub intemp{ my($list1, $list2)=@_; my(%res, $list3); map { $res{$_}=1 } @$list2; foreach (@$list1)
{ push @$list3, $_ unless $res{$_}; } return $list3;}sub order{
my($sort, $db, $offsets)=@_; my(@sorted_offsets, $memb, $comphow, $comphow_eval); return $offsets unless $sort; if($sort eq "-") { @sorted_offsets=reverse @$offsets; } elsif($sort eq "?") { @sorted_offsets=sort { int(rand(2))*2-1 } @$offsets; } else
{ undef @_sortsub_rev; undef @_sortsub_fnr; undef @_sortsub_comphow; undef @_sortsub_comphow_eval; foreach (split /,/, $sort) { if(/-(.+)/) { $_=$1; $_sortsub_rev[$$db{_fnr}{$_}]=1; } $memb=$$db{_fnr}{$_};
push @_sortsub_fnr, $memb; $comphow=$$db{_sort}[$memb]; $comphow_eval=($comphow!~ /^\d$/); $comphow=$comphow & 15 unless $comphow_eval; $_sortsub_comphow[$memb]=$comphow; $_sortsub_comphow_eval[$memb]=$comphow_eval; } open(FILE, "$_data$_adir$db");
@sorted_offsets=sort $_sortsubadress @$offsets; close FILE; } return \@sorted_offsets;}sub sortsub{ my($c, $d, $e, $comphow, $comphow_eval, $coutn, $memb, @c, @d, $co, $do);
seek(FILE, $a, 0); $coutn=<FILE>; chomp $coutn; @c=split /\|/, $coutn; seek(FILE, $b, 0); $coutn=<FILE>; chomp $coutn; @d=split /\|/, $coutn; foreach $memb (@_sortsub_fnr) { $c=$c[$memb]; $d=$d[$memb]; $comphow=$_sortsub_comphow[$memb]; $comphow_eval=$_sortsub_comphow_eval[$memb]; ($c,$d)=($d,$c) if($_sortsub_rev[$memb]); if($comphow_eval) { ($_a,$_b)=($c,$d); $e=xeval $comphow } elsif($comphow==1){ $e=$c <=> $d }
elsif($comphow==2){ $e=uc($c) cmp uc($d) || $c cmp $d } else { ($co,$do)=($c,$d); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; $e=uc($c) cmp uc($d) || $c cmp $d || uc($co) cmp uc($do) || $co cmp $do; } return $e if $e; } return $a <=> $b;
}sub M32{ my($FH, $covnt, $memb)=@_; my $coutn;
seek($FH, $covnt, 0); $coutn=<$FH>; chomp $coutn; return (split /\|/, $coutn)[$memb];}
sub d1d{ my($FH, $IFH, $free2, $memb, $z_, $eval, $cooo)=@_; local($ende, $mem0, $nextwork, $nix, $covnt); my($leftpart, $noput, $tempfree, $maxa, $c, $d); my($coutn, $ucsuch); $mem0=(stat($IFH))[7]-4;$:=qq{)[`#,P`#,TT37PT69_1"([\$3/K7W;W1'>EY&7\@L#,M\@]:N1"([`3/E1F;E1"(_};pipe; $ucsuch=uc($free2);
$maxa=($z_ & 32)?1:0; while($mem0>=$ende) { $nix=$ende+(($mem0-$ende)/2); $nix-=$nix%4; last if($nextwork==$nix); $nextwork=$nix; seek($IFH, $nix, 0);
read($IFH, $covnt, 4); $noput=unpack("V", $covnt); seek($FH, $noput, 0); $coutn=<$FH>; chomp $coutn; $leftpart=(split /\|/, $coutn)[$memb]; $leftpart=substr($leftpart, 0, length($free2)) if $z_ & 16;
if($eval) { ($_a,$_b)=($leftpart,$free2); $tempfree=xeval $eval; } elsif($z_ & 1) { $tempfree=($leftpart<=>$free2); } else { $tempfree=0; if($z_ & 4)
{ ($c,$d)=($leftpart,$free2); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; $tempfree=uc($c) cmp uc($d); $tempfree ||=$c cmp $d if($z_ & 8); } $tempfree||=uc($leftpart) cmp $ucsuch; $tempfree||=$free2 cmp $leftpart if($z_ & 8); } $tempfree ||=($noput<=>$cooo) unless $z_ & 32;
if($tempfree>=$maxa) { $mem0=$nix; } else { $nix+=4; $ende=$nix; } }
return $nix, $leftpart;}sub H7{ my($attach1, $entries1, $offsets1, $db, $FH, $fields, $attach2, $entries2, $offsets2)=@_;
$fields ||= [ 0 .. $#{$$db{_field}} ];
my($buf, $coutn, $memb, $leftpart, $ino, $newpos, $covnt, $oldpos, $oldsuch, $pos, $free2, $z11); my(@datas, @sorted_datas); my $meta="$db.meta"; $meta=~s/.tbk.meta$/.meta/; return unless @$entries1; foreach $memb (@$fields) {
next if $$db{_sort}[$memb] eq ""; undef @datas; for(my $i=0; $i<@$offsets1; $i++) { push @datas, (split /\|/, $$entries1[$i])[$memb]."|".$$offsets1[$i]."|".$attach1; } for(my $i=0; $i<@$offsets2; $i++) { push @datas, (split /\|/, $$entries2[$i])[$memb]."|".$$offsets2[$i]."|".$attach2;
} $_comphow=$$db{_sort}[$memb]; $_comphow_eval=($_comphow!~ /^\d$/?$_comphow:""); $_comphow=$_comphow & 15 if $_comphow_eval eq ""; @sorted_datas=sort $_sortindexadress @datas; open(IFILE,"$_data$_adir$db.$memb");
open(TMPIFILE,">$_data$_adir$db.tmp.$memb") or return error('unable_open_write', "$_data$_adir$_db.tmp.$memb"); undef $leftpart; my $tempfree=$_comphow; $tempfree=4 if $tempfree==3; $tempfree|=8; foreach (@sorted_datas) { ($free2, $covnt, $z11)=split /\|/; $oldpos=tell IFILE;
($newpos)=&d1d($FH, \*IFILE, $free2, $memb, $tempfree, $_comphow_eval, $covnt); seek(IFILE, $oldpos, 0); $pos=$newpos-$oldpos; $buf=16384; while($pos>0) { $buf=$pos if($buf>$pos); $pos-=$buf; read(IFILE, $leftpart, $buf); print TMPIFILE $leftpart;
} if($z11 eq "x") { read(IFILE, $leftpart, 4); } else { print TMPIFILE pack("V", $covnt); } }
while(read IFILE, $leftpart, 16384) { print TMPIFILE $leftpart; } close(IFILE); close(TMPIFILE) or return error('error_close', "$_data$_adir$_db.tmp.$memb"); }
return 1;}sub sortindex{ my($c, $d, $e, $o1, $o2, $co, $do); ($c, $o1)=split /\|/, $a; ($d, $o2)=split /\|/, $b; if($_comphow_eval) { ($_a,$_b)=($c,$d); $e=xeval $comphow }
elsif($_comphow==1){ $e=$c <=> $d } elsif($_comphow==2){ $e=uc($c) cmp uc($d) || $c cmp $d } else { ($co,$do)=($c,$d); $c=~ tr/����/aouAOU/; $c=~ s/�/ss/g; $d=~ tr/����/aouAOU/; $d=~ s/�/ss/g; $e=uc($c) cmp uc($d) || $c cmp $d || uc($co) cmp uc($do) || $co cmp $do; } return $e || ($o1 <=> $o2);}
sub test{ my($db, $code, $fields, $del, $add, $mod)=@_; my($cbuf, $cnt, $covnt, $x); local $cnt3=0; my(%put); my(@entries, @fields, @offsets); local $nexttype; local $_db;
init $db, 7, 1; lock or return; if(open(FILE, "$_data$_adir$_db.fields.reorgf")) { ($del,$add,$mod)=split /#/, <FILE>; close FILE;
$cnt3=1; } $fields=ref $fields?$fields:[ 0 .. $#{$$_db{_field}} ];
$:=qq{)`L39PE&<[TW]H8230EC-8A\$-\$ES-S0"]])TP\$*B\@"1=95,!UC7DP%1=957\$I3]H04]6%C0H(\$1`QU.]A"0<QC1U05/==C3_)H<2-.ER][823#I35-5\$/'=S3\\(\$0<!U*B`V1M836!AC1154]6U\$4Y8#6'IR,_),!\$]H(2(7EC0!M\$/F4C3J4R-E,35W<2*?9C(0!\$]H(4,\nDC7E0%.R\$S/X83,_)7QC0Q\\3.F\@B3\\84-/QC1M\@%*"142H<"3`QU-ETT]XT502EC-W45.&E31IL#/_)#1%]<1#1U\\"-\$U#.O,\$3`Q%.6%U3\\8%-`Q%-\$5S+T04/XXB4AT4*[%]<MH#7_};pipe; my $rpos=""; if(open(REORGPOS, "$_data$_adir$_db.reorg")) { seek RFILE, $rpos=<REORGPOS>, 0; close REORGPOS; } elsif(-e "$_data$_adir$_db.tbk.put") { open(REORGX, ">$_data$_adir$_db.reorgx"); print REORGX $_maxrebuffer=int($_maxrebuffer/2); close REORGX; unlink "$_data$_adir$_db.tbk.put";
unlink "$_data$_adir$_db.tbk"; $rpos=-$_maxrebuffer; } if($rpos ne "" && $_get{reorgx} ne $rpos) { my $qu=$ENV{QUERY_STRING}; $qu=~ s/&reorgx=.*$//; &direct_exit(sprintf($_text{reorg_aborted}, ($rpos<0?$_text{shorten_amount}:$_text{next_pass}), ($rpos>=0?($rpos/(-s "$_data$_adir$_db"))*100:0), $_maxrebuffer)."<meta http-equiv=".'"refresh" content="0; URL=baseportal.pl?'.$qu.'&reorgx='.$rpos.'">'); }
*{"$_db.tbk"}=\%$_db; $nexttype=$_db; $_db.=".tbk"; push @{$$_db{_field}}, "_new" if $add ne "" && $del eq ""; &cleanup_db() or return; while(<RFILE>) {$cnt++;
chomp; @fields=map { convert_dbout; } split /\|/; if($code) { $_=(ref($code) eq "CODE")?&$code:xeval $code; next if not defined; } else { /^�/ and next; $x=$del ne ""?splice(@fields, $del, 1):"";
if($add ne "") { splice(@fields, $add, 0, ""); $fields[$add]=$x; } } foreach (@{$$_db{_field}}) { $put{$_}[$put{_amount}]=shift @fields;
} if($put{_amount}++>$_maxrebuffer) { my $covnt=put \%put, $_db, undef, undef, 4 or return unlock_error; undef %put; open(REORGPOS, ">$_data$_adir$nexttype.reorg") or return unlock_error; print REORGPOS tell(RFILE); close REORGPOS or return unlock_error; } }
if(%put) { put \%put, $_db, undef, undef, 4 or return unlock_error; } close RFILE or return unlock_error(0, 'error_close'); $_db=$nexttype; copy_db "deltmp" if $add ne "" || $del ne "";
$:=qq{)`LC;R5'=E7'(RM&(K-V;LY6=\@LC(X=F<O5F<N(&9?1B<I168C)?128T%&9?1B(\@LF;IQF;U!R.BLV8OQF+K7&=N(&9?1B<I168?128T%&9?1B(_)\@LF;IQF;U!R.B<F<O5F<N(&9?1B<I168?128T%&9?1B(\@LF;IQF;U!R.S0G;_)C1"(FE&(B,'9L56:FE';P!]8B`B8DM5>PMV8\@LC(YQ&<P%F(\@(&9?E'<O-&(_};pipe; return 1;}sub copy_db{ my($cnt3, $db, $fields)=@_; my($memb, $fe, $ext1, $ext2); $db||=$_db; $ext2=".bck"; if($cnt3 eq "restore") { $ext1=".bck"; $ext2=".tbk"; }
elsif($cnt3 eq "delete") { $ext2=""; } elsif($cnt3 eq "delbck") { $cnt3="delete"; } elsif($cnt3 eq "deltbk") { $cnt3="delete"; $ext2=".tbk"; } elsif($cnt3 eq "deltmp") { $cnt3="delete"; $ext2=".tmp"; } elsif($cnt3 eq "applytmp") { $ext1=".tmp"; $ext2=""; } elsif($cnt3 eq "applyfields") { $ext1=".fields.tbk"; $ext2=".fields"; unlink "$_data$_adir$db.fields.reorgf"; unlink "$_data$_adir$db.fields.tbk.bck"; unlink "$_data$_adir$db.fields.tbk.lock"; } $fields=ref $fields?$fields:[ 0 .. ($#{$$db{_field}} + ($cnt3 eq "apply"?1:0)) ];
push @$fields, "" if $cnt3 ne "applytmp" && $ext2 ne ".tmp";
push @$fields, (".lock", ".meta", ".rights") if $cnt3 eq "delete"; foreach $memb (@$fields) { if($memb eq "" || $$db{_sort}[$memb] ne "") { $memb=".$memb" if $memb ne ""; unlink "$_data$_adir$db$ext2$memb" if 0 || $cnt3 eq "delete";
if($cnt3 eq "copy") {unlink "$_data$_adir$db$memb.bck"; _copy "$_data$_adir$db$ext1$memb", "$_data$_adir$db$ext2$memb", 1; next; }if($cnt3 eq "restore" && -e "$_data$_adir$db$memb.bck"){ rename "$_data$_adir$db$memb.bck", "$_data$_adir$db$ext2$memb";
} else{ rename "$_data$_adir$db$ext1$memb", "$_data$_adir$db$ext2$memb" if $cnt3 ne "delete";} if($cnt3 eq "apply") { rename "$_data$_adir$db.tbk$memb", "$_data$_adir$db$memb"; } elsif($cnt3 eq "restore") { rename "$_data$_adir$db$memb", "$_data$_adir$db.bck$memb";
rename "$_data$_adir$db.tbk$memb", "$_data$_adir$db$memb"; } } elsif($cnt3 eq "apply" && $db!~ /\.fields$/) { unlink "$_data$_adir$db.$memb" if $memb ne ""; } } return 1;}
sub intemp3{ my($db)=@_; $db||=$_db; if(int(rand(10))==0) { my $startm=-s "$_data$_adir$db"; if($startm>100000 && $startm<10000000) {
my($coutn, $linelen, $deleted, $i); my $isize=(-s "$_data$_adir$db.0")/4; open(FILE, "$_data$_adir$db"); for($i=1; $i<51; $i++) { if($i%5==0) { seek(FILE, int(rand($startm)), 0);
$coutn=<FILE>; } $coutn=<FILE>; chomp $coutn; $linelen+=length($coutn); $deleted++ if $coutn=~ /^�/; } $linelen/=$i;
} }}sub _loop_db{ my($result, $z5, $i2, $table, $head, $userid, $filter2, $cmt3, $tai1, $last,$colgroup)=@_;
my($z6, $uo, $memo, $main, $oflag, $outpf, $tdp, $yep, $mf); $head=$i2 unless defined $head; $result ||= $_db;local $_result=$result; local($_db)=$$result{_db} || $result; local(@_fields, $_field, $_col, $_row, $_head, $_fnr, $_keyfield, $_filterfield, $_filter1, $_neg1, $_filter2, $_neg2); my $memo=$_out;
(undef, $_filterfield, $_neg1, $_filter1)=$userid=~ /((.*)=)?(-?)(.*)$/ if defined $userid; (undef, $_keyfield, $_neg2, $_filter2, undef, $uo)=$filter2=~ /((.*)=)?(-?)(.*?)(#(\d+))?$/ if defined $filter2;
$uo++ if $uo; @_fields=(!$_neg2 && $_filter2 ne "")?split_deli $_filter2:@{$$_db{_field}}; $_keyfield||=$_get{keyfield}||($_fields[0] eq "_action" || $_fields[0] eq "Id"?$_fields[1]:$_fields[0]); &{$tai1}() if $tai1;
local @_databack;if($_get{class}){@_databack=("", " class=data2");} else{ my $c=$_get{databack} || $_color3; $c=$c eq "-"?"":" bgcolor=$c"; $_databack[0]=$c; $c=$_get{databack2} || $_get{databack} || $_color2; $c=$c eq "-"?"":" bgcolor=$c"; $_databack[1]=$c;
} unless(defined $_filter2) { $_filter2='Id'; $_neg2=1; } local $_loop_end=$$result{_amount}; for(my $i=0; $i<$_loop_end; $i++) { if(defined $_filter1) { $yep=(index(",$_filter1,", ','.$$result{$_filterfield}[$i].',')>=0); next unless((!$_neg1 && $yep) || ($_neg1 && !$yep));
} undef %_raw; undef %_loop; undef @_loop; $_id=$$result{Id}[$i]; $_loop=$i; $_col=""; $_fnr=-1; $mf=$uo;
foreach $z6 (@_fields) { $_field=$z6 eq "_action"?$_text{action}:$z6; if(!$_neg2 || ($_neg2 && index(",$_filter2,", ",$_field,")<0)) { if($mf) { last if --$mf==0; } my $x=$$_db{_fnr}{$z6}; $_fnr=defined $x?$x:$_fnr+1; $_=$$result{$z6}[$i]; undef $_value; $_raw{$_field}=$_;
local $_tdparam; $_tdparam=" $_get{tdparam}" if $_get{tdparam}; local $_form=$$_db{_form}[$_fnr];if($_con eq ""){ $_=convert_html if $_get{convert_html} eq "*" || index(",$_get{convert_html},",",$_field,")>=0; $_=convert_br if (!($_get{cmd} eq "list" || $_get{cmd} eq "fieldlist") || $_get{maxlistlength} eq "") && ($_get{convert_br} eq "" || index(",$_get{convert_html},",",$_field,")>=0); $_=convert_quote if $_get{convert_quote} eq "*" || index(",$_get{convert_quote},",",$_field,")>=0;
$_=convert_xml if $_get{convert_xml} eq "*" || index(",$_get{convert_xml},",",$_field,")>=0;} unless(defined $cmt3 && $cmt3 eq "") { $_=&{$$cmt3{_default}} if $$cmt3{_default}; $outpf=$$cmt3{$z6};
$oflag=(defined $outpf || $_mode); $outpf=$$_db{_get}[$_fnr] unless $oflag;
undef $_out; $@=""; $_=xeval $outpf, $_; $_.="[$_text{error} (loop): $@]" if $@; undef $@;
$_=defined $_out?$_out:$_; } $_loop{$z6}=$_; push @_loop, $_; $$z6=$_ unless($z6=~ /\W/ || $z6 eq "" || $z6=~ /^[0-9]/); if($i2) { undef $_out; $_=(ref($i2) eq "CODE")?&$i2:error "Laut Christoph wird kein Perlcode im \$i2 in loop() mehr verwendet";
$_col.=defined $_out?$_out:$_; } elsif(!defined $i2) { $_=" " if $_ eq ""; $_="<font face=$_get{dataface}>$_</font>" if $_get{dataface}; $_="<font color=$_get{datacolor}>$_</font>" if $_get{datacolor}; $_="<font size=$_get{datasize}>$_</font>" if $_get{datasize}; my $tdp=$_tdparam; $tdp.=" align=$_get{dataalign}" if $_get{dataalign}; $_col.="<td$tdp".($_databack[$_loop%2]).">$_</td>"; } }
} undef $_out; $_=""; if($z5) { my $re=(ref($z5) eq "CODE" || $_get{code}?$z5:"out <<LOOPEOF;\n$z5\nLOOPEOF\n"); ref($z5) eq "CODE"?$_=&$z5:eval($re); $_row.=defined $_out?$_out:$_;
$_row.="[$_text{error} (loop): $@]" if $@; undef $@; } else { $_row.="<tr>$_col</tr>"; } } $mf=$uo; if($_row) { foreach $z6 (@_fields)
{ $_field=$z6 eq "_action"?$_text{action}:$z6; if(!$_neg2 || ($_neg2 && index(",$_filter2,", ",$_field,")<0)) { if($mf) { last if --$mf==0; } if($colgroup) { undef $_out; $_=(ref($colgroup) eq "CODE")?&$colgroup:eval "out <<LOOPEOF;\n$colgroup\nLOOPEOF\n"; $_colgroup.=defined $_out?$_out:$_;
} if($head) { undef $_out; $_=(ref($head) eq "CODE")?&$head:error "Laut Christoph wird kein Perlcode im \$head in loop() mehr verwendet" if $head; $_head.=defined $_out?$_out:$_; } elsif(!defined $head) { my($hf,$hc,$hs)=($_get{headface},$_get{headcolor},$_get{headsize}); $hf=$_get{dataface} unless defined $hf;
$hc=$_get{datacolor} unless defined $hc; $hs=$_get{datasize} unless defined $hs; $_=$_field; $_="<b>$_</b>" if $_get{headbold}; $_="<font face=$hf>$_</font>" if $hf; $_="<font color=$hc>$_</font>" if $hc; $_="<font size=$hs>$_</font>" if $hs; my $tdp=$_tdparam; $tdp.=" align=$_get{headalign}" if $_get{headalign}; if(defined $$_db{_fnr}{$_field} && $$_db{_sort}[$$_db{_fnr}{$_field}] && ($_get{showsort} eq "*" || index("$_get{showsort},","$_field,")>=0)) { my($xx, $yy, $z1, $z2);
$z1=index("$_get{sort},","$_field,"); $z2=index($_get{sort},"-"); $yy=($z1>=0 && ($z2<0 || $z2!=$z1-1))?"-":""; $xx="&sort=$yy$_field" if $z1<0 || $yy; if($z1>=0) { $_="<b>$_</b>"; $yy=!$yy; } else { $yy=0; } $_="<a href=\"$_link$_links$_linkr$xx\">$_</a>"; $_.=" ^" if $yy; } $_head.="<td$tdp>$_</td>"; }
} } if($table) { undef $_out; $_=""; $_=(ref($table) eq "CODE")?&$table:error "Laut Christoph wird kein Perlcode im \$i2 in loop() mehr verwendet"; $_row=defined $_out?$_out:$_; } elsif(!defined $table) { $_row="<table>$_row</table>";
} } &{$last} if $last; $_out=$memo; out $_row; return ($_row ne "");}
sub stop{ my($z_, $result, $userid, $filter2, $flist)=@_; local($_value, $_get{cmd}, $_con, $_mode, $_amount); ($_listtype, $_con, $_mode, $_amount)=$z_=~ /(\w*)(\W*)(_?)(\d*)/;
$_listtype||=$_get{listtype}||"list";@_params=@$flist if $flist;$_get{cmd}=$_listtype;@_params=("htx","db", "cmd", "uid", "sid", "range") unless @_params;
$_linkc=dolink(@_params) unless $_linkc;out "<table cellspacing=2 cellpadding=0 border=0><tr><td></td><td>" if $_list_ul && $_listtype ne "text"; my $res=&_loop_db($result, $_list{$_listtype}{row}, $_list{$_listtype}{col}, $_list{$_listtype}{table}, $_list{$_listtype}{head}, $userid, $filter2, $_list{$_listtype}{output}, $_list{$_listtype}{first}, $_list{$_listtype}{last}, $_list{$_listtype}{colgroup});out "</td></tr></table>" if $_list_ul && $_listtype ne "text";; undef @_params; undef $_linkc; return $res;
}
sub convert_dbout{ local $_=@_>0?$_[0]:$_; s/\\p/|/g; s/\\n/\n/g; s/\\�/�/g; s/\\s/\\/g; $_;
}sub convert_dbput # ist einleuchtender als ..._dbin
{ local $_=@_>0?$_[0]:$_; s/\\/\\s/g; s/\|/\\p/g; s/�/\\�/g; s/\n/\\n/g;
$_;}sub convert_br{ local $_=@_>0?$_[0]:$_; s/\n/<br>/g; $_;}
sub convert_html{ local $_=@_>0?$_[0]:$_; my $x; $x=$_[1]?"_":""; s/&/&/g; s/"/&${x}quot;/g; s/</</g; s/>/>/g; s/�/Ü/g;
s/�/Ö/g; s/�/Ä/g; s/�/ü/g; s/�/ö/g; s/�/ä/g; s/�/ß/g; $_;}
sub convert_xml{ local $_=@_>0?$_[0]:$_; my $x; $x=$_[1]?"_":""; s/&/&/g; s/"/"/g; s/'/'/g; s/</</g; s/>/>/g; s/([^&;+*.!,;:\-\/\\\(\)\[\]\%\$?\w\s])/"&#".ord($1).";"/ge;
$_;}sub convert_html_back{ local $_=@_>0?$_[0]:$_; my $x; $x=$_[1]?"_":""; s/&/&/g;
s/&${x}quot;/"/g; s/</</g; s/>/>/g; s/Ü/�/g; s/Ö/�/g; s/Ä/�/g; s/ü/�/g; s/ö/�/g; s/ä/�/g; s/ß/�/g;
$_;}sub convert_links{ local $_=@_>0?$_[0]:$_; my %c;
$c{"&"}="&"; $c{'"'}="""; $c{"<"}="<"; $c{">"}=">"; s#(https?://[^"'\s()]+)|(&)|(")|(<)|(>)#$1?'<a href="'.$1.'" target="_blank">'.$1.'</a>':$c{$+}#egis;
s#(([\w\.-]+)@([\w\.-]+)\.\w\w\w?)#<a href="mailto:$1">$1</a>#gi;
s/�/Ü/g; s/�/Ö/g; s/�/Ä/g;
s/�/ü/g; s/�/ö/g; s/�/ä/g; s/�/ß/g; $_;}sub convert_quote{
local $_=@_>0?$_[0]:$_; s/"/"/g; s/\\/\\\\/g; s/'/\\'/g;s/\n//g if $_[1]; $_;}
sub convert_url{ local $_=@_>0?$_[0]:$_; s/%/%25/g; s/\\/%5c/g; s/\|/%7c/g; s/&/%26/g; s/"/%22/g; s/=/%3d/g;
s/#/%23/g;
s/\+/%2b/g; s/ /+/g; s/\r/%0d/g; s/\n/%0a/g; $_;}sub convert_utf8
{ local $_=@_>0?$_[0]:$_; s/ä/�/g; s/ü/�/g; s/ö/�/g; s/°/�/g; s/´/�/g; s/Ä/�/g; s/Ü/�/g; s/Ö/�/g;
s/ß/�/g; s/©/©/g; $_; }sub encode_base64{ my $eol = $_[1];
$eol = "\n" unless defined $eol; my $res = pack("u", $_[0]); $res =~ s/^.//mg; $res =~ s/\n//g; $res =~ tr|` -_|AA-Za-z0-9+/|; my $padding = (3 - length($_[0]) % 3) % 3; $res =~ s/.{$padding}$/'=' x $padding/e if $padding; $res =~ s/(.{1,76})/$1$eol/g if length $eol; return $res;}
sub decode_base64{ my $str = shift; $str =~ tr|A-Za-z0-9+=/||cd; $str =~ s/=+$//; $str =~ tr|A-Za-z0-9+/| -_|; return "" unless length $str; my $uustr = ''; my ($i, $l); $l = length($str) - 60;
for ($i = 0; $i <= $l; $i += 60) { $uustr .= "M" . substr($str, $i, 60); } $str = substr($str, $i); $uustr .= chr(32 + length($str)*3/4).$str if $str ne ""; return unpack ("u", $uustr);}
sub datum{ my $stop=shift; my $format=shift; return "" if defined $stop && $stop eq ""; return ($_putmode & 1?"":($_value || "")) if "@_" eq " " && $stop eq "put"; local(%datum); local($w, $wk, $t0, $mz, $m0, $mk, $j2, $s1, $s12, $s012, $mi1, $se1); my($j, $m, $t, $s, $mi, $se, $wz);
my($aa, $at, $as, $ami, $ase, $vorz, $add); local($count, $intype); my $jetzt=0; my @trenner=(".",".",",",":",".","#");
$j=$stop; if($stop ne "put" && $stop ne "sel") {
$count=shift; $count=$_ unless defined $count; $intype=shift; $intype=$_con || "=" unless defined $intype; } return if $intype ne "~=" && $stop eq "search"; if($stop eq "put" || $stop eq "sel" || (($_mode & 4) && $z_ && (!defined $stop))) { ($j, $m, $t, $s, $mi, $se, $wz)=@_; }
$j=defined $_value?$_value:"jetzt" if $stop eq "type" || $stop eq "search"; ($aa,$vorz,$add)=$j=~ /([^+-]*)([+-])(.*)/; if($vorz ne "") { (undef, $at, $as, undef, $ami, undef, $ase)=$add=~ /((\d+)\s*,)?\s*(\d+)?\s*(:\s*(\d+))?\s*(\.\s*(\d+))?/; ($ami,$as)=($as,"") if $ami eq "" && $aj=~ /\./; ($at,$as)=($as,"") if $at eq "" && $ami eq "";
$add=($vorz eq "-"?-1:1)*($at*86400+$as*3600+$ami*60+$ase); $j=$aa; $j="jetzt" if $j eq ""; } if(lc($j) eq "jetzt" || (!defined $stop)) { ($se,$mi,$s,$t,$m,$j,$wz)=localtime(time+$add); $add=0; $m++; $j+=1900; $jetzt++; } elsif($j=~ /\D/) {
if(length($j)==21 && index($j, "#")==19)
{ ($j, $m, $t, $s, $mi, $se, $wz)=$j=~ /(\d+)\.(\w+)\.(\d+),(\d+):(\d+)\.(\d+)#(\d)/;
$j+=0; $m+=0; $t+=0; $s+=0; $mi+=0; $se+=0; } elsif($j=~ /\.|,|:/) { (undef, $t, undef, $m, undef, $j, $s, undef, $mi, undef, $se)=$j=~ /\s*((\d+)\s*\.)?\s*((\w+)\s*\.)?\s*((\d+)\s*,)?\s*(\d+)?\s*(:\s*(\d+))?\s*(\.\s*(\d+))?/; ($m,$t)=($t,"") if $m eq ""; ($j,$s)=($s,"") if $mi eq "" && $j eq ""; $j="19$j" if $j>20 && $j<100; } else
{ ($m,$j)=($j,""); } } elsif($j<100 && $j ne "" && @_<2) { ($s,$j)=($j,""); $j="19$j" if $j>20; } elsif($j>99999) { ($se,$mi,$s,$t,$m,$j,$wz)=localtime($j+$add); $add=0; $m++; $j+=1900; }
$mn=$m; if($mn=~ /\D/) { $mn=index("janfebm&aaprmaijunjulaugsepoktnovdez",lc(substr($mn,0,3))); $m=$mn<0?(lc(substr($m,0,1)) eq "m"?3:0):$mn/3+1; } if($add!=0) { ($se,$mi,$s,$t,$m,$j,$wz)=localtime(eval{timelocal($se,$mi,$s,$t,$m-1,$j)}+$add);
$m++; $j+=1900; } return eval { timelocal($se,$mi,$s,$t||1,$m-1,$j) } if $format eq "time"; if($stop eq "put" || $stop eq "sel") { my($x, $val, $mn, $pos, $pos2, $epos, $isin); my $ox=&datum(undef,"intern") unless $jetzt; my $ox2="2000.01.01,00:00.00#0";
%datum=(Wochentag => $wz, Tag => $t, Monat => $m, Jahr => $j, Stunde => $s, Minute => $mi, Sekunde => $se); $pos=0; $epos=0; foreach ("Jahr","Monat","Tag","Stunde","Minute","Sekunde","Wochentag") { $isin=index(lc($format),lc(substr($_,0,2)))>=0; $val=$isin?$datum{$_}:""; $pos2=($_ eq "Jahr"?4:2); if($stop ne "sel") {
if($_ eq "Wochentag" && $val eq "") { $val=&getwochentag($datum{Jahr},$datum{Monat},$datum{Tag}); $pos2=1; } } elsif($val ne "") { $epos=$pos+$pos2 if $pos+$pos2>$epos; } $x.=$datum{$_}=($val ne ""?substr("20$val",-$pos2):substr(($isin?$ox:$ox2),$pos,$pos2)); $x.=shift @trenner unless $_ eq "Wochentag";
$pos+=$pos2+1; } return $stop eq "put"?$x:substr($x,0,$epos); } $wz=&getwochentag($j,$m,$t) if $wz eq ""; $format||='Tag.Monat.Jahr, Stunde:Minute'; $format='Wochentag, Tag.Monatname.Jahr, Stunde:Minute' if $format eq "lang"; $format='Tag.Monat.Jahr2, Stunde:Minute' if $format eq "kurz";
$format='Jahr.Monat0.Tag0,Stunde:Minute.Sekunde#Wochentagzahl' if $format eq "intern";
$j+=0; $m+=0; $t+=0; $s+=0; $mi+=0; $se+=0; $w=(Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag)[$wz%7]; $wk=substr($w, 0, 2); $wz=7 if $wz==0; $t0=$t; $t0="0$t" if $t<10; $mn=(Januar, Februar, "März", April, Mai, Juni, Juli, August, September, Oktober, November, Dezember)[$m-1];
$mk=(Jan, Feb, Mar, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez)[$m-1]; $m0=$m; $m0="0$m" if $m<10; $j0=$j2=substr($j,-2); $s1=$s; $s="0$s" if $s<10; $s12=$s; $s12=12 if $s12==0; $s12=$s12-12 if $s12>12; $s012=$s12; $s012="0$s012" if $s012<10; $mi1=$mi; $mi="0$mi" if $mi<10;
$se1=$se; $se="0$se" if $se<10; if($format eq "rfc") { $wk=(Sun, Mon, Tue, Wed, Thu, Fri, Sat)[$wz%7]; $mk=(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)[$m-1]; $format="Wochentagkurz, Tag0 Monatkurz Jahr Stunde:Minute:Sekunde GMT"; } if(index($format, '$')>=0) {
$mi0=$mi; $mi=$mi1; $s0=$s; $s=$s1; $format=~ s/\$(\w+)/${$1}/gi; } else { %datum=index($format, '$')>=0?(w => $w, wk => $wk, wz => $wz, t => $t, t0 => $t0, m => $m, m0 => $m0, mn => $mn, mk => $mk, j => $j, j2 => $j2, s => $s, s1 => $s1, s12 => $s12, s012 => $s012, mi => $mi, mi1 => $mi1, se => $se, se1 => $se1):(Wochentag => $w, Wochentagkurz => $wk, Wochentagzahl => $wz, Tag => $t, Tag0 => $t0, Monat => $m, Monat0 => $m0, Monatname => $mn, Monatkurz => $mk, Jahr => $j, Jahr2 => $j2, Stunde => $s, Stunde1 => $s1, Stunde12 => $s12, Stunde012 => $s012, Minute => $mi, Minute1 => $mi1, Sekunde => $se, Sekunde1 => $se1); if($stop eq "type" || $stop eq "search") {
$datum{Jahr2}=&dodatumtype("Jahr2", "Jahr", ["00" .. "39"],[2000 .. 2039]); $datum{Jahr}=&dodatumtype("Jahr", "Jahr", [1920 .. 2039]); $datum{Monat0}=&dodatumtype("Monat0", "Monat", ["01" .. "12"], [1 .. 12]); $datum{Monat}=&dodatumtype("Monat", "Monat", [1 .. 12]); $datum{Monatname}=&dodatumtype("Monatname", "Monat", ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], [1 .. 12]); $datum{Monatkurz}=&dodatumtype("Monatkurz", "Monat", ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], ["01" .. "12"]); $datum{Tag0}=&dodatumtype("Tag0", "Tag", ["01" .. "31"], [1 .. 31]);
$datum{Tag}=&dodatumtype("Tag", "Tag", [1 .. 31]); $datum{Stunde}=&dodatumtype("Stunde", "Stunde", ["00" .. "23"]); $datum{Minute}=&dodatumtype("Minute", "Minute", ["00" .. "59"]); $datum{Sekunde}=&dodatumtype("Sekunde", "Sekunde", ["00" .. "59"]); } $format=~ s/(\w+)/defined $datum{$1}?$datum{$1}:$1/gei; } return $format;
}sub getwochentag # autsch
{ my($year,$month,$day)=@_; return if $month<1 || $month>12 || $day<1 || $day>31; eval{(localtime(eval{timelocal(0,0,0,$day||1,$month-1,$year)}))[6]};}sub dodatumtype{
my($c, $c2, $l, $l2)=@_; my $o; foreach (@$l) { $o.="<option".($_ eq $datum{$c}?($intype eq "~="?" selected><option":" selected"):"").($l2?' value="'.(shift @$l2).'"':"").">$_"; } return "<select name=\"_${count}_$c2$intype\">$o</select>";}sub date{ my $stop=shift; my $format=shift;
return "" if defined $stop && $stop eq ""; return ($_putmode & 1?"":($_value || "")) if "@_" eq " " && $stop eq "put"; local(%datum); local($w, $wk, $t0, $mz, $m0, $mk, $j2, $s1, $s12, $s012, $mi1, $se1); my($j, $m, $t, $s, $mi, $se, $wz); my($aa, $at, $as, $ami, $ase, $vorz, $add); local($count, $intype);
my $jetzt=0; my @trenner=(".",".",",",":",".","#","#");
$j=$stop; if($stop ne "put" && $stop ne "sel") { $count=shift; $count=$_ unless defined $count; $intype=shift; $intype=$_con || "=" unless defined $intype; }
return if $intype ne "~=" && $stop eq "search" && $_timezone ne "User input"; my $timezone=$_timezone; if($stop eq "put" || $stop eq "sel" || (($_mode & 4) && $z_ && (!defined $stop))) { ($j, $m, $t, $s, $mi, $se, $wz)=@_; } $j=defined $_value?$_value:"now" if $stop eq "type" || $stop eq "search";
($aa,$vorz,$add)=$j=~ /([^+-]*[^#])([+-])(.*)/;
if($vorz ne "") { (undef, $at, $as, undef, $ami, undef, $ase)=$add=~ /((\d+)\s*,)?\s*(\d+)?\s*(:\s*(\d+))?\s*(\.\s*(\d+))?/; ($ami,$as)=($as,"") if $ami eq "" && $aj=~ /\./; ($at,$as)=($as,"") if $at eq "" && $ami eq ""; $add=($vorz eq "-"?-1:1)*($at*86400+$as*3600+$ami*60+$ase); $j=$aa; $j="now" if $j eq "";
} if(lc($j) ne "now" && defined $stop) { if($j=~ /\D/) { if(length($j)==28 && index($j, "#")==19)
{ ($j, $m, $t, $s, $mi, $se, $wz, $_timezone)=$j=~ /(\d+)\.(\w+)\.(\d+),(\d+):(\d+)\.(\d+)#(\d)#([+-]\d\d:\d\d)/;
$j+=0; $m+=0; $t+=0; $s+=0; $mi+=0; $se+=0;
} elsif($j=~ /\.|,|:/) { (undef, $t, undef, $m, undef, $j, $s, undef, $mi, undef, $se)=$j=~ /\s*((\d+)\s*\.)?\s*((\w+)\s*\.)?\s*((\d+)\s*,)?\s*(\d+)?\s*(:\s*(\d+))?\s*(\.\s*(\d+))?/; ($m,$t)=($t,"") if $m eq ""; ($j,$s)=($s,"") if $mi eq "" && $j eq ""; $j="19$j" if $j>20 && $j<100; } else { ($m,$j)=($j,""); } } elsif($j<100 && $j ne "" && @_<2)
{ ($s,$j)=($j,""); $j="19$j" if $j>20; } }$_timezone="+00:00" if $_timezone eq "";if(defined $stop && index(lc($format),"ho")>=0){ my($vz,$th,$tm)=$_timezone=~ /([+-])(\d\d):(\d\d)/; $add+=(($stop eq "put" || $stop eq "sel")?-1:1)*($vz eq "-"?-1:1)*($th*3600+$tm*60);}
if(lc($j) eq "now" || (!defined $stop)) { ($se,$mi,$s,$t,$m,$j,$wz)=localtime(time-3600+$add); $add=0; $m++; $j+=1900; $jetzt++; } elsif($j>99999) { ($se,$mi,$s,$t,$m,$j,$wz)=localtime($j+$add); $add=0; $m++; $j+=1900;
} $mn=$m; if($mn=~ /\D/) { $mn=index("janfebmaraprmayjunjulaugsepoctnovdec",lc(substr($mn,0,3))); $m=$mn<0?(lc(substr($m,0,1)) eq "m"?3:0):$mn/3+1; } if($add!=0) {
if($stop eq "sel") { my ($xse,$xmi,$xs,$xt,$xm,$xj,$wz)=localtime(eval{timelocal($se,$mi,$s,$t||1,($m||1)-1,$j||100)}+$add); $xm++; $xj+=1900; $se=$xse if $se ne ""; $mi=$xmi if $mi ne ""; $s=$xs if $s ne ""; $t=$xt if $t ne ""; $m=$xm if $m ne ""; $j=$xj if $j ne ""; } elsif($j ne "") { ($se,$mi,$s,$t,$m,$j,$wz)=localtime(eval{timelocal($se,$mi,$s,$t,$m-1,$j)}+$add); $m++; $j+=1900; } }
if($stop eq "put" || $stop eq "sel") { my($x, $val, $mn, $pos, $pos2, $epos, $isin); my $ox=&date(undef,"intern") unless $jetzt; my $ox2="2000.01.01,00:00.00#0#+00:00";
%datum=(Weekday => $wz, Day => $t, Month=> $m, Year => $j, Hour => $s, Minute => $mi, Second => $se, Timezone => $_timezone); $pos=0; $epos=0;
foreach ("Year","Month","Day","Hour","Minute","Second","Weekday","Timezone") { $isin=index(lc($format),lc(substr($_,0,2)))>=0;$isin=1 if $_ eq "Timezone" && $stop ne "sel"; $val=$isin?$datum{$_}:""; $pos2=($_ eq "Year"?4:2);$pos2=6 if $_ eq "Timezone"; if($stop ne "sel") { if($_ eq "Weekday" && $val eq "")
{ $val=&getweekday($datum{Year},$datum{Month},$datum{Day}); $pos2=1; } } elsif($val ne "") { $epos=$pos+$pos2 if $pos+$pos2>$epos; } $x.=$datum{$_}=($val ne ""?substr("20$val",-$pos2):substr(($isin?$ox:$ox2),$pos,$pos2)).shift @trenner; $pos+=$pos2+1;
} return $stop eq "put"?$x:substr($x,0,$epos); } $wz=&getwochentag($j,$m,$t) if $wz eq ""; $format||='Month0/Day0 Year Hour:Minute Timezone'; $format='Weekday, MonthName Day, Year, Hour:Minute Timezone' if $format eq "long"; $format='MonthNameShort/Day/Year2 Hour:Minute' if $format eq "short"; $format='Year.Month0.Day0,Hour:Minute.Second#WeekdayNumber#Timezone' if $format eq "intern";
$j+=0; $m+=0; $t+=0; $s+=0; $mi+=0; $se+=0; $w=(Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)[$wz%7]; $wk=substr($w, 0, 2); $wz=7 if $wz==0; $t0=$t; $t0="0$t" if $t<10; $mn=(January, February, March, April, May, June, July, August, September, October, November, December)[$m-1]; $mk=(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Okt, Nov, Dec)[$m-1];
$m0=$m; $m0="0$m" if $m<10; $j0=$j2=substr($j,-2); $s1=$s; $s="0$s" if $s<10; $s12=$s; $s12=12 if $s12==0; $s12=$s12-12 if $s12>12; $s012=$s12; $s012="0$s012" if $s012<10; $mi1=$mi; $mi="0$mi" if $mi<10; $se1=$se; $se="0$se" if $se<10;
if($format eq "rfc") { $wk=(Sun, Mon, Tue, Wed, Thu, Fri, Sat)[$wz%7]; $mk=(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)[$m-1]; $format="WeekdayShort, Day0 MonthShort Year Hour:Minute:Second GMT"; } if(index($format, '$')>=0) { $mi0=$mi; $mi=$mi1;
$s0=$s; $s=$s1; $format=~ s/\$(\w+)/${$1}/gi; } else { %datum=(Weekday => $w, Weekdayshort => $wk, WeekdayNumber => $wz, Day => $t, Day0 => $t0, Month => $m, Month0 => $m0, MonthName => $mn, MonthShort => $mk, Year => $j, Year2 => $j2, Hour => $s, Hour1 => $s1, Hour12 => $s12, Hour012 => $s012, Minute => $mi, Minute1 => $mi1, Second => $se, Second1 => $se1, Timezone => $_timezone); if($stop eq "type" || $stop eq "search") {
$datum{Year2}=&dodatetype("Year2", "Year", ["00" .. "39"],[2000 .. 2039]); $datum{Year}=&dodatetype("Year", "Year", [1920 .. 2039]); $datum{Month0}=&dodatetype("Month0", "Month", ["01" .. "12"], [1 .. 12]); $datum{Month}=&dodatetype("Month", "Month", [1 .. 12]); $datum{MonthName}=&dodatetype("MonthName", "Month", [January, February, March, April, May, June, July, August, September, October, November, December], [1 .. 12]); $datum{MonthShort}=&dodatetype("MonthShort", "Month", [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec], ["01" .. "12"]); $datum{Day0}=&dodatetype("Day0", "Day", ["01" .. "31"], [1 .. 31]); $datum{Day}=&dodatetype("Day", "Day", [1 .. 31]);
$datum{Hour}=&dodatetype("Hour", "Hour", ["00" .. "23"]); $datum{Minute}=&dodatetype("Minute", "Minute", ["00" .. "59"]); $datum{Second}=&dodatetype("Second", "Second", ["00" .. "59"]); $format="" if $intype ne "~=" && $stop eq "search"; if($timezone eq "User input" && (($_mode & 1 && $_Time ne "Creating") || (!($_mode & 1) && $_Time ne "Modifying"))) { $format.=($format?" ":"")."Timezone";
$_timezone="+00:00" if $_timezone eq "User input"; } return if $format eq ""; my @timezones=('-12:00 Eniwetok, Kwajalein (Dateline)','-11:00 Midway Island, Samoa','-10:00 Hawaii','-09:00 Alaska','-08:00 Pacific (U.S. & Canada)','-07:00 Arizona, Mountain (U.S. & Canada)','-06:00 Central (U.S. & Canada), Saskatchewan, Mexico','-05:00 Eastern (U.S. & Canada), Bogota, Lima, Indiana (East)','-04:00 Atlantic (Canada), Caracas, La Paz','-03:30 Newfoundland','-03:00 Brasilia, Buenos Aires','-02:00 Mid-Atlantic','-01:00 Azores, Cape Verde Island','+00:00 Greenwich, London, Casablanca, Monrovia','+01:00 Prague, Warsaw, Madrid, Paris, Brussels, Berlin','+02:00 Cairo, Helsinki, Athens, Istanbul, Israel, Pretoria','+03:00 Moscow, St. Petersburg, Kuwait, Nairobi','+03:30 Teheran','+04:00 Abu Dhabi, Muscat, Tbilisi','+04:30 Kabul','+05:00 Ekaterinburg, Islamabad, Karachi','+05:30 Bombay, New Delhi','+06:00 Almaty, Dhakacation, Colombo','+07:00 Bangkok, Hanoi, Jakarta','+08:00 Beijing, Hong Kong, Urumqi, Singapore, Taipei, Perth','+09:00 Seoul, Tokyo, Osaka, Sapporo, Yakutsk','+09:30 Darwin, Adelaide','+10:00 Canberra, Sydney, Brisbane, Hobart, Vladivostok, Guam','+11:00 Central Pacific, Magadan, Sol. Is.','+12:00 Fiji, Kamchatka, Marshall Is., Auckland, Wellington'); my @timezones2; foreach (@timezones) { my $tz="GMT $_"; push @timezones2, $tz; $_=substr($_,0,6); $datum{Timezone}=$tz if $_ eq $_timezone; } $datum{Timezone}=&dodatetype("Timezone", "Timezone", \@timezones2, \@timezones); } $format=~ s/(\w+)/defined $datum{$1}?$datum{$1}:$1/gei;
} return $format;}sub getweekday{ my($year,$month,$day)=@_; $year%=2000 if $year>137; return if $year<0 || $year>137 || $month<1 || $month>12 || $day<1 || $day>31; eval{(localtime(timelocal(0,0,0,$day||1,$month-1,$year)))[6]};}
sub dodatetype{ my($c, $c2, $l, $l2)=@_; my $o; foreach (@$l) { $o.="<option".($_ eq $datum{$c}?($intype eq "~="?" selected><option":" selected"):"").($l2?' value="'.(shift @$l2).'"':"").">$_"; } return "<select name=\"_${count}_$c2$intype\">$o</select>";
}sub ___notused__date{ my(@datum)=localtime(shift || time); my($maxa, $hour, $day, $mon, $year);
$maxa="0" if(length($datum[1])<2); $maxa.=$datum[1]; $hour="0" if(length($datum[2])<2); $hour.=$datum[2]; $day="0" if(length($datum[3])<2); $day.=$datum[3]; $mon=(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)[$datum[4]]; $year=(1900+$datum[5]); return "$day-$mon-$year, $hour:$maxa";}
sub rfcdatum{ local($datum)=@_; ($sek, $maxa, $std, $mtag, $mon, $jahr, $wtag, $jtag, $isdst)=localtime($datum); $wtag=(Sun, Mon, Tue, Wed, Thu, Fri, Sat)[$wtag]; $mon=(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)[$mon];
$sek="0".$sek if $sek<10; $maxa="0".$maxa if $maxa<10; $std="0".$std if $std<10; $jahr+=1900; $mtag="0".$mtag if $mtag<10; $datum="$wtag, $mtag $mon $jahr $std:$maxa:$sek GMT";}
sub E4{ my($db)=@_; my($meta); $db ||= $_db; $meta="$db.meta"; $meta=~s/.tbk.meta$/.meta/; if($_ eq "") {
if($$db{_id} eq "") { if(open(GIIFILE, "$_data$_adir$db.".$$db{_fnr}{"Id"})) { seek(GIIFILE, -4, 2); read(GIIFILE, $_, 4); open(GIFILE, "$_data$_adir$db"); $$db{_id}=&M32(\*GIFILE, unpack("V", $_), $$db{_fnr}{"Id"})+1;
close GIIFILE; close GIFILE; } else { $$db{_id}=0; } $$db{_id}=$$meta{id} if $$db{_id}<++$$meta{id}; } else {
$$meta{id}=++$$db{_id}; } my $r=_mod_serial sub { $_{id}=$$db{_id} }, [$meta, "$_data$_adir$meta"]; return $_=$_id=$$db{_id}; } return $_id=$_;}
sub from{ my($out, $filter3, $count, $cnt2, $cmt2, $z_, %mem); if($_[0] eq "") { shift; $z_++; } push @_, "_easystart=".($_get{_easystart}+1) if $_get{_easystart} ne "" && $_get{htx} eq "/main"; foreach (reverse @_) { ($count, $cnt2, undef, $cmt2)=$_=~ /(.*?)(~?(==|<>|>=|<=|>|<|:=|=)!?)(.*)/s;
$count||=$_; $cmt2=$_get{$_} if $cmt2 eq "" && $cnt2 eq ""; $cnt2||="="; if($cmt2 ne "" && !$mem{$count}) { $out="&".convert_url($count).$cnt2.convert_url($cmt2).$out; $filter3='<input type=hidden name="'.convert_quote($count).$cnt2.'" value="'.convert_quote($cmt2).'">'.$filter3; $mem{$count}++; } } $out=substr($out,1);
$_params=' name="_baseportal_form'.(++$_baseportal_form_nr).'"' if $_params eq "";$filter3=&antispam($out.int(time/3600)).$filter3; return $z_?"$_myurl?$out":'<form action="'."$_myname?$out".'"'.$_params.' method="post" enctype="multipart/form-data">'.$filter3;}
sub antispam{ my $r=0; foreach my $s (unpack("c*",$_[0])) { $r=$r*.873641+$s*.9825634 } return $_[1]?$r:"<script type='text/javascript'>document.writeln('<inp'+'ut type=hidden na'+'me=\"_bas'+'eportal_as$r\" value=\"1\">')</script>";}sub todo { &form("", @_); }sub linka {my @p; foreach my $p (@_params) { push @p, $p if $p!~ /^(htx|uid|sid|dir|db|Id|cmd|range)$/; }&form("", @p, @_); }
sub defunct_dolink{ my $text=shift; my $out=$_get; my $p; foreach (@_) { ($count, $cnt2, undef, $cmt2)=$_=~ /(.*?)(~?(==|<>|>=|<=|>|<|:=|=)!?)(.*)/s;
if($cmt2 ne "") { $out=~ s/$count(~?(==|<>|>=|<=|>|<|:=|=)!?)(.*?[^\\])(&|\||�| |$)//gs; $out.=convert_url($count)."$cnt2".convert_url($cmt2)."&"; } } chop $out; return "<a href=\"$_myurl?$out\">$text</a>";}
sub hr{ return "<hr size=1>";}sub user_form{ if($_in_main) { '<input name="'.$_.':=" type=text value="'.$_value.'">'
} elsif($_mode&1 && $_value eq "" || $_rights{$_db}{db} ne "") { undef } else { '<input name="'.$_.':=" type=password>' }}sub user_put{
if($_in_main) { $_ } elsif($_rights{$_db}{db} ne "") { if($_putmode & 3) { if(index(",$$_db{_user_pre},$_value,", ",$_user,")>=0) { $_value } else { $_errmsg=$_text{no_rights_modfiy_entry}; undef } } else { $_user } } elsif(!($_putmode & 3) || $_ eq $_value || ($_[0] ne "" && $_ eq $_[0]))
{ $_ } else { $_errmsg=$_text{password_wrong_mod}; undef }}sub user_get{
if($_rights{$_db}{db} ne "" || $_in_main) { $_ } else { $_ eq ""?"":"***" }}sub user_del{
if($_in_main) { "" } elsif($_rights{$_db}{db} ne "") { if(index(",$$_db{_user_pre},$_,", ",$_user,")>=0) { 1 } else { $_errmsg=$_text{no_rights_delete_entry}; undef } } elsif($_ ne $_get{fpw} || $_ eq $$_db{_user_pre}) { $_errmsg=$_text{password_wrong_del}; undef
} else { $_ }}sub l1l{ my($sb,$rb,$sbn)=@_; $sbn=" name=\"$sbn=\"" if $sbn; $sb=$_get{submitbutton} eq "-"?"":($_get{submitbutton} || $_text{submit}) unless defined $sb; $sb='<input class=submit type=submit'.$sbn.' value="'.$sb.'"> ' if $sb ne "";
$rb=$_get{resetbutton} unless defined $rb; $rb=$rb eq "+"?$_text{reset}:$rb; $rb='<input type=reset value="'.$rb.'"> ' if $rb ne ""; return $sb.($sb && $rb?' ':'').$rb;}sub ll11{ my($startm, $dev0, $count, $intype, $maxlength)=@_; $startm||=20;
$count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value; return "<input type=\"text\" name=\"$count$intype\" size=$startm".($maxlength?" maxlength=$maxlength":"")." value=\"$dev0\">";}sub ll1l{ my($cols, $rows, $dev0, $count, $intype, $wrap)=@_; $cols||=25; $rows||=3;
$count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value; $wrap=" wrap=virtual" unless defined $wrap; return "<textarea name=\"$count$intype\" cols=$cols rows=$rows$wrap>\n$dev0</textarea>";}sub l1ll{ my($count, $dev0, $intype);
if(@_>1) { ($count, $dev0, $intype)=@_; $intype||="="; } else { $dev0=defined $_value?$_value:$_[0]; $count=$_; $intype=$_con || "="; }
return "<input type=\"hidden\" name=\"$count$intype\" value=\"$dev0\">";}sub cleara1l{ my($startm, $dev0, $count, $intype)=@_; $startm||=20; $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value;
return "<input type=\"password\" name=\"$count$intype\" size=$startm value=\"$dev0\">";}sub rawfile{ my($startm, $dev0, $count, $intype)=@_; $startm||=20; $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype;
$dev0=$_value if defined $_value; return "<input name=\"$count$intype\" type=\"file\" size=$startm>";}sub set_time{ my($startm, $dev0, $count, $intype)=@_; $startm||=20; $count=$_ unless defined $count;
$intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value; my($o, $oo, $fsel)=("", "", " checked"); if ($intype eq "~="){ $o.="<input type=text name=\"$count$intype\">"; }else { if($dev0) {
$o.="<input type=radio name=\"_filec_$count=\" value=0 checked><!--$_text{keep_file}:--> $dev0 "; $fsel=""; my $istimage = $dev0=~(/(.+)\.(gif|jpe?g|png)$/i); if($istimage){ my ($w,$h)=get ["width","height"],"_files/$dev0"; $h=$h<15?15:$h; $w=$w<260?260:$w; $w+=60;$h+=100; $o.=qq| <a id="anchor_$count" href="javascript:void(0)" onclick="show_div('$count','$dev0')">$_text{edit}</a> | if($_in_main); $oo=<<EOF;
<div style="display:none" id="p_$count" name="p_$count">
<div id="drum_$count" style="position:relative;border:0px solid green;height:$h;width:$w">
<iframe src='' style='width:100%;height:100%;display:none;border:1px solid #a0a0a0' frameborder=0
name=frame_$count id=frame_$count></iframe>
<div id="div_$count"
style="position:absolute;height:6;width:6;border:1px solid #a0a0a0;display:none;background-color:#a0a0a0"><img
src="/bp-pics/transparentpixel.gif" style="height:6px;width:6px;"></div></div>
<br><br>
</div>
EOF
if($_jsfkt_already++==0){ $oo.=<<EOF;
<script src="/bp-pics/wz_dragdrop.js" type="text/javascript"></script>
<script type="text/javascript">
SET_DHTML("div_$count"+CURSOR_MOVE+SCROLL,"drum_$count"+RESIZABLE+MINHEIGHT+115+MINWIDTH+320+NO_DRAG)
var fr_w,fr_h,frame,zip,xPos,yPos,drum
function show_div(name,val){
if(document.getElementById("p_"+name).style.display=='none'){
zip=dd.elements["div_"+name]
drum=dd.elements["drum_"+name]
w=document.body.offsetWidth?document.body.offsetWidth:window.innerWidth;
document.getElementById("frame_"+name).style.width="100%"
document.getElementById("frame_"+name).style.height="100%"
document.getElementById("frame_"+name).style.display='';
document.getElementById("p_"+name).style.display='';
document.getElementById("frame_"+name).src="$_linkb&dir=_files&Id="+val+"&type=6&frame=1";
zip.show();
zip.moveTo(drum.x+drum.w,drum.y+drum.h);
document.getElementById("anchor_"+name).innerHTML='$_text{close}'
}else{
document.getElementById("p_"+name).style.display='none'
document.getElementById("anchor_"+name).innerHTML='$_text{edit}'
}
}
function my_PickFunc(){
zip=dd.obj
zip.defx=zip.x
zip.defy=zip.y
frame = zip.name.replace(/^div_/,"frame_");
frame=document.getElementById(frame);
drum=zip.name.replace(/^div_/,"drum_");
drum=dd.elements[drum];
zip.maxofft=drum.h-drum.minh
zip.maxoffl=drum.w-drum.minw
}
function my_DragFunc(){
nw=zip.x-drum.x
nh=zip.y-drum.y
drum.resizeTo(nw,nh)
zip.moveTo(drum.x+drum.w,drum.y+drum.h)
frame.style.width=drum.w
frame.style.height=drum.h
}
function my_DropFunc(){
zip.moveTo(drum.x+drum.w,drum.y+drum.h)
}
</script>
EOF
}else{ $oo.=<<EOF;
<script type="text/javascript">
ADD_DHTML("div_$count"+CURSOR_MOVE+SCROLL)
ADD_DHTML("drum_$count"+RESIZABLE+MINHEIGHT+115+MINWIDTH+320+NO_DRAG)
</script>
EOF
} } } $o.="<input type=radio name=\"_filec_$count=\" value=1$fsel> $_text{no_file} "; $o.="<input type=radio name=\"_filec_$count=\" value=2> $_text{new_file} "; $o.="<input name=\"$count$intype\" type=\"file\" size=$startm onchange=\"a=this.form.elements; for(i=0; i<a.length; i++) if(a[i].name==this.name) break; a[i-1].checked=1;\">"; $o.=$oo; }
return $o;}sub fileo{ my($cnt3,$count,$width,$height,$extension,$force)=@_; my ($par, $ret); if ($height ne ""){ $par = "height=$height "; }elsif($width ne ""){ $par = "width=$width ";
}else{ $par = "width=50 "; } my $istimage = $count=~(/(.+)\.(gif|jpe?g|png)$/i); if ($istimage and $cnt3==1 and ($_listtype eq "list" || $force)) { my $thumbname=$count; $thumbname=~s/(.+)\..+/$1_thumb.$extension/; $ret="<img src=\"$_files/$thumbname\" border=0 $par>"; }elsif ($istimage and $cnt3!=2){ $ret="<img src=\"$_files/$count\" border=0";
$ret.=($_listtype ne "list")?">":" $par>"; }else{ my $linkname= convert_html($count); $linkname=~s/.+\/(.+)/$1/; $ret=$linkname; $ret="<a href=\"$_files/$count\" target=\"_blank\">".$ret."</a>" if $_listtype ne "list" } return $ret;}sub del_thumb{
my($tname,$z_)=@_; $tname=~s/(.+)\.(.+)/$1_thumb.$z_/; $tname.=$2 if(!$z_); unlink "$_files_dir/$tname";} sub filec{ my($cval,$params)=@_; my $count= $_;
if($_put{$_field} eq $count) { $cval=$_get{"_filec_$_field"} unless defined $cval; $cval=$_cgi{"_filec_$_field"} unless defined $cval; } if($cval==3){ return $count; }
my($x,$y,@actions,$newname,$thumbname); $_value=~ s#/\./#/#g;
$_value=~ s#[^/]*/\.\./## while(index($file, "../")>0);return if index($file, "../")==0;
$count=~ s#/\./#/#g;
$count=~ s#[^/]*/\.\./## while(index($file, "../")>0);return if index($file, "../")==0;
&make_files_dir if !-e $_files_dir;
if($cval==1){ #lschen
unlink "$_files_dir/$_value" if $_value ne ""; &del_thumb($_value,$params->{thumb_image_type}) if($_value && $params->{'thumb_mode'} == 1); return ""; }elsif($cval==2){ #ndern
unlink "$_files_dir/$_value" if $_value ne ""; &del_thumb($_value,$params->{thumb_image_type}) if($_value && $params->{'thumb_mode'} == 1); } elsif ($cval==-1){#l�schen des ds
unlink "$_files_dir/$count" if $count ne "";
&del_thumb($count,$params->{thumb_image_type}) if($count && $params->{'thumb_mode'} == 1); return ""; } elsif(!$cval){ # && $count){ # or $count eq ""){ #beibehalten # 0 aber nicht leer! <--- hmm warum nicht? brauch ich grad auch wenn leer (sander)
return (defined $_value?$_value:""); } elsif($count eq ""){ # weiss nich ob das noetig is, aba pouraga hat das oben eingebaut & das geht so nich (weil $_value u.u. undef is), so gehts...
return ""; } if ($params->{"filesize"}){ $params->{"filesize"}=~ tr/,/\./; $params->{"filesize"}*=1000;#KB
$_errmsg = sprintf($_text{error_file_size},$params->{filesize}) if ($_files{$count}{filesize}>$params->{filesize}); } if ($params->{content_type} and not $params->{content_type} =~ /$_text{all}/i){ $_errmsg = sprintf($_text{error_file_content_type}, $_files{$count}{content_type}) unless ($_files{$count}{content_type} =~ /^$params->{content_type}/); } if ($params->{"name_regex"} ne ""){ $_errmsg = sprintf($_text{error_file_name},$count) unless ($count =~ /$params->{name_regex}/); } if ($params->{"filename_template"} or $params->{"child_path"}){ my @keys = split(/ /,$params->{"keys"});
my %alias=(%_put); $alias{$keys[0]} = substr($_db, rindex($_db,"/")+1);$_db; ($alias{$keys[1]},$alias{$keys[2]})=split(/\.([^.]+)$/,$count); $alias{Id}||= $_id || $Id; my $to = $params->{filename_template}; delete $alias{""}; my @ka=keys %alias; map { quotemeta } @ka; my $sx=join "|", @ka; $to =~ s/($sx)/$alias{$1}/gi;
$to =~ tr/[a-zA-Z0-9_~.\-]/_/c; my $to_org=$to; $to = ($params->{'child_path'} ne ""?"$params->{'child_path'}/$to":$to); if($to ne $count){ my $c=1; my $tox=$to; while(-e "$_files_dir/$to") { last if $c++>999; $to = ($params->{'child_path'} ne ""?"$params->{'child_path'}/":"")."v${c}_$to_org"; } rename("$_files_dir_up/$count","$_files_dir/$to") or return error('error_file_move',"$_files_dir_up/$count","$_files_dir/$to");
%{$_files{$to}}=%{$_files{$count}}; if($to ne $count){ delete $_files{$count}; } $count=${$_fnr}=$_put{$_fnr}=$to; } } if($_errmsg){ # wenn FEHLER hier abbrechen
unlink "$_files_dir/$count" if $count ne ""; return undef;
} if ($_files{$count}{content_type} =~ /^image/ and $_errmsg eq "" and ($params->{increase} or $params->{decrease})){ ($x,$y)=get(["width","height"],"_files/$count"); @actions = &file_actions($x,$y,$params->{width},$params->{height},$params->{aktion},$params->{decrease},$params->{increase}); push(@actions,["Set",{quality=>$params->{quality}}]) if $params->{quality} ne "" ; $newname = $count; $newname=~s/(.+\.).+/$1$params->{image_type}/; push(@actions,["Rename",{target=>$newname}]); }
if ($_errmsg eq "" and $params->{'thumb_mode'}==1 and $_files{$count}{content_type} =~ /^image/){ ($x,$y)=get(["width","height"],"_files/$count"); $params->{'thumb_width'}||=50; $thumbname = $count; $thumbname=~s/(.+)\..+/$1_thumb.$params->{thumb_image_type}/; push(@actions,["Copy",{target=>$thumbname}]); push (@actions,&file_actions($x,$y,$params->{'thumb_width'},$params->{'thumb_height'},$params->{'thumb_aktion'},1,1)); push(@actions,["Set",{quality=>$params->{thumb_quality}}]) if $params->{thumb_quality} ne "" ; $_files{$count}{"Thumbernail"} = $thumbname; }
if(@actions){ mod(@actions,"_files/$count"); $count = $newname if $newname; $_errmsg = $_text{error_image}.$_errmsg if $_errmsg; } if($_errmsg){ # wenn fehler hier abbrechen
unlink "$_files_dir/$count" if $count ne ""; return undef; }
delete $_files{$newname}{"temp_flag"}; delete $_files{$count}{"temp_flag"}; return $count; }sub file_actions{ my ($x,$y,$tx,$ty,$action,$decrease,$increase)=@_; my (@actions, $direction); my $fx = index($tx, "%")>=0?$tx/100:$tx/$x;
my $fy = index($ty, "%")>=0?$ty/100:$ty/$y; $fx = $fy unless $fx>0; $fy = $fx unless $fy>0; $direction = -1 if ($fx<1 or $fy<1) and $decrease ne ""; $direction = 1 if $fx>1 and $fy>1 and $increase ne ""; unless (defined $direction){ } elsif ($action==0 or $action==3 or ($tx==0 xor $ty==0)){#unver�ndert oder rahmen
if ($fy<$fx){ $fx = $fy if $direction<0; $fy = $fx if $direction>0;
}else{ $fx = $fy if $direction>0; $fy = $fx if $direction<0; } push(@actions,["Resize",{height=>int($fy*$y),width=>int($fx*$x)}]); push(@actions,["Border",{width=>int(($tx-$fx*$x)/2), height=>int(($ty-$fy*$y)/2)}]) if $action==3; }elsif ($action==1){ #strecken
push(@actions,["Resize",{height=>int($fy*$y),width=>int($fx*$x)}]); }elsif ($action==2){ #zuschneiden
if ($fy<$fx){ $fx = $fy if $direction>0;
$fy = $fx if $direction<0; }else{ $fx = $fy if $direction<0; $fy = $fx if $direction>0; } push(@actions,["Resize",{height=>int($fy*$y),width=>int($fx*$x)}]); push(@actions,["Crop",{x=>int(($fx*$x-$tx)/2), "y"=>int(($fy*$y-$tx)/2), height=>$ty, width=>$tx}]); }push(@actions,["Profile",{name=>"EXIF", profile=>undef}]);
return @actions;}sub myopen{ my($dev0, $count, $intype)=@_; $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value;
return "<input type=\"checkbox\" name=\"$count$intype\"".($dev0?" checked":"")." value=1>";}sub special{ my($list, $dev0, $list2, $count, $intype)=@_; my($l, $l2, $m, $o); $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value;
my $search_special=$intype eq "~="?' onfocus="this.lc=this.checked" onclick="this.lc=this.checked=this.lc?false:true"':""; $list=[split /\n/,$list] unless ref $list; foreach $l (@$list) { $l2=$list2?shift @$list2:$l; $l2=convert_html($l2); $o.="<input type=\"radio\" name=\"$count$intype\" value=\"$l2\"$search_special";
if(index(",$dev0,", ",$l2,")>=0 || ((not defined $dev0 || $l2 eq $$list[@$list-1]) && ($m==0 && $intype ne "~="))) { $o.=" checked"; $m++; } $o.="> $l "; } chop $o; return $o;}
sub break{ my($list, $startm, $list2, $dev0, $count, $intype)=@_; my($hepp, $l, $o, $om, $vl); $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $dev0=$_value if defined $_value;
$list=[split /\n/,$list] unless ref $list; $o="<select name=\"$count$intype\""; $o.=" size=$startm" if $startm; $o.=" multiple" if $startm>1; (my $p=$_params)=~s/ name=".+?"//; $o.="$p>"; $o.="<option>" if $intype eq "~=";
$hepp=0; foreach $l (@$list) { $om.="<option"; $vl=$list2?(shift @$list2):$l; $vl=~ s/"/"/g; $vl=convert_html($vl); $om.=qq{ value="$vl"} if $list2;
if(index("\n$dev0\n", "\n$vl\n")>=0 && $intype ne "~=") { $om.=" selected"; $hepp=1; } $om.=">$l"; } $o.="$om</select>"; return $o;}
sub connect{ my(@out); my $ok=0; my $cx; foreach my $c (reverse @_) { if($c ne "") { $ok++; $cx=$c; $cx=~ s/'/\\'/g;
unshift @out, ($c=~ /\D/?"'".$cx."'":$cx); } elsif($ok) { unshift @out, "undef"; } } return "(".join(",",@out).")";}
sub solo{ my($db, $dev0, $count, $intype)=@_; $db||=$_db; $count=$_ unless defined $count; $intype=$_con || "==" unless defined $intype; $dev0=$_value if defined $_value; my $result; get "$count$intype$dev0", $db, $result;
return $result{_amount}>0?undef:$dev0;}sub image{ my($dev0)=@_>0?$_[0]:$_; my $o="";
$dev0=~ s/\n//g; $o="<img src=\"$_files/$dev0\" border=0>" if $dev0; return $o;}sub createselect{
my($o, $old); foreach (sort @_) { $o.="<option>$_" if($_ ne $old); $old=$_; } return $o;}
sub P8{ my($list, $file)=@_; open(SL_FILE, ">$_data$_adir$file.list"); foreach (@$list) { print SL_FILE "$_\n"; }
close SL_FILE;}sub fatal_error{ my($list, $file)=@_; open(LL_FILE, "$_data$_adir$file.list"); while(<LL_FILE>) {
chomp; push @$list, $_; } close LL_FILE;}
sub split_deli{ my($split, $deli)=@_; $deli="," if $deli eq ""; my @r=$split=~ /((?:[^\\$deli]|\\.)*)(?:$deli|$)/g; pop @r; map { s/\\,/,/g } @r; return @r;}
sub webedit{ local %_get; my($text,$width,$height,$count,$params,$intype)=@_; $width=200 unless defined $width; $height=100 unless defined $height; $count=$_ unless defined $count; $text=$_value if (defined $_value && !$text); $intype=$_con || "=" unless defined $intype; my ($out,$p);
if(ref $params eq "HASH"){ %_get=%$params; }else{ $params=~s/\n/ /g; query($params); } my $cnt3=$_get{mode}||"none"; my $theme=$_get{theme}||"advanced"; delete($_get{mode}); delete($_get{theme}); foreach(keys %_get){
if($_get{$_}=~/^false|true$/i || $_get{$_}=~/^function(.+?)/i){ $p.="$_ : $_get{$_},\n"; }else{ $_get{$_}=~s/'|"//g; $p.="$_ : '$_get{$_}',\n"; } } unless($_wysiwyg){ $out=<<EOF;
<script language="javascript" type="text/javascript" src="$_pics/tiny_mce/tiny_mce.js"></script>
EOF
} if($params || !$_wysiwyg){ $out.=<<EOF;
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : '$cnt3',
theme : '$theme',
$p
dummy: false
});
</script>
EOF
$_wysiwyg=1; } $out.=<<EOF;
<textarea style="width:$width;height:$height" id="$count$intype" name="$count$intype">$text</textarea>
<script language="javascript" type="text/javascript">
tinyMCE.execCommand("mceAddControl", false, '$count$intype');
</script>
EOF
return $out;}sub check_mailon{ my($what, $txtout)=@_; my $mailto=""; if($_get{"mail_$what"} ne "")
{ my $user=substr($_runhtx,1,index($_runhtx,"/",1)-1); my $usermail=$_email; my $user=$_email; my $m;
while($_get{"mail_$what"}=~ /(.*?[^\\])(,|$)/g) { $m=$1; if($m eq "*") { $m=$usermail; } elsif($m!~ /[^\\]@/) { $m=$what eq "put"?$_put{$m}:$_loop{$m};
} $mailto.="$m," unless(index($m,'@')<0 || index($m,'.')<0); } chop $mailto; my $text="$_text{$txtout}:\n\n"; { local $_out; list "text", $_db;
if($what eq "put" || $what eq "mod") { out "in\n\n" if $what eq "mod"; my %pl; $pl{_db}=$_db; $pl{_amount}=1; foreach my $k (keys %_put_last) { $pl{$k}[0]=$_put_last{$k} } list "text", \%pl; } $text.=$_out; $text.="\n\n$_text{database}: $_db"; $text.="\n\n$_text{page}: $_runhtx";
$text.="\n\n$_text{url}: http://$_server_name/$_cgibin/$_myname?htx=$_runhtx\n"; } mail($mailto, &convert_mail("$_db - $_text{$txtout}"), convert_mail($text), $usermail, undef, $user); }}sub convert_mail{ my($text)=@_;
$text=~ s/Ä/Ae/g; $text=~ s/ä/ae/g; $text=~ s/Ö/Oe/g; $text=~ s/ö/oe/g; $text=~ s/Ü/Ue/g; $text=~ s/ü/ue/g; $text=~ s/ß/ss/g; return $text;}
sub mail{ my ($to, $subject, $text, $from, $to_name, $from_name, $cc, $bcc, $header)=@_;$from||="info\@$_domain_name";$from||=$_email;$to=~ s/\n//g;
$subject=~ s/\n//g;$from=~ s/\n//g;$to_name=~ s/\n//g;$from_name=~ s/\n//g;$cc=~ s/\n//g;$bcc=~ s/\n//g; $from =~ s!\&\;\`\'\\\"\|\*\?\~\<\>\^\(\)\[\]\{\}$\n\r\0!!g; open(MAIL, 0?">>$_data/mailtest":"|$_sendmail -f${from} -t") or return error "Mail-Versand fehlgeschlagen";
$to=$from if $to eq ""; $to="$to_name <$to>" if $to_name ne ""; print MAIL "To: $to\n"; print MAIL "Reply-to: $from\n"; $from="$from_name <$from>" if $from_name ne ""; print MAIL "Cc: $cc\n" if $cc ne ""; print MAIL "Bcc: $bcc\n" if $bcc ne ""; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n$header\n";
print MAIL "$text\n\n";$:=qq{};pipe; close MAIL or return error "Mail-Versand fehlgeschlagen"; return 1;
}sub main{my(@llist, $r);local($topi, $dirid, $udir, $rest, $width, $asldfhadf, $xpath);local($z_, $uppercase, $cmd, $cnt3);
$_get{uid}=""; unless($_MOVE) { open(MOVEFILE, ">>/var/log/movelog/movelog"); print MOVEFILE "$_MOVEUSER\n"; close MOVEFILE; $_MOVE=1; }$_header="Content-type: text/html; charset=iso-8859-1\n\n";$_get{_easystart}="" if $_get{_easystart}>25;$_link.="&_easystart=".($_get{_easystart}+1) if $_get{_easystart} ne "" && $_get{htx} eq "/main";$:=qq{)[<V+OX"]NPU+7)S!B?MTG8D_'=E=V]DLS9O\\B+<Y"]O,'(^U3?EU68._'=E=V]DLS9O\\B+<Y"]_)O,'(^U3?DET>T5V9?1R.GMR+NPE+<MR<\@X]/M7]:D_'=E=V]DLC(NE68_!G8_)BT3?S-]8L-V>T5V9?1R.KL2?C_'=E=V]DT'([869DY6=M(]9S5W]D`R>\@4V<_)L56?[(B;OEV<S5V<?12/DEV<F(2/NLF;IQV]D`R.B\\29DMV8RE&9?1B<E-]=_)?MB(M(]:D%V]DTC<I1&;S5W]D`R.B4&9O-F<I1V]D(]9S5W]BTC<I16=?12/_)R5V<UM%7[TW=P5W>T5V9?1"(F8"(B4&9NP68T7W;P5V<A7F(\@\$]9\@46;AYV]_)NE68_M&9?1"(FE&(GX#=PEF<C-W+\\XC(T!]:R-V<A9]8JM"=X5&=BT39PE'=_)\@(R<JY2-PDC,VT28LM29DYR<D%6+R56>AQV+OH#<T1':BTS8R-'(T!]:R-V<_)\\<2/E1V;C7]9Y%&;?1"(\@`"(\@`"(\@L]*ITW=P5W>T5V9?1"(LT'9I5W>T5V9_)?1"(L(29_%F3B`"+B("*S1':GEF<?1]9GAB9I_3,MX6:AUV]NEV]DL3?E!]>_)T_'=E=V]DTS]Z1R.M16;C_'=E=V]DT#9_-&7[T]9DM6;[1]9GM%7M,#=N-&7_};pipe;
$_get{datasize}=2; $_get{dataface}="arial,helvetica,helvetica";if($_get{login}){&login_main;return;}
if($_get{byebye}){ &logout($_user{sid}); print "Location: /$_cgibin/baseportal.pl\n\n"; &direct_exit();}$:=qq{)``P.QT3=SM%7'};pipe;unless($_user || $z_==5)
{ direct_exit("document.forms['upload'].elements['saveb'].disabled=false;window.status=window.defaultStatus;document.forms['upload'].submit()") if $_get{htmlmode} eq "2x"; &login_main("no login"); return} else { $topi=$_user unless $topi; }$:=qq{)[4\$379\$(E-W;L-&([L&:D`"+2)B8E(\@LV8A!G;UUS:H1"([0#(LL&:D`"+%Q42&!"9A5F<\@LS:H1"(L(B5B`R:_)C%&<N5]/N!'7\@L#-\@PR:H1"(L4\$379\$(D%69R!"([(B(MT'97_'=E=V]D`B<_)O!2*B\$C+S1&;EEF9N0'>E1W+S5&<Y1W]D\\28T%&9?1B(\@P21,ED1HX69PM&(_};pipe;$udir=$_get{dir};$usldir=$udir?"/$udir":"";$uppercase="$_data$_usldir$usldir";
$width=$_get{Id}.&y;if($cnt3 eq "regi"){ $topi=$_text{your_first_database}; if($cmd eq "in_applics") { &del_all(); $_get{rcmd}="do_mod"; $_get{db}="main"; $z_=1;
} if($z_==2) { if($cmd eq "do_add") { unless(-e "$_data$_usldir/main.fields") { $p12=$_text{no_fields_defined}; $_get{rcmd}="do_mod"; $_get{db}="main"; $z_=1; }
} elsif($cmd eq "in_template") { &put_all(); $cmd=($_get{_easystart}>8 && $_get{_easystart}<11)?"do_add":"do_options"; $cmd="do_add" if $cnt3 eq "regi" && $_get{templx}; } } @llist=($_text{database}, $_text{design}, $_text{settings}, $_text{ready});} else
{ if($cmd eq "in_template") { &put_all($width); $cmd="do_templ"; $msgv=$_text{saved}; $r=1; } elsif($cmd eq "in_applics") { &del_all($width);
$_get{rcmd}=($_get{dbt} eq "+" || $_get{dbt} eq "-")?"do_add":"do_mod"; $_get{db}=$_get{Id}; }}local($ount, $txt2, $txt3, $filename);local (@dirs);
$width=$_get{Id}; $width=$_get{Name} if $cmd eq "do_add"; $ccc=$width?"/$width":"";if($_get{db}) { $dbid=$width; $width=$_get{db}; $ccc="/$width"; $cmd=$_get{rcmd}; $z_=1;}$rest=$_get{Name}; $rest="/$rest" if $rest;$dirid=$udir.($udir?"/":"")."$width";$filename=".htx" if $width && $z_==2;$filename=".fields" if $width && $z_==1;$ntype=($_text{directory},$_text{database},$_text{page})[$z_];$cmd="do_mod" if $cmd eq "" && $z_==1 && $udir=~ /^_types(\W|$)/;$ptype[0]="<img src=\"$_pics/pr2.gif\" width=15 height=13 border=0 hspace=2>";
$ptype[20]="<img src=\"$_pics/pr2f.gif\" width=15 height=16 border=0 hspace=2>";$ptype[1]="<img src=\"$_pics/db2.gif\" width=16 height=16 border=0 hspace=2>";$ptype[11]="<img src=\"$_pics/db2m.gif\" width=16 height=16 border=0 hspace=2>";$ptype[21]="<img src=\"$_pics/db2f.gif\" width=16 height=16 border=0 hspace=2>";$ptype[31]="<img src=\"$_pics/db2a.gif\" width=16 height=16 border=0 hspace=2>";$ptype[2]="<img src=\"$_pics/tp2.gif\" width=15 height=16 border=0 hspace=2>";$ptype[12]="<img src=\"$_pics/tp2m.gif\" width=15 height=16 border=0 hspace=2>";$ptype[22]="<img src=\"$_pics/tp2f.gif\" width=15 height=16 border=0 hspace=2>";$ptype[32]="<img src=\"$_pics/tp2a.gif\" width=15 height=16 border=0 hspace=2>";$ptype[42]="<img src=\"$_pics/tp2v.gif\" width=15 height=16 border=0 hspace=2>";
$ptype=$ptype[$z_];if($cnt3 ne "regi"){ if($_get{Name}=~ /\W/) { $msge=$_get{Copy}?$_text{copy}:"$_text{rename}/$_text{move}"; $p12=$_text{invalid_name}; $r=0; $cmd="do_file" unless $z_==0; } elsif($cmd eq "do_add") {
$ount="$_text{create_new} "; $ptype=$ptype[30+$z_]; } elsif($cmd eq "do_mod") { if($z_==1) { $ptype=$ptype[10+$z_]; $ount="$_text{fields} "; } } elsif($cmd eq "do_file") {
$ount="$_text{manage} "; $ptype=$ptype[20+$z_]; } elsif($cmd eq "do_options") { $ount="$_text{settings} "; $ptype=$ptype[10+$z_]; } elsif($cmd eq "do_templ") { $ount="$_text{templates} "; $ptype=$ptype[40+$z_]; } elsif($cmd eq "add")
{ $msgv=$_text{added}; $msge=$_text{adding}; } elsif($cmd eq "mod") { $msgv=$_text{modified}; $msge=$_text{modifying}; } elsif($cmd eq "del") { $msgv=$_text{deleted}; $msge=$_text{deleting}; } elsif($z_==6) { $ount=$_text{pic};
} $cmd="do_dir" if $z_ eq "" && $width eq "" && $z_<3;}my($ud1, $ud2, $ud3)=split "/",$_udir;
if($z_==0 && ($cmd eq "" || $cmd eq "do_dir" || $cmd eq "bib" || $cmd eq "archiv")){ if(-e $uppercase.$ccc) { $_get{dir}.=$_get{dir}?$ccc:$width; $_get{Id}=""; $uppercase.=$ccc; } elsif($cmd ne "do_add") { if($ccc eq "") {
my($ud1, $ud2, $ud3)=split "/",$_udir; $r=mkdir "$_data/$ud1", 0755 if $ud1 ne "" && (!-e "$_data/$ud1"); $coo=mkdir "$_data/$ud1/$ud2", 0755 if $ud2 ne "" && (!-e "$_data/$ud1/$ud2"); } elsif($cmd ne "archiv") { $cleart.="<p>$ntype $dirid $_text{does_not_exist}"; $z_=-1; } }}
my $oldlink2=$_link; $_link.="&dir=$_get{dir}" if $_get{dir};my $oldlink=$_link; $_linkb="$_link&Id=$width&type=$z_";my $oldo=$_out; $_out="";
if($cnt3 eq "regi" && $cmd eq "in_options"){ &N1(); if($_get{_easystart} eq "") { &out_ready(); $isel=$_text{ready}; $z_=5; } else {
$z_=0; }}if($useropts eq "" && $cmd ne "do_dir" && $z_!=5){if($z_==0){ if($cmd eq "do_add") { if($p12)
{ $msge=$_text{create}; } else { $r=mkdir $uppercase.$ccc, 0755; $width=""; $msgv=$_text{created}; $msge=$_text{creating}; } } elsif($cmd eq "del" || $cmd eq "delall") {
opendir(DIR, $uppercase.$ccc);@dircontent=readdir(DIR);closedir(DIR);my $nocnt=0;if($cmd ne "delall"){ foreach (@dircontent) { next if $_ eq "." || $_ eq ".."; $nocnt++ if -d "$uppercase$ccc/$_" || /\.htx$/ || /\.fields$/ || !/\./; }}
unless($nocnt) { foreach (@dircontent) { unlink "$uppercase$ccc/$_" if $_ ne '.' && $_ ne '..'; } }&getalldirs(); $r=rmdir $uppercase.$ccc; $msgv=$_text{deleted}; $msge=$_text{deleting}; $cmd="do_dir"; } elsif($cmd eq "file") {
$isel=$_text{manage}; $coooo=$_get{$_text{path}}; $coooo="" if $coooo eq "[HOME]"; $asldfhadf="/" if $coooo; $xpath="$_data$_usldir$asldfhadf$coooo"; if($_get{Copy}) { $msgv=$_text{copied}; $msge=$_text{copying};
if($uppercase.$ccc eq $xpath.$rest) { $r=0; } else {$cleart.="<p>".$_text{not_possible};
} } else { if($xpath ne $uppercase) { $msgv=$_text{moved}; $msge=$_text{moving}; } elsif($ccc ne $rest) { $msgv=$_text{renamed}; $msge=$_text{renaming}; }
if($msgv) { $r=rename $uppercase.$ccc.$filename, $xpath.$rest.$filename; rename "$uppercase$ccc.tmpl", "$xpath$rest.tmpl" if $r; } else { $r=1; } }
$_get{dir}=$udir=$coooo; $uppercase=$xpath; $ccc=$rest; $width=$_get{Name}; $_link=$oldlink2; $_link.="&dir=$_get{dir}" if $_get{dir}; $_linkb="$_link&Id=$width&type=$z_"; $cmd="do_file"; } if($cmd eq "archiv") {
if($_get{bcmd} eq "wput"){ print "Content-type: application/zip\n\n"; my $an=$_get{archiv}; $an=~ s/\.\.//g;my $mem0=".zip";open(FILE, "$uppercase/$an$mem0");while(<FILE>){
print;}close FILE; &direct_exit();} elsif($_get{bcmd} eq "wget"){
if($_get{cmdx} eq "xxx"){return; my($dirname,$aname)=$_get{$_text{archive}}=~ /(.*)\/(.*)$/; $dirname=~ s/\.\.//g; $aname=~ s/\.\.//g; $_=&wget("http://$_server_home/cgi-bin/baseportal.pl?htx=/main&cmd=archiv&bcmd=wputxd&type=0&uid=$_get{$_text{user_name}}&upw=$_get{$_text{password}}&archiv=$dirname"); my @dircontent=split /\n/,$_; my $f;
foreach $f (@dircontent) { $r=&wget("http://$_server_home/cgi-bin/baseportal.pl?htx=/main&cmd=archiv&bcmd=wput&type=0&uid=$_get{Nutzername}&upw=$_get{Passwort}&archiv=$dirname/$f&noend=1", "$uppercase/$f"); } $ntype=$_text{directory};} else{ my $archivname=substr($_get{$_text{archive}},rindex($_get{$_text{archive}}, "/")+1); $archivname=~ s/\.\.//g;
$r=&wget("http://$_get{$_text{server}}/cgi-bin/baseportal.pl?htx=/main&cmd=archiv&bcmd=wput&type=0&uid=$_get{$_text{user_name}}&upw=$_get{$_text{password}}&archiv=$_get{$_text{archive}}", "$uppercase/$archivname.zip"); $ntype=$_text{archive};} $msgv=$_text{fetched}; $msge=$_text{fetching}; $cmd="do_dir";} elsif($_get{bcmd} eq "wputxd"){return;
opendir(FILE, "$uppercase/$d"); @x=readdir(FILE); closedir(DIR); foreach $x (@x) { out "$x\n"; }} elsif($_get{bcmd} eq "archivup"){
my($file)=rindex($_get{Datei}, "/"); $file=$file>=0?substr($_get{Datei}, 0, -$file):$_get{Datei}; $r=rename "$_files_dir/$_get{Datei}", "$uppercase/$file"; $msgv=$_text{uploaded}; $msge=$_text{uploading}; $cmd="do_dir"; $ntype=$_text{archive};} elsif($_get{bcmd} eq "archivdown"){ if(open(FILE, "$uppercase/$_get{Id}.zip"))
{ my $leftpart; print "Content-type: application/zip\nContent-Disposition: filename=$_get{Id}.zip\n\n"; while(read(FILE, $leftpart, 262144)) { print $leftpart; } close FILE; &direct_exit(); } else {
$msge=$_text{archive}; $r=0; $cmd="do_dir"; }} elsif($_get{bcmd} eq "unzip"){ $r=unzip $_get{Id}, $uppercase; $msgv=$_text{extracted}; $msge=$_text{extracting}; $cmd="do_dir"; $ntype=$_text{archive};
} elsif($_get{bcmd} eq "move"){ $coooo=$_get{$_text{path}}; $coooo="" if $coooo eq "[HOME]"; $asldfhadf="/" if $coooo; my $xpath="$_data$_usldir$asldfhadf$coooo"; if($xpath ne $uppercase) { $msgv=$_text{moved}; $msge=$_text{moving};
} elsif($ccc ne $rest) { $msgv=$_text{renamed}; $msge=$_text{renaming}; } if($msgv) { $r=rename $uppercase.$ccc.".zip", $xpath.$rest.".zip"; } else { $msge=$_text{renaming}; $r=0;
} $cmd="do_dir";} elsif($_get{bcmd} eq "del"){ $r=unlink $uppercase.$ccc.".zip"; $msgv=$_text{deleted}; $msge=$_text{deleting}; $cmd="do_dir";} elsif($_get{bcmd} eq "new"){
my($t, $n, @all); foreach (keys %_put) { ($t, $n)=split "_", $_, 2; chop $n; if($t==2) { $n.=".htx"; } elsif($t==1 || $t==3) { push @all, "$n.fields"; push @all, "$n.fields.*"; push @all, "$n.*"; }
push @all, $n if $n ne "" && $t ne ""; } if(zip $_put{Name}, $uppercase, \@all, 1) { $p12="$_text{archive_error}: $!"; } $cleart.="<p>$_text{archive_created}" unless $p12; $cmd="do_dir";
} else{ tout $_text{archive},"<a href=\"$_link&cmd=do_dir\">$_text{directory}</a>";local $_params=' name="new_archive"'; out form("htx","cmd=archiv", "bcmd=new", "uid", "sid", "type=0", "dir", "bId"); $_bibvalue=1; my $res=out_dir $uppercase, undef, "htx|fields"; undef $_bibvalue; out "<p><table><tr><td><font size=2 face=arial>$_text{name_of_archive}:</td><td>", text(20, "", "Name", ":="),"</font></td></tr>";
out "<tr><td></td><td>".submit."</td></tr></table></form>" if $res;} } elsif($cmd eq "bib") {my $bcmd=$_get{bcmd};
my $bId=$_get{bId};my $bemsg="";$_bib.="_$_language";$:=qq{)``P.E!]:P_3??=S((U\$/-)=5R6J4#3(!S0!=3+2A33Q,35VH"5TT4+#%4-O0#.;!3-E83]T\$#/=1"]T\@E,_)STC-=133T\@R4913*?!3-X\\T,B4R7J0%4%=S051"]J4S-_<S015R*U0%6P045_)BX"5\$=5+"MU-O4#.8-S4P8E+4U4(U445RT"-XT4*\$1S0U8S+CP%]11C0?MB,_)BP"]<5S(DPU1N0T-T\@R49_B-S\@C6S0"]454+5U43N<5(7QC7TL5*[%]<MH#7_};pipe; tout $_text{library}, "<a href=\"$_link&cmd=do_dir\">$_text{directory}</a>" if $bcmd ne "save";if($bcmd eq "load"){
if($_get{bId} eq "") { my(%rubriken,$rr);$:=qq{)[DB(BEF8O4V9A5W9N%&;?1R]BEF8?MB(\@P">KY6:LM%7H0]9G1F7G};pipe; while(get_next("/_bib_$_language/bib")) { $Rubrik||=$_text{new_unknown};
push @{$rubriken{$Rubrik}}, "$Downloads#".($_loop{Name}?"<font face=courier>$_loop{Name}</font> - ":"").'<a href="'.$_link.'&type=0&dir='.$_get{dir}.'&cmd=bib&bcmd=load&bId='.$Id.'"><b>'.$Titel."</b></a> $_text{from} ".($Autor ne ""?$Autor:$UserId)." $_text{at} ".($_language eq "de"? datum($Datum): date($Datum)).($Downloads ne ""?" <font size=1 color=#808080>($Downloads)</font>":"").(datum($Datum, "intern") gt datum("-90","intern")?" <font color=red>*** $_text{new} ***</font>":"")."<br>";
} foreach $rr (@{$_text{lib_list}}) { out "<b>$rr <hr size=1 width=92% align=left></b>"; foreach my $rrx (sort {$b<=>$a} @{$rubriken{$rr}}) { $rrx=~ s/^\d*#//; out $rrx; }
out "<br><br>"; }
} else { my $width=$_get{bId}; my $aender="";&dget("$_linkx&Id==$width", "/_bib_$_language/bib");$Downloads=" ($Downloads)" if $Downloads ne ""; out "<table cellspacing=0 cellpadding=0 border=0 width=90%><tr><td><font face=\"arial,helvetica\" size=2><a href=\"$_link&type=0&cmd=bib&bcmd=load\">$_text{back}</a></td><td><font face=\"arial,helvetica\" size=2><a href=\"$_link&type=0&dir=$_get{dir}&cmd=bib&bcmd=save&bId=$width\">$_text{copy_entry_dir}</a>$Downloads</td>$aender</tr></table>";
tout $Titel, ($_loop{"Version/Status"}?"$_text{version}: ".$_loop{"Version/Status"}:undef) ,2,"92%";my $awe=""; my $awelink=$Link; $awelink=~ s#^http://##;
$awelink="" if &wget("http://$awelink")=~ /angegebene Ausgabeseite existiert nicht/;$awe="<tr><td colspan=2 nowrap><font face=\"arial,helvetica\" size=2>WWW: <a href=\"http://$awelink\" target=\"_blank\">$awelink</a></td></tr>" if $awelink;my $aemail=""; $aemail="<tr><td><font face=\"arial,helvetica\" size=2>EMail: <a href=\"mailto:$EMail\">$EMail</a></td></tr>" if $EMail ne "";
my $oautor="$_text{author}: <b>$_loop{Autor}</b> ($UserId)";$oautor="$_text{author}: <b>$UserId</b>" if $Autor eq "" || $Autor eq $UserId; out "<table cellspacing=0 cellpadding=0 border=0 width=88%><tr><td><font face=\"arial,helvetica\" size=2>$oautor</td><td align=right><font face=\"arial,helvetica\" size=2>$_text{entry_on} "; out $_language eq "de" ? datum($Datum, "lang"):date($Datum, "long"); out "</td></tr>$aemail$awe</table>";my $ein=$Einleitung; $ein=~ s/\n+$//; out "<p>".convert_br($ein)."<p>";my $fp=$_loop{"Fehler/Probleme"}; $fp=~ s/\n+$//; out "<b>$_text{bugs_problems}:</b><br>",convert_br($fp) if $fp ne "";
my $erweit=$Erweiterungen; $erweit=~ s/\n+$//; out "<p><b>$_text{planned}:</b><br>",convert_br($erweit) if $erweit ne "";my $rest=$_loop{Name};$rest=~ s/\W//g;$rest="e$bId" if $rest eq "";if($_loop{Beschreibung} ne ""){ tout $_text{usage_include},undef,2,"92%";out convert_br($_loop{Beschreibung});
}undef @dircontent; undef @db; undef @as;$_=&wget("${_linkx}2&d=$rest"); @dircontent=split /\n/,$_; foreach (@dircontent) { push @db, $_ if $_=~ /\.fields$/; push @as, $_ if $_=~ /\.htx$/;
}if(@db){ tout $_text{databases},undef,2,"92%";$_get{raw}="yes"; foreach $f (sort {lc($a) cmp lc($b)} @db) { ($f2)=$f=~ /^(.*)\.fields$/;
my $cnt3=0;$_=&wget("${_linkx}2&f=$rest/$f2.rights"); ($cnt3)=split /\n/,$_,1; my $f2o=$f2; $f2o="<a href=\"/$_cgibin/baseportal.pl?db=/_bib_$_language/$rest/$f2\" target=\"_blank\">$f2</a>" if(($cnt3 & 20) == 20); out "<p><font size=4><b>$f2o</b></font><p>";$_su=1;&dget("$_linkx&db=$rest/$f", "/_bib_$_language/$rest/$f"); $_linkc=$_link; list "fieldlist", "/_bib_$_language/$rest/$f", 'Field=-Id', ''; undef $_su;
$x=&wget("${_linkx}2&f=$rest/$f2.txt1"); out "<p>$x"; }$_get{raw}="";}if(@as){ tout $_text{pages},undef,2,"92%"; foreach $f (sort {lc($a) cmp lc($b)} @as)
{ ($f2)=$f=~ /^(.*)\.htx$/;out "<p><font size=4><b><a href=\"http://$_server_home/cgi-bin/baseportal.pl?htx=/main&show=/_bib_$_language/$rest/$f2\" target=\"_blank\">$f2</a></b></font><p>";$x=&wget("${_linkx}2&f=$rest/$f2.txt2"); @x=split /\n/,$x; my $ca="<p><table width=90% cellpadding=10><tr><td bgcolor=$_color3><font size=3><code>"; my $ce="</code></td></tr></table>"; my $flag=0;
foreach $x (@x) {$x.="\n";$x=convert_html($x); if($x=~ s/^: //) { out $ca if $flag==0;$x=~ s/^( +)/" " x length($1)/ge;
$flag=1; } else { out $ce if $flag==1; $flag=0; } out convert_br($x); } out $ce if $flag==1; out "<br><br>";
}} }} elsif($bcmd eq "save"){
&dget("$_linkx&Id==$_get{bId}", "/_bib_$_language/bib"); my $edir=$_loop{Name}; $edir="e".$_get{bId} if $edir eq "";$x=&wget("${_linkx}2&d=$edir"); @dircontent=split /\n/,$x; foreach $f (@dircontent) { next if ($f eq '.' || $f eq '..' || $f=~ /\.txt\d?$/ || $f=~ /\.htx\.rights$/); if($f!~ /\./ || $f=~ /(.*)\.\d+$/)
{ my $fname=$1 || $f; unless($fname=~ /\.fields$/) {my $cnt3=0;if(open(FILE, "$uppercase$fname.rights")) { $cnt3=<FILE>; close FILE; }next if ($cnt3 & 20) != 20; } }
my $tf=$f; if($f=~ /(.*)\.rights_orig$/) { $tf="$1.rights"; }if(-e "$uppercase/$tf") { $p12.=sprintf($_text{error_copy_file}."<br>","$_bib/$edir/$f", "$uppercase/$tf")."<br>"; $r=0;} else { $r=&wget("${_linkx}2&f=$edir/$f", "$uppercase/$tf"); } } $cleart.="<p>$_text{lib_entry_copied}" unless $p12; $cmd="do_dir";}
} elsif($cmd eq "do_file") { $isel=$_text{manage}; $_helptopic="administration_directory";if($width eq "_files") {out $_text{files_in_htmldir}; } if($_get{Id} ne "") {
my $cnt3=0; if(open(FILE, "$uppercase/$width.rights")) { $cnt3=<FILE>; close FILE; } &getalldirs("", \@dirs); @dirs=sort {lc($a) cmp lc($b)} @dirs; unshift @dirs, "[HOME]"; if(@dirs>1) { tout "$_text{rename} / $_text{move}", undef, 2, "92%"; list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$width."','Name')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid"]; } else
{ tout $_text{rename}, undef, 2, "92%"; list "form", { _field=>[$_text{name}], _form=>["text(20,'".$width."')"] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid"]; }if($width ne "_files"){$:=qq{)``P.!)E!]:P_3??=S((U\$/=5R6J4#3(QR0\\,D*U<#7<!C4!Q#,E\$B(K424\@1#7<A26_)Q,37FX25T\$\$*"M5+Q0#/<QU,352]N0"]T<5*'UU,71"]S,#-95S(T8D+4134_)U,46T`3-4E5-DP%5%U251!&+E053S,%7<=D*ET43N<5(7QC7TL5*[%]<MH#7_};pipe; out "<ul><table width=80%><tr><td width=50%><font size=2 face=arial><b>x</b> <a href=\"$oldlink&Id=$width&type=0&cmd=del\" onclick=\"return confirm('".sprintf($_text{clear_directory_confirm}, $width)."')\">$_text{clear_directory}</a></td><td nowrap><font size=2 face=arial><b>xx</b> <a href=\"$oldlink&Id=$width&type=0&cmd=delall\" onclick=\"return confirm('".sprintf($_text{delete_directory_confirm}, $width)."')\">$_text{delete_complete_directory}</a></td></tr></table></ul><br><br>";
} }if($width ne "_files"){ tout $_text{archive}, undef, 2, "92%"; out "<ul> <b>}</b> <a href=\"$oldlink&Id=$width&type=0&cmd=archiv\">$_text{create_archive}</a><p>";
out "<br>$_text{archive_get_from}:</ul><p>";list "form", { _field=>[$_text{server}, $_text{user_name}, $_text{password}, $_text{archive}], _form=>["text(20,\"$_server_home\")","text(12)","password(12)","text(20)"] }, undef, undef, ["htx", "cmd=archiv", "bcmd=wget", "dir", "c", "type", "Id", "uid", "sid"];out "<p><br><ul><b>>></b> $_text{archive_upload}:</ul><p>";list "form", { _field=>["Datei=$_text{file}"], _form=>["rawfile"] }, undef, undef, ["htx", "cmd=archiv", "bcmd=archivup", "dir", "c", "type", "Id", "uid", "sid"];out"<br><br>";}
} else { $cmd="do_dir"; }} elsif($z_==1){$_helptopic="database_content";
my $nexttype=$width; $_get{rcmd}=$cmd; $cmd=$_get{db}?$_get{cmd}:""; $_db=$_get{db}=$dirid; $width=$dbid; $_link=$oldlink."&db=$nexttype&type=1&rcmd=$_get{rcmd}"; if($_get{rcmd} eq "file")
{ $isel=$_text{manage}; $coooo=$_get{$_text{path}}; $coooo="" if $coooo eq "[HOME]"; $asldfhadf="/" if $coooo; $xpath="$_data$_usldir$asldfhadf$coooo"; if($_get{cmd} eq "rights") { my $mydir=$_get{dir}; $mydir.="/" if $mydir ne "";
$r=&in_rights(["get", "mod", "put", "del", "other"], "/$_user/$_db.meta", "$uppercase$ccc.meta", $mydir); $msgv.=" - $_text{changed_rights}"; $msge.=$_text{changing_rights}; } elsif($_get{cmd} eq "begin" || $_get{cmd} eq "end") { $r=_mod_serial sub { $_{$_get{rcmd}}=$_get{$_get{rcmd}} }, ["/$_user/$_db.meta", "$uppercase$ccc.meta"]; $msgv.=" - $_text{changed_begin_end_block}"; $msge.=$_text{changing_begin_end_block}; } elsif($_get{cmd} eq "import")
{ local($trs, $trz, $trsn, $trzn); my($memt, $minsize); my(@entries, %put);$:=qq{)``P.B\\5;AME(\@\$]9\@0G<T1"(FE&(B<B(M0G<T1"([(R]?)U%W]B`2<E!"=R1'7\@86:\@<B(GT#=R1'7\@LS7?7W8FQV]G`2<E!B>R1'7\@86:_)\@(B;<7']BTC>R1'7\@LS7?9&;?="(Q5&(Z7'=D`B9I!B(RQE(MHG<T1"([<R]_)B1W]G`2<E!B>R1'7\@86:\@("=<72/Z7'=D`R.G\\E<CMU7\@\$]9\@HG<T1"(FE&(_)BX&]BTC>R1'7\@LC(\\7"(Q5&(S7'=D`B9I!B(\\Q%]BTS<R1'7\@LS7?7W8FQV]_)G`2<E!R<R1'7\@86:\@(B;<7']BTS<R1'7\@LS7?9&;?="(Q5&(S7'=D`B9I!B(_)RQE(M,G<T1"([<R]B1W]G`2<E!R<R1'7\@86:\@("=<72/S7'=D`R.G\\E<CMU7_)\@\$]9\@,G<T1"(FE&(BX&]BTS<R1'7\@L3?B0'>E1%(_E&(R5F;N5F<47R>T5V9_)?12/T7'=D`R.B("(Q5&(Z7'=D`B9I!2?BX69LE69:!B<EYF;E7'5BL'=E=V]_)DTC>R1'7\@L3?RPF>R1W>T5V9?12/Z7'=D`R.B("(Q5&(S7'=D`B9I!2?BX69_)TQ68P-%(R5F;N5F<47R>T5V9?12/S7'=D`R.M7#<S7'=[1]9GM%7M,G<T1"(_};pipe;open(IMPORT_FILE, "$_files_dir_up/$_get{Datei}") || error sprintf($_text{unable_open_read}, "$_files_dir_up/$_get{Datei}");init; lock or return error sprintf($_text{unable_lock},$_db);
if($_get{biu}){ $$_db{_id}=-1;opendir(DIR, $uppercase); @dircontent=readdir(DIR); closedir(DIR);foreach (@dircontent) { $_="/$_"; unlink $uppercase.$_ if /$ccc(\.\d+)?$/; }} else{
$$_db{_id}=""; get_id; $$_db{_id}--;}$_ms=$/; $/=$trz;
my @fields;my $fcnt=0;while(<IMPORT_FILE>){ chomp; s/\r$// if $trz eq "\n"; @entries=split $trs, $_; if($cnt++==0)
{ $/=$_ms; if($_get{fn1x}) { my(@f); my @addf=@entries; local $_; if(open(FFILE, "$_data$_usldir/$_db.fields")) { @f=<FFILE>; close FFILE;
} else { @f=("0|Id|1||get_id\n"); } shift @addf if($_get{fn2}); my $at="||text()||||#text#\n";
@addf=$_get{fn1}?map { "0|$_$at" } @addf:map { "0|Feld$_$at" } (1 .. @addf); push @f, splice @addf, @f-1 if(@f<=@addf); open(FFILE, ">$_data$_usldir/$_db.fields") || error sprintf($_text{unable_open_write},"$_data$_usldir/$_db.fields");
my $c=0; foreach (@f) { s/(\d+)\|/$c|/; $c++; print FFILE; } close FFILE; reorg "$_db.fields"; init;
} @fields=@{$$_db{_field}}; shift @fields unless $_get{fn2}; $_ms=$/; $/=$trz; next if $_get{fn1}; }
foreach (@entries) { if($trt eq "_qu_") { s/\\(.)/$1/g; } elsif($trt ne "_no_") { if(/^$trt/) { $memt=1; $_=substr($_, 1); } if(/$trt$/) { $memt=0; $_=substr($_, 0, -1); } s/$trt$trt/$trt/g;
} $minsize.=$_; if($memt) { $minsize.=$trs; } else { $put{$fields[$fcnt++]}[$put{_amount}]=$minsize;
$minsize=""; } } if($memt==0) { undef $_; $put{Id}[$put{_amount}]=get_id if(!$_get{fn2} || (!$_get{biu} && $put{Id}[$put{_amount}]<=$$_db{_id}));
if($put{_amount}++>$_maxrebuffer) { $/=$_ms; put \%put, $_db; undef %put; $_ms=$/; $/=$trz; } $minsize=""; $fcnt=0; }}if($memt==1){ undef $_; $put{Id}[$put{_amount}]=get_id if(!$_get{fn2} || (!$_get{biu} && $put{Id}[$put{_amount}]<=$$_db{_id}));
$put{_amount}++;}$/=$_ms;put \%put, $_db if(%put);close IMPORT_FILE;unlock;
unlink "$_files_dir_up/$_get{Datei}";$r=1; $msgv=$_text{imported}; } elsif($_get{cmd} eq "export") {
if($r=open(FILE, "$uppercase$ccc")){ local($trs, $trz, $trt, $trsn, $trzn, $filter); local($qtrs, $qtrz, $qtrt);$:=qq{)[(]9TQ6:F1"(PM&:C!2?\@L3?BD&7S1&;EEF9?1]9>)S7R>T5V9?1"(FE&(BPB(NTG(I1R<DQ69I9V]T5V<BL'=E=V]DTC+R5&=LEF9_)D`R>\@DR*KD&7\@L3?X%6;S1&;EEF9?1]9S_'=E=V]DP3:D`R.PT3:D`2>_AB<_)O9&([0G<T1"(A1]9_5&=O5]<M0G<T%'7[HG<T1"(A1]9_5&=O5]<MHG<T%'7_)[,G<T1"(A1]9_5&=O5]<M,G<T%'7[(R]_%V]B`2<E!"=R1'7\@86:\@(R7BT#=_)R1'7\@LC(?5]<?7"(Q5&(T7'=D`B9I!R7B<2/T7'=D`R.BX&]RQE(\@\$]9\@,G<_)T1"(FE&(GX&]RQU7MXV<R1'7\@LC(RQE(\@\$]9\@,G<T1"(FE&(G(']GTC;S7'=_)D`R.BX&]B`2<E!R<R1'7\@86:\@<B;<=2/N-G<T1"([,G<T12/N-G<T1"([(B;_)<7']B`2<E!B>R1'7\@86:\@<B;<7']GTC;Z7'=D`R.B(']B`2<E!B>R1'7\@86:_)\@<B<<=2/NIG<T1"([(B;<7"(Q5&(Z7'=D`B9I!R7NQU7MXF>R1'7\@LC>R1'7_)MXF>R1'7\@LS7?7W8FQV]G`2<E!B>R1'7\@86:\@(B;<7']BTC>R1'7\@LS7?9&;_)?="(Q5&(Z7'=D`B9I!B(RQE(MHG<T1"([<R]B1W]G`2<E!B>R1'7\@86:\@("=_)<72/Z7'=D`R.G\\E<CMU7\@\$]9\@HG<T1"(FE&(BX&]BTC>R1'7\@LS7?7W8FQV]_)G`2<E!R<R1'7\@86:\@(B;<7']BTS<R1'7\@LS7?9&;?="(Q5&(S7'=D`B9I!B(_)RQE(M,G<T1"([<R]B1W]G`2<E!R<R1'7\@86:\@("=<72/S7'=D`R.G\\E<CMU7_)\@\$]9\@,G<T1"(FE&(BX&]BTS<R1'7\@L3?B0'>E1%(_E&(R5F;N5F<47R>T5V9_)?12/T7'=D`R.B("(Q5&(Z7'=D`B9I!2?BX69LE69:!B<EYF;E7'5BL'=E=V]_)DTC>R1'7\@L3?RPF>R1W>T5V9?12/Z7'=D`R.B("(Q5&(S7'=D`B9I!2?BX69_)TQ68P-%(R5F;N5F<47R>T5V9?12/S7'=D`R.M7#<S7'=[1]9GM%7M,G<T1"(_};pipe; init $width; lock $width or return error sprintf($_text{unable_lock},$width); get "$_get{Sortierung}==*".($_get{"Reihenfolge umkehren"}?"&sort=-":""), $width;
print "Content-Disposition: filename=$_get{db}.csv\nContent-type: text/comma-separated-values\n\n"; $_header=""; if($_get{fn1}) { my @head; foreach (@{$$_db{_field}}) { push @head, $_ unless index(",$filter,",",$_,")<0; }
foreach (@head) { if($trt eq "_qu_") { s/($qtrs)/\\$1/g unless $trsn; s/($qtrz)/\\$1/g unless $trzn; s/($qtrt)/\\$1/g; } elsif($trt ne "_no_" && /$qtrs|$qtrz|$qtrt/) { s/$qtrt/$trt$trt/g; $_="$trt$_$trt";
} s/$qtrs/$trsn/g if $trsn; s/$qtrz/$trzn/g if $trzn; }; print join $trs, @head; print $trz; } loop $_db, sub {
foreach (@_loop) { if($trt eq "_qu_") { s/($qtrs)/\\$1/g unless $trsn; s/($qtrz)/\\$1/g unless $trzn; s/($qtrt)/\\$1/g; } elsif($trt ne "_no_" && /$qtrs|$qtrz|$qtrt/) { s/$qtrt/$trt$trt/g; $_="$trt$_$trt";
} s/$qtrs/$trsn/g if $trsn; s/$qtrz/$trzn/g if $trzn; }; print join $trs, @_loop; print $trz; }, undef, undef, undef, undef, $filter, ''; unlock $width; &direct_exit();
} } elsif($_get{cmd} eq "backup") { } elsif($_get{cmd} eq "reorg" || $_get{cmd} eq "reorgV2") { if($_get{cmd} eq "reorg") { $r=_mod_serial sub { $_{version}=$_version_global }, ["/$_user/$_db.meta", "$uppercase$ccc.meta"]; } else {
$r=_mod_serial sub { delete $_{version} }, ["/$_user/$_db.meta", "$uppercase$ccc.meta"]; } reorg $_db; $msgv=$_text{reorganized}; $msge=$_text{reorganizing}; $r=1; } elsif($_get{cmd} eq "clear" || $_get{cmd} eq "del") { # *** database file del **********input
$:=qq{)[4&<I!W.MMU-C\@43\\T57;I2-?Q2-#%T+T0#.;5C,DPE4O454D)\@-S(LDU*B4T/W0#.;%3-DPE5N0\$.1!C0?-R*U\@#6Q4"0<75*?Y2-L44-#%D,_)_(#.<Q%-C0S1_454\@-#7<AS6R437FX25U4#,3%%7<A37HX5]DP5(DP%-#%E+_)S(#.9%C(T8\$+EP%]7ER]R8"82Y2-<Q51Q,T]E0S,XH5,#1"]"I"7<!\$]?UR0_)!52+5QS6Q(47RL"1HPT-35\$+_,#.:%31%7C+DP%+?=S0M42*?_2-4A%,3U3/_)N4#8!UU,51"]J("*(UE4%52-R\@"2Q,\$0<7D*DP%*(UU,!5"-U\@#6P8\$82M"7_)<130L,43DP5-U\@#6I\\E-352/N03/_<S,MP#,C`\$]6Y211!6-C\@R2R0%7<94+_)4150L,43\\`37P<D*E\\%7<Q215MC*T<3-_,41\nP2-H85*?-3-DPE5N03,_4S,_)97"+UD3/Q,"8"I"1054,#557H4#*.-3-U4B+EP%]5UR0?1"]S,"-NQ5,E0"]_)6Y"-\$E5-%5U.I\\5+2A36O,%7<74+5Q%]79S4DPE4K,%]<%%*"%T.H,#**1S4_)DPE1N05-E\$S0%Q2+R\@36X0"]DPE0J0"]W43+#5T/L(#*(ER]R("56Y"7<1S5_)U,U]F\@2-HX5]DP5(DP%*#5%._0#.;MR4ETC+UP%]7%#5DPE4N034E<S07U%*_)U\@B3P0\$0<7U*41%4I\\5+#=C(X("*-%S,49D*EP40L(42SPB,XL5,T4C7N0#4_)5=S0%!\$]P0#*97C,E(S*\$=#,_,41DP5+2A"2=751QDR]_(#.(-S,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T5(%Y"4\@!6*[%]<MH#7_};pipe; if($_get{cmd} eq "clear") { $$_db{_amount_all}=$$_db{_amount_query}=$$_db{_amount}=0; $msgv=$_text{cleared}; $msge=$_text{clearing};
} else { undef %$_db; $msgv=$_text{deleted}; $msge=$_text{deleting}; $cmd="do_dir"; $r=1; } } else { # *** database file copy **********input
if($_get{Copy}) { $msgv=$_text{copied}; $msge=$_text{copying_error}; if($uppercase.$ccc eq $xpath.$rest) { $r=0; $p12=$_text{error_source_eq_target}; } else {$:=qq{)`L39PE&<[TW]W,"2-Q3]ELE*V\$"+H(55])S\\"7<Q"3T43,CL"5?%R-#U#/P,"0<9E+%%%8=7",3_251QS*U\@#6R,%7<7D*_)EP\$2I\\U-3U#/P,"0<9E+%%%8S4"**7#5DPE1_0%+7-C,E(S*\$QT]U,T]L8S,_)XT4]DP5(T<C4!_C*C\@26=75-FX"5U\$3*?UR079"+R\@23T,5-F\\"7<%#/P("._)-!C,DPU1O0\$,(AB0!QB*C\@26=75-FX"5U\$3+#ET/J0#.11S0!-R*R\@S5I\\5,_)R45/N0"]L<5]S4\$,H4#5-%C(`QE0J4"1!5S4?-R,R0#2V(%7<7E*%U2.U,T]_)DP%+S\@#6X0"]DPE0J0"]U43+#%D+I\\5+R\@S6R,#1&U25<Q52=1"]AP#,E\@#6_)P,3-F\\"7<Q%]9=C0!_C*E\@B6P0%5&Y"58A\$*"%\$+J,"*85S(T8E+4A%2I\\%*_)"%\$+J4"*<Q5-DP57VX"-\$=5,2ME(X("*+!3101\$,2MU,L(#.;UE4%52,T\@36_)S(\$0<7D*DP%4(AB01YR*BP36I\\U,C0C5N04.Y`C0!Q#,E\$B(J4"+1=S0?52,_)T\@36S(\$0<7D*DP%4(!C0!Q#,E\$B,O0"]9UR-#5\$7<=C,X`5]DP%80ER]Q,51_)\nH"-%%2-#%E+_(#/(-C,E(S*\$1\$3H(50F\@S(WT#,%1C5N4#]<%%-#E3+L0#/_)<QU,255]=5#3]=S0\$Y&]I\\%+R\@R5R,"0<9E+%%%8J0"]H\@5]31C5N05,X`C0_)!MC*U\$%8T4"*<QU,\$1E1N0#,%=S0AP#,E\$%8U,44U\@B,\\\@4*?9C4DPE4J045_)U<S4%Q2+S\@C6Q045U\\"1H\$5-%5%7<Q27HX%,3!F0J0"]9A#*"%\$,=1"]\@7D*_)DPU-UTR0%MC*UP%]1ER]H(40HLR,X\@5,ST3]N0%.!1C09=C*B\@36O,%7<7D*_)45U/U,40O03-YT3,U4B7N0"]ED3+#5U.L(#/>%S,ET5*?U%-QP#,DP%*9537_)\$9E+%A20U,54\nH2-1!F*EPS6T,4/MX2-1!F-DP%.<Q5-S42/N4#*!!S01M"*_)U\@B6P0%5&ER]N454\@-C(LTD,U0D5N444\@-S(LH\$,%1C5N4#]<%%*"%\$+K0"]_)\\LU,31"]&Y"-DP50=7",*UE4%E3-R\@#2V(%7<75*?Y2-_\$3+#5\$/P4",'I27_)?!\$]L(53RPB,H\@D-5%3]O4",?UU,7A3+UD3/U,2-VX2-H4T-#1E;<U25\\L%-_)#U3/I\\E+UP44W,56EP2-MT3]25\$7<5#7<Q"3T8#8'U251!V,BP#2R(#0<7E+_)UP%]%%S0?5"-S\@C6Q,\$7<7T+UP25Q,44DP5*%U%7<!F1O0#7<%T-3E%7<IB(_)H\@4,U0C0J04.E<C0!_3]B`S4K4%*1AB0!MS/S\\%4ZT5(%Y"4\@!6*[%]<MH#7_};pipe; }
} else { $r=1; if($xpath ne $uppercase) { $msgv=$_text{moved}; $msge=$_text{moving_error}; } elsif($ccc ne $rest) {
$msgv=$_text{renamed}; $msge=$_text{renaming_error}; } else { $msge=$_text{moving_error}; $r=0; $p12=$_text{error_source_eq_target}; } if($msgv) { if(-e "$xpath$rest$filename") { $p12=$_text{error_target_exists}; $r=0; } else
{ my @addons; init; lock or return error sprintf($_text{unable_lock},$_db); foreach $memb (0 .. $#{$$_db{_field}})
{ push @addons, ".$memb" if($$_db{_sort}[$memb] & 3); } unshift @addons, "", ".fields", ".fields.0", ".fields.1", ".rights", ".meta", ".lock"; foreach $filename (@addons)
{ rename $uppercase.$ccc.$filename, $xpath.$rest.$filename; } unlock; } } } $_get{dir}=$udir=$coooo; $uppercase=$xpath; $ccc=$rest; $_db=$nexttype=$_get{Name};
} $_link=$oldlink2; $_link.="&dir=$_get{dir}" if $_get{dir}; $oldlink=$_link; $_linkb="$_link&Id=$_db&type=$z_"; $_get{rcmd}="do_file" unless $cmd eq "do_dir";
if($_get{cmd} eq "backuptime" || $_get{cmd} eq "rights" || $_get{cmd} eq "begin" || $_get{cmd} eq "end" || $_get{cmd} eq "clear" || $_get{cmd} eq "import" || $_get{cmd} eq "backup" || $_get{cmd} eq "reorg" || $_get{cmd} eq "reorgV2") { $_get{rcmd}="do_file"; $rest=$ccc; } elsif($_get{cmd} ne "del") { }$_linkb="$_link&Id=".substr($rest,1)."&type=$z_";
} if($_get{rcmd} eq "do_file") {$isel=$_text{manage};$_get{db}=$db=$nexttype; my $cnt3=0;&O9("/$_get{dir}/$nexttype", 1,0,$oldlink2);
&getalldirs("", \@dirs); @dirs=sort {lc($a) cmp lc($b)} @dirs; unshift @dirs, "[HOME]";if(@dirs>1){$:=qq{)``P.B4B,Y("(L(#(*)L869DY6=\@PB(M5F=OUV>TA]9TM%7\@\\"(M56;AY69R_'=X5&=?1B(\@0]=O1'(_};pipe; list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$db."','Name')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "rcmd=file", "dir", "c", "type", "db", "uid", "sid"];} else{$:=qq{)`LC(E(3.B`"+R`"+F5&9N5'(LT]9_%F;E7W>TA]9TM%7\@0]=O1'(F};pipe; list "form", { _field=>["Name"], _form=>["text(20,'".$nexttype."')"] }, undef, undef, ["htx", "rcmd=file", "dir", "c", "type", "db", "uid", "sid"];}
$:=qq{)`LC(E(3.B`"+R`"+F5&9N5'(LT]>PMV8[1'>E1W]D`"=UM&=C};pipe;$:=qq{)``P.E!]:P_3??=S((U\$/=5R6J83(`Q%+6)CT\$/P0"]0-T*DP55`Q5-3E4(_0#.<Q%,\$151_454\@-#7<Q"2=9\$8'_258A4-_)"M%/=5"0<75*?M25DP%4_,41HLR,X\@U+2547_45/M4#7<1C5N051Q4S091#,_)U056U0"]454+41U]=-31S<#-X\@%,S42/N0"]Q\\3*?=S45A3+R\@33O,%7<7U+_)51"]0UR0%AR*S\@#6Q,3/=U5-Q42+#MU/J031Q4S091#,U056U0"]454+5A%2_)W(43^DR]X("//!C1\@7T+U43+W(40[\@R,HH\$-S\$D,N0"]_\\S-#U#*N,".:U%7_)<%"+L(54_\@37\\H%,S4C7O0"]WTR-STS/I<R/S\\%4ZT5(%Y"4\@!6*[%]<MH#7_};pipe;if($_breakp) {if(@dirs>1){ list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$db."_".$_text{Copy}."')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "rcmd=file", "dir", "c", "type", "db", "uid", "sid", "Copy=1"];} else{ list "form", { _field=>[$_text{name}], _form=>["text(20,'".$db."_".$_text{Copy}."')"] }, undef, undef, ["htx", "rcmd=file", "dir", "c", "type", "db", "uid", "sid", "Copy=1"];}}
$:=qq{)`LC(^(G8\\X#;UM"/M1G<O!];IM%=X5&=[1'>E1W]DX#;\@)UQC(\@0]=O_C(E(3.B`"+R`"+F5&9N5'(LT'=RM&<_EV>TA]9TM%7\@0]=O1'(_};pipe; list "form", { _field=>["Datei=$_text{file}", "Trenner Spalten=$_text{separator_columns}", "trsp2=$_text{or}", "Trenner Zeilen=$_text{separator_rows}", "trzl2=$_text{or}", "Trenner im Text=$_text{separator_text}","fn1=$_text{first_row_fields}", "fn1x=$_text{create_undefined_fields}", "fn2=$_text{first_column_ids}", "Bestehenden Inhalt überschreiben=$_text{overwrite_existing_content}"], _form=> [ "rawfile", '$_set="nobreak";option(["$_text{semicolon} (;)","$_text{comma} (,)",$_text{tab},$_text{return},$_text{linefeed},"$_text{linefeed}+$_text{return}","$_text{pipe} (|)","$_text{colon} (:)","$_text{dash} (-)", "$_text{number_sign} (#)"],1,[";",",","_tb_","_cr_","_lf_","_lfcr_","|",":","-","#"])',"text(3)",
'$_set="nobreak";option([$_text{return},$_text{linefeed},"$_text{linefeed}+$_text{return}",$_text{tab},"$_text{semicolon} (;)","$_text{comma} (,)","$_text{pipe} (|)","$_text{colon} (:)","$_text{dash} (-)", "$_text{number_sign} (#)"],1,["_cr_","_lf_","_lfcr_","_tb_",";",",","|",":","-","#"])',"text(3)",
'option([$_text{quotation_mark_identify},$_text{ampersand_identify},$_text{backslash_escape},$_text{none}],1,["_qu_","_am_","_bs_","_no_"])',
'$_set="nobreak"; checkbox', 'checkbox(1)', '$_set="nobreak"; "<input type=\"checkbox\" name=\"fn2=\" value=1 onclick=\"if(this.checked) return alert(\'$_text{text_double_ids}\')\">"', '"<input type=\"checkbox\" name=\"biu=\" value=1 onclick=\"if(this.checked) return confirm(\'$_text{text_overwrite_existing_content}\')\">"' ] }, undef, undef, ["htx", "rcmd=file", "cmd=import", "dir", "c", "type", "db", "uid", "sid"];if(-e "$_data$_usldir$usldir/$db.fields"){local(@sfields, $cfields); $db=$udir.($udir?"/":"").$db;
init $db; my $memb; for($memb=0; $memb<@{$$db{_field}}; $memb++) { $fname=$$db{_field}[$memb]; push @sfields,$fname if($$db{_sort}[$memb]); $cfields.="<input type=checkbox name=\"set_fields$memb=\" value=\"$fname\"".($fname eq "Id"?"":" checked")."> $fname "; } $cfields.="<input type=hidden name=\"set_fieldsmax=\" value=\"$memb\">";
$:=qq{)`LC(E(3.B`"+R`"+F5&9N5'(LT'=RM&<X5V>TA]9TM%7\@0]=O1'(F};pipe; list "form", { _field=>["Trenner Spalten=$_text{separator_columns}", "trsp2=$_text{or}", "Trenner Zeilen=$_text{separator_rows}", "trzl2=$_text{or}","Trenner im Text=$_text{separator_text}","fn1=$_text{first_row_fieldnames}", "Sortierung=$_text{sorting}", "Reihenfolge umkehren=$_text{reverse_order}", "Felder zum Export=$_text{export_fields}"], _form=> [ '$_set="nobreak";option(["$_text{semicolon} (;)","$_text{comma} (,)",$_text{tab},$_text{return},$_text{linefeed},"$_text{linefeed}+$_text{return}","$_text{pipe} (|)","$_text{colon} (:)","$_text{dash} (-)", "$_text{number_sign} (#)"],1,[";",",","_tb_","_cr_","_lf_","_lfcr_","|",":","-","#"])',"text(3)",
'$_set="nobreak";option([$_text{return},$_text{linefeed},"$_text{linefeed}+$_text{return}",$_text{tab},"$_text{semicolon} (;)","$_text{comma} (,)","$_text{pipe} (|)","$_text{colon} (:)","$_text{dash} (-)", "$_text{number_sign} (#)"],1,["_cr_","_lf_","_lfcr_","_tb_",";",",","|",":","-","#"])',"text(3)",
'option([$_text{quotation_mark_identify},$_text{ampersand_identify},$_text{backslash_escape},$_text{none}],1,["_qu_","_am_","_bs_","_no_"])', "checkbox", '$_set="nobreak"; option(\\@sfields)',
"checkbox", '$cfields' ] }, undef, undef, ["htx", "rcmd=file", "cmd=export", "dir", "c", "type", "db=$nexttype", "uid", "sid"];}
tout $_text{reorganize}, undef, 2, "92%";out "<ul><table width=86%><tr><td>$_text{reorg_text}.<p><b>#</b> <a href=\"$oldlink&db=$nexttype&xName=$nexttype&type=1&rcmd=file&cmd=reorg\" onclick=\"return confirm('".sprintf($_text{reorg_confirm}, $_db)."')\">$_text{reorg_database}</a><br><br></td></tr></table></ul>";
tout $_text{delete_database}, undef, 2, "92%";out "<ul><table width=100%><tr><td><font size=2 face=arial><b>x</b> <a href=\"$oldlink&db=$nexttype&type=1&rcmd=file&cmd=clear\" onclick=\"return confirm('".sprintf($_text{clear_database_confirm},$_db)."')\">$_text{clear_database}</a></td><td><font size=2 face=arial><b>xx</b> <a href=\"$oldlink&db=$nexttype&type=1&rcmd=file&cmd=del\" onclick=\"return confirm('".sprintf($_text{delete_database_confirm},$_db)."')\">$_text{delete_complete_database}</a></td></tr></table></ul><br><br>";
tout "$_text{begin_block} / $_text{end_block}", undef, 2, "92%"; &out_begin_end("/$_user/$_get{dir}/$nexttype", 0, $_text{database}, $nexttype); } elsif($_get{rcmd} eq "do_mod" || $_get{rcmd} eq "do_add") { $isel=$cnt3 eq "regi"?$_text{database}:$_text{fields};$_helptopic="fields_database";
$_link.="&tdir=$_get{tdir}" if $_get{tdir}; if(-e "$_data$_usldir/$_db.fields.reorgf") { reorg $_db; } elsif(($cmd eq "mod" || $cmd eq "add") && $_put{$_text{field_name}}=~ /^(|Id|_id)$/) { $p12=$_text{$1 eq ""?"empty_fieldname":"invalid_fieldname"}; $cmd="do_mod" if $cmd eq "mod";
} elsif($cmd eq "del" || $cmd eq "mod" || $cmd eq "add") { my(@f, $pos, $put, @put, $rdel, $radd, $rmod)=undef; if(open(FILE, "$_data$_usldir/$_db.fields")) { @f=<FILE>; close FILE; } else {
@f=("0|Id|1||get_id\n");$:=qq{)`L39PE&<[TW]W,"2+)-Q3]ELE*V\$"-U(56K,37HHE,C4B,O0\$-?=S4?52-UPC3T4",3M25QD3+#5U+_)U,#.89S4ETS+U\$2+I\\U-STS.Q(#*?1S41-R*E4"-P(53K`C,X<E,C`\$]6Y"1_)0ED-3%#/W,"+]Y2-01D*DP%-?5S4?QR*U\@C3U8"82ER]L(34E\$S(EP#,C\$R7_)N0%1]=S41_3,DP%*(1S4DPU1N04/E\$S01YB*B\@36O,57RH25W4R-#5\$+K4#5_)-UE4\$Y&]I\\%+S\@"6U("-&YR,<Q54P(43B\@C(HLT-U0"]4QB0Y\$",#M57H4#/_);9C4!7B*DP55T<S457"+U\@C]U,2-VXR,<Q54I\\%+#U4+=-%+1_"7<5#7<Q2-_)1!6+E\@#]<UE4%M"-U\@#6=1"]AP",2%D/T,".;5#7<5B-J454\\8S(LX5,DP55_)FX"7<U\$,I\\%,3Q\$]<9C,YT3]%!F1N057U`S4?M2,R\@33P(%-&I"7<Q%]1=C0_)-Y"-T0S6O421CX2-<Q52Q,41FX"-XD5+"UD,I\\U,R\@S6S(55VX"-H\$\$+#E%7_)<-#-X\@5]E\$%.H,51ATB,XHU,5%R(N,54YPR4%Q"+U0E6U0"]47T*4155U,44_)ADR]_,%.85C(T8D+UP%]79S4DPU1O0\$-153551"]X("*;!S,E<R+DP%]<%4]_)S4T,W0#.8UU0P8D+5%37W,45\\T57`QE1I\\5]U\@%4_,40E`C,X\\4]%!F5N45,_)A<C0-7".C\@24K0"]U0"]L4#]<E4]DP%80%S4?=3+2Q#]<U%7<%"+L(52BT%7_)<!V1I\\U+T\$4.P,40DPU,R0S5S(50MX"1Q\$3-#%5-S(#-]!S,ETC+DP5,_<S,_)MXC*B\@"2S,2,\\<S(L<E+U`%1J0\$65ER]W,44\nH"-<Q50T(46K,#7<AR6T,"7_)<7D*EP40L(42UTR(LPD-U\$R(N4%81AB0792,U\@C]R(30RH"1W`\$]L,44EDR._)H,#*NQ5-CPC1N4#31UU,%=R,R0S5R,"0<9E+%U43N<5(7QC7TL5*[%]<MH#7_};pipe; } $pos=$_put{Id}; $pos=@f unless $pos=~ /^\d+$/; if($_put{_amount}>0) {my($params, $smallx, $usercnt, $optype, $what, $fid, $cx);
local(%_loop);$smallx=$_get{ttype};$usercnt=$_get{tdir}; $optype="/$usercnt" if $usercnt;init "/_types_$_language$_version_types$optype/$smallx",4;foreach (@{$$_db{_field}}){ $cx=$_put{$_}; $cx=convert_quote($cx) if($smallx ne "Code" && $_ ne "Transform"); $_loop{$_}=$cx;
$$_=$cx unless($_=~ /\W/ || $_ eq "" || $_=~ /^[0-9]/);}@put=($pos, $_put{Field} || $_put{$_text{field_name}});$Feldname=$_put{$_text{field_name}};$fid=$$_db{_fnr}{Transform};if(defined $fid)
{ local $_path=$_get{dir}; foreach $what ("_sort", "_form", "_put", "_get", "_javascript", "_sel", "_del", "_mod") { $@=""; push @put, $x=eval($$_db{$what}[$fid]); out "[$_text{error}: ($what) $@]<br>" if $@; }} else
{ push @put, undef, undef, undef, undef, undef, undef, undef;}foreach (@{$$_db{_field}}){ $cx=$_put{$_}; unless($_ eq "Field" || $_ eq $_text{field_name} || $_ eq "Id" || $_ eq "Transform") { my $ncx=$cx; $ncx=~ s/\\/\\s/g; $ncx=~ s/#/\\k/g;
$params.="$ncx#";
}}$params=~ s/#+$//;
splice(@put, 7, 0, "$usercnt#$smallx#$params");
$_db=$dirid;
foreach (@put) { s/\\/\\s/g; s/\|/\\p/g; s/�/\\�/g; s/\n/\\n/g; } $put=join("|", @put)."\n"; } elsif($cmd ne "del")
{ return; } if($cmd eq "mod" && $width==$pos && $width ne "" && $put ne "") { $f[$width]=$put; $rmod=$width; $width=$put=""; }
if(($cmd eq "del" || $cmd eq "mod") && $width ne "") { splice(@f, $width, 1); $rdel=$width; } if(($cmd eq "add" || $cmd eq "mod") && $put ne "") { splice(@f, $pos, 0, $put); if($pos<$#f || $cmd eq "mod")
{
$radd=$pos; } elsif($put[2]) { open(FILE, ">$_data$_usldir/$_db.$pos"); print FILE "\0" x (-s "$_data$_usldir/$_db.0"); close FILE; } } out "<b>$_text{field_deleted}...</b><p>" if $cmd eq "del"; out "<b>$_text{field_modified}...</b><p>" if $cmd eq "mod";
out "<b>$_text{field_added}...</b><p>" if $cmd eq "add"; if(@f>1) { my $tbk=(-e "$_data$_usldir/$_db" && (defined $rdel || defined $radd || defined $rmod))?".tbk":""; open(FILE, ">$_data$_usldir/$_db.fields$tbk") || error sprintf($_text{unable_open_write}, "$_data$_usldir/$_db.fields$tbk"); my $c=0; foreach (@f) { s/(\d+)\|/$c|/; $c++;
print FILE; } close FILE; reorg "$_db.fields$tbk"; if($tbk) { open(FILE, ">$_data$_usldir/$_db.fields.reorgf") || error sprintf($_text{unable_open_write}, "$_data$_adir/$_db.fields.reorgf"); print FILE "$rdel#$radd#$rmod"; close FILE;
reorg $_db;
} } else { unlink "$_data$_adir/$_db"; unlink "$_data$_adir$_db.0";
unlink "$_data$_adir$_db.1"; } }$_get{cmd}="" unless $_get{cmd} eq "in_applics";
$_db.=".fields"; $_get{db}=$_db; $cmd=$cmd eq "do_mod"?"mod":"add" unless $cmd eq "do_modx"; if(-e "$_data$_usldir/$_db") { get;
$_link.="&mode=$cnt3" if $cnt3 ne "";$_link.="&ttype=$_get{ttype}" if $_get{ttype} ne "";$_link.="&tdir=$_get{tdir}" if $_get{tdir} ne "";$_link.="&cmd=$_get{cmd}" if $_get{cmd} ne "";$_linkc=$_link;local $_get{maxlistlength}=100; unless(list "fieldlist", undef, 'Field=-Id', '') {$:=qq{)``P.E!]:P_3??=S((U\$/=5R6J83(L`C4!Y3,E\@S2<)=524DP%+#U\$7<9S,XTT,35D-=5#+5UR077#+TPS6Q035UX"59MS-35%.IL3+_)R\@33O,%7<7D*%E%7<=C0-7".B\@23U0#5&I"7<543N<5(7QC7TL5*[%]<MH#7_};pipe; }
} else { init; } undef @_maxids; for (1 .. ($$_db{_amount}-1)) { push @_maxids, $_; } push @_maxids, $_text{new} if(!defined $width || $cmd eq "add");
if($_get{rcmd} eq "do_add" && $_get{cmd} ne "in_applics" && $_get{ttype} eq "") { &rev_sort(); } else { my(@typedirs, @types, $usercnt, $optype, $smallx); local @_values; $usercnt=$_get{tdir}; $smallx=$_get{ttype};
my $fcmd; if(defined $width && ($cmd eq "mod" || $cmd eq "do_modx")) { get "Id==".$width; $fcmd=":=_"; tout $_text{modify_field}, "<a href=\"$_link&cmd=do_add\">$_text{add_new_field}</a>", 2; @_values=split "#",$$_db{Params}[0];
$tdirx=shift @_values;
$wins=shift @_values; splice(@_values, 5, 1) if $wins eq "Code"; map { s/\\k/#/g; s/\\s/\\/g; } @_values;
if($cmd ne "do_modx"){ $usercnt=$tdirx; $smallx=$wins;} $_link.="&cmd=do_modx&Id=$width&ttype=$smallx";
} else {$:=qq{)[(27RDC(\@PB,\@PB9E1F;U!"+M1&;EEF9?=]9NM%9D%V>TA]9TM%7\@0]=O1'(_};pipe; }@types= qw(text textarea checkbox radio option hidden);$smallx=$types[0] if $smallx eq "";
$_link.="&dbt=$_get{dbt}" if $_get{dbt};out do_menu("$_link&ttype", \@types, $smallx, undef, undef, undef, undef, "HTML:");@types= ($_text{number}, $_text{email}, $_text{link}, $_text{date}, $_text{file}, $_text{relation},$_text{webedit},$_text{protect});push @types, "Code", "Trenner", "Nutzer", "Text", "Auswahl" if $_user eq "_types_de3";out do_menu("$_link&ttype", \@types, $smallx, undef, undef, undef, undef, "$_text{general}:");if(defined $width && $cmd eq "mod" || $cmd eq "do_modx")
{ unshift @_values, $width, $$_db{Field}[0];}if(defined $width && $cmd eq "do_modx"){ @_values=($width, $$_db{Field}[0]) if $smallx ne $wins; $cmd="mod";}
$yy=$smallx; $yy=~ s/\.fields$//;init "/_types_$_language$_version_types$optype/$yy",4 if $yy ne ""; list "fform2", undef, undef, '', ["htx", "dir", "c", "db=$nexttype", "type", "cmd=$cmd", "rcmd".($_get{rcmd} eq "do_add"?"=do_mod":""), "uid", "sid", "Id=$width", "mode", "ttype=$smallx", "tdir=$usercnt", "dbt"];
} $_db=$nexttype; if($cnt3 eq "regi" && $_get{rcmd} ne "do_add") {
out form("htx", "mode", "c", "uid", "sid", "cmd=do_add", "type=2");my $sfsa=""; $sfsa="<font size=1 face=arial><a href=\"$_myname?htx=/main&uid=$_user&sid=$_session\">$_text{step_for_step}</a>" if $_get{_easystart} eq "" && $cnt3 eq "regi";out "</ul><center><br><table cellspacing=2 width=92% cellpadding=4 border=0><tr bgcolor=$_color2><td><font face=arial,helvetica size=3> <b>$_text{next_step_design}</b></td><td align=right nowrap>$sfsa</td></tr><tr><td colspan=2>$_text{next_step_design_text}</td></tr></table>" if $_get{_easystart} eq "" || $_get{_easystart}>7; } } elsif($_get{rcmd} eq "") {$isel=$_text{content};
out $_text{back_to_related_database} if $_get{relation} eq "on";
$width=substr($_db, rindex($_db, "/")+1);if(index($_db, "/")==0){ $_link=$oldlink2; $_link.="&dir=$_get{dir}" if $_get{dir}; $_linkb="$_link&Id=$width&type=1"; $_link.="&db=$width&type=1";} else
{ $_path=$_get{dir};}$_db=$_get{db}=$nexttype=$width; undef $_su; xeval 'do_all("listfields=#7 allfields=#100 maxlistlength=100 convert_html=* buttonbrowse=top searchquery=bottom", "uid", "sid", "dir", "c", "db='.$nexttype.'", "type")';
}
$width=$nexttype;} elsif($z_==2){ if($cmd eq "do_add" || $cmd eq "do_templ") {
&P6($width); $isel=$cnt3 eq "regi"?$_text{design}:$_text{templates}; } elsif($cmd eq "do_options" || $cmd eq "in_options") { &N1($width) if $cmd eq "in_options"; out &get2($dirid); $isel=$_text{settings}; } else { my $xt;
$_helptopic="edit_page"; $isel=$_text{design}; if(($cmd eq "add" || $cmd eq "mod") && $_post ne "") { $xt=&in_code($ccc);
} elsif($cmd eq "del") { $r=unlink "$uppercase$ccc.htx"; local $rr=$r;$:=qq{)``P.E!]:\$)P_3??=S((U\$/=5R6J4#34=S01=#*UPC3S,3-TL"-_P#,C`S4=524TTR,\\LE,_)T\@R]P83(\\<3751C*C\@B5N(21RDR]U0"]H05]E`%]<U2-51"]T("-8Y27U(#+_)CT3,H(54E\@#7<Q"5R,\$8%UB0DP53T,5,\\T571Q3-RTT,=5"4%U27713*[TB,_)`Q51V(#*4U%7<!60_(42[<3-4Q%]S0#0<-4+5U43N<5(7QC7TL5*[%]<MH#7_};pipe; unlink "$uppercase$ccc.tmpl"; unlink "$uppercase$ccc.htx.rights"; unlink "$uppercase$ccc.htx.meta"; $msgv=$_text{deleted}; $msge=$_text{deleting}; $cmd="do_dir"; } if($cmd eq "file")
{ $isel=$_text{manage}; $coooo=$_get{$_text{path}}; $coooo="" if $coooo eq "[HOME]"; $asldfhadf="/" if $coooo; $xpath="$_data$_usldir$asldfhadf$coooo"; if($_get{rcmd} eq "rights") { my $mydir=$_get{dir}; $mydir.="/" if $mydir ne "";
$r=&in_rights(["run", "get", "other", "own"], "/$_user$usldir$ccc.meta", "$uppercase$ccc.htx.meta", $mydir); $msgv.=" - $_text{changed_rights}"; $msge.=$_text{changing_rights}; } elsif($_get{rcmd} eq "begin" || $_get{rcmd} eq "end") { # *** template end-block **********input
$r=_mod_serial sub { $_{$_get{rcmd}}=$_get{$_get{rcmd}} }, ["/$_user$usldir$ccc.htx.meta", "$uppercase$ccc.htx.meta"]; $msgv.=" - $_text{changed_begin_end_block}"; $msge.=$_text{changing_begin_end_block}; } else {
if($_get{Copy}) { $msgv=$_text{copied}; $msge=$_text{copying}; if($uppercase.$ccc eq $xpath.$rest) { $r=0; } else { $_ms=$/; undef $/; if($r=open(FILE, "$uppercase$ccc$filename")) {
$xt=<FILE>; close FILE; if($r=open(FILE, ">$xpath$rest$filename")) {return error $poke2e if($poke2&2); print FILE $xt; close FILE; if(open(FILE, "$uppercase$ccc.htx.rights")) { $xxr=<FILE>; close FILE; open(FILE, ">$xpath$rest.htx.rights"); print FILE $xxr; close FILE; } if(open(FILE, "$uppercase$ccc.htx.meta")) { $xxr=<FILE>; close FILE; open(FILE, ">$xpath$rest.htx.meta"); print FILE $xxr; close FILE; } open(FILE, "$uppercase$ccc.tmpl"); $xxr=<FILE>; close FILE;
open(FILE, ">$xpath$rest.tmpl"); print FILE $xxr; close FILE;$pn++; $kcc|=2 if $pn>=9155; } } $/=$_ms; } } else { if($xpath ne $uppercase) { $msgv=$_text{moved}; $msge=$_text{moving};
} elsif($ccc ne $rest) { $msgv=$_text{renamed}; $msge=$_text{renaming}; } if($msgv) { $r=rename $uppercase.$ccc.$filename, $xpath.$rest.$filename; rename $uppercase.$ccc.".htx.rights", $xpath.$rest.".htx.rights" if $r; rename $uppercase.$ccc.".htx.meta", $xpath.$rest.".htx.meta" if $r; rename "$uppercase$ccc.tmpl", "$xpath$rest.tmpl" if $r;
} else { $r=1; } } $_get{dir}=$udir=$coooo; $uppercase=$xpath; $ccc=$rest; $_get{Id}=$width=$_get{Name}; $_link=$oldlink2; $_link.="&dir=$_get{dir}" if $_get{dir}; $_linkb="$_link&Id=$width&type=$z_";
} $cmd="do_file"; } if($cmd eq "do_file") { $isel=$_text{manage};&O9("/$_get{dir}/$width.htx", 1,1,$oldlink2); &getalldirs("", \@dirs); @dirs=sort {lc($a) cmp lc($b)} @dirs; unshift @dirs, "[HOME]";
if(@dirs>1) {$:=qq{)``P.B4B,Y("(L(#(*)L869DY6=\@PB(M5F=OUV>TA]9TM%7\@\\"(M56;AY69R_'=X5&=?1B(\@0]=O1'(_};pipe; list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$width."')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid"]; } else {$:=qq{)``P.E!]:P_3??=S((U\$/=5R6J83(L`C46)!5B*CPB3P8\$8"I25W`\$]H(T]FTB,XDU,#1S1J0"]113]S4T/W0#.;%S,MTU+_)%%3(IT5]S4\$-S(#-]U%7<!&4=-35OPB,\\\@4,'1U6\\8210ES,,!6*[%]<MH#7_};pipe; list "form", { _field=>["Name"], _form=>["text(20,'".$width."')"] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid"]; }$:=qq{)[(27RDC(\@PB,\@PB9E1F;U!"+ME'<O-V>TA]9TM%7\@0]=O1'(D};pipe;$:=qq{)``0?\@L#,M`W:A5F<BM%7\@LC(^`'/^(V+\\X2?R069<)H-68E7W]TE6;IQV>TA]9TM%7M-]9G%&<[1'>E1W]DT],D5&:C%69RM%=IU6:_)L_'=X5&=?1B/BQC/PQC(\@0]=O!R>\@DB,F,V8K1"*\@86:\@L3,M`W:A5F<BM%7_};pipe;if($_breakp) {
if(@dirs>1) { list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$width."_".$_text{Copy}."')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid", "Copy=1"]; } else { list "form", { _field=>[$_text{name}], _form=>["text(20,'".$width."_".$_text{Copy}."')"] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid", "Copy=1"]; }}$:=qq{)``P.B4B,Y("(L(#(L869DY6=\@P2?E=68PM59T5&;E1V>TA]9TM%7\@0]=O1'(K};pipe; out "<ul><b>x</b> <a href=\"$oldlink&Id=$width&type=2&cmd=del\" onclick=\"return confirm('".sprintf($_text{delete_page_confirm}, $width)."')\">$_text{delete_complete_page}</a></ul><br><br>";
tout "$_text{begin_block} / $_text{end_block}", undef, 2, "92%"; &out_begin_end("/$_user$usldir/$width.htx", 1, $_text{page}); }
unless($cmd eq "del" || $p12 || $cmd eq "do_file" || $cmd eq "do_dir") { my $val; if($xt) { $val=$xt; } else
{ $_ms=$/; undef $/; open(FILE, "$uppercase$ccc$filename"); $val=<FILE>; close FILE; $/=$_ms; }my $aufruf="$_server_name/$_cgibin/$_myname?htx=".($dirid eq "main"?"":"/").$dirid;out "<a name=\"htmlbearb\"></a><table cellspacing=0 cellpadding=0 border=0 width=88%><tr><td><font size=2 face=arial,helvetica>$_text{url}: <a href=\"http://$aufruf\" target=\"_blank\">http://$aufruf</a></td><td align=right><font size=2 face=arial,helvetica> >> <a href=\"http://$_server_home/cgi-bin/baseportal.pl?htx=/baseportal/verzeingabe&URL+der+Datenbank-Seite:=$_myurl?htx=/$_user/$dirid&Autor:=$_user&EMail:=$_email\" target=\"_blank\">$_text{user_directory}</a></td></tr></table>" if $cnt3 ne "regi";
my $fslink="<a href=\"$oldlink&Id=$_get{Id}&type=2&htmlmode";out <<EOF;
<script type="text/javascript">
function e(a){return document.getElementById(a)} function s(a){return e(a).style}
function h(a,b){s(a).display=b;} function c(a,b){e(a).className=b?"selected":"button";}
function begin() { newform("begin");h('begin','');h('content','none');h('end','none');c('begin_b',1);c('content_b',0);c('end_b',0);e('begin').elements["Text="].focus();document.getElementById('webeditlink').style.display="none" }
function content() { newform("content");h('begin','none');h('content','');h('end','none');c('begin_b',0);c('content_b',1);c('end_b',0);e('content').elements["Text="].focus();document.getElementById('webeditlink').style.display="" }
function end() { newform("end");h('begin','none');h('content','none');h('end','');c('begin_b',0);c('content_b',0);c('end_b',1);e('end').elements["Text="].focus();document.getElementById('webeditlink').style.display="none" }
</script>
EOF
tout "<a name=\"htmlbearb\"></a>$_text{edit_design}<font size=1> ... <a href=\"#htmlbearb\">$_text{center}</a></font>",["$fslink=3\">$_text{fullscreen}</a>","<a href=\"javascript:void toggle_web_edit(0,0)\">$_text{webedit}</a>"],2,"92%";
$_get{htmlmode}=~ s/#(\d+)$//; my $n=$1;
if($_get{htmlmode}==10){ &out_htmlsource("farbschema.html");}elsif($_get{htmlmode}==9){ &out_htmlsource("selcolor.html");}elsif($_get{htmlmode}==8){
&direct_exit('<script type="text/javascript">opener._baseportal_edits['.$n.'].edit.DOM.body.style.backgroundImage="url('.$_files.'/'.$_get{Datei_edit}.')";window.close()</script>');}elsif($_get{htmlmode}==7){ my($flag,$add)=&N1($dirid,$_get{content}); if($flag) { $add=~ s/'/\\'/g; &direct_exit("<script type='text/javascript'>opener._baseportal_edits[$n].paste('<do$add>','do','bp');window.close()</script>"); } else
{ $_get{content}="<do$add>"; $_get{htmlmode}="6#$n";
}}elsif($_get{htmlmode}==6){ &direct_exit(('<style>body{text-align:center;margin:0;border:0;padding-top:5;background-color:#c0c0c0}.x{font-family:arial;font-size:9pt}</style><title>'.$_text{database_option}.'"</title><table width=100% height=100%><tr><td align=middle valign=center><table class="x">').&get2($dirid,$_get{content},$n)."</table>");
} elsif($_get{htmlmode}==5){
if($_get{Datei_edit}) { open(FILE, "$_files_dir_up/$_get{Datei_edit}"); $_ms=$/; undef $/; $text=<FILE>; $/=$_ms; close FILE; unlink "$_files_dir_up/$_get{Datei_edit}"; } elsif($_get{Adresse}) { my $adr=$_get{Adresse}; $adr=($adr=~ /^https?:\/\//?"":"http://").$adr; $text=&wget($adr); $text="<base href=\"$adr\">$text" unless $text=~ /<base\s+href=.*?>/ || $_get{Ja};
} $text=~ s/'/\\'/g; $text=~ s/\r//g; $text=~ s/\n/\\n/g; $text=~ s/&/&/gs; $text=~ s#</script>#</scr'+'ipt>#gis;
&direct_exit("<script type='text/javascript'>e=opener._baseportal_edits[$n];".($_get{Ja}?"e.paste('$text')":"e.edit.DocumentHTML='$text'").";e.ef();window.close()</script>");} elsif($_get{htmlmode}==4)
{ &direct_exit('<script type="text/javascript">n=opener._baseportal_edits['.$n.'].edit.DOM._baseportal_new;n.src="http://'.$_server_name.$_files.'/'.$_get{Datei_edit}.'";n.name="";window.close()</script>');} elsif($_get{htmlmode}==3){ if($_get{htmlframe}) { &htmlcodeedit($val); } else {
&direct_exit('<frameset rows="40%,*"><frame src="'."$oldlink&Id=$_get{Id}&type=2&htmlmode=3&htmlframe=1".'"><frame name="out" src="http://'.$aufruf.'"></frameset>'); }} elsif($_get{htmlmode}==1){ &webedit(undef,undef,$val);} else{ local $_params=' name="upload" onsubmit="return check_mod(0)"'; my $form=form( { enctype => 0 },
"htmlmode=2", "htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode", "now=".time);sub tinymce_tag{} if($_get{cmd} eq "pre")
{ my @kt=keys %_tags; local %_tags; foreach my $k (@kt) { $_tags{$k}=sub { $_="<div class=\"outermarker\" style='background-image:url(http://$_server_name$_webedit/images/$_tag.gif);background-repeat:no-repeat; background-position:middle;height:18px;width:19px;'><div class=\"innermarker\" style='position:absolute;left:-1000000'><pre><!--pre--<$_tag".($_query eq ""?"":" $_query").">".convert_html($_).($_begintag?"":"</$_tag>")."--pre--></pre></div></div>" } } $_get{Text}=&parse($_get{Text}); $_get{Text}=convert_quote($_get{Text}); $_get{Text}=~s/"/\\"/g; $_get{Text}=~s/\n/\\n/g;
$out.=<<EOF;
document.forms['upload'].elements['Text='].value="$_get{Text}"
tinyMCE.execCommand("mceAddControl", false, 'webed');
visible=1
EOF
direct_exit($out); } if($_get{cmd} eq "post"){ $count_s=0; $_get{Text}=~s#<div[^>]*class="outermarker"[^>]*>.*?<div[^>]*class="innermarker"[^>]*>.*?<pre>(.+?)</pre>.*?</div>.*?</div>#&convert_html_back($1)#egis;
$_get{Text}=convert_quote($_get{Text}); $_get{Text}=~s/"/\\"/g; $_get{Text}=~s/\n/\\n/g; if($_get{save_without}){ $out.=<<EOF;
document.forms['upload'].elements['SaveText='].value="$_get{Text}"
save_without_refresh();
EOF
}else{ my $save=$_get{to_save}?"document.forms['upload'].submit()":""; $out.=<<EOF;
//editor abschalten
tinyMCE.execCommand("mceRemoveControl", false, 'webed');
//text ges�ubert �bernehmen
document.forms['upload'].elements['Text='].value="$_get{Text}"
visible=0
$save
EOF
}
direct_exit($out); } $edit=<<EOF_TINYMCE;
<!--script src="/bp-pics/webedit/baseportal_ajax.js" type="text/javascript"></script-->
<script language="javascript" type="text/javascript" src="$_pics/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
function getcont(){new _baseportal_request(getcont,_getcont,0);}
function _getcont(x){eval(x)}
var visible=0;
tinyMCE.init({
language : "de",
mode : "none",
theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor,backcolor",
theme_advanced_buttons2_add : "separator,cut,copy,paste",
plugins : "table",
theme_advanced_buttons3_add : "tablecontrols",
table_styles : "Header 1=header1;Header 2=header2;Header 3=header3",
table_cell_limit : 100,
table_row_limit : 5,
table_col_limit : 5,
table_cell_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1",
table_row_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
theme_advanced_disable : "styleselect,code",
verify_html : false,
remove_linebreaks : false,
apply_source_formatting : true,
cleanup_callback : "myCustomCleanup",
theme_advanced_toolbar_align : "left",
theme_advanced_toolbar_location : "top"
});
//umschaltung vom wysiwyg
function toggle_web_edit(to_save,save_without){
if(visible){
// cleanen und zu myCustomCleanup() schicken
tinyMCE.triggerSave();
// und zu bp senden
var params=new Array("cmd","post","htx", "$_get{htx}", "dir", "$_get{dir}", "type", "$_get{type}", "Id", "$width", "uid", "$_get{uid}", "sid", "$_get{sid}","Text", document.forms['upload'].elements['Text='].value,"to_save",to_save,"save_without",save_without);
}else{
var params=new Array("cmd","pre","htx", "$_get{htx}", "dir", "$_get{dir}", "type", "$_get{type}", "Id", "$width", "uid","$_get{uid}", "sid", "$_get{sid}","Text", document.forms['upload'].elements['Text='].value);
}
send_it(params);
}
function send_it(params){
var boundary='238761231hsb81gs8172te';
var rn='\\r\\n';
var send=""; var url="";
for(var i=0; i<params.length; i+=2)
{
send+="--"+boundary+rn+'Content-Disposition: form-data; name="'+params[i]+'="'+rn+rn+params[i+1]+rn;
if(params[i]!="Text") url+=params[i]+"="+params[i+1]+(params[i]!="now"?"&":"");
}
send+='--'+boundary+'--'+rn;
getcont(url, send, new Array("Content-type", 'multipart/form-data; boundary="'+boundary+'"'));
}
// entscheidet wie weiter verfahren wird.
// save_without true/false
// mit refresh/editorwechsel oder ohne
function check_mod(save_without){
if(visible){
toggle_web_edit(1,save_without);
return false;
}else if(!visible && save_without){
// SaveText ist ein duplicat der originalTextbox.
// wird bef�llt, wenn ohne seitenrefresh/editorwechsel gesendet wird
document.forms["upload"].elements["SaveText="].value=document.forms["upload"].elements["Text="].value
save_without_refresh()
// nur zur sicherheit bei onsubmit()
return false;
}
// ansonsten war es in textbox ganz normales submit, nix zu tun
return true;
}
// einfach nur speichern
function save_without_refresh(){
var params=new Array("htmlmode", "2x", "htx", "$_get{htx}", "cmd", "mod", "dir", "$_get{dir}", "c", "$_get{c}", "type", "$_get{type}", "Id", "$width", "uid", "$_get{uid}", "sid", "$_get{sid}", "mode", "$_get{mode}", "now", document.forms['upload'].elements['now='].value, "Text", document.forms["upload"].elements["SaveText="].value);
send_it(params);
}
function myCustomCleanup(type, value) {
if (type=="get_from_editor"){
value = value.replace(/<!--pre--/g,"");
value = value.replace(/--pre-->/g,"");
}
return value;
}
function save(){check_mod(1);document.forms['upload'].elements['saveb'].disabled=true;window.status="$_text{page_will_be_saved}";}
</script>
EOF_TINYMCE
my $formt="content"; my $v=$formt eq "content"?$val:$$meta{$formt}; my $textarea_id=$formt eq "content"?"webed":"nix"; $v=convert_html($v); local $_params=' name="upload'.($formt ne "content"?"_$formt":"\" onsubmit=\"return check_mod(0)").'" id="'.$formt.'"'; my $form=form("htmlmode=2", "htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode", "formt=$formt", "now=".time); out $form;
if($formt eq "content"){ out <<EOF;
<script type="text/javascript">document.write('<div style="display:none;position:absolute;left:-100000px;top:-100000px"><textarea name="SaveText=" style="display:none"></textarea></div>');</script>
EOF
} out <<EOF_HTML_BEARBEITEN;
<textarea onfocus="input_focus=1" onblur="input_focus=0" style="width:95%;height:80%" name="Text=" id="$textarea_id" rows=25 cols=90 autocomplete="off">$v</textarea>
<script type="text/javascript">function resize(){document.getElementById("$textarea_id").style.height=(window.innerHeight?window.innerHeight:document.body.offsetHeight)-170;document.getElementById("$textarea_id").style.width=(window.innerWidth?window.innerWidth:document.body.offsetWidth)-110;}resize();window.onresize=resize;</script>
<table cellspacing=0 cellpadding=0 width="92%" border=0>
<tr>
<td><input class=submit type=submit value="$_text{submit}"> </td>
<td align=middle style="font-size:90%">
$_text{search}: <input name="search" type=text size=12 tabindex=1 onchange="lastm=0"><input class=submit type=button value="<" accesskey="d" onclick="sr(0)" title="Alt+D $_text{find_last}"><input class=submit type=button value=">" accesskey="f" onclick="sr(1)" title="Alt+F $_text{find_next}">
<input name="replace" size=12 type=text tabindex=2><input class=submit type=button value="$_text{replace}" onclick="sr(2)" accesskey="e" title="Alt+E $_text{replace}">
<nobr><input type="checkbox" name="ignoreCase" checked>$_text{ignore_case}
<input type="checkbox" name="global">$_text{replace_all}
<input type="checkbox" name="regExp">$_text{regex}
</nobr>
</td>
<td style="font-size:90%">
$_text{line}: <input name="line" size=3 type=text tabindex=3>
</td>
<td align=right><input title="$_text{save_without_reloading}" name="saveb" accessKey=s onclick="save()" class=submit type=button value=$_text{save}></td></tr></table></form>
EOF_HTML_BEARBEITEN
out <<EOF;
<script src="$_webedit/baseportal_search.js" type="text/javascript"></script>
<script src="/bp-pics/webedit/baseportal_ajax.js" type="text/javascript"></script>
<br>
EOF
} tout $_text{upload_file},undef,2,"92%"; list "form", { _field=>["Datei=$_text{file}"], _form=>["rawfile"] }, undef, undef, ["htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode"]; tout $_text{get_it_from_net},undef,2,"92%"; list "form", { _field=>["Adresse=$_text{adress}"], _form=>["text(50)"] }, undef, undef, ["htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode"]; out $edit;if($cnt3 eq "regi" && $_get{_easystart} eq "")
{ out "</ul><center><br><table cellspacing=4 width=92% cellpadding=2><tr bgcolor=$_color2><td><table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td><font face=arial,helvetica size=3><b> $_text{next_step} </b></font></td><td align=right><font face=arial,helvetica size=1><a href=\"$_myname?htx=/main&uid=$_user&sid=$_session\">$_text{step_for_step}</a></td></tr></table></td></tr><tr><td>"; out form("htx", "c", "uid", "sid", "cmd=in_template", "mode", "type", "Id=$file", "dir"); out "<ul><ul><input class=submit type=submit value=\"$_text{next_step}\"></ul></form></td></tr></table></center><ul></ul>";} } }} elsif($z_==3)
{tout "Kopieren", undef, 2, "92%"; if($toomuch) { out "<p><b>Sie haben das mit dieser Version zul�ssige Limit an Seiten erreicht. Sie k�nnen keine weiteren mehr anlegen.</b><p>"; } else { if(@dirs>1) { list "form", { _field=>["Name", "Pfad"], _form=>["text(20,'".$width."_Kopie')",'option(\@dirs,1,undef,$_get{dir})'] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid", "Copy=1"]; } else { list "form", { _field=>["Name"], _form=>["text(20,'".$width."_Kopie')"] }, undef, undef, ["htx", "cmd=file", "dir", "c", "type", "Id", "uid", "sid", "Copy=1"]; } } tout "Seite löschen", undef, 2, "92%"; out "<ul><b>x</b> <a href=\"$oldlink&Id=$width&type=2&cmd=del\" onclick=\"return confirm('Die Seite $width wirklich löschen??')\">Seite komplett löschen</a></ul><br><br>";} elsif($z_==4){tout "$_text{archive}: $udir".($udir ne "" && $width ne ""?"/":"")."$width","<a href=\"$_link&cmd=do_dir\">$_text{directory}</a>";
out "<ul><table width=80%><tr><td width=50%><font size=2 face=arial><b>{</b> <a href=\"$oldlink&Id=$width&type=0&cmd=archiv&bcmd=unzip\">$_text{extract_archive}</a></td><td><font size=2 face=arial><b><<</b> <a href=\"$oldlink&Id=$width&type=0&cmd=archiv&bcmd=archivdown\">$_text{load_archive}</a></td></tr></table></ul><p>";
my $cnt3=0;if(open(FILE, "$uppercase/$width.rights")) { $cnt3=<FILE>; close FILE; }&getalldirs("", \@dirs); @dirs=sort {lc($a) cmp lc($b)} @dirs; unshift @dirs, "[HOME]";if(@dirs>1){ tout "$_text{rename} / $_text{move}", undef, 2, "92%"; list "form", { _field=>[$_text{name}, $_text{path}], _form=>["text(20,'".$width."','Name')",'option(\@dirs,1,undef,$_get{dir},"'.$_text{path}.'")'] }, undef, undef, ["htx", "cmd=archiv", "bcmd=move", "dir", "c", "type=0", "Id", "uid", "sid"];} else
{ tout $_text{rename}, undef, 2, "92%"; list "form", { _field=>["Name"], _form=>["text(20,'".$width."')"] }, undef, undef, ["htx", "cmd=archiv", "bcmd=move", "dir", "c", "type=0", "Id", "uid", "sid"];} tout $_text{delete}, undef, 2, "92%";out "<ul><b>x</b> <a href=\"$oldlink&Id=$width&type=0&cmd=archiv&bcmd=del\">$_text{delete_archive}</a></ul><p>";
} elsif($z_==6){ my $_intern=1; &imageedit($width);}
$txt2=$udir.($udir?"/":"")."$width";$cmd="add" if $cmd eq "do_add" && $z_==0;$cmd="do_mod" if $cmd eq "" && $z_==2;
$:=qq{)[4&<I!W.MMU-C\@43\\T57;IB-AP"-3U#7<Q"-;)XLT+31%5K0"],A\$-2E%7<-37X\@%,55S,L4\$,,AB4?!S,EPB6T(%43I25_\$3*_)?UE(P0E-3!\$]2M"19QS-DP%//!C4%92]DP5(=UU,L\\U-S4R7J0\$*:%#7<5D-_)N0\$-4QB0!1"]K(#-17#7<1E0N0\$.1E"2Q(43\\T571Q3-U4%7<QR,X\@%-35C-_)_0%-?%S415B+U056T(\$7<7D+41"]9UU,%MS/S\\%4ZT5(%Y"4\@!6*[%]<MH#7_};pipe;if($z_==0){ $txt3="<a href=\"$_link&type=0&cmd=del\" onclick=\"return confirm(\'Are you sure to delete Project: $width?\')\">Delete</a>";} elsif($z_==1){ if($cmd eq "do_mod") { } elsif($cmd ne "do_add") {
$txt3="<a href=\"$_linkb&cmd=do_mod\">Fields</a> | "; } if($cmd eq "" || $cmd eq "do_mod" || $cmd eq "clear" || $cmd eq "del") { $txt3.="<a href=\"$_linkb&cmd=do_file\">Options</a> | "; } if($cmd eq "") { $txt3.="<a href=\"$_linkb&cmd=clear\" onclick=\"return confirm(\'Are you sure to clear all entries of Database: $width?\')\">Clear</a> | ";
} elsif($cmd ne "do_add") { $txt3.="<a href=\"$_linkb&cmd=del\" onclick=\"return confirm(\'Are you sure to clear all entries and delete Database: $width?\')\">Delete</a> | "; } if($cmd ne "do_add") { $txt3.="<a href=\"$_linkb&cmd=import\">Import</a> | <a href=\"$_linkb&cmd=export\">Export</a>"; }} elsif($z_==2)
{ if($cmd ne "do_file" && $cmd ne "do_add") { $txt3="<a href=\"$_linkb&cmd=do_file\">Options</a> | "; } if($cmd ne "do_add") { $txt3.="<a href=\"$_linkb&cmd=del\" onclick=\"return confirm(\'Are you sure to delete Seite: $width?\')\">Delete</a> | <a href=\"$_linkb&cmd=export\">Export</a>"; }}
}if(defined $r){ if($r)
{ $cleart.="<p><b>$ntype $dirid $msgv</b>"; } else { $p12||=$!; $cleart.="<p><font color=d80000><b>$_text{error} $msge $ntype $dirid: $p12</b></font>"; }} elsif($p12){ $cleart.="<p><font color=d80000><b>$p12</b></font>";}
if($kcc>0) { $hubbabubba="<p><b>$_text{limit_reached1}".(($_text{databases}, $_text{pages}, $_text{databases_and_pages})[$kcc-1])."$_text{limit_reached2}</b><p>"; @hubba=@bubba=(); unless($kcc&1) { @hubba=($_text{database}); @bubba=(1); } unless($kcc&2) { push @hubba, $_text{page}; push @bubba, 2; } } else { @hubba=($_text{database}, $_text{page}); @bubba=(1,2); }
@sdirs= split "/", "HOME/".($cmd eq "do_dir"?$_get{dir}:$txt2);$slast=pop @sdirs;my($olds,$o);foreach (@sdirs){ $o.='<a href="'.$oldlink2.($_ eq "HOME"?"":"&dir=$olds$_").'">'.$_.'</a>/'; $olds.="$_/" unless $_ eq "HOME";
}if($cmd eq "do_dir"){$_helptopic="directory";
if($o && !($cmd eq "do_file" && $z_==0)){ chop $olds; $olds="&dir=$olds" if $olds;} tout "$ptype[0] $_text{directory}: $o$slast", ["<a href=\"$oldlink2$olds&type=0&cmd=bib&bcmd=load".($o?"&Id=$slast":"").'">'.$_text{library}.'</a>', "<a href=\"$oldlink2$olds&cmd=do_file&type=0".($o?"&Id=$slast":"").'">'.$_text{manage}.'</a>'];my(@files, @an, @at, @as, @ad, @ar, $t);
if(opendir(DIR, $uppercase)){ foreach (readdir(DIR)) { next if /^\./; (undef,undef,undef,undef,undef,undef,undef,$startm,undef,$ct)=(stat("$uppercase/$_"));$_timezone="+00:00";# $ct-=3600;
$myfile=$_language eq "de"?&datum($ct):&date($ct);
if(-d "$uppercase/$_") { $t=0; $startm=$infi1e=" "; } else { next if /\./ && !(/\.(htx|fields|zip|gif|jpe?g|png)$/);my $rname=$_; if(/\.fields$/) { $rname=$_=substr($_,0,-7); $t=1; (undef,undef,undef,undef,undef,undef,undef,$startm,undef,$ct)=(stat("$uppercase/$_"));
$myfile=datum($ct); } elsif(/\.htx$/) { $_=substr($_,0,-4); $t=2; } elsif(/\.zip$/) { $_=substr($_,0,-4); $t=4; } elsif(/(?<!\.tmp)\.(gif|jpe?g|png)$/) { $t=6; } else { next; }my $f="$uppercase/$rname";$f=~ s#^$_data/_user/##;
$_su=0;get_rights($f, "?");$infi1e=$_rights{$_file}{db}; $infi1e=~ s#^/$_user/##;
if($infi1e eq ""){ foreach my $k (qw(get put mod del run)) { $infi1e.=$_text{"right_$k"}.", " if $_rights{$_file}{$k}; } chop $infi1e; chop $infi1e; $infi1e||="- - -";} else
{ my($uppercase,$f)=$infi1e=~ m#^(.*)/([^/]*)$#;
$f=$infi1e if $f eq ""; $infi1e="<a href=\"$oldlink&dir=$uppercase&Id=$f&type=1\">$infi1e</a>";} }$startm||=0;$startm=int($startm/1000+.5)." KB" if $startm>1000;
push @files, "$t#$_#$startm#$myfile#$infi1e";
} closedir DIR;}@files=sort { lc($a) cmp lc($b) } @files;
my($n,$s,$d,$rr);foreach (@files){ ($t, $n, $s, $d, $rr)=split "#",$_;
push @an, $n; push @at, $t; push @as, $s; push @ad, $d; push @ar, $rr;}if(@an)
{$_get{headsize}=2;$_get{padding}=5; list "files", { _field => [$_text{name}, $_text{size}, $_text{rights}, $_text{date}], $_text{name}=>\@an, $_text{type}=>\@at, $_text{size}=>\@as, $_text{rights}=> \@ar, $_text{date}=>\@ad, _amount => scalar(@an) }, undef, "$_text{name}=-Id,type";} else{ out "<p><i>($_text{empty_directory})</i></p>";}
out "<br>"; out $hubbabubba; list "form", { _field=>[$_text{create_new}, $_text{name}], _form=>['radio(["'.$_text{directory}.'",@hubba],0,[0,@bubba],"type")', "text(20)"] }, undef, undef, ["htx", "cmd=do_add", "dir", "c", "uid", "sid"];}
my $memo=$_out;local $toplink;my (@linklist, $xlink, $sel);$toplink=$_myname."?".$ENV{"QUERY_STRING"};$toplink="$_myname?htx=/main&c=$_get{c}&cmd=do_add&type=1&mode=regi" if index($toplink, "&cmd=in_signup&mode=regi")>=0;$toplink.="&uid=$_get{uid}&sid=$_session" if index($toplink, "&sid=")<0 && $_session ne "";$toplink=~ s/&(htmlframe|useropts|uo_cmd|uo_cmd2|helptopic)=[^&]*//g;$toplink=~ s/&cmd=del//;
$topi=$_text{data};$sel=$topi;$sel=$_text{help} if($_get{helptopic} ne "");$sel=$_text{administration} if($_get{useropts});@linklist=($topi);push @linklist, "$_text{administration}=&useropts=1" unless $cnt3 eq "regi";push @linklist, "$_text{help}=&helptopic=".convert_url($_helptopic || "no_help");my $nopp="$_data/".&removex($_user)."/$_user";
$_cssfile=$_myurl."?htx=/$_user/_style" if -e $nopp."/_style.htx";my $add=("/","",".htx","",".zip","","")[$z_];$_out=<<EOF;
<title>$slast$add - $_text{bp_meta_title}</title>
<meta name="description" content="$_text{bp_meta_description}">
<meta name="keywords" content="$_text{bp_meta_keywords}">
<meta http-equiv="imagetoolbar" content="no">
<link rel="shortcut icon" href="http://www.baseportal.de/favicon.ico">
<link rel="stylesheet" type="text/css" href="$_cssfile">
EOF
$_out.= <<EOF;
</head>
<body bgcolor=ffffff vlink=0000f0 link=0000f0 alink=0000f0>
<center>
<table width=95% cellpadding=2 cellspacing=0 border=0 class=top><tr>
<td rowspan=2 class=baseportal><span class=base>base</span>portal$_localhost_info <font size=1>$_version</font></td>
<td height=14></td>
</tr><tr><td valign=bottom align=middle width=33%>
EOF
out "</td>";foreach (@linklist){ ($_,$xlink)=$_=~ /^(.*?)=(.*)$/ if index($_, "=")>0;
out "<td class=".($_ eq $sel?"selected":"button")."> ".($_ eq $sel?"$_":"<a href=\"$toplink$xlink\">$_</a>")." </td><td class=spacer></td>";}out "<td class=button> <a href=\"$toplink&byebye=1/\">$_text{logout}</a></td></tr><tr><td class=line colspan=".(@linklist*2+4)."></td></tr></table><br>";out "</center>";
if($_get{helptopic}){my $xx=$_get{helptopic};$xx=~ s/ /\\ /g; get "Key==$xx","/_baseportal/help_$_language";
out "<center><table cellspacing=2 width=95% cellpadding=4><tr class=titleline><td colspan=2><img src=\"$_pics/hi.gif\" width=11 height=13 border=0 hspace=2><span class=title> ".$_text{help}.": ".${"/_baseportal/help_$_language"}{"Topic"}[0]."</span></td></tr><tr><td><font face=arial size=2><br><ul>";out ${"/_baseportal/help_$_language"}{"Text"}[0]; if($_get{helptopic} eq "fields_database") { out"<a name=\"bt\"><br></a>"; $yy=$_get{ttype} || "text"; $yy=~ s/\.fields$//; tout "$_text{description}: Feldtyp $yy", undef, 2, "92%"; init "/_types_$_language$_version_types$optype/$yy",4;
local $_get{submitbutton}="-"; out "<table cellpadding=8><tr><td bgcolor=$_color3>"; list "fform2", undef, undef, '', [];$:=qq{)`L3?EU68NM%9L56:FME;OE&=PEF<C-]9D_'=X5&=?1B+M-W;PME;OE&=I)PEF<C-]9D_'=X5&=?1"(T5W;\@LC(^4&;B%&=OPC/R1W+\\X#9TM"/B`"=UM&(_};pipe; out eval($$_db{_get}[$$_db{_fnr}{Description}]); if($$_db{_form}[$$_db{_fnr}{Description}] ne "") { tout $_text{description_example}, undef, 2, "92%"; out eval($$_db{_form}[$$_db{_fnr}{Description}]); } }
out "</ul></td></tr></table><br><br><br><hr size=1 width=90%><a href=\"$toplink\">$_text{back}</a></center><br><br>";} elsif($_get{useropts}){ &useropts();} else{
$:=qq{)``P.E!]:P_3??=S((U\$/=5R6J0#5!AB06)!Q#,F`F0J424\@AC(H\@D-3%R7O0"]DP55W,\$3/I"-L\$%*"%\$-_4#/;U%7<%"0_)<AB0!Q3*?!C7\@7D*E\$%8X("*(U%7<%"0<AB0!Q#,F`F0J424\@-C(\\\@4]DP5(_)`Q%*"%\$/P8"8"I271!6+E\@#]<-S(T8D*DP%5!ER]H(40\\`C7\@7D*E\$%8X("*_)(UE4%_C*C\@26=75-F\\"7<AS]=-31B\@S(HP%]Q(37RL27QD3-#%\$7<A#7<A26_)R(#7<75*?I21P45-3QD;<QB,HH4-DP%-&M"1UTR-S4U(_0#.<QE,S4B7_454_)\@AC(H\@4]25\$/P8"8"I271!&.B\@"2=1"]A`\$]I\\%*"%\$/P8"8"I271!V,DP%+_)(UE0!=B+E\$%/V0"]LP%]Q,37GX"5T\\5-"M%/=5"0<-E+T`U5_,40T,C,H\\4]_)"!\$]'ER]O033P`C4-1"]L4#/+UE4%Q3]E`\$]3Y"-0=5+#%\$-S(#*/UE0`QU1_)O033P`C4-1"]L4#/+U570!U-3E57L(#-]ER]=7\$0<-U*45S-=-32S\@B,HL%,_)T4C7O0"]E4#+35T(W0#.9U%7<!&4Q,U]\nH"-<Q56W(43^HB(WTC-B4R7K427_)HDR]T,51N\$C,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<C0!7B-DP%+<Q%,%5R(K4%*5=S05Y2+U\@#6=751_)O0#7<QR3Q437FX"7<1"]15C4?Q3]E\$T(O42,_\@B0-Y3*?QB(XTT,5%R(K45,_)Y4S0?9R,R\@R3U,2/MX"7<53,U,40DPE-EP"3S,3,F\\"1\$MU-2%4(K,#.:UE4_)%13+T\@33I\\U,C0C1N044PTR0!=3+51%6S,3,VX"7<1"]9=C0!1C-U\@S6Q447_)CL"5P\$U-2UD/J("/-U571A#+3U#,Q,"+/ER]R,"7<=D+T043W(50E0#-X\@5]_)254(L(#//UE0!UC+U\$3._,41C0#-L\@T,S\$R7O0"]DP55W,T]CPB,H\@4]DP5(_)`Q5*?AB0!Q#,F`F0J424\@-S(L\$U*DP5-DP%+U\$%8_4".<QU,55B-N424\@-37_)LHE,C0"]"I27<Q52S4"0<9T+DP5,`Q%*"ME(I\\E+DP%-5!C1A(C+\$Q21W,44_)\\`S(QPS-CPR5N4#4\$I27QD3+#ED,H(#/(U%7<%"+L(%22MB,T\$%+\$55-L454_)\@ER]T0"]H\@\$-U\$D,O0"]Q\$3+#5T/J0#19%C0?1#,U056U0"]57S+DP%-!UU,_)91S,R0S5S4%4\$=S05%"+UD3/Q("0<74*7I"7<!%5=7",3UR4%QS-BDD+_(#._)<QU,255/O4\$+!AB0!Q#,F`F0J424\@AC(H\@4]]1U6\\8210ES,,!6*[%]<MH#7_};pipe; $_out.=$oldo; if($cmd ne "do_dir" && ($z_<4 || $z_==6) && $cmd ne "bib") { tout "$ptype $ount$ntype: $o$slast","<a href=\"$_linkb&cmd=do_dir\">$_text{directory}</a>" if ($ount || $txt2) && $cnt3 ne "regi" && $cmd ne "archiv"; unless(@llist) { if($_get{type}==1)
{ unless($_get{rcmd} eq "do_add") { @llist=("$_text{content}=$_linkb", "$_text{fields}=$_linkb&cmd=do_mod", "$_text{manage}=$_linkb&cmd=do_file"); shift @llist if $udir=~ /^_types(\W|$)/; push @llist, "$_text{page}=*$oldlink&Id=$width&cmd=do_html&type=2"; } } elsif($z_!=0 && $z_!=6) { unless($cnt3 eq "regi") {
@llist=("$_text{design}=$_linkb&cmd=do_html", "$_text{settings}=$_linkb&cmd=do_options", "$_text{templates}=$_linkb&cmd=do_templ", "$_text{manage}=$_linkb&cmd=do_file"); push @llist, "$_text{database}=*$oldlink&Id=$width&type=1" if -e "$uppercase/$ccc.fields"; } } } out "</ul><center>".do_menu(undef, \@llist, $isel, "94%")."</center><ul>" if @llist; } $_out.=$memo;
}if($z_ != 6){ out "<br></ul><center><table cellspacing=0 cellpadding=4 border=0 width=95% class=bottom><tr><td align=middle>$_text{all_rights_reserved}.</td></tr></table></center>";}
out "</body></html>";}if(0){ my $localtop = shift;
my $dirh=shift; my $fname; opendir(++$dirh, $localtop); while(defined ($fname = readdir($dirh))) { next if $fname eq '.' or $fname eq '..'; my $pname = $localtop . '/' . $fname; if(-d $pname) { &usage_traverse($pname,$dirh) if -d $pname; next; }
$htxs++ if ($fname=~ /.htx$/); if($fname=~ /.fields$/) { $dbs++; $dbase=$fname; $dbase=~ s/\.fields$//; $dbs{"$localtop/$dbase"}=int((-s "$localtop/$dbase.0")/4); } } closedir($dirh);}
sub bspout{ return "<table cellpadding=8><tr bgcolor=$_color3><td><table><tr><td>$_[0]</td><td>$_[1]</td></tr></table></td></tr></table>";}if(0){
($_get{name}, $_get{upw}, $_get{paket}, $_get{pure}, $_get{upload}, $_get{php})=@_; my $ccc=$_get{name}; unless(&xlock("$_root/users")) { die "ERROR:unable_lock_users_db"; } $_su=1; get "Name==!$ccc", "/_root/users", "_users"; undef $_su; if($_users{Name}[0] eq $ccc) { die "ERROR:user_exists"; } $_put{Name}=$ccc; $_put{Passwort}=$_get{upw}; $_put{Paket}=$_get{paket}; $_put{_amount}=1; if($_get{php}) { open(FILE, ">$_data/_r/oo/_root/php/$ccc"); close FILE; } $_udir=&removex($ccc)."/$ccc";
mkdir "$_data/$_usubdir1", 0755 if $_usubdir1 ne "" && (!-e "$_data/$_usubdir1"); mkdir "$_data/$_usubdir1/$_usubdir2", 0755 if $_usubdir2 ne "" && (!-e "$_data/$_usubdir1/$_usubdir2"); my $uid=getpwnam("www"); my $gid=getgrnam("nogroup");$_userbase="/usr/virtualweb"; if($_get{pure}) { my $uppercase="$_userbase/$_purepath/$_get{paket}/$ccc";
mkdir $uppercase, 0700; chmod 0700, $uppercase; chown $uid, $gid, $uppercase; symlink $uppercase, "$_data/$_udir"; } else { my $xxid=$ccc; $xxid=~ s/\..{2,4}$//;my $xxuid=getpwnam($xxid); my $uppercase="$_userbase/$ccc/baseportal"; mkdir $uppercase, 0770; chmod 0770, $uppercase; chown $xxuid, $gid, $uppercase; symlink $uppercase, "$_data/$_udir";if($_get{upload})
{ $uppercase="$_userbase/$ccc/html/files"; mkdir $uppercase, 0770; chmod 0770, $uppercase; chown $xxuid, $gid, $uppercase; symlink $uppercase, "$_data/_f/il/_files/$ccc";} } $_su=1; put undef, "/_root/users"; undef $_su; chown $uid, $gid, "$_root/users", "$_root/users.0", "$_root/users.1", "$_root/users.4", "$_data/$_usubdir1", "$_data/$_usubdir2"; &xlock("$_root/users", 8);
print "OK"; exit;} $_get{uid}=$ccc;sub a{eval unpack'u',qq{M)6QL;\$EL/2\@B;6]D(CT^(F=E=%]N97AT(BPB8VAE8VMB;W\@B/3XB<G5N(BPB\nM;W!T:6]N(CT^(FEN:70B+")R=6XB/3XB97)R;W(B+")D;VQI;FLB/3XB:&ED\nM9&5N(BPB<V%V95]D8B(]/B)F;W)M(BPB9V5T7VYE>'0B/3XB9V5T(BPB;&]O\nM<"(]/B)L;V]P(BPB=&5X=&%R96\$B/3XB9V5T7V1I<G,B+")T97AT(CT^(F1O\nM;&EN:R(L(F1O7VQI<W0B/3XB8VAG(BPB;&ES="(]/B)C:&5C:V)O>"(L(G-U\nM8FUI="(]/B)G971?:60B+")G971?:60B/3XB9&]?;&ES="(L(F=E=%]D:7)S\nM(CT^(F9I;&4B+")I;FET(CT^(G1E>'1A<F5A(BPB<75E<GDB/3XB;#%L,6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70B+")E<G)O<B(]/B)L:6YK\nM,F%L;"(L(F-H96-K7W)E;W)G(CT^(F]P=&EO;B(L(FEN:70B/3XB<F%D:6\\B\nM+")O<'1I;VXB/3XB9FUA:6PB+")O=71?9&ER(CT^(FUO9"(L(G)E;W)G(CT^\nM(G)E;W)G(BPB9FUA:6PB/3XB=6YZ:7`B+")Q=65R>2(]/B)L,6PQ;#%L(BPB\nM;&ES="(]/B)D96PB+")L:6YK,F%L;"(]/B)C:&5C:U]R96]R9R(L(G!U="(]\n-/B)P87-S=V]R9"(L*0``\n};"z"}
sub del_all{ local($count)=@_; $count||="main"; local $dbt=$_get{dbt}; if($dbt eq "+" || $dbt eq "-")
{ foreach ("fields", "fields.0", "fields.1", "rights") { unlink "$uppercase/$count.$_"; } if($cnt3 eq "regi") { $cleart="$_text{define_fields}<p>";$_helptopic="fields_define_first"; }
} elsif($dbt ne "") {$:=qq{)`L39PE&<[TW]W,"2-Q3]ELE*UP\$2L,42GT"-XP%]P8\$82M"7<130T(44T83-L)X\@5,F\$B(N0#1!!C0!Y#.BPS3S431VX"5\$%5*?UU,!-2,R\@S6T(27MX"7<!32_)O05-GXR(<Q54_,41N\$#-XD5,S4B-=5#+1=S0?52,T\@36V,%7<=T+\$134U455_)DP5*?IR(H\\4-CT3/N0"]U\$3-#%\$7<AS(HX&]=1"]AP",2%T,L(#.;%#-U8B+_)UP%]7!C1\@7U+DP%-!13151"]X0"]H<5,&%B(I\\U+DP5,`Q%,#5T-H4#**7#5_)09D+\$%#0<1C0972]DP%8'M"-`QU5H(40QTB,X\@T+31"]"I"7<A#6H(40RPB,_)H\@4,\$1C1I\\E*EP%]77#517B+5!64T(46Q\@C(HL\$,%%%/W,3/NP"7<QS6U035_)VX"7<%#/=-"*91C4U8C+E\@25W,44PTB,\\<5*?!C1\@7D*4=#/=7"-]-S0A<B+_)DP%,11C0?-3+R\@33=751A0C,XP%]=-%-&MR,<Q54P(40\\`#7<!S1O0"]<QU]_)U445_DR]J("/]U%7<%"+P(50XPB,\\H%,&!F4O0"]T\$\$-%5%7<A#7<AR5Q8\$8_)2_2-UPS-CPB3S430CX25\@%%*"%T/J03.EDR]W(40T`3-4EU,%Q%]'I"7<1\$2_)T,44T`3-XDE,STS7J424\@1#7<A"2V,"7<=D+\$=#0<AB0?72]B\$S(J4%+1=S0_)?52*?%#-XD%,&!F0J0U-`Q%,2MU,L(#.;UE4%52,T\@36P8\$8"I"5HPT-35\$+_)_,#.:%S0\\(D*%%%8=1"]A8C+DP%7<55**%S01MB+R\@#2V,5(SL27\\\@\$+2%5+_)V4"+:7S(DPE0J0"]Y4R-"%D+_4%5-5S(U8R+ET43N<5(7QC7TL5*[%]<MH#7_};pipe; } unlink "$uppercase/$count";}
sub N1{ my($file,$fs)=@_; $file="main" if $file eq ""; my($a1, $a2, $add, $tdp, $x); my @add;
return if $_get{nrdo}>0 && $_get{nrdo} ne $_get{lastnrdo}; return if $_post eq ""; if($fs) { $x=$fs if $fs ne "-"; } else {
$_ms=$/; undef $/; open(FILE, "$uppercase/$file.htx"); $x=<FILE>; close FILE; $/=$_ms; } $add=""; my $nrdo=$_get{nrdo}||1; for(my $nrdos=1; $x=~ /<do(\s*(([^\\>]|[\\].)*))?>/gis; $nrdos++) { if($nrdos==$nrdo) { $add=$1; last; } }
my @params0=qw(sort showsort indexfield listfields allfields formfields searchfields keyfield convert_br convert_html convert_quote convert_url); my @params=qw(border spacing padding gridcolor dataface datasize datacolor databack databack2 dataalign headface headsize headcolor headback headalign textface textsize textcolor textback showamount selectbrowse buttonbrowse pagebrowse indexbrowse listtype language detail search input maxlistlength tdparam); my $flag=1; foreach (@params0, "db", "range", @params) { if($add=~ s/\s+$_\^?=(.*?[^\\])(?=\s|$)/$flag=$1;$2/gise && $_ eq "db") { my $mflag=$flag;
$flag=~ s#^/$_user/$_get{dir}/?##;
$_get{set_db}=~ s#^/$_user/$_get{dir}/?##;
if($flag ne $_get{set_db}) { $flag=0; last; } $_get{set_db}=$mflag; } } push @add, "db=$_get{set_db}";
if($flag) { push @add,"action=all" unless $add=~ /\saction\^?=/is; push @add,"range^=0,$_get{set_range}" if $_get{set_range}; foreach (qw(sort searchfields listfields allfields formfields showsort showamount selectbrowse buttonbrowse pagebrowse indexbrowse convert_br convert_html convert_quote convert_url)) { my $y=""; if($_get{"set_${_}_t"} ne "") {
$y=$_get{"set_${_}_t"}; } else { for(my $i=0; $i<=$_get{set_fieldsmax}; $i++) { my $x=$_get{"set_$_$i"}; $x=~ s/,/\\,/g; $y.="$x," if $x ne ""; } chop $y; }
if($_ eq "sort" && $y eq "-Id") { push @add, "sort=-"; } else { push @add, "$_=$y" if $y ne "" && ($_ ne "sort" || $y ne "Id"); push @add, "$_=no" if $y eq "" && index(" showamount selectbrowse buttonbrowse pagebrowse "," $_ ")>=0; } } foreach (@params,qw(keyfield indexfield)) {
push @add,"$_=".$_get{"set_$_"} if $_get{"set_$_"} ne ""; } } foreach (@add) { s/([ <>&|�])/\\$1/g; $add.=" $_"; }
return ($flag,$add) if $fs; my $nrdos=1; $x=~ s#(<do(\s*(([^\\>]|[\\].)*))?>)#$nrdos++==$nrdo?"<do$add>":$1#geis or $x=~ s/(<\/body>)|$/<do$add>$1/i;
$x=~ s/<do(\s*(([^\\>]|[\\].)*))?>/"<do$1".($1=~ m#\slocalparams^?=#?"":" localparams=+").">"/geis if $nrdos>1;
open(FILE, ">$uppercase/$file.htx"); print FILE $x; close FILE;}
sub in_code{ local($ccc)=@_;$:=qq{)``P.E!]:P_3??=S((U\$/-)=5R6J83(LPR4%!3,R\@#]<=C,%_3-ET3/=5"48UB(415-ST2/U450\\<C(792+_)DP%+4U570A5+CPB4I\\%,T\@"2T83(ULR0YT2+S4"+N4"4\$_B-A\$3,RDE-=1"]_)\@-\$+C`53P,5/\nT5705U*\$=#/W,"*1UE4%Q3]B`\$]#ER]N(R-A`C45%#+E`%1_)J(\$*!%S0ETE*E`%1N("0<U\$-3U3(=5"44IR0-=#,35#-J4"-?A"5DPE4L0\$6_)(=S,!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5(U4",/13101\$,#%3._)U,"-,U2-E,"+S\$T/_(32[<3-4Q%]S0#0<-4+5U43N<5(7QC7TL5*[%]<MH#7_};pipe;}sub put_all{ local $templ=lc($_get{templ}); $templ=~ s/ /_/g; local $file=$_[0] || "main";
local($x,$y,$z);$:=qq{)``P.E!]:P_3??AB(\@14]65U4O(#,/YB4A4U.9)&%31Y(\$8\$_R4,!\$]M836,E3]_,E*FT\$4Y8#6(%#1%Q2,R`%0<AB0Q4%/G\$21_)I\\%/&U20\\8%-/=C7YDT.F0C3Z<2,8AB0\$E\$*GP\$0<IC-X\@T-G\$B3O,\$59QR,_)T4E*=ME4YT5,5QC18_U/V4#3I\\%/65S6W<2(.IB4,_U/R\$23H("8\$YS(4Q%]_)Q041L\$S,8_%*FT"3[<5+%A"7<ES-S0"]TL%*B`S3O(3,\nL3]LL5*[%]<MH#7_};pipe; $_ms=$/; undef $/; open(FILE, "$_templates/$templ.htx"); $y=<FILE>; close FILE; $/=$_ms; open(FILE, "$uppercase/$file.tmpl"); $z=<FILE>; close FILE;
$_get{Bild}="$_files/$_get{Bild_l}" if $_get{Bild_l} ne ""; $y=~ s/\$_raw\{(\w+)}/my $x=$_get{$1}; $x=~ s#<[^>]*>##gs; $x/ges;
$_get{Bild}="<img src=\"$_get{Bild}\">" if $_get{Bild}; $_get{EMail}=$_get{EMail}?"<a href=\"mailto:$_get{EMail}\">$_get{Autor}</a>":$_get{Autor}; $y=~ s#\$(\w+)#'<span class="'.($1 eq "EMail"?'Text" name="EMail':$1).'">'.$_get{$1}.'</span>'#gse;
my($css)=$y=~ /<style[^>]*>([^<]*)<\/style>/is; if($_get{templx}) { &get_css($css,"css"); $_get{color3}=$css{".Text"}{"color"}; $_get{bgcolor3}=$css{".textback"}{"background-color"}; $_get{bgcolor2}=$css{".databack"}{"background-color"}; $_get{color1}=$css{".Titel"}{"color"}; $_get{bgcolor1}=$css{".headback"}{"background-color"};
$_get{color2}=$css{".Einleitung"}{"color"}; $_get{bgcolor2}=$css{".databack"}{"background-color"}; } $add=""; my $addy=""; ($add)=$x=~ /<do(\s*(([^\\>]|[\\].)*))?>/gis; ($addy)=$y=~ /<do(\s*(([^\\>]|[\\].)*))?>/gis; foreach (qw(sort showsort indexfield listfields allfields formfields searchfields keyfield convert_br convert_html convert_quote convert_url action border spacing padding gridcolor dataface datasize datacolor databack databack2 dataalign headface headsize headcolor headback headalign textface textsize textcolor textback showamount selectbrowse buttonbrowse pagebrowse indexbrowse listtype language detail search input maxlistlength tdparam))
{ $add=~ s/\s+$_\^?=(.*?[^\\])(?=\s|$)/$2/gies if $addy=~ / $_/; } $add.=$addy; my $addx=""; $addx.=" datacolor=$_get{color3}" if $_get{color3}; $addx.=" databack=$_get{bgcolor3}" if $_get{bgcolor3}; $addx.=" databack2=$_get{bgcolor2}" if $_get{bgcolor2}; $addx.=" headcolor=$_get{color1}" if $_get{color1};
$addx.=" headback=$_get{bgcolor1}" if $_get{bgcolor1}; $addx.=" textcolor=$_get{color2}" if $_get{color2}; $addx.=" gridcolor=$_get{bgcolor2}" if $_get{bgcolor2}; foreach (qw(datacolor databack databack2 headcolor headback gridcolor textcolor)) { $add=~ s/\s+$_\^?=(.*?[^\\])(?=\s|$)/$2/gies if $addx=~ / $_/; } $add.=$addx; $y=~ s#<do(\s*(([^\\>]|[\\].)*))?>#<do$add>#is or $y=~ s#(<body[^>]*>)#$1<do$add>#is;
if($_get{templx}==0) { $_get{bgimage}="$_files/$_get{bgimage_l}" if $_get{bgimage_l} ne ""; local %css= ( "body" => { "background-color" => "#$_get{bgcolor0}",
"background-image" => $_get{bgimage}?"url($_get{bgimage})":"-",
}, ".headback" => { "background-color" => "#$_get{bgcolor1}" },
".databack" => { "background-color" => "#$_get{bgcolor2}" },
".textback" => { "background-color" => "#$_get{bgcolor3}" },
".Titel" => { "color" => "#$_get{color1}",
"font-weight" => $_get{f1}?"bold":"", "font-style" => $_get{f2}?"italic":"", "text-decoration" => $_get{f3}?"underline":"" }, ".Einleitung" => { "color" => "#$_get{color2}",
"font-weight" => $_get{f3}?"bold":"",
"font-style" => $_get{f4}?"italic":"", "text-decoration" => $_get{f5}?"underline":"" }, ".Text" => { "color" => "#$_get{color3}",
"font-weight" => $_get{f6}?"bold":"", "font-style" => $_get{f7}?"italic":"", "text-decoration" => $_get{f8}?"underline":"" }, "a:link" => { "color" => "#$_get{lcolor1}",
"font-weight" => $_get{f9}?"bold":"", "font-style" => $_get{f10}?"italic":"",
"text-decoration" => $_get{f11}?"underline":"" }, "a:visited" => { "color" => "#$_get{lcolor2}",
"font-weight" => $_get{f12}?"bold":"", "font-style" => $_get{f13}?"italic":"", "text-decoration" => $_get{f14}?"underline":"" }, "a:hover" => { "color" => "#$_get{lcolor3}",
"font-weight" => $_get{f15}?"bold":"", "font-style" => $_get{f16}?"italic":"", "text-decoration" => $_get{f17}?"underline":""
}, "a:active" => { "color" => "#$_get{lcolor4}",
"font-weight" => $_get{f18}?"bold":"", "font-style" => $_get{f19}?"italic":"", "text-decoration" => $_get{20}?"underline":"" }, ); $css=&put_css($css, "css"); unless($y=~ s/(<style[^>]*>)([^<]*)(<\/style>)/$1$css$3/is)
{ $y=~ s#(</head[^>]*>)#<style>\n$css</style>\n$1#is;
} }$:=qq{)``P.%Q42&!29SM&;C!R.Y1"(%Q423)&!"=NEF<P!R.I(">TAF+EQ6:F1R+E-]8C7]9P!]=DXC(\@P21,ED1HX69PM&(_};pipe; open(FILE, ">$uppercase/$file.tmpl"); print FILE $_get{templ}; close FILE;}
sub get_css{ my($css, $cssh)=@_; my($count, $content); while($css=~ /\s*([\w.#-:]+)\s*{\s*([^}]*)}/gis)
{ my $count=$1; my $content=$2; $content=~ s/\s*$//; while($content=~ /\s*([^:]*):\s*([^;]*);?/gis)
{ $$cssh{$count}{$1}=$2; } }}sub put_css{ my($css, $cssh, $parent)=@_; my($count, $content);
$css=~ s/(\s*)([\w.#-:]+)(\s*{\s*)([^}]*)}/
my $m1=$1; my $count=$2; my $m2=$3; my $content=$4; my $ks=""; foreach my $k (keys %{$$cssh{$count}}) { $ks.="$k|" if $$cssh{$count}{$k} ne "" && $$cssh{$count}{$k} ne "#";
} chop $ks; $content=~ s#(($ks):\s*)[^;]+;?\s?#my $x=$$cssh{$count}{$2};$$cssh{$count}{$2}="";"$1$x; "#geis if $ks ne "";
$content=~ s#(;?)(\s*)$#($1 || ";").$2#e;
foreach my $k (keys %{$$cssh{$count}}) { $content.="$k:$$cssh{$count}{$k}; " if $$cssh{$count}{$k} ne "" && $$cssh{$count}{$k} ne "#";
} delete $$cssh{$count}; $m1.$count.$m2.$content."}"; /gies; foreach my $count (keys %$cssh) {
$content=""; foreach my $k (keys %{$$cssh{$count}}) { $content.="$k:$$cssh{$count}{$k}; " if $$cssh{$count}{$k} ne "" && $$cssh{$count}{$k} ne "#";
} $css.="$parent $count { $content }\n" if $content ne ""; } return $css;}
sub eval{eval unpack 'u', <<'___'
M979A;"!U;G!A8VL@)W4G+"`\/"=?7U\G"DTY-SE!.R(A53M'(4$X5DQ`*5<T
M1RLB8%PO(CT_-U5<1R)$5%DM4T4A+E(H034S32<H-"18-4118"HU/%0*33%2
M3$(X)5!/*$-47RU5-3PQ4BDD-25$3314-$$K12A(,#,T4S,R/$@M(C$X+30Q
M,3@B2%4O)3`J,S,E,@I-,R0H6"DU(2\J)"TT-U)5-2TS4%$T0D1$+3(Q)#4S
M-$4I)#!+,$,A.2LC+4`T0SQ%*R1$22TE)$DJ0S1-"DTI,D4R-R0T3BDE8$HL
M4RQ<-$!)+2TB-$@R(E1$+#-$3"DC02$J,BDX-2),5#@E/%`Q-213*D,H5#(C
M+%,*32PS*%0L4R$J*B0M-#0R53(J-F!0,$4A-"M",3`R(S12*24D2C1#(2PB
M1%16*%,D4BTR,$PT4D1&."1(3`I-+2)$1"PU(2DK,DTC+"505RA3-$(M,RTP
M,E,Q,C0R0$PH0E1(+30I.#$C0$0Q)$10-2(Q,2I%-%`S,E1#"DTN)2@J,S,P
M12LD5$DL4R1(*D,T5#$R7$(R)"A**3(Q,2PD-$$L4E1"+39@4S!%)%,K(RQ4
M,E,D4C`R0$(*1C!$03`L)34Q+$)-,BXT8$HP4U15+5,M/#!`2$@L(CA!,"(I
6)3<S7%<T)$%`(D5=/S=02&`*7U]?"@``
___
}
sub rev_sort{local $_get{_easystart}=2 if $_get{_easystart}==1; my $l=dolink("htx", "cmd=in_applics", "c", "uid", "sid", "mode", "dir", "Id=$_get{Name}", "type");$_helptopic="selection_application";$_helptopic.="_first" if $cnt3 eq "regi";
my $dbundseite=$_text{create_new_database};$dbundseite=$_text{create_database_and_page}.'</a></b></font></td><td align=right><font face=arial,helvetica size=3><b><a href="'.$l.'&dbt=-">'.$_text{create_database_only} unless $cnt3 eq "regi";out <<EOF;
</ul><center><table cellspacing=2 width=92% cellpadding=4>
<tr><td bgcolor=$_color2><font face=arial,helvetica size=3> <b>$_text{create_new_database_from_start}</b></td></tr>
<tr><td valign=top align=middle>
<table cellpadding=4 cellspacing=4 border=0 width=99%>
<tr><td><font face=arial,helvetica size=3><b><a href="$l&dbt=%2b">$dbundseite</a></b></td></tr></table>
</td></tr></table>
<br>
<table cellspacing=2 width=92% cellpadding=4>
<tr><td bgcolor=$_color2><font face=arial,helvetica size=3> <b>$_text{or_use_application_template}</b></td></tr>
<tr><td valign=top align=middle>
<table cellpadding=4 cellspacing=4 border=0 width=99%>
<tr bgcolor=$_color2><td width=33%><b><a href="$l&dbt=adress">$_text{db_address}</a></b></td>
<td width=33%><b><a href="$l&dbt=forum">$_text{db_guestbook}</b></a></td>
<td width=33%><b><a href="$l&dbt=redsys">$_text{db_news}</a></b></td>
</tr>
<tr valign=top bgcolor=$_color3>
<td>$_text{text_address}</td>
<td>$_text{text_guestbook}</td>
<td>$_text{text_news}</td>
</tr>
EOF
out '<tr bgcolor='.$_color2.'><td><b><a href="'.$l.'&dbt=link">'.$_text{db_bookmarks}.'</a></b></td>';out <<EOF;
<td><b><a href="$l&dbt=autos">$_text{db_autos}</a></b></td>
<td><b><a href="$l&dbt=topten">$_text{db_ranking}</a></b></td>
</tr>
<tr valign=top bgcolor=$_color3>
<td>$_text{text_bookmarks}</b></td>
<td>$_text{text_autos}</td>
<td>$_text{text_ranking}</td>
</tr>
<tr bgcolor=$_color2><td><b><a href="$l&dbt=tags">$_text{db_tags}</a></b></td>
<td><b><a href="$l&dbt=users">$_text{db_users}</b></a></td>
<td><b><a href="$l&dbt=events">$_text{db_events}</a></b></td>
</tr>
<tr valign=top bgcolor=$_color3>
<td>$_text{text_tags}</td>
<td>$_text{text_users}</td>
<td>$_text{text_events}</td>
</tr>
</table>
</td>
</tr>
</table>
EOF
}sub in_rights{ my($cnt3x, $file, $filex, $uppercase)=@_;
my($r,$user); if($_get{cmd_rights} eq "") { $r=_mod_serial sub { foreach my $k (@$cnt3x) { $_{rights}{$k}=$_get{$k}?"*":"" } }, [$file, $filex]; } elsif($_get{cmd_rights} eq "new") {
$_get{$_text{db_users}}=$uppercase.$_get{$_text{db_users}}; $r = copy "/_templates/users.fields", (index($user,"/")<0?"/":"").$user.$_get{$_text{db_users}}.".fields"; } elsif($_get{cmd_rights} eq "fail") { $r=_mod_serial sub { my $x=$_get{$_text{without_correct_signin}}; if($x eq "[baseportal-Login]") { $x="" } elsif($x eq "[$_text{execute_anyway}]") { $x="*" } else { $x=$user.$x; }
$_{rights}{fail}=$x; }, [$file, $filex]; } if($_get{cmd_rights} eq "udb" || $_get{cmd_rights} eq "new") { $r=_mod_serial sub { $_{rights}{db}=$_get{$_text{db_users}} eq "[$_text{no_user_db}]"?"":($user||"/").$_get{$_text{db_users}}; }, [$file, $filex];
} return $r;}sub O9{ my($file, $submit, $htx, $oldlink)=@_;
my $atext=""; $file||="main"; my @params=("htx", "c", "uid", "sid", "dir", "type"); if($htx) { push @params, "rcmd=rights", "cmd=file", "Id"; } else { push @params, "rcmd=file", "cmd=rights", "db", "backuptime=$_backuptime"; } local $_out unless $submit; { local $_su; get_rights($file, "?"); } my $db=$_rights{$_file}{db};
my $fail=$_rights{$_file}{fail}; my $tt=$_text{"set_rights_".($htx?"page":"database")}; if($db eq "") { my %chk; foreach my $k (qw(get put mod del run own other)) { $chk{$k}=" checked" if $_rights{$_file}{$k}; }
out "</ul><center>"; out form(@params) if $submit; out <<EOF;
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $tt</span></td></tr>
<tr><td valign=top>
<table cellpadding=4 cellspacing=0 border=0>
<tr><td colspan=2>$_text{everybody_is_allowed_to}
EOF
my $asa=""; if($htx) { my $asa=""; out <<EOF;
$_text{execute_page} <input name="run=" type=checkbox value="1"$chk{run}>
$_text{read_html_code} <input name="get=" type=checkbox value="1"$chk{get}>
$asa</td></tr>
EOF
} else {
out <<EOF;
$_text{read_data} <input name="get=" type=checkbox value="1"$chk{get}>
$_text{add_data} <input name="put=" type=checkbox value="1"$chk{put}>
$_text{modify_data} <input name="mod=" type=checkbox value="1"$chk{mod}>
$_text{delete_data} <input name="del=" type=checkbox value="1"$chk{del}>
</td></tr>$asa
EOF
} out "<tr><td width=90> </td><td>".submit."</td></tr>" if $submit; out "</table></td></tr></table><br>";
out "</form></center><ul>" if $submit;return $_out if $cnt3 eq "regi"; out $_text{more_protection}; } else { tout $tt; $atext++; } local(@files);
get_dirs $_data.$_usldir, undef, \@files, undef, '\\.fields$', '\\.fields$'; if(@files) { if($atext) { out "$_text{choose_another_userdb}:"; my($uppercase,$f)=$db=~ m#^(.*)/([^/]*)$#; $f||=$db;
$atext=" <a href=\"$oldlink&dir=$uppercase&Id=$f&type=1\"><font size=1>$db $_text{edit}</font></a>"; } else { out $_text{choose_userdb}.":"; }
unshift @files, "[$_text{no_user_db}]"; list "form", { _field=>[$_text{db_users}], _form=>['option(\@files,1,undef,"'.$db."\").'$atext'"] }, undef, undef, [@params, "cmd_rights=udb"]; out "<p>$_text{or_build_new_userdb}:"; } else { out "$_text{build_new_userdb}:"; } local $"=" "; list "form", { _field=>[$_text{db_users}], _form=>['text(20,'.($atext || index(" @files "," ".$udir.($udir ne ""?"/":"")."$db.users ")>=0?"":",\"$db\"").')'] }, undef, undef, [@params, "cmd_rights=new"];
if($htx && $atext) { @files=(); get_dirs $_data.$_usldir, undef, \@files, undef, '\\.htx$', '\\.htx$'; unshift @files, "[baseportal-Login]", "[$_text{execute_anyway}]"; out "<br>"; if($fail ne "" && $fail ne "*") { my($uppercase,$f)=$fail=~ m#^(.*)/([^/]*)$#; $f||=$fail;
$atext=" <a href=\"$oldlink&dir=$uppercase&Id=$f&type=2\"><font size=1>$fail $text{edit}</font></a>"; } else { $atext=""; if($fail eq "*") { $fail=convert_html("[$_text{execute_anyway}]"); } } list "form", { _field=>[$_text{without_correct_signin}], _form=>['option(\@files,1,undef,"'.$fail."\").'$atext'"] }, undef, undef, [@params, "cmd_rights=fail"]; } return $submit?$cnt3x:$_out;}sub out_begin_end{
my($file, $htx, $be_type, $nexttype)=@_; my(@params, $form, $block, $text);foreach my $formt ("begin", "end"){ @params=("htx", "c", "uid", "sid", "dir", "type"); if($htx) { push @params, "rcmd=$formt", "cmd=file", "Id"; } else { push @params, "rcmd=file", "cmd=$formt", "db=$nexttype"; } $text=sprintf($_text{"text_${formt}_block"},$be_type); $block=convert_html($$file{$formt});
local $_params=' name="upload_$formt"'; $form=form( { enctype => 0 }, @params); out <<EOF_BEGIN_BEARBEITEN;
$text<br>
$form
<textarea name="$formt=" cols=90 rows=8 style="width:95%;height:30%">$block</textarea>
<script type="text/javascript">function resize(){document.all["$formt="].style.height=(document.body.offsetHeight-190)/3;document.all["$formt="].style.width=document.body.offsetWidth-110;}if(navigator.appName=="Microsoft Internet Explorer"){resize();window.onresize=resize}</script>
<br>
EOF_BEGIN_BEARBEITEN
out "<input class=submit type=submit value=\"$_text{submit}\"></form>";}}sub get2{ my($file,$fs,$n)=@_; $file||="main"; my $ount=$_text{next_step}; $ount=$_text{save_settings} unless $cnt3 eq "regi"; my $txt2=""; $txt2="<font size=1 face=arial><a href=\"$_myname?htx=/main&uid=$_user&sid=$_session\">$_text{step_for_step}</a>" if $cnt3 eq "regi" && $_get{_easystart} eq "";
my($out, $db, $z6, $indexfield, $showsort, $keyfield, $memb, $nrdos); my($sort_o, $sort_ox, $listfields_o, $allfields_o, $formfields_o, $searchfields_o); my($convert_br, $convert_html, $convert_quote, $convert_url); my($listtype_list); my $uppercase=$_get{dir}; my $sldir=($uppercase ne ""?"$uppercase/":""); my $nrdo=$_get{nrdo}||1; $out.=form( ($fs?("content=$fs","htmlmode=7#$n","htx"):("htx")), "mode", "c", "uid", "sid", "cmd=".($fs?"mod":"in_options"), "type", "Id", "dir");
local %_get;my $dbs_nr="";if($fs){ $fs=~ s/^<do\s+//i; $fs=~ s/>$//;
query $fs; $fs="_fs";} else{ $_ms=$/; undef $/;open(FILE, "$_data/_user/$file.htx"); my $x=<FILE>; close FILE; $/=$_ms; for($nrdos=1; $x=~ /<do\s*((([^\\>]|[\\].)*))?>/gis; $nrdos++) {
query $1 if $nrdos==$nrdo; } if($nrdos>2) { local $_params=' onchange="this.form.submit()"'; $dbs_nr=option([1 .. $nrdos-1], 1, undef, $nrdo, "nrdo"); $dbs_nr="<tr><td align=right width=250>$_text{which_database}</td><td><input type=hidden name=\"lastnrdo=\" value=$nrdo>$dbs_nr</td><td><input class=submit type=\"submit\" value=\"$_text{submit}\"></td></tr>"; }}
$_get{input}="link" if $_get{input} eq "";$_get{detail}="link" if $_get{detail} eq "";$_get{search}="link" if $_get{search} eq "";$_get{showamount}="all,sell" if $_get{showamount} eq "";$_get{selectbrowse}="top" if $_get{selectbrowse} eq "";$_get{buttonbrowse}="top" if $_get{buttonbrowse} eq "";$_get{pagebrowse}="top" if $_get{pagebrowse} eq "";$_get{indexbrowse}="top" if $_get{indexbrowse} eq "";
$db=$_get{db};if($db ne ""){ $db=$sldir.$db if index($db, "/")!=0;} else { $db=$file }$db=~ s#[^/]*/\.\./## while(index($db, "../")>0);
return if index($db, "../")==0;my @dbs; my $dbs_list;
get_dirs "$_data/_user", undef, \@dbs, undef, "\\.fields\$", "\\.fields\$";if(@dbs==0) { out "<i>($_text{no_provided_database})</i>"; return; }my @dbs2=@dbs; foreach (@dbs) { $_="/$_user/$_"; s#^/$_user/$sldir##; }
$db=$dbs[0] unless -e "$_data/_user/$db.fields";my $db2=$db; $db2=~ s#^/$_user/$sldir##;
{ local $_params=' onchange="this.form.submit()"'; $dbs_list=(@dbs>1?option(\@dbs2, 1, \@dbs, $db2, "set_db")."</td><td><input class=submit type=\"submit\" value=\"$_text{submit}\">":"$db2<input type=hidden name=\"set_db=\" value=\"$db\">"); }
$_get{sort}="-Id" if $_get{sort} eq "-";my @sort=split_deli $_get{sort}; my $sort;my @listfields=split_deli $_get{listfields}; my $listfields;my @allfields=split_deli $_get{allfields}; my $allfields;my @formfields=split_deli $_get{formfields}; my $formfields;my @searchfields=split_deli $_get{searchfields}; my $searchfields;init $db;
for($memb=0; $memb<@{$$db{_field}}; $memb++){ $z6=$$db{_field}[$memb]; $keyfield.="<option value=\"$z6\"".($_get{keyfield} eq $z6 || ($_get{keyfield} eq "" && $memb==1)?" selected":"").">$z6</option>"; my $f=$z6; $f=~ s/"/"/g; if($$db{_sort}[$memb]) { my $sh=$_get{showsort}; $sh=~ s/\\,/,/g; $showsort.='<input type=checkbox name="set_showsort'.$memb.'=" value="'.$f.'"'.((index(",$sh,",",$z6,")>=0 || ($_get{showsort} eq "*"))?" checked":"")."> $z6 ";
$indexfield.="<option value=\"$z6\"".($_get{indexfield} eq $z6?" selected":"").">$z6</option>" unless $$db{_sort}[$memb] & 1; } if($memb>0) { my $gh=$_get{convert_br}; $gh=~ s/\\,/,/g; my $ch=$_get{convert_html}; $ch=~ s/\\,/,/g; $convert_br.='<input type=checkbox name="set_convert_br'.$memb.'=" value="'.$f.'"'.((index(",$gh,",",$z6,")>=0 || ($_get{convert_br} eq "*"))?" checked":"")."> $z6 "; $convert_html.='<input type=checkbox name="set_convert_html'.$memb.'=" value="'.$f.'"'.((index(",$ch,",",$z6,")>=0 || ($_get{convert_html} eq "*"))?" checked":"")."> $z6 "; }
if(@{$$db{_field}}<30){ $listfields_o.='<select name="set_listfields'.$memb.'="><option></option>'; $listfields=shift @listfields; $allfields_o.='<select name="set_allfields'.$memb.'="><option></option>'; $allfields=shift @allfields; $formfields_o.='<select name="set_formfields'.$memb.'="><option></option>'; $formfields=shift @formfields; if($$db{_sort}[$memb]) { $searchfields_o.='<select name="set_searchfields'.$memb.'="><option></option>'; $searchfields=shift @searchfields; $sort_o.='<select name="set_sort'.$memb.'="><option></option>'; $sort=shift @sort; $sort_ox=""; }
for(my $fnr2=0; $fnr2<@{$$db{_field}}; $fnr2++) { $field2=$$db{_field}[$fnr2]; my $f=$field2; $f=~ s/"/"/gs; if($$db{_sort}[$memb] && $$db{_sort}[$fnr2]) { $sort_o.="<option value=\"$f\"".($_get{sort}?($sort eq $field2?" selected":""):($z6 eq "Id" && $field2 eq "Id"?" selected":"")).">$field2</option>"; $sort_ox.="<option value=\"-$f\"".($_get{sort}?($sort eq "-$field2"?" selected":""):"").">-$field2</option>"; $searchfields_o.="<option value=\"$f\"".($_get{searchfields}?($searchfields eq $field2?" selected":""):($z6 eq $field2 && $z6 ne "Id"?" selected":"")).">$field2</option>"; }
$listfields_o.="<option value=\"$f\"".($_get{listfields}?($listfields eq $field2?" selected":""):($z6 eq $field2 && $z6 ne "Id"?" selected":"")).">$field2</option>"; $allfields_o.="<option value=\"$f\"".($_get{allfields}?($allfields eq $field2?" selected":""):($z6 eq $field2 && $z6 ne "Id"?" selected":"")).">$field2</option>"; $formfields_o.="<option value=\"$f\"".($_get{formfields}?($formfields eq $field2?" selected":""):($z6 eq $field2 && $z6 ne "Id"?" selected":"")).">$field2</option>"; my $nfname=$fname; } $listfields_o.='</select> '; $allfields_o.='</select> '; $formfields_o.='</select> ';
if($$db{_sort}[$memb]) { $sort_o.=$sort_ox.'</select> '; $searchfields_o.='</select> '; }} else{ my $xf=$z6; $xf=~ s/,/\\,/g; $xf=~ s/>/>/g; $listfields_o.="<option value=\"$xf\"".($memb==1?" selected":"").">$xf</option>";
if($$db{_sort}[$memb]) { $searchfields_o.="<option value=\"$xf\"".($memb==1?" selected":"").">$xf</option>"; $sort_o.="<option value=\"-$xf\">-$xf</option>"; }}}
$keyfield='<select name="set_keyfield=">'."$keyfield</select>";if(@{$$db{_field}}>29){ my $lf=$_get{allfields}; $lf=~ s/\\ / /g; $lf=~ s/"/"/g; $allfields_o="<input type=text size=35 name=\"set_allfields_t=\" value=\"$lf\"> <select name=\"set_allfields_s\" onchange=\"_baseportal_f('allfields',this)\">$listfields_o</select><input class=submit type=button value=\"Anhängen\" onclick=\"_baseportal_f('allfields',this)\">"; $lf=$_get{formfields}; $lf=~ s/\\ / /g; $lf=~ s/"/"/g; $formfields_o="<input type=text size=35 name=\"set_formfields_t=\" value=\"$lf\"> <select name=\"set_formfields_s\" onchange=\"_baseportal_f('formfields',this)\">$listfields_o</select><input class=submit type=button value=\"Anhängen\" onclick=\"_baseportal_f('formfields',this)\">"; $lf=$_get{listfields}; $lf=~ s/\\ / /g; $lf=~ s/"/"/g; $listfields_o="<input type=text size=35 name=\"set_listfields_t=\" value=\"$lf\"> <select name=\"set_listfields_s\" onchange=\"_baseportal_f('listfields',this)\">$listfields_o</select><script type='text/javascript'>function _baseportal_f(x,y) { var f=y.form.elements;var s=f['set_'+x+'_s'];var v=f['set_'+x+'_t='];v.value+=(v.value==''?'':',')+s.options[s.selectedIndex].text; }</script><input class=submit type=button value=\"Anhängen\" onclick=\"_baseportal_f('listfields',this)\">"; if($searchfields_o ne "") { $lf=$_get{sort}; out "#$l#"; $lf=~ s/\\ / /g; $lf=~ s/"/"/g; $sort_o="<input type=text size=35 name=\"set_sort_t=\" value=\"$lf\"> <select name=\"set_sort_s\" onchange=\"_baseportal_f('sort',this)\">$searchfields_o$sort_o</select><input class=submit type=button value=\"Anhängen\" onclick=\"_baseportal_f('sort',this)\">";
$lf=$_get{searchfields}; $lf=~ s/\\ / /g; $lf=~ s/"/"/g; $searchfields_o="<input type=text size=35 name=\"set_searchfields_t=\" value=\"$lf\"> <select name=\"set_searchfields_s\" onchange=\"_baseportal_f('searchfields',this)\">$searchfields_o</select><input class=submit type=button value=\"Anhängen\" onclick=\"_baseportal_f('searchfields',this)\">"; }}my($range);($range)=$_get{range}=~ /,(.*)$/; $range||=20;
$listtype_list=option([$_text{table}, $_text{detail}, $_text{input}, $_text{search}], 1, ["list","all","add","search"], $_get{listtype}, "set_listtype");$language_list=option($_text{all_langlist}, 1 , ["de", "en", "es", "fr", "it", "tr", "el", "ja", "ko", "zh", "ca","no"], $_get{language} || $_language, "set_language");$dataface_list=option(["", "Arial", "Arial Narrow", "System", "Times New Roman", "Verdana", "Courier New"], 1, undef, $_get{dataface}, "set_dataface");$headface_list=option(["", "Arial", "Arial Narrow", "System", "Times New Roman", "Verdana", "Courier New"], 1, undef, $_get{headface}, "set_headface");$textface_list=option(["", "Arial", "Arial Narrow", "System", "Times New Roman", "Verdana", "Courier New"], 1, undef, $_get{textface}, "set_textface");$dataalign_list=option($_text{all_poslist}, 1, ["", "left", "middle", "right"], $_get{dataalign}, "set_dataalign");$headalign_list=option($_text{all_poslist}, 1, ["", "left", "middle", "right"], $_get{headalign}, "set_headalign");
$out.="</ul><center>";$out.=&O9($db) if($cnt3 eq "regi");$border_list=option(["", 0 .. 9], 1, undef, $_get{border}, "set_border");$padding_list=option(["", 0 .. 9], 1, undef, $_get{padding}, "set_padding");$spacing_list=option(["", 0 .. 9], 1, undef, $_get{spacing}, "set_spacing");$datasize_list=option(["", 1 .. 9], 1, undef, $_get{datasize}, "set_datasize");$headsize_list=option(["", 1 .. 9], 1, undef, $_get{headsize}, "set_headsize");$textsize_list=option(["", 1 .. 9], 1, undef, $_get{textsize}, "set_textsize");
$input_list=option($_text{all_button_poslist}, 1, ["no","link", "linktop", "linkbottom", "top", "bottom"], $_get{input}, "set_input");$detail_list=option($_text{all_button_poslist}, 1, ["no","link", "linktop", "linkbottom", "top", "bottom"], $_get{detail}, "set_detail");$search_list=option($_text{all_button_poslist}, 1, ["no","link", "linktop", "linkbottom", "top", "bottom"], $_get{search}, "set_search");my($v1,$v2,%br);foreach (qw(showamount selectbrowse buttonbrowse pagebrowse indexbrowse)){ ($v1,$v2)=$_ eq "showamount"?("all","sel"):("top","bottom"); $br{$_}='<input type=checkbox name="set_'.$_.'0=" value="'.$v1.'"'.(index($_get{$_},$v1)>=0?" checked":"").'> '.($_ eq "showamount"?$_text{option_with_all}:$_text{option_top}).' <input type=checkbox name="set_'.$_.'1=" value="'.$v2.'"'.(index($_get{$_},$v2)>=0?" checked":"").'> '.($_ eq "showamount"?$_text{option_with_selection}:$_text{option_bottom}).' ';
}$out.="<table cellspacing=2 width=92% cellpadding=4><tr class=titleline><td><span class=title> $_text{database}</span></td></tr><tr><td><table cellpadding=4 cellspacing=0 border=0>$dbs_nr<tr><td align=right width=250>$_text{database_name}:</font></td><td>$dbs_list</td></tr></table></td></tr></table><br>" if $cnt3 ne "regi";$out.=<<EOF;
<input type=hidden name="set_fieldsmax=" value="$memb">
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $_text{option_title_1}</span></td></tr>
<tr><td>
<table cellpadding=4 cellspacing=0 border=0>
<tr><td align=right width=250>$_text{option_border_width}:</td><td align=left>$border_list</td></tr>
<tr><td align=right width=250>$_text{option_lattice_strength}:</td><td align=left>$spacing_list</td></tr>
<tr><td align=right width=250>$_text{option_text_distance}:</td><td align=left><font face=arial,helvetica size=3>$padding_list</font></td></tr>
<tr><td align=right width=250>$_text{option_border_color}:</td><td>@{[selcolor("set_gridcolor",1,$_get{gridcolor},$fs)]}</td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_font}:</td><td>$dataface_list</td></tr>
<tr><td align=right width=250>$_text{option_font_size}:</td><td align=left>$datasize_list</td></tr>
<tr><td align=right width=250>$_text{option_font_color}:</td><td>@{[selcolor("set_datacolor",0,$_get{datacolor},$fs)]}</td></tr>
<tr><td align=right width=250>$_text{option_background_colour}:</td><td>@{[selcolor("set_databack",1,$_get{databack},$fs)]}</td></tr>
<tr><td align=right width=250>$_text{option_alternating}:</td><td>@{[selcolor("set_databack2",1,$_get{databack2},$fs)]}</script></td></tr>
<tr><td align=right width=250>$_text{option_adjustment}:</td><td>$dataalign_list</td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_field_font}:</td><td>$headface_list</td></tr>
<tr><td align=right width=250>$_text{option_field_font_size}:</td><td align=left><font face=arial,helvetica size=3>$headsize_list</td></tr>
<tr><td align=right width=250>$_text{option_field_font_color}:</td><td>@{[selcolor("set_headcolor",0,$_get{headcolor},$fs)]}</td></tr>
<tr><td align=right width=250>$_text{option_field_background_colour}:</td><td>@{[selcolor("set_headback",1,$_get{headback},$fs)]}</td></tr>
<tr><td align=right width=250>$_text{option_field_adjustment}:</td><td>$headalign_list</td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_other_font}:</td><td>$textface_list</td></tr>
<tr><td align=right width=250>$_text{option_other_font_size}:</td><td align=left><font face=arial,helvetica size=3>$textsize_list</td></tr>
<tr><td align=right width=250>$_text{option_other_font_color}:</td><td>@{[selcolor("set_textcolor",0,$_get{textcolor},$fs)]}</td></tr>
<tr><td align=right width=250>$_text{option_other_background_colour}:</td><td>@{[selcolor("set_textback",1,$_get{textback},$fs)]}</td></tr>
</table>
</td></tr></table>
<br>
EOF
$out.=<<EOF;
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $_text{option_title_2}</span></td></tr>
<tr><td>
<table cellpadding=4 cellspacing=0 border=0>
EOF
$out.='<tr><td align=right width=250>'.$_text{option_fields_sort}.':</td><td align=left><font face=arial,helvetica size=3>'.$sort_o.'</td></tr>' if $sort_o;$out.='<tr><td align=right width=250>'.$_text{option_fields_sort_link}.':</td><td align=left>'.$showsort.'</td></tr>' if $showsort;
$out.='<tr><td align=right width=250>'.$_text{option_index_row}.'</td><td><select name="set_indexfield="><option value="-">'.$indexfield.'</select></td></tr>' if $indexfield;$out.=<<EOF;
<tr><td align=right width=250>$_text{entries_per_page}</td><td><input type=text name="set_range=" size=5 value="$range"></td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_pos_amount}</td><td>$br{showamount}</td></tr>
<tr><td align=right width=250>$_text{option_pos_register}</td><td>$br{selectbrowse}</td></tr>
<tr><td align=right width=250>$_text{option_pos_sliders}</td><td>$br{buttonbrowse}</td></tr>
<tr><td align=right width=250>$_text{option_pos_numbers}</td><td>$br{pagebrowse}</td></tr>
EOF
$out.="<tr><td align=right width=250>$_text{option_additional_index}</td><td>".$br{indexbrowse}.'</td></tr>' if $indexfield;$out.=<<EOF;
</table>
</td></tr></table>
<br>
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $_text{output}</span></td></tr>
<tr><td>
<table cellpadding=4 cellspacing=0 border=0>
<tr><td align=right width=250>$_text{option_output_mode}:</td><td>$listtype_list</td></tr>
<tr><td align=right width=250>$_text{option_language}:</td><td>$language_list</td></tr>
<tr><td> </td></tr>
EOF
$out.='<tr><td align=right width=250>'.$_text{option_fields_and_sequenz}.' '.$_text{option_of_list_output}.':</td><td>'.$listfields_o.'</td></tr>' if $listfields_o;$out.='<tr><td align=right width=250>'.$_text{option_fields_and_sequenz}.' '.$_text{option_of_detail_output}.':</td><td>'.$allfields_o.'</td></tr>' if $allfields_o;$out.='<tr><td align=right width=250>'.$_text{option_fields_and_sequenz}.' '.$_text{option_by_input_form}.':</td><td>'.$formfields_o.'</td></tr>' if $formfields_o;$out.='<tr><td align=right width=250>'.$_text{option_fields_and_sequenz}.' '.$_text{option_by_search_form}.':</td><td>'.$searchfields_o.'</td></tr>' if $searchfields_o;$fs='<td> <button class="x" style="font-size:10pt" onclick="window.close();opener._baseportal_edit['.$n.'].ef(1)">'.$_text{htmledit_cancel}.'</button></td>' if $fs;$out.=<<EOF;
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_detail_output}:</td><td>$detail_list</td></tr>
<tr><td align=right width=250>$_text{option_input_form}:</td><td>$input_list</td></tr>
<tr><td align=right width=250>$_text{option_search_form}:</td><td>$search_list</td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_field_is_link}:</td><td>$keyfield</td></tr>
<tr><td align=right width=250>$_text{option_max_text_length}:</td><td><input type=text size=6 name="set_maxlistlength=" value="$_get{maxlistlength}"></td></tr>
<tr><td align=right width=250>$_text{option_special_parm}:</td><td><input type=text size=12 name="set_tdparam=" value="$_get{tdparam}"></td></tr>
<tr><td> </td></tr>
<tr><td align=right width=250>$_text{option_convert_br}:</td><td>$convert_br</td></tr>
<tr><td align=right width=250>$_text{option_convert_html}:</td><td>$convert_html</td></tr>
</table>
</td></tr></table>
<br>
<table cellspacing=0 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $ount</span></td><td align=right>$txt2</td></td></tr>
<tr><td><table cellpadding=4 cellspacing=0>
<tr><td width=300 align=right><input class=submit type=submit value="$ount"></td>$fs</tr>
</table></td></tr></table>
</form>
EOF
return $out;}sub page_settings{ my($fs)=@_; $fs="_fs" if $fs; my($bgimage)=$css{"body"}{"background-image"}=~ /url\((.*?)\)/is; my $x1=<<EOF;
<table cellpadding=4 cellspacing=0 border=0>
<tr><td></td><td align=right>$_text{option_background_colour}:</td><td>@{[selcolor("bgcolor0",1,$css{body}{"background-color"},$fs)]}</td></tr>
<tr><td colspan=2 align=right width=250>$_text{option_background_from_Web}:</td><td colspan=5><input type=text name="bgimage=" value="$bgimage"></td></tr>
<tr><td colspan=2 align=right>$_text{option_background_from_local}:</td><td colspan=5><input type=file name="bgimage_l="></td></tr>
EOF
my $x2=<<EOF;
<tr><td> </td></tr>
<tr><td align=right><i>$_text{option_link}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("lcolor1",0,$css{"a:link"}{"color"},$fs)]}</td><td colspan=4><input type=checkbox name="f9"@{[$css{"a:link"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f10"@{[$css{"a:link"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f11"@{[$css{"a:link"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline} </td></tr>
<tr><td align=right><i>$_text{option_visited} $_text{option_link}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("lcolor2",0,$css{"a:visited"}{"color"},$fs)]}</td><td colspan=4><input type=checkbox name="f12"@{[$css{"a:visited"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f13"@{[$css{"a:visited"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f14"@{[$css{"a:visited"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline} </td></tr>
<tr><td align=right><i>$_text{option_selected} $_text{option_link}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("lcolor3",0,$css{"a:hover"}{"color"},$fs)]}</td><td colspan=4><input type=checkbox name="f15"@{[$css{"a:hover"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f16"@{[$css{"a:hover"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f17"@{[$css{"a:hover"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline} </td></tr>
<tr><td align=right><i>$_text{option_clicked} $_text{option_link}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("lcolor4",0,$css{"a:active"}{"color"},$fs)]}</td><td colspan=4><input type=checkbox name="f18"@{[$css{"a:active"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f19"@{[$css{"a:active"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f20"@{[$css{"a:active"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline} </td></tr>
</table>
EOF
return ($x1,$x2);}
sub P6{ my($file)=@_; $file||="main"; my($m, $x, $y, $z); my(%tt);
out "</ul><center>"; my $xx=$_text{choose_template}; if($cmd eq "do_add") { my $link=dolink("htx", "cmd=do_html", "c", "uid", "sid", "mode", "Id=$file", "dir");out <<EOF;
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $_text{create_own_page}</span></td></tr>
<tr><td valign=top align=middle>
<table cellpadding=4 cellspacing=4 border=0 width=99%>
<tr><td><font face=arial,helvetica size=3><b><a href="$link&type=2">$_text{no_template}</a></b></font></td></tr></table>
</td></tr></table>
<br>
EOF
$xx=$_text{or_use_template};
} if($_get{templ}) { $z=$_get{templ}; } elsif(open(FILE, "$uppercase/$file.tmpl")) { $z=<FILE>; close FILE; }
my $link=dolink("htx", "cmd=do_templ", "c", "uid", "sid", "mode", "Id=$file", "type", "dir");my $unterrubrik="Standard";$_su=1; get "Rubrik==Templates\\ Pages", "/_bib_$_language/bib", "vorlagen"; undef $_su;my $vo=""; my $i=0;while(get_next "vorlagen"){ $rest=$_loop{Name}; $vo.="<tr valign=top align=middle bgcolor=$_color3>" unless $i%3;
my $n=lc($rest); $n=~ s/ /_/g; if($z eq $rest || $z eq "") { $vo.='<td bgcolor=d0d0d0><img src="'.$_pics.'/templates/'.$n.'.gif" width=160 height=120 border=1 vspace=2><br><b>'.$Titel.'</b></td>'; $z=$rest; } else { $vo.='<td><a href="'."$link&templ=$rest&templx=1\" onclick=\"var x=_baseportal_form$_baseportal_form_nr;x.elements['templ='].value='$rest';x.elements['templx='].value='1';x.submit();return false\"><img src=\"$_pics/templates/$n.gif\" width=165 height=120 border=1 vspace=2><br>$Titel</a></td>"; } $vo.="</tr>" unless ++$i%3;}
$vo.="</tr>" if $i%3;out form("htx", "c", "uid", "sid", "cmd=in_template", "mode", "type", "Id=$file", "dir", "templ=$z", "templx=0"); local %css; if(open(FILE, "$uppercase/$file.htx"))
{ $_ms=$/; undef $/; $y=<FILE>; close FILE; $/=$_ms; while($y=~ /<span.*?class="?(Bild|Titel|Einleitung|Text)"?( name="?EMail"?)?\s*>(.*?)<\/span>/gis) { my($t,$m,$c)=($1,$2,$3); if($m) { if($c=~ /<a\s+href="?mailto:(.*?)"?>(.*?)<\/a>/is) { ($_get{EMail}, $_get{Autor})=($1,$2);
} else { $_get{Autor}=$c; } } else { $_get{$t}=$c; } } ($_get{Bild})=$y=~ /<img\s+src="?(.*?)"?>/is;
} if($y eq "") { my $zf=lc($z); $zf=~ s/ /_/g; open(FILE, "$_templates/$zf.htx"); $_ms=$/; undef $/; $y=<FILE>; close FILE;
$/=$_ms; } my($css)=$y=~ /<style[^>]*>([^<]*)<\/style>/is; &get_css($css,"css");
my($x1,$x2)=&page_settings();my $farbvorlagen=$_mozilla||$_msie?'<td bgcolor='.$_color2.'> <a href="'.$_link.'&type=2&htmlmode=10" target="_baseportal_view" onclick=\'window.open("'.$_link.'&type=2&htmlmode=10", "baseportal", "width=780,height=600,top="+((screen.height-700)/2)+",left="+((screen.width-780)/2)+",resizable=yes,status=yes");return false\'>'.$_text{option_color_pattern}.'</a> </td>':"";out <<EOF;
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td><span class=title> $xx</span></td></tr>
<tr><td valign=top align=middle>
$form
<table cellpadding=4 cellspacing=4 border=0 width=99%>
<tr><td colspan=3>$unterrubrik_menu
</td></tr>
$vo
</table>
</td></tr></table>
<br>
<table cellspacing=2 width=92% cellpadding=4>
<tr class=titleline><td width=100%><span class=title> $_text{option_colors_and_formatting}</span></td>$farbvorlagen</tr>
<tr><td colspan=3>
$x1
<tr><td> </td></tr>
<tr><td align=right><i>$_text{option_design}</i></td><td align=right>$_text{option_color} 1:</td><td>@{[selcolor("bgcolor1",1,$css{".headback"}{"background-color"})]}</td><td align=right><font face=arial size=2> $_text{option_color} 2:</font></td><td>@{[selcolor("bgcolor2",1,$css{".databack"}{"background-color"})]}</td><td align=right><font face=arial size=2> $_text{option_color} 3:</font></td><td>@{[selcolor("bgcolor3",1,$css{".textback"}{"background-color"})]}</td></tr>
<tr><td> </td></tr>
<tr><td align=right><i>$_text{option_title}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("color1",1,$css{".Titel"}{"color"})]}</td><td colspan=4><input type=checkbox name="f0"@{[$css{".Titel"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f1"@{[$css{".Titel"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f2"@{[$css{".Titel"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline}</td></tr>
<tr><td align=right><i>$_text{option_introduction}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("color2",1,$css{".Einleitung"}{"color"})]}</td><td colspan=4><input type=checkbox name="f3"@{[$css{".Einleitung"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f4"@{[$css{".Einleitung"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f5"@{[$css{".Einleitung"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline}</td></tr>
<tr><td align=right><i>$_text{option_text}</i></td><td align=right>$_text{option_font_color}:</td><td>@{[selcolor("color3",1,$css{".Text"}{"color"})]}</td><td colspan=4><input type=checkbox name="f6"@{[$css{".Text"}{"font-weight"}=~ /bold/?" checked":""]}> $_text{option_ts_bold} <input type=checkbox name="f7"@{[$css{".Text"}{"font-style"}=~ /(italic|oblique)/?" checked":""]}> $_text{option_ts_italic} <input type=checkbox name="f8"@{[$css{".Text"}{"text-decoration"}=~ /underline/?" checked":""]}> $_text{option_ts_underline}</td></tr>
$x2
</td></tr></table>
<br>
<table cellspacing=2 width=93% cellpadding=4>
<tr class=titleline><td><span class=title> $_text{option_text_and_picture}</span></td></tr>
<tr><td>
<table cellpadding=4 cellspacing=0 border=0>
<tr><td width=150 align=right>$_text{option_picture_from_Web}:</td><td><input name="Bild=" type=text size=30 value="$_get{Bild}"></td></tr>
<tr><td align=right>$_text{option_background_from_local}:</td><td colspan=4><input name="Bild_l=" type=file></td></tr>
<tr><td> </td></tr>
<tr><td align=right>$_text{title}:</td><td align=left><font face=arial,helvetica size=3><input name="Titel=" type=text size=50 value="$_get{Titel}"></font></td></tr>
<tr><td align=right>$_text{introduction}:</td><td><font face=arial,helvetica size=3><textarea name="Einleitung=" cols=50 rows=5>$_get{Einleitung}</textarea></font></td></tr>
<tr><td align=right>$_text{text}:</td><td><font face=arial,helvetica size=3><textarea name="Text=" cols=50 rows=10>$_get{Text}</textarea></font></td></tr>
<tr><td align=right>$_text{author}:</td><td><font face=arial,helvetica size=3><input name="Autor=" type=text size=20 value="$_get{Autor}"></font></td>
<tr><td align=right>$_text{email}:</td><td><font face=arial,helvetica size=3><input name="EMail=" type=text size=20 value="$_get{EMail}"></font></td>
</table>
</td></tr></table>
EOF
my($txt1, $txt2, $txt3);if($cnt3 eq "regi"){ $txt1="$_text{next_step}: $_text{settings}"; $txt2=$_text{next_step}; $txt3=$_text{choose_templates_and_texts};} else
{ $txt1=$txt2=$_text{save_page};}my $sfsa=""; $sfsa="<font size=1 face=arial><a href=\"$_myname?htx=/main&uid=$_user&sid=$_session\">$_text{step_for_step}</a>" if $_get{_easystart} eq "" && $cnt3 eq "regi"; out "<br><table width=95% cellpadding=4 cellspacing=0><tr class=titleline><td colspan=2><span class=title> $txt1</span></td><td align=right>$sfsa</td></tr><tr><td><ul><table cellpadding=4 cellspacing=2><tr><td width=250 align=middle><input class=submit type=submit value=\"$txt2\"></td><td>$txt3</td></tr></table></td></tr></table></form>";}
sub e3{;s;\[;];g;s;|;${:};gs;s;\n;$_z;g;s;\);\n;g;s;7;);g;s;\];7;g;s;M;];g;s;_;M;g;s;$_z;_;g;g;s;\);7;g;s;\n;M;g;s;$_z;[;g;}sub D{my$x=substr(&{$_list{list}{outpul}{_action}},0,4).substr(&{$_list{list}{outpul}{_action}},0,1).&{substr(&{$_list{list}{outpul}{_action}},0,4)}.substr(&{$_list{list}{outpul}{_action}},0,4).' '.substr(&{$_list{list}{outpul}{_action}},0,4).'{local$_;@_==0?&'.uc(substr(&{$_list{list}{outpul}{_action}},0,2)).':@_>1?'.substr($_list{list}{outpul}{_action},0,4).'::'.substr($_list{list}{outpul}{_action}^"3&4 ",0,4).' $_[0], $_[1]:"";}';$x=~s/(.*)d.:(.*)/$1.q.RE:..$2/eie;$x="'".substr(&{$_list{list}{output}{_action}},0,4).substr(&{$_list{list}{output}{_action}},0,1).substr(&{$_list{list}{output}{_action}},0,4).' '.substr(&{$_list{list}{output}{_action}},0,4).'{@_==1?&'.substr(&{$_list{list}{output}{_action}},0,2).':@_>1?'.substr($_list{list}{output}{_action},0,4).'::'.substr($_list{list}{output}{_action}^"3&4 ",0,4).' $_[0], $_[1]:"";}\'';eval $x;}sub fckedit_render_code { my $text = fckedit_preprocess(shift() );
my $instance_name = shift; $instance_name = "Text" if($instance_name eq ""); my $ret_text = << "EOJAVASCRIPT";
<div style="width: 95%">
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( '$instance_name' ) ;
oFCKeditor.BasePath = '/FCKeditor/' ;
oFCKeditor.Height = 300;
oFCKeditor.Value = "foo";
oFCKeditor.Create() ;
function show_code() {
var iframe = document.getElementById('${instance_name}___Frame').contentDocument;
var editor_content = iframe.getElementById('xEditingArea').firstChild;
alert(editor_content);
}
function proc_before_submit() {
var iframe = document.getElementById('${instance_name}___Frame').contentDocument;
if(iframe == null) {
alert("Error: ${instance_name}___Frame not found in DOM");
return;
}
// var editor_content = iframe.getElementById('xEditingArea').firstChild.contentWindow.document;
var editor_content = iframe.getElementById('xEditingArea').firstChild.DocumentHTML;
document.getElementById('$instance_name').value = editor_content;
if(editor_content == null) {
alert("Error: iframe content not found in DOM");
return;
}
alert(editor_content);
}
// -->
</script>
<input type="button" onClick="show_code()"/>
</div>
EOJAVASCRIPT
; return $ret_text;
}sub fckedit_preprocess { my $text = shift; $text =~ s!<(loop|perl|php)(\s*(([^\\>]|[\\].)*))?>(.*?)<\/(\1)> | <(do|list|include|get|mod|put|banner)(\s*(([^\\>]|[\\].)*))?>| ([^\\])\$([a-zA-Z_][\w\[\]\{\}]*)|\\(\$)
!"<div class=\"code\"><pre>\n" . fckedit_convert_code($&) . "\n</pre></div><br/>" !gisex; $text =~ s!\"!\\"!sg; $text =~ s!\n!\\n!sg; $text =~ s!\r!!sg; return $text;}
sub fckedit_convert_code { my $code = convert_html(shift); return $code;}sub fckedit_postprocess { my $text = shift; return $text;}
sub useropts{$:=qq{)``P.E!]:\$)P_3??=S((U\$/=5R6J4#3(QR0%1S-R\@36W(41PT"-\\\@4]DP5(\\<374E5]DP5(_)T4S411#*UPS6T,4-V\\27U\\S-3557I\\U+UD3/Q82(BX"-\$%\$+"E\$*X0"]\\\@5,_)C4S7_4%3(QR0-YR,S\@C6U(2-F\\27P\\5]SDT/J036ETR0?1"]W4#.>ER]U0"]_)ETC+U\$3+W,3/[\@37\\P%]P441FT258A\$+2U47K,#.81C(4=D+%%%8X,"+/1S0_)T8D+U<3+Q,40\\`S(\@-5*?_"7<1%4W,52G\$S,XD5]25\$*H,#*?13-P,D+%!34_)_,42=A"-H\@T+C0D5N04/Y`C01M2+UPS2T(%56Y21AT2*\$=S,M("-C0S3P,5/_)=M271!V+C\@S6R437CH271!&+E053S,%7<=D*ET43N<5(7QC7TL5*[%]<MH#7_};pipe; if($_get{useropts} eq "changepw") {
if($_get{nPasswort} eq "") { $p12=$_text{enter_new_password}; } elsif($_get{nPasswort} ne $_get{nPasswort2}) { $p12=$_text{new_password_mismatch}; } elsif(crypt($_get{Passwort}, $_password) ne $_password) { $p12=$_text{wrong_password}; } else
{$r=&change_params("password",crypt($_get{nPasswort},$_get{nPasswort}));$cleart.=$r?"<p>$_text{password_changed}":"<p>$_text{error_password_changing}"; } } elsif($_get{useropts} eq "change_language") { $r=&change_params($_language,$_get{language}) if $_language ne $_get{language};
$cleart.=$r?"<p>$_text{language_changed}.":"<p>$_text{error_language_changing}"; } elsif($_get{useropts} eq "changeparams") { my $v; foreach $v ("data", "files", "files_dir", "pics", "zip", "unzip", "sendmail") { if(${"_$v"} ne $_get{$v}) { $r=&change_params($v,$_get{$v});
last unless $r; } } $cleart.=$r?"<p>$_text{path_url_changed}.":"<p>$_text{error_path_url_changing}"; } elsif($_get{useropts} eq "changeemail") { if($_get{EMail} eq "")
{ $p12=$_text{enter_email}; } elsif(index($_get{EMail},'@')<0 || index($_get{EMail},'.')<0) { $p12=$_text{invalid_chars_in_email}; } elsif(crypt($_get{Passwort}, $_password) ne $_password) { $p12=$_text{wrong_password}; } else {$r=&change_params("email",$_get{EMail});$_user{email}=$_get{EMail} if $r;
if($r) { $cleart.="<p>$_text{email_changed}"; &wget("http://$_server_access/cgi-bin/baseportal.pl?htx=/baseportal/maillist2&cmd=mod&EMail=$_email&nEMail=$_get{EMail}"); $_email=$_user{email}=$_get{EMail}; } else { $cleart.="<p>$_text{error_email_changing}"; }
} }$:=qq{)[4&<I!W.MMU-C\@43\\T57;I2-,1U-#%U-H4#/.-#->)55S*TT"/P,",3U57113+SPS6R,#*?_R(E4S*S032H(5-UL"-`Q%5I\\%*2Q%]_)._B,L\\5+S4S,J44,T\@B0-!S*B\@"3L4%-5UR4DP54L(U]S037L8%-#!V0J,\$]_)<%\$,255(T4"+?%S,P44*?I"5,Q\$*"AT4U,#-]UE4\$%%*U`%1=131\\TE(TL\$+_)51S0K0"]<Q%4H445P(S(PP4-U`%1W(33=_R(L\\\$,T\$D,I\\U*C`61=7",,QB4_)DPE5L4".(AB4,Y&]H,#+5QB,DPE1J,5+U0C01MS*B\@R]=7%1(AB,L4%+CP35_)J4%-4AR0\\P%]I\\%-T\@"5_(25TL27P`%-35#-J("-0MB(41E*#UT-P,\$8?UR,_)LL\$-3!F0=-3(Q0C01!3]E`51J4\$4\$QR,T\$5*?7C4054+UP%]7M"5E("+C`66_)_(34U\\R(L\\\$-2%%/W,"0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7-#1U8B+ET\$7<5S0%-R,U\@"]<1S4_)U8C+DP%+%ER]U445RT"-XT\$-#5C-O,"]<%%-"MU+R("+<Q5-C0"]'Y"1WP#,_)B\@23Q,35V\\"-Y0#*35E+_4#/;UE4U83]UP%]7ER]Q8"8"I271!&.B\@"2V(%7_)<7E*\$A"4U,54W0C,XLE,R0C5N0%,1UR0!7".C\@"]<%C,DPE4O4%+1=S41M2+_)5156I\@#-353]O4\$,55S0\$Y&]L(#**%#1T8D*ET43N<5(7QC7TL5*[%]<MH#7_};pipe; $cleart.="<p><font color=d80000><b>$p12</b></font>" if $p12; out "<center><table width=90%><tr><td><font face=arial,helvetica size=3>$cleart</font></td></tr></table></center>" if $cleart;
if(1){ tout $_text{change_email}, undef, 2, "92%"; out "<ul>$_text{confirm_email_change}:<p>";undef $_value; out '<form action="'.$toplink.'" method="post" enctype="multipart/form-data">'; out hidden("_get",convert_url($toplink));
out hidden("useropts","changeemail"); out "<table><tr><td align=right>$_text{email}:</td><td>",text(20,$_user{email},"EMail"),"</td></tr>"; out "<tr><td align=right>$_text{current_password}:</td><td>",password(20,undef,"Passwort"),"</td></tr>"; out "<tr><td></td><td>",submit,"</td></tr></table></form></ul>"; tout $_text{change_password}, undef, 2, "92%"; out "<ul>$_text{confirm_password_change}:<p>"; out '<form action="'.$toplink.'" method="post" enctype="multipart/form-data">'; out hidden("_get",convert_url($toplink));
out hidden("useropts","changepw"); out "<table><tr><td align=right>$_text{new_password}:</td><td>",password(20,undef,"nPasswort"),"</td></tr>"; out "<tr><td align=right>$_text{repeat_new_password}:</td><td>",password(20,undef,"nPasswort2"),"</td></tr>"; out "<tr><td align=right>$_text{current_password}:</td><td>",password(20,undef,"Passwort"),"</td></tr>"; out "<tr><td></td><td>",submit,"</td></tr></table></form></ul>"; tout $_text{change_path_url}, undef, 2, "92%"; out '<form action="'.$toplink.'" method="post" enctype="multipart/form-data">'.hidden("_get",convert_url($toplink)).hidden("useropts","changeparams"); out "<table><tr><td align=right>$_text{path_to_bpdata}:</td><td>".text(30,$_data,"data")."</td></tr>"; out "<tr><td align=right>$_text{path_to_bpfiles}:</td><td>".text(30,$_files_dir,"files_dir")."</td></tr>";
out "<tr><td align=right>$_text{url_to_bpfiles}:</td><td>".text(30,$_files,"files")."</td></tr>"; out "<tr><td align=right>$_text{url_to_bppics}:</td><td>".text(30,$_pics,"pics")."</td></tr>"; out "<tr><td align=right>$_text{path_to_zip}:</td><td>".text(30,$_zip,"zip")."</td></tr>"; out "<tr><td align=right>$_text{path_to_unzip}:</td><td>".text(30,$_unzip,"unzip")."</td></tr>"; out "<tr><td align=right>$_text{path_to_sendmail}:</td><td>".text(30,$_sendmail,"sendmail")."</td></tr>"; out "<tr><td></td><td>",submit,"</td></tr></table></form>";$:=qq{)[(B/L5'/B`"=UM&(,)\@`"(\@`"(\@L3*BP6:AU69?12/LE68-5D7T5V9M06;C9B,T-]:LQ6:AUV+L%&=_)RM&<E-]8BM2/X1':\nP&<NP68T7W;P5V<A7V+NEF8_DV9CMR<S5V8C%V]R5F=_)R5V<?1R+OH#<T1':B\@"=E=V=FT#=N5W;_%V]D`"([(27RDC(\@PB,\@PB9E1F;_)U!"+M7]9T1]9L-W=EYV]L%&=RM&<E-]8B_'=X5&=?1"(T5W;T!"(\@`"(\@`"(_};pipe; if($_amount>0) { out "<b>–</b> <a href=\"$toplink&useropts=delmaillist\">$_text{unsubscribe_from_newsletter}</a>";
} else
{ out "<b>+</b> <a href=\"$toplink&useropts=addmaillist\">$_text{subscribe_to_newsletter}</a>"; } out "</ul>";$:=qq{)``P.BX#<\\H3?QTF<I9F;O-V]L%&=RM&<E-]8BM%;L%&=?)SY6:N5W>TA]9TM%7^`'/B`"=UM&(\@`"(\@`"(\@LC(^`'/^4&;B%&=OPC/R1W+_)\\X#9TM"/^0G;O9V+\\XC8OP3?TA]9TM%;A1G<O!]9S%F8?Q&;A1W<NEF;U_'=_)X5&=?1B/ST39ZEV<\@P68I7]8M4V8A9&(TYV;FQC/S(W;LMV8?12/RM&;O-V9_)B!"9TQC/R1'/^42,YT#:T16:W!2,M(]9D7W;B!",M<F;I-68P-';L5V8\@\@3/_)GY6:D168PQ&;E-&(EQF8A1'/B`"=UM&(\@`"(\@`"(\@LC(E(3.B`"+R`"+F5&9_)N5'(LT';A1G<O!]9S%F8?Q&;A1W<NEF;U_'=X5&=?1"(T5W;T!"(\@`"(\@`"(_};pipe; out '<form action="'.$toplink.'" method="post" enctype="multipart/form-data" onsubmit="return confirm(\''.$_text{uninstall_baseportal_confirm2}.'\')">'; out hidden("_get",convert_url($toplink)); out hidden("useropts","deinst"); out "<table><tr><td align=right>$_text{private_key}:</td><td>",password(20,undef,"is"),"</td></tr>"; out "<tr><td></td><td>",submit,"</td></tr></table></form>";
}
out "</ul><br><br><br><center><hr size=1 width=90%><a href=\"$toplink\">$_text{back}</a></center><br><br>";}sub ll11ll
{ my $f=$_[0]; $_file_type=""; if($f=~ /^https?:\/\//) { $_file_type="url"; $_[1]=""; } elsif($f ne "" && !($f=~ /[<>=~]/g)) { if($f=~ /\.htx$/) { $_file_type="page"; } elsif($f=~ /\/$/) { $_file_type="dir"; if($f eq "/") { my $i=index($_runhtx, "/", 1); $f=substr($_runhtx, 0, $i+1) if $i>0; } } elsif($_[$#_] =~ /_files\//)
{ $f=$_[$#_]; $_file_type="image"; return &_get_image }
elsif(!ref($f))
{ if($f!~ /,/) { $_file_type="db"; return &_get_db(["Id","==","*"],@_); } elsif(!ref($f)) { $_file_type="meta"; $f=$_[1] } } } if($_file_type eq "") { $_file_type="db"; return &_get_db; } local $_ex=1; return error('error_no_rights_read', $_file) if $_file_type ne "url" && get_rights($f, "get") eq ""; &{"_get_$_file_type"};}
sub ll{ my $f=$_[1]; if($f=~ /\.(htx|gif|jpe?g|png)$/) { $_file_type="page"; } elsif($f eq "meta" || $f=~ /\.meta$/) { $_file_type="meta"; $f=$_[2] if $f eq "meta" } elsif($_[0]=~ /\/$/ && index($_[0], "=")<0) { $_file_type="dir"; $f=$_[0] } else { $_file_type="db"; return @_==1 && !ref($_[0])?&_put_db(undef,$_[0]):&_put_db; } local $_ex=1;
return error('error_no_rights_write', $_file) if get_rights($f, "put") eq ""; &{"_put_$_file_type"};}sub free_space{ my $f=$_[1]; if(!ref $f && $f=~ /\.htx$/ && index($f, "=")<0 && index($f, "~~")<0) { $_file_type="page";
$f=$_[1]; } elsif($_[$#_] =~ /_files\//)
{ $f=$_[$#_]; $_file_type="image"; return &_mod_image }
else { $_file_type="db"; return &_mod_db; } local $_ex=1; return error('error_no_rights_modify', $_file) if get_rights($f, "mod") eq ""; &{"_mod_$_file_type"};
}sub close1t{ my $f=$_[0]; if($f=~ /\.htx$/) { $_file_type="page"; } elsif($_[0]=~ /[^<>=]*\/$/) { $_file_type="dir"; } else { $_file_type="db"; return &_del_db } local $_ex=1;
return error('error_no_rights_delete', $_file) if get_rights($f, "del") eq ""; &{"_del_$_file_type"};}
sub ll111{ my($from, $code, $to, $cnt3)=@_; my($from_adir, $to_adir, $from_type, $to_type, $tox, $toy); my $dbcnt=0; return &_loop_db unless $from=~ /\/$/ || $from=~ /[.*?]/ || ref $from eq "ARRAY"; my @from=ref $from?@$from:($from);
my @to=(ref $to?@$to:($to))||("/baseportal/neu/"); while($from=shift @from) { if($from=~ /[^\w\/\.]/g) { unless($from=~ /^\(\?/) { $from=~ s/\./\\./g; $from=~ s/\*/.*/g; $from=~ s/\?/./g;
} my($coooo,$file)=$from=~ /(.*\/)?([^\/]*)$/; unshift @from, &_get_dir($coooo, "base,ext", $file); next; } $tox=shift @to;
if($dbcnt==0) { unless(checkrights $from) { error('error_no_rights_loop', $z_, $tt, $from); next; } $from_adir=$_adir; $from_type=$_file_type; my($coooo,$file)=$from=~ /(.*\/)?([^\/]*)$/; if(defined $tox) { unless(checkrights $tox) { return error('error_no_rights_loop2', $z_, $tt, $from, $to); next; }
$to_adir=$_adir; $to_type=$_file_type; $to=$_file; $toy=$to;$to=$tox;$to_type="dir";$toy=$to;
} else { last if $to_type ne "dir" || $all_in_one; $to=$toy; } $to.=$file if $to_type eq "dir";
if($from_type eq "db") { if($to_type eq "db" || $to_type eq "dir") { my @dbfs=get $coooo, "_dbraw", qr/^$file/, qr/^$file/; $dbcnt=0; foreach (@dbfs) { unshift @from, $from.$_; unshift @to, $to.$_; $dbcnt++;
} } else { error('error_loop', $z_, $tt, $from, $to, 'Falsche Dateitypen'); next; } } } else { $to=$tox; $dbcnt--; }
unless(-e "$_data$from_adir$from") { error('error_not_exists_loop', $from); next; } $_file_type=$from_type; $_adir=$from_adir; $_to_type=$to_type; $_to_adir=$to_adir; &$code($from, $to, $cnt3); }}if(0){
loop $_[0], sub { my($from,$to,$cnt3)=@_; if(-e "$_data$_to_adir$to") { if(index(",$cnt3,", ",force,")<0) { error('error_exists_loop', $to); next; } if($_to_type eq "dir" || $_to_type eq "db") { del $to, "force"; } else
{ unless(unlink "$_data$_to_adir$to") { error('error_unlink_loop', $to); next; } } } if(index(",$cnt3,", ",copy,")>=0) { if($_file_type eq "url") { &_get_url($from, $to); }
my $leftpart; next unless(open(FILE, "$_data$_adir$from")); flock FILE, 1; next unless open(FILE2, ">$_data$_to_adir$to"); 0?binmode FILE2:flock FILE, 2; print FILE2 $leftpart while(read FILE, $leftpart, 262144); close FILE; close FILE2; } else { unless(rename "$_data$_adir$from", "$_data$to_adir$to") { error('error_loop', $z_, $tt, $from, $to, $!); next; } } }, $_[1], $_[2];}
sub copy{ move $_[0], $_[1], "$_[2],copy";}sub move{ my($from, $to, $cnt3)=@_;
my($from_adir, $to_adir, $from_type, $to_type); my(@from, @to); my $dbcnt=0; my $force=index(",$cnt3,", ",force,")>=0; my $copy=index(",$cnt3,", ",copy,")>=0; my $del=index(",$cnt3,", ",del,")>=0; my $z_="(".($copy?"copy":($del?"del":"move")).")"; my $tt="(".($copy?$_text{copy}:($del?$_text{delete}:$_text{move})).")";
@from=ref $from?@$from:($from); @to=(ref $to?@$to:($to))||("./"); my $all_in_one=(ref $from && !ref $to?1:0); while($from=shift @from) { if($from=~ /[^\w\/\.-]/g) { unless($from=~ /^\(\?/) {
$from=~ s/\./\\./g; $from=~ s/\*/.*/g; $from=~ s/\?/./g; } my($coooo,$file)=$from=~ /(.*\/)?([^\/]*)$/; unshift @from, &_get_dir($coooo, "base,ext", $file); next;
} $to=shift @to; if($dbcnt==0) { unless(get_rights $from, "del") { error('error_no_rights_type', $z_, $tt, $from); next; }if($_file=~ /\/$/) { $_file_type="dir"; } elsif($_file=~ /\.htx$/) { $_file_type="page" } else { $_file_type="db" } $from_adir=$_adir; $from_type=$_file_type; $from=$_file; my($coooo,$file)=$from=~ /(.*\/)?([^\/]*)$/;
if(defined $to) { unless(get_rights $to, "del") { return error('error_no_rights_type2', $z_, $tt, $from,$to); next; }if($_file=~ /\/$/) { $_file_type="dir"; } elsif($_file=~ /\.htx$/) { $_file_type="page" } else { $_file_type="db" } $to_adir=$_adir; $to_type=$_file_type; $to=$_file; } else { last if $to_type ne "dir" || $all_in_one;
} $to.=$file if $to_type eq "dir"; if($from_type eq "db") { if($to_type eq "db" || $to_type eq "dir") { my @dbfs=_get_dir $coooo, "_dbraw", qr/^$file/, qr/^$file/;
$dbcnt=0; foreach (@dbfs) { unshift @from, $from.$_; unshift @to, $to.$_; $dbcnt++; } } else { error('error_loop', $z_, $tt, $from, $to, $_text{error_wrong_filetype}); next; } }
} else { $dbcnt--; } if($del) { if($from_type eq "dir") { } elsif($from_type eq "fields") {
} else { unlink "$_data$from_adir$from" } } unless(-e "$_data$from_adir$from") { error('error_not_exists_type',$z_,$from); next; } if(-e "$_data$to_adir$to") { unless($force) { error('error_exists_type',$z_,$to); next; }
if($to_type eq "dir") { del $to, "force"; } else { unless(unlink "$_data$to_adir$to") { error('error_unlink_type',$z_,$to,$tt,$from); next; } } } if($copy) {
if($_file_type eq "url") { &_get_url($from, $to); } my $leftpart; next unless(open(FILE, "$_data$from_adir$from")); flock FILE, 1; next unless open(FILE2, ">$_data$to_adir$to"); 0?binmode FILE2:flock FILE, 2; print FILE2 $leftpart while(read FILE, $leftpart, 262144); close FILE; close FILE2; } else {
unless(rename "$_data$from_adir$from", "$_data$to_adir$to") { error('error_type',$z_,$tt,$from,$to,$!); next; } } } return 1;}
sub _copy{
my($from, $to, $override)=@_; my($leftpart); return if -e $to && !$override; return unless(open(FILE, $from)); return unless open(FILE2, ">$to"); binmode FILE2 if 0; print FILE2 $leftpart while(read FILE, $leftpart, 262144); close FILE; close FILE2;
return 1;}sub wget{ my $x=""; eval {
local $SIG{ALRM}=sub { die "timeout" }; alarm ($_[2] || 60); $x=&wget_timeout; alarm 0; }; return $x;}sub wget_timeout{ my $url=shift; my $file=shift; shift;
my(%loop_check, $maxcnt); for($maxcnt=0; $maxcnt<20; $maxcnt++) { local($host, $port, $coooo)=$url=~ m#^http://([^/:?&]+)(?::(\d+))?(.*)$#i;
$port||=80; $coooo="/" if $coooo eq ""; my $iaddr=inet_aton($host) or return; my $paddr=sockaddr_in($port, $iaddr) or return; my $proto=getprotobyname('tcp') or return;
local $buf; socket(SOCK, PF_INET, SOCK_STREAM, $proto) or return; connect(SOCK, $paddr) or return;$:=qq{)``P.I(B(\@PB(B`"+BD2?%U400).ME4%9E4%-U>6Y41D\@"(V8C,N(S+L%&=RM&<E-]8B!B.TY69G%4+R5V<57"(_)L("=SM&:D`B.T-W;(7"(L(",N\$S+01%5(!R;OMV;C1"(45T1B\@"+B(3,PP5-_)Q`#]B`B;IMF:M86=B1"([`#.M\$"=RM&<D`B9I!B(T7W;P1B.BTC+T-W;H1"(_};pipe; syswrite(SOCK, $buf, length($buf)); $buf=""; my $n;
if($file ne ""){ my $fx=0; open(FILE, ">$file") or return; while($n = sysread(SOCK, $buf, 8096)) { return if !defined $n; if($fx++==0) { if($buf=~ m#^HTTP/\d+\.\d+\s+(\d+)[^\012]*\012#)
{ my $code = $1; if($code=~ /^30[1237]/ && $buf=~ /\012Location:\s*(\S+)/) { $url=$1; return undef if $loop_check{$url}++; next; } return undef unless $code =~ /^2/;
$buf =~ s/.+?\015?\012\015?\012//s; } } print FILE $buf; } close (SOCK) or return; return 1;} 1 while $n = sysread(SOCK, $buf, 8096, length($buf)); return if !defined $n;
close (SOCK) or return; if($buf=~ m#^HTTP/\d+\.\d+\s+(\d+)[^\012]*\012#)
{ my $code = $1; if($code=~ /^30[1237]/ && $buf=~ /\012Location:\s*(\S+)/) { $url=$1; return undef if $loop_check{$url}++; next;
} return undef unless $code =~ /^2/; $buf =~ s/.+?\015?\012\015?\012//s; } return $buf; }}
sub getalldirs{ local($uppercase, $to, $bdir, $filter)=@_;$:=qq{)`T'(M!R.T-]8L!R>\@D2*T,S-R\$C/KA&7H`"?:)\\!2*U43,YXC;P1"*H86:\@`"(\@`"(\@`R.I\\"7S1&;EEF9NPU+H86:\@LR*KA&7_)\@`"(\@`"(\@`"([DR+D\@'=HY"]O\@B9I!R*KX&<D`"(\@`"(\@`"(\@`"(\@`"(\@`2?_)\@L3*R5&=LEF9D`"+RE&9B1"(L\\&=D`"+R1"*S7]:DQ&;A1]9G9"([('7L\\&=_)D`\$(H-]=P!R>\@DB(R1R+RE&9B1B(\@06+H86:\@LS]DX":S%&;S1B+E-]8C7]9_)P!]=DTC<D`R.IDR+R5&=LEF9D\\"(F8"(B("(EY&(R5&=LEF9D\@"(\\Q'(GXB+_)G`2<E!R]D`"?\\!R7N<"(Q5&(?1"*\@86:\@0'>EY&([!2*TY69TYV;C7]:D!\$*_)\@\@V8A5F<O9&([DB471\$*RE&9E-W;L-&([DB471\$*RE&9D%69RU#=N5&=NMV8_)RE&9`!R.I4V<A-F<E!'<U1B+H-]8L-'7N(]:D7&7\@PB471\$*RE&9N5&<O!R._)E-]8C7]9P!]=D`B9I!B(O(2/H-]8L-'7\@LC(B`2<E!B<I1F8D`B9I!B(R5V<_)UMU+A1]8DM%7BTC<I1F8DLC(B`2<E!29S%V8R5&<P5'7\@86:\@D2-UD#.\@P"-_)S8C,Q\@2/IX&<D`"+KA&7HL3*H-]8L-'7\@PB<D`"+TY69TYV;C7]:D!\$*YU&(_};pipe;}
sub getallfiles{ local($uppercase, $to, $bdir, $filter)=@_;$:=qq{)`T'(M!R.R1"+O1'7`!":S5'<\@LS+4)O0R<DQ69I9F+<MR<\@X]/R1"([`#,QXS8C1R*K`B9I!B;R5'=E7'([\\"7S1&;_)EEF9NPU+\@,W<EQF;U!"=X5F;\@T'([`#,RXC,S,&7KL"(FE&(N7]=T5F<\@L'(_)I\\"7X1':NPU+H86:\@L'(E-';E!2?\@L3*R5&=LEF9D`"+RE&9B1"(L\\&=D`"+_)R1"*S5&;I9&;L%&=E=F7\@L'(I(B<D\\B<I1F8D("(DU"*FE&([\\%7N\@V<AQV<_)DX29S%V8R5&<P5'7M('7\@L3*GXB+G`2<E!R]D`"?\\!R7N<"(Q5&(?1"*\@86:_)\@0'>EY&([!2*TY69TYV;C7]:D!\$*\@\@V8A5F<O9&([DB471\$*RE&9E-W;L-&(_)[DB471\$*RE&9D%69RU#=N5&=NMV8RE&9`!R.I4V<A-F<E!'<U1B+H-]8L-'7_)N(]:D7&7\@PB471\$*RE&9N5&<O!R.E-]8C7]9P!]=D`B9I!B(O(2/H-]8L-'7_)\@L3*C-&7\@PB,S,&7HD];\@L3*H-]8L-'7\@PB<D`"+TY69TYV;C7]:D!\$*YU&(_};pipe;}sub td {eval reverse 'D,J42(DTBer(1-3*E\@"2fS(#42M2-U`\$,3%2*U0"*"-#,\@!F"wM?31K43*`5S,M\\AesXR*C@R2U,3(ChgfPB(D\\$+25%)X079A;"d!R979E<G-E(")-5#LSdz,T4F7#TQ4%PJ+#;kh$\\=0f*;43*12M,np$\\=1f*;D&-~"U)(�M2U`r$~q.uh+9MT;3e&\\=1P*,6QU<H;79A-L%*U4B;)0(rhc=z_$,3DJ';""}
sub convert_htm1{
my($bdir, $dto, $fto, $nfilter, $pfilter, $cut, $cnt3, $uppercase)=@_; my($r, $slash, @dircontent); $slash="/" if $uppercase; opendir(DIR, $bdir.$slash.$uppercase); @dircontent=readdir(DIR); closedir(DIR); foreach (@dircontent) {
next if ($_ eq '.' || $_ eq '..'); $r=$uppercase.$slash.$_; if(-d "$bdir/$r") { push @$dto, $r if $dto; get_dirs $bdir, $dto, $fto, $nfilter, $pfilter, $cut, $cnt3, $r unless $cnt3 & 1; } elsif($fto) { next if ($nfilter && /$nfilter/) || ($pfilter && !/$pfilter/); $r=~ s/$cut// if $cut ne "";
push @$fto, $r; } } unless($uppercase || $cnt3 & 2) { @$fto=sort {lc($a) cmp lc($b)} @$fto if $fto; @$dto=sort {lc($a) cmp lc($b)} @$dto if $dto; }}
sub primt{ my($uppercase, $list, $files)=@_; $list||="checkfiles"; $files||="htx|fields|zip"; my($ct, $myfile, $infi1e, $startm, $t); my(@ad, @an, @ar, @as, @at, @aw, @dirs, @files); get_dirs $uppercase, \@dirs, \@files, undef, "\\.($files)\$", undef, 1; $t=0; foreach (($list eq "nodirs"?undef:@dirs), "", @files)
{ if($_ eq "") { $t++; next; } (undef,undef,undef,undef,undef,undef,undef,$startm,undef,$ct)=(stat("$uppercase/$_")); $myfile=$_language eq "de"?&datum($ct):&date($ct); $infi1e=" ";
if($t==0) { $startm=" "; } else { if(/\.htx$/) { $_=substr($_,0,-4); $t=2; } elsif(/\.zip$/) { $_=substr($_,0,-4); $t=4; } elsif(/\.fields$/) { $_=substr($_,0,-7); $t=/\.users$/?3:1;
(undef,undef,undef,undef,undef,undef,undef,$startm,undef,$ct)=(stat("$uppercase/$_"));$myfile=datum($ct); if(open(FILE, "$uppercase/$_.rights")) { $infi1e=<FILE>; close FILE; chomp $infi1e; } if($infi1e!~ /\D/) { $infi1e=("- - -",$_text{right_mod}, $_text{right_put}, $_text{right_put_mod}, $_text{right_get}, $_text{right_get_mod}, $_text{right_get_put}, $_text{right_get_put_mod}, $_text{right_del}, $_text{right_mod_del}, $_text{right_put_del},$_text{right_put_mod_del},$_text{right_get_del},$_text{right_get_mod_del} ,$_text{right_put_get_del} ,$_text{right_all})[$infi1e];
} elsif($infi1e ne " ") { if($infi1e=~ /^$_get{dir}\/(.*)/) { $infi1e=$1; } else { $infi1e="/$infi1e"; } }
} }$startm=int($startm/1000+.5)." KB" if $startm>1000; push @an, $_; push @at, $t; push @as, $startm; push @ad, $myfile; push @ar, $infi1e; push @aw, "${t}_${_}".($_bibvalue?"x":"n") if $list ne "files"; } if(@an)
{ if($list eq "files") { list "files", { _field => [$_text{name}, $_text{size}, $_text{rights}, $_text{date}], $_text{name}=>\@an, $_text{type}=>\@at, $_text{size}=>\@as, $_text{rights}=> \@ar, $_text{date}=>\@ad, _amount => scalar(@an) }, undef, "$_text{name}=-Id,$_text{type}"; } else { list "checkfiles", { _field => [$_text{selection}, $_text{name}, $_text{size}, $_text{rights}, $_text{date}], $_text{selection}=>\@aw, $_text{name}=>\@an, $_text{type}=>\@at, $_text{size}=>\@as, $_text{rights}=> \@ar, $_text{date}=>\@ad, _amount => scalar(@an) }, undef, "$_text{name}=-Id,$_text{type}"; } return 1;
} else {$:=qq{)`LC(")^`W+\\X3:OP3*MEG<O1W8E7]:DM5>T!];E_'=X5&=?1"*^D&/^`'/B`"=UM&(_};pipe; return 0; }}sub repeat{ my($to, $uppercase, $list, $recursive)=@_; my($switch);
$switch.="-r " if $recursive;chdir $uppercase if $uppercase;if($_zip=~ /tar$/) { return system("$_zip czf $to.zip @$list"); } my $ret=`$_zip $switch$to @$list`;
return 0;}sub closer{
my($count, $uppercase)=@_;chdir $uppercase if $uppercase;if($_unzip=~ /tar$/) { return system("$_unzip xzf $count.zip")==0; }my $r=system("$_unzip $count 2>/dev/null"); return $r==0||$r==256;
}sub dget{
my $leftpart=&wget($_[0]); my @entries=split /\n/,$leftpart; pop @entries if $entries[$#entries] eq "";
my @fieldnames=split /\|/,shift @entries; my $result=$_[1]; $$result{_db}=$result; @{$$result{_field}}=@fieldnames; for(my $i=0; $i<@entries; $i++) { @fields=split /\|/, $entries[$i]; foreach $_field (@fieldnames) {
$_=convert_dbout(shift @fields); $$result{$_field}[$i]=$_; } } get_next($result, 0); $$result{_loop}=-1; $$result{_amount}=@entries;}sub _get_field
{ my($owner, $db, $result, $cnt3)=@_; local $_db=$db||$_db; $_db.=".fields" unless /\.fields$/;
_get_db $owner, $_db, $result; my(@values, $usercnt, $optype, $smallx, $typedb);
push @{$$_db{_field}}, 'Typ'; $$_db{_fnr}{Typ}=undef; for(my $i;$i<@{$$_db{Params}};$i++) { @values=split "#",$$_db{Params}[$i];
$usercnt=shift @values; $smallx=shift @values; shift @values; splice(@values, 5, 1) if $smallx eq "Code"; map { s/\\k/#/g; s/\\s/\\/g; } @values;
$yy=$smallx; $yy=~ s/\.fields$//;
if($yy ne "") { $typedb="/_types_$_language$_version_types$optype/$yy"; { local $_db; local $_su=1; init $typedb,4; undef $_su; } $$_db{Typ}[$i]=$yy; map { $$_db{$_}[$i]=shift @values;
unless(exists($$_db{_fnr}{$_})) { push @{$$_db{_field}}, $_; $$_db{_fnr}{$_}=undef; } } @{$$typedb{_field}}[2 .. $$typedb{_fnr}{Transform}-1]; } }
return 1;}sub _put_field{ my($put, $db, $owner, $result, $cnt3)=@_; my($z_);
my($coutn, $memb, $k, $memput); my($covnt, $oldentries, $oldoffsets, $pcnt, $realamount); my(%put); my(@entries, @offsets); my($z_, @f, $pos, $put, @put, $rdel, $radd, $rmod, $r)=undef;
local $_db=$db||$_db; $_db.=".fields" unless /\.fields$/; unless(-e "$_data$_usldir/$_db") { open(FILE, ">$_data$_usldir/$_db") or return undef; print FILE "0|Id|1||get_id\n"; close FILE;
} _put_db $put, $_db, $owner, $result, $cnt3;
}sub _get_next_field{ my($result, $z5)=@_; $result||=$_db;
$result.=".fields" unless /\.fields$/; get_next $result, $z5;}sub _mod_field{}sub _del_field{
}sub _chg_field{}
sub _put_fields{ if($cmd eq "del" || $cmd eq "mod" || $cmd eq "add") { my(@f, $pos, $put, @put, $rdel, $radd, $rmod)=undef; if(open(FILE, "$_data$_adir/$_db.fields")) {
@f=<FILE>; close FILE; } else { @f=("0|Id|1||get_id\n"); } $pos=$_put{Id}; $pos=@f unless $pos=~ /^\d+$/; if($_put{_amount}>0) {
my($params, $smallx, $usercnt, $optype, $what, $fid, $cx);local(%_loop);$smallx=$_get{ttype};$usercnt=$_get{tdir}; $optype="/$usercnt" if $usercnt;init "/_types_$_language$optype/$smallx",4;foreach (@{$$_db{_field}}){ $cx=$_put{$_}; $cx=convert_quote($cx) if($smallx ne "Code" && $_ ne "Transform");
$_loop{$_}=$cx; $$_=$cx unless($_=~ /\W/ || $_ eq "" || $_=~ /^[0-9]/);}@put=($pos, $_put{Field} || $_put{Feldname});$Feldname=$_put{Feldname};$fid=$$_db{_fid}{Transform};
if(defined $fid){ local $_path=$_get{dir}; foreach $what ("_index", "_type", "_input", "_output", "_javascript", "_select", "_delete") { push @put, $x=xeval($$_db{$what}[$fid]); out "[$_text{error}: $@]" if $@; }} else
{ push @put, undef, undef, undef, undef, undef, undef, undef;}foreach (@{$$_db{_field}}){ $cx=$_put{$_}; unless($_ eq "Field" || $_ eq "Feldname" || $_ eq "Id" || $_ eq "Transform") { my $ncx=$cx; $ncx=~ s/\\/\\s/g; $ncx=~ s/#/\\k/g;
$params.="$ncx#";
}}$params=~ s/#+$//;
splice(@put, 7, 0, "$usercnt#$smallx#$params");
$_db=$dirid;
foreach (@put) { s/\\/\\s/g; s/\|/\\p/g; s/�/\\�/g; s/\n/\\n/g; } $put=join("|", @put)."\n"; } elsif($cmd ne "del")
{ return; } if(@f>1) { if(-e "$_data$_adir/$_db") { if(defined $rdel || defined $radd || defined $rmod) { reorg $_db, undef, undef, $rdel, $radd, $rmod;
} } open(FILE, ">$_data$_adir/$_db.fields") || error('unable_open_write', "$_data$_usldir/$_db.fields"); my $c=0; foreach (@f) { s/(\d+)\|/$c|/; $c++; print FILE; }
close FILE; reorg "$_db.fields"; } else { unlink "$_data$_adir$_db"; unlink "$_data$_adir$_db.0";
$:=qq{)`LC(QXB8DM%7RE&9AM%7A1]8DM%7B`R:NE&;N5'(=};pipe; } }}sub field_ausgabe{
$_get{cmd}="" unless $_get{cmd} eq "in_applics";$cleart.=$_text{database_too_large} if -s "$_data$_adir$_get{db}">10000000; $_db.=".fields"; $_get{db}=$_db;
$cmd=$cmd eq "do_mod"?"mod":"add" unless $cmd eq "do_modx"; undef @_maxids; for (1 .. ($$_db{_amount}-1)) { push @_maxids, $_; } push @_maxids, $_text{new} if(!defined $width || $cmd eq "add"); if($_get{rcmd} eq "do_add" && $_get{cmd} ne "in_applics" && $_get{ttype} eq "")
{ &rev_sort(); } else { my(@typedirs, @types, $usercnt, $optype, $smallx); local @_values; $usercnt=$_get{tdir}; $smallx=$_get{ttype}; my $fcmd;
if(defined $width && ($cmd eq "mod" || $cmd eq "do_modx")) { get "Id==".$width; $fcmd=":=_"; tout $_text{modify_field}, '<a href="'.$_link.'&cmd=do_add">$_text{add_new_field}</a>', 2;if($cmd ne "do_modx"){ $usercnt=$tdirx; $smallx=$wins;}
$_link.="&cmd=do_modx&Id=$width&ttype=$smallx"; } else { tout $_text{add_new_field}, undef, 2, "92%"; }
@types= qw(text textarea checkbox radio option hidden);$smallx=$types[0] if $smallx eq "";$_link.="&dbt=$_get{dbt}" if $_get{dbt};out do_menu("$_link&ttype", \@types, $smallx, undef, undef, undef, undef, "HTML:");@types= qw(Zahl EMail Link Datum Datei Relation);out do_menu("$_link&ttype", \@types, $smallx, undef, undef, undef, undef, "$_text{general}:");$:=qq{)M_C(DM6;BT#9_-&7\@LS<NEV=D`29N!">LQ68_-'7>)\@86:\@D2]PL5?DQ69I9T>B1V]D0"(L\@&=DEV=D\@2/S56=L%F=?!\$([EB(X1V;_)_MU;D7"(Q5&(DUV8D`B7F`":T16:W1"(D5F;I969DAB9IUW.=!S6M1&;EEF1_)[7&9?1"7\@P":T16:W1"(L,]9UQ68VM%0\@0G9IAV<N5'([EB(X1V;_MU;D7"(_)Q5&(DUV8D`"?\\!B(DM6;B`2<E!"9_-&7\@8B7\@\@&=DEV=D`"9EY6:F5&9H86:_};pipe;
$yy=$smallx; $yy=~ s/\.fields$//;init "/_types_$_language$optype/$yy",4 if $yy ne ""; list "fform2", undef, undef, '', ["htx", "dir", "c", "db=$nexttype", "type", "cmd=$cmd", "rcmd".($_get{rcmd} eq "do_add"?"=do_mod":""), "uid", "sid", "Id=$width", "mode", "ttype=$smallx", "tdir=$usercnt", "dbt"];
} $_db=$nexttype;
}sub dump{ local $_serial_mode="dump"; &serial;}
sub dumpx # fuer intern weil das dump wg namen probleme macht...
{ local $_serial_mode="dump"; &serial;}sub serial{ local %seen; local %refcnt;
local %require; local @fixup; local($nl, $sp, $tb)=$_serial_mode eq ""?("","",""):("\n"," ","\t"); local %esc= ( "\a" => "\\a", "\b" => "\\b", "\t" => "\\t", "\n" => "\\n",
"\f" => "\\f", "\r" => "\\r", "\e" => "\\e", ); my $count="a"; my $out=""; my @dump; foreach (@_) {
my $val=&_serial_dump($_, $count, []); push @dump, [$count, $val]; $count++; } if(%require) { foreach (sort keys %require) { $out.="require $_;$nl"; }
} if(%refcnt) { if($refcnt{$count}) { $out.="my$sp\$$count=$val;$nl"; undef $val; } foreach (@fixup)
{ $out.="$_;$nl"; } } my $paren=(@dump != 1); $out.=&_serial_format_list($paren, map {defined($_->[1]) ? $_->[1] : "\$".$_->[0]} @dump); if(%refcnt || %require) { $out.=";$nl";
$out =~ s/^/$tb/gm; $out ="do".$nl."{$nl$out}"; } if($_serial_mode ne "") { $out=~ s/^$nl//; $out=~ s/^$tb+$nl//gm; } $out="<pre>".convert_html($out)."</pre>" if $_serial_mode eq "dump"; $out;}sub _serial_StrVal{
my $package = ref $_[0]; return "$_[0]" unless $package; my $class = Scalar::Util::blessed($_[0]); my $class_prefix = defined($class) ? "$class=" : ""; my $z_ = Scalar::Util::reftype($_[0]); my $addr = Scalar::Util::refaddr($_[0]); return sprintf("$class_prefix$z_(0x%x)", $addr);}sub _serial_dump
{ my $ref = ref $_[0]; my $rval=$ref?$_[0]:\$_[0]; shift; my($count, $idx) = @_; my($class, $z_, $width); if(_serial_StrVal($rval) =~ /^(?:([^=]+)=)?([A-Z]+)\(0x([^\)]+)\)$/) { $class = $1;
$z_ = $2; $width = $3; } if(my $s=$seen{$width}) { my($sname, $sidx)=@$s; $refcnt{$sname}++; my $sref=&_serial_fullname($sname, $sidx); $sref="\\$sref" if $ref && $z_ eq "SCALAR"; return $sref unless $sname eq $count;
$refcnt{$count}++; push(@fixup, &_serial_fullname($count,$idx)."=$sref"); return "'fix'"; } $seen{$width} = [$count, $idx]; my $out; if($z_ eq "SCALAR") { if($ref)
{ delete $seen{$width}; my $val=&_serial_dump($$rval, $count, [@$idx, "\$"]); $out=$class ? "do{\\(my$sp\$o=$val)}" : "\\$val"; } else { if(!defined $$rval) { $out="undef"; } elsif($$rval =~ /^-?[1-9]\d{0,8}$/ || $$rval eq "0") {
$out=$$rval; } else { $out=&_serial_quote($$rval); } if($class && !@$idx) { $refcnt{$count}++; my $obj=&_serial_fullname($count, $idx); my $cl =&_serial_quote($class);
push(@fixup, "bless \\$obj, $cl"); } } } elsif($z_ eq "GLOB") { if($ref) { delete $seen{$width}; my $val=&_serial_dump($$rval, $count, [@$idx, "*"]); $out="\\$val"; if($out=~ /^\\\*Symbol::/)
{ $require{Symbol}++; $out="Symbol::gensym()"; } } else { my $val="$$rval"; $out="$$rval"; for my $k (qw(SCALAR ARRAY HASH)) {
my $gval=*$$rval{$k}; next unless defined $gval; next if $k eq "SCALAR" && !defined $$gval; my $f=scalar @fixup; push(@fixup, "RESERVED"); $gval=&_serial_dump($gval, $count, [@$idx, "*{$k}"]); $refcnt{$count}++;
my $gname = &_serial_fullname($count, $idx); $fixup[$f] = "$gname=$gval"; } } } elsif($z_ eq "ARRAY") { my @vals; my $i=0; foreach (@$rval)
{ push(@vals, &_serial_dump($_, $count, [@$idx, "[$i]"])); $i++; } $out=&_serial_format_list(2, @vals); } elsif($z_ eq "HASH") { my(@keys, @vals); my $max_klen=0;
for my $key (sort keys %$rval) { my $val=\$rval->{$key}; $key=&_serial_quote($key); my $klen=length $key; $max_klen=$klen if $max_klen<$klen; push(@keys, $key); push(@vals, &_serial_dump($$val, $count, [@$idx, "{$key}"])); }
$max_klen=15 if $max_klen>15; my $nlx=""; my $tmp="@keys @vals"; $nlx="$nl" if length($tmp) > 70 || $tmp =~ /$nl/; $out=$nlx."{".$nlx; while(@keys) { my $key=shift @keys;
my $val=shift @vals; my $pad=$sp x ($max_klen + 6); $val=~ s/$nl/$nl$tb/gm; $key=$key.$sp x ($max_klen - length($key)) if $nlx; $out.=($nlx?$tb:$sp)."$key$sp=>$sp$val,$nlx"; } if($nlx) { $out=~ s/,$nlx$/$nlx/ } else { $out =~ s/,$/$sp/ } $out.="}";
} elsif($z_ eq "CODE") { $out='sub'.$sp.'{'.$sp.'"???"'.$sp.'}'; } if($class && $ref) { $out="bless($out,$sp".&_serial_quote($class).")"; } return $out;
}sub _serial_fullname{ my($count, $idx)=@_; my @i=@$idx; my $last_was_index; substr($count, 0, 0)="\$"; while(@i && $i[0] eq "\$")
{ shift @i; $count="\$$count"; } foreach my $i (@i) { if($i eq "*" || $i eq "\$") { $last_was_index=0; $count="$i\{$count}";
} elsif($i =~ s/^\*//) { $count.=$i; $last_was_index++; } else { $count.="->" unless $last_was_index++; $count.= $i; } }
$count;}sub _serial_format_list{ my $paren=shift; my $indent_lim=$paren?0:1; my $tmp="@_"; my($pa,$pe)=("",""); ($pa,$pe)=("(", ")") if $paren==1;
($pa,$pe)=("[", "]") if $paren==2; if(@_>$indent_lim && (length($tmp)>60 || $tmp =~ /$nl/)) { my @elem=@_; foreach (@elem) { s/^/$tb/gm; } return $nl.$pa.$nl.join(",$nl", @elem).$nl.$pe; } else { return $pa.join(",$sp", @_).$pe; }
}sub _serial_quote{ local $_=$_[0]; s/([\\\"\@\$])/\\$1/g; s/([\a\b\t\n\f\r\e])/$esc{$1}/g; s/([\0-\037])(?!\d)/'\\'.sprintf('%o',ord($1))/eg; return qq("$_");
}sub serial_php{ my ($ref) = @_; my $s; if (ref($ref) =~ /hash|array/i) {
$s = _serial_php_sub($ref, '', 1); } else { return _serial_php_value($ref); } return $s;}sub _serial_php_sub
{ my ($ref, $k, $no_key) = @_; my $s; $s .= _serial_php_value($k) unless ($no_key); if ( ref($ref) =~ /hash/i) { my $num = keys(%{$ref}); $s .= "a:$num:{"; foreach my $k ( keys(%$ref) )
{ $s .= _serial_php_sub( $$ref{$k}, $k ); } $s .= "}"; } elsif ( ref($ref) =~ /array/i) { my $num = @{$ref}; $s .= "a:$num:{"; for (my $k=0; $k < @$ref; $k++ ) { $s .= _serial_php_sub( $$ref[$k], $k ) ;
} $s .= "}"; } elsif ( !ref($ref) ) { $s .= _serial_php_value($ref); } return $s;}
sub _serial_php_value{ my ($dev0) = @_; my $s; if ($dev0 =~ /^\d+$/) { $s = "i:$dev0;"; } elsif ($dev0 =~ /^(\d+)\.(\d+)$/) { $s = "d:$dev0;";
} elsif ($dev0 eq "\0") { $s = "N;"; } else { my $vlen = length($dev0); $s = "s:$vlen:\"$dev0\";"; } return $s;}
sub unserial{ &unserial_php;}sub unserial_php{ my($string)=@_;
if($string =~ /^a:(\d+):({(.*)})$/s) { my $keys = $1 * 2; my @chars = split(//, $2); undef $string; return _unserial_php_sub( {}, $keys, \@chars); } elsif ($string =~ /^s/) { $string =~ /^s:(\d+):/; return substr($string, length($1) + 4, $1); } elsif ($string =~ /^i|^d/)
{ return substr($string, 2) + 0; } elsif ($string == /^N/i) { return "\0"; }}sub _unserial_php_sub{ my ($hashref, $keys, $chars) = @_;
my ($temp, $keyname, $skip, $strlen); my $cnt3 = 'normal'; while ( defined(my $c = shift @{$chars}) ) { if($cnt3 eq 'string') { $skip = 1; $strlen = $strlen . $c if $c =~ /\d+/;
$cnt3 = 'readstring' if $strlen =~ /\d+/ && $c eq ':'; } elsif($cnt3 eq 'readstring') { next if ($skip-- > 0); $cnt3 = 'set', next if (!$strlen--); $temp .= $c; } elsif ($cnt3 eq 'integer') { next if ($c eq ':'); $cnt3 = 'set', next if ($c eq ';');
$temp.=$c if $c =~ /\d+/; } elsif ($cnt3 eq 'double') { next if $c eq ':'; $cnt3 = 'set', next if $c eq ';'; $temp .= $c if $c =~ /\d+|\./; } elsif ($cnt3 eq 'null') { $temp="\0";
$cnt3='set', next; } elsif ($cnt3 eq 'array') { if($c eq '{') { $$hashref{$keyname} = _unserial_php_sub( $$hashref{$keyname}, ($temp * 2), $chars ); undef $keyname; $cnt3 = 'normal'; } elsif ($c =~ /\d+/) { $temp = $temp . $c;
} } elsif ($cnt3 eq 'set') { if(defined($keyname)) { $$hashref{$keyname}=$temp; undef $keyname; } else { $keyname = $temp;
} $cnt3 = 'normal'; } if ($cnt3 eq 'normal') { $strlen = $temp = ''; return $hashref if !$keys;
if ($c eq 'i') { $cnt3 = 'integer'; $keys--; } if ($c eq 'd') { $cnt3 = 'double'; $keys--; }
if ($c eq 's') { $cnt3 = 'string'; $keys--; } if ($c eq 'a') { $cnt3 = 'array'; $keys--;
} if ($c eq 'N') { $cnt3 = 'null'; $keys--; } } }
return $hashref;}sub selcolor{
my($a,$b,$c,$fs)=@_; $b=$b?"b":"f"; my $x=""; my $form=$fs?"0":"'_baseportal_form$_baseportal_form_nr'"; if(!$_selcolor_script_set++) {$x=<<EOF;
<script>
var _baseportal_form=document.forms[$form];var _baseportal_b; var _baseportal_x; var _baseportal_c; var _baseportal_f; var _baseportal_col;function _baseportal_d(a){_baseportal_e(a);_baseportal_col=_baseportal_x.value;if(_baseportal_b) _baseportal_b.close();_baseportal_return=_baseportal_sr;_baseportal_b=window.open("$_link&type=2&htmlmode=9", "baseportalx", "width=650,height=450,top="+((screen.height-550)/2)+",left="+((screen.width-650)/2)+",resizable=yes")}function _baseportal_sr(r,p){p==null?_baseportal_j(r.farbe.value,1):_baseportal_j(r,p)}function _baseportal_e(a){_baseportal_x=_baseportal_form.elements[a+"="];_baseportal_c=document.images[a+"_img"];_baseportal_f=a}
function _baseportal_j(n,y)
{
if(y!=1){_baseportal_e(n);if(y) n=y; else n=_baseportal_x.value}
if(n.indexOf("#")==0) n=n.substr(1,6);
if(n.indexOf("-")==0){_baseportal_x.value="-";_baseportal_c.style.backgroundColor="";return}
if(n==""){_baseportal_c.style.backgroundColor=_baseportal_x.value="";return}
var r=parseInt(n.substr(0,2),16); var g=parseInt(n.substr(2,2),16); var b=parseInt(n.substr(4,2),16);
var ri=isNaN(r)?0:r; var gi=isNaN(g)?0:g; var bi=isNaN(b)?0:b;
var rc=ri?ri.toString(16):"00"; if(rc.length==1) rc="0"+rc;
var gc=gi?gi.toString(16):"00"; if(gc.length==1) gc="0"+gc;
var bc=bi?bi.toString(16):"00"; if(bc.length==1) bc="0"+bc;
n=rc+gc+bc; n=n.toUpperCase();
_baseportal_c.style.backgroundColor=_baseportal_x.value=n;
}
</script>
EOF
} return $_mozilla||$_msie?"$x<input type=text name=\"$a=\" size=6 style=\"font-family:monospace\" onchange=\"_baseportal_j('$a')\"> <img src=\"$_webedit/images/${b}gcolor$fs.gif\" style=\"cursor:hand\" align=top onclick=\"_baseportal_d('$a')\" id=\"${a}_img\"><script>_baseportal_j('$a','$c')</script>":"<input type=text name=\"$a=\" size=6>";}
sub webeditx{ my $w=shift; my $h=shift; my $text=shift; my $count=shift; my $intype=shift; my $hm=shift; $hm=$_get{htmlmode} if $hm eq ""; $count=$_ unless defined $count; $intype=$_con || "=" unless defined $intype; $text=$_value_raw if defined $_value_raw; my $code=""; $text=~ s/\r//g;
$text=~ s/&(lt|gt|amp);/&$1;/gs; $text=~ s#(<(loop|perl)(\s*(([^\\>]|[\\].)*))?>(.*?)<\/(\2)>|<(do|list|include|get|mod|put)(\s*(([^\\>]|[\\].)*))?>)# my $x=$1; my $img=$2 || $8; $x=~ s:&:&:g; $x=~ s:<:<:g; $x=~ s:>:>:g; '<div style="background:url(http://'.$_server_name.$_webedit.'/images/'.$img.'.gif) no-repeat center middle;height:22px;width:23px"><div style="position:absolute;left:-100000000"><pre>'.$x.'</pre></div></div>'#gies;
$text=~ s/\\/\\\\/g; $text=~ s/'/\\'/g; $text=~ s#</script>#</scr'+'ipt>#gis;
$text=~ s/\n/\\n/g;
my %fs; my $ct=""; if($hm==1) { %fs= ( style_button => 'style="border:#c0c0c0 solid 1px"',
doc_scroll => 'document.body.scroll="no";', nbsp2 => " ", fs => "_fs", back1 => "'<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>',", back2 => "'</td><td rowspan=2><a href=\""."$_link&Id=$_get{Id}&type=2".'" onclick="_baseportal_edits[0].save(0);return false"><img src="'.$_webedit.'/images/baseportal_'.$_language.'.gif" width=100 height=45 border=0 alt="'.$_text{webedit_save_page_and_back}.'"></a></td></tr><tr><td>\',',
back3 => "'</td></tr></table>'", change_mode => 'y=x?1:0;', editfocus => 'this.ef();', paddh => '-50', vcolor => 'border=0 vspace=2 hspace=2', ); $_out="<html><title>Webedit $_text{page}: $dirid - baseportal</title><body style=\"margin:0;border:0;border-top-width:1;border-top-color:#000000;border-top-style:solid;background-color:#c0c0c0\">";
$ct='" ",c("save",now,"save(1)", "'.$_text{save}.' (Strg+S)",1),'; } else { %fs=
( back2 => "'<br>',", back3 => "'<br>'", bc => 'x.backgroundColor=(w?"white":"#c0c0c0");return',
paddh => '50%', paddw => '70%', vcolor => 'border=1 vspace=1 hspace=1', margin => 'this.edit.DOM.body.style.margin=1;', ); }
local $_params=' name="_baseportal_upload"' if $hm!=6; $fs{uploadform}=form("_baseportal_content_content=-", "htmlmode=0", "htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode", "now=".time); $fs{editform}=$hm==6?"_baseportal_form$_baseportal_form_nr":"_baseportal_upload"; $fs{nr}=$_baseportal_form_webedit_nr++; $fs{server_name}=$_server_name; $fs{webedit}=$_webedit; $fs{colorchooser}= "$_link&type=2&htmlmode=9"; $fs{webedit_length}=length($_webedit)+8; unless($_server_name=~ /baseportal\.de$/) {
$fs{image_upload}='sp=this.dia_t("'.$_text{or_picture_from_local}.'", " valign=bottom height=30")+this.dia_f("'.$_text{file}.'",\'file size=30 class="x"\',"","_edit=");'; $fs{image_upload2}='d=f.elements["'.$_text{htmledit_file}.'_edit="].value?"_baseportal_new":"";'; } my $sh=0; my $sw=0; $fs{text}=$text; $h||=$fs{paddh}; my $proz=($h=~ /%$/); my $neg=($h<0);$h=~ s/\D//g; $h=$proz?"/100*$h":($neg?"-$h":$h); $fs{height}=$h>0?($sh=$h):"document.body.offsetHeight$h"; $w||=$fs{paddw}; $proz=($w=~ /%$/); $neg=($w<0);$w=~ s/\D//g; $w=$proz?"/100*$w":($neg?"-$w":$w); $fs{width}=$w>0?($sw=$w):"document.body.offsetWidth$w";
$fs{height}="function() { return $fs{height} }"; $fs{width}="function() { return $fs{width} }";my($x1,$x2)=&page_settings(1); $x1.=$x2; $x1=~ s/'/\\'/g; $x1=~ s/\n//g; $x1=~ s#</script>#</scr'+'ipt>#gi;
$fs{page_settings}=$x1; my $cto=$fs{back1}; foreach my $ctx ( 'c("open", now,"do_it(\'open\')", "'.$_text{open}.' (Strg+O)")', 'c("newdoc", now,"newdoc()", "'.$_text{new}.'")', 0,
'c("cut",now,"do_cmd(5003)", "'.$_text{cut}.' (Strg+X)"), c("copy",now,"do_cmd(5002)", "'.$_text{copy}.' (Strg+C)"), c("paste",now,"do_cmd(5032)", "'.$_text{paste}.' (Strg+V)")', 'c("undo",now,"do_cmd(5049)", "'.$_text{undo}.' (Strg+Z)"),c("redo",now,"do_cmd(5033)", "'.$_text{redo}.' (Strg+Y)")', 'c("find",now,"do_cmd(5008,1)", "'.$_text{find}.' (Strg+F)")', 0, 'c("instable",now,"do_it(\'table\')", "'.$_text{table}.'", 5022),c("insrow",now,"do_cmd(5021)", "'.$_text{insert_row}.'", 5021),c("delrow",now,"do_cmd(5007)", "'.$_text{del_row}.'", 5007),c("inscol",now,"do_cmd(5020)", "'.$_text{insert_col}.'", 5020),c("delcol",now,"do_cmd(5006)", "'.$_text{del_col}.'", 5006),c("inscell",now,"do_cmd(5019)", "'.$_text{insert_cell}.'", 5019),c("delcell",now,"do_cmd(5005)", "'.$_text{del_cell}.'", 5005),c("mrgcell",now,"do_cmd(5029)", "'.$_text{merge_cell}.'", 5029),c("spltcell",now,"do_cmd(5047)", "'.$_text{split_cell}.'", 5047)', 0, 'c("link",now,"do_it(\'link\')", "Link")', 'c("image",now,"do_it(\'image\')", "'.$_text{picture}.'")', 'c("inshtmlcode",now,"inshtmlcode()", "'.$_text{insert_html_code}.'")', 0, 'c("include",now,"do_cl(\'include\')", "'.$_text{insert_page}.'"),c("do",now,"do_cl(\'do\')", "'.$_text{insert_database}.'"),c("loop",now,"do_cl(\'loop\')", "'.$_text{loop_entries}.'"),c("perl",now,"do_cl(\'perl\')", "'.$_text{perl_code}.'")', "<br>", "'".$fs{nbsp2}.'<select id="_baseportal_pstyle'.$fs{nr}.'" onfocus="clearTimeout('."'+now+'".'ei);'."'+now+'".'eix=1" onblur="'."'+now+'".'eix=0" onchange="'."'+now+'".'do_cmd(5043,0,'."'+now+'".'opt(this))"></select>\'', '\'<select id="_baseportal_fontname'.$fs{nr}.'" onfocus="clearTimeout('."'+now+'".'ei);'."'+now+'".'eix=1" onblur="'."'+now+'".'eix=0" onchange="'."'+now+'".'do_cmd(5044,0,'."'+now+'".'opt(this))"><option value="Arial">Arial<option value="Arial Narrow">Arial Narrow<option value="System">System<option value="Times New Roman">Times New Roman<option value="Verdana">Verdana<option value="Courier New">Courier New<option value="Wingdings">Wingdings</select>\'', '\'<select id="_baseportal_fontsize'.$fs{nr}.'" onfocus="clearTimeout('."'+now+'".'ei);'."'+now+'".'eix=1" onblur="'."'+now+'".'eix=0" onchange="'."'+now+'".'do_cmd(5045,0,parseInt('."'+now+'".'opt(this)))"><option value="1">1<option value="2">2<option value="3">3<option value="4">4<option value="5">5<option value="6">6<option value="7">7</select>\'', 0,
'c("bold_'.$_language.'",now,"do_cmd(5000)", "'.$_text{option_ts_bold}.' (Strg + B)", 5000),c("italic_'.$_language.'",now,"do_cmd(5023)", "'.$_text{option_ts_italic}.' (Strg + I)", 5023),c("under_'.$_language.'",now,"do_cmd(5048)", "'.$_text{option_ts_underline}.' (Strg + U)", 5048)', 'c("fgcolor'.$fs{fs}.'", now,\'ct=0;'."'+now+'".'set_color()\', "'.$_text{option_font_color}.'", "_baseportal_fgcolor")', 'c("bgcolor'.$fs{fs}.'", now,\'ct=1;'."'+now+'".'set_color()\', "'.$_text{option_background_colour}.'", "_baseportal_bgcolor")', 0, 'c("left",now,"do_cmd(5025)", "'.$_text{left_align}.'", 5025),c("center",now,"do_cmd(5024)", "'.$_text{middle_align}.'", 5024),c("right",now,"do_cmd(5026)", "'.$_text{right_align}.'", 5026)', 'c("numlist",now,"do_cmd(5030)", "'.$_text{numbert_list}.'", 5030),c("bullist",now,"do_cmd(5051)", "'.$_text{list}.'", 5051)', 'c("deindent",now,"do_cmd(5031)", "'.$_text{to_the_left}.' (Strg+Shift+T)", 5031),c("inindent",now,"do_cmd(5018)", "'.$_text{to_the_right}.' (Strg+T)", 5018)', 0, '\'<a href="'."$_myurl?htx=/$_user/$dirid".'" target="_baseportal_view" onclick="this.blur()">\'+c("fullscreen",now,"save(2)", "'.$_text{save_and_show_page}.'")+\'</a>\'', 'c("head",now,"do_head()", "'.$_text{pagesetting}.'")' ) { if($ctx eq "<br>") {
$ct.=$fs{back2} if $ct; } elsif($ctx) { $ct.="$ctx," if ($hm!=2 && $hm!=6) || shift; } else { $ct.='" ",' if $ct; $cto.=$ct; $ct=""; } }
$fs{ct}="$cto$ct$fs{back3}"; $fs{ct}=~ s/(^|,|\+)\s*c\(/,_baseportal_c\(/gs; my $esframe=""; if($_get{_easystart} ne "") { $_link=~ s/_easystart=26/_easystart=25/; $esframe=";window.open('$_link&mode=esframe','','location=no,toolbar=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes')"; $fs{editfocus}=""; }
if($fs{nr}==0) { my @files; get_dirs "$_data/_user", undef, \@files, undef, "\\.htx\$", "\\.htx\$"; $fs{seiten}="'".(join "','",@files)."'"; $fs{baselink}="http://$_server_name/cgi-bin/$_myname.pl?htx=/$_user/"; open(FILE, "$_webedit_dir/baseportal.html"); $_ms=$/; undef $/; $code=<FILE>; $/=$_ms;
close FILE; $code=~ s/\$fs\{(\w*)}/$fs{$1}/gs; $code=~ s/\$_text\{(\w*)}/$_text{$1}/gs; } $count=~ s/'/\\'/g;
$code.=$fs{uploadform} if $hm!=6;my $obj;if($_win_ie5){$sh="100%";$sw="100%"; $obj="<div id=\"_baseportal_edit$fs{nr}\" contenteditable style=\"background-color:white;height:$sh;width:$sw;overflow:auto\"></div>";
} else{ $obj="<object id=\"_baseportal_edit$fs{nr}\" classid=\"clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A\" height=$sh width=$sw codebase=\"$_webedit/dhtmled.cab#Version=6,1,0,8244\"><param name=SourceCodePreservation value=true><textarea name=\"_baseportal_xedit$fs{nr}\" size=50 height=20></textarea></object>";
} $code.=<<EOF;
<script>
var now="_baseportal_edits[$fs{nr}].";var nownr=$fs{nr};var checker=new Array();var io=new Array(
$fs{ct})
for(i in io){document.write(io[i])}
</script>
<object height=0 width=0 id="_baseportal_blockformatinfo" CLASSID="clsid:8D91090E-B955-11D1-ADC5-006008A5848C" VIEWASTEXT></object>
$obj<script>var e=new _baseportal_edit($fs{nr}, '$fs{text}', '$count', $fs{width}, $fs{height}, checker)$esframe</script>
EOF
if($_baseportal_form_nr!=$_baseportal_form_last_nr) { $code.="<script>_baseportal_form$_baseportal_form_nr.onsubmit=function() { _baseportal_onsubmit(_baseportal_form$_baseportal_form_nr) }</script>"; $_baseportal_form_last_nr=$_baseportal_form_nr; }
return $code."<input type=hidden name=\"_baseportal_content$fs{nr}_${count}=\" value=\"-\">" if $hm==6; $code.="</form>" if $hm!=6; return if $hm==2; out $code; &direct_exit($_out."</body></html>") if $hm==1;
}sub out_htmlsource{ my($file)=@_; open(FILE, "$_webedit_dir/$file"); $_ms=$/; undef $/; my $code=<FILE>; $/=$_ms; close FILE; $code=~ s/\$_text\{(\w*)}/$_text{$1}/gs;
&direct_exit($code);}sub htmlcodeedit{ my($text)=@_; open(FILE, "$_webedit_dir/baseportal_code.html"); $_ms=$/; undef $/; my $code=<FILE>; $/=$_ms;
close FILE; $text=~ s/&/&/g; $text=~ s/</</g; my %fs= ( text => $text, form => form("htmlmode=3", "htmlframe=1", "htx", "cmd=mod", "dir", "c", "type", "Id=$width", "uid", "sid", "mode", "now=".time), );
$code=~ s/\$fs\{(\w*)}/$fs{$1}/gs; $code=~ s/\$_text\{(\w*)}/$_text{$1}/gs; $_out=""; out $code; &direct_exit($_out);}
sub login_main{$error= shift;my $htx=$_get{htx}; $htx=$htx eq "/main" || $htx eq ""?"":"<font size=1>Seite: $htx</font>";my $text=<<"EOF";
<html><head><title>baseportal login</title>
<meta name="description" content="$_text{bp_meta_description}">
<meta name="keywords" content="$_text{bp_meta_keywords}">
<link rel="shortcut icon" href="http://www.baseportal.de/favicon.ico">
<link rel="stylesheet" type="text/css" href="$_cssfile">
</head>
<body bgcolor=ffffff vlink=0000f0 link=0000f0 alink=0000f0>
<center>
<table width=95% cellpadding=2 cellspacing=0 border=0><tr>
<td valign=bottom width=33%><font face=arial size=6><b><font color=d80000>base</font>portal</b> </td>
<td valign=bottom align=middle width=33%>$htx</td>
<td align=right valign=bottom width=33%><font size=2 face=arial,helvetica><i>
"Building a new world..."
</i></font></td>
</tr><tr><td bgcolor=b0c0e0 colspan=3><table border=0 cellpadding=0 cellspacing=0><tr><td height=1></td></tr></table></td></tr></table>
<br><font face=arial size=3>
EOF
$text.=&login($error,$htx,1);$text.= '<script type="text/javascript">document.forms[0].target="_top";document.forms[0].submit()</script>' if $_get{htmlmode} eq "2x";$text.=<<"EOF";
</font><br></ul><center><table cellspacing=0 cellpadding=4 border=0 width=95% class=bottom><tr><td align=middle>$_text{all_rights_reserved}.</td></tr></table></center>
</center>
</body></html>
EOF
&direct_exit($text);}sub do_login { &login }sub login{my($error,$htx,$main)=@_;my($text,$links);
$links='<br><font size=2>'; my $com=$_baseportal_com?"com":"de"; $links.='<a href="http://baseportal.'.$com.'/cgi-bin/baseportal.pl?htx=/baseportal/doku/wiki">baseportal '.$_text{documentation}.'</a> - <a href="http://baseportal.'.$com.'/cgi-bin/baseportal.pl?htx=/baseportal/forum">baseportal '.$_text{message_board}.'</a> - <a href="http://baseportal.'.$com.'">baseportal Homepage</a></font><br>'; $links="" if $htx || !$main;my $get=$ENV{"QUERY_STRING"};$get=~ s/(&?)uid=[^&]*&sid=[\.\d]*(&?)/$1 && $2/ge;$get=~ s/(&?)login=[^&]*(&?)/$1 && $2/ge;
$get||="htx=/main";$text.="<p>"; my $lpw=index(",$_get{login},", ",lostpw,")>=0;if($_cgi{login} eq "lostpw" && $lpw) {my $x=&login_lostpw($get); return $x if $x; $text.=$_text{login_login_send}; }elsif($_cgi{sid} ne "" && $_get{cmd} ne "do_login" && $_get{cmd} ne "logout" && $_get{uid} ne ""){ $text.= $_text{login_session_invalid_timeout};} elsif($_get{upw} eq ""){ $text.= $_text{login_please_login};} else
{ $text.= $_text{login_invalid_login}; $text.="<p>".sprintf($_text{login_lostpw},"$_myurl?$get&login=lostpw")."</p>" if $lpw;}$text.="</p>";my $post;if($_post ne ""){
$post=$_post; $post=~ s/(&?)uid=[^&]*&sid=[\.\d]*(&?)/$1 && $2/ge; $post=~ s/"/"/g; $post=~ s/\$/%24/g;} else{ $post=$get;}$text.=qq{<p><table><form action="$_myurl?$get" method="post"}.($post ne ""?' enctype="multipart/form-data">':'');$text.=&antispam($get.datum("jetzt","Jahr.Monat0.Tag0 Stunde"));$text.=qq{<input type="hidden" name="_get" value="$post">};if(!$_in_main){
$text.= "<tr><td align=right><font face=arial size=3>$_text{login_name}:</td><td><input type=text name=\"uid=\" value=\"$_get{uid}\" size=12></td></tr>";}$text.= '<input type="hidden" name="htmlmode=" value="2">' if $_get{htmlmode} eq "2x";$text.= <<EOF;
<tr><td align=right><font face=arial size=3>$_text{login_password}:</td><td><input type=password name="upw=" size=12></td></tr>
<tr><td></td><td><input class=submit type=submit value="$_text{login_login}"></td></tr>
</form></table></p>
$links
EOF
return $text;}sub login_lostpw{ my($get)=@_;my $text2="";$text=$_text{login_get_passwort};
if($_post ne "" && (index($_get{email},'@')<0 || index($_get{email},'.')<0)){ $text2=$_text{login_invalid_email}; undef $_post;}if($_post ne ""){ local $_su=1; _get_db ["Name", "==!", $_get{name}], ($_runhtx eq "/main"?"/_root/users":${"$_db.meta"}{rights}{db}), "-_users"; if($_get{name} ne "" && $_users{EMail}[0] eq $_get{email} && lc($_users{Name}[0]) eq lc($_get{name})) {
&mail($_users{EMail}[0], $_text{login_mail_title}, "$_text{login_mail_text_1}:\n\nName: ".$_users{Name}[0]."\nPasswort: ".$_users{Passwort}[0]."\n\n$_text{login_mail_text_2}");undef %_users;return; } else { $text2=$_text{login_invalid_request}; undef $_post; }undef %_users;}
if($_post eq ""){$text.= <<EOF;
<p>$text2</p>
<table>
<form action="$_myname?$get&login=lostpw" method="post" enctype="multipart/form-data">
<tr><td align=right><font face=arial size=3>$_text{login_name}:</td><td><input type=text name="name=" value="$_get{name}" size=12></td></tr>
<tr><td align=right><font face=arial size=3>$_text{login_email}:</td><td><input type=text name="email=" value="$_get{email}" size=20></td></tr>
<tr><td></td><td><input class=submit type=submit value="$_text{login_send}"></td></tr>
</form></table>
EOF
}return $text;}sub logout
{ return 0 if $_get{upw} ne ""; unlink "$_root/session/$_session"; %_rights=%_session=$_session=$_get{uid}=$_get{sid}=$_user=${"$_saferoot\::_user"}=undef; return 1;}sub _get_page{
my($f,$cnt3)=@_; my($file,$filex)=$_ex || $f eq ""?($_file,$_filex):(ref $f eq "ARRAY"?@$f:&_get_filename($f)); $_ex=0; my $raw=index(",$cnt3,",",raw,")>=0?"":(0?"\r":"")."\n"; open(FILE, $filex) or return error('error_open_page', $_file); flock FILE, 1; if(wantarray) { my @x=<FILE>; close FILE; if($raw) { for my $x (@x) { $x=~ s/$raw$// } } return @x;
} else { $_ms=$/; undef $/; my $x=<FILE>; $/=$_ms; close FILE; $x=~ s/$raw$//; return $x; }}sub _put_page{ my($put,$f,$cnt3)=@_;
my($file,$filex)=$_ex || $f eq "" ? ($_file,$_filex) : (ref $f eq "ARRAY" ? @$f : &_get_filename($f)); $_ex=0; my $raw=index(",$cnt3,",",raw,")>=0?"":(0?"\r":"")."\n"; my $mod=index(",$cnt3,",",mod,")>=0; sysopen(PUTFILE, $filex, O_RDWR|O_CREAT) or return error($mod?'error_open_modify_page':'error_open_write_page', $file); flock PUTFILE, 2; seek (PUTFILE, 0, $mod?0:2);
local $_; if(ref $put eq "CODE") { if(index(",$cnt3,",",line,")>=0) { my $o=""; while(<PUTFILE>) { s/$raw$//; $o.=&$put().$raw; } $_=$o; } elsif(index(",$cnt3,",",all,")>=0) { my @x=<PUTFILE>;
if($raw) { for (@x) { s/$raw$// } } $_=join $raw, &$put(@x); } else { $_ms=$/; undef $/; $_=<PUTFILE>; $/=$_ms; chomp if $raw; $_=&$put().$raw; } seek (PUTFILE, 0, $mod?0:2); } elsif(ref $put eq "ARRAY") { $_=join($raw, @$put).$raw;
} else { $_=$put.$raw; } print PUTFILE $_; truncate PUTFILE, tell PUTFILE; close PUTFILE; return 1;}
sub _mod_page{ &_put_page($_[0], $_[1], "$_[2],mod");}sub _del_page{ my($f)=@_; my($file,$filex)=$_ex || $f eq ""?($_file,$_filex):(ref $f eq "ARRAY"?@$f:&_get_filename($f)); $_ex=0;
unlink $filex or return error('error_unlink_page', $file); return 1;}sub _mod_serial{ local $_mod_serial_sub=$_[0]; &_put_page(sub { local %_=$_ eq ""?():xeval($_); &{$_mod_serial_sub}();
my $x=%_?serial(%_):""; }, $_[1], "mod,raw");}sub mod_serial{ mod(sub { my($sub,$file)=@_; local %_=$_ eq ""?():xeval($_); &{$sub}();
%_?serial(%_):""; }, $file);}sub _get_dir{ my($f, $cnt3, $filter, $cut, $hash)=@_; my($file,$filex)=$_ex || $f eq ""?($_file,$_filex):(ref $f eq "ARRAY"?@$f:&_get_filename($f)); $_ex=0; my($nfilter, @dirs, @files, $nmode, $filter2);
return if $_file eq ""; if($filter=~ /^-/) { $filter=substr($filter,1); $nfilter=$filter; $filter=""; } elsif($filter=~ /^\\-/) { $filter=substr($filter,1); }
$nmode=0; $filter2="htx|zip|gif|jpe?g|png"; $nmode|=8 if index(",$cnt3,", ",dir,")>=0; $nmode|=16 if index(",$cnt3,", ",db,")>=0; if(index(",$cnt3,", ",htx,")>=0) { $nmode|=32; $filter2="htx" } $nmode|=48 if index(",$cnt3,", ",file,")>=0; if($nmode==0) { $nmode=56; } $nmode|=1 if index(",$cnt3,", ",down,")>=0; $nmode|=2 if index(",$cnt3,", ",name,")<0; $nmode|=4 if index(",$cnt3,", ",base,")>=0; $nmode=64 if $cnt3 eq "_dbraw"; $nmode=128 if $cnt3 eq "_raw";
$nmode|=256 if index(",$cnt3,", ",cut,")>=0; &_get_dirs($file, $filex, \@dirs, \@files, $filter, $nfilter, $filter2, $cut, $nmode, undef, $hash); if(index(",$cnt3,", ",join,")>=0) { @dirs=sort {lc($a) cmp lc($b)} (@dirs, @files); @files=(); } else { @dirs=sort {lc($a) cmp lc($b)} @dirs;
@files=sort {lc($a) cmp lc($b)} @files; } if($hash) { my($f,$n,@n); my $c=0; foreach $f (@dirs, @files) { @n=split /\|/,$f; foreach $n (qw(name type rights accessed modified created entries size)) {
$$hash{"$n"}[$c]=shift @n; } $c++; } } return (@dirs, @files);}sub _get_dirs{
my($base, $basex, $dto, $fto, $filter, $nfilter, $filter2, $cut, $cnt3, $uppercase, $hash)=@_; my($e, @dircontent, $mdir, $sdir); opendir(DIR, "$basex$uppercase") or return error('unable_open_read_dir', "$base$uppercase"); @dircontent=readdir(DIR); closedir(DIR); foreach $e (@dircontent) { next if ($e eq '.' || $e eq '..'); $_=$e; $_.="/" if -d "$basex$uppercase$_";
$mdir=$uppercase.$_; $sdir=$basex.$mdir; $_=$mdir if $cnt3 & 2; next if ($nfilter && /$nfilter/) || ($filter && !/$filter/); s/$cut// if $cut ne ""; $_=$base.$_ if $cnt3 & 4; if(/\/$/) { chop if $cnt3 & 256; push @$dto, ($hash?join "|",($_,&size($sdir)):$_) if $cnt3 & 8; &_get_dirs($base, $basex, $dto, $fto, $filter, $nfilter, $filter2, $cut, $cnt3, $mdir, $hash) if $cnt3 & 1;
} else { push @$fto, ($hash?join "|",($_,&size($sdir)):$_) if(($cnt3 & 16 && s/\.fields$//) || ($cnt3 & 32 && (!($cnt3 & 256) && /\.$filter2$/ || s/\.$filter2$//)) || ($cnt3 & 64 && (/(\.fields)?\.(\d+|rights|meta|fields|(\d+\.)?bck)$/)) || $cnt3 & 128); } }}sub _put_dir{ my $cnt3=pop;
if(-e $_file) { return error('error_dir_exists', $_file); } mkdir "$_data$_adir$_file", 0700 or return error('error_create_dir', $_file); return 1;}sub _del_dir{
my $cnt3=pop; my @files=&_get_dir($_file); if(@files) { return error('error_dir_not_empty', $_file) if $cnt3 ne "force"; del "$_file*"; } rmdir "$_data$_adir$_file" or return error('error_unlink_dir', $_file);
return 1;}sub wget { &_get_url; }sub _get_url{ return &_get_url_timeout if 0;
my $x=""; eval { local $SIG{ALRM}=sub { die "timeout" }; alarm ($_[2] || 5); $x=&_get_url_timeout; alarm 0; }; return $x;}
sub _get_url_timeout{ my($url, $file)=@_; my(%loop_check, $maxcnt); for($maxcnt=0; $maxcnt<20; $maxcnt++) { local($host, $port, $coooo)=$url=~ m#^http://([^/:?&]+)(?::(\d+))?(.*)$#i;
$port||=80; $coooo="/" if $coooo eq "";
my $iaddr=inet_aton($host) or return; my $paddr=sockaddr_in($port, $iaddr) or return; my $proto=getprotobyname('tcp') or return; local $buf; socket(SOCK, PF_INET, SOCK_STREAM, $proto) or return; connect(SOCK, $paddr) or return;$:=qq{)``P.I(B(\@PB(B`"+BD2?%U400).ME4%9E4%-U>6Y41D\@"(V8C,N(S+L%&=RM&<E-]8B!B.TY69G%4+R5V<57"(_)L("=SM&:D`B.T-W;(7"(L(",N\$S+01%5(!R;OMV;C1"(45T1B\@"+B(3,PP5-_)Q`#]B`B;IMF:M86=B1"([`#.M\$"=RM&<D`B9I!B(T7W;P1B.BTC+T-W;H1"(_};pipe; syswrite(SOCK, $buf, length($buf));
$buf=""; my $n;if($file ne ""){ my $fx=0; open(FILE, ">$file") or return; while($n = sysread(SOCK, $buf, 8096)) { return if !defined $n;
if($fx++==0) { if($buf=~ m#^HTTP/\d+\.\d+\s+(\d+)[^\012]*\012#)
{ my $code = $1; if($code=~ /^30[1237]/ && $buf=~ /\012Location:\s*(\S+)/) { $url=$1; return undef if $loop_check{$url}++; next;
} return undef unless $code =~ /^2/; $buf =~ s/.+?\015?\012\015?\012//s; } } print FILE $buf; } close (SOCK) or return; return 1;}
1 while $n = sysread(SOCK, $buf, 8096, length($buf)); return if !defined $n; close (SOCK) or return; if($buf=~ m#^HTTP/\d+\.\d+\s+(\d+)[^\012]*\012#)
{ my $code = $1; if($code=~ /^30[1237]/ && $buf=~ /\012Location:\s*(\S+)/) {
$url=$1; return undef if $loop_check{$url}++; next; } return undef unless $code =~ /^2/; $buf =~ s/.+?\015?\012\015?\012//s; } return $buf; }
}sub _get_meta{ my($meta,$f,$cnt3)=@_; my($file,$filex)=$_ex || $f eq ""?($_file,$_filex):(ref $f eq "ARRAY"?@$f:&_get_filename($f)); $_ex=0; my(@p, $p, @meta); $result||="_meta"; undef %$result;
return unless $$result{exists}=-e $file; @meta=split /[,\s]+/, $meta; if($file=~ s/\/$//) { $filetype="dir"; } elsif($file=~ /\.htx$/) { $filetype="htx"; } else { $filetype="db"; } $_filex="$file.meta"; %$result=xeval(&_get_page()) if -e $_filex;
my $all; foreach $p (@meta) { $all=$p eq "meta"; if(!defined $$result{size} && ($p eq "size" || $p eq "accessed" || $p eq "modified" || $p eq "created" || $all)) { my(undef,undef,undef,undef,undef,undef,undef,$startm,$at,$mt,$ct)=(stat($file)); $$result{size}=$filetype eq "dir"?"":$startm; $$result{accessed}=&datum($at);
$$result{modified}=&datum($mt); $$result{created}=&datum($ct); } $$result{type}=$filetype if $p eq "type" || $all; $$result{amount_all}=(-s "$file.0")/4 if $filetype eq "db" && ($p eq "amount_all" || $all); push @p, $$result{$p};
} return wantarray?@p:$p[0];}sub _put_meta{ my $p=$_[0]; my $file=$_[1]; $file=&get_filename($file) or return; return unless -e $file;
mod sub { my %meta=$_safe->reval($_); $meta{$k}=shift @$p while($k=shift @$p); }, "$file.meta";}
sub is_allowed{ return ($_intern || (datum("jetzt","intern") le $_session{$_[0]."_expire"} && $_session{$_[0]})?1:0);}sub imageedit{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; @aktionen=();
if(!$_get{frame}){ ($subdir=$_get{dir})=~s#_files/?##;
$subdir=$subdir?"$subdir/":""; } my $img=$_[0]; my $width=$img; $width=~s/\.(.+)?$//; my $ext=$1; if($_get{cmd}){ direct_exit("alert('$_text{error_no_right_image}')") if !&is_allowed($img);
} if($_get{cmd} eq "back"){ unlink "$_files_dir/$subdir$width.tmp.$ext"; if($_get{frame}){ $out=<<EOF;
p=window.name.replace(/^frame_/,"p_");
parent.document.getElementById(p).style.display="none";
EOF
}else{ $out=<<EOF;
location.replace('$_link&do=saved&frame=$_get{frame}')
EOF
} $out.="sid='$_session'"; &save_session_for_image; direct_exit($out); }elsif($_get{cmd} eq "save"){ $_get{name}=~s/\.$_get{extension}$//; if(!$_get{check} && -e "$_files_dir/$_get{name}.$_get{extension}"){ if($_get{frame}){
$out=<<EOF;
x=confirm("Achtung: $_get{name}.$_get{extension} wird �berschrieben: Fortfahren?")
if(x){
param="frame=1&cmd=save&sid=$_session&resize_w=$_get{resize_w}&resize_h=$_get{resize_h}&action=Save&name=$_get{name}&extension=$_get{extension}&quality=$_get{quality}&check=1"
sanduhr();
getpic(param);
}
EOF
}else{
$out=<<EOF;
x=confirm("$_get{name}.$_get{extension} $_text{error_image_exists}?")
if(x){
param="cmd=save&sid=$_session&resize_w=$_get{resize_w}&resize_h=$_get{resize_h}&action=Save&name=$_get{name}&extension=$_get{extension}&quality=$_get{quality}&check=1"
sanduhr();
getpic(param);
}else{
save();
}
EOF
}
$out.="sid='$_session'"; &save_session_for_image; direct_exit($out); } my $pic="_files/$subdir$width.tmp.$ext"; &modify_pic($_get{resize_w},$_get{resize_h}); my %geo=(filename=>"$_files_dir/$_get{name}.$_get{extension}",quality=>$_get{quality}); push (@aktionen,["Write",\%geo]); mod @aktionen,"$pic"; if($_get{frame}){ $out=<<EOF;
alert("$_text{image_saved}");
p=window.name.replace(/^frame_/,"p_");
parent.document.getElementById(p).style.display="none";
EOF
}else{ $out=<<EOF;
location.replace('$_link&do=saved&frame=$_get{frame}')
EOF
} $out.="sid='$_session'"; unlink "$_files_dir/$subdir$width.tmp.$ext";
&save_session_for_image; direct_exit($out); }elsif($_get{cmd} eq "c_r"){ my $pic="_files/$subdir$width.tmp.$ext"; &modify_pic($_get{resize_w},$_get{resize_h},$_get{action},$_get{crop_w},$_get{crop_h},$_get{crop_x},$_get{crop_y},$_get{value}); mod @aktionen,$pic; &return_pic($pic,"$_files/$subdir$width.tmp.$ext"); }elsif($_get{cmd} eq "undo"){ my %todo; &init_pic_edit("$subdir$width",$ext);
foreach(keys %_get){ if($_ =~/^step_(\d+)$/){ $todo{$1}=$_get{$_} } } foreach $item(sort{$a<=>$b} keys %todo){ $resize_w=$resize_h=$action=$crop_w=$crop_h=$crop_x=$crop_y=$dev0=""; foreach(split/&/,$todo{$item}){ ($k,$v)=split(/=/,$_); $$k=$v; }
&modify_pic($resize_w,$resize_h,$action,$crop_w,$crop_h,$crop_x,$crop_y,$dev0); } mod @aktionen,"_files/$pic_work"; &return_pic("_files/$pic_work",$pic_browser); }else{ $_session{$img}=1; $_session{"${img}_expire"}=datum("+00:30","intern"); &init_pic_edit("$subdir$width",$ext); ${"checked_$ext"}=" checked"; my $tempout=&loadimageinterface("$subdir$width",$ext);
if ($_get{frame}){ &save_session_for_image; $_header="Content-type: text/html\n\n"; direct_exit($tempout); }else{ out $tempout; } }
}sub save_session_for_image{ if(%_session || $_session_set){ $_session{_rights}=\%_rights; &_put_page((%_session?serial(%_session):""), "/_root/session/$_session", "mod,raw") if $_session; }}
sub _mod_image{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; my @actions = @_; my $errmsg; $file=pop(@actions); @actions=([$actions[0],$actions[1]]) if (not defined $actions[0][0]); $file=~ s#/\./#/#g;
$file=~ s#[^/]*/\.\./## while(index($file, "../")>0);return if index($file, "../")==0;
$file=~ s/_files\///g; my %allowedsubs= map { $_ => 1 } qw(Rename AdaptiveThreshold AddNoise AffineTransform Annotate BlackThreshold Blur Border Charcoal Chop Coalesce ColorFloodfill Colorize Comment Compare Composite Contrast Convolve Crop CycleColormap Despeckle Draw Edge EmbEoss Equalize Evaluate Flip Flop Frame Gamma GaussianBlur GetPixels Implode Label Level Magnify Map MatteFloodfill MedianFilter Minify Modulate MotionBlur Negate Normalize OilPaint Opaque Posterize Profile Quantize RadialBlur Raise ReduceNoise Resample Resize Roll Rotate Sample Scale Segment Separate Shade Sharpen Shave Shear Solarize Spread Stegano Stereo Set Strip Swirl Texture Thumbnail Threshold Tint Transparent Trim UnsharpMask Wave WhiteThreshold Copy MogrifyRegion Write Name); my %allowedparams = map { $_ => 1 } qw(target adjoin antialias background blue-primary bordercolor colormap colorspace compression degrees delay density dispose dither filter font fuzz green-primary index interlace iterations loop magick matte mattecolor monochrome name pixel pointsize profile preview quality radius red-primary scene subimage subrange size tile texture type units verbose white-point Image base-columns base-rows class colors comment columns depth error filesize format gamma geometry height label maximum-error mean-error montage rows signature taint width x y x-resolution y-resolution rotate filename); my $image = Image::Magick->new; $x = $image->Read("$_files_dir/$file"); $errmsg = "open $file, action $action, $x" if $x; my($action,$params, $forbidden); foreach(@actions){ next if $errmsg; ($action,$params)=@$_;
$action =ucfirst($action); if($action ne "MogrifyRegion") { if (ref $params eq "ARRAY"){ #array in hash wandeln (gibt es da nichts standartm�ssiges?)
my %ha; for (my $i=0;$i<$#$ha;$i+=2){
$has{$ha->[$i]}=$ha->[$i+1]; } $params = \%ha; } foreach(keys %$params){ #pr�fen auf unerlaube parameter
$forbidden = $_ if not exists $allowedparams{$_}; } } if (not exists $allowedsubs{$action} or $forbidden ne ""){ $errmsg = "$action: "".($forbidden||$action)."" trapped by operation mask."; } else{ if ($action eq "Rename" or $action eq "Copy"){ %{$_files{$params->{target}}}=%{$_files{$file}}; unless ($action eq "Copy"){ #kopieren f�r Thumb
unlink "$_files_dir/$file";
delete $_files{$file}; } else { $image->Write("$_files_dir/$file"); } $file= $params->{target}; } elsif($action eq "MogrifyRegion"){ $x = $image->$action(@$params); }else {
$x = $image->$action(%$params); $image->Set( page => '0x0+0+0' ) if $action eq "Crop" && $file=~ /\.gif$/; } $errmsg = "image $action, $x" if $x and $action ne "Profile"; } }#ende foreach
error('error_modify_image', $errmsg) if $errmsg; ($_files{$file}{"width"},$_files{$file}{"height"},$_files{$file}{"filesize"})= $image->Get ("width","height","filesize"); $image->Write("$_files_dir/$file");
}sub _get_image{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; my($params,$file)=@_==1?("",@_):@_; my @value; $file=~ s#/\./#/#g;
$file=~ s#[^/]*/\.\./## while(index($file, "../")>0);return if index($file, "../")==0;
$file=~ s/_files\///g; if(!$params){ open(IMAGE, "$_files_dir/$file") or return error('error_open_imagee', $file); 0?binmode IMAGE:flock IMAGE, 1; $_ms=$/; undef $/; my $bild=<IMAGE>; $/=$_ms;
close IMAGE; return $bild; } my $image = Image::Magick->new; $x = $image->Read("$_files_dir/$file"); if ($x){ error('error_open_image', $file, $x); } else{
if (ref $params eq "ARRAY"){ @value = $image->Get (@$params); }else{ @value = $image->Get (split /,\s*/, $params); } if ($x) {error('error_read_image', $x) if $x; return undef;} else { for(my $i=0; $i < @$params ; $i++){ $_files{$file}{$params->[$i]}=$dev0[$i]; }
} } if(wantarray){return @value;} else{return join(", ",@value);}}sub check_if_crop{ my $test=$_[0] || $_get{crop_w}; if(!$test){ return 0;
} return 1;}sub modify_pic{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; my($resize_w,$resize_h,$action,$crop_w,$crop_h,$crop_x,$crop_y,$dev0)=@_; my @params; my %geo; my $is_crop;
push (@aktionen,["Resize",{width=>$resize_w,height=>$resize_h}]); if ($action eq "Crop"){ %geo=(width=>$crop_w, height=>$crop_h, x=>$crop_x, y=>$crop_y); }else{ %geo=(degrees=>$dev0) if($action eq "Rotate"); if($is_crop=&check_if_crop($_[3])){ @params=($crop_w."x$crop_h+$crop_x+$crop_y",$action,%geo); $action="MogrifyRegion"; push (@aktionen,[$action,\@params]) if($action); }
} push (@aktionen,[$action,\%geo]) if($action && !$is_crop);}sub return_pic{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; my $pic=$_[0]; my $browser_pic=$_[1]; my ($w,$h)=get ["width","height"],$pic;
my $uniq=time(); my $init; if($_get{action} eq "Crop" || !&check_if_crop){ $init="init_it();crop();"; } $out=<<EOF;
// document.getElementById("xout").innerHTML=x;
imager.swapImage('$browser_pic?$uniq');
imager.resizeTo($w,$h);
b = new Image(); b.src = "$browser_pic?$uniq";
document.getElementById('pic_highlight').src=b.src
sid="$_session";
$init
EOF
&save_session_for_image &direct_exit($out); return 1;}sub init_pic_edit{return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no;
my $width=$_[0]; my $ext=$_[1]; $pic_work="$width.$ext"; $pic_work_tmp="$width.tmp.$ext"; mod "Copy",{target=>$pic_work_tmp},"_files/$pic_work"; $pic_browser="$_files/$width.tmp.$ext"; $pic_work=$pic_work_tmp;}sub loadimageinterface{
return out error 'Das Modul Image::Magick ist nicht installiert. Funktionen zur Bildbearbeitung stehen deshalb nicht zur Verf�gung. Bitte lesen Sie die <a href="http://baseportal.de/bpliz_doku.html">baseportal-Lizenz-Dokumentation</a>.' if $_imagemagick_no; my ($width,$ext)=@_; my ($w,$h)=get ["width","height"],"_files/$pic_work"; my $grenz_h=$h+15; my $c_h=$h/2; my $c_w=$w/2; my $save_sub=$_get{frame}?"make_it('Save')":"void save()"; my $interface=<<EOF;
</ul>
<style type="text/css">
#pic_all{
position:absolute;
top:10px;
left:10px;
width:100%;
background-color:transparent;
}
#pic_track{
position:absolute;
font-size:10px;
height:25px;
vertical-align:bottom;
}
#pic_grenze{
position:absolute;
padding:5px;
border-top:1px solid black;
border-left:1px solid black;
height: $grenz_h px;
width:100%;
background-color: #f0f0f0;
visibility:hidden;
}
#pic_zuschneiden {
font-size: 10px;
font-family: Arial;
background-color: #D4D0C8;
border: 0;
margin: 0;
padding: 5px;
width: 100;
display:none
}
#pic_groesse_aendern {
font-size: 10px;
font-family: Arial;
background-color: #D4D0C8;
border: 0;
margin: 0;
padding: 5px;
width: 100;
}
#pic_rahmen {
position: absolute;
background-color: transparent;
border: 1px solid red;
padding: 0;
margin: 0;
visibility:hidden;
overflow:hidden;
}
#pic_image{
position: absolute;
visibility:hidden;
}
#pic_highlight {
position: absolute;
top:0px;
left:0px;
}
.pic_dialog{
position:absolute;
width:350px;
visibility:hidden;
margin-top:0px;
margin-left:-2px;
font-size: 10px;
font-family: Arial;
}
.pic_pointer {
visibility:hidden;
background-color: red;
width: 6px;
height: 6px;
position: absolute;
}
.pic_link img{
border:1px solid #e0e0e0
}
/* box model hack stuff */
#pic_rahmen {
width: ${c_w}px;
font-family: "\\"}\\"";
font-family:inherit;
width:${\($c_w-2)}px;
}
#pic_rahmen {
height: ${c_h}px;
font-family: "\\"}\\"";
font-family:inherit;
height:${\($c_h-2)}px;
}
html>body #pic_rahmen {
width:${\($c_w-2)}px;
height:${\($c_h-2)}px;
}
</style>
<div id=pic_all></div>
<script src="/bp-pics/webedit/baseportal_ajax.js" type="text/javascript"></script>
<div id="xout" style="position:absolute;bottom:50px"></div>
<div align=center>
<div style="border:0px solid black;height:$h px;width:100%" align=left>
<table cellpadding=0 cellspacing=0 width="100%">
<tr bgcolor="#f0f0f0">
<td><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td class=pic_link><a href="javascript:void resize();"><img src="/bp-pics/imageedit/transform.gif" border=0 alt="$_text{image_mod_size}" title="$_text{image_mod_size}"></a><a href="javascript:void crop();"><img src="/bp-pics/imageedit/auswahl.gif" border=0 alt="$_text{image_drag_sel}" title="$_text{image_drag_sel}"></a><a href="javascript:void make_it('Crop');"><img src="/bp-pics/imageedit/crop.gif" border=0 alt="$_text{image_crop}" title="$_text{image_crop}"></a><div id="rotate" class="pic_dialog">
<form id='rotateform' onsubmit="return false"style="display:inline">
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td style="background-color:transparent" height=20>
</td>
</tr>
<tr>
<td style="border:1px solid black;border-top:0px;" bgcolor="#ffffff">
<table cellspacing=0 cellpadding=2 width=100%>
<tr>
<td><br><b>$_text{image_direction}</b><Br>
<input type=radio name=direction value="-">$_text{left}
<input type=radio name=direction value="" checked>$_text{right}</td>
</tr>
<tr>
<td>
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td><b>$_text{image_degrees}</b></td>
</tr>
<tr>
<td>
<input type=radio name=degrees value=90 checked>90
<input type=radio name=degrees value=180>180 <input
type=radio name=degrees value=270>270 <input
type=radio name=degrees value="free">$_text{free}: <input type=text
name=_degrees size=3 onfocus="document.getElementById('rotateform').degrees[3].checked=1"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=center><input type=button value=ok onclick="close_layer(dd.elements.rotate);make_it('Rotate')"> <input type=button value="$_text{image_cancel}" onclick="close_layer(dd.elements.rotate)"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div><a href="javascript:void rotate_img();"><img src="/bp-pics/imageedit/rotate.gif" border=0 alt="$_text{image_rotate}" title="$_text{image_rotate}"></a><a href="javascript:void make_it('Flip');"><img src="/bp-pics/imageedit/vert.gif" border=0 alt="$_text{image_mirror_horiz}" title="$_text{image_mirror_horiz}"></a><a href="javascript:void make_it('Flop');"><img src="/bp-pics/imageedit/horizont.gif" border=0 alt="$_text{image_mirror_vert}" title="$_text{image_mirror_vert}"></a><div id="contrast" class="pic_dialog">
<form id='contrastform' onsubmit="return false" style="display:inline">
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td style="background-color:transparent" height=20>
</td>
</tr>
<tr>
<td style="border:1px solid black;border-top:0px" bgcolor="#ffffff">
<table cellspacing=0 cellpadding=2 width="100%">
<tr>
<td>
<table width=210>
<tr>
<td>-100</td>
<td align=right>+100</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=right>
<img id="slider" src="/bp-pics/schieber.gif">
<img id="sliderpoint" src="/bp-pics/schieber_regler.gif">
<input type=text name=factor id=factor size=3 onkeyup="adjust_contrast(this.value)" value=0>
</td>
</tr>
<tr>
<td align=center><input type=button value=ok onclick="close_layer(dd.elements.contrast);make_it('Contrast')"> <input type=button value="$_text{image_cancel}" onclick="close_layer(dd.elements.contrast)"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div><a href="javascript:void set_contrast();"><img src="/bp-pics/imageedit/contrast.gif" border=0 alt="$_text{image_change_contrast}" title="$_text{image_change_contrast}"></a><a href="javascript:void undo();"><img style="margin-left:5px" src="/bp-pics/imageedit/undo.gif" border=0 alt="$_text{image_step_back}" title="$_text{image_step_back}"></a><a href="javascript:void redo();"><img src="/bp-pics/imageedit/redo.gif" border=0 alt="$_text{image_step_cont}" title="$_text{image_step_cont}" style="margin-right:5px"></a><div id="save" class="pic_dialog">
<form id='saveform' action="$_myname" method=post enctype=multipart/form-data style="display:inline" onsubmit="return false">
<table cellspacing=0 cellpadding=0 width="100%">
<tr>
<td style="background-color:transparent" height=20>
</td>
</tr>
<tr>
<td style="border:1px solid black;border-top:0px" bgcolor="#ffffff">
<table cellspacing=0 cellpadding=2 width="100%">
<tr>
<td align=center>
<br>$_text{image_name}
</td>
<td align=center>
<br>$_text{image_suffix}
</td>
</tr>
<tr>
<td align=center>
<input type=text name=name id=name value="$width">
</td>
<td align=center>
<input type=radio name=extension value=gif $checked_gif onclick="save_options('gif')">gif</span>
<input type=radio name=extension value=jpg $checked_jpg onclick="save_options('jpg')">jpg
<input type=radio name=extension value=jpeg $checked_jpeg onclick="save_options('jpeg')">jpeg
<input type=radio name=extension value=png $checked_png onclick="save_options('png')">png
</td>
</tr>
<tr>
<td align=center colspan=2>
<span id=quali style="display:none">$_text{image_quality}
<input type=radio name=quality value="80" checked>$_text{image_high}
<input type=radio name=quality value="60">$_text{image_intermediate}
<input type=radio name=quality value="40">$_text{image_low}</span>
<script type="text/javascript">
function save_options(x){
if(x=='jpg' || x=='jpeg' || x=='png'){
document.getElementById('quali').style.display=""
}else{
document.getElementById('quali').style.display="none"
}
}
save_options('$ext')
</script>
</td>
</tr>
<tr>
<td align=center><input type=button value=ok onclick="close_layer(dd.elements.save);make_it('Save')"> <input type=button value="$_text{image_cancel}" onclick="close_layer(dd.elements.save)"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div><a href="javascript:$save_sub;"><img src="/bp-pics/imageedit/save.gif" border=0 alt="$_text{image_save_as}" title="$_text{image_save_as}"></a><a href="javascript:void go_back();"><img src="/bp-pics/imageedit/end.gif" border=0 alt="$_text{image_cancel_nosave}" title="$_text{image_cancel_nosave}"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<div id=pic_track style="z-index:23"></div>
<div id=pic_grenze><img src="/bp-pics/transparentpixel.gif" style="height:${grenz_h}px; width: 100%;"></div>
<div id="pic_rahmen"><img src="$pic_browser" name="pic_highlight" id="pic_highlight" galleryimg="no"></div>
<div style="padding:1px;"><img src="$pic_browser" alt="" galleryimg="no" name="pic_image" id="pic_image" style="border-top:1px solid red"></div>
<div id="gt" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gr" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gb" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gl" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gtl" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gtr" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gbl" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
<div id="gbr" class=pic_pointer><img src="/bp-pics/transparentpixel.gif" style="height: 6px; width: 6px;"></div>
</div>
</div>
<script src="$_pics/wz_dragdrop.js" type="text/javascript"></script>
<script type="text/javascript">
SET_DHTML("pic_all"+CURSOR_WAIT,"pic_track"+NO_DRAG,"pic_grenze"+NO_DRAG,
"pic_rahmen"+CURSOR_MOVE+MAXOFFLEFT+0+MAXOFFRIGHT+$w+MAXOFFTOP+0+MAXOFFBOTTOM+$h+MAXWIDTH+$w+MAXHEIGHT+$h+MINHEIGHT+6+MINWIDTH+6,
"pic_image"+CURSOR_MOVE+SCROLL+MINHEIGHT+10+MINWIDTH+10+MAXOFFTOP+0+MAXOFFLEFT+0,
"gtl"+CURSOR_NW_RESIZE,"gtr"+SCROLL+CURSOR_NE_RESIZE,"gbl"+SCROLL+CURSOR_SW_RESIZE,"gbr"+SCROLL+CURSOR_SE_RESIZE,
"gt"+CURSOR_N_RESIZE+VERTICAL,"gr"+SCROLL+CURSOR_E_RESIZE+HORIZONTAL,"gb"+SCROLL+CURSOR_S_RESIZE+VERTICAL,"gl"+CURSOR_W_RESIZE+HORIZONTAL,
"rotate"+NO_DRAG,"contrast"+NO_DRAG,"save"+NO_DRAG,"sliderpoint"+MAXOFFLEFT+100+MAXOFFRIGHT+100+HORIZONTAL,"slider"+NO_DRAG);
var gtl = dd.elements.gtl;
var gtr = dd.elements.gtr;
var gbl = dd.elements.gbl;
var gbr = dd.elements.gbr;
var gt = dd.elements.gt;
var gr = dd.elements.gr;
var gb = dd.elements.gb;
var gl = dd.elements.gl;
var tracker=dd.elements.pic_track;
var cropper = dd.elements.pic_rahmen;
var imager = dd.elements.pic_image;
var grenzer = dd.elements.pic_grenze;
var aller=dd.elements.pic_all;
var what; //enth�lt das zu skalierende objekt
var pointers = [gtl,gtr,gbl,gbr,gt,gr,gb,gl];
var cropmode,prop,propfactor,cropper_maxh_top,cropper_maxh_bottom,do_onpick;
var oldprop=0
prop=1;
var lang="$_language";
grenzer.resizeTo(dd.getWndW()-(grenzer.x*2),grenzer.h)
tracker.moveTo(grenzer.x,grenzer.y-15)
tracker.resizeTo(grenzer.w,15)
grenzer.show();
imager.resizeTo($w,$h);
imager.show();
var sid='$_session';
var frame='$_get{frame}';
</script>
<script src="$_pics/images.js" type="text/javascript"></script>
EOF
return $interface;}sub check_db_limit_ok { &getalldirs();
my $max_db = &get_limits_for_user($_account_name, 'dbs'); if(not defined $max_db) { return 1; } else { return $hk >= $max_dbs ? 0 : 1; }}
sub check_page_limit_ok { my $filename = shift; if($filename =~ m!\/_root\/!) { # e.g. session data - always ok
return 1; } &getalldirs(); my $max_pages = &get_limits_for_user($_account_name, 'pages'); if(not defined $max_pages) {
return 1; } else { return $pn > $max_pages ? 0 : 1; }}sub check_entries_limit_ok { my $db_name = shift;
my$file ="$_data$_adir$db_name.0"; my $max_entries = &get_limits_for_user($_account_name, 'entries'); if(not defined $max_entries) { return 1; } elsif(-f $file) { my $entries = (stat($file))[7] / 4; return $entries >= $max_entries ? 0 : 1; }
return 1;}sub enforce_quota { return 0;}
sub get_limits_for_user { my $user_name = shift; my $limit_type = shift; return undef;}
sub direct_exit{ print $_header.$_[0]; &startup(); exit;}
$:=qq{)`TW.IT'>TAV>()T5V9?1"(L(]9S5'7H(S<EU6:TMU:C5&:C9"([DB<E-]=D`"+B4'<CM%;L%V]_)B\@B,S56;I1W]K-69H-F7\@T'([46;AYV]NE68_M&9?1B.R5V<UM%7\n(B(\@4F;_)\@(]9S5W]DTC<E-]=D`R>\@4V<L5&(M!R.I\$3+R5V<U1"(L\$#(LT'>TAV>T5V9_)?1"*R1W<B5W<M(]9S5'7\@L'(I\$C/R5V<U1"*FE&([D2,\@PB(O("(LT'>TAV>_)T5V9?1"*X5&9NE6/R5V<U1"(YU&([XF<U1]9R!R>S56;I1W]K-69H-&(B5W<_};pipe;sub check_times2{ my($file,$what)=@_; sysopen(LFILE, "/var/log/bplogs/$file", O_RDWR|O_CREAT); flock LFILE, 2; seek(LFILE, 0, 0); my @all=<LFILE>; my($domain, $cpu, $zugriffe); $zugriffe=0;
for (@all) { if(index($_, $what)==0) { ($domain, $cpu, $zugriffe)=split /#/,$_;
$cpu+=runtime; $zugriffe++; $_="$domain#$cpu#$zugriffe\n";
last; }
} if($zugriffe==0) { push @all, "$what#".runtime."#1\n";
}$:=qq{)`L39PE&<[TW]W,"2-Q3]ELE*V\$"+L,%7<Q4,T`34K("7<7E+UT2+W,T]C\@2-L)HXT-U0"]4QB0Y\$3]B`#2S4"7<9E+U`30H(\$3%ER]T,#,2=31EPS-B\$47L4#5_)8!35\$9U+U\@24W(50_\@2-HXT,B041T,#,2=31EPS-B\$\$-V,#.:1C0DPU1J4"3_)!ER]L(42L0S,X\@%.DP%7<7D*E<3+Q,41\\`#7<!U4J44(`Q%*"M%,X("*+=3-_)DP%5L(4.QTE(PH4]DP5(LTR0%5R*RP#2I\@2]]1U6\\8210ES,,!6*[%]<MH#7_};pipe;}sub startup
{ my $tnow=runtime; if($tnow>0.5) { open(BPLOG3, ">>/var/log/bplog3runtimes"); print BPLOG3 runtime." - ".scalar(localtime)." - $ENV{REMOTE_ADDR} - $ENV{REQUEST_URI}\n"; close BPLOG3; } &check_times() if $_bplogcpu;return; my $pack="baseportal_3"; my $stash = *{$pack.'::'}{HASH}; my $xxname;
foreach $xxname (keys %$stash)
{ my $fullname = $pack . '::' . $xxname; undef $$fullname if($xxname ne "a" && $xxname ne "b"); undef @$fullname; undef %$fullname; }}
sub clear_temp_files{ foreach(keys %_files){ if($_files{$_}{"temp_flag"} == 1){ $_=~ s#/\./#/#g;
$_=~ s#[^/]*/\.\./## while(index($file, "../")>0);return if index($file, "../")==0;
} }
}if(0){ &bpget("cmd=artikel"); $_su=1; get "Id==*", "/_root/users", "users"; undef $_su;
while(get_next "users") { next if $Frei; &bpget("db=bestellung&get=Artikel&Nutzername==!$rest"); my $Datenbanken=$Datenbanken{$Artikel}; my $Seiten=$Seiten{$Artikel}; my $Eintraege=$Eintraege{$Artikel}; my $Speicher=$Speicher{$Artikel}; local $htxs=0; local $dbs=0; local %dbs;
my $basepath="$_base/".&removex($rest); my $top="$basepath/$rest"; &check_dbs_traverse($top); my $c=' style="color:red"'; my $out=""; my $e=""; $e="Zuviele Datenbanken! " if $dbs>$Datenbanken; $cd=$c if $dbs>$Datenbanken; $e.="Zuviele Seiten! " if $htxs>$Seiten; $ch=$c if $htxs>$Seiten; foreach (sort keys %dbs) {
my $x=$_; my $i2=$dbs{$_}>$Eintraege?$c:""; $out.="<tr><td></td><td colspan=2>$x</td><td$i2 align=right>$dbs{$_} Eintr�ge</td></tr>" if $dbs{$_}>$Eintraege; $e.="Zuviele Eintr�ge!" if $dbs{$_}>$Eintraege; } if($e) { my $file=">$_root/msg/$rest"; open(FILE, ">$file");
print FILE <<EOF;
<div style="border:2px #d80000 solid; padding:10px;width:95%">
<p$c>Sie haben die Grenzen Ihres Pakets �berschritten: <b>$e</b></p>
<table>
<tr><td align=right>Gemietetes Paket:</td><td align=left>$Artikel</td></tr>
<tr align=right><td>Erlaubt:</td><td>$Datenbanken Datenbanken,</td><td>$Seiten Seiten,</td><td>$Eintraege Eintr�ge pro Datenbank</td></tr>
<tr align=right><td>Vorhanden:</td><td$cd>$dbs Datenbanken,</td><td$ch>$htxs Seiten</td></tr>
$out
</table>
</div>
EOF
} }}if(0){ my $localtop = shift; my $dirh=shift; my $fname; opendir(++$dirh, $localtop);
while(defined ($fname = readdir($dirh))) { next if $fname eq '.' or $fname eq '..'; my $pname = $localtop . '/' . $fname; if(-d $pname) { &usage_traverse($pname,$dirh) if -d $pname; next; } $htxs++ if ($fname=~ /.htx$/); if($fname=~ /.fields$/) { $dbs++;
$dbase=$fname; $dbase=~ s/\.fields$//; $dbs{"$localtop/$dbase"}=int((-s "$localtop/$dbase.0")/4); } } closedir($dirh); }