1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Changed future white-label licenses to one year

This commit is contained in:
Hillel Coren 2016-02-11 21:27:58 +02:00
parent d1dd02644b
commit b5f817cf14
15 changed files with 32 additions and 15 deletions

View File

@ -139,7 +139,7 @@ class StartupCheck
} elseif ($productId == PRODUCT_WHITE_LABEL) {
if ($data == 'valid') {
$account = Auth::user()->account;
$account->pro_plan_paid = NINJA_DATE;
$account->pro_plan_paid = date_create()->format('Y-m-d');
$account->save();
Session::flash('message', trans('texts.bought_white_label'));

View File

@ -770,7 +770,11 @@ class Account extends Eloquent
if (Utils::isNinjaProd()) {
return self::isPro() && $this->pro_plan_paid != NINJA_DATE;
} else {
return $this->pro_plan_paid == NINJA_DATE;
if ($this->pro_plan_paid == NINJA_DATE) {
return true;
}
return Utils::withinPastYear($this->pro_plan_paid);
}
}

View File

@ -469,7 +469,6 @@ return array(
'id_number' => 'SE/CVR nummer',
'white_label_link' => 'Hvid Label',
'white_label_text' => 'Køb en Hvid Label licens til $'.WHITE_LABEL_PRICE.' for at fjerne Invoice Ninja mærket fra toppen af klient siderne.',
'white_label_header' => 'Hvid Label',
'bought_white_label' => 'Hvid Label licens accepteret',
'white_labeled' => 'Hvid Label',
@ -1111,4 +1110,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -469,7 +469,6 @@ return array(
'id_number' => 'ID-Nummer',
'white_label_link' => 'Branding entfernen',
'white_label_text' => 'Um das Invoice Ninja Logo auf der Kundenseite zu entfernen, kaufe bitte eine Lizenz für $'.WHITE_LABEL_PRICE,
'white_label_header' => 'Branding entfernen',
'bought_white_label' => 'Branding-freie Lizenz erfolgreich aktiviert',
'white_labeled' => 'Branding entfernt',
@ -1112,4 +1111,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -481,7 +481,6 @@ return array(
'id_number' => 'ID Number',
'white_label_link' => 'White label',
'white_label_text' => 'Purchase a white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
'white_label_header' => 'White Label',
'bought_white_label' => 'Successfully enabled white label license',
'white_labeled' => 'White labeled',
@ -1150,5 +1149,7 @@ return array(
'trial_call_to_action' => 'Start Free Trial',
'trial_success' => 'Successfully enabled two week free pro plan trial',
'overdue' => 'Overdue',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -442,7 +442,6 @@ return array(
'id_number' => 'ID Number',
'white_label_link' => 'Etiqueta Blanca',
'white_label_text' => 'Adquiere una licencia de etiqueta blanca por $'.WHITE_LABEL_PRICE.' para eliminar la marca de Invoice Ninja branding de la parte superior de las páginas de los clientes.',
'white_label_header' => 'Etiqueta Blanca',
'bought_white_label' => 'Licencia de etiqueta blanca habilitada con éxito',
'white_labeled' => 'Etiqueta Blanca',
@ -1088,4 +1087,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -460,7 +460,6 @@ return array(
'id_number' => 'Número de Identificación',
'white_label_link' => 'Marca Blanca" ',
'white_label_text' => 'Obtener una licencia de marca blanca por'.WHITE_LABEL_PRICE.' para quitar la marca Invoice Ninja de la parte superior de las páginas del cliente.', // comprobar
'white_label_link' => 'Marca Blanca" ',
'bought_white_label' => 'Se ha conseguido con exito la licencia de Marca Blanca',
'white_labeled' => 'Marca Blanca',
@ -1110,4 +1109,6 @@ return array(
'iframe_url_help3' => 'Nota: Si piensas aceptar tarjetas de credito recomendamos tener habilitado HTTPS.',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -462,7 +462,6 @@ return array(
'id_number' => 'Numéro ID',
'white_label_link' => 'Marque blanche',
'white_label_text' => 'Pour retirer la marque Invoice Ninja en haut de la page client, achetez un licence en marque blanche de '.WHITE_LABEL_PRICE.'$.',
'white_label_header' => 'Marque blanche',
'bought_white_label' => 'Licence marque blanche entrée avec succès',
'white_labeled' => 'Marque blanche',
@ -1103,4 +1102,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -462,7 +462,6 @@ return array(
'id_number' => 'Numéro ID',
'white_label_link' => 'Marque blanche',
'white_label_text' => 'Pour retirer la marque Invoice Ninja en haut de la page client, achetez un licence en marque blanche de '.WHITE_LABEL_PRICE.'$.',
'white_label_header' => 'Entête de marque blanche',
'bought_white_label' => 'License de marque blanche activée',
'white_labeled' => 'White labeled',
@ -1102,4 +1101,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -464,7 +464,6 @@ return array(
'id_number' => 'ID Number',
'white_label_link' => 'White label',
'white_label_text' => 'Purchase a white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
'white_label_header' => 'White Label',
'bought_white_label' => 'Successfully enabled white label license',
'white_labeled' => 'White labeled',
@ -1106,4 +1105,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -473,7 +473,6 @@ return array(
'id_number' => 'ID Number',
'white_label_link' => 'White label',
'white_label_text' => 'Purchase a white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
'white_label_header' => 'White Label',
'bought_white_label' => 'Successfully enabled white label license',
'white_labeled' => 'White labeled',
@ -1113,4 +1112,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -469,7 +469,6 @@ return array(
'id_number' => 'ID Nummer',
'white_label_link' => 'Reklamefri',
'white_label_text' => 'Kjøp en reklamefri lisens for $'.WHITE_LABEL_PRICE.' for å fjerne Invoice Ninja reklamen fra toppen av klient sidene.',
'white_label_header' => 'Reklamefri',
'bought_white_label' => 'Du har suksessfullt aktivert din reklamefrie lisens.',
'white_labeled' => 'Reklamefrie',
@ -1111,4 +1110,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -465,7 +465,6 @@ return array(
'id_number' => 'Identificatienummer',
'white_label_link' => 'White label',
'white_label_text' => 'Koop een white labellicentie voor $'.WHITE_LABEL_PRICE.' om de InvoiceNinja merknaam te verwijderen uit de bovenkant van de klantenpagina\'s.',
'white_label_header' => 'White label',
'bought_white_label' => 'White label licentie succesvol geactiveerd',
'white_labeled' => 'White labeled',
@ -1106,4 +1105,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -463,7 +463,6 @@ return array(
'id_number' => 'CNPJ',
'white_label_link' => 'White Label',
'white_label_text' => 'Adquira uma "white label license" por $'.WHITE_LABEL_PRICE.' para utilizar sua própria marca no topo da página.',
'white_label_header' => 'White Label',
'bought_white_label' => 'Licença "white label" habilitada',
'white_labeled' => 'White labeled',
@ -1103,4 +1102,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);

View File

@ -468,7 +468,6 @@ return array(
'id_number' => 'ID-nummer',
'white_label_link' => 'White label',
'white_label_text' => 'Köp en white label licens för $'.WHITE_LABEL_PRICE.' för att ta bort Invoice Ninja loggan från kundernas sidor.',
'white_label_header' => 'White Label',
'bought_white_label' => 'White label licens köpt',
'white_labeled' => 'White labeled',
@ -1108,4 +1107,6 @@ return array(
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
'white_label_text' => 'Purchase a ONE YEAR white label license for $'.WHITE_LABEL_PRICE.' to remove the Invoice Ninja branding from the client portal and help support our project.',
);