Exemplo n.º 1
0
?>
</div><div id="google_sync_text">
			<?php 
$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 '&nbsp;<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">';