PHP 8.2 compatibility
This commit is contained in:
parent
9ecd10dcb7
commit
469735b79e
5 changed files with 12 additions and 2 deletions
|
|
@ -161,6 +161,7 @@ if ( $action == "info" && SYSINFO_DISPLAY == true) {
|
|||
echo phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_ENVIRONMENT | INFO_VARIABLES);
|
||||
$r=ob_get_clean();
|
||||
$html=new DOMDocument();
|
||||
libxml_use_internal_errors(true);
|
||||
$html->loadHTML($r);
|
||||
$nodelist=$html->getElementsByTagName("style");
|
||||
$nodelist->item(0)->nodeValue='
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ if ( isset ($_REQUEST['sa']) )
|
|||
$database=domaine."dossier".$dossier_number;
|
||||
$filename= str_replace(array('/','\\' ,'<','>','"','[',']',':','*',' ','{','}','&'),'_', $name);
|
||||
$filename= str_replace("__", "_", $filename);
|
||||
$filename=str_replace(PHP_EOL,'',$filename);
|
||||
$filename.="-".date('Ymd');
|
||||
$args= " -Fc -Z9 --no-owner -h ".getenv("PGHOST")." -p ".getenv("PGPORT")." ".$database;
|
||||
header('Content-type: application/octet');
|
||||
|
|
@ -90,6 +91,7 @@ if ( isset ($_REQUEST['sa']) )
|
|||
$database=domaine."mod".$dossier_number;
|
||||
$filename= str_replace(array('/','\\' ,'<','>','"','[',']',':','*',' ','{','}','&'),'_', $name);
|
||||
$filename= str_replace("__", "_", $filename);
|
||||
$filename=str_replace(PHP_EOL,'',$filename);
|
||||
$filename.="-".date('Ymd');
|
||||
$args= " -Fc -Z9 --no-owner -h ".getenv("PGHOST")." -p ".getenv("PGPORT")." ".$database;
|
||||
header('Content-type: bin/x-application');
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class Calendar
|
|||
var $str_name; // array of tiers for event - follow-up (T: action_gestion)
|
||||
var $title; // array of title for each event - follow-up (T: action_gestion)
|
||||
var $hour ; // array of hour for each event - follow-up (T: action_gestion)
|
||||
var $default_periode; //default periode
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
|
@ -257,7 +258,7 @@ class Calendar
|
|||
{
|
||||
$p_id=$g_user->get_periode();
|
||||
}
|
||||
$this->default_periode=$p_id;
|
||||
$this->default_periode=$p_id;
|
||||
return $p_id;
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ class Dossier
|
|||
"desc"=>"dos_description",
|
||||
"max_email"=>'dos_email');
|
||||
|
||||
var $cn; //!< Database connexion
|
||||
var $dos_id; //!< number of db
|
||||
var $dos_name;
|
||||
var $dos_description;
|
||||
var $dos_email;
|
||||
|
||||
function __construct($p_id)
|
||||
{
|
||||
$this->cn=new Database(); // Connect to the repository
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class Select_Box
|
|||
private $position; //!< change depending if we are in an absolute block or not
|
||||
protected $style_box;
|
||||
protected $value;
|
||||
public $style_box;
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
* @param type $p_id javascript DOMid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue