mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@23 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3fcfc52b93
commit
693d62c521
6 changed files with 58 additions and 41 deletions
|
@ -22,6 +22,9 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
$phpEx = "php";
|
$phpEx = "php";
|
||||||
|
$mtime = microtime();
|
||||||
|
$mtime = explode(" ",$mtime);
|
||||||
|
$mtime = $mtime[1] + $mtime[0];
|
||||||
|
$starttime = $mtime;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -123,7 +123,6 @@ function auth($type,
|
||||||
|
|
||||||
function get_userdata_from_id($userid, $db)
|
function get_userdata_from_id($userid, $db)
|
||||||
{
|
{
|
||||||
|
|
||||||
$sql = "SELECT * FROM ".USERS_TABLE." WHERE user_id = $userid";
|
$sql = "SELECT * FROM ".USERS_TABLE." WHERE user_id = $userid";
|
||||||
if(!$result = $db->sql_query($sql))
|
if(!$result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
'<?php
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
*
|
*
|
||||||
* -------------------
|
* -------------------
|
||||||
|
@ -23,5 +23,4 @@
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -27,12 +27,14 @@ include('template.inc');
|
||||||
include('functions/error.'.$phpEx);
|
include('functions/error.'.$phpEx);
|
||||||
include('functions/sessions.'.$phpEx);
|
include('functions/sessions.'.$phpEx);
|
||||||
include('functions/auth.'.$phpEx);
|
include('functions/auth.'.$phpEx);
|
||||||
|
include('functions/functions.'.$phpEx);
|
||||||
include('db.'.$phpEx);
|
include('db.'.$phpEx);
|
||||||
|
|
||||||
$total_users = 10;
|
$total_users = get_user_count($db, $users_table);
|
||||||
$total_posts = 55668;
|
$total_posts = get_total_posts($db, $forums_table);
|
||||||
$newest_user = "Dave";
|
$newest_userdata = get_newest_user($db, $users_table);
|
||||||
$newest_uid = 10;
|
$newest_user = $newest_userdata["username"];
|
||||||
|
$newest_uid = $newest_userdata["user_id"];
|
||||||
$users_browsing = "4 Users";
|
$users_browsing = "4 Users";
|
||||||
|
|
||||||
$pagetype = "index";
|
$pagetype = "index";
|
||||||
|
@ -75,6 +77,9 @@ if($total_rows)
|
||||||
$topics = $forum_rows[$y]["forum_topics"];
|
$topics = $forum_rows[$y]["forum_topics"];
|
||||||
$last_post = $forum_rows[$y]["forum_last_post"];
|
$last_post = $forum_rows[$y]["forum_last_post"];
|
||||||
$last_post = date($date_format, $last_post);
|
$last_post = date($date_format, $last_post);
|
||||||
|
$last_post_user = get_userdata_from_id($forum_rows[$y]["forum_last_post_uid"], $db);
|
||||||
|
|
||||||
|
$last_post = $last_post . "<br>" . $last_post_user["username"];
|
||||||
$moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">theFinn</a>";
|
$moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">theFinn</a>";
|
||||||
if($row_color == "#DDDDDD")
|
if($row_color == "#DDDDDD")
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,5 +40,14 @@ $template->set_var(array("PHPBB_VERSION" => "2.0-alpha",
|
||||||
$template->pparse("output", "overall_footer");
|
$template->pparse("output", "overall_footer");
|
||||||
|
|
||||||
// Close our DB connection.
|
// Close our DB connection.
|
||||||
$db->close();
|
$db->sql_close();
|
||||||
|
|
||||||
|
$mtime = microtime();
|
||||||
|
$mtime = explode(" ",$mtime);
|
||||||
|
$mtime = $mtime[1] + $mtime[0];
|
||||||
|
$endtime = $mtime;
|
||||||
|
$totaltime = ($endtime - $starttime);
|
||||||
|
|
||||||
|
printf("<center><font size=-2>phpBB Created this page in %f seconds.</font></center>", $totaltime);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -268,6 +268,8 @@ Backups completed ok.<P>
|
||||||
drop_column($db, "forums", "forum_moderator");
|
drop_column($db, "forums", "forum_moderator");
|
||||||
change_column($db, "forums", "forum_access", "tinyint(3)", "null");
|
change_column($db, "forums", "forum_access", "tinyint(3)", "null");
|
||||||
change_column($db, "forums", "forum_type", "tinyint(3)", "null");
|
change_column($db, "forums", "forum_type", "tinyint(3)", "null");
|
||||||
|
add_column($db, "forums", "forum_posts", "int(10)", "default '0' not null");
|
||||||
|
add_column($db, "forums", "forum_topics", "int(10)", "default '0' not null");
|
||||||
|
|
||||||
echo "Altered table forums <br>";
|
echo "Altered table forums <br>";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue