$GoogleSync4You = new GoogleSync4You(); $have_access_data = $GoogleSync4You->setAccessDataForUser($current_user->id); if ($have_access_data) { $GoogleSync4You->connectToGoogle(); } if (!$GoogleSync4You->isLogged()) { echo $GoogleSync4You->getStatus(); } else { echo $mod_strings["LBL_CONNECTING_WORK_CORRECT"]; } $google_login = $GoogleSync4You->getclientsecret(); $google_apikey = $GoogleSync4You->getAPI(); $google_keyfile = $GoogleSync4You->getkeyfile(); $google_clientid = $GoogleSync4You->getclientid(); $google_refresh = $GoogleSync4You->getrefreshtoken(); $googleinsert = $GoogleSync4You->getgoogleinsert(); if ($googleinsert == 1) { $checked = 'checked'; } ?> </div><br> <?php if (is_admin($current_user)) { if ($google_login != '') { echo "<div id='google_account_info_div'>"; echo getTranslatedString("LBL_GOOGLECLIENTSECRET", "Calendar4You") . ":"; echo $google_login; echo ' <input title="' . $mod_strings["LBL_SET_ACCESS_DATA"] . '" class="crmButton password small" language="javascript" onclick="changeGoogleAccount();" name="change_google_user" value="' . $mod_strings["LBL_CHANGE_GOOGLE_ACCOUNT"] . '" type="button">'; echo "</div>"; $update_google_account = 0; echo "<div id='google_account_change_div' style='display:none'>";