MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-include($path_to_root."/includes/packages.inc");
+include_once($path_to_root."/includes/packages.inc");
//
// Utility class contains basic database upgrade routines.
//
if (!in_array(array($errno, $errstr, $file, $line, @$bt), $messages))
$messages[] = array($errno, $errstr, $file, $line, @$bt);
}
- else if($errno&~E_NOTICE) { // log all not displayed messages
+ else if ($errno&~E_NOTICE && $errstr != '') { // log all not displayed messages
$user = @$_SESSION["wa_current_user"]->loginname;
$context = isset($SysPrefs) && !$SysPrefs->db_ok ? '[before upgrade]' : '';
error_log(user_company() . ":$user:". basename($file) .":$line:$context $errstr");
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
include_once($path_to_root . "/includes/db/class.reflines_db.inc");
+include_once($path_to_root . "/includes/types.inc");
//---------------------------------------------------------------------------------------------
// 2.4 - further changes toward removing refs table introduced:
// . all transactions now have references stored in trans table.
}
$response = '';
-
// connect to the remote server
$fp = @fsockopen($host, $port, $errno, $errstr, $timeout );
if( !$fp ) {
while ($line = fread($fp, 4096)) {
$response .= $line;
- if ($host=='localhost' && !$unblocked++)
+ if (strpos($host,'localhost') !== false && !$unblocked++)
stream_set_blocking($fp, 0); // just after connection switch to nonblocking mode
usleep(10);
}
login_timeout();
if (!$_SESSION["wa_current_user"]->old_db)
- include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
+ include($path_to_root . '/company/'.user_company().'/installed_extensions.php');
install_hooks();