Yêu cầuXin code xác nhận để truy cập link

4 bài đăng
21.09.2017 / 17:27
NPNpro
Bài đăng: 89
Member
Http://ketnoi127.blogspot.com

Nếu bấm vào một trang có link khác trang web thì nó chuyển đến trang xác nhận để truy cập link giống file go của johncms ý

21.09.2017 / 17:47
hanhphucao
Bài đăng: 2470
Admin
Admin là người tận tâm và luôn hành xử đúng mực.

Mở file ra phân tích :yao:

21.09.2017 / 18:23
NPNpro
Bài đăng: 89
Member
Http://ketnoi127.blogspot.com
hanhphucao đã viết

Mở file ra phân tích :yao:

Ko có file . 2g down cho lòi mồm

26.08.2019 / 12:12
quality
Bài đăng: 36
Member
NPNpro đã viết

Ko có file . 2g down cho lòi mồm

Đây :)

PHP
  1. <?php
  2.  
  3. /**
  4.  * @package JohnCMS
  5.  * @link http://johncms.com
  6.  * @copyright Copyright (C) 2008-2011 JohnCMS Community
  7.  * @license LICENSE.txt (see attached file)
  8.  * @version VERSION.txt (see attached file)
  9.  * @author http://johncms.com/about
  10.  */
  11.  
  12. define('_IN_JOHNCMS', 1);
  13.  
  14. require('incfiles/core.php');
  15.  
  16. $referer = isset($_SERVER['HTTP_REFERER']) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : core::$system_set['homeurl'];
  17. $url = isset($_REQUEST['url']) ? strip_tags(rawurldecode(trim($_REQUEST['url']))) : false;
  18.  
  19. if (isset($_GET['lng'])) {
  20. /*
  21.   -----------------------------------------------------------------
  22.   Переключатель языков
  23.   -----------------------------------------------------------------
  24.   */
  25. require('incfiles/head.php');
  26. echo '<div class="menu"><form action="' . $referer . '" method="post"><p>';
  27. if (count(core::$lng_list) > 1) {
  28. echo '<p><h3>' . $lng['language_select'] . '</h3>';
  29. foreach (core::$lng_list as $key => $val) {
  30. echo '<div><input type="radio" value="' . $key . '" name="setlng" ' . ($key == core::$lng_iso ? 'checked="checked"' : '') . '/>&#160;' .
  31. (file_exists('images/flags/' . $key . '.gif') ? '<img src="images/flags/' . $key . '.gif" alt=""/>&#160;' : '') .
  32. $val .
  33. ($key == core::$system_set['lng'] ? ' <small class="red">[' . $lng['default'] . ']</small>' : '') .
  34. '</div>';
  35. }
  36. echo '</p>';
  37. }
  38. echo '</p><p><input type="submit" name="submit" value="' . $lng['apply'] . '" /></p>' .
  39. '<p><a href="' . $referer . '">' . $lng['back'] . '</a></p></form></div>';
  40. require('incfiles/end.php');
  41. } elseif ($url) {
  42. /*
  43.   -----------------------------------------------------------------
  44.   Редирект по ссылкам в текстах, обработанным функцией tags()
  45.   -----------------------------------------------------------------
  46.   */
  47. if (isset($_POST['submit'])) {
  48. header('Location: ' . $url);
  49. } else {
  50. require('incfiles/head.php');
  51. echo '<div class="phdr"><b>' . $lng['external_link'] . '</b></div>' .
  52. '<div class="rmenu">' .
  53. '<form action="go.php?url=' . rawurlencode($url) . '" method="post">' .
  54. '<p>' . $lng['redirect_1'] . ':<br /><span class="red">' . htmlspecialchars($url) . '</span></p>' .
  55. '<p>' . $lng['redirect_2'] . '.<br />' .
  56. $lng['redirect_3'] . ' <span class="green">' . $set['homeurl'] . '</span> ' . $lng['redirect_4'] . '.</p>' .
  57. '<p><input type="submit" name="submit" value="' . $lng['redirect_5'] . '" /></p>' .
  58. '</form></div>' .
  59. '<div class="phdr"><a href="' . $referer . '">' . $lng['back'] . '</a></div>';
  60. require('incfiles/end.php');
  61. }
  62. } elseif ($id) {
  63. /*
  64.   -----------------------------------------------------------------
  65.   Редирект по рекламной ссылке
  66.   -----------------------------------------------------------------
  67.   */
  68. $req = mysql_query("SELECT * FROM `cms_ads` WHERE `id` = '$id'");
  69. if (mysql_num_rows($req)) {
  70. $res = mysql_fetch_assoc($req);
  71. $count_link = $res['count'] + 1;
  72. mysql_query("UPDATE `cms_ads` SET `count` = '$count_link' WHERE `id` = '$id'");
  73. header('Location: ' . $res['link']);
  74. } else {
  75. header("Location: http://johncms.com/index.php?act=404");
  76. }
  77. }