Nutzung der Teamseite


  • Umfrageteilnehmer
    162
dude du bist doch der einzig(st)e spammer hier :p....

so ich denk echt heut is donnerstag.... etz haben mich schon 4 leute darauf hingewiesen das heute freitag is.... amb esten fand ichs heute im büro also ich gefragt worden bin ob ich überstunden schieben will weil ich der letzte war lol....

naja also is heut nich donnerstag ich were nich mein auswertungsscript schreiben und ich werde dafür nen bierchen oder auch zwei drinken gehen.... bischen ma guggn was auf oberstufenparty abgeht....

so aber vorher werd ich erstmal noch paar klicks machen und bischen wc3 zokkn
 
oO Samy..
Ich habe dich doch schon heute morgen um 00:30Uhr oder so drauf hingewiesen, dass wir heute Freitag haben ^^
Irgendwann muss das doch mal in deinen*Kopf... :p
* kleinen
hmpf...
 
Ich hatte vorhin etwas langeweile und hab mir ein phpBild gemacht für die Forensignaturen. Hier mach ich das auf grund der Foren Regeln nicht mehr rein (sonst gibts wieder ärger wegen der größe :mrgreen:)

image.php
 
jupp wenn das seit weg is könntest du das dann auf 35 px schrumpfen oder den text oben bsichen auseinander nehmen ;)... sowas wollt ich eigentlich heute (donnerstag) ja auch basten nur heut is freitag... ;(
 
Yeah, wusel, ich will ich so ne statistik :D

PHP:
<?php 


    function readUserStats($userid)
    {
        // prepare an array to hold your stats
        $WhatPulseStats = array();
        
        // types of statistics 
        $stat_types = array("UserID", "AccountName", "Country",
                        "DateJoined", "Homepage", "LastPulse", 
                        "Pulses", "TotalKeyCount", "TotalMouseClicks",
                        "AvKeysPerPulse", "AvClicksPerPulse", 
                        "AvKPS", "AvCPS", "Rank", "TeamID", 
                        "TeamName", "TeamMembers", "TeamKeys", 
                        "TeamClicks", "TeamDescription", 
                        "TeamDateFormed", "RankInTeam", "GeneratedTime");
                        
           // init the xml parser and read the data into an array
           $data = implode("", file("https://whatpulse.org/api/users/".$userid.".xml"));
           $parser = xml_parser_create();
           xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
           xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
           xml_parse_into_struct($parser, $data, $values, $tags);
           xml_parser_free($parser);
           
           // loop through the structures
           foreach ($tags as $key => $val) 
           {
               // only process stuff between the <UserStats> tags
               if ($key == "UserStats") 
               {
                   // loop through the tags inside <UserStats>
                   $ranges = $val;
                   for ($i = 0; $i < count($ranges); $i += 2) 
                   {
                    $offset = $ranges[$i] + 1;
                    $len = $ranges[$i + 1] - $offset;
                    $statsarray = array_slice($values, $offset, $len);
                    
                    // loop through the structure of the xml tag
                    foreach($statsarray as $key => $value)
                    {
                        // match to a stats_type
                        for($i = 0; $i < count($stat_types); $i++)
                        {
                            if($value['tag'] == $stat_types[$i]) 
                            {
                                // remember the value of the stats_type
                                $type = $stat_types[$i];
                                $WhatPulseStats[$type] = $value['value'];
                            }
                        } 
                    } 
                } 
            } 
            else {
                continue;
            }
        } 
        
        return $WhatPulseStats;
    } 
$stats = array();
$stats = readUserStats(220030);  // Hier kommt deine ID rein

$TotalKeyCount        = $stats["TotalKeyCount"];
$TotalMouseClicks    = $stats["TotalMouseClicks"];
$TotalKeyCount         = number_format($TotalKeyCount,0,",",".");
$TotalMouseClicks    = number_format($TotalMouseClicks,0,",",".");

$image = imagecreatetruecolor(140, 35);

$backgr_col = imagecolorallocate($image, 238,239,239);
$border_col = imagecolorallocate($image, 208,208,208);
$text_col = imagecolorallocate($image, 46,60,31);

imagefilledrectangle($image, 0, 0, 140, 35, $backgr_col);
imagerectangle($image, 0, 0, 139, 34, $border_col);

$font = "arial.ttf";  // Im schriften Ordner von Windows zu finden

imagettftext($image, 10, 0, 10, 12, $text_col, $font, "WhatPulse Statistik");
imagettftext($image, 8, 0, 5, 22, $text_col, $font, "Mausklicks: ".$TotalMouseClicks);
imagettftext($image, 8, 0, 5, 33, $text_col, $font, "Tastaturanschäge: ".$TotalKeyCount);



header("Content-type: image/png");
imagepng($image);
imagedestroy ($image);
?>

Np :ugly:
 
Ich würde den Gutschein über die 10.000 Lose ja gerne wieder ausstellen, allerdings hab ich noch nicht mal mehr die Lose um die Gebühren zu decken. Um 0 Uhr kommen ja die Aktivitätslose, dann hau ich den Gutschein wieder raus. :biggrin:

So, nun geh ich mal ne Runde zocken und Keys sammeln.