mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
Service-Config refactoring
This commit is contained in:
parent
0f89b9e836
commit
0163c06893
15 changed files with 149 additions and 107 deletions
|
@ -88,7 +88,7 @@ sub handler {
|
|||
}elsif($netloc =~ /lastenradbayern\.net/){
|
||||
$varenv{syshost} = "shareeweb-bayern";
|
||||
}
|
||||
die "no configuration available" if(!$varenv{syshost});
|
||||
exit 0 if(!$varenv{syshost});
|
||||
|
||||
|
||||
if($varenv{orga} ne "dms" && $path =~ /DMS|Waren|Kunden\/|Einstellung|journal|Faktur/i){
|
||||
|
@ -352,6 +352,9 @@ sub handler {
|
|||
$return = $pl->delete_relation($R::main_id,$users_dms->{u_id});
|
||||
}elsif($R::rel_edit eq "new_relation" && $R::main_id && $R::main_id >= 200000){
|
||||
$return = $pl->new_relation($R::main_id,$users_dms->{u_id});
|
||||
}elsif($R::rel_edit eq "save_ctuser" && $R::main_id && $R::main_id >= 200000){
|
||||
$return = "failure::TODO Service-Config save";
|
||||
#$return = $pl->save_ctuser($users_dms);
|
||||
}elsif($R::rel_edit && $R::main_id && $R::main_id >= 200000){
|
||||
$return = $pm->maininit($users_dms);
|
||||
}
|
||||
|
@ -738,12 +741,17 @@ sub handler {
|
|||
});";
|
||||
}
|
||||
|
||||
my $favicon = "css/favicon.ico";
|
||||
my $base_uri = "true";
|
||||
my $title = "";
|
||||
$title = $dbt->{primary}->{$varenv{dbname}}->{title} if($dbt->{primary}->{$varenv{dbname}}->{title});
|
||||
$title = $dbt->{operator}->{$varenv{dbname}}->{title} if($dbt->{operator}->{$varenv{dbname}}->{title});
|
||||
$title = $dbt->{website}->{$varenv{syshost}}->{title} if($dbt->{website}->{$varenv{syshost}}->{title});
|
||||
if($dbt->{website}->{$varenv{syshost}}->{title}){
|
||||
$title = $dbt->{website}->{$varenv{syshost}}->{title};
|
||||
$favicon = "data/favicon.ico";
|
||||
}
|
||||
$title .= " devel" if($dbt->{copri_conf}->{stage} eq "test");
|
||||
|
||||
my $html5 = $q->start_html(-title=>"$title",
|
||||
-lang=>'de',
|
||||
-onload=>"$onload",
|
||||
|
@ -755,7 +763,7 @@ sub handler {
|
|||
Link({
|
||||
-rel=>'shortcut icon',
|
||||
-type=>'image/x-icon',
|
||||
-href=>"$varenv{metahost}/css/favicon.ico"
|
||||
-href=>"$varenv{metahost}/$favicon"
|
||||
})
|
||||
],
|
||||
-meta=>{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue