Browse Source

Rebrand Portal to AccountHub

tags/v1.0
Skylar Ittner 1 year 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 @@
1
-Portal
1
+AccountHub
2 2
 ======
3 3
 
4
-Portal is a web application enabling secure self-serve account management. 
4
+AccountHub is a web application enabling secure self-serve account management. 
5 5
 Employees can change their password and manage other web apps they have access 
6 6
 to with the dashboard.
7 7
 
8
-https://biz.netsyms.com/portal
8
+https://biz.netsyms.com/accounthub

+ 1
- 1
apps/sync_mobile.php View File

@@ -8,7 +8,7 @@ if (MOBILE_ENABLED) {
8 8
     addMultiLangStrings(["en_us" => [
9 9
             "sync mobile" => "Sync Mobile App",
10 10
             "scan sync qrcode" => "Scan this code with the mobile app or enter the code manually.",
11
-            "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.",
11
+            "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.",
12 12
             "generate sync" => "Create new sync code",
13 13
             "active sync codes" => "Active codes",
14 14
             "no active codes" => "No active codes.",

+ 1
- 1
composer.json View File

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

+ 1
- 1
home.php View File

@@ -41,7 +41,7 @@ if (!is_empty($_GET['page'])) {
41 41
                     <a href="home.php"><img class="img-responsive banner-image" src="static/img/logo.svg" /></a>
42 42
                 </div>
43 43
             </div>
44
-            <nav class="navbar navbar-inverse">
44
+            <nav class="navbar navbar-default navbar-orange">
45 45
                 <div class="container-fluid">
46 46
                     <div class="navbar-header">
47 47
                         <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") {
142 142
 
143 143
         <link href="static/css/bootstrap.min.css" rel="stylesheet">
144 144
         <link href="static/css/font-awesome.min.css" rel="stylesheet">
145
+        <link href="static/css/material-color.min.css" rel="stylesheet">
145 146
         <link href="static/css/app.css" rel="stylesheet">
146 147
         <?php if (RECAPTCHA_ENABLED) { ?>
147 148
             <script src='https://www.google.com/recaptcha/api.js'></script>
@@ -154,7 +155,7 @@ if ($VARS['progress'] == "1") {
154 155
                     <div>
155 156
                         <img class="img-responsive banner-image" src="static/img/logo.svg" />
156 157
                     </div>
157
-                    <div class="panel panel-primary">
158
+                    <div class="panel panel-orange">
158 159
                         <div class="panel-heading">
159 160
                             <h3 class="panel-title"><?php lang("sign in"); ?></h3>
160 161
                         </div>

+ 1
- 1
lang/en_us.php View File

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

+ 1
- 1
nbproject/project.xml View File

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

+ 2
- 2
required.php View File

@@ -197,7 +197,7 @@ function checkDBError($specials = []) {
197 197
 }
198 198
 
199 199
 /*
200
- * http://stackoverflow.com/a/20075147/2534036
200
+ * http://stackoverflow.com/a/20075147
201 201
  */
202 202
 if (!function_exists('base_url')) {
203 203
 
@@ -267,7 +267,7 @@ function ip4_in_cidr($ip, $cidr) {
267 267
  * @param string $ip IP to check in IPV6 format
268 268
  * @param string $cidr CIDR netmask
269 269
  * @return boolean true if the IP is in this range, false otherwise.
270
- * @author MW. <https://stackoverflow.com/a/7952169/2534036>
270
+ * @author MW. <https://stackoverflow.com/a/7952169>
271 271
  */
272 272
 function ip6_in_cidr($ip, $cidr) {
273 273
     $address = inet_pton($ip);

+ 11
- 11
settings.template.php View File

@@ -36,7 +36,7 @@ $ldap_config->addDomain($ldap_config_domain);
36 36
  * End LDAP Configuration
37 37
  */
38 38
 
39
-define("SITE_TITLE", "Portal");
39
+define("SITE_TITLE", "AccountHub");
40 40
 
41 41
 // Used to identify the system in OTP and other places
42 42
 define("SYSTEM_NAME", "Netsyms SSO Demo");
@@ -48,7 +48,7 @@ define("TIMEZONE", "America/Denver");
48 48
 define("MOBILE_ENABLED", TRUE);
49 49
 
50 50
 // Base URL for site links.
51
-define('URL', 'http://localhost:8000/');
51
+define('URL', 'http://localhost/');
52 52
 
53 53
 // Use reCAPTCHA on login screen
54 54
 // https://www.google.com/recaptcha/
@@ -69,14 +69,8 @@ define('QWIKCLOCK_HOME', '/qwikclock/app.php');
69 69
 define('LANGUAGE', "en_us");
70 70
 
71 71
 // List of available applications, icons, and other info.
72
-// Used in the mobile app and in the "dock" in Portal.
72
+// Used in the mobile app and in the "dock" in AccountHub.
73 73
 define('EXTERNAL_APPS', [
74
-    "portal" => [
75
-        "url" => "http://localhost/portal",
76
-        "mobileapi" => "/mobile/index.php",
77
-        "icon" => "/static/img/logo.svg",
78
-        "title" => SITE_TITLE
79
-    ],
80 74
     "taskfloor" => [
81 75
         "url" => "http://localhost/taskfloor",
82 76
         "mobileapi" => "/mobile/index.php",
@@ -94,13 +88,19 @@ define('EXTERNAL_APPS', [
94 88
         "mobileapi" => "/mobile/index.php",
95 89
         "icon" => "/static/img/logo.svg",
96 90
         "title" => "Inventory"
91
+    ],
92
+    "managepanel" => [
93
+        "url" => "http://localhost/managepanel",
94
+        "mobileapi" => "/mobile/index.php",
95
+        "icon" => "/static/img/logo.svg",
96
+        "title" => "ManagePanel"
97 97
     ]
98 98
 ]);
99 99
 
100 100
 // Email settings for receiving admin alerts.
101 101
 define("USE_SMTP", TRUE); // if FALSE, will use PHP's mail() instead
102 102
 define("ADMIN_EMAIL", "");
103
-define("FROM_EMAIL", "portal-noreply@apps.biz.netsyms.com");
103
+define("FROM_EMAIL", "alert-noreply@apps.biz.netsyms.com");
104 104
 define("SMTP_HOST", "");
105 105
 define("SMTP_AUTH", true);
106 106
 define("SMTP_PORT", 587);
@@ -115,7 +115,7 @@ define("SMTP_ALLOW_INVALID_CERTIFICATE", TRUE);
115 115
 // If you want to have additional password requirements, go edit action.php.
116 116
 // However, all that does is encourage people to use the infamous 
117 117
 // "post-it password manager".  See also https://xkcd.com/936/ and
118
-// http://stackoverflow.com/a/34166252/2534036 for reasons why forcing passwords
118
+// http://stackoverflow.com/a/34166252 for reasons why forcing passwords
119 119
 // like CaPs45$% is not actually a great idea.
120 120
 // Encourage users to use 2-factor auth whenever possible.
121 121
 define("MIN_PASSWORD_LENGTH", 8);

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

@@ -1,40 +1,29 @@
1 1
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4 2
 <svg
5 3
    xmlns:dc="http://purl.org/dc/elements/1.1/"
6 4
    xmlns:cc="http://creativecommons.org/ns#"
7 5
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8 6
    xmlns:svg="http://www.w3.org/2000/svg"
9 7
    xmlns="http://www.w3.org/2000/svg"
10
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
-   width="512"
13
-   height="512"
14
-   viewBox="0 0 512.00001 512.00001"
15
-   id="svg2"
16 8
    version="1.1"
17
-   inkscape:version="0.91 r13725"
18
-   sodipodi:docname="logo.svg"
19
-   inkscape:export-filename="/home/skylar/Documents/Projects/Assets/BusinessPortal/logo_512.png"
20
-   inkscape:export-xdpi="90"
21
-   inkscape:export-ydpi="90">
9
+   id="svg2"
10
+   viewBox="0 0 512.00001 512.00001"
11
+   height="512"
12
+   width="512">
22 13
   <defs
23
-     id="defs4" />
24
-  <sodipodi:namedview
25
-     id="base"
26
-     pagecolor="#ffffff"
27
-     bordercolor="#666666"
28
-     borderopacity="1.0"
29
-     inkscape:pageopacity="0.0"
30
-     inkscape:pageshadow="2"
31
-     inkscape:zoom="0.49497475"
32
-     inkscape:cx="-135.9681"
33
-     inkscape:cy="352.66131"
34
-     inkscape:document-units="px"
35
-     inkscape:current-layer="layer1"
36
-     showgrid="false"
37
-     units="px" />
14
+     id="defs4">
15
+    <pattern
16
+       id="pattern6179"
17
+       width="8.6875"
18
+       patternUnits="userSpaceOnUse"
19
+       patternTransform="translate(201.25 133.47)"
20
+       height="8.15625">
21
+      <path
22
+         id="path6174"
23
+         style="opacity:.32394;stroke-opacity:0;fill:#eeeeec"
24
+         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" />
25
+    </pattern>
26
+  </defs>
38 27
   <metadata
39 28
      id="metadata7">
40 29
     <rdf:RDF>
@@ -43,36 +32,65 @@
43 32
         <dc:format>image/svg+xml</dc:format>
44 33
         <dc:type
45 34
            rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
46
-        <dc:title />
35
+        <dc:title></dc:title>
47 36
       </cc:Work>
48 37
     </rdf:RDF>
49 38
   </metadata>
50 39
   <g
51
-     inkscape:label="Layer 1"
52
-     inkscape:groupmode="layer"
53
-     id="layer1"
54
-     transform="translate(0,-540.36216)">
40
+     transform="translate(0,-540.36216)"
41
+     id="layer1">
55 42
     <rect
56
-       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
57
-       id="rect4726"
58
-       width="512"
59
-       height="512"
60
-       x="0"
61
-       y="540.36218"
43
+       ry="50"
62 44
        rx="50"
63
-       ry="50" />
64
-    <ellipse
65
-       style="opacity:1;fill:none;fill-opacity:1;stroke:#2196f3;stroke-width:50;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
66
-       id="path4155"
67
-       cx="901.47205"
68
-       cy="-256"
69
-       rx="68.690376"
70
-       ry="193.9493"
71
-       transform="matrix(0,1,-1,0,0,0)" />
45
+       y="540.36218"
46
+       x="0"
47
+       height="512"
48
+       width="512"
49
+       id="rect4726"
50
+       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804" />
51
+    <rect
52
+       style="fill:#4caf50;fill-opacity:1;stroke:#4caf50;stroke-opacity:1;stroke-width:25.00000004;stroke-miterlimit:4;stroke-dasharray:none"
53
+       id="rect4144"
54
+       width="543.95947"
55
+       height="15"
56
+       x="472.15271"
57
+       y="374.59375"
58
+       rx="10"
59
+       ry="10"
60
+       transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)" />
61
+    <rect
62
+       transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
63
+       ry="10"
64
+       rx="10"
65
+       y="373.31586"
66
+       x="471.13791"
67
+       height="17.555813"
68
+       width="257.55582"
69
+       id="rect4211"
70
+       style="fill:#2196f3;fill-opacity:1;stroke:#2196f3;stroke-width:25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
71
+    <rect
72
+       transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)"
73
+       ry="10"
74
+       rx="10"
75
+       y="-751.63245"
76
+       x="110.11401"
77
+       height="15"
78
+       width="543.95947"
79
+       id="rect4142"
80
+       style="fill:#795548;fill-opacity:1;stroke:#ff5722;stroke-opacity:1;stroke-width:25.00000004;stroke-miterlimit:4;stroke-dasharray:none" />
81
+    <rect
82
+       style="fill:#607d8b;fill-opacity:1;stroke:#607d8b;stroke-width:25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
83
+       id="rect4241"
84
+       width="257.55582"
85
+       height="17.555811"
86
+       x="395.76828"
87
+       y="-752.91034"
88
+       rx="10"
89
+       ry="10"
90
+       transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)" />
72 91
     <path
73
-       inkscape:connector-curvature="0"
74
-       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"
75
-       id="path3"
76
-       style="fill:#ff9100;fill-opacity:1" />
92
+       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"
93
+       style="fill:#ff9800;fill-opacity:1;stroke:#ffffff;stroke-width:4.8;stroke-miterlimit:4;stroke-dasharray:none"
94
+       id="path4516" />
77 95
   </g>
78 96
 </svg>

BIN
static/img/logo_512.png View File


Loading…
Cancel
Save