Neowin Uptime Project Group


Recommended Posts

wow im just falling down the list, and BxBoy how did you get the extra stats?

EDIT: nvm i found it

<?
/*
Uptime-Project Profile XML-Parser

Version: 0.2
Date:   15.12.2003
Autor:   MeTRiX [metrix (a) uptime.0rD.net]
Support: http://uptime.0rD.net

Changelog
v0.2 15.12.2003
~ Optimierung fuer den Einsatz unter Windows
v0.1 02.08.2003
~ Erste Version


Skript ermoeglicht die Ausgabe von Uptime-Profil Daten auf beliebiger Website.
Wenn dieses Skript eingesetzt wird, bitte einen Link in Verbindung auf http://uptime.0rD.net einbringen.

WICHTIG:
Es muessen Schreibrechte auf die Temp-Datei existieren !
Bitte keine Aenderungen an der Cache-Funktion oder am Programmablauf vornehmen. Danke.
*/


// Variablendefinition ->>

// Uptime Project User-ID
$config[uid] = 1;
// (Path to) Temp-File
$config[tmp] = "uptime.dat";

// <<- Variablendefinition



// Programmablauf ->>

if(@filemtime($config[tmp]) <= time() - 3600 || @filesize($config[tmp]) == 0)
{
	$input_xml = @fopen("http://uptimedataserv.0rd.net/xml.php?uid=$config[uid]","r");
	$input = @fread($input_xml,2048);
	@fclose($input_xml);

	if($input)
	{
  $tmpfile = @fopen($config[tmp],w);
  if($tmpfile)
  {
 	 @fwrite($tmpfile,$input);
  }
  else
  {
 	 echo "Kann nicht in Temp-File schreiben. Fehlende Rechte.";
 	 exit;
  }
  @fclose($tmpfile);
	}

	unset($input,$input_xml,$tmpfile);
}

$tmpfile = @fopen($config[tmp],r);
$input = @fread($tmpfile,2048);

if($input)
{
	$parser = xml_parser_create();
	xml_parse_into_struct($parser,$input,$values);
	xml_parser_free($parser);

	$xml = array();

	foreach($values as $data)
	{
  if($data[tag] != "PROFILE")
  {
 	 $xml[strtolower($data[tag])] = $data[value];
  }
	}
}
else
{
	echo "Kann Temp-Datei $config[tmp] nicht lesen.";
	exit;
}

@fclose($tmpfile);
unset($tmpfile,$input,$parser,$values,$data);

// <<- Programmablauf


// Beispiel:
// Siehe fuer weitere Felder die XML-Datei.
echo $xml[username];
echo $xml[uptime];
?>

thats the php file u need to get the extra info on that BxBoy has i believe

Edited by TruBD

woah, almost forgot about this thread..

WTF is it calling me 'more' for - weird.

yeah, I get that too. It shows up as size|BxBoy :unsure:

let's all sneak into our universities/workplaces and install this baby on all their servers tonight :shifty:

i actually thought about that, i have access to the uni's made servers.. they have uptimes of 352+ days. ;)

You know what sucks, you can only have one uptime for each profile. That sucks, they should have the option where the user can monitor multiple uptimes (from different machines) under the same username. Because I have a lot of machines I would like to keep track of their uptimes.

wow im just falling down the list, and BxBoy how did you get the extra stats?

well, that's not what I did, I used something I wrote. But nonetheless, the ideas is similiar. I'm working on making a public server where everyone can use my script to get their stats. I will also do custom styles, so you can make your own styles (instead of using the default ones that they have). Other ideas in the works are random stat images, so instead of having just one default style, it will randomly pick the styles each time.

If anyone is interested in the project, let me know. :)

Edited by BxBoy
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I tried to get the latest secureboot certificate for my old Dell 7010 Optiplex machine.   I restored the default settings to Secure Boot. Big mistake.  Now when secure boot is on. The machine doesn't boot and complains about no booting devises.  The computer's secure boot can't find where to boot and the information apparently has to be entered manually.  Secureboot's settings are now years old and it can't find a new configuration.  What could be done here? There are plenty of files to choose from in the secureboot menu, but I don't know what to put there for each of the four Windows 11 upgraded from 10..... originally who knows what (used machine) without secureboot it booting normally  
    • I see you're still rocking that g700 mouse
    • They need to follow the standard for AAA game but they will go at lowest level for triple a game because will sell more, earn kudos and the milk it for years anyway. look how much they milked gta 5 and how they milked the original 3 - San Andreas and vice city. it is probably going to be a fun game but then they allowed someone to remake classics that somehow were more broken and worse then original i hope they don’t ###### up this one!!!
    • In addition to the "sidebar app list" and "Collections" features, Microsoft will also deprecate the "Drop" feature. Before you publish this news and credit another site, here is the original source: https://x.com/i/status/2067838711870439583 .
  • Recent Achievements

    • Dedicated
      Almohandis earned a badge
      Dedicated
    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      179
    3. 3
      PsYcHoKiLLa
      88
    4. 4
      Steven P.
      75
    5. 5
      Michael Scrip
      75
  • Tell a friend

    Love Neowin? Tell a friend!