Kodları kendi sisteminize ekleyebilirsiniz. Ancak burada tamamen phpbb sisteminden yararlanıldığını için phpbb'nin kurulu olduğu dizin ile ekleme yapacağınız phpbb dışı bir sayfa aynı sunucuda olmalıdır.
- Kod: Tümünü seç
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title>sayfa başlığı</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="author" content="Canver Software" />
</head>
<body>
<?php
/* Yazan: Sevdin Filiz
Bu kodların çalışması için phpbb sistemine göreceli olarak erişim gerekmektedir
Kullanılabilir: phpbb dizinine eşdeğer seviyedeki bir dizinde veya içiresindeki herhangi bir dizinde, phpbb dizinin bir üst seviyesinde
Kullanılamaz: phpbb'den farklı bir sunucuda çalışmaz
*/
define('IN_PHPBB', true);
$phpbb_root_path = './'; // phpbb'nin kurulu olduğu yer
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// If you don't use these stats on your index you may want to consider
// removing them
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
$newest_user = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">' . $newest_user . '</a>';
/*
echo '
toplam ileti: ' . $total_posts . '<br />
toplam üye: ' . $total_users . '<br />
son üye olan: ' . $newest_user;
*/
?>
<table border="1">
<tr>
<th>Forum İstatikleri</th>
</tr>
<tr>
<td>
<?php
echo '
toplam ileti: ' . $total_posts . '<br />
toplam üye: ' . $total_users . '<br />
son üye olan: ' . $newest_user;
?>
</td>
</tr>
</table>
</body>
</html>