vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Server Uptime (https://vborg.vbsupport.ru/showthread.php?t=40401)

Bluemann 06-28-2002 10:25 PM

Ok well im a newbie at this, i created the uptime.php and uploaded it but how do i "include" that in my footer, is there a code?

Chris M 06-28-2002 10:31 PM

PHP Code:

include("./uptime.php"); 

Assuming that uptime.php is located in the root folder...

TheWulff - Hmmm...

Try :

PHP Code:

<html>
<head>
<link rel="stylesheet" href="../cp.css">
</head>
</html>
<?PHP 

$result 
mysql_query("show status"); 
while (
$row mysql_fetch_array($result)){ 
if (
$row['Variable_name'] == "Uptime") { $uptime $row['Value']; } 

$days = ((($uptime/60)/60)/24); 
$wholeday = (int) $days
$hours = (($days $wholeday)*24); 
$wholehour = (int) $hours
$minutes = (($hours $wholehour)*60); 
$wholeminute = (int) $minutes;

echo 
"<center><font color=#FFFFFF><font size=1>"
echo 
"System Uptime: "
echo 
$wholeday " Days "
echo 
$wholehour " Hours "
echo 
$wholeminute " Minutes <br>"
echo 
"</font></font></center>"

?>

Satan

Bluemann 06-28-2002 11:06 PM

<a href="http://www.mwgclan.net/forums/" target="_blank">http://www.mwgclan.net/forums/ </a> php is in the root.php is in the root.i included your code at the bototm where it says server uptime: but it dosent work, and yes the file is in the root

Boofo 06-28-2002 11:10 PM

I am trying to put it in the Quick Stats between Server type and MySQL. I want it to display the time there.

Quote:

Originally posted by hellsatan
Just put the php in a file called "uptime.php", and upload it to your admin folder...

Satan


nuno 06-29-2002 12:01 AM

nice

nuno 06-29-2002 12:01 AM

nice

nuno 06-29-2002 12:02 AM

nice :)

TheWulff 06-29-2002 02:47 AM

hellsatan code worked this time, but still lost as to the include ? do I have to include it in phpinclude ? or copy the code above in the footer ? Thanks for the help, much apperciated.

Chris M 06-29-2002 12:30 PM

What...

You mean :
PHP Code:

include("./uptime.php"); 

That wasnt for you, it was for the person who replied after you:)

Satan

Chris M 06-29-2002 12:30 PM

What...

You mean :
PHP Code:

include("./uptime.php"); 

That wasnt for you, it was for the person who replied after you:)

Satan


All times are GMT. The time now is 08:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01092 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete