Skip to content

Commit

Permalink
Small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joszz committed Jun 16, 2021
1 parent 1c3621c commit 18529f6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It aggregates different services and webapplications that I want easily accessib
# Screenshots

#### Home screenshot
![Home](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/public/img/screenshots/desktop_home.png "Home")
![Home](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/img/screenshots/desktop_home.png "Home")
#### Menu screenshot
![Menu](https://raw.githubusercontent.com/joszz/Chell-PHP-Portal/master/img/screenshots/desktop_menu.png "Menu")
[More screenshots](https://github.com/joszz/Chell-PHP-Portal/tree/master/img/screenshots)
Expand Down Expand Up @@ -67,12 +67,8 @@ Since this project relies on .htaccess files to work correctly, you will also ne
(either only for this project or server wide).
[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/)

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)
to write error logs to. And will also need write permissions to the file "app/config/config.ini".

## Config.ini
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
the directory you run this project from.
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"
to write error logs to.

## Installer

Expand Down
2 changes: 1 addition & 1 deletion app/views/index/partials/snmp.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="btn-group pull-right">
<button class="btn btn-default fa fa-chevron-left" title="Previous host" aria-label="Previous host"></button>
<button class="btn btn-default fa fa-chevron-right" title="Next host" aria-label="Next host"></button>
<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>
<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>
<button class="btn btn-default fa fa-sync rounded-not-mobile" title="Refresh" aria-label="Refresh"></button>
<button class="btn btn-default fa fa-plus visible-xs pull-right toggle-collapse" title="Collapse/expand" aria-label="Collapse/expand"></button>
</div>
Expand Down
24 changes: 24 additions & 0 deletions app/views/install/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@
<i class="fa fa-<?php echo $mbstringEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-sm-5 text-right">
GD enabled?
</div>
<div class="col-xs-8 col-sm-7">
<i class="fa fa-<?php echo $gdEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-sm-5 text-right">
cURL enabled?
</div>
<div class="col-xs-8 col-sm-7">
<i class="fa fa-<?php echo $curlEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-sm-5 text-right">
SNMP enabled?
</div>
<div class="col-xs-8 col-sm-7">
<i class="fa fa-<?php echo $snmpEnabled ? 'star text-success' : 'info-circle text-danger' ?>"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-sm-5 text-right">
PSR enabled?
Expand Down
2 changes: 0 additions & 2 deletions app/views/navbar.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
<?php if (isset($user)) : ?>
<ul class="nav navbar-nav">
<?php foreach($user->getMenuItems(['order' => 'name ASC']) as $menuItem) : ?>
<?php if (strpos($menuItem->url, $this->settings->network->broadcast) !== false && strpos($_SERVER['REMOTE_ADDR'], $this->settings->network->broadcast) === false) continue ?>

<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 : '' ?>">
<a href="<?php echo $menuItem->url ?>" target="_blank" rel="noreferrer">
<img src="<?php echo $this->url->get('img/icons/menu/' . $menuItem->id . '.png') ?>" width="16"
Expand Down

0 comments on commit 18529f6

Please sign in to comment.