Skip to content

Commit

Permalink
if no lib behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Jul 11, 2024
1 parent 9dbba18 commit 9cd8d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 55 deletions.
52 changes: 0 additions & 52 deletions ardubadge.php

This file was deleted.

6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function get_name($str) {
}

if (!isset($_GET["lib"])) {
die;
$lib = "No lib specified";
}else{
$lib = $_GET["lib"];
}

$lib = $_GET["lib"];
$cache_file = '/tmp/arduino_lib_' . md5($lib) . '.cache';

if (file_exists($cache_file) && (time() - filemtime($cache_file) < 86000)) {
Expand Down

0 comments on commit 9cd8d09

Please sign in to comment.