Fully implement MPL-2.0 license
This commit is contained in:
parent
fec5e13415
commit
c92d84c739
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make things happen when buttons are pressed and forms submitted.
|
* Make things happen when buttons are pressed and forms submitted.
|
||||||
*/
|
*/
|
||||||
|
4
api.php
4
api.php
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple JSON API to allow other apps to access accounts in this system.
|
* Simple JSON API to allow other apps to access accounts in this system.
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
$APPS["404_error"]["title"] = lang("404 error", false);
|
$APPS["404_error"]["title"] = lang("404 error", false);
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
addMultiLangStrings(["en_us" => [
|
addMultiLangStrings(["en_us" => [
|
||||||
"manage account security" => "Manage account security",
|
"manage account security" => "Manage account security",
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
$APPS["change_password"]["title"] = "Change Password";
|
$APPS["change_password"]["title"] = "Change Password";
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
addMultiLangStrings(["en_us" => [
|
addMultiLangStrings(["en_us" => [
|
||||||
"inventory" => "Inventory",
|
"inventory" => "Inventory",
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
require_once __DIR__ . "/../lib/login.php";
|
require_once __DIR__ . "/../lib/login.php";
|
||||||
addMultiLangStrings(["en_us" => [
|
addMultiLangStrings(["en_us" => [
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
// Additional i18n strings
|
// Additional i18n strings
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
use OTPHP\Factory;
|
use OTPHP\Factory;
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
|
|
||||||
use Endroid\QrCode\QrCode;
|
use Endroid\QrCode\QrCode;
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
addMultiLangStrings(["en_us" => [
|
addMultiLangStrings(["en_us" => [
|
||||||
"messages" => "Messages",
|
"messages" => "Messages",
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
dieifnotloggedin();
|
dieifnotloggedin();
|
||||||
addMultiLangStrings(["en_us" => [
|
addMultiLangStrings(["en_us" => [
|
||||||
"tasks" => "Tasks",
|
"tasks" => "Tasks",
|
||||||
|
7
home.php
7
home.php
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
require_once __DIR__ . "/required.php";
|
require_once __DIR__ . "/required.php";
|
||||||
|
|
||||||
if ($_SESSION['loggedin'] != true) {
|
if ($_SESSION['loggedin'] != true) {
|
||||||
@ -237,7 +242,7 @@ END;
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<?php echo LICENSE_TEXT; ?><br />
|
<?php echo FOOTER_TEXT; ?><br />
|
||||||
Copyright © <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
|
Copyright © <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
require_once __DIR__ . "/required.php";
|
require_once __DIR__ . "/required.php";
|
||||||
|
|
||||||
require_once __DIR__ . "/lib/login.php";
|
require_once __DIR__ . "/lib/login.php";
|
||||||
@ -230,7 +235,7 @@ if ($VARS['progress'] == "1") {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<?php echo LICENSE_TEXT; ?><br />
|
<?php echo FOOTER_TEXT; ?><br />
|
||||||
Copyright © <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
|
Copyright © <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
$STRINGS = [
|
$STRINGS = [
|
||||||
"sign in" => "Sign In",
|
"sign in" => "Sign In",
|
||||||
"username" => "Username",
|
"username" => "Username",
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
define("MESSAGES", [
|
define("MESSAGES", [
|
||||||
"old_password_mismatch" => [
|
"old_password_mismatch" => [
|
||||||
"string" => "current password incorrect",
|
"string" => "current password incorrect",
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authentication and account functions
|
* Authentication and account functions
|
||||||
*/
|
*/
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
/*
|
/*
|
||||||
* 500 most common passwords, to be used in stopping idiots from having really bad passwords.
|
* 500 most common passwords, to be used in stopping idiots from having really bad passwords.
|
||||||
* Source: https://github.com/danielmiessler/SecLists/blob/master/Passwords/500-worst-passwords.txt
|
* Source: https://github.com/danielmiessler/SecLists/blob/master/Passwords/500-worst-passwords.txt
|
||||||
|
*
|
||||||
|
* This file is licensed under the Creative Commons Attribution ShareAlike 3.0 License.
|
||||||
|
* https://creativecommons.org/licenses/by-sa/3.0/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mobile app API
|
* Mobile app API
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// List of pages and metadata
|
// List of pages and metadata
|
||||||
define("PAGES", [
|
define("PAGES", [
|
||||||
"home" => [
|
"home" => [
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file contains global settings and utility functions.
|
* This file contains global settings and utility functions.
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
|
||||||
// Whether to show debugging data in output.
|
// Whether to show debugging data in output.
|
||||||
// DO NOT SET TO TRUE IN PRODUCTION!!!
|
// DO NOT SET TO TRUE IN PRODUCTION!!!
|
||||||
define("DEBUG", false);
|
define("DEBUG", false);
|
||||||
@ -140,6 +145,6 @@ define("QUERY_LIMIT", 1000);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
define("LICENSE_TEXT", "");
|
define("FOOTER_TEXT", "");
|
||||||
define("COPYRIGHT_NAME", "Netsyms Technologies");
|
define("COPYRIGHT_NAME", "Netsyms Technologies");
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This script will create a local administrator account.
|
* This script will create a local administrator account.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
.banner-image {
|
.banner-image {
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
margin: 2em auto;
|
margin: 2em auto;
|
||||||
|
4
static/css/app.min.css
vendored
4
static/css/app.min.css
vendored
@ -1,2 +1,4 @@
|
|||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
.banner-image{max-height:100px;margin:2em auto;border:1px solid grey;border-radius:12px}.navbar-brand{font-size:110%}.footer{margin-top:10em;text-align:center}.navbar-inverse .navbar-toggle .icon-bar{background-color:white}.qrcode{width:100%;max-width:300px;margin:0 auto;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor}.navbar-inverse .navbar-brand{color:white}.navbar-inverse .navbar-nav>li>a{color:white}.navbar-inverse .navbar-link{color:white}.apppanel{min-height:250px}.app-dock-container{display:flex}.app-dock{margin:0 auto 10px auto;display:flex;justify-content:space-around;flex-wrap:wrap}.app-icon{border:1px solid grey;border-radius:20%}.app-dock-item{padding:0 5px 2px 5px;min-width:100px}.app-dock-item p{margin-bottom:0}.app-dock-item p a{font-size:95%;color:#555}.app-dock-item p a:hover{text-decoration:none}.app-dock-item p a img{width:50px;display:block;margin:0 auto}.app-dock-item p a span{display:block;text-align:center}@media only screen and (min-width:768px) and (max-width:991px){.row.widget-box>.col-sm-6:nth-child(2n+3){clear:both}}@media only screen and (min-width:992px){.row.widget-box>.col-md-4:nth-child(3n+4){clear:both}}
|
.banner-image{max-height:100px;margin:2em auto;border:1px solid grey;border-radius:12px}.navbar-brand{font-size:110%}.footer{margin-top:10em;text-align:center}.navbar-inverse .navbar-toggle .icon-bar{background-color:white}.qrcode{width:100%;max-width:300px;margin:0 auto;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor}.navbar-inverse .navbar-brand{color:white}.navbar-inverse .navbar-nav>li>a{color:white}.navbar-inverse .navbar-link{color:white}.apppanel{min-height:250px}.app-dock-container{display:flex}.app-dock{margin:0 auto 10px auto;display:flex;justify-content:space-around;flex-wrap:wrap}.app-icon{border:1px solid grey;border-radius:20%}.app-dock-item{padding:0 5px 2px 5px;min-width:100px}.app-dock-item p{margin-bottom:0}.app-dock-item p a{font-size:95%;color:#555}.app-dock-item p a:hover{text-decoration:none}.app-dock-item p a img{width:50px;display:block;margin:0 auto}.app-dock-item p a span{display:block;text-align:center}@media only screen and (min-width:768px) and (max-width:991px){.row.widget-box>.col-sm-6:nth-child(2n+3){clear:both}}@media only screen and (min-width:992px){.row.widget-box>.col-md-4:nth-child(3n+4){clear:both}}
|
@ -1,3 +1,6 @@
|
|||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
/* Fade out alerts */
|
/* Fade out alerts */
|
||||||
|
1
static/js/app.min.js
vendored
1
static/js/app.min.js
vendored
@ -1,2 +1 @@
|
|||||||
|
|
||||||
$(document).ready(function(){$(".alert .close").click(function(a){$(this).parent().fadeOut("slow")})});
|
$(document).ready(function(){$(".alert .close").click(function(a){$(this).parent().fadeOut("slow")})});
|
Loading…
x
Reference in New Issue
Block a user