<?php
/*
*/
header("content-type:text/html;charset=utf-8");
require("foundation/asession.php");
require("configuration.php");
require("includes.php");

//当前可访问的应用工具
$appArray=array(
		   "start" => 'modules/start.php',
		   "hstart" => 'modules/homestart.php',
		   "bread" => 'uiparts/bread_guide.php',
		   "blog" => 'modules/blog/blogmine.php',
		   "blog_show" => 'modules/blog/blogshow.php',
		   "blog_edit" => 'modules/blog/blogedit.php',
		   "blog_manager_sort" => 'modules/blog/blog_manager_sort.php',
		   "blog_sort" => 'modules/blog/blog_sort.php',
		   "blog_friend" => 'modules/blog/blog_friend.php',
		   "group" => 'modules/group/group_mine.php',
		   "group_creat" => 'modules/group/group_creat.php',
		   "group_hot" => 'modules/group/group_hot.php',
		   "group_manager" => 'modules/group/group_manager.php',
		   "group_member_manager" => 'modules/group/group_member_manager.php',
		   "group_info_manager" => 'modules/group/group_info_manager.php',		   
		   "group_select" => 'modules/group/group_select.php',
		   "group_space" => 'modules/group/group_space.php',
		   "group_subject" => 'modules/group/group_subject.php',
		   "search_group" => 'modules/group/search_group.php',
		   "search_subject" => 'modules/group/search_subject.php',
		   "group_sub_show" => 'modules/group/group_sub_show.php',
		   "remind_group" => 'modules/group/group_remind_member.php',
		   "mypals" => 'modules/mypals/pals_list.php',
		   "mypals_search" => 'modules/mypals/search_pals.php',
		   "mypals_search_list" => 'modules/mypals/search_pals_list.php',
		   "mypals_request" => 'modules/mypals/pals_request.php',
		   "mypals_invite" => 'modules/mypals/pals_invite.php',
		   "mypals_sort" => 'modules/mypals/pals_manager_sort.php',
		   "album_list" => 'modules/album/album_list.php',
		   "album_friend" => 'modules/album/album_friend.php',
		   "album_creat" => 'modules/album/album_creat.php',
		   "album_update" => 'modules/album/album_update.php',
		   "photo_upload" => 'modules/album/photo_upload.php',
		   "photo_list" => 'modules/album/photo_list.php',
		   "photo_view" => 'modules/album/photo_view.php',
		   "photo_update" => 'modules/album/photo_update.php',
		   "user_info" => 'modules/users/user_info.php',
		   "user_pw_change" => 'modules/users/user_pw_change.php',
		   "user_ico" => 'modules/users/user_ico.php',
		   "user_ico_select" => 'modules/album/photo_ico_select.php',
		   "user_ico_cut" => 'modules/users/user_ico_cut.php',
		   "user_archives" => 'modules/users/user_archives.php',
		   "user_integral" => 'modules/users/user_integral.php',
		   "user_hi"=>'modules/users/user_hi.php',
		   "user_dressup"=>'modules/users/user_dressup.php',
		   "all_app"=>'modules/userapp/all_app.php',
		   "add_app"=>'modules/userapp/add_app.php',
		   "mag_app"=>'modules/userapp/mag_app.php',
		   "msg_creator" => 'modules/msgscrip/creator.php',
		   "msg_minbox" => 'modules/msgscrip/minbox.php',
		   "msg_moutbox" => 'modules/msgscrip/moutbox.php',
		   "msg_rpshow" => 'modules/msgscrip/rpshow.php',
		   "msgboard" => 'modules/msgboard/msgboard.php',
		   "msgboard_more" => 'modules/msgboard/msgboard_more.php',
		   "guest" => 'modules/guest/guest.php',
		   "guest_more" => 'modules/guest/guest_more.php',
		   "friend" => 'modules/friend/friend.php',
		   "friend_all" => 'modules/friend/friend_all.php',
		   "mood" => 'modules/mood/mood.php',
		   "mood_more" => 'modules/mood/mood_more.php',
		   "mood_get_com" => 'modules/mood/mood_get_com.php',
		   "upload_form" => 'modules/pubtools/upload.form.php',
		   "recent_affair" => 'modules/recentaffair/rec_affair.php',
		   "remind" => 'modules/uiparts/remind.php',
		   "remind_message" => 'modules/uiparts/remind_message.php',
		   "refresh" => 'modules/uiparts/refresh.php',
		   "restore" => 'modules/restore/get_restore.php',
		   "share_list" => 'modules/share/share_list.php',
		   "share_friend" => 'modules/share/share_friend.php',
		   "share_show" => 'modules/share/share_show.php',
		   "privacy" => 'modules/privacy/home_access_set.php',
		   "pr_inputmess" => 'modules/privacy/home_inputmess_set.php',
		   "pr_reqcheck" => 'modules/privacy/request_check_set.php',
		   "pr_affair" => 'modules/privacy/affair_set.php',
		   "poll_mine" => 'modules/poll/poll_mine.php',
		   "poll_show" => 'modules/poll/poll_show.php',
		   "poll_send" => 'modules/poll/poll_send.php',
		   "poll_list" => 'modules/poll/poll_list.php',
		   "poll_show_config" => 'modules/poll/poll_show_config.php',
       );

$appId=getAppId();
$apptarget=$appArray[$appId];

if(isset($apptarget)){
    require($apptarget);
}
else{
	  echo 'no pages!';
}
?>
