Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea

uploads/*.csv

sqlite/*.db
Expand Down
39 changes: 31 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ This is very simple and very useful.

## Screenshots
#### Screenshot1
![Network1](screenshots/Networks1.png)
![Network1](_doc/screenshots/Networks1.png)
#### Screenshot2
![Hosts1](screenshots/Hosts1.png)
![Hosts1](_doc/screenshots/Hosts1.png)
#### Screenshot3
![Hosts2](screenshots/Hosts2.png)
![Hosts2](_doc/screenshots/Hosts2.png)


## Features
Expand All @@ -24,7 +24,7 @@ This is very simple and very useful.

## Dependencies
* PHP >= 5.3.7 (recommends PHP 5.4 or newer)
* Apache (Nginx etc)
* Apache (uses .htaccess)
* SQLite3

## Using
Expand All @@ -39,34 +39,57 @@ This is very simple and very useful.


## Installation
- Install Dependencies
- Download SimpeIPAM with GitHub
- Upload SimpeIPAM in Document Root in Nginx # /var/www/html/simpleipam
- Upload SimpeIPAM in Document Root in Apache # /var/www/html/simpleipam
- Copy ipam.db.sample to ipam.db # sqlite/ipam.db


## Configuration
### Adjust `Firewall`
Please seek information about `SELinux`, `firewall` to web..
And adjust settings properly..
(If settings are too firm (example, SELinux is `Enforcing`),
you might fail to add/update/delete record to db.)

### Enable `log_message`
Edit $config['log_threshold'] in config/config.php
(If need, set $config['log_path'], $config['log_file_extension'] properly.
Pay attention to the permissions of log file output directory.)
For example, change "0" to "1 :Error Messages (including PHP errors)"

```
//$config['log_threshold'] = 0;
$config['log_threshold'] = 1;
```

### Change Per Page
Edit $config['per_page'] in controllers/Networks.php and controllers/Hosts.php
For example, change "5" to "300"
For example, change "5" to "300"

```
public function index()
{
....
$config['per_page'] = "5";
//$config['per_page'] = "5";
$config['per_page'] = "300";
....
}

function search()
{
....
$config['per_page'] = "5";
//$config['per_page'] = "5";
$config['per_page'] = "300";
....
}
```


## ChangeLog
v3.0
* Add Columns (See sqlite\NOTE.txt)

v2.0
* Delete Model Column in hosts

Expand Down
Binary file added _doc/screenshots/Hosts1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _doc/screenshots/Hosts2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _doc/screenshots/Networks1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions application/controllers/Cidr.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
* Class Cidr
*/
class Cidr extends CI_Controller
{

/**
* Cidr constructor.
*/
function __construct()
{
parent::__construct();
//helper
$this->load->helper('url');
$this->load->helper('form');
//$this->load->helper('myip');

//library
//$this->load->library('session');
//$this->load->library('csvimport');
//$this->load->library('pagination');

//model
//$this->load->model('Ipam');
}

/**
*
*/
public function index()
{
$data["host_name"] = ""; //this is form in header

$data['title'] = 'SimpleIPAM Cidr Note';
$this->load->view('template/header', $data);
$this->load->view('cidr_view');
$this->load->view('template/footer');
}

}
19 changes: 0 additions & 19 deletions application/controllers/Hello.php

This file was deleted.

Loading