secuencia de comandos de ayuda

  • javacode
  • Born
  • Born
  • No Avatar
  • Registrado: May 02, 2009
  • Mensajes: 3
  • Status: Offline

Nota Mayo 2nd, 2009, 9:17 pm

Código Zshare

Hola chicos estoy tratando de sacar zshare videos en mi sitio web...probado muchos
sino que opera bajo el fracaso .. si alguien puede averiguarlo...He pegar un código de ejemplo...

código de ejemplo, si alguien puede averiguarlo y compartir conmigo!

Código: [ Select ]
<?php
function ValidateID($ID='')
{
return preg_match('#^[0-9a-z]{1,10}$#i',$ID);
}

$MovieID = $_REQUEST['id'];
if(ValidateID($MovieID))
{ //Only show if the ID is valid to prevent injection
?>
<iframe style='margin-top: 420px' onLoad='window.scrollTo(6,532)' src ='http://www.zshare.net/video/?v=<?php echo $MovieID; ?>' width='1000' height='1000' vspace='0' hspace='0' allowtransparency='true' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' style='border:0px;'></iframe>
<?php
}
  1. <?php
  2. function ValidateID($ID='')
  3. {
  4. return preg_match('#^[0-9a-z]{1,10}$#i',$ID);
  5. }
  6. $MovieID = $_REQUEST['id'];
  7. if(ValidateID($MovieID))
  8. { //Only show if the ID is valid to prevent injection
  9. ?>
  10. <iframe style='margin-top: 420px' onLoad='window.scrollTo(6,532)' src ='http://www.zshare.net/video/?v=<?php echo $MovieID; ?>' width='1000' height='1000' vspace='0' hspace='0' allowtransparency='true' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' style='border:0px;'></iframe>
  11. <?php
  12. }
Moderator Remark: Added [code] tags
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Mayo 2nd, 2009, 9:17 pm

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Mayo 3rd, 2009, 5:24 am

¿Tiene usted un ejemplo de lo que está pasando en la ID y como lo que usted está esperando para extraer?
I'd love to change the world, but they won't give me the source code.
  • javacode
  • Born
  • Born
  • No Avatar
  • Registrado: May 02, 2009
  • Mensajes: 3
  • Status: Offline

Nota Mayo 3rd, 2009, 5:43 am

Hi i neeed sólo una ayuda en zshare código como yo quiero jugar zshare videos en mi sitio
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Mayo 3rd, 2009, 7:10 am

Ahh, por lo que significa que usted desea conectar los videos en tu propio sitio. Creo que veo ahora.

Metí la pata con el código, lo que está tratando de hacer aquí no funciona con sitios de vídeo válido zShare. Si introduce una dirección incorrecta, zShares 404 se comporta como se espera - se carga en el iframe y se posiciona correctamente, sin embargo, cuando lo probé con una identificación real, su página rompió el iFrame.

Estas dos líneas de Javascript que incluyen en sus páginas de vídeos están haciendo cuál es su página de estallar.
JAVASCRIPT Código: [ Select ]
 
if (top != self) {
 top.location = self.location;
 
  1.  
  2. if (top != self) {
  3.  top.location = self.location;
  4.  


Usted no será capaz de cargar sus páginas en iframes. Youre que va a necesitar un enfoque diferente de la cuestión, y no soy del todo seguro de que usted puede cargar sus vídeos directamente, bien. Theres un poco peludo de theyre lógica utilizando para confundir a sus enlaces de vídeo.

EDIT: Idea de último momento - Usted podría
Código: [ Select ]
 
<html>
<head>
<title></title>
</head>
<body>
<form action="test.php" method="get">
    <input type="text" name="id" size="20" length="20" value="" />
    <br />
    <input type="submit" value="submit" />
</form>
</body>
</html>
 
  1.  
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body>
  7. <form action="test.php" method="get">
  8.     <input type="text" name="id" size="20" length="20" value="" />
  9.     <br />
  10.     <input type="submit" value="submit" />
  11. </form>
  12. </body>
  13. </html>
  14.  


Analizar y de vídeo de pantalla basados en el ID (tenga en cuenta el cambio en el patrón - todos los identificadores que vi eran 14 dígitos):
PHP Código: [ Select ]
 
<?php
 
// note that this code presumes that a host site uses the format of:
// [h]ttp://www.someVideoHostAddress.net/video/1947d20fe83a19 (14 digit/letter mix)
 
function ValidateID($ID='')
{
     return preg_match('#^[0-9a-z]{14}$#i',$ID);
}
 
$MovieID = $_REQUEST['id'];
$bool = ValidateID($MovieID);
if(ValidateID($MovieID))
{
    //pull in the source of the target video page
    $url = "http://www.someVideoHostAddress.net/video/".$MovieID;
    $stream = file_get_contents($url); 
   
    //extract the object tag from the source code
    $pattern = '/(<object[^>]*?>(?:[\s\S]*?)<\/object>)/si';
    $result = preg_match($pattern, $stream, $matches);
   
    //convert relative paths to absolute
    $out = $matches[0];
    $out = str_replace("name=\"URL\" value=\"", "name=\"URL\" value=\"http://www.someVideoHostAddress.net/", $out);
    $out = str_replace("name=\"Player\" src=\"", "name=\"Player\" src=\"http://www.someVideoHostAddress.net/", $out);
?>
<html>
<head>
<title></title>
</head>
     <body>
          <?php echo $out; ?>
     </body>
</html>
<?php
}
?>
 
  1.  
  2. <?php
  3.  
  4. // note that this code presumes that a host site uses the format of:
  5. // [h]ttp://www.someVideoHostAddress.net/video/1947d20fe83a19 (14 digit/letter mix)
  6.  
  7. function ValidateID($ID='')
  8. {
  9.      return preg_match('#^[0-9a-z]{14}$#i',$ID);
  10. }
  11.  
  12. $MovieID = $_REQUEST['id'];
  13. $bool = ValidateID($MovieID);
  14. if(ValidateID($MovieID))
  15. {
  16.     //pull in the source of the target video page
  17.     $url = "http://www.someVideoHostAddress.net/video/".$MovieID;
  18.     $stream = file_get_contents($url); 
  19.    
  20.     //extract the object tag from the source code
  21.     $pattern = '/(<object[^>]*?>(?:[\s\S]*?)<\/object>)/si';
  22.     $result = preg_match($pattern, $stream, $matches);
  23.    
  24.     //convert relative paths to absolute
  25.     $out = $matches[0];
  26.     $out = str_replace("name=\"URL\" value=\"", "name=\"URL\" value=\"http://www.someVideoHostAddress.net/", $out);
  27.     $out = str_replace("name=\"Player\" src=\"", "name=\"Player\" src=\"http://www.someVideoHostAddress.net/", $out);
  28. ?>
  29. <html>
  30. <head>
  31. <title></title>
  32. </head>
  33.      <body>
  34.           <?php echo $out; ?>
  35.      </body>
  36. </html>
  37. <?php
  38. }
  39. ?>
  40.  
I'd love to change the world, but they won't give me the source code.
  • javacode
  • Born
  • Born
  • No Avatar
  • Registrado: May 02, 2009
  • Mensajes: 3
  • Status: Offline

Nota Mayo 5th, 2009, 5:28 am

Ups Guy Hola he realizado con éxito la secuencia de comandos de zshare...! thx 4 la ayuda .. Necesito una pequeña ayuda, consulte esta URL http://alex4u.ulmb.com/zs/movies.php?ur ... 0ff58cf17/ , Como he hecho este sitio .. pero me gusta el fracaso, si este vídeo no funciona, haga click aquí para verlo, por ejemplo: algunos http://ourhostsite.com/zs/wmv.php?url = () Falta el código de ver como cuando u entrar en este sitio http://alex4u.ulmb.com/zs/movies.php?ur ... 0ff58cf17/ , U puede desplazarse hacia abajo y haga clic en cuando u Si este vídeo no funciona, haga click aquí para verlo .. u puede ver el mismo número de identificación que .. Necesito saber cómo llevarlos...!
  • thelesabre
  • Born
  • Born
  • No Avatar
  • Registrado: May 25, 2009
  • Mensajes: 1
  • Status: Offline

Nota Mayo 25th, 2009, 2:48 pm

UPSGuy He intentado utilizar el código php, pero no puedo averiguar cómo hacerlo funcionar. He añadido la URL correcta en el código php y pegar la correcta identificación de vídeo y cuando se va desde la página de su test.php una página en blanco sin código fuente. lo que estoy haciendo mal?
  • toothpick
  • Born
  • Born
  • No Avatar
  • Registrado: Jun 07, 2009
  • Mensajes: 2
  • Status: Offline

Nota Junio 7th, 2009, 9:56 pm

¿Cómo voy a usar este php?
  • toothpick
  • Born
  • Born
  • No Avatar
  • Registrado: Jun 07, 2009
  • Mensajes: 2
  • Status: Offline

Nota Junio 12th, 2009, 2:54 am

zshare cambiar su guión y esto no funcionará ya ayudar a please crack nuevo script ..

Publicar Información

  • Total de mensajes en este tema: 9 mensajes
  • Usuarios navegando por este Foro: Kurthead+1 y 134 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC