| | |
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
Autor | Správa |
---|
Registrovaný: 20.05.06 Prihlásený: 16.01.07 Príspevky: 99 Témy: 23 Bydlisko: 10m od PC | |
Registrovaný: 01.05.05 Príspevky: 13348 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 22.10.2006 15:51 | |
|
WEB LAMA píše: Hladam mod aby splnal takuto funkciu ako tento http://www.pcforum.sk/footer-hack-vt7285.html ale aby ho videli iba administratori,na phpbb.sk to bolo ale no bolo... odkial vies ze to tam bolo?
Kód: ################################################################# ## Mod Title: Page generation time for Admin only ## Mod Version: 1.0.0 Final ## Author: Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com ## Description: This adds debug info at a nice place (above the ## copyright info). This Mod shows page ## generation time, queries count and GZIP compression for Admin only ## Only tested with phpBB 2.0.1 - 2.0.2 ## ## Installation Level: Easy ## Installation Time: 5 Minutes ## ## Files To Edit: 3 ## extension.inc ## includes/page_tail.php ## templates/template_XX/overall_footer.tpl ## ## Included Files: n/a ################################################################# ## ## Author Note: ## ## You should change all your templates ## ## This MOD is Copyright © Smartor, 2002 ## ## (Any changes to this MOD must retain my Copyright Notice) ## ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# ## ## Revision History: ## ## v1.0.0 ## - Initial Release and Final. ## ################################################################# ## Example Page: http://smartor.is-root.com #################################################################
# #-----[ OPEN ]------------------------------------------ # extension.inc
# #-----[ FIND ]------------------------------------------ # $starttime = 0;
# #-----[ REPLACE WITH ]---------------------------------- # /***** Disabled by Smartor ***** $starttime = 0; ***** Disabled by Smartor *****/
// Added by Smartor - BEGIN $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; // Added by Smartor - END
# #-----[ OPEN ]------------------------------------------ # includes/page_tail.php
# #-----[ FIND ]------------------------------------------ # $template->set_filenames(array( 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') );
# #-----[ AFTER, ADD ]------------------------------------ // Page generation time for Admin - BEGIN $gzip_text = ($board_config['gzip_compress']) ? "GZIP compression enabled" : "GZIP compression disabled"; $excuted_queries = $db->num_queries; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $gentime = round(($endtime - $starttime), 6); // You can adjust the number 6
if ($userdata['user_level'] == ADMIN) { $template->assign_vars(array( 'GENERATION_TIME' => $gentime, 'NUMBER_QUERIES' => $excuted_queries, 'GZIP_TEXT' => $gzip_text, ) );
$template->assign_block_vars('generation_time_switch', array() ); } // Page generation time for Admin - END
# #-----[ OPEN ]------------------------------------------ # templates/template_XX/overall_footer.tpl
# #-----[ FIND ]------------------------------------------ # <div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
# #-----[ BEFORE, ADD ]----------------------------------- # <!-- BEGIN generation_time_switch --> <br /> <table width="100%" align="center" border="0" cellpadding="3"> <tr> <td class="row1" align="center"> <span class="gensmall"> [ Page generation time: {GENERATION_TIME} seconds ] :: [ {NUMBER_QUERIES} queries excuted ] :: [ {GZIP_TEXT} ] </span> </td> </tr> </table> <br /> <!-- END generation_time_switch -->
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
Registrovaný: 20.05.06 Prihlásený: 16.01.07 Príspevky: 99 Témy: 23 Bydlisko: 10m od PC | Napísal autor témy WEB LAMA: 22.10.2006 16:29 | |
|
JanoF píše: odkial vies ze to tam bolo?
v lidli mali vestiace gule
|
|
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|