mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
mailx default
This commit is contained in:
parent
1131cc4b81
commit
7a54a35b00
8 changed files with 50 additions and 45 deletions
|
@ -1499,7 +1499,7 @@ sub bikes_available(){
|
|||
$return->{$id}->{tariff_description}->{max_eur_per_day} = "$tariff_content->{$tid}->{int17}" if($tariff_content->{$tid}->{int17});
|
||||
$return->{$id}->{tariff_description}->{free_hours} = "$tariff_content->{$tid}->{int16}" if($tariff_content->{$tid}->{int16});
|
||||
$return->{$id}->{tariff_description}->{abo_eur_per_month} = "$tariff_content->{$tid}->{int15}" if($tariff_content->{$tid}->{int15});
|
||||
$return->{$id}->{tariff_description}->{$id}->{operator_agb} = "Mit der Mietrad Anmietung wird folgender Betreiber <a href='$varenv->{wwwhost}/site/agb.html' target='_blank'>AGB</a> zugestimmt (als Demo sharee AGB)." if($auth->{c_id} == 1842 || $auth->{c_id} == 5781);
|
||||
$return->{$id}->{tariff_description}->{operator_agb} = "Mit der Mietrad Anmietung wird folgender Betreiber <a href='$varenv->{wwwhost}/site/agb.html' target='_blank'>AGB</a> zugestimmt (als Demo sharee AGB)." if($auth->{c_id} == 1842 || $auth->{c_id} == 5781);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2017,7 +2017,9 @@ sub auth_verify(){
|
|||
|
||||
my $record = { c_id => 0 };#if fails
|
||||
my $return = { authcookie => "",
|
||||
merchant_id => ""
|
||||
merchant_id => "",
|
||||
user_tour => [],
|
||||
user_group => []
|
||||
};
|
||||
my $user_group = "";
|
||||
my $bike_group = "";
|
||||
|
@ -2169,13 +2171,12 @@ sub auth_verify(){
|
|||
my @check_cookies = split(/\|/,$record->{txt05});
|
||||
foreach(@check_cookies){
|
||||
if(length($_) > 30 && $_ =~ /$cgi_authcookie/){
|
||||
$return = { authcookie => $cgi_authcookie,
|
||||
user_id => "$record->{txt08}",
|
||||
user_group => $user_group,
|
||||
user_tour => $user_tour,
|
||||
};
|
||||
$return = { %$return, debuglevel => "$record->{int11}" } if($record->{int11});
|
||||
$return = { %$return, Ilockit_admin => "$record->{int19}" } if($record->{int19});
|
||||
$return->{authcookie} = $cgi_authcookie;
|
||||
$return->{user_id} = $record->{txt08};
|
||||
$return->{user_group} = $user_group;
|
||||
$return->{user_tour} = $user_tour;
|
||||
$return->{debuglevel} = "$record->{int11}" if($record->{int11});
|
||||
$return->{Ilockit_admin} = "$record->{int19}" if($record->{int19});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2193,13 +2194,12 @@ sub auth_verify(){
|
|||
($bike_group,$user_group,$tariff_content,$user_tour) = $self->fetch_tariff($record,$q->param('authcookie'));
|
||||
#maybe there isnt't any authcookie still available on confirm
|
||||
if ($record->{c_id} > 0){
|
||||
$return = { user_id => "$record->{txt08}",
|
||||
user_group => $user_group,
|
||||
user_tour => $user_tour,
|
||||
};
|
||||
$return = { %$return, debuglevel => "$record->{int11}" } if($record->{int11});
|
||||
$return = { %$return, Ilockit_admin => "$record->{int19}" } if($record->{int19});
|
||||
$return = { %$return, response_text => "Danke, die Anmeldebestätigung war erfolgreich." };
|
||||
$return->{user_id} = $record->{txt08};
|
||||
$return->{user_group} = $user_group;
|
||||
$return->{user_tour} = $user_tour;
|
||||
$return->{debuglevel} = "$record->{int11}" if($record->{int11});
|
||||
$return->{Ilockit_admin} = "$record->{int19}" if($record->{int19});
|
||||
$return->{response_text} = "Danke, die Anmeldebestätigung war erfolgreich.";
|
||||
}
|
||||
}else{
|
||||
$bw->log("auth_verified on operator anchor FAILS by dbname $varenv{dbname}, no authcookie, dump \$q",$q,"");
|
||||
|
@ -2239,9 +2239,11 @@ sub auth_verify(){
|
|||
|
||||
#Servicetool only users with users.int09=1
|
||||
#shareetool
|
||||
if($varenv{dbname} ne "sharee_primary" && $q->param('authcookie') && $dbt->{merchant_ids}->{$return->{merchant_id}}->{id} && $dbt->{merchant_ids}->{$return->{merchant_id}}->{id} == 187){
|
||||
if($varenv{dbname} ne "sharee_primary" && $return->{merchant_id} && $dbt->{merchant_ids}->{$return->{merchant_id}}->{id} && $dbt->{merchant_ids}->{$return->{merchant_id}}->{id} == 187){
|
||||
my $users_serviceapp = { u_id => 0 };
|
||||
$users_serviceapp = $dbt->select_users($dbh,$record->{c_id},"and int09=1");
|
||||
$bw->log("users_serviceapp: $users_serviceapp->{u_id} && $varenv{dbname} && $return->{merchant_id} && $dbt->{merchant_ids}->{$return->{merchant_id}}->{id}","","");
|
||||
|
||||
if(!$users_serviceapp->{u_id} || $users_serviceapp->{u_id} == 0){
|
||||
$record = { c_id => 0 };
|
||||
$bw->log("reset auth_verify because of only Servicetool users access:",$record,"");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue