Site Age

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

18 replies · 943 views · started 18 years ago · 1 min read

6 participants
amylee Principal · 1,092 posts #2

site age? the fuck? anyways this will do simple script i use

<?php
?>

<html>
<head>
<title><?php echo $SERVER_NAME; ?> - Server Information</title>
<STYLE type=text/css>
BODY { FONT-SIZE: 8Pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
</STYLE>
</head>
<body>
<pre>
[b]System Uptime:[/b]
<?php system("uptime"); ?>

[b]Server Info:[/b]
<?php system("uname -a"); ?>

[b]Memory Usage (MB):[/b]
<?php system("free -m"); ?>

[b]Disk Usage:[/b]
<?php system("df -h"); ?>

[b]CPU Info:[/b]
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
</pre>

</body>
</html>

upload as whateverfilename.php

demo -- http://lavalair.net/info.php

sweetangel Lead · 885 posts #3

site age? the fuck? it's site uptime and its this

Uptime: <?=`uptime;`?>

I like at methos script site age.:

Site Online: 1 Year, 155 Days

this... 😉

if like my post click:

External image (may be gone)

something else Fellow · 2,296 posts #4

if its in methos script why dont you download methos script and copy and paste it lol

sweetangel Lead · 885 posts #5

here:

    $siteage = mysql_fetch_array(mysql_query("SELECT value  FROM ibwf_settings WHERE id='9'"));
    $sage = (time() - $timeadjust)-$siteage[0];
    $stage = ceil($sage/(24*60*60));
    echo "Site Age: [b]$stage Days[/b]

";

methos is my buddy 😉

if like my post click:

External image (may be gone)

something else Fellow · 2,296 posts #6

maybe add something like this in there aswell

$syear = $stage / 365; if($syear<1){ echo "Site Age: $stage Days

"; }else if($syear=="1"){ echo "Site Age: $syear year $stage Days

"; }else{ echo "Site Age: $syear years $stage Days

"; }

then again might need round() lol

something else Fellow · 2,296 posts #7

site age? the fuck? anyways this will do simple script i use

<?php
?>

<html>
<head>
<title><?php echo $SERVER_NAME; ?> - Server Information</title>
<STYLE type=text/css>
BODY { FONT-SIZE: 8Pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
</STYLE>
</head>
<body>
<pre>
System Uptime:
<?php system("uptime"); ?>

Server Info:
<?php system("uname -a"); ?>
Memory Usage (MB):
<?php system("free -m"); ?>
Disk Usage:
<?php system("df -h"); ?>
CPU Info:
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
</pre>





</body>
</html>

upload as whateverfilename.php

demo -- http://lavalair.net/info.php

😮 Thanks Amy think a code there was just what i was needing for something else 🙂

sweetangel Lead · 885 posts #8

at my ibwf_setting not have the:

INSERT INTO ibwf_settings VALUES (9, 'siteage', '1175672936');

how I can add at my old sql only this ???

if like my post click:

External image (may be gone)

something else Fellow · 2,296 posts #9

exactly the way u have wrote it ????????????????????????????????????????? lol wtf?????????????????????

BoYzONe Developer · 88 posts #10

What is the sql for this code?

BoYzONe Developer · 88 posts #11

What is the sql for this code?

metulj Super moderator Principal · 1,726 posts #12

what SQL ?? for what ??

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

ionutxp Developer · 137 posts #13

its allready posted INSERT INTO ibwf_settings VALUES (9, 'siteage', 'ur no.'); in ibwf_settings

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #14

dont know why you need to select site age from database

not unless your planning to make a script that your going to release 🙂

or you are going to use it on multiple pages ...... which is unlikely

BoYzONe Developer · 88 posts #15

INSERT INTO ibwf_settings VALUES (9, 'siteage', 'ur no.'); in ibwf_settings

i cant get it bro like this? "siteage , char or ?? 9 not null default 0" and what is "ur no."??

ionutxp Developer · 137 posts #16

INSERT INTO ibwf_settings VALUES (9, 'siteage', 'ur no.'); its not a table its a value from ibwf_settings.... ur no. means you number ..


-- -- Structura de tabel pentru tabelul ibwf_settings

CREATE TABLE ibwf_settings ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default '', value varchar(200) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

-- -- Salvarea datelor din tabel ibwf_settings

INSERT INTO ibwf_settings VALUES(1, 'sesexp', '30'); INSERT INTO ibwf_settings VALUES(2, 'Mon 31 Mar 2008 - 22:21', '80'); INSERT INTO ibwf_settings VALUES(3, '4ummsg', 'enjoy tecweb'); INSERT INTO ibwf_settings VALUES(4, 'Counter', '167339'); INSERT INTO ibwf_settings VALUES(5, 'pmaf', ''); INSERT INTO ibwf_settings VALUES(6, 'reg', '1'); INSERT INTO ibwf_settings VALUES(7, 'fview', '0'); INSERT INTO ibwf_settings VALUES(8, 'lastbpm', '2008-04-15'); INSERT INTO ibwf_settings VALUES(9, 'vldtn', '1'); INSERT INTO ibwf_settings VALUES(11, 'mlive', '0'); INSERT INTO ibwf_settings VALUES(10, 'liveaf', ''); INSERT INTO ibwf_settings VALUES(11, 'mlive', '0'); INSERT INTO ibwf_settings VALUES (12, 'siteage', '31 or what number u want');


some thing like that its at mine

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

BoYzONe Developer · 88 posts #17

Thanks mate. .I'll try it. .

BoYzONe Developer · 88 posts #18

Thanks mate. .I'll try it. .

something else Fellow · 2,296 posts #19

heres site age without database

just adjust $siteage = "1175672936"; to your site age 😛

CODE$siteage = "1175672936"; $sage = (time() - $timeadjust)-$siteage; $stage = ceil($sage/(246060)); $inca = $stage / 365; $syear = round($inca,0); if($syear<1){ echo "Site Age: $stage Days

"; }else if($syear=="1"){ echo "Site Age: $syear year $stage Days

"; }else{ echo "Site Age: $syear years $stage Days

"; }

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close