blob: 7883737768b8105fecc435352f89bb79e3266f24 [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2014, 2015 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nathan Gervais (Eclipse Foundation) - Initial implementation (2007-11-07)
* Edouard Poitras (Eclipse Foundation) - Further modifications
* Christopher Guindon (Eclipse Foundation)
*******************************************************************************/
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/smartconnection.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/friends/friendsContributionsList.class.php");
require_once("functions.php");
$App = new App();
$Menu = new Menu();
include($App->getProjectCommon());
$App->preventCaching();
# Begin: page-specific settings. Change these.
$pageTitle = "Hall of Friends";
$pageKeywords = "friends of eclipse, donation, contribution";
$pageAuthor = "Christopher Guindon";
ob_start();
$start = $App->getHTTPParameter('start');
$fstart = $App->getHTTPParameter('fstart');
$bfstart = $App->getHTTPParameter('bfstart');
$pageValue = 20;
if ( (!$start) || (!preg_match('/^[0-9]+$/', $start))) {
$start = 0;
}
if ( (!$fstart) || (!preg_match('/^[0-9]+$/', $fstart))) {
$fstart = 0;
}
if ( (!$bfstart) || (!preg_match('/^[0-9]+$/', $bfstart))) {
$bfstart = 0;
}
$totalContributionsCount = getFriendsCount(TRUE, TRUE, 0);
$contributionsList = new FriendsContributionsList();
$contributionsList->selectFriendsContributionsList($start, $pageValue);
$contributions = $contributionsList->getList();
$totalFriends = getFriendsCount(FALSE, TRUE, 35);
$friendsContributions = new FriendsContributionsList();
$friendsContributions->selectFriendsContributionsList($fstart, $pageValue, 'WHERE FC.amount >= 35 and F.is_anonymous = 0');
$friends = $friendsContributions->getList();
$totalBestFriends = getFriendsCount(FALSE, TRUE, 100);
$bestFriendsContributions = new FriendsContributionsList();
$bestFriendsContributions->selectFriendsContributionsList($bfstart, $pageValue, 'WHERE FC.amount >= 100 and F.is_anonymous = 0');
$bestFriends = $bestFriendsContributions->getList();
// Place your html content in a file called content/en_pagename.php
ob_start();
include("content/en_" . $App->getScriptName());
$html = ob_get_clean();
// Custom theme variables
$variables = array();
$App->setThemeVariables($variables);
header('Content-Type: text/html; charset=utf-8;');
# Generate the web page
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="style.css" media="screen" />');
$App->generatePage("solstice", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);