罪と罰++二律背反



# キャラデータ書き込み
sub dat_write{

	&error("open error no such a file!",1) if(!$nm || !$id);

	$dat[0] = "la;$time,nm;$nm,pw;$pw,id;$id,sei;$sei,type;$type,age_time;$age_time,act_cnt;$act_cnt,hp;$hp,max_hp;$max_hp,lv;$lv,mp;$mp,max_mp;$max_mp,rank;$rank,ua;$ua,ud;$ud,lr;$lr,ag;$ag,ck;$ck,tm;$tm,bt;$bt,bst;$bst,exe;$exe,rank_exe;$rank_exe,sol;$sol,sol_lv;$sol_lv,nation;$nation,we;$we,camp;$camp,pr;$pr,tnm;$tnm,tid;$tid,thp;$thp,tlr;$tlr,tag;$tag,tsol;$tsol,tsg;$tsg,tsol_lv;$tsol_lv,b_n;$b_n,b_v;$b_v,thp_max;$thp_max,tlv;$tlv,tdg_a;$tdg_a,tdf_a;$tdf_a,tua;$tua,tud;$tud,tmp;$tmp,tcp;$tcp,gold;$gold,roku;$roku,dg_a;$dg_a,dg_cnt;$dg_cnt,df_a;$df_a,df_cnt;$df_cnt,di_a;$di_a,di_cnt;$di_cnt,sogo;$sogo,mes;$mes,info_mes;$info_mes,\n";
	$dat[1] = "$date<>$addr<>$host<>$agent<>\n";

	open (OUT,">$usrdata$id\.cgi") || &error("open error:$usrdata$id\.cgi",1);
	print OUT @dat;
	close(OUT)		or die "Can't close   : $!";
}

# 過去の栄光書き込み&バックアップ処理
sub hist_write{		#ここで国ログ書き込み

	$cdat = "cn1;$cn1,cg1;$cg1,cf1;$cf1,cs1;$cs1,ce1;$ce1,c1;$c1,c1a;$c1a,cn2;$cn2,cg2;$cg2,cf2;$cf2,cs2;$cs2,ce2;$ce2,c2;$c2,c2a;$c2a,cn3;$cn3,cg3;$cg3,cf3;$cf3,cs3;$cs3,ce3;$ce3,c3;$c3,c3a;$c3a,cn4;$cn4,cg4;$cg4,cf4;$cf4,cs4;$cs4,ce4;$ce4,c4;$c4,c4a;$c4a,cn5;$cn5,cg5;$cg5,cf5;$cf5,cs5;$cs5,ce5;$ce5,c5;$c5,c5a;$c5a,set;$set,all_mem;$all_mem,goal_no;$goal_no,hasya;$hasya,hcamp;$hcamp,ad;$addr,ht;$host,date;$date,wr_mes;$wr_mes,\n";

	open (DB,">>$histfile") || &error("open error:$histfile",1);
	print DB $cdat;
	close(DB)		or die "Can't close   : $!";

# 統一時は石碑に刻む
   if($touitu_flag==1){
     &stone_write;
   }
}

sub stone_write{
  open (DB2,">>$stonefile") || &error("open error:$stonefile",1);
  print DB2 $cdat;
  close(DB2)               or die "Can't close   : $!";
}

#-------------------------------------------------------------------------------
$script		= "/cgi-bin/ore/ore_.cgi";	# 本スクリプト名

$ore_reg	= "./ore_reg.cgi";			# 新規登録

$stonefile = './logdata/stone_log.cgi';	# 石碑ログ
# 管理者機能 アクセス方法は
# http://あなたのURL/ore_plus/ore_admin.cgi?administrator=管理者パスワード
$ore_admin	= "./ore_admin.cgi";



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS