Skip to content

Commit ab56a2e

Browse files
committed
Merge branch 'master' into stable-v0.5
2 parents d8f96a9 + 6812347 commit ab56a2e

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

install.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
$database = new Database(); // test the connection --> Exception if it doesn't work
154154

155155
$config['installation_complete']['database'] = true; // database settings successful set
156+
$config['installation_complete']['db_backup_path'] = true; //Workaround, because we removed the dialog for this
156157
} catch (Exception $e) {
157158
$messages[] = array('text' => nl2br($e->getMessage()), 'strong' => true, 'color' => 'red');
158159
}
@@ -217,12 +218,12 @@
217218
$html->setVariable('db_name', $config['db']['name'], 'string');
218219
$html->setVariable('db_user', $config['db']['user'], 'string');
219220
$html->setVariable("space_fix", $config['db']['space_fix'], 'boolean');
220-
} elseif (!$config['installation_complete']['db_backup_path']) {
221+
} /* elseif (!$config['installation_complete']['db_backup_path']) {
221222
// step "set_db_backup_path"
222223
$tmpl_site_to_show = 'set_db_backup_path';
223224
$html->setVariable('db_backup_name', $config['db']['backup']['name'], 'string');
224225
$html->setVariable('db_backup_path', $config['db']['backup']['url'], 'string');
225-
} else {
226+
}*/ else {
226227
// installation/update complete
227228
$tmpl_site_to_show = 'finish';
228229
}

lib/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ public function getDatabaseSize()
964964
$query = 'SELECT '
965965
. ' ROUND(SUM(data_length + index_length) / 1024 / 1024, 3) AS `size`'
966966
. ' FROM information_schema.TABLES'
967-
. ' WHERE table_schema = "part-db"'
967+
. ' WHERE table_schema = ?'
968968
. ' GROUP BY table_schema; ';
969969

970970
$values[] = $config['db']['name'];

templates/nextgen/install.php/smarty_finish.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<b><span style="color: green; ">{t escape=off}Herzlichen Glückwunsch, die Installation bzw. das Update von Part-DB ist fast abgeschlossen!<br>
77
Weitere Einstellungen finden Sie unter dem Menüpunkt "System".{/t}</span></b>
88
<p><b>{t}Sie können sich nun mit dem Nutzernamen "admin" und dem eben festgelegten Password einloggen.{/t}</b></p>
9+
<p><b>{t}Prüfen sie unter System->Benutzer bzw. System->Gruppen ob die Berechtigungen die von die gewünschten Werte haben{/t}</b></p>
910
<form action="index.php" method="post">
1011
<button class="btn btn-primary" type="submit" name="finish">{t}Fertigstellen{/t}</button>
1112
</form>

templates/nextgen/system_database.php/smarty_system_database.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<div class="card-body" style="padding-top: 0;">
5454
{if isset($update_required) && $update_required}
5555
<strong><span class="text-danger">{t}Die Datenbank benötigt ein Update!{/t}</span></strong><br>
56+
57+
<strong>{t}Achtung:{/t} </strong><span>{t}Prüfen sie nach dem Update, ob die Berechtigungen der Benutzer und Gruppen noch korrekt sind!{/t}</span><br>
5658
{if $last_update_failed}
5759
<br>
5860
<strong><span class="text-danger">

updates/db_update_steps.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -816,18 +816,17 @@ function get_db_update_steps($current_version)
816816
`perms_storelocations`,`perms_footprints`,`perms_categories`,
817817
`perms_suppliers`,`perms_manufacturers`,`perms_attachement_types`,
818818
`perms_tools`)
819-
VALUES (1,'admins',NULL,
820-
'Users of this group can do everything: Read, Write and Administrative actions.'
821-
,1,1365,21845,21,85,21,349525,5,5,5,5,5,5,5,5,5,325,325,325,1365,
822-
325,1365,1365,1365,1365,1365,341,1365),
823-
(2,'readonly',NULL,
824-
'Users of this group can only read informations, use tools, and don\'t have access to administrative tools.'
825-
,2,2730,43690,25,170,42,349865,9,9,9,9,9,9,9,9,9,649,649,649,1705,
826-
649,1705,1705,1705,1705,1705,681,1366),
827-
(3,'users',NULL,
828-
'Users of this group, can edit part informations, create new ones, etc. but are not allowed to use administrative tools. (But can read current configuration, and see Server status)'
829-
,2,2730,43690,25,105,41,349525,5,5,5,5,5,5,5,5,5,325,325,325,1365,
830-
325,1365,1365,1365,1365,1365,341,1365);
819+
VALUES (1, 'admins', NULL, 'Users of this group can do everything: Read, Write and Administrative actions.',
820+
21, 1365, 87381, 85, 85, 21, 1431655765, 5, 5, 5, 5, 5, 5, 5, 5, 5, 325, 325, 325, 5461, 325, 5461, 5461,
821+
5461, 5461, 5461, 1365, 1365),
822+
(2, 'readonly', NULL,
823+
'Users of this group can only read informations, use tools, and don\'t have access to administrative tools.',
824+
42, 2730, 174762, 154, 170, 42, -1516939607, 9, 9, 9, 9, 9, 9, 9, 9, 9, 649, 649, 649, 1705, 649, 1705, 1705,
825+
1705, 1705, 1705, 681, 1366),
826+
(3, 'users', NULL,
827+
'Users of this group, can edit part informations, create new ones, etc. but are not allowed to use administrative tools. (But can read current configuration, and see Server status)',
828+
42, 2730, 109226, 89, 105, 41, 1431655765, 5, 5, 5, 5, 5, 5, 5, 5, 5, 325, 325, 325, 5461, 325, 5461, 5461, 5461,
829+
5461, 5461, 1365, 1365);
831830
EOD;
832831

833832

0 commit comments

Comments
 (0)