mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-28 16:42:25 +00:00
fix SQLite3 DQS
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{
|
||||
"require": {
|
||||
"sentry/sdk": "^3.1"
|
||||
"sentry/sdk": "^3.1",
|
||||
"sentry/sentry": "^3.22"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"php-http/discovery": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
require_once("cbsd.php");
|
||||
require_once('config.php');
|
||||
require_once('localization.php');
|
||||
@@ -2317,11 +2316,15 @@ class ClonOS {
|
||||
// $form=$this->form;
|
||||
$db=new Db('base','storage_media');
|
||||
$res=$db->select('select * from media where type="iso"', array());
|
||||
|
||||
//var_dump($res);exit;
|
||||
if($res===false || empty($res)) return;
|
||||
|
||||
$html='';
|
||||
foreach($res as $r){
|
||||
$html.='<option value="'.$r['idx'].'">'.$r['name'].'.'.$r['type'].'</option>';
|
||||
if(is_array($res)){
|
||||
foreach($res as $r){
|
||||
$html.='<option value="'.$r['idx'].'">'.$r['name'].'.'.$r['type'].'</option>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ class Db {
|
||||
|
||||
# TODO once tested $values can have a default value of an empty array
|
||||
function select($sql, $values, $single = false){
|
||||
$sql=str_replace('"',"'",$sql);
|
||||
if ($this->error){
|
||||
return array('error' => $this->error, 'info' => $this->error_message);
|
||||
}
|
||||
@@ -151,7 +152,7 @@ class Db {
|
||||
}
|
||||
return $res;
|
||||
} catch(PDOException $e) {
|
||||
return array('error' => $this->error, 'info' => $this->error_message);
|
||||
return array('error' => true, 'info' => 'Catch exception: ' . $e->getMessage()); //$this->error
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3493,6 +3493,7 @@ graphs={
|
||||
|
||||
if(typeof msg.__all!='undefined')
|
||||
{
|
||||
//if(msg.__all.length==0){alert('no data');}
|
||||
for(a in msg.__all)
|
||||
{
|
||||
var items=msg.__all[a];
|
||||
|
||||
6
public/js/jquery.js
vendored
6
public/js/jquery.js
vendored
File diff suppressed because one or more lines are too long
@@ -78,12 +78,12 @@ $lang=array(
|
||||
'Virtual network stack (VIMAGE)'=>'виртуальный сетевой стек (VIMAGE)',
|
||||
'Mount'=>'примонтировать',
|
||||
'Enabled services'=>'автозапуск сервисов',
|
||||
'Create'=>'создать',
|
||||
'Cancel'=>'отменить',
|
||||
'Save'=>'сохранить',
|
||||
'Download'=>'скачать',
|
||||
'Create'=>'Создать',
|
||||
'Cancel'=>'Отменить',
|
||||
'Save'=>'Сохранить',
|
||||
'Download'=>'Скачать',
|
||||
|
||||
'Delete'=>'удалить',
|
||||
'Delete'=>'Удалить',
|
||||
'Protected jail'=>'запрет на удаление',
|
||||
'Protected bhyve'=>'запрет на удаление',
|
||||
'Open VNC'=>'консоль управления',
|
||||
|
||||
Reference in New Issue
Block a user