[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/services/images/ -> pixel.php (source)

   1  <?php
   2  /**
   3   * $Horde: horde/services/images/pixel.php,v 1.14.10.3 2006/01/01 21:29:14 jan Exp $
   4   *
   5   * Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>
   6   *
   7   * See the enclosed file COPYING for license information (LGPL).  If you
   8   * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
   9   */
  10  
  11  @define('HORDE_BASE', dirname(__FILE__) . '/../..');
  12  require_once  HORDE_BASE . '/lib/core.php';
  13  
  14  header('Content-type: image/gif');
  15  header('Expires: Wed, 21 Aug 1969 11:11:11 GMT');
  16  header('Cache-Control: no-cache');
  17  header('Cache-Control: must-revalidate');
  18  
  19  $rgb = str_replace('#', '', Util::getFormData('c'));
  20  
  21  $r = hexdec(substr($rgb, 0, 2));
  22  $g = hexdec(substr($rgb, 2, 2));
  23  $b = hexdec(substr($rgb, 4, 2));
  24  
  25  if ($rgb) {
  26      printf('%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c',
  27             71,73,70,56,57,97,1,0,1,0,128,0,0,$r,$g,$b,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59);
  28  } else {
  29      printf('%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%',
  30             71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59);
  31  }


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7