Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] Źle pokazuje strone
Forum PHP.pl > Forum > Przedszkole
metis
Witam. Mam problem. chciałem wysłać na strone rapidleech link i zobaczyć postęp downloadu. ale wyskakują błędy.

Oto kod.
  1. <?php
  2.  
  3. function lacz($strona, $referer, $plik, $post=false) {
  4. $przegladarka = 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9) Gecko/2008061015 Firefox/3.0';
  5. $naglowki = array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  6. 'Accept-Language: pl,en-us;q=0.7,en;q=0.3',
  7. 'Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7');
  8.  
  9. $link = curl_init();
  10. curl_setopt($link, CURLOPT_HEADER, 0);
  11. curl_setopt($link, CURLOPT_URL, $strona);
  12. curl_setopt($link, CURLOPT_USERAGENT, $przegladarka);
  13. curl_setopt($link, CURLOPT_HTTPHEADER, $naglowki);
  14. curl_setopt($link, CURLOPT_ENCODING, 'gzip');
  15. curl_setopt($link, CURLOPT_ENCODING, 'deflate');
  16. if ($post) {
  17. curl_setopt($link, CURLOPT_POST, 1);
  18. curl_setopt($link, CURLOPT_POSTFIELDS, $post);
  19. }
  20. curl_setopt($link, CURLOPT_COOKIEFILE, $plik);
  21. curl_setopt($link, CURLOPT_COOKIEJAR, $plik);
  22. $strona = curl_exec($link);
  23. curl_close($link);
  24. return $strona;
  25. }
  26.  
  27. $plik = 'cookie.txt';
  28.  
  29. echo lacz('http://foxl33ch.co.cc/', 'http://foxl33ch.co.cc/', $plik, urlencode('link').'='.urlencode('http://www.filesonic.com/file/1513729931/Jug.the.Bro.part2.rar'));
  30.  
  31. ?>
  32.  


KOD HTML.
  1. <form action="/index.php" name="transload" method="post">
  2. <table class="tab-content" id="tb1" cellspacing="5" width="100%">
  3. <tr>
  4. <td align="left">
  5. <b>Link to Transload:</b><br>&nbsp;<input type="text" name="link" id="link" size="50"><br><br>
  6. <b>Referrer:</b><br>&nbsp;<input type="text" name="referer" id="referer" size="50">
  7. </td>
  8. <td align="center">
  9. <input value="Transload File" type="submit">
  10. </td>
  11. </tr>
  12. <tr>
  13. <td align="left"><input type="checkbox" name="user_pass" onclick="java script:var displ=this.checked?'':'none';document.getElementById('usernpass').style.display=displ;" value="on">&nbsp;User &amp; Pass (HTTP/FTP)</td>
  14. </tr>
  15. <tr id="usernpass" style="display: none;">
  16. <td align="center">
  17. User: <input type="text" name="iuser" value=""><br>
  18. Pass: <input type="text" name="ipass" value="">
  19. </td>
  20. </tr>
  21. <tr>
  22. <td align="left"><input type="checkbox" name="add_comment" onclick="java script:var displ=this.checked?'':'none';document.getElementById('comment').style.display=displ;">&nbsp;Add Comments</td>
  23. </tr>
  24. <tr id="comment" style="display: none;">
  25. <td>
  26. <textarea name="comment" rows="4" cols="50"></textarea>
  27. </td>
  28. </tr>
  29. <tr><td>&nbsp;</td></tr>
  30. <tr>
  31. <td align="left">
  32. <small style="color:#55bbff">PluginOptions:</small><hr>
  33. <label><input type="checkbox" name="dis_plug">&nbsp;<small>Disable All Plugins</small></label>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td align="left">
  38. <label><input type="checkbox" name="ytube_mp4" onclick="java script:var displ=this.checked?'':'none';document.getElementById('ytubeopt').style.display=displ;">&nbsp;<small>YouTube Video Format Selector</small></label>
  39. <table width="150" border="0" id="ytubeopt" style="display: none;">
  40. <td colspan="2" style="white-space: nowrap;"><input type="checkbox" name="ytdirect"><small>&nbsp;Direct Link</small></td>
  41. </tr>
  42. <tr>
  43. <td align="left"><small>&amp;fmt=</small></td>
  44. <td align="left">
  45. <select name="yt_fmt" id="yt_fmt">
  46. <option value="highest" selected="selected">Auto-get the highest quality format available</option>
  47. <option value="0">0 [Video: FLV H263 251kbps 320x180 @ 29.896fps | Audio: MP3 64kbps 1ch @ 22.05kHz]</option>
  48. <option value="5">5 [Video: FLV H263 251kbps 320x180 @ 29.885fps | Audio: MP3 64kbps 1ch @ 22.05kHz]</option>
  49. <option value="6">6 [Video: FLV H263 892kbps 480x270 @ 29.887fps | Audio: MP3 96kbps 1ch @ 44.10kHz]</option>
  50. <option value="13">13 [Video: 3GP H263 77kbps 176x144 @ 15.000fps | Audio: AMR 13kbps 1ch @ 8.000kHz]</option>
  51. <option value="17">17 [Video: 3GP XVID 55kbps 176x144 @ 12.000fps | Audio: AAC 29kbps 1ch @ 22.05kHz]</option>
  52. <option value="18">18 [Video: MP4 H264 505kbps 480x270 @ 29.886fps | Audio: AAC 125kbps 2ch @ 44.10kHz]</option>
  53. <option value="22">22 [Video: MP4 H264 2001kbps 1280x720 @ 29.918fps | Audio: AAC 198kbps 2ch @ 44.10kHz]</option>
  54. <option value="34">34 [Video: FLV H264 256kbps 320x180 @ 29.906fps | Audio: AAC 62kbps 2ch @ 22.05kHz]</option>
  55. <option value="35">35 [Video: FLV H264 831kbps 640x360 @ 29.942fps | Audio: AAC 107kbps 2ch @ 44.10kHz]</option>
  56. <option value="37">37 [Video: MP4 1920×1080 | Audio: AAC 2ch 44.10kHz]</option>
  57.  
  58. </td>
  59. </tr>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td align="left"><label><input type="checkbox" name="imageshack_tor" id="imageshack_tor" onclick="java script:var displ=this.checked?'':'none';document.getElementById('torpremiumblock').style.display=displ;">&nbsp;<small>ImageShackŸ TorrentService</small></label><table width="150" border="0" id="torpremiumblock" style="display: none;">
  64. <tbody><tr><td>Username:&nbsp;</td><td><input type="text" name="tor_user" id="tor_user" size="15" value=""></td></tr>
  65. <tr><td>Password:&nbsp;</td><td><input type="password" name="tor_pass" id="tor_pass" size="15" value=""></td></tr>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td align="left">
  70. <label><input type="checkbox" name="mu_acc" onclick="java script:var displ=this.checked?'':'none';document.getElementById('mupremiumblock').style.display=displ;">&nbsp;<small>Megaupload.com Cookie Value</small></label>
  71. <table width="150" border="0" id="mupremiumblock" style="display: none;">
  72. <tbody><tr><td>user=</td><td><input type="text" name="mu_cookie" id="mu_cookie" size="25" value=""></td></tr>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td align="left">
  77. <label><input type="checkbox" name="vBulletin_plug">&nbsp;<small>Use vBulletin Plugin</small></label>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td align="left">
  82. <label><input type="checkbox" name="cookieuse" onclick="java script:var displ=this.checked?'':'none';document.getElementById('cookieblock').style.display=displ;">&nbsp;<small>Additional Cookie Value</small></label>
  83. <table width="150" border="0" id="cookieblock" style="display: none;">
  84. <tbody><tr><td>Key=Value;</td><td><input type="text" name="cookie" id="cookie" size="25" value=""></td></tr>
  85. </td>
  86. </tr>
  87. <table class="hide-table" id="tb2" cellspacing="5" width="100%">
  88. <tr>
  89. <td align="center">
  90. <table align="center" style="text-align: justify;">
  91. <td><input type="checkbox" name="domail" id="domail" onclick="document.getElementById('emailtd').style.display=document.getElementById('splittd').style.display=this.checked?'':'none';document.getElementById('methodtd').style.display=(document.getElementById('splitchkbox').checked ? (this.checked ? '' : 'none') : 'none');">&nbsp;Send File to Email</td>
  92. <td>&nbsp;</td>
  93. <td id="emailtd" style="display: none;">Email:&nbsp;<input type="text" name="email" id="email"></td>
  94. </tr>
  95. <tr>
  96. <td></td>
  97. </tr>
  98. <tr id="splittd" style="display: none;">
  99. <td>
  100. <input id="splitchkbox" type="checkbox" name="split" onclick="java script:var displ=this.checked?'':'none';document.getElementById('methodtd').style.display=displ;">&nbsp;Split Files</td>
  101. <td>&nbsp;</td>
  102. <td id="methodtd" style="display: none;">
  103. <td>Method:&nbsp;<select name="method"><option value="tc">Total Commander</option><option value="rfc">RFC 2046</option></select></td>
  104. </tr>
  105. <tr>
  106. <td>Parts Size:&nbsp;<input type="text" name="partSize" size="2" value="10">&nbsp;MB</td>
  107. </tr>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td><input type="checkbox" id="useproxy" name="useproxy" onclick="java script:var displ=this.checked?'':'none';document.getElementById('proxy').style.display=displ;">&nbsp;Use Proxy Settings</td>
  112. <td>&nbsp;</td>
  113. <td id="proxy" style="display: none;">
  114. <table width="150" border="0">
  115. <tbody><tr><td>Proxy:&nbsp;</td><td><input type="text" name="proxy" id="proxyproxy" size="20"></td></tr>
  116. <tr><td>Username:&nbsp;</td><td><input type="text" name="proxyuser" id="proxyuser" size="20"></td></tr>
  117. <tr><td>Password:&nbsp;</td><td><input type="text" name="proxypass" id="proxypass" size="20"></td></tr>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td></td>
  122. </tr>
  123. <tr>
  124. <td><input type="checkbox" name="premium_acc" id="premium_acc" onclick="java script:var displ=this.checked?'':'none';document.getElementById('premiumblock').style.display=displ;" checked="checked">&nbsp;Use Premium Account</td>
  125. <td>&nbsp;</td>
  126. <td id="premiumblock" style="display: none;">
  127. <table width="150" border="0">
  128. <tbody><tr><td>Username:&nbsp;</td><td><input type="text" name="premium_user" id="premium_user" size="15" value=""></td></tr>
  129. <tr><td>Password:&nbsp;</td><td><input type="password" name="premium_pass" id="premium_pass" size="15" value=""></td></tr>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td></td>
  134. </tr>
  135. <tr style="display:none;">
  136. <td><input type="checkbox" name="saveto" id="saveto" onclick="java script:var displ=this.checked?'':'none';document.getElementById('path').style.display=displ;">&nbsp;Save To</td>
  137. <td>&nbsp;</td>
  138. <td id="path" style="display: none;">Path:&nbsp;<input type="text" name="path" size="40" value="/var/www/html/files"></td>
  139. </tr>
  140. <tr>
  141. <td></td>
  142. </tr>
  143. <tr>
  144. <td><input type="checkbox" name="savesettings" id="savesettings" onclick="java script:var displ=this.checked?'':'none';document.getElementById('clearsettings').style.display=displ;">&nbsp;Save Settings</td>
  145. <td>&nbsp;</td>
  146. <td id="clearsettings" style="display: none;"><a href="java script:clearSettings();">Clear Current Settings</a></td>
  147. </tr>
  148. </td>
  149. </tr>
  150. </form>
CuteOne
.................... a z łaski swojej podasz jakie to błędy?
metis
Strona zamiast pokazywać pasek(stronę) downloadu to pokazuje coś takiego


Konto premium jest wpisane w stronę.
Oto ta strona : http://foxl33ch.co.cc/
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.