Skip to content

Commit 18529f6

Browse files
committed
Small bugfixes
1 parent 1c3621c commit 18529f6

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It aggregates different services and webapplications that I want easily accessib
1212
# Screenshots
1313

1414
#### Home screenshot
15-
![Home](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/public/img/screenshots/desktop_home.png "Home")
15+
![Home](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/img/screenshots/desktop_home.png "Home")
1616
#### Menu screenshot
1717
![Menu](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/img/screenshots/desktop_menu.png "Menu")
1818
[More screenshots](https://github.com/joszz/Chell-PHP-Portal/tree/master/img/screenshots)
@@ -67,12 +67,8 @@ Since this project relies on .htaccess files to work correctly, you will also ne
6767
(either only for this project or server wide).
6868
[You can find how to do so by looking here for example](https://www.linode.com/docs/web-servers/apache/how-to-set-up-htaccess-on-apache/)
6969

70-
Make sure the user Apache runs under, has write access to the project's location. It will at least need access to the folder "app/logs" (which doesn't exist on install)
71-
to write error logs to. And will also need write permissions to the file "app/config/config.ini".
72-
73-
## Config.ini
74-
If you decide to run this project outside of the root of the domain, you will need to edit "app/config/config.ini". Adjust the baseUri (in section Application) to match
75-
the directory you run this project from.
70+
Make sure the user Apache runs under, has write access to the project's location. It will at least need access to the folder "app/logs"
71+
to write error logs to.
7672

7773
## Installer
7874

app/views/index/partials/snmp.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="btn-group pull-right">
77
<button class="btn btn-default fa fa-chevron-left" title="Previous host" aria-label="Previous host"></button>
88
<button class="btn btn-default fa fa-chevron-right" title="Next host" aria-label="Next host"></button>
9-
<a href="<?php echo $this->url->get('snmp/details/' . $snmpHosts[0]->id) ?>" data-fancybox data-type="iframe" class="btn btn-default fa fa-chart-bar" title="Details"></a>
9+
<a href="<?php echo isset($snmpHosts[0]) ? $this->url->get('snmp/details/' . $snmpHosts[0]->id) : '#' ?>" data-fancybox data-type="iframe" class="btn btn-default fa fa-chart-bar" title="Details"></a>
1010
<button class="btn btn-default fa fa-sync rounded-not-mobile" title="Refresh" aria-label="Refresh"></button>
1111
<button class="btn btn-default fa fa-plus visible-xs pull-right toggle-collapse" title="Collapse/expand" aria-label="Collapse/expand"></button>
1212
</div>

app/views/install/index.phtml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,30 @@
1515
<i class="fa fa-<?php echo $mbstringEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
1616
</div>
1717
</div>
18+
<div class="form-group">
19+
<div class="col-xs-4 col-sm-5 text-right">
20+
GD enabled?
21+
</div>
22+
<div class="col-xs-8 col-sm-7">
23+
<i class="fa fa-<?php echo $gdEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
24+
</div>
25+
</div>
26+
<div class="form-group">
27+
<div class="col-xs-4 col-sm-5 text-right">
28+
cURL enabled?
29+
</div>
30+
<div class="col-xs-8 col-sm-7">
31+
<i class="fa fa-<?php echo $curlEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
32+
</div>
33+
</div>
34+
<div class="form-group">
35+
<div class="col-xs-4 col-sm-5 text-right">
36+
SNMP enabled?
37+
</div>
38+
<div class="col-xs-8 col-sm-7">
39+
<i class="fa fa-<?php echo $snmpEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
40+
</div>
41+
</div>
1842
<div class="form-group">
1943
<div class="col-xs-4 col-sm-5 text-right">
2044
PSR enabled?

app/views/navbar.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
<?php if (isset($user)) : ?>
3737
<ul class="nav navbar-nav">
3838
<?php foreach($user->getMenuItems(['order' => 'name ASC']) as $menuItem) : ?>
39-
<?php if (strpos($menuItem->url, $this->settings->network->broadcast) !== false && strpos($_SERVER['REMOTE_ADDR'], $this->settings->network->broadcast) === false) continue ?>
40-
4139
<li class="col-xs-6 col-sm-3 col-lg-2 no-gutter hover<?php echo $menuItem->device != null ? ' disabled" data-id="' . $menuItem->device->id : '' ?>">
4240
<a href="<?php echo $menuItem->url ?>" target="_blank" rel="noreferrer">
4341
<img src="<?php echo $this->url->get('img/icons/menu/' . $menuItem->id . '.png') ?>" width="16"

0 commit comments

Comments
 (0)