mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-30 01:22:24 +00:00
* fixes
This commit is contained in:
@@ -54,7 +54,7 @@ class CBSD {
|
||||
}
|
||||
}
|
||||
|
||||
function static register_media($path,$file,$ext)
|
||||
static function register_media($path,$file,$ext)
|
||||
{
|
||||
$cmd='cbsd media mode=register name=%s path=%s type=%s';
|
||||
$res=self::run($cmd, array($file, $path.$file, $ext));
|
||||
|
||||
@@ -79,7 +79,7 @@ class ClonOS {
|
||||
$this->server_name=$_SERVER['SERVER_ADDR'];
|
||||
}
|
||||
|
||||
if (is_null($uri_chunks) { # TODO Do we need this ?
|
||||
if (is_null($uri_chunks)) { # TODO Do we need this ?
|
||||
$this->uri_chunks=Utils::gen_uri_chunks($uri);
|
||||
} else {
|
||||
$this->uri_chunks=$uri_chunks;
|
||||
@@ -799,7 +799,7 @@ class ClonOS {
|
||||
foreach($arr_copy as $a){
|
||||
if(isset($form[$a]) && $form[$a]=='on'){
|
||||
$arr[$a]=1;
|
||||
} else-{
|
||||
} else {
|
||||
$arr[$a]=0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
if(!isset($_GET['jname'])){
|
||||
echo 'You forgot to specify a name of jail!';
|
||||
exit;
|
||||
@@ -6,8 +7,7 @@ if(!isset($_GET['jname'])){
|
||||
|
||||
function runVNC($jname)
|
||||
{
|
||||
$db=new Db('base','local');
|
||||
$res=db->selectOne("SELECT vnc_password FROM bhyve WHERE jname=?", array([$jname]));
|
||||
$res=(new Db('base','local'))->selectOne("SELECT vnc_password FROM bhyve WHERE jname=?", array([$jname]));
|
||||
|
||||
$pass='cbsd';
|
||||
if($res!==false) $pass=$res['vnc_password'];
|
||||
|
||||
Reference in New Issue
Block a user