-- Table structure for table `gl_cookiecodes`
--


CREATE TABLE `gl_cookiecodes` (
  `cc_value` int(8) unsigned NOT NULL DEFAULT 0,
  `cc_descr` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`cc_value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_cookiecodes`
--

INSERT INTO `gl_cookiecodes`VALUES (0,'保存しない');
INSERT INTO `gl_cookiecodes`VALUES (3600,'1時間');
INSERT INTO `gl_cookiecodes`VALUES (7200,'2時間');
INSERT INTO `gl_cookiecodes`VALUES (10800,'3時間');
INSERT INTO `gl_cookiecodes`VALUES (28800,'8時間');
INSERT INTO `gl_cookiecodes`VALUES (86400,'1日');
INSERT INTO `gl_cookiecodes`VALUES (604800,'1週間');
INSERT INTO `gl_cookiecodes`VALUES (2678400,'1ヶ月');

--
-- Table structure for table `gl_databox_addition`
--


CREATE TABLE `gl_databox_addition` (
  `seq` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(11) NOT NULL,
  `field_id` int(11) NOT NULL,
  `value` mediumtext NOT NULL,
  PRIMARY KEY (`seq`),
  KEY `id` (`id`),
  KEY `field_id` (`field_id`),
  KEY `value` (`value`(16))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_addition`
--


--
-- Table structure for table `gl_databox_base`
--


CREATE TABLE `gl_databox_base` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(40) NOT NULL DEFAULT '',
  `title` varchar(128) DEFAULT NULL,
  `page_title` varchar(128) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `defaulttemplatesdirectory` varchar(40) NOT NULL DEFAULT '',
  `comments` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `comment_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `commentcode` tinyint(4) NOT NULL DEFAULT 0,
  `meta_description` text DEFAULT NULL,
  `meta_keywords` text DEFAULT NULL,
  `language_id` char(2) DEFAULT NULL,
  `owner_id` mediumint(8) NOT NULL DEFAULT 1,
  `group_id` mediumint(8) NOT NULL DEFAULT 2,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `modified` datetime NOT NULL,
  `created` datetime NOT NULL,
  `released` datetime NOT NULL,
  `expired` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `orderno` int(2) NOT NULL DEFAULT 0,
  `fieldset_id` int(11) NOT NULL DEFAULT 0,
  `trackbackcode` tinyint(4) NOT NULL DEFAULT 0,
  `draft_flag` tinyint(3) NOT NULL DEFAULT 0,
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `modified` (`modified`),
  KEY `created` (`created`),
  KEY `released` (`released`),
  KEY `expired` (`expired`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_base`
--

INSERT INTO `gl_databox_base`VALUES (1,'test_ja','test_ja','','','',0,'0000-00-00 00:00:00',0,'','','0',3,70,3,2,2,2,'2015-08-24 10:17:00','2015-08-24 10:17:00','2015-08-24 10:16:00','0000-00-00 00:00:00',0,1,0,0,'2015-08-24 10:17:05',3);

--
-- Table structure for table `gl_databox_category`
--


CREATE TABLE `gl_databox_category` (
  `seq` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  PRIMARY KEY (`seq`),
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_category`
--


--
-- Table structure for table `gl_databox_def_category`
--


CREATE TABLE `gl_databox_def_category` (
  `category_id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(40) DEFAULT NULL,
  `name` varchar(64) NOT NULL,
  `description` mediumtext DEFAULT NULL,
  `defaulttemplatesdirectory` varchar(40) DEFAULT NULL,
  `orderno` int(2) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `categorygroup_id` int(11) NOT NULL DEFAULT 0,
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_category`
--


--
-- Table structure for table `gl_databox_def_field`
--


CREATE TABLE `gl_databox_def_field` (
  `field_id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `templatesetvar` varchar(64) NOT NULL,
  `description` mediumtext DEFAULT NULL,
  `type` int(2) NOT NULL DEFAULT 0,
  `selection` mediumtext DEFAULT NULL,
  `selectlist` varchar(16) DEFAULT NULL,
  `checkrequried` binary(1) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `maxlength` int(11) DEFAULT NULL,
  `rows` int(11) DEFAULT NULL,
  `br` binary(1) DEFAULT NULL,
  `orderno` int(2) DEFAULT NULL,
  `allow_display` binary(1) DEFAULT '0',
  `allow_edit` binary(1) DEFAULT '0',
  `textcheck` binary(2) DEFAULT '0\0',
  `textconv` binary(2) DEFAULT '0\0',
  `searchtarget` binary(1) DEFAULT '0',
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`field_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_field`
--


--
-- Table structure for table `gl_databox_def_fieldset`
--


CREATE TABLE `gl_databox_def_fieldset` (
  `fieldset_id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `description` mediumtext DEFAULT NULL,
  `defaulttemplatesdirectory` varchar(40) NOT NULL,
  `layout` varchar(16) NOT NULL,
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`fieldset_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_fieldset`
--

INSERT INTO `gl_databox_def_fieldset`VALUES (0,'',NULL,'','','2015-08-24 10:16:05',0);
INSERT INTO `gl_databox_def_fieldset`VALUES (1,'type1','','','0','2015-08-24 10:16:41',3);

--
-- Table structure for table `gl_databox_def_fieldset_assignments`
--


CREATE TABLE `gl_databox_def_fieldset_assignments` (
  `seq` int(11) NOT NULL AUTO_INCREMENT,
  `fieldset_id` int(11) NOT NULL,
  `field_id` int(11) NOT NULL,
  PRIMARY KEY (`seq`),
  KEY `fieldset_id` (`fieldset_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_fieldset_assignments`
--


--
-- Table structure for table `gl_databox_def_fieldset_group`
--


CREATE TABLE `gl_databox_def_fieldset_group` (
  `seq` int(11) NOT NULL AUTO_INCREMENT,
  `fieldset_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  PRIMARY KEY (`seq`),
  KEY `fieldset_id` (`fieldset_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_fieldset_group`
--


--
-- Table structure for table `gl_databox_def_group`
--


CREATE TABLE `gl_databox_def_group` (
  `group_id` int(11) NOT NULL,
  `code` varchar(40) DEFAULT NULL,
  `name` varchar(64) NOT NULL,
  `description` mediumtext DEFAULT NULL,
  `orderno` int(2) DEFAULT NULL,
  `parent_flg` binary(1) NOT NULL DEFAULT '0',
  `input_type` binary(1) NOT NULL DEFAULT '0',
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_def_group`
--

INSERT INTO `gl_databox_def_group`VALUES (0,NULL,'',NULL,NULL,0,0,'2015-08-24 10:16:05',0);

--
-- Table structure for table `gl_databox_mst`
--


CREATE TABLE `gl_databox_mst` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kind` varchar(16) NOT NULL,
  `no` int(2) NOT NULL,
  `value` varchar(64) NOT NULL,
  `value2` varchar(64) DEFAULT NULL,
  `disp` varchar(64) DEFAULT NULL,
  `orderno` int(2) DEFAULT NULL,
  `relno` int(11) DEFAULT NULL,
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `uuid` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `kind` (`kind`,`no`),
  KEY `kind_2` (`kind`,`orderno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_mst`
--


--
-- Table structure for table `gl_databox_stats`
--


CREATE TABLE `gl_databox_stats` (
  `id` int(11) NOT NULL,
  `hits` int(11) NOT NULL DEFAULT 0,
  `udatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_databox_stats`
--

INSERT INTO `gl_databox_stats`VALUES (1,89,'2019-01-24 08:15:46');

--
-- Table structure for table `gl_dateformats`
--


CREATE TABLE `gl_dateformats` (
  `dfid` tinyint(4) NOT NULL DEFAULT 0,
  `format` varchar(32) DEFAULT NULL,
  `description` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`dfid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_dateformats`
--

INSERT INTO `gl_dateformats`VALUES (0,'','System Default');
INSERT INTO `gl_dateformats`VALUES (1,'%A %B %d, %Y @%I:%M%p','Sunday March 21, 1999 @10:00PM');
INSERT INTO `gl_dateformats`VALUES (2,'%A %b %d, %Y @%H:%M','Sunday March 21, 1999 @22:00');
INSERT INTO `gl_dateformats`VALUES (4,'%A %b %d @%H:%M','Sunday March 21 @22:00');
INSERT INTO `gl_dateformats`VALUES (5,'%H:%M %d %B %Y','22:00 21 March 1999');
INSERT INTO `gl_dateformats`VALUES (6,'%H:%M %A %d %B %Y','22:00 Sunday 21 March 1999');
INSERT INTO `gl_dateformats`VALUES (7,'%I:%M%p - %A %B %d %Y','10:00PM -- Sunday March 21 1999');
INSERT INTO `gl_dateformats`VALUES (8,'%a %B %d, %I:%M%p','Sun March 21, 10:00PM');
INSERT INTO `gl_dateformats`VALUES (9,'%a %B %d, %H:%M','Sun March 21, 22:00');
INSERT INTO `gl_dateformats`VALUES (10,'%m-%d-%y %H:%M','3-21-99 22:00');
INSERT INTO `gl_dateformats`VALUES (11,'%d-%m-%y %H:%M','21-3-99 22:00');
INSERT INTO `gl_dateformats`VALUES (12,'%m-%d-%y %I:%M%p','3-21-99 10:00PM');
INSERT INTO `gl_dateformats`VALUES (13,'%I:%M%p  %B %e, %Y','10:00PM  March 21, 1999');
INSERT INTO `gl_dateformats`VALUES (14,'%a %b %d, \'%y %I:%M%p','Sun Mar 21, \'99 10:00PM');
INSERT INTO `gl_dateformats`VALUES (15,'Day %j, %I ish','Day 80, 10 ish');
INSERT INTO `gl_dateformats`VALUES (16,'%y-%m-%d %I:%M','99-03-21 10:00');
INSERT INTO `gl_dateformats`VALUES (17,'%d/%m/%y %H:%M','21/03/99 22:00');
INSERT INTO `gl_dateformats`VALUES (18,'%a %d %b %I:%M%p','Sun 21 Mar 10:00PM');
INSERT INTO `gl_dateformats`VALUES (19,'%Y-%m-%d %H:%M','1999-03-21 22:00');

--
-- Table structure for table `gl_dpxy_notify`
--


CREATE TABLE `gl_dpxy_notify` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `callback_name` varchar(30) NOT NULL DEFAULT '',
  `type` varchar(255) NOT NULL DEFAULT '',
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_dpxy_notify`
--


--
-- Table structure for table `gl_features`
--


CREATE TABLE `gl_features` (
  `ft_id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `ft_name` varchar(50) NOT NULL,
  `ft_descr` varchar(255) NOT NULL DEFAULT '',
  `ft_gl_core` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ft_id`),
  KEY `ft_name` (`ft_name`)
) ENGINE=MyISAM AUTO_INCREMENT=179 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_features`
--

INSERT INTO `gl_features`VALUES (1,'story.edit','記事を編集する権限',1);
INSERT INTO `gl_features`VALUES (2,'story.moderate','承認待ちの記事を承認・却下する権限',1);
INSERT INTO `gl_features`VALUES (3,'story.submit','承認待ちなしで記事を掲載する権限',1);
INSERT INTO `gl_features`VALUES (4,'story.ping','記事の更新ピング、ピングバック、トラックバックを送信する権限',1);
INSERT INTO `gl_features`VALUES (5,'user.edit','ユーザを編集する権限',1);
INSERT INTO `gl_features`VALUES (6,'user.delete','ユーザを削除する権限',1);
INSERT INTO `gl_features`VALUES (7,'user.mail','メンバーにEメールを送信する権限',1);
INSERT INTO `gl_features`VALUES (8,'syndication.edit','フィードを管理する権限',1);
INSERT INTO `gl_features`VALUES (9,'webservices.atompub','Atompubウェブサービスル使用する権限',1);
INSERT INTO `gl_features`VALUES (10,'block.edit','ブロックを編集する権限',1);
INSERT INTO `gl_features`VALUES (11,'topic.edit','話題を編集する権限',1);
INSERT INTO `gl_features`VALUES (13,'plugin.edit','プラグインを編集する権限',1);
INSERT INTO `gl_features`VALUES (14,'group.edit','グループを編集する権限',1);
INSERT INTO `gl_features`VALUES (15,'group.delete','グループを削除する権限',1);
INSERT INTO `gl_features`VALUES (16,'block.delete','ブロックを削除する権限',1);
INSERT INTO `gl_features`VALUES (17,'plugin.install','Can install/uninstall plugins',1);
INSERT INTO `gl_features`VALUES (18,'plugin.upload','Can upload new plugins',1);
INSERT INTO `gl_features`VALUES (19,'group.assign','Ability to assign users to groups',1);
INSERT INTO `gl_features`VALUES (20,'comment.moderate','Ability to moderate comments',1);
INSERT INTO `gl_features`VALUES (21,'comment.submit','Comments are automatically published',1);
INSERT INTO `gl_features`VALUES (30,'japanize.edit','Access to Japanize  editor',0);
INSERT INTO `gl_features`VALUES (69,'staticpages.PHP','Ability to use PHP in static pages',0);
INSERT INTO `gl_features`VALUES (68,'staticpages.delete','Ability to delete static pages',0);
INSERT INTO `gl_features`VALUES (67,'staticpages.edit','Access to Static Pages editor',0);
INSERT INTO `gl_features`VALUES (137,'dbman.edit','Access to Dbman editor',0);
INSERT INTO `gl_features`VALUES (35,'dataproxy.admin','DataProxy Admin',0);
INSERT INTO `gl_features`VALUES (53,'sitemap.admin','Sitemap Admin',0);
INSERT INTO `gl_features`VALUES (42,'tkgmaps.admin','GoogleMaps Admin',0);
INSERT INTO `gl_features`VALUES (43,'navman.admin','Navman Admin',0);
INSERT INTO `gl_features`VALUES (58,'autoping.edit','Access to Auto Ping editor',0);
INSERT INTO `gl_features`VALUES (155,'config.xmlsitemap.tab_main','Access to configure general XMLSitemap settings',0);
INSERT INTO `gl_features`VALUES (70,'assist.edit','Access to Assist  editor',0);
INSERT INTO `gl_features`VALUES (63,'tinymce.edit','Access to TinyMCE editor',0);
INSERT INTO `gl_features`VALUES (65,'twitter.edit','Access to Twitter editor',0);
INSERT INTO `gl_features`VALUES (66,'htmlfilter.skip','Skip filtering posts for HTML',1);
INSERT INTO `gl_features`VALUES (71,'banner.edit','Access to banner editor',0);
INSERT INTO `gl_features`VALUES (72,'banner.moderate','Ability to moderate pending banner',0);
INSERT INTO `gl_features`VALUES (73,'banner.submit','May skip the banner submission queue',0);
INSERT INTO `gl_features`VALUES (74,'googleanalytics.admi','GoogleAnalytics Admin',0);
INSERT INTO `gl_features`VALUES (75,'wkymlmguser.admin','メルマガユーザ Admin',0);
INSERT INTO `gl_features`VALUES (131,'assist.admin','Full access to Assist plugin',0);
INSERT INTO `gl_features`VALUES (79,'config.Core.tab_site','Access to configure site',1);
INSERT INTO `gl_features`VALUES (80,'config.Core.tab_mail','Access to configure mail',1);
INSERT INTO `gl_features`VALUES (81,'config.Core.tab_syndication','Access to configure syndication',1);
INSERT INTO `gl_features`VALUES (82,'config.Core.tab_paths','Access to configure paths',1);
INSERT INTO `gl_features`VALUES (83,'config.Core.tab_pear','Access to configure PEAR',1);
INSERT INTO `gl_features`VALUES (84,'config.Core.tab_mysql','Access to configure MySQL',1);
INSERT INTO `gl_features`VALUES (85,'config.Core.tab_search','Access to configure search',1);
INSERT INTO `gl_features`VALUES (86,'config.Core.tab_story','Access to configure story',1);
INSERT INTO `gl_features`VALUES (87,'config.Core.tab_trackback','Access to configure trackback',1);
INSERT INTO `gl_features`VALUES (88,'config.Core.tab_pingback','Access to configure pingback',1);
INSERT INTO `gl_features`VALUES (89,'config.Core.tab_theme','Access to configure theme',1);
INSERT INTO `gl_features`VALUES (90,'config.Core.tab_theme_advanced','Access to configure theme advanced settings',1);
INSERT INTO `gl_features`VALUES (91,'config.Core.tab_admin_block','Access to configure admin block',1);
INSERT INTO `gl_features`VALUES (92,'config.Core.tab_topics_block','Access to configure topics block',1);
INSERT INTO `gl_features`VALUES (93,'config.Core.tab_whosonline_block','Access to configure who\'s online block',1);
INSERT INTO `gl_features`VALUES (94,'config.Core.tab_whatsnew_block','Access to configure what\'s new block',1);
INSERT INTO `gl_features`VALUES (95,'config.Core.tab_users','Access to configure users',1);
INSERT INTO `gl_features`VALUES (96,'config.Core.tab_spamx','Access to configure Spam-x',1);
INSERT INTO `gl_features`VALUES (97,'config.Core.tab_login','Access to configure login settings',1);
INSERT INTO `gl_features`VALUES (98,'config.Core.tab_user_submission','Access to configure user submission',1);
INSERT INTO `gl_features`VALUES (99,'config.Core.tab_submission','Access to configure submission settings',1);
INSERT INTO `gl_features`VALUES (100,'config.Core.tab_comments','Access to configure comments',1);
INSERT INTO `gl_features`VALUES (101,'config.Core.tab_imagelib','Access to configure image library',1);
INSERT INTO `gl_features`VALUES (102,'config.Core.tab_upload','Access to configure upload',1);
INSERT INTO `gl_features`VALUES (103,'config.Core.tab_articleimg','Access to configure images in article',1);
INSERT INTO `gl_features`VALUES (104,'config.Core.tab_topicicon','Access to configure topic icons',1);
INSERT INTO `gl_features`VALUES (105,'config.Core.tab_userphoto','Access to configure photos',1);
INSERT INTO `gl_features`VALUES (106,'config.Core.tab_gravatar','Access to configure gravatar',1);
INSERT INTO `gl_features`VALUES (107,'config.Core.tab_language','Access to configure language',1);
INSERT INTO `gl_features`VALUES (108,'config.Core.tab_locale','Access to configure locale',1);
INSERT INTO `gl_features`VALUES (109,'config.Core.tab_cookies','Access to configure cookies',1);
INSERT INTO `gl_features`VALUES (110,'config.Core.tab_misc','Access to configure miscellaneous settings',1);
INSERT INTO `gl_features`VALUES (111,'config.Core.tab_debug','Access to configure debug',1);
INSERT INTO `gl_features`VALUES (112,'config.Core.tab_daily_digest','Access to configure daily digest',1);
INSERT INTO `gl_features`VALUES (113,'config.Core.tab_htmlfilter','Access to configure HTML filtering',1);
INSERT INTO `gl_features`VALUES (114,'config.Core.tab_censoring','Access to configure censoring',1);
INSERT INTO `gl_features`VALUES (115,'config.Core.tab_iplookup','Access to configure IP lookup',1);
INSERT INTO `gl_features`VALUES (116,'config.Core.tab_permissions','Access to configure default permissions for story, topic, block and autotags',1);
INSERT INTO `gl_features`VALUES (117,'config.Core.tab_webservices','Access to configure webservices',1);
INSERT INTO `gl_features`VALUES (144,'config.spamx.tab_modules','Access to configure Spam-x modules',0);
INSERT INTO `gl_features`VALUES (153,'monitor.admin','Full access to Monitor plugin',0);
INSERT INTO `gl_features`VALUES (154,'config.captcha.tab_main','Access to configure general captcha settings',0);
INSERT INTO `gl_features`VALUES (123,'config.staticpages.tab_main','Access to configure static pages main settings',0);
INSERT INTO `gl_features`VALUES (124,'config.staticpages.tab_whatsnew','Access to configure static pages what\'s new block',0);
INSERT INTO `gl_features`VALUES (125,'config.staticpages.tab_search','Access to configure static pages search results',0);
INSERT INTO `gl_features`VALUES (126,'config.staticpages.tab_permissions','Access to configure static pages default permissions',0);
INSERT INTO `gl_features`VALUES (127,'config.staticpages.tab_autotag_permissions','Access to configure static pages autotag usage permissions',0);
INSERT INTO `gl_features`VALUES (168,'config.autotags.tab_main','Access to configure general autotag settings',0);
INSERT INTO `gl_features`VALUES (166,'autotags.edit','Access to autotags editor',0);
INSERT INTO `gl_features`VALUES (167,'autotags.PHP','Ability to create Autotags which use a PHP function',0);
INSERT INTO `gl_features`VALUES (136,'jquery.admin','Full access to jQuery plugin',0);
INSERT INTO `gl_features`VALUES (138,'tinymce.edit','Access to TinyMCE editor',0);
INSERT INTO `gl_features`VALUES (145,'filemanager.admin','Ability to use File Manager',0);
INSERT INTO `gl_features`VALUES (146,'config.Filemanager.tab_general','Access to configure Filemanager General Settings',0);
INSERT INTO `gl_features`VALUES (147,'config.Filemanager.tab_upload','Access to configure Filemanager Upload Settings',0);
INSERT INTO `gl_features`VALUES (148,'config.Filemanager.tab_images','Access to configure Filemanager Images Settings',0);
INSERT INTO `gl_features`VALUES (149,'config.Filemanager.tab_videos','Access to configure Filemanager Videos Settings',0);
INSERT INTO `gl_features`VALUES (150,'config.Filemanager.tab_audios','Access to configure Filemanager Audios Settings',0);
INSERT INTO `gl_features`VALUES (151,'config.googleanalytics.tab_main','Access to configure general googleanalytics settings',0);
INSERT INTO `gl_features`VALUES (152,'config.googleanalytics.tab_mobilebotua','Access to configure googleanalytics mobile bot user agent',0);
INSERT INTO `gl_features`VALUES (156,'config.xmlsitemap.tab_pri','Access to configure XMLSitemap priorities',0);
INSERT INTO `gl_features`VALUES (157,'config.xmlsitemap.tab_freq','Access to configure XMLSitemap update frequency',0);
INSERT INTO `gl_features`VALUES (159,'mediagallery.admin','Ability to administer the Media Gallery Plugin',0);
INSERT INTO `gl_features`VALUES (160,'mediagallery.config','Ability to configure the Media Gallery Plugin',0);
INSERT INTO `gl_features`VALUES (161,'databox.admin','Full access to DataBox plugin',0);
INSERT INTO `gl_features`VALUES (162,'databox.submit','Can submit data to DataBox plugin',0);
INSERT INTO `gl_features`VALUES (163,'databox.edit','Can edit data to DataBox plugin',0);
INSERT INTO `gl_features`VALUES (164,'language.edit','Can manage Language Settings',1);
INSERT INTO `gl_features`VALUES (165,'theme.edit','Access to theme settings',1);
INSERT INTO `gl_features`VALUES (169,'config.autotags.tab_autotag_permissions','Access to configure default autotag usage permissions',0);
INSERT INTO `gl_features`VALUES (170,'langsel.admin','Full access to Language Selection Block plugin',0);
INSERT INTO `gl_features`VALUES (171,'recaptcha.edit','Access to reCAPTCHA editor',0);
INSERT INTO `gl_features`VALUES (172,'custommenu.admin','CustomMenu Admin',0);
INSERT INTO `gl_features`VALUES (173,'config.custommenu.tab_main','Access to configure general custommenu settings',0);
INSERT INTO `gl_features`VALUES (174,'config.custommenu.tab_permissions','Access to configure custommenu default permissions',0);
INSERT INTO `gl_features`VALUES (175,'spamx.admin','Full access to Spam-X plugin',0);
INSERT INTO `gl_features`VALUES (176,'spamx.skip','Skip checking posts for Spam',0);
INSERT INTO `gl_features`VALUES (177,'config.spamx.tab_main','Access to configure Spam-x main settings',0);
INSERT INTO `gl_features`VALUES (178,'config.spamx.tab_modules','Access to configure Spam-x modules',0);

--
-- Table structure for table `gl_group_assignments`
--


CREATE TABLE `gl_group_assignments` (
  `ug_main_grp_id` mediumint(8) NOT NULL DEFAULT 0,
  `ug_uid` mediumint(8) unsigned DEFAULT NULL,
  `ug_grp_id` mediumint(8) unsigned DEFAULT NULL,
  KEY `group_assignments_ug_main_grp_id` (`ug_main_grp_id`),
  KEY `group_assignments_ug_uid` (`ug_uid`),
  KEY `ug_main_grp_id` (`ug_main_grp_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_group_assignments`
--

INSERT INTO `gl_group_assignments`VALUES (2,1,NULL);
INSERT INTO `gl_group_assignments`VALUES (3,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (4,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (6,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (9,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (10,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (11,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (77,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (76,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (75,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (12,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (9,NULL,11);
INSERT INTO `gl_group_assignments`VALUES (74,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (1,4,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,2,NULL);
INSERT INTO `gl_group_assignments`VALUES (5,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (8,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (14,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (15,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (20,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (45,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (13,3,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,3,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,3,NULL);
INSERT INTO `gl_group_assignments`VALUES (23,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (36,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (27,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (28,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (13,4,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,4,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,5,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,5,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,5,NULL);
INSERT INTO `gl_group_assignments`VALUES (57,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (55,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,7,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,7,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,7,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,2,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,2,NULL);
INSERT INTO `gl_group_assignments`VALUES (47,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (48,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (55,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (2,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (49,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (73,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (47,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (4,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (14,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (15,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (23,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (48,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (27,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (11,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (20,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (12,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (28,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (10,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (36,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (45,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (3,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (5,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (6,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (9,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (8,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (49,8,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,12,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,12,NULL);
INSERT INTO `gl_group_assignments`VALUES (53,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (47,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (4,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (14,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (15,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (53,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (23,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (58,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (62,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (48,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (27,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (11,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (20,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (13,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (12,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (28,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (10,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (36,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (45,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (3,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (5,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (6,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (9,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (8,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (49,6,NULL);
INSERT INTO `gl_group_assignments`VALUES (61,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (63,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (64,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (66,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (13,223,NULL);
INSERT INTO `gl_group_assignments`VALUES (2,223,NULL);
INSERT INTO `gl_group_assignments`VALUES (1,223,NULL);
INSERT INTO `gl_group_assignments`VALUES (67,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (68,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (69,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (70,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (71,NULL,1);
INSERT INTO `gl_group_assignments`VALUES (72,NULL,1);

--
-- Table structure for table `gl_groups`
--


CREATE TABLE `gl_groups` (
  `grp_id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `grp_name` varchar(50) NOT NULL DEFAULT '',
  `grp_descr` varchar(255) NOT NULL DEFAULT '',
  `grp_gl_core` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `grp_default` tinyint(1) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`grp_id`),
  UNIQUE KEY `grp_name` (`grp_name`)
) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_groups`
--

INSERT INTO `gl_groups`VALUES (1,'Root','サイト管理者',1,0);
INSERT INTO `gl_groups`VALUES (2,'All Users','すべてのユーザ',1,0);
INSERT INTO `gl_groups`VALUES (3,'Story Admin','記事管理者',1,0);
INSERT INTO `gl_groups`VALUES (4,'Block Admin','ブロック管理者',1,0);
INSERT INTO `gl_groups`VALUES (5,'Syndication Admin','フィード管理者',1,0);
INSERT INTO `gl_groups`VALUES (6,'Topic Admin','話題管理者',1,0);
INSERT INTO `gl_groups`VALUES (7,'Remote Users','リモートユーザ',1,0);
INSERT INTO `gl_groups`VALUES (8,'Webservices Users','WebサービスAPIユーザ',0,0);
INSERT INTO `gl_groups`VALUES (9,'User Admin','ユーザ管理者',1,0);
INSERT INTO `gl_groups`VALUES (10,'Plugin Admin','プラグイン管理者',1,0);
INSERT INTO `gl_groups`VALUES (11,'Group Admin','グループ管理者兼ユーザ管理者',1,0);
INSERT INTO `gl_groups`VALUES (12,'Mail Admin','メール管理者',1,0);
INSERT INTO `gl_groups`VALUES (13,'Logged-in Users','すべての登録ユーザ',1,0);
INSERT INTO `gl_groups`VALUES (14,'Comment Admin','コメント管理者',1,0);
INSERT INTO `gl_groups`VALUES (15,'Comment Submitters','コメント承認者',0,0);
INSERT INTO `gl_groups`VALUES (20,'Japanize Admin','日本語化管理者',0,0);
INSERT INTO `gl_groups`VALUES (45,'Static Page Admin','Users in this group can administer the Static Pages plugin',0,0);
INSERT INTO `gl_groups`VALUES (58,'Dbman Admin','Users in this group can administer the Dbman plugin',0,0);
INSERT INTO `gl_groups`VALUES (23,'DataProxy Admin','データプロクシー管理者',0,0);
INSERT INTO `gl_groups`VALUES (36,'Sitemap Admin','サイトマップ管理者',0,0);
INSERT INTO `gl_groups`VALUES (27,'GoogleMaps Admin','GoogleMaps管理者',0,0);
INSERT INTO `gl_groups`VALUES (28,'Navman Admin','Has full access to Navman features',0,0);
INSERT INTO `gl_groups`VALUES (62,'Monitor Admin','Users in this group can administer the Monitor plugin',0,0);
INSERT INTO `gl_groups`VALUES (55,'Assist Admin','Has full access to Assist features',0,0);
INSERT INTO `gl_groups`VALUES (47,'Banner Admin','Has full access to banner features',0,0);
INSERT INTO `gl_groups`VALUES (48,'GoogleAnalytics Admin','Has full access to googleanalytics features',0,0);
INSERT INTO `gl_groups`VALUES (49,'メルマガユーザ Admin','メルマガユーザ Admin',0,0);
INSERT INTO `gl_groups`VALUES (53,'Configuration Admin','Has full access to configuration',1,0);
INSERT INTO `gl_groups`VALUES (73,'Autotags Admin','Has full access to Autotags features',0,0);
INSERT INTO `gl_groups`VALUES (57,'jQuery Admin','Users in this group can administer the jQuery plugin',0,0);
INSERT INTO `gl_groups`VALUES (61,'Filemanager Admin','Has full access to File Manager',1,0);
INSERT INTO `gl_groups`VALUES (63,'Captcha Admin','Has full access to Captcha features',0,0);
INSERT INTO `gl_groups`VALUES (64,'XMLSitemap Admin','Has full access to XMLSitemap features',0,0);
INSERT INTO `gl_groups`VALUES (66,'mediagallery Admin','Users in this group can administer the Media Gallery plugin',0,0);
INSERT INTO `gl_groups`VALUES (67,'mediagallery Config','Users in this group can configure the Media Gallery plugin',0,0);
INSERT INTO `gl_groups`VALUES (68,'DataBox Admin','Has full access to DataBox features',0,0);
INSERT INTO `gl_groups`VALUES (69,'DataBox Submitters','Can submit data to DataBox plugin',0,0);
INSERT INTO `gl_groups`VALUES (70,'DataBox Editor','Can edit data to DataBox plugin',0,0);
INSERT INTO `gl_groups`VALUES (71,'Language Admin','Has full access to language',1,0);
INSERT INTO `gl_groups`VALUES (72,'Theme Admin','Has full access to themes',1,0);
INSERT INTO `gl_groups`VALUES (74,'Language Selection Block Admin','Users in this group can administer the Language Selection Block plugin',0,0);
INSERT INTO `gl_groups`VALUES (75,'reCAPTCHA Admin','Users in this group can administer the ReCAPTCHA plugin',0,0);
INSERT INTO `gl_groups`VALUES (76,'CustomMenu Admin','Has full access to CustomMenu features',0,0);
INSERT INTO `gl_groups`VALUES (77,'spamx Admin','Users in this group can administer the Spam-X plugin',0,0);

--
-- Table structure for table `gl_language_items`
--


CREATE TABLE `gl_language_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `var_name` varchar(30) NOT NULL,
  `language` varchar(30) NOT NULL,
  `name` varchar(30) NOT NULL,
  `value` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_language_items`
--


--
-- Table structure for table `gl_maillist`
--


CREATE TABLE `gl_maillist` (
  `code` int(1) NOT NULL DEFAULT 0,
  `name` char(32) DEFAULT NULL,
  PRIMARY KEY (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_maillist`
--

INSERT INTO `gl_maillist`VALUES (0,'メールダイジェストを送信しない');
INSERT INTO `gl_maillist`VALUES (1,'メールダイジェストを送信する');

--
-- Table structure for table `gl_menuitems`
--


CREATE TABLE `gl_menuitems` (
  `mid` varchar(40) NOT NULL DEFAULT '',
  `pmid` varchar(40) NOT NULL DEFAULT '',
  `is_enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `type` varchar(20) NOT NULL DEFAULT 'custom',
  `mode` varchar(20) NOT NULL DEFAULT 'fixation',
  `label` varchar(48) DEFAULT NULL,
  `label_var` varchar(48) DEFAULT NULL,
  `php_function` varchar(48) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `icon_url` varchar(255) DEFAULT NULL,
  `class_name` varchar(48) DEFAULT NULL,
  `tid` varchar(20) NOT NULL DEFAULT 'all',
  `menuorder` smallint(5) unsigned NOT NULL DEFAULT 1,
  `pattern` varchar(255) DEFAULT NULL,
  `is_preg` tinyint(1) NOT NULL DEFAULT 0,
  `owner_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `group_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 2,
  PRIMARY KEY (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_menuitems`
--

INSERT INTO `gl_menuitems`VALUES ('home','',1,'gldefault','variable','ホーム','LANG01[90]',NULL,'[site_url]/',NULL,NULL,'all',10,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('contribute','',1,'gldefault','php','記事投稿','LANG01[71]','phpmenuitem_contribute','[site_url]/submit.php?type=story',NULL,NULL,'all',20,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('search','',1,'gldefault','variable','検索オプション','LANG01[75]',NULL,'[site_url]/search.php',NULL,NULL,'all',30,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('stats','',1,'gldefault','variable','サイト情報','LANG01[76]',NULL,'[site_url]/stats.php',NULL,NULL,'all',40,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('directory','',1,'gldefault','variable','記事一覧','LANG01[117]',NULL,'[site_url]/directory.php',NULL,NULL,'all',50,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('prefs','',0,'gldefault','variable','マイアカウント','LANG01[48]',NULL,'[site_url]/usersettings.php?mode=edit',NULL,NULL,'all',60,NULL,0,2,76,3,2,2,0);
INSERT INTO `gl_menuitems`VALUES ('login','',1,'custom','php','ユーザー機能','','phpmenuitem_login','',NULL,NULL,'all',140,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('banner','',0,'plugin','fixation','バナー','',NULL,'https://www.yokosojapan.net/banner/index.php',NULL,NULL,'all',70,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('sitemap','',1,'plugin','fixation','サイトマップ','',NULL,'https://www.yokosojapan.net/sitemap/index.php',NULL,NULL,'all',80,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('mediagallery','',1,'plugin','fixation','メディアギャラリー','',NULL,'https://www.yokosojapan.net/mediagallery/index.php',NULL,NULL,'all',90,NULL,0,2,76,3,2,2,2);
INSERT INTO `gl_menuitems`VALUES ('medialist_1section','medialist_all',1,'custom','fixation','1section','','','/staticpages/index.php/_medialist_1section','','','all',110,'',0,2,2,3,2,0,0);
INSERT INTO `gl_menuitems`VALUES ('_medialist_sections','medialist_all',1,'custom','fixation','sections','','','/staticpages/index.php/_medialist_sections','','','all',120,'',0,2,2,3,2,0,0);
INSERT INTO `gl_menuitems`VALUES ('_medialist_sub','medialist_all',1,'custom','fixation','sub','','','/staticpages/index.php/_medialist_sub','','','all',130,'',0,2,2,3,2,0,0);
INSERT INTO `gl_menuitems`VALUES ('medialist_all','',1,'custom','fixation','開発メディアリスト一覧','','','/staticpages/index.php/_medialist_all','','','all',100,'',0,2,2,3,2,0,0);

--
-- Table structure for table `gl_mg_albums`
--


CREATE TABLE `gl_mg_albums` (
  `album_id` int(11) NOT NULL DEFAULT 0,
  `album_title` varchar(255) NOT NULL DEFAULT '',
  `album_desc` text NOT NULL,
  `album_parent` int(11) NOT NULL DEFAULT 0,
  `album_order` int(11) NOT NULL DEFAULT 0,
  `skin` varchar(255) NOT NULL DEFAULT 'default',
  `hidden` tinyint(4) NOT NULL DEFAULT 0,
  `podcast` tinyint(4) NOT NULL DEFAULT 0,
  `mp3ribbon` tinyint(4) NOT NULL DEFAULT 0,
  `album_cover` varchar(40) NOT NULL DEFAULT '-1',
  `album_cover_filename` varchar(255) DEFAULT '',
  `media_count` int(11) unsigned NOT NULL DEFAULT 0,
  `album_disk_usage` bigint(20) unsigned NOT NULL DEFAULT 0,
  `last_update` int(11) NOT NULL DEFAULT 0,
  `album_views` int(11) NOT NULL DEFAULT 0,
  `enable_album_views` tinyint(4) NOT NULL DEFAULT 0,
  `album_view_type` tinyint(4) NOT NULL DEFAULT 0,
  `image_skin` varchar(255) NOT NULL DEFAULT 'mgShadow',
  `album_skin` varchar(255) NOT NULL DEFAULT 'mgAlbum',
  `display_skin` varchar(255) NOT NULL DEFAULT 'mgShadow',
  `enable_comments` tinyint(4) NOT NULL DEFAULT 0,
  `exif_display` tinyint(4) NOT NULL DEFAULT 0,
  `enable_rating` tinyint(4) NOT NULL DEFAULT 0,
  `va_playback` tinyint(4) NOT NULL DEFAULT 0,
  `playback_type` tinyint(4) NOT NULL DEFAULT 0,
  `usealternate` tinyint(4) NOT NULL DEFAULT 0,
  `tn_attached` tinyint(4) NOT NULL DEFAULT 0,
  `tnheight` int(11) NOT NULL DEFAULT 0,
  `tnwidth` int(11) NOT NULL DEFAULT 0,
  `enable_slideshow` tinyint(4) NOT NULL DEFAULT 0,
  `enable_random` tinyint(4) NOT NULL DEFAULT 0,
  `enable_views` tinyint(4) NOT NULL DEFAULT 0,
  `enable_keywords` tinyint(4) NOT NULL DEFAULT 0,
  `display_album_desc` tinyint(4) NOT NULL DEFAULT 0,
  `enable_sort` tinyint(4) NOT NULL DEFAULT 0,
  `enable_rss` tinyint(4) NOT NULL DEFAULT 0,
  `enable_postcard` tinyint(4) NOT NULL DEFAULT 0,
  `albums_first` tinyint(4) NOT NULL DEFAULT 1,
  `allow_download` tinyint(4) NOT NULL DEFAULT 0,
  `full_display` tinyint(4) NOT NULL DEFAULT 0,
  `tn_size` tinyint(4) NOT NULL DEFAULT 0,
  `max_image_height` int(11) NOT NULL DEFAULT 0,
  `max_image_width` int(11) NOT NULL DEFAULT 0,
  `max_filesize` bigint(20) unsigned NOT NULL DEFAULT 0,
  `display_image_size` tinyint(4) NOT NULL DEFAULT 2,
  `display_rows` tinyint(4) NOT NULL DEFAULT 3,
  `display_columns` tinyint(4) NOT NULL DEFAULT 3,
  `valid_formats` int(11) unsigned NOT NULL DEFAULT 65535,
  `filename_title` tinyint(4) NOT NULL DEFAULT 0,
  `shopping_cart` tinyint(4) NOT NULL DEFAULT 0,
  `rsschildren` tinyint(4) NOT NULL DEFAULT 0,
  `wm_auto` tinyint(4) NOT NULL DEFAULT 0,
  `wm_id` int(11) NOT NULL DEFAULT 0,
  `opacity` int(11) NOT NULL DEFAULT 0,
  `wm_location` tinyint(4) NOT NULL DEFAULT 0,
  `album_sort_order` tinyint(4) NOT NULL DEFAULT 0,
  `member_uploads` tinyint(4) NOT NULL DEFAULT 0,
  `moderate` tinyint(4) NOT NULL DEFAULT 0,
  `email_mod` tinyint(4) NOT NULL DEFAULT 0,
  `featured` tinyint(4) NOT NULL DEFAULT 0,
  `cbposition` tinyint(1) NOT NULL DEFAULT 0,
  `cbpage` varchar(20) NOT NULL DEFAULT '',
  `owner_id` mediumint(9) NOT NULL DEFAULT 0,
  `group_id` mediumint(9) NOT NULL DEFAULT 0,
  `mod_group_id` mediumint(9) NOT NULL DEFAULT 0,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`album_id`),
  KEY `album_parent` (`album_parent`),
  KEY `last_update` (`last_update`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_albums`
--

INSERT INTO `gl_mg_albums`VALUES (1,'Block banner','',0,10,'default',1,0,0,'-1','a_image99',3,398064,1435230167,0,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,1,1,0,0,1,0,0,0,2,4,3,983039,0,0,0,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,3,2,2);
INSERT INTO `gl_mg_albums`VALUES (2,'TOP PAGE','',0,20,'default',1,0,0,'2015100108350388','e_tophpp',8,4578118,1583778534,0,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,1,1,0,0,1,0,0,0,2,4,3,983039,0,0,0,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,3,2,2);
INSERT INTO `gl_mg_albums`VALUES (3,'banner02','',1,30,'default',0,0,0,'-1','1_interviews-thumb',1,14933,1435223130,535,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,1,1,0,0,1,0,0,0,2,4,3,983039,0,0,0,0,0,10,1,0,0,0,0,0,1,'all',4,66,66,3,3,2,2);
INSERT INTO `gl_mg_albums`VALUES (4,'記事','',0,40,'default',0,0,0,'-1','',0,79866,1643790518,837,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,0,1,0,0,2,0,0,0,2,4,3,983039,0,0,1,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,2,2,2);
INSERT INTO `gl_mg_albums`VALUES (5,'サンプル','',0,50,'default',0,0,0,'-1','1_45302288_1917582434961926_2168587206032097280_o',9,2375525,1548879192,1330,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,0,1,0,0,2,0,0,0,2,4,3,983039,0,0,1,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,2,2,2);
INSERT INTO `gl_mg_albums`VALUES (6,'2019年4月24日','',4,60,'default',0,0,0,'-1','',0,0,0,463,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,0,1,0,0,2,0,0,0,2,4,3,983039,0,0,1,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,2,2,2);
INSERT INTO `gl_mg_albums`VALUES (7,'バナー','',0,70,'default',0,0,0,'20220202205929861','5_a_image99-1',8,526469,1643803169,1360,1,0,'mgShadow','mgAlbum','mgShadow',1,0,1,0,2,0,0,200,200,1,1,1,1,0,1,0,0,1,0,0,2,0,0,0,2,4,3,983039,0,0,1,0,0,10,1,0,0,0,0,0,1,'all',3,66,66,3,2,2,2);

--
-- Table structure for table `gl_mg_category`
--


CREATE TABLE `gl_mg_category` (
  `cat_id` mediumint(9) NOT NULL DEFAULT 0,
  `cat_name` varchar(255) NOT NULL DEFAULT '',
  `cat_description` varchar(255) NOT NULL DEFAULT '',
  `cat_order` mediumint(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`cat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_category`
--


--
-- Table structure for table `gl_mg_exif_tags`
--


CREATE TABLE `gl_mg_exif_tags` (
  `name` varchar(255) NOT NULL DEFAULT '',
  `selected` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_exif_tags`
--

INSERT INTO `gl_mg_exif_tags`VALUES ('ApertureValue',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('ShutterSpeedValue',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('ISO',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocalLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Flash',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('ACDComment',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('AEWarning',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('AFFocusPosition',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('AFPointSelected',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('AFPointUsed',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Adapter',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Artist',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('BatteryLevel',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('BitsPerSample',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('BlurWarning',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('BrightnessValue',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CCDSensitivity',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CameraID',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CameraSerialNumber',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Color',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ColorMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ColorSpace',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ComponentsConfiguration',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CompressedBitsPerPixel',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Compression',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ContinuousTakingBracket',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Contrast',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Converter',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Copyright',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CustomFunctions',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('CustomerRender',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('DateTime',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('DigitalZoom',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('DigitalZoomRatio',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('DriveMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('EasyShooting',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExposureBiasValue',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExposureIndex',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExposureMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExposureProgram',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FileSource',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FirmwareVersion',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashBias',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashDetails',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashEnergy',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashPixVersion',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashSetting',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FlashStrength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocalPlaneResolutionUnit',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocalPlaneXResolution',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocalPlaneYResolution',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocalUnits',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Focus',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocusMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('FocusWarning',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('GainControl',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageAdjustment',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageDescription',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageHistory',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageNumber',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageSharpening',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageSize',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageType',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ImageWidth',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InterColorProfile',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Interlace',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InteroperabilityIFD.InteroperabilityIndex',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InteroperabilityIFD.InteroperabilityVersion',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InteroperabilityIFD.RelatedImageFileFormat',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InteroperabilityIFD.RelatedImageLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('InteroperabilityIFD.RelatedImageWidth',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('JPEGTables',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('JpegIFByteCount',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('JpegIFOffset',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('JpegQual',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('LightSource',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('LongFocalLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Macro',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Make',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('ManualFocusDistance',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('MaxApertureValue',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('MeteringMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Model',1);
INSERT INTO `gl_mg_exif_tags`VALUES ('Noise',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('NoiseReduction',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Orientation',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('OwnerName',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PhotometricInterpret',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PhotoshopSettings',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PictInfo',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PictureMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PlanarConfiguration',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Predictor',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('PrimaryChromaticities',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Quality',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ReferenceBlackWhite',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('RelatedSoundFile',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ResolutionUnit',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('RowsPerStrip',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SamplesPerPixel',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Saturation',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SceneCaptureMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SceneType',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SecurityClassification',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SelfTimer',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SelfTimerMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SensingMethod',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SequenceNumber',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Sharpness',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ShortFocalLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SlowSync',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Software',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SoftwareRelease',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SpatialFrequencyResponse',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SpecialMode',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SpectralSensitivity',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('StripByteCounts',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('StripOffsets',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubIFDs',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubfileType',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubjectDistance',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubjectLocation',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubsecTime',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubsecTimeDigitized',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('SubsecTimeOriginal',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TIFF/EPStandardID',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TileByteCounts',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TileLength',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TileOffsets',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TileWidth',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TimeZoneOffset',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Tone',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('TransferFunction',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('UserComment',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('Version',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('WhiteBalance',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('WhitePoint',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('YCbCrCoefficients',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('YCbCrPositioning',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('YCbCrSubSampling',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('xResolution',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('yResolution',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExifImageHeight',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('ExifImageWidth',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/SupplementalCategories',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Keywords',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Caption',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/CaptionWriter',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Headline',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/SpecialInstructions',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Category',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Byline',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/BylineTitle',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Credit',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/Source',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/CopyrightNotice',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/ObjectName',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/City',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/ProvinceState',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/CountryName',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/OriginalTransmissionReference',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/DateCreated',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/CopyrightFlag',0);
INSERT INTO `gl_mg_exif_tags`VALUES ('IPTC/TimeCreated',0);

--
-- Table structure for table `gl_mg_media`
--


CREATE TABLE `gl_mg_media` (
  `media_id` varchar(40) NOT NULL DEFAULT '0',
  `media_filename` varchar(255) NOT NULL DEFAULT '',
  `media_original_filename` varchar(255) NOT NULL DEFAULT '',
  `media_mime_ext` varchar(255) NOT NULL DEFAULT '',
  `media_exif` tinyint(4) NOT NULL DEFAULT 1,
  `mime_type` varchar(255) NOT NULL DEFAULT '',
  `media_title` varchar(255) NOT NULL DEFAULT '',
  `media_desc` text NOT NULL,
  `media_keywords` varchar(255) NOT NULL DEFAULT '',
  `media_time` int(11) NOT NULL DEFAULT 0,
  `media_views` int(11) NOT NULL DEFAULT 0,
  `media_comments` int(11) NOT NULL DEFAULT 0,
  `media_votes` int(11) NOT NULL DEFAULT 0,
  `media_rating` decimal(4,2) NOT NULL DEFAULT 0.00,
  `media_resolution_x` int(11) NOT NULL DEFAULT 0,
  `media_resolution_y` int(11) NOT NULL DEFAULT 0,
  `remote_media` tinyint(4) NOT NULL DEFAULT 0,
  `remote_url` text DEFAULT NULL,
  `media_tn_attached` tinyint(4) NOT NULL DEFAULT 0,
  `media_tn_image` varchar(255) NOT NULL DEFAULT '',
  `include_ss` tinyint(4) unsigned NOT NULL DEFAULT 1,
  `media_user_id` mediumint(9) NOT NULL DEFAULT 0,
  `media_user_ip` varchar(14) NOT NULL DEFAULT '',
  `media_approval` tinyint(3) NOT NULL DEFAULT 0,
  `media_type` tinyint(4) NOT NULL DEFAULT 0,
  `media_upload_time` int(11) NOT NULL DEFAULT 0,
  `media_category` int(11) NOT NULL DEFAULT 0,
  `media_watermarked` tinyint(4) NOT NULL DEFAULT 0,
  `artist` varchar(255) NOT NULL DEFAULT '',
  `album` varchar(255) NOT NULL DEFAULT '',
  `genre` varchar(255) NOT NULL DEFAULT '',
  `v100` tinyint(4) NOT NULL DEFAULT 0,
  `maint` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`media_id`),
  KEY `media_upload_time` (`media_upload_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_media`
--

INSERT INTO `gl_mg_media`VALUES ('20150625013412676','6_jpm1007','jpm1007.jpg','jpg',1,'image/jpeg','公益法人が企画・運営する実践的な内容','国土交通省所管の公益法人が企画・運営するインターンシップでの経験は今後の就職に必ず役立ちます。','',1435163655,0,0,0,0.00,0,0,0,'',0,'',0,3,'',0,0,1435163655,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625012522829','3_header','header.jpg','jpg',1,'image/jpeg','','','',1435159500,0,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1435163126,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625014602138','1_20150422internship_event_ja_1_original','20150422internship_event_ja_1_original.jpg','jpg',1,'image/jpeg','全国各地で募集中！！締め切り間近！','お待たせしました。今年で６年目を迎える、JPM留学生インターンシップの受付を開始しました。','',1435164364,0,0,0,0.00,0,0,0,'',0,'',0,3,'',0,0,1435164364,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625174123964','f__01','研修01.jpg','jpg',1,'image/jpeg','企業担当者と合同の研修','','',1435221705,0,0,0,0.00,0,0,0,'',0,'',0,4,'',0,0,1435221705,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625180530560','1_interviews-thumb','interviews-thumb.jpg','jpg',1,'image/jpeg','TOP　インタビュー','','',1435223154,989,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1435223154,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625194514568','7__ss','国際紅白ss.jpg','jpg',1,'image/jpeg','','','',1435229122,0,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1435229122,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20150625200242657','a_image99','image99.jpg','jpg',1,'image/jpeg','','','',1435230167,0,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1435230167,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('2015100108350388','e_tophpp','e_tophpphp.png','png',1,'image/png','『私たちは水を通してつながっている』','日本からはじまる、価値観の大転換\r\n『私たちは水を通してつながっている』\r\n','https://www.yokosojapan.net/article.php/20151005moviewater_feature_ja',1443634500,0,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1444068698,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20151001075014672','0_p1_','0_p1_2hp.png','png',1,'image/png','','日本からはじまる、価値観の大転換!!\r\n行動するのは、まさに今です!!','https://www.yokosojapan.net/article.php/20151001water_feature_ja',1443646440,1,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1444198735,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20151001075835139','0_p1_2','0_p1_hp.png','png',1,'image/png','','日本・日本人の役割とは？\r\n','https://www.yokosojapan.net/article.php/20151001water_feature_ja',1443650340,0,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1444067812,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('201907161434137','3_8p-2-thumb','8P-2-thumb.jpg','jpg',1,'image/jpeg','語学の本当のプロを目指す！！','','https://www.yokosojapan.net/article.php/life_%E8%AA%9E%E5%AD%A6%EF%BC%90%EF%BC%99%EF%BC%91%EF%BC%90_ja',1563255379,1456,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255379,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050105352','d_38501199_10156236372723580_8357990750104846336_n','38501199_10156236372723580_8357990750104846336_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879190,1558,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879190,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050102511','a_38478571_10213844470078584_7109436820785463296_n','38478571_10213844470078584_7109436820785463296_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879189,1657,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879189,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050101810','6_38471759_10156236372928580_98905082417905664_n','38471759_10156236372928580_98905082417905664_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879189,1583,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879189,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('2019013105005873','9_38433261_10156236372713580_1987123171328786432_n','38433261_10156236372713580_1987123171328786432_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879188,1590,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879188,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190716143412658','5_8p-3','8P-3.jpg','jpg',1,'image/jpeg','起業家を目指す君を協力にバック','','http://www.jigyo.ac.jp',1563255379,1472,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255379,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050055398','1_307229_199891830082331_161043762_n','307229_199891830082331_161043762_n.jpg','jpg',1,'image/jpeg','タイトルです。','','',1548879188,1548,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879188,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190716143414150','0_hij_banner','HIJ_banner.gif','gif',1,'image/gif','Homestay in Japan!!','','http://www.homestay-in-japan.com/',1563255380,1563,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255380,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('2019071614341542','b_lakeland-thumb','lakeland-thumb.jpg','jpg',1,'image/jpeg','LAKELAND JAPAN','','http://www.japan.lakeland.edu/',1563255380,1510,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255380,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050109957','8_44489505_2196060770403903_231222347518967808_n','44489505_2196060770403903_231222347518967808_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879190,1562,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879190,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050110513','a_44529190_2196714023671911_1760446441102245888_n','44529190_2196714023671911_1760446441102245888_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879191,1610,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879191,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050111489','4_44571488_1897486070304896_7260592516821417984_n','44571488_1897486070304896_7260592516821417984_n.jpg','jpg',1,'image/jpeg','タイトルです。','このメディアの説明をここに入力します。','',1548879191,1578,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879191,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190716143416116','e_souseiwater-thumb','souseiwater-thumb.jpg','jpg',1,'image/jpeg','環境問題解決の切り札','','https://www.yokosojapan.net/article.php/feature_%E5%89%B5%E7%94%9F%E6%B0%B4%EF%BC%91%EF%BC%90%EF%BC%90%EF%BC%96_ja',1563255380,1503,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255380,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190131050115896','1_45302288_1917582434961926_2168587206032097280_o','45302288_1917582434961926_2168587206032097280_o.jpg','jpg',1,'image/jpeg','タイトルです。','','',1548879192,1534,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1548879192,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190630014024435','6_irws2019','irws2020.jpg','jpg',1,'image/jpeg','第１０回　国際紅白歌合戦','参加者・ボランテイア募集中！！','http://www.irws.org/',1561826460,0,0,0,0.00,0,0,0,'',1,'',0,4,'',0,0,1583778296,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190716143415680','3_takashimadaira_banner','takashimadaira_banner.jpg','jpg',1,'image/jpeg','高島平再生プロジェクト','日本の再生はここからはじまる','https://www.yokosojapan.net/article.php/feature_%E9%AB%98%E5%B3%B6%E5%B9%B3_ja',1563255380,1620,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255380,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20190716143721983','b_gc_site','gc_site.jpg','jpg',1,'image/jpeg','Global Community','','http://globalcommunitystudent.web.fc2.com/',1563255443,1554,0,0,0.00,0,0,0,'',0,'',1,3,'',0,0,1563255443,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20200310032854467','a_irws2020','irws2020.jpg','jpg',1,'image/jpeg','第10回国際紅白歌合戦','参加者・ボランテイア募集中！！','http://www.irws.org/',1583778534,0,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1583778534,0,0,'','','',0,0);
INSERT INTO `gl_mg_media`VALUES ('20220202205929861','5_a_image99-1','a_image99-1.jpg','jpg',1,'image/jpeg','第11回国際紅白歌合戦','','http://irws.org',1643803169,884,0,0,0.00,0,0,0,'',0,'',1,4,'',0,0,1643803169,0,0,'','','',0,0);

--
-- Table structure for table `gl_mg_media_album_queue`
--


CREATE TABLE `gl_mg_media_album_queue` (
  `album_id` int(11) NOT NULL DEFAULT 0,
  `media_id` varchar(40) NOT NULL DEFAULT '0',
  `media_order` int(11) NOT NULL DEFAULT 0,
  KEY `media_id` (`media_id`),
  KEY `album_id` (`album_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_media_album_queue`
--


--
-- Table structure for table `gl_mg_media_albums`
--


CREATE TABLE `gl_mg_media_albums` (
  `album_id` int(11) NOT NULL DEFAULT 0,
  `media_id` varchar(40) NOT NULL DEFAULT '0',
  `media_order` int(11) NOT NULL DEFAULT 0,
  KEY `media_id` (`media_id`),
  KEY `album_id` (`album_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_media_albums`
--

INSERT INTO `gl_mg_media_albums`VALUES (2,'20150625014602138',10);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20150625013412676',20);
INSERT INTO `gl_mg_media_albums`VALUES (1,'20150625012522829',30);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20150625174123964',30);
INSERT INTO `gl_mg_media_albums`VALUES (3,'20150625180530560',10);
INSERT INTO `gl_mg_media_albums`VALUES (1,'20150625194514568',40);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20151001075014672',60);
INSERT INTO `gl_mg_media_albums`VALUES (2,'2015100108350388',40);
INSERT INTO `gl_mg_media_albums`VALUES (1,'20150625200242657',70);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20151001075835139',50);
INSERT INTO `gl_mg_media_albums`VALUES (7,'2019071614341542',40);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050102511',70);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050101810',60);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20190716143414150',50);
INSERT INTO `gl_mg_media_albums`VALUES (5,'2019013105005873',40);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20190716143412658',80);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050055398',20);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050105352',90);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20190630014024435',70);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050109957',110);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050110513',120);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050111489',130);
INSERT INTO `gl_mg_media_albums`VALUES (7,'201907161434137',70);
INSERT INTO `gl_mg_media_albums`VALUES (5,'20190131050115896',150);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20190716143415680',30);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20190716143416116',20);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20220202205929861',10);
INSERT INTO `gl_mg_media_albums`VALUES (7,'20190716143721983',60);
INSERT INTO `gl_mg_media_albums`VALUES (2,'20200310032854467',80);

--
-- Table structure for table `gl_mg_mediaqueue`
--


CREATE TABLE `gl_mg_mediaqueue` (
  `media_id` varchar(40) NOT NULL DEFAULT '0',
  `media_filename` varchar(255) NOT NULL DEFAULT '',
  `media_original_filename` varchar(255) NOT NULL DEFAULT '',
  `media_mime_ext` varchar(255) NOT NULL DEFAULT '',
  `media_exif` tinyint(4) NOT NULL DEFAULT 1,
  `mime_type` varchar(255) NOT NULL DEFAULT '',
  `media_title` varchar(255) NOT NULL DEFAULT '',
  `media_desc` text NOT NULL,
  `media_keywords` varchar(255) NOT NULL DEFAULT '',
  `media_time` int(11) NOT NULL DEFAULT 0,
  `media_views` int(11) NOT NULL DEFAULT 0,
  `media_comments` int(11) NOT NULL DEFAULT 0,
  `media_votes` int(11) NOT NULL DEFAULT 0,
  `media_rating` decimal(4,2) NOT NULL DEFAULT 0.00,
  `media_resolution_x` int(11) NOT NULL DEFAULT 0,
  `media_resolution_y` int(11) NOT NULL DEFAULT 0,
  `remote_media` tinyint(4) NOT NULL DEFAULT 0,
  `remote_url` text DEFAULT NULL,
  `media_tn_attached` tinyint(4) NOT NULL DEFAULT 0,
  `media_tn_image` varchar(255) NOT NULL DEFAULT '',
  `include_ss` tinyint(4) unsigned NOT NULL DEFAULT 1,
  `media_user_id` mediumint(9) NOT NULL DEFAULT 0,
  `media_user_ip` varchar(14) NOT NULL DEFAULT '',
  `media_approval` tinyint(3) NOT NULL DEFAULT 0,
  `media_type` tinyint(4) NOT NULL DEFAULT 0,
  `media_upload_time` int(11) NOT NULL DEFAULT 0,
  `media_category` int(11) NOT NULL DEFAULT 0,
  `media_watermarked` tinyint(4) NOT NULL DEFAULT 0,
  `artist` varchar(255) NOT NULL DEFAULT '',
  `album` varchar(255) NOT NULL DEFAULT '',
  `genre` varchar(255) NOT NULL DEFAULT '',
  `v100` tinyint(4) NOT NULL DEFAULT 0,
  `maint` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`media_id`),
  KEY `media_upload_time` (`media_upload_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_mediaqueue`
--


--
-- Table structure for table `gl_mg_playback_options`
--


CREATE TABLE `gl_mg_playback_options` (
  `media_id` varchar(40) NOT NULL DEFAULT '',
  `option_name` varchar(255) NOT NULL DEFAULT '',
  `option_value` varchar(255) NOT NULL DEFAULT '',
  UNIQUE KEY `media_id_2` (`media_id`,`option_name`),
  KEY `media_id` (`media_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_playback_options`
--


--
-- Table structure for table `gl_mg_rating`
--


CREATE TABLE `gl_mg_rating` (
  `id` int(11) unsigned NOT NULL DEFAULT 0,
  `ip_address` varchar(14) NOT NULL,
  `uid` mediumint(8) NOT NULL,
  `media_id` varchar(40) NOT NULL,
  `ratingdate` int(11) NOT NULL,
  `owner_id` mediumint(8) NOT NULL DEFAULT 2,
  PRIMARY KEY (`id`),
  KEY `owner_id` (`owner_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Table structure for table `gl_mg_sort`
--


CREATE TABLE `gl_mg_sort` (
  `sort_id` varchar(40) NOT NULL DEFAULT '',
  `sort_user` varchar(40) NOT NULL DEFAULT '',
  `sort_query` text NOT NULL,
  `sort_results` int(11) NOT NULL DEFAULT 0,
  `sort_datetime` int(11) NOT NULL DEFAULT 0,
  `referer` varchar(255) NOT NULL DEFAULT '',
  `keywords` varchar(255) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_sort`
--

INSERT INTO `gl_mg_sort`VALUES ('20240426012918247','1',' WHERE 1=1  AND ((m.media_keywords LIKE \'%http://www.jigyo.ac.jp%\') )',10,1714062558,'','http://www.jigyo.ac.jp');

--
-- Table structure for table `gl_mg_usage_tracking`
--


CREATE TABLE `gl_mg_usage_tracking` (
  `time` int(11) NOT NULL DEFAULT 0,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `user_name` varchar(127) NOT NULL DEFAULT '',
  `user_ip` varchar(16) NOT NULL DEFAULT '',
  `application` varchar(127) NOT NULL DEFAULT '',
  `album_title` varchar(127) NOT NULL DEFAULT '',
  `media_title` varchar(127) NOT NULL DEFAULT '',
  `media_id` varchar(40) NOT NULL DEFAULT '0',
  KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_usage_tracking`
--


--
-- Table structure for table `gl_mg_userprefs`
--


CREATE TABLE `gl_mg_userprefs` (
  `uid` mediumint(8) NOT NULL DEFAULT 0,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `display_rows` tinyint(4) NOT NULL DEFAULT 0,
  `display_columns` tinyint(4) NOT NULL DEFAULT 0,
  `mp3_player` tinyint(4) NOT NULL DEFAULT -1,
  `playback_mode` tinyint(4) NOT NULL DEFAULT -1,
  `tn_size` tinyint(4) NOT NULL DEFAULT 1,
  `quota` bigint(20) unsigned NOT NULL DEFAULT 0,
  `member_gallery` mediumint(8) NOT NULL DEFAULT 0,
  PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_userprefs`
--


--
-- Table structure for table `gl_mg_watermarks`
--


CREATE TABLE `gl_mg_watermarks` (
  `wm_id` int(11) NOT NULL DEFAULT 0,
  `owner_id` int(11) NOT NULL DEFAULT 0,
  `filename` varchar(255) NOT NULL DEFAULT '',
  `description` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`wm_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_mg_watermarks`
--

INSERT INTO `gl_mg_watermarks`VALUES (0,0,'blank.png','---');

--
-- Table structure for table `gl_navmmenuitems`
--


CREATE TABLE `gl_navmmenuitems` (
  `mid` varchar(40) NOT NULL DEFAULT '',
  `pmid` varchar(40) NOT NULL DEFAULT '',
  `gid` tinyint(1) NOT NULL DEFAULT 1,
  `is_enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `type` varchar(20) NOT NULL DEFAULT 'custom',
  `label` varchar(48) DEFAULT NULL,
  `label_var` varchar(48) DEFAULT NULL,
  `php_function` varchar(48) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `icon_url` varchar(255) DEFAULT NULL,
  `class_name` varchar(48) DEFAULT NULL,
  `tid` varchar(20) NOT NULL DEFAULT 'all',
  `menuorder` smallint(5) unsigned NOT NULL DEFAULT 1,
  `pattern` varchar(255) DEFAULT NULL,
  `opt_match` tinyint(1) NOT NULL DEFAULT 0,
  `contentid` varchar(40) NOT NULL DEFAULT '',
  `owner_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `group_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 2,
  PRIMARY KEY (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_navmmenuitems`
--

INSERT INTO `gl_navmmenuitems`VALUES ('home','',0,1,'gldefault','Home','LANG_NAVM_CUSTOM[1]','','[site_url]/index.php','','','all',10,'[site_url]/',1,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('contribute','',0,0,'gldefault','Contribute','LANG01[71]','contribute','[site_url]/submit.php?type=story','','drop','all',80,'@/submit\\\\.php\\\\?type=story|/admin/story\\\\.php\\\\?mode=edit@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('prefs','contribute',0,0,'gldefault','My Account','LANG01[48]','','[site_url]/usersettings.php?mode=edit','','','all',90,'/usersettings.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('login','contribute',0,0,'custom','Log In','','login','','','','all',100,'',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('search','',0,0,'gldefault','Advanced Search','LANG01[75]','','[site_url]/search.php','','','all',110,'/search.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('stats','',0,0,'gldefault','Site Statistics','LANG01[76]','','[site_url]/stats.php','','','all',120,'/stats.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('directory','',0,0,'gldefault','Directory','LANG01[117]','','[site_url]/directory.php','','','all',130,'/directory.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('ln_home','',1,1,'custom','Home','LANG01[90]','','[site_url]/','','','all',200,'',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('ln_search','',1,1,'custom','Advanced Search','LANG01[75]','','[site_url]/search.php','','','all',210,'/search.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('ln_stats','',1,1,'custom','Site Statistics','LANG01[76]','','[site_url]/stats.php','','drop','all',220,'/stats.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('ln_stats_clone_1','ln_stats',1,1,'custom','Site Statistics','LANG01[76]','','[site_url]/stats.php','','fly','all',230,'/stats.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('ln_stats_clone_2','ln_stats_clone_1',1,1,'custom','Site Statistics','LANG01[76]','','[site_url]/stats.php','','','all',240,'/stats.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_staticpage_spid','',2,1,'custom','[BC] Staticpage (sample)','','bc_staticpage','','','','all',250,'@index\\\\.php(\\\\?page=|/)spid@',2,'spid',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_search','',2,1,'custom','[BC] Advanced Search','LANG01[75]','','[site_url]/search.php','','','all',260,'/search.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_stats','',2,1,'custom','[BC] Site Statistics','LANG01[76]','','[site_url]/stats.php','','','all',270,'/stats.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_directory','',2,1,'custom','[BC] Directory','LANG01[117]','','[site_url]/directory.php','','','all',280,'/directory.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_usersettings','',2,1,'custom','[BC] My Account','LANG01[48]','','[site_url]/usersettings.php','','','all',290,'/usersettings.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_story_topic','',2,1,'custom','[BC] Story Topic List','','bc_topic_list','','','','all',300,'/liststory.php?tid=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_article','bc_story_topic',2,1,'custom','[BC] Article','','bc_article','','','','all',310,'@/article\\\\.php\\\\?story=|/article\\\\.php/@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_moderation','',2,1,'custom','[BC] Submissions','LANG01[10]','','[site_url]/admin/moderation.php','','','all',320,'/admin/moderation.php',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_admin_plugin','bc_moderation',2,1,'custom','[BC] Admin plugin','','bc_admin_plugin','','','','all',330,'@/admin/plugins/[^/]+/[^/]+\\\\.php@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_admin','bc_moderation',2,1,'custom','[BC] Admin','','bc_admin','','','','all',340,'@/admin/?([^/]+)\\\\.php@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_links','',2,1,'custom','[BC] Links','LANG_LINKS[14]','','[site_url]/links/index.php','','','all',350,'@(?<!plugins)/links/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_links_category','bc_links',2,1,'custom','[BC] Links category','','bc_links_category','','','','all',360,'/links/index.php?category=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_polls','',2,1,'custom','[BC] Polls','LANG_POLLS[\'polls\']','','[site_url]/polls/index.php','','','all',370,'@(?<!plugins)/polls/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_polls_topic','bc_polls',2,1,'custom','[BC] Polls topic','','bc_polls_topic','','','','all',380,'/polls/index.php?pid=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_calendar','',2,1,'custom','[BC] Calendar','LANG_CAL_1[16]','','[site_url]/calendar/index.php','','','all',390,'@(?<!plugins)/calendar/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_calendar_event','bc_calendar',2,1,'custom','[BC] Calendar event','','bc_calendar_event','','','','all',400,'/calendar/event.php?eid=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_calendarjp','',2,1,'custom','[BC] Calendarjp','LANG_CALJP_1[16]','','[site_url]/calendarjp/index.php','','','all',410,'@(?<!plugins)/calendarjp/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_calendarjp_event','bc_calendarjp',2,1,'custom','[BC] Calendarjp event','','bc_calendarjp_event','','','','all',420,'/calendarjp/event.php?eid=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_forum','',2,1,'custom','[BC] Forum','LANG_GF01[\'INDEXPAGE\']','','[site_url]/forum/index.php','','','all',430,'@(?<!plugins)/forum/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_forum_category','bc_forum',2,1,'custom','[BC] Forum category','','bc_forum_category','','','','all',440,'',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_forum_name','bc_forum_category',2,1,'custom','[BC] Forum name','','bc_forum_name','','','','all',450,'/forum/index.php?forum=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_forum_topic','bc_forum_name',2,1,'custom','[BC] Forum topic','','bc_forum_topic','','','','all',460,'/forum/viewtopic.php?showtopic=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_forum_etc','bc_forum',2,1,'custom','[BC] Forum etc','','bc_forum_etc','[site_url]/forum/index.php','','','all',470,'@(?<!plugins)/forum/(index|userprefs|notify|memberlist)\\\\.php@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_filemgmt','',2,1,'custom','[BC] Filemgmt','LANG_FILEMGMT[\'downloads\']','','[site_url]/filemgmt/index.php','','','all',480,'@(?<!plugins)/filemgmt/index\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_filemgmt_category','bc_filemgmt',2,1,'custom','[BC] Filemgmt category','','bc_filemgmt_category','','','','all',490,'/filemgmt/viewcat.php?cid=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_filemgmt_file','bc_filemgmt_category',2,1,'custom','[BC] Filemgmt file','','bc_filemgmt_file','','','','all',500,'/filemgmt/index.php?id=',0,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_dokuwiki','',2,1,'custom','[BC] Dokuwiki','LANG_DW00[\'menulabel\']','','[site_url]/dokuwiki/doku.php','','','all',510,'@(?<!plugins)/dokuwiki/doku\\\\.php$@',2,'',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('links','',0,0,'plugin','リンク','LANG_LINKS[114]',NULL,'[site_url]/links/index.php',NULL,NULL,'all',140,'@(?<!plugins)/links/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('calendar','',0,0,'plugin','カレンダ','LANG_CAL_1[16]',NULL,'[site_url]/calendar/index.php',NULL,NULL,'all',150,'@(?<!plugins)/calendar/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('sitemap','',0,0,'plugin','サイトマップ','LANG_SMAP[\'menu_label\']',NULL,'[site_url]/sitemap/index.php',NULL,NULL,'all',160,'@(?<!plugins)/sitemap/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('filemgmt','',0,0,'plugin','ダウンロード','LANG_FILEMGMT[\'downloads\']',NULL,'[site_url]/filemgmt/index.php',NULL,NULL,'all',170,'@(?<!plugins)/filemgmt/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('feature','',0,1,'custom','feature','LANG_NAVM_CUSTOM[2]','url_multilang','','','','all',20,'feature',0,'feature',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('international','',0,1,'custom','international','LANG_NAVM_CUSTOM[3]','url_multilang','','','','all',30,'international',0,'international',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('event','',0,1,'custom','event','LANG_NAVM_CUSTOM[4]','url_multilang','','','','all',40,'event',0,'event',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('life','',0,1,'custom','life','LANG_NAVM_CUSTOM[5]','url_multilang','','','','all',50,'life',0,'life',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('editor','',0,1,'custom','editor','LANG_NAVM_CUSTOM[6]','url_multilang','','','','all',60,'editor',0,'editor',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('banner','',0,0,'plugin','Banner','',NULL,'[site_url]/banner/index.php',NULL,NULL,'all',180,'@(?<!plugins)/banner/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('tutor','',0,1,'custom','tutor','LANG_NAVM_CUSTOM[7]','url_multilang','','','','all',70,'tutor',0,'tutor',2,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('contact','',3,1,'custom','お問い合わせ','LANG_NAVM_CUSTOM[8]','staticpage_multilang','[site_url]/staticpages/index.php/contact','','','all',590,'',0,'contact',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('wkymlmguser','',0,0,'plugin','メルマガユーザ','',NULL,'[site_url]/wkymlmguser/index.php',NULL,NULL,'all',190,'@(?<!plugins)/wkymlmguser/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('Newsletter','',3,1,'custom','Newsletter','','','/wkymlmguser/index.php?mode=create','','','all',580,'/wkymlmguser/index.php?mode=create',0,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_downloads','',2,1,'custom','[BC] Downloads','LANG_DLM[\'plugin_name\']','','[site_url]/downloads/index.php','','','all',520,'@(?<!plugins)/downloads/index\\\\.php$@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_downloads_category','bc_downloads',2,1,'custom','[BC] Downloads category','','bc_downloads_category','','','','all',530,'/downloads/index.php?cid=',0,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_downloads_file','bc_downloads_category',2,1,'custom','[BC] Downloads file','','bc_downloads_file','','','','all',540,'@/downloads/index\\\\.php\\\\?id=|/downloads/index\\\\.php/@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_mediagallery','',2,1,'custom','[BC] Mediagallery','LANG_MG00[\'plugin\']','','[site_url]/mediagallery/index.php','','','all',550,'@(?<!plugins)/mediagallery/index\\\\.php@',2,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_mediagallery_album','bc_mediagallery',2,1,'custom','[BC] Mediagallery album','','bc_mediagallery_album','','','','all',560,'/mediagallery/album.php',0,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('bc_mediagallery_media','bc_mediagallery_album',2,1,'custom','[BC] Mediagallery media','','bc_mediagallery_media','','','','all',570,'/mediagallery/media.php',0,'',3,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('mediagallery','',0,1,'plugin','メディアギャラリー','_MG_CONF[\'menulabel\']',NULL,'[site_url]/mediagallery/index.php',NULL,NULL,'all',600,'@(?<!plugins)/mediagallery/index\\\\.php@',2,'',4,28,3,2,2,2);
INSERT INTO `gl_navmmenuitems`VALUES ('databox','',0,1,'plugin','データ表示','',NULL,'[site_url]/databox/index.php',NULL,NULL,'all',601,'@(?<!plugins)/databox/index\\\\.php@',2,'',4,28,3,2,2,2);

--
-- Table structure for table `gl_navmmenus`
--


CREATE TABLE `gl_navmmenus` (
  `nid` varchar(40) NOT NULL DEFAULT '',
  `gid` tinyint(1) NOT NULL DEFAULT 1,
  `name` varchar(48) DEFAULT NULL,
  `is_enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `php_function` varchar(48) DEFAULT NULL,
  `tid` varchar(20) NOT NULL DEFAULT 'all',
  `class_name` varchar(48) DEFAULT NULL,
  `template_name` varchar(48) DEFAULT 'default',
  `var_name` tinyint(1) NOT NULL DEFAULT 0,
  `navorder` smallint(5) unsigned NOT NULL DEFAULT 1,
  `pattern` varchar(255) DEFAULT NULL,
  `render` tinyint(1) NOT NULL DEFAULT 0,
  `render_for` tinyint(1) NOT NULL DEFAULT 0,
  `opt_match` tinyint(1) NOT NULL DEFAULT 0,
  `owner_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `group_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 2,
  PRIMARY KEY (`nid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_navmmenus`
--

INSERT INTO `gl_navmmenus`VALUES ('global_navi_1',0,'Header Navigation  1',1,'','all','navi_001','default',0,20,'',0,0,0,2,28,3,2,2,2);
INSERT INTO `gl_navmmenus`VALUES ('info_navi',3,'Information Navi',1,'','all','info_navi','default',3,30,'',0,0,0,2,28,3,2,2,2);
INSERT INTO `gl_navmmenus`VALUES ('multilang_navi',0,'multilang_navi',1,'','all','','default',0,10,'',0,0,0,3,28,3,2,2,2);
INSERT INTO `gl_navmmenus`VALUES ('global_navi_4',1,'Block Navigation',0,'','all','bnavi_001','default',0,40,'',0,2,0,2,28,3,2,2,2);
INSERT INTO `gl_navmmenus`VALUES ('breadcrumbs',2,'Breadcrumbs',1,'','all','breadcrumbs','default',2,50,'',1,0,0,2,28,3,2,2,2);

--
-- Table structure for table `gl_pingservice`
--


CREATE TABLE `gl_pingservice` (
  `pid` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) DEFAULT NULL,
  `ping_url` varchar(255) DEFAULT NULL,
  `site_url` varchar(255) DEFAULT NULL,
  `method` varchar(80) DEFAULT NULL,
  `is_enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  PRIMARY KEY (`pid`),
  KEY `pingservice_is_enabled` (`is_enabled`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_pingservice`
--

INSERT INTO `gl_pingservice`VALUES (15,'BlogPeople','http://www.blogpeople.net/servlet/weblogUpdates','http://www.blogpeople.net/','weblogUpdates.ping',1);
INSERT INTO `gl_pingservice`VALUES (16,'ping.bloggers.jp','http://ping.bloggers.jp/rpc/','http://ping.bloggers.jp/','weblogUpdates.ping',1);
INSERT INTO `gl_pingservice`VALUES (17,'ドリコムRSS','http://ping.rss.drecom.jp/','http://rss.drecom.jp/','weblogUpdates.ping',1);
INSERT INTO `gl_pingservice`VALUES (19,'Googleブログ検索','http://blogsearch.google.co.jp/ping/RPC2','http://blogsearch.google.co.jp/','weblogUpdates.extendedPing',1);
INSERT INTO `gl_pingservice`VALUES (20,'テクノラティ','http://rpc.technorati.jp/rpc/ping','http://www.technorati.jp/','weblogUpdates.ping',1);
INSERT INTO `gl_pingservice`VALUES (18,'ｇoo　ブログ','http://blog.goo.ne.jp/XMLRPC','http://blog.goo.ne.jp/','weblogUpdates.ping',1);

--
-- Table structure for table `gl_plugins`
--


CREATE TABLE `gl_plugins` (
  `pi_name` varchar(30) NOT NULL DEFAULT '',
  `pi_version` varchar(20) NOT NULL DEFAULT '',
  `pi_gl_version` varchar(20) NOT NULL DEFAULT '',
  `pi_enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `pi_homepage` varchar(128) NOT NULL DEFAULT '',
  `pi_load` smallint(5) unsigned NOT NULL DEFAULT 10000,
  PRIMARY KEY (`pi_name`),
  KEY `plugins_enabled` (`pi_enabled`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_plugins`
--

INSERT INTO `gl_plugins`VALUES ('japanize','2.1.2','2.2.1',1,'http://www.geeklog.jp/filemgmt/index.php?id=340',50);
INSERT INTO `gl_plugins`VALUES ('staticpages','1.7.1','2.2.0',1,'https://www.geeklog.net/',90);
INSERT INTO `gl_plugins`VALUES ('dbman','0.8.1.1','1.6.0',1,'http://mystral-kk.net/',120);
INSERT INTO `gl_plugins`VALUES ('dataproxy','2.0.1','1.4.0',1,'http://mystral-kk.net/',20);
INSERT INTO `gl_plugins`VALUES ('sitemap','2.0.0','1.4.0',1,'http://mystral-kk.net/',80);
INSERT INTO `gl_plugins`VALUES ('tkgmaps','2.0.4','1.5.0',0,'http://hiroron.com/',70);
INSERT INTO `gl_plugins`VALUES ('navman','0.2.2','1.6.0',0,'http://www.trybase.com/~dengen/log/',60);
INSERT INTO `gl_plugins`VALUES ('monitor','1.3.1','1.8.0',1,'http://geeklog.fr',130);
INSERT INTO `gl_plugins`VALUES ('assist','1.1.2.test20181102','2.2.1',1,'http://www.geeklog.jp/filemgmt/index.php?id=339',110);
INSERT INTO `gl_plugins`VALUES ('banner','1.1.1','1.5.2',1,'http://hiroron.com/',30);
INSERT INTO `gl_plugins`VALUES ('googleanalytics','1.2.1','1.8.0',0,'http://hiroron.com/',10);
INSERT INTO `gl_plugins`VALUES ('wkymlmguser','1.2.0','2.0.0',0,'http://hiroron.com',100);
INSERT INTO `gl_plugins`VALUES ('jquery','1.4.0','1.8.0',0,'http://geeklog.fr',40);
INSERT INTO `gl_plugins`VALUES ('captcha','3.5.5','1.8.0',0,'http://www.geeklog.fr/',140);
INSERT INTO `gl_plugins`VALUES ('xmlsitemap','2.0.0','1.8.0',0,'http://www.geeklog.net/',150);
INSERT INTO `gl_plugins`VALUES ('mediagallery','1.7.0','2.0.0',1,'http://www.trybase.com/~dengen/log/',160);
INSERT INTO `gl_plugins`VALUES ('databox','0.0.0.20140129','1.8.1',0,'http://www.ivywe.co.jp',170);
INSERT INTO `gl_plugins`VALUES ('autotags','1.1.3','2.1.3',1,'https://github.com/Geeklog-Plugins/autotags',180);
INSERT INTO `gl_plugins`VALUES ('langsel','1.1.0','2.1.2',0,'https://github.com/Geeklog-Plugins/langsel',190);
INSERT INTO `gl_plugins`VALUES ('recaptcha','1.1.5','1.6.0',0,'https://mystral-kk.net/',200);
INSERT INTO `gl_plugins`VALUES ('custommenu','0.7.0','2.0.0',1,'http://www.trybase.com/~dengen/log/',210);
INSERT INTO `gl_plugins`VALUES ('spamx','1.3.5','2.2.0',1,'https://www.geeklog.net/',220);

--
-- Table structure for table `gl_routes`
--


CREATE TABLE `gl_routes` (
  `rid` int(11) NOT NULL AUTO_INCREMENT,
  `method` int(11) NOT NULL DEFAULT 1,
  `rule` varchar(255) NOT NULL DEFAULT '',
  `route` varchar(255) NOT NULL DEFAULT '',
  `status_code` int(11) NOT NULL DEFAULT 200,
  `priority` int(11) NOT NULL DEFAULT 100,
  `enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  PRIMARY KEY (`rid`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_routes`
--

INSERT INTO `gl_routes`VALUES (1,1,'/article/@sid/print','/article.php?story=@sid&mode=print',200,100,1);
INSERT INTO `gl_routes`VALUES (2,1,'/article/@sid','/article.php?story=@sid',200,110,1);
INSERT INTO `gl_routes`VALUES (3,1,'/archives/@topic/@year/@month','/directory.php?topic=@topic&year=@year&month=@month',200,120,1);
INSERT INTO `gl_routes`VALUES (4,1,'/page/@page','/staticpages/index.php?page=@page',200,130,1);
INSERT INTO `gl_routes`VALUES (5,1,'/links/portal/@item','/links/portal.php?what=link&item=@item',200,140,1);
INSERT INTO `gl_routes`VALUES (6,1,'/links/category/@cat','/links/index.php?category=@cat',200,150,1);
INSERT INTO `gl_routes`VALUES (7,1,'/topic/@topic','/index.php?topic=@topic',200,160,1);
INSERT INTO `gl_routes`VALUES (8,1,'/topic/@topic/@page','/index.php?topic=@topic&page=@page',200,170,1);
INSERT INTO `gl_routes`VALUES (9,1,'/page/@page/print','/staticpages/index.php?page=@page&disp_mode=print',200,180,1);

--
-- Table structure for table `gl_smap_config`
--


CREATE TABLE `gl_smap_config` (
  `name` varchar(30) NOT NULL DEFAULT '',
  `value` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_smap_config`
--

INSERT INTO `gl_smap_config`VALUES ('anon_access','true');
INSERT INTO `gl_smap_config`VALUES ('date_format','[[Y-m-d] ]');
INSERT INTO `gl_smap_config`VALUES ('sitemap_in_xhtml','false');
INSERT INTO `gl_smap_config`VALUES ('sitemap_article','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_staticpages','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_calendar','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_links','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_polls','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_forum','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_filemgmt','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_faqman','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_dokuwiki','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_comments','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_trackback','true');
INSERT INTO `gl_smap_config`VALUES ('sitemap_mediagallery','true');
INSERT INTO `gl_smap_config`VALUES ('google_sitemap_name','sitemap.xml');
INSERT INTO `gl_smap_config`VALUES ('time_zone','+09:00');
INSERT INTO `gl_smap_config`VALUES ('gsmap_article','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_staticpages','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_calendar','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_links','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_polls','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_forum','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_filemgmt','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_faqman','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_dokuwiki','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_comments','false');
INSERT INTO `gl_smap_config`VALUES ('gsmap_trackback','false');
INSERT INTO `gl_smap_config`VALUES ('gsmap_mediagallery','true');
INSERT INTO `gl_smap_config`VALUES ('freq_article','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_staticpages','weekly');
INSERT INTO `gl_smap_config`VALUES ('freq_calendar','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_links','weekly');
INSERT INTO `gl_smap_config`VALUES ('freq_polls','weekly');
INSERT INTO `gl_smap_config`VALUES ('freq_forum','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_filemgmt','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_faqman','weekly');
INSERT INTO `gl_smap_config`VALUES ('freq_dokuwiki','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_comments','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_trackback','daily');
INSERT INTO `gl_smap_config`VALUES ('freq_mediagallery','daily');
INSERT INTO `gl_smap_config`VALUES ('priority_article','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_staticpages','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_calendar','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_links','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_polls','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_forum','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_filemgmt','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_faqman','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_dokuwiki','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_comments','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_trackback','0.5');
INSERT INTO `gl_smap_config`VALUES ('priority_mediagallery','0.5');
INSERT INTO `gl_smap_config`VALUES ('order_article','1');
INSERT INTO `gl_smap_config`VALUES ('order_comments','2');
INSERT INTO `gl_smap_config`VALUES ('order_trackback','3');
INSERT INTO `gl_smap_config`VALUES ('order_staticpages','4');
INSERT INTO `gl_smap_config`VALUES ('order_calendar','5');
INSERT INTO `gl_smap_config`VALUES ('order_links','6');
INSERT INTO `gl_smap_config`VALUES ('order_polls','7');
INSERT INTO `gl_smap_config`VALUES ('order_dokuwiki','8');
INSERT INTO `gl_smap_config`VALUES ('order_forum','9');
INSERT INTO `gl_smap_config`VALUES ('order_filemgmt','10');
INSERT INTO `gl_smap_config`VALUES ('order_faqman','11');
INSERT INTO `gl_smap_config`VALUES ('order_mediagallery','12');
INSERT INTO `gl_smap_config`VALUES ('sp_type','2');
INSERT INTO `gl_smap_config`VALUES ('sp_except','/^form/ 2009*');
INSERT INTO `gl_smap_config`VALUES ('sitemap_calendarjp','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_calendarjp','true');
INSERT INTO `gl_smap_config`VALUES ('freq_calendarjp','daily');
INSERT INTO `gl_smap_config`VALUES ('priority_calendarjp','0.5');
INSERT INTO `gl_smap_config`VALUES ('order_calendarjp','13');
INSERT INTO `gl_smap_config`VALUES ('sitemap_downloads','true');
INSERT INTO `gl_smap_config`VALUES ('gsmap_downloads','true');
INSERT INTO `gl_smap_config`VALUES ('freq_downloads','daily');
INSERT INTO `gl_smap_config`VALUES ('priority_downloads','0.5');
INSERT INTO `gl_smap_config`VALUES ('order_downloads','14');

--
-- Table structure for table `gl_spamx`
--


CREATE TABLE `gl_spamx` (
  `name` varchar(20) NOT NULL DEFAULT '',
  `value` varchar(191) NOT NULL DEFAULT '',
  `counter` int(11) NOT NULL DEFAULT 0,
  `regdate` datetime DEFAULT NULL,
  PRIMARY KEY (`name`,`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_spamx`
--


--
-- Table structure for table `gl_speedlimit`
--


CREATE TABLE `gl_speedlimit` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ipaddress` varchar(39) NOT NULL DEFAULT '',
  `date` int(10) unsigned DEFAULT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'submit',
  PRIMARY KEY (`id`),
  KEY `type_ipaddress` (`type`,`ipaddress`),
  KEY `date` (`date`)
) ENGINE=MyISAM AUTO_INCREMENT=324427 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_speedlimit`
--

INSERT INTO `gl_speedlimit`VALUES (1,'110.67.37.114',1255784674,'forum');
INSERT INTO `gl_speedlimit`VALUES (25635,'157.112.152.14',1548574998,'pingback');
INSERT INTO `gl_speedlimit`VALUES (324426,'194.36.98.153',1714062141,'trackback');
INSERT INTO `gl_speedlimit`VALUES (324422,'160.20.11.75',1714062118,'trackback');
INSERT INTO `gl_speedlimit`VALUES (324423,'196.18.229.28',1714062119,'trackback');
INSERT INTO `gl_speedlimit`VALUES (324421,'192.42.116.212',1714061545,'mail');
INSERT INTO `gl_speedlimit`VALUES (324424,'194.36.96.20',1714062123,'trackback');
INSERT INTO `gl_speedlimit`VALUES (324425,'104.223.79.113',1714062137,'trackback');

--
-- Table structure for table `gl_staticpage`
--


CREATE TABLE `gl_staticpage` (
  `sp_id` varchar(128) NOT NULL DEFAULT '',
  `sp_title` varchar(128) NOT NULL DEFAULT '',
  `sp_page_title` varchar(128) NOT NULL DEFAULT '',
  `sp_content` text NOT NULL,
  `sp_hits` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `created` datetime DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  `sp_format` varchar(20) NOT NULL DEFAULT '',
  `sp_onmenu` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `sp_onhits` tinyint(4) NOT NULL DEFAULT 1,
  `sp_onlastupdate` tinyint(4) NOT NULL DEFAULT 1,
  `sp_label` varchar(64) DEFAULT NULL,
  `commentcode` tinyint(4) NOT NULL DEFAULT 0,
  `meta_description` text DEFAULT NULL,
  `meta_keywords` text DEFAULT NULL,
  `template_flag` tinyint(1) NOT NULL DEFAULT 0,
  `template_id` varchar(40) NOT NULL DEFAULT '',
  `cache_time` int(11) NOT NULL DEFAULT 0,
  `draft_flag` tinyint(1) unsigned DEFAULT 0,
  `owner_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `group_id` mediumint(8) unsigned NOT NULL DEFAULT 1,
  `perm_owner` tinyint(1) unsigned NOT NULL DEFAULT 3,
  `perm_group` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_members` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `perm_anon` tinyint(1) unsigned NOT NULL DEFAULT 2,
  `sp_centerblock` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `sp_help` varchar(255) DEFAULT '',
  `sp_where` tinyint(1) unsigned NOT NULL DEFAULT 1,
  `sp_php` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `sp_nf` tinyint(1) unsigned DEFAULT 0,
  `sp_inblock` tinyint(1) unsigned DEFAULT 1,
  `postmode` varchar(16) NOT NULL DEFAULT 'html',
  `sp_prev` varchar(128) NOT NULL DEFAULT '',
  `sp_next` varchar(128) NOT NULL DEFAULT '',
  `sp_parent` varchar(128) NOT NULL DEFAULT '',
  PRIMARY KEY (`sp_id`),
  KEY `staticpage_created` (`created`),
  KEY `staticpage_sp_onmenu` (`sp_onmenu`),
  KEY `staticpage_sp_centerblock` (`sp_centerblock`),
  KEY `staticpage_sp_where` (`sp_where`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `gl_staticpage`
--

INSERT INTO `gl_staticpage`VALUES ('stories','Topics','','global $LANG01;\r\n\r\n\r\nif ( $_GET[\'n\'] != NULL ){\r\n  $n =  $_GET[\'n\'];\r\n} else {\r\n  $n = 20;\r\n}\r\nif ( $_GET[\'l\'] != NULL ){\r\n  $l =  $_GET[\'l\'];\r\n} else {\r\n  $l = 100;\r\n}\r\n\r\n  $url_current = COM_getCurrentURL(); \r\n  $tmp = explode(\"/\", $url_current);\r\n\r\n\r\nif ( $_GET[\'t\'] != NULL ){\r\n  $t =  $_GET[\'t\'];\r\n} else if(strpos( $tmp[4], \'topic\' ) !== false ) {\r\n\r\n$tmp = explode(\"?\", $tmp[5]);\r\n\r\n    $t = $tmp[0];\r\n} else {\r\n  $t = \'\';\r\n}\r\n\r\nif ($t){\r\n  $include=array($t);\r\n  $display = phpblock_lastarticles2($n,$l,$include);\r\n  echo $display;\r\n}\r\n\r\nif($n < 100) {\r\necho \'<div class=\"uk-text-right\"><a href=\"/staticpages/index.php/stories?n=1000&t=\'.$t.\'\" >All stories <span  uk-icon=\"icon: more\"></span> </a></div>\';\r\n}',218378,'2019-01-31 02:15:30','2019-01-31 02:51:43','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_slogan_en','_header_slogan_en','','Internship　Multilingual Website for the new generation, <br>&ldquo;<strong>GLOBAL COMMUNITY</strong>&rdquo; edited by Japanese and Internationl students!',1296600,'2010-08-30 22:41:23','2019-01-30 17:08:25','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home_ja','_home_ja','','<div id=\"top_box\" class=\"uk-child-width-1-2 uk-child-width-1-1@s uk-child-width-1-2@m\" uk-grid>\r\n<div id=\"international_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n\r\n<h3 title=\"国際人\"><a href=\"https://www.yokosojapan.net/index.php/topic/international_ja\">国際人</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_05.gif\" alt=\"国際機関・国際人・国際結婚\" />\r\n[newstories2:international_ja limitcnt:2 newmarkday:30]\r\n</div>\r\n\r\n<div id=\"event_box\" class=\"uk-card  uk-card-default uk-card-body\">\r\n<h3 title=\"イベント\"><a href=\"https://www.yokosojapan.net/index.php/topic/event_ja\">イベント</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_07.gif\" alt=\"多文化・エンタメ＆イベント・国際イベント\" />\r\n[newstories2:event_ja limitcnt:2 newmarkday:30]\r\n</div>\r\n\r\n<div id=\"life_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"みんなの生活\"><a href=\"https://www.yokosojapan.net/index.php/topic/life_ja\">みんなの生活</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_09.gif\" alt=\"日本語・教育機関・生活\" />\r\n[newstories2:limitcnt:2 newmarkday:30]\r\n</div>\r\n<div id=\"editor_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"編集者より\"><a href=\"https://www.yokosojapan.net/index.php/topic/editor_ja\" bitly=\"BITLY_PROCESSED\">編集者より</a></h3>\r\n<p>みんなでGLOBAL　COMMINITYを一緒につくりませんか？英語・韓国語・中国語翻訳ボランティアも募集中!!</p>\r\n[newstories2:editor_ja limitcnt:2 newmarkday:30]\r\n</div>\r\n</div>',206762,'2019-01-29 22:30:15','2019-01-30 00:48:46','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_slogan_ko','_header_slogan_ko','','유학생과 일본인 학생이 만드는 신세대의 국제교류신문 “GLOBAL COMMUNITY”의 다언어 웹 메거진！<p>\r\n<a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" rel=\"nofollow\">【全額返金保証】トライズなら1年で英語が身につく3つの理由</a>\r\n<img border=\"0\" width=\"1\" height=\"1\" src=\"https://www16.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" alt=\"\">',287993,'2010-08-30 22:43:03','2022-02-02 13:11:18','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_content_zh','_トップページでのみヘッダで表示ch','','<img src=\"https://www.yokosojapan.net/images/library/Image/2014/14-0510.jpg\" alt=\"\">',6306,'2019-01-30 00:59:13','2019-01-30 00:59:56','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_test_en','_test_en','','<div id=\"top_box\" class=\"uk-child-width-1-2 uk-child-width-1-1@s uk-child-width-1-2@m\" uk-grid>\r\n<div id=\"international_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n\r\n<h3 title=\"国際人\"><a href=\"https://www.yokosojapan.net/index.php/topic/international_en\">国際人</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_05.gif\" alt=\"国際機関・国際人・国際結婚\" />\r\n[assist:newstories id:newstories2:international_en limitcnt:2 newmarkday:30 intervalday:1200]\r\n</div>\r\n\r\n<div id=\"event_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"イベント\"><a href=\"https://www.yokosojapan.net/index.php/topic/event_en\">イベント</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_07.gif\" alt=\"多文化・エンタメ＆イベント・国際イベント\" />\r\n[assist:newstories id:event_en limitcnt:2 newmarkday:30 intervalday:1200]\r\n</div>\r\n\r\n<div id=\"life_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"みんなの生活\"><a href=\"https://www.yokosojapan.net/index.php/topic/life_en\">みんなの生活</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_09.gif\" alt=\"日本語・教育機関・生活\" />\r\n[assist:newstories id:life_en limitcnt:2 newmarkday:30 intervalday:1200]\r\n</div>\r\n<div id=\"editor_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"編集者より\"><a href=\"https://www.yokosojapan.net/index.php/topic/editor_en\" bitly=\"BITLY_PROCESSED\">編集者より</a></h3>\r\n<p>みんなでGLOBAL　COMMINITYを一緒につくりませんか？英語・韓国語・中国語翻訳ボランティアも募集中!!</p>\r\n[assist:newstories id:editor_en limitcnt:2 newmarkday:30 intervalday:1200]\r\n</div>\r\n</div>',315,'2019-01-29 18:17:18','2019-01-29 18:17:18','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_slogan_zh','_header_slogan_zh','','由留学生和日本人学生共同打造的新世代国际交流报纸&ldquo;<strong>GLOBAL COMMUNITY</strong>&rdquo;之多国语Web电子杂志！<p>\r\n<a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" rel=\"nofollow\">【全額返金保証】トライズなら1年で英語が身につく3つの理由</a>\r\n<img border=\"0\" width=\"1\" height=\"1\" src=\"https://www16.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" alt=\"\">',251287,'2010-09-01 15:35:06','2022-02-02 13:09:55','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('contact_ko','연락처','','// +---------------------------------------------------------------------------+\r\n// | Geeklog FormMail Static Page                                              |\r\n// +---------------------------------------------------------------------------+\r\n// | Copyright (C) 2008-2010 by the following authors:                         |\r\n// |                                                                           |\r\n// | Authors    : Hiroshi Sakuramoto - hiro AT winkey DOT jp                   |\r\n// | Sponser    : White Bear Family CO., LTD                                   |\r\n// | Coordinate : Adeliae Planning CO., LTD - www.e-adeliae.com                |\r\n// | Coordinate : IVY WE CO., LTD - www.ivywe.co.jp                            |\r\n// | Version: 2.1.3                                                            |\r\n// | EnglishVersion: 0.9.4                                                     |\r\n// | Translated: kobab - geeklog.crimsonj.net                                  |\r\n// | Translated: Alleman Chie and Geeklog Japanese                             |\r\n// +---------------------------------------------------------------------------+\r\n// | This program was originally made for Japanese users. Several              |\r\n// | parts are therefore for Japanese users only and commented-out for         |\r\n// | this English version.                                                     |\r\n// | For the purpose of future upgrade for both of Japanese & English          |\r\n// | verions, those commented-out parts are remained. Wish English             |\r\n// | users understand this and ignore those parts when you use.                |\r\n// +---------------------------------------------------------------------------+\r\n\r\nglobal $_CONF, $_USER, $_PLUGINS;\r\nif (!defined(\'XHTML\')) define(\'XHTML\', \' /\');\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | default setting                                                           |\r\n// +---------------------------------------------------------------------------+\r\n# form URL\r\n# $pageurl = $_SERVER[\"REQUEST_URI\"];\r\n// If $_SERVER[\"REQUEST_URI\"] doesn\'t work, \r\n// fill-in statipage ID below.\r\n// Default is \'formmail\'\r\n// *Please remove # and uncomment after filling-in ID\r\n$pageid = \'contact_ko\';\r\n\r\n# receipient set\r\n#    If 2 or more receipient, each email should be commmaed. no space allowed.\r\n#      ex) \'info@abcd.com,admin@wxyz.com\'\r\n#    Set email for a certain colum data. If colum 1 is AAA, receipient is info@geeksite. If colum 1 is BBB, receipient becomes to admin@geeksite\r\n#    You MUST set $owner_email_item_name if you use this feature.\r\n#      ex) \'AAA=info@abcd.com,BBB=admin@wxyz.com\'\r\n\r\n$owner_email=$_CONF[\'site_mail\'];\r\n\r\n\r\n# Set colum name of receipient\r\n//  *Remember to remove * to uncomment after setting colum name.\r\n#$owner_email_item_name = \'q_mail_to\';\r\n\r\n# email of auto-reply message sender\r\n$email_from = $_CONF[\'site_mail\'];\r\n#\'noreply_mail\' can be used if your Geeklog version is 1.5 or later.\r\n#$email_from = $_CONF[\'noreply_mail\'];\r\n\r\n# inquirer email\'s item name\r\n$email_input_name = \'q_mail\';\r\n\r\n# email double check\r\n#   no space allowed.\r\n#     ex) \'email=reemail\'\r\n$essential_email = \'q_mail=q_mail_re\';\r\n\r\n\r\n# email check\r\n#   check if input string is proper email address\r\n#   value of name attrubute with commas. no space is allowed.\r\n#     ex) \'email,reemail\'\r\n\r\n$propriety_email = \'q_mail,q_mail_re\';\r\n\r\n# use Geeklog\'s userset if logged-in\r\n#   use username, full name & email of login users\r\n#\r\n$username = \'\'; $user_email = \'\';\r\nif (isset ($_USER[\'uid\']) && ($_USER[\'uid\'] > 1)) {\r\n    $username = isset($_USER[\'fullname\']) ? $_USER[\'fullname\'] : $_USER[\'username\'];\r\n    $user_email = $_USER[\'email\'];\r\n}\r\n\r\n# save as CSV file\r\n#   not save: 0, save with commas: 1, save with tabs: 2\r\n$save_csv = 1;\r\n\r\n# path for CSV file to be saved. / is mandatory at the end of URL If you specify# bare # path.\r\n$save_csv_path = $_CONF[\'path_data\'];\r\n\r\n# CSV file name\r\n$save_csv_name = \'formmail.csv\';\r\n\r\n# character code at saving CSV file\r\n#   If no code conversion is necesasry, make it blank, ie \'\' to disable this\r\n#   feature. If garbled, make this disabled and use another tool.\r\n#   Remember to use a code which mb_convert_encoding is covering\r\n#   ex) UTF-8, SJIS, EUC-JP, JIS, ASCII\r\n$save_csv_lang = \'UTF-8\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from zenkaku to hankaku neccessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $zentohan_itemname = \'q_phone,q_code1_1,q_code2_1,q_code3_1,q_code1_2,q_code2_2,q_code3_2,q_code1_3,q_code2_3,q_code3_3\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from hankaku to zenkaku neccessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $kana_hantozen_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from hiragana to katakana necessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $kana_hiratokana_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ==CAPTCHA==\r\n#   error message if no CAPTHCA is istalled\r\n$msg_spformmail_notinstall_captcha = \'CAPTCHA plugin is not installed\';\r\n#   error message after formmail used with CAPTCHA.\r\n#     *if blaked, error message of CAPTCHA plugin is used\r\n#     *if you speciy message here, it will be used\r\n$msg_spformmail_valid_captcha = \'\';\r\n#\r\n#   *You can make your own CAPTCHA template\r\n#   if public_html/layout/<themename>/sp_formmail/captcha.thmtl found, this will be adopted\r\n#   private/plugins/captcha/templates/captcha_others.thtml is used by default\r\n#\r\n\r\n# item names at screen transition\r\n$seni_items = array(\'input\' => \'Input\', \'confirm\' => \'Confirm\', \'finish\' => \'Complete\');\r\n\r\n# string for mondatory item\r\n$required_string = \'<span class=\"spf_required\">*</span>\';\r\n\r\n# ==About date and time==\r\n#   The date on the following JavaScript calendar.\r\n#     php date format. ref: http://www.php.net/manual/en/function.date.php\r\n#     \"d, D, j, l, N, w, S, F, m, M, n, Y, y\" can be assigned.\r\n$date_js_cal = \'d/m/Y\';\r\n#   The receipt date and time indicated in an email.\r\n#     Any php date format can be used here. (ref: http://www.php.net/manual/en/function.date.php)\r\n$date_mail = \'M j Y H:i\';\r\n#   When the csv is outputted, the date and time are written to the first row of the csv.\r\n#     Any php date format can be used here. (ref: http://www.php.net/manual/en/function.date.php)\r\n$date_csv = \'M j Y H:i\';\r\n\r\n# use JavaScript library for calendar\r\n$use_jslib = TRUE;\r\n\r\n# declaration of JavaScript library etc\r\n#   JavaScript+CSS for calendar\r\n#     Calendar RC4, (c) 2007 Aeron Glemann <http://electricprism.com/aeron>, MIT Style License\r\n#     (http://www.electricprism.com/aeron/calendar/)\r\n$def_jslib = <<<JSLIB\r\n\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/mootools.js\"></script>\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.js\"></script>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.css\" media=\"screen\"{XHTML}>\r\n<script type=\"text/javascript\">\r\n window.addEvent(\'domready\', function() { myCal = new Calendar({ q_date1: \'$date_js_cal\' }, { days: [\'SUN\',\'MON\',\'TUE\',\'WED\',\'THU\',\'FRI\',\'SAT\'], months: [\'JAN\',\'FEB\',\'MAR\',\'APR\',\'MAY\',\'JUN\',\'JUL\',\'AUG\',\'SEP\',\'OCT\',\'NOV\',\'DEC\'] }); });\r\n</script>\r\nJSLIB;\r\n\r\n#####\r\n# display message\r\n#####\r\n$lang = array(\r\n// { complete & email message\r\n  \'receipt_admin\' =>\'Dear admins,\'.LB.LB.$_CONF[\'site_name\'].\' site received a inquiry.\'.LB.LB.\'========== Inquiry ==========\'.LB.\'receipt at:\'.date($date_mail),\r\n  \'receipt_user\' =>\'*This email is sent from \'.$_CONF[\'site_name\'].\' site automatically.\'.LB.\'This email address is used for transmission only and not repliable.\'.LB.\'=============================\'.LB.\'Thank you very much for your inquiry.\'.LB.LB.\'========== Inquiry ==========\'.LB.\'Receipt at:\'.date($date_mail),\r\n  \'subject_admin\'=> \'[\'.$_CONF[\'site_name\'].\']Inquiry\',\r\n  \'subject_user\'=> \'[\'.$_CONF[\'site_name\'].\']Thanks for your inquiry\',\r\n  \'sign_admin\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.$_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n  \'sign_user\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.\'URL:\' . $_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n// } complete & email message\r\n// { system error message\r\n  \'ownertransmiterror\'=>\'An error has occurred at several email addresses during processing owner email, but process continued and completed.\',\r\n  \'transmiterror\'=>\'An error has occurred during processing.\',\r\n// } system error message\r\n);\r\n\r\n\r\n\r\n#####\r\n# table\'s item names\r\n#####\r\n$form_items = array(\r\n  // < table\r\n  array(\'title\' => \'개인 정보\', \'table\' => array(\r\n    // < table 1 row\r\n    array(\'header\' => \'Name\', \'valid_notkanahan\' => \'q_name\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_name\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'60\',\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n    // < table 1 row\r\n    array(\'header\' => \'Email\',\r\n          \'valid_require\' => $required_string, \'error_require\' => \'Please type your email address.\',\r\n          \'valid_equal\' => $essential_email, \'error_equal\' => \'Email address not match.\',\r\n          \'valid_email\' => $propriety_email, \'error_email\' => \'Please type out proper email address.\',\r\n          \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail_re\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput\',\r\n                  \'not_confirm\' => \'true\',\r\n                  \'not_csv\' => \'true\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'string\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'input\' => \'Please enter your e-mail address again to confirm.\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n   ),\r\n  ),\r\n  // > table\r\n  // < table\r\n  array(\'title\' => \'환경 설정\', \'table\' => array(\r\n    // < rable 1 row\r\n    array(\'header\' => \'Comments\', \'valid_maxlen\' => \'q_other=200\', \'error_maxlen\' => \'Please complete within 200 characters.\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'textarea\',\r\n                  \'name\' => \'q_other\',\r\n                  \'class\' => \'bginput\',\r\n                  \'style\' => \'width: 95%; height: 100px;\',\r\n                  \'onKeyup\' => \"var n=200-this.value.length;var s=document.getElementById(\'tasp1\');s.innerHTML=\'(\'+n+\')\';\"\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\">*Please enter your comments up to 200 characters. <strong><span id=\'tasp1\'></span><strong><br\".XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n   ),\r\n  ),\r\n  // > table\r\n  // < submit button - input\r\n  array(\'action\' => \'input\', \'data\' =>\r\n      array(\r\n          array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'Confirm\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > submit button - input\r\n  // < submit button - confirm\r\n  array(\'action\' => \'confirm\', \'data\' =>\r\n      array(array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'goback\',\r\n                \'class\' => \'button_form_prev\',\r\n                \'value\' => \'Return to the previous page.\'\r\n          ),\r\n          array(\'string\' => \'&nbsp;\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'Submit\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > submit button - confirm\r\n);\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | initial process                                                           |\r\n// +---------------------------------------------------------------------------+\r\n//# For Japanese language only.\r\n//# Direct convert of POST data, ie. from em-size to normal-width and from \r\n//# the katakana normal-width to the katakana. This is for Japanese user only.\r\n//# This program was originally made for Japanese users. Several parts are \r\n//# therefore for Japanese users only. We commented those parts \r\n//# out for this English version. \r\n//# For the convenience of authors of future upgrade for both of Japanese \r\n//# & English versions, those parts for Japanese users are remained in php \r\n//# files. Wish English users understand this and ignore those parts when \r\n//# you use this php.\r\n\r\n//if (!empty($zentohan_itemname)) { foreach (explode(\',\',$zentohan_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'askh\'); } }\r\n//if (!empty($kana_hantozen_itemname)) { foreach (explode(\',\',$kana_hantozen_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'K\'); } }\r\n//if (!empty($kana_hiratokana_itemname)) { foreach (explode(\',\',$kana_hiratokana_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'C\'); } }\r\n# process data for saving\r\nforeach ($_POST as $k => $v) {\r\n    $fld_list[$k] = preg_replace(\'/,/\', \'，\', $_POST[$k]);\r\n    $fld_list[$k] = preg_replace(\'/\"/\', \'”\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\"/\'/\", \"’\", $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/`/\', \'‘\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/;/\', \'；\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(preg_quote(\'#\'.chr(92).\'#\'), \'￥\', $fld_list[$k]);\r\n    $fld_list[$k] = COM_applyFilter($fld_list[$k]);\r\n}\r\n# full path of CSV file\r\n$save_csv_file = $save_csv_path . $save_csv_name;\r\n# create pageurl from pageid\r\nif (!empty($pageid)) { $pageurl = COM_buildUrl($_CONF[\'site_url\'].\'/staticpages/index.php?page=\'.$pageid); }\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | functions:                                                                |\r\n// +---------------------------------------------------------------------------+\r\nif(!function_exists(\'getAction\')){\r\nfunction getAction ($err) {\r\n    $buf = \'\';\r\n    $action = COM_applyFilter($_POST[\'action\']);\r\n    if (!empty($action) && empty($err) && $action == \'input\') { $buf = \'confirm\'; }\r\n    elseif (!empty($action) && empty($err) && $action == \'confirm\') { $buf = empty($_POST[\'goback\']) ? \'finish\' : \'input\'; }\r\n    else { $buf = \'input\'; }\r\n    return $buf;\r\n}\r\n\r\nfunction mkJS4MG ($lib) {\r\n    $buf = preg_replace(\"@<script[^>]+mootools.js[^>]+>[^<]*</script>@\", \"\", $lib);\r\n    return str_replace(\'calendar.js\', \'calendar_mg.js\', $buf);\r\n}\r\n\r\nfunction mkJS ($use,$lib,$action,$plg) {\r\n    $buf=\'\';\r\n    if (!empty($action) && $action == \'input\' && isset($use) && $use == TRUE) {\r\n        if (in_array(\'mediagallery\', $plg)) {\r\n            global $_MG_CONF;\r\n            $mgv = $_MG_CONF[\'pi_version\'];\r\n            $mglib = $_MG_CONF[\'js_lib\'];\r\n            if (!empty($mgv) && !empty($mglib) && (version_compare($mgv, \'1.6.10\', \'<\') || strtolower($mglib) == \'mootools\')) {\r\n                $buf = mkJS4MG($lib);\r\n            } elseif(!empty($mglib) && strtolower($mglib) == \'jquery\') {\r\n                $buf = <<<JQNC\r\n<script>\r\n<!--\r\njQuery.noConflict();\r\n-->\r\n</script>{$lib}\r\nJQNC;\r\n            } else {\r\n                $buf = $lib;\r\n            }\r\n        } else {\r\n            $buf = $lib;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkSeni ($items, $action) {\r\n    $buf = \'<ul>\'.LB;\r\n    foreach ($items as $key => $value) {\r\n        if ($action == $key) {\r\n            $buf .= \'    <li class=\"on\">\'.$value.\'</li>\'.LB;\r\n        } else {\r\n            $buf .= \'    <li>\'.$value.\'</li>\'.LB;\r\n        }\r\n    }\r\n    $buf .= \'</ul>\'.LB;\r\n    return $buf;\r\n}\r\n\r\nfunction putiFilter($s) {\r\n    $se = array(\'%\',\'(\',\')\',chr(92),chr(13).chr(10),chr(13),chr(10));\r\n    $re = array(\'&#37;\',\'&#40;\',\'&#41;\',\'&#92;\',\'\',\'\',\'\');\r\n    return str_replace($se, $re, htmlspecialchars($s,ENT_QUOTES));\r\n}\r\n\r\nfunction vldCAPTCHA ($type, $errmsg) {\r\n    global $_CP_CONF, $_USER;\r\n    $msg = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg; }\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        $str = COM_applyFilter($_POST[\'captcha\']);\r\n        list( $rc, $msg )  = CAPTCHA_checkInput( $type, $str );\r\n    }\r\n    if ( !empty($msg) && !empty($errmsg) ) { $msg = $errmsg; }\r\n    return $msg;\r\n\r\n}\r\n\r\nfunction vld_isPhone($s) { return (preg_match(\'/^(?:[0-9\'.chr(92).\'+\'.chr(92).\'-\'.chr(92).\'s])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHankaku($s) { return (preg_match(\'/^(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isZenkaku($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+/D\',$s)) ? FALSE : TRUE; }\r\nfunction vld_isEisuHan($s) { return (preg_match(\'/^(?:[0-9A-Za-z])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isKanaZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x83[\'.chr(92).\'x80-\'.chr(92).\'xB6])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHiraZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x81[\'.chr(92).\'x81-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'x80-\'.chr(92).\'x93])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isNotKanaHan($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F])+/D\',$s)) ? TRUE : FALSE; }\r\n\r\nfunction ChkValidate ($mode, $datas, $errmsg, $attributes = \'\') {\r\n    $msg = \'\';\r\n    foreach ($datas as $data) {\r\n        if (isset($data[\'type\'])) {\r\n            $name = $data[\'name\'];\r\n            switch ($mode) {\r\n                // check required item\r\n                case \'require\':\r\n                    if (empty($data[\'notrequire\']) && empty($_POST[$name]) && $_POST[$name] != \"0\") { $msg = $errmsg; }\r\n                    break;\r\n                // check matching\r\n                case \'equal\':\r\n                    if (!empty($attributes)) {\r\n                        $es_emails = explode(\',\', $attributes);\r\n                        foreach ($es_emails as $es_email) {\r\n                            list($eq1,$eq2) = explode(\'=\', $es_email);\r\n                            // initial key ANT it exist\r\n                            if ($name == $eq1 && !empty($_POST[$eq2])) {\r\n                                if ($_POST[$eq1] != $_POST[$eq2]) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // email check\r\n                case \'email\':\r\n                    if (!empty($attributes)) {\r\n                        $pr_emails = explode(\',\', $attributes);\r\n                        foreach ($pr_emails as $pr_email) {\r\n                            if ($name == $pr_email) {\r\n                                if (!COM_isemail($_POST[$name])) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // num check - sum is more than 0\r\n                case \'notzero\':\r\n                    if (!empty($attributes)) {\r\n                        $values_key = explode(\',\', $attributes);\r\n                        foreach ($values_key as $val_key) {\r\n                            // check at initial key\r\n                            if ($name == $val_key) {\r\n                                $sum_val = 0;\r\n                                foreach ($values_key as $chk_key) {\r\n                                    if (!empty($_POST[$chk_key])) {\r\n                                        $sum_val += $_POST[$chk_key];\r\n                                    }\r\n                                }\r\n                                if ($sum_val <= 0) {\r\n                                    $msg = $errmsg;\r\n                                    break;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // check if numeric\r\n                case \'numeric\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !ctype_digit($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // check if phone\r\n                case \'phone\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isPhone($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // (For Japanese language only) Check byte\r\n//                case \'hankaku\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isHankaku($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em\r\n//                case \'zenkaku\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isZenkaku($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Alphanumeric check\r\n//                case \'eisuhan\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isEisuHan($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em katakana\r\n//                case \'kanazen\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isKanaZen($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em hiragana\r\n//                case \'kanazen\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isHiraZen($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check for non-katakana\r\n//                case \'notkanahan\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && vld_isNotKanaHan($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // check max length\r\n                case \'maxlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$max2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($max2 < mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // check min length\r\n                case \'minlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$min2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($min2 > mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n    // check CAPTCHA\r\n    if ( $mode == \'captcha\' ) { $msg = vldCAPTCHA(\'sp_formmail\', $errmsg); }\r\n    return $msg;\r\n}\r\n\r\nfunction ChkFormValidateLines ($lines) {\r\n    $errmsg;\r\n    foreach (array(\'require\',\'equal\',\'email\',\'notzero\',\'numeric\',\'phone\',\'hankaku\',\'zenkaku\',\'eisuhan\',\'kanazen\',\'hirazen\',\'notkanahan\',\'captcha\',\'maxlen\',\'minlen\') as $chk) {\r\n        // check require,match,email,CAPTCH,error\r\n        if (isset($lines[\'valid_\'.$chk])) {\r\n            $errmsg = ChkValidate($chk, $lines[\'data\'], $lines[\'error_\'.$chk], $lines[\'valid_\'.$chk]);\r\n            // arrays if error found\r\n            if ($errmsg) {\r\n                break;\r\n            }\r\n        }\r\n    }\r\n    return $errmsg;\r\n}\r\n\r\nfunction ChkFormValidate ($items) {\r\n    $errs;\r\n    foreach ($items as $item) {\r\n        // eah table\r\n        foreach ($item as $key => $value) {\r\n            // 1 table\r\n            if ($key == \'table\' || $key == \'table_captcha\') {\r\n                $action = getAction(\'\');\r\n                if ($key == \'table_captcha\' && $action == \'finish\') { continue; }\r\n                foreach ($value as $key2 => $value2) {\r\n                    // table 1 row\r\n                    $errmsg = ChkFormValidateLines($value2);\r\n                    if ($errmsg) { $errs[] = $errmsg; }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $errs;\r\n}\r\n\r\nfunction FormValidate ($items) {\r\n    $buf = \'\';\r\n    $errs = ChkFormValidate($items);\r\n    if (!empty($errs)) {\r\n        $errmsg = \'\';\r\n        foreach ($errs as $err) {\r\n            $errmsg .= \'    <li>\'.$err.\'</li>\'.LB;\r\n        }\r\n        $buf = <<<END\r\n\r\n<p class=\"error\">Some error found. Please check below and correct your input.</p>\r\n<ol class=\"errorList\">\r\n$errmsg\r\n</ol>\r\nEND;\r\n    }\r\n    return $buf;\r\n}\r\n\r\n\r\nfunction mkTitle ($title) {\r\n    return <<<END\r\n\r\n    <h4>$title</h4>\r\n    <table class=\"formmail\" cellspacing=\"0\">\r\n        <colgroup><col width=\"130\" /></colgroup>\r\n        <tbody>\r\nEND;\r\n}\r\n\r\nfunction mkForm_Value ($name, $value) {\r\n    return (empty($_POST[$name]) && $_POST[$name] != \"0\") ? $value : putiFilter($_POST[$name]);\r\n}\r\n\r\nfunction mkForm_Radio_Checked (&$attributes) {\r\n    $name = $attributes[\'name\'];\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n        if (isset($attributes[\'checked\'])) unset($attributes[\'checked\']);\r\n        if ($_POST[$name] == $attributes[\'value\']) {\r\n            $attributes[\'checked\'] = \'checked\';\r\n        }\r\n    }\r\n}\r\n\r\nfunction mkForm_Input ($attributes, $hidden = false) {\r\n    if ($hidden) {\r\n        if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n            if ($attributes[\'value\'] != $_POST[$attributes[\'name\']]) return \'\';\r\n        }\r\n        $attributes[\'type\'] = \'hidden\';\r\n    }\r\n    if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n        mkForm_Radio_Checked($attributes);\r\n    } else {\r\n        if ($attributes[\'type\'] != \'submit\') $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    }\r\n    $buf = \'<input\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'not_confirm\') { $buf .= \' \'.$key.\'=\"\'.$value.\'\"\'; }\r\n    }\r\n    $buf .= XHTML.\'>\';\r\n    if ($hidden || $attributes[\'type\'] == \'checkbox\') {\r\n        if ( !isset($attributes[\'not_confirm\']) || ! $attributes[\'not_confirm\'] ) { $buf .= \' \' . $attributes[\'value\']; }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select_Options ($name, $attributes) {\r\n    $buf = \'\';\r\n    $selected = mkForm_Value($name, $attributes[\'selected\']);\r\n    $values = explode(\',\', $attributes[\'values\']);\r\n    foreach ($values as $value) {\r\n        list($k,$v) = explode(\'=\',$value);\r\n        if (empty($v)) $v = $k;\r\n        if ($selected == $k) {\r\n            $buf .= \'<option selected=\"selected\" value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        } else {\r\n            $buf .= \'<option value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select ($attributes) {\r\n    $buf = \'<select\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'options\') {\r\n            $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n        }\r\n    }\r\n    $buf .= \'>\';\r\n    $buf .= mkForm_Select_Options($attributes[\'name\'], $attributes[\'options\']);\r\n    $buf .= \'</select>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Textarea ($attributes) {\r\n    $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    $buf = \'<textarea\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'value\') $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n    }\r\n    $buf .= \'>\'.$attributes[\'value\'].\'</textarea>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Item ($items, $action) {\r\n    $buf = \'\';\r\n    if ($action != \'input\' && $items[\'type\'] != \'submit\' && $items[\'type\'] != \'hidden\') {\r\n        $buf .= mkForm_Input($items, true);\r\n    } else {\r\n        switch ($items[\'type\']) {\r\n            case \'text\': $buf .= mkForm_Input($items); break;\r\n            case \'password\': $buf .= mkForm_Input($items); break;\r\n            case \'hidden\': $buf .= mkForm_Input($items); break;\r\n            case \'radio\': $buf .= mkForm_Input($items); break;\r\n            case \'checkbox\': $buf .= mkForm_Input($items); break;\r\n            case \'select\': $buf .= mkForm_Select($items); break;\r\n            case \'textarea\': $buf .= mkForm_Textarea($items); break;\r\n            case \'submit\': $buf .= mkForm_Input($items); break;\r\n            case \'reset\': $buf .= mkForm_Input($items); break;\r\n            case \'button\': $buf .= mkForm_Input($items); break;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkTable_Data ($datas, $action) {\r\n    $buf = \'\';\r\n    foreach ($datas as $data) {\r\n        // 1data\r\n        if (!empty($data[\'type\'])) {\r\n            // form\r\n            $buf .= mkForm_Item($data, $action);\r\n        }\r\n        else {\r\n            // strings\r\n            foreach ($data as $key => $value) {\r\n                if ($key == \'string\') {\r\n                    $buf .= $value;\r\n                } elseif ($key == $action) {\r\n                    $buf .= $value;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction plugin_templatePath_sp_formmail () {\r\n    global $_CONF;\r\n    $pi_name = \'sp_formmail\';\r\n    $layout_path = $_CONF[\'path_layout\'] . $pi_name;\r\n    return $layout_path;\r\n}\r\n\r\nfunction chk_Use_CAPTCHA_HTML () {\r\n    global $_CP_CONF, $_USER;\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction mkCAPTCHA_HTML ($name, $msg_notcaptcha) {\r\n    global $_CP_CONF, $_USER, $_TABLES;\r\n    $captcha = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg_notcaptcha; }\r\n    if ( chk_Use_CAPTCHA_HTML() ) {\r\n\r\n        $csid = 0;\r\n        if ($_CP_CONF[\'gfxDriver\'] != 1) {\r\n\r\n            // housekeeping, delete old captcha sessions\r\n            $oldSessions = time() - ($_CP_CONF[\'expire\']+900);\r\n            DB_query(\"DELETE FROM {$_TABLES[\'cp_sessions\']} WHERE cptime < \" . $oldSessions,1);\r\n\r\n            // OK, we need to insert the CAPTCHA, so now we need to setup the session_id:\r\n\r\n            // check to see if a failed entry happened...\r\n            if ( isset($_POST[\'csid\']) ) {\r\n                $csid = COM_applyFilter($_POST[\'csid\']);\r\n            } else {\r\n                $csid = CAPTCHA_sid();\r\n            }\r\n            $time    = time();\r\n            $counter = 0;\r\n            $validation = \'\';  // this will be filled in by the CAPTCHA\r\n\r\n                \"  `session_id` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `cptime`  INT(11) NOT NULL default 0, \" .\r\n                \"  `validation` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `counter`    TINYINT(4) NOT NULL default 0, \" .\r\n\r\n            DB_save($_TABLES[\'cp_sessions\'],\"session_id,cptime,validation,counter\",\"\'$csid\',\'$time\',\'\',\'0\'\");\r\n        }\r\n\r\n        $captcha = CAPTCHA_getHTML($csid,$name);\r\n    }\r\n    return $captcha;\r\n}\r\n\r\nfunction mkTable ($tables, $action) {\r\n    $buf = \'\';\r\n    foreach ($tables as $lines) {\r\n        $flg_valid_captcha = false;\r\n        $errflg = \'\';\r\n        $tdclass=\'\';\r\n        $buf .= LB .\'            <tr>\' . LB;\r\n        $buf .= \'                <th>\';\r\n        if (isset($lines[\'header\'])) { $buf .= $lines[\'header\']; }\r\n        if (isset($lines[\'header_captcha\'])) { $buf .= $lines[\'header_captcha\']; }\r\n        if (isset($lines[\'valid_require\'])) { $buf .= $lines[\'valid_require\']; }\r\n        if (isset($lines[\'valid_captcha\'])) { $buf .= $lines[\'valid_captcha\']; $flg_valid_captcha = true; }\r\n        // error check\r\n        if (!empty($_POST)) { $errflg = ChkFormValidateLines($lines); }\r\n        if ($errflg) { $tdclass=\' class=\"warning_bgc\"\'; }\r\n        $buf .= \'</th>\'.LB;\r\n        $buf .= \'                <td\'.$tdclass.\'>\';\r\n        if (isset($lines[\'data\'])) {\r\n            if ($flg_valid_captcha) {\r\n                $buf .= mkCAPTCHA_HTML(\'sp_formmail\',$lines[\'error_notcaptcha\']);\r\n            } else {\r\n                $buf .= mkTable_Data($lines[\'data\'], $action);\r\n            }\r\n        }\r\n        $buf .= \'</td>\'.LB;\r\n        $buf .= \'            </tr>\'.LB;\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm ($items, $action) {\r\n    $buf = \'\';\r\n    foreach ($items as $item) {\r\n        // each table\r\n        if (!empty($item[\'table\'])) {\r\n            foreach ($item as $key => $value) {\r\n                // 1 table\r\n                switch ($key) {\r\n                    case \'title\': $buf .= mkTitle($value); break;\r\n                    case \'table\': $buf .= mkTable($value, $action); break;\r\n                }\r\n            }\r\n            $buf .= <<<END\r\n\r\n        </tbody>\r\n    </table>\r\nEND;\r\n        } elseif (!empty($item[\'table_captcha\'])) {  // CAPTCHA table\r\n            if ((!empty($action) && $action == \'input\') && chk_Use_CAPTCHA_HTML()) {\r\n                foreach ($item as $key => $value) {\r\n                    // 1 table\r\n                    switch ($key) {\r\n                        case \'title_captcha\': $buf .= mkTitle($value); break;\r\n                        case \'table_captcha\': $buf .= mkTable($value, $action); break;\r\n                    }\r\n                }\r\n                $buf .= <<<END\r\n\r\n            </tbody>\r\n        </table>\r\nEND;\r\n            } elseif (!empty($action)) {\r\n                $buf .= LB . \'    <input type=\"hidden\">\';\r\n            }\r\n        } elseif (!empty($item[\'action\'])) {         // subimit button\r\n            if ($item[\'action\'] == $action) {\r\n                $buf .= LB . \'    <input type=\"hidden\" name=\"action\" value=\"\' . $action . \'\"\' . XHTML . \'>\';\r\n                $buf .= LB . mkTable_Data($item[\'data\'], $action);\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkCsv ($items, $level=0, $dupcheck=array()) {\r\n    global $_CONF;\r\n    $ret = array();\r\n    if ($level > 5) { return; } $level++;\r\n    if (!empty($items[\'type\']) && strtolower($items[\'type\']) != \'submit\' ) {\r\n        if((!empty($items[\'not_csv\']) && $items[\'not_csv\']) || empty($items[\'name\'])) { return; }\r\n        if(strtolower($items[\'type\']) == \'radio\' && in_array($items[\'name\'], $dupcheck)) { return; }\r\n        return $items[\'name\'];\r\n    } else {\r\n        if (!is_array($items)) { return; }\r\n        foreach ($items as $i) {\r\n            $name = mkCsv($i,$level, $ret);\r\n            if (!empty($name)) {\r\n                if(is_array($name)) { $ret = array_merge($ret,$name); } else { $ret[] = $name; }\r\n            }\r\n        }\r\n    }\r\n    return $ret;\r\n}\r\n}\r\n\r\n\r\n// error check\r\nif (!empty($_POST) && !empty($_POST[\'action\'])) {\r\n    $valid = FormValidate($form_items);\r\n}\r\n$action = getAction($valid);\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | first step: display form (type & confirm)                                 |\r\n// +---------------------------------------------------------------------------+\r\nif ($action == \'input\' || $action == \'confirm\') {\r\n\r\n/**\r\n* form HTML { from here\r\n*/\r\n    // JS\r\n    $js = mkJS($use_jslib, $def_jslib, $action, $_PLUGINS);\r\n    // transition\r\n    $seni = mkSeni($seni_items, $action);\r\n    // input form\r\n    $form = mkForm($form_items, $action);\r\n\r\n    $retval = <<<END\r\n\r\n$js\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"FORM\">\r\n$valid\r\n<form name=\"subForm\" method=\"post\" action=\"{$pageurl}\">\r\n$form\r\n</form>\r\n</div>\r\n\r\nEND;\r\n\r\n/**\r\n* } END of form HTML\r\n*/\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | SECOND STEP: Notice User Process & email submission                       |\r\n// +---------------------------------------------------------------------------+\r\n} elseif ($action == \'finish\') {\r\n\r\n/**\r\n* COMPLETE MESSAGE HTML  { from HERE\r\n*/\r\n    // transition\r\n    $seni = mkSeni($seni_items, $action);\r\n    \r\n    $out_html = <<<END\r\n\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"contact_thanks\">\r\n<p><strong>We\'ve received your inquiry.</strong></p>\r\n<p>A confirmation e-mail has been sent to you.<br />\r\nIf you do not receive it, please re-submit your inquiry with this form.</p>\r\n</div>\r\n\r\nEND;\r\n/**\r\n* } COMPLETE MESSAGE HTML ends HERE\r\n*/\r\n\r\n\r\n\r\n    # convert <br /> to LB\r\n    foreach ($fld_list as $k => $v) { $fld_list[$k] = ereg_replace(\"<br />\", LB, $fld_list[$k]); }\r\n    $lang[\'sign_admin\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_admin\']);\r\n    $lang[\'sign_user\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_user\']);\r\n    // input content\r\n    $input4mail=<<<END\r\nName: {$fld_list[\'q_name\']}\r\nEmail: {$fld_list[\'q_mail\']}\r\n\r\nComments:\r\n{$fld_list[\'q_other\']}\r\nEND;\r\n\r\n/**\r\n* mail to admin  { from here\r\n*/\r\n    $out_mail_admin = <<<END\r\n\r\n{$lang[\'receipt_admin\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_admin\']}\r\nEND;\r\n/**\r\n* } end mail to admin\r\n*/\r\n/**\r\n* mail to sender { from here\r\n*/\r\n    $out_mail_user = <<<END\r\n\r\n{$lang[\'receipt_user\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_user\']}\r\nEND;\r\n/**\r\n* } end mail to sender\r\n*/\r\n\r\n\r\n    # send email\r\n    $ownererr = false;\r\n    $ownersend = false;\r\n    $om_array = explode(\',\', $owner_email);\r\n    $owner_mails = array_unique($om_array);  # delete email double checked\r\n    if (!empty($owner_email_item_name)) {\r\n        $selmail;\r\n        foreach ($owner_mails as $v) {\r\n            list($key, $mail) = explode(\'=\', $v);\r\n            if ($_POST[$owner_email_item_name] == $key) {\r\n                $selmail = explode(\'|\', $mail);\r\n                break;\r\n            }\r\n        }\r\n        $owner_mails = $selmail;\r\n    }\r\n    $owner_subject = $lang[\'subject_admin\'];\r\n    foreach ($owner_mails as $v) {\r\n        $email1 = COM_mail( $v, \"$owner_subject\", $out_mail_admin, $email_from, false); # mail to admin\r\n        if (!$email1) { $ownererr = true; } else { $ownersend = true; }  # set flag of transmit error\r\n    }\r\n    # if error at admin email transmission\r\n    if ($ownererr) {\r\n        # if transmission succed for some of admins\r\n        if ($ownersend) {\r\n            # logs error. no error display for user since some of admin\r\n            # received the email\r\n            COM_errorLog($lang[\'ownertransmiterror\'], 1);\r\n            $email1 = true;\r\n        # if transmission failed to all admins\r\n        } elseif (!$ownersend) {\r\n            # makes it a process error. no email to user.\r\n            $email1 = false;\r\n        }\r\n    }\r\n    if ($email1) {\r\n        $usr_subject = $lang[\'subject_user\'];\r\n        $email2 = COM_mail( $fld_list[$email_input_name], \"$usr_subject\", $out_mail_user, $email_from, false); # email to user\r\n    }\r\n    if ($email1 && $email2) { # if succeed both of admins and user.\r\n        # csv output\r\n        if ($save_csv > 0) {\r\n            $fldnames = mkCsv($form_items);\r\n            $delimiter = \',\';\r\n            if ($save_csv > 1) { $delimiter = chr(9); }\r\n            $enclosure = \'\"\';\r\n            # csv output\r\n            $str = \'\';\r\n            $escape_char = chr(92);\r\n            foreach ($fldnames as $n) {\r\n                $v = empty($fld_list[$n]) ? \'\' : $fld_list[$n] ;\r\n                if (strpos($v, $delimiter) !== false ||\r\n                    strpos($v, $enclosure) !== false ||\r\n                    strpos($v, chr(10)) !== false ||\r\n                    strpos($v, chr(13)) !== false ||\r\n                    strpos($v, chr(9)) !== false ||\r\n                    strpos($v, \' \') !== false) {\r\n                  $str2 = $enclosure;\r\n                  $escaped = 0;\r\n                  $len = strlen($v);\r\n                  for ($i=0;$i<$len;$i++) {\r\n                    if ($v[$i] == $escape_char) {\r\n                      $escaped = 1;\r\n                    } else if (!$escaped && $v[$i] == $enclosure) {\r\n                      $str2 .= $enclosure;\r\n                    } else {\r\n                      $escaped = 0;\r\n                    }\r\n                    $str2 .= $v[$i];\r\n                  }\r\n                  $str2 .= $enclosure;\r\n                  $str .= $str2.$delimiter;\r\n                } else {\r\n                  $str .= $v.$delimiter;\r\n                }\r\n            }\r\n            $str = date($date_csv) . $delimiter . substr($str,0,-1);\r\n            $str .= LB;\r\n            if( !empty( $save_csv_lang ) ) {\r\n                $str = mb_convert_encoding($str, $save_csv_lang);\r\n            }\r\n            $fp = fopen($save_csv_file, \'a\');\r\n            fwrite($fp, $str);  # CSV output\r\n            fclose($fp);\r\n        }\r\n        $retval = $out_html;\r\n    } else {\r\n        $retval = $lang[\'transmiterror\']; # if email failed\r\n    }\r\n}\r\n// execute Geeklog PHP\r\necho $retval;\r\n// if you use \'execute PHP(return)\' with Geeklog 1.6 or later, Please comment (#)the above \'echo\' and uncomment the blow \'return\' to enable.\r\n# return $retval;\r\n',494,'2010-09-02 05:23:24','2010-10-09 11:05:01','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_mt2geeklog','_mt2geeklog','','<!-- } blockheader-left.thtml -->\r\n<form name=\"importform\" enctype=\"multipart/form-data\" action=\"/index.php\" method=\"post\">\r\n  <p><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"10485760\">インポートするファイル名: <input name=\"importfile\" type=\"file\"></p>	<p>入力エンコーディング：<br>\r\n\r\n	<select name=\"encoding\">\r\n		<option value=\"AUTO\" selected=\"selected\">自動判別</option>\r\n		<option value=\"ASCII\">ASCII</option>\r\n		<option value=\"eucJP-win\">eucJP-win</option>\r\n		<option value=\"EUC-JP\">EUC-JP</option>\r\n		<option value=\"UTF-8\">UTF-8</option>\r\n\r\n		<option value=\"SJIS-win\">SJIS-win</option>\r\n		<option value=\"SJIS\">SJIS</option>\r\n		<option value=\"JIS\">JIS</option>\r\n		<option value=\"ISO-2022-JP\">ISO-2022-JP</option>\r\n		<option value=\"UTF-7\">UTF-7</option>\r\n	</select></p>	<p>記事のオーナー：<br>\r\n\r\n	<select name=\"author\">\r\n		<option value=\"au_astheyare\" selected>すべて元の投稿者</option>\r\n		<option value=\"au_astheyare_possible\">できるだけ元の投稿者</option>\r\n		<option value=\"au_asmyself\">Admin</option>\r\n	</select></p>\r\n	<p>デフォルトの話題：<br>\r\n	<input name=\"default_category\" type=\"text\" title=\"IMPORTED-FROM-MT\" value=\"IMPORTED-FROM-MT\"></p>\r\n\r\n	<p>投稿状態：<br>\r\n	<select name=\"submit_status\">\r\n		<option value=\"ss_astheyare\" selected>元のデータ通り</option>\r\n		<option value=\"ss_force_post\">すべて投稿済みにする</option>\r\n		<option value=\"ss_force_draft\">すべて下書きにする</option>\r\n	</select></p>\r\n	<p>コメント：<br>\r\n\r\n	<select name=\"handle_comment\">\r\n		<option value=\"hc_yes\" selected>インポートする</option>\r\n		<option value=\"hc_no\">インポートしない</option>\r\n	</select></p>\r\n	<p>コメント許可：<br>\r\n	<select name=\"allow_comment\">\r\n		<option value=\"ac_auto\" selected>自動判別</option>\r\n\r\n		<option value=\"ac_astheyare\">元のデータ通り</option>\r\n		<option value=\"ac_force_enabled\">すべて許可する</option>\r\n		<option value=\"ac_force_disabled\">すべて禁止する</option>\r\n	</select><br>\r\n	<p>トラックバック：<br>\r\n	<select name=\"handle_tb\">\r\n		<option value=\"ht_yes\">インポートする</option>\r\n\r\n		<option value=\"ht_no\" selected>インポートしない</option>\r\n	</select><br>\r\n	<p>トラックバック許可：<br>\r\n	<select name=\"allow_tb\">\r\n		<option value=\"at_auto\" selected>自動判別</option>\r\n		<option value=\"at_astheyare\">元のデータ通り</option>\r\n		<option value=\"at_force_enabled\">すべて許可する</option>\r\n\r\n		<option value=\"at_force_disabled\">すべて禁止する</option>\r\n	</select><br>\r\n	<p>Start title HTML:<br>\r\n	<input name=\"start_title_html\" type=\"text\"></p>\r\n	<p>End title HTML:<br>\r\n	<input name=\"end_title_html\" type=\"text\"></p>\r\n	<p>投稿モード：<br>\r\n\r\n	<select name=\"text_type\">\r\n		<option value=\"plaintext\">テキスト</option>\r\n		<option value=\"html\" selected>HTML形式</option>\r\n	</select><br><br>\r\n	<input type=\"hidden\" name=\"cmd\" value=\"import\">\r\n	<input type=\"submit\" name=\"submit\" value=\"インポート\">\r\n</form>\r\n<!-- blockfooter-left.thtml { -->\r\n\r\n',8,'2010-09-02 02:41:14','2010-09-02 02:41:14','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,0,0,0,0,'',1,0,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('contact_zh','联系我们','','// +---------------------------------------------------------------------------+\r\n// | Geeklog FormMail Static Page                                              |\r\n// +---------------------------------------------------------------------------+\r\n// | Copyright (C) 2008-2010 by the following authors:                         |\r\n// |                                                                           |\r\n// | Authors    : Hiroshi Sakuramoto - hiro AT winkey DOT jp                   |\r\n// | Sponser    : White Bear Family CO., LTD                                   |\r\n// | Coordinate : Adeliae Planning CO., LTD - www.e-adeliae.com                |\r\n// | Coordinate : IVY WE CO., LTD - www.ivywe.co.jp                            |\r\n// | Version: 2.1.3                                                            |\r\n// +---------------------------------------------------------------------------+\r\nglobal $_CONF, $_USER, $_PLUGINS;\r\nif (!defined(\'XHTML\')) define(\'XHTML\', \' /\');\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 初期設定                                                                  |\r\n// +---------------------------------------------------------------------------+\r\n# 入力フォームのURL\r\n# $pageurl = $_SERVER[\"REQUEST_URI\"];\r\n// $_SERVER[\"REQUEST_URI\"] が使えず正しく動かない場合は以下へ、\r\n//   静的ページPHPを作成する時に入力したIDを入れてください。\r\n//   (wikiドキュメントのサンプル例だと\'formmail\')\r\n//   ※IDを入力したら先頭の#を削除してください。(コメントをはずします)\r\n$pageid = \'contact_zh\';\r\n\r\n# 問合せを管理者へ通知の設定\r\n#    複数のE-mailはカンマ(,)で区切りで指定する(スペース等はあけない)\r\n#      例) \'info@hoge.com,admin@page.com\'\r\n#    特定の入力項目に応じて送り先を変える\r\n#    ※この方法を利用する時は必ず $owner_email_item_name を指定してください。\r\n#      例) \'AAA=info@hoge.com,BBB=admin@page.com\'\r\n\r\n$owner_email=$_CONF[\'site_mail\'];\r\n\r\n\r\n# 管理者Emailを入力項目から選択する項目名\r\n//  ※送り先を変える指定をしたら先頭の#を削除してください。(コメントをはずします)\r\n#$owner_email_item_name = \'q_mail_to\';\r\n\r\n# メール送信者E-mail\r\n$email_from = $_CONF[\'site_mail\'];\r\n#Geeklog1.5から，noreplyを指定できます。\r\n#$email_from = $_CONF[\'noreply_mail\'];\r\n\r\n# 問合せ者のメールアドレスの項目名\r\n$email_input_name = \'q_mail\';\r\n\r\n# メール一致チェック項目指定\r\n#   メール確認でどちらも同じものを入力 というname属性を(=)で区切る(スペース等はあけない)\r\n#     例) \'email=reemail\'\r\n$essential_email = \'q_mail=q_mail_re\';\r\n\r\n\r\n# メールアドレスチェック項目指定\r\n#   入力された値がメールアドレスとして正しいかチェックをする\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n#     例) \'email,reemail\'\r\n\r\n$propriety_email = \'q_mail,q_mail_re\';\r\n\r\n# ログイン済みならユーザ情報を利用する指定\r\n#   ログインユーザーの名前やメールアドレスを利用\r\n#\r\n$username = \'\'; $user_email = \'\';\r\nif (isset ($_USER[\'uid\']) && ($_USER[\'uid\'] > 1)) {\r\n    $username = isset($_USER[\'fullname\']) ? $_USER[\'fullname\'] : $_USER[\'username\'];\r\n    $user_email = $_USER[\'email\'];\r\n}\r\n\r\n# CSVファイルに保存\r\n#   指定方法 保存しない: 0 , 保存する(カンマ区切り): 1 , 保存する(タブ区切り): 2\r\n$save_csv = 1;\r\n\r\n# CSVファイル保存場所 (直接入力時は最後にスラッシュ必須)\r\n$save_csv_path = $_CONF[\'path_data\'];\r\n\r\n# CSVファイル名\r\n$save_csv_name = \'formmail.csv\';\r\n\r\n# CSVファイル保存の文字コード\r\n#   文字コード変換をしない場合は \'\' と指定してください。\r\n#   機能がOFFになります。（文字化けするようなら機能を\'\'で\r\n#   OFFにして別途フリーの文字変換ツールなどをご利用ください）\r\n# 注意) mb_convert_encodingで使える文字コードを指定してください\r\n#   例) UTF-8, SJIS, EUC-JP, JIS, ASCII\r\n$save_csv_lang = \'SJIS\';\r\n\r\n# 全角を半角に変換する項目名(英数字、スペース、カタカナ、ひらがな)\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$zentohan_itemname = \'q_phone,q_code1_1,q_code2_1,q_code3_1,q_code1_2,q_code2_2,q_code3_2,q_code1_3,q_code2_3,q_code3_3\';\r\n\r\n# カタカナの半角をカタカナの全角に変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hantozen_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ひらがなをカタカナに変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hiratokana_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ==画像認証関係==\r\n#   画像認証(CAPTCHA)がインストールされていない場合のエラーメッセージ\r\n$msg_spformmail_notinstall_captcha = \'CAPTCHAプラグインがインストールされていません。\';\r\n#   送信時に画像認証でエラーの場合のエラーメッセージ\r\n#     ※空文字にするとCAPTCHAプラグインが作成するエラーメッセージを使います。\r\n#     ※空文字意外にするとそれを無視して固定メッセージにできます。\r\n$msg_spformmail_valid_captcha = \'\';\r\n#\r\n#   ※ CAPTCHAのテンプレートを自由に作成することも可能\r\n#   public_html/layout/<themename>/sp_formmail/captcha.thmtl があればそちらが優先されます。\r\n#   通常は private/plugins/captcha/templates/captcha_others.thtml\r\n#\r\n\r\n# 遷移の項目名\r\n$seni_items = array(\'input\' => \'信息类型\', \'confirm\' => \'检查输入字段\', \'finish\' => \'填充\');\r\n\r\n# 必須入力の文字列\r\n$required_string = \'<span class=\"spf_required\">*必須</span>\';\r\n\r\n# ==日付関係==\r\n#   下記JavaScriptカレンダーでの日付表記\r\n#     phpのdate(http://www.php.net/manual/en/function.date.php)で使う\r\n#     「d, D, j, l, N, w, S, F, m, M, n, Y, y」を指定できます。\r\n$date_js_cal = \'Y/m/d\';\r\n#   メールに記載される受付日時表記\r\n#     phpのdateのものがすべて使えます http://www.php.net/manual/en/function.date.php\r\n$date_mail = \'Y年m月d日H:i\';\r\n#   csv書き出し時、1列目に記載される日時表記\r\n#     phpのdateのものがすべて使えます http://www.php.net/manual/en/function.date.php\r\n$date_csv = \'Y/m/d H:i\';\r\n\r\n# JavaScriptライブラリの利用 (カレンダー表示用)\r\n$use_jslib = TRUE;\r\n\r\n# JavaScriptライブラリ等の宣言\r\n#   カレンダー表示用JavaScript+CSS\r\n#     Calendar RC4, (c) 2007 Aeron Glemann <http://electricprism.com/aeron>, MIT Style License\r\n#     (http://www.electricprism.com/aeron/calendar/)\r\n$def_jslib = <<<JSLIB\r\n\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/mootools.js\"></script>\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.js\"></script>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.css\" media=\"screen\" />\r\n<script type=\"text/javascript\">\r\n window.addEvent(\'domready\', function() { myCal = new Calendar({ q_date1: \'$date_js_cal\' }, { days: [\'日\',\'月\',\'火\',\'水\',\'木\',\'金\',\'土\'], months: [\'1月\',\'2月\',\'3月\',\'4月\',\'5月\',\'6月\',\'7月\',\'8月\',\'9月\',\'10月\',\'11月\',\'12月\'] }); });\r\n</script>\r\nJSLIB;\r\n\r\n#####\r\n# 表示メッセージ\r\n#####\r\n$lang = array(\r\n// { 完了HTML＆メールのメッセージ\r\n  \'receipt_admin\' =>\'管理者のみなさま\'.LB.LB.$_CONF[\'site_name\'].\'サイトにおいて\'.LB.\'問い合わせがありました。\'.LB.LB.\'==========お問い合わせ ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'receipt_user\' =>\'※本メールは、\'.$_CONF[\'site_name\'].\'サイトより自動的に配信しています。\'.LB.\'此电子邮件是专门派遣资格回复此电子邮件。\'.LB.\'＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\'.LB.\'感谢您的请求。\'.LB.LB.\'========== 查询 ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'subject_admin\'=> \'[\'.$_CONF[\'site_name\'].\']お問い合わせ\',\r\n  \'subject_user\'=> \'[\'.$_CONF[\'site_name\'].\']接受调查\',\r\n  \'sign_admin\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.$_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n  \'sign_user\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.\'URL：\' . $_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n// } 完了HTML＆メールのメッセージ\r\n// { システムエラーのメッセージ\r\n  \'ownertransmiterror\'=>\'オーナーメール処理中、一部のアドレスでエラーが発生しましたが、処理を続けました。\',\r\n  \'transmiterror\'=>\'処理中にエラーが発生しました。\',\r\n// } システムエラーのメッセージ\r\n);\r\n\r\n\r\n\r\n#####\r\n# フォーム項目の設定\r\n#####\r\n$form_items = array(\r\n  // < テーブル\r\n  array(\'title\' => \'你的名字\', \'table\' => array(\r\n    // < テーブル１行\r\n    array(\'header\' => \'你的名字\', \'valid_notkanahan\' => \'q_name\', \'error_notkanahan\' => \'该片假名是你叫什么名字？请输入所有的全角\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_name\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'60\',\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n    // < テーブル１行\r\n    array(\'header\' => \'Email\',\r\n          \'valid_require\' => $required_string, \'error_require\' => \'没有电子邮件地址\',\r\n          \'valid_equal\' => $essential_email, \'error_equal\' => \'E - mail地址不匹配\',\r\n          \'valid_email\' => $propriety_email, \'error_email\' => \'请输入您的电子邮件地址正确\',\r\n          \'valid_hankaku\' => \'q_mail,q_mail_re\', \'error_hankaku\' => \'请输入您的电子邮件地址中的任何一半\',\r\n          \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput ime_off\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail_re\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput ime_off\',\r\n                  \'not_confirm\' => \'true\',\r\n                  \'not_csv\' => \'true\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'string\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'input\' => \'※为了验证，请再试一次\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n   ),\r\n  ),\r\n  // > テーブル\r\n  // < テーブル\r\n  array(\'title\' => \'查询\', \'table\' => array(\r\n    // < テーブル１行\r\n    array(\'header\' => \'查询\', \'valid_notkanahan\' => \'q_other\', \'error_notkanahan\' => \'该调查是片假名。请输入所有的全角\', \'valid_maxlen\' => \'q_other=200\', \'error_maxlen\' => \'查询字符，请输入200个字符\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'textarea\',\r\n                  \'name\' => \'q_other\',\r\n                  \'class\' => \'bginput ime_on\',\r\n                  \'style\' => \'width: 95%; height: 100px;\',\r\n                  \'onKeyup\' => \"var n=200-this.value.length;var s=document.getElementById(\'tasp1\');s.innerHTML=\'(\'+n+\')\';\"\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\">※请输入您的询问。<strong><span id=\'tasp1\'></span><strong><br\".XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n   ),\r\n  ),\r\n  // > テーブル\r\n  // < 送信ボタン - 入力画面\r\n  array(\'action\' => \'input\', \'data\' =>\r\n      array(\r\n          array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'确认屏幕上输入栏\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > 送信ボタン - 入力画面\r\n  // < 送信ボタン - 確認画面\r\n  array(\'action\' => \'confirm\', \'data\' =>\r\n      array(array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'goback\',\r\n                \'class\' => \'button_form_prev\',\r\n                \'value\' => \'返回\'\r\n          ),\r\n          array(\'string\' => \'　\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'发送\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > 送信ボタン - 確認画面\r\n);\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 初期処理                                                                  |\r\n// +---------------------------------------------------------------------------+\r\n# POSTデータを直接変換 (全角から半角へ、カタカナ半角からカタカナ全角へ)\r\nif (!empty($zentohan_itemname)) { foreach (explode(\',\',$zentohan_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'askh\'); } }\r\nif (!empty($kana_hantozen_itemname)) { foreach (explode(\',\',$kana_hantozen_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'K\'); } }\r\nif (!empty($kana_hiratokana_itemname)) { foreach (explode(\',\',$kana_hiratokana_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'C\'); } }\r\n# データを保存用に加工\r\nforeach ($_POST as $k => $v) {\r\n    $fld_list[$k] = preg_replace(\'/,/\', \'，\', $_POST[$k]);\r\n    $fld_list[$k] = preg_replace(\'/\"/\', \'”\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\"/\'/\", \"’\", $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/`/\', \'‘\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/;/\', \'；\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(preg_quote(\'#\'.chr(92).\'#\'), \'￥\', $fld_list[$k]);\r\n    $fld_list[$k] = COM_applyFilter($fld_list[$k]);\r\n}\r\n# CSVファイルのフルパス\r\n$save_csv_file = $save_csv_path . $save_csv_name;\r\n# pageidからpageurlを作成\r\nif (!empty($pageid)) { $pageurl = COM_buildUrl($_CONF[\'site_url\'].\'/staticpages/index.php?page=\'.$pageid); }\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 関数群:                                                                   |\r\n// +---------------------------------------------------------------------------+\r\nif(!function_exists(\'getAction\')){\r\nfunction getAction ($err) {\r\n    $buf = \'\';\r\n    $action = COM_applyFilter($_POST[\'action\']);\r\n    if (!empty($action) && empty($err) && $action == \'input\') { $buf = \'confirm\'; }\r\n    elseif (!empty($action) && empty($err) && $action == \'confirm\') { $buf = empty($_POST[\'goback\']) ? \'finish\' : \'input\'; }\r\n    else { $buf = \'input\'; }\r\n    return $buf;\r\n}\r\n\r\nfunction mkJS4MG ($lib) {\r\n    $buf = preg_replace(\"@<script[^>]+mootools.js[^>]+>[^<]*</script>@\", \"\", $lib);\r\n    return str_replace(\'calendar.js\', \'calendar_mg.js\', $buf);\r\n}\r\n\r\nfunction mkJS ($use,$lib,$action,$plg) {\r\n    $buf=\'\';\r\n    if (!empty($action) && $action == \'input\' && isset($use) && $use == TRUE) {\r\n        if (in_array(\'mediagallery\', $plg)) {\r\n            global $_MG_CONF;\r\n            $mgv = $_MG_CONF[\'pi_version\'];\r\n            $mglib = $_MG_CONF[\'js_lib\'];\r\n            if (!empty($mgv) && !empty($mglib) && (version_compare($mgv, \'1.6.10\', \'<\') || strtolower($mglib) == \'mootools\')) {\r\n                $buf = mkJS4MG($lib);\r\n            } elseif(!empty($mglib) && strtolower($mglib) == \'jquery\') {\r\n                $buf = <<<JQNC\r\n<script>\r\n<!--\r\njQuery.noConflict();\r\n-->\r\n</script>{$lib}\r\nJQNC;\r\n            } else {\r\n                $buf = $lib;\r\n            }\r\n        } else {\r\n            $buf = $lib;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkSeni ($items, $action) {\r\n    $buf = \'<ul>\'.LB;\r\n    foreach ($items as $key => $value) {\r\n        if ($action == $key) {\r\n            $buf .= \'    <li class=\"on\">\'.$value.\'</li>\'.LB;\r\n        } else {\r\n            $buf .= \'    <li>\'.$value.\'</li>\'.LB;\r\n        }\r\n    }\r\n    $buf .= \'</ul>\'.LB;\r\n    return $buf;\r\n}\r\n\r\nfunction putiFilter($s) {\r\n    $se = array(\'%\',\'(\',\')\',chr(92),chr(13).chr(10),chr(13),chr(10));\r\n    $re = array(\'&#37;\',\'&#40;\',\'&#41;\',\'&#92;\',\'\',\'\',\'\');\r\n    return str_replace($se, $re, htmlspecialchars($s,ENT_QUOTES));\r\n}\r\n\r\nfunction vldCAPTCHA ($type, $errmsg) {\r\n    global $_CP_CONF, $_USER;\r\n    $msg = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg; }\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        $str = COM_applyFilter($_POST[\'captcha\']);\r\n        list( $rc, $msg )  = CAPTCHA_checkInput( $type, $str );\r\n    }\r\n    if ( !empty($msg) && !empty($errmsg) ) { $msg = $errmsg; }\r\n    return $msg;\r\n\r\n}\r\n\r\nfunction vld_isPhone($s) { return (preg_match(\'/^(?:[0-9\'.chr(92).\'+\'.chr(92).\'-\'.chr(92).\'s])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHankaku($s) { return (preg_match(\'/^(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isZenkaku($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+/D\',$s)) ? FALSE : TRUE; }\r\nfunction vld_isEisuHan($s) { return (preg_match(\'/^(?:[0-9A-Za-z])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isKanaZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x83[\'.chr(92).\'x80-\'.chr(92).\'xB6])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHiraZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x81[\'.chr(92).\'x81-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'x80-\'.chr(92).\'x93])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isNotKanaHan($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F])+/D\',$s)) ? TRUE : FALSE; }\r\n\r\nfunction ChkValidate ($mode, $datas, $errmsg, $attributes = \'\') {\r\n    $msg = \'\';\r\n    foreach ($datas as $data) {\r\n        if (isset($data[\'type\'])) {\r\n            $name = $data[\'name\'];\r\n            switch ($mode) {\r\n                // 必須チェック\r\n                case \'require\':\r\n                    if (empty($data[\'notrequire\']) && empty($_POST[$name]) && $_POST[$name] != \"0\") { $msg = $errmsg; }\r\n                    break;\r\n                // 一致チェック\r\n                case \'equal\':\r\n                    if (!empty($attributes)) {\r\n                        $es_emails = explode(\',\', $attributes);\r\n                        foreach ($es_emails as $es_email) {\r\n                            list($eq1,$eq2) = explode(\'=\', $es_email);\r\n                            // 最初のキー かつ チェックするキーが存在\r\n                            if ($name == $eq1 && !empty($_POST[$eq2])) {\r\n                                if ($_POST[$eq1] != $_POST[$eq2]) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // メールチェック\r\n                case \'email\':\r\n                    if (!empty($attributes)) {\r\n                        $pr_emails = explode(\',\', $attributes);\r\n                        foreach ($pr_emails as $pr_email) {\r\n                            if ($name == $pr_email) {\r\n                                if (!COM_isemail($_POST[$name])) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 数値チェック - 足して0以上\r\n                case \'notzero\':\r\n                    if (!empty($attributes)) {\r\n                        $values_key = explode(\',\', $attributes);\r\n                        foreach ($values_key as $val_key) {\r\n                            // 最初のキーのときにチェック\r\n                            if ($name == $val_key) {\r\n                                $sum_val = 0;\r\n                                foreach ($values_key as $chk_key) {\r\n                                    if (!empty($_POST[$chk_key])) {\r\n                                        $sum_val += $_POST[$chk_key];\r\n                                    }\r\n                                }\r\n                                if ($sum_val <= 0) {\r\n                                    $msg = $errmsg;\r\n                                    break;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 数値のみかチェック\r\n                case \'numeric\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !ctype_digit($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 電話番号かチェック\r\n                case \'phone\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isPhone($_POST[$name])) { $msg = $errmsg; }\r\n                // 半角チェック\r\n                case \'hankaku\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isHankaku($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角チェック\r\n                case \'zenkaku\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isZenkaku($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 半角英数字チェック\r\n                case \'eisuhan\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isEisuHan($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角カタカナチェック\r\n                case \'kanazen\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isKanaZen($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角ひらがなチェック\r\n                case \'kanazen\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isHiraZen($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 半角カタカナ以外かチェック\r\n                case \'notkanahan\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && vld_isNotKanaHan($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 文字数チェック\r\n                case \'maxlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$max2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($max2 < mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 最低文字数チェック\r\n                case \'minlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$min2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($min2 > mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n    // 画像認証チェック\r\n    if ( $mode == \'captcha\' ) { $msg = vldCAPTCHA(\'sp_formmail\', $errmsg); }\r\n    return $msg;\r\n}\r\n\r\nfunction ChkFormValidateLines ($lines) {\r\n    $errmsg;\r\n    foreach (array(\'require\',\'equal\',\'email\',\'notzero\',\'numeric\',\'phone\',\'hankaku\',\'zenkaku\',\'eisuhan\',\'kanazen\',\'hirazen\',\'notkanahan\',\'captcha\',\'maxlen\',\'minlen\') as $chk) {\r\n        // 必須,一致,メール,画像認証,エラー のチェック\r\n        if (isset($lines[\'valid_\'.$chk])) {\r\n            $errmsg = ChkValidate($chk, $lines[\'data\'], $lines[\'error_\'.$chk], $lines[\'valid_\'.$chk]);\r\n            // エラーがあれば配列に格納\r\n            if ($errmsg) {\r\n                break;\r\n            }\r\n        }\r\n    }\r\n    return $errmsg;\r\n}\r\n\r\nfunction ChkFormValidate ($items) {\r\n    $errs;\r\n    foreach ($items as $item) {\r\n        // 各テーブル\r\n        foreach ($item as $key => $value) {\r\n            // １テーブル\r\n            if ($key == \'table\' || $key == \'table_captcha\') {\r\n                $action = getAction(\'\');\r\n                if ($key == \'table_captcha\' && $action == \'finish\') { continue; }\r\n                foreach ($value as $key2 => $value2) {\r\n                    // テーブル１行\r\n                    $errmsg = ChkFormValidateLines($value2);\r\n                    if ($errmsg) { $errs[] = $errmsg; }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $errs;\r\n}\r\n\r\nfunction FormValidate ($items) {\r\n    $buf = \'\';\r\n    $errs = ChkFormValidate($items);\r\n    if (!empty($errs)) {\r\n        $errmsg = \'\';\r\n        foreach ($errs as $err) {\r\n            $errmsg .= \'    <li>\'.$err.\'</li>\'.LB;\r\n        }\r\n        $buf = <<<END\r\n\r\n<p class=\"error\">入力エラーがありました。下記について再度ご確認の上、ご記入ください。</p>\r\n<ol class=\"errorList\">\r\n$errmsg\r\n</ol>\r\nEND;\r\n    }\r\n    return $buf;\r\n}\r\n\r\n\r\nfunction mkTitle ($title) {\r\n    return <<<END\r\n\r\n    <h4>$title</h4>\r\n    <table class=\"formmail\" cellspacing=\"0\">\r\n        <colgroup><col width=\"130\" /></colgroup>\r\n        <tbody>\r\nEND;\r\n}\r\n\r\nfunction mkForm_Value ($name, $value) {\r\n    return (empty($_POST[$name]) && $_POST[$name] != \"0\") ? $value : putiFilter($_POST[$name]);\r\n}\r\n\r\nfunction mkForm_Radio_Checked (&$attributes) {\r\n    $name = $attributes[\'name\'];\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n        if (isset($attributes[\'checked\'])) unset($attributes[\'checked\']);\r\n        if ($_POST[$name] == $attributes[\'value\']) {\r\n            $attributes[\'checked\'] = \'checked\';\r\n        }\r\n    }\r\n}\r\n\r\nfunction mkForm_Input ($attributes, $hidden = false) {\r\n    if ($hidden) {\r\n        if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n            if ($attributes[\'value\'] != $_POST[$attributes[\'name\']]) return \'\';\r\n        }\r\n        $attributes[\'type\'] = \'hidden\';\r\n    }\r\n    if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n        mkForm_Radio_Checked($attributes);\r\n    } else {\r\n        if ($attributes[\'type\'] != \'submit\') $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    }\r\n    $buf = \'<input\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'not_confirm\') { $buf .= \' \'.$key.\'=\"\'.$value.\'\"\'; }\r\n    }\r\n    $buf .= XHTML.\'>\';\r\n    if ($hidden || $attributes[\'type\'] == \'checkbox\') {\r\n        if ( !isset($attributes[\'not_confirm\']) || ! $attributes[\'not_confirm\'] ) { $buf .= \' \' . $attributes[\'value\']; }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select_Options ($name, $attributes) {\r\n    $buf = \'\';\r\n    $selected = mkForm_Value($name, $attributes[\'selected\']);\r\n    $values = explode(\',\', $attributes[\'values\']);\r\n    foreach ($values as $value) {\r\n        list($k,$v) = explode(\'=\',$value);\r\n        if (empty($v)) $v = $k;\r\n        if ($selected == $k) {\r\n            $buf .= \'<option selected=\"selected\" value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        } else {\r\n            $buf .= \'<option value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select ($attributes) {\r\n    $buf = \'<select\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'options\') {\r\n            $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n        }\r\n    }\r\n    $buf .= \'>\';\r\n    $buf .= mkForm_Select_Options($attributes[\'name\'], $attributes[\'options\']);\r\n    $buf .= \'</select>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Textarea ($attributes) {\r\n    $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    $buf = \'<textarea\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'value\') $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n    }\r\n    $buf .= \'>\'.$attributes[\'value\'].\'</textarea>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Item ($items, $action) {\r\n    $buf = \'\';\r\n    if ($action != \'input\' && $items[\'type\'] != \'submit\' && $items[\'type\'] != \'hidden\') {\r\n        $buf .= mkForm_Input($items, true);\r\n    } else {\r\n        switch ($items[\'type\']) {\r\n            case \'text\': $buf .= mkForm_Input($items); break;\r\n            case \'password\': $buf .= mkForm_Input($items); break;\r\n            case \'hidden\': $buf .= mkForm_Input($items); break;\r\n            case \'radio\': $buf .= mkForm_Input($items); break;\r\n            case \'checkbox\': $buf .= mkForm_Input($items); break;\r\n            case \'select\': $buf .= mkForm_Select($items); break;\r\n            case \'textarea\': $buf .= mkForm_Textarea($items); break;\r\n            case \'submit\': $buf .= mkForm_Input($items); break;\r\n            case \'reset\': $buf .= mkForm_Input($items); break;\r\n            case \'button\': $buf .= mkForm_Input($items); break;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkTable_Data ($datas, $action) {\r\n    $buf = \'\';\r\n    foreach ($datas as $data) {\r\n        // １つのデータ\r\n        if (!empty($data[\'type\'])) {\r\n            // フォーム\r\n            $buf .= mkForm_Item($data, $action);\r\n        }\r\n        else {\r\n            // 文字列\r\n            foreach ($data as $key => $value) {\r\n                if ($key == \'string\') {\r\n                    $buf .= $value;\r\n                } elseif ($key == $action) {\r\n                    $buf .= $value;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction plugin_templatePath_sp_formmail () {\r\n    global $_CONF;\r\n    $pi_name = \'sp_formmail\';\r\n    $layout_path = $_CONF[\'path_layout\'] . $pi_name;\r\n    return $layout_path;\r\n}\r\n\r\nfunction chk_Use_CAPTCHA_HTML () {\r\n    global $_CP_CONF, $_USER;\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction mkCAPTCHA_HTML ($name, $msg_notcaptcha) {\r\n    global $_CP_CONF, $_USER, $_TABLES;\r\n    $captcha = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg_notcaptcha; }\r\n    if ( chk_Use_CAPTCHA_HTML() ) {\r\n\r\n        $csid = 0;\r\n        if ($_CP_CONF[\'gfxDriver\'] != 1) {\r\n\r\n            // housekeeping, delete old captcha sessions\r\n            $oldSessions = time() - ($_CP_CONF[\'expire\']+900);\r\n            DB_query(\"DELETE FROM {$_TABLES[\'cp_sessions\']} WHERE cptime < \" . $oldSessions,1);\r\n\r\n            // OK, we need to insert the CAPTCHA, so now we need to setup the session_id:\r\n\r\n            // check to see if a failed entry happened...\r\n            if ( isset($_POST[\'csid\']) ) {\r\n                $csid = COM_applyFilter($_POST[\'csid\']);\r\n            } else {\r\n                $csid = CAPTCHA_sid();\r\n            }\r\n            $time    = time();\r\n            $counter = 0;\r\n            $validation = \'\';  // this will be filled in by the CAPTCHA\r\n\r\n                \"  `session_id` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `cptime`  INT(11) NOT NULL default 0, \" .\r\n                \"  `validation` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `counter`    TINYINT(4) NOT NULL default 0, \" .\r\n\r\n            DB_save($_TABLES[\'cp_sessions\'],\"session_id,cptime,validation,counter\",\"\'$csid\',\'$time\',\'\',\'0\'\");\r\n        }\r\n\r\n        $captcha = CAPTCHA_getHTML($csid,$name);\r\n    }\r\n    return $captcha;\r\n}\r\n\r\nfunction mkTable ($tables, $action) {\r\n    $buf = \'\';\r\n    foreach ($tables as $lines) {\r\n        $flg_valid_captcha = false;\r\n        $errflg = \'\';\r\n        $tdclass=\'\';\r\n        $buf .= LB .\'            <tr>\' . LB;\r\n        $buf .= \'                <th>\';\r\n        if (isset($lines[\'header\'])) { $buf .= $lines[\'header\']; }\r\n        if (isset($lines[\'header_captcha\'])) { $buf .= $lines[\'header_captcha\']; }\r\n        if (isset($lines[\'valid_require\'])) { $buf .= $lines[\'valid_require\']; }\r\n        if (isset($lines[\'valid_captcha\'])) { $buf .= $lines[\'valid_captcha\']; $flg_valid_captcha = true; }\r\n        // エラーチェック\r\n        if (!empty($_POST)) { $errflg = ChkFormValidateLines($lines); }\r\n        if ($errflg) { $tdclass=\' class=\"warning_bgc\"\'; }\r\n        $buf .= \'</th>\'.LB;\r\n        $buf .= \'                <td\'.$tdclass.\'>\';\r\n        if (isset($lines[\'data\'])) {\r\n            if ($flg_valid_captcha) {\r\n                $buf .= mkCAPTCHA_HTML(\'sp_formmail\',$lines[\'error_notcaptcha\']);\r\n            } else {\r\n                $buf .= mkTable_Data($lines[\'data\'], $action);\r\n            }\r\n        }\r\n        $buf .= \'</td>\'.LB;\r\n        $buf .= \'            </tr>\'.LB;\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm ($items, $action) {\r\n    $buf = \'\';\r\n    foreach ($items as $item) {\r\n        // 各テーブル\r\n        if (!empty($item[\'table\'])) {\r\n            foreach ($item as $key => $value) {\r\n                // １テーブル\r\n                switch ($key) {\r\n                    case \'title\': $buf .= mkTitle($value); break;\r\n                    case \'table\': $buf .= mkTable($value, $action); break;\r\n                }\r\n            }\r\n            $buf .= <<<END\r\n\r\n        </tbody>\r\n    </table>\r\nEND;\r\n        } elseif (!empty($item[\'table_captcha\'])) {  // 画像認証テーブル\r\n            if ((!empty($action) && $action == \'input\') && chk_Use_CAPTCHA_HTML()) {\r\n                foreach ($item as $key => $value) {\r\n                    // １テーブル\r\n                    switch ($key) {\r\n                        case \'title_captcha\': $buf .= mkTitle($value); break;\r\n                        case \'table_captcha\': $buf .= mkTable($value, $action); break;\r\n                    }\r\n                }\r\n                $buf .= <<<END\r\n\r\n            </tbody>\r\n        </table>\r\nEND;\r\n            } elseif (!empty($action)) {\r\n                $buf .= LB . \'    <input type=\"hidden\">\';\r\n            }\r\n        } elseif (!empty($item[\'action\'])) {         // 送信ボタン\r\n            if ($item[\'action\'] == $action) {\r\n                $buf .= LB . \'    <input type=\"hidden\" name=\"action\" value=\"\' . $action . \'\"\' . XHTML . \'>\';\r\n                $buf .= LB . mkTable_Data($item[\'data\'], $action);\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkCsv ($items, $level=0, $dupcheck=array()) {\r\n    global $_CONF;\r\n    $ret = array();\r\n    if ($level > 5) { return; } $level++;\r\n    if (!empty($items[\'type\']) && strtolower($items[\'type\']) != \'submit\' ) {\r\n        if((!empty($items[\'not_csv\']) && $items[\'not_csv\']) || empty($items[\'name\'])) { return; }\r\n        if(strtolower($items[\'type\']) == \'radio\' && in_array($items[\'name\'], $dupcheck)) { return; }\r\n        return $items[\'name\'];\r\n    } else {\r\n        if (!is_array($items)) { return; }\r\n        foreach ($items as $i) {\r\n            $name = mkCsv($i,$level, $ret);\r\n            if (!empty($name)) {\r\n                if(is_array($name)) { $ret = array_merge($ret,$name); } else { $ret[] = $name; }\r\n            }\r\n        }\r\n    }\r\n    return $ret;\r\n}\r\n}\r\n\r\n\r\n// エラーチェック\r\nif (!empty($_POST) && !empty($_POST[\'action\'])) {\r\n    $valid = FormValidate($form_items);\r\n}\r\n$action = getAction($valid);\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 第1ステップ: フォーム表示(入力＆確認)                                     |\r\n// +---------------------------------------------------------------------------+\r\nif ($action == \'input\' || $action == \'confirm\') {\r\n\r\n/**\r\n* フォーム画面HTML { ここから\r\n*/\r\n    // JS\r\n    $js = mkJS($use_jslib, $def_jslib, $action, $_PLUGINS);\r\n    // 遷移\r\n    $seni = mkSeni($seni_items, $action);\r\n    // 入力フォーム\r\n    $form = mkForm($form_items, $action);\r\n\r\n    $retval = <<<END\r\n\r\n$js\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"FORM\">\r\n$valid\r\n<form name=\"subForm\" method=\"post\" action=\"{$pageurl}\">\r\n$form\r\n</form>\r\n</div>\r\n\r\nEND;\r\n\r\n/**\r\n* } ここまで フォーム画面HTML\r\n*/\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 第2ステップ: 完了表示＆メール送信                                         |\r\n// +---------------------------------------------------------------------------+\r\n} elseif ($action == \'finish\') {\r\n\r\n/**\r\n* 完了画面HTML { ここから\r\n*/\r\n    // 遷移\r\n    $seni = mkSeni($seni_items, $action);\r\n    \r\n    $out_html = <<<END\r\n\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"contact_thanks\">\r\n<p><strong>お問い合わせを受け付けました。</strong></p>\r\n<p>※お問い合わせ確認のメールを自動送信しました。<br />\r\nメールが届かない場合は、ご登録のメールアドレスが間違っている可能性があります。<br />\r\nその際は、お手数ですが再度お問い合わせください。</p>\r\n</div>\r\n\r\nEND;\r\n/**\r\n* } ここまで 完了画面HTML\r\n*/\r\n\r\n\r\n\r\n    # <br /> を改行コードに変換\r\n    foreach ($fld_list as $k => $v) { $fld_list[$k] = ereg_replace(\"<br />\", LB, $fld_list[$k]); }\r\n    $lang[\'sign_admin\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_admin\']);\r\n    $lang[\'sign_user\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_user\']);\r\n    // 入力内容\r\n    $input4mail=<<<END\r\nお名前: {$fld_list[\'q_name\']}\r\nメールアドレス: {$fld_list[\'q_mail\']}\r\n\r\nお問い合わせ内容:\r\n {$fld_list[\'q_other\']}\r\nEND;\r\n\r\n/**\r\n* 送信メール内容 - 管理者 { ここから\r\n*/\r\n    $out_mail_admin = <<<END\r\n\r\n{$lang[\'receipt_admin\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_admin\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 管理者\r\n*/\r\n/**\r\n* 送信メール内容 - 入力者 { ここから\r\n*/\r\n    $out_mail_user = <<<END\r\n\r\n{$lang[\'receipt_user\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_user\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 入力者\r\n*/\r\n\r\n\r\n    # メール送信\r\n    $ownererr = false;\r\n    $ownersend = false;\r\n    $om_array = explode(\',\', $owner_email);\r\n    $owner_mails = array_unique($om_array);  # 重複した値(メールアドレス)を削除\r\n    if (!empty($owner_email_item_name)) {\r\n        $selmail;\r\n        foreach ($owner_mails as $v) {\r\n            list($key, $mail) = explode(\'=\', $v);\r\n            if ($_POST[$owner_email_item_name] == $key) {\r\n                $selmail = explode(\'|\', $mail);\r\n                break;\r\n            }\r\n        }\r\n        $owner_mails = $selmail;\r\n    }\r\n    $owner_subject = $lang[\'subject_admin\'];\r\n    foreach ($owner_mails as $v) {\r\n        $email1 = COM_mail( $v, \"$owner_subject\", $out_mail_admin, $email_from, false); # オーナーあてメール\r\n        if (!$email1) { $ownererr = true; } else { $ownersend = true; }  # 送信/エラーのフラグをセット\r\n    }\r\n    # オーナーメール送信でエラーがあった場合\r\n    if ($ownererr) {\r\n        # 一部に送信できている場合\r\n        if ($ownersend) {\r\n            # エラーをログへ出力(一部へは配送されているのでユーザにエラー画面を出さない)\r\n            COM_errorLog($lang[\'ownertransmiterror\'], 1);\r\n            $email1 = true;\r\n        # 全員がエラーの場合\r\n        } elseif (!$ownersend) {\r\n            # 処理エラーとし、ユーザへのメールは送らない\r\n            $email1 = false;\r\n        }\r\n    }\r\n    if ($email1) {\r\n        $usr_subject = $lang[\'subject_user\'];\r\n        $email2 = COM_mail( $fld_list[$email_input_name], \"$usr_subject\", $out_mail_user, $email_from, false); # 問合せ者へメール\r\n    }\r\n    if ($email1 && $email2) { # どちらの送信も成功したら\r\n        # csv出力する\r\n        if ($save_csv > 0) {\r\n            $fldnames = mkCsv($form_items);\r\n            $delimiter = \',\';\r\n            if ($save_csv > 1) { $delimiter = chr(9); }\r\n            $enclosure = \'\"\';\r\n            # CSV出力\r\n            $str = \'\';\r\n            $escape_char = chr(92);\r\n            foreach ($fldnames as $n) {\r\n                $v = empty($fld_list[$n]) ? \'\' : $fld_list[$n] ;\r\n                if (strpos($v, $delimiter) !== false ||\r\n                    strpos($v, $enclosure) !== false ||\r\n                    strpos($v, chr(10)) !== false ||\r\n                    strpos($v, chr(13)) !== false ||\r\n                    strpos($v, chr(9)) !== false ||\r\n                    strpos($v, \' \') !== false) {\r\n                  $str2 = $enclosure;\r\n                  $escaped = 0;\r\n                  $len = strlen($v);\r\n                  for ($i=0;$i<$len;$i++) {\r\n                    if ($v[$i] == $escape_char) {\r\n                      $escaped = 1;\r\n                    } else if (!$escaped && $v[$i] == $enclosure) {\r\n                      $str2 .= $enclosure;\r\n                    } else {\r\n                      $escaped = 0;\r\n                    }\r\n                    $str2 .= $v[$i];\r\n                  }\r\n                  $str2 .= $enclosure;\r\n                  $str .= $str2.$delimiter;\r\n                } else {\r\n                  $str .= $v.$delimiter;\r\n                }\r\n            }\r\n            $str = date($date_csv) . $delimiter . substr($str,0,-1);\r\n            $str .= LB;\r\n            if( !empty( $save_csv_lang ) ) {\r\n                $str = mb_convert_encoding($str, $save_csv_lang);\r\n            }\r\n            $fp = fopen($save_csv_file, \'a\');\r\n            fwrite($fp, $str);  # CSV書き出し\r\n            fclose($fp);\r\n        }\r\n        $retval = $out_html;\r\n    } else {\r\n        $retval = $lang[\'transmiterror\']; # メール送信が失敗したら\r\n    }\r\n}\r\n// Geeklog1.6 PHPを実行\r\necho $retval;\r\n// Geeklog1.6 PHPを実行(return) の場合、上のechoをコメント(#)にして以下のreturnのコメントをはずしてください\r\n# return $retval;\r\n',196,'2010-09-02 05:20:33','2010-10-09 11:03:24','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('contact_en','Contact Us','','// +---------------------------------------------------------------------------+\r\n// | Geeklog FormMail Static Page                                              |\r\n// +---------------------------------------------------------------------------+\r\n// | Copyright (C) 2008-2010 by the following authors:                         |\r\n// |                                                                           |\r\n// | Authors    : Hiroshi Sakuramoto - hiro AT winkey DOT jp                   |\r\n// | Sponser    : White Bear Family CO., LTD                                   |\r\n// | Coordinate : Adeliae Planning CO., LTD - www.e-adeliae.com                |\r\n// | Coordinate : IVY WE CO., LTD - www.ivywe.co.jp                            |\r\n// | Version: 2.1.3                                                            |\r\n// | EnglishVersion: 0.9.4                                                     |\r\n// | Translated: kobab - geeklog.crimsonj.net                                  |\r\n// | Translated: Alleman Chie and Geeklog Japanese                             |\r\n// +---------------------------------------------------------------------------+\r\n// | This program was originally made for Japanese users. Several              |\r\n// | parts are therefore for Japanese users only and commented-out for         |\r\n// | this English version.                                                     |\r\n// | For the purpose of future upgrade for both of Japanese & English          |\r\n// | verions, those commented-out parts are remained. Wish English             |\r\n// | users understand this and ignore those parts when you use.                |\r\n// +---------------------------------------------------------------------------+\r\n\r\nglobal $_CONF, $_USER, $_PLUGINS;\r\nif (!defined(\'XHTML\')) define(\'XHTML\', \' /\');\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | default setting                                                           |\r\n// +---------------------------------------------------------------------------+\r\n# form URL\r\n# $pageurl = $_SERVER[\"REQUEST_URI\"];\r\n// If $_SERVER[\"REQUEST_URI\"] doesn\'t work, \r\n// fill-in statipage ID below.\r\n// Default is \'formmail\'\r\n// *Please remove # and uncomment after filling-in ID\r\n$pageid = \'contact_en\';\r\n\r\n# receipient set\r\n#    If 2 or more receipient, each email should be commmaed. no space allowed.\r\n#      ex) \'info@abcd.com,admin@wxyz.com\'\r\n#    Set email for a certain colum data. If colum 1 is AAA, receipient is info@geeksite. If colum 1 is BBB, receipient becomes to admin@geeksite\r\n#    You MUST set $owner_email_item_name if you use this feature.\r\n#      ex) \'AAA=info@abcd.com,BBB=admin@wxyz.com\'\r\n\r\n$owner_email=$_CONF[\'site_mail\'];\r\n\r\n\r\n# Set colum name of receipient\r\n//  *Remember to remove * to uncomment after setting colum name.\r\n#$owner_email_item_name = \'q_mail_to\';\r\n\r\n# email of auto-reply message sender\r\n$email_from = $_CONF[\'site_mail\'];\r\n#\'noreply_mail\' can be used if your Geeklog version is 1.5 or later.\r\n#$email_from = $_CONF[\'noreply_mail\'];\r\n\r\n# inquirer email\'s item name\r\n$email_input_name = \'q_mail\';\r\n\r\n# email double check\r\n#   no space allowed.\r\n#     ex) \'email=reemail\'\r\n$essential_email = \'q_mail=q_mail_re\';\r\n\r\n\r\n# email check\r\n#   check if input string is proper email address\r\n#   value of name attrubute with commas. no space is allowed.\r\n#     ex) \'email,reemail\'\r\n\r\n$propriety_email = \'q_mail,q_mail_re\';\r\n\r\n# use Geeklog\'s userset if logged-in\r\n#   use username, full name & email of login users\r\n#\r\n$username = \'\'; $user_email = \'\';\r\nif (isset ($_USER[\'uid\']) && ($_USER[\'uid\'] > 1)) {\r\n    $username = isset($_USER[\'fullname\']) ? $_USER[\'fullname\'] : $_USER[\'username\'];\r\n    $user_email = $_USER[\'email\'];\r\n}\r\n\r\n# save as CSV file\r\n#   not save: 0, save with commas: 1, save with tabs: 2\r\n$save_csv = 1;\r\n\r\n# path for CSV file to be saved. / is mandatory at the end of URL If you specify# bare # path.\r\n$save_csv_path = $_CONF[\'path_data\'];\r\n\r\n# CSV file name\r\n$save_csv_name = \'formmail.csv\';\r\n\r\n# character code at saving CSV file\r\n#   If no code conversion is necesasry, make it blank, ie \'\' to disable this\r\n#   feature. If garbled, make this disabled and use another tool.\r\n#   Remember to use a code which mb_convert_encoding is covering\r\n#   ex) UTF-8, SJIS, EUC-JP, JIS, ASCII\r\n$save_csv_lang = \'UTF-8\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from zenkaku to hankaku neccessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $zentohan_itemname = \'q_phone,q_code1_1,q_code2_1,q_code3_1,q_code1_2,q_code2_2,q_code3_2,q_code1_3,q_code2_3,q_code3_3\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from hankaku to zenkaku neccessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $kana_hantozen_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n//# For Japanese language only.\r\n//#   Set colums that auto-convert from hiragana to katakana necessary.\r\n//#   Specify name attribute\'s values one by one with commas. no space allowed.\r\n// $kana_hiratokana_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ==CAPTCHA==\r\n#   error message if no CAPTHCA is istalled\r\n$msg_spformmail_notinstall_captcha = \'CAPTCHA plugin is not installed\';\r\n#   error message after formmail used with CAPTCHA.\r\n#     *if blaked, error message of CAPTCHA plugin is used\r\n#     *if you speciy message here, it will be used\r\n$msg_spformmail_valid_captcha = \'\';\r\n#\r\n#   *You can make your own CAPTCHA template\r\n#   if public_html/layout/<themename>/sp_formmail/captcha.thmtl found, this will be adopted\r\n#   private/plugins/captcha/templates/captcha_others.thtml is used by default\r\n#\r\n\r\n# item names at screen transition\r\n$seni_items = array(\'input\' => \'Input\', \'confirm\' => \'Confirm\', \'finish\' => \'Complete\');\r\n\r\n# string for mondatory item\r\n$required_string = \'<span class=\"spf_required\">*</span>\';\r\n\r\n# ==About date and time==\r\n#   The date on the following JavaScript calendar.\r\n#     php date format. ref: http://www.php.net/manual/en/function.date.php\r\n#     \"d, D, j, l, N, w, S, F, m, M, n, Y, y\" can be assigned.\r\n$date_js_cal = \'d/m/Y\';\r\n#   The receipt date and time indicated in an email.\r\n#     Any php date format can be used here. (ref: http://www.php.net/manual/en/function.date.php)\r\n$date_mail = \'M j Y H:i\';\r\n#   When the csv is outputted, the date and time are written to the first row of the csv.\r\n#     Any php date format can be used here. (ref: http://www.php.net/manual/en/function.date.php)\r\n$date_csv = \'M j Y H:i\';\r\n\r\n# use JavaScript library for calendar\r\n$use_jslib = TRUE;\r\n\r\n# declaration of JavaScript library etc\r\n#   JavaScript+CSS for calendar\r\n#     Calendar RC4, (c) 2007 Aeron Glemann <http://electricprism.com/aeron>, MIT Style License\r\n#     (http://www.electricprism.com/aeron/calendar/)\r\n$def_jslib = <<<JSLIB\r\n\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/mootools.js\"></script>\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.js\"></script>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.css\" media=\"screen\"{XHTML}>\r\n<script type=\"text/javascript\">\r\n window.addEvent(\'domready\', function() { myCal = new Calendar({ q_date1: \'$date_js_cal\' }, { days: [\'SUN\',\'MON\',\'TUE\',\'WED\',\'THU\',\'FRI\',\'SAT\'], months: [\'JAN\',\'FEB\',\'MAR\',\'APR\',\'MAY\',\'JUN\',\'JUL\',\'AUG\',\'SEP\',\'OCT\',\'NOV\',\'DEC\'] }); });\r\n</script>\r\nJSLIB;\r\n\r\n#####\r\n# display message\r\n#####\r\n$lang = array(\r\n// { complete & email message\r\n  \'receipt_admin\' =>\'Dear admins,\'.LB.LB.$_CONF[\'site_name\'].\' site received a inquiry.\'.LB.LB.\'========== Inquiry ==========\'.LB.\'receipt at:\'.date($date_mail),\r\n  \'receipt_user\' =>\'*This email is sent from \'.$_CONF[\'site_name\'].\' site automatically.\'.LB.\'This email address is used for transmission only and not repliable.\'.LB.\'=============================\'.LB.\'Thank you very much for your inquiry.\'.LB.LB.\'========== Inquiry ==========\'.LB.\'Receipt at:\'.date($date_mail),\r\n  \'subject_admin\'=> \'[\'.$_CONF[\'site_name\'].\']Inquiry\',\r\n  \'subject_user\'=> \'[\'.$_CONF[\'site_name\'].\']Thanks for your inquiry\',\r\n  \'sign_admin\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.$_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n  \'sign_user\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.\'URL:\' . $_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n// } complete & email message\r\n// { system error message\r\n  \'ownertransmiterror\'=>\'An error has occurred at several email addresses during processing owner email, but process continued and completed.\',\r\n  \'transmiterror\'=>\'An error has occurred during processing.\',\r\n// } system error message\r\n);\r\n\r\n\r\n\r\n#####\r\n# table\'s item names\r\n#####\r\n$form_items = array(\r\n  // < table\r\n  array(\'title\' => \'Personal Information\', \'table\' => array(\r\n    // < table 1 row\r\n    array(\'header\' => \'Name\', \'valid_notkanahan\' => \'q_name\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_name\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'60\',\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n    // < table 1 row\r\n    array(\'header\' => \'Email\',\r\n          \'valid_require\' => $required_string, \'error_require\' => \'Please type your email address.\',\r\n          \'valid_equal\' => $essential_email, \'error_equal\' => \'Email address not match.\',\r\n          \'valid_email\' => $propriety_email, \'error_email\' => \'Please type out proper email address.\',\r\n          \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail_re\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput\',\r\n                  \'not_confirm\' => \'true\',\r\n                  \'not_csv\' => \'true\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'string\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'input\' => \'Please enter your e-mail address again to confirm.\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n   ),\r\n  ),\r\n  // > table\r\n  // < table\r\n  array(\'title\' => \'Preferences\', \'table\' => array(\r\n    // < rable 1 row\r\n    array(\'header\' => \'Comments\', \'valid_maxlen\' => \'q_other=200\', \'error_maxlen\' => \'Please complete within 200 characters.\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'textarea\',\r\n                  \'name\' => \'q_other\',\r\n                  \'class\' => \'bginput\',\r\n                  \'style\' => \'width: 95%; height: 100px;\',\r\n                  \'onKeyup\' => \"var n=200-this.value.length;var s=document.getElementById(\'tasp1\');s.innerHTML=\'(\'+n+\')\';\"\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\">*Please enter your comments up to 200 characters. <strong><span id=\'tasp1\'></span><strong><br\".XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > table 1 row\r\n   ),\r\n  ),\r\n  // > table\r\n  // < submit button - input\r\n  array(\'action\' => \'input\', \'data\' =>\r\n      array(\r\n          array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'Confirm\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > submit button - input\r\n  // < submit button - confirm\r\n  array(\'action\' => \'confirm\', \'data\' =>\r\n      array(array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'goback\',\r\n                \'class\' => \'button_form_prev\',\r\n                \'value\' => \'Return to the previous page.\'\r\n          ),\r\n          array(\'string\' => \'&nbsp;\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'Submit\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > submit button - confirm\r\n);\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | initial process                                                           |\r\n// +---------------------------------------------------------------------------+\r\n//# For Japanese language only.\r\n//# Direct convert of POST data, ie. from em-size to normal-width and from \r\n//# the katakana normal-width to the katakana. This is for Japanese user only.\r\n//# This program was originally made for Japanese users. Several parts are \r\n//# therefore for Japanese users only. We commented those parts \r\n//# out for this English version. \r\n//# For the convenience of authors of future upgrade for both of Japanese \r\n//# & English versions, those parts for Japanese users are remained in php \r\n//# files. Wish English users understand this and ignore those parts when \r\n//# you use this php.\r\n\r\n//if (!empty($zentohan_itemname)) { foreach (explode(\',\',$zentohan_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'askh\'); } }\r\n//if (!empty($kana_hantozen_itemname)) { foreach (explode(\',\',$kana_hantozen_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'K\'); } }\r\n//if (!empty($kana_hiratokana_itemname)) { foreach (explode(\',\',$kana_hiratokana_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'C\'); } }\r\n# process data for saving\r\nforeach ($_POST as $k => $v) {\r\n    $fld_list[$k] = preg_replace(\'/,/\', \'，\', $_POST[$k]);\r\n    $fld_list[$k] = preg_replace(\'/\"/\', \'”\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\"/\'/\", \"’\", $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/`/\', \'‘\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/;/\', \'；\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(preg_quote(\'#\'.chr(92).\'#\'), \'￥\', $fld_list[$k]);\r\n    $fld_list[$k] = COM_applyFilter($fld_list[$k]);\r\n}\r\n# full path of CSV file\r\n$save_csv_file = $save_csv_path . $save_csv_name;\r\n# create pageurl from pageid\r\nif (!empty($pageid)) { $pageurl = COM_buildUrl($_CONF[\'site_url\'].\'/staticpages/index.php?page=\'.$pageid); }\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | functions:                                                                |\r\n// +---------------------------------------------------------------------------+\r\nif(!function_exists(\'getAction\')){\r\nfunction getAction ($err) {\r\n    $buf = \'\';\r\n    $action = COM_applyFilter($_POST[\'action\']);\r\n    if (!empty($action) && empty($err) && $action == \'input\') { $buf = \'confirm\'; }\r\n    elseif (!empty($action) && empty($err) && $action == \'confirm\') { $buf = empty($_POST[\'goback\']) ? \'finish\' : \'input\'; }\r\n    else { $buf = \'input\'; }\r\n    return $buf;\r\n}\r\n\r\nfunction mkJS4MG ($lib) {\r\n    $buf = preg_replace(\"@<script[^>]+mootools.js[^>]+>[^<]*</script>@\", \"\", $lib);\r\n    return str_replace(\'calendar.js\', \'calendar_mg.js\', $buf);\r\n}\r\n\r\nfunction mkJS ($use,$lib,$action,$plg) {\r\n    $buf=\'\';\r\n    if (!empty($action) && $action == \'input\' && isset($use) && $use == TRUE) {\r\n        if (in_array(\'mediagallery\', $plg)) {\r\n            global $_MG_CONF;\r\n            $mgv = $_MG_CONF[\'pi_version\'];\r\n            $mglib = $_MG_CONF[\'js_lib\'];\r\n            if (!empty($mgv) && !empty($mglib) && (version_compare($mgv, \'1.6.10\', \'<\') || strtolower($mglib) == \'mootools\')) {\r\n                $buf = mkJS4MG($lib);\r\n            } elseif(!empty($mglib) && strtolower($mglib) == \'jquery\') {\r\n                $buf = <<<JQNC\r\n<script>\r\n<!--\r\njQuery.noConflict();\r\n-->\r\n</script>{$lib}\r\nJQNC;\r\n            } else {\r\n                $buf = $lib;\r\n            }\r\n        } else {\r\n            $buf = $lib;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkSeni ($items, $action) {\r\n    $buf = \'<ul>\'.LB;\r\n    foreach ($items as $key => $value) {\r\n        if ($action == $key) {\r\n            $buf .= \'    <li class=\"on\">\'.$value.\'</li>\'.LB;\r\n        } else {\r\n            $buf .= \'    <li>\'.$value.\'</li>\'.LB;\r\n        }\r\n    }\r\n    $buf .= \'</ul>\'.LB;\r\n    return $buf;\r\n}\r\n\r\nfunction putiFilter($s) {\r\n    $se = array(\'%\',\'(\',\')\',chr(92),chr(13).chr(10),chr(13),chr(10));\r\n    $re = array(\'&#37;\',\'&#40;\',\'&#41;\',\'&#92;\',\'\',\'\',\'\');\r\n    return str_replace($se, $re, htmlspecialchars($s,ENT_QUOTES));\r\n}\r\n\r\nfunction vldCAPTCHA ($type, $errmsg) {\r\n    global $_CP_CONF, $_USER;\r\n    $msg = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg; }\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        $str = COM_applyFilter($_POST[\'captcha\']);\r\n        list( $rc, $msg )  = CAPTCHA_checkInput( $type, $str );\r\n    }\r\n    if ( !empty($msg) && !empty($errmsg) ) { $msg = $errmsg; }\r\n    return $msg;\r\n\r\n}\r\n\r\nfunction vld_isPhone($s) { return (preg_match(\'/^(?:[0-9\'.chr(92).\'+\'.chr(92).\'-\'.chr(92).\'s])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHankaku($s) { return (preg_match(\'/^(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isZenkaku($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+/D\',$s)) ? FALSE : TRUE; }\r\nfunction vld_isEisuHan($s) { return (preg_match(\'/^(?:[0-9A-Za-z])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isKanaZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x83[\'.chr(92).\'x80-\'.chr(92).\'xB6])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHiraZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x81[\'.chr(92).\'x81-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'x80-\'.chr(92).\'x93])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isNotKanaHan($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F])+/D\',$s)) ? TRUE : FALSE; }\r\n\r\nfunction ChkValidate ($mode, $datas, $errmsg, $attributes = \'\') {\r\n    $msg = \'\';\r\n    foreach ($datas as $data) {\r\n        if (isset($data[\'type\'])) {\r\n            $name = $data[\'name\'];\r\n            switch ($mode) {\r\n                // check required item\r\n                case \'require\':\r\n                    if (empty($data[\'notrequire\']) && empty($_POST[$name]) && $_POST[$name] != \"0\") { $msg = $errmsg; }\r\n                    break;\r\n                // check matching\r\n                case \'equal\':\r\n                    if (!empty($attributes)) {\r\n                        $es_emails = explode(\',\', $attributes);\r\n                        foreach ($es_emails as $es_email) {\r\n                            list($eq1,$eq2) = explode(\'=\', $es_email);\r\n                            // initial key ANT it exist\r\n                            if ($name == $eq1 && !empty($_POST[$eq2])) {\r\n                                if ($_POST[$eq1] != $_POST[$eq2]) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // email check\r\n                case \'email\':\r\n                    if (!empty($attributes)) {\r\n                        $pr_emails = explode(\',\', $attributes);\r\n                        foreach ($pr_emails as $pr_email) {\r\n                            if ($name == $pr_email) {\r\n                                if (!COM_isemail($_POST[$name])) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // num check - sum is more than 0\r\n                case \'notzero\':\r\n                    if (!empty($attributes)) {\r\n                        $values_key = explode(\',\', $attributes);\r\n                        foreach ($values_key as $val_key) {\r\n                            // check at initial key\r\n                            if ($name == $val_key) {\r\n                                $sum_val = 0;\r\n                                foreach ($values_key as $chk_key) {\r\n                                    if (!empty($_POST[$chk_key])) {\r\n                                        $sum_val += $_POST[$chk_key];\r\n                                    }\r\n                                }\r\n                                if ($sum_val <= 0) {\r\n                                    $msg = $errmsg;\r\n                                    break;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // check if numeric\r\n                case \'numeric\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !ctype_digit($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // check if phone\r\n                case \'phone\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isPhone($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // (For Japanese language only) Check byte\r\n//                case \'hankaku\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isHankaku($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em\r\n//                case \'zenkaku\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isZenkaku($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Alphanumeric check\r\n//                case \'eisuhan\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isEisuHan($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em katakana\r\n//                case \'kanazen\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isKanaZen($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check em hiragana\r\n//                case \'kanazen\':\r\n//                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isHiraZen($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // (For Japanese language only) Check for non-katakana\r\n//                case \'notkanahan\':\r\n//                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && vld_isNotKanaHan($_POST[$name])) { $msg = $errmsg; }\r\n//                    break;\r\n                // check max length\r\n                case \'maxlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$max2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($max2 < mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // check min length\r\n                case \'minlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$min2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($min2 > mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n    // check CAPTCHA\r\n    if ( $mode == \'captcha\' ) { $msg = vldCAPTCHA(\'sp_formmail\', $errmsg); }\r\n    return $msg;\r\n}\r\n\r\nfunction ChkFormValidateLines ($lines) {\r\n    $errmsg;\r\n    foreach (array(\'require\',\'equal\',\'email\',\'notzero\',\'numeric\',\'phone\',\'hankaku\',\'zenkaku\',\'eisuhan\',\'kanazen\',\'hirazen\',\'notkanahan\',\'captcha\',\'maxlen\',\'minlen\') as $chk) {\r\n        // check require,match,email,CAPTCH,error\r\n        if (isset($lines[\'valid_\'.$chk])) {\r\n            $errmsg = ChkValidate($chk, $lines[\'data\'], $lines[\'error_\'.$chk], $lines[\'valid_\'.$chk]);\r\n            // arrays if error found\r\n            if ($errmsg) {\r\n                break;\r\n            }\r\n        }\r\n    }\r\n    return $errmsg;\r\n}\r\n\r\nfunction ChkFormValidate ($items) {\r\n    $errs;\r\n    foreach ($items as $item) {\r\n        // eah table\r\n        foreach ($item as $key => $value) {\r\n            // 1 table\r\n            if ($key == \'table\' || $key == \'table_captcha\') {\r\n                $action = getAction(\'\');\r\n                if ($key == \'table_captcha\' && $action == \'finish\') { continue; }\r\n                foreach ($value as $key2 => $value2) {\r\n                    // table 1 row\r\n                    $errmsg = ChkFormValidateLines($value2);\r\n                    if ($errmsg) { $errs[] = $errmsg; }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $errs;\r\n}\r\n\r\nfunction FormValidate ($items) {\r\n    $buf = \'\';\r\n    $errs = ChkFormValidate($items);\r\n    if (!empty($errs)) {\r\n        $errmsg = \'\';\r\n        foreach ($errs as $err) {\r\n            $errmsg .= \'    <li>\'.$err.\'</li>\'.LB;\r\n        }\r\n        $buf = <<<END\r\n\r\n<p class=\"error\">Some error found. Please check below and correct your input.</p>\r\n<ol class=\"errorList\">\r\n$errmsg\r\n</ol>\r\nEND;\r\n    }\r\n    return $buf;\r\n}\r\n\r\n\r\nfunction mkTitle ($title) {\r\n    return <<<END\r\n\r\n    <h4>$title</h4>\r\n    <table class=\"formmail\" cellspacing=\"0\">\r\n        <colgroup><col width=\"130\" /></colgroup>\r\n        <tbody>\r\nEND;\r\n}\r\n\r\nfunction mkForm_Value ($name, $value) {\r\n    return (empty($_POST[$name]) && $_POST[$name] != \"0\") ? $value : putiFilter($_POST[$name]);\r\n}\r\n\r\nfunction mkForm_Radio_Checked (&$attributes) {\r\n    $name = $attributes[\'name\'];\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n        if (isset($attributes[\'checked\'])) unset($attributes[\'checked\']);\r\n        if ($_POST[$name] == $attributes[\'value\']) {\r\n            $attributes[\'checked\'] = \'checked\';\r\n        }\r\n    }\r\n}\r\n\r\nfunction mkForm_Input ($attributes, $hidden = false) {\r\n    if ($hidden) {\r\n        if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n            if ($attributes[\'value\'] != $_POST[$attributes[\'name\']]) return \'\';\r\n        }\r\n        $attributes[\'type\'] = \'hidden\';\r\n    }\r\n    if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n        mkForm_Radio_Checked($attributes);\r\n    } else {\r\n        if ($attributes[\'type\'] != \'submit\') $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    }\r\n    $buf = \'<input\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'not_confirm\') { $buf .= \' \'.$key.\'=\"\'.$value.\'\"\'; }\r\n    }\r\n    $buf .= XHTML.\'>\';\r\n    if ($hidden || $attributes[\'type\'] == \'checkbox\') {\r\n        if ( !isset($attributes[\'not_confirm\']) || ! $attributes[\'not_confirm\'] ) { $buf .= \' \' . $attributes[\'value\']; }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select_Options ($name, $attributes) {\r\n    $buf = \'\';\r\n    $selected = mkForm_Value($name, $attributes[\'selected\']);\r\n    $values = explode(\',\', $attributes[\'values\']);\r\n    foreach ($values as $value) {\r\n        list($k,$v) = explode(\'=\',$value);\r\n        if (empty($v)) $v = $k;\r\n        if ($selected == $k) {\r\n            $buf .= \'<option selected=\"selected\" value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        } else {\r\n            $buf .= \'<option value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select ($attributes) {\r\n    $buf = \'<select\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'options\') {\r\n            $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n        }\r\n    }\r\n    $buf .= \'>\';\r\n    $buf .= mkForm_Select_Options($attributes[\'name\'], $attributes[\'options\']);\r\n    $buf .= \'</select>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Textarea ($attributes) {\r\n    $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    $buf = \'<textarea\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'value\') $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n    }\r\n    $buf .= \'>\'.$attributes[\'value\'].\'</textarea>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Item ($items, $action) {\r\n    $buf = \'\';\r\n    if ($action != \'input\' && $items[\'type\'] != \'submit\' && $items[\'type\'] != \'hidden\') {\r\n        $buf .= mkForm_Input($items, true);\r\n    } else {\r\n        switch ($items[\'type\']) {\r\n            case \'text\': $buf .= mkForm_Input($items); break;\r\n            case \'password\': $buf .= mkForm_Input($items); break;\r\n            case \'hidden\': $buf .= mkForm_Input($items); break;\r\n            case \'radio\': $buf .= mkForm_Input($items); break;\r\n            case \'checkbox\': $buf .= mkForm_Input($items); break;\r\n            case \'select\': $buf .= mkForm_Select($items); break;\r\n            case \'textarea\': $buf .= mkForm_Textarea($items); break;\r\n            case \'submit\': $buf .= mkForm_Input($items); break;\r\n            case \'reset\': $buf .= mkForm_Input($items); break;\r\n            case \'button\': $buf .= mkForm_Input($items); break;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkTable_Data ($datas, $action) {\r\n    $buf = \'\';\r\n    foreach ($datas as $data) {\r\n        // 1data\r\n        if (!empty($data[\'type\'])) {\r\n            // form\r\n            $buf .= mkForm_Item($data, $action);\r\n        }\r\n        else {\r\n            // strings\r\n            foreach ($data as $key => $value) {\r\n                if ($key == \'string\') {\r\n                    $buf .= $value;\r\n                } elseif ($key == $action) {\r\n                    $buf .= $value;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction plugin_templatePath_sp_formmail () {\r\n    global $_CONF;\r\n    $pi_name = \'sp_formmail\';\r\n    $layout_path = $_CONF[\'path_layout\'] . $pi_name;\r\n    return $layout_path;\r\n}\r\n\r\nfunction chk_Use_CAPTCHA_HTML () {\r\n    global $_CP_CONF, $_USER;\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction mkCAPTCHA_HTML ($name, $msg_notcaptcha) {\r\n    global $_CP_CONF, $_USER, $_TABLES;\r\n    $captcha = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg_notcaptcha; }\r\n    if ( chk_Use_CAPTCHA_HTML() ) {\r\n\r\n        $csid = 0;\r\n        if ($_CP_CONF[\'gfxDriver\'] != 1) {\r\n\r\n            // housekeeping, delete old captcha sessions\r\n            $oldSessions = time() - ($_CP_CONF[\'expire\']+900);\r\n            DB_query(\"DELETE FROM {$_TABLES[\'cp_sessions\']} WHERE cptime < \" . $oldSessions,1);\r\n\r\n            // OK, we need to insert the CAPTCHA, so now we need to setup the session_id:\r\n\r\n            // check to see if a failed entry happened...\r\n            if ( isset($_POST[\'csid\']) ) {\r\n                $csid = COM_applyFilter($_POST[\'csid\']);\r\n            } else {\r\n                $csid = CAPTCHA_sid();\r\n            }\r\n            $time    = time();\r\n            $counter = 0;\r\n            $validation = \'\';  // this will be filled in by the CAPTCHA\r\n\r\n                \"  `session_id` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `cptime`  INT(11) NOT NULL default 0, \" .\r\n                \"  `validation` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `counter`    TINYINT(4) NOT NULL default 0, \" .\r\n\r\n            DB_save($_TABLES[\'cp_sessions\'],\"session_id,cptime,validation,counter\",\"\'$csid\',\'$time\',\'\',\'0\'\");\r\n        }\r\n\r\n        $captcha = CAPTCHA_getHTML($csid,$name);\r\n    }\r\n    return $captcha;\r\n}\r\n\r\nfunction mkTable ($tables, $action) {\r\n    $buf = \'\';\r\n    foreach ($tables as $lines) {\r\n        $flg_valid_captcha = false;\r\n        $errflg = \'\';\r\n        $tdclass=\'\';\r\n        $buf .= LB .\'            <tr>\' . LB;\r\n        $buf .= \'                <th>\';\r\n        if (isset($lines[\'header\'])) { $buf .= $lines[\'header\']; }\r\n        if (isset($lines[\'header_captcha\'])) { $buf .= $lines[\'header_captcha\']; }\r\n        if (isset($lines[\'valid_require\'])) { $buf .= $lines[\'valid_require\']; }\r\n        if (isset($lines[\'valid_captcha\'])) { $buf .= $lines[\'valid_captcha\']; $flg_valid_captcha = true; }\r\n        // error check\r\n        if (!empty($_POST)) { $errflg = ChkFormValidateLines($lines); }\r\n        if ($errflg) { $tdclass=\' class=\"warning_bgc\"\'; }\r\n        $buf .= \'</th>\'.LB;\r\n        $buf .= \'                <td\'.$tdclass.\'>\';\r\n        if (isset($lines[\'data\'])) {\r\n            if ($flg_valid_captcha) {\r\n                $buf .= mkCAPTCHA_HTML(\'sp_formmail\',$lines[\'error_notcaptcha\']);\r\n            } else {\r\n                $buf .= mkTable_Data($lines[\'data\'], $action);\r\n            }\r\n        }\r\n        $buf .= \'</td>\'.LB;\r\n        $buf .= \'            </tr>\'.LB;\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm ($items, $action) {\r\n    $buf = \'\';\r\n    foreach ($items as $item) {\r\n        // each table\r\n        if (!empty($item[\'table\'])) {\r\n            foreach ($item as $key => $value) {\r\n                // 1 table\r\n                switch ($key) {\r\n                    case \'title\': $buf .= mkTitle($value); break;\r\n                    case \'table\': $buf .= mkTable($value, $action); break;\r\n                }\r\n            }\r\n            $buf .= <<<END\r\n\r\n        </tbody>\r\n    </table>\r\nEND;\r\n        } elseif (!empty($item[\'table_captcha\'])) {  // CAPTCHA table\r\n            if ((!empty($action) && $action == \'input\') && chk_Use_CAPTCHA_HTML()) {\r\n                foreach ($item as $key => $value) {\r\n                    // 1 table\r\n                    switch ($key) {\r\n                        case \'title_captcha\': $buf .= mkTitle($value); break;\r\n                        case \'table_captcha\': $buf .= mkTable($value, $action); break;\r\n                    }\r\n                }\r\n                $buf .= <<<END\r\n\r\n            </tbody>\r\n        </table>\r\nEND;\r\n            } elseif (!empty($action)) {\r\n                $buf .= LB . \'    <input type=\"hidden\">\';\r\n            }\r\n        } elseif (!empty($item[\'action\'])) {         // subimit button\r\n            if ($item[\'action\'] == $action) {\r\n                $buf .= LB . \'    <input type=\"hidden\" name=\"action\" value=\"\' . $action . \'\"\' . XHTML . \'>\';\r\n                $buf .= LB . mkTable_Data($item[\'data\'], $action);\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkCsv ($items, $level=0, $dupcheck=array()) {\r\n    global $_CONF;\r\n    $ret = array();\r\n    if ($level > 5) { return; } $level++;\r\n    if (!empty($items[\'type\']) && strtolower($items[\'type\']) != \'submit\' ) {\r\n        if((!empty($items[\'not_csv\']) && $items[\'not_csv\']) || empty($items[\'name\'])) { return; }\r\n        if(strtolower($items[\'type\']) == \'radio\' && in_array($items[\'name\'], $dupcheck)) { return; }\r\n        return $items[\'name\'];\r\n    } else {\r\n        if (!is_array($items)) { return; }\r\n        foreach ($items as $i) {\r\n            $name = mkCsv($i,$level, $ret);\r\n            if (!empty($name)) {\r\n                if(is_array($name)) { $ret = array_merge($ret,$name); } else { $ret[] = $name; }\r\n            }\r\n        }\r\n    }\r\n    return $ret;\r\n}\r\n}\r\n\r\n\r\n// error check\r\nif (!empty($_POST) && !empty($_POST[\'action\'])) {\r\n    $valid = FormValidate($form_items);\r\n}\r\n$action = getAction($valid);\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | first step: display form (type & confirm)                                 |\r\n// +---------------------------------------------------------------------------+\r\nif ($action == \'input\' || $action == \'confirm\') {\r\n\r\n/**\r\n* form HTML { from here\r\n*/\r\n    // JS\r\n    $js = mkJS($use_jslib, $def_jslib, $action, $_PLUGINS);\r\n    // transition\r\n    $seni = mkSeni($seni_items, $action);\r\n    // input form\r\n    $form = mkForm($form_items, $action);\r\n\r\n    $retval = <<<END\r\n\r\n$js\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"FORM\">\r\n$valid\r\n<form name=\"subForm\" method=\"post\" action=\"{$pageurl}\">\r\n$form\r\n</form>\r\n</div>\r\n\r\nEND;\r\n\r\n/**\r\n* } END of form HTML\r\n*/\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | SECOND STEP: Notice User Process & email submission                       |\r\n// +---------------------------------------------------------------------------+\r\n} elseif ($action == \'finish\') {\r\n\r\n/**\r\n* COMPLETE MESSAGE HTML  { from HERE\r\n*/\r\n    // transition\r\n    $seni = mkSeni($seni_items, $action);\r\n    \r\n    $out_html = <<<END\r\n\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"contact_thanks\">\r\n<p><strong>We\'ve received your inquiry.</strong></p>\r\n<p>A confirmation e-mail has been sent to you.<br />\r\nIf you do not receive it, please re-submit your inquiry with this form.</p>\r\n</div>\r\n\r\nEND;\r\n/**\r\n* } COMPLETE MESSAGE HTML ends HERE\r\n*/\r\n\r\n\r\n\r\n    # convert <br /> to LB\r\n    foreach ($fld_list as $k => $v) { $fld_list[$k] = ereg_replace(\"<br />\", LB, $fld_list[$k]); }\r\n    $lang[\'sign_admin\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_admin\']);\r\n    $lang[\'sign_user\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_user\']);\r\n    // input content\r\n    $input4mail=<<<END\r\nName: {$fld_list[\'q_name\']}\r\nEmail: {$fld_list[\'q_mail\']}\r\n\r\nComments:\r\n{$fld_list[\'q_other\']}\r\nEND;\r\n\r\n/**\r\n* mail to admin  { from here\r\n*/\r\n    $out_mail_admin = <<<END\r\n\r\n{$lang[\'receipt_admin\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_admin\']}\r\nEND;\r\n/**\r\n* } end mail to admin\r\n*/\r\n/**\r\n* mail to sender { from here\r\n*/\r\n    $out_mail_user = <<<END\r\n\r\n{$lang[\'receipt_user\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_user\']}\r\nEND;\r\n/**\r\n* } end mail to sender\r\n*/\r\n\r\n\r\n    # send email\r\n    $ownererr = false;\r\n    $ownersend = false;\r\n    $om_array = explode(\',\', $owner_email);\r\n    $owner_mails = array_unique($om_array);  # delete email double checked\r\n    if (!empty($owner_email_item_name)) {\r\n        $selmail;\r\n        foreach ($owner_mails as $v) {\r\n            list($key, $mail) = explode(\'=\', $v);\r\n            if ($_POST[$owner_email_item_name] == $key) {\r\n                $selmail = explode(\'|\', $mail);\r\n                break;\r\n            }\r\n        }\r\n        $owner_mails = $selmail;\r\n    }\r\n    $owner_subject = $lang[\'subject_admin\'];\r\n    foreach ($owner_mails as $v) {\r\n        $email1 = COM_mail( $v, \"$owner_subject\", $out_mail_admin, $email_from, false); # mail to admin\r\n        if (!$email1) { $ownererr = true; } else { $ownersend = true; }  # set flag of transmit error\r\n    }\r\n    # if error at admin email transmission\r\n    if ($ownererr) {\r\n        # if transmission succed for some of admins\r\n        if ($ownersend) {\r\n            # logs error. no error display for user since some of admin\r\n            # received the email\r\n            COM_errorLog($lang[\'ownertransmiterror\'], 1);\r\n            $email1 = true;\r\n        # if transmission failed to all admins\r\n        } elseif (!$ownersend) {\r\n            # makes it a process error. no email to user.\r\n            $email1 = false;\r\n        }\r\n    }\r\n    if ($email1) {\r\n        $usr_subject = $lang[\'subject_user\'];\r\n        $email2 = COM_mail( $fld_list[$email_input_name], \"$usr_subject\", $out_mail_user, $email_from, false); # email to user\r\n    }\r\n    if ($email1 && $email2) { # if succeed both of admins and user.\r\n        # csv output\r\n        if ($save_csv > 0) {\r\n            $fldnames = mkCsv($form_items);\r\n            $delimiter = \',\';\r\n            if ($save_csv > 1) { $delimiter = chr(9); }\r\n            $enclosure = \'\"\';\r\n            # csv output\r\n            $str = \'\';\r\n            $escape_char = chr(92);\r\n            foreach ($fldnames as $n) {\r\n                $v = empty($fld_list[$n]) ? \'\' : $fld_list[$n] ;\r\n                if (strpos($v, $delimiter) !== false ||\r\n                    strpos($v, $enclosure) !== false ||\r\n                    strpos($v, chr(10)) !== false ||\r\n                    strpos($v, chr(13)) !== false ||\r\n                    strpos($v, chr(9)) !== false ||\r\n                    strpos($v, \' \') !== false) {\r\n                  $str2 = $enclosure;\r\n                  $escaped = 0;\r\n                  $len = strlen($v);\r\n                  for ($i=0;$i<$len;$i++) {\r\n                    if ($v[$i] == $escape_char) {\r\n                      $escaped = 1;\r\n                    } else if (!$escaped && $v[$i] == $enclosure) {\r\n                      $str2 .= $enclosure;\r\n                    } else {\r\n                      $escaped = 0;\r\n                    }\r\n                    $str2 .= $v[$i];\r\n                  }\r\n                  $str2 .= $enclosure;\r\n                  $str .= $str2.$delimiter;\r\n                } else {\r\n                  $str .= $v.$delimiter;\r\n                }\r\n            }\r\n            $str = date($date_csv) . $delimiter . substr($str,0,-1);\r\n            $str .= LB;\r\n            if( !empty( $save_csv_lang ) ) {\r\n                $str = mb_convert_encoding($str, $save_csv_lang);\r\n            }\r\n            $fp = fopen($save_csv_file, \'a\');\r\n            fwrite($fp, $str);  # CSV output\r\n            fclose($fp);\r\n        }\r\n        $retval = $out_html;\r\n    } else {\r\n        $retval = $lang[\'transmiterror\']; # if email failed\r\n    }\r\n}\r\n// execute Geeklog PHP\r\necho $retval;\r\n// if you use \'execute PHP(return)\' with Geeklog 1.6 or later, Please comment (#)the above \'echo\' and uncomment the blow \'return\' to enable.\r\n# return $retval;\r\n',952,'2010-09-02 04:36:55','2010-09-02 05:28:12','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('contact_ja','お問い合わせ','','// +---------------------------------------------------------------------------+\r\n// | Geeklog FormMail Static Page                                              |\r\n// +---------------------------------------------------------------------------+\r\n// | Copyright (C) 2008-2010 by the following authors:                         |\r\n// |                                                                           |\r\n// | Authors    : Hiroshi Sakuramoto - hiro AT winkey DOT jp                   |\r\n// | Sponser    : White Bear Family CO., LTD                                   |\r\n// | Coordinate : Adeliae Planning CO., LTD -                 |\r\n// | Coordinate : IVY WE CO., LTD -                             |\r\n// | Version: 2.1.3                                                            |\r\n// +---------------------------------------------------------------------------+\r\nglobal $_CONF, $_USER, $_PLUGINS;\r\nif (!defined(\'XHTML\')) define(\'XHTML\', \' /\');\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 初期設定                                                                  |\r\n// +---------------------------------------------------------------------------+\r\n# 入力フォームのURL\r\n# $pageurl = $_SERVER[\"REQUEST_URI\"];\r\n// $_SERVER[\"REQUEST_URI\"] が使えず正しく動かない場合は以下へ、\r\n//   静的ページPHPを作成する時に入力したIDを入れてください。\r\n//   (wikiドキュメントのサンプル例だと\'formmail\')\r\n//   ※IDを入力したら先頭の#を削除してください。(コメントをはずします)\r\n$pageid = \'contact_ja\';\r\n\r\n# 問合せを管理者へ通知の設定\r\n#    複数のE-mailはカンマ(,)で区切りで指定する(スペース等はあけない)\r\n#      例) ,\'\r\n#    特定の入力項目に応じて送り先を変える\r\n#    ※この方法を利用する時は必ず $owner_email_item_name を指定してください。\r\n#      例) ,\'\r\n\r\n$owner_email=$_CONF[\'site_mail\'];\r\n\r\n\r\n# 管理者Emailを入力項目から選択する項目名\r\n//  ※送り先を変える指定をしたら先頭の#を削除してください。(コメントをはずします)\r\n#$owner_email_item_name = \'q_mail_to\';\r\n\r\n# メール送信者E-mail\r\n$email_from = $_CONF[\'site_mail\'];\r\n#Geeklog1.5から，noreplyを指定できます。\r\n#$email_from = $_CONF[\'noreply_mail\'];\r\n\r\n# 問合せ者のメールアドレスの項目名\r\n$email_input_name = \'q_mail\';\r\n\r\n# メール一致チェック項目指定\r\n#   メール確認でどちらも同じものを入力 というname属性を(=)で区切る(スペース等はあけない)\r\n#     例) \'email=reemail\'\r\n$essential_email = \'q_mail=q_mail_re\';\r\n\r\n\r\n# メールアドレスチェック項目指定\r\n#   入力された値がメールアドレスとして正しいかチェックをする\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n#     例) \'email,reemail\'\r\n\r\n$propriety_email = \'q_mail,q_mail_re\';\r\n\r\n# ログイン済みならユーザ情報を利用する指定\r\n#   ログインユーザーの名前やメールアドレスを利用\r\n#\r\n$username = \'\'; $user_email = \'\';\r\nif (isset ($_USER[\'uid\']) && ($_USER[\'uid\'] > 1)) {\r\n    $username = isset($_USER[\'fullname\']) ? $_USER[\'fullname\'] : $_USER[\'username\'];\r\n    $user_email = $_USER[\'email\'];\r\n}\r\n\r\n# CSVファイルに保存\r\n#   指定方法 保存しない: 0 , 保存する(カンマ区切り): 1 , 保存する(タブ区切り): 2\r\n$save_csv = 1;\r\n\r\n# CSVファイル保存場所 (直接入力時は最後にスラッシュ必須)\r\n$save_csv_path = $_CONF[\'path_data\'];\r\n\r\n# CSVファイル名\r\n$save_csv_name = \'formmail.csv\';\r\n\r\n# CSVファイル保存の文字コード\r\n#   文字コード変換をしない場合は \'\' と指定してください。\r\n#   機能がOFFになります。（文字化けするようなら機能を\'\'で\r\n#   OFFにして別途フリーの文字変換ツールなどをご利用ください）\r\n# 注意) mb_convert_encodingで使える文字コードを指定してください\r\n#   例) UTF-8, SJIS, EUC-JP, JIS, ASCII\r\n$save_csv_lang = \'SJIS\';\r\n\r\n# 全角を半角に変換する項目名(英数字、スペース、カタカナ、ひらがな)\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$zentohan_itemname = \'q_phone,q_code1_1,q_code2_1,q_code3_1,q_code1_2,q_code2_2,q_code3_2,q_code1_3,q_code2_3,q_code3_3\';\r\n\r\n# カタカナの半角をカタカナの全角に変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hantozen_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ひらがなをカタカナに変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hiratokana_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ==画像認証関係==\r\n#   画像認証(CAPTCHA)がインストールされていない場合のエラーメッセージ\r\n$msg_spformmail_notinstall_captcha = \'CAPTCHAプラグインがインストールされていません。\';\r\n#   送信時に画像認証でエラーの場合のエラーメッセージ\r\n#     ※空文字にするとCAPTCHAプラグインが作成するエラーメッセージを使います。\r\n#     ※空文字意外にするとそれを無視して固定メッセージにできます。\r\n$msg_spformmail_valid_captcha = \'\';\r\n#\r\n#   ※ CAPTCHAのテンプレートを自由に作成することも可能\r\n#   public_html/layout/<themename>/sp_formmail/captcha.thmtl があればそちらが優先されます。\r\n#   通常は private/plugins/captcha/templates/captcha_others.thtml\r\n#\r\n\r\n# 遷移の項目名\r\n$seni_items = array(\'input\' => \'情報入力\', \'confirm\' => \'入力項目確認\', \'finish\' => \'入力完了\');\r\n\r\n# 必須入力の文字列\r\n$required_string = \'<span class=\"spf_required\">*必須</span>\';\r\n\r\n# ==日付関係==\r\n#   下記JavaScriptカレンダーでの日付表記\r\n#     phpのdate()で使う\r\n#     「d, D, j, l, N, w, S, F, m, M, n, Y, y」を指定できます。\r\n$date_js_cal = \'Y/m/d\';\r\n#   メールに記載される受付日時表記\r\n#     phpのdateのものがすべて使えます \r\n$date_mail = \'Y年m月d日H:i\';\r\n#   csv書き出し時、1列目に記載される日時表記\r\n#     phpのdateのものがすべて使えます \r\n$date_csv = \'Y/m/d H:i\';\r\n\r\n# JavaScriptライブラリの利用 (カレンダー表示用)\r\n$use_jslib = TRUE;\r\n\r\n# JavaScriptライブラリ等の宣言\r\n#   カレンダー表示用JavaScript+CSS\r\n#     Calendar RC4, (c) 2007 Aeron Glemann <>, MIT Style License\r\n#     ()\r\n$def_jslib = <<<JSLIB\r\n\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/mootools.js\"></script>\r\n<script type=\"text/javascript\" src=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.js\"></script>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$_CONF[\'site_url\']}/javascript/calendar/calendar.css\" media=\"screen\" />\r\n<script type=\"text/javascript\">\r\n window.addEvent(\'domready\', function() { myCal = new Calendar({ q_date1: \'$date_js_cal\' }, { days: [\'日\',\'月\',\'火\',\'水\',\'木\',\'金\',\'土\'], months: [\'1月\',\'2月\',\'3月\',\'4月\',\'5月\',\'6月\',\'7月\',\'8月\',\'9月\',\'10月\',\'11月\',\'12月\'] }); });\r\n</script>\r\nJSLIB;\r\n\r\n#####\r\n# 表示メッセージ\r\n#####\r\n$lang = array(\r\n// { 完了HTML＆メールのメッセージ\r\n  \'receipt_admin\' =>\'管理者のみなさま\'.LB.LB.$_CONF[\'site_name\'].\'サイトにおいて\'.LB.\'問い合わせがありました。\'.LB.LB.\'==========お問い合わせ ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'receipt_user\' =>\'※本メールは、\'.$_CONF[\'site_name\'].\'サイトより自動的に配信しています。\'.LB.\'このメールは送信専用のため、このメールにご返信いただけません。\'.LB.\'＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\'.LB.\'お問い合わせありがとうございました。\'.LB.LB.\'========== お問い合わせ内容 ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'subject_admin\'=> \'[\'.$_CONF[\'site_name\'].\']お問い合わせ\',\r\n  \'subject_user\'=> \'[\'.$_CONF[\'site_name\'].\']お問い合わせを受け付けました\',\r\n  \'sign_admin\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.$_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n  \'sign_user\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.\'URL：\' . $_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n// } 完了HTML＆メールのメッセージ\r\n// { システムエラーのメッセージ\r\n  \'ownertransmiterror\'=>\'オーナーメール処理中、一部のアドレスでエラーが発生しましたが、処理を続けました。\',\r\n  \'transmiterror\'=>\'処理中にエラーが発生しました。\',\r\n// } システムエラーのメッセージ\r\n);\r\n\r\n\r\n\r\n#####\r\n# フォーム項目の設定\r\n#####\r\n$form_items = array(\r\n  // < テーブル\r\n  array(\'title\' => \'お名前\', \'table\' => array(\r\n    // < テーブル１行\r\n    array(\'header\' => \'お名前\', \'valid_notkanahan\' => \'q_name\', \'error_notkanahan\' => \'お名前に半角カタカナがあります。すべて全角で入力してください\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_name\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'60\',\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n    // < テーブル１行\r\n    array(\'header\' => \'メールアドレス\',\r\n          \'valid_require\' => $required_string, \'error_require\' => \'メールアドレスが入力されていません\',\r\n          \'valid_equal\' => $essential_email, \'error_equal\' => \'メールアドレスが一致しません\',\r\n          \'valid_email\' => $propriety_email, \'error_email\' => \'メールアドレスを正しく入力してください\',\r\n          \'valid_hankaku\' => \'q_mail,q_mail_re\', \'error_hankaku\' => \'メールアドレスはすべて半角で入力してください\',\r\n          \'data\' =>\r\n        array(\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput ime_off\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'type\' => \'text\',\r\n                  \'name\' => \'q_mail_re\',\r\n                  \'size\' => \'40\',\r\n                  \'maxlength\' => \'240\',\r\n                  \'class\' => \'bginput ime_off\',\r\n                  \'not_confirm\' => \'true\',\r\n                  \'not_csv\' => \'true\',\r\n                  \'value\' => $user_email\r\n            ),\r\n            array(\'string\' => \'<br\'.XHTML.\'>\'),\r\n            array(\'input\' => \'※確認のため、もう一度入力してください\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n   ),\r\n  ),\r\n  // > テーブル\r\n  // < テーブル\r\n  array(\'title\' => \'お問い合わせ内容\', \'table\' => array(\r\n    // < テーブル１行\r\n    array(\'header\' => \'内容\', \'valid_notkanahan\' => \'q_other\', \'error_notkanahan\' => \'お問い合わせ内容に半角カタカナがあります。すべて全角で入力してください\', \'valid_maxlen\' => \'q_other=200\', \'error_maxlen\' => \'お問い合わせ内容の文字数は200文字以内で入力してください\', \'data\' =>\r\n        array(\r\n            array(\'type\' => \'textarea\',\r\n                  \'name\' => \'q_other\',\r\n                  \'class\' => \'bginput ime_on\',\r\n                  \'style\' => \'width: 95%; height: 100px;\',\r\n                  \'onKeyup\' => \"var n=200-this.value.length;var s=document.getElementById(\'tasp1\');s.innerHTML=\'(\'+n+\')\';\"\r\n            ),\r\n            array(\'input\' => \'<br\'.XHTML.\">※お問い合わせ内容を入力してください。<strong><span id=\'tasp1\'></span><strong><br\".XHTML.\'>\'),\r\n        ),\r\n    ),\r\n    // > テーブル１行\r\n   ),\r\n  ),\r\n  // > テーブル\r\n  // < 送信ボタン - 入力画面\r\n  array(\'action\' => \'input\', \'data\' =>\r\n      array(\r\n          array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'入力項目確認画面へ\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > 送信ボタン - 入力画面\r\n  // < 送信ボタン - 確認画面\r\n  array(\'action\' => \'confirm\', \'data\' =>\r\n      array(array(\'string\' => \'    <div style=\"text-align: center;\" class=\"text_center mt20 mb20\">\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'goback\',\r\n                \'class\' => \'button_form_prev\',\r\n                \'value\' => \'戻る\'\r\n          ),\r\n          array(\'string\' => \'　\'),\r\n          array(\'type\' => \'submit\',\r\n                \'name\' => \'submit\',\r\n                \'class\' => \'button_form_next\',\r\n                \'value\' => \'送信する\'\r\n          ),\r\n          array(\'string\' => \'</div>\'),\r\n      ),\r\n  ),\r\n  // > 送信ボタン - 確認画面\r\n);\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 初期処理                                                                  |\r\n// +---------------------------------------------------------------------------+\r\n# POSTデータを直接変換 (全角から半角へ、カタカナ半角からカタカナ全角へ)\r\nif (!empty($zentohan_itemname)) { foreach (explode(\',\',$zentohan_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'askh\'); } }\r\nif (!empty($kana_hantozen_itemname)) { foreach (explode(\',\',$kana_hantozen_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'K\'); } }\r\nif (!empty($kana_hiratokana_itemname)) { foreach (explode(\',\',$kana_hiratokana_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'C\'); } }\r\n# データを保存用に加工\r\nforeach ($_POST as $k => $v) {\r\n    $fld_list[$k] = preg_replace(\'/,/\', \'，\', $_POST[$k]);\r\n    $fld_list[$k] = preg_replace(\'/\"/\', \'”\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\"/\'/\", \"’\", $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/`/\', \'‘\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(\'/;/\', \'；\', $fld_list[$k]);\r\n    $fld_list[$k] = preg_replace(preg_quote(\'#\'.chr(92).\'#\'), \'￥\', $fld_list[$k]);\r\n    $fld_list[$k] = COM_applyFilter($fld_list[$k]);\r\n}\r\n# CSVファイルのフルパス\r\n$save_csv_file = $save_csv_path . $save_csv_name;\r\n# pageidからpageurlを作成\r\nif (!empty($pageid)) { $pageurl = COM_buildUrl($_CONF[\'site_url\'].\'/staticpages/index.php?page=\'.$pageid); }\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 関数群:                                                                   |\r\n// +---------------------------------------------------------------------------+\r\nif(!function_exists(\'getAction\')){\r\nfunction getAction ($err) {\r\n    $buf = \'\';\r\n    $action = COM_applyFilter($_POST[\'action\']);\r\n    if (!empty($action) && empty($err) && $action == \'input\') { $buf = \'confirm\'; }\r\n    elseif (!empty($action) && empty($err) && $action == \'confirm\') { $buf = empty($_POST[\'goback\']) ? \'finish\' : \'input\'; }\r\n    else { $buf = \'input\'; }\r\n    return $buf;\r\n}\r\n\r\nfunction mkJS4MG ($lib) {\r\n    $buf = preg_replace(\"@<script[^>]+mootools.js[^>]+>[^<]*</script>@\", \"\", $lib);\r\n    return str_replace(\'calendar.js\', \'calendar_mg.js\', $buf);\r\n}\r\n\r\nfunction mkJS ($use,$lib,$action,$plg) {\r\n    $buf=\'\';\r\n    if (!empty($action) && $action == \'input\' && isset($use) && $use == TRUE) {\r\n        if (in_array(\'mediagallery\', $plg)) {\r\n            global $_MG_CONF;\r\n            $mgv = $_MG_CONF[\'pi_version\'];\r\n            $mglib = $_MG_CONF[\'js_lib\'];\r\n            if (!empty($mgv) && !empty($mglib) && (version_compare($mgv, \'1.6.10\', \'<\') || strtolower($mglib) == \'mootools\')) {\r\n                $buf = mkJS4MG($lib);\r\n            } elseif(!empty($mglib) && strtolower($mglib) == \'jquery\') {\r\n                $buf = <<<JQNC\r\n<script>\r\n<!--\r\njQuery.noConflict();\r\n-->\r\n</script>{$lib}\r\nJQNC;\r\n            } else {\r\n                $buf = $lib;\r\n            }\r\n        } else {\r\n            $buf = $lib;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkSeni ($items, $action) {\r\n    $buf = \'<ul>\'.LB;\r\n    foreach ($items as $key => $value) {\r\n        if ($action == $key) {\r\n            $buf .= \'    <li class=\"on\">\'.$value.\'</li>\'.LB;\r\n        } else {\r\n            $buf .= \'    <li>\'.$value.\'</li>\'.LB;\r\n        }\r\n    }\r\n    $buf .= \'</ul>\'.LB;\r\n    return $buf;\r\n}\r\n\r\nfunction putiFilter($s) {\r\n    $se = array(\'%\',\'(\',\')\',chr(92),chr(13).chr(10),chr(13),chr(10));\r\n    $re = array(\'&#37;\',\'&#40;\',\'&#41;\',\'&#92;\',\'\',\'\',\'\');\r\n    return str_replace($se, $re, htmlspecialchars($s,ENT_QUOTES));\r\n}\r\n\r\nfunction vldCAPTCHA ($type, $errmsg) {\r\n    global $_CP_CONF, $_USER;\r\n    $msg = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg; }\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        $str = COM_applyFilter($_POST[\'captcha\']);\r\n        list( $rc, $msg )  = CAPTCHA_checkInput( $type, $str );\r\n    }\r\n    if ( !empty($msg) && !empty($errmsg) ) { $msg = $errmsg; }\r\n    return $msg;\r\n\r\n}\r\n\r\nfunction vld_isPhone($s) { return (preg_match(\'/^(?:[0-9\'.chr(92).\'+\'.chr(92).\'-\'.chr(92).\'s])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHankaku($s) { return (preg_match(\'/^(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isZenkaku($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+/D\',$s)) ? FALSE : TRUE; }\r\nfunction vld_isEisuHan($s) { return (preg_match(\'/^(?:[0-9A-Za-z])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isKanaZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x83[\'.chr(92).\'x80-\'.chr(92).\'xB6])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isHiraZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x81[\'.chr(92).\'x81-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'x80-\'.chr(92).\'x93])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction vld_isNotKanaHan($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F])+/D\',$s)) ? TRUE : FALSE; }\r\n\r\nfunction ChkValidate ($mode, $datas, $errmsg, $attributes = \'\') {\r\n    $msg = \'\';\r\n    foreach ($datas as $data) {\r\n        if (isset($data[\'type\'])) {\r\n            $name = $data[\'name\'];\r\n            switch ($mode) {\r\n                // 必須チェック\r\n                case \'require\':\r\n                    if (empty($data[\'notrequire\']) && empty($_POST[$name]) && $_POST[$name] != \"0\") { $msg = $errmsg; }\r\n                    break;\r\n                // 一致チェック\r\n                case \'equal\':\r\n                    if (!empty($attributes)) {\r\n                        $es_emails = explode(\',\', $attributes);\r\n                        foreach ($es_emails as $es_email) {\r\n                            list($eq1,$eq2) = explode(\'=\', $es_email);\r\n                            // 最初のキー かつ チェックするキーが存在\r\n                            if ($name == $eq1 && !empty($_POST[$eq2])) {\r\n                                if ($_POST[$eq1] != $_POST[$eq2]) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // メールチェック\r\n                case \'email\':\r\n                    if (!empty($attributes)) {\r\n                        $pr_emails = explode(\',\', $attributes);\r\n                        foreach ($pr_emails as $pr_email) {\r\n                            if ($name == $pr_email) {\r\n                                if (!COM_isemail($_POST[$name])) {\r\n                                    $msg = $errmsg;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 数値チェック - 足して0以上\r\n                case \'notzero\':\r\n                    if (!empty($attributes)) {\r\n                        $values_key = explode(\',\', $attributes);\r\n                        foreach ($values_key as $val_key) {\r\n                            // 最初のキーのときにチェック\r\n                            if ($name == $val_key) {\r\n                                $sum_val = 0;\r\n                                foreach ($values_key as $chk_key) {\r\n                                    if (!empty($_POST[$chk_key])) {\r\n                                        $sum_val += $_POST[$chk_key];\r\n                                    }\r\n                                }\r\n                                if ($sum_val <= 0) {\r\n                                    $msg = $errmsg;\r\n                                    break;\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 数値のみかチェック\r\n                case \'numeric\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !ctype_digit($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 電話番号かチェック\r\n                case \'phone\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isPhone($_POST[$name])) { $msg = $errmsg; }\r\n                // 半角チェック\r\n                case \'hankaku\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isHankaku($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角チェック\r\n                case \'zenkaku\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isZenkaku($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 半角英数字チェック\r\n                case \'eisuhan\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !vld_isEisuHan($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角カタカナチェック\r\n                case \'kanazen\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isKanaZen($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 全角ひらがなチェック\r\n                case \'kanazen\':\r\n                    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !vld_isHiraZen($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 半角カタカナ以外かチェック\r\n                case \'notkanahan\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && vld_isNotKanaHan($_POST[$name])) { $msg = $errmsg; }\r\n                    break;\r\n                // 文字数チェック\r\n                case \'maxlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$max2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($max2 < mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n                // 最低文字数チェック\r\n                case \'minlen\':\r\n                    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n                        foreach (explode(\',\', $attributes) as $attr1) {\r\n                            list($name2,$min2) = explode(\'=\',$attr1);\r\n                            if ($name === $name2) {\r\n                                if ($min2 > mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n                            }\r\n                        }\r\n                    }\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n    // 画像認証チェック\r\n    if ( $mode == \'captcha\' ) { $msg = vldCAPTCHA(\'sp_formmail\', $errmsg); }\r\n    return $msg;\r\n}\r\n\r\nfunction ChkFormValidateLines ($lines) {\r\n    $errmsg;\r\n    foreach (array(\'require\',\'equal\',\'email\',\'notzero\',\'numeric\',\'phone\',\'hankaku\',\'zenkaku\',\'eisuhan\',\'kanazen\',\'hirazen\',\'notkanahan\',\'captcha\',\'maxlen\',\'minlen\') as $chk) {\r\n        // 必須,一致,メール,画像認証,エラー のチェック\r\n        if (isset($lines[\'valid_\'.$chk])) {\r\n            $errmsg = ChkValidate($chk, $lines[\'data\'], $lines[\'error_\'.$chk], $lines[\'valid_\'.$chk]);\r\n            // エラーがあれば配列に格納\r\n            if ($errmsg) {\r\n                break;\r\n            }\r\n        }\r\n    }\r\n    return $errmsg;\r\n}\r\n\r\nfunction ChkFormValidate ($items) {\r\n    $errs;\r\n    foreach ($items as $item) {\r\n        // 各テーブル\r\n        foreach ($item as $key => $value) {\r\n            // １テーブル\r\n            if ($key == \'table\' || $key == \'table_captcha\') {\r\n                $action = getAction(\'\');\r\n                if ($key == \'table_captcha\' && $action == \'finish\') { continue; }\r\n                foreach ($value as $key2 => $value2) {\r\n                    // テーブル１行\r\n                    $errmsg = ChkFormValidateLines($value2);\r\n                    if ($errmsg) { $errs[] = $errmsg; }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $errs;\r\n}\r\n\r\nfunction FormValidate ($items) {\r\n    $buf = \'\';\r\n    $errs = ChkFormValidate($items);\r\n    if (!empty($errs)) {\r\n        $errmsg = \'\';\r\n        foreach ($errs as $err) {\r\n            $errmsg .= \'    <li>\'.$err.\'</li>\'.LB;\r\n        }\r\n        $buf = <<<END\r\n\r\n<p class=\"error\">入力エラーがありました。下記について再度ご確認の上、ご記入ください。</p>\r\n<ol class=\"errorList\">\r\n$errmsg\r\n</ol>\r\nEND;\r\n    }\r\n    return $buf;\r\n}\r\n\r\n\r\nfunction mkTitle ($title) {\r\n    return <<<END\r\n\r\n    <h4>$title</h4>\r\n    <table class=\"formmail\" cellspacing=\"0\">\r\n        <colgroup><col width=\"130\" /></colgroup>\r\n        <tbody>\r\nEND;\r\n}\r\n\r\nfunction mkForm_Value ($name, $value) {\r\n    return (empty($_POST[$name]) && $_POST[$name] != \"0\") ? $value : putiFilter($_POST[$name]);\r\n}\r\n\r\nfunction mkForm_Radio_Checked (&$attributes) {\r\n    $name = $attributes[\'name\'];\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n        if (isset($attributes[\'checked\'])) unset($attributes[\'checked\']);\r\n        if ($_POST[$name] == $attributes[\'value\']) {\r\n            $attributes[\'checked\'] = \'checked\';\r\n        }\r\n    }\r\n}\r\n\r\nfunction mkForm_Input ($attributes, $hidden = false) {\r\n    if ($hidden) {\r\n        if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n            if ($attributes[\'value\'] != $_POST[$attributes[\'name\']]) return \'\';\r\n        }\r\n        $attributes[\'type\'] = \'hidden\';\r\n    }\r\n    if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n        mkForm_Radio_Checked($attributes);\r\n    } else {\r\n        if ($attributes[\'type\'] != \'submit\') $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    }\r\n    $buf = \'<input\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'not_confirm\') { $buf .= \' \'.$key.\'=\"\'.$value.\'\"\'; }\r\n    }\r\n    $buf .= XHTML.\'>\';\r\n    if ($hidden || $attributes[\'type\'] == \'checkbox\') {\r\n        if ( !isset($attributes[\'not_confirm\']) || ! $attributes[\'not_confirm\'] ) { $buf .= \' \' . $attributes[\'value\']; }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select_Options ($name, $attributes) {\r\n    $buf = \'\';\r\n    $selected = mkForm_Value($name, $attributes[\'selected\']);\r\n    $values = explode(\',\', $attributes[\'values\']);\r\n    foreach ($values as $value) {\r\n        list($k,$v) = explode(\'=\',$value);\r\n        if (empty($v)) $v = $k;\r\n        if ($selected == $k) {\r\n            $buf .= \'<option selected=\"selected\" value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        } else {\r\n            $buf .= \'<option value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Select ($attributes) {\r\n    $buf = \'<select\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'options\') {\r\n            $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n        }\r\n    }\r\n    $buf .= \'>\';\r\n    $buf .= mkForm_Select_Options($attributes[\'name\'], $attributes[\'options\']);\r\n    $buf .= \'</select>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Textarea ($attributes) {\r\n    $attributes[\'value\'] = mkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n    $buf = \'<textarea\';\r\n    foreach ($attributes as $key => $value) {\r\n        if ($key != \'value\') $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n    }\r\n    $buf .= \'>\'.$attributes[\'value\'].\'</textarea>\';\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm_Item ($items, $action) {\r\n    $buf = \'\';\r\n    if ($action != \'input\' && $items[\'type\'] != \'submit\' && $items[\'type\'] != \'hidden\') {\r\n        $buf .= mkForm_Input($items, true);\r\n    } else {\r\n        switch ($items[\'type\']) {\r\n            case \'text\': $buf .= mkForm_Input($items); break;\r\n            case \'password\': $buf .= mkForm_Input($items); break;\r\n            case \'hidden\': $buf .= mkForm_Input($items); break;\r\n            case \'radio\': $buf .= mkForm_Input($items); break;\r\n            case \'checkbox\': $buf .= mkForm_Input($items); break;\r\n            case \'select\': $buf .= mkForm_Select($items); break;\r\n            case \'textarea\': $buf .= mkForm_Textarea($items); break;\r\n            case \'submit\': $buf .= mkForm_Input($items); break;\r\n            case \'reset\': $buf .= mkForm_Input($items); break;\r\n            case \'button\': $buf .= mkForm_Input($items); break;\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkTable_Data ($datas, $action) {\r\n    $buf = \'\';\r\n    foreach ($datas as $data) {\r\n        // １つのデータ\r\n        if (!empty($data[\'type\'])) {\r\n            // フォーム\r\n            $buf .= mkForm_Item($data, $action);\r\n        }\r\n        else {\r\n            // 文字列\r\n            foreach ($data as $key => $value) {\r\n                if ($key == \'string\') {\r\n                    $buf .= $value;\r\n                } elseif ($key == $action) {\r\n                    $buf .= $value;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction plugin_templatePath_sp_formmail () {\r\n    global $_CONF;\r\n    $pi_name = \'sp_formmail\';\r\n    $layout_path = $_CONF[\'path_layout\'] . $pi_name;\r\n    return $layout_path;\r\n}\r\n\r\nfunction chk_Use_CAPTCHA_HTML () {\r\n    global $_CP_CONF, $_USER;\r\n    if ( ($_CP_CONF[\'anonymous_only\'] && $_USER[\'uid\'] < 2) || $_CP_CONF[\'anonymous_only\'] == 0 || ($_CP_CONF[\'remoteusers\'] == 1 && SEC_inGroup(\"Remote Users\") ) ) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction mkCAPTCHA_HTML ($name, $msg_notcaptcha) {\r\n    global $_CP_CONF, $_USER, $_TABLES;\r\n    $captcha = \'\';\r\n    if (!function_exists(\'CAPTCHA_sid\')) { return $msg_notcaptcha; }\r\n    if ( chk_Use_CAPTCHA_HTML() ) {\r\n\r\n        $csid = 0;\r\n        if ($_CP_CONF[\'gfxDriver\'] != 1) {\r\n\r\n            // housekeeping, delete old captcha sessions\r\n            $oldSessions = time() - ($_CP_CONF[\'expire\']+900);\r\n            DB_query(\"DELETE FROM {$_TABLES[\'cp_sessions\']} WHERE cptime < \" . $oldSessions,1);\r\n\r\n            // OK, we need to insert the CAPTCHA, so now we need to setup the session_id:\r\n\r\n            // check to see if a failed entry happened...\r\n            if ( isset($_POST[\'csid\']) ) {\r\n                $csid = COM_applyFilter($_POST[\'csid\']);\r\n            } else {\r\n                $csid = CAPTCHA_sid();\r\n            }\r\n            $time    = time();\r\n            $counter = 0;\r\n            $validation = \'\';  // this will be filled in by the CAPTCHA\r\n\r\n                \"  `session_id` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `cptime`  INT(11) NOT NULL default 0, \" .\r\n                \"  `validation` varchar(40) NOT NULL default \'\', \" .\r\n                \"  `counter`    TINYINT(4) NOT NULL default 0, \" .\r\n\r\n            DB_save($_TABLES[\'cp_sessions\'],\"session_id,cptime,validation,counter\",\"\'$csid\',\'$time\',\'\',\'0\'\");\r\n        }\r\n\r\n        $captcha = CAPTCHA_getHTML($csid,$name);\r\n    }\r\n    return $captcha;\r\n}\r\n\r\nfunction mkTable ($tables, $action) {\r\n    $buf = \'\';\r\n    foreach ($tables as $lines) {\r\n        $flg_valid_captcha = false;\r\n        $errflg = \'\';\r\n        $tdclass=\'\';\r\n        $buf .= LB .\'            <tr>\' . LB;\r\n        $buf .= \'                <th>\';\r\n        if (isset($lines[\'header\'])) { $buf .= $lines[\'header\']; }\r\n        if (isset($lines[\'header_captcha\'])) { $buf .= $lines[\'header_captcha\']; }\r\n        if (isset($lines[\'valid_require\'])) { $buf .= $lines[\'valid_require\']; }\r\n        if (isset($lines[\'valid_captcha\'])) { $buf .= $lines[\'valid_captcha\']; $flg_valid_captcha = true; }\r\n        // エラーチェック\r\n        if (!empty($_POST)) { $errflg = ChkFormValidateLines($lines); }\r\n        if ($errflg) { $tdclass=\' class=\"warning_bgc\"\'; }\r\n        $buf .= \'</th>\'.LB;\r\n        $buf .= \'                <td\'.$tdclass.\'>\';\r\n        if (isset($lines[\'data\'])) {\r\n            if ($flg_valid_captcha) {\r\n                $buf .= mkCAPTCHA_HTML(\'sp_formmail\',$lines[\'error_notcaptcha\']);\r\n            } else {\r\n                $buf .= mkTable_Data($lines[\'data\'], $action);\r\n            }\r\n        }\r\n        $buf .= \'</td>\'.LB;\r\n        $buf .= \'            </tr>\'.LB;\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkForm ($items, $action) {\r\n    $buf = \'\';\r\n    foreach ($items as $item) {\r\n        // 各テーブル\r\n        if (!empty($item[\'table\'])) {\r\n            foreach ($item as $key => $value) {\r\n                // １テーブル\r\n                switch ($key) {\r\n                    case \'title\': $buf .= mkTitle($value); break;\r\n                    case \'table\': $buf .= mkTable($value, $action); break;\r\n                }\r\n            }\r\n            $buf .= <<<END\r\n\r\n        </tbody>\r\n    </table>\r\nEND;\r\n        } elseif (!empty($item[\'table_captcha\'])) {  // 画像認証テーブル\r\n            if ((!empty($action) && $action == \'input\') && chk_Use_CAPTCHA_HTML()) {\r\n                foreach ($item as $key => $value) {\r\n                    // １テーブル\r\n                    switch ($key) {\r\n                        case \'title_captcha\': $buf .= mkTitle($value); break;\r\n                        case \'table_captcha\': $buf .= mkTable($value, $action); break;\r\n                    }\r\n                }\r\n                $buf .= <<<END\r\n\r\n            </tbody>\r\n        </table>\r\nEND;\r\n            } elseif (!empty($action)) {\r\n                $buf .= LB . \'    <input type=\"hidden\">\';\r\n            }\r\n        } elseif (!empty($item[\'action\'])) {         // 送信ボタン\r\n            if ($item[\'action\'] == $action) {\r\n                $buf .= LB . \'    <input type=\"hidden\" name=\"action\" value=\"\' . $action . \'\"\' . XHTML . \'>\';\r\n                $buf .= LB . mkTable_Data($item[\'data\'], $action);\r\n            }\r\n        }\r\n    }\r\n    return $buf;\r\n}\r\n\r\nfunction mkCsv ($items, $level=0, $dupcheck=array()) {\r\n    global $_CONF;\r\n    $ret = array();\r\n    if ($level > 5) { return; } $level++;\r\n    if (!empty($items[\'type\']) && strtolower($items[\'type\']) != \'submit\' ) {\r\n        if((!empty($items[\'not_csv\']) && $items[\'not_csv\']) || empty($items[\'name\'])) { return; }\r\n        if(strtolower($items[\'type\']) == \'radio\' && in_array($items[\'name\'], $dupcheck)) { return; }\r\n        return $items[\'name\'];\r\n    } else {\r\n        if (!is_array($items)) { return; }\r\n        foreach ($items as $i) {\r\n            $name = mkCsv($i,$level, $ret);\r\n            if (!empty($name)) {\r\n                if(is_array($name)) { $ret = array_merge($ret,$name); } else { $ret[] = $name; }\r\n            }\r\n        }\r\n    }\r\n    return $ret;\r\n}\r\n}\r\n\r\n\r\n// エラーチェック\r\nif (!empty($_POST) && !empty($_POST[\'action\'])) {\r\n    $valid = FormValidate($form_items);\r\n}\r\n$action = getAction($valid);\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 第1ステップ: フォーム表示(入力＆確認)                                     |\r\n// +---------------------------------------------------------------------------+\r\nif ($action == \'input\' || $action == \'confirm\') {\r\n\r\n/**\r\n* フォーム画面HTML { ここから\r\n*/\r\n    // JS\r\n    $js = mkJS($use_jslib, $def_jslib, $action, $_PLUGINS);\r\n    // 遷移\r\n    $seni = mkSeni($seni_items, $action);\r\n    // 入力フォーム\r\n    $form = mkForm($form_items, $action);\r\n\r\n    $retval = <<<END\r\n\r\n$js\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"FORM\">\r\n$valid\r\n<form name=\"subForm\" method=\"post\" action=\"{$pageurl}\">\r\n$form\r\n</form>\r\n</div>\r\n\r\nEND;\r\n\r\n/**\r\n* } ここまで フォーム画面HTML\r\n*/\r\n\r\n\r\n\r\n// +---------------------------------------------------------------------------+\r\n// | 第2ステップ: 完了表示＆メール送信                                         |\r\n// +---------------------------------------------------------------------------+\r\n} elseif ($action == \'finish\') {\r\n\r\n/**\r\n* 完了画面HTML { ここから\r\n*/\r\n    // 遷移\r\n    $seni = mkSeni($seni_items, $action);\r\n    \r\n    $out_html = <<<END\r\n\r\n<div id=\"form_step\">\r\n$seni\r\n</div>\r\n<div id=\"contact_thanks\">\r\n<p><strong>お問い合わせを受け付けました。</strong></p>\r\n<p>※お問い合わせ確認のメールを自動送信しました。<br />\r\nメールが届かない場合は、ご登録のメールアドレスが間違っている可能性があります。<br />\r\nその際は、お手数ですが再度お問い合わせください。</p>\r\n</div>\r\n\r\nEND;\r\n/**\r\n* } ここまで 完了画面HTML\r\n*/\r\n\r\n\r\n\r\n    # <br /> を改行コードに変換\r\n    foreach ($fld_list as $k => $v) { $fld_list[$k] = ereg_replace(\"<br />\", LB, $fld_list[$k]); }\r\n    $lang[\'sign_admin\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_admin\']);\r\n    $lang[\'sign_user\'] = ereg_replace(\"<br />\", LB, $lang[\'sign_user\']);\r\n    // 入力内容\r\n    $input4mail=<<<END\r\nお名前: {$fld_list[\'q_name\']}\r\nメールアドレス: {$fld_list[\'q_mail\']}\r\n\r\nお問い合わせ内容:\r\n {$fld_list[\'q_other\']}\r\nEND;\r\n\r\n/**\r\n* 送信メール内容 - 管理者 { ここから\r\n*/\r\n    $out_mail_admin = <<<END\r\n\r\n{$lang[\'receipt_admin\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_admin\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 管理者\r\n*/\r\n/**\r\n* 送信メール内容 - 入力者 { ここから\r\n*/\r\n    $out_mail_user = <<<END\r\n\r\n{$lang[\'receipt_user\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_user\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 入力者\r\n*/\r\n\r\n\r\n    # メール送信\r\n    $ownererr = false;\r\n    $ownersend = false;\r\n    $om_array = explode(\',\', $owner_email);\r\n    $owner_mails = array_unique($om_array);  # 重複した値(メールアドレス)を削除\r\n    if (!empty($owner_email_item_name)) {\r\n        $selmail;\r\n        foreach ($owner_mails as $v) {\r\n            list($key, $mail) = explode(\'=\', $v);\r\n            if ($_POST[$owner_email_item_name] == $key) {\r\n                $selmail = explode(\'|\', $mail);\r\n                break;\r\n            }\r\n        }\r\n        $owner_mails = $selmail;\r\n    }\r\n    $owner_subject = $lang[\'subject_admin\'];\r\n    foreach ($owner_mails as $v) {\r\n        $email1 = COM_mail( $v, \"$owner_subject\", $out_mail_admin, $email_from, false); # オーナーあてメール\r\n        if (!$email1) { $ownererr = true; } else { $ownersend = true; }  # 送信/エラーのフラグをセット\r\n    }\r\n    # オーナーメール送信でエラーがあった場合\r\n    if ($ownererr) {\r\n        # 一部に送信できている場合\r\n        if ($ownersend) {\r\n            # エラーをログへ出力(一部へは配送されているのでユーザにエラー画面を出さない)\r\n            COM_errorLog($lang[\'ownertransmiterror\'], 1);\r\n            $email1 = true;\r\n        # 全員がエラーの場合\r\n        } elseif (!$ownersend) {\r\n            # 処理エラーとし、ユーザへのメールは送らない\r\n            $email1 = false;\r\n        }\r\n    }\r\n    if ($email1) {\r\n        $usr_subject = $lang[\'subject_user\'];\r\n        $email2 = COM_mail( $fld_list[$email_input_name], \"$usr_subject\", $out_mail_user, $email_from, false); # 問合せ者へメール\r\n    }\r\n    if ($email1 && $email2) { # どちらの送信も成功したら\r\n        # csv出力する\r\n        if ($save_csv > 0) {\r\n            $fldnames = mkCsv($form_items);\r\n            $delimiter = \',\';\r\n            if ($save_csv > 1) { $delimiter = chr(9); }\r\n            $enclosure = \'\"\';\r\n            # CSV出力\r\n            $str = \'\';\r\n            $escape_char = chr(92);\r\n            foreach ($fldnames as $n) {\r\n                $v = empty($fld_list[$n]) ? \'\' : $fld_list[$n] ;\r\n                if (strpos($v, $delimiter) !== false ||\r\n                    strpos($v, $enclosure) !== false ||\r\n                    strpos($v, chr(10)) !== false ||\r\n                    strpos($v, chr(13)) !== false ||\r\n                    strpos($v, chr(9)) !== false ||\r\n                    strpos($v, \' \') !== false) {\r\n                  $str2 = $enclosure;\r\n                  $escaped = 0;\r\n                  $len = strlen($v);\r\n                  for ($i=0;$i<$len;$i++) {\r\n                    if ($v[$i] == $escape_char) {\r\n                      $escaped = 1;\r\n                    } else if (!$escaped && $v[$i] == $enclosure) {\r\n                      $str2 .= $enclosure;\r\n                    } else {\r\n                      $escaped = 0;\r\n                    }\r\n                    $str2 .= $v[$i];\r\n                  }\r\n                  $str2 .= $enclosure;\r\n                  $str .= $str2.$delimiter;\r\n                } else {\r\n                  $str .= $v.$delimiter;\r\n                }\r\n            }\r\n            $str = date($date_csv) . $delimiter . substr($str,0,-1);\r\n            $str .= LB;\r\n            if( !empty( $save_csv_lang ) ) {\r\n                $str = mb_convert_encoding($str, $save_csv_lang);\r\n            }\r\n            $fp = fopen($save_csv_file, \'a\');\r\n            fwrite($fp, $str);  # CSV書き出し\r\n            fclose($fp);\r\n        }\r\n        $retval = $out_html;\r\n    } else {\r\n        $retval = $lang[\'transmiterror\']; # メール送信が失敗したら\r\n    }\r\n}\r\n// Geeklog1.6 PHPを実行\r\necho $retval;\r\n// Geeklog1.6 PHPを実行(return) の場合、上のechoをコメント(#)にして以下のreturnのコメントをはずしてください\r\n# return $retval;\r\n',11965,'2010-09-02 04:37:25','2010-10-09 10:54:31','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_top01_lastarticles_ja','新着記事','','// $include=array(\'feature_en,event_en,international_en,editor_en,life_en,tour_en\');\r\n\r\n// $display = phpblock_lastarticles2(10,100,$include);\r\n\r\n\r\n\r\n$display = phpblock_lastarticles(10,120);\r\n\r\necho $display;\r\n',104054,'2019-01-30 17:15:08','2019-01-30 17:15:08','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_hedder_message_zh','TOPICS_zh','','.',45509,'2012-06-17 09:43:21','2019-01-30 17:07:23','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('_top01_lastarticles_ko','새 주제','','$display = phpblock_lastarticles(10,80);  \r\necho $display;',23609,'2010-09-02 16:09:22','2019-01-30 17:14:10','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_top01_lastarticles_en','NEW TOPICS','','// $include=array(\'feature_en,event_en,international_en,editor_en,life_en,tour_en\');\r\n\r\n// $display = phpblock_lastarticles2(10,100,$include);\r\n\r\n\r\n\r\n$display = phpblock_lastarticles(10,120);\r\n\r\necho $display;\r\n',181248,'2010-09-02 16:09:34','2019-01-30 17:13:58','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_hedder_message_ko','TOPICS_ko','','.',12801,'2012-06-17 09:42:23','2019-01-30 17:07:32','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home_top','_home_top','','global $LANG_ASSIST;\r\n\r\nif(SEC_inGroup(\'Root\')){\r\necho PLG_replaceTags(\'[staticpage:_hedder_message_\'.COM_getLanguageId().\' 管理者用：単独で表示する]\');\r\n}\r\necho PLG_replaceTags(\'[staticpage_content:_hedder_message_\'.COM_getLanguageId().\']\');\r\n\r\n// echo PLG_replaceTags(\'[staticpage_content:_header_content_\'.COM_getLanguageId().\']\');\r\n\r\nif(SEC_inGroup(\'Root\')){\r\necho PLG_replaceTags(\'[staticpage:_home_\'.COM_getLanguageId().\' 管理者用：単独で表示する]\');\r\n}\r\necho PLG_replaceTags(\'[staticpage_content:_home_\'.COM_getLanguageId().\']\');\r\n\r\n\r\n\r\necho \'<div class=\"uk-margin-large-top\">\';\r\n$display = phpblock_lastarticles(10,120);\r\necho $display;\r\necho \'</div>\';\r\n\r\n\r\n $more_title=$LANG_ASSIST[1];\r\n\r\necho \'<div class=\"uk-text-right\">\'.PLG_replaceTags(\'[staticpage:all \'.$more_title.\']\').\'</div>\';\r\n\r\n<!-- User Heat Tag -->\r\n<script type=\"text/javascript\">\r\n(function(add, cla){window[\'UserHeatTag\']=cla;window[cla]=window[cla]||function(){(window[cla].q=window[cla].q||[]).push(arguments)},window[cla].l=1*new Date();var ul=document.createElement(\'script\');var tag = document.getElementsByTagName(\'script\')[0];ul.async=1;ul.src=add;tag.parentNode.insertBefore(ul,tag);})(\'//uh.nakanohito.jp/uhj2/uh.js\', \'_uhtracker\');_uhtracker({id:\'uhdXuixIqF\'});\r\n</script>\r\n<!-- End User Heat Tag -->\r\n',144472,'2019-01-30 17:09:37','2021-05-01 03:12:53','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,1,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_top01_lastarticles_zh','新话题','','// $include=array(\'feature_en,event_en,international_en,editor_en,life_en,tour_en\');\r\n\r\n// $display = phpblock_lastarticles2(10,100,$include);\r\n\r\n\r\n\r\n$display = phpblock_lastarticles(10,120);\r\n\r\necho $display;\r\n',30351,'2019-01-30 17:15:59','2019-01-30 17:15:59','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_hedder_message_ja','TOPICS_ja','','<p><b id=\"docs-internal-guid-0ebd51ce-7fff-750c-55f8-bbc1a2aaae3d\"><a href=\"https://www.yokosojapan.net/article.php/20211212social-residence_life_ja\">『共に学び、共に成長する　ソーシャルレジデンス』</a></b><b>　<a href=\"https://www.oakhouse.jp/?sm_tag=3u2ICmgp\">オークハウス㈱</a></b><br />\r\n<br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www11.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+609HT\" width=\"1\" /><a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" rel=\"nofollow\">【全額返金保証】トライズなら1年で英語が身につく3つの理由</a></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_ja_3_original.jpg\" rel=\"nofollow\">2024年賀状.jpg</a><br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www17.a8.net/0.gif?a8mat=3N45M5+3CV0KY+3NMW+65U41\" width=\"1\" /></p>\r\n\r\n<p>＊＊＊＊＊＊＊ GLOBALCOMMUNITY NEWSLETTER ＊2023.12　＊＊＊<br />\r\n<br />\r\nEnglish newsletter below<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/2023.12_newsletter_en\">https://www.yokosojapan.net/article.php/2023.12_newsletter_en</a><br />\r\n<br />\r\nいつもご支援をいただき、誠にありがとうございます。<br />\r\n皆様のおかげで、”グローバルコミュニティー”も、日本人と在日外国人の人たちとの交流をテーマに発刊14年目を無事迎えることが出来ました。本年最後のニュースレターです。<br />\r\n今後も、民族を超えた問題である健康、医療、環境分野、異文化交流にフォーカスして発信していきます。初心を忘れず地道に努力して参りますので、来年もよろしくお願いいたします。<br />\r\n<br />\r\nーーーーーーーーーーーーーーーーー<br />\r\n<br />\r\n１：外務省後援・第11回国際紅白歌合戦が盛況の元、終了しました。</p>\r\n\r\n<figure>\r\n<p><img alt=\"\" height=\"342\" src=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_ja_1_original.jpg\" width=\"500\" /></p>\r\n</figure>\r\n<br />\r\n<br />\r\n8月、医療系大学生約16万人に対して告知され、多くの応募者から、最終的に10名が選ばれ、最終選考会としての『国際紅白歌合戦inバンデン』が行われた。2名の代表者が選ばれ、大阪開催に参加した、TAYAさんが大阪観光局理事長賞を受賞しました。オンラインでは、セブ（フィリピン）、サンパウロ（ブラジル）をつないで、現地の様子を紹介しながら、来年以降の現地開催についての紹介がありました。<br />\r\n<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/20231127irws2023_event_ja\">https://www.yokosojapan.net/article.php/20231127irws2023_event_ja</a><br />\r\n<br />\r\n2：学生通訳ボランテイアガイドの第2，4土曜の定期活動が大阪城・豊国神社でも本格化。\r\n<figure>\r\n<p><img alt=\"\" height=\"383\" src=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_ja_2_original.jpg\" width=\"600\" /></p>\r\n</figure>\r\n\r\n<p><br />\r\n英語で日本のことをわかりやすく伝える技術は、就活にも大きなアピールポイントに。<br />\r\n行政団体、インバウンド関連企業、NPOなどからも問い合わせが急増しています。<br />\r\n<br />\r\n現状の英語力や観光知識は問いません。日本の良さを伝えたいという気持ちがあれば、<br />\r\n誰でも6か月で一通りの案内は出来るようになります。<br />\r\nまずはZOOMでの説明会にご参加ください。<br />\r\n<a href=\"https://gc-volunteer-guide.jimdosite.com/zoom%E8%AA%AC%E6%98%8E%E4%BC%9A/\">https://gc-volunteer-guide.jimdosite.com/zoom%E8%AA%AC%E6%98%8E%E4%BC%9A/</a><br />\r\n<br />\r\n3：2023年で一番読まれた記事ベスト5<br />\r\n<br />\r\nNO.1　『外国人が好きな日本の歌ランキング』1位 from 国際紅白歌合戦<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/20220320favorite_japanese_songs1_life_ja\">https://www.yokosojapan.net/article.php/20220320favorite_japanese_songs1_life_ja</a><br />\r\n<br />\r\nNo.2　国際紅白歌合戦が目指すもの<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/kouhaku.japan_editor\">https://www.yokosojapan.net/article.php/kouhaku.japan_editor</a><br />\r\n<br />\r\nNO.3　平和を愛し、人種差別撤廃を世界で初めて国際舞台で訴えた日本<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/20220812japanese_editor\">https://www.yokosojapan.net/article.php/20220812japanese_editor</a><br />\r\n<br />\r\nNO.4　『今世紀最大の科学的発見といわれる第四の相・液晶水とは？』<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/20151006discovery_international_ja\">https://www.yokosojapan.net/article.php/20151006discovery_international_ja</a><br />\r\n<br />\r\n映画“ウオーター”においても何度も登場する“水の構造”ですが、その構造の違いを実際に明確に示すことは容易なことではありませんでした。ところが、過去数年間にわたって、ワシントン大学生物工学科のジェラルド・ポラック博士によって、まったく新しい種類の“水の構造化”に関する研究が進められており、大きな成果を収めてきています。<br />\r\n<br />\r\nNO.5　「いのち輝く未来社会のデザイン」特集１<br />\r\n世界に誇る、最先端の脳外科治療のお話<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/20230424brain_event_ja\">https://www.yokosojapan.net/article.php/20230424brain_event_ja</a><br />\r\n<br />\r\n篠浦伸禎 (しのうらのぶさだ)　医師<br />\r\n東大医学部卒。国立国際医療センター等に勤務。92年東大医学部、医学博士。同年シンシナティ大学に留学。2000年より都立駒込病院にて活躍し、09年、脳神経外科部長。<br />\r\n脳の覚醒下手術（意識のある状態での手術）でトップクラスの実績。主な著書に「人に向かわず天に向かえ」「脳にいい５つの習慣」「相性は脳で決まる」他。<br />\r\n<br />\r\nーーーーーーーーーーーーーーーーー<br />\r\n<br />\r\n第12回国際紅白歌合戦　in　2024　　<br />\r\n<br />\r\n第12回国際紅白歌合戦グランドファイナルは、2024年11月17日に、<br />\r\n大阪箕面市<a href=\"https://www.google.com/maps/@34.8310373,135.4715897,3a,75y,195.71h,79.76t/data=!3m7!1e1!3m5!1sAF1QipO_rWZgTAMMIkmWLb5xQTmP2WJPCNeSmII8fA3J!2e10!3e12!7i12000!8i6000?shorturl=1\">メイプルホール</a>にて開催されます。</p>\r\n\r\n<p>公式ページ　<a href=\"https://irws.org\">https://irws.org</a><br />\r\n<br />\r\n《後援予定》外務省・留学生支援コンソーシアム大阪<br />\r\n　国際機関日本アセアンセンター・海外日系人協会</p>\r\n\r\n<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>\r\n\r\n<p><span style=\"font-family:Georgia,serif;\"><span style=\"font-size:18px;\"><span style=\"color:#c0392b;\"><strong>SPECIAL　FEATURE（医療）</strong></span></span></span></p>\r\n\r\n<p><span style=\"color:#c0392b;\"><span style=\"font-size:18px;\"><strong>自閉症、脳性麻痺も薬に頼らない改善方法が、実はすでに確立されています。元々は日本で開発された療法ですが、その有効性にいち早く気づいた、中国や台湾の人たちが、自分の国に持ち込み広げていきました。</strong></span></span></p>\r\n\r\n<p><span style=\"color:#c0392b;\"><span style=\"font-size:18px;\"><strong>介護保険制度がなく、患者を抱える家族の負担が大きい台湾や中国では、長年</strong></span></span><span style=\"color:#c0392b;\"><span style=\"font-size:18px;\"><strong>すでに多くの医療施設で実践されています。</strong></span></span></p>\r\n\r\n<p><span style=\"color:#c0392b;\"><span style=\"font-size:18px;\"><strong>ぜひ、その様子をご覧ください。</strong></span></span></p>\r\n\r\n<p><span style=\"font-size:14px;\"><strong>【自閉症児の改善】　重度の自閉症・孤独症・多動・情緒不安定・日常生活要介助・言葉が話せない　10歳の男子が3ヶ月で改善！</strong></span></p>\r\n\r\n<h1><strong><span style=\"font-size:14px;\">【脳性麻痺の改善】脳性麻痺で一人では座れない、立てない、歩けない、5歳の脳性麻痺の女児が3ヶ月で歩いた、一気に花開くようにどんどん成長しました！</span></strong></h1>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/zYpYEQgv68U\" title=\"YouTube video player\" width=\"460\"></iframe></p>\r\n\r\n<p>台湾や中国で行政団体が応援する身体機能運動療法。介護保険のない中国、台湾では、自分自身で、認知症から、自分を守る必要があります。効果的な治療法として、身体機能運動療法の2000名以上の指導員が活躍しています。<a href=\"https://shinshinkaizen.hp.peraichi.com/\">https://shinshinkaizen.hp.peraichi.com/</a></p>\r\n\r\n<p><span style=\"font-size:14px;\"><strong>認知症、自閉症、発達障害は改善する・政府も自立させた施設を厚遇</strong></span></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20170212kaigo_feature_ja\">https://www.yokosojapan.net/article.php/20170212kaigo_feature_ja</a></p>\r\n\r\n<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>\r\n\r\n<p><span style=\"color:#c0392b;\"><span style=\"font-size:16px;\"><strong>何故日本ではガンが増え続けているのか？ </strong></span></span></p>\r\n\r\n<p><span style=\"color:#c0392b;\"><span style=\"font-size:16px;\"><strong>がんの正体を紐解いた、小林常雄医師</strong></span></span></p>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/b8MPzbWGaqc\" width=\"400\"></iframe></p>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/uFjVgXbsj-4\" width=\"400\"></iframe></p>\r\n\r\n<p><span style=\"font-size:14px;\"><strong>小林常雄医師のTMCA検診</strong></span></p>\r\n\r\n<p><span style=\"font-size:14px;\"><strong>『99％がんを予防し、がんの再発を防ぐ検査』</strong></span></p>\r\n\r\n<p><span style=\"font-size:14px;\"><strong>既に2万人以上の検診実績があり、多くの方の「初期がん」や「進行がん」を術前に発見</strong></span></p>\r\n\r\n<p>採血と採尿のみの簡単検診<br />\r\n薬剤の摂取の必要なし<br />\r\n放射線の被爆ゼロ<br />\r\n安価に全身のがんリスクが判定できる<br />\r\n目視ではなく数値による判断なので「見落とし」がない</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20210523cancer_life_ja\"><strong>-通常の画像診断の100倍の精度、1mm以下の全身のがんの予見を可能にするTMCA診断とは？</strong></a></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20210610cancer_life_ja\"><strong>がんの撲滅に人生をかける仕事人</strong></a></p>\r\n\r\n<p><a href=\"https://www.amazon.co.jp/%E3%81%8C%E3%82%93%E3%81%AE%E6%AD%A3%E4%BD%93%E3%81%8C%E3%82%8F%E3%81%8B%E3%81%A3%E3%81%9F%EF%BC%81-%E3%80%8C%E3%81%8C%E3%82%93%E3%80%8D%E3%81%AF%E4%BA%88%E7%9F%A5%E3%83%BB%E4%BA%88%E9%98%B2%E3%81%A7%E3%81%8D%E3%82%8B-%E5%B0%8F%E6%9E%97-%E5%B8%B8%E9%9B%84/dp/4881442473\">がんはすでに原因不明の病気ではない　『がんの正体がわかった』（小林常雄医師著）</a></p>\r\n\r\n<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>\r\n\r\n<h1><strong><span style=\"font-size:16px;\">「水とホメオパシーの関係について」由井寅子代表インタビュー</span></strong></h1>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/97-vmpvdf2A\" title=\"YouTube video player\" width=\"400\"></iframe></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20200517homeopathy_feature_ja\"><strong>ホメオパシーと水の関係　魂・精神・肉体を三位一体で治療する世界的に注目されるZENホメオパシー</strong></a></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20200517homeopathy_feature_ja\">https://www.yokosojapan.net/article.php/20200517homeopathy_feature_ja</a></p>\r\n\r\n<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>\r\n\r\n<p><span style=\"font-family:Georgia,serif;\"><span style=\"font-size:18px;\"><span style=\"color:#c0392b;\"><strong>SPECIAL　FEATURE（環境）</strong></span></span></span></p>\r\n\r\n<p><span style=\"color:#e74c3c;\"><span style=\"font-size:16px;\"><strong>日本からはじまる、価値観の大転換<br />\r\n『私たちは水を通してつながっている』</strong></span></span></p>\r\n\r\n<p><span style=\"color:#e74c3c;\"><span style=\"font-size:16px;\"><strong>《特集》<br />\r\n今世紀最大の科学的発見、第四の相、液晶水とは？』<br />\r\n注目の『還元水素水』、驚くべき可能性!!</strong></span></span></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20151001water_feature_ja\">https://www.yokosojapan.net/article.php/20151001water_feature_ja</a></p>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/XtDennZr5fA\" title=\"YouTube video player\" width=\"400\"></iframe></p>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/FMrQme-DEas\" title=\"YouTube video player\" width=\"400\"></iframe></p>\r\n\r\n<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>\r\n\r\n<p><br />\r\n<a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+609HT\" rel=\"nofollow\"><img alt=\"\" border=\"0\" height=\"250\" src=\"https://www21.a8.net/svt/bgt?aid=220126150501&amp;wid=001&amp;eno=01&amp;mid=s00000016980001009000&amp;mc=1\" width=\"250\" /></a><br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www11.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+609HT\" width=\"1\" /><a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" rel=\"nofollow\">【全額返金保証】トライズなら1年で英語が身につく3つの理由</a><br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www16.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" width=\"1\" /></p>\r\n<br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www10.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+63H8I\" width=\"1\" />\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p><amp-ad data-aid=\"220126150501\" data-eno=\"01\" data-mat=\"3N22FA-8AA6UQ-3N0O-5ZU29\" data-mid=\"s00000016980001007000\" data-type=\"static\" data-wid=\"001\" height=\"50\" type=\"a8\" width=\"320\"></amp-ad></p>\r\n',571115,'2012-06-17 09:41:44','2024-02-23 09:50:50','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('test_en','test_en','','test_en',504,'2015-08-24 11:29:09','2015-08-24 11:29:09','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,1,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('_hedder_message_en','TOPICS_en','','<p><a href=\"https://www.yokosojapan.net/article.php/20211212social-residence_life_en\"><strong>『Grow and Learn together with Social Residence』</strong></a></p>\r\n\r\n<p><a href=\"https://www.oakhouse.jp/eng/?sm_tag=3u2ICmgp\"><strong>Oak House Co., Ltd.</strong></a></p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_ja_3_original.jpg\"><strong>2024newyears card.jpg</strong></a></p>\r\n\r\n<p>Japanese newsletter below<br />\r\n<a href=\"https://www.yokosojapan.net/article.php/2023.12_newsletter_ja\">https://www.yokosojapan.net/article.php/2023.12_newsletter_ja</a></p>\r\n\r\n<p>Year-End Greetings and Highlights from Yokoso Japan</p>\r\n\r\n<p>Thank you very much for your continued support. Thanks to all of you, our \"Global Community\" newsletter, focusing on the exchange between Japanese and foreign residents in Japan, has successfully completed its 14th year. This is the last newsletter of the year.</p>\r\n\r\n<p>Moving forward, we will continue to address cross-cultural issues in fields such as health, healthcare, and the environment. We remain committed to fostering cultural exchange.</p>\r\n\r\n<p>We appreciate your ongoing support and look forward to the coming year.</p>\r\n\r\n<hr />\r\n<p>１：The 11th International Red and White Singing Festival (IRWS), supported by the Ministry of Foreign Affairs, concluded successfully.</p>\r\n\r\n<figure>\r\n<p><img alt=\"\" height=\"342\" src=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_en_1_original.jpg\" width=\"500\" /></p>\r\n</figure>\r\n\r\n<p>In August, approximately 160,000 medical students were notified, resulting in numerous applications. Ten finalists were selected, and the \"International Red and White Singing Festival in Banden\" served as the final selection. NAYA, one of the representatives who participated in Osaka, received the Chairman\'s Award from the Osaka Tourism Bureau. The event connected locations such as Cebu (Philippines) and Sao Paulo (Brazil) online, providing insights into future local events.</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20231127irws2023_event_en\">https://www.yokosojapan.net/article.php/20231127irws2023_event_en</a></p>\r\n\r\n<p>２：Regular activities of student interpreter volunteer guides intensify at Osaka Castle and Toyokuni Shrine on the 2nd and 4th Saturdays.</p>\r\n\r\n<figure>\r\n<p><img alt=\"\" height=\"383\" src=\"https://www.yokosojapan.net/images/articles/2023.12_newsletter_en_2_original.jpg\" width=\"600\" /></p>\r\n</figure>\r\n\r\n<p>The ability to communicate information about Japan in English is a significant asset for job hunting. We have seen a surge in inquiries from government organizations, inbound-related companies, and NGOs. No prior language proficiency or tourism knowledge is required. If you have the desire to share the charm of Japan, you can learn the basics in just six months. Join our introductory session on Zoom: <a href=\"https://gc-volunteer-guide.jimdosite.com/zoom%E8%AA%AC%E6%98%8E%E4%BC%9A/\" target=\"_new\">Zoom Briefi</a>n</p>\r\n\r\n<p>３：5 Most Read Articles in 2023</p>\r\n1: Ranking of Japanese Songs Loved by Foreigners　<a href=\"https://www.yokosojapan.net/article.php/20220320favorite_japanese_songs1_life_en\">https://www.yokosojapan.net/article.php/20220320favorite_japanese_songs1_life_en</a>\r\n\r\n<p>2: Goals of the International Red and White Singing  Festival   </p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/kouhaku.japan_editor_en\">https://www.yokosojapan.net/article.php/kouhaku.japan_editor_en</a></p>\r\n\r\n<p>3: Japan Advocates Peace and the Elimination of Racial Discrimination on the World Stage 　 </p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20220812japanese_editor_en\">https://www.yokosojapan.net/article.php/20220812japanese_editor_en</a></p>\r\n\r\n<p>4: 『The Fourth State of Matter, Liquid Crystal Water』</p>\r\n\r\n<p><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/i-T7tCMUDXU?si=mBFXxKluWhG4oPJ3\" title=\"YouTube video player\" width=\"460\"></iframe></p>\r\n\r\n<p>We are excited to share groundbreaking research on the structure of water, a topic prominently featured in the movie \"Water.\" Demonstrating the actual differences in water structures has proven challenging, but over the past few years, Dr. Gerald Pollack of the Washington University\'s Department of Bioengineering has made significant strides in studying an entirely new form of \"water structuring,\" yielding remarkable results.  <a href=\"https://www.yokosojapan.net/article.php/20151006discovery_international_en\" target=\"_new\">https://www.yokosojapan.net/article.php/20151006discovery_international_en</a></p>\r\n\r\n<p>5: Designing a Radiant Future Society: A Story of Cutting-Edge Neurosurgery by Dr. Nobusada ShinoUra</p>\r\n\r\n<p> <a href=\"https://www.yokosojapan.net/article.php/20230424brain_event_ja\">https://www.yokosojapan.net/article.php/20230424brain_event_ja</a></p>\r\n\r\n<p><strong>Announcement - 12th International Red and White Singing Festival in 2024</strong></p>\r\n\r\n<p>We are thrilled to announce that the Grand Final of the 12th International Red and White Singing Festival(IRWS) will take place on November 17, 2024, at Maple Hall in Minoh, Osaka. Save the date for this exciting event that celebrates cultural diversity through the universal language of music.</p>\r\n\r\n<p>Stay tuned for more details and updates as we embark on another spectacular year of international musical harmony.　《Official page》  <a href=\"http://irws.org/\">irws.org</a></p>\r\n\r\n<p>Thank you for your attention and support throughout the year. Wishing you a wonderful new year ahead!</p>\r\n\r\n<p>Sincerely, Kazumi MiyazakiEditor of Globalcommunity</p>\r\n\r\n<p>Authorized by the Ministry of Foreign Affairs, Consortium for Supporting International Students in Osaka. Japan-ASEAN Center, Overseas Japanese Associations</p>\r\n\r\n<p>[Sponsors, Partners, Collaborating Companies, and Organizations]:</p>\r\n\r\n<ul>\r\n	<li>\"Top-Class History and Achievements in Ota Ward, Tokyo\" by City Housing Link: <a href=\"https://cityhousing.drecruiting.jp/\" target=\"_new\">https://cityhousing.drecruiting.jp/</a></li>\r\n	<li>\"Learning and Growing Together - Social Residence\" by Oakhouse Link: <a href=\"https://www.oakhouse.jp/?sm_tag=3u2ICmgp\" target=\"_new\">https://www.oakhouse.jp/?sm_tag=3u2ICmgp</a></li>\r\n	<li>Ichi-i Co., Ltd.</li>\r\n	<li>Global Trust Networks Co., Ltd. Link: <a href=\"https://www.gtn.co.jp/\" target=\"_new\">https://www.gtn.co.jp/</a></li>\r\n	<li>Eisei Hospital Link: <a href=\"https://www.eisei.or.jp/\" target=\"_new\">https://www.eisei.or.jp/</a></li>\r\n	<li>Japan Mind-Body Function Activation Therapy Instructors Association (NPO) Link: <a href=\"https://shinshinkaizen.hp.peraichi.com/\" target=\"_new\">https://shinshinkaizen.hp.peraichi.com/</a></li>\r\n	<li>Exing Co., Ltd. Link: <a href=\"https://gl.joysound.com/en/\" target=\"_new\">https://gl.joysound.com/en/</a></li>\r\n</ul>\r\n\r\n<p>Participants, volunteers, and cooperating organizations are welcome to join!</p>\r\n\r\n<p><a href=\"http://www.irws.org/entry\" target=\"_new\">http://www.irws.org/entry</a></p>\r\n\r\n<p>Representative of the International Red and White Singing Festival(IRWS) Executive Committee<br />\r\nMultilingual web magazine GLOBAL COMMUNITY</p>\r\n\r\n<p>Editor-in-chief, Keimi Miyazaki<br />\r\nglobalcommunity21 (@) gmail.com<br />\r\ninfo (@) yokosojapan.net<br />\r\n070-5653-1493</p>\r\n\r\n<p>---------------<br />\r\nWhat the Global Community Aims for<br />\r\n<a href=\"https://www-yokosojapan-net.translate.goog/article.php/globalcommunity2013_editor_ja?_x_tr_sl=ja&amp;_x_tr_tl=en&amp;_x_tr_hl=ja&amp;_x_tr_pto=wapp\">https://www-yokosojapan-net.translate.goog/article.php/globalcommunity2013_editor_ja?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja&_x_tr_pto=wapp</a></p>\r\n\r\n<p>What the International Red and White Singing Festival Aims for</p>\r\n\r\n<p><a href=\"https://www-yokosojapan-net.translate.goog/article.php/kouhaku.japan_editor?_x_tr_sl=ja&amp;_x_tr_tl=en&amp;_x_tr_hl=ja&amp;_x_tr_pto=wapp\">https://www-yokosojapan-net.translate.goog/article.php/kouhaku.japan_editor?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja&_x_tr_pto=wapp</a></p>\r\n\r\n<p>Newsletter 2022-0126</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/20220126newsletter_editor_en\">https://www.yokosojapan.net/article.php/20220126newsletter_editor_en</a></p>\r\n\r\n<p><b>Happy and Heart-warming news from Japan!!</b></p>\r\n\r\n<p><strong>L</strong><strong>iving ninjya legend master Masaaki Hatsumi</strong></p>\r\n\r\n<p><b><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/ArDMoyjkgD0\" title=\"YouTube video player\" width=\"460\"></iframe></b></p>\r\n\r\n<p><strong>The Int\'l Red-White Singing Festival in Osaka 2021</strong></p>\r\n\r\n<p><b><iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/Gmv69ZEH6hU\" title=\"YouTube video player\" width=\"460\"></iframe></b></p>\r\n\r\n<h1><span style=\"font-size:14px;\">１：I won’t give up on you</span></h1>\r\n\r\n<p><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/feature_%25E3%2582%25B9%25E3%2582%25BF%25E3%2583%25B3%25E3%2583%2588%25E6%2595%2599%25E6%258E%2588_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw1uCZfmtNsZ589leL--6Ev0\" href=\"https://www.yokosojapan.net/article.php/feature_%E3%82%B9%E3%82%BF%E3%83%B3%E3%83%88%E6%95%99%E6%8E%88_en\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/feature_%E3%82%B9%<wbr />E3%82%BF%E3%83%B3%E3%83%88%E6%<wbr />95%99%E6%8E%88_en</a></p>\r\n\r\n<p>２：Encounters accelerate life</p>\r\n\r\n<p><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/feature_%25E5%25B1%25B1%25E5%2585%2583%25E5%25AD%25A6%25E6%25A0%25A1%25EF%25BC%2590%25EF%25BC%2599%25EF%25BC%2591%25EF%25BC%2590_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw1ZjsOh5umpTcUpfS4_TPIN\" href=\"https://www.yokosojapan.net/article.php/feature_%E5%B1%B1%E5%85%83%E5%AD%A6%E6%A0%A1%EF%BC%90%EF%BC%99%EF%BC%91%EF%BC%90_en\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/feature_%E5%B1%B1%<wbr />E5%85%83%E5%AD%A6%E6%A0%A1%EF%<wbr />BC%90%EF%BC%99%EF%BC%91%EF%BC%<wbr />90_en</a></p>\r\n\r\n<p>３：Change in Osaka = Change for Japan?</p>\r\n\r\n<p><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/osakacapitalscheme_feature_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw22N4LdUAVbRo90uW_VO_Ae\" href=\"https://www.yokosojapan.net/article.php/osakacapitalscheme_feature_en\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/<wbr />osakacapitalscheme_feature_en</a></p>\r\n\r\n<p>４：『Let’s make Osaka a City for International Students』</p>\r\n\r\n<p>Their contribution to the local community should be appreciated.</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/201306010osakaparadise_feature_en\">https://www.yokosojapan.net/<wbr />article.php/<wbr />201306010osakaparadise_<wbr />feature_en</a></p>\r\n\r\n<p><a href=\"https://px.a8.net/svt/ejp?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" rel=\"nofollow\">【全額返金保証】トライズなら1年で英語が身につく3つの理由</a><br />\r\n<img alt=\"\" border=\"0\" height=\"1\" src=\"https://www16.a8.net/0.gif?a8mat=3N22FA+8AA6UQ+3N0O+5YRHE\" width=\"1\" /></p>\r\n',131568,'2012-06-17 09:41:03','2023-12-29 17:12:56','noblocks',0,1,1,'',-1,'','',0,'',0,1,3,45,3,2,2,2,0,'',1,0,0,0,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_content_ja','_トップページでのみヘッダで表示ja','','<img src=\"https://www.yokosojapan.net/images/library/Image/2014/14-0510.jpg\" alt=\"\">',845,'2019-01-30 01:00:36','2019-01-30 01:00:36','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_top_lastarticles','新着ニュース','','$exclude=array(\'mailmaga\');\r\n$display = phpblock_lastarticles(10,80,$exclude);\r\n$display .=  \'<p style=\"text-align:right;margin:0\">&gt;&gt;<a href=\"/sitemap/\">サイトマップ</a></p>\';\r\necho $display;',0,'2010-09-02 15:50:13','2019-01-29 11:45:48','noblocks',0,1,1,'',-1,'','',0,'',0,1,3,45,3,2,0,0,0,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('backup','_トップページでのみヘッダで表示backup','','# このページは、プラグラムです。アドバンストエディタのモードで保存しないでください。    \r\n\r\n$display = \'<div><a href=\"/article.php/feature_worldshift06_\';\r\n$display .= COM_getLanguageId();\r\n$display .= \'\"><img alt=\"\" style=\"width: 740px; height: 309px;\" src=\"https://www.yokosojapan.net/images/library/Image/top201112(1).jpg\" /></a></div>\';\r\necho $display;',11,'2011-05-30 09:39:57','2011-11-25 16:35:33','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,0,0,0,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('all','すべての記事','','$display = phpblock_lastarticles(1000,120);\r\n\r\necho $display;\r\n',4901,'2019-01-30 09:58:39','2019-01-30 09:58:39','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_content_en','_トップページでのみヘッダで表示en','','<img src=\"https://www.yokosojapan.net/images/library/Image/2014/14-0510.jpg\" alt=\"\">',116272,'2019-01-30 00:59:42','2019-01-30 00:59:42','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('topiclist','topiclist','','if ( $_GET[\'tid\'] != NULL ){\r\n  $tid =  $_GET[\'tid\'];\r\n} else {\r\n  $tid =  \'ALL\';\r\n}\r\n\r\n\r\necho \'<h1>\'.PLG_replaceTags(\'[topic:\'.$tid.\']\').\' \'.$tid.\'</h1>\';\r\n\r\necho PLG_replaceTags(\'[newstories2:\'.$tid.\' limitcnt:1000 newmarkday:30]\');',890,'2019-01-29 14:55:16','2019-01-29 17:15:58','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('20140215001042780','echo','','echo COM_getLanguageId();\r\n',519,'2014-02-15 00:11:00','2014-02-15 00:11:00','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'','','','');
INSERT INTO `gl_staticpage`VALUES ('test','test','','[staticpage_content:_side_lastarticles]',15,'2019-01-31 00:55:31','2019-01-31 00:55:31','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home_ko','_home_ko','','<div id=\"top_box\" class=\"uk-child-width-1-2 uk-child-width-1-1@s uk-child-width-1-2@m\" uk-grid>\r\n<div id=\"international_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n\r\n<h3 title=\"国際人\"><a href=\"https://www.yokosojapan.net/index.php/topic/international_ko\">국제인</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_05.gif\" alt=\"国際機関・国際人・国際結婚\" />\r\n[newstories2:international_ko limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n\r\n<div id=\"event_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"イベント\"><a href=\"https://www.yokosojapan.net/index.php/topic/event_ko\">이벤트</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_07.gif\" alt=\"多文化・エンタメ＆イベント・国際イベント\" />\r\n[newstories2:event_ko limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n\r\n<div id=\"life_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"みんなの生活\"><a href=\"https://www.yokosojapan.net/index.php/topic/life_ko\">모두의 생활</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_09.gif\" alt=\"日本語・教育機関・生活\" />\r\n[newstories2:life_ko limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n<div id=\"editor_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"編集者より\"><a href=\"https://www.yokosojapan.net/index.php/topic/editor_ko\" bitly=\"BITLY_PROCESSED\">편집자로부터 </a></h3>\r\n<p>みんなでGLOBAL　COMMINITYを一緒につくりませんか？英語・韓国語・中国語翻訳ボランティアも募集中!!</p>\r\n[newstories2:editor_ko limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n</div>',9015,'2019-01-29 22:32:42','2019-01-30 10:30:21','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home_en','_home_en','','<p>＊＊＊＊＊＊＊＊＊＊＊＊ GLOBALCOMMUNITY NEWSLETTER ＊＊＊＊＊＊</p>\r\n\r\n<p>『Globalcommunity』 is now in its 13th year of publication as a web magazine for mutual communication between Japanese and Non-Japanese living in Japan.  We focus on the important news such as health, environment, and communication for the multicultural society.We will continue to make efforts without forgetting our original intentions.</p>\r\n\r\n<p>Happy and Heart-warming news from Japan!!</p>\r\n\r\n<p style=\"margin:20px 0px; text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"font-size:18px\"><span style=\"color:#c0392b\">7-1：<strong style=\"font-weight:bolder\">Int\'l students are very welcome for Japanese society </strong></span>・・</span> The 10th International Red and White Singing Festival, which is authorized by the Japanese Ministry of a foreign affair, were held with the attention of the media, connecting the stage in Osaka with performers in Cebu, Bali, Sao Paulo, and Tokyo.</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>\r\n\r\n<p style=\"margin:20px 0px; text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><a href=\"https://www.yokosojapan.net/article.php/20211216irws_event_en\" style=\"color:#2664a2; text-decoration:none; cursor:pointer; outline:0px\">https://www.yokosojapan.net/article.php/20211216irws_event_en</a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>\r\n\r\n<p><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"font-size:22px\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-weight:400\"><span style=\"color:#333333\"><span style=\"text-transform:none\"><span style=\"line-height:28px\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-weight:400\"><span style=\"line-height:1.2\"><font size=\"4\">7-2<font color=\"#ff0000\">：＊＊＊＊International Red-White Singing Festival(IRWS)　SPECIAL＊＊＊＊</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\">\r\n<h1 style=\"margin:15px 0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"font-size:22px\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-weight:400\"><span style=\"color:#333333\"><span style=\"text-transform:none\"><span style=\"line-height:28px\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-weight:400\"><span style=\"color:#333333\"><span style=\"line-height:1.2\"><font size=\"2\">2018IRWS　interviews　Jhoenel Alejandro Marquez　from　CEBU</font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></h1>\r\n</div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/20181009cebu_international_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw1GrVoRkUufARQR8jVo-fAs\" href=\"https://www.yokosojapan.net/article.php/20181009cebu_international_en\" style=\"color:#1155cc; text-decoration:none; cursor:pointer; outline:0px\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/20181009cebu_<wbr />international_en</a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\">The interview for contestants for </span></span>irws2017<span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\">　Kenichi</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/20171007pynoi_international_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw0HFHBac0i2wIECbPdNsexW\" href=\"https://www.yokosojapan.net/article.php/20171007pynoi_international_en\" style=\"color:#1155cc; text-decoration:none; cursor:pointer; outline:0px\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/20171007pynoi_<wbr />international_en</a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\">The interview for the contestants for IRWS 2017　MARIA　MORALES</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/20171007irws_international_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw3G_eKtCWONRyqXSurBO5q1\" href=\"https://www.yokosojapan.net/article.php/20171007irws_international_en\" style=\"color:#1155cc; text-decoration:none; cursor:pointer; outline:0px\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/20171007irws_<wbr />international_en</a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\">Zdravstvuite, everyone! Native Russian speaker </span></span>that<span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"> works </span></span>as a voice<span style=\"color:#333333\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"> actress in Japan, Jenya is here again!</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"><a data-saferedirecturl=\"https://www.google.com/url?q=https://www.yokosojapan.net/article.php/20130601jenya_international_en&amp;source=gmail&amp;ust=1643287350550000&amp;usg=AOvVaw2p7BHW7ELRuO8VaDUT5EJQ\" href=\"https://www.yokosojapan.net/article.php/20130601jenya_international_en\" style=\"color:#1155cc; text-decoration:none; cursor:pointer; outline:0px\" target=\"_blank\">https://www.yokosojapan.net/<wbr />article.php/20130601jenya_<wbr />international_en</a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n\r\n<div style=\"text-align:start; -webkit-text-stroke-width:0px\"><span style=\"font-size:14px\"><span style=\"color:#444444\"><span style=\"font-family:Lusitana, 游明朝体, YuMincho, 游明朝, &quot;Yu Mincho&quot;, &quot;ヒラギノ明朝 ProN W3&quot;, &quot;Hiragino Mincho ProN W3&quot;, HiraMinProN-W3, &quot;ヒラギノ明朝 ProN&quot;, &quot;Hiragino Mincho ProN&quot;, &quot;ヒラギノ明朝 Pro&quot;, &quot;Hiragino Mincho Pro&quot;, HGS明朝E, &quot;ＭＳ Ｐ明朝&quot;, &quot;MS PMincho&quot;, Georgia, serif\"><span style=\"font-style:normal\"><span style=\"font-variant-ligatures:normal\"><span style=\"font-variant-caps:normal\"><span style=\"font-weight:400\"><span style=\"letter-spacing:normal\"><span style=\"orphans:2\"><span style=\"text-transform:none\"><span style=\"white-space:normal\"><span style=\"widows:2\"><span style=\"word-spacing:0px\"><span style=\"background-color:#ffffff\"><span style=\"text-decoration-thickness:initial\"><span style=\"text-decoration-style:initial\"><span style=\"text-decoration-color:initial\"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>\r\n',67781,'2019-01-29 22:33:13','2022-02-01 16:47:05','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_slogan_ja','_header_slogan_ja','\'Globalcommunity \'multicultural website focused on health,medical,environment and international exchange 英語・中国語・韓国語で ボランティア　外国人 ','\'Globalcommunity \'multicultural website focused on health,medical,environment and international exchange\r\n<br>英語・中国語・韓国語で ボランティア　外国人 留学生　国際派日本人の就職、旅行、留学、部屋探し<br>\r\n国際交流イベントの情報を提供する国際交流サイト\"GLOBAL COMMUNITY\"',3895805,'2019-01-29 22:45:27','2023-08-25 17:25:46','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home_zh','_home_zh','','<div id=\"top_box\" class=\"uk-child-width-1-2 uk-child-width-1-1@s uk-child-width-1-2@m\" uk-grid>\r\n<div id=\"international_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n\r\n<h3 title=\"国際人\"><a href=\"https://www.yokosojapan.net/index.php/topic/international_zh\">国际人</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_05.gif\" alt=\"国際機関・国際人・国際結婚\" />\r\n[newstories2:international_zh limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n\r\n<div id=\"event_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"イベント\"><a href=\"https://www.yokosojapan.net/index.php/topic/event_zh\">文化活动</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_07.gif\" alt=\"多文化・エンタメ＆イベント・国際イベント\" />\r\n[newstories2:event_zh limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n\r\n<div id=\"life_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"みんなの生活\"><a href=\"https://www.yokosojapan.net/index.php/topic/life_zh\">大家的生活</a></h3>\r\n<img width=\"238\" height=\"15\" src=\"https://www.yokosojapan.net/mt/images/index/136_index_09.gif\" alt=\"日本語・教育機関・生活\" />\r\n[newstories2:life_zh limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n<div id=\"editor_box\" class=\"uk-card uk-card-default uk-card-body\">\r\n<h3 title=\"編集者より\"><a href=\"https://www.yokosojapan.net/index.php/topic/editor_zh\" bitly=\"BITLY_PROCESSED\">编辑的活</a></h3>\r\n<p>みんなでGLOBAL　COMMINITYを一緒につくりませんか？英語・韓国語・中国語翻訳ボランティアも募集中!!</p>\r\n[newstories2:editor_zh limitcnt:2 newmarkday:30 intervalday:1000]\r\n</div>\r\n</div>',43088,'2019-01-29 22:52:48','2019-01-30 00:48:32','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_header_content_ko','_トップページでのみヘッダで表示ko','','<img src=\"https://www.yokosojapan.net/images/library/Image/2014/14-0510.jpg\" alt=\"\">',16033,'2019-01-30 00:58:53','2019-01-30 01:00:07','noblocks',0,1,1,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('20190130001943967','[langsel: english, japanese, french, german] ','','[langsel: auto]',385,'2019-01-30 00:34:05','2019-01-30 00:34:05','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,1,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('_home','_home','','global $LANG_ASSIST;\r\n\r\nif(SEC_inGroup(\'Root\')){\r\necho PLG_replaceTags(\'[staticpage:_hedder_message_\'.COM_getLanguageId().\' 管理者用：単独で表示する]\');\r\n}\r\necho PLG_replaceTags(\'[staticpage_content:_hedder_message_\'.COM_getLanguageId().\']\');\r\n\r\n// echo PLG_replaceTags(\'[staticpage_content:_header_content_\'.COM_getLanguageId().\']\');\r\n\r\nif(SEC_inGroup(\'Root\')){\r\necho PLG_replaceTags(\'[staticpage:_home_\'.COM_getLanguageId().\' 管理者用：単独で表示する]\');\r\n}\r\necho PLG_replaceTags(\'[staticpage_content:_home_\'.COM_getLanguageId().\']\');\r\n\r\nif(SEC_inGroup(\'Root\')){\r\necho PLG_replaceTags(\'[staticpage:_top01_lastarticles_\'.COM_getLanguageId().\' 管理者用：単独で表示する]\');\r\n}\r\n\r\necho \'<h2>\'.PLG_replaceTags(\'[staticpage:_top01_lastarticles_\'.COM_getLanguageId().\']\').\'</h2>\';\r\necho PLG_replaceTags(\'[staticpage_content:_top01_lastarticles_\'.COM_getLanguageId().\']\');\r\n\r\n\r\n\r\n $more_title=$LANG_ASSIST[1];\r\n\r\necho \'<div class=\"uk-text-right\">\'.PLG_replaceTags(\'[staticpage:all \'.$more_title.\']\').\'</div>\';\r\n',181433,'2019-01-30 00:42:37','2021-02-21 10:41:02','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,1,'',1,2,0,0,'html','','','');
INSERT INTO `gl_staticpage`VALUES ('aboutus','Global community が目指すもの','','<!-- 893.html -->\r\n<div id=\"pagebody_outline\">\r\n<div id=\"left_box\">\r\n<div class=\"both10\"> </div>\r\n\r\n<div id=\"editor_title_box\">\r\n<div id=\"editor_titie_box_top\"><!-- Image --></div>\r\n\r\n<div id=\"midashi\"><strong>GLOBAL　COMMUNITYが目指すもの</strong></div>\r\n\r\n<div id=\"editor_titie_box_bottom\"><!-- Image --></div>\r\n</div>\r\n\r\n<div class=\"both10\"> </div>\r\n\r\n<div><span style=\"font-size: x-large;\">『GLOBAL　COMMUNITY』　新創刊にあたって</span><br />\r\n<br />\r\n<br />\r\n<span style=\"font-size: large;\"><a href=\"http://www.mlit.go.jp/kankocho/\" target=\"_blank\" title=\"☆『観光立国』・・2010年までに外国人観光客を1000万人に!!\">☆『観光立国』・・2020年までに外国人観光客を4000万人に!!</a></span></div>\r\n\r\n<div> </div>\r\n\r\n<div><img alt=\"\" src=\"https://www.yokosojapan.net/images/library/Image/Japan_Endless_Discovery.gif\" style=\"width: 260px; height: 130px;\" /></div>\r\n\r\n<div> </div>\r\n\r\n<div><span style=\"font-size: large;\"><a href=\"http://www.mlit.go.jp/kankocho/topics08_000016.html\">http://www.mlit.go.jp/kankocho/topics08_000016.html</a></span></div>\r\n\r\n<div> </div>\r\n\r\n<div><span style=\"font-size: large;\">グローバルコミュニティーは、観光庁のビジットジャパン・キャンペーンに参画して、媒体の運営をしております。<br />\r\n<br />\r\n☆『開かれた日本の教育』・・<br />\r\n<a href=\"http://www.mext.go.jp/b_menu/houdou/20/07/08080109.htm\">2020年までに留学生受入を30万人に</a><br />\r\n<br />\r\n☆『多文化な家族』・・<br />\r\n<a href=\"http://www.npo-icpa.or.jp/db/kokusai_kekkon.html#kenbetu\" target=\"_blank\" title=\"http://www.npo-icpa.or.jp/db/kokusai_kekkon.html#kenbetu\">大都市圏では10組に1組が国際結婚カップル</a><br />\r\n<br />\r\n<a href=\" http://www.atpress.ne.jp/view/10070\" target=\"_blank\" title=\" http://www.atpress.ne.jp/view/10070\">☆高校の英語の授業の完全英語化に向けての対応</a></span><br />\r\n<br />\r\n<br />\r\n<br />\r\n世界は今、急速な国際化社会に向かって、突き進んでいます。日本も例外ではありません。大都市圏では、国際結婚のカップルが10組に1組を数え、いろいろな国から来た留学生や働く外国人の人たちを目にすることも珍しくなくなりました。しかし、一般的にはまだまだ日本に住んでいる外国人の人たちと親しく付き合っている人は少ない状況です。<br />\r\n<br />\r\n『GLOBAL　COMMUNITY』は『住んでよし、訪ねてよし、学んでよし』の日本社会を作るためにがんばっている日本人や外国人を支援する国際交流促進のための国際交流媒体を目指しています。<br />\r\n<br />\r\n職場でも、学校でも、地域でもこれからますます自分とは違う文化的な背景を持つ人たちとの協力関係が重要になってくるでしょう。その時に相互理解のコミュニケーションツールとして『GLOBAL　COMMUNITY』がお役に立つことが出来ればこんなにうれしいことはありません。<br />\r\n<br />\r\n取材や編集は豊富な海外在住経験を持つ日本人、外国人スタッフが留学生や日本人学生をサポートする形で進めています。日本人スタッフは、『多様な文化を尊重する寛容な気持ち』を持って、また関係者全員が国籍を超えた『大きな目標達成のための協調性』を絶えず意識しながら活動をしています。<br />\r\n<br />\r\nまだまだ長い道のりですが、今後とも皆様のご支援、ご理解をいただけますようよろしくお願いいたします。<br />\r\n<br />\r\n<br />\r\nGLOBAL　COMMUNITYは　大学の国際交流センターや日本語学校、留学生の多い専門学校、語学学校・大使・国際交流団体、行政団体、マスコミ、各国語メディア関係者、学生団体、一般企業人事担当者などにも、新着情報をメール配信をしており、一部の記事は、日本語、英語、中国語、韓国語でご欄いただけます。</div>\r\n\r\n<div> </div>\r\n\r\n<div>グローバルコミュニティー編集長　宮崎計実<br />\r\n<a href=\"https://www.yokosojapan.net\" target=\"_blank\" title=\"https://www.yokosojapan.net\">https://www.yokosojapan.net</a></div>\r\n\r\n<div>FACEBOOKのプロフィールはこちら</div>\r\n\r\n<div><a href=\"https://www.facebook.com/kazumi.miyazaki.961/about?section=bio\">https://www.facebook.com/kazumi.miyazaki.961/about?section=bio</a></div>\r\n\r\n<div id=\"left_line\"><!-- Image --></div>\r\n</div>\r\n<!-- end of left_box --></div>\r\n<!-- end of pagebody_outline -->\r\n\r\n<div id=\"pagebody_outline\">\r\n<div id=\"left_box\">\r\n<p>グローバルコミュニティーの活動実績</p>\r\n\r\n<p>１：観光庁設立時前より　Visit　Japan　Campaign　キャンペーンにも賛同し、2009年4月より、在日留学生との日本人の相互理解をテーマに多言語フリーフリーペーパー・WEBサイトを発行。公式サイト　<a href=\"http://yokosojapan.net/\">http://yokosojapan.net</a></p>\r\n\r\n<p>２： 2009年、GC学生通訳ボランテイアガイドを組織。4月には、オリンピック招致委員会に協力し、４週間、IOC招致委員会の来日に伴い開設されたプレスセンターにて、通訳サポートのボランテイアを行う。その後は、活動拠点を明治神宮に定め、海外からの観光客を案内。2015年現在、延登録者は、２００名を超える。</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/guide201104_life_ja\">https://www.yokosojapan.net/article.php/guide201104_life_ja</a></p>\r\n\r\n<p>３：日本賃貸住宅管理協会主催の留学生インターンシップの企画・運営（2010年より）</p>\r\n\r\n<p>日本で初めて業界団体全体で取り組む、留学生インターンシップを提案。2010年より100名以上の学生の4週間の長期インターンシップをサポート。多くの不動産会社経営者の理解を得て、外国人の住居問題の緩和に貢献。</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/event_JPM_01\">https://www.yokosojapan.net/article.php/event_JPM_01</a></p>\r\n\r\n<p>４　看護留学生を迎える高島平団地の可能性を考える」と題して代表の宮崎が発表を行う。（2009年）</p>\r\n\r\n<p align=\"left\"><u><a href=\"http://goo.gl/BJpAX\">http://goo.gl/BJpAX</a></u></p>\r\n\r\n<p align=\"left\">５：2012年、留学生と日本人学生によるペア・インターンを企画、運営（観光庁後援）</p>\r\n\r\n<p align=\"left\">留学生と日本人学生がペアになり、地域活性化のための情報発信の手法を学び、各地域に入り、多言語での情報発信で地域の振興に貢献する<br />\r\n<a href=\"http://japan47-org.jimdo.com/\" target=\"_blank\"><font color=\"#1155cc\">http://japan47-org.jimdo.com/</font></a></p>\r\n\r\n<p>６：2011年より、世界の仲間と歌おう『国際紅白歌合戦』を開催。2014年には4回目を、観光庁、外務省、日本アセアンセンター、東京都、大阪府の後援で行う。NHK、毎日新聞、時事通信などのマスメディアや、9か国語による多言語媒体でも取り上げられる。2014年の東京開催では、20か国以上の大使、及び大使館関係者も参加。</p>\r\n\r\n<p><a href=\"http://irws.org\">http://irws.org</a></p>\r\n\r\n<p>国際紅白歌合戦が目指すもの</p>\r\n\r\n<p><a href=\"https://www.yokosojapan.net/article.php/kouhaku.japan_editor\">https://www.yokosojapan.net/article.php/kouhaku.japan_editor</a></p>\r\n\r\n<p><strong>お問い合わせ</strong></p>\r\n\r\n<p>グローバルコミュニティー　編集部　編集長</p>\r\n\r\n<p>観光庁後援・国際紅白歌合戦創設者・代表</p>\r\n\r\n<p>宮崎計実（MIYAZAKI　KAZUMI）</p>\r\n\r\n<p>160-0022 東京都新宿区新宿6-7-1-502</p>\r\n\r\n<p>070-5653-1493</p>\r\n\r\n<p>info@yokosojapan.net</p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n</div>\r\n</div>\r\n',1489,'2019-01-30 20:41:45','2019-03-13 19:09:39','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,0,0,1,'adveditor','','','');
INSERT INTO `gl_staticpage`VALUES ('contact','お問い合わせ','','// +------------------------------------------------------------------+\r\n// | FormMail Static Page for Geeklog 2.1 higher for UIkit\r\n// +------------------------------------------------------------------+\r\n// | Copyright (C) 2008-2018 by the following authors:\r\n// | Authors    : Hiroshi Sakuramoto - hiro AT winkey DOT jp\r\n// | Version: 2.1.13\r\n// |  front-end framewaork for UIKit: 3.0\r\n// | staticpages_formmail_UIkitv3_2_ja.php\r\n// +------------------------------------------------------------------+\r\nglobal $_CONF,$_USER,$_PLUGINS,$_SCRIPTS,$page; // Geeklog変数\r\nglobal $_fmtokenttl; // FormMail変数\r\nif (!defined(\'XHTML\')) define(\'XHTML\', \' /\');\r\n\r\n// --[[ 初期設定 ]]---------------------------------------------------\r\n# 問合せを管理者へ通知の設定\r\n#    複数のE-mailはカンマ(,)で区切りで指定する(スペース等はあけない)\r\n#      例) \'info@hoge.com,admin@page.com\'\r\n#    特定の入力項目に応じて送り先を変える\r\n#    ※この方法を利用する時は必ず $owner_email_item_name を指定してください。\r\n#      例) \'AAA=info@hoge.com,BBB=admin@page.com\'\r\n$owner_email=$_CONF[\'site_mail\'];\r\n\r\n# 管理者Emailを入力項目から選択する項目名\r\n#   (selectなどの選択でメールの送り先を変えるのに利用)\r\n//  ※送り先を変える指定をしたら先頭の#を削除してください。(コメントをはずします)\r\n#$owner_email_item_name = \'q_mail_to\';\r\n\r\n# メール送信者E-mail\r\n$email_from = $_CONF[\'site_mail\'];\r\n#Geeklog1.5から，noreplyを指定できます。\r\n#$email_from = $_CONF[\'noreply_mail\'];\r\n\r\n# 問合せ者のメールアドレスの項目名\r\n$email_input_name = \'q_mail\';\r\n\r\n# メール一致チェック項目指定\r\n#   メール確認でどちらも同じものを入力 というname属性を(=)で区切る(スペース等はあけない)\r\n#     例) \'email=reemail\'\r\n$essential_email = \'q_mail=q_mail_re\';\r\n\r\n# メールアドレスチェック項目指定\r\n#   入力された値がメールアドレスとして正しいかチェックをする\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n#     例) \'email,reemail\'\r\n$propriety_email = \'q_mail,q_mail_re\';\r\n\r\n# CSRF対策のTokenの有効時間(秒)\r\n$_fmtokenttl = 1800;\r\n# Refererチェック (CSRF対策)  チェックしない:0 チェックする:1\r\n$_spreferercheck = 1;\r\n# Refererエラーのメッセージ\r\n$_spreferererrormsg = \'<p class=\"uk-text-danger\">アクセスできません。サイト管理者にご連絡ください。</p>\';\r\n\r\n\r\n# ログイン済みならユーザ情報を利用\r\n#   Geeklogユーザー名やメールアドレスを利用\r\n$username = \'\'; $user_email = \'\';\r\nif (!COM_isAnonUser()) {\r\n    $username = isset($_USER[\'fullname\']) ? $_USER[\'fullname\'] : $_USER[\'username\'];\r\n    $user_email = $_USER[\'email\'];\r\n}\r\n\r\n# CSVファイルに保存\r\n#   指定方法 保存しない: 0 , 保存する(カンマ区切り): 1 , 保存する(タブ区切り): 2\r\n$save_csv = 1;\r\n\r\n# CSVファイル保存場所 (直接入力時は最後にスラッシュ必須)\r\n$save_csv_path = $_CONF[\'path_data\'];\r\n\r\n# CSVファイル名\r\n$save_csv_name = $page.\'.csv\';\r\n\r\n# CSVファイル保存の文字コード\r\n#   文字コード変換をしない場合は \'\' と指定してください。\r\n#   機能がOFFになります。（文字化けするようなら機能を\'\'で\r\n#   OFFにして別途フリーの文字変換ツールなどをご利用ください）\r\n# 注意) mb_convert_encodingで使える文字コードを指定してください\r\n#   例) UTF-8, SJIS, EUC-JP, JIS, ASCII\r\n$save_csv_lang = \'UTF-8\';\r\n\r\n# 全角を半角に自動変換する項目名(英数字、スペース、カタカナ、ひらがな)\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$zentohan_itemname = \'q_phone,q_code1_1,q_code2_1,q_code3_1,q_code1_2,q_code2_2,q_code3_2,q_code1_3,q_code2_3,q_code3_3\';\r\n\r\n# カタカナの半角をカタカナの全角に自動変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hantozen_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# ひらがなをカタカナに自動変換する項目名\r\n#   入力された値を自動で変換する項目を指定\r\n#   INPUTタグの name属性の値をカンマ(,)区切りで指定する(スペース等はあけない)\r\n$kana_hiratokana_itemname = \'q_kana_1,q_kana_2\';\r\n\r\n# 遷移の項目名\r\n$seni_items = array(\'input\' => \'情報入力\', \'confirm\' => \'入力項目確認\', \'finish\' => \'入力完了\');\r\n\r\n# 必須入力の文字列\r\n$required_string = \'<span class=\"uk-text-warning\">*</span>\';\r\n\r\n# ==画像認証関係==\r\n#   画像認証(reCAPTCHA)がインストールされていない場合のエラーメッセージ\r\n$msg_spformmail_notinstall_captcha = \'reCAPTCHAプラグインがインストールされていません。\';\r\n\r\n#   送信時に画像認証でエラーの場合のエラーメッセージ\r\n#     ※空文字にするとreCAPTCHAプラグインが作成するエラーメッセージを使います。\r\n#     ※空文字意外にするとそれを無視して固定メッセージにできます。\r\n$msg_spformmail_valid_captcha = \'画像認証を行ってください。\';\r\n\r\n# ==日付関係==\r\n#   JavaScriptカレンダーでの日付表記\r\n#     phpのdate参照 http://php.net/manual/ja/function.date.php\r\n#       day   => \'d,D,j,l,N,S,w,z\'\r\n#       month => \'F,m,M,n,t\'\r\n#       year  => \'Y,y\'\r\n#   ※テンプレート layout/theme/vendor/uikit/js/components/datepicker.js\r\n\r\n#   メールに記載される受付日時表記\r\n#     phpのdateのものがすべて使えます http://www.php.net/manual/en/function.date.php\r\n$date_mail = \'Y年m月d日H:i\';\r\n#   csv書き出し時、1列目に記載される日時表記\r\n#     phpのdateのものがすべて使えます http://www.php.net/manual/en/function.date.php\r\n$date_csv = \'Y/m/d H:i\';\r\n\r\n\r\n#####\r\n# 表示メッセージ\r\n#####\r\n$lang = array(\r\n// { 完了HTML＆メールのメッセージ\r\n  \'receipt_admin\' =>\'管理者のみなさま\'.LB.LB.$_CONF[\'site_name\'].\'サイトにおいて\'.LB.\'問い合わせがありました。\'.LB.LB.\'==========お問い合わせ ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'receipt_user\' =>\'※本メールは、\'.$_CONF[\'site_name\'].\'サイトより自動的に配信しています。\'.LB.\'このメールは送信専用のため、このメールにご返信いただけません。\'.LB.\'＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\'.LB.\'お問い合わせありがとうございました。\'.LB.LB.\'========== お問い合わせ内容 ==========\'.LB.\'受付日時：\'.date($date_mail),\r\n  \'subject_admin\'=> \'[\'.$_CONF[\'site_name\'].\']お問い合わせ\',\r\n  \'subject_user\'=> \'[\'.$_CONF[\'site_name\'].\']お問い合わせを受け付けました\',\r\n  \'sign_admin\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.$_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n  \'sign_user\'    => \'-----------------------------------------\'.LB.$_CONF[\'site_name\'].LB.\'URL：\' . $_CONF[\'site_url\'].LB.\'-----------------------------------------\',\r\n// } 完了HTML＆メールのメッセージ\r\n// { システムエラーのメッセージ\r\n  \'ownertransmiterror\'=>\'管理者向けメール処理中に一部のメールでエラーが発生しましたが、処理は継続しました。\',\r\n  \'transmiterror\'=>\'処理中にエラーが発生しました。\',\r\n// } システムエラーのメッセージ\r\n);\r\n\r\n\r\n\r\n#####\r\n# フォーム項目の設定\r\n#####\r\n$form_items = array(\r\n// 1グループ {\r\narray(\'title\'=>\'お客様情報\', \'table\'=>array(\r\n\r\n// 1行 {\r\narray(\'header\'=>\'お名前（漢字）\',\r\n  \'valid_require\'=>$required_string, \'error_require\'=>\'お名前（漢字）が入力されていません\',\r\n  \'valid_notkanahan\'=>\'q_name\', \'error_notkanahan\'=>\'お名前（漢字）に半角カタカナがあります。すべて全角で入力してください\',\r\n  \'help\'=>\'全角で名前を入力してください。\',\r\n  \'data\'=>array(\r\narray( \'type\'=>\'text\', \'name\'=>\'q_name\', \'size\'=>\'40\', \'maxlength\'=>\'40\', \'class\'=>\'uk-input ime_on\', \'value\'=>$username, \'placeholder\'=>\'例）山田花子\', \'required\'=>\'\' ),\r\n  ),\r\n),\r\n// } 1行\r\n// 1行 {\r\narray(\'header\'=>\'お名前（カタカナ）\',\r\n  \'valid_require\'=>$required_string, \'error_require\'=>\'お名前（カタカナ）が入力されていません\',\r\n  \'valid_notkanahan\'=>\'q_kana\', \'error_notkanahan\'=>\'お名前（カタカナ）に半角カタカナがあります。すべて全角で入力してください\',\r\n  \'help\'=>\'全角カタカナでお名前（カタカナ）を入力してください。\',\r\n  \'data\'=>array(\r\narray( \'type\'=>\'text\', \'name\'=>\'q_kana\', \'size\'=>\'40\', \'maxlength\'=>\'40\', \'class\'=>\'uk-input ime_on\', \'placeholder\'=>\'例）ヤマダハナコ\', \'required\'=>\'\' ),\r\n  ),\r\n),\r\n// } 1行\r\n// 1行 {\r\narray(\'header\'=>\'メールアドレス\',\r\n  \'valid_require\'=>$required_string, \'error_require\'=>\'メールアドレスが入力されていません\',\r\n  \'valid_equal\'=>$essential_email, \'error_equal\'=>\'メールアドレスが一致しません\',\r\n  \'valid_email\'=>$propriety_email, \'error_email\'=>\'メールアドレスを正しく入力してください\',\r\n  \'valid_hankaku\'=>\'q_mail,q_mail_re\', \'error_hankaku\'=>\'メールアドレスはすべて半角で入力してください\',\r\n  \'help\'=>\'半角でメールアドレスを入力してください。\',\r\n  \'data\'=>array(\r\narray( \'type\'=>\'text\', \'name\'=>\'q_mail\', \'size\'=>\'40\', \'maxlength\'=>\'240\', \'class\'=>\'uk-input ime_off uk-margin-small-bottom\', \'value\'=>$user_email, \'required\'=>\'\' ),\r\narray( \'input\'=>\'<br\'.XHTML.\'>\' ),\r\narray( \'type\'=>\'text\', \'name\'=>\'q_mail_re\', \'size\'=>\'40\', \'maxlength\'=>\'240\', \'class\'=>\'uk-input ime_off\', \'not_confirm\'=>\'true\', \'not_csv\'=>\'true\', \'value\'=>$user_email, \'placeholder\'=>\'確認たのめ、もう一度入力してください。\', \'required\'=>\'\' ),\r\n  ),\r\n),\r\n// } 1行\r\n\r\n),),\r\n// } 1グループ\r\n// 1グループ {\r\narray(\'title\'=>\'お問い合わせ内容\', \'table\'=>array(\r\n// 1行 {\r\narray(\'header\'=>\'お問い合わせ内容\',\r\n  \'valid_require\'=>$required_string, \'error_require\'=>\'お問い合わせ内容が入力されていません\', \'valid_notkanahan\'=>\'q_other\', \'error_notkanahan\'=>\'お問い合わせ内容に半角カタカナがあります。すべて全角で入力してください\',\r\n\r\n  \'data\'=>array(\r\narray( \'type\'=>\'textarea\', \'name\'=>\'q_other\', \'class\'=>\'uk-textarea ime_on\', \'style\'=>\'width: 95%; height: 100px;\', \'placeholder\'=>\'お問い合わせ内容を入力してください。\', \'required\'=>\'\' ),\r\narray( \'input\'=>\'<br\'.XHTML.\'>\'.\"<strong><span id=\'tasp1\'></span></strong>\".\'<br\'.XHTML.\'>\' ),\r\n  ),\r\n),\r\n// } 1行\r\n),),\r\n// } 1グループ\r\n\r\n\r\n\r\n\r\n## submit 入力画面 {\r\narray(\'action\'=>\'input\',\r\n  \'data\'=>array(\r\narray( \'string\'=>\'<div class=\"uk-text-center uk-margin-large-top\">\' ),\r\narray( \'type\'=>\'submit\', \'name\'=>\'submit\', \'class\'=>\'uk-button uk-button-primary\', \'value\'=>\'入力項目確認画面へ\' ),\r\narray( \'string\'=>\'</div>\' ),\r\n  ),\r\n),\r\n## } submit 入力画面\r\n## submit 確認画面 {\r\narray(\'action\'=>\'confirm\',\r\n  \'data\'=>array(\r\narray( \'string\'=>\'<div class=\"uk-text-center uk-margin-large-top\">\' ),\r\narray( \'type\'=>\'submit\', \'name\'=>\'goback\', \'class\'=>\'uk-button\', \'value\'=>\'戻る\' ),\r\narray( \'string\'=>\'　\' ),\r\narray( \'type\'=>\'submit\', \'name\'=>\'submit\', \'class\'=>\'uk-button uk-button-primary\', \'value\'=>\'送信する\' ),\r\narray( \'string\'=>\'</div>\' ),\r\n  ),\r\n),\r\n## } submit 確認画面\r\n);\r\n\r\n\r\n\r\n// --[[ 関数群 ]]-----------------------------------------------------\r\nif(!function_exists(\'_fmGetAction\')){\r\nfunction _fmGetAction ($err) {\r\n  $buf = \'\';\r\n  $action = COM_applyFilter($_POST[\'action\']);\r\n  if (!empty($action) && empty($err) && $action == \'input\') { $buf = \'confirm\'; }\r\n  elseif (!empty($action) && empty($err) && $action == \'confirm\') { $buf = empty($_POST[\'goback\']) ? \'finish\' : \'input\'; }\r\n  else { $buf = \'input\'; }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkSeni ($items, $action) {\r\n  $buf = \'<div class=\"uk-button-group uk-child-width-1-3@m uk-text-center uk-margin\">\'.LB;\r\n  foreach ($items as $key => $value) {\r\n    if ($action == $key) {\r\n      $buf .= \'  <button class=\"uk-button uk-button-secondary uk-text-nowrap\" style=\"cursor: default\">\'.$value.\'</button>\'.LB;\r\n    } else {\r\n      $buf .= \'  <button class=\"uk-button uk-button-default uk-text-nowrap\" disabled>\'.$value.\'</button>\'.LB;\r\n    }\r\n  }\r\n  $buf .= \'</div>\'.LB;\r\n  return $buf;\r\n}\r\n\r\nfunction _fmPutiFilter($s) {\r\n  $se = array(\'%\',\'(\',\')\',chr(92),chr(13).chr(10),chr(13),chr(10));\r\n  $re = array(\'&#37;\',\'&#40;\',\'&#41;\',\'&#92;\',\'\',\'\',\'\');\r\n  return str_replace($se, $re, htmlspecialchars($s,ENT_QUOTES));\r\n}\r\n\r\nfunction _fmChkUseCAPTCHA_HTML () {\r\n  global $_RECAPTCHA_CONF;\r\n  if ( RECAPTCHA_isEnabled() && RECAPTCHA_requireCaptcha(\'contact\') ) {\r\n    return true;\r\n  }\r\n  return false;\r\n}\r\nfunction _fmVldCAPTCHA ($type, $errmsg) {\r\n  $msg = \'\';\r\n  if (!function_exists(\'plugin_itemPreSave_recaptcha\')) { return $msg; }\r\n  if ( _fmChkUseCAPTCHA_HTML() ) {\r\n    $msg = plugin_itemPreSave_recaptcha($type);\r\n  }\r\n  if ( !empty($msg) && !empty($errmsg) ) { $msg = $errmsg; }\r\n  return $msg;\r\n}\r\n\r\nfunction _fmVld_isPhone($s) { return (preg_match(\'/^(?:[0-9\'.chr(92).\'+\'.chr(92).\'-\'.chr(92).\'s])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction _fmVld_isHankaku($s) { return (preg_match(\'/^(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction _fmVld_isZenkaku($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F]|[\'.chr(92).\'x20-\'.chr(92).\'x7E])+/D\',$s)) ? FALSE : TRUE; }\r\nfunction _fmVld_isEisuHan($s) { return (preg_match(\'/^(?:[0-9A-Za-z])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction _fmVld_isKanaZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x83[\'.chr(92).\'x80-\'.chr(92).\'xB6])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction _fmVld_isHiraZen($s) { return (preg_match(\'/^(?:\'.chr(92).\'xE3\'.chr(92).\'x81[\'.chr(92).\'x81-\'.chr(92).\'xBF]|\'.chr(92).\'xE3\'.chr(92).\'x82[\'.chr(92).\'x80-\'.chr(92).\'x93])+$/D\',$s)) ? TRUE : FALSE; }\r\nfunction _fmVld_isNotKanaHan($s) { return (preg_match(\'/(?:\'.chr(92).\'xEF\'.chr(92).\'xBD[\'.chr(92).\'xA1-\'.chr(92).\'xBF]|\'.chr(92).\'xEF\'.chr(92).\'xBE[\'.chr(92).\'x80-\'.chr(92).\'x9F])+/D\',$s)) ? TRUE : FALSE; }\r\n\r\nfunction _fmChkValidate ($mode, $datas, $errmsg, $attributes = \'\') {\r\n  $msg = \'\';\r\n  foreach ($datas as $data) {\r\n    if (isset($data[\'type\'])) {\r\n      $name = $data[\'name\'];\r\n// 入力チェック {\r\nswitch ($mode) {\r\n  // 必須チェック\r\n  case \'require\':\r\n    if (empty($data[\'notrequire\']) && empty($_POST[$name]) && $_POST[$name] != \"0\") { $msg = $errmsg; }\r\n    break;\r\n  // 一致チェック\r\n  case \'equal\':\r\n    if (!empty($attributes)) {\r\n      $es_emails = explode(\',\', $attributes);\r\n      foreach ($es_emails as $es_email) {\r\n        list($eq1,$eq2) = explode(\'=\', $es_email);\r\n        // 最初のキー かつ チェックするキーが存在\r\n        if ($name == $eq1 && !empty($_POST[$eq2])) {\r\n          if ($_POST[$eq1] != $_POST[$eq2]) {\r\n            $msg = $errmsg;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    break;\r\n  // メールチェック\r\n  case \'email\':\r\n    if (!empty($attributes)) {\r\n      $pr_emails = explode(\',\', $attributes);\r\n      foreach ($pr_emails as $pr_email) {\r\n        if ($name == $pr_email) {\r\n          if (!COM_isemail($_POST[$name])) {\r\n            $msg = $errmsg;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    break;\r\n  // 数値チェック - 足して0以上\r\n  case \'notzero\':\r\n    if (!empty($attributes)) {\r\n      $values_key = explode(\',\', $attributes);\r\n      foreach ($values_key as $val_key) {\r\n        // 最初のキーのときにチェック\r\n        if ($name == $val_key) {\r\n          $sum_val = 0;\r\n          foreach ($values_key as $chk_key) {\r\n            if (!empty($_POST[$chk_key])) {\r\n              $sum_val += $_POST[$chk_key];\r\n            }\r\n          }\r\n          if ($sum_val <= 0) {\r\n            $msg = $errmsg;\r\n            break;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    break;\r\n  // 数値のみかチェック\r\n  case \'numeric\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !ctype_digit($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 電話番号かチェック\r\n  case \'phone\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !_fmVld_isPhone($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 半角チェック\r\n  case \'hankaku\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !_fmVld_isHankaku($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 全角チェック\r\n  case \'zenkaku\':\r\n    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !_fmVld_isZenkaku($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 半角英数字チェック\r\n  case \'eisuhan\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && !_fmVld_isEisuHan($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 全角カタカナチェック\r\n  case \'kanazen\':\r\n    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !_fmVld_isKanaZen($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 全角ひらがなチェック\r\n  case \'hirazen\':\r\n    if (!empty($_POST[$name]) && in_array($name,explode(\',\',$attributes)) && !_fmVld_isHiraZen($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 半角カタカナ以外かチェック\r\n  case \'notkanahan\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\") && in_array($name,explode(\',\',$attributes)) && _fmVld_isNotKanaHan($_POST[$name])) { $msg = $errmsg; }\r\n    break;\r\n  // 文字数チェック\r\n  case \'maxlen\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n      foreach (explode(\',\', $attributes) as $attr1) {\r\n        list($name2,$max2) = explode(\'=\',$attr1);\r\n        if ($name === $name2) {\r\n          if ($max2 < mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n        }\r\n      }\r\n    }\r\n    break;\r\n  // 最低文字数チェック\r\n  case \'minlen\':\r\n    if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n      foreach (explode(\',\', $attributes) as $attr1) {\r\n        list($name2,$min2) = explode(\'=\',$attr1);\r\n        if ($name === $name2) {\r\n          if ($min2 > mb_strlen($_POST[$name], \'UTF-8\')) { $msg = $errmsg; }\r\n        }\r\n      }\r\n    }\r\n    break;\r\n}\r\n// } 入力チェック\r\n    }\r\n  }\r\n  // 画像認証チェック\r\n  if ( $mode == \'captcha\' ) { $msg = _fmVldCAPTCHA(\'contact\', $errmsg); }\r\n  return $msg;\r\n}\r\n\r\nfunction _fmValidateLines ($lines) {\r\n  $errmsg;\r\n  foreach (array(\'require\',\'equal\',\'email\',\'notzero\',\'numeric\',\'phone\',\'hankaku\',\'zenkaku\',\'eisuhan\',\'kanazen\',\'hirazen\',\'notkanahan\',\'captcha\',\'maxlen\',\'minlen\') as $chk) {\r\n    // 必須,一致,メール,画像認証,エラー のチェック\r\n    if (isset($lines[\'valid_\'.$chk])) {\r\n      $errmsg = _fmChkValidate($chk, $lines[\'data\'], $lines[\'error_\'.$chk], $lines[\'valid_\'.$chk]);\r\n      // エラーがあれば配列に格納\r\n      if ($errmsg) {\r\n        break;\r\n      }\r\n    }\r\n  }\r\n  return $errmsg;\r\n}\r\n\r\nfunction _fmValidateItems ($items) {\r\n  $errs;\r\n  foreach ($items as $item) {\r\n    // 各グループ\r\n    foreach ($item as $key => $value) {\r\n      // 1グループ\r\n      if ($key == \'table\' || $key == \'table_captcha\') {\r\n        $action = _fmGetAction(\'\');\r\n        if ($key == \'table_captcha\' && $action == \'finish\') { continue; }\r\n        foreach ($value as $key2 => $value2) {\r\n          // 1行\r\n          $errmsg = _fmValidateLines($value2);\r\n          if ($errmsg) { $errs[] = $errmsg; }\r\n        }\r\n      }\r\n    }\r\n  }\r\n  return $errs;\r\n}\r\n\r\nfunction _fmValidate ($items) {\r\n  $buf = \'\';\r\n  $errs = _fmValidateItems($items);\r\n  if (!empty($errs)) {\r\n    $errmsg = \'\';\r\n    foreach ($errs as $err) {\r\n      $errmsg .= \'  <li>\'.$err.\'</li>\'.LB;\r\n    }\r\n    $buf = <<<END\r\n\r\n<div class=\"uk-alert uk-alert-danger\">\r\n<p>入力エラーがありました。下記について再度ご確認の上、ご記入ください。</p>\r\n<ol class=\"uk-text-danger\">\r\n$errmsg\r\n</ol>\r\n</div>\r\n\r\nEND;\r\n  }\r\n  return $buf;\r\n}\r\n\r\n\r\nfunction _fmMkTitle ($title) {\r\n  return <<<END\r\n\r\n  <h3 class=\"uk-h3\">$title</h3>\r\n\r\nEND;\r\n}\r\n\r\nfunction _fmMkForm_Value ($name, $value) {\r\n  return (empty($_POST[$name]) && $_POST[$name] != \"0\") ? $value : _fmPutiFilter($_POST[$name]);\r\n}\r\n\r\nfunction _fmMkForm_Radio_Checked (&$attributes) {\r\n  $name = $attributes[\'name\'];\r\n  if ((!empty($_POST[$name]) || $_POST[$name] == \"0\")) {\r\n    if (isset($attributes[\'checked\'])) unset($attributes[\'checked\']);\r\n    if ($_POST[$name] == $attributes[\'value\']) {\r\n      $attributes[\'checked\'] = \'checked\';\r\n    }\r\n  }\r\n}\r\n\r\nfunction _fmMkForm_Input ($attributes, $addclass, $hidden = false) {\r\n  if ($hidden) {\r\n    if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n      if ($attributes[\'value\'] != $_POST[$attributes[\'name\']]) return \'\';\r\n    }\r\n    $attributes[\'type\'] = \'hidden\';\r\n  }\r\n  if (array_key_exists(\'class\', $attributes)) { $attributes[\'class\'] .= $addclass; } elseif (!empty($addclass)) { $attributes[\'class\'] = ltrim($addclass); }\r\n  if ($attributes[\'type\'] == \'radio\' || $attributes[\'type\'] == \'checkbox\') {\r\n    _fmMkForm_Radio_Checked($attributes);\r\n  } else {\r\n    if ($attributes[\'type\'] != \'submit\') $attributes[\'value\'] = _fmMkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n  }\r\n  $buf = \'<input\';\r\n  foreach ($attributes as $key => $value) {\r\n    if ($key != \'not_confirm\') { $buf .= \' \'.$key.\'=\"\'.$value.\'\"\'; }\r\n  }\r\n  $buf .= XHTML.\'>\';\r\n  if ($hidden || $attributes[\'type\'] == \'checkbox\') {\r\n    if ( !isset($attributes[\'not_confirm\']) || ! $attributes[\'not_confirm\'] ) { $buf .= \' \' . $attributes[\'value\']; }\r\n  }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkForm_Select_Options ($name, $attributes) {\r\n  $buf = \'\';\r\n  $selected = _fmMkForm_Value($name, $attributes[\'selected\']);\r\n  $values = explode(\',\', $attributes[\'values\']);\r\n  foreach ($values as $value) {\r\n    list($k,$v) = explode(\'=\',$value);\r\n    if (empty($v)) $v = $k;\r\n    if ($selected == $k) {\r\n      $buf .= \'<option selected=\"selected\" value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n    } else {\r\n      $buf .= \'<option value=\"\'.$v.\'\">\'.$k.\'</option>\';\r\n    }\r\n  }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkForm_Select ($attributes, $addclass) {\r\n  unset($attributes[\'type\']);\r\n  if (array_key_exists(\'class\', $attributes)) { $attributes[\'class\'] .= $addclass; } elseif (!empty($addclass)) { $attributes[\'class\'] = ltrim($addclass); }\r\n  $buf = \'<select\';\r\n  foreach ($attributes as $key => $value) {\r\n    if ($key != \'options\') {\r\n      $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n    }\r\n  }\r\n  $buf .= \'>\';\r\n  $buf .= _fmMkForm_Select_Options($attributes[\'name\'], $attributes[\'options\']);\r\n  $buf .= \'</select>\';\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkForm_Textarea ($attributes, $addclass) {\r\n  unset($attributes[\'type\']);\r\n  $attributes[\'value\'] = _fmMkForm_Value($attributes[\'name\'], $attributes[\'value\']);\r\n  if (array_key_exists(\'class\', $attributes)) { $attributes[\'class\'] .= $addclass; } elseif (!empty($addclass)) { $attributes[\'class\'] = ltrim($addclass); }\r\n  $buf = \'<textarea\';\r\n  foreach ($attributes as $key => $value) {\r\n    if ($key != \'value\') $buf .= \' \'.$key.\'=\"\'.$value.\'\"\';\r\n  }\r\n  $buf .= \'>\'.$attributes[\'value\'].\'</textarea>\';\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkForm_Item ($items, $action, $addclass) {\r\n  $buf = \'\';\r\n  unset($items[\'not_csv\']);\r\n  if ($action != \'input\' && $items[\'type\'] != \'submit\' && $items[\'type\'] != \'hidden\') {\r\n    $buf .= _fmMkForm_Input($items,\'\', true);\r\n  } else {\r\n    switch ($items[\'type\']) {\r\n      case \'text\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'password\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'hidden\': $buf .= _fmMkForm_Input($items, $addclass, true); break;\r\n      case \'radio\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'checkbox\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'select\': $buf .= _fmMkForm_Select($items, $addclass); break;\r\n      case \'textarea\': $buf .= _fmMkForm_Textarea($items, $addclass); break;\r\n      case \'submit\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'reset\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n      case \'button\': $buf .= _fmMkForm_Input($items, $addclass); break;\r\n    }\r\n  }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkTable_Data ($datas, $action, $addclass=\'\') {\r\n  $buf = \'\';\r\n  foreach ($datas as $data) {\r\n    // １つのデータ\r\n    if (!empty($data[\'type\'])) {\r\n      // フォーム\r\n      $buf .= _fmMkForm_Item($data, $action, $addclass);\r\n    }\r\n    else {\r\n      // 文字列\r\n      foreach ($data as $key => $value) {\r\n        if ($key == \'string\') {\r\n          $buf .= $value;\r\n        } elseif ($key == $action) {\r\n          $buf .= $value;\r\n        }\r\n      }\r\n    }\r\n  }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkCAPTCHA_HTML($name, $msg_notcaptcha) {\r\n  global $_RECAPTCHA_CONF;\r\n  $captcha = \'\';\r\n  if (!function_exists(\'plugin_itemPreSave_recaptcha\')) { return $msg_notcaptcha; }\r\n  if ( _fmChkUseCAPTCHA_HTML() ) {\r\n    $lang = RECAPTCHA_getLangCode();\r\n    $captcha = \'<div class=\"g-recaptcha\" data-sitekey=\"\'\r\n      . RECAPTCHA_esc($_RECAPTCHA_CONF[\'public_key\']) . \'\"></div>\'\r\n      . \'<script type=\"text/javascript\" src=\"https://www.google.com/recaptcha/api.js?hl=\'\r\n      . RECAPTCHA_esc($lang) . \'\" async defer></script>\';\r\n  }\r\n  return $captcha;\r\n}\r\n\r\nfunction _fmMkTable ($tables, $action) {\r\n  $buf = \'\';\r\n  foreach ($tables as $lines) {\r\n    $flg_valid_captcha=false;\r\n    $errflg = \'\';\r\n    $textclass=\'\'; $formclass=\'\'; $formid=\'\'; $labelfor=\'\';\r\n    // 1行のエラーチェック\r\n    if (!empty($_POST) && !empty($_POST[\'action\'])) { $errflg = _fmValidateLines($lines); }\r\n    if ($errflg) { $textclass=\' uk-text-danger\'; $formclass=\' uk-form-danger\'; }\r\n    for ($i=0; $i<count($lines[\'data\']); $i++) {\r\n      if (isset($lines[\'data\'][$i][\'name\']) && !isset($lines[\'data\'][$i][\'id\'])) { $lines[\'data\'][$i][\'id\'] = $lines[\'data\'][$i][\'name\']; }\r\n      if (isset($lines[\'data\'][$i][\'id\'])) { if(isset($lines[\'data\'][$i][\'type\']) && !in_array($lines[\'data\'][$i][\'type\'],array(\'radio\',\'checkbox\'))) { $formid=$lines[\'data\'][$i][\'id\'];break; } }\r\n    }\r\n    if (!empty($formid)) { $labelfor=\' for=\"\'.$formid.\'\"\'; }\r\n    $buf .= LB;\r\n    $buf .= \'  <div class=\"uk-margin\">\'.LB;\r\n    $buf .= \'    <label class=\"uk-form-label\'.$textclass.\'\"\'.$labelfor.\'>\';\r\n    if (isset($lines[\'header\'])) { $buf .= $lines[\'header\']; }\r\n    if (isset($lines[\'header_captcha\'])) { $buf .= $lines[\'header_captcha\']; }\r\n    if (isset($lines[\'valid_require\'])) { $buf .= $lines[\'valid_require\']; }\r\n    if (isset($lines[\'valid_captcha\'])) { $buf .= $lines[\'valid_captcha\']; $flg_valid_captcha=true; }\r\n    $buf .= \'</label>\'.LB;\r\n    $buf .= \'    <div class=\"uk-form-controls\">\'.LB;\r\n    if (isset($lines[\'data\'])) {\r\n      if ($flg_valid_captcha) {\r\n        $buf .= _fmMkCAPTCHA_HTML(\'contact\',$lines[\'error_notcaptcha\']);\r\n      } else {\r\n        $buf .= _fmMkTable_Data($lines[\'data\'], $action, $formclass);\r\n      }\r\n    }\r\n\r\n    if (isset($lines[\'help\']) && $action == \'input\') { $buf .= \' <div class=\"uk-text-warning uk-text-small\"> \'.$lines[\'help\'].\'</div>\'; }\r\n\r\n    $buf .= LB.\'    </div>\'.LB;\r\n    $buf .= \'  </div>\'.LB;\r\n  }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkForm ($items, $action) {\r\n  global $_fmtokenttl;\r\n  $ttl = (isset($_fmtokenttl) && $_fmtokenttl > 1) ? $_fmtokenttl : 1800;\r\n  $buf = \'\';\r\n  foreach ($items as $item) {\r\n    // 各グループ\r\n    if (!empty($item[\'table\'])) {\r\n      foreach ($item as $key => $value) {\r\n        // 1グループ\r\n        switch ($key) {\r\n          case \'title\': $buf .= _fmMkTitle($value); break;\r\n          case \'table\': $buf .= _fmMkTable($value, $action); break;\r\n        }\r\n      }\r\n      $buf .= \"\".LB;\r\n\r\n    } elseif (!empty($item[\'table_captcha\'])) {  //画像認証テーブル\r\n      if ((!empty($action) && $action == \'input\') && _fmChkUseCAPTCHA_HTML()) {\r\n        foreach ($item as $key => $value) {\r\n          // １テーブル\r\n          switch ($key) {\r\n            case \'title_captcha\': $buf .= _fmMkTitle($value); break;\r\n            case \'table_captcha\': $buf .= _fmMkTable($value, $action); break;\r\n          }\r\n        }\r\n        $buf .= \"\".LB;\r\n      }\r\n    } elseif (!empty($item[\'action\'])) {         //送信ボタン\r\n      if ($item[\'action\'] == $action) {\r\n        $buf .= LB . \'  <input type=\"hidden\" name=\"action\" value=\"\' . $action . \'\"\' . XHTML . \'>\';\r\n        $buf .= LB . _fmMkTable_Data($item[\'data\'], $action);\r\n      }\r\n    }\r\n  }\r\n  if (!empty($buf) && ($action==\'input\' || $action==\'confirm\')) { $buf.=LB.\'  <input type=\"hidden\" name=\"_glsectoken\" value=\"\'.SEC_createToken($ttl).\'\"\'.XHTML.\'>\'; }\r\n  return $buf;\r\n}\r\n\r\nfunction _fmMkCsv ($items, $level=0, $dupcheck=array()) {\r\n  $ret = array();\r\n  if ($level > 5) { return; } $level++;\r\n  if (!empty($items[\'type\']) && strtolower($items[\'type\']) != \'submit\' ) {\r\n    if((!empty($items[\'not_csv\']) && $items[\'not_csv\']) || empty($items[\'name\'])) { return; }\r\n    if(strtolower($items[\'type\']) == \'radio\' && in_array($items[\'name\'], $dupcheck)) { return; }\r\n    return $items[\'name\'];\r\n  } else {\r\n    if (!is_array($items)) { return; }\r\n    foreach ($items as $i) {\r\n      $name = _fmMkCsv($i,$level, $ret);\r\n      if (!empty($name)) {\r\n        if(is_array($name)) { $ret = array_merge($ret,$name); } else { $ret[] = $name; }\r\n      }\r\n    }\r\n  }\r\n  return $ret;\r\n}\r\n\r\nfunction _fmChkReferer ($pu,$err) {\r\n  global $_CONF;  $msg = \'\';  $action = COM_applyFilter($_POST[\'action\']);\r\n  if (!isset($_SERVER[\'HTTP_REFERER\'])) {\r\n    if (!empty($_POST)) { $msg = \'<p class=\"uk-text-danger\">REFERERチェックが設定されていますが環境変数にREFERERがセットされていないためチェックできません。サイト管理者にご連絡ください。</p>\'; }\r\n  } elseif (!empty($action) && ($action==\'input\' || $action==\'confirm\')) {\r\n    if (strpos($_SERVER[\'HTTP_REFERER\'],$pu)===FALSE) {\r\n      $msg = $err;\r\n    }\r\n  } elseif (strpos($_SERVER[\'HTTP_REFERER\'],$_CONF[\'site_url\'])===FALSE) {\r\n    $msg = $err;\r\n  }\r\n  return $msg;\r\n}\r\n}\r\n\r\n\r\n\r\n// --[[ 初期処理 ]]---------------------------------------------------\r\n# POSTデータを直接変換 (全角から半角へ、カタカナ半角からカタカナ全角へ)\r\nif (!empty($zentohan_itemname)) { foreach (explode(\',\',$zentohan_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'askh\'); } }\r\nif (!empty($kana_hantozen_itemname)) { foreach (explode(\',\',$kana_hantozen_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'K\'); } }\r\nif (!empty($kana_hiratokana_itemname)) { foreach (explode(\',\',$kana_hiratokana_itemname) as $k) { if (!empty($_POST[$k])) $_POST[$k] = mb_convert_kana($_POST[$k], \'C\'); } }\r\n# データを保存用に加工\r\nforeach ($_POST as $k => $v) {\r\n  #以下の記号は大文字にして保存\r\n  $fld_list[$k] = preg_replace(\'/,/\', \'，\', $_POST[$k]);\r\n  $fld_list[$k] = preg_replace(\'/\"/\', \'”\', $fld_list[$k]);\r\n  $fld_list[$k] = preg_replace(\"/\'/\", \"’\", $fld_list[$k]);\r\n  $fld_list[$k] = preg_replace(\'/`/\', \'‘\', $fld_list[$k]);\r\n  $fld_list[$k] = preg_replace(\'/;/\', \'；\', $fld_list[$k]);\r\n  $fld_list[$k] = preg_replace(preg_quote(\'#\'.chr(92).\'#\'), \'￥\', $fld_list[$k]);\r\n  $fld_list[$k] = COM_applyFilter($fld_list[$k]);\r\n}\r\n# CSVファイルのフルパス\r\n$save_csv_file = $save_csv_path . $save_csv_name;\r\n# idからurlを作成\r\nif (!empty($page)) { $pageurl = COM_buildUrl($_CONF[\'site_url\'].\'/staticpages/index.php?page=\'.$page); }\r\n# CSRF\r\nif (!empty($_POST) && !SECINT_checkToken()) { $m=isset($_POST[$email_input_name]) ? \'email=\'.$_POST[$email_input_name].\' \' : \'\'; COM_accessLog(\"tried {$m}to staticpage({$pageid}) failed CSRF checks.\"); header(\'Location: \'.$pageurl); exit; }\r\n\r\n\r\n// Refererチェック\r\n$_spflg_ref_err=false;\r\nif (!empty($_spreferercheck) && $_spreferercheck == 1) {\r\n  $valid = _fmChkReferer($pageurl,$_spreferererrormsg);\r\n  if (!empty($valid)) { $_spflg_ref_err=true; }\r\n}\r\n\r\n// エラーチェック\r\nif (empty($valid) && !empty($_POST) && !empty($_POST[\'action\'])) {\r\n  $valid = _fmValidate($form_items);\r\n}\r\n$action = _fmGetAction($valid);\r\n\r\n\r\n\r\n// --[[ 第1ステップ : フォーム表示(入力＆確認) ]]---------------------\r\nif ($action == \'input\' || $action == \'confirm\') {\r\n/**\r\n* フォーム画面HTML { ここから\r\n*/\r\n  // 遷移\r\n  $seni = _fmMkSeni($seni_items, $action);\r\n  // 入力フォーム\r\n  $form = _fmMkForm($form_items, $action);\r\n  if ($_spflg_ref_err) { $form=\'\'; COM_accessLog(\"REFERER Error in staticpage({$page}) - Referring: {$_SERVER[\'HTTP_REFERER\']}\"); }\r\n\r\n  $retval = <<<END\r\n\r\n$seni\r\n<div id=\"$page\" class=\"uk-margin-left uk-margin-right\">\r\n$valid\r\n<form name=\"subForm\" class=\"uk-form-horizontal uk-margin-large\" method=\"post\" action=\"{$pageurl}\">\r\n$form\r\n</form>\r\n</div>\r\n\r\nEND;\r\n\r\n/**\r\n* } ここまで フォーム画面HTML\r\n*/\r\n\r\n\r\n\r\n// --[[ 第2ステップ : 完了表示＆メール送信 ]]-------------------------\r\n} elseif ($action == \'finish\') {\r\n/**\r\n* 完了画面HTML { ここから\r\n*/\r\n  // 遷移\r\n  $seni = _fmMkSeni($seni_items, $action);\r\n\r\n  $out_html = <<<END\r\n\r\n$seni\r\n<div id=\"$page\" class=\"uk-margin-left uk-margin-right\">\r\n<p><strong>お問い合わせを受け付けました。</strong></p>\r\n<p>※お問い合わせ確認のメールを自動送信しました。<br />\r\nメールが届かない場合は、ご登録のメールアドレスが間違っている可能性があります。<br />\r\nその際は、お手数ですが再度お問い合わせください。</p>\r\n</div>\r\n\r\nEND;\r\n/**\r\n* } ここまで 完了画面HTML\r\n*/\r\n\r\n\r\n\r\n  # <br /> を改行コードに変換\r\n  $pat = \'/<br[[:space:]]*\'.chr(92).\'/?[[:space:]]*>/i\';\r\n  foreach ($fld_list as $k => $v) { $fld_list[$k] = preg_replace($pat, LB, $fld_list[$k]); }\r\n  $lang[\'sign_admin\'] = preg_replace($pat, LB, $lang[\'sign_admin\']);\r\n  $lang[\'sign_user\'] = preg_replace($pat, LB, $lang[\'sign_user\']);\r\n  // 入力内容\r\n  $input4mail=<<<END\r\n\r\nお名前（漢字）: {$fld_list[\'q_name\']}\r\nお名前（カタカナ）: {$fld_list[\'q_kana\']}\r\nメールアドレス: {$fld_list[\'q_mail\']}\r\n連絡ご希望時間帯: {$fld_list[\'q_access_time\']}\r\nお問い合わせ内容: {$fld_list[\'q_other\']}\r\nEND;\r\n\r\n/**\r\n* 送信メール内容 - 管理者 { ここから\r\n*/\r\n  $out_mail_admin = <<<END\r\n\r\n{$lang[\'receipt_admin\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_admin\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 管理者\r\n*/\r\n/**\r\n* 送信メール内容 - 入力者 { ここから\r\n*/\r\n  $out_mail_user = <<<END\r\n\r\n{$lang[\'receipt_user\']}\r\n\r\n$input4mail\r\n\r\n{$lang[\'sign_user\']}\r\nEND;\r\n/**\r\n* } ここまで 送信メール内容 - 入力者\r\n*/\r\n\r\n  # メール送信前にcsvを出力\r\n  # ->送信エラーでもCSVで確認できるように対応\r\n  if ($save_csv > 0) {\r\n    $fldnames = _fmMkCsv($form_items);\r\n    $delimiter = \',\';\r\n    if ($save_csv > 1) { $delimiter = chr(9); }\r\n    $enclosure = \'\"\';\r\n    # CSV出力\r\n    $str = \'\';\r\n    $escape_char = chr(92);\r\n    foreach ($fldnames as $n) {\r\n      $v = empty($fld_list[$n]) ? \'\' : $fld_list[$n] ;\r\n      if (strpos($v, $delimiter) !== false ||\r\n          strpos($v, $enclosure) !== false ||\r\n          strpos($v, chr(10)) !== false ||\r\n          strpos($v, chr(13)) !== false ||\r\n          strpos($v, chr(9)) !== false ||\r\n          strpos($v, \' \') !== false) {\r\n        $str2 = $enclosure;\r\n        $escaped = 0;\r\n        $len = strlen($v);\r\n        for ($i=0;$i<$len;$i++) {\r\n          if ($v[$i] == $escape_char) {\r\n            $escaped = 1;\r\n          } else if (!$escaped && $v[$i] == $enclosure) {\r\n            $str2 .= $enclosure;\r\n          } else {\r\n            $escaped = 0;\r\n          }\r\n          $str2 .= $v[$i];\r\n        }\r\n        $str2 .= $enclosure;\r\n        $str .= $str2.$delimiter;\r\n      } else {\r\n        $str .= $v.$delimiter;\r\n      }\r\n    }\r\n    $str = date($date_csv) . $delimiter . $_SERVER[\'REMOTE_ADDR\'] . $delimiter . substr($str,0,-1);\r\n    $str .= LB;\r\n    if( !empty( $save_csv_lang ) ) { $str = mb_convert_encoding($str, $save_csv_lang); }\r\n    $fp = fopen($save_csv_file, \'a\');\r\n    fwrite($fp, $str);  # CSV書き出し\r\n    fclose($fp);\r\n  }\r\n\r\n  # メール送信\r\n  $ownererr = false;\r\n  $ownersend = false;\r\n  $om_array = explode(\',\', $owner_email);\r\n  $owner_mails = array_unique($om_array);  # 重複した値(メールアドレス)を削除\r\n  if (!empty($owner_email_item_name)) {\r\n    $selmail;\r\n    foreach ($owner_mails as $v) {\r\n      list($key, $mail) = explode(\'=\', $v);\r\n      if ($_POST[$owner_email_item_name] == $key) {\r\n        $selmail = explode(\'|\', $mail);\r\n        break;\r\n      }\r\n    }\r\n    $owner_mails = $selmail;\r\n  }\r\n  $owner_subject = $lang[\'subject_admin\'];\r\n  foreach ($owner_mails as $v) {\r\n    $email1 = COM_mail( $v, \"$owner_subject\", $out_mail_admin, $email_from, false); # 管理者あてメール\r\n    if (!$email1) { $ownererr = true; } else { $ownersend = true; }  # 送信/エラーのフラグをセット\r\n  }\r\n  # 管理者メール送信でエラーがあった場合\r\n  if ($ownererr) {\r\n    # 一部に送信できている場合\r\n    if ($ownersend) {\r\n      # エラーをログへ出力(一部へは配送されているのでユーザにエラー画面を出さない)\r\n      COM_errorLog($lang[\'ownertransmiterror\'], 1);\r\n      $email1 = true;\r\n    # 全員がエラーの場合\r\n    } elseif (!$ownersend) {\r\n      # 処理エラーとし、ユーザへのメールは送らない\r\n      $email1 = false;\r\n    }\r\n  }\r\n  if ($email1) {\r\n    $usr_subject = $lang[\'subject_user\'];\r\n    $email2 = COM_mail( $fld_list[$email_input_name], \"$usr_subject\", $out_mail_user, $email_from, false); # 問合せ者へメール\r\n  }\r\n  if ($email1 && $email2) { # どちらの送信も成功したら\r\n    $retval = $out_html;\r\n  } else {\r\n    $retval = $lang[\'transmiterror\']; # メール送信が失敗したら\r\n    #メールエラーをCSVに書き出す\r\n    if ($save_csv > 0) {\r\n      $str = date($date_csv) . $delimiter . $lang[\'transmiterror\'];\r\n      $str .= LB;\r\n      if( !empty( $save_csv_lang ) ) { $str = mb_convert_encoding($str, $save_csv_lang,\"auto\"); }\r\n      $fp = fopen($save_csv_file, \'a\');\r\n      fwrite($fp, $str);  # CSV書き出し\r\n      fclose($fp);\r\n    }\r\n  }\r\n}\r\n// 「PHPを実行」の場合\r\necho $retval;\r\n// 「PHPを実行(return)」 の場合、上のechoをコメント(#)にして以下のreturnのコメントをはずしてください\r\n# return $retval;\r\n',24620,'2019-01-30 21:40:20','2019-12-07 12:15:49','noblocks',0,0,0,'',-1,'','',0,'',0,0,3,45,3,2,2,2,0,'',1,2,0,1,'html','','','');
