?
home/cideo/library/Zend/Gdata/App/Extension/Email.php 0000666 00000002503 15125403712 0016403 0 ustar 00 <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Gdata
* @subpackage App
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
/**
* @see Zend_Gdata_App_Extension
*/
require_once 'Zend/Gdata/App/Extension.php';
/**
* Represents the atom:email element
*
* @category Zend
* @package Zend_Gdata
* @subpackage App
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Email extends Zend_Gdata_App_Extension
{
protected $_rootElement = 'email';
public function __construct($text = null)
{
parent::__construct();
$this->_text = $text;
}
}
home/cideo/library/My/Outils/Email.php 0000666 00000001233 15125450741 0013636 0 ustar 00 <?php
Class My_Outils_Email
{
#}mail{
//affichage d'une adresse mail protegée contre les robots
static function protectedMail($email,$subject='',$body=''){
$email=explode('@',$email);
ob_start();
?>
<script type="text/javascript">
(function(){
var email=["<?=$email[0]?>","<?=$email[1]?>"].join("@");
var ret="<a href=\"mai"+"lto:"+email+"?subject=<?=$subject?>&body=<?=$body?>\">"+email+"</a>";
document.write(ret);
})();
(function(script){
script.parentNode.removeChild(script);
})(Array.prototype.slice.call(document.getElementsByTagName('script')).pop());
</script>
<?php
return ob_get_clean();
}
}
?>