Skip to content
Snippets Groups Projects
Commit 38055c66 authored by Lucio Zambon's avatar Lucio Zambon
Browse files

Update panther.php

parent 5747ab2d
No related branches found
No related tags found
No related merge requests found
<?php
$local = isset($_REQUEST['cdn'])? false: true; // true = use only locally installed modules, false = use cdn
$local = (isset($_REQUEST['cdn']) || $_SERVER['SERVER_NAME']=='mac3d.elettra.eu')? false: true; // true = use only locally installed modules, false = use cdn
$machine = empty($_REQUEST['machine'])? 'elettra': strtolower($_REQUEST['machine']);
$mode = isset($_REQUEST['fast'])? 'fast': (isset($_REQUEST['premium'])? 'premium': '');
$mode = isset($_REQUEST['fast'])? 'fast': (isset($_REQUEST['premium'])? 'premium': (isset($_REQUEST['plus'])? 'plus': ''));
$mode = !empty($_REQUEST['fast'])? 'all': $mode;
file_put_contents('./logs'.date('Y').'.txt', date('Y-m-d H:i:s').' '.$_SERVER['REMOTE_ADDR'].'_'.$_SERVER['HTTP_X_FORWARDED_FOR'].' - '.$_SERVER['QUERY_STRING'].PHP_EOL , FILE_APPEND | LOCK_EX);
?>
......@@ -64,12 +64,13 @@
<body style="overflow: hidden;">
<canvas id="c" style="margin-top: -15px;"></canvas>
<div id="demo" style="position: absolute; display: none; top: 0px; right: -8px; z-index: 10000;" <?php
if ($_REQUEST['machine']=='elettra2') echo 'title="click me for Lattice source" onClick="document.location=\'https://drive.elettra.eu/group/268/\';"'; ?>>
<svg width="150px" height="150px" viewBox="0 0 100 100" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0 h70 l30 30 v70 z" stroke="black" stroke-width="2" fill="red"></path>
<text transform="rotate(45)" x="43" y="-30" font-weight="bold" fill="white">DEMO</text>
<text transform="rotate(45)" x="14" y="-6" font-size="70%" fill="white"> all numbers are random</text>
</svg></div>
if ($_REQUEST['machine']=='elettra2') echo 'title="click me for Lattice source" onClick="document.location=\'https://drive.elettra.eu/group/268/\';"'; ?>>
<svg width="150px" height="150px" viewBox="0 0 100 100" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0 h70 l30 30 v70 z" stroke="black" stroke-width="2" fill="red"></path>
<text transform="rotate(45)" x="43" y="-30" font-weight="bold" fill="white">DEMO</text>
<text transform="rotate(45)" x="14" y="-6" font-size="70%" fill="white"> all numbers are random</text>
</svg>
</div>
<script type="module" src="./panther.js"></script>
<div id='tooltip' style='position:absolute; display:none; z-index: 100000000;'>
<div style='width: 490px; background-color: white; padding:5px; border-width: 3px; border-color: blue; border-top-left-radius: 5px; border-top-right-radius: 5px;'><button id='compdb'>find component <span id='compname'/> on components DB</button></div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment