Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsteampassnet authored and nilsteampassnet committed May 21, 2018
2 parents dd35c7f + ee3a16a commit 0738b2b
Show file tree
Hide file tree
Showing 28 changed files with 184 additions and 174 deletions.
328 changes: 155 additions & 173 deletions api/functions.php

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
2.1.27
15/
#2266 Google 2FA mail for temporary code is blank

14/
Fix for missing install/upgrade instructions

Expand Down
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
global $SETTINGS, $languagesList, $SETTINGS_EXT;

$SETTINGS_EXT['version'] = "2.1.27";
$SETTINGS_EXT['version_full'] = $SETTINGS_EXT['version'].".14";
$SETTINGS_EXT['version_full'] = $SETTINGS_EXT['version'].".15";
$SETTINGS_EXT['tool_name'] = "TeamPass";
$SETTINGS_EXT['one_day_seconds'] = 86400;
$SETTINGS_EXT['one_week_seconds'] = 604800;
Expand Down
1 change: 1 addition & 0 deletions includes/language/arabic.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/bulgarian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/catalan.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/chinese.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/czech.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/dutch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/estonian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/french.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Connexion',
'2fa_authentication_selector' => 'Sélectionner une méthode d\'authentification double',
'create_item_based_upon_template' => 'Activer le Modèle par Objet',
'create_item_based_upon_template_tip' => 'Quand activée, cette fonction permet à l\'auteur de choisir un modèle réalisé à partir des Champs Spéciaux. A noter que cela ne fonctionnera que si l\'option Champs Spéciaux est activée.',
'main_template' => 'Utiliser comme Modèle',
Expand Down
1 change: 1 addition & 0 deletions includes/language/german.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/greek.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/hungarian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/italian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/japanese.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/norwegian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/polish.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/portuguese.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/portuguese_br.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/romanian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/russian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/spanish.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/swedish.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/turkish.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/ukrainian.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions includes/language/vietnamese.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
global $LANG;
$LANG = array(
'log_in' => 'Log In',
'2fa_authentication_selector' => 'Select a 2 factor authenticator method',
'create_item_based_upon_template' => 'Use of template for Item',
'create_item_based_upon_template_tip' => 'When enabled, this feature permits the author to select a template made of Custom Fields. Notice that this feature requires Custom Fields to be enabled too.',
'main_template' => 'Use as template',
Expand Down
1 change: 1 addition & 0 deletions sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@
if (isset($SETTINGS['item_creation_templates']) === true
&& $SETTINGS['item_creation_templates'] === '1'
&& isset($post_template_id) === true
&& empty($post_template_id) === false
) {
DB::queryFirstRow(
"SELECT *
Expand Down

0 comments on commit 0738b2b

Please sign in to comment.