<?php
/**
* File functions:
* Show referrals link and amount of referrals
*
* @name : referrals.php
* @copyright : (C) 2004-2005 Vallheru Team based on Gamers-Fusion ver 2.5
* @author : thindil <hide@address.com>
* @version : 0.8 beta
* @since : 26.03.2005
*
*/
//
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//
$title = "Centrum Poleconych";
require_once("includes/head.php");
/**
* Get the localization for game
*/
require_once("languages/".$player -> lang."/referrals.php");
if ($player -> location != 'Altara')
{
error (ERROR);
}
$query = $db -> Execute("SELECT id FROM players WHERE refs=".$player -> id);
$ref = $query -> RecordCount();
$query -> Close();
$smarty -> assign(array("Adress" => $gameadress,
"Id" => $player -> id,
"Refs" => $ref,
"Ref1" => REF1,
"Ref2" => REF2,
"Ref3" => REF3));
$smarty -> display ('referrals.tpl');
require_once("includes/foot.php");
?>