Browse Source

Rebrand Portal to AccountHub

tags/v1.0
Skylar Ittner 2 years ago
parent
commit
8d3f0ede0d
11 changed files with 93 additions and 74 deletions
  1. 3
    3
      README.md
  2. 1
    1
      apps/sync_mobile.php
  3. 1
    1
      composer.json
  4. 1
    1
      home.php
  5. 2
    1
      index.php
  6. 1
    1
      lang/en_us.php
  7. 1
    1
      nbproject/project.xml
  8. 2
    2
      required.php
  9. 11
    11
      settings.template.php
  10. 70
    52
      static/img/logo.svg
  11. BIN
      static/img/logo_512.png

+ 3
- 3
README.md View File

@@ -1,8 +1,8 @@
Portal
AccountHub
======

Portal is a web application enabling secure self-serve account management.
AccountHub is a web application enabling secure self-serve account management.
Employees can change their password and manage other web apps they have access
to with the dashboard.

https://biz.netsyms.com/portal
https://biz.netsyms.com/accounthub

+ 1
- 1
apps/sync_mobile.php View File

@@ -8,7 +8,7 @@ if (MOBILE_ENABLED) {
addMultiLangStrings(["en_us" => [
"sync mobile" => "Sync Mobile App",
"scan sync qrcode" => "Scan this code with the mobile app or enter the code manually.",
"sync explained" => "Access your account and apps on the go. Use a sync code to securely connect your phone or tablet to Portal with the Netsyms Business mobile app.",
"sync explained" => "Access your account and apps on the go. Use a sync code to securely connect your phone or tablet to AccountHub with the Netsyms Business mobile app.",
"generate sync" => "Create new sync code",
"active sync codes" => "Active codes",
"no active codes" => "No active codes.",

+ 1
- 1
composer.json View File

@@ -1,5 +1,5 @@
{
"name": "netsyms/business-portal",
"name": "netsyms/accounthub",
"description": "Single-sign-on system and dashboard for Netsyms Business Apps",
"type": "project",
"require": {

+ 1
- 1
home.php View File

@@ -41,7 +41,7 @@ if (!is_empty($_GET['page'])) {
<a href="home.php"><img class="img-responsive banner-image" src="static/img/logo.svg" /></a>
</div>
</div>
<nav class="navbar navbar-inverse">
<nav class="navbar navbar-default navbar-orange">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">

+ 2
- 1
index.php View File

@@ -142,6 +142,7 @@ if ($VARS['progress'] == "1") {

<link href="static/css/bootstrap.min.css" rel="stylesheet">
<link href="static/css/font-awesome.min.css" rel="stylesheet">
<link href="static/css/material-color.min.css" rel="stylesheet">
<link href="static/css/app.css" rel="stylesheet">
<?php if (RECAPTCHA_ENABLED) { ?>
<script src='https://www.google.com/recaptcha/api.js'></script>
@@ -154,7 +155,7 @@ if ($VARS['progress'] == "1") {
<div>
<img class="img-responsive banner-image" src="static/img/logo.svg" />
</div>
<div class="panel panel-primary">
<div class="panel panel-orange">
<div class="panel-heading">
<h3 class="panel-title"><?php lang("sign in"); ?></h3>
</div>

+ 1
- 1
lang/en_us.php View File

@@ -71,7 +71,7 @@ $STRINGS = [
"open app" => "Open App",
"sign in again" => "Please sign in again to continue.",
"login failed try on web" => "There is a problem with your account. Visit "
. "Portal via a web browser for more information.",
. "AccountHub via a web browser for more information.",
"mobile login disabled" => "Mobile login has been disabled by your system "
. "administrator. Contact technical support for more information.",
"admin alert email subject" => "Alert: User login notification",

+ 1
- 1
nbproject/project.xml View File

@@ -3,7 +3,7 @@
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>BusinessPortal</name>
<name>AccountHub</name>
</data>
</configuration>
</project>

+ 2
- 2
required.php View File

@@ -197,7 +197,7 @@ function checkDBError($specials = []) {
}

/*
* http://stackoverflow.com/a/20075147/2534036
* http://stackoverflow.com/a/20075147
*/
if (!function_exists('base_url')) {

@@ -267,7 +267,7 @@ function ip4_in_cidr($ip, $cidr) {
* @param string $ip IP to check in IPV6 format
* @param string $cidr CIDR netmask
* @return boolean true if the IP is in this range, false otherwise.
* @author MW. <https://stackoverflow.com/a/7952169/2534036>
* @author MW. <https://stackoverflow.com/a/7952169>
*/
function ip6_in_cidr($ip, $cidr) {
$address = inet_pton($ip);

+ 11
- 11
settings.template.php View File

@@ -36,7 +36,7 @@ $ldap_config->addDomain($ldap_config_domain);
* End LDAP Configuration
*/

define("SITE_TITLE", "Portal");
define("SITE_TITLE", "AccountHub");

// Used to identify the system in OTP and other places
define("SYSTEM_NAME", "Netsyms SSO Demo");
@@ -48,7 +48,7 @@ define("TIMEZONE", "America/Denver");
define("MOBILE_ENABLED", TRUE);

// Base URL for site links.
define('URL', 'http://localhost:8000/');
define('URL', 'http://localhost/');

// Use reCAPTCHA on login screen
// https://www.google.com/recaptcha/
@@ -69,14 +69,8 @@ define('QWIKCLOCK_HOME', '/qwikclock/app.php');
define('LANGUAGE', "en_us");

// List of available applications, icons, and other info.
// Used in the mobile app and in the "dock" in Portal.
// Used in the mobile app and in the "dock" in AccountHub.
define('EXTERNAL_APPS', [
"portal" => [
"url" => "http://localhost/portal",
"mobileapi" => "/mobile/index.php",
"icon" => "/static/img/logo.svg",
"title" => SITE_TITLE
],
"taskfloor" => [
"url" => "http://localhost/taskfloor",
"mobileapi" => "/mobile/index.php",
@@ -94,13 +88,19 @@ define('EXTERNAL_APPS', [
"mobileapi" => "/mobile/index.php",
"icon" => "/static/img/logo.svg",
"title" => "Inventory"
],
"managepanel" => [
"url" => "http://localhost/managepanel",
"mobileapi" => "/mobile/index.php",
"icon" => "/static/img/logo.svg",
"title" => "ManagePanel"
]
]);

// Email settings for receiving admin alerts.
define("USE_SMTP", TRUE); // if FALSE, will use PHP's mail() instead
define("ADMIN_EMAIL", "");
define("FROM_EMAIL", "portal-noreply@apps.biz.netsyms.com");
define("FROM_EMAIL", "alert-noreply@apps.biz.netsyms.com");
define("SMTP_HOST", "");
define("SMTP_AUTH", true);
define("SMTP_PORT", 587);
@@ -115,7 +115,7 @@ define("SMTP_ALLOW_INVALID_CERTIFICATE", TRUE);
// If you want to have additional password requirements, go edit action.php.
// However, all that does is encourage people to use the infamous
// "post-it password manager". See also https://xkcd.com/936/ and
// http://stackoverflow.com/a/34166252/2534036 for reasons why forcing passwords
// http://stackoverflow.com/a/34166252 for reasons why forcing passwords
// like CaPs45$% is not actually a great idea.
// Encourage users to use 2-factor auth whenever possible.
define("MIN_PASSWORD_LENGTH", 8);

+ 70
- 52
static/img/logo.svg View File

@@ -1,40 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512.00001 512.00001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="logo.svg"
inkscape:export-filename="/home/skylar/Documents/Projects/Assets/BusinessPortal/logo_512.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
id="svg2"
viewBox="0 0 512.00001 512.00001"
height="512"
width="512">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="-135.9681"
inkscape:cy="352.66131"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px" />
id="defs4">
<pattern
id="pattern6179"
width="8.6875"
patternUnits="userSpaceOnUse"
patternTransform="translate(201.25 133.47)"
height="8.15625">
<path
id="path6174"
style="opacity:.32394;stroke-opacity:0;fill:#eeeeec"
d="m1.9375 0.5c-0.8781 0.7454-1.4375 1.8526-1.4375 3.0938 0 2.2424 1.82 4.0624 4.0625 4.0624 1.5819 0 2.9541-0.9292 3.625-2.25-0.7084 0.6014-1.6237 1-2.625 1-2.2425 0-4.0625-1.82-4.0625-4.0624 0-0.6607 0.1573-1.2922 0.4375-1.8438z" />
</pattern>
</defs>
<metadata
id="metadata7">
<rdf:RDF>
@@ -43,36 +32,65 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-540.36216)">
transform="translate(0,-540.36216)"
id="layer1">
<rect
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
id="rect4726"
width="512"
height="512"
x="0"
y="540.36218"
ry="50"
rx="50"
ry="50" />
<ellipse
style="opacity:1;fill:none;fill-opacity:1;stroke:#2196f3;stroke-width:50;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4155"
cx="901.47205"
cy="-256"
rx="68.690376"
ry="193.9493"
transform="matrix(0,1,-1,0,0,0)" />
y="540.36218"
x="0"
height="512"
width="512"
id="rect4726"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804" />
<rect
style="fill:#4caf50;fill-opacity:1;stroke:#4caf50;stroke-opacity:1;stroke-width:25.00000004;stroke-miterlimit:4;stroke-dasharray:none"
id="rect4144"
width="543.95947"
height="15"
x="472.15271"
y="374.59375"
rx="10"
ry="10"
transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)" />
<rect
transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
ry="10"
rx="10"
y="373.31586"
x="471.13791"
height="17.555813"
width="257.55582"
id="rect4211"
style="fill:#2196f3;fill-opacity:1;stroke:#2196f3;stroke-width:25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)"
ry="10"
rx="10"
y="-751.63245"
x="110.11401"
height="15"
width="543.95947"
id="rect4142"
style="fill:#795548;fill-opacity:1;stroke:#ff5722;stroke-opacity:1;stroke-width:25.00000004;stroke-miterlimit:4;stroke-dasharray:none" />
<rect
style="fill:#607d8b;fill-opacity:1;stroke:#607d8b;stroke-width:25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4241"
width="257.55582"
height="17.555811"
x="395.76828"
y="-752.91034"
rx="10"
ry="10"
transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)" />
<path
inkscape:connector-curvature="0"
d="m 257.45991,599.83707 c 9.94158,-3.2506 20.98401,-3.01096 30.77413,0.67362 8.13772,3.03356 15.37803,8.41343 20.65625,15.31019 5.7326,7.42341 9.11199,16.6258 9.55504,25.99551 0.63974,11.77034 -3.4201,23.71233 -11.14414,32.62095 6.11458,6.07391 10.75535,13.62837 13.37297,21.84299 3.28899,10.26035 3.40883,21.51078 0.35265,31.84111 -2.44585,8.32302 -6.96227,16.01318 -12.98644,22.24763 -5.15388,5.31434 -11.38153,9.60704 -18.23981,12.40548 -0.0129,14.28395 -0.007,28.56791 -0.004,42.85187 -0.50863,0 -1.01271,-0.0143 -1.51227,-0.0143 0.0129,30.01462 -10e-4,60.02924 0.009,90.04386 0.0543,0.47919 -0.14918,0.95395 -0.54929,1.23189 -4.56391,3.42459 -9.12781,6.85389 -13.69623,10.2762 -0.5787,0.4362 -1.43991,0.42506 -2.02089,0.0143 -5.08607,-3.42245 -10.18796,-6.8199 -15.26953,-10.24677 -0.44305,-0.26224 -0.65099,-0.76871 -0.58547,-1.26589 0.0159,-30.01462 -0.0129,-60.02696 0.0159,-90.04172 -2.60182,0 -5.20363,0 -7.80317,0 -0.0114,-4.06875 0.0339,-8.13992 -0.0181,-12.20652 -0.53574,1.44442 -1.03529,2.90698 -1.60493,4.3424 -0.43399,-0.18082 -0.86577,-0.34593 -1.29978,-0.50632 -9.53697,26.00443 -19.14397,51.98187 -28.70129,77.97974 -0.13112,0.4272 -0.38428,0.85668 -0.859,0.94937 -5.01825,1.51913 -10.04102,3.01768 -15.06381,4.52094 -0.74369,0.26452 -1.57784,-0.1014 -1.97343,-0.75727 -3.15789,-4.37183 -6.3248,-8.7368 -9.50077,-13.09491 -0.37071,-0.47476 -0.80472,-1.06922 -0.486,-1.6908 7.00975,-19.06727 14.04209,-38.12755 21.05862,-57.19253 2.5566,-6.99387 5.19005,-13.96288 7.69466,-20.97717 -2.25143,-0.78213 -4.48025,-1.62982 -6.71587,-2.45493 4.56389,-12.36478 9.10972,-24.73398 13.66911,-37.10119 -6.0965,-5.61043 -10.75082,-12.76712 -13.42272,-20.60638 -3.3568,-9.71789 -3.59191,-20.48227 -0.62388,-30.32899 3.38618,-11.61193 11.17807,-21.8587 21.46999,-28.21756 -5.26461,-8.55355 -7.54771,-18.87946 -6.50336,-28.85942 0.91548,-9.41942 4.851,-18.50206 11.03791,-25.65645 5.5314,-6.43108 12.84403,-11.32052 20.91847,-13.92679 m -13.13113,14.70443 c -6.2276,5.76422 -10.57903,13.53348 -12.16813,21.8746 -1.94174,9.85347 -0.052,20.40536 5.25335,28.94094 4.48253,-2.07972 9.27248,-3.49243 14.16418,-4.18643 0.74819,-0.10855 1.51225,-0.12855 2.24914,-0.3278 7.64496,-2.25365 15.79171,-2.74188 23.66271,-1.53254 9.18205,1.406 17.95044,5.28493 25.23598,11.04019 2.56112,-3.05396 4.71761,-6.46055 6.29543,-10.12481 4.19092,-9.57528 4.426,-20.79176 0.65329,-30.53671 -2.92507,-7.68337 -8.28467,-14.40606 -15.09097,-19.01291 -7.28325,-4.97078 -16.23022,-7.42788 -25.03026,-6.89669 -9.32448,0.49954 -18.40936,4.3808 -25.22472,10.76216 m 20.4596,59.08886 c -3.87446,1.01265 -7.05947,4.14802 -8.22589,7.9681 7.28328,2.99525 15.45491,3.74567 23.17444,2.22669 -0.36167,-3.1128 -1.94175,-6.08077 -4.4102,-8.02923 -2.90697,-2.33281 -6.94871,-3.20306 -10.53835,-2.16556 m -7.45051,14.82199 c 1.12344,2.37566 2.91375,4.45081 5.19004,5.78911 3.65069,2.2017 8.43386,2.41865 12.2337,0.46562 1.66825,-1.08506 2.90924,-2.7103 3.84961,-4.44181 -7.10695,1.04193 -14.43996,0.39321 -21.27335,-1.81292 z"
id="path3"
style="fill:#ff9100;fill-opacity:1" />
d="m 314.83612,724.61503 c 0,-32.47491 -26.37082,-58.81687 -58.85538,-58.81687 -32.4749,0 -58.81686,26.34196 -58.81686,58.81687 0,23.22249 13.21911,41.18817 33.03334,52.86683 0,0 -9.14651,34.98779 -6.76841,36.13351 l 13.11319,6.33516 -1.22274,5.59381 14.34557,12.40074 -1.95445,11.66902 -1.47308,2.38771 0.21183,4.51549 4.19775,5.72861 -0.97241,9.72418 -8.19336,8.56884 2.87876,12.7377 4.82359,24.40674 12.39109,9.2428 17.27247,-8.28001 0.36585,-109.54627 c 0,0 7.89489,1.04943 10.83139,-0.35625 3.14834,-1.5212 -9.4546,-30.66486 -9.4546,-30.66486 20.19935,-9.3198 34.24646,-29.76947 34.24646,-53.46375 z M 273.9753,704.93559 c 0,9.53162 -8.00081,17.24357 -17.8694,17.24357 -9.87822,0 -17.90789,-7.71195 -17.90789,-17.24357 0,-9.52199 8.02967,-17.26282 17.90789,-17.26282 9.86859,0 17.8694,7.74082 17.8694,17.26282 z"
style="fill:#ff9800;fill-opacity:1;stroke:#ffffff;stroke-width:4.8;stroke-miterlimit:4;stroke-dasharray:none"
id="path4516" />
</g>
</svg>

BIN
static/img/logo_512.png View File


Loading…
Cancel
Save