<?php //ip.jambonbill.org :: port header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $REMOTE_ADDR = $_SERVER['REMOTE_ADDR']; $IP = new IP\IP(); $admin = new LTE\AdminLte2(); $admin->title("Port"); $admin->config()->title = $REMOTE_ADDR; $admin->config()->menu = $IP->menuleft(); echo $admin; // //print_r($_GET); $id = $_GET['id'] * 1; $sql = "SELECT * FROM ip_ports WHERE ip_id={$id} AND ip_user_id=" . $IP->user_id() . " LIMIT 1;"; $q = $IP->db()->query($sql) or die("Error {$sql}"); $r = $q->fetch(PDO::FETCH_ASSOC); if (!$r) { die("Error"); } echo "<input type='hidden' id='ip_id' value=" . $r['ip_id'] . ">"; ?> <section class="content-header"> <h1><i class='fa fa-terminal'></i> <?php echo $r['ip_ip'] . ":" . $r['ip_port']; ?> </h1> </section>
<?php // Expenses visualisation // // Stats header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Stats"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } ?> <section class="content-header"> <h1><i class='fa fa-bar-chart'></i> Stats</h1> </section> <section class="content"> <div class="row"> <div class='col-md-12'> <?php // Search form // include "box_filter.php"; // search results // $box = new LTE\Box(); $box->id("boxResult");
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Home"); echo $admin; // ?> <section class="content-header"> <h1><i class='fa fa-image'></i> gif.js <small>based on gif.js</small></h1> </section> <section class="content"> <div class='row'> <div class='col-md-6'> <?php $box = new LTE\Box(); $box->title("Dropzone"); $box->id("boxFrames"); $box->body("Drop your images here"); $box->footer("<a href=#gif class='btn btn-default'>Make a gif</a>"); echo $box; $box = new LTE\Box(); $box->title("Frames"); $box->id("boxFrames"); $box->icon("fa fa-list"); $box->collapsable(1);
<?php // MIDI SYSEX header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("MIDI Sysex"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-keyboard-o'></i> MIDI Clock </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-6'> <?php include "box_inputs.php"; ?> </div> <div class='col-sm-6'> <?php include "box_outputs.php"; ?> </div>
<?php // JasMid header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Midifiles"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-list'></i> Midifiles <small></small> </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-12'> <?php include "box_filter.php"; include "box_files.php"; ?> </div> </div> <script type="text/javascript" src="js/main.js"></script> <?php
<?php // Expenses visualisation // // Categories header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Categories"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } ?> <section class="content-header"> <h1>Categories</h1> </section> <section class="content"> <div class="row"> <div class='col-md-12'> <pre> <?php $sql = "SELECT COUNT(*) as count,ed_name FROM expenses_data GROUP BY ed_name ORDER BY count DESC;"; $q = $EXP->db()->query($sql) or die("Error {$sql}"); while ($r = $q->fetch(PDO::FETCH_ASSOC)) { print_r($r);
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Spectrum analyzer"); echo $admin; // https://gilian.web.elte.hu/demos/spectrum_analyzer/index.html ?> <section class="content-header"> <h1><i class='fa fa-microphone'></i> Spectrum analyzer <small></small> </h1> </section> <section class="content"> <?php include "box_spectrum.php"; include "box_settings.php"; ?> <script src='js/fft.js'></script> <script src='js/cybuf.js'></script> <script src='js/main.js' charset="utf-8"></script> <script src='js/midi.js' charset="utf-8"></script> <script type="text/javascript" src="js/dat.gui.min.js"></script> <style type="text/css" src='css/spectrum.css'></style>
<?php // JasMid header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Jasmid"); echo $admin; ?> <link href="./css/main.css" rel="stylesheet" type="text/css" /> <section class="content-header"> <h1><i class='fa fa-music'></i> Jasmid <small><a href=# id=btnBrowse>Browse</a></small> </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-6'> <?php //include "box_file.php"; //include "box_files.php"; include "box_tracks.php"; ?> </div> <div class='col-sm-6'> <?php //include "box_filter.php";
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Volume meter"); echo $admin; // https://gilian.web.elte.hu/demos/spectrum_analyzer/index.html ?> <style type="text/css" src='css/spectrum.css'></style> <section class="content-header"> <h1><i class='fa fa-microphone'></i> Volume <small></small> </h1> </section> <section class="content"> <p>This sample shows how to implement a clip-indicating volume meter in Web Audio, using a ScriptProcessor. It's necessary to use a ScriptProcessor in order to not miss any clipping samples - otherwise you could implement this using a RealtimeAnalyser to only grab samples when necessary.</p> <canvas id="meter" width="500" height="50"></canvas> <p>The usage is quite easy: <pre>var meter = createAudioMeter(audioContext,clipLevel,averaging,clipLag); audioContext: the AudioContext you're using. clipLevel: the level (0 to 1) that you would consider "clipping". Defaults to 0.98. averaging: how "smoothed" you would like the meter to be over time. Should be between 0 and less than 1. Defaults to 0.95.
<?php // test.php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; require __DIR__ . "/../../src/MIDI/midi.class.php"; $admin = new LTE\AdminLte2(); $admin->title("MIDI"); echo $admin; ?> <section class="container"> <?php $midi = new Midi(); $files = glob(__DIR__ . "/../../midifiles/*.mid"); shuffle($files); $file = $files[0]; $midi->importMid($file); $track = $midi->getTrack(0); echo "<h1>" . basename($file) . "</h1>\n"; echo "<pre>"; $tempo = $midi->getTempo(); $bpm = $midi->getBpm(); //returns tempo as beats per minute (0 if tempo not set). $timebase = $midi->getTimebase(); //returns timebase value. $trackCount = $midi->getTrackCount(); //returns number of tracks. $duration = $midi->getDuration(); //in sec echo "tempo={$tempo}\n";
<?php // Expenses visualisation // header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Import"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } ?> <section class="content-header"> <h1><i class='fa fa-upload'></i> Import/Export</h1> </section> <section class="content"> <div class="col-md-6"> <?php include "box_googleDriveCsv.php"; include "box_upload.php"; ?> </div><!-- /.row --> <div class="col-md-6">
<?php // Expenses visualisation // // new expense header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("New"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } ?> <section class="content-header"> <h1><?php echo $EXP->user()['email']; ?> </h1> </section> <section class="content"> <div class="row"> <div class='col-md-6'> <?php $box = new LTE\Box(); $box->id("boxNew");
<?php // Expenses visualisation // header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Edit"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } $id = 0; if (isset($_GET['id'])) { $id = $_GET['id'] * 1; } if (isset($_GET['date'])) { $x = $EXP->expenseByDay($_GET['date']); //array_pop($x) if (count($x)) { $id = $x[0]['ed_id']; } //print_r($x[0]);exit; //$id=$EXP->idByDate($_GET['date']); } if (!$id) { echo "<pre>Error</pre>"; exit("<script>document.location.href='../search/';</script>");
<?php // Expenses visualisation // // Search expense header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Search"); echo $admin; // $EXP = new Expenses\Expenses(); if (!$EXP->user_id()) { header("location:../login/logout.php"); die("Error:!user_id"); } ?> <section class="content-header"> <h1>Search</h1> </section> <section class="content"> <div class="row"> <div class='col-md-12'> <?php // Search form // include "box_search.php"; // search results // $box = new LTE\Box(); $box->id("boxResult");
<?php // MIDI header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("MIDI Keyboard"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-keyboard-o'></i> MIDI Keyboard <small>Use you keyboard as a midi keyboard/controller</small> </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-6'> <?php include "box_outputs.php"; ?> </div> <div class='col-sm-6'> <?php include "box_keyboard.php";
<?php // MIDI SYSEX header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Sysex"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-terminal'></i> Sysex </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-6'> <?php include "box_inputs.php"; ?> </div> <div class='col-sm-6'> <?php include "box_outputs.php"; ?> </div>
<?php // admin :: Calendar header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Calendar"); echo $admin; // ?> <!-- Content Header (Page header) --> <section class="content-header"> <h1><i class='fa fa-calendar'></i> Expenses calendar </h1> </section> <!-- Main content --> <section class="content"> <!-- Main row --> <div class="row"> <section class="col-sm-12"> <!-- THE CALENDAR -->
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Logout"); $admin->config()->menusearch = false; $admin->config()->menu = (object) []; echo $admin->html(); // // Write your logout code here // You could also redirect to the login page ?> <section class='content'> <div class="login-box"> <h1>Bye !</h1> <pre>redirecting to the login page...</pre> </div> <script> $(function(){ $("body").toggleClass('sidebar-collapse'); setTimeout("document.location.href='index.php';",1000); }); </script>
<?php // MIDI header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("MIDI Sequencer"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-keyboard-o'></i> MIDI Sequencer <small></small> </h1> </section> <section class="content"> <script type="text/javascript" src='js/keyboard.js'></script> <?php $admin->footer("Midi - Sequencer"); $admin->end();
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("Login"); $admin->config()->menusearch = false; //disable menu search $admin->config()->menu = (object) []; //unset the global menu echo $admin->html(); // ?> <section class='content'> <?php $pdo = new PDO\Pdo(); $db = $pdo->db(); $UD = new PDO\UserDjango($db); //echo "<pre>";print_r($_POST);exit; // Check django login if (isset($_POST['email']) && isset($_POST['password'])) { //if ($admin->django->login($_POST['email'], $_POST['password'])) { if ($UD->login($_POST['email'], $_POST['password'])) { echo "Login ok"; echo "<script>document.location.href='../home/';</script>"; } else { echo new LTE\Callout("danger", "<i class='fa fa-warning'></i> Credentials error", "Your email or password is incorrect. Please try again"); echo "<a href=index.php class='btn btn-default'><i class='fa fa-sign-in'></i> Log in</a>"; //echo "<script>document.location.href='../home/';</script>"; }
<?php // MIDI SYSEX header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); $admin->title("MB6582"); echo $admin; ?> <section class="content-header"> <h1><i class='fa fa-terminal'></i> MBSIDV2 Patches </h1> </section> <section class="content"> <div class='row'> <div class='col-sm-6'> <?php include "box_controls.php"; //include "box_files.php"; ?> </div> <div class='col-sm-6'> <?php include "box_patch.php"; ?>