package CUSTOM_COUNTER; BEGIN { require 5.001; #色の配列(★☆) @color_array=('','black','white','yellow','red','blue','salmon','gold','dimgray','chocolate','violet','skyblue','limegreen','lightgoldenrodyellow','mistyrose','gainsboro','papayawhip','lavender','paleturquoise','palegreen','crimson','pink','floralwhite','darkslategray','maroon','purple','deepskyblue','midnightblue','green','#7D011E','#f3ebd3','#e3caa9','#ffdcde','#f5f5da','#ede7d0','#DEBD73','#ADA5CE','#ADEFE7','#5a73a5','#444444','#a5735a','#cfcd6b','#ff6464','#944263','#885357'); #名前の色配列(日本語)(★☆) @color_outside=('','黒','白','黄色','赤色','青色','オレンジ','ゴールド','灰色','茶色','紫色','水色','緑色','薄い黄色','薄い赤','薄い灰色','薄い茶色','薄い紫','薄い水色','薄い緑','橙','ピンク','白雪色','濃い灰色','濃い茶色','濃い紫','濃い水色','濃い青','濃い緑','ワインレッド','ハート神殿背景色','英文スタンプ背景色','可憐な花びら背景色','古城の城壁背景色','紅葉の秋背景色','木目調背景色','和紙調背景色','怪しい調背景色','雪の結晶文字色','ハート神殿文字色','英文スタンプ文字色','暗闇のお魚文字色','可憐な花びら文字色','古城の城壁文字色','紅葉の秋文字色'); #背景イラストの配列 @background_array=('','./IMAGE/background/night.gif','./IMAGE/background/flower.jpeg','./IMAGE/background/winter.gif','./IMAGE/background/autumn.jpeg','./IMAGE/background/block.gif','./IMAGE/background/temple.gif','./IMAGE/background/stamp.gif','./IMAGE/background/tree.gif','./IMAGE/background/paper.gif','./IMAGE/background/etc.gif'); #背景イラストの配列(日本語) @background_outside=('','暗闇のお魚','可憐な花びら','雪の結晶','紅葉の秋','古城の城壁','ハート神殿','英文スタンプ','木目調','和紙調','怪しい調'); #背景イラストの横ピクセル(見本表示用) @background_width=('','400','400','400','400','400','400','400','140','140','140'); #背景イラストの縦ピクセル(見本表示用) @background_height=('','60','50','60','100','60','40','60','100','100','100'); } ####################データ収集#################### sub ::custom_open{ my ($custom_file,@custom)=@_; unless(-f $custom_file){ my $line=join(',',@custom); open(DATA,">$custom_file"); print DATA "$line"; close(DATA); } elsif(open(DATA,"$custom_file")){ my $line = ; close(DATA); (@custom) = split(/,/,$line) if($line ne ''); } return (@custom); } ####################修正データセーブ#################### sub ::repair_custom{ my ($custom_file,@repair_)=@_; foreach(@repair_){ $_=~ s/\r\n/
/g; $_=~ s/\r/
/g; $_=~ s/\n/
/g; $_=~ s/\t/ /g; $_=~ s/

/
 
/g;#改行コードを変換 } my $line=join(',',@repair_); if(open(DATA, ">$custom_file")){ print DATA "$line"; close(DATA); } return (@repair_); } ###############カスタマイズhtml############### sub ::custom_beginner{ my ($script_url,$html_title,$titlecolor,$home_url,$bgcolor,$background,$textcolor,$linkcolor,$vlinkcolor,$secret,$hooter,$secret_pass)=@_; $hooter=~s/
 
/

/g; $hooter=~s/
/\n/g;#改行コードを変換 if($hooter eq '0' || $hooter eq '1'){ $hooter ="HOME"; } print <カスタマイズ初心者用  

カスタマイズする箇所を書き換えて下さい

(背景イラストを指定する時は、背景色に背景イラストと近似色を指定すると)
(綺麗に表\示されます)

END_OF_TEXT my $selected_check; print (''; $selected_check=0; print < END_OF_TEXT print (''; $selected_check=0; print (''; $selected_check=0; print (''; $selected_check=0; print (''; $selected_check=0; print (''; print <
題名:
題名の色:
HOMEのURL:
背景色:
背景イラスト:
文字色:
リンク色:
Vリンク色:
管理人専用パスワード:
フッター部分に挿入するタグ

 

END_OF_TEXT } ###############カスタマイズhtml############### sub ::custom_pro{ my ($script_url,$html_title,$titlecolor,$home_url,$bgcolor,$background,$textcolor,$linkcolor,$vlinkcolor,$secret,$hooter,$secret_pass)=@_; $hooter=~s/
 
/

/g; $hooter=~s/
/\n/g;#改行コードを変換 if($hooter eq '0' || $hooter eq '1'){ $hooter ="HOME"; } print <カスタマイズ上級者用  

カスタマイズする箇所を書き換えて下さい

(背景イラストを指定する時は、背景色に背景イラストと近似色を指定すると)
(綺麗に表\示されます)

題名:
題名の色:
HOMEのURL:
背景色:
背景イラスト:
文字色:
リンク色:
Vリンク色:
管理人専用パスワード:
フッター部分に挿入するタグ

 

END_OF_TEXT } ###############色見本html############### sub ::color_list{ my ($script_url)=@_; print <背景・文字色候補  

END_OF_TEXT for($i=1;$i<@color_array;$i+=5){ print('') if(@color_array>$i); print"" if(@color_array>$i); print"" if(@color_array>$i+1); print"" if(@color_array>$i+2); print"" if(@color_array>$i+3); print"" if(@color_array>$i+4); print('') if(@color_array>$i); } print <

 

END_OF_TEXT } ###############背景イラストhtml############### sub ::background_list{ my ($script_url)=@_; print <背景イラスト候補  

$color_outside[$i]$color_outside[$i+1]$color_outside[$i+2]$color_outside[$i+3]$color_outside[$i+4]
END_OF_TEXT for($i=1;$i<@background_array;$i++){ print"" if(@background_array>$i); print"" if(@background_array>$i); } print <

 

END_OF_TEXT } ############################################# 1;

$background_outside[$i]