"PHP" / Говнокод #9907 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
<?
$pathinfo = pathinfo($_SERVER['REQUEST_URI']);
if ($pathinfo['extension'] == 'htm') {
    $new_url = str_replace('.htm', '.html', $_SERVER['REQUEST_URI']);
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: ' . $new_url);
    exit;
}

require_once($_SERVER["DOCUMENT_ROOT"] . "/check_url.php");
session_start();
@ignore_user_abort();
@set_time_limit(0);
$doNotRedirect = FALSE;

include ($_SERVER['DOCUMENT_ROOT'] . "/adv_cnt.inc");
include($_SERVER['DOCUMENT_ROOT'] . "/db.inc");

include("../../lang.inc");
include("../../e_hotel.inc");
include("../../lib.inc");
include("../../rooms.inc");
include("../../e_page.inc");
include("../../month.inc");
include("../../e_geo.inc");
include("../../social.inc");
include("../../review.inc");
include("../../banner.inc");
include_once '../../classes/class.DatePicker.php';

error_reporting(E_All);
ini_set('display_errors', 0);


openDB();


ini_set("include_path", ".:" . $_SERVER["DOCUMENT_ROOT"] . "/libs/PEAR");
require_once('Cache/Lite.php');


$languagecode = $_GET["languagecode"];


$hotelurl = $_GET["hotel"];


if ($hotelurl == 'xmltesthetelno1' && $_GET['debug'] != 1){
    header('HTTP/1.1 404 Not Found');
    exit;
}

$countrycode = $_GET["countrycode"];
$nearby = $_GET["nearby"];

$city_id = $_GET["city_id"];
$hotel_id = $_GET["hotel_id"];


$cityurl = $_GET["city"];

if ($languagecode == "") {
    $languagecode = "en";
}

$no_cache = FALSE;
if ($hotel_id) {
    $no_cache = TRUE;
}

Нади 1000 и 1 гавно...

Запостил: govnoacc govnoacc, (Updated )

Комментарии (3) RSS

Добавить комментарий

Где здесь C++, guest?!

    А не использовать ли нам bbcode?


    8