From fe2155dd1a051872e1ded1560135ec9fa0ada395 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 30 May 2017 11:15:00 -0400 Subject: [PATCH] merges from SA --- web/includes/functions.php | 171 ++++++++++++++++++++++++++++--------- 1 file changed, 132 insertions(+), 39 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 06c3f6478..37dd33d91 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -27,13 +27,10 @@ if ( version_compare( phpversion(), '4.3.0', '<') ) { } } -require_once( 'logger.php' ); -require_once( 'database.php' ); - function userLogin( $username, $password='', $passwordHashed=false ) { global $user, $cookies; - $sql = 'select * from Users where Enabled = 1'; + $sql = 'SELECT * FROM Users WHERE Enabled = 1'; $sql_values = NULL; if ( ZM_AUTH_TYPE == 'builtin' ) { if ( $passwordHashed ) { @@ -323,9 +320,9 @@ function outputImageStream( $id, $src, $width, $height, $title='' ) { function getImageStream( $id, $src, $width, $height, $title='' ) { if ( canStreamIframe() ) { - return '