示例#1
0
文件: friends.php 项目: Klym/flame
        $user1->getUserInfo($id);
    } catch (DataException $e) {
        die(require "blocks/errorTemplate.php");
    }
} else {
    $user1 = $user;
}
$friend = new Friends($user1->id, $db);
if ($position == "requests" && empty($id)) {
    $friendsIds = $selfFriendsRequests;
} else {
    $friendsIds = $friend->getConfirmedFriends();
    $friendsCount = count($friendsIds);
}
for ($i = 0; $i < count($friendsIds); $i++) {
    $friend->getFriendInfo($friendsIds[$i]);
}
$friends = Friends::$friend;
$endings = array('г', 'га', 'зей');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<? require("blocks/scripts.php"); ?>
<title>Официальный сайт клана Пламя - Друзья пользователя <? echo $user1->login; ?></title>
</head>
<body>