dani 3 лет назад
Родитель
Сommit
00016442b3
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      includes/database_mysqli.php
  2. 1 1
      modules/ftp/includes/StonePhpSafeCrypt_config.php

+ 3 - 3
includes/database_mysqli.php

@@ -1163,9 +1163,10 @@ class OGPDatabaseMySQL extends OGPDatabase
 		
 		
 		try {
 		try {
 			$query = mysqli_query($this->link,$query);
 			$query = mysqli_query($this->link,$query);
-			if ($query === FALSE) {
+			if ($query === FALSE)
 				throw new Exception(mysqli_error($this->link));
 				throw new Exception(mysqli_error($this->link));
-			}
+			else 
+				++$this->queries_;
 
 
 		} catch(Exception $e) {
 		} catch(Exception $e) {
 			return FALSE;
 			return FALSE;
@@ -3896,7 +3897,6 @@ class OGPDatabaseMySQL extends OGPDatabase
 	
 	
 	public function checkApiTable()
 	public function checkApiTable()
 	{
 	{
-		//echo "<h1>PUTO " . ($this->query('SELECT 1 FROM '.$this->table_prefix.'api_tokens LIMIT 1') ? 'true' : 'false') . "</h1>";
 		if(!$this->query('SELECT 1 FROM '.$this->table_prefix.'api_tokens LIMIT 1'))
 		if(!$this->query('SELECT 1 FROM '.$this->table_prefix.'api_tokens LIMIT 1'))
 		{
 		{
 			$this->query(	"CREATE TABLE IF NOT EXISTS `".$this->table_prefix.'api_tokens'."` (".
 			$this->query(	"CREATE TABLE IF NOT EXISTS `".$this->table_prefix.'api_tokens'."` (".

+ 1 - 1
modules/ftp/includes/StonePhpSafeCrypt_config.php

@@ -33,7 +33,7 @@
   //  For obvious reasons, be careful to escape backslashes and quote marks
   //  For obvious reasons, be careful to escape backslashes and quote marks
   //  according to PHP rules.  Or, avoid them entirely.  Doesn't matter.
   //  according to PHP rules.  Or, avoid them entirely.  Doesn't matter.
 
 
-  define('DEFAULT_MD5_SALT', ''); // empty string is illegal
+  define('DEFAULT_MD5_SALT', $net2ftp_settings["md5_salt"]); // empty string is illegal
 
 
   // examples:
   // examples:
   //
   //