diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 21:51:32 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 21:51:32 +0000 |
| commit | 65aa92182826eb06830626df49ab7a0210b06718 (patch) | |
| tree | a45003d69eb073ca7e1086b4d73dfcb8d0cbec65 | |
| parent | f5b2f6067ae086d4b9b03e791594bc2db165e1f8 (diff) | |
| download | forums-65aa92182826eb06830626df49ab7a0210b06718.tar forums-65aa92182826eb06830626df49ab7a0210b06718.tar.gz forums-65aa92182826eb06830626df49ab7a0210b06718.tar.bz2 forums-65aa92182826eb06830626df49ab7a0210b06718.tar.xz forums-65aa92182826eb06830626df49ab7a0210b06718.zip | |
Update a few things for 2.1 CVS
git-svn-id: file:///svn/phpbb/trunk@2489 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/db/schemas/ms_access_primer.zip | bin | 50973 -> 51251 bytes | |||
| -rw-r--r-- | phpBB/db/schemas/mssql_basic.sql | 2 | ||||
| -rw-r--r-- | phpBB/db/schemas/mysql_basic.sql | 2 | ||||
| -rw-r--r-- | phpBB/db/schemas/postgres_basic.sql | 2 | ||||
| -rw-r--r-- | phpBB/extension.inc | 12 | ||||
| -rw-r--r-- | phpBB/includes/page_tail.php | 14 |
6 files changed, 26 insertions, 6 deletions
diff --git a/phpBB/db/schemas/ms_access_primer.zip b/phpBB/db/schemas/ms_access_primer.zip Binary files differindex 5665be4368..a39a45254f 100644 --- a/phpBB/db/schemas/ms_access_primer.zip +++ b/phpBB/db/schemas/ms_access_primer.zip diff --git a/phpBB/db/schemas/mssql_basic.sql b/phpBB/db/schemas/mssql_basic.sql index 61c9cc47a7..7aa37b616b 100644 --- a/phpBB/db/schemas/mssql_basic.sql +++ b/phpBB/db/schemas/mssql_basic.sql @@ -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 diff --git a/phpBB/db/schemas/mysql_basic.sql b/phpBB/db/schemas/mysql_basic.sql index 9790e62609..11f0c0744a 100644 --- a/phpBB/db/schemas/mysql_basic.sql +++ b/phpBB/db/schemas/mysql_basic.sql @@ -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 diff --git a/phpBB/db/schemas/postgres_basic.sql b/phpBB/db/schemas/postgres_basic.sql index a11ac0b1ed..895a635b3d 100644 --- a/phpBB/db/schemas/postgres_basic.sql +++ b/phpBB/db/schemas/postgres_basic.sql @@ -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); diff --git a/phpBB/extension.inc b/phpBB/extension.inc index abc99efe9c..f464692299 100644 --- a/phpBB/extension.inc +++ b/phpBB/extension.inc @@ -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; ?>
\ No newline at end of file diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index 9efc5d820d..d49195fed7 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -48,6 +48,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 // if ( $do_gzip_compress ) |
