mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Fix logo and schema-import
This commit is contained in:
parent
31c91d95ee
commit
d28f2b095c
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ $defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype']));
|
||||||
if (!file_exists($authdb)) {
|
if (!file_exists($authdb)) {
|
||||||
is_dir(dirname($authdb)) || mkdir(dirname($authdb));
|
is_dir(dirname($authdb)) || mkdir(dirname($authdb));
|
||||||
$db = new SQLite3($authdb, SQLITE3_OPEN_CREATE|SQLITE3_OPEN_READWRITE);
|
$db = new SQLite3($authdb, SQLITE3_OPEN_CREATE|SQLITE3_OPEN_READWRITE);
|
||||||
$createsql = file_get_contents('scheme.sql');
|
$createsql = file_get_contents('includes/scheme.sql');
|
||||||
$db->exec($createsql);
|
$db->exec($createsql);
|
||||||
$salt = bin2hex(openssl_random_pseudo_bytes(16));
|
$salt = bin2hex(openssl_random_pseudo_bytes(16));
|
||||||
$db->exec("INSERT INTO users (emailaddress, password, isadmin) VALUES ('admin', '".crypt("admin", '$6$'.$salt)."', 1)");
|
$db->exec("INSERT INTO users (emailaddress, password, isadmin) VALUES ('admin', '".crypt("admin", '$6$'.$salt)."', 1)");
|
||||||
|
|
|
@ -34,7 +34,7 @@ if (!is_logged_in()) {
|
||||||
<body onload="document.getElementById('username').focus()">
|
<body onload="document.getElementById('username').focus()">
|
||||||
<div class="loginblock">
|
<div class="loginblock">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="https://www.tuxis.nl/wp-content/uploads/2012/01/header.png" alt="Logo" />
|
<img src="https://www.tuxis.nl/uploads/images/nsedit.png" alt="Logo" />
|
||||||
</div>
|
</div>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<? if (isset($errormsg)) {
|
<? if (isset($errormsg)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue