<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#webliberty::App::Init.pm (2006/03/26)
#Copyright(C) 2002-2006 Knight, All rights reserved.

package webliberty::App::Init;

use strict;

### ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
sub new {
	my $class = shift;

	my $self = {
		init   =&gt; undef,
		config =&gt; undef,
		label  =&gt; undef
	};
	bless $self, $class;

	$self-&gt;{init}   = $self-&gt;_set_init;
	$self-&gt;{config} = $self-&gt;_set_config;
	$self-&gt;{label}  = $self-&gt;_set_label;

	return $self;
}

### åˆæœŸè¨­å®šå–å¾—
sub get_init {
	my $self = shift;
	my $name = shift;

	my $init;

	if ($name) {
		$init = $self-&gt;{init}-&gt;{$name};
	} else {
		$init = $self-&gt;{init};
	}

	return $init;
}

### ç’°å¢ƒè¨­å®šå–å¾—
sub get_config {
	my $self = shift;
	my $name = shift;

	my $config;

	if ($name) {
		$config = $self-&gt;{config}-&gt;{$name};
	} else {
		$config = $self-&gt;{config};
	}

	return $config;
}

### ãƒ©ãƒ™ãƒ«å–å¾—
sub get_label {
	my $self = shift;
	my $name = shift;

	my $label;

	if ($name) {
		$label = $self-&gt;{label}-&gt;{$name};
	} else {
		$label = $self-&gt;{label};
	}

	return $label;
}

### åˆæœŸè¨­å®š
sub _set_init {
	my $self = shift;

	my $init = {
		#åŸºæœ¬è¨­å®š
		script      =&gt; 'Web Diary Professional',
		version     =&gt; '4.08',
		copyright   =&gt; 'Copyright(C) 2002-2006 Knight',
		script_file =&gt; './diary.cgi',
		tb_file     =&gt; './diary-tb.cgi',
		paint_file  =&gt; './diary-paint.cgi',
		html_file   =&gt; './index.html',
		parse_size  =&gt; 15000,
		jcode_mode  =&gt; 0,
		chmod_mode  =&gt; 1,
		suexec_mode =&gt; 0,

		#ãƒ­ã‚°ãƒ•ã‚¡ã‚¤ãƒ«
		data_dir           =&gt; './data/',
		data_config        =&gt; 'diary.ini',
		data_user          =&gt; 'user.log',
		data_profile       =&gt; 'profile.log',
		data_field         =&gt; 'field.log',
		data_icon_dir      =&gt; 'icon/',
		data_icon          =&gt; 'icon.log',
		data_menu          =&gt; 'menu.log',
		data_link          =&gt; 'link.log',
		data_upfile_dir    =&gt; 'upfile/',
		data_upfile_tmp    =&gt; 'Temporary.file',
		data_thumbnail_dir =&gt; 'thumbnail/',
		data_diary_dir     =&gt; 'diary/',
		data_diary_index   =&gt; 'index.log',
		data_comt_dir      =&gt; 'comment/',
		data_comt_index    =&gt; 'index.log',
		data_tb_dir        =&gt; 'trackback/',
		data_tb_index      =&gt; 'index.log',
		data_ext           =&gt; 'log',
		data_lock          =&gt; 'diary.lock',

		#ã‚¹ã‚­ãƒ³ãƒ•ã‚¡ã‚¤ãƒ«
		skin_dir             =&gt; './skin/',
		skin_header          =&gt; 'header.html',
		skin_footer          =&gt; 'footer.html',
		skin_navigation      =&gt; 'navigation.html',
		skin_diary           =&gt; 'diary.html',
		skin_comment         =&gt; 'comment.html',
		skin_complete        =&gt; 'complete.html',
		skin_trackback       =&gt; 'trackback.html',
		skin_image           =&gt; 'image.html',
		skin_icon            =&gt; 'icon.html',
		skin_edit            =&gt; 'edit.html',
		skin_search          =&gt; 'search.html',
		skin_profile         =&gt; 'profile.html',
		skin_admin           =&gt; 'admin.html',
		skin_admin_work      =&gt; 'admin_work.html',
		skin_admin_form      =&gt; 'admin_form.html',
		skin_admin_edit      =&gt; 'admin_edit.html',
		skin_admin_comment   =&gt; 'admin_comment.html',
		skin_admin_trackback =&gt; 'admin_trackback.html',
		skin_admin_confirm   =&gt; 'admin_confirm.html',
		skin_admin_field     =&gt; 'admin_field.html',
		skin_admin_env       =&gt; 'admin_env.html',
		skin_admin_icon      =&gt; 'admin_icon.html',
		skin_admin_menu      =&gt; 'admin_menu.html',
		skin_admin_link      =&gt; 'admin_link.html',
		skin_admin_profile   =&gt; 'admin_profile.html',
		skin_admin_pwd       =&gt; 'admin_pwd.html',
		skin_admin_paint     =&gt; 'admin_paint.html',
		skin_admin_build     =&gt; 'admin_build.html',
		skin_admin_status    =&gt; 'admin_status.html',
		skin_info            =&gt; 'info.html',
		skin_error           =&gt; 'error.html',

		#ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–ãƒ•ã‚¡ã‚¤ãƒ«
		archive_dir =&gt; './archives/',
		archive_ext =&gt; 'html',

		#JSãƒ•ã‚¡ã‚¤ãƒ«
		js_title_file =&gt; './data/title.js',
		js_text_file  =&gt; './data/text.js',

		#ãƒšã‚¤ãƒ³ãƒˆç”¨ãƒ•ã‚¡ã‚¤ãƒ«
		paint_jar =&gt; './spainter.jar',
		res_dir   =&gt; './res/',
		paint_dir =&gt; 'paint/',
		pch_dir   =&gt; 'pch/'
	};

	#ç¥æ—¥ : ç‰¹å®šæœˆæ—¥ã‚’æŒ‡å®š(2æ¡ï¼‹2æ¡ã§è¨˜è¿°)
	@{$init-&gt;{days_holiday}} = ('0102', '0211', '0321', '0429', '0503', '0504', '0505', '0923', '1103', '1123', '1223');

	#ç¥æ—¥ : ä½•æœˆã®ç¬¬ä½•æœˆæ›œæ—¥ã‹æŒ‡å®š
	%{$init-&gt;{weeks_holiday}} = ('01'=&gt;'2', '07'=&gt;'3', '09'=&gt;'3', '10'=&gt;'2');

	return $init;
}

### ç’°å¢ƒè¨­å®š
sub _set_config {
	my $self = shift;

	my $config = {
		#åŸºæœ¬è¨­å®š
		site_title        =&gt; 'My Diary',
		back_url          =&gt; 'http://your.site.addr/index.html',
		mobile_site_title =&gt; 'My Diary',
		mobile_back_url   =&gt; 'http://your.site.addr/index.html',
		site_description  =&gt; 'æ—¥ã€…ã®ç”Ÿæ´»ã‚’æ°—ã¾ã¾ã«ã¤ã¥ã£ãŸæ—¥è¨˜å¸³ã€‚',
		site_url          =&gt; '',

		#ãƒ­ã‚°ã®è¡¨ç¤ºè¨­å®š
		page_size           =&gt; '10',
		list_size           =&gt; '5',
		cmtlist_size        =&gt; '5',
		tblist_size         =&gt; '5',
		mobile_page_size    =&gt; '5',
		mobile_cmtlist_size =&gt; '5',
		mobile_tblist_size  =&gt; '5',

		#æŠ•ç¨¿ç”»é¢ã®è¡¨ç¤ºè¨­å®š
		use_field =&gt; '1',
		use_icon  =&gt; '0',
		use_file  =&gt; '1',
		use_tburl =&gt; '1',

		#æŠ•ç¨¿è¨˜äº‹ã®åˆæœŸè¨­å®š
		default_stat  =&gt; '1',
		default_break =&gt; '1',
		default_comt  =&gt; '0',
		default_tb    =&gt; '0',

		#æŠ•ç¨¿è¨˜äº‹ã®è¡¨ç¤ºè¨­å®š
		new_days        =&gt; '3',
		autolink_mode   =&gt; '1',
		quotation_color =&gt; '#AAAAAA',

		#ãƒ•ã‚¡ã‚¤ãƒ«ã‚¢ãƒƒãƒ—ãƒ­ãƒ¼ãƒ‰ã®è¨­å®š
		img_maxwidth   =&gt; '200',
		thumbnail_mode =&gt; '0',

		#ã‚³ãƒ¡ãƒ³ãƒˆæŠ•ç¨¿åˆ¶é™ã®è¨­å®š
		ng_word   =&gt; '',
		wait_time =&gt; '60',

		#ãƒ¬ã‚¤ã‚¢ã‚¦ãƒˆã®è¨­å®š
		show_calendar =&gt; '1',
		show_field    =&gt; '1',
		show_search   =&gt; '1',
		show_past     =&gt; '1',
		show_menu     =&gt; '0',
		show_link     =&gt; '0',
		show_profile  =&gt; '0',

		#ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ãƒªã‚¹ãƒˆã®è¨­å®š
		menu_list =&gt; '',

		#ãƒªãƒ³ã‚¯é›†ã®è¨­å®š
		link_list =&gt; '',

		#ãƒ¡ãƒ¼ãƒ«é€šçŸ¥ã®è¨­å®š
		sendmail_cmt_mode =&gt; '0',
		sendmail_tb_mode  =&gt; '0',
		sendmail_path     =&gt; '/usr/sbin/sendmail',
		sendmail_list     =&gt; 'your@mail.addr',
		sendmail_admin    =&gt; '',

		#æ›´æ–°PINGã®è¨­å®š
		ping_mode =&gt; '0',
		ping_list =&gt; 'http://www.blogpeople.net/servlet/weblogUpdates&lt;&gt;http://ping.cocolog-nifty.com/xmlrpc&lt;&gt;http://ping.myblog.jp&lt;&gt;http://blog.goo.ne.jp/XMLRPC&lt;&gt;http://ping.bloggers.jp/rpc/',

		#Cookieã®è¨­å®š
		cookie_id       =&gt; 'webdiary',
		cookie_holddays =&gt; '90',
		cookie_admin    =&gt; 'webdiary_admin',

		#HTMLãƒ•ã‚¡ã‚¤ãƒ«æ›¸ãå‡ºã—ã®è¨­å®š
		html_index_mode   =&gt; '0',
		html_archive_mode =&gt; '0',

		#JSãƒ•ã‚¡ã‚¤ãƒ«æ›¸ãå‡ºã—ã®è¨­å®š
		js_title_mode =&gt; '0',
		js_title_size =&gt; '3',
		js_text_mode  =&gt; '0',
		js_text_size  =&gt; '5',

		#ã‚¢ã‚¯ã‚»ã‚¹åˆ¶é™ã®è¨­å®š
		black_list =&gt; 'anonymizer.com&lt;&gt;delegate',
		proxy_mode =&gt; '1',
		base_url   =&gt; ''
	};

	return $config;
}

### ãƒ©ãƒ™ãƒ«è¨­å®š
sub _set_label {
	my $self = shift;

	my $label = {
		#ãƒ‘ã‚½ã‚³ãƒ³ãƒ¢ãƒ¼ãƒ‰ç”¨ãƒ©ãƒ™ãƒ«
		pc_no    =&gt; 'è¨˜äº‹ç•ªå·',
		pc_id    =&gt; 'è¨˜äº‹ID',
		pc_stat  =&gt; 'çŠ¶æ…‹',
		pc_break =&gt; 'æ”¹è¡Œã®å¤‰æ›',
		pc_comt  =&gt; 'ã‚³ãƒ¡ãƒ³ãƒˆã®å—ä»˜',
		pc_tb    =&gt; 'ãƒˆãƒ©ãƒƒã‚¯ãƒãƒƒã‚¯ã®å—ä»˜',
		pc_field =&gt; 'åˆ†é¡ž',
		pc_date  =&gt; 'æŠ•ç¨¿æ—¥æ™‚',
		pc_name  =&gt; 'åå‰',
		pc_subj  =&gt; 'é¡Œå',
		pc_text  =&gt; 'ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸',
		pc_color =&gt; 'æ–‡å­—è‰²',
		pc_icon  =&gt; 'ã‚¢ã‚¤ã‚³ãƒ³',
		pc_file  =&gt; 'ãƒ•ã‚¡ã‚¤ãƒ«',
		pc_host  =&gt; 'ãƒ›ã‚¹ãƒˆ',

		pc_pno   =&gt; 'è¦ªè¨˜äº‹ç•ªå·',
		pc_mail  =&gt; 'ï¼¥ãƒ¡ãƒ¼ãƒ«',
		pc_url   =&gt; 'ï¼µï¼²ï¼¬',
		pc_rank  =&gt; 'æŠ•ç¨¿ãƒ©ãƒ³ã‚¯',
		pc_pwd   =&gt; 'å‰Šé™¤ã‚­ãƒ¼',

		#æºå¸¯ãƒ¢ãƒ¼ãƒ‰ç”¨ãƒ©ãƒ™ãƒ«
		mobile_no    =&gt; 'è¨˜äº‹ç•ªå·',
		mobile_id    =&gt; 'è¨˜äº‹ID',
		mobile_stat  =&gt; 'çŠ¶æ…‹',
		mobile_break =&gt; 'æ”¹è¡Œã®å¤‰æ›',
		mobile_comt  =&gt; 'ï½ºï¾’ï¾ï¾„ã®å—ä»˜',
		mobile_tb    =&gt; 'ï¾„ï¾—ï½¯ï½¸ï¾Šï¾žï½¯ï½¸ã®å—ä»˜',
		mobile_field =&gt; 'åˆ†é¡ž',
		mobile_date  =&gt; 'æŠ•ç¨¿æ—¥æ™‚',
		mobile_name  =&gt; 'åå‰',
		mobile_subj  =&gt; 'é¡Œå',
		mobile_text  =&gt; 'ï¾’ï½¯ï½¾ï½°ï½¼ï¾ž',
		mobile_color =&gt; 'æ–‡å­—è‰²',
		mobile_icon  =&gt; 'ï½±ï½²ï½ºï¾',
		mobile_file  =&gt; 'ï¾Œï½§ï½²ï¾™',
		mobile_host  =&gt; 'ï¾Žï½½ï¾„',

		mobile_pno   =&gt; 'è¦ªè¨˜äº‹ç•ªå·',
		mobile_mail  =&gt; 'Eï¾’ï½°ï¾™',
		mobile_url   =&gt; 'URL',
		mobile_rank  =&gt; 'æŠ•ç¨¿ï¾—ï¾ï½¸',
		mobile_pwd   =&gt; 'å‰Šé™¤ï½·ï½°'
	};

	return $label;
}

1;
</pre></body></html>