Subversion Repositories Applications.projet

Rev

Rev 359 | Rev 407 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 359 Rev 404
Line 129... Line 129...
129
	}
129
	}
Line 130... Line 130...
130
	
130
	
131
	// TODO: Fonction à tester et compléter
131
	// TODO: Fonction à tester et compléter
132
	// Construit un index de tous les messages envoyés dans une liste donnée pour un mois
132
	// Construit un index de tous les messages envoyés dans une liste donnée pour un mois
-
 
133
	// au format YYYYMM
133
	// au format YYYYMM
134
	/* // commenté sur le serveur
134
	function build_month_list($date)
135
	function build_month_list($date)
135
	{	
136
	{	
136
		$months = array(1 => 'Jan', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug',
137
		$months = array(1 => 'Jan', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug',
Line 155... Line 156...
155
					
156
					
156
				}
157
				}
157
			}
158
			}
158
		}
159
		}
-
 
160
	}
Line 159... Line 161...
159
	}
161
	*/
160
	
162
	
161
	// build: takes one argument in the format YYYYMM and builds the thread cache file
163
	// build: takes one argument in the format YYYYMM and builds the thread cache file
162
	// for that month if the ezmlm thread file exists. The resulting cache file is then
164
	// for that month if the ezmlm thread file exists. The resulting cache file is then
Line 425... Line 427...
425
		// On ajoute la derniere annee
427
		// On ajoute la derniere annee
426
		$html .= $this->calculeCalendrierPermanent(date ('Y'));
428
		$html .= $this->calculeCalendrierPermanent(date ('Y'));
Line 427... Line 429...
427
		
429
		
428
		if ($this->isFichierCalendrierExiste()) {
430
		if ($this->isFichierCalendrierExiste()) {
429
			// S il existe mais qu il est trop vieux, il faut le recalculer
431
			// S il existe mais qu il est trop vieux, il faut le recalculer
430
		//	if ($this->isDoitRecalculerCalendrier()) {
432
		    if ($this->isDoitRecalculerCalendrier()) {
431
				$annees = $this->getAnneesARecalculer();
433
			$annees = $this->getAnneesARecalculer();
432
				$html .= $this->calculeCalendrierPermanent($annees);
434
			$html .= $this->calculeCalendrierPermanent($annees);
433
		  //  }
435
		    }
434
			$html .= file_get_contents('tmp/'.$this->listname.'.calendrier');
436
			$html .= file_get_contents('tmp/'.$this->listname.'.calendrier');
435
		} else {
437
		} else {
436
			$html .= $this->ecrireFichierCalendrier();
438
			$html .= $this->ecrireFichierCalendrier();
437
		}	
439
		}