Fully implement MPL-2.0 license

V2_Rewrite
Skylar Ittner 6 years ago
parent fec5e13415
commit c92d84c739

@ -1,5 +1,9 @@
<?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.
*/

@ -1,5 +1,9 @@
<?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.
*

@ -1,5 +1,9 @@
<?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();
$APPS["404_error"]["title"] = lang("404 error", false);

@ -1,5 +1,9 @@
<?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();
addMultiLangStrings(["en_us" => [
"manage account security" => "Manage account security",

@ -1,5 +1,9 @@
<?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();
$APPS["change_password"]["title"] = "Change Password";

@ -1,5 +1,9 @@
<?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();
addMultiLangStrings(["en_us" => [
"inventory" => "Inventory",

@ -1,5 +1,9 @@
<?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();
require_once __DIR__ . "/../lib/login.php";
addMultiLangStrings(["en_us" => [

@ -1,5 +1,9 @@
<?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();
// Additional i18n strings

@ -1,5 +1,9 @@
<?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();
use OTPHP\Factory;

@ -1,5 +1,9 @@
<?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();
use Endroid\QrCode\QrCode;

@ -1,5 +1,9 @@
<?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();
addMultiLangStrings(["en_us" => [
"messages" => "Messages",

@ -1,5 +1,9 @@
<?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();
addMultiLangStrings(["en_us" => [
"tasks" => "Tasks",

@ -1,4 +1,9 @@
<?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";
if ($_SESSION['loggedin'] != true) {
@ -237,7 +242,7 @@ END;
?>
</div>
<div class="footer">
<?php echo LICENSE_TEXT; ?><br />
<?php echo FOOTER_TEXT; ?><br />
Copyright &copy; <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
</div>
</div>

@ -1,4 +1,9 @@
<?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__ . "/lib/login.php";
@ -230,7 +235,7 @@ if ($VARS['progress'] == "1") {
</div>
</div>
<div class="footer">
<?php echo LICENSE_TEXT; ?><br />
<?php echo FOOTER_TEXT; ?><br />
Copyright &copy; <?php echo date('Y'); ?> <?php echo COPYRIGHT_NAME; ?>
</div>
</div>

@ -1,5 +1,9 @@
<?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 = [
"sign in" => "Sign In",
"username" => "Username",

@ -1,5 +1,9 @@
<?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", [
"old_password_mismatch" => [
"string" => "current password incorrect",

@ -1,5 +1,9 @@
<?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
*/

@ -2,6 +2,9 @@
/*
* 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
*
* 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
/* 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
*/

@ -1,5 +1,9 @@
<?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
define("PAGES", [
"home" => [

@ -1,5 +1,9 @@
<?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.
*/

@ -1,5 +1,10 @@
<?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.
// DO NOT SET TO TRUE IN PRODUCTION!!!
define("DEBUG", false);
@ -140,6 +145,6 @@ define("QUERY_LIMIT", 1000);
define("LICENSE_TEXT", "");
define("FOOTER_TEXT", "");
define("COPYRIGHT_NAME", "Netsyms Technologies");
//////////////////////////////////////////////////////////////

@ -1,4 +1,9 @@
<?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.
*/

@ -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 {
max-height: 100px;
margin: 2em auto;

@ -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}}

@ -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 () {
/* Fade out alerts */

@ -1,2 +1 @@
$(document).ready(function(){$(".alert .close").click(function(a){$(this).parent().fadeOut("slow")})});
Loading…
Cancel
Save