Error

Call to undefined function mcrypt_encrypt()

/home/sejas/bucletube.es/protected/components/Crypto.php(15)

03     var $key;
04     var $data; 
05     var $iv;
06 
07 
08     function __construct($key,$iv){ //no hace accesos externos a http//no se está utilizando
09            $this->key=$key; 
10      $this->iv=$iv;
11     }
12 
13 
14     function encriptar($data){
15         return  base64_encode  (mcrypt_encrypt( MCRYPT_BLOWFISH, $this->key, $data, MCRYPT_MODE_CBC, $this->iv ));    
16         // return  base64_encode  ($data);    
17         //return $data;
18     }
19     function desencriptar($enc){
20         return   mcrypt_decrypt( MCRYPT_BLOWFISH,$this->key, base64_decode($enc), MCRYPT_MODE_CBC, $this->iv );
21         // return   base64_decode($enc);
22         //return $enc;
23     }
24 
25 
26     function __destruct(){ 
27         //unset

Stack Trace

#0
+
 /home/sejas/bucletube.es/protected/views/layouts/main.php(170): Crypto->encriptar("8invitado:invitado:a_426RiwST8:ejecutar")
165             $key="michaelakarnikova".$salt;
166             $iv="antonios";
167             $crypto= new Crypto($key,$iv);
168 
169 
170             $params = array('v_id'=>$crypto->encriptar("8invitado:invitado:$_VIDEOID:ejecutar"),
171                               'salt'=>$salt);
172         
173          ?>
174         <?php //http://lineadecodigo.com/jquery/peticiones-ajax-con-jquery/
175             
#8
+
 /home/sejas/bucletube.es/protected/views/layouts/column1.php(7): CBaseController->endContent()
2 <div class="container">
3     <div id="content">
4         <?php echo $content; ?>
5     </div><!-- content -->
6 </div>
7 <?php $this->endContent(); ?>
#12
+
 /home/sejas/bucletube.es/protected/controllers/SiteController.php(33): CController->render("index")
28      */
29     public function actionIndex()
30     {
31         // renders the view file 'protected/views/site/index.php'
32         // using the default layout 'protected/views/layouts/main.php'
33         $this->render('index');
34     }
35 
36     /**
37      * This is the action to handle external exceptions.
38      */
2024-07-27 10:51:52 LiteSpeed Yii Framework/1.1.8