Edit file File name : check_google_contacts_conn.php Content :<?php ob_start(); ini_set('max_execution_time', '36000'); ini_set('error_reporting', "E_ALL ~ E_NOTICE"); define('sugarEntry', 'index.php'); require_once('include/entryPoint.php'); require_once('include/utils/file_utils.php'); ob_start(); require_once('include/MVC/SugarApplication.php'); require_once('config.php'); if (file_exists('include/database/PearDatabase.php')) require_once('include/database/PearDatabase.php'); require_once('include/nusoap/nusoap.php'); include_once ("googlecontacts/clsParseXMLGoogle.php"); include_once ("include/TimeDate.php"); include_once ("googlecontacts/GoogleClass.php"); require_once("modules/Users/User.php"); require_once("modules/Tasks/Task.php"); require_once("modules/Administration/Administration.php"); include_once ("googlecontacts/GoogleContacts.php"); //GoogleContacts.php global $server, $sugar_config, $system_config; // $gc = new GoogleContacts($_REQUEST['uss'], $_REQUEST['pass'],""); // $resp = $gc->Login(); $gc = new GooCts(); $token= $gc->getAuthCode($_REQUEST['uss'],$_REQUEST['pass']); //echo "<br>".$token; echo "<table width=100% height=100% align=center valign=middle><tr><td align=center>"; if ($token==""){ echo "Login connection to Google: FAILED"; }else{ echo "Login connection to Google: SUCCESSFUL"; } echo "<tr><td align=center><a href=# onClick=\"window.close()\">Close window</a>"; ?>Save