\n"; if ($pass_ichi eq 1) { print <<"EOF";
| \n";
print " $print_date "; if (!open(IN,"$_")) { &error('データ読取エラー','復旧をお待ちください.'); } @BASE =/ $maru<\/span>/g; }
print "$_\n";
}
if ($admin_ok eq 1) {
print "\n";
}
if ($hr_size ne 0) {
print " |
| \n"; if ($pass_ichi eq 0) { print <<"EOF"; EOF } # 著作権表示(以下の5行は削除不可です) print <<"EOF"; | a-Nikki$kaizo $version |
$FORM{'title'}
\n"; open (OUT,">$diary_file"); print OUT $diary_title; $diary_data = "$FORM{'diary'}
\n"; print OUT $diary_data; close(OUT); $ret = chmod(0666, "$diary_file"); #更新日時の更新 &upinfo_update; } sub update { $update_file = "$site_path/$f_year/$f_month/$f_day.html"; if (!open(IN,"$update_file")) { &error('データ読取エラー','復旧をお待ちください.'); } @BASE =//g; $_ =~ s/
//g;
$_ =~ s/<\/p>//g;
$_ =~ s/\n//g;
if ($cr_sw eq 1) {
$_ =~ s/
/\n/g;
}
if ($_ eq "") { next; }
else { push(@DATA,$_); }
}
$BASE[0] =~ s/
//g; $BASE[0] =~ s/
//g; print <<"EOF";
$FORM{'title'}
\n"; open (OUT,">$diary_file"); print OUT $diary_title; $i = 0; while ($i < $FORM{'count'} + 1) { $diary = $FORM{"diary$i"}; if ($diary) { $diary_data = "$diary
\n"; print OUT $diary_data; } $i = $i + 1; } close(OUT); #更新日時の更新 &upinfo_update; } sub add { &tag_editor; print <<"EOF";|
簡易タグエディタ:URL挿入・Bold挿入 EOF } sub add2 { if ($FORM{'diary'} eq "" && $FORM{'title'} eq "") { &error("入力チェックエラー","題名と内容が書かれていません。"); } $diary_file = "$site_path/$f_year/$f_month/$f_day.html"; if (!open(IN,"$diary_file")) { &error('データ読取エラー','復旧をお待ちください.'); } @BASE = $FORM{'diary'} \n"; open (OUT,">$diary_file"); print OUT $BASE[0]; if ($add_ichi eq 1) { print OUT $diary_data; } foreach $num (1 .. $#BASE) { print OUT $BASE[$num]; } if ($add_ichi eq 0) { print OUT $diary_data; } close(OUT); #更新日時の更新 &upinfo_update; } sub delete { $diary_file = "$site_path/$f_year/$f_month/$f_day.html"; $del = unlink $diary_file; #更新日時の更新 &upinfo_update; } sub new { $update_file = "$f_year/$f_month/$f_day.html"; &tag_editor; print <<"EOF";要望・バグ情報・感想等 メールをお待ちしております。 |
| $ya_prev $f_year/$f_month $ya_next | ||||||
| $yobi_array2[0] | $yobi_array2[1] | $yobi_array2[2] | $yobi_array2[3] | $yobi_array2[4] | $yobi_array2[5] | $yobi_array2[6] |
| \n"; ++$i; } $i = 1; $j = $month_2 + 1; #---( 日数分のループ処理 )--- while ($i <= $loop_day) { if ($zero_cut eq 1) { $p_day = $i; } else { $p_day = sprintf("%02d",$i); } $check_day = sprintf("%02d",$i); $check_file = "$site_path/$f_year/$f_month/$check_day.html"; if (-e $check_file) { if ($FORM{'cal'} eq "out") { print " | $p_day | \n"; } else { print "$p_day | \n"; } } else { print "$p_day | \n"; } if ($j >6) { if ($i ne $loop_day) { print "|||
| \n"; ++$j; } } print " | ||||||
\n";
print "$_[0]\n"; print "$_[1]\n"; print "ブラウザの戻るボタンで前の画面に戻って下さい。 "; print " |