} else {if (!empty($this->connections["$database"])) {return true;}if ($database == "masterReplica") {$this->connections['masterReplica'] = new \PDO('mysql:host=' . DATABASE_MASTER_REPLICA_HOST . ';dbname=' . DATABASE_MASTER_REPLICA_DATABASE . ";charset=utf8",DATABASE_MASTER_REPLICA_USERNAME,DATABASE_MASTER_REPLICA_PASSWORD,$databaseOptions);} elseif ($database == "event") {$this->connections['event'] = new \PDO(
SQLSTATE[HY000] [1045] Access denied for user 'admin'@'172.31.6.228' (using password: YES)
-rw-rw-r-- 1002 1002 19.21KB Oct 05 09:01 /home/users/panda/framework.panda/Panda/Database.php
} else {if (!empty($this->connections["$database"])) {return true;}if ($database == "masterReplica") {$this->connections['masterReplica'] = new \PDO('mysql:host=' . DATABASE_MASTER_REPLICA_HOST . ';dbname=' . DATABASE_MASTER_REPLICA_DATABASE . ";charset=utf8",DATABASE_MASTER_REPLICA_USERNAME,DATABASE_MASTER_REPLICA_PASSWORD,$databaseOptions);} elseif ($database == "event") {$this->connections['event'] = new \PDO(
if (is_array($return)) {return $return;}}$this->logQuery($database, [$query, $vars]);$this->connect($database);$prepared = $this->connections["$database"]->prepare($query);if (!$prepared) {return;}$prepared->execute($vars);
if (defined("FORCE_MASTER_DATABASE")) {$options['master'] = 1;}if (preg_match("/insert /i", $query) || preg_match("/update /i", $query) || preg_match("/replace /i", $query)) {$options['master'] = 1;}if (empty($options['master']) && empty($options['force']) && empty($options['parent'])) {return $this->row("masterReplica",$query,$vars,$options);}return $this->row("master",$query,$vars,$options);}/*** master_idInsert function.*
$host = $_SERVER['HTTP_HOST'] ?? null;}if ($host == null) {return false;}$query = "select * from networkDomainRedirect where domain = ? or domain = ?";$target = $this->db->master_row($query, [$host, "www.{$host}"]);if (empty($target['target'])) {return null;}$request = $_SERVER['REQUEST_URI'] ?? "/";$destination = "https://" . $target['target'] . $request;
if (!empty($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == "/.well-known/validate") {echo "PANDA_VALID";exit;}# redirect check here so we can use channels to setup sslif (!preg_match("/\.well-known/", $_SERVER['REQUEST_URI']) && !defined("PANDACUB")) {$this->checkForRedirect($host);}if (preg_match("/\." . preg_quote($this->settings['primaryDomain'], '/') . "\z/i" , $host)||preg_match("/\." . preg_quote($this->settings['secondaryDomain'], '/') . "\z/i" , $host)||
$allowHTTP = true;}if (preg_match("/\/simpleStat/", $_SERVER['REQUEST_URI'])) {$allowHTTP = true;}}$site = $main->determineSite(null, $allowHTTP);if (empty($site)) {$site = ['type' => null];}if ($site['type'] == "cub") {require_once("/home/users/panda/cubcontrol.panda.tech/router.php");
<?phprequire_once(dirname(__FILE__) . "/../index.php");
-rw-rw-r-- 1002 1002 2.7KB Oct 05 09:01 /home/users/panda/router.panda.tech/index.php