You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

126 lines
5.1 KiB

  1. <?php
  2. require_once './php_include/Config.php';
  3. require_once './php_include/class.db.inc';
  4. require_once './php_include/disney.inc';
  5. date_default_timezone_set('PRC');
  6. //DB
  7. $objDbh = new Db;
  8. $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
  9. $objDisney = new DbDisney($objDbh);
  10. $base_org_info = $objDisney->getBaseOrgInfoFromCode( $_GET["cc"] );
  11. $current_date = date("Y-m-d");
  12. if( $current_date >= "2016-09-01" ) {
  13. $_ary_old_new = array(
  14. "1" => array( "base_user_id" => 79, "base_org_id" => 51 ),
  15. "2" => false,
  16. "3" => false,
  17. "4" => array( "base_user_id" => 84, "base_org_id" => 62 ),
  18. "5" => array( "base_user_id" => 83, "base_org_id" => 61 ),
  19. "6" => array( "base_user_id" => 82, "base_org_id" => 60 ),
  20. "7" => array( "base_user_id" => 104, "base_org_id" => 52 ),
  21. "8" => array( "base_user_id" => 68, "base_org_id" => 116 ),
  22. "9" => array( "base_user_id" => 125, "base_org_id" => 53 ),
  23. "10" => false,
  24. "11" => array( "base_user_id" => 65, "base_org_id" => 55 ),
  25. "12" => false,
  26. "13" => array( "base_user_id" => 76, "base_org_id" => 98 ),
  27. "14" => false,
  28. "15" => array( "base_user_id" => 77, "base_org_id" => 114 ),
  29. "16" => array( "base_user_id" => 78, "base_org_id" => 45 ),
  30. "17" => array( "base_user_id" => 80, "base_org_id" => 46 ),
  31. "18" => array( "base_user_id" => 81, "base_org_id" => 47 ),
  32. "19" => array( "base_user_id" => 119, "base_org_id" => 56 ),
  33. "20" => array( "base_user_id" => 100, "base_org_id" => 57 ),
  34. "21" => false,
  35. "22" => array( "base_user_id" => 102, "base_org_id" => 84 ),
  36. "23" => false,
  37. "24" => array( "base_user_id" => 85, "base_org_id" => 64 ),
  38. "25" => array( "base_user_id" => 86, "base_org_id" => 65 ) /*array( "base_user_id" => 96, "base_org_id" => 113 )*/,
  39. "26" => array( "base_user_id" => 87, "base_org_id" => 66 ),
  40. "27" => array( "base_user_id" => 90, "base_org_id" => 118 ),
  41. "28" => array( "base_user_id" => 89, "base_org_id" => 67 ),
  42. "29" => array( "base_user_id" => 72, "base_org_id" => 81 ),
  43. "30" => array( "base_user_id" => 73, "base_org_id" => 68 ),
  44. "32" => array( "base_user_id" => 93, "base_org_id" => 73 ),
  45. "33" => array( "base_user_id" => 95, "base_org_id" => 112 ),
  46. "34" => array( "base_user_id" => 86, "base_org_id" => 65 ),
  47. "35" => false,
  48. "36" => array( "base_user_id" => 103, "base_org_id" => 102 ),
  49. "37" => array( "base_user_id" => 108, "base_org_id" => 78 ),
  50. "38" => array( "base_user_id" => 113, "base_org_id" => 124 ),
  51. "39" => false,
  52. "40" => array( "base_user_id" => 71, "base_org_id" => 69 ),
  53. "41" => array( "base_user_id" => 92, "base_org_id" => 58 ),
  54. "42" => false,
  55. "44" => array( "base_user_id" => 105, "base_org_id" => 49 ),
  56. "45" => array( "base_user_id" => 109, "base_org_id" => 48 ),
  57. "46" => false,
  58. "47" => array( "base_user_id" => 110, "base_org_id" => 111 ),
  59. "48" => false,
  60. "49" => false,
  61. "50" => false,
  62. "51" => false,
  63. "52" => array( "base_user_id" => 111, "base_org_id" => 87 ),
  64. "53" => false,
  65. "54" => array( "base_user_id" => 112, "base_org_id" => 89 ),
  66. "55" => array( "base_user_id" => 70, "base_org_id" => 54 ),
  67. "56" => array( "base_user_id" => 94, "base_org_id" => 92 ),
  68. "57" => array( "base_user_id" => 74, "base_org_id" => 117 ),
  69. "58" => array( "base_user_id" => 88, "base_org_id" => 99 ),
  70. "59" => false,
  71. "60" => false,
  72. "61" => false,
  73. "62" => false,
  74. "63" => false,
  75. "64" => false,
  76. "65" => false,
  77. "66" => false,
  78. "67" => false,
  79. "68" => array( "base_user_id" => 66, "base_org_id" => 38 ),
  80. "69" => array( "base_user_id" => 67, "base_org_id" => 70 ),
  81. "70" => false,
  82. "71" => false,
  83. "72" => false,
  84. "73" => false,
  85. "74" => false,
  86. "75" => false,
  87. "76" => false,
  88. "77" => false,
  89. "78" => false,
  90. "79" => array( "base_user_id" => 69, "base_org_id" => 90 ),
  91. "80" => array( "base_user_id" => 75, "base_org_id" => 96 ),
  92. "81" => array( "base_user_id" => 97, "base_org_id" => 107 ),
  93. "82" => array( "base_user_id" => 98, "base_org_id" => 108 ),
  94. "83" => false
  95. );
  96. $cs1_info = isset($_ary_old_new[$base_org_info["org_id"]]) ? $_ary_old_new[$base_org_info["org_id"]] : false;
  97. if( false == $cs1_info ) {
  98. echo "";exit();
  99. $user_id = 46;
  100. $top_org_id = 39;
  101. } else {
  102. $user_id = $cs1_info["base_user_id"];
  103. $top_org_id = $cs1_info["base_org_id"];
  104. }
  105. $base_url = "http://sfx.zhizhuchuxing.com/wchat_fx/login2.html?user_id={$user_id}&top_org_id={$top_org_id}&login_type=1";
  106. header("Location:".$base_url);
  107. exit();
  108. }
  109. if( $base_org_info["org_id"] == 43 ) {
  110. echo "";
  111. exit();
  112. }
  113. if( $base_org_info["sell_type"] == 0 ) {
  114. header("Location:./disneydetial2/list.php?cc=".$_GET["cc"]);exit();
  115. } else {
  116. header("Location:./disneydetial2/list_qdh.php?cc=".$_GET["cc"]);exit();
  117. }
  118. exit();
  119. ?>