public function MysqlManager() { //echo "<br>Cria mysql objeto -> Abre Conexão<br>"; MysqlManager::$host = $GLOBALS[_mysqlhost]; MysqlManager::$username = $GLOBALS[_mysqluser]; MysqlManager::$passwd = $GLOBALS[_mysqlpass]; MysqlManager::$timeout = $GLOBALS[_mysqltimeout]; if (!(MysqlManager::$connection = mysql_connect(MysqlManager::$host, MysqlManager::$username, MysqlManager::$passwd))) { return 0; } return 1; }