-
Notifications
You must be signed in to change notification settings - Fork 17
/
link.php
32 lines (31 loc) · 1.32 KB
/
link.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// Ricardo Galli <gallir at uib dot es> and
// Beldar <beldar.cat at gmail dot com>
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
// http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".
// The code below was made by Beldar <beldar at gmail dot com>
if (! defined('mnmpath')) {
require_once __DIR__ . '/../config.php';
header('Content-Type: text/html; charset=utf-8');
stats_increment('ajax');
}
if (empty($_GET['id'])) {
die;
}
$id = intval($_GET['id']);
$link = new Link;
$link->id=$id;
$link->read();
if (!$link->read) {
die;
}
echo '<div style="font-size:8.5pt;width:250px; margin-right:15px">';
if ($link->avatar) {
echo '<img src="'.get_avatar_url($link->author, $link->avatar, 40).'" width="40" height="40" alt="avatar" style="float:left; margin: 0 5px 4px 0;"/>';
}
echo '<a href="'.$link->get_permalink().'" target="_blank"><strong>'.$link->title.'</strong></a><br clear="all"/>';
echo $link->meta_name.', '.$link->category_name.' | '._('comentarios').': '.$link->comments.' | karma: '. intval($link->karma). ' | '._('negativos').': '. $link->negatives;
echo '</div>';