$labels .= ',' . "'{$capabilities}'";
    }
}
$out .= '<script type="text/javascript">
	var sec = new AwesomeChart(\'secCanvas\');
	sec.chartType = "horizontal bars";
        sec.title = "8 Most Popular Security Settings";
        sec.data = [' . $datas . '];
        sec.labels = [' . $labels . '];
        sec.draw();
	</script>';
$out .= "<hr/>";
$out .= '<div class="charts_container">
            <canvas id="openCanvas" width="500" height="500">
                Your web-browser does not support the HTML 5 canvas element.
            </canvas>
		</div>';
$out .= '<script type="text/javascript">
	var open = new AwesomeChart(\'openCanvas\');
        open.title = "Open wifi vs Protected";
        open.data = [' . $stats['totalopen'] . ',' . ($stats['totalwifi'] - $stats['totalopen']) . '];
        open.labels = [\'Open\',\'Protected\'];
        open.draw();
	</script>';
$out .= '<p><strong>' . number_format($stats['totalopen'] / $stats['totalwifi'] * 100, 3, '.', '') . '%</strong> totaly unprotected wifis</p>';
$out .= Template::contentEnd();
$out .= Template::footer();
$file = fopen($cache, 'w');
fwrite($file, $out);
fclose($file);
echo file_get_contents($cache);
Example #2
0
					<td width="150"><?php 
echo lang('DATE_CREATED');
?>
</td>
					<td><?php 
echo lang('LOG_DETAILS');
?>
</td>
				</tr>
			</thead>
			<tbody>
				<?php 
if (Input::get("scheduledpostid", "GET")) {
    $ScheduledPost = $logs->Get(Input::get("scheduledpostid", "GET"));
} else {
    $ScheduledPost = $logs->Get();
}
if ($ScheduledPost) {
    foreach ($ScheduledPost as $log) {
        echo "<tr>\r\n\t\t\t\t\t\t\t<td>" . $log->date . "</td>\r\n\t\t\t\t\t\t\t<td><p class='log'>" . $log->content . "</p></td>\r\n\t\t\t\t\t\t\t</tr>";
    }
}
?>
			</tbody>
		</table>
	</div>
</div>
			
<?php 
$template->footer();
<?php

require_once 'templates/template.php';
echo Template::header("Index");
echo Template::contentStart();
?>
<h1>Open Wifi Statistics</h1>
<p>This is Open Wifi Statistics project Web Interface.</p>
<h2>Interesting Links</h2>
<p>
	<a href="https://github.com/uberspot/OpenWifiStatistics-web">Web Interface @ Github</a><br/>
	<a href="https://github.com/uberspot/OpenWifiStatistics">Android Client @ Github</a><br/>
	<a href="https://play.google.com/store/apps/details?id=com.ows.OpenWifiStatistics#?t=W251bGwsMSwxLDUwMSwiY29tLm93cy5PcGVuV2lmaVN0YXRpc3RpY3MiXQ..">Android Client @ Google Play</a><br/>
</p>

<?php 
echo Template::contentEnd();
echo Template::footer();
 public function contact()
 {
     $l_oTemplate = new Template();
     $l_oTemplate->header($this->m_sSubject);
     $l_oTemplate->info(['Name' => $this->m_sName, 'Email' => $this->m_sEmail]);
     $l_oTemplate->message('Enquiry', $this->m_sMessage);
     $l_oTemplate->footer();
     $this->m_sMailBody = $l_oTemplate->emailTemplate();
     return $this->submit();
 }
Example #5
0
 </title>
	<link href="theme/default/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<script src="theme/default/js/jquery.js"></script>
	<script src="theme/default/js/javascript.js"></script>
	<script src="theme/default/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
	<?php 
if (Input::Get("app_id")) {
    $fb = new Facebook();
    $app_id = Input::Get("app_id");
    // check existance of appid gevin in the database
    // get app secret
    $app_secret = DB::GetInstance()->QueryGet("SELECT app_secret FROM fbapps WHERE appid = ? ", array($app_id));
    if ($app_secret->count() == 0) {
        echo "\r\n\t\t\t<div class='alerts alert alert-danger'>\r\n\t\t\t<p class='alerttext'>facebook App not found!</p>\r\n\t\t\t</div>";
    } else {
        try {
            $notic = $fb->FbAuth($app_id, $app_secret->first()->app_secret, options::Get("siteurl") . "FbAuth.php?app_id=" . $app_id, Input::Get("oldApi"));
            echo "<div class='alerts alert alert-success'>\r\n\t\t\t\t<p class='alerttext'>Successfully authorized <a href='#' onclick='window.opener.location.href = window.opener.location.href;window.close();'>Close this windiw</a>.</p>\r\n\t\t\t\t</div>";
        } catch (Exception $ex) {
            echo "\r\n\t\t\t\t<div class='alerts alert alert-danger'>\r\n\t\t\t\t<p class='alerttext'>Error : " . $ex->GetMessage() . "</a></p>\r\n\t\t\t\t</div>";
        }
    }
} else {
    echo "\r\n\t\t<div class='alerts alert alert-danger'>\r\n\t\t<p class='alerttext'>Required parameters app_id not supplied.</p>\r\n\t\t</div>";
}
$tempate->footer();
?>
</body>
</html>
Example #6
0
        <form action="rollDice.php" method="post">
        <table>
            <tr>
                <td>Number of Dices:</td>
                <td><input name="numberOfDices" placeholder="Default is 1"/></td>
            </tr>
            </table>
            <table>
            <tr>
            <td><label><input type="radio" name="dice" value="d4"/><img src="img/d4.png" alt="d4"/></label></td>
            <td><label><input type="radio" name="dice" value="d6"/><img src="img/d6.png" alt="d6"/></label></td>
            <td><label><input type="radio" name="dice" value="d8"/><img src="img/d8.png" alt="d8"/></label></td>
            </tr>
            <tr>
            <td/>
            <td><label><input type="radio" name="dice" value="d10"/><img src="img/d10.png" alt="d10"/></label></td>
            <td/>
            </tr>
            <tr>
            <td><label><input type="radio" name="dice" value="d12"/><img src="img/d12.png" alt="d12"/></label></td>
            <td><label><input type="radio" name="dice" value="d20"/><img src="img/d20.png" alt="d20"/></label></td>
            <td><label><input type="radio" name="dice" value="d100"/><img src="img/d100.png" alt="d100"/></label></td>
</tr>
        </table>
            <p><input type="submit" value="roll"/>
                <input type="reset" value="reset"/></p>
        </form>');
$template->closeContent();
$template->follow("follow.tpl");
$template->footer("footer.tpl");