any1 can post the code to view the site age ?
tnks 😉
if like my post click:
Started on the old forum in September 2008 · view the original in the archive · old links redirect here
any1 can post the code to view the site age ?
tnks 😉
if like my post click:
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
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:
if its in methos script why dont you download methos script and copy and paste it lol
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:
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
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 🙂
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:
exactly the way u have wrote it ????????????????????????????????????????? lol wtf?????????????????????
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ノ刀ノイリ!
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)
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
INSERT INTO ibwf_settings VALUES (9, 'siteage', 'ur no.'); its not a table its a value from ibwf_settings.... ur no. means you number ..
ibwf_settingsCREATE 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 ;
ibwf_settingsINSERT 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)
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
"; }