mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Update a few things for 2.1 CVS
git-svn-id: file:///svn/phpbb/trunk@2489 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f5b2f6067a
commit
65aa921828
6 changed files with 26 additions and 6 deletions
Binary file not shown.
|
@ -67,7 +67,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_user
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', 'RC-4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020402]');
|
||||
|
||||
/*
|
||||
-- Categories
|
||||
|
|
|
@ -60,7 +60,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_date
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.myserver.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', 'RC-4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020402]');
|
||||
|
||||
|
||||
# -- Categories
|
||||
|
|
|
@ -61,7 +61,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('record_online_date
|
|||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_name', 'www.yourdomain.tld');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('server_port', '80');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '/phpBB2/');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', 'RC-4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '.1.0 [20020402]');
|
||||
|
||||
-- Categories
|
||||
INSERT INTO phpbb_categories (cat_id, cat_title, cat_order) VALUES (1, 'Test category 1', 10);
|
||||
|
|
|
@ -13,14 +13,20 @@
|
|||
|
||||
if ( !defined('IN_PHPBB') )
|
||||
{
|
||||
die("Hacking attempt");
|
||||
die('Hacking attempt');
|
||||
}
|
||||
|
||||
//
|
||||
// Change this if your extension is not .php!
|
||||
//
|
||||
$phpEx = "php";
|
||||
$phpEx = 'php';
|
||||
|
||||
$starttime = 0;
|
||||
//
|
||||
// For debug timing
|
||||
//
|
||||
$mtime = microtime();
|
||||
$mtime = explode(' ',$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$starttime = $mtime;
|
||||
|
||||
?>
|
|
@ -47,6 +47,20 @@ $template->pparse('overall_footer');
|
|||
//
|
||||
$db->sql_close();
|
||||
|
||||
//
|
||||
// Output page creation time
|
||||
//
|
||||
$mtime = microtime();
|
||||
$mtime = explode(' ',$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$endtime = $mtime;
|
||||
$totaltime = ($endtime - $starttime);
|
||||
|
||||
$gzip_text = ($board_config['gzip_compress']) ? "GZIP compression enabled" : "GZIP compression disabled";
|
||||
$debug_mode = (DEBUG) ? " : Debug Mode" : "";
|
||||
|
||||
printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime);
|
||||
|
||||
//
|
||||
// Compress buffered output if required and send to browser
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue