This commit is contained in:
olevole
2023-02-27 02:17:33 +03:00
parent 298f5dde72
commit fb139b95cb
2 changed files with 5 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ $html=<<<EOT
EOT;
$res_html=(new Forms('',$hash,$db_path))->generate();
$res_html='test';
//$res_html='test';
$html.='<h1>Helper: '.$hash.'</h1>'.$res_html;
@@ -52,7 +52,7 @@ $html.='<h1>Helper: '.$hash.'</h1>'.$res_html;
// olevole: why return here?
// Undefined property: ClonOS::$html in /usr/local/www/clonos/public/pages/instance_jail/helpers.php on line 49
//return array('html'=>$this->html);
echo json_encode(array('html'=>$html,'func'=>'fillTab'));
echo json_encode(array('html'=>$html,'func'=>'fillTab'));exit;
/*
$included_result_array=array(
@@ -63,3 +63,4 @@ $included_result_array=array(
);
*/

View File

@@ -41,6 +41,8 @@ function runVNC($jname)
if(isset($_SERVER['SERVER_NAME']) && !empty(trim($_SERVER['SERVER_NAME'])) && (strcmp($_SERVER['SERVER_NAME'], "_") != 0)){
$nodeip = $_SERVER['SERVER_NAME'];
}
} else {
$nodeip = $_SERVER['SERVER_ADDR'];
}
# TODO: This will send the pass in clear text