<?php
$key = empty($_GET['local']) ? '地方' : $_GET['local'];
$difang = array(
    '北京' => 'beijing',
    '上海' => 'shanghai',
	'广东' => 'guangdong',
	'天津' => 'tianjin',
	'浙江' => 'zhejiang',
	'福建' => 'fujian',
	'辽宁' => 'liaoning',
	'江苏' => 'jiangsu',
	'山西' => 'shanxi',
	'山东' => 'shandong',
	'重庆' => 'chongqing',
	'安徽' => 'anhui',
	'澳门' => 'aomen',
	'甘肃' => 'gansu',
	'广西' => 'guangxi',
	'贵州' => 'guizhou',
	'海南' => 'hainan',
	'黑龙江' => 'heilongjiang',
	'河南' => 'henan',
	'湖北' => 'hubei',
	'江西' => 'jiangxi',
	'吉林' => 'jilin',
	'内蒙古' => 'neimeng',
	'宁夏' => 'ningxia',
	'青海' => 'qinghai',
	'四川' => 'sichuan',
	'陕西' => 'sx',
	'台湾' => 'taiwan',
	'香港' => 'xianggang',
	'新疆' => 'index',
	'西藏' => 'xizang',
	'云南' => 'yunnan',
	'地方' => 'index',
);
$url = empty($difang[$key]) ? '/html/local/' : '/html/local/'.$difang[$key] . '.htm';
header('location:' .  $url);
?>
