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