From 6b0ab2d0babdb788e06345e74d68835a98845a0d Mon Sep 17 00:00:00 2001 From: Haitem Date: Mon, 31 Aug 2020 21:23:23 +0200 Subject: [PATCH] Add device menu --- adminer.php | 2044 ++++++++++++++++++++++++++ api.php | 319 ++++ app/Routes.php | 3 +- app/api/UpdatesApi.php | 16 +- app/controllers/deviceController.php | 21 + app/views/Device.php | 42 + app/views/templates/device.phtml | 79 + app/views/templates/part/menu.phtml | 5 + lang/cs.php | 3 +- lang/en.php | 3 +- lang/nl.php | 1 + lang/pl.php | 1 + public/adminer.php | 2044 ++++++++++++++++++++++++++ public/css/main.css | 801 +++++----- 14 files changed, 4984 insertions(+), 398 deletions(-) create mode 100644 adminer.php create mode 100644 api.php create mode 100644 app/controllers/deviceController.php create mode 100644 app/views/Device.php create mode 100644 app/views/templates/device.phtml create mode 100644 public/adminer.php diff --git a/adminer.php b/adminer.php new file mode 100644 index 0000000..7475f6c --- /dev/null +++ b/adminer.php @@ -0,0 +1,2044 @@ +$W){unset($vg[$y][$he]);if(is_array($W)){$vg[$y][stripslashes($he)]=$W;$vg[]=&$vg[$y][stripslashes($he)];}else$vg[$y][stripslashes($he)]=($Zc?$W:stripslashes($W));}}}}function +bracket_escape($u,$Pa=false){static$xi=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return +strtr($u,($Pa?array_flip($xi):$xi));}function +min_version($dj,$Ge="",$i=null){global$h;if(!$i)$i=$h;$qh=$i->server_info;if($Ge&&preg_match('~([\d.]+)-MariaDB~',$qh,$A)){$qh=$A[1];$dj=$Ge;}return(version_compare($qh,$dj)>=0);}function +charset($h){return(min_version("5.5.3",0,$h)?"utf8mb4":"utf8");}function +script($Ah,$wi="\n"){return"$Ah$wi";}function +script_src($Qi){return"\n";}function +nonce(){return' nonce="'.get_nonce().'"';}function +target_blank(){return' target="_blank" rel="noreferrer noopener"';}function +h($P){return +str_replace("\0","�",htmlspecialchars($P,ENT_QUOTES,'utf-8'));}function +nl_br($P){return +str_replace("\n","
",$P);}function +checkbox($B,$Y,$gb,$oe="",$xf="",$lb="",$pe=""){$H="".($xf?script("qsl('input').onclick = function () { $xf };",""):"");return($oe!=""||$lb?"$H".h($oe)."":$H);}function +optionlist($Cf,$kh=null,$Vi=false){$H="";foreach($Cf +as$he=>$W){$Df=array($he=>$W);if(is_array($W)){$H.='';$Df=$W;}foreach($Df +as$y=>$X)$H.=''.h($X);if(is_array($W))$H.='';}return$H;}function +html_select($B,$Cf,$Y="",$wf=true,$pe=""){if($wf)return"".(is_string($wf)?script("qsl('select').onchange = function () { $wf };",""):"");$H="";foreach($Cf +as$y=>$X)$H.="";return$H;}function +select_input($Ka,$Cf,$Y="",$wf="",$hg=""){$bi=($Cf?"select":"input");return"<$bi$Ka".($Cf?">