[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_files/bbcode/ -> flash.bb (source)

   1  // USAGE: [flash=width,height]http://www.example.com/file.swf[/flash]
   2  
   3  $movie_path   = (substr($code_text,0,4) == "http") ? "http://".eregi_replace("http://", "",$code_text) : $code_text;
   4  $movie_path   = $tp -> toAttribute($movie_path);
   5  
   6  $parm_array   = explode(",",$parm);
   7  
   8  $width_type   = strpos($parm_array[0], "%") !== FALSE ? "%" : "";
   9  $height_type  = strpos($parm_array[1], "%") !== FALSE ? "%" : "";
  10  
  11  $width_value  = ereg_replace("[^0-9]","",$parm_array[0]);
  12  $height_value = ereg_replace("[^0-9]","",$parm_array[1]);
  13  
  14  $width_value  = $width_value  ? $width_value.$width_type   : "50";
  15  $height_value = $height_value ? $height_value.$height_type : "50";
  16  
  17  return "<object type='application/x-shockwave-flash' data='$movie_path' width='$width_value' height='$height_value'>
  18          <param name='movie'   value='$movie_path' />
  19          <param name='quality' value='high' />
  20          <param name='allowscriptaccess' value='samedomain' />
  21          </object>";
  22  


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7