P2S_ENUM2 HOST=server102.servera.info PHP=7.4.33 DOCROOT=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html DIR=/home/fe069259/domains/gostinica-v-mozhayske.ru :: .,..,.htpasswd,logs,php52-bin,php53-bin,php54-bin,php55-bin,php82-bin,php83-bin,private_html,public_ftp,public_html,stats DIR=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html :: .,..,.auth_stats.json,.htaccess,admin,design,inc,index.php,robots.txt,sitemap.xml,uploads FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/MysqliDb.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/core.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/default.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/error.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/global.class.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/js_booking.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/js_news_more.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/js_order.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/list.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/single.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/MysqliDb.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/core.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/default.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/error.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/global.class.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/js_booking.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/js_news_more.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/js_order.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/list.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/public_html/inc/single.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/index.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/admin/inc/js_favicon.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/admin/inc/js_menu.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/admin/inc/js_pages.php FILE=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/admin/inc/js_rent.php CONFIG=/home/fe069259/domains/gostinica-v-mozhayske.ru/private_html/inc/MysqliDb.php LEN=81867 CFGLINE: * MysqliDb Class CFGLINE: * @package MysqliDb CFGLINE: class MysqliDb CFGLINE: * @var MysqliDb CFGLINE: * Name of the auto increment column CFGLINE: * Column names for update when using onDuplicate method CFGLINE: * Table name (with prefix, if used) CFGLINE: private $_tableName = ''; CFGLINE: * Key field for Map()'ed result array CFGLINE: protected $_mapKey =***; CFGLINE: * @var array connections settings [profile_name=>[same_as_contruct_args]] CFGLINE: * @var string the name of a default (main) mysqli connection CFGLINE: public $defConnectionName = 'default'; CFGLINE: * @param string $host CFGLINE: * @param string $username CFGLINE: * @param string $password CFGLINE: * @param string $db CFGLINE: * @param int $port CFGLINE: * @param string $charset CFGLINE: * @param string $socket CFGLINE: public function __construct($host =*** CFGLINE: // if params were passed as array CFGLINE: if (is_array($host)) { CFGLINE: foreach ($host as $key =*** CFGLINE: $$key =***; CFGLINE: 'host' => $host, CFGLINE: 'username' => $username, CFGLINE: 'password' =*** CFGLINE: 'db' => $db, CFGLINE: 'port' => $port, CFGLINE: 'socket' => $socket, CFGLINE: 'charset' => $charset CFGLINE: * @param null|string $connectionName CFGLINE: public function connect($connectionName = 'default') CFGLINE: if(!isset($this->connectionsSettings[$connectionName])) CFGLINE: $pro = $this->connectionsSettings[$connectionName]; CFGLINE: $charset = array_pop($params); CFGLINE: if (empty($pro['host']) && empty($pro['socket'])) { CFGLINE: throw new Exception('MySQL host or socket is not set'); CFGLINE: if (!empty($charset)) { CFGLINE: $mysqli->set_charset($charset); CFGLINE: $this->_mysqli[$connectionName] = $mysqli; CFGLINE: foreach (array_keys($this->_mysqli) as $k) { CFGLINE: * Set the connection name to use in the next query CFGLINE: * @param string $name CFGLINE: public function connection($name) CFGLINE: if (!isset($this->connectionsSettings[$name])) CFGLINE: throw new Exception('Connection ' . $name . ' was not added.'); CFGLINE: $this->defConnectionName = $name; CFGLINE: * @params string $connection connection name to disconnect CFGLINE: * @param string $name CFGLINE: public function addConnection($name, array $params) CFGLINE: $this->connectionsSettings[$name] = array(); CFGLINE: foreach (array('host', 'username', 'password', 'db', 'port', 'socket', 'charset') as $k) { CFGLINE: if ($k == 'host') { CFGLINE: $this->_mysqli[$name] = $prm; CFGLINE: $this->connectionsSettings[$name][$k] = $prm; CFGLINE: if (!isset($this->_mysqli[$this->defConnectionName])) { CFGLINE: $this->connect($this->defConnectionName); CFGLINE: return $this->_mysqli[$this->defConnectionName]; CFGLINE: * @uses $db = MySqliDb::getInstance(); CFGLINE: * @return MysqliDb Returns the current instance. CFGLINE: * @return MysqliDb Returns the current instance. CFGLINE: $this->_tableName = ''; CFGLINE: $this->_mapKey =***; CFGLINE: $this->defConnectionName = 'default'; CFGLINE: * Helper function to create dbObject with JSON return type CFGLINE: * @return MysqliDb CFGLINE: * Helper function to create dbObject with array return type CFGLINE: * @return MysqliDb CFGLINE: * Helper function to create dbObject with object return type. CFGLINE: * @return MysqliDb CFGLINE: * @return MysqliDb CFGLINE: $this->connect($this->defConnectionName); CFGLINE: * @param string $query User-provided query to execute. CFGLINE: * @param string $query User-provided query to execute. CFGLINE: call_user_func_array(array($stmt, 'bind_param'), $this->refValues($params)); CFGLINE: * @param string $query User-provided query to execute. CFGLINE: * @param string $query User-provided query to execute. CFGLINE: $key =***; CFGLINE: if (isset($res[0][$key]) && $limit =*** CFGLINE: return $res[0][$key]; CFGLINE: $newRes[] =***; CFGLINE: * @param string $query Contains a user-provided select query. CFGLINE: * @uses $MySqliDb->setQueryOption('name'); CFGLINE: * @param string|array $options The options name of the query. CFGLINE: * @return MysqliDb CFGLINE: * @return MysqliDb CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: * @return array|MysqliDb Contains the returned rows from the select query. CFGLINE: public function get($tableName, $numRows = null, $columns = '*') CFGLINE: if (strpos($tableName, '.') === false) { CFGLINE: $this->_tableName = self::$prefix . $tableName; CFGLINE: $this->_tableName = $tableName; CFGLINE: $column . " FROM " . $this->_tableName; CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: public function getOne($tableName, $columns = '*') CFGLINE: $res = $this->get($tableName, 1, $columns); CFGLINE: if ($res instanceof MysqliDb) { CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: public function getValue($tableName, $column, $limit = 1) CFGLINE: $res = $this->ArrayBuilder()->get($tableName, $limit, "{$column} AS retval"); CFGLINE: * @param string $tableName The name of the table. CFGLINE: * @param array $insertData Data containing information for inserting into the DB. CFGLINE: public function insert($tableName, $insertData) CFGLINE: return $this->_buildInsert($tableName, $insertData, 'INSERT'); CFGLINE: * @param string $tableName The name of the table. CFGLINE: * @param array $multiInsertData Two-dimensional Data-array containing information for inserting into the DB. CFGLINE: * @param array $dataKeys Optional Table Key names, if not set in insertDataSet. CFGLINE: public function insertMulti($tableName, array $multiInsertData,?array $dataKeys =*** CFGLINE: if($dataKeys !=*** CFGLINE: // apply column-names if given, else assume they're already given in the data CFGLINE: $insertData =***; CFGLINE: $id = $this->insert($tableName, $insertData); CFGLINE: * @param string $tableName The name of the table. CFGLINE: * @param array $insertData Data containing information for inserting into the DB. CFGLINE: public function replace($tableName, $insertData) CFGLINE: return $this->_buildInsert($tableName, $insertData, 'REPLACE'); CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: public function has($tableName) CFGLINE: $this->getOne($tableName, '1'); CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: public function update($tableName, $tableData, $numRows = null) CFGLINE: $this->_query = "UPDATE " . self::$prefix . $tableName; CFGLINE: * @param string $tableName The name of the database table to work with. CFGLINE: public function delete($tableName, $numRows = null) CFGLINE: $table = self::$prefix . $tableName; CFGLINE: * @uses $MySqliDb->where('id', 7)->where('title', 'MyTitle'); CFGLINE: * @param string $whereProp The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: public function where($whereProp, $whereValue = 'DBNULL', $operator = '=', $cond = 'AND') CFGLINE: * This function store update column's name and column name of the CFGLINE: * @return MysqliDb CFGLINE: * @uses $MySqliDb->orWhere('id', 7)->orWhere('title', 'MyTitle'); CFGLINE: * @param string $whereProp The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: public function orWhere($whereProp, $whereValue = 'DBNULL', $operator = '=') CFGLINE: * @uses $MySqliDb->having('SUM(tags) > 10') CFGLINE: * @param string $havingProp The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: public function having($havingProp, $havingValue = 'DBNULL', $operator = '=', $cond = 'AND') CFGLINE: if (is_array($havingValue) && ($key =*** CFGLINE: $operator =***; CFGLINE: $havingValue =***; CFGLINE: * @uses $MySqliDb->orHaving('SUM(tags) > 10') CFGLINE: * @param string $havingProp The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: * @uses $MySqliDb->join('table1', 'field1 <> field2', 'LEFT') CFGLINE: * @param string $joinTable The name of the table. CFGLINE: * @return MysqliDb CFGLINE: * This is a basic method which allows you to import raw .CSV data into a table CFGLINE: * @param string $importTable The database table where the data will be imported into. CFGLINE: * @param string $importFile The file to be imported. Please use double backslashes \\ and make sure you CFGLINE: * @param string $importSettings An Array defining the import settings as described in the README.md CFGLINE: public function loadData($importTable, $importFile, $importSettings = null) CFGLINE: if (!file_exists($importFile)) { CFGLINE: throw new Exception("importCSV -> importFile " . $importFile . " does not exists!"); CFGLINE: // Check the import settings CFGLINE: if (gettype($importSettings) == "array") { CFGLINE: $settings = array_merge($settings, $importSettings); CFGLINE: // Add the prefix to the import table CFGLINE: $table = self::$prefix . $importTable; CFGLINE: $importFile = str_replace("\\", "\\\\", $importFile); CFGLINE: $loadDataLocal, $importFile, $table); CFGLINE: // Let the user know if the import failed / succeeded CFGLINE: * This method is useful for importing XML files into a specific table. CFGLINE: * @param string $importTable The table in which the data will be imported to. CFGLINE: * @param string $importFile The file which contains the .XML data. CFGLINE: * @param string $importSettings An Array defining the import settings as described in the README.md CFGLINE: * @return boolean Returns true if the import succeeded, false if it failed. CFGLINE: public function loadXml($importTable, $importFile, $importSettings = null) CFGLINE: if(!file_exists($importFile)) { CFGLINE: throw new Exception("loadXml: Import file does not exists"); CFGLINE: // Check the import settings CFGLINE: if(gettype($importSettings) == "array") { CFGLINE: $settings = array_merge($settings, $importSettings); CFGLINE: // Add the prefix to the import table CFGLINE: $table = self::$prefix . $importTable; CFGLINE: $importFile = str_replace("\\", "\\\\", $importFile); CFGLINE: $importFile, $table); CFGLINE: // Let the user know if the import failed / succeeded CFGLINE: * @uses $MySqliDb->orderBy('id', 'desc')->orderBy('name', 'desc', '^[a-z]')->orderBy('name', 'desc'); CFGLINE: * @param string $orderByField The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: // from table names CFGLINE: foreach ($customFieldsOrRegExp as $key =*** CFGLINE: $customFieldsOrRegExp[$key] =***; CFGLINE: * @uses $MySqliDb->groupBy('name'); CFGLINE: * @param string $groupByField The name of the database field. CFGLINE: * @return MysqliDb CFGLINE: * @return MysqliDb CFGLINE: foreach($table as $key =*** CFGLINE: if($key > 0) { CFGLINE: * @return MysqliDb CFGLINE: * @param string $tableName The name of the table. CFGLINE: * @param array $insertData Data containing information for inserting into the DB. CFGLINE: private function _buildInsert($tableName, $insertData, $operation) CFGLINE: $this->_query = $operation . " " . implode(' ', $this->_queryOptions) . " INTO " . self::$prefix . $tableName; CFGLINE: * any passed update data, and the desired rows. CFGLINE: call_user_func_array(array($stmt, 'bind_param'), $this->refValues($this->_bindParams)); CFGLINE: * , when the number of variables to pass is unknown. CFGLINE: if ($this->_nestJoin && $field->table != $this->_tableName) { CFGLINE: $row[$field->table][$field->name] = null; CFGLINE: $parameters[] = & $row[$field->table][$field->name]; CFGLINE: $row[$field->name] = null; CFGLINE: $parameters[] = & $row[$field->name]; CFGLINE: call_user_func_array(array($stmt, 'bind_result'), $parameters); CFGLINE: foreach ($row as $key =*** CFGLINE: $result->$key =***; CFGLINE: $result->$key->$k =***; CFGLINE: $result->$key =***; CFGLINE: foreach ($row as $key =*** CFGLINE: $result[$key][$k] =***; CFGLINE: $result[$key] =***; CFGLINE: if ($this->_mapKey) { CFGLINE: $results[$row[$this->_mapKey]] =***; CFGLINE: else $results[$row[$this->_mapKey]] =***; CFGLINE: if ($value instanceof MysqliDb) { CFGLINE: $key =***; CFGLINE: $val =***; CFGLINE: switch ($key) { CFGLINE: $this->_query .=***; CFGLINE: foreach ($this->_updateColumns as $key =*** CFGLINE: if (is_numeric($key)) { CFGLINE: unset($this->_updateColumns[$key]); CFGLINE: $tableData[$key] =***; CFGLINE: $this->_buildDataPairs($tableData, array_keys($this->_updateColumns), false); CFGLINE: $dataColumns =***; CFGLINE: //Prepare the where portion of the query CFGLINE: list ($concat, $varName, $operator, $val) = $cond; CFGLINE: $this->_query .= " " . $concat . " " . $varName; CFGLINE: } elseif ($val != 'DBNULL' || $val == '0') { CFGLINE: foreach ($this->_groupBy as $key =*** CFGLINE: $this->connect($this->defConnectionName); CFGLINE: foreach ($arr as $key =*** CFGLINE: $refs[$key] =***; CFGLINE: if (!isset($this->_mysqli[$this->defConnectionName])) { CFGLINE: 'alias' => isset($this->connectionsSettings[$this->defConnectionName]) ? $this->connectionsSettings[$this->defConnectionName]['host'] : null CFGLINE: * Supported intervals [s]econd, [m]inute, [h]hour, [d]day, [M]onth, [Y]ear CFGLINE: if (!in_array($type, array_keys($types))) { CFGLINE: * Supported intervals [s]econd, [m]inute, [h]hour, [d]day, [M]onth, [Y]ear CFGLINE: * @param string $col column name. null by default CFGLINE: * Method generates user defined function call CFGLINE: * @param string $expr user function body CFGLINE: * Method creates new mysqlidb object for a subquery generation CFGLINE: * @return MysqliDb CFGLINE: return new self(array('host' => $subQueryAlias, 'isSubQuery' => true)); CFGLINE: * Method returns a copy of a mysqlidb subquery object CFGLINE: * @return MysqliDb new mysqlidb object CFGLINE: * @return MysqliDb CFGLINE: * Get where and what function was called for query stored in MysqliDB->trace CFGLINE: * @param array $tables Table name or an Array of table names to check CFGLINE: $db = isset($this->connectionsSettings[$this->defConnectionName]) ? $this->connectionsSettings[$this->defConnectionName]['db'] : null; CFGLINE: $this->where('table_schema', $db); CFGLINE: $this->where('table_name', $tables, 'in'); CFGLINE: * Return result as an associative array with $idField field value used as a record key CFGLINE: * @param string $idField field name to use for a mapped element key CFGLINE: * @return MysqliDb CFGLINE: $this->_mapKey =***; CFGLINE: * @param string $table The name of the database table to work with CFGLINE: * @uses $dbWrapper->joinWhere('user u', 'u.id', 7)->where('user u', 'u.title', 'MyTitle'); CFGLINE: * @param string $whereJoin The name of the table followed by its prefix. CFGLINE: * @param string $whereProp The name of the database field. CFGLINE: public function joinWhere($whereJoin, $whereProp, $whereValue = 'DBNULL', $operator = '=', $cond = 'AND') CFGLINE: * @uses $dbWrapper->joinWhere('user u', 'u.id', 7)->where('user u', 'u.title', 'MyTitle'); CFGLINE: * @param string $whereJoin The name of the table followed by its prefix. CFGLINE: * @param string $whereProp The name of the database field. CFGLINE: public function joinOrWhere($whereJoin, $whereProp, $whereValue = 'DBNULL', $operator = '=', $cond = 'AND') CFGLINE: list ($concat, $varName, $operator, $val) = $join_and_cond; CFGLINE: $this->_query .= " " . $concat ." " . $varName; CFGLINE: else if ($val != 'DBNULL' || $val == '0') CFGLINE: $cols = array("id", "up", "name", "url", "icon"); CFGLINE: 'name' => $data['name'], CFGLINE: $res .= ''; PARSED host=localhost user=no pass=no db=default DB_SKIP