$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
if($tmp["number"]>=$client["limit_client"]){
...
...
@@ -84,7 +84,7 @@ class page_action extends tform_actions {
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
if($tmp["number"]>=$client["limit_client"]){
...
...
@@ -119,7 +119,7 @@ class page_action extends tform_actions {
//* get userid of the reseller and add it to the group of the client
$tmp=$app->db->queryOneRecord("SELECT sys_user.userid FROM sys_user,sys_group WHERE sys_user.default_group = sys_group.groupid AND sys_group.client_id = ?",$this->dataRecord['parent_client_id']);
$wb['no_mail_server_error']='Bitte wählen Sie mind. einen Mailserver aus.';
$wb['mail_servers_used']='Der Server, den Sie entfernen möchten, wird als Mailserver verwendet. Bitte stellen Sie sicher, daß dieser Server nicht von diesem Kunden benutzt wird, bevor Sie ihn entfernen.';
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
if($tmp["number"]>=$client["limit_client"]){
...
...
@@ -86,7 +86,7 @@ class page_action extends tform_actions {
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
// If a CNAME RR is present at a node, no other data should be present
$tmp=$app->db->queryOneRecord("SELECT count(dns_rr.id) as number FROM dns_rr LEFT JOIN dns_soa ON dns_rr.zone = dns_soa.id WHERE (type = 'CNAME' AND ( name = replace(?, concat('.', dns_soa.origin), '') or name = ? or name = concat(?,'.',dns_soa.origin) ) AND zone = ? and dns_rr.id != ?)",$this->dataRecord["name"],$this->dataRecord["name"],$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
$wb['theme_not_compatible']='Das gewählte Design ist mit dieser ISPConfig Version nicht kompatibel. Bitte prüfen Sie, ob ein Update des Themes verfügbar ist.<br />Es wurde nun automatisch das Standard Design aktiviert.';
$wb['theme_not_compatible']='The chosen theme is not compatible with the current ISPConfig version. Please check for a new version of the theme.<br />The default theme as been activated automatically.';
$wb['back_txt']='Back';
$wb['email_error']='Email contains unallowed characters or has a invalid format.';
$wb['stay_logged_in_txt']='Keep me logged in';
$wb['lost_password_function_disabled_txt']='The lost password function is not available for this user.';
$wb['pw_reset_act']='You have been sent an activation link. Please visit the link to confirm your password request.';
$wb['pw_reset_act_mail_title']='Confirm ISPConfig 3 Control panel password reset';
$wb['pw_reset_act_mail_msg']='Please confirm that your want to reset your ISPConfig 3 control panel account password by visiting the following activation link: ';
$wb['lost_password_function_wait_txt']='You cannot request a new password, yet. Please wait a few minutes.';
$wb['lost_password_function_expired_txt']='This activation link has expired. Please request a new one.';
$wb['lost_password_function_denied_txt']='This activation link is not valid.';
$wb['theme_not_compatible']='De gekozen vormgeving is niet geschikt voor de huidige ISPConfig versie. Controleer of er een update beschikbaar is.<br />De standaard vormgeving is automatisch geactiveerd.';
$wb['back_txt']='Terug';
$wb['email_error']='Email bevat ongeldige tekens of heeft een vereerde opbouw.';
$wb['stay_logged_in_txt']='Blijf ingelogd';
$wb['lost_password_function_disabled_txt']='De Wachtwoord vergeten functie is niet beschikbaar voor deze gebruiker.';
$wb['pw_reset_act']='Er is een wachtwoord reset link verstuurd. Volg de link in die mail om uw verzoek te bevestigen.';
$wb['pw_reset_act_mail_title']='ISPConfig 3 Control panel wachtwoord herstel';
$wb['pw_reset_act_mail_msg']='Er is een nieuw wachtwoord aangevraag voor uw account. Bevestig via de volgende link dat dit de bedoeling is. Als u dit niet was kunt u dit beter niet doen. ';
$wb['lost_password_function_wait_txt']='U kunt op dit moment geen nieuw wachtwoord aanvragen, probeer het later nog eens.';
$wb['lost_password_function_expired_txt']='De wachtwoordherstel link is verlopen. U kunt een nieuwe aanvragen.';
$wb['lost_password_function_denied_txt']='Deze link is niet (meer) geldig.';
$wb['otp_code_txt']='Twee-factor authenticatie';
$wb['otp_code_desc_txt']='Enter the code you got from your authenticator app or via email.';
$clientuser=$app->db->queryOneRecord('SELECT email FROM sys_user u LEFT JOIN client c ON (u.client_id=c.client_id) WHERE u.userid = ?',$_SESSION['s_pending']['user']['userid']);
if(!empty($clientuser['email'])){
$email_to=$clientuser['email'];
$sys_user=$app->db->queryOneRecord('SELECT otp_data FROM sys_user WHERE userid = ?',$_SESSION['s_pending']['user']['userid']);
$data=json_decode($sys_user['otp_data'],TRUE);
if(!empty($data['otp_email_override'])){
// Handle otp_email_override.
$email_to=$data['otp_email_override'];
}
else{
// Admin users are not related to a client, thus use the globally configured email address.
$email_to=$mail_config['admin_mail'];
$clientuser=$app->db->queryOneRecord('SELECT email FROM sys_user u LEFT JOIN client c ON (u.client_id=c.client_id) WHERE u.userid = ?',$_SESSION['s_pending']['user']['userid']);
if(!empty($clientuser['email'])){
$email_to=$clientuser['email'];
}
else{
// Admin users are not related to a client, thus use the globally configured email address.