Example #1
0
<?php

include 'includes/inc.php';
if (!$_SESSION['login_string']) {
    header('Location: login.php');
    exit;
}
session_write_close();
$id = intval($_GET['id']);
if ($id == 0) {
    header('Location: index.php');
    exit;
}
require_once 'includes/autoloader.inc.php';
// Start our rig class
$rigsObj = new Rigs($id);
// Saving logic
if (!empty($_POST)) {
    echo $rigsObj->update();
    exit;
}
$jsArray = array('rig/script');
require_once "includes/header.php";
// Fetch Page Information
$rigDevices = $rigsObj->getDevices();
$rigDevices = $rigDevices[0];
$rigPools = $rigsObj->getPools();
$rigPools = $rigPools[0];
$rigSettings = $rigsObj->getSettings();
$rigSettings = $rigSettings[0];
// If no devices are found, show some kind of warning
Example #2
0
        echo "</pre>";
        echo "<br />------------<br /><br />";
        echo "<pre>POOLS:";
        print_r($pools);
        echo "</pre>";
        echo "<pre>ascset:";
        print_r($ascset);
        echo "</pre>";
    } else {
        if ($_POST['submit'] == 'all') {
            // Show errors
            ini_set("display_errors", 1);
            // Get all custom classes
            require_once 'includes/inc.php';
            require_once 'includes/autoloader.inc.php';
            $rigClass = new Rigs();
            $overview = $rigClass->getOverview();
            $update = $rigClass->getUpdate();
            echo "<pre>RIGS OVERVIEW:";
            print_r($overview);
            echo "</pre>";
            echo "<br />------------<br /><br />";
            echo "<pre>RIGS UPDATE:";
            print_r($update);
            echo "</pre>";
        }
    }
}
?>
        <hr />
        <div style="font-size: 12px;margin-top:20px;">This tool was created for <a href="http://cryptoglance.info">CryptoGlance</a>.</div>