コード例 #1
0
ファイル: settings.php プロジェクト: tjankovic/FAB-UI
 function network()
 {
     $this->layout->add_js_file(array('src' => 'application/layout/assets/js/plugin/bootstrap-progressbar/bootstrap-progressbar.min.js', 'comment' => ''));
     $this->layout->add_js_file(array('src' => 'application/layout/assets/js/plugin/masked-input/jquery.maskedinput.min.js', 'comment' => ''));
     /** LOAD HELPERS */
     $this->load->helper("os_helper");
     $this->load->database();
     $this->load->model('configuration');
     $saved_wifi = $this->configuration->get_config_value('wifi');
     $saved_wifi = json_decode($saved_wifi, true);
     $networkConfiguration = networkConfiguration();
     $ethEndIp = explode('.', $networkConfiguration['eth']);
     $ethEndIp = end($ethEndIp);
     //current_wlan();
     $data['ethEndIp'] = $ethEndIp;
     $_tab_header = $this->tab_header('network');
     $data['wifi_saved'] = $saved_wifi;
     $data['_breadcrumb'] = 'Network';
     $data['_tab_header'] = $_tab_header;
     $data['lan'] = lan();
     $data['con_wlan'] = wlan();
     $data['wlan'] = scan_wlan();
     $data['networkConfiguration'] = $networkConfiguration;
     $data['imOnCable'] = $_SERVER['SERVER_ADDR'] == $networkConfiguration['eth'] ? true : false;
     $data['_tab_content'] = $this->load->view('index/network/index', $data, TRUE);
     $js_in_page = $this->load->view('index/network/js', $data, TRUE);
     $this->layout->add_js_in_page(array('data' => $js_in_page, 'comment' => ''));
     //$this->layout->set_compress(false);
     $this->layout->view('index/index', $data);
 }
コード例 #2
0
ファイル: step3.php プロジェクト: tjankovic/FAB-UI
<?php

/** * UTILITIES */
include "inc/utilities.php";
$_wlan_list = scan_wlan();
$_lan = lan();
$temp = explode('.', $_lan['ip']);
$ipLastNum = $temp[3];
?>
<div class="tab-pane" id="tab3">
	<br>
	<h3>
		<strong>
			Step 3
		</strong>
		- Setup your network configuration
	</h3>
	<div class="row">
		<table class="table table-striped table-forum smart-form">
			<thead>
				<th colspan="2">
					<i class="fa fa-sitemap text-muted">
					</i>
					LAN Network
				</th>
				<th class="text-right">
					<i class="fa  fa-angle-double-up text-muted">
					</i>
				</th>
				</tr>
			</thead>