On Tue, 31 Jul 2012 07:29:33 -0300 Gustavo Sverzut Barbieri <[email protected]> said:
> On Tuesday, July 31, 2012, Enlightenment SVN wrote: > > > Log: > > web: store information about user update rate behaviour. > > > > > > Author: cedric > > Date: 2012-07-30 23:53:44 -0700 (Mon, 30 Jul 2012) > > New Revision: 74615 > > Trac: http://trac.enlightenment.org/e/changeset/74615 > > > > Modified: > > trunk/web/www/update.php > > > > Modified: trunk/web/www/update.php > > =================================================================== > > --- trunk/web/www/update.php 2012-07-31 06:04:52 UTC (rev 74614) > > +++ trunk/web/www/update.php 2012-07-31 06:53:44 UTC (rev 74615) > > @@ -3,23 +3,23 @@ > > # list of "apps" and "latest versions" > > $apps = array > > ( > > - "enlightenment" => "0.16.999.65643", > > - "eina" => "1.1.0", > > - "eet" => "1.5.0", > > - "evas" => "1.1.0", > > - "ecore" => "1.1.0", > > - "embryo" => "1.1.0", > > - "edje" => "1.1.0", > > - "eeze" => "1.1.0", > > - "e_dbus" => "1.1.0", > > - "efreet" => "1.1.0", > > - "expedite" => "1.1.0", > > - "evas_generic_loaders" => "1.1.0", > > + "enlightenment" => "0.16.999.74598", > > + "eina" => "1.2.0", > > + "eet" => "1.6.0", > > + "evas" => "1.2.0", > > + "ecore" => "1.2.0", > > + "embryo" => "1.2.0", > > + "edje" => "1.2.0", > > + "eeze" => "1.2.0", > > + "e_dbus" => "1.2.0", > > + "efreet" => "1.2.0", > > + "expedite" => "1.2.0", > > + "evas_generic_loaders" => "1.2.0", > > "evil" => "1.0.0", > > - "elementary" => "0.8.0.65643", > > - "eio" => "0.1.0.65643", > > - "ethumb" => "0.1.1.65643", > > - "emotion" => "0.2.0.65643" > > + "elementary" => "1.0.0", > > + "eio" => "1.0.0", > > + "ethumb" => "1.0.0", > > + "emotion" => "1.0.0" > > ); > > > > > > ############################################################################# > > > > @@ -73,6 +73,20 @@ > > break; > > } > > } > > + > > + $fh = fopen("/var/www/web/web/www/e17-updates", "a"); > > + if ($fh) > > + { > > + fwrite($fh, date("Y/m/d-H:i:s")); > > + fwrite($fh, " "); > > + fwrite($fh, get_ip()); > > + fwrite($fh, " "); > > + fwrite($fh, $app); > > + fwrite($fh, " "); > > + fwrite($fh, $version); > > + fwrite($fh, "\n"); > > + fclose($fh); > > + } > > > This is racy, two clients will likely mess with each other input. Proper > way is to create a single buffer, lock, write and release. that's the same code that was there... and yes - it's racy. i wrote it and didn't care at the time as i wasn't expecting enough collisions to matter. it's served its purpose tho.. gave us stats. :) > > > } > > > > ######################################################################## > > ############ update check request > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > enlightenment-svn mailing list > > [email protected] <javascript:;> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > > > > -- > Gustavo Sverzut Barbieri > http://profusion.mobi embedded systems > -------------------------------------- > MSN: [email protected] > Skype: gsbarbieri > Mobile: +55 (19) 9225-2202 > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
