ya encontre las YY, estan en esta parte del codigo, pero es cuando esta en el servidor linux, en windows funciona perfecto
Código PHP:
<?php
class auth{
// CHANGE THESE VALUES TO REFLECT YOUR SERVER'S SETTINGS
var $HOST = "172.78.14.1"; // Change this to the proper DB HOST
var $USERNAME = "root"; // Change this to the proper DB USERNAME
var $PASSWORD = ""; // Change this to the proper DB USER PASSWORD
var $DBNAME = "prueba"; // Change this to the proper DB NAME
// AUTHENTICATE
function authenticate($username, $password,$ip) {
$query = "SELECT * FROM authuser WHERE uname='$username' AND passwd=MD5('$password') AND team = 'Clientes' AND status <> 'inactive'";
$UpdateRecords = "UPDATE authuser SET lastlogin = NOW(), logincount = logincount + 1,ip='$ip' WHERE uname='$username'";
$InsertLog="insert into authlog values('','$username',NOW(),'$ip')";
$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD) or die("XX");
$SelectedDB = mysql_select_db($this->DBNAME) or die("YY");
$result = mysql_query($query) or die("ZZ");
$numrows = mysql_num_rows($result);
$row = mysql_fetch_array($result);