Skip to content

Commit cc583fa

Browse files
committed
NEW Remove automatically ending / in directory name in setup of
package(this avoid errors and headach in setup phase)
1 parent 9882652 commit cc583fa

File tree

15 files changed

+108
-1
lines changed

15 files changed

+108
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Unreleased
55

6+
* NEW Remove automatically ending / in directory name in setup of package(this avoid errors and headach in setup phase)
67
* NEW Reorganize menu for reseller and module providers
78
* NEW Add option SELLYOURSAAS_DASHBOARD_OFF to disallow login/access to dashboard
89
* NEW Add warning on support page if contact info are not complete

class/packages.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,14 @@ public function fetch($id, $ref = null)
279279
*/
280280
public function update(User $user, $notrigger = false)
281281
{
282+
// Clean parameters to remove ending / on directories
283+
$this->srcfile1 = preg_replace('/\/+$/', '', $this->srcfile1);
284+
$this->srcfile2 = preg_replace('/\/+$/', '', $this->srcfile2);
285+
$this->srcfile3 = preg_replace('/\/+$/', '', $this->srcfile3);
286+
$this->targetsrcfile1 = preg_replace('/\/+$/', '', $this->targetsrcfile1);
287+
$this->targetsrcfile2 = preg_replace('/\/+$/', '', $this->targetsrcfile2);
288+
$this->targetsrcfile3 = preg_replace('/\/+$/', '', $this->targetsrcfile3);
289+
282290
return $this->updateCommon($user, $notrigger);
283291
}
284292

langs/cs_CZ/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Příkaz k uvedení všech instancí online/offli
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Příkaz k přesunutí několika nebo všech instancí na jiný server nasazení
364364
InstanceWasDeployed=Instance byla nasazena
365365
YourPaymentModeWillExpireFixItSoon=Platnost vašeho platebního režimu vypršela nebo brzy vyprší. Prosím <a href="%s">aktualizujte svůj platební režim</a>, aby nedošlo k přerušení služby.
366+
ResellerArea=Oblast pro prodejce
366367
YouAreAReseller=Jste prodejce
368+
ModuleProviderArea=Oblast poskytovatele modulů
369+
MyResellerTools=Moje nástroje pro prodejce
370+
MyModuleProviderTools=Moje nástroje pro poskytovatele modulů
367371
YourURLToCreateNewInstance=Aby byli k vašemu účtu připojeni noví uživatelé a zobrazovali se na vašem hlavním panelu, musíte k registraci vy nebo oni použít následující adresu URL
368372
YourCommissionsAppearsInMenu=Vaše provize (aktuální sazba <strong> %s%% </strong>) jsou viditelné v nabídce %s
369373
InvoicingSuspended=Fakturace pozastavena
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=Přístup k ovládacímu panelu je z důvodu
958962
PleaseGoBackInFewHours=Prosím, vraťte se za pár hodin...
959963
SubscriptionFormAndDashboard=Formulář pro předplatné a dashboard pro zákazníky/prodejce
960964
SaveAndPay=Ušetřete a plaťte
965+
ModulesToIgnoreForAutoUpgrade=Moduly, které se mají ignorovat při automatickém upgradu
966+
PleaseFillContactInfoFirst=Nejprve prosím vyplňte své kontaktní údaje
967+
GoToYourResellerMenuTogetInformation=Více informací naleznete v nabídce „%s“.

langs/de_DE/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Befehl, um alle Instanzen online/offline zu schal
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Befehl zum Verschieben mehrerer oder aller Instanzen auf einen anderen Deployment-Server
364364
InstanceWasDeployed=Instanz wurde bereitgestellt
365365
YourPaymentModeWillExpireFixItSoon=Ihr Zahlungsmittel ist abgelaufen oder läuft bald ab. Bitte <a href="%s">aktualisieren Sie Ihr Zahlungsmittel</a>, um eine Unterbrechung des Dienstes zu vermeiden.
366+
ResellerArea=Reseller-Bereich
366367
YouAreAReseller=Sie sind Wiederverkäufer
368+
ModuleProviderArea=Modulanbieterbereich
369+
MyResellerTools=Meine Händler-Tools
370+
MyModuleProviderTools=Meine Modulanbieter-Tools
367371
YourURLToCreateNewInstance=Damit neue Benutzer mit Ihrem Konto verknüpft werden und in Ihrem Dashboard angezeigt werden, müssen Sie oder sie die folgende URL verwenden, um sich zu registrieren
368372
YourCommissionsAppearsInMenu=Ihre Provisionen (aktueller Satz <strong> %s%% </strong> ) sind im Menü %s sichtbar
369373
InvoicingSuspended=Abrechnung ausgesetzt
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=Der Dashboard-Zugriff ist aus Wartungsgründ
958962
PleaseGoBackInFewHours=Bitte kommen Sie in ein paar Stunden wieder …
959963
SubscriptionFormAndDashboard=Abonnementformular und Kunden-/Wiederverkäufer-Dashboard
960964
SaveAndPay=Sparen und bezahlen
965+
ModulesToIgnoreForAutoUpgrade=Module, die bei der automatischen Aktualisierung ignoriert werden sollen
966+
PleaseFillContactInfoFirst=Bitte füllen Sie zuerst Ihre Kontaktdaten aus.
967+
GoToYourResellerMenuTogetInformation=Weitere Informationen finden Sie im Menü „%s“.

langs/el_GR/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Εντολή για τοποθέτηση όλων
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Εντολή για μετακίνηση πολλών ή όλων των παρουσιών σε άλλο διακομιστή ανάπτυξης
364364
InstanceWasDeployed=Το παράδειγμα έχει αναπτυχθεί
365365
YourPaymentModeWillExpireFixItSoon=Ο τρόπος πληρωμής σας έχει λήξει ή πρόκειται να λήξει. Παρακαλούμε <a href="%s">Ενημερώστε τον τρόπο πληρωμής σας</a> για να αποφύγετε οποιαδήποτε διακοπή της υπηρεσίας.
366+
ResellerArea=Περιοχή Μεταπωλητών
366367
YouAreAReseller=Είστε μεταπωλητής
368+
ModuleProviderArea=Περιοχή παρόχου ενότητας
369+
MyResellerTools=Τα εργαλεία μεταπώλησής μου
370+
MyModuleProviderTools=Τα εργαλεία παροχής λειτουργικών μονάδων μου
367371
YourURLToCreateNewInstance=Για να συνδέονται νέοι χρήστες με τον λογαριασμό σας και να εμφανίζονται στον πίνακα ελέγχου σας, πρέπει εσείς ή αυτοί να χρησιμοποιήσετε την παρακάτω διεύθυνση URL για να εγγραφείτε
368372
YourCommissionsAppearsInMenu=Οι προμήθειες σας (τρέχουσα τιμή <strong> %s%% </strong> ) είναι ορατές στο μενού %s
369373
InvoicingSuspended=Η χρέωση έχει ανασταλεί
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=Η πρόσβαση στον πίνακα ε
958962
PleaseGoBackInFewHours=Παρακαλώ επιστρέψτε σε λίγες ώρες...
959963
SubscriptionFormAndDashboard=Φόρμα εγγραφής και πίνακας ελέγχου πελατών/μεταπωλητών
960964
SaveAndPay=Εξοικονομήστε και πληρώστε
965+
ModulesToIgnoreForAutoUpgrade=Ενότητες που πρέπει να αγνοηθούν για αυτόματη αναβάθμιση
966+
PleaseFillContactInfoFirst=Παρακαλώ συμπληρώστε πρώτα τα στοιχεία επικοινωνίας σας
967+
GoToYourResellerMenuTogetInformation=Μεταβείτε στο μενού "%s" για περισσότερες πληροφορίες

langs/es_ES/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Comando para poner todas las instancias en línea
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Comando para mover varias o todas las instancias a otro servidor de implementación
364364
InstanceWasDeployed=La instancia ha sido desplegada
365365
YourPaymentModeWillExpireFixItSoon=Su modo de pago ha expirado o está a punto de expirar. Por favor, <a href="%s">actualice su modo de pago</a> para evitar cualquier interrupción del servicio.
366+
ResellerArea=Área de revendedores
366367
YouAreAReseller=Usted es un revendedor
368+
ModuleProviderArea=Área del proveedor de módulos
369+
MyResellerTools=Mis herramientas de revendedor
370+
MyModuleProviderTools=Mis herramientas de proveedor de módulos
367371
YourURLToCreateNewInstance=Para que nuevos usuarios se vinculen a su cuenta y aparezcan en su panel, usted o ellos deben usar la siguiente URL para registrarse
368372
YourCommissionsAppearsInMenu=Sus comisiones (Tasa de comisión actual <strong>%s%%</strong>) son visibles en el menú %s
369373
InvoicingSuspended=Facturación suspendida
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=El acceso al panel de control está temporal
958962
PleaseGoBackInFewHours=Por favor, vuelva en unas horas...
959963
SubscriptionFormAndDashboard=Formulario de suscripción y panel de control de clientes/distribuidores
960964
SaveAndPay=Ahorra y paga
965+
ModulesToIgnoreForAutoUpgrade=Módulos que se deben ignorar para la actualización automática
966+
PleaseFillContactInfoFirst=Por favor, complete primero su información de contacto.
967+
GoToYourResellerMenuTogetInformation=Vaya al menú "%s" para obtener más información.

langs/fr_FR/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Commande pour mettre toutes les instances en lign
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Commande pour déplacer plusieurs ou toutes les instances vers un autre serveur de déploiement
364364
InstanceWasDeployed=L'instance a été déployée
365365
YourPaymentModeWillExpireFixItSoon=Votre mode de paiement a expiré ou est sur le point d'expirer. Veuillez <a href="%s">mettre à jour votre mode de paiement</a> pour éviter toute interruption de service.
366+
ResellerArea=Espace revendeur
366367
YouAreAReseller=Vous êtes un revendeur
368+
ModuleProviderArea=Espace fournisseur de modules
369+
MyResellerTools=Mes outils de revendeur
370+
MyModuleProviderTools=Mes outils de fournisseur de modules
367371
YourURLToCreateNewInstance=Pour avoir de nouveaux utilisateurs liés à votre compte revendeur et apparaissant dans votre tableau de bord, il faut utiliser l'URL suivante lors de l'inscription
368372
YourCommissionsAppearsInMenu=Vos commissions (taux actuel <strong>%s%%</strong>) sont visibles dans le menu %s
369373
InvoicingSuspended=Facturation suspendue
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=L'accès au tableau de bord est temporaireme
958962
PleaseGoBackInFewHours=S'il vous plaît, revenez dans quelques heures...
959963
SubscriptionFormAndDashboard=Formulaire d'abonnement et tableau de bord clients/revendeurs
960964
SaveAndPay=Économisez et payez
965+
ModulesToIgnoreForAutoUpgrade=Modules à ignorer pour la mise à jour automatique
966+
PleaseFillContactInfoFirst=Veuillez d'abord remplir vos coordonnées.
967+
GoToYourResellerMenuTogetInformation=Accédez au menu « %s » pour plus d'informations.

langs/it_IT/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Comando per mettere tutte le istanze online/offli
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Comando per spostare diverse o tutte le istanze in un altro server di distribuzione
364364
InstanceWasDeployed=L'istanza è stata distribuita
365365
YourPaymentModeWillExpireFixItSoon=La tua modalità di pagamento è scaduta o sta per scadere. Ti preghiamo di <a href="%s">aggiornare la tua modalità di pagamento</a> per evitare qualsiasi interruzione del servizio.
366+
ResellerArea=Area Rivenditori
366367
YouAreAReseller=Sei un rivenditore
368+
ModuleProviderArea=Area fornitore del modulo
369+
MyResellerTools=I miei strumenti da rivenditore
370+
MyModuleProviderTools=I miei strumenti di fornitore di moduli
367371
YourURLToCreateNewInstance=Per fare in modo che i nuovi utenti vengano collegati al tuo account e appaiano nella tua dashboard, tu o loro dovete utilizzare il seguente URL per registrarvi
368372
YourCommissionsAppearsInMenu=Le tue commissioni (tasso corrente <strong> %s%% </strong> ) sono visibili nel menu %s
369373
InvoicingSuspended=Fatturazione sospesa
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=L'accesso alla dashboard è temporaneamente
958962
PleaseGoBackInFewHours=Per favore, torna tra qualche ora...
959963
SubscriptionFormAndDashboard=Modulo di iscrizione e dashboard clienti/rivenditori
960964
SaveAndPay=Risparmia e paga
965+
ModulesToIgnoreForAutoUpgrade=Moduli da ignorare per l'aggiornamento automatico
966+
PleaseFillContactInfoFirst=Si prega di compilare prima le informazioni di contatto
967+
GoToYourResellerMenuTogetInformation=Vai al menu "%s" per maggiori informazioni

langs/nl_NL/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Commando om alle instanties online/offline te zet
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Opdracht om meerdere of alle exemplaren naar een andere implementatieserver te verplaatsen
364364
InstanceWasDeployed=Instantie is geïmplementeerd
365365
YourPaymentModeWillExpireFixItSoon=Uw betalingsmodus is verlopen of staat op het punt te verlopen. <a href="%s">Werk uw betalingsmodus bij</a> om onderbreking van de service te voorkomen.
366+
ResellerArea=Resellergebied
366367
YouAreAReseller=U bent een wederverkoper
368+
ModuleProviderArea=Moduleleveranciersgebied
369+
MyResellerTools=Mijn reseller-tools
370+
MyModuleProviderTools=Mijn moduleprovider-hulpmiddelen
367371
YourURLToCreateNewInstance=Om nieuwe gebruikers aan uw account te koppelen en in uw dashboard te laten verschijnen, moet u of zij de volgende URL gebruiken om zich te registreren:
368372
YourCommissionsAppearsInMenu=Uw commissies (huidig tarief <strong> %s%% </strong> ) zijn zichtbaar in menu %s
369373
InvoicingSuspended=Facturering opgeschort
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=Vanwege onderhoudswerkzaamheden is de toegan
958962
PleaseGoBackInFewHours=Kom over een paar uur nog eens terug...
959963
SubscriptionFormAndDashboard=Abonnementsformulier en klanten-/wederverkopersdashboard
960964
SaveAndPay=Bespaar en betaal
965+
ModulesToIgnoreForAutoUpgrade=Modules die u moet negeren voor automatische upgrade
966+
PleaseFillContactInfoFirst=Vul eerst uw contactgegevens in
967+
GoToYourResellerMenuTogetInformation=Ga naar menu "%s" voor meer informatie

langs/pl_PL/sellyoursaas.lang

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ CommandToPutInstancesOnOffline=Polecenie umieszczania wszystkich instancji w try
363363
CommandToMoveInstanceOnAnotherDeploymentServer=Polecenie przeniesienia kilku lub wszystkich instancji na inny serwer wdrażania
364364
InstanceWasDeployed=Instancja została wdrożona
365365
YourPaymentModeWillExpireFixItSoon=Twój tryb płatności wygasł lub wkrótce wygaśnie. Proszę <a href="%s">zaktualizować swój tryb płatności</a>, aby uniknąć jakichkolwiek przerw w świadczeniu usług.
366+
ResellerArea=Obszar dystrybutora
366367
YouAreAReseller=Jesteś sprzedawcą
368+
ModuleProviderArea=Obszar dostawcy modułu
369+
MyResellerTools=Moje narzędzia dla sprzedawców
370+
MyModuleProviderTools=Narzędzia mojego dostawcy modułów
367371
YourURLToCreateNewInstance=Aby nowi użytkownicy byli połączeni z Twoim kontem i pojawiali się na Twoim pulpicie nawigacyjnym, Ty lub oni musicie użyć następującego adresu URL, aby się zarejestrować
368372
YourCommissionsAppearsInMenu=Twoje prowizje (aktualna stawka <strong> %s%% </strong> ) są widoczne w menu %s
369373
InvoicingSuspended=Płatności zawieszone
@@ -958,3 +962,6 @@ DashboardServiceIsTemporarlyOffline=Dostęp do pulpitu nawigacyjnego jest tymcza
958962
PleaseGoBackInFewHours=Proszę wrócić za kilka godzin...
959963
SubscriptionFormAndDashboard=Formularz subskrypcji i panel klienta/sprzedawcy
960964
SaveAndPay=Oszczędzaj i płać
965+
ModulesToIgnoreForAutoUpgrade=Moduły do zignorowania w celu automatycznej aktualizacji
966+
PleaseFillContactInfoFirst=Proszę najpierw wypełnić swoje dane kontaktowe
967+
GoToYourResellerMenuTogetInformation=Aby uzyskać więcej informacji, przejdź do menu „%s”

0 commit comments

Comments
 (0)