diff --git a/caca-php/examples/cacainfo.php b/caca-php/examples/cacainfo.php index 7569524..51d83a5 100755 --- a/caca-php/examples/cacainfo.php +++ b/caca-php/examples/cacainfo.php @@ -1,5 +1,16 @@ #!/usr/bin/php5 + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + //--- Just for fun ---// diff --git a/caca-php/examples/cacapig.php b/caca-php/examples/cacapig.php index baa72f4..0eb9060 100755 --- a/caca-php/examples/cacapig.php +++ b/caca-php/examples/cacapig.php @@ -1,5 +1,21 @@ #!/usr/bin/php5 + * + * This file is a Php port of "cxx/cpptest.cpp" + * which is: + * Copyright (c) 2006 Jean-Yves Lamoureux + * All Rights Reserved + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + $pig_str = << + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ + $img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png"); -//$img = imagecreatefromgif(dirname(__FILE__)."/logo-caca-idx.gif"); if (!$img) die("Can not open image.\n"); diff --git a/caca-php/examples/figfont.php b/caca-php/examples/figfont.php index cd6cbb8..3da90c6 100755 --- a/caca-php/examples/figfont.php +++ b/caca-php/examples/figfont.php @@ -1,5 +1,15 @@ #!/usr/bin/php5 + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ function unistr_to_ords($str, $encoding = 'UTF-8'){ $str = mb_convert_encoding($str, "UCS-4BE", $encoding); diff --git a/caca-php/examples/polyline.php b/caca-php/examples/polyline.php index ce824c0..6b39d3d 100755 --- a/caca-php/examples/polyline.php +++ b/caca-php/examples/polyline.php @@ -1,5 +1,15 @@ #!/usr/bin/php5 + * + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ function transform($tbl, $tx, $ty, $sx, $sy) { $result = array();