📄 systemgame.qg.php
字号:
<?php
#[判断权限]
if($_SESSION["admin"]["typer"] != "system"&& !$QG_AP["sysset"])
{
Error("对不起,您没有权限操作当前功能","admin.php?file=index");
}
if($sysAct == "set")
{
include_once("game/configs/Configs.php");
Foot("systemgame.qg");
}
elseif($sysAct == "setok")
{
$msga = $STR->safea($_POST);
$countfile="game/configs/Configs.php";
$fp=fopen($countfile,"w");
$msg="<?php\n";
$msg.="\$protect_date=\"".$msga[protect_date]."\";\n";
$msg.="\$speed_percent=\"".$msga[speed_percent]."\";\n";
$msg.="\$resource_percent=\"".$msga[resource_percent]."\";\n";
$msg.="\$building_max_grade=\"".$msga[building_max_grade]."\";\n";
$msg.="\$rices=\"".$msga[rices]."\";\n";
$msg.="\$ores=\"".$msga[ores]."\";\n";
$msg.="\$golds=\"".$msga[golds]."\";\n";
$msg.="\$woods=\"".$msga[woods]."\";\n";
$msg.="\$free_house_init=\"".$msga[free_house_init]."\";\n";
$msg.="\$rices_uplimit=\"".$msga[rices_uplimit]."\";\n";
$msg.="\$irons_uplimit=\"".$msga[irons_uplimit]."\";\n";
$msg.="\$woods_uplimit=\"".$msga[woods_uplimit]."\";\n";
$msg.="\$golds_uplimit=\"".$msga[golds_uplimit]."\";\n";
$msg.="\$total_house_init=\"".$msga[total_house_init]."\";\n";
$msg.="\$total_stores_init=\"".$msga[total_stores_init]."\";\n";
$msg.="\$b_cutting=".($msga[b_cutting]-1).";\n";
$msg.="\$b_iron_ore=".($msga[b_iron_ore]-1).";\n";
$msg.="\$b_farm=".($msga[b_farm]-1).";\n";
$msg.="\$b_gold_ore=".($msga[b_gold_ore]-1).";\n";
$msg.="\$b_house=".($msga[b_house]-1).";\n";
$msg.="\$b_store=".($msga[b_store]-1).";\n";
$msg.="\$b_city_upgrade=".($msga[b_city_upgrade]-1).";\n";
$msg.="\$b_soldiers=".($msga[b_soldiers]-1).";\n";
$msg.="\$b_pub=".($msga[b_pub]-1).";\n";
$msg.="\$b_college=".($msga[b_college]-1).";\n";
$msg.="\$golding_grow_num=\"".$msga[golding_grow_num]."\";\n";
$msg.="\$warming_grow_num=\"".$msga[warming_grow_num]."\";\n";
$msg.="\$cutting_grow_num=\"".$msga[cutting_grow_num]."\";\n";
$msg.="\$ironing_grow_num=\"".$msga[ironing_grow_num]."\";\n";
$msg.="\$soldier_eat_rice=\"".$msga[soldier_eat_rice]."\";\n";
$msg.="\$cashmoney_start_times=mktime(0,0,0,6,8,2008);
\$cashmoney_end_times=mktime(23,59,59,6,9,2008);
\$rand_passcode1='ob';\$rand_passcode2=0.49;\$rand_time=600;
\$keys=\"@9^d&Dsd923_SL@\";
\$server_ip=\"192.168.1.103\";
\$domain_com=\"localhost\";\$domain_cn=\"localhost\";
\$cookie_times=30*24*60*60;
\$UserId=\$_COOKIE['UserId'];
\$CityId=\$_COOKIE['CityId'];
\$login_md5_chars=\"@ilovewebgame@\";
\$country_name=array(\"魏国\"=>\"1\",\"蜀国\"=>\"2\",\"吴国\"=>\"3\");\$country_num=array(\"1\"=>\"魏国\",\"2\"=>\"蜀国\",\"3\"=>\"吴国\");
\$player_head_img=array(\"头像1\"=>\"1\",\"头像2\"=>\"2\",\"头像3\"=>\"3\");
\$player_head_img_num=rand(1,count(\$player_head_img));
\$player_head_info=array(\"1\"=>\"法师\",\"2\"=>\"剑客\",\"3\"=>\"刀客\");
\$player_headerimg_path=\"../img/header_img/\";
\$player_img_num=3;
\$p_score=0;
\$officer_name=array(\"1\"=>\"1级\",\"2\"=>\"2级\",\"3\"=>\"3级\",\"4\"=>\"4级\",\"5\"=>\"5级\",\"6\"=>\"6级\",\"7\"=>\"7级\",\"8\"=>\"8级\",\"9\"=>\"9级\",\"10\"=>\"10级\");
\$officer_wei=array(\"1\"=>\"豫州侯\",\"2\"=>\"魏国公\",\"3\"=>\"洛阳王\");\$officer_shu=array(\"1\"=>\"益州侯\",\"2\"=>\"蜀国公\",\"3\"=>\"汉中王\");
\$officer_wu=array(\"1\"=>\"荆州侯\",\"2\"=>\"吴国公\",\"3\"=>\"襄阳王\");
\$area_min=1;\$area_max=140;
\$area_x_min=1;\$area_x_max=140;
\$area_y_min=1;\$area_y_max=140;
\$default_city_pic=array(\"1\"=>\"level_pic1.gif\",\"2\"=>\"2.gif\");
\$city_size=200;
\$city_land_type_name=array(\"1\"=>\"平原\",\"2\"=>\"沃土\",\"3\"=>\"森林\",\"4\"=>\"山岳\",\"5\"=>\"丘陵\");
\$land_add_produce=array(\"1\"=>\"所有资源增产2%\",\"2\"=>\"粮食增产6%\",\"3\"=>\"木材增产6%\",\"4\"=>\"铁矿增产6%\",\"5\"=>\"黄金增产6%\");
\$building_info_array=array(\"1\"=>\"用来生产木材,每升一级可提高木材的生产产量。\",\"2\"=>\"用来生产铁矿,每升一级可提高铁矿的生产产量。\",\"3\"=>\"用来生产黄金,每升一级可提高黄金的生产产量。\",\"4\"=>\"用来生产粮食,每升一级可提高粮食的生产产量。\",\"5\"=>\"人口增长设施,每升一级可增加工作人口数。\"
,\"8\"=>\"士兵训练设施,每升一级可训练更多的兵种。\",\"13\"=>\"加快建筑速度设施,每升一级可提高建造升级速度。\",\"9\"=>\"进行技术研究的机构\"
,\"10\"=>\"人才招募的设施。\",\"11\"=>\"资源存储空间上限设施\",\"12\"=>\"城市防御设施\");
\$soldier_info_array=array(\"1\"=>\"步卒\",\"2\"=>\"探子\",\"3\"=>\"辎重兵\",\"4\"=>\"扑刀手\",\"5\"=>\"短弓手\",\"6\"=>\"白耳士\",\"7\"=>\"白马义从\",\"8\"=>\"筑城队\",\"9\"=>\"先登死士\",\"10\"=>\"辎重车\",\"11\"=>\"辎重车\",\"12\"=>\"陷阵营\",\"13\"=>\"陷阵营\",\"14\"=>\"近卫甲兵\",\"15\"=>\"近卫甲兵\",\"16\"=>\"西凉铁骑\",\"17\"=>\"西凉铁骑\",\"18\"=>\"无当飞军\",\"19\"=>\"无当飞军\",\"20\"=>\"虎豹骑\",\"20\"=>\"霹雳车\",\"21\"=>\"霹雳车\",\"22\"=>\"弩炮车\");
\$city_land_grow_percent=array(\"1\"=>\"2\",\"2\"=>\"6\",\"3\"=>\"6\",\"4\"=>\"6\",\"5\"=>\"6\");
\$city_type=array(\"1\"=>\"主城\",\"0\"=>\"分城\");
\$total_barracks_init=0;\$free_barracks_init=0;
\$b_barracks=0;
\$b_horse=0;\$b_city_wall=0;\$b_city_fy=0;
\$b_type_name=array(\"1\"=>\"伐木场\",\"2\"=>\"铁矿场\",\"3\"=>\"金矿\",\"4\"=>\"农田\",\"5\"=>\"民居\",\"6\"=>\"武器工房\",\"7\"=>\"牧场\",\"8\"=>\"军营\",\"9\"=>\"翰林院\",\"10\"=>\"招贤馆\",\"11\"=>\"仓库\",\"12\"=>\"城墙\",\"13\"=>\"督造司\");
\$b_bigtype_name=array(\"1\"=>\"基础设施建设\",\"2\"=>\"军事设施建设\",\"3\"=>\"内政设施建设\",\"4\"=>\"防御设施建设\");
\$b_type_name_en=array(\"1\"=>\"b_cutting\",\"2\"=>\"b_iron_ore\",\"3\"=>\"b_gold_ore\",\"4\"=>\"b_farm\",\"5\"=>\"b_house\",\"6\"=>\"b_work_house\",\"7\"=>\"b_horse\",\"8\"=>\"b_barracks\",\"9\"=>\"b_college\",\"10\"=>\"b_pub\",\"11\"=>\"b_store\",\"12\"=>\"b_city_wall\",\"13\"=>\"officer_house\");
\$b_type_name_num=array(\"b_cutting\"=>\"伐木场\",\"b_iron_ore\"=>\"铁矿场\",\"b_gold_ore\"=>\"金矿\",\"b_farm\"=>\"农田\",\"b_house\"=>\"民居\");
\$cutting_resource_percent=1;
\$cutting_build_percent=1;
\$arm_house_resource_percent=1;
\$arm_house_build_time=60;\$arm_house_build_percent=1;
\$arm_house_land_time=20;\$arm_house_land_percent=1;
\$horse_resource_percent=1;
\$horse_build_time=480;\$horse_build_percent=1;
\$horse_land_time=40;\$horse_land_percent=2;
\$college_resource_percent=1;
\$college_build_time=90;\$college_build_percent=1;
\$college_land_time=20;\$college_land_percent=1.5;
\$pub_resource_percent=1;
\$pub_build_time=180;\$pub_build_percent=1;
\$pub_land_time=10;\$pub_land_percent=1;
\$store_resource_percent=0.5;
\$store_build_time=120;\$store_build_percent=0.5;
\$store_land_time=30;\$store_land_percent=1;
\$hero_spead_percent=0.007;
\$house_add_num=50;
\$barracks_add_num=100;
\$store_add_percent=0.1;
\$stores_add_num=160000;
\$store_add_rices=50000;
\$store_add_woods=40000;
\$store_add_irons=40000;
\$store_add_golds=30000;
\$store_add_space_percent=1;
\$citywall_resource_percent=0.5;
\$citywall_build_time=60;\$citywall_build_percent=0.5;
\$citywall_workers_percent=1;
\$citywall_use_workers=20;
\$citywall_fy=500;\$citywall_fy_percent=0.5;
\$b_score_base_1_4=50;\$b_score_percent_1_4=30;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -