Revision: 6405 http://care2002.svn.sourceforge.net/care2002/?rev=6405&view=rev Author: robertmeggle Date: 2010-06-29 09:23:40 +0000 (Tue, 29 Jun 2010)
Log Message: ----------- translation ladezeit Modified Paths: -------------- care2x/branches/gettext/include/helpers/inc_environment_global.php care2x/branches/gettext/language/en/en_legal.htm Added Paths: ----------- care2x/branches/gettext/classes/loadtime/ care2x/branches/gettext/classes/loadtime/loadtimeclass.php Removed Paths: ------------- care2x/branches/gettext/classes/ladezeit/ care2x/branches/gettext/classes/loadtime/ladezeitclass.php Deleted: care2x/branches/gettext/classes/loadtime/ladezeitclass.php =================================================================== --- care2x/branches/gettext/classes/ladezeit/ladezeitclass.php 2010-06-28 09:23:52 UTC (rev 6384) +++ care2x/branches/gettext/classes/loadtime/ladezeitclass.php 2010-06-29 09:23:40 UTC (rev 6405) @@ -1,31 +0,0 @@ -<?php -/* G\xFCnni <guenni1981 at lycos dot de> */ -// Erstellen der neuen Klasse -class ladezeit { - // Festlegen der von der Klasse intern genutzten Variablen - var $starttime; - var $endtime; - - // Erstellen der Funktion start() - function start() { - // Microsekunden und sekundenn in Variablen speichern - list($usec, $sec) = explode(" ",microtime()); - - // Speichern des Ergebnisses in der internen Variable $starttime - $this->starttime = ((float)$usec + (float)$sec); - } - - function ende() { - list($usec, $sec) = explode(" ",microtime()); - $this->endtime = ((float)$usec + (float)$sec); - } - - function ausgabe() { - // Endzeit - Startzeit = gebrauchte ladezeit - $time = $this->endtime - $this->starttime; - - // Ausgabe des Ergebnisses - echo 'Page generation time: '.$time; - } -} -?> Copied: care2x/branches/gettext/classes/loadtime/loadtimeclass.php (from rev 6384, care2x/branches/gettext/classes/ladezeit/ladezeitclass.php) =================================================================== --- care2x/branches/gettext/classes/loadtime/loadtimeclass.php (rev 0) +++ care2x/branches/gettext/classes/loadtime/loadtimeclass.php 2010-06-29 09:23:40 UTC (rev 6405) @@ -0,0 +1,30 @@ +<?php +/* Günni <guenni1981 at lycos dot de> */ +// Create of the new class +class loadtime { + // definition of the local variables + var $starttime; + var $endtime; + + function start() { + // Microseconds and store it to a local vairable + list($usec, $sec) = explode(" ",microtime()); + + // Save the result to the internal $starttime + $this->starttime = ((float)$usec + (float)$sec); + } + + function ende() { + list($usec, $sec) = explode(" ",microtime()); + $this->endtime = ((float)$usec + (float)$sec); + } + + function ausgabe() { + // Endtime - Starttime = relative time what we want to know + $time = $this->endtime - $this->starttime; + + // Show it + echo 'Page generation time: '.$time; + } +} +?> \ No newline at end of file Modified: care2x/branches/gettext/include/helpers/inc_environment_global.php =================================================================== --- care2x/branches/gettext/include/helpers/inc_environment_global.php 2010-06-29 08:58:29 UTC (rev 6404) +++ care2x/branches/gettext/include/helpers/inc_environment_global.php 2010-06-29 09:23:40 UTC (rev 6405) @@ -120,8 +120,8 @@ # Page generation time start # if(defined('USE_PAGE_GEN_TIME')&&USE_PAGE_GEN_TIME){ - include($root_path.'classes/ladezeit/ladezeitclass.php'); - $pgt=new ladezeit(); + include($root_path.'classes/loadtime/loadtimeclass.php'); + $pgt=new loadtime(); $pgt->start(); } //echo URL_APPEND; echo URL_REDIRECT_APPEND; Modified: care2x/branches/gettext/language/en/en_legal.htm =================================================================== --- care2x/branches/gettext/language/en/en_legal.htm 2010-06-29 08:58:29 UTC (rev 6404) +++ care2x/branches/gettext/language/en/en_legal.htm 2010-06-29 09:23:40 UTC (rev 6405) @@ -127,7 +127,7 @@ <td><font face="verdana,arial" size=2>Wayne Rasband (RSB, NIMH, NIH)</td> </tr> <tr> - <td><font face="verdana,arial" size=2>LadeZeit</td> + <td><font face="verdana,arial" size=2>LadeZeit(loadtime)</td> <td><font face="verdana,arial" size=2>LGPL</td> <td><font face="verdana,arial" size=2>G\xFCnni (guenni1981(at)lycos(dot)de)</td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers