Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.18 KB | None | 0 0
  1. <?php
  2. $post_defaults = array(
  3. 'author' => '1',
  4. 'published' => '1',
  5. 'categories' => '1',
  6. 'comment_info' => '1',
  7. 'updated' => '1',
  8. 'tags' => '1',
  9. 'author_box' => '0',
  10. 'post_nav' => '1',
  11. 'comments' => '1',
  12. );
  13. $post_elements = frontier_option( 'post_elements', array() );
  14. $post_elements = wp_parse_args( $post_elements, $post_defaults );
  15.  
  16. $page_defaults = array(
  17. 'author' => '0',
  18. 'published' => '0',
  19. 'comment_info' => '0',
  20. 'updated' => '0',
  21. 'author_box' => '0',
  22. 'comments' => '1',
  23. );
  24. $page_elements = frontier_option( 'page_elements', array() );
  25. $page_elements = wp_parse_args( $page_elements, $page_defaults );
  26. ?>
  27. <?php
  28. $rl = new WP_Query(
  29. array(
  30. 'posts_per_page' => 1,
  31. 'orderby' => 'rand',
  32. 'fields' => 'ids'
  33. )
  34. ); ?>
  35. <article id="post-<?php the_ID(); ?>" <?php post_class( 'single-view' ); ?> <?php frontier_schema( 'article' ); ?>>
  36. <?php do_action( 'frontier_before_single_article' ); ?>
  37.  
  38. <?php if ( is_active_sidebar( 'widgets_before_post' ) ) : ?><div id="widgets-wrap-before-post" class="cf"><?php dynamic_sidebar( 'widgets_before_post' ); ?></div><?php endif; ?>
  39.  
  40. <header class="entry-header cf">
  41. <?php do_action( 'frontier_before_single_post_header' ); ?>
  42. <h1 class="entry-title" <?php frontier_schema( 'entry-title' ); ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  43. <?php do_action( 'frontier_after_single_post_header' ); ?>
  44. </header>
  45.  
  46. <div class="entry-byline cf">
  47. <?php do_action( 'frontier_before_single_post_byline' ); ?>
  48.  
  49. <?php if ( ( is_singular(array( 'post', 'attachment' )) && $post_elements['author'] == 1 ) || ( is_page() && $page_elements['author'] == 1 ) ) : ?>
  50. <div class="entry-author author vcard" <?php frontier_schema( 'entry-author' ); ?>>
  51. <?php $frontier_post_author_url = get_the_author_meta( 'user_url' ) != '' ? get_the_author_meta( 'user_url' ) : get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>
  52. <i class="genericon genericon-user"></i><a class="url fn" href="<?php echo esc_url( $frontier_post_author_url ); ?>" <?php frontier_schema( 'author-name' ); ?>><?php the_author(); ?></a>
  53. </div>
  54. <?php endif; ?>
  55.  
  56. <?php if ( ( is_singular(array( 'post', 'attachment' )) && $post_elements['published'] == 1 ) || ( is_page() && $page_elements['published'] == 1 ) ) : ?>
  57. <div class="entry-date" <?php frontier_schema( 'entry-date' ); ?>>
  58. <i class="genericon genericon-day"></i><a class="updated" href="<?php the_permalink(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a>
  59. </div>
  60. <?php endif; ?>
  61.  
  62. <?php if ( is_singular( 'post' ) && $post_elements['categories'] == 1 ) : ?>
  63. <div class="entry-categories">
  64. <i class="genericon genericon-category"></i><?php the_category( ', ' ); ?>
  65. </div>
  66. <?php endif; ?>
  67.  
  68. <?php if ( ( ( is_singular(array( 'post', 'attachment' )) && $post_elements['comment_info'] == 1 ) || ( is_page() && $page_elements['comment_info'] == 1 ) ) && ( comments_open() || ( !comments_open() && get_comments_number() != 0 ) ) ) : ?>
  69. <div class="entry-comment-info">
  70. <i class="genericon genericon-comment"></i><a href="#comment-area"><?php comments_number( __( 'Comments', 'frontier' ), __( '1 Comment', 'frontier' ), __( '% Comments', 'frontier' ) ); ?></a>
  71. </div>
  72. <?php endif; ?>
  73.  
  74. <?php edit_post_link( __( 'Edit', 'frontier' ), '<i class="genericon genericon-edit"></i>' ); ?>
  75.  
  76. <?php do_action( 'frontier_after_single_post_byline' ); ?>
  77. </div>
  78.  
  79. <div class="entry-content cf" <?php frontier_schema( 'entry-content' ); ?>>
  80. <?php do_action( 'frontier_before_single_post_content' ); ?>
  81.  
  82. <?php if ( is_active_sidebar( 'widgets_before_post_content' ) ) : ?><div id="widgets-wrap-before-post-content" class="cf"><?php dynamic_sidebar( 'widgets_before_post_content' ); ?></div><?php endif; ?>
  83.  
  84.  
  85.  
  86.  
  87. <?php if(!empty($_POST["flurl"])) : ?>
  88. <?php
  89. $freturn = $_POST['fpret'];
  90.  
  91. $back_to_old = '<meta http-equiv="refresh" content="7;url=<?php echo $freturn; ?>" />';
  92. ?>
  93. <p><b><span style="color: #ff0000;">Your Protected Download Links will save your File and Download time increased from 10 to 20 sec so that files can be <span style="color: #ff0000;">cached in our server</span> Your Requested File Will Start Downloading In <span style="color: #ff0000;">20 Seconds.</span> If File Doesn't Start Download Automatically In 20 Seconds Then <a href="<?php echo $_POST["flurl"]; ?>">Click Here For Download your file.
  94.  
  95. <br/><br/><a href="hthttp://deloplen.com/afu.php?zoneid=2654835" target="_blank" rel="noopener"><img class="alignnone wp-image-34548 size-medium" src="http://tipsgobd.com/wp-content/uploads/2019/06/download-button1.gif" alt="Download & Watch Online" width="290" height="85" /></a><br/><br/>
  96.  
  97. </a></b></p>
  98.  
  99.  
  100.  
  101. <div class="cfmonitor"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  102. <!-- link ads -->
  103. <ins class="adsbygoogle"
  104. style="display:block"
  105. data-ad-client="ca-pub-7799674203963390"
  106. data-ad-slot="1315990176"
  107. data-ad-format="link"
  108. data-full-width-responsive="true"></ins>
  109. <script>
  110. (adsbygoogle = window.adsbygoogle || []).push({});
  111. </script></div>
  112.  
  113.  
  114. <script type="text/javascript">
  115. function Redirect()
  116. {
  117. window.location="<?php echo $_POST['flurl']; ?>";
  118. }
  119. setTimeout('Redirect()', 10000);  
  120.  
  121.  
  122. function pedirect()
  123. {
  124. window.location="<?php echo $freturn; ?>";
  125. }
  126. setTimeout('pedirect()', 18000);  
  127. </script>
  128. <?php else : ?>
  129. <?php if(isset($_POST["flurl"])) : ?>
  130. <strong><span style="color: #ff0000;">Your files in a safe way. If you can’t Download your files to your computer , please Refresh this page &amp; try again . Or you can retry after 2-3 hours later . If that time your files can’t be saved , please wait 12 hour . Our system will update this file as soon as possible .</span></strong>
  131.  
  132. <br/><br/><a href="http://deloplen.com/afu.php?zoneid=2654835" target="_blank" rel="noopener"><img class="alignnone wp-image-34548 size-medium" src="http://tipsgobd.com/wp-content/uploads/2019/06/download-button1.gif" alt="Download & Watch Online" width="290" height="85" /></a><br/><br/>
  133.  
  134. &nbsp;
  135. <br/><br/>
  136. <strong><span style="color: #3366ff;">Our New Movie Site : <a href="http://filmybd.com" target="_blank" rel="noopener">FilmyBD.Com</a></span></strong>
  137. <br/><br/>
  138. <strong><span style="color: #3366ff;">Our YouTube Channel : <a href="http://bit.ly/YTMLWBD" target="_blank" rel="noopener">MLWBD Movie Lovers World</a></span></strong><br/><br/><br/>
  139. <?php endif; ?>
  140. <?php endif; ?>
  141.  
  142.  
  143.  
  144. <?php if(!empty($_POST["fname"]) || !empty($_POST["fsize"]) || !empty($_POST["ftype"]) || !empty($_POST["furl"])) : ?>
  145.  
  146.  
  147. <?php
  148.  
  149. if(isset($_POST["source"])) {
  150. $url = $_POST["furl"];
  151. $ch = curl_init(''.$url.'');
  152. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  153. curl_setopt($ch, CURLOPT_POSTFIELDS, []);
  154. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  155. curl_setopt($ch,CURLOPT_ENCODING, '');
  156. curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  157. 'Accept: */*',
  158. 'Accept-encoding: gzip, deflate, br',
  159. 'Accept-language: en-GB,en-US;q=0.9,en;q=0.8',
  160. 'Content-length: 0',
  161. 'Content-type: application/x-www-form-urlencoded;charset=UTF-8',
  162. 'Origin: https://drive.google.com',
  163. 'Referer: https://drive.google.com/drive/my-drive',
  164. 'User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
  165. 'X-chrome-connected: id=102224796319835333482,mode=0,enable_account_consistency=false',
  166. 'X-client-data: CIa2yQEIpbbJAQipncoBCKijygEYkqPKAQ==',
  167. 'X-drive-first-party: DriveWebUi',
  168. 'X-json-requested: true',
  169. ));
  170. $result = curl_exec($ch);
  171. $object = json_decode(str_replace(')]}\'', '', $result));
  172. $pgone = $object->downloadUrl;
  173. } else {
  174. $pgone = $_POST["furl"];
  175. }
  176. ?>
  177.  
  178.  
  179.  
  180.  
  181. <p><h4><strong>Download File :</strong></h4></p>
  182. <p><b>File Name : <?php echo $_POST['fname']; ?> <?php echo $_POST['ftype']; ?></b></p><p><b>File Size : <?php echo $_POST['fsize']; ?></b></p><p>
  183.  
  184.  
  185. <br/><a href="http://deloplen.com/afu.php?zoneid=2654835" target="_blank" rel="noopener"><img class="alignnone wp-image-34548 size-medium" src="http://tipsgobd.com/wp-content/uploads/2019/06/download-button1.gif" alt="Download" width="250" height="75" /></a><br/><br/>
  186.  
  187.  
  188.  
  189.  
  190. <div class="cfmonitor"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  191. <!-- link ads -->
  192. <ins class="adsbygoogle"
  193. style="display:block"
  194. data-ad-client="ca-pub-7799674203963390"
  195. data-ad-slot="1315990176"
  196. data-ad-format="link"
  197. data-full-width-responsive="true"></ins>
  198. <script>
  199. (adsbygoogle = window.adsbygoogle || []).push({});
  200. </script></div>
  201.  
  202.  
  203. </form>
  204.  
  205.  
  206.  
  207.  
  208.  
  209. <form method="post" action="<?php echo get_permalink($rl->posts[0]); ?>">
  210. <input type="hidden" name="flurl" value="<?php echo $pgone; ?>"><input type="hidden" name="fpret" value="<?php echo $_POST['fret']; ?>"><br/><br/><br/><input type="image" src="/wp-content/uploads/2019/05/screenshot2018-09-06-12_23_11.jpg" width="80" height=35" border="0" alt="Submit" /></form>
  211.  <br/>
  212.  <br/>
  213.  <br/>
  214.  <br/>
  215.  
  216.  
  217. <?php endif; ?>
  218. <?php the_content(); ?>
  219.  
  220. <?php if ( is_active_sidebar( 'widgets_after_post_content' ) ) : ?><div id="widgets-wrap-after-post-content" class="cf"><?php dynamic_sidebar( 'widgets_after_post_content' ); ?></div><?php endif; ?>
  221.  
  222. <?php if ( is_attachment() && wp_attachment_is_image() ) : ?>
  223. <div class="attachment-nav cf">
  224. <?php $nav_image_size = apply_filters( 'frontier_prev_next_image_size', 0 ); ?>
  225. <div class="link-prev"><?php previous_image_link( $nav_image_size, __( '&#8592; Previous Image', 'frontier' ) ); ?></div>
  226. <div class="link-next"><?php next_image_link( $nav_image_size, __( 'Next Image &#8594;', 'frontier' ) ); ?></div>
  227. </div>
  228. <?php endif; ?>
  229.  
  230. <?php wp_link_pages( array(
  231. 'before' => '<div class="page-nav">' . __( '<span>Pages</span>', 'frontier' ),
  232. 'after' => '</div>',
  233. 'link_before' => '<span>',
  234. 'link_after' => '</span>',
  235. 'next_or_number' => 'number',
  236. 'nextpagelink' => __( 'Next page', 'frontier' ),
  237. 'previouspagelink' => __( 'Previous page', 'frontier' ),
  238. 'pagelink' => '%',
  239. 'echo' => 1 ) );
  240. ?>
  241.  
  242. <?php do_action( 'frontier_after_single_post_content' ); ?>
  243. </div>
  244.  
  245. <footer class="entry-footer cf">
  246. <?php do_action( 'frontier_before_single_post_footer' ); ?>
  247.  
  248. <?php if ( ( is_singular( 'post' ) && $post_elements['updated'] == 1 ) || ( is_page() && $page_elements['updated'] == 1 ) ) : ?>
  249. <div class="entry-updated updated" <?php frontier_schema( 'entry-updated' ); ?>>
  250. <?php printf( __( 'Updated: %1$s &mdash; %2$s', 'frontier' ), get_the_modified_date(), get_the_modified_time() ); ?>
  251. </div>
  252. <?php endif; ?>
  253.  
  254. <?php if ( is_singular( 'post' ) && $post_elements['tags'] == 1 ) : ?>
  255. <div class="entry-tags"><?php the_tags(); ?></div>
  256. <?php endif; ?>
  257.  
  258. <?php do_action( 'frontier_after_single_post_footer' ); ?>
  259. </footer>
  260.  
  261. <?php if ( is_active_sidebar( 'widgets_after_post' ) ) : ?><div id="widgets-wrap-after-post" class="cf"><?php dynamic_sidebar( 'widgets_after_post' ); ?></div><?php endif; ?>
  262.  
  263. <?php do_action( 'frontier_after_single_article' ); ?>
  264. </article>
  265.  
  266. <?php if ( ( is_singular( 'post' ) && $post_elements['author_box'] == 1 ) || ( is_page() && $page_elements['author_box'] == 1 ) ) : ?>
  267. <div class="author-info">
  268. <?php
  269. $frontier_author_info = '<h4 class="title">' . __( 'The Author', 'frontier' ) . '</h4>';
  270. $frontier_author_info .= '<div class="author-avatar">' . get_avatar( get_the_author_meta( 'ID' ), 64 ) . '</div>';
  271. $frontier_author_info .= '<div class="author-description"><h4>' . get_the_author_link() . '</h4>' . get_the_author_meta( 'description' ) . '</div>';
  272. echo apply_filters( 'frontier_author_info', $frontier_author_info );
  273. ?>
  274. </div>
  275. <?php endif; ?>
  276.  
  277. <?php if ( is_singular( 'post' ) && $post_elements['post_nav'] == 1 ) : ?>
  278. <div class="post-nav cf">
  279. <?php
  280. $prev_post = get_previous_post();
  281. $next_post = get_next_post();
  282. $post_nav_single = '';
  283.  
  284. if ( !empty( $prev_post ) )
  285. $post_nav_single .= '<div class="link-prev"><a href="' . get_permalink( $prev_post->ID ) . '" title="' . esc_attr( $prev_post->post_title ) . '">' . __( '&#8592; Previous Post', 'frontier' ) . '</a></div>';
  286.  
  287. if ( !empty( $next_post ) )
  288. $post_nav_single .= '<div class="link-next"><a href="' . get_permalink( $next_post->ID ) . '" title="' . esc_attr( $next_post->post_title ) . '">' . __( 'Next Post &#8594;', 'frontier' ) . '</a></div>';
  289.  
  290. echo apply_filters( 'frontier_post_nav_single', $post_nav_single );
  291. ?>
  292. </div>
  293. <?php endif; ?>
  294.  
  295. <?php if ( ( !is_page() && $post_elements['comments'] == 1 ) || ( is_page() && $page_elements['comments'] == 1 ) ) : ?>
  296. <?php do_action( 'frontier_before_comments' ); ?>
  297. <div id="comment-area"><?php comments_template(); ?></div>
  298. <?php do_action( 'frontier_after_comments' ); ?>
  299. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement