Skip to content

Commit

Permalink
fix: installer class properties public visibility (openemr#6387)
Browse files Browse the repository at this point in the history
* fix: installer class properties public visibility

* suppress php warnings for click login icon from admin.php page
  • Loading branch information
stephenwaite authored Apr 22, 2023
1 parent 2a2a310 commit d9733ca
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 33 deletions.
2 changes: 1 addition & 1 deletion library/auth.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
// Check if session is valid (already logged in user)
if (!AuthUtils::authCheckSession()) {
// Session is not valid (this should only happen if a user's password is changed via another session while the user is logged in)
EventAuditLogger::instance()->newEvent("logout", $_SESSION['authUser'], $_SESSION['authProvider'], 0, "authCheckSession() check failed, so force logout");
EventAuditLogger::instance()->newEvent("logout", $_SESSION['authUser'] ?? '', $_SESSION['authProvider'] ?? '', 0, "authCheckSession() check failed, so force logout");
authCloseSession();
authLoginScreen(true);
}
Expand Down
67 changes: 35 additions & 32 deletions library/classes/Installer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,41 @@

class Installer
{
private $iuser;
private $iuserpass;
private $iuname;
private $iufname;
private $igroup;
private $i2faEnable;
private $i2faSecret;
private $server;
private $loginhost;
private $port;
private $root;
private $rootpass;
private $login;
private $pass;
private $dbname;
private $collate;
private $site;
private $source_site_id;
private $clone_database;
private $no_root_db_access;
private $development_translations;
private $new_theme;
private $ippf_specific;
public $iuser;
public $iuserpass;
public $iuname;
public $iufname;
public $igroup;
public $i2faEnable;
public $i2faSecret;
public $server;
public $loginhost;
public $port;
public $root;
public $rootpass;
public $login;
public $pass;
public $dbname;
public $collate;
public $site;
public $source_site_id;
public $clone_database;
public $no_root_db_access;
public $development_translations;
public $new_theme;
public $ippf_specific;
public $conffile;
private $main_sql;
private $translation_sql;
private $devel_translation_sql;
private $ippf_sql;
private $icd9;
private $cvx;
private $additional_users;
private $dumpfiles;
public $main_sql;
public $translation_sql;
public $devel_translation_sql;
public $ippf_sql;
public $icd9;
public $cvx;
public $additional_users;
public $dumpfiles;
public $error_message;
public $debug_message;
private $dbh;
public $dbh;

public function __construct($cgi_variables)
{
Expand Down Expand Up @@ -527,6 +527,9 @@ public function create_site_directory()

public function write_configuration_file()
{
if (!file_exists($GLOBALS['OE_SITE_DIR'])) {
$this->create_site_directory();
}
@touch($this->conffile); // php bug
$fd = @fopen($this->conffile, 'w');
if (! $fd) {
Expand Down

0 comments on commit d9733ca

Please sign in to comment.