mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-02-22 19:56:29 +01:00
external jquery and bootstrap
This commit is contained in:
parent
003df87598
commit
c5cd33b5ac
27 changed files with 109 additions and 125 deletions
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/bootstrap-icons-1.8.1
|
|
1
copri4/main/external
Symbolic link
1
copri4/main/external
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/var/www/external
|
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/bootstrap-5.0.2-dist
|
|
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/bootstrap-5.1.3-dist
|
|
1
copri4/main/js/jquery-3.3.1.min.js
vendored
1
copri4/main/js/jquery-3.3.1.min.js
vendored
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/jquery-3.3.1.min.js
|
|
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/jquery-ui-1.12.1
|
|
|
@ -87,12 +87,14 @@ sub station_information {
|
||||||
|
|
||||||
my $rest_stations = "request=stations_available&project=$project&authcookie=$authcookie->{authcookie}";
|
my $rest_stations = "request=stations_available&project=$project&authcookie=$authcookie->{authcookie}";
|
||||||
my $gbfs_resp = {};
|
my $gbfs_resp = {};
|
||||||
|
my @gbfs_stations = ();
|
||||||
my $stations_json = fetch_primary_json("",$uri_request,$rest_stations);
|
my $stations_json = fetch_primary_json("",$uri_request,$rest_stations);
|
||||||
#decode json to hash
|
#decode json to hash
|
||||||
my $response_stations = decode_json($stations_json);
|
eval {
|
||||||
my @gbfs_stations = ();
|
my $response_stations = {};
|
||||||
|
$response_stations = decode_json($stations_json);
|
||||||
|
|
||||||
foreach my $station (keys (%{ $response_stations->{shareejson}->{stations} })) {
|
foreach my $station (keys (%{ $response_stations->{shareejson}->{stations} })) {
|
||||||
#print Dumper($response_stations->{shareejson}->{stations}->{$station});
|
#print Dumper($response_stations->{shareejson}->{stations}->{$station});
|
||||||
my %gbfs_station = ();
|
my %gbfs_station = ();
|
||||||
$gbfs_station{$station}{station_id} = $response_stations->{shareejson}->{stations}->{$station}->{station};
|
$gbfs_station{$station}{station_id} = $response_stations->{shareejson}->{stations}->{$station}->{station};
|
||||||
|
@ -102,9 +104,10 @@ sub station_information {
|
||||||
$gbfs_station{$station}{lon} = $response_stations->{shareejson}->{stations}->{$station}->{gps}->{longitude};
|
$gbfs_station{$station}{lon} = $response_stations->{shareejson}->{stations}->{$station}->{gps}->{longitude};
|
||||||
#$gbfs_station{$station}{is_charging_station} = 1 if(grep(/300102/, @{$response_stations->{shareejson}->{stations}->{$station}->{station_group}}));#E-L
|
#$gbfs_station{$station}{is_charging_station} = 1 if(grep(/300102/, @{$response_stations->{shareejson}->{stations}->{$station}->{station_group}}));#E-L
|
||||||
push (@gbfs_stations, $gbfs_station{$station});
|
push (@gbfs_stations, $gbfs_station{$station});
|
||||||
}
|
}
|
||||||
|
};
|
||||||
my $last_updated = time();
|
my $last_updated = time();
|
||||||
$gbfs_resp = {
|
$gbfs_resp = {
|
||||||
"last_updated" => $last_updated,
|
"last_updated" => $last_updated,
|
||||||
"ttl" => 10,
|
"ttl" => 10,
|
||||||
"version" => "2.2",
|
"version" => "2.2",
|
||||||
|
@ -112,7 +115,10 @@ sub station_information {
|
||||||
"stations" => [ @gbfs_stations ]
|
"stations" => [ @gbfs_stations ]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if ($@){
|
||||||
|
$bw->log("Failure, GBFSout station_information not valid","","");
|
||||||
|
warn $@;
|
||||||
|
}
|
||||||
my $jrout = $json->pretty->encode($gbfs_resp);
|
my $jrout = $json->pretty->encode($gbfs_resp);
|
||||||
print $jrout;
|
print $jrout;
|
||||||
|
|
||||||
|
@ -131,12 +137,14 @@ sub vehicle_status {
|
||||||
my $rest_bikes = "request=bikes_available&project=$project&authcookie=$authcookie->{authcookie}";
|
my $rest_bikes = "request=bikes_available&project=$project&authcookie=$authcookie->{authcookie}";
|
||||||
|
|
||||||
my $gbfs_resp = {};
|
my $gbfs_resp = {};
|
||||||
|
my @gbfs_bikes = ();
|
||||||
my $bikes_json = fetch_primary_json("",$uri_request,$rest_bikes);
|
my $bikes_json = fetch_primary_json("",$uri_request,$rest_bikes);
|
||||||
#decode json to hash
|
#decode json to hash
|
||||||
my $response_bikes = decode_json($bikes_json);
|
eval {
|
||||||
my @gbfs_bikes = ();
|
my $response_bikes = {};
|
||||||
|
$response_bikes = decode_json($bikes_json);
|
||||||
|
|
||||||
foreach my $bike (keys (%{ $response_bikes->{shareejson}->{bikes} })) {
|
foreach my $bike (keys (%{ $response_bikes->{shareejson}->{bikes} })) {
|
||||||
#if($response_bikes->{shareejson}->{bikes}->{$bike}->{station} eq "FR105"){
|
#if($response_bikes->{shareejson}->{bikes}->{$bike}->{station} eq "FR105"){
|
||||||
my %gbfs_bike = ();
|
my %gbfs_bike = ();
|
||||||
$gbfs_bike{$bike}{station_id} = $response_bikes->{shareejson}->{bikes}->{$bike}->{station};
|
$gbfs_bike{$bike}{station_id} = $response_bikes->{shareejson}->{bikes}->{$bike}->{station};
|
||||||
|
@ -147,7 +155,7 @@ sub vehicle_status {
|
||||||
#$gbfs_bike{$bike}{is_disabled} = 0;
|
#$gbfs_bike{$bike}{is_disabled} = 0;
|
||||||
push (@gbfs_bikes, $gbfs_bike{$bike});
|
push (@gbfs_bikes, $gbfs_bike{$bike});
|
||||||
#}
|
#}
|
||||||
}
|
}
|
||||||
|
|
||||||
#{
|
#{
|
||||||
#"vehicle_id":"987fd100-b822-4347-86a4-b3eef8ca8b53",
|
#"vehicle_id":"987fd100-b822-4347-86a4-b3eef8ca8b53",
|
||||||
|
@ -159,7 +167,7 @@ sub vehicle_status {
|
||||||
#"station_id":"86",
|
#"station_id":"86",
|
||||||
#"pricing_plan_id":"plan3"
|
#"pricing_plan_id":"plan3"
|
||||||
#}
|
#}
|
||||||
|
};
|
||||||
my $last_updated = time();
|
my $last_updated = time();
|
||||||
$gbfs_resp = {
|
$gbfs_resp = {
|
||||||
"last_updated" => $last_updated,
|
"last_updated" => $last_updated,
|
||||||
|
@ -169,6 +177,10 @@ sub vehicle_status {
|
||||||
"vehicles" => [ @gbfs_bikes ]
|
"vehicles" => [ @gbfs_bikes ]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if ($@){
|
||||||
|
$bw->log("Failure, GBFSout vehicle_status not valid","","");
|
||||||
|
warn $@;
|
||||||
|
}
|
||||||
|
|
||||||
my $jrout = $json->pretty->encode($gbfs_resp);
|
my $jrout = $json->pretty->encode($gbfs_resp);
|
||||||
print $jrout;
|
print $jrout;
|
||||||
|
@ -194,6 +206,8 @@ sub fetch_primary_json {
|
||||||
|
|
||||||
#Pass request to the user agent and get a response back
|
#Pass request to the user agent and get a response back
|
||||||
my $res = $ua->request($req);
|
my $res = $ua->request($req);
|
||||||
|
#SSL certificate must be valid
|
||||||
|
#print Dumper($res);
|
||||||
# Check the outcome of the response
|
# Check the outcome of the response
|
||||||
if ($res->is_success) {
|
if ($res->is_success) {
|
||||||
#print $res->content;
|
#print $res->content;
|
||||||
|
|
|
@ -693,58 +693,7 @@ sub maininit(){
|
||||||
my $ctrel_ck;
|
my $ctrel_ck;
|
||||||
$ctrel_ck = $db->get_ctrel($table,$R::set_main_id,$lang,"",$R::set_content_id,$R::template_id);
|
$ctrel_ck = $db->get_ctrel($table,$R::set_main_id,$lang,"",$R::set_content_id,$R::template_id);
|
||||||
|
|
||||||
if($varenv{orga} eq "dms" && $varenv{wwwhost} =~ /wogedms|fsdm/){
|
if($varenv{orga} eq "dms"){
|
||||||
my @set_main_ids = ();
|
|
||||||
my $set_main_ids = "";
|
|
||||||
foreach(@keywords){
|
|
||||||
if($_ =~ /set_main_id/){
|
|
||||||
@set_main_ids = $q->param($_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$set_main_ids = join(',',@set_main_ids);
|
|
||||||
|
|
||||||
my $ct4rel_ck = $db->collect_ct4rel("$table","","$lang","","","","","$R::template_id","","","$R::set_content_id","main_id");
|
|
||||||
my $ctrel;
|
|
||||||
foreach(@set_main_ids){
|
|
||||||
if($_ != $ct4rel_ck->{$_}->{main_id}){
|
|
||||||
#print "insert: $table,$_,$lang,$R::set_content_id,$R::template_id,$foreign_key<br>";
|
|
||||||
$return_rel_id = $db->insert_relationlist($table,$_,$lang,$R::set_content_id,$R::template_id,$foreign_key) if($R::rel_edit =~ /relate_/ && $_);
|
|
||||||
$ctrel_ck = $db->get_ctrel($table,$_,$lang,"",$R::set_content_id,$R::template_id);
|
|
||||||
|
|
||||||
if($ctrel_ck->{int02} == 1 && $return_rel_id && $R::template_id eq "202"){
|
|
||||||
`sudo $varenv{basedir}/src/scripts/mailman_member.pl add $return_rel_id $varenv{syshost}`;
|
|
||||||
}
|
|
||||||
if( -d "$varenv{data}/$R::main_id/$R::set_content_id" ){
|
|
||||||
#print "$varenv{data}/$R::main_id/$R::set_content_id --> $varenv{data}/$_/$R::set_content_id";
|
|
||||||
rcopy("$varenv{data}/$R::main_id/$R::set_content_id","$varenv{data}/$_/$R::set_content_id");
|
|
||||||
rcopy("$varenv{data}/$R::main_id-thumb/$R::set_content_id","$varenv{data}/$_-thumb/$R::set_content_id");
|
|
||||||
rcopy("$varenv{data}/$R::main_id-resize/$R::set_content_id","$varenv{data}/$_-resize/$R::set_content_id");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach my $id (keys(%$ct4rel_ck)){
|
|
||||||
if($ct4rel_ck->{$id}->{main_id} && $set_main_ids !~ /$ct4rel_ck->{$id}->{main_id}/){
|
|
||||||
#print "delete: $ct4rel_ck->{$id}->{main_id},$lang,$ct4rel_ck->{$id}->{rel_id}<br>";
|
|
||||||
if($R::template_id eq "202"){
|
|
||||||
`sudo $varenv{basedir}/src/scripts/mailman_member.pl remove $ct4rel_ck->{$id}->{rel_id} $varenv{syshost}`;
|
|
||||||
}
|
|
||||||
if($R::rel_edit =~ /relate_/ && $ct4rel_ck->{$id}->{c_id}){
|
|
||||||
$db->delete_relation($ct4rel_ck->{$id}->{main_id},$lang,$ct4rel_ck->{$id}->{rel_id});
|
|
||||||
if( -d "$varenv{data}/$ct4rel_ck->{$id}->{main_id}/$ct4rel_ck->{$id}->{c_id}" ){
|
|
||||||
remove_tree("$varenv{data}/$ct4rel_ck->{$id}->{main_id}/$ct4rel_ck->{$id}->{c_id}");
|
|
||||||
remove_tree("$varenv{data}/$ct4rel_ck->{$id}->{main_id}-thumb/$ct4rel_ck->{$id}->{c_id}");
|
|
||||||
remove_tree("$varenv{data}/$ct4rel_ck->{$id}->{main_id}-resize/$ct4rel_ck->{$id}->{c_id}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if($users_dms->{mandant_id} && $users_dms->{mandant_id} < "200000"){
|
|
||||||
my $uri_path = $dbt->recurse_node($dbh,$R::set_main_id);
|
|
||||||
print redirect("$varenv{wwwhost}/$uri_path?exit_box2=1\&rel_id=$return_rel_id\&return=$i_rows-$u_rows-$d_rows");
|
|
||||||
exit 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
}elsif($varenv{orga} eq "dms"){
|
|
||||||
my @ck_ids = $R::rel_id;
|
my @ck_ids = $R::rel_id;
|
||||||
@ck_ids = split(/\s/,$R::ck_ids) if($R::ck_ids);
|
@ck_ids = split(/\s/,$R::ck_ids) if($R::ck_ids);
|
||||||
foreach(@ck_ids){
|
foreach(@ck_ids){
|
||||||
|
@ -1039,9 +988,6 @@ sub maininit(){
|
||||||
|
|
||||||
#delete Only relation ... without content
|
#delete Only relation ... without content
|
||||||
if("$ib_key" eq "delete_rel4ct" && $R::main_id && $R::rel_id){
|
if("$ib_key" eq "delete_rel4ct" && $R::main_id && $R::rel_id){
|
||||||
if($varenv{wwwhost} =~ /wogedms|fsdm/){
|
|
||||||
`sudo $varenv{basedir}/src/scripts/mailman_member.pl remove $R::rel_id $varenv{syshost}` if($R::rel_id);
|
|
||||||
}
|
|
||||||
$d_rows += $db->delete_relation($R::main_id,$lang,$R::rel_id);
|
$d_rows += $db->delete_relation($R::main_id,$lang,$R::rel_id);
|
||||||
|
|
||||||
$db->cleanup_users($users_dms->{u_id}) if($users_dms->{u_id});
|
$db->cleanup_users($users_dms->{u_id}) if($users_dms->{u_id});
|
||||||
|
|
|
@ -451,7 +451,9 @@ sub save_account(){
|
||||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=$valxx");
|
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=$valxx");
|
||||||
}elsif($_ eq "ct_name" && $R::base_edit){
|
}elsif($_ eq "ct_name" && $R::base_edit){
|
||||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
||||||
#}elsif($_ !~ /ct_name|txt22|txt23|txt15/){
|
}elsif($_ =~ /txt22|txt23/){
|
||||||
|
$valxx =~ s/\s//g;
|
||||||
|
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
||||||
}elsif($_ !~ /ct_name|txt15/){
|
}elsif($_ !~ /ct_name|txt15/){
|
||||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,7 +353,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<td class='content1_cms' style='$occupied_style;'\n>";
|
print "<td class='content1_cms' style='$occupied_style;'\n>";
|
||||||
print $q->textarea(-class=>'autos',-style=>"border: 1px solid silver;",-name=>"$key",-default=>"$cttpos->{$key}", -override=>'1',-rows=>"3",-cols=>50),"\n";
|
print $q->textarea(-class=>'etxt',-style=>"border: 1px solid silver;",-name=>"$key",-default=>"$cttpos->{$key}", -override=>'1',-rows=>"5",-cols=>50),"\n";
|
||||||
|
|
||||||
|
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
@ -764,10 +764,10 @@ EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif($key =~ /txt/ && $size =~ /area$/){
|
elsif($key =~ /txt/ && $size =~ /area$/){
|
||||||
my $h= 1;# if($size =~ /area(\d+)/);
|
my $h= 5;# if($size =~ /area(\d+)/);
|
||||||
print $q->Tr();
|
print $q->Tr();
|
||||||
print $q->td({-class=>'left_italic_cms',-colspan=>1},"$des"),"\n";
|
print $q->td({-class=>'left_italic_cms',-colspan=>1},"$des"),"\n";
|
||||||
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-class=>"autos", -style=>'border: 1px solid silver;',-rows=>"$h",-cols=>'35em;', -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-class=>"etxt", -style=>'border: 1px solid silver;',-rows=>"$h",-cols=>'35em;', -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
||||||
}
|
}
|
||||||
elsif($key =~ /txt/ && $size =~ /area(\d+)/){
|
elsif($key =~ /txt/ && $size =~ /area(\d+)/){
|
||||||
#my $h= $1 if($size =~ /area(\d+)/);
|
#my $h= $1 if($size =~ /area(\d+)/);
|
||||||
|
@ -785,7 +785,7 @@ EOF
|
||||||
$ctrel->{txt28} =~ s/\+/ /g;
|
$ctrel->{txt28} =~ s/\+/ /g;
|
||||||
print $q->td({-style=>'border:1px solid silver;'},$ctrel->{txt28}),"\n";
|
print $q->td({-style=>'border:1px solid silver;'},$ctrel->{txt28}),"\n";
|
||||||
}else{
|
}else{
|
||||||
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-id=>"$key", -class=>"autos", -style=>"border: 1px solid silver;$h $w", -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
print $q->td({-class=>'content1_cms', -colspan=>'3'},$q->textarea(-id=>"$key", -class=>"etxt", -style=>"border: 1px solid silver;$h $w", -name=>"$key", -override=>'1',-default=>"$ctrel->{$key}")),"\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif($key =~ /txt02/ && $varenv{syshost} =~ /sharee/){
|
elsif($key =~ /txt02/ && $varenv{syshost} =~ /sharee/){
|
||||||
|
|
|
@ -312,7 +312,7 @@ EOF
|
||||||
$q->textfield(-class=>'etxt',-name=>"e_mi",-default=>"$e_mi",-size=>"1",-maxlength=>2)),"\n";
|
$q->textfield(-class=>'etxt',-name=>"e_mi",-default=>"$e_mi",-size=>"1",-maxlength=>2)),"\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<br /><b>Interner Kommentar:</b> $cttpos->{$id}->{txt23}\n" if($cttpos->{$id}->{txt23});
|
print "<br /><b>Bemerkung (Mietjournal)</b> $cttpos->{$id}->{txt23}\n" if($cttpos->{$id}->{txt23});
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
}elsif($key =~ /txt/){
|
}elsif($key =~ /txt/){
|
||||||
print $q->td({-class=>'element',-style=>"$txtstyle $set_style"},$q->textfield(-class=>'etxt',-style=>"$txtstyle",-name=>"col_$key",-default=>"$cttpos->{$id}->{$key}", -override=>'1',-size=>"$isize",-maxlength=>100)),"\n";
|
print $q->td({-class=>'element',-style=>"$txtstyle $set_style"},$q->textfield(-class=>'etxt',-style=>"$txtstyle",-name=>"col_$key",-default=>"$cttpos->{$id}->{$key}", -override=>'1',-size=>"$isize",-maxlength=>100)),"\n";
|
||||||
|
@ -430,7 +430,7 @@ EOF
|
||||||
print "<br />\n";
|
print "<br />\n";
|
||||||
print $q->span({-style=>"$time_style"}, "Mietzeit: $start_time → $end_time"),"\n";
|
print $q->span({-style=>"$time_style"}, "Mietzeit: $start_time → $end_time"),"\n";
|
||||||
}
|
}
|
||||||
print "<br /><b>Interner Kommentar:</b> $cttpos->{$id}->{txt23}\n" if($cttpos->{$id}->{txt23});
|
print "<br /><b>Bemerkung (Mietjournal)</b> $cttpos->{$id}->{txt23}\n" if($cttpos->{$id}->{txt23});
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
}elsif($key =~ /txt/){
|
}elsif($key =~ /txt/){
|
||||||
print $q->td({-class=>'tdtxt'},"$cttpos->{$id}->{$key}"),"\n";
|
print $q->td({-class=>'tdtxt'},"$cttpos->{$id}->{$key}"),"\n";
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
# Copyright (c) Rainer Gümpelein, TeilRad GmbH
|
# Copyright (c) Rainer Gümpelein, TeilRad GmbH
|
||||||
|
|
||||||
|
echo "YOur working directory:";
|
||||||
|
pwd
|
||||||
|
echo ""
|
||||||
|
|
||||||
chgrp -R www-data *
|
chgrp -R www-data *
|
||||||
chmod go-w *
|
chmod go-w *
|
||||||
chmod -R o-rwx *
|
chmod -R o-rwx *
|
||||||
|
@ -14,8 +18,8 @@ for i in $(find . -type d -and -name cache); do chmod -R ug+rwx $i;done
|
||||||
for i in $(find . -type d -and -name pdf); do chmod -R ug+rwx $i;done
|
for i in $(find . -type d -and -name pdf); do chmod -R ug+rwx $i;done
|
||||||
for i in $(find . -type d -and -name xml); do chmod -R ug+rwx $i;done
|
for i in $(find . -type d -and -name xml); do chmod -R ug+rwx $i;done
|
||||||
for i in $(find . -type d -and -name site); do chmod -R ug+rwx $i;done
|
for i in $(find . -type d -and -name site); do chmod -R ug+rwx $i;done
|
||||||
for i in $(find . -type d -and -name apk); do chmod -R ug+rwx $i;done
|
for i in $(find . -type d -and -name shareeconf); do chmod -R go-rwx $i;done
|
||||||
|
for i in $(find . -type d -and -name shareeconf); do chmod -R ug+rx $i;done
|
||||||
for i in $(find . -type d -and -name sql); do chmod -R go-rwx $i;done
|
for i in $(find . -type d -and -name sql); do chmod -R go-rwx $i;done
|
||||||
for i in $(find . -type d -and -name src); do chmod -R go-w $i;done
|
for i in $(find . -type d -and -name src); do chmod -R go-w $i;done
|
||||||
for i in $(find . -type d -and -name src); do chmod -R ug+x $i;done
|
for i in $(find . -type d -and -name src); do chmod -R ug+x $i;done
|
||||||
|
@ -25,11 +29,41 @@ for i in $(find . -type d -and -name css); do chmod -R go-w $i;done
|
||||||
for i in $(find . -type d -and -name js); do chmod -R go-w $i;done
|
for i in $(find . -type d -and -name js); do chmod -R go-w $i;done
|
||||||
for i in $(find . -type f -and -iname README*); do chmod -R go-rwx $i;done
|
for i in $(find . -type f -and -iname README*); do chmod -R go-rwx $i;done
|
||||||
for i in $(find . -type d -and -name docs); do chmod -R go-rwx $i;done
|
for i in $(find . -type d -and -name docs); do chmod -R go-rwx $i;done
|
||||||
for i in $(find . -type f -and -name .htaccess); do chmod -R go-wx $i;done
|
|
||||||
for i in $(find . -type f -and -name startup.pl); do chmod -R go-w $i;done
|
for i in $(find . -type f -and -name startup.pl); do chmod -R go-w $i;done
|
||||||
for i in $(find . -type f -and -name robots.txt); do chmod -R go-wx $i;done
|
for i in $(find . -type f -and -name robots.txt); do chmod -R go-wx $i;done
|
||||||
for i in $(find . -type d -and -name cronjobs); do chmod -R g-w $i/*;done
|
for i in $(find . -type d -and -name cronjobs); do chmod -R g-w $i/*;done
|
||||||
for i in $(find . -type d -and -name cronjobs); do chmod -R o+r $i/*;done
|
for i in $(find . -type d -and -name cronjobs); do chmod -R o+r $i/*;done
|
||||||
for i in $(find . -type d -and -name cronjobs); do chown -R root:root $i/*;done
|
for i in $(find . -type d -and -name cronjobs); do chown -R root:root $i/*;done
|
||||||
|
|
||||||
|
#do it only once on migration
|
||||||
|
if [ 1 == 2 ]
|
||||||
|
then
|
||||||
|
|
||||||
|
#delete jquery and bootstrap links
|
||||||
|
for i in $(find . -type l -and -name 'jquery*'); do rm $i;done
|
||||||
|
for i in $(find . -type l -and -name 'bootstrap*'); do rm $i;done
|
||||||
|
|
||||||
|
mkdir -p /var/www/external
|
||||||
|
mv /etc/shareeconf/bootstrap-5.1.3-dist /var/www/external/.
|
||||||
|
mv /etc/shareeconf/bootstrap-5.0.2-dist /var/www/external/.
|
||||||
|
mv /etc/shareeconf/bootstrap-icons-1.8.1 /var/www/external/.
|
||||||
|
mv /etc/shareeconf/jquery-3.3.1.min.js /var/www/external/.
|
||||||
|
mv /etc/shareeconf/jquery-ui-1.12.1 /var/www/external/.
|
||||||
|
|
||||||
|
#make new links for external bibliothecs
|
||||||
|
ln -s main/external /var/www/external
|
||||||
|
|
||||||
|
|
||||||
|
#linking operators to main/external
|
||||||
|
for i in $(find . -type d -and -name 'shareedms-*')
|
||||||
|
do ln -s ../main/external $i/external
|
||||||
|
done
|
||||||
|
for i in $(find . -type d -and -name 'shareeapp-*')
|
||||||
|
do ln -s ../main/external $i/external
|
||||||
|
done
|
||||||
|
for i in $(find . -type d -and -name 'shareeweb-*')
|
||||||
|
do ln -s ../main/external $i/external
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
#end
|
|
@ -48,10 +48,8 @@
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareeapp-operator-access.log combined
|
CustomLog /var/log/apache2/shareeapp-operator-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,9 +95,8 @@ SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareeapp-operator-access.log combined
|
CustomLog /var/log/apache2/shareeapp-operator-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
/etc/shareeconf/bootstrap-icons-1.8.1
|
|
1
copri4/shareeapp-operator/external
Symbolic link
1
copri4/shareeapp-operator/external
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../main/external
|
|
@ -481,9 +481,9 @@ Nach Abschluss der Registrierung erhalten Sie sowohl auf die von Ihnen hinterleg
|
||||||
|
|
||||||
if($i==1){
|
if($i==1){
|
||||||
print $q->div({-id=>'Rechnungen',-style=>'font-weight:bold;'},"Ihre Rechnungen"),"\n";
|
print $q->div({-id=>'Rechnungen',-style=>'font-weight:bold;'},"Ihre Rechnungen"),"\n";
|
||||||
print $q->div({-style=>'padding:0.5em;'},"$dtext"),"\n";
|
print $q->div({-style=>'padding:0.5em 0;'},"$dtext"),"\n";
|
||||||
}
|
}
|
||||||
print $q->div({-style=>'font-size:1em;padding:0.5em;border:0px solid #cccccc;'},$q->a({-href=>"$ctt_all->{$id}->{wwwhost}/FileOut?file=Rechnung-$ctt_all->{$id}->{operator}-$ctt_all->{$id}->{ct_name}.pdf&sessionid=$coo", -target=>"$webtarget" , -type=>'application/octet-stream', -style=>'text-decoration:underline;'}, $q->img({-src=>"$varenv->{metahost}/glyphicons/file-any.png", -style=>'width:30px;'}), "Rechnung $ctt_all->{$id}->{ct_name}.pdf"), " ($invoice_time)"),"\n";
|
print $q->div({-style=>'padding:0.7em 0;border:0px solid #cccccc;'},$q->a({-href=>"$ctt_all->{$id}->{wwwhost}/FileOut?file=Rechnung-$ctt_all->{$id}->{operator}-$ctt_all->{$id}->{ct_name}.pdf&sessionid=$coo", -target=>"$webtarget" , -type=>'application/octet-stream', -style=>'text-decoration:underline;'}, $q->span({-class=>"bi bi-file-earmark-pdf"}), "Rechnung $ctt_all->{$id}->{ct_name}.pdf"), " ($invoice_time)"),"\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,7 @@ sub tpl(){
|
||||||
$dtext = "<br />(Der PDF download öffnet je nach System/Konfiguartion einen externen PDF-Viewer oder Webbrowser)";
|
$dtext = "<br />(Der PDF download öffnet je nach System/Konfiguartion einen externen PDF-Viewer oder Webbrowser)";
|
||||||
}
|
}
|
||||||
if( -f "$varenv->{basedir}/pdfinvoice/SEPA-Lastschriftmandat-$varenv->{praefix}-$ctadr->{ct_name}.pdf"){
|
if( -f "$varenv->{basedir}/pdfinvoice/SEPA-Lastschriftmandat-$varenv->{praefix}-$ctadr->{ct_name}.pdf"){
|
||||||
print $q->div({-style=>'padding:10px;margin:10px 0;'},$q->a({-href=>"$varenv->{wwwhost}/FileOut?file=SEPA-Lastschriftmandat-$varenv->{praefix}-$ctadr->{ct_name}.pdf&sessionid=$coo", -target=>"$webtarget" , -type=>'application/octet-stream', -style=>'text-decoration:underline;font-size:1.1em;'}, $q->img({-src=>"$varenv->{metahost}/glyphicons/file-any.png", -style=>'width:30px;'}), "SEPA-Lastschriftmandat.pdf"),"$dtext"),"\n";
|
print $q->div({-style=>'padding:10px;margin:10px 0;'},$q->a({-href=>"$varenv->{wwwhost}/FileOut?file=SEPA-Lastschriftmandat-$varenv->{praefix}-$ctadr->{ct_name}.pdf&sessionid=$coo", -target=>"$webtarget" , -type=>'application/octet-stream', -style=>'text-decoration:underline;font-size:1.1em;'}, $q->span({-class=>"bi bi-file-earmark-pdf"}), "SEPA-Lastschriftmandat.pdf"),"$dtext"),"\n";
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
print $q->div({-style=>'padding:10px;margin:10px 0;border:1px solid silver;color:#c83434;'},"Es gibt ein Problem! Das SEPA Mandat konnte nicht eingeholt werden. Bitte wenden Sie sich bei Bedarf an den unter \"Kontakt\" hinterlegten Support."),"\n";
|
print $q->div({-style=>'padding:10px;margin:10px 0;border:1px solid silver;color:#c83434;'},"Es gibt ein Problem! Das SEPA Mandat konnte nicht eingeholt werden. Bitte wenden Sie sich bei Bedarf an den unter \"Kontakt\" hinterlegten Support."),"\n";
|
||||||
|
|
0
copri4/shareeconf/examples/README
Normal file → Executable file
0
copri4/shareeconf/examples/README
Normal file → Executable file
0
copri4/shareeconf/examples/apikeys.cfg
Normal file → Executable file
0
copri4/shareeconf/examples/apikeys.cfg
Normal file → Executable file
30
copri4/shareeconf/examples/global.cfg
Normal file → Executable file
30
copri4/shareeconf/examples/global.cfg
Normal file → Executable file
|
@ -29,8 +29,8 @@
|
||||||
port=5432
|
port=5432
|
||||||
sslmode=
|
sslmode=
|
||||||
options=""
|
options=""
|
||||||
user=[your-psql-user]
|
user=your_psql_user
|
||||||
passwd=[your-psql-pw]
|
passwd=your_psql_pw
|
||||||
</database>
|
</database>
|
||||||
</sharee_primary>
|
</sharee_primary>
|
||||||
</primary>
|
</primary>
|
||||||
|
@ -64,8 +64,8 @@
|
||||||
port=5432
|
port=5432
|
||||||
sslmode=
|
sslmode=
|
||||||
options=""
|
options=""
|
||||||
user=[your-psql-user]
|
user=your_psql_user
|
||||||
passwd=[your-psql-pw]
|
passwd=your_psql_pw
|
||||||
</database>
|
</database>
|
||||||
</sharee_operator>
|
</sharee_operator>
|
||||||
</operator>
|
</operator>
|
||||||
|
@ -97,8 +97,8 @@
|
||||||
port=5432
|
port=5432
|
||||||
sslmode=
|
sslmode=
|
||||||
options=""
|
options=""
|
||||||
user=[your-psql-user]
|
user=your_psql_user
|
||||||
passwd=[your-psql-pw]
|
passwd=your_psql_pw
|
||||||
</database>
|
</database>
|
||||||
</shareeweb-project>
|
</shareeweb-project>
|
||||||
</website>
|
</website>
|
||||||
|
@ -212,7 +212,7 @@
|
||||||
2 = "lesen & schreiben"
|
2 = "lesen & schreiben"
|
||||||
</permission>
|
</permission>
|
||||||
jsscript = "js/mobile_script.js"
|
jsscript = "js/mobile_script.js"
|
||||||
style_bootstrap_icons = "css/bootstrap-icons-1.8.1/font/bootstrap-icons.css"
|
style_bootstrap_icons = "external/bootstrap-icons-1.8.1/font/bootstrap-icons.css"
|
||||||
</copri_conf>
|
</copri_conf>
|
||||||
|
|
||||||
#sharee WebApp sepcific para
|
#sharee WebApp sepcific para
|
||||||
|
@ -229,8 +229,8 @@
|
||||||
|
|
||||||
local_style = "css/local_style2022-03-20.css"
|
local_style = "css/local_style2022-03-20.css"
|
||||||
jquery = ""
|
jquery = ""
|
||||||
js_bootstrap = "js/bootstrap-5.1.3-dist/js/bootstrap.min.js"
|
js_bootstrap = "external/bootstrap-5.1.3-dist/js/bootstrap.min.js"
|
||||||
style_bootstrap = "js/bootstrap-5.1.3-dist/css/bootstrap.css"
|
style_bootstrap = "external/bootstrap-5.1.3-dist/css/bootstrap.css"
|
||||||
</shareeapp_conf>
|
</shareeapp_conf>
|
||||||
|
|
||||||
#sharee DMS/COPRI specific para
|
#sharee DMS/COPRI specific para
|
||||||
|
@ -255,12 +255,12 @@
|
||||||
order_state = "|angerufen|eMail gesendet|in Arbeit|cronjob fail"
|
order_state = "|angerufen|eMail gesendet|in Arbeit|cronjob fail"
|
||||||
|
|
||||||
local_style = "css/local_style20221205.css"
|
local_style = "css/local_style20221205.css"
|
||||||
jquery = "js/jquery-3.3.1.min.js"
|
jquery = "external/jquery-3.3.1.min.js"
|
||||||
jquery_ui = "js/jquery-ui-1.12.1/jquery-ui.min.js"
|
jquery_ui = "external/jquery-ui-1.12.1/jquery-ui.min.js"
|
||||||
style_jquery_ui = "js/jquery-ui-1.12.1/jquery-ui.min.css"
|
style_jquery_ui = "external/jquery-ui-1.12.1/jquery-ui.min.css"
|
||||||
js_bootstrap = "js/bootstrap-5.0.2-dist/js/bootstrap.min.js"
|
js_bootstrap = "external/bootstrap-5.0.2-dist/js/bootstrap.min.js"
|
||||||
style_bootstrap = "js/bootstrap-5.0.2-dist/css/bootstrap.min.css"
|
style_bootstrap = "external/bootstrap-5.0.2-dist/css/bootstrap.min.css"
|
||||||
mod_active = "Waren|Faktur|Karte|Kunden|Mietjournal|Alarmjournal|Einstellung"
|
mod_active = "Waren|Faktura|Karte|Kunden|Mietjournal|Alarmjournal|Einstellung"
|
||||||
modes = "login|logout|logout_sharee|user|manager|supervisor|admin|maintainer"
|
modes = "login|logout|logout_sharee|user|manager|supervisor|admin|maintainer"
|
||||||
</shareedms_conf>
|
</shareedms_conf>
|
||||||
|
|
||||||
|
|
0
copri4/shareeconf/examples/mailx.cfg
Normal file → Executable file
0
copri4/shareeconf/examples/mailx.cfg
Normal file → Executable file
BIN
copri4/shareeconf/examples/sharee_operator.sql.gz
Normal file → Executable file
BIN
copri4/shareeconf/examples/sharee_operator.sql.gz
Normal file → Executable file
Binary file not shown.
|
@ -50,10 +50,8 @@
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareedms-operator-access.log combined
|
CustomLog /var/log/apache2/shareedms-operator-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
|
@ -94,7 +92,8 @@
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RedirectMatch ^/$ /DMS/Mietjournal
|
RedirectMatch ^/$ /DMS/Mietjournal
|
||||||
|
RedirectMatch ^/DMS$ /DMS/Mietjournal
|
||||||
SSLProxyEngine On
|
SSLProxyEngine On
|
||||||
RewriteCond %{REQUEST_URI} ^/(site|img|data|css|js|jquery)
|
RewriteCond %{REQUEST_URI} ^/(site|img|data|css|js|jquery)
|
||||||
RewriteRule ^(.*)$ https://shareedms-operator1.example.tld/$1 [P,L]
|
RewriteRule ^(.*)$ https://shareedms-operator1.example.tld/$1 [P,L]
|
||||||
|
@ -104,10 +103,8 @@
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareedms-operator-access.log combined
|
CustomLog /var/log/apache2/shareedms-operator-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
1
copri4/shareedms-operator/external
Symbolic link
1
copri4/shareedms-operator/external
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../main/external
|
|
@ -70,7 +70,6 @@ sub envonline(){
|
||||||
head_logo => "$metahost/img/sharee_bike_Logo.jpg",
|
head_logo => "$metahost/img/sharee_bike_Logo.jpg",
|
||||||
barcode => "",
|
barcode => "",
|
||||||
limit => "200",
|
limit => "200",
|
||||||
waren_main_id => $globalconf{shareedms_conf}->{waren},
|
|
||||||
Zahlungsweise => "SEPA-Lastschrift (payone)|Kreditkarte (payone)|Zahlungseingang (payone txid)|Abbuchung|Bar|EC-Karte|Überweisung|Zahlungsausfall",
|
Zahlungsweise => "SEPA-Lastschrift (payone)|Kreditkarte (payone)|Zahlungseingang (payone txid)|Abbuchung|Bar|EC-Karte|Überweisung|Zahlungsausfall",
|
||||||
order_state => "|angerufen|eMail gesendet|in Arbeit|an FiBu delegiert|txid renewed|cronjob fail|payone Mahnung|COPRI Mahnung",
|
order_state => "|angerufen|eMail gesendet|in Arbeit|an FiBu delegiert|txid renewed|cronjob fail|payone Mahnung|COPRI Mahnung",
|
||||||
'Ziel Datei' => "privacy.html|agb.html|impress.html|tariff_info.html|bike_info.html",
|
'Ziel Datei' => "privacy.html|agb.html|impress.html|tariff_info.html|bike_info.html",
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<FilesMatch ".(eot|ttf|otf|woff|woff2)">
|
<FilesMatch ".(eot|ttf|otf|woff|woff2)">
|
||||||
Header set Access-Control-Allow-Origin "example.tld"
|
Header set Access-Control-Allow-Origin "*"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
<Directory /var/www/copri4/shareeweb-project/site>
|
<Directory /var/www/copri4/shareeweb-project/site>
|
||||||
|
@ -49,10 +49,8 @@
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,9 +103,8 @@ SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
||||||
LogLevel info ssl:warn
|
LogLevel info ssl:warn
|
||||||
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
SSLCertificateFile /etc/letsencrypt/live/example.tld-0003/fullchain.pem
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/example.tld-0003/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
1
copri4/shareeweb-project/external
Symbolic link
1
copri4/shareeweb-project/external
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../main/external
|
Loading…
Add table
Reference in a new issue