-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlast_blog_post.php
58 lines (52 loc) · 1.65 KB
/
last_blog_post.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: [email protected]
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
$content = "";
$query = $DB->query("select id, id_blog, post from mkp_blog_post ORDER BY 'id' DESC LIMIT 1");
list ($id, $idb, $post) = mysql_fetch_row ($query);
$post = str_replace ("<br />", " ", $post);
$post = $this->decode_bb($post);
$post = strip_tags ($post);
$post = stripslashes($post);
$post = substr ($post, 0, 300);
$query = $DB->query("select titolo from mkp_blog where id = '$idb'");
list ($titolo) = mysql_fetch_row($query);
$content = "
<tr>
<td class=\"tdglobal\">
{$this->lang['blog_from']} <a href=\"$this->siteurl/index.php?ind=blog&op=home&idu=$idb\">$titolo</a>: <img src=\"$this->images/frec.gif\" align=\"left\" alt=\"\" /> $post ...
<a href=\"$this->siteurl/index.php?ind=blog&op=home&idu=$idb\">{$this->lang['continue']}...</a>
</td>
</tr>
";
if(!$mkportals->member['g_access_cp'] && !$this->member['g_access_blog']) {
$content = "
<tr>
<td class=\"tdblock\" align=\"center\">
{$this->lang['blog_noallow']}
</td>
</tr>
";
}
unset($post);
unset($id);
unset($idb);
unset($titolo);
unset($quey);
?>