Example #1
0
}
//pagination parameters
$limit = isset($_GET['limit']) ? $_GET['limit'] : 25;
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$links = isset($_GET['links']) ? $_GET['links'] : 1;
//set varibles
$table = dbGetLastLogs($limit, $page, $links, $_SESSION['username']);
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Last Logs");
$header->closeHeader();
openBody();
printNavbarAndSidebar("devLastLogs");
printBody($table);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
function printBody($table)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">
                    Last Logs
                </h1>
Example #2
0
}
$success = "";
if (isset($_GET['success'])) {
    $success = $_GET['success'];
}
$devInfo = dbGetDevInfo($_GET['devName']);
$nameOfFields = dbGetNameOfFields($_GET['devName']);
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Device Details");
$header->closeHeader();
openBody();
printNavbarAndSidebar("devDetails");
printBody($devInfo, $nameOfFields, $errorMessage, $success);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($devInfo, $nameOfFields, $errorMessage, $success)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
Example #3
0
//get data needed
$devNamesList = dbGetDevNamesList($_SESSION['username']);
$table = "selectDevice";
if (isset($_GET['devName']) && $_GET['devName'] != "") {
    //get data
    $table = dbGetDataTable($_GET['devName'], $limit, $page, $links);
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Data Tables");
$header->closeHeader();
openBody();
printNavbarAndSidebar("devDataTables");
printBody($devNamesList, $table, $_GET['devName']);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($devNamesList, $table, $devName)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
Example #4
0
sec_session_start();
if (!isset($_SESSION['username'])) {
    header("Location: ../logout.php");
    exit;
}
//set data
$devNamesList = dbGetDevNamesListCoordinates($_SESSION['username']);
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Maps");
$header->closeHeader();
openBody();
printNavbarAndSidebar("devMaps");
printBody($devNamesList);
closeBody();
$footer = new outputFooter();
printKmlMaps($_POST['devName'], $_POST['iniDate']);
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($devNamesList)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
Example #5
0
    $html .= $breadcrumbs . $main . $breadcrumbs;
    #$html.=$top;//printTopBar($category);
    $html .= FOOTER;
    $html .= "</div>";
    global $analytics;
    $html .= "{$analytics}</body>";
    return $html;
}
///////////////
// MAIN
///////////////
global $errorPage;
$errorPage = false;
/*
$safari = stripos($_SERVER['HTTP_USER_AGENT'], 'safari');
$iphone = stripos($_SERVER['HTTP_USER_AGENT'], 'mobile') ;
$blazer = stripos($_SERVER['HTTP_USER_AGENT'], 'blazer');
*/
////////////////////////////////////
$title = "";
$breadcrumbs = "";
$body = printBody();
$html = "<html>";
$title .= getPageHeaderRoot($request);
$html .= printHead();
$html .= $body;
$html .= "\n</html>";
if ($errorPage == true) {
    header("HTTP/1.0 404 Not Found");
}
print $html;
include_once '../includes/includes.php';
//session management
sec_session_start();
if (!isset($_SESSION['username'])) {
    header("Location: ../logout.php");
    exit;
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Arduino Projects");
$header->closeHeader();
openBody();
printNavbarAndSidebar("arduino");
printBody();
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody()
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
Example #7
0
}
if (isset($_GET['newDev_checkPwdError'])) {
    $newDev_checkPwdErrorMsg = $_GET['newDev_checkPwdError'];
}
if (isset($_GET['newDev_insertErrorMsg'])) {
    $newDev_insertErrorMsg = $_GET['newDev_insertErrorMsg'];
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - New Device");
$header->closeHeader();
openBody();
printNavbarAndSidebar("newDevice");
printBody($_GET['devName'], $_GET['devType'], $_GET['devNumOfFields'], $_GET['devPrivacy'], $_GET['devStatus'], $newDev_insertErrorMsg, $newDev_checkDevNameErrorMsg, $newDev_checkPwdErrorMsg);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($postDevName, $postDevType, $postDevNumOfFields, $postDevPrivacy, $postDevStatus, $newDev_insertErrorMsg, $newDev_checkDevNameErrorMsg, $newDev_checkPwdErrorMsg)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row" >
            <div class="col-lg-12">
Example #8
0
<div style="font: italic normal 14px verdana, arial, helvetica; margin: 0.4em;"><?php 
echo $e["from"];
?>
 </div>
<div style="font: italic bold 14px verdana, arial, helvetica; margin: 0.4em;"><?php 
echo getLabel('subject');
?>
: RE: <?php 
echo $e["subject"];
?>
</div>
<p />
<textarea name="body" rows="10" cols="76">
<?php 
echo printBody($e["body"]);
?>
</textarea>
</div>

<div style="background: #aaa; margin-top:0; width: 645px; padding: 0.1em; margin-bottom: 1.5em;">
<img style="padding: 0.2em;" id="dust" name="dustn" src="/img/dot.png?pid=2701" /><br />
<input type="text" name="lod" value="<?php 
echo getTxt('captcha');
?>
" size="36" onfocus="this.value=''"/><br />
<input class="sendbt" type="submit" name="send" value="<?php 
echo getLabel('send.email');
?>
" />
</div>
Example #9
0
        } else {
            $numOfData = "all";
        }
    }
}
//set data
$devNamesList = dbGetDevNamesListGeneral($_SESSION['username']);
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Charts");
$header->closeHeader();
openBody();
printNavbarAndSidebar("devCharts");
printBody($devNamesList, $errorMessages);
closeBody();
$footer = new outputFooter();
if ($errorMessages == array(0, 0, 0, 0)) {
    printChartsScript($_POST['devName'], $_POST['chartType'], $_POST['firstData'], $numOfData);
}
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($devNamesList, $errorMessages)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">
Example #10
0
include_once '../includes/includes.php';
//session management
sec_session_start();
if (!isset($_SESSION['username'])) {
    header("Location: ../logout.php");
    exit;
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Home");
$header->closeHeader();
openBody();
printNavbarAndSidebar("home");
printBody($numOfDevices);
closeBody();
$footer = new outputFooter();
printChartsScript();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody()
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div style="margin-bottom: 10px">
Example #11
0
    header("Location: ../logout.php");
    exit;
}
//Set variables
$username = $_SESSION['username'];
$email = dbGetUserEmail($username);
$role = dbGetUserRole($username);
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Profile");
$header->closeHeader();
openBody();
printNavbarAndSidebar("blank");
printBody($username, $email, $role);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($username, $email, $role)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        

        <!-- Page Heading -->
include_once '../includes/includes.php';
//session management
sec_session_start();
if (!isset($_SESSION['username'])) {
    header("Location: ../logout.php");
    exit;
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Delete");
$header->closeHeader();
openBody();
printNavbarAndSidebar("deleteDevice_succcess");
printBody($_GET['devName']);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($devName)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row" >
            <div class="col-lg-12">
Example #13
0
}
//set variables
if (isset($_GET['errorMessage'])) {
    $errorMessage = $_GET['errorMessage'];
} else {
    $errorMessage = "An unknown error occurred. Please try again.";
}
/*************
 * PRINT HTML
 *************/
$header = new outputHeader();
$header->printSimpleHeader("IoT MyAdmin - Error");
$header->closeHeader();
openBody();
printNavbarAndSidebar("error");
printBody($errorMessage);
closeBody();
$footer = new outputFooter();
$footer->closeHtml();
/**************************************************************************
 * custom html code
 *******************/
function printBody($errorMessage)
{
    ?>
<div id="page-wrapper">
    <div class="container-fluid">

        <!-- Page Heading -->
        <div class="row" >
            <div class="col-lg-12">