<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
{
switch ($action) {
case 'yes':
- $this->UpdateOnYes();
+ $this->UpdateOnDismiss();
pl_redirect('googleapps');
break;
}
}
- public function text()
+ public function template()
{
- return "Polytechnique.org te fournit un compte Google Apps qui te permet
- de disposer des applications web de Google (GMail, Google Calendar,
- Google Docs, et bien d'autres) sur ton adresse Polytechnique.org
- habituelle (en savoir plus).";
+ return 'reminder/gapps.tpl';
}
public function title()
{
return "Création d'un compte Google Apps";
}
+ public function info()
+ {
+ return 'Xorg/GoogleApps';
+ }
public static function IsCandidate(User &$user, $candidate)
{
require_once 'googleapps.inc.php';
$isSubscribed = GoogleAppsAccount::account_status($user->id());
+ if ($isSubscribed == 'disabled') {
+ $isSubscribed = false;
+ }
if ($isSubscribed) {
Reminder::MarkCandidateAsAccepted($user->id(), $candidate);
}