Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/03/2009, 22:02
Chuecko
 
Fecha de Ingreso: junio-2008
Mensajes: 119
Antigüedad: 15 años, 10 meses
Puntos: 1
Funcion utils_kexplode(), que hace?

Hola gente, estoy tratando de implementar una funcion para embeber videos y al ejecutar el siguiente script, me tira el siguiente error:

Fatal error: Call to undefined function utils_kexplode() in ....php on line 188

si alguien sabe que hace esta funcion o como implementarla les agradeceria, les dejo el codigo para que lo vean a la funcion la llama dos veces a la mitad y una por el final...

Código PHP:
                    // Function for embedding videos
                    
function do_bbcode_video($action$attr$content$params$node_object) {

                        if (
$action=='validate') {
                            return 
true;
                        }


                        
$vurl parse_url($attr['default']);

                        if (isset(
$attr['type'])) {
                            
$type $attr['type'];
                        } else {

                            
// is it http://www.MYSITE.com  or http://MYSITE.com ?
                            
$web explode('.'$vurl['host']);
                            
array_pop($web);
                            
$type = isset($web[1])? $web[1] : $web[0];

                        }

                        
$query utils_kexplode($vurl['query'], '=&');

                        
$the_url null;
                        
$others '';
                        switch (
$type) {
                            case 
'google':
                                
$the_url "http://video.google.com/googleplayer.swf?docid={$query['docid']}";
                                
$others '<param name="FlashVars" value="playerMode=embedded" />';
                                break;
                            case 
'youtube':
                                
$the_url "http://youtube.com/v/{$query['v']}";
                                break;
                            case 
'default':
                                
$the_url null;
                        }

                        if (
$the_url) {

                            
$width = isset($attr['width'])? $attr['width'] : '400';
                            
$height = isset($attr['height'])? $attr['height'] : '326';
                            
$float = isset($attr['float'])? "float: {$attr['float']}" '';


                            return
                                
'<center><object type="application/x-shockwave-flash" '.
                                
"height=\"$height\" width=\"$width\"".
                                
'style="' $float.    '" data="' .
                                
$the_url '"><param name="movie" value="' $the_url '" />'
                                
$others '</object><center>';
                        }

                        return 
'[Video no soportado]';

                    } 
Gracias