--- /dev/null
+td {
+ font-size: 13px;
+}
+
+body {
+ background-color:#FFFFFF;
+ color:#333333;
+ margin:0;
+ padding:0;
+ font-size: 13px;
+}
+
+ol {
+ margin-left: 25px;
+ margin-top: 0px;
+ margin-bottom: 0px;
+ margin-right: 5px;
+}
+
+td#topleft{
+ background-image:url(../img/waku_topleft.gif);
+}
+
+td#topright{
+ background-image:url(../img/waku_topright.gif);
+}
+
+td#underleft{
+ background-image:url(../img/waku_underleft.gif);
+}
+
+td#underright{
+ background-image:url(../img/waku_underright.gif);
+}
+
+td#over{
+ background-image:url(../img/waku_topcenter.gif);
+}
+
+td#under{
+ background-image:url(../img/waku_topunder.gif);
+}
+
+td#left{
+ background-image:url(../img/waku_leftside.gif);
+}
+
+td#right{
+ background-image:url(../img/waku_rightside.gif);
+}
+
+td#ttl{
+ background-image:url(../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:100%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+.ttl{
+ background-image:url(../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:100%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+
+td#mytbl {
+ font-size: 11px;
+ color: #333333;
+ line-height:130%;
+}
+
+
+td#myttl {
+ font-size: 13px;
+ font-weight: bold;
+ color: #666633;
+ line-height:120%;
+}
+
+
+td#hani {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#CC0000;
+ width:200px;
+}
+
+
+td#diary {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#99CC33;
+}
+
+td#diary2 {
+ font-size: 12px;
+ font-weight: normal;
+ color: #000000;
+ line-height:120%;
+ background-color:#99CC33;
+ text-align:right;
+}
+
+td#diary3 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEF7DB;
+}
+
+td#diary4 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEEEEE;
+}
+
+td#diary5 {
+ font-size: 14px;
+ font-weight: bold;
+ color: #333333;
+ line-height:130%;
+ background-color:#FFFFFF;
+}
+
+td#diary6 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#FFFFFF;
+ padding-bottom:15px;
+}
+.mydiary
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+ color:#FF6600;
+}
+
+/* ¥Õ¥©¥ó¥È¥µ¥¤¥º ----------------------------------- */
+
+.css10
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.css11
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+
+.css12
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+
+.css12_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.css13
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal
+}
+
+.css13_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.css14
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal
+}
+
+.css14_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.bo10
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.bo11
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+.bo12
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+.bo13
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+}
+
+.bo13_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+
+}
+
+.bo14
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:100%;
+}
+
+.bo14_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.bo20_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 20px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+
+/* ¥¢¥ó¥«¡¼¥¿¥° ----------------------------------- */
+
+
+A
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:visited
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:hover
+{
+ COLOR: #333333;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.head
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:visited
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:hover
+{
+ COLOR: #CC0000;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+ padding-left:9px;
+}
+A.ichiran:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran3
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.ichiran2
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+ padding-left:9px;
+}
+A.ichiran2:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+}
+A.ichiran2:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 11px;
+}
+/* Á´¥Õ¥©¡¼¥à, xmp */
+form, xmp {
+ margin: 0px;
+}
+
+/* Á´¥Æ¡¼¥Ö¥ë */
+table {
+ font-size: 10pt;
+}
+
+/* Á´hr */
+hr {
+ color: #000000;
+ height: 1px;
+}
+
+/****************************************************************/
+/* ¥¿¥¤¥È¥ë
+/****************************************************************/
+
+/* ¥¿¥¤¥È¥ë¾åÉô */
+div.acs_top_banner {
+ color: #000000;
+ background-color: #ccffcc;
+ font-size: 20pt;
+ font-family: Verdana;
+ border: solid 1px #005500;
+ padding: 3px;
+ margin-bottom: 10px;
+}
+
+/* ¥á¥¤¥ó¥¿¥¤¥È¥ë */
+div.main_title {
+ font-size: 15pt;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+
+/* ¥µ¥Ö¥¿¥¤¥È¥ë */
+span.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+div.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+/* ¥µ¥Ö¥µ¥Ö¥¿¥¤¥È¥ë */
+div.subsub_title {
+ color: #00aa00;
+ font-size: 11pt;
+ font-weight: bold;
+}
+
+
+/****************************************************************/
+/* ¥á¥¤¥ó
+/****************************************************************/
+
+/* ¥á¥¤¥ó */
+div.main {
+ color: #000000;
+ background-color: #ffffff;
+ border: solid 1px #555555;
+ padding: 10px;
+}
+
+/****************************************************************/
+/* ¥Æ¡¼¥Ö¥ë
+/****************************************************************/
+
+/* ¥ì¥¤¥¢¥¦¥ÈÍÑ(ÏÈÀþ¤òɽ¼¨¤·¤Ê¤¤) */
+table.layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.layout_table td {
+ padding: 0px;
+}
+
+
+/* ¶¦Ḁ̈ơ¼¥Ö¥ë */
+table.common_table {
+ padding: 3px;
+}
+
+table.common_table td {
+ padding: 3px;
+}
+
+
+/* ¸ø³«ÈÏ°Ï */
+table.open_level_table {
+ background-color: #dddddd;
+ padding: 0px;
+}
+
+table.open_level_table td {
+ padding: 0px;
+}
+
+
+/* BBS¥Æ¡¼¥Ö¥ë */
+table.bbs_table td {
+ padding: 3px;
+}
+
+table.bbs_table td.head {
+ padding: 0px;
+}
+
+
+/* ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.file_list_table td {
+ padding: 1px;
+}
+
+/*
+table.file_list_table a {
+ text-decoration: none;
+}
+*/
+
+/* ¥¹¥±¥¸¥å¡¼¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.schedule_list_table td {
+ padding: 1px;
+}
+
+
+/* ¥³¥ß¥å¥Ë¥Æ¥£(·Ç¼¨ÈÄ,²ñµÄ¼¼)¥Æ¡¼¥Ö¥ë */
+table.community_table td {
+ padding: 5px;
+}
+
+
+/* ÆâÉô¥ì¥¤¥¢¥¦¥È¥Æ¡¼¥Ö¥ë */
+table.inner_layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.inner_layout_table td {
+ padding: 0px;
+}
+
+/* ³Îǧ¥Æ¡¼¥Ö¥ë */
+table.confirm_table {
+ border: 1;
+ padding: 3px;
+ border-color: #FFFFFF;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¹àÌÜ */
+colgroup.required{
+ background-color: #CCFFCC;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡ÆþÎÏÃÍ */
+colgroup.value {
+ background-color: #CCCC99;
+ width: 400px;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¤·¤¤ê */
+colgroup.partition {
+ background-color: #FFFFFF;
+}
+
+/* ¥·¥¹¥Æ¥àÀßÄê¡¡¥°¥ë¡¼¥×̾ */
+th.system_config_th {
+ background-color: #DEEEBD;
+ text-align: left;
+}
+
+
+/* ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¥Æ¡¼¥Ö¥ë */
+table.system_announce_table {
+}
+
+table.system_announce_table td {
+ padding: 3px;
+ background-color: #eeffee;
+ border: solid 1px #000000;
+}
+
+/****************************************************************/
+/* ¥Õ¥©¡¼¥à¹àÌÜ
+/****************************************************************/
+
+input.yesno_button {
+ width: 60px;
+}
+
+
+/****************************************************************/
+/* ¾
+/****************************************************************/
+
+
+/* Note */
+table.note_table {
+ background-color: #f4f4f4;
+ border-collacse: collacse;
+}
+
+table.note_table td {
+ border: dashed 1px #777799;
+ padding: 4px;
+}
+
+/* ¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤ */
+span.inactive {
+ color: #cccccc;
+}
+
+/* ºï½üºÑ¤ß */
+span.deleted_msg {
+ color: #ff0000;
+ background-color: #ffdddd;
+ font-weight: bold;
+ padding: 5px;
+}
+
+/* ɬ¿Ü¹àÌÜ */
+span.required {
+ color: #ff0000;
+}
+
+/* Ãí°Õ */
+span.notice {
+ color: #999999;
+}
+
+/* ¥³¥á¥ó¥È */
+span.comment {
+ color: #ff0000;
+}
+
+/* ¥Ú¡¼¥¸É½¼¨ */
+span.page_number {
+ padding-right: 0.1em;
+ padding-left: 0.1em;
+}
+
+/* ²þ¹Ô¤Ê¤· */
+.nowrap {
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ¥¨¥é¡¼ */
+span.err_msg {
+ color: #ff0000;
+}
+
+div.err_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ width: 40%;
+ padding : 0.5em;
+ border-width: 1px;
+ border-color: #aa5555;
+ border-style: dashed;
+ color: #ff0000;
+ background-color: #ffeeee;
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ³Îǧ¥á¥Ã¥»¡¼¥¸ */
+div.confirm_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+div.msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+/* ¿·Ãå¼èÆÀ´ü´Ö */
+div.getdays {
+ color: #808080;
+ font-size:9pt;
+}
+
+/* ÆþÎϻٱç */
+span.support {
+ color: #5f9ea0;
+ font-size:8pt;
+}
+
+/* ·ë²Ì¤ÎÊó¹ð */
+span.result_success {
+ color: #ff0000;
+}
--- /dev/null
+/*
+acs_style_selection {
+ show_list : yes;
+ display_order : 0;
+
+ name.ja : ɸ½à¥Ç¥¶¥¤¥ó;
+ description.ja : ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤Îɸ½à¥Ç¥¶¥¤¥ó¤Ç¤¹¡£;
+ thumbnail.ja : default_thumb.jpg;
+
+ name.en : Standard Design;
+ description.en : Academic Community System default design.;
+ thumbnail.en : default_thumb.jpg;
+}
+*/
+
+td {
+ font-size: 13px;
+}
+
+body {
+ background-color:#FFFFFF;
+ color:#333333;
+ margin:0;
+ padding:0;
+ font-size: 13px;
+}
+
+ol {
+ margin-left: 25px;
+ margin-top: 0px;
+ margin-bottom: 0px;
+ margin-right: 5px;
+}
+
+td#topleft{
+ background-image:url(../../img/waku_topleft.gif);
+}
+
+td#topright{
+ background-image:url(../../img/waku_topright.gif);
+}
+
+td#underleft{
+ background-image:url(../../img/waku_underleft.gif);
+}
+
+td#underright{
+ background-image:url(../../img/waku_underright.gif);
+}
+
+td#over{
+ background-image:url(../../img/waku_topcenter.gif);
+}
+
+td#under{
+ background-image:url(../../img/waku_topunder.gif);
+}
+
+td#left{
+ background-image:url(../../img/waku_leftside.gif);
+}
+
+td#right{
+ background-image:url(../../img/waku_rightside.gif);
+}
+
+td#ttl{
+ background-image:url(../../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:100%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+.ttl{
+ background-image:url(../../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:110%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+
+td#mytbl {
+ font-size: 11px;
+ color: #333333;
+ line-height:130%;
+}
+
+
+td#myttl {
+ font-size: 13px;
+ font-weight: bold;
+ color: #666633;
+ line-height:120%;
+}
+
+
+td#hani {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#CC0000;
+ width:200px;
+}
+
+
+td#diary {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#99CC33;
+}
+
+td#diary2 {
+ font-size: 12px;
+ font-weight: normal;
+ color: #000000;
+ line-height:120%;
+ background-color:#99CC33;
+ text-align:right;
+}
+
+td#diary3 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEF7DB;
+}
+
+td#diary4 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEEEEE;
+}
+
+td#diary5 {
+ font-size: 14px;
+ font-weight: bold;
+ color: #333333;
+ line-height:130%;
+ background-color:#FFFFFF;
+}
+
+td#diary6 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#FFFFFF;
+ padding-bottom:15px;
+}
+.mydiary
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+ color:#FF6600;
+}
+
+/* ¥Õ¥©¥ó¥È¥µ¥¤¥º ----------------------------------- */
+
+.css10
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.css11
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+
+.css12
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+
+.css12_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.css13
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal
+}
+
+.css13_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.css14
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal
+}
+
+.css14_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.bo10
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.bo11
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+.bo12
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+.bo13
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+}
+
+.bo13_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+
+}
+
+.bo14
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:100%;
+}
+
+.bo14_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.bo20_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 20px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+
+/* ¥¢¥ó¥«¡¼¥¿¥° ----------------------------------- */
+
+
+A
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:visited
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:hover
+{
+ COLOR: #333333;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.head
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:visited
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:hover
+{
+ COLOR: #CC0000;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+ padding-left:9px;
+}
+A.ichiran:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran3
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.ichiran2
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+ padding-left:9px;
+}
+A.ichiran2:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+}
+A.ichiran2:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 11px;
+}
+/* Á´¥Õ¥©¡¼¥à, xmp */
+form, xmp {
+ margin: 0px;
+}
+
+/* Á´¥Æ¡¼¥Ö¥ë */
+table {
+ font-size: 10pt;
+}
+
+/* Á´hr */
+hr {
+ color: #000000;
+ height: 1px;
+}
+
+/****************************************************************/
+/* ¥¿¥¤¥È¥ë
+/****************************************************************/
+
+/* ¥¿¥¤¥È¥ë¾åÉô */
+div.acs_top_banner {
+ color: #000000;
+ background-color: #ccffcc;
+ font-size: 20pt;
+ font-family: Verdana;
+ border: solid 1px #005500;
+ padding: 3px;
+ margin-bottom: 10px;
+}
+
+/* ¥á¥¤¥ó¥¿¥¤¥È¥ë */
+div.main_title {
+ font-size: 15pt;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+
+/* ¥µ¥Ö¥¿¥¤¥È¥ë */
+span.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+div.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+/* ¥µ¥Ö¥µ¥Ö¥¿¥¤¥È¥ë */
+div.subSub_title {
+ color: #00aa00;
+ font-size: 11pt;
+ font-weight: bold;
+}
+
+
+/****************************************************************/
+/* ¥á¥¤¥ó
+/****************************************************************/
+
+/* ¥á¥¤¥ó */
+div.main {
+ color: #000000;
+ background-color: #ffffff;
+ border: solid 1px #555555;
+ padding: 10px;
+}
+
+/****************************************************************/
+/* ¥Æ¡¼¥Ö¥ë
+/****************************************************************/
+
+/* ¥ì¥¤¥¢¥¦¥ÈÍÑ(ÏÈÀþ¤òɽ¼¨¤·¤Ê¤¤) */
+table.layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.layout_table td {
+ padding: 0px;
+}
+
+
+/* ¶¦Ḁ̈ơ¼¥Ö¥ë */
+table.common_table {
+ padding: 3px;
+}
+
+table.common_table td {
+ padding: 3px;
+}
+
+/* ¥Þ¥¤¥Õ¥ì¥ó¥º¡¦¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷ */
+TABLE.mylist_table {
+/*
+ padding: 0px;
+ margin: 1px;
+ border-style: none;
+ border-collapse: collapse;
+ background-color: #CCCC33;
+*/
+ padding: 0px;
+ margin: 1px;
+ border-collapse: collapse;
+}
+
+TABLE.mylist_table td.mlttl {
+ padding: 5px;
+ border: 1px solid #CCCC33;
+ background-color:#F6F2B8;
+}
+
+TABLE.mylist_table td.mltd {
+ border: 1px solid #CCCC33;
+ background-color:#FFFFFF;
+}
+
+/* ¸ø³«ÈÏ°Ï */
+table.open_level_table {
+ background-color: #dddddd;
+ padding: 0px;
+}
+
+table.open_level_table td {
+ padding: 0px;
+}
+
+
+/* BBS¥Æ¡¼¥Ö¥ë */
+table.bbs_table td {
+ padding: 3px;
+}
+
+table.bbs_table td.head {
+ padding: 0px;
+}
+
+
+/* ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.file_list_table td {
+ padding: 1px;
+}
+
+/*
+table.file_list_table a {
+ text-decoration: none;
+}
+*/
+
+/* ¥¹¥±¥¸¥å¡¼¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.schedule_list_table td {
+ padding: 1px;
+}
+
+
+/* ¥³¥ß¥å¥Ë¥Æ¥£(·Ç¼¨ÈÄ,²ñµÄ¼¼)¥Æ¡¼¥Ö¥ë */
+table.community_table td {
+ padding: 5px;
+}
+
+
+/* ÆâÉô¥ì¥¤¥¢¥¦¥È¥Æ¡¼¥Ö¥ë */
+table.inner_layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.inner_layout_table td {
+ padding: 0px;
+}
+
+/* ³Îǧ¥Æ¡¼¥Ö¥ë */
+table.confirm_table {
+ border: 1;
+ padding: 3px;
+ border-color: #FFFFFF;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¹àÌÜ */
+colgroup.required{
+ background-color: #CCFFCC;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡ÆþÎÏÃÍ */
+colgroup.value {
+ background-color: #CCCC99;
+ width: 400px;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¤·¤¤ê */
+colgroup.partition {
+ background-color: #FFFFFF;
+}
+
+/* ¥·¥¹¥Æ¥àÀßÄê¡¡¥°¥ë¡¼¥×̾ */
+th.system_config_th {
+ background-color: #DEEEBD;
+ text-align: left;
+}
+
+
+/* ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¥Æ¡¼¥Ö¥ë */
+table.system_announce_table {
+}
+
+table.system_announce_table td {
+ padding: 3px;
+ background-color: #eeffee;
+ border: solid 1px #000000;
+}
+
+/****************************************************************/
+/* ¥Õ¥©¡¼¥à¹àÌÜ
+/****************************************************************/
+
+input.yesno_button {
+ width: 60px;
+}
+
+
+/****************************************************************/
+/* ¾
+/****************************************************************/
+
+
+/* Note */
+table.note_table {
+ background-color: #f4f4f4;
+ border-collacse: collacse;
+}
+
+table.note_table td {
+ border: dashed 1px #777799;
+ padding: 4px;
+}
+
+/* ¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤ */
+span.inactive {
+ color: #cccccc;
+}
+
+/* ºï½üºÑ¤ß */
+span.deleted_msg {
+ color: #ff0000;
+ background-color: #ffdddd;
+ font-weight: bold;
+ padding: 5px;
+}
+
+/* ɬ¿Ü¹àÌÜ */
+span.required {
+ color: #ff0000;
+}
+
+/* Ãí°Õ */
+span.notice {
+ color: #999999;
+}
+
+/* ¥³¥á¥ó¥È */
+span.comment {
+ color: #ff0000;
+}
+
+/* ¥Ú¡¼¥¸É½¼¨ */
+span.page_number {
+ padding-right: 0.1em;
+ padding-left: 0.1em;
+}
+
+/* ²þ¹Ô¤Ê¤· */
+.nowrap {
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ¥¨¥é¡¼ */
+span.err_msg {
+ color: #ff0000;
+}
+
+div.err_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ width: 40%;
+ padding : 0.5em;
+ border-width: 1px;
+ border-color: #aa5555;
+ border-style: dashed;
+ color: #ff0000;
+ background-color: #ffeeee;
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ³Îǧ¥á¥Ã¥»¡¼¥¸ */
+div.confirm_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+div.msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+/* ¿·Ãå¼èÆÀ´ü´Ö */
+div.getdays {
+ color: #808080;
+ font-size:9pt;
+}
+
+/* ÆþÎϻٱç */
+span.support {
+ color: #5f9ea0;
+ font-size:8pt;
+}
+
+/* ·ë²Ì¤ÎÊó¹ð */
+span.result_success {
+ color: #ff0000;
+}
+
+img.pic {
+ margin-top: 10px;
+ margin-bottom: 5px;
+ border-style: none;
+}
--- /dev/null
+/*
+acs_style_selection {
+ show_list : yes;
+ display_order : 10;
+
+ name.ja : ¥·¡¼¥µ¥¤¥É;
+ description.ja : ÀÄ¿§¤ò´ðÄ´¤È¤·¤¿ÇÛ¿§¤Ç¤¹¡£;
+ thumbnail.ja : seaside_thumb.jpg;
+
+ name.en : Seaside;
+ description.en : Seaside Blue;
+ thumbnail.en : seaside_thumb.jpg;
+}
+*/
+
+td {
+ font-size: 13px;
+}
+
+body {
+ color:#333333;
+ margin:0;
+ padding:0;
+ font-size: 13px;
+}
+
+ol {
+ margin-left: 25px;
+ margin-top: 0px;
+ margin-bottom: 0px;
+ margin-right: 5px;
+}
+
+table#main_window {
+ background-color: #bbeeee;
+}
+
+td#topleft{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#topright{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#underleft{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#underright{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#over{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-x;
+}
+
+td#under{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-x;
+ background-position: bottom;
+}
+
+td#left{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#right{
+ background-image:url(img/waku_sq.gif);
+ background-repeat:repeat-y;
+}
+
+td#ttl{
+ background-image:url(../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:100%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+.ttl{
+ background-image:url(../img/list.gif);
+ background-repeat:no-repeat;
+ font-weight: bold;
+ font-size: 14px;
+ font-style: normal;
+ line-height:110%;
+ padding-top:0px;
+ padding-left:20px;
+}
+
+
+td#mytbl {
+ font-size: 11px;
+ color: #333333;
+ line-height:130%;
+}
+
+
+td#myttl {
+ font-size: 13px;
+ font-weight: bold;
+ color: #666633;
+ line-height:120%;
+}
+
+
+td#hani {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#CC0000;
+ width:200px;
+}
+
+
+td#diary {
+ font-size: 13px;
+ font-weight: bold;
+ color: #FFFFFF;
+ line-height:120%;
+ background-color:#99CC33;
+}
+
+td#diary2 {
+ font-size: 12px;
+ font-weight: normal;
+ color: #000000;
+ line-height:120%;
+ background-color:#99CC33;
+ text-align:right;
+}
+
+td#diary3 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEF7DB;
+}
+
+td#diary4 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#EEEEEE;
+}
+
+td#diary5 {
+ font-size: 14px;
+ font-weight: bold;
+ color: #333333;
+ line-height:130%;
+ background-color:#FFFFFF;
+}
+
+td#diary6 {
+ font-size: 13px;
+ font-weight: normal;
+ color: #000000;
+ line-height:130%;
+ background-color:#FFFFFF;
+ padding-bottom:15px;
+}
+.mydiary
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+ color:#FF6600;
+}
+
+/* ¥Õ¥©¥ó¥È¥µ¥¤¥º ----------------------------------- */
+
+.css10
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.css11
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+
+.css12
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+
+.css12_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.css13
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal
+}
+
+.css13_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.css14
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal
+}
+
+.css14_150
+{
+ FONT-WEIGHT: normal;
+ FONT-SIZE: 14px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+.bo10
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 10px;
+ FONT-STYLE: normal
+}
+.bo11
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 11px;
+ FONT-STYLE: normal
+}
+.bo12
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 12px;
+ FONT-STYLE: normal
+}
+.bo13
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+}
+
+.bo13_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 13px;
+ FONT-STYLE: normal;
+ line-height:150%;
+
+}
+
+.bo14
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:100%;
+}
+
+.bo14_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 15px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+.bo20_150
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 20px;
+ FONT-STYLE: normal;
+ line-height:150%;
+}
+
+
+/* ¥¢¥ó¥«¡¼¥¿¥° ----------------------------------- */
+
+
+A
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:visited
+{
+ COLOR: #333333;
+ text-decoration: none;
+ font-size: 13px;
+}
+A:hover
+{
+ COLOR: #333333;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.head
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:visited
+{
+ COLOR: #555555;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.head:hover
+{
+ COLOR: #CC0000;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+ padding-left:9px;
+}
+A.ichiran:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+A.ichiran3
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 13px;
+}
+A.ichiran3:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 13px;
+}
+
+
+A.ichiran2
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+ padding-left:9px;
+}
+A.ichiran2:visited
+{
+ COLOR: #0066FF;
+ text-decoration: none;
+ font-size: 11px;
+}
+A.ichiran2:hover
+{
+ COLOR: #0066FF;
+ text-decoration: underline;
+ font-size: 11px;
+}
+/* Á´¥Õ¥©¡¼¥à, xmp */
+form, xmp {
+ margin: 0px;
+}
+
+/* Á´¥Æ¡¼¥Ö¥ë */
+table {
+ font-size: 10pt;
+}
+
+/* Á´hr */
+hr {
+ color: #000000;
+ height: 1px;
+}
+
+/****************************************************************/
+/* ¥¿¥¤¥È¥ë
+/****************************************************************/
+
+/* ¥¿¥¤¥È¥ë¾åÉô */
+div.acs_top_banner {
+ color: #000000;
+ background-color: #ccffcc;
+ font-size: 20pt;
+ font-family: Verdana;
+ border: solid 1px #005500;
+ padding: 3px;
+ margin-bottom: 10px;
+}
+
+/* ¥á¥¤¥ó¥¿¥¤¥È¥ë */
+div.main_title {
+ font-size: 15pt;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+
+/* ¥µ¥Ö¥¿¥¤¥È¥ë */
+span.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+div.sub_title {
+ color: #00aa00;
+ font-size: 12pt;
+ font-weight: bold;
+}
+
+/* ¥µ¥Ö¥µ¥Ö¥¿¥¤¥È¥ë */
+div.subSub_title {
+ color: #00aa00;
+ font-size: 11pt;
+ font-weight: bold;
+}
+
+
+/****************************************************************/
+/* ¥á¥¤¥ó
+/****************************************************************/
+
+/* ¥á¥¤¥ó */
+div.main {
+ color: #000000;
+ background-color: #ffffff;
+ border: solid 1px #555555;
+ padding: 10px;
+}
+
+/****************************************************************/
+/* ¥Æ¡¼¥Ö¥ë
+/****************************************************************/
+
+/* ¥ì¥¤¥¢¥¦¥ÈÍÑ(ÏÈÀþ¤òɽ¼¨¤·¤Ê¤¤) */
+table.layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.layout_table td {
+ padding: 0px;
+}
+
+
+/* ¶¦Ḁ̈ơ¼¥Ö¥ë */
+table.common_table {
+ padding: 3px;
+}
+
+table.common_table td {
+ padding: 3px;
+}
+
+/* ¥Þ¥¤¥Õ¥ì¥ó¥º¡¦¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷ */
+TABLE.mylist_table {
+ padding: 0px;
+ margin: 1px;
+ border-collapse: collapse;
+}
+
+TABLE.mylist_table td.mlttl {
+ padding: 5px;
+ border: 1px solid #8882ff;
+ background-color:#d9e0ff;
+}
+
+TABLE.mylist_table td.mltd {
+ border: 1px solid #8882ff;
+ background-color:#FFFFFF;
+}
+
+/* ¸ø³«ÈÏ°Ï */
+table.open_level_table {
+ background-color: #dddddd;
+ padding: 0px;
+}
+
+table.open_level_table td {
+ padding: 0px;
+}
+
+
+/* BBS¥Æ¡¼¥Ö¥ë */
+table.bbs_table td {
+ padding: 3px;
+}
+
+table.bbs_table td.head {
+ padding: 0px;
+}
+
+
+/* ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.file_list_table td {
+ padding: 1px;
+}
+
+/*
+table.file_list_table a {
+ text-decoration: none;
+}
+*/
+
+/* ¥¹¥±¥¸¥å¡¼¥ë¥ê¥¹¥È¥Æ¡¼¥Ö¥ë */
+table.schedule_list_table td {
+ padding: 1px;
+}
+
+
+/* ¥³¥ß¥å¥Ë¥Æ¥£(·Ç¼¨ÈÄ,²ñµÄ¼¼)¥Æ¡¼¥Ö¥ë */
+table.community_table td {
+ padding: 5px;
+}
+
+
+/* ÆâÉô¥ì¥¤¥¢¥¦¥È¥Æ¡¼¥Ö¥ë */
+table.inner_layout_table {
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+table.inner_layout_table td {
+ padding: 0px;
+}
+
+/* ³Îǧ¥Æ¡¼¥Ö¥ë */
+table.confirm_table {
+ border: 1;
+ padding: 3px;
+ border-color: #FFFFFF;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¹àÌÜ */
+colgroup.required{
+ background-color: #CCFFCC;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡ÆþÎÏÃÍ */
+colgroup.value {
+ background-color: #CCCC99;
+ width: 400px;
+}
+/* ³Îǧ¥Æ¡¼¥Ö¥ë¡¡¤·¤¤ê */
+colgroup.partition {
+ background-color: #FFFFFF;
+}
+
+/* ¥·¥¹¥Æ¥àÀßÄê¡¡¥°¥ë¡¼¥×̾ */
+th.system_config_th {
+ background-color: #DEEEBD;
+ text-align: left;
+}
+
+
+/* ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¥Æ¡¼¥Ö¥ë */
+table.system_announce_table {
+}
+
+table.system_announce_table td {
+ padding: 3px;
+ background-color: #eeffee;
+ border: solid 1px #000000;
+}
+
+/****************************************************************/
+/* ¥Õ¥©¡¼¥à¹àÌÜ
+/****************************************************************/
+
+input.yesno_button {
+ width: 60px;
+}
+
+
+/****************************************************************/
+/* ¾
+/****************************************************************/
+
+
+/* Note */
+table.note_table {
+ background-color: #f4f4f4;
+ border-collacse: collacse;
+}
+
+table.note_table td {
+ border: dashed 1px #777799;
+ padding: 4px;
+}
+
+/* ¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤ */
+span.inactive {
+ color: #cccccc;
+}
+
+/* ºï½üºÑ¤ß */
+span.deleted_msg {
+ color: #ff0000;
+ background-color: #ffdddd;
+ font-weight: bold;
+ padding: 5px;
+}
+
+/* ɬ¿Ü¹àÌÜ */
+span.required {
+ color: #ff0000;
+}
+
+/* Ãí°Õ */
+span.notice {
+ color: #999999;
+}
+
+/* ¥³¥á¥ó¥È */
+span.comment {
+ color: #ff0000;
+}
+
+/* ¥Ú¡¼¥¸É½¼¨ */
+span.page_number {
+ padding-right: 0.1em;
+ padding-left: 0.1em;
+}
+
+/* ²þ¹Ô¤Ê¤· */
+.nowrap {
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ¥¨¥é¡¼ */
+span.err_msg {
+ color: #ff0000;
+}
+
+div.err_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ width: 40%;
+ padding : 0.5em;
+ border-width: 1px;
+ border-color: #aa5555;
+ border-style: dashed;
+ color: #ff0000;
+ background-color: #ffeeee;
+ word-break: keep-all;
+ white-space: nowrap;
+}
+
+/* ³Îǧ¥á¥Ã¥»¡¼¥¸ */
+div.confirm_msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ font-weight: bold;
+}
+
+div.msg {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+/* ¿·Ãå¼èÆÀ´ü´Ö */
+div.getdays {
+ color: #808080;
+ font-size:9pt;
+}
+
+/* ÆþÎϻٱç */
+span.support {
+ color: #5f9ea0;
+ font-size:8pt;
+}
+
+/* ·ë²Ì¤ÎÊó¹ð */
+span.result_success {
+ color: #ff0000;
+}
+
+img.pic {
+ margin-top: 10px;
+ margin-bottom: 5px;
+ border-style: none;
+}
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Academic Community System ´Ê°×ÍøÍѥޥ˥奢¥ë</title>
+<link rel="stylesheet" type="text/css" href="./style.css">
+<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
+</head>
+
+<body>
+<img src="./img/head.jpg">
+<p>°Ê²¼¤ÏACS¤Ë´Ø¤¹¤ëFAQ(¤è¤¯¤¢¤ë¼ÁÌä)¤È¡¢¤½¤ÎÅú¤¨¤Ç¤¹¡£</p>
+<ol>
+<li><a href="#faq01">ACS(Academic Community System)¤È¤Ï¡©</a></li>
+<li><a href="#faq02">ACS¤Ç¤Ç¤¤ë¤³¤È¤Ï¡©</a></li>
+<li><a href="#faq03">ACS¤ò½é¤á¤Æ»È¤¦¤È¤¤Ï¡©</a></li>
+<li><a href="#faq04">¥Þ¥¤¥Ú¡¼¥¸¤È¤Ï¡©</a></li>
+<li><a href="#faq05">¥Þ¥¤¥Ú¡¼¥¸¤Ç¤Ç¤¤ë¤³¤È¤Ï¡©</a></li>
+<li><a href="#faq06">Ãο͡¦Í§¿Í¤ò¥Þ¥¤¥Õ¥ì¥ó¥º¤ËÅÐÏ¿¤¹¤ë¤Ë¤Ï¡©</a></li>
+<li><a href="#faq07">¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤¹¤ë¤Ë¤Ï¡©</a></li>
+<li><a href="#faq08">¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¤Ë¤Ï¡©</a></li>
+<li><a href="#faq09">¥¢¥Ã¥×¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ò¹¹¿·¤¹¤ë¤Ë¤Ï¡©</a></li>
+</ol>
+<div class="faq1"><a name="#faq01"></a>
+<p class="bold">ACS(Academic Community System)¤È¤Ï¡©</p>
+<p>ACS¤Ï¡¢Ì¾¸Å²°Âç³ØÂç³Ø±¡¾ðÊó²Ê³Ø¸¦µæ²Ê¤Ç³«È¯¤µ¤ì¤¿¡¢Âç³Ø¸þ¤±¤ÎSNS(Social Networking System)¤Ç¤¹¡£
+SNS¤È¤Ï¡¢Web¾å¤Ç¼Ò¸ò¾ì¤È¤â¸Æ¤Ð¤ì¤Æ¤ª¤ê¡¢ÆüËܤǤÏmixi¤äGREE¤Ê¤É¤¬Í̾¤Ç¤¹¡£
+¾Ü¤·¤¯¤Ï¡Ö¥½¡¼¥·¥ã¥ë¥Í¥Ã¥È¥ï¡¼¥¥ó¥°¡×¤ò¸¡º÷¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
+</p><p>
+ACS¤ÎÆÃħ¤Ï¡¢¾·ÂÔÀ©¤Ç¤Ï¤Ê¤¯¡¢LDAP¤Î¹½À®°÷¤Ç¤¢¤ì¤Ðï¤Ç¤â»²²Ã¤Ç¤¤ë¤³¤È¤ä¡¢
+¥Õ¥¡¥¤¥ë¶¦Í¤Îµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¡¢Í§¿Í¤ò¥°¥ë¡¼¥×¤ËÀ°Íý¤·¤Æ¡¢Æüµ¤ä¥Õ¥¡¥¤¥ë¤Î±ÜÍ÷¤ÎÈϰϤòÀ©¸Â¤Ç¤¤ë¤³¤È¤Ê¤É¤¬¤¢¤ê¤Þ¤¹¡£
+</p>
+</div>
+<div class="faq2"><a name="#faq02"></a>
+<p class="bold">ACS¤Ç¤Ç¤¤ë¤³¤È¤Ï¡©</p>
+<p>
+ACS¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤³¤È¤¬²Äǽ¤Ç¤¹¡£
+</p>
+<ol>
+<li>ͧ¿Í(»ØƳ¶µ°÷¡¢ÀèÇÚ¡¢¸åÇڤʤɤâ´Þ¤à)¤È¤Î´Ö¤Ç¥ê¥ó¥¯¤¬ºî¤ì¤Þ¤¹¡£</li>
+<li>Æüµ(Blog)¤¬½ñ¤±¤Þ¤¹¡£</li>
+<li>¾¤Î¿Í¤ÎÆüµ¤¬Æɤá¤Þ¤¹¡£Í§¿Í¤ÎÆüµ¤Ï¿·Ã夬¤¢¤ë¤È¶µ¤¨¤Æ¤¯¤ì¤Þ¤¹¡£</li>
+<li>¾¤Î¿Í¤ÎÆüµ¤Ë¥³¥á¥ó¥È¤¬½ñ¤±¤Þ¤¹¡£</li>
+<li>¥Õ¥©¥ë¥À¤òºî¤Ã¤Æ¥Õ¥¡¥¤¥ë¤òÊݸ¤Ç¤¤Þ¤¹¡£¥Ð¡¼¥¸¥ç¥ó´ÉÍý¤â¤Ç¤¤Þ¤¹¡£</li>
+<li>¥Õ¥¡¥¤¥ë¤ò¾¤Î¿Í¤Ë¸ø³«¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢¹ÖµÁ¤Î»²¹Í»ñÎÁ¤òͧã¤È¶¦Í¤Ç¤¤Þ¤¹¡£</li>
+<li>¥³¥ß¥å¥Ë¥Æ¥£¤¬ºîÀ®¤Ç¤¤Þ¤¹¡£</li>
+<li>¥³¥ß¥å¥Ë¥Æ¥£¤Ë¤Ï¡¢·Ç¼¨ÈĤä¥Õ¥©¥ë¥À¤¬¤¢¤ê¡¢¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ç¶¦Í¤Ç¤¤Þ¤¹¡£</li>
+<li>¥³¥ß¥å¥Ë¥Æ¥£¤«¤é¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤¬¤Ç¤¤Þ¤¹¡£</li>
+</ol>
+<p>¤Þ¤À¤Þ¤À¾¤Ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢¸å¤Ï¼«Ê¬¤Çõ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£</p>
+</div>
+<div class="faq1"><a name="#faq03"></a>
+<p class="bold">ACS¤ò½é¤á¤Æ»È¤¦¤È¤¤Ï¡©</p>
+<p>ACS¤ò½é¤á¤ÆÍøÍѤµ¤ì¤ëÊý¤Ï¡¢°Ê²¼¤Î½ç¤ËÁàºî¤·¤Æ¤¯¤À¤µ¤¤¡£</p>
+<ol>
+<li><div>http://xxx.yyy.zz.jp/¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¡£</div></li>
+<li><div>ACS¤Î¥È¥Ã¥×¥Ú¡¼¥¸¤¬½Ð¤Þ¤¹¤Î¤Ç¡¢º¸¾å¤Ë¤¢¤ë¡Ö¥í¥°¥¤¥ó¡×¥ê¥ó¥¯¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£</div>
+<div><img src="./img/i1.jpg"></div></li>
+<li><div>¥í¥°¥¤¥ó¥¦¥£¥ó¥É¥¦¤Ë¥æ¡¼¥¶ID¤È¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ·OK¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£</div>
+<div><img src="./img/i2.jpg"></div></li>
+<li><div>½é¤á¤ÆACS¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤È5¤Î¤è¤¦¤Ê¥Ú¡¼¥¸¤Ë¤Ê¤ê¤Þ¤¹¡£(2²óÌܰʹߤÏ6¤ËÈô¤Ó¤Þ¤¹¡£)</div></li>
+<li><div>¥á¡¼¥ë¥¢¥É¥ì¥¹¤È¥Ë¥Ã¥¯¥Í¡¼¥à¤òÆþÎϤ·¡¢¡ÖOK¡×¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£ÆþÎϤ·¤¿¾ðÊó¤Ï¡¢¸å¤«¤é¤âÊѹ¹²Äǽ¤Ç¤¹¡£</div>
+<div><img src="./img/i3.jpg"></div>
+<div>¤Þ¤¿¡¢¸Ä¿Í¤Î¥×¥í¥Õ¥£¡¼¥ë¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¤Î¤Ç¡¢¤¼¤ÒµÆþ¤·¤Æ¤¯¤À¤µ¤¤¡£</div></li>
+<li><div>¥Þ¥¤¥Ú¡¼¥¸¤¬½Ð¤Þ¤¹¡£½é¤á¤Æ¥¢¥¯¥»¥¹¤·¤¿¿Í¤Ï¡¢¤â¤¦¾¯¤·¤µ¤Ó¤·¤¤²èÌ̤ˤʤë¤È»×¤¤¤Þ¤¹¡£
+ÃΤê¹ç¤¤¤òõ¤·¤Æ¡¢¡Ö¥Þ¥¤¥Õ¥ì¥ó¥º¡×¤Ë¤·¤¿¤ê¡¢¶½Ì£¤Î¤¢¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òõ¤·¤¿¤ê¤·¤Æ¡¢»²²Ã¤·¤Æ¤ß¤Æ¤Ï¤¤¤«¤¬¤Ç¤·¤ç¤¦¤«¡©</div>
+<div><img src="./img/i4.jpg"></div></li>
+</ol>
+</div>
+<div class="faq2"><a name="#faq04"></a>
+<p class="bold">¥Þ¥¤¥Ú¡¼¥¸¤È¤Ï¡©</p>
+<p>¥í¥°¥¤¥ó¸å¡¢½é¤á¤Ëɽ¼¨¤µ¤ì¤ë¥Ú¡¼¥¸¤Ç¤¹¡£¤³¤Î¥Ú¡¼¥¸¤¬ACS¾å¤Ç¤Î³èÆ°¤Îµ¯ÅÀ¤È¤Ê¤ê¤Þ¤¹¡£
+¥Þ¥¤¥Ú¡¼¥¸¤Ë¤Ï¡¢Í§¿Í¤ÎÆüµ¤ä¼«Ê¬¤¬Æþ¤Ã¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î·Ç¼¨ÈĹ¹¿·¾ðÊó¤Ê¤É¡¢ÍÍ¡¹¤Ê¾ðÊ󤬽¸Ìó¡¦É½¼¨¤µ¤ì¤Þ¤¹¡£</p>
+</div>
+<div class="faq1"><a name="#faq05"></a>
+<p class="bold">¥Þ¥¤¥Ú¡¼¥¸¤Ç¤Ç¤¤ë¤³¤È¤Ï¡©</p>
+<p>¥Þ¥¤¥Ú¡¼¥¸¤Ç¤ÏÍÍ¡¹¤Ê¤³¤È¤¬²Äǽ¤Ç¤¹¡£</p>
+
+<p>TOP¤Î¥ê¥ó¥¯¤ÏÁ´¤Æ¤Î¥Ú¡¼¥¸¤Ç¶¦Ä̤Ëɽ¼¨¤µ¤ì¤ë¤â¤Î¤Ç¤¹¡£</p>
+<ol>
+<li><div class="bold">¥Þ¥¤¥Ú¡¼¥¸</div>
+<div>¥Þ¥¤¥Ú¡¼¥¸¤Ø¤Î¥ê¥ó¥¯¤Ç¤¹¡£¤³¤ì¤ò²¡¤»¤Ð¥Þ¥¤¥Ú¡¼¥¸¤ËÌá¤ì¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥³¥ß¥å¥Ë¥Æ¥£</div>
+<div>¥³¥ß¥å¥Ë¥Æ¥£¤Î¸¡º÷¤äºîÀ®¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥æ¡¼¥¶¸¡º÷</div>
+<div>¥·¥¹¥Æ¥à¤Î¥æ¡¼¥¶¤ò¸¡º÷¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¿·Ãå¾ðÊó</div>
+<div>¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¾ðÊó¤ä¡¢¥æ¡¼¥¶¤ÎÆüµ¡¢¥³¥ß¥å¥Ë¥Æ¥£³èÆ°¤Ê¤É¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+</ol>
+
+<p>¥Þ¥¤¥Ú¡¼¥¸º¸Â¦¤Ë¤Ï°Ê²¼¤Î¥ê¥ó¥¯¤¬¤¢¤ê¤Þ¤¹¡£</p>
+<ol>
+<li><div class="bold">¥Þ¥¤¥À¥¤¥¢¥ê¡¼</div>
+<div>Æüµ/Blog¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Æüµ¤Ï¸ø³«ÈϰϤòÀßÄê²Äǽ¤Ç¤¹¡£</div></li>
+<li><div class="bold">¥Þ¥¤¥Õ¥©¥ë¥À</div>
+<div>¥Õ¥©¥ë¥À¤òºîÀ®¤·¡¢¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¼«Ê¬¤Î¥Õ¥©¥ë¥À¤ò¥³¥ß¥å¥Ë¥Æ¥£¤ËÂФ·¤Æ¸ø³«¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥Þ¥¤¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸</div>
+<div>¼«Ê¬¤Î¥×¥í¥Õ¥£¡¼¥ë¤òÊÔ½¸¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥Þ¥¤¥×¥í¥Õ¥£¡¼¥ë³Îǧ</div>
+<div>¾¤Î¿Í¤¬¼«Ê¬¤Î¥Ú¡¼¥¸¤ò¸«¤¿¤È¤¡¢¥×¥í¥Õ¥£¡¼¥ë¤¬¤É¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤ë¤«¤ò³Îǧ¤Ç¤¤Þ¤¹¡£</div></li>
+</ol>
+<p>¤Ê¤ª¡¢Â¾¤Î¿Í¤Î¥Ú¡¼¥¸¤«¤é¤Ï¡¢¤½¤Î¿Í¤Î¥À¥¤¥¢¥ê¡¼¤È¥Õ¥©¥ë¥À¤Ë¥¢¥¯¥»¥¹²Äǽ¤Ç¤¹¡£</p>
+
+<p>¥Þ¥¤¥Ú¡¼¥¸²¼Â¦¤Ë¤Ï¡¢°Ê²¼¤Î¥ê¥ó¥¯¤¬¤¢¤ê¤Þ¤¹¡£</p>
+<ol>
+<li><div class="bold">¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷</div>
+<div>¥Þ¥¤¥Õ¥ì¥ó¥º¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Í§¿Í¤Îͧ¿Í¤ò¥Þ¥¤¥Õ¥ì¥ó¥º¤ËÄɲ乤뤳¤È¤ä¡¢¥æ¡¼¥¶¸¡º÷¤Ç¸«¤Ä¤±¤¿¿Í¤ËÂФ·¡Ö¥Þ¥¤¥Õ¥ì¥ó¥º¤ØÄɲáץܥ¿¥ó¤ò²¡¤¹¤³¤È¤Ç¡¢¥Þ¥¤¥Õ¥ì¥ó¥º¤òÁý¤ä¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷</div>
+<div>¥Þ¥¤¥Õ¥ì¥ó¥º¤ò¥°¥ë¡¼¥×¤ËʬÎह¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î¥°¥ë¡¼¥×¤ò»È¤Ã¤Æ¡¢Æüµ¤ä¥Õ¥©¥ë¥À¤Ë¥¢¥¯¥»¥¹À©¸Â¤ò¤«¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£</div></li>
+<li><div class="bold">¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷</div>
+<div>¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î°ìÍ÷¤ò¤ß¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥³¥ß¥å¥Ë¥Æ¥£¤Ï¡¢¾å¤Î¥á¥Ë¥å¡¼¤«¤é¸¡º÷¤¹¤ë¤«¡¢¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤«¤é±ÜÍ÷²Äǽ¤Ç¤¹¡£
+¥³¥ß¥å¥Ë¥Æ¥£¤Ë¤è¤Ã¤Æ¤Ï¡¢¼«Í³¤Ë»²²Ã¤Ç¤¤ë¤â¤Î¤ä¾·ÂÔÀ©¤Î¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£</div></li>
+</ol>
+</div>
+<div class="faq2"><a name="#faq06"></a>
+<p class="bold">Ãο͡¦Í§¿Í¤ò¥Þ¥¤¥Õ¥ì¥ó¥º¤ËÅÐÏ¿¤¹¤ë¤Ë¤Ï¡©</p>
+<p>ͧ¿Í¤äÃοͤò¥Þ¥¤¥Õ¥ì¥ó¥º¤ËÅÐÏ¿¤¹¤ë»þ¤Ï¡¢°Ê²¼¤ÎÁàºî¤ò¹Ô¤¤¤Þ¤¹¡£</p>
+<ol>
+<li>¾å¤Î¥á¥Ë¥å¡¼¤Î¡Ö¥æ¡¼¥¶¸¡º÷¡×¤òÁª¤ÓÃο͡¦Í§¿Í¤Î̾Á°¤ä½ê°¤òÆþ¤ì¤Æ¸¡º÷¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¸¡º÷·ë²Ì¤«¤é¡¢Ãο͡¦Í§¿Í¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>ÂоݤȤʤë¿Í¤Î¥Ú¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¥Ú¡¼¥¸Ãæ±û¾å¤Ë¤¢¤ë¡¢¡Ö¥Þ¥¤¥Õ¥ì¥ó¥º¤ØÄɲáץܥ¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¤³¤ì¤Ç¡¢Äɲÿ½ÀÁ¤¬Áê¼ê¤ËÆϤ¤Þ¤¹¡£Áê¼ê¤¬¾µÇ§¤ò¤¹¤ì¤Ð¡¢Áê¸ß¤Ë¥Þ¥¤¥Õ¥ì¥ó¥º¤È¤·¤ÆÅÐÏ¿¤µ¤ì¤Þ¤¹¡£</li>
+</ol>
+</div>
+<div class="faq1"><a name="#faq07"></a>
+<p class="bold">¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤¹¤ë¤Ë¤Ï¡©</p>
+<p>´û¸¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Ø»²²Ã¤¹¤ë¾ì¹ç¤Ï¡¢°Ê²¼¤ÎÁàºî¤ò¹Ô¤¤¤Þ¤¹¡£</p>
+<ol>
+<li>¾å¤Î¥á¥Ë¥å¡¼¤Î¡Ö¥³¥ß¥å¥Ë¥Æ¥£¡×¤òÁªÂò¤·¤Þ¤¹¡£</li>
+<li>¥¡¼¥ï¡¼¥ÉÅù¤Ç¸¡º÷¤·¤Æ¡¢»²²Ã¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òõ¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¥³¥ß¥å¥Ë¥Æ¥£¤òÁªÂò¤¹¤ë¤È¡¢¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤Ø¥¸¥ã¥ó¥×¤·¤Þ¤¹¡£¤½¤³¤«¤é¡¢¡Ö¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤¹¤ë¡×¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¤³¤ì¤Ç¡¢ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£¤Ø»²²Ã¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤Ê¤ª¡¢´ÉÍý¼Ô¤Î¾µÇ§¤¬É¬Íפʥ³¥ß¥å¥Ë¥Æ¥£¤Î¾ì¹ç¤Ï¡¢´ÉÍý¼Ô¤¬»²²Ã¤ò¾µÇ§¤¹¤ë¤Þ¤Ç¤Ï¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Î»²²Ã½èÍý¤¬¤µ¤ì¤Þ¤»¤ó¡£</li>
+</ol>
+</div>
+<div class="faq2"><a name="#faq08"></a>
+<p class="bold">¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¤Ë¤Ï¡©</p>
+<p>¼«Ê¬¤¬»²²Ã¤·¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë»þ¤Ï¡¢°Ê²¼¤Î¤è¤¦¤ËÁàºî¤·¤Þ¤¹¡£</p>
+<ol>
+<li>¥Þ¥¤¥Ú¡¼¥¸±¦²¼¤«¤é³ºÅö¥³¥ß¥å¥Ë¥Æ¥£¤òÁª¤ó¤Ç¤¯¤À¤µ¤¤¡£</li>
+<li>¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Îº¸Â¦¥á¥Ë¥å¡¼¤«¤é¡Ö¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¡×¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¤³¤Î²èÌ̤ǥե¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É/¥¢¥Ã¥×¥í¡¼¥É¤Ç¤¤Þ¤¹¡£°ìÈÌŪ¤Ë¤Ï¡¢¤Þ¤º¡¢¥Õ¥©¥ë¥À¤òºî¤Ã¤Æ¤¯¤À¤µ¤¤¡£¡Ö¥Õ¥©¥ë¥ÀºîÀ®¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£</li>
+<li>¥Õ¥©¥ë¥À̾¤òÆþ¤ì¤Æ¡¢¸ø³«ÈϰϤòÀßÄꤷ¤Þ¤¹¡£</li>
+<li>ºîÀ®¤·¤¿¥Õ¥©¥ë¥À̾¤ò¥¯¥ê¥Ã¥¯¤·¡¢¥Õ¥©¥ë¥À¤ò°ÜÆ°¤·¤Þ¤¹¡£¤½¤Î¸å¡¢¡Ö»²¾È¡×¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£</li>
+<li>¡Ö¥¢¥Ã¥×¥í¡¼¥É¡×¤Ç¥Õ¥¡¥¤¥ë¤ò¼ÂºÝ¤ËžÁ÷¤·¤Þ¤¹¡£¾ÜºÙ¤Ê¾ðÊó¤òÅÐÏ¿¤¹¤ë¾ì¹ç¤Ï¡Ö¾ÜºÙÆþÎϡפ«¤é¾ðÊóÆþÎϤǤ¤Þ¤¹¡£</li>
+</ol>
+</div>
+<div class="faq1"><a name="#faq09"></a>
+<p class="bold">¥¢¥Ã¥×¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ò¹¹¿·¤¹¤ë¤Ë¤Ï¡©</p>
+<p>¥Þ¥¤¥Õ¥©¥ë¥À¤ä¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥ÀÆâ¤Ç¡¢¥Õ¥¡¥¤¥ë̾¤Î²£¤Ë¤¢¤ë¡Ö¾ÜºÙ¡×¤òÁªÂò¤¹¤ë¤È¡¢¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊó¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
+¤³¤Î²èÌ̤ǡ¢¡Ö¥Õ¥¡¥¤¥ë¹¹¿·¡×¤ò²¡¤¹¤È¡¢¿·¤¿¤Ë¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É(¹¹¿·)¤Ç¤¤Þ¤¹¡£</p>
+</div>
+</body>
+</html>
--- /dev/null
+body,th,td {
+ background-color: #ffffff;
+ font-size: smaller;
+ color: #333333;
+ font-family:Geneva, Arial, Helvetica, verdana, "\e$B%R%i%.%N3Q%4\e(B Pro W3","MS \e$B%4%7%C%/\e(B","\e$B#M#S\e(B \e$B#P%4%7%C%/\e(B", Osaka , sans-serif;
+}
+blockquote {
+ margin-left: 8px;
+ margin-right: 8px;
+ padding: 5px;
+}
+li {
+ margin-top: 15px;
+ margin-bottom: 15px;
+}
+a:link {
+ color: #996699;
+}
+.menu {
+ color: #666699;
+}
+.state {
+ color: #669966;
+ background-color: #eeeeee;
+}
+.cmenu {
+ color: #336699;
+}
+.menuarea {
+ background-color: #669933;
+ height: 550px;
+}
+.welcomearea {
+ background-color: #888888;
+}
+.welcome {
+ background-color: #eeeeee;
+}
+.title {
+ font-weight: bold;
+ background-image: url(img/t_ch.gif);
+ background-repeat: no-repeat;
+}
+.title3 {
+ font-size: larger;
+ padding-top: 35px;
+}
+.title2 {
+ font-size: larger;
+}
+.title4 {
+ font-size: larger;
+ text-align: center;
+ padding: 1ex;
+}
+.titletxt {
+ color: #3366aa;
+}
+.indextxt {
+ font-weight: bold;
+ color: #666666;
+}
+.mark {
+ color: #bbbbbb;
+}
+.pageline {
+ background-color: #669900;
+}
+.bold {
+ font-weight: bold;
+}
+.underline {
+ text-decoration: underline;
+}
+.tb {
+ background-color: #666666;
+}
+.editorial {
+ font-style: italic;
+ font-weight: bold;
+ color: #ff0000;
+ text-decoration: underline;
+}
+.splist {
+ padding: 1ex;
+}
+.legalblock {
+ padding-top: 1ex;
+ padding-bottom: 1ex;
+ padding-right: 33px;
+ padding-left: 2px;
+}
+.clist {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+.clist2 {
+ margin-left: 30px;
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+.faq1 {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ padding-top: 0px;
+ padding-bottom: 0px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border-color: #000000;
+ border-style: solid;
+ border-width: 1px;
+ background-color: #ffffff;
+}
+.faq2 {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ padding-top: 0px;
+ padding-bottom: 0px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border-color: #000000;
+ border-style: solid;
+ border-width: 1px;
+ background-color: #eeeeee;
+}
+.rlink {
+ margin-top: 25px;
+ margin-bottom: 10px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: #eeeeee;
+}
+.linklist1 {
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+.linklist2 {
+ margin-left: 1em;
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+.inquiries {
+ padding-top: 1ex;
+}
--- /dev/null
+<?php
+// $Id: index.php,v 2.0 2009/06/25 11:00:00 acs Exp $
+
+chdir(dirname(__FILE__) . '/login');
+require('index_login.php');
+
+?>
\ No newline at end of file
--- /dev/null
+<!--
+function MM_swapImgRestore() { //v3.0
+ var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
+}
+
+function MM_preloadImages() { //v3.0
+ var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
+ var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
+ if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
+}
+
+function MM_findObj(n, d) { //v4.0
+ var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
+ d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
+ if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
+ for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
+ if(!x && document.getElementById) x=document.getElementById(n); return x;
+}
+
+function MM_swapImage() { //v3.0
+ var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
+ if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
+}
+
+function MM_reloadPage(init) { //reloads the window if Nav4 resized
+ if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
+ document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
+ else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
+}
+MM_reloadPage(true);
+
+
+
+function winopen(url) {
+ newwin = window.open(url,'win','scrollbars=yes,resizable=no,menubar=no,width=550,height=550')
+ newwin.focus();
+}
+
+
+//-->
--- /dev/null
+<?php
+// $Id: index.php,v 2.0 2009/06/25 11:00:00 acs Exp $
+require_once("./index_login.php");
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// $Id: index_login.php,v 2.0 2009/06/25 11:00:00 acs Exp $
+
+// +---------------------------------------------------------------------------+
+// | An absolute filesystem path to our webapp/config.php script. |
+// +---------------------------------------------------------------------------+
+require_once("../../webapp/config.php");
+
+// +---------------------------------------------------------------------------+
+// | An absolute filesystem path to the mojavi/mojavi.php script. |
+// +---------------------------------------------------------------------------+
+require_once(MO_APP_DIR . "/mojavi.php");
+require_once(MO_WEBAPP_DIR . "/lib/acs_define.php");
+require_once(MO_PEAR_DIR . '/DB.php');
+
+// +---------------------------------------------------------------------------+
+// | Create our controller. For this file we're going to use a front |
+// | controller pattern. This pattern allows us to specify module and action |
+// | GET/POST parameters and it automatically detects them and finds the |
+// | expected action. |
+// +---------------------------------------------------------------------------+
+$controller = Controller::newInstance('FrontWebController');
+
+// +---------------------------------------------------------------------------+
+// | Dispatch our request. |
+// +---------------------------------------------------------------------------+
+$controller->dispatch();
+?>
--- /dev/null
+----------------------------------------------------------------
+-- akademikkukomyuniteishisutemu
+-- $Id: master_en.sql,v 1.8 2007/03/28 05:58:09 w-ota Exp $
+----------------------------------------------------------------
+
+
+-- toranzakushonkaishi
+BEGIN;
+
+
+--------------------------------
+-- masuta
+--------------------------------
+
+-- komyuniteishubetsumasuta
+CREATE TABLE community_type_master_en (
+ community_type_code CHAR(2) NOT NULL, -- komyuniteishubetsuko^do (P)
+ community_type_name TEXT NOT NULL, -- komyuniteishubetsumei
+ CONSTRAINT community_type_master_en_pkey1 PRIMARY KEY (community_type_code)
+);
+
+COPY community_type_master_en FROM stdin;
+10 My Page
+20 My Friends
+30 My Friends Group
+40 Community
+\.
+
+-- komyuniteimenbashubetsumasuta
+CREATE TABLE community_member_type_master_en (
+ community_member_type_code CHAR(2) NOT NULL, -- komyuniteishubetsuko^do (P)
+ community_member_type_name TEXT NOT NULL, -- komyuniteishubetsumei
+ CONSTRAINT community_mmb_type_mst_en_pk PRIMARY KEY (community_member_type_code) -- 31mojiseigen
+);
+
+COPY community_member_type_master_en FROM stdin;
+10 Administrator
+20 Member
+\.
+
+-- kategoriguru^pumasuta
+CREATE TABLE category_group_master_en (
+ category_group_code CHAR(4) NOT NULL, -- kategoriguru^puko^do (P)
+ category_group_name TEXT NOT NULL, -- kategoriguru^pumei
+ CONSTRAINT category_group_master_en_pkey PRIMARY KEY (category_group_code)
+);
+
+-- kategorimasuta
+CREATE TABLE category_master_en (
+ category_code CHAR(4) NOT NULL, -- kategoriko^do (P)
+ category_name TEXT NOT NULL, -- kategorimei
+ category_group_code CHAR(4) NOT NULL, -- kategoriguru^puko^do (F)
+ CONSTRAINT category_master_en_pkey PRIMARY KEY (category_code),
+ CONSTRAINT category_master_en_fkey1 FOREIGN KEY (category_group_code) REFERENCES category_group_master_en (category_group_code)
+);
+
+-- kontentsushubetsumasuta
+CREATE TABLE contents_type_master_en (
+ contents_type_code CHAR(2) NOT NULL, -- kontentsushubetsuko^do (P)
+ contents_type_name TEXT NOT NULL, -- kontentsushubetsumei
+ CONSTRAINT contents_type_master_en_pkey PRIMARY KEY (contents_type_code)
+);
+
+COPY contents_type_master_en FROM stdin;
+00 Self
+01 Name
+02 Mail Address
+03 Affiliation
+04 Major
+05 Place of Birth
+06 Date of Birth
+07 Profile
+08 Login User Profile
+09 Friend Profile
+11 My Friends
+21 Diary
+31 Folder
+32 Folder/Folder
+33 File
+41 Bulletin Board
+42 Bulletin Board Thread
+43 Private Community Bulletin Board Thread
+51 mail_lang
+52 Last Login
+53 My Page Design
+61 Community ML Address
+62 Community ML Status
+63 External RSS URL
+64 External RSS Post User
+65 External RSS ML Send Flag
+66 External RSS Public Release Term
+\.
+
+-- CREATE INDEX contents_type_master_en_index1 ON contents_type_master_en (contents_type_name);
+
+-- koukaireberumasuta
+CREATE TABLE open_level_master_en (
+ open_level_code CHAR(2) NOT NULL, -- koukaireberuko^do (P)
+ open_level_name TEXT NOT NULL, -- koukaireberumei
+ open_for_public BOOLEAN NOT NULL, -- ippanyu^zanikoukai
+ open_for_user BOOLEAN NOT NULL, -- roguinyu^zanikoukai
+ open_for_member BOOLEAN NOT NULL, -- menbanikoukai
+ open_for_administrator BOOLEAN NOT NULL, -- kanrisha(honninyakomyuniteikanrisha)nikoukai
+ open_for_system_administrator BOOLEAN NOT NULL, -- shisutemukanrishanikoukai
+ CONSTRAINT open_level_master_en_pkey PRIMARY KEY (open_level_code)
+);
+
+COPY open_level_master_en FROM stdin;
+01 Open to General Public t t t t t
+02 Open to Logged in Users f t t t t
+03 Private f f f t t
+04 Private (Members Only) f f t t t
+05 Open to Friends f f t t t
+06 Public Release t t t t t
+\.
+
+-- taikishubetsumasuta
+CREATE TABLE waiting_type_master_en (
+ waiting_type_code CHAR(2) NOT NULL, -- taikishubetsuko^do (P)
+ waiting_type_name TEXT NOT NULL, -- taikishubetsumei
+ CONSTRAINT waiting_type_master_en_pkey PRIMARY KEY (waiting_type_code)
+);
+
+COPY waiting_type_master_en FROM stdin;
+10 Add to My Friends
+20 Add to Community
+30 Invite to Community
+40 Add Parent Community
+50 Add Sub Community
+\.
+
+-- taikijoutaimasuta
+CREATE TABLE waiting_status_master_en (
+ waiting_status_code CHAR(2) NOT NULL, -- taikijoutaiko^do (P)
+ waiting_status_name TEXT NOT NULL, -- taikijoutaimei
+ CONSTRAINT waiting_status_master_en_pkey PRIMARY KEY (waiting_status_code)
+);
+
+COPY waiting_status_master_en FROM stdin;
+10 Approval Pending
+20 Approved
+30 Rejected
+\.
+
+-- fairushuruimasuta
+CREATE TABLE file_category_master_en (
+ file_category_code CHAR(4) NOT NULL, -- fairushuruiko^do (P)
+ file_category_name TEXT NOT NULL, -- fairushuruimei
+ CONSTRAINT file_category_master_en_pkey PRIMARY KEY (file_category_code)
+);
+
+COPY file_category_master_en FROM stdin;
+0000 Not Specified
+0001 Article
+0002 Presentation
+0003 Picture
+0004 Movie
+\.
+
+-- fairukontentsushubetsumasuta
+CREATE TABLE file_contents_type_master_en (
+ file_contents_type_code CHAR(4) NOT NULL, -- fairukontentsushubetsuko^do (P)
+ file_contents_type_name TEXT NOT NULL, -- fairukontentsushubetsumei
+ CONSTRAINT file_contents_type_mst_en_pkey PRIMARY KEY (file_contents_type_code)
+);
+
+COPY file_contents_type_master_en FROM stdin;
+0001 Author
+0002 Title
+0003 Journal/Association
+0004 Volume Number
+0005 Page (from)
+0006 Page (to)
+0007 Date of Announcement/Publication
+0008 Language
+0009 Venue
+0010 Publisher
+0011 Article Type
+0012 Remarks
+\.
+
+-- fairurirekisousamasuta
+CREATE TABLE file_history_operation_master_en (
+ file_history_operation_code CHAR(4) NOT NULL, -- fairurirekisousako^do (P)
+ file_history_operation_name TEXT NOT NULL, -- fairurirekisousamei
+ CONSTRAINT file_history_ope_mst_en_pkey PRIMARY KEY (file_history_operation_code) -- 31mojiseigen: operation (kigou) ope totanshuku
+);
+
+COPY file_history_operation_master_en FROM stdin;
+0101 New
+0201 Refresh
+0301 Revive
+\.
+
+-- shisutemusetteiguru^pu
+CREATE TABLE system_config_group_en (
+ system_config_group_code CHAR(2) NOT NULL, -- guru^puko^do (P)
+ system_config_group_name TEXT NOT NULL, -- guru^pumei
+ display_order INTEGER NOT NULL, -- hyoujijunjo
+ CONSTRAINT system_config_group_en_pkey PRIMARY KEY (system_config_group_code)
+);
+
+COPY system_config_group_en FROM stdin;
+01 System 1
+02 My Page 2
+03 Community 3
+04 Graphics File 4
+05 Ranking 5
+06 Public Release 6
+07 Log 7
+\.
+
+
+
+-- kategoriguru^pumasuta
+COPY category_group_master_en FROM stdin;
+0001 Research
+0002 Education
+0003 Field
+0004 Occupation
+0005 Club/Circle
+0006 Interest/Pastime
+0007 Other
+\.
+
+-- kategorimasuta
+COPY category_master_en FROM stdin;
+0001 Laboratory 0001
+0002 Research Group 0001
+0003 Study Group 0001
+0004 Collaborative Research 0001
+0005 Project 0001
+0006 Seminar 0001
+0007 Academic Association 0001
+0008 Symposium 0001
+0009 Research Association 0001
+0010 Workshop 0001
+0011 Lecture 0002
+0012 Special Lecture 0002
+0013 Lifelong Education 0002
+0014 Hardware 0003
+0015 Software 0003
+0016 Network 0003
+0017 Database 0003
+0018 Algorithm 0003
+0019 Speech Processing 0003
+0020 Graphical/Image Processing 0003
+0021 Media Processing 0003
+0022 Pattern Information Processing 0003
+0023 Fundamental Mathematics 0003
+0024 Mathematical Model 0003
+0025 Computation Theory 0003
+0026 Integrated System 0003
+0027 Logical Circuit 0003
+0028 Installed System 0003
+0029 Operating System 0003
+0030 System Control 0003
+0031 Programming 0003
+0032 Natural Language Processing 0003
+0033 Security 0003
+0034 Knowledge Information Processin 0003
+0035 Biological Information Processi 0003
+0036 Mobile 0003
+0037 Ubiquitous 0003
+0038 Healthcare 0003
+0039 Welfare 0003
+0040 Communication 0003
+0041 Grid 0003
+0042 Cognitive Science 0003
+0043 Media Application 0003
+0044 Simulation 0003
+0045 multiple degree of freedom syst 0003
+0046 Material Information 0003
+0047 Life Information 0003
+0048 Large Dimension Computing 0003
+0049 General Medical 0003
+0050 General Science 0003
+0051 General Biology 0003
+0052 General Physics 0003
+0053 Information Model 0003
+0054 Decentralized Coordination 0003
+0055 Intellectual Assistance 0003
+0056 Information Design 0003
+0057 Philosophy/Ethics 0003
+0058 General Education 0003
+0059 Language 0003
+0060 Education 0003
+0061 Psychology 0003
+0062 Economy 0003
+0063 Literature 0003
+0064 Law 0003
+0065 Society 0003
+0066 Health and Healthcare 0003
+0067 Undergraduate School 0004
+0068 School 0004
+0069 Graduate School 0004
+0070 Major 0004
+0071 Course 0004
+0072 Committee 0004
+0073 Humanities 0005
+0074 Sports 0005
+0075 Book/Author 0006
+0076 Music/Artist 0006
+0077 Movie/TV/Animation/Movie Star 0006
+0078 Game 0006
+0079 Car/Bike 0006
+0080 Travel 0006
+0081 Internet/Computer 0006
+0082 Food/Restaurant 0006
+0083 Fashion 0006
+0084 Pet/Animal 0006
+0085 Sports/Outdoors 0006
+0086 Qualifications/Certificates 0006
+0087 General Interest/Pastime 0006
+0088 Other 0007
+\.
+
+
+----------------------------------------------------
+-- ´Ø¿ô: TIMESTAMP¤òYYYY/MM/DD(wday) H:MM¤ËÊÑ´¹¤¹¤ë
+-- $1:
+-- YYYY/MM/DD => 2005/01/02
+-- FMMM/FMDD => 1/2
+-- $2:
+-- FMHH24:MI:SS => 1:02:03
+-- FMHH24:MI => 1:02
+----------------------------------------------------
+CREATE FUNCTION acs_convert_timestamp_en(TIMESTAMP, TEXT, TEXT)
+RETURNS TEXT AS '
+ SELECT
+ to_char($1, $2 || ''('' || jday || '') '' || $3)::TEXT
+ FROM
+ (SELECT
+ CASE
+ WHEN wday = ''1'' THEN ''Sun''
+ WHEN wday = ''2'' THEN ''Mon''
+ WHEN wday = ''3'' THEN ''Tue''
+ WHEN wday = ''4'' THEN ''Wed''
+ WHEN wday = ''5'' THEN ''Thu''
+ WHEN wday = ''6'' THEN ''Fri''
+ WHEN wday = ''7'' THEN ''Sat''
+ END AS jday
+ FROM
+ (SELECT to_char($1, ''D'') AS wday) AS dummy1
+ ) AS dummy2
+' LANGUAGE 'sql';
+
+
+COMMIT;
+
+
+----------------------------------------------------------------
+
+
+-- EOF
--- /dev/null
+----------------------------------------------------------------
+-- ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à
+-- $Id: setup.sql,v 1.77 2007/03/30 05:08:15 w-ota Exp $
+----------------------------------------------------------------
+
+
+-- ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó³«»Ï
+BEGIN;
+
+
+--------------------------------
+-- ¥Þ¥¹¥¿
+--------------------------------
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+CREATE TABLE community_type_master (
+ community_type_code CHAR(2) NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É (P)
+ community_type_name TEXT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ̾
+ CONSTRAINT community_type_master_pkey1 PRIMARY KEY (community_type_code)
+);
+
+COPY community_type_master FROM stdin;
+10 ¥Þ¥¤¥Ú¡¼¥¸
+20 ¥Þ¥¤¥Õ¥ì¥ó¥º
+30 ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+40 ¥³¥ß¥å¥Ë¥Æ¥£
+\.
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+CREATE TABLE community_member_type_master (
+ community_member_type_code CHAR(2) NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É (P)
+ community_member_type_name TEXT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ̾
+ CONSTRAINT community_member_type_master_pk PRIMARY KEY (community_member_type_code) -- 31ʸ»úÀ©¸Â
+);
+
+COPY community_member_type_master FROM stdin;
+10 ´ÉÍý¼Ô
+20 ¥á¥ó¥Ð
+\.
+
+-- ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥Þ¥¹¥¿
+CREATE TABLE category_group_master (
+ category_group_code CHAR(4) NOT NULL, -- ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥³¡¼¥É (P)
+ category_group_name TEXT NOT NULL, -- ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×̾
+ CONSTRAINT category_group_master_pkey PRIMARY KEY (category_group_code)
+);
+
+-- ¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+CREATE TABLE category_master (
+ category_code CHAR(4) NOT NULL, -- ¥«¥Æ¥´¥ê¥³¡¼¥É (P)
+ category_name TEXT NOT NULL, -- ¥«¥Æ¥´¥ê̾
+ category_group_code CHAR(4) NOT NULL, -- ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥³¡¼¥É (F)
+ CONSTRAINT category_master_pkey PRIMARY KEY (category_code),
+ CONSTRAINT category_master_fkey1 FOREIGN KEY (category_group_code) REFERENCES category_group_master (category_group_code)
+);
+
+-- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+CREATE TABLE contents_type_master (
+ contents_type_code CHAR(2) NOT NULL, -- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P)
+ contents_type_name TEXT NOT NULL, -- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ̾
+ CONSTRAINT contents_type_master_pkey PRIMARY KEY (contents_type_code)
+);
+
+COPY contents_type_master FROM stdin;
+00 Á´ÂÎ
+01 »á̾
+02 ¥á¡¼¥ë¥¢¥É¥ì¥¹
+03 ½ê°
+04 À칶
+05 ½Ð¿È
+06 À¸Ç¯·îÆü
+07 ¥×¥í¥Õ¥£¡¼¥ë
+08 ¥×¥í¥Õ¥£¡¼¥ë_¥í¥°¥¤¥ó¥æ¡¼¥¶
+09 ¥×¥í¥Õ¥£¡¼¥ë_¥Õ¥ì¥ó¥É
+11 ¥Þ¥¤¥Õ¥ì¥ó¥º
+21 ¥À¥¤¥¢¥ê¡¼
+31 ¥Õ¥©¥ë¥À
+32 ¥Õ¥©¥ë¥À.¥Õ¥©¥ë¥À
+33 ¥Õ¥¡¥¤¥ë
+41 ÅŻҷǼ¨ÈÄ
+42 ÅŻҷǼ¨ÈÄ.¥¹¥ì¥Ã¥É
+43 ÅŻҷǼ¨ÈÄ.¥¹¥ì¥Ã¥É_Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£
+51 ¥á¡¼¥ë¸À¸ì
+52 ¥é¥¹¥È¥í¥°¥¤¥ó
+53 ¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥ó
+61 ¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹
+62 ¥³¥ß¥å¥Ë¥Æ¥£ML¥¹¥Æ¡¼¥¿¥¹
+63 ³°ÉôRSS.URL
+64 ³°ÉôRSS.Åê¹Æ¼Ô
+65 ³°ÉôRSS.MLÄÌÃÎ
+66 ³°ÉôRSS.¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹´ü´Ö
+\.
+
+-- CREATE INDEX contents_type_master_index1 ON contents_type_master (contents_type_name);
+
+-- ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿
+CREATE TABLE open_level_master (
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É (P)
+ open_level_name TEXT NOT NULL, -- ¸ø³«¥ì¥Ù¥ë̾
+ open_for_public BOOLEAN NOT NULL, -- °ìÈ̥桼¥¶¤Ë¸ø³«
+ open_for_user BOOLEAN NOT NULL, -- ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«
+ open_for_member BOOLEAN NOT NULL, -- ¥á¥ó¥Ð¤Ë¸ø³«
+ open_for_administrator BOOLEAN NOT NULL, -- ´ÉÍý¼Ô(Ëܿͤ䥳¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô)¤Ë¸ø³«
+ open_for_system_administrator BOOLEAN NOT NULL, -- ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ë¸ø³«
+ CONSTRAINT open_level_master_pkey PRIMARY KEY (open_level_code)
+);
+
+COPY open_level_master FROM stdin;
+01 °ìÈ̸ø³« t t t t t
+02 ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³« f t t t t
+03 Èó¸ø³« f f f t t
+04 Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß) f f t t t
+05 ͧ¿Í¤Ë¸ø³« f f t t t
+06 ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ t t t t t
+\.
+
+-- ¸ø³«¥ì¥Ù¥ë¥ê¥¹¥È (¥³¥ß¥å¥Ë¥Æ¥£¼ïÊ̤¬ÊÝ»ý¤¹¤ë¸ø³«¥ì¥Ù¥ë¤Î¥ê¥¹¥È)
+CREATE TABLE open_level_list (
+ community_type_code CHAR(2) NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É (P) (F)
+ contents_type_code CHAR(2) NOT NULL, -- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P) (F)
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É (P) (F)
+ display_order INTEGER NOT NULL, -- ɽ¼¨½ç½ø
+ is_default BOOLEAN NOT NULL DEFAULT 'f', -- ¥Ç¥Õ¥©¥ë¥ÈÃͤ«¤É¤¦¤«
+ CONSTRAINT open_level_list_pkey PRIMARY KEY (community_type_code, contents_type_code, open_level_code),
+ CONSTRAINT open_level_list_fkey1 FOREIGN KEY (community_type_code) REFERENCES community_type_master (community_type_code),
+ CONSTRAINT open_level_list_fkey2 FOREIGN KEY (contents_type_code) REFERENCES contents_type_master (contents_type_code),
+ CONSTRAINT open_level_list_fkey3 FOREIGN KEY (open_level_code) REFERENCES open_level_master (open_level_code)
+);
+
+COPY open_level_list FROM stdin;
+10 00 01 1 f
+10 00 03 2 t
+10 01 01 1 t
+10 01 02 2 f
+10 01 03 3 f
+10 02 03 0 t
+10 03 01 0 t
+10 04 01 0 t
+10 05 01 1 f
+10 05 02 2 t
+10 05 03 4 f
+10 05 05 3 f
+10 06 01 1 f
+10 06 02 2 t
+10 06 03 4 f
+10 06 05 3 f
+10 07 01 0 t
+10 08 02 0 t
+10 09 05 0 t
+10 11 01 1 t
+10 11 02 2 f
+10 21 01 1 f
+10 21 02 2 t
+10 21 05 3 f
+10 21 03 4 f
+10 31 01 1 f
+10 31 02 2 t
+10 31 05 3 f
+10 31 03 4 f
+10 32 01 1 f
+10 32 02 2 t
+10 32 05 3 f
+10 32 03 4 f
+10 51 01 1 t
+10 52 02 0 t
+10 53 03 0 t
+40 00 01 1 t
+40 00 03 2 f
+40 07 01 0 t
+40 31 01 1 f
+40 31 02 2 t
+40 31 04 3 f
+40 32 01 1 f
+40 32 02 2 t
+40 32 04 3 f
+40 41 01 1 f
+40 41 02 2 t
+40 41 04 3 f
+40 42 01 1 f
+40 42 02 2 t
+40 42 04 3 f
+40 42 06 4 f
+40 43 04 3 f
+40 61 04 1 t
+40 62 04 1 t
+40 63 01 1 f
+40 63 02 2 t
+40 63 04 3 f
+40 63 06 4 f
+40 64 04 1 t
+40 65 04 1 t
+40 66 04 1 t
+\.
+
+-- ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿
+CREATE TABLE waiting_type_master (
+ waiting_type_code CHAR(2) NOT NULL, -- ÂÔµ¡¼ïÊÌ¥³¡¼¥É (P)
+ waiting_type_name TEXT NOT NULL, -- ÂÔµ¡¼ïÊÌ̾
+ CONSTRAINT waiting_type_master_pkey PRIMARY KEY (waiting_type_code)
+);
+
+COPY waiting_type_master FROM stdin;
+10 ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ
+20 ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã
+30 ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ
+40 ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+50 ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+\.
+
+-- ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿
+CREATE TABLE waiting_status_master (
+ waiting_status_code CHAR(2) NOT NULL, -- ÂÔµ¡¾õÂÖ¥³¡¼¥É (P)
+ waiting_status_name TEXT NOT NULL, -- ÂÔµ¡¾õÂÖ̾
+ CONSTRAINT waiting_status_master_pkey PRIMARY KEY (waiting_status_code)
+);
+
+COPY waiting_status_master FROM stdin;
+10 ¾µÇ§ÂÔ¤Á
+20 ¾µÇ§ºÑ¤ß
+30 ¾µÇ§µñÈÝ
+\.
+
+-- ¥Õ¥¡¥¤¥ë¼ïÎà¥Þ¥¹¥¿
+CREATE TABLE file_category_master (
+ file_category_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¼ïÎॳ¡¼¥É (P)
+ file_category_name TEXT NOT NULL, -- ¥Õ¥¡¥¤¥ë¼ïÎà̾
+ CONSTRAINT file_category_master_pkey PRIMARY KEY (file_category_code)
+);
+
+COPY file_category_master FROM stdin;
+0000 »ØÄê¤Ê¤·
+0001 ÏÀʸ
+0002 ¥×¥ì¥¼¥ó
+0003 ²èÁü
+0004 Æ°²è
+\.
+
+-- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+CREATE TABLE file_contents_type_master (
+ file_contents_type_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P)
+ file_contents_type_name TEXT NOT NULL, -- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ̾
+ CONSTRAINT file_contents_type_master_pkey PRIMARY KEY (file_contents_type_code)
+);
+
+COPY file_contents_type_master FROM stdin;
+0001 Ãø¼Ô
+0002 ɽÂê
+0003 ·ÇºÜ»ï¡¦³Ø²ñ
+0004 VolNo.Åù
+0005 ¥Ú¡¼¥¸from
+0006 ¥Ú¡¼¥¸to
+0007 ȯɽ¡¦·ÇºÜÆü
+0008 ¸À¸ì
+0009 ³«ºÅÃÏ
+0010 ½ÐÈǼÒ
+0011 ÏÀʸ¼ïÊÌ
+0012 È÷¹Í
+\.
+
+-- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̥ꥹ¥È
+CREATE TABLE file_contents_type_list (
+ file_category_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¼ïÎॳ¡¼¥É (P) (F)
+ file_contents_type_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P) (F)
+ CONSTRAINT file_contents_type_list_pkey PRIMARY KEY (file_category_code, file_contents_type_code),
+ CONSTRAINT file_contents_type_list_fkey1 FOREIGN KEY (file_category_code) REFERENCES file_category_master (file_category_code),
+ CONSTRAINT file_contents_type_list_fkey2 FOREIGN KEY (file_contents_type_code) REFERENCES file_contents_type_master (file_contents_type_code)
+);
+
+COPY file_contents_type_list FROM stdin;
+0000 0002
+0000 0012
+0001 0001
+0001 0002
+0001 0003
+0001 0004
+0001 0005
+0001 0006
+0001 0007
+0001 0008
+0001 0009
+0001 0010
+0001 0011
+0001 0012
+0002 0001
+0002 0002
+0002 0003
+0002 0007
+0002 0008
+0002 0009
+0002 0012
+0003 0001
+0003 0002
+0003 0012
+0004 0001
+0004 0002
+0004 0012
+\.
+
+-- ¥Õ¥¡¥¤¥ëÍúÎòÁàºî¥Þ¥¹¥¿
+CREATE TABLE file_history_operation_master (
+ file_history_operation_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎòÁàºî¥³¡¼¥É (P)
+ file_history_operation_name TEXT NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎòÁàºî̾
+ CONSTRAINT file_history_ope_master_pkey PRIMARY KEY (file_history_operation_code) -- 31ʸ»úÀ©¸Â: operation ¢ª ope ¤Èû½Ì
+);
+
+COPY file_history_operation_master FROM stdin;
+0101 ºîÀ®
+0201 ¹¹¿·
+0301 Éü³è
+\.
+
+
+--------------------------------
+-- ¥³¥ß¥å¥Ë¥Æ¥£
+--------------------------------
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE community (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P)
+ community_name TEXT, -- ¥³¥ß¥å¥Ë¥Æ¥£Ì¾
+ community_type_code CHAR(2) NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É (F)
+ category_code CHAR(4), -- ¥«¥Æ¥´¥ê¥³¡¼¥É (F)
+ admission_flag BOOLEAN NOT NULL DEFAULT 'f', -- ¼«Í³»²²Ã¥Õ¥é¥°
+ register_date TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP, -- ¥³¥ß¥å¥Ë¥Æ¥£ÅÐÏ¿Æü»þ
+ delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ CONSTRAINT community_pkey PRIMARY KEY (community_id),
+ CONSTRAINT community_fkey1 FOREIGN KEY (community_type_code) REFERENCES community_type_master (community_type_code),
+ CONSTRAINT community_fkey2 FOREIGN KEY (category_code) REFERENCES category_master (category_code)
+
+);
+CREATE SEQUENCE community_id_seq;
+
+-- ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE sub_community (
+ community_id BIGINT NOT NULL, -- ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ sub_community_id BIGINT NOT NULL, -- ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ CONSTRAINT sub_community_pkey PRIMARY KEY (community_id, sub_community_id),
+ CONSTRAINT sub_community_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT sub_community_fkey2 FOREIGN KEY (sub_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð
+CREATE TABLE community_member (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ user_community_id BIGINT NOT NULL, -- ¥á¥ó¥Ð¤È¤Ê¤ë¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸) (P) (F)
+ community_member_type_code CHAR(2), -- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥³¡¼¥É(NULLµö²Ä) (P)
+ CONSTRAINT community_member_pkey PRIMARY KEY (community_id, user_community_id),
+ CONSTRAINT community_member_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT community_member_fkey2 FOREIGN KEY (user_community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT community_member_fkey3 FOREIGN KEY (community_member_type_code) REFERENCES community_member_type_master (community_member_type_code)
+);
+
+-- (¥³¥ß¥å¥Ë¥Æ¥£¤Î)¥³¥ó¥Æ¥ó¥Ä
+CREATE TABLE contents (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ contents_type_code CHAR(2) NOT NULL, -- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P) (F)
+ contents_value TEXT, -- ¥³¥ó¥Æ¥ó¥ÄÃÍ
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É (P) (F)
+ CONSTRAINT contents_pkey PRIMARY KEY (community_id, contents_type_code, open_level_code),
+ CONSTRAINT contents_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT contents_fkey2 FOREIGN KEY (contents_type_code) REFERENCES contents_type_master (contents_type_code),
+ CONSTRAINT contents_fkey3 FOREIGN KEY (open_level_code) REFERENCES open_level_master (open_level_code)
+);
+
+-- CREATE INDEX contents_index1 ON contents (community_id);
+-- CREATE INDEX contents_index2 ON contents (contents_type_code);
+-- CREATE INDEX contents_index3 ON contents (open_level_code);
+
+-- ¥³¥ó¥Æ¥ó¥Ä ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE contents_trusted_community (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ contents_type_code CHAR(2) NOT NULL, -- ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P) (F)
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É (P) (F)
+ trusted_community_id BIGINT NOT NULL, -- ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ CONSTRAINT contents_trusted_community_pkey PRIMARY KEY (community_id, contents_type_code, open_level_code, trusted_community_id),
+ CONSTRAINT contents_trusted_community_fk1 FOREIGN KEY (community_id, contents_type_code, open_level_code) REFERENCES contents (community_id, contents_type_code, open_level_code) ON DELETE CASCADE, -- 31ʸ»úÀ©¸Â
+ CONSTRAINT contents_trusted_community_fk2 FOREIGN KEY (trusted_community_id) REFERENCES community (community_id) ON DELETE CASCADE -- 31ʸ»úÀ©¸Â
+);
+
+-- »²²Ã ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE join_trusted_community (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ trusted_community_id BIGINT NOT NULL, -- ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ CONSTRAINT join_trusted_community_pkey PRIMARY KEY (community_id, trusted_community_id),
+ CONSTRAINT join_trusted_community_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT join_trusted_community_fkey2 FOREIGN KEY (trusted_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+-- ÂÔµ¡ (¾µÇ§ÂÔµ¡, ¾·ÂÔÂÔµ¡Åù)
+CREATE TABLE waiting (
+ waiting_id BIGINT NOT NULL, -- ÂÔµ¡ID (P)
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (F)
+ waiting_community_id BIGINT NOT NULL, -- ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID
+ waiting_type_code CHAR(2) NOT NULL, -- ÂÔµ¡¼ïÊÌ¥³¡¼¥É (F)
+ waiting_status_code CHAR(2) NOT NULL, -- ÂÔµ¡¾õÂÖ¥³¡¼¥É (F)
+ message TEXT, -- ¥á¥Ã¥»¡¼¥¸
+ reply_message TEXT, -- ÊÖ¿®¥á¥Ã¥»¡¼¥¸
+ entry_user_community_id BIGINT NOT NULL, -- ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ entry_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ÅÐÏ¿Æü
+ complete_user_community_id BIGINT, -- ´°Î»¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ complete_date TIMESTAMP(0), -- ´°Î»Æü
+ CONSTRAINT waiting_community_member_pkey PRIMARY KEY (waiting_id),
+ CONSTRAINT waiting_community_member_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT waiting_community_member_fkey2 FOREIGN KEY (waiting_type_code) REFERENCES waiting_type_master (waiting_type_code),
+ CONSTRAINT waiting_community_member_fkey3 FOREIGN KEY (waiting_status_code) REFERENCES waiting_status_master (waiting_status_code)
+);
+
+CREATE SEQUENCE waiting_id_seq;
+
+
+--------------------------------
+-- ¥À¥¤¥¢¥ê¡¼
+--------------------------------
+
+-- ¥À¥¤¥¢¥ê¡¼
+CREATE TABLE diary (
+ diary_id BIGINT NOT NULL, -- ¥À¥¤¥¢¥ê¡¼ID (P)
+ community_id BIGINT NOT NULL, -- (¥æ¡¼¥¶)¥³¥ß¥å¥Ë¥Æ¥£ID (F)
+ subject TEXT, -- ·ï̾
+ body TEXT NOT NULL, -- ÆâÍÆ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü»þ
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«ÈÏ°Ï (F)
+ diary_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ CONSTRAINT diary_pkey PRIMARY KEY (diary_id),
+ CONSTRAINT diary_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT diary_fkey2 FOREIGN KEY (open_level_code) REFERENCES open_level_master (open_level_code)
+);
+CREATE SEQUENCE diary_id_seq;
+
+-- ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È
+CREATE TABLE diary_comment (
+ diary_comment_id BIGINT NOT NULL, -- ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥ÈID (P)
+ diary_id BIGINT NOT NULL, -- ¥À¥¤¥¢¥ê¡¼ID(¿Æµ»ö) (F)
+ user_community_id BIGINT NOT NULL, -- Åê¹Æ¼Ô¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)
+ body TEXT NOT NULL, -- ÆâÍÆ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü»þ
+ diary_comment_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ CONSTRAINT diary_comment_pkey PRIMARY KEY (diary_comment_id),
+ CONSTRAINT diary_comment_fkey1 FOREIGN KEY (diary_id) REFERENCES diary (diary_id) ON DELETE CASCADE
+);
+CREATE SEQUENCE diary_comment_id_seq;
+
+-- ¥À¥¤¥¢¥ê¡¼ ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE diary_trusted_community (
+ diary_id BIGINT NOT NULL, -- ¥À¥¤¥¢¥ê¡¼ID (P) (F)
+ trusted_community_id BIGINT NOT NULL, -- ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ CONSTRAINT diary_trusted_community_pkey PRIMARY KEY (diary_id, trusted_community_id),
+ CONSTRAINT diary_trusted_community_fkey1 FOREIGN KEY (diary_id) REFERENCES diary (diary_id) ON DELETE CASCADE,
+ CONSTRAINT diary_trusted_community_fkey2 FOREIGN KEY (trusted_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+-- ¥À¥¤¥¢¥ê¡¼¥¢¥¯¥»¥¹ÍúÎò
+CREATE TABLE diary_access_history (
+ user_community_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ diary_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹ÂоݤΥÀ¥¤¥¢¥ê¡¼ID
+ access_date TIMESTAMP(0) NOT NULL, -- ¥¢¥¯¥»¥¹Æü»þ
+ CONSTRAINT diary_access_history_pkey PRIMARY KEY (user_community_id, diary_id),
+ CONSTRAINT diary_access_history_fkey1 FOREIGN KEY (user_community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT diary_access_history_fkey2 FOREIGN KEY (diary_id) REFERENCES diary (diary_id) ON DELETE CASCADE
+);
+
+
+--------------------------------
+-- ¥Õ¥©¥ë¥À
+--------------------------------
+
+-- ¥Õ¥¡¥¤¥ë¾ðÊó
+CREATE TABLE file_info (
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P)
+ owner_community_id BIGINT NOT NULL, -- ½êͼԥ³¥ß¥å¥Ë¥Æ¥£ID
+ display_file_name TEXT NOT NULL, -- ɽ¼¨¥Õ¥¡¥¤¥ë̾
+ server_file_name TEXT NOT NULL, -- ¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾
+ thumbnail_server_file_name TEXT, -- ¥µ¥à¥Í¥¤¥ë¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾
+ rss_server_file_name TEXT, -- RSS¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾
+ mime_type TEXT, -- MimeType
+ file_size INTEGER, -- ¥Õ¥¡¥¤¥ë¥µ¥¤¥º
+ comment TEXT, -- ¥³¥á¥ó¥È
+ entry_user_community_id BIGINT, -- ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ entry_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ÅÐÏ¿Æü
+ update_user_community_id BIGINT, -- ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ update_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¹¹¿·Æü
+ CONSTRAINT file_info_pkey PRIMARY KEY (file_id),
+ CONSTRAINT file_info_fkey1 FOREIGN KEY (owner_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+CREATE SEQUENCE file_id_seq;
+
+-- ¥Õ¥©¥ë¥À
+CREATE TABLE folder (
+ folder_id BIGINT NOT NULL, -- ¥Õ¥©¥ë¥ÀID (P)
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (F)
+ folder_name TEXT NOT NULL, -- ¥Õ¥©¥ë¥À̾
+ comment TEXT, -- ¥³¥á¥ó¥È
+ parent_folder_id BIGINT, -- ¿Æ¥Õ¥©¥ë¥ÀID (F)
+ entry_user_community_id BIGINT, -- ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ entry_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ÅÐÏ¿Æü
+ update_user_community_id BIGINT, -- ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ update_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¹¹¿·Æü
+ open_level_code CHAR(2), -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É (F)
+ CONSTRAINT folder_pkey PRIMARY KEY (folder_id),
+ CONSTRAINT folder_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT folder_fkey2 FOREIGN KEY (parent_folder_id) REFERENCES folder (folder_id) ON DELETE CASCADE,
+ CONSTRAINT folder_fkey3 FOREIGN KEY (open_level_code) REFERENCES open_level_master (open_level_code)
+);
+CREATE SEQUENCE folder_id_seq;
+
+-- ¥Õ¥©¥ë¥À¥Õ¥¡¥¤¥ë
+CREATE TABLE folder_file (
+ folder_id BIGINT NOT NULL, -- ¥Õ¥©¥ë¥ÀID (P) (F)
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ CONSTRAINT folder_file_pkey PRIMARY KEY (folder_id, file_id),
+ CONSTRAINT folder_file_fkey1 FOREIGN KEY (folder_id) REFERENCES folder (folder_id) ON DELETE CASCADE,
+ CONSTRAINT folder_file_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE
+);
+
+-- ¥Õ¥©¥ë¥À ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE folder_trusted_community (
+ folder_id BIGINT NOT NULL, -- ¥Õ¥©¥ë¥ÀID (P) (F)
+ trusted_community_id BIGINT NOT NULL, -- ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ PRIMARY KEY (folder_id, trusted_community_id),
+ CONSTRAINT folder_trusted_community_fkey1 FOREIGN KEY (folder_id) REFERENCES folder (folder_id) ON DELETE CASCADE,
+ CONSTRAINT folder_trusted_community_fkey2 FOREIGN KEY (trusted_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+-- ¥×¥Ã¥È¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE put_community (
+ folder_id BIGINT NOT NULL, -- ¥Õ¥©¥ë¥ÀID (P) (F)
+ put_community_id BIGINT NOT NULL, -- ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ put_community_folder_id BIGINT NOT NULL, -- ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥ÀID (P) (F)
+ CONSTRAINT put_community_pkey PRIMARY KEY (folder_id, put_community_id, put_community_folder_id),
+ CONSTRAINT put_community_fkey1 FOREIGN KEY (folder_id) REFERENCES folder (folder_id) ON DELETE CASCADE,
+ CONSTRAINT put_community_fkey2 FOREIGN KEY (put_community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT put_community_fkey3 FOREIGN KEY (put_community_folder_id) REFERENCES folder (folder_id) ON DELETE CASCADE
+);
+
+-- ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+CREATE TABLE file_detail_info (
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ file_category_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É (F)
+ update_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¹¹¿·Æü
+ CONSTRAINT file_detail_info_pkey PRIMARY KEY (file_id),
+ CONSTRAINT file_detail_info_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE,
+ CONSTRAINT file_detail_info_fkey3 FOREIGN KEY (file_category_code) REFERENCES file_category_master (file_category_code)
+);
+
+-- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä(¾ÜºÙ¾ðÊó)
+CREATE TABLE file_contents (
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ file_contents_type_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É (P) (F)
+ file_contents_value TEXT, -- ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥ÄÃÍ
+ CONSTRAINT file_contents_pkey PRIMARY KEY (file_id, file_contents_type_code),
+ CONSTRAINT file_contents_fkey1 FOREIGN KEY (file_id) REFERENCES file_detail_info (file_id) ON DELETE CASCADE,
+ CONSTRAINT file_contents_fkey2 FOREIGN KEY (file_contents_type_code) REFERENCES file_contents_type_master (file_contents_type_code)
+);
+
+-- ¥Õ¥¡¥¤¥ëÍúÎò
+CREATE TABLE file_history (
+ file_history_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎòID (P)
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (F)
+ display_file_name TEXT NOT NULL, -- ¥Õ¥¡¥¤¥ëɽ¼¨Ì¾
+ server_file_name TEXT NOT NULL, -- ¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾
+ thumbnail_server_file_name TEXT, -- ¥µ¥à¥Í¥¤¥ë¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾
+ mime_type TEXT, -- Mime Type
+ file_size INTEGER, -- ¥Õ¥¡¥¤¥ë¥µ¥¤¥º
+ update_date TIMESTAMP(0) NOT NULL, -- ÅÐÏ¿Æü
+ update_user_community_id BIGINT, -- ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ file_history_operation_code CHAR(4) NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎòÁàºî¥³¡¼¥É (F)
+ CONSTRAINT file_history_pkey PRIMARY KEY (file_history_id),
+ CONSTRAINT file_history_fkey1 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE,
+ CONSTRAINT file_history_fkey2 FOREIGN KEY (file_history_operation_code) REFERENCES file_history_operation_master (file_history_operation_code)
+);
+
+CREATE SEQUENCE file_history_id_seq;
+
+-- ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È
+CREATE TABLE file_history_comment (
+ file_history_comment_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥ÈID (P)
+ file_history_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëÍúÎòID (F)
+ user_community_id BIGINT NOT NULL, -- Åê¹Æ¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ comment TEXT, -- ¥³¥á¥ó¥È
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü
+ CONSTRAINT file_history_comment_pkey PRIMARY KEY (file_history_comment_id),
+ CONSTRAINT file_history_comment_fkey1 FOREIGN KEY (file_history_id) REFERENCES file_history (file_history_id) ON DELETE CASCADE
+);
+
+CREATE SEQUENCE file_history_comment_id_seq;
+
+-- ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎò
+CREATE TABLE file_access_history (
+ user_community_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (P)(F)
+ file_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹ÂоݤÎfile_id (P)(F)
+ access_date TIMESTAMP(0) NOT NULL, -- ¥¢¥¯¥»¥¹Æü»þ
+ CONSTRAINT file_access_history_pkey PRIMARY KEY (user_community_id, file_id),
+ CONSTRAINT file_access_history_fkey1 FOREIGN KEY (user_community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT file_access_history_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE
+);
+
+-- ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó¥Æ¡¼¥Ö¥ë
+CREATE TABLE file_public_access (
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID
+ folder_id BIGINT NOT NULL, -- ¥Õ¥©¥ë¥À¡¼ID
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID
+ access_code TEXT, -- ¥¢¥¯¥»¥¹¥³¡¼¥É
+ all_access_count BIGINT NOT NULL DEFAULT 0, -- Áí¥¢¥¯¥»¥¹¿ô
+ access_count BIGINT NOT NULL DEFAULT 0, -- ¥¢¥¯¥»¥¹¿ô
+ access_start_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¥¢¥¯¥»¥¹¿ô³«»ÏÆü
+ update_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¹¹¿·Æü»þ
+ CONSTRAINT file_public_access_pkey PRIMARY KEY (file_id),
+ CONSTRAINT file_public_access_fkey1 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE
+);
+
+--------------------------------
+-- ¥³¥ß¥å¥Ë¥Æ¥£
+--------------------------------
+
+-- ·Ç¼¨ÈÄ
+CREATE TABLE bbs (
+ bbs_id BIGINT NOT NULL, -- Åê¹ÆID (P)
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (F)
+ user_community_id BIGINT NOT NULL, -- Åê¹Æ¼Ô¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)
+ subject TEXT, -- ·ï̾
+ body TEXT NOT NULL, -- ÆâÍÆ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü»þ
+ open_level_code CHAR(2) NOT NULL, -- ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ expire_date TIMESTAMP(0), -- ·ÇºÜ½ªÎ»Æü
+ bbs_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ ml_send_flag BOOLEAN NOT NULL DEFAULT 'f', -- MLÁ÷¿®¥Õ¥é¥°
+ CONSTRAINT bbs_pkey PRIMARY KEY (bbs_id),
+ CONSTRAINT bbs_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT bbs_fkey2 FOREIGN KEY (open_level_code) REFERENCES open_level_master (open_level_code)
+);
+CREATE SEQUENCE bbs_id_seq;
+
+-- ·Ç¼¨ÈÄÊÖ¿®
+CREATE TABLE bbs_res (
+ bbs_res_id BIGINT NOT NULL, -- ÊÖ¿®Åê¹ÆID (P)
+ bbs_id BIGINT NOT NULL, -- Åê¹ÆID(¿Æµ»ö) (F)
+ user_community_id BIGINT NOT NULL, -- Åê¹Æ¼Ô¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)
+ subject TEXT, -- ·ï̾
+ body TEXT NOT NULL, -- ÆâÍÆ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü»þ
+ bbs_res_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ CONSTRAINT bbs_res_pkey PRIMARY KEY (bbs_res_id),
+ CONSTRAINT bbs_res_fkey1 FOREIGN KEY (bbs_id) REFERENCES bbs (bbs_id) ON DELETE CASCADE
+);
+CREATE SEQUENCE bbs_res_id_seq;
+
+-- ·Ç¼¨ÈÄ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+CREATE TABLE bbs_trusted_community (
+ bbs_id BIGINT NOT NULL, -- ·Ç¼¨ÈÄÅê¹ÆID
+ trusted_community_id BIGINT NOT NULL, -- ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ID
+ CONSTRAINT bbs_trusted_community_pkey PRIMARY KEY (bbs_id, trusted_community_id),
+ CONSTRAINT bbs_trusted_community_fkey1 FOREIGN KEY (bbs_id) REFERENCES bbs (bbs_id) ON DELETE CASCADE,
+ CONSTRAINT bbs_trusted_community_fkey2 FOREIGN KEY (trusted_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+-- ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò
+CREATE TABLE bbs_access_history (
+ user_community_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ bbs_id BIGINT NOT NULL, -- ¥¢¥¯¥»¥¹ÂоݤÎbbs_id
+ access_date TIMESTAMP(0) NOT NULL, -- ¥¢¥¯¥»¥¹Æü»þ
+ CONSTRAINT bbs_access_history_pkey PRIMARY KEY (user_community_id, bbs_id),
+ CONSTRAINT bbs_access_history_fkey1 FOREIGN KEY (user_community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT bbs_access_history_fkey2 FOREIGN KEY (bbs_id) REFERENCES bbs (bbs_id) ON DELETE CASCADE
+);
+
+-- (·Ç¼¨ÈÄ)³°ÉôRSS
+CREATE TABLE external_rss (
+ bbs_id BIGINT NOT NULL, -- bbs_id (P) (F)
+ rss_url TEXT NOT NULL, -- RSS¼è¹þ¸µURL
+ rss_channel_title TEXT NOT NULL, -- RSS¥Á¥ã¥ó¥Í¥ë¥¿¥¤¥È¥ë
+ rss_item_title TEXT NOT NULL, -- RSS¥¢¥¤¥Æ¥àtitle
+ rss_item_content TEXT NOT NULL, -- RSS¥¢¥¤¥Æ¥àcontent
+ rss_item_date TIMESTAMP(0), -- RSS¥¢¥¤¥Æ¥àdate
+ rss_item_link TEXT, -- RSS¥¢¥¤¥Æ¥àlink
+ CONSTRAINT external_rss_pkey PRIMARY KEY (bbs_id),
+ CONSTRAINT external_rss_fkey1 FOREIGN KEY (bbs_id) REFERENCES bbs (bbs_id) ON DELETE CASCADE
+);
+
+-- ¥¹¥±¥¸¥å¡¼¥ë
+CREATE TABLE schedule (
+ schedule_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ëID (P)
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (F)
+ user_community_id BIGINT NOT NULL, -- ´´»ö¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)
+ schedule_name TEXT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë̾
+ schedule_place TEXT NOT NULL, -- ¾ì½ê
+ schedule_detail TEXT, -- ¾ÜºÙ¾ðÊó
+ schedule_closing_datetime TIMESTAMP(0) NOT NULL, -- Åê¹ÆÆü»þ
+ schedule_target_kind VARCHAR(4) NOT NULL DEFAULT 'ALL', -- ÂоݼïÊÌ('ALL'/'FREE')
+ decide_adjustment_date_id BIGINT NOT NULL DEFAULT 0, -- ¥¹¥±¥¸¥å¡¼¥ë·èÄêÆü»þID
+ entry_datetime TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ºîÀ®Æü»þ
+ update_datetime TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¹¹¿·Æü»þ
+
+ CONSTRAINT schedule_pkey PRIMARY KEY (schedule_id),
+ CONSTRAINT schedule_fkey1 FOREIGN KEY (community_id)
+ REFERENCES community (community_id) ON DELETE CASCADE
+);
+CREATE SEQUENCE schedule_id_seq;
+
+-- ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þ
+CREATE TABLE schedule_adjustment_dates (
+ schedule_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ëID (P)(F)
+ adjustment_date_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þID (P)
+ adjustment_date_string TEXT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þ
+ adjustment_date_delete_flag BOOLEAN NOT NULL DEFAULT 'f',
+ -- ºï½ü¥Õ¥é¥°(ºï½ü»þTRUE)
+ CONSTRAINT schedule_adjustment_dates_pkey PRIMARY KEY (schedule_id,adjustment_date_id),
+ CONSTRAINT schedule_adjustment_dates_fkey1 FOREIGN KEY (schedule_id)
+ REFERENCES schedule (schedule_id) ON DELETE CASCADE
+);
+CREATE SEQUENCE adjustment_date_id_seq;
+
+-- ¥¹¥±¥¸¥å¡¼¥ë²óÅúÁªÂò»è
+CREATE TABLE schedule_answer_selection (
+ schedule_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ëID (P)(F)
+ answer_no BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë²óÅúÈÖ¹æ (P)
+ answer_char VARCHAR(1), -- ¥¹¥±¥¸¥å¡¼¥ë²óÅúµ¹æ
+ answer_score SMALLINT, -- ¥¹¥±¥¸¥å¡¼¥ë²óÅú¥¹¥³¥¢
+ answer_detail TEXT, -- ¥¹¥±¥¸¥å¡¼¥ë²óÅúÀâÌÀ
+ answer_default BOOLEAN NOT NULL DEFAULT 'f', -- ¥¹¥±¥¸¥å¡¼¥ë²óÅú½é´üÃͥե饰
+ CONSTRAINT schedule_answer_selection_pkey PRIMARY KEY (schedule_id,answer_no),
+ CONSTRAINT schedule_answer_selection_fkey1 FOREIGN KEY (schedule_id)
+ REFERENCES schedule (schedule_id) ON DELETE CASCADE
+);
+
+-- ¥¹¥±¥¸¥å¡¼¥ë»²²Ã
+CREATE TABLE schedule_participant (
+ schedule_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ëID (P)(F)
+ user_community_id BIGINT NOT NULL, -- ²óÅú¼Ô¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)(P)
+ participant_comment TEXT, -- »²²Ã¥³¥á¥ó¥È
+ participant_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°(»²²Ã¤È¤ê¤ä¤á»þ=TRUE)
+ CONSTRAINT schedule_participant_pkey PRIMARY KEY (schedule_id,user_community_id),
+ CONSTRAINT schedule_participant_fkey1 FOREIGN KEY (schedule_id)
+ REFERENCES schedule (schedule_id) ON DELETE CASCADE
+);
+
+-- ¥¹¥±¥¸¥å¡¼¥ë²óÅú
+CREATE TABLE schedule_answer (
+ schedule_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ëID (P)(F)
+ user_community_id BIGINT NOT NULL, -- ²óÅú¼Ô¤Î¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸)(P)
+ adjustment_date_id BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þID (P)(F)
+ answer_no BIGINT NOT NULL, -- ¥¹¥±¥¸¥å¡¼¥ë²óÅúÈÖ¹æ (P)
+ CONSTRAINT schedule_answer_pkey PRIMARY KEY (
+ schedule_id,user_community_id,adjustment_date_id,answer_no),
+ CONSTRAINT schedule_answer_fkey1 FOREIGN KEY (schedule_id)
+ REFERENCES schedule (schedule_id) ON DELETE CASCADE,
+ CONSTRAINT schedule_answer_fkey2 FOREIGN KEY (schedule_id,adjustment_date_id)
+ REFERENCES schedule_adjustment_dates (schedule_id,adjustment_date_id)
+ ON DELETE CASCADE
+);
+
+
+--------------------------------
+-- ³Æ¥¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ë
+--------------------------------
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£²èÁü¥Õ¥¡¥¤¥ë
+CREATE TABLE community_image_file (
+ community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID (P) (F)
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ file_id_ol01 bigint, -- ¸ø³«¥ì¥Ù¥ë01ÍÑ¥Õ¥¡¥¤¥ëID
+ file_id_ol02 bigint, -- ¸ø³«¥ì¥Ù¥ë02ÍÑ¥Õ¥¡¥¤¥ëID
+ file_id_ol05 bigint, -- ¸ø³«¥ì¥Ù¥ë05ÍÑ¥Õ¥¡¥¤¥ëID
+ CONSTRAINT community_image_file_pkey PRIMARY KEY (community_id, file_id),
+ CONSTRAINT community_image_file_fkey1 FOREIGN KEY (community_id) REFERENCES community (community_id) ON DELETE CASCADE,
+ CONSTRAINT community_image_file_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE,
+ CONSTRAINT community_image_file_fkey3 FOREIGN KEY (file_id_ol01) REFERENCES file_info (file_id) ON UPDATE NO ACTION ON DELETE NO ACTION,
+CONSTRAINT community_image_file_fkey4 FOREIGN KEY (file_id_ol02) REFERENCES file_info (file_id) ON UPDATE NO ACTION ON DELETE NO ACTION,
+CONSTRAINT community_image_file_fkey5 FOREIGN KEY (file_id_ol05) REFERENCES file_info (file_id) ON UPDATE NO ACTION ON DELETE NO ACTION
+);
+
+-- ¥À¥¤¥¢¥ê¡¼¥Õ¥¡¥¤¥ë
+CREATE TABLE diary_file (
+ diary_id BIGINT NOT NULL, -- ¥À¥¤¥¢¥ê¡¼ID (P) (F)
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ CONSTRAINT diary_file_pkey PRIMARY KEY (diary_id, file_id),
+ CONSTRAINT diary_file_fkey1 FOREIGN KEY (diary_id) REFERENCES diary (diary_id) ON DELETE CASCADE,
+ CONSTRAINT diary_file_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE
+);
+
+-- ·Ç¼¨ÈÄ¥Õ¥¡¥¤¥ë
+CREATE TABLE bbs_file (
+ bbs_id BIGINT NOT NULL, -- ·Ç¼¨ÈÄID (P) (F)
+ file_id BIGINT NOT NULL, -- ¥Õ¥¡¥¤¥ëID (P) (F)
+ CONSTRAINT bbs_file_pkey PRIMARY KEY (bbs_id, file_id),
+ CONSTRAINT bbs_file_fkey1 FOREIGN KEY (bbs_id) REFERENCES bbs (bbs_id) ON DELETE CASCADE,
+ CONSTRAINT bbs_file_fkey2 FOREIGN KEY (file_id) REFERENCES file_info (file_id) ON DELETE CASCADE
+);
+
+
+--------------------------------
+-- ¥æ¡¼¥¶¾ðÊó
+--------------------------------
+
+-- ¥æ¡¼¥¶¾ðÊó
+CREATE TABLE user_info (
+ user_id TEXT NOT NULL, -- ¥æ¡¼¥¶ID (P)
+ user_community_id BIGINT NOT NULL, -- ¥³¥ß¥å¥Ë¥Æ¥£ID(¥Þ¥¤¥Ú¡¼¥¸) (F)
+ administrator_flag BOOLEAN NOT NULL DEFAULT 'f', -- ¥·¥¹¥Æ¥à´ÉÍý¼Ô¥Õ¥é¥°
+ CONSTRAINT user_info_pkey PRIMARY KEY (user_id, user_community_id),
+ CONSTRAINT user_info_fkey1 FOREIGN KEY (user_community_id) REFERENCES community (community_id) ON DELETE CASCADE
+);
+
+
+--------------------------------
+-- ¥í¥°´ÉÍý
+--------------------------------
+
+-- Áàºî¥Þ¥¹¥¿
+CREATE TABLE operation_master (
+ operation_code CHAR(4) NOT NULL, -- Áàºî¥³¡¼¥É (P)
+ operation_name TEXT NOT NULL, -- Áàºî̾
+ CONSTRAINT operation_master_en_pkey PRIMARY KEY (operation_code)
+);
+
+-- #### µì ÆüËܸì¥Ç¡¼¥¿ #### --
+-- COPY operation_master FROM stdin;
+-- 0101 ¥í¥°¥¤¥ó
+-- 0201 ¥æ¡¼¥¶¿·µ¬ÅÐÏ¿
+-- 0202 LDAP¥æ¡¼¥¶¿·µ¬ÅÐÏ¿
+-- 0203 ¥æ¡¼¥¶¾ðÊóÊѹ¹
+-- 0204 ¥æ¡¼¥¶ºï½ü
+-- 0301 ¥·¥¹¥Æ¥àÀßÄêÊѹ¹
+-- \.
+
+-- #### ±Ñ¸ìÈÇ ####
+COPY operation_master FROM stdin;
+0101 Login
+0201 New User Registration
+0202 New LDAP User Registration
+0203 Change User Information
+0204 Remove User
+0301 Change System Settings
+\.
+
+
+-- ¥í¥°
+CREATE TABLE log (
+ log_id BIGINT NOT NULL, -- ¥í¥°ID (P)
+ log_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ¥í¥°ÆüÉÕ
+ user_id TEXT NOT NULL, -- ¥æ¡¼¥¶ID
+ user_name TEXT NOT NULL, -- »á̾
+ user_community_id BIGINT NOT NULL, -- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ community_name TEXT, -- ¥Ë¥Ã¥¯¥Í¡¼¥à
+ administrator_flag BOOLEAN NOT NULL, -- ¥·¥¹¥Æ¥à´ÉÍý¼Ô¥Õ¥é¥°
+ operation_code CHAR(4) NOT NULL, -- Áàºî¥³¡¼¥É
+ operation_result BOOLEAN NOT NULL, -- Áàºî·ë²Ì (t=À®¸ù, f=¼ºÇÔ)
+ message TEXT, -- ¥á¥Ã¥»¡¼¥¸(ÁàºîÆâÍÆ)
+ CONSTRAINT log_pkey PRIMARY KEY (log_id),
+ CONSTRAINT log_fkey1 FOREIGN KEY (operation_code) REFERENCES operation_master (operation_code)
+);
+
+CREATE SEQUENCE log_id_seq;
+
+-- ÂÀ×
+CREATE TABLE footprint (
+ community_id BIGINT NOT NULL, -- ÂÀפòÉÕ¤±¤é¤ì¤¿¥æ¡¼¥¶
+ visitor_community_id BIGINT NOT NULL, -- ÂÀפòÉÕ¤±¤¿¥æ¡¼¥¶
+ contents_type_code CHAR(2) NOT NULL, -- (21=¥À¥¤¥¢¥ê¡¼, 33=¥Õ¥¡¥¤¥ë[¿·Àß])
+ contents_title TEXT NOT NULL, -- ¥ê¥ó¥¯Ì¾
+ contents_link_url TEXT NOT NULL, -- ¥ê¥ó¥¯URL
+ contents_date TIMESTAMP(0) NOT NULL, -- ÂÀפ¬ÉÕ¤¤¤¿»þÅÀ¤Î¥³¥ó¥Æ¥ó¥Ä¤ÎÆü»þ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- ÂÀ×Æü»þ
+ CONSTRAINT footprint_fkey1 FOREIGN KEY (contents_type_code) REFERENCES contents_type_master (contents_type_code)
+);
+
+--------------------------------
+-- ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+--------------------------------
+
+-- ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+CREATE TABLE system_announce (
+ system_announce_id BIGINT NOT NULL, -- ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹ID (P)
+ user_community_id BIGINT NOT NULL, -- Åê¹Æ¤ò¹Ô¤Ã¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ subject TEXT NOT NULL, -- ·ï̾
+ body TEXT NOT NULL, -- ËÜʸ
+ post_date TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Åê¹ÆÆü»þ
+ expire_date DATE, -- ·ÇºÜ½ªÎ»Æü
+ system_announce_delete_flag BOOLEAN NOT NULL DEFAULT 'f', -- ºï½ü¥Õ¥é¥°
+ CONSTRAINT system_announce_pkey PRIMARY KEY (system_announce_id)
+);
+
+CREATE SEQUENCE system_announce_id_seq;
+
+
+--------------------------------
+-- ¥·¥¹¥Æ¥àÀßÄê
+--------------------------------
+
+-- ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×
+CREATE TABLE system_config_group (
+ system_config_group_code CHAR(2) NOT NULL, -- ¥°¥ë¡¼¥×¥³¡¼¥É (P)
+ system_config_group_name TEXT NOT NULL, -- ¥°¥ë¡¼¥×̾
+ display_order INTEGER NOT NULL, -- ɽ¼¨½ç½ø
+ CONSTRAINT system_config_group_pkey PRIMARY KEY (system_config_group_code)
+);
+
+-- ¥·¥¹¥Æ¥àÀßÄê
+CREATE TABLE system_config (
+ system_config_group_code CHAR(2) NOT NULL, -- ¥°¥ë¡¼¥×¥³¡¼¥É
+ keyword TEXT NOT NULL, -- ¥¡¼¥ï¡¼¥É (P)
+ value TEXT NOT NULL, -- ÃÍ
+ type TEXT NOT NULL, -- ·¿ (number or string)
+ display_order INTEGER NOT NULL, -- ɽ¼¨½ç½ø
+ CONSTRAINT system_config_pkey PRIMARY KEY (keyword),
+ CONSTRAINT system_config_fkey1 FOREIGN KEY (system_config_group_code) REFERENCES system_config_group (system_config_group_code) ON DELETE CASCADE
+);
+
+COPY system_config_group FROM stdin;
+01 ¥·¥¹¥Æ¥à 1
+02 ¥Þ¥¤¥Ú¡¼¥¸ 2
+03 ¥³¥ß¥å¥Ë¥Æ¥£ 3
+04 ²èÁü¥Õ¥¡¥¤¥ë 4
+05 ¥é¥ó¥¥ó¥° 5
+06 ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ 6
+07 ¥í¥° 7
+08 ¥æ¡¼¥¶¾ðÊó 8
+\.
+
+COPY system_config FROM stdin;
+01 SYSTEM_NAME ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à string 1
+01 SYSTEM_OUTLINE ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤Ç¤¹ string 2
+01 SYSTEM_BASE_URL http://xxx.yyy.zz.jp/ string 3
+01 SYSTEM_BASE_LOGIN_URL https://xxx.yyy.zz.jp/login/ string 4
+01 SYSTEM_MAIL_ADDR acs-admin@xxx.yyy.zz.jp string 5
+01 SMTP_SERVER localhost string 6
+01 SMTP_PORT 25 number 7
+01 LDAP_SERVER ldap.yyy.zz.jp string 8
+01 LDAP_PORT 51000 number 9
+01 LDAP_BASE_DN o=ZZZZ-UNIV string 10
+01 LDAP_BIND_DN uid=ZZ-ACS,ou=DptStaff,o=ZZZZ-UNIV string 11
+01 LDAP_BIND_PASSWD ********** password 12
+01 DESIGN_STYLE_CSS_URL http://xxx.yyy.zz.jp/css/selection string 13
+02 NEW_INFO_TOP_DISPLAY_MAX_COUNT 5 number 1
+02 NEW_INFO_LIST_DISPLAY_MAX_COUNT 20 number 2
+02 FRIENDS_DISPLAY_MAX_COUNT 12 number 3
+02 COMMUNITY_DISPLAY_MAX_COUNT 12 number 4
+02 USER_SEARCH_RESULT_DISPLAY_MAX_COUNT 20 number 5
+02 DIARY_RSS_TERM 14 number 6
+02 NEW_INFO_TOP_TERM 20 number0 7
+02 NEW_INFO_LIST_TERM 60 number0 8
+02 FOOTPRINT_LIST_TERM 30 number 9
+02 FOOTPRINT_LIST_DISPLAY_MAX_COUNT 20 number 10
+03 COMMUNITY_MEMBER_DISPLAY_MAX_COUNT 12 number 1
+03 COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT 20 number 2
+03 COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT 10 number 3
+03 COMMUNITY_ML_MAIL_ADDR bbs@xxx.yyy.zz.jp string 4
+03 COMMUNITY_ML_POP_SERVER localhost string 5
+03 COMMUNITY_ML_POP_PORT 110 number 6
+03 COMMUNITY_ML_POP_USER acsuser string 7
+03 COMMUNITY_ML_POP_PASSWD ********** password 8
+03 BBS_RSS_TERM 14 number 9
+04 PROFILE_IMAGE_WIDTH_MAX 180 number 1
+04 PROFILE_IMAGE_HEIGHT_MAX 180 number 2
+04 PROFILE_IMAGE_THUMB_WIDTH_MAX 76 number 3
+04 PROFILE_IMAGE_THUMB_HEIGHT_MAX 76 number 4
+04 BBS_IMAGE_WIDTH_MAX 1280 number 5
+04 BBS_IMAGE_HEIGHT_MAX 960 number 6
+04 BBS_IMAGE_THUMB_WIDTH_MAX 120 number 7
+04 BBS_IMAGE_THUMB_HEIGHT_MAX 120 number 8
+04 BBS_IMAGE_RSS_WIDTH_MAX 200 number 9
+04 BBS_IMAGE_RSS_HEIGHT_MAX 200 number 10
+04 DIARY_IMAGE_WIDTH_MAX 1280 number 11
+04 DIARY_IMAGE_HEIGHT_MAX 960 number 12
+04 DIARY_IMAGE_THUMB_WIDTH_MAX 120 number 13
+04 DIARY_IMAGE_THUMB_HEIGHT_MAX 120 number 14
+04 FOLDER_IMAGE_THUMB_WIDTH_MAX 76 number 17
+04 FOLDER_IMAGE_THUMB_HEIGHT_MAX 76 number 18
+05 USER_RANKING_COUNT_TERM 30 number 1
+05 COMMUNITY_RANKING_COUNT_TERM 30 number 2
+06 RSS_DISPLAY_MAX_COUNT 120 number 1
+07 LOG_DISPLAY_MAX_COUNT 50 number 1
+08 GET_LOGOUT_DATE_EVERYTIME 1 select 1
+08 DISPLAY_PHOTOS_FOR_PUBLIC 1 select 2
+08 NAME_DISPLAY_LEVEL 02 select 3
+\.
+
+
+--------------------------------
+-- ¥í¥°¥¢¥¦¥ÈÂбþ
+--------------------------------
+
+-- ¥í¥°¥¤¥ó¾ðÊó
+CREATE TABLE login_info
+(
+ logout_id integer NOT NULL,
+ community_id integer NOT NULL,
+ login_date TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ logout_date TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP,
+ use_button_flg boolean DEFAULT false,
+ CONSTRAINT "PKEY_LOGIN_INFO" PRIMARY KEY (logout_id)
+);
+CREATE SEQUENCE login_id_seq;
+
+
+
+--------------------------------
+-- ¥á¥Ã¥»¡¼¥¸µ¡Ç½
+--------------------------------
+
+-- ¥á¥Ã¥»¡¼¥¸
+CREATE TABLE message
+(
+ message_id bigint NOT NULL,
+ subject text NOT NULL,
+ body text,
+ post_date timestamp(0) without time zone NOT NULL DEFAULT now(),
+ CONSTRAINT message_pkey PRIMARY KEY (message_id)
+) ;
+CREATE SEQUENCE message_id_seq;
+
+-- ¥á¥Ã¥»¡¼¥¸¼õ¿®¼Ô
+CREATE TABLE message_receiver
+(
+ message_receiver_id bigint NOT NULL,
+ message_id bigint NOT NULL,
+ community_id bigint NOT NULL,
+ read_flag boolean NOT NULL DEFAULT false,
+ message_delete_flag boolean NOT NULL DEFAULT false,
+ CONSTRAINT message_receiver_pkey PRIMARY KEY (message_receiver_id),
+ CONSTRAINT message_receiver_fkey1 FOREIGN KEY (message_id)
+ REFERENCES message (message_id)
+ ON UPDATE NO ACTION ON DELETE NO ACTION,
+ CONSTRAINT message_receiver_fkey2 FOREIGN KEY (community_id)
+ REFERENCES community (community_id)
+ ON UPDATE NO ACTION ON DELETE CASCADE
+);
+CREATE SEQUENCE message_receiver_id_seq;
+
+-- ¥á¥Ã¥»¡¼¥¸Á÷¿®¼Ô
+CREATE TABLE message_sender
+(
+ message_sender_id bigint NOT NULL,
+ message_id bigint NOT NULL,
+ community_id bigint NOT NULL,
+ message_delete_flag boolean NOT NULL DEFAULT false,
+ CONSTRAINT messsage_sender_pkey PRIMARY KEY (message_sender_id),
+ CONSTRAINT message_sender_fkey1 FOREIGN KEY (message_id)
+ REFERENCES message (message_id)
+ ON UPDATE NO ACTION ON DELETE NO ACTION,
+ CONSTRAINT message_sender_fkey2 FOREIGN KEY (community_id)
+ REFERENCES community (community_id)
+ ON UPDATE NO ACTION ON DELETE CASCADE
+);
+CREATE SEQUENCE message_sender_id_seq;
+
+----------------------------------------------------------------
+-- Àǽ²þÁ±ÍÑ¥¤¥ó¥Ç¥Ã¥¯¥¹
+----------------------------------------------------------------
+--
+-- »þ·ÏÎ󥫥é¥à¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹ºîÀ®
+--
+CREATE INDEX diary_post_date ON diary (post_date);
+CREATE INDEX diary_comment_post_date ON diary_comment (post_date);
+CREATE INDEX bbs_post_date ON bbs (post_date);
+CREATE INDEX bbs_res_post_date ON bbs_res (post_date);
+CREATE INDEX file_info_entry_date ON file_info (entry_date);
+CREATE INDEX file_info_update_date ON file_info (update_date);
+
+----------------------------------------------------------------
+-- ¥Ó¥å¡¼
+----------------------------------------------------------------
+--
+-- SQL Function¤ËÊѤï¤ë¥Ó¥å¡¼¤ÎºîÀ®
+--
+CREATE VIEW acs_view_bbs_last_timestamp AS
+SELECT
+ bbs.bbs_id,
+ CASE
+ WHEN bbsres.last_post_date is null THEN bbs.post_date
+ WHEN bbs.post_date >= bbsres.last_post_date THEN bbs.post_date
+ ELSE bbsres.last_post_date
+ END AS bbs_last_timestamp
+FROM bbs LEFT JOIN
+ (SELECT bbs_id, MAX(post_date) AS last_post_date FROM bbs_res GROUP BY bbs_id) AS bbsres
+ON bbs.bbs_id = bbsres.bbs_id
+;
+
+----------------------------------------------------------------
+-- ¥æ¡¼¥¶ÄêµÁ´Ø¿ô
+----------------------------------------------------------------
+
+----------------------------------------------------
+-- ´Ø¿ô: TIMESTAMP¤òYYYY/MM/DD(wday) H:MM¤ËÊÑ´¹¤¹¤ë
+-- $1:
+-- YYYY/MM/DD => 2005/01/02
+-- FMMM/FMDD => 1/2
+-- $2:
+-- FMHH24:MI:SS => 1:02:03
+-- FMHH24:MI => 1:02
+----------------------------------------------------
+CREATE FUNCTION acs_convert_timestamp_ja(TIMESTAMP, TEXT, TEXT)
+RETURNS TEXT AS '
+ SELECT
+ to_char($1, $2 || ''('' || jday || '') '' || $3)::TEXT
+ FROM
+ (SELECT
+ CASE
+ WHEN wday = ''1'' THEN ''Æü''
+ WHEN wday = ''2'' THEN ''·î''
+ WHEN wday = ''3'' THEN ''²Ð''
+ WHEN wday = ''4'' THEN ''¿å''
+ WHEN wday = ''5'' THEN ''ÌÚ''
+ WHEN wday = ''6'' THEN ''¶â''
+ WHEN wday = ''7'' THEN ''ÅÚ''
+ END AS jday
+ FROM
+ (SELECT to_char($1, ''D'') AS wday) AS dummy1
+ ) AS dummy2
+' LANGUAGE 'sql';
+
+-- 2¤Ä¤Î»þ¹ï¤òÈæ³Ó¤·¤ÆºÇ¿·¤ÎÊý¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_last_timestamp(TIMESTAMP(0), TIMESTAMP(0))
+RETURNS TIMESTAMP(0) AS '
+ SELECT
+ CASE
+ WHEN $2 is null THEN $1
+ WHEN $1 >= $2 THEN $1
+ ELSE $2
+ END AS ret_timestamp
+' LANGUAGE 'sql';
+
+
+-- ¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤Æ¥³¥á¥ó¥È¤Î·ï¿ô¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_diary_comment_num(BIGINT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM diary_comment
+ WHERE diary_id = $1
+' LANGUAGE 'sql';
+
+-- ¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤ÆºÇ½ªÅê¹ÆÆü»þ¤ò¼èÆÀ¤¹¤ë (¿Æµ»ö¤È¥³¥á¥ó¥È¤ÎÅê¹ÆÆü»þ¤âÈæ³Ó¤¹¤ë)
+CREATE FUNCTION acs_get_diary_last_post_date(BIGINT)
+RETURNS TIMESTAMP(0) AS '
+ SELECT acs_get_last_timestamp(diary.post_date, diary_comment.post_date) as diary_last_post_date
+ FROM diary LEFT OUTER JOIN diary_comment USING(diary_id)
+ WHERE diary.diary_id = $1
+ ORDER BY diary_last_post_date DESC
+ LIMIT 1
+' LANGUAGE 'sql';
+
+-- ¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤Æ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È¤ÎºÇ½ªÅê¹ÆÆü»þ¤ò¼èÆÀ¤¹¤ë (¥³¥á¥ó¥È¤¬0·ï¤Î¾ì¹ç¤Ïnull)
+-- 31ʸ»úÀ©¸Â: comment ¢ª c ¤Èû½Ì
+CREATE FUNCTION acs_get_diary_c_last_post_date(BIGINT)
+RETURNS TIMESTAMP(0) AS '
+ SELECT diary_comment.post_date
+ FROM diary, diary_comment
+ WHERE diary.diary_id = $1
+ AND diary.diary_id = diary_comment.diary_id
+ ORDER BY diary_comment.post_date DESC
+ LIMIT 1
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤È¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤Æ̤Æɤ«¤É¤¦¤«È½Ê̤¹¤ë
+CREATE FUNCTION acs_is_unread_diary(BIGINT, BIGINT)
+RETURNS BOOLEAN AS '
+ SELECT EXISTS (
+ SELECT *
+ FROM (diary LEFT OUTER JOIN diary_access_history
+ ON diary.diary_id = diary_access_history.diary_id AND diary_access_history.user_community_id = $1)
+ WHERE diary.diary_id = $2
+ AND (diary_access_history.access_date is null OR diary.post_date > diary_access_history.access_date)
+ )
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤È¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤Æ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È¤¬Ì¤Æɤ«¤É¤¦¤«È½Ê̤¹¤ë
+CREATE FUNCTION acs_is_unread_diary_comment(BIGINT, BIGINT)
+RETURNS BOOLEAN AS '
+ SELECT EXISTS (
+ SELECT *
+ FROM (diary LEFT OUTER JOIN diary_access_history
+ ON diary.diary_id = diary_access_history.diary_id AND diary_access_history.user_community_id = $1)
+ WHERE diary.diary_id = $2
+ AND (diary_access_history.access_date is null OR acs_get_diary_last_post_date(diary.diary_id) > diary_access_history.access_date)
+ )
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤È¥Õ¥¡¥¤¥ëID¤ò»ØÄꤷ¤Æ¥Õ¥¡¥¤¥ë¤¬Ì¤Æɤ«¤É¤¦¤«È½Ê̤¹¤ë
+CREATE FUNCTION acs_is_unread_file(BIGINT, BIGINT)
+RETURNS BOOLEAN AS '
+ SELECT EXISTS (
+ SELECT *
+ FROM (file_info LEFT OUTER JOIN file_access_history
+ ON file_info.file_id = file_access_history.file_id AND file_access_history.user_community_id = $1)
+ WHERE file_info.file_id = $2
+ AND (file_access_history.access_date is null OR file_info.update_date > file_access_history.access_date)
+ )
+' LANGUAGE 'sql';
+
+
+-- bbs_id¤ò»ØÄꤷ¤ÆÊÖ¿®¤Î·ï¿ô¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_bbs_res_num(BIGINT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM bbs_res
+ WHERE bbs_res.bbs_id = $1
+' LANGUAGE 'sql';
+
+-- bbs_id¤ò»ØÄꤷ¤ÆºÇ½ªÅê¹ÆÆü»þ¤ò¼èÆÀ¤¹¤ë (¿Æµ»ö¤ÈÊÖ¿®µ»ö¤ÎÅê¹ÆÆü»þ¤âÈæ³Ó¤¹¤ë)
+CREATE FUNCTION acs_get_bbs_last_post_date(BIGINT)
+RETURNS TIMESTAMP(0) AS '
+ SELECT acs_get_last_timestamp(bbs.post_date, bbs_res.post_date) as bbs_last_post_date
+ FROM bbs LEFT OUTER JOIN bbs_res USING(bbs_id)
+ WHERE bbs.bbs_id = $1
+ ORDER BY bbs_last_post_date DESC
+ LIMIT 1
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤È¥À¥¤¥¢¥ê¡¼ID¤ò»ØÄꤷ¤Æ¥¹¥ì¥Ã¥É¤¬Ì¤Æɤ«¤É¤¦¤«È½Ê̤¹¤ë
+CREATE FUNCTION acs_is_unread_bbs(BIGINT, BIGINT)
+RETURNS BOOLEAN AS '
+ SELECT EXISTS (
+ SELECT *
+ FROM (bbs LEFT OUTER JOIN bbs_access_history
+ ON bbs.bbs_id = bbs_access_history.bbs_id AND bbs_access_history.user_community_id = $1)
+ WHERE bbs.bbs_id = $2
+ AND (bbs_access_history.access_date is null OR acs_get_bbs_last_post_date(bbs.bbs_id) > bbs_access_history.access_date)
+ )
+' LANGUAGE 'sql';
+
+
+-- ¥æ¡¼¥¶¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¿ô¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_friends_num(BIGINT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM community, sub_community, community as FRIENDS_COMMUNITY, community_type_master, community_member,
+ community as USER_COMMUNITY
+ WHERE community.community_id = $1
+ AND community.community_id = sub_community.community_id
+ AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id
+ AND FRIENDS_COMMUNITY.community_type_code = community_type_master.community_type_code
+ AND community_type_master.community_type_name = ''¥Þ¥¤¥Õ¥ì¥ó¥º''
+ AND FRIENDS_COMMUNITY.community_id = community_member.community_id
+ AND community_member.user_community_id = USER_COMMUNITY.community_id
+ AND USER_COMMUNITY.delete_flag != ''t''
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¤Î¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¿ô¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_community_num(BIGINT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM community, community_type_master, community_member
+ WHERE community.community_type_code = community_type_master.community_type_code
+ AND community.community_id = community_member.community_id
+ AND community_type_master.community_type_name = ''¥³¥ß¥å¥Ë¥Æ¥£''
+ AND community_member.user_community_id = $1
+ AND community.delete_flag != ''t''
+' LANGUAGE 'sql';
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥á¥ó¥Ð¿ô¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_get_community_member_num(BIGINT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM community_member, community as USER_COMMUNITY
+ WHERE community_member.community_id = $1
+ AND community_member.user_community_id = USER_COMMUNITY.community_id
+ AND USER_COMMUNITY.delete_flag != ''t''
+' LANGUAGE 'sql';
+
+-- $1¤¬$2¥³¥ß¥å¥Ë¥Æ¥£¤Î¥á¥ó¥Ð¤«¤É¤¦¤«¼èÆÀ¤¹¤ë (t/f)
+CREATE FUNCTION acs_is_community_member(BIGINT, BIGINT)
+RETURNS BOOLEAN AS '
+ SELECT EXISTS (
+ SELECT *
+ FROM community, community_member
+ WHERE community.community_id = community_member.community_id
+ AND community.community_id = $2
+ AND community_member.user_community_id = $1
+ )
+' LANGUAGE 'sql';
+
+
+-- ¥é¥ó¥¥ó¥° --
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤¬Åê¹Æ¤·¤¿diary¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_diary_score(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM diary
+ WHERE diary.community_id = $1
+ AND diary.diary_delete_flag != ''t''
+ AND diary.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤¬Åê¹Æ¤·¤¿diary_comment¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_diary_comment_score(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM diary, diary_comment
+ WHERE diary.diary_delete_flag != ''t''
+ AND diary.diary_id = diary_comment.diary_id
+ AND diary_comment.user_community_id = $1
+ AND diary_comment.diary_comment_delete_flag != ''t''
+ AND diary_comment.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤ËÅê¹Æ¤µ¤ì¤¿diary_comment¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_commented_diary_score(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM diary, diary_comment
+ WHERE diary.community_id = $1
+ AND diary.diary_id = diary_comment.diary_id
+ AND diary_comment.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+ AND diary.diary_delete_flag != ''t''
+ AND diary_comment.diary_comment_delete_flag != ''t''
+' LANGUAGE 'sql';
+
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤¬Åê¹Æ¤·¤¿bbs¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_bbs_score_by_u_c_id(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM bbs
+ WHERE bbs.community_id = $1
+ AND bbs.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+ AND bbs.bbs_delete_flag != ''t''
+' LANGUAGE 'sql';
+
+-- ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤¬Åê¹Æ¤·¤¿bbs_res¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_bbs_res_score_by_u_c_id(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM bbs, bbs_res
+ WHERE bbs.bbs_id = bbs_res.bbs_id
+ AND bbs_res.user_community_id = $1
+ AND bbs_res.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+ AND bbs.bbs_delete_flag != ''t''
+ AND bbs_res.bbs_res_delete_flag != ''t''
+' LANGUAGE 'sql';
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤ËÅê¹Æ¤µ¤ì¤¿bbs¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_bbs_score_by_c_id(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM bbs
+ WHERE bbs.community_id = $1
+ AND bbs.bbs_delete_flag != ''t''
+ AND bbs.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+' LANGUAGE 'sql';
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤ËÅê¹Æ¤µ¤ì¤¿bbs_res¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_bbs_res_score_by_c_id(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM bbs, bbs_res
+ WHERE bbs.community_id = $1
+ AND bbs.bbs_delete_flag != ''t''
+ AND bbs.bbs_id = bbs_res.bbs_id
+ AND bbs_res.bbs_res_delete_flag != ''t''
+ AND bbs_res.post_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+' LANGUAGE 'sql';
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£ID($1)¤Îfile_info¥Æ¡¼¥Ö¥ë¿ô¤ò½¸·×¤¹¤ë
+CREATE FUNCTION acs_get_file_info_score(BIGINT, TEXT)
+RETURNS BIGINT AS '
+ SELECT count(*)
+ FROM file_info
+ WHERE file_info.owner_community_id = $1
+ AND file_info.update_date::DATE >= (CURRENT_DATE - (''@ '' || $2 || '' days'')::INTERVAL)
+' LANGUAGE 'sql';
+
+
+-- ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹ --
+-- ·ÇºÜ´ü¸ÂÆ⤫¤É¤¦¤«¤ò¼èÆÀ¤¹¤ë
+CREATE FUNCTION acs_is_expire_date(DATE)
+RETURNS BOOLEAN AS '
+ SELECT (CURRENT_DATE > $1)::BOOLEAN
+' LANGUAGE 'sql';
+
+
+-- ¥³¥ß¥Ã¥È
+COMMIT;
+
+
+----------------------------------------------------------------
+--**************************************************************
+-- ¥·¥¹¥Æ¥à´ÉÍý¼Ô¾ðÊó
+--**************************************************************
+BEGIN;
+
+-- ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+-- ¥Þ¥¤¥Ú¡¼¥¸(¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£)
+INSERT INTO community (community_id, community_name, community_type_code) VALUES (1, '¥·¥¹¥Æ¥à´ÉÍý¼Ô', '10');
+-- ¥æ¡¼¥¶¾ðÊó
+INSERT INTO user_info (user_id, user_community_id, administrator_flag) VALUES ('admin', 1, 't');
+-- »á̾
+INSERT INTO contents (community_id, contents_type_code, contents_value, open_level_code) VALUES (1, '01', '¥·¥¹¥Æ¥à´ÉÍý¼Ô', '02');
+-- ¥á¡¼¥ë¥¢¥É¥ì¥¹
+INSERT INTO contents (community_id, contents_type_code, contents_value, open_level_code) VALUES (1, '02', null, '03');
+-- Á´ÂÎ
+INSERT INTO contents (community_id, contents_type_code, contents_value, open_level_code) VALUES (1, '00', null, '01');
+-- ¥Þ¥¤¥Õ¥ì¥ó¥º
+INSERT INTO contents (community_id, contents_type_code, contents_value, open_level_code) VALUES (1, '11', null, '01');
+-- ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£
+INSERT INTO community (community_id, community_type_code) VALUES (2, '20');
+INSERT INTO sub_community (community_id, sub_community_id) VALUES (1, 2);
+-- ¥·¡¼¥±¥ó¥¹ÈÖ¹æ¤Î³«»ÏÃͤò3¤Ë¥»¥Ã¥È
+SELECT setval ('community_id_seq', 3, false);
+
+COMMIT;
+
+
+----------------------------------------------------------------
+--**************************************************************
+-- ¥«¥Æ¥´¥ê¾ðÊó
+--**************************************************************
+BEGIN;
+
+-- ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥Þ¥¹¥¿
+COPY category_group_master FROM stdin;
+0001 ¸¦µæ
+0002 ¶µ°é
+0003 ʬÌî
+0004 ÁÈ¿¥
+0005 Éô³è¡¦¥µ¡¼¥¯¥ë
+0006 ¼ñÌ£¡¦¸ä³Ú
+0007 ¤½¤Î¾
+\.
+
+-- ¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+COPY category_master FROM stdin;
+0001 ¸¦µæ¼¼ 0001
+0002 ¸¦µæ¥°¥ë¡¼¥× 0001
+0003 ÊÙ¶¯²ñ 0001
+0004 ¶¦Æ±¸¦µæ 0001
+0005 ¥×¥í¥¸¥§¥¯¥È 0001
+0006 ¥¼¥ß 0001
+0007 ³Ø²ñ 0001
+0008 ¥·¥ó¥Ý¥¸¥¦¥à 0001
+0009 ¸¦µæ²ñ 0001
+0010 ¥ï¡¼¥¯¥·¥ç¥Ã¥× 0001
+0011 ¹ÖµÁ 0002
+0012 ÆÃÊֵ̹Á 0002
+0013 À¸³¶¶µ°é 0002
+0014 ¥Ï¡¼¥É¥¦¥§¥¢ 0003
+0015 ¥½¥Õ¥È¥¦¥§¥¢ 0003
+0016 ¥Í¥Ã¥È¥ï¡¼¥¯ 0003
+0017 ¥Ç¡¼¥¿¥Ù¡¼¥¹ 0003
+0018 ¥¢¥ë¥´¥ê¥º¥à 0003
+0019 ²»À¼½èÍý 0003
+0020 ²èÁü¡¦±ÇÁü½èÍý 0003
+0021 ¥á¥Ç¥£¥¢½èÍý 0003
+0022 ¥Ñ¥¿¡¼¥ó¾ðÊó½èÍý 0003
+0023 ¿ôÍý´ðÁà 0003
+0024 ¿ôÍý¥â¥Ç¥ë 0003
+0025 ·×»»ÏÀ 0003
+0026 ½¸ÀÑ¥·¥¹¥Æ¥à 0003
+0027 ÏÀÍý²óÏ© 0003
+0028 Áȹþ¤ß¥·¥¹¥Æ¥à 0003
+0029 ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à 0003
+0030 ¥·¥¹¥Æ¥àÀ©¸æ 0003
+0031 ¥×¥í¥°¥é¥ß¥ó¥° 0003
+0032 ¼«Á³¸À¸ì½èÍý 0003
+0033 ¥»¥¥å¥ê¥Æ¥£ 0003
+0034 Ãμ±¾ðÊó½èÍý 0003
+0035 À¸ÂξðÊó½èÍý 0003
+0036 ¥â¥Ð¥¤¥ë 0003
+0037 ¥æ¥Ó¥¥¿¥¹ 0003
+0038 °åÎÅ 0003
+0039 Ê¡»ã 0003
+0040 ¥³¥ß¥å¥Ë¥±¡¼¥·¥ç¥ó 0003
+0041 ¥°¥ê¥Ã¥É 0003
+0042 ǧÃÎ²Ê³Ø 0003
+0043 ¥á¥Ç¥£¥¢±þÍÑ 0003
+0044 ¥·¥ß¥å¥ì¡¼¥·¥ç¥ó 0003
+0045 ¿¼«Í³ÅÙ¥·¥¹¥Æ¥à 0003
+0046 ʪ¼Á¾ðÊó 0003
+0047 À¸Ì¿¾ðÊó 0003
+0048 Â絬ÌÏ·×»» 0003
+0049 °å³Ø°ìÈÌ 0003
+0050 ²½³Ø°ìÈÌ 0003
+0051 À¸Êª³Ø°ìÈÌ 0003
+0052 ʪÍý³Ø°ìÈÌ 0003
+0053 ¾ðÊó¥â¥Ç¥ë 0003
+0054 ʬ»¶¶¨Ä´ 0003
+0055 ÃÎŪ»Ù±ç 0003
+0056 ¾ðÊó¥Ç¥¶¥¤¥ó 0003
+0057 ů³Ø¡¦ÎÑÍý 0003
+0058 ¶µÍÜ°ìÈÌ 0003
+0059 ¸À¸ì 0003
+0060 ¶µ°é 0003
+0061 ¿´Íý 0003
+0062 ·ÐºÑ 0003
+0063 ʸ³Ø 0003
+0064 ˡΧ 0003
+0065 ¼Ò²ñ 0003
+0066 ·ò¹¯¡¦ÊÝ·ò 0003
+0067 ³ØÉô 0004
+0068 ³Ø²Ê 0004
+0069 ¸¦µæ²Ê 0004
+0070 À칶 0004
+0071 ¥³¡¼¥¹ 0004
+0072 °Ñ°÷²ñ 0004
+0073 ʸ²½·Ï 0005
+0074 ±¿Æ°·Ï 0005
+0075 ËÜ¡¦ºî²È 0006
+0076 ²»³Ú¡¦²Î¼ê 0006
+0077 ±Ç²è¡¦¥Æ¥ì¥Ó¡¦¥¢¥Ë¥á¡¦ÇÐÍ¥ 0006
+0078 ¥²¡¼¥à 0006
+0079 ¼Ö¡¦¥Ð¥¤¥¯ 0006
+0080 ι¹Ô 0006
+0081 ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¡¦¥³¥ó¥Ô¥å¡¼¥¿ 0006
+0082 ¥Õ¡¼¥É¡¦¥ì¥¹¥È¥é¥ó 0006
+0083 ¥Õ¥¡¥Ã¥·¥ç¥ó 0006
+0084 ¥Ú¥Ã¥È¡¦Æ°Êª 0006
+0085 ¥¹¥Ý¡¼¥Ä¡¦¥¢¥¦¥È¥É¥¢ 0006
+0086 »ñ³Ê¡¦¸¡Äê 0006
+0087 ¼ñÌ£¡¦¸ä³ÚÁ´ÈÌ 0006
+0088 ¤½¤Î¾ 0007
+\.
+
+COMMIT;
+
+
+----------------------------------------------------------------
+
+
+-- EOF
--- /dev/null
+----------------------------------------------------------------
+-- ¥Æ¥¹¥È¥Ç¡¼¥¿
+-- $Id: test_data.sql,v 1.7 2006/12/18 07:41:46 w-ota Exp $
+----------------------------------------------------------------
+
+
+-- ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó³«»Ï
+BEGIN;
+
+
+-- ¥Þ¥¤¥Ú¡¼¥¸
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Ú¡¼¥¸:10)
+COPY community FROM stdin;
+1000 ¥¿¥í¥¦ 10 \N f now f
+1001 ¥¤¥Á¥í¥¦ 10 \N f now f
+1002 ¥¸¥í¥¦ 10 \N f now f
+1003 ¥µ¥Ö¥í¥¦ 10 \N f now f
+1004 ¥·¥í¥¦ 10 \N f now f
+1005 ¥´¥í¥¦ 10 \N f now f
+1010 \N 10 \N f now f
+\.
+
+
+-- ¥Þ¥¤¥Õ¥ì¥ó¥º
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º:20)
+COPY community FROM stdin;
+2000 \N 20 \N f now f
+2001 \N 20 \N f now f
+2002 \N 20 \N f now f
+2003 \N 20 \N f now f
+2004 \N 20 \N f now f
+2005 \N 20 \N f now f
+2010 \N 20 \N f now f
+\.
+
+COPY sub_community FROM stdin;
+1000 2000
+1001 2001
+1002 2002
+1003 2003
+1004 2004
+1005 2005
+1010 2010
+\.
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×:30)
+COPY community FROM stdin;
+3000 ͧ¿Í 30 \N f now f
+3010 ¥Ü¥¹ 30 \N f now f
+\.
+
+COPY sub_community FROM stdin;
+2000 3000
+2000 3010
+\.
+
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£(¥³¥ß¥å¥Ë¥Æ¥£:40)
+COPY community FROM stdin;
+4001 A¸¦µæ¼¼ 40 0001 f 2005/10/10 f
+4002 P¥×¥í¥¸¥§¥¯¥È 40 0005 f 2005/10/10 f
+4003 PostgreSQL 40 0017 t 2005/10/10 f
+4011 XXÊÙ¶¯²ñ 40 0003 f 2005/10/11 f
+4012 YYÊÙ¶¯²ñ 40 0003 f 2005/10/12 f
+\.
+
+-- ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÀßÄê
+COPY sub_community FROM stdin;
+4001 4011
+4001 4012
+4002 4012
+\.
+
+-- ¥³¥ó¥Æ¥ó¥Ä
+COPY contents FROM stdin;
+4001 07 ¤³¤³¤ÏA¸¦µæ¼¼¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤¹¡£ 01
+4002 07 ¤³¤³¤ÏP¥×¥í¥¸¥§¥¯¥È¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤¹¡£ 01
+4003 07 ¤³¤³¤ÏPostgreSQL¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤¹¡£ 01
+4011 07 ¤³¤³¤ÏXXÊÙ¶¯²ñ¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤¹¡£ 01
+4012 07 ¤³¤³¤ÏYYÊÙ¶¯²ñ¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤¹¡£ 01
+4001 00 \N 01
+4002 00 \N 01
+4003 00 \N 01
+4011 00 \N 03
+4012 00 \N 03
+4001 31 \N 01
+4002 31 \N 01
+4003 31 \N 02
+4011 31 \N 04
+4012 31 \N 04
+4001 41 \N 01
+4002 41 \N 01
+4003 41 \N 04
+4011 41 \N 04
+4012 41 \N 04
+1000 00 \N 01
+1000 01 »³ÅÄÂÀϺ 02
+1000 02 acs-yamada@xxx.yyy.zz.jp 03
+1000 03 ¾ðÊóʸ²½³ØÉô 01
+1000 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1000 05 °¦ÃÎ 05
+1000 06 1987/01/01 05
+1000 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤ä¤Þ¤À¤Ç¤¹¡£(°ìÈ̸þ¤±) 01
+1000 08 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤ä¤Þ¤À¤Ç¤¹¡£(¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±) 02
+1000 09 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤ä¤Þ¤À¤Ç¤¹¡£(ͧ¿Í¸þ¤±) 05
+1000 11 \N 01
+1001 00 \N 01
+1001 01 ÎëÌÚ°ìϺ 02
+1001 02 acs-suzuki1@xxx.yyy.zz.jp 03
+1001 03 ¾ðÊóʸ²½³ØÉô 01
+1001 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1001 05 °¦ÃÎ 01
+1001 06 1987/01/01 01
+1001 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤¤¤Á¤í¤¦¤Ç¤¹¡£ 01
+1001 08 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤¤¤Á¤í¤¦¤Ç¤¹¡£(¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±) 02
+1001 11 \N 01
+1002 00 \N 01
+1002 01 ÎëÌÚÆóϺ 02
+1002 02 acs-suzuki2@xxx.yyy.zz.jp 03
+1002 03 ¾ðÊóʸ²½³ØÉô 01
+1002 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1002 05 °¦ÃÎ 01
+1002 06 1987/01/01 01
+1002 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤¸¤í¤¦¤Ç¤¹¡£ 01
+1002 08 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤¸¤í¤¦¤Ç¤¹¡£(¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±) 02
+1002 11 \N 01
+1003 00 \N 01
+1003 01 ÎëÌÚ»°Ïº 02
+1003 02 acs-suzuki3@xxx.yyy.zz.jp 03
+1003 03 ¾ðÊóʸ²½³ØÉô 01
+1003 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1003 05 °¦ÃÎ 01
+1003 06 1987/01/01 01
+1003 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤µ¤Ö¤í¤¦¤Ç¤¹¡£ 01
+1003 11 \N 01
+1004 00 \N 01
+1004 01 ÎëÌÚ»ÍϺ 02
+1004 02 acs-suzuki4@xxx.yyy.zz.jp 04
+1004 03 ¾ðÊóʸ²½³ØÉô 01
+1004 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1004 05 °¦ÃÎ 01
+1004 06 1987/01/01 01
+1004 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤·¤í¤¦¤Ç¤¹¡£ 01
+1004 11 \N 01
+1005 00 \N 01
+1005 01 ÎëÌÚ¸ÞϺ 02
+1005 02 acs-suzuki5@xxx.yyy.zz.jp 03
+1005 03 ¾ðÊóʸ²½³ØÉô 01
+1005 04 ¼«Á³¾ðÊó³Ø²Ê 01
+1005 05 °¦ÃÎ 03
+1005 06 1987/01/01 03
+1005 07 ¤³¤ó¤Ë¤Á¤Ï¡£\n¤´¤í¤¦¤Ç¤¹¡£ 01
+1005 11 \N 01
+1010 00 \N 03
+1010 01 º´Æ£Èó¸ø³«ÂÀϺ 02
+1010 02 acs-satou@xxx.yyy.zz.jp 03
+1010 11 \N 01
+\.
+
+
+-- ¥³¥ó¥Æ¥ó¥Ä ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+COPY contents_trusted_community FROM stdin;
+1000 05 05 3000
+1000 05 05 3010
+1000 06 05 2000
+\.
+
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð(¥Þ¥¤¥Õ¥ì¥ó¥º)
+COPY community_member FROM stdin;
+2000 1001 \N
+2000 1002 \N
+2000 1003 \N
+2000 1004 \N
+2001 1000 \N
+2001 1005 \N
+2002 1000 \N
+2003 1000 \N
+2004 1000 \N
+2005 1001 \N
+\.
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð(¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥°¥ë¡¼¥×)
+COPY community_member FROM stdin;
+3000 1002 \N
+3000 1003 \N
+3010 1004 \N
+\.
+
+-- ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð(°ìÈÌ¥³¥ß¥å¥Ë¥Æ¥£)
+COPY community_member FROM stdin;
+4001 1000 10
+4001 1001 20
+4001 1002 20
+4001 1003 20
+4002 1003 10
+4002 1000 20
+4003 1001 10
+4003 1002 10
+4003 1003 20
+4011 1000 10
+4011 1003 20
+4012 1004 10
+\.
+
+
+-- ¥æ¡¼¥¶¾ðÊó
+COPY user_info FROM stdin;
+yamada 1000 f
+suzuki1 1001 f
+suzuki2 1002 f
+suzuki3 1003 f
+suzuki4 1004 f
+suzuki5 1005 f
+satou 1010 f
+\.
+
+
+-- ¡ú¥À¥¤¥¢¥ê¡¼
+COPY diary FROM stdin;
+10001 1000 ¥Æ¥¹¥ÈÆüµ1 ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµ1¤Ç¤¹¡£\ntest now 01 f
+10002 1000 ¥Æ¥¹¥ÈÆüµ2 ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµ2¤Ç¤¹¡£\ntest now 02 f
+10003 1000 ¥Æ¥¹¥ÈÆüµ3 ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµ3¤Ç¤¹¡£\ntest now 05 f
+10004 1000 ¥Æ¥¹¥ÈÆüµ4 ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµ4¤Ç¤¹¡£\ntest now 03 f
+10011 1001 ¥Æ¥¹¥ÈÆüµA ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµA¤Ç¤¹¡£\ntest now 02 f
+10021 1002 ¥Æ¥¹¥ÈÆüµB ¤³¤ì¤Ï¥Æ¥¹¥ÈÆüµB¤Ç¤¹¡£\ntest now 01 f
+\.
+
+-- ¡ú¥À¥¤¥¢¥ê¡¼¿®ÍêºÑ¤ß
+COPY diary_trusted_community FROM stdin;
+10003 2000
+\.
+
+-- ¡ú¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È
+COPY diary_comment FROM stdin;
+10001 10001 1001 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+10002 10001 1003 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+10003 10011 1000 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+10004 10011 1001 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+10005 10011 1002 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+10006 10011 1003 ¤³¤ì¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£ now f
+\.
+
+-- ¡ú·Ç¼¨ÈÄ
+COPY bbs FROM stdin;
+50010 4001 1000 ¥Æ¥¹¥ÈÅê¹Æ ¤³¤ì¤Ï¥Æ¥¹¥È½ñ¤¹þ¤ß¤Ç¤¹¡£\ntest1 now 04 \N f f
+50011 4001 1001 ¥Æ¥¹¥ÈÅê¹Æ2 ¤³¤ì¤Ï¥Æ¥¹¥È½ñ¤¹þ¤ß2¤Ç¤¹¡£\ntest2 now 04 \N f f
+50012 4001 1001 ¥Æ¥¹¥ÈÅê¹Æ3 ¤³¤ì¤Ï¥Æ¥¹¥È½ñ¤¹þ¤ß3¤Ç¤¹¡£\ntest3 2005/01/02 03:04:05 02 \N f f
+50015 4001 1001 ¥Æ¥¹¥È¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ¤³¤ì¤Ï¥Æ¥¹¥È¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤Ç¤¹¡£\ntest now 06 2007-03-31 f f
+50030 4003 1001 ¥Æ¥¹¥ÈÅê¹Æ ¤³¤ì¤Ï¥Æ¥¹¥È½ñ¤¹þ¤ß¤Ç¤¹¡£\ntest now 01 \N f f
+\.
+
+-- ¡ú·Ç¼¨ÈÄÊÖ¿®
+COPY bbs_res FROM stdin;
+50001 50010 1001 Re: ¥Æ¥¹¥ÈÅê¹Æ ¤³¤ì¤ÏÊÖ¿®¤Ç¤¹¡£\nTEST now f
+50002 50010 1002 Re: ¥Æ¥¹¥ÈÅê¹Æ ¤³¤ì¤ÏÊÖ¿®¤Ç¤¹¡£\nTEST now f
+\.
+
+-- ¡ú·Ç¼¨ÈÄ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+COPY bbs_trusted_community FROM stdin;
+50011 4011
+50011 4012
+\.
+
+
+-- ¥³¥ß¥Ã¥È
+COMMIT;
--- /dev/null
+<?php
+// System Installation Directory
+define('MO_BASE_DIR', '/home/acsuser/acs/');
+
+// PEAR Installation Directory
+define('MO_PEAR_DIR', MO_BASE_DIR . '/pear');
+
+// FPDF Font Installation Directory
+define('FPDF_FONTPATH', 'font/');
+
+// Log output Directory
+define('MO_LOG_DIR', MO_BASE_DIR . '/logs');
+
+// Define level
+define('LEVEL_DEBUG', 1000);
+define('LEVEL_INFO', 2000);
+define('LEVEL_ERROR', 4000);
+define('LEVEL_WARN', 3000);
+define('LEVEL_FATAL', 5000);
+
+
+/**
+ * ¥í¥°¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¥Ñ¥é¥á¡¼¥¿
+ * c .... ¥¯¥é¥¹Ì¾
+ * F .... ¥Õ¥¡¥ó¥¯¥·¥ç¥ó̾
+ * l .... ¹ÔÈÖ¹æ
+ * m .... ¥á¥Ã¥»¡¼¥¸
+ * N .... ¥á¥Ã¥»¡¼¥¸Ì¾
+ * p .... ¥á¥Ã¥»¡¼¥¸¥Ñ¥é¥á¡¼¥¿ÈÖ¹æ
+ * n .... ²þ¹Ô¥³¡¼¥É
+ * r .... Éüµ¢¥³¡¼¥É
+ * t .... ¥¿¥Ö¥³¡¼¥É
+ * T .... »þ¹ï
+ * C .... Äê¿ô̾¡Ê%C{Äê¿ô̾}¤È¤¹¤ë¤È¡¢Äê¿ô¤ÎÃͤ¬½ÐÎϤµ¤ì¤ë¡Ë
+ * d .... ÆüÉÕ¡Ê%d{½ñ¼°}¤È¤¹¤ë¤È¡¢ÆüÉդΥե©¡¼¥Þ¥Ã¥È¤¬»ØÄê¤Ç¤¤ë¡Ë
+ * f .... ¥Õ¥¡¥¤¥ë̾¡Ê%f{'file'}¤È¤¹¤ë¤È¡¢basename¤¬½ÐÎϤµ¤ì¡¢%f{'dir'}¤È¤¹¤ë¤È¡¢dirname¤¬½ÐÎϤµ¤ì¤ë¡Ë
+ * x .... Ǥ°Õ¤ÎÃÍ¡ÊLogger¤Ë³ÊǼ¤µ¤ì¤¿¥Ñ¥é¥á¡¼¥¿Ì¾¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ÎÃͤ¬½ÐÎϤµ¤ì¤ë¡Ë
+ */
+// Log filename
+define('MO_LOG_FILENAME', 'mojavi_%d{Ymd}.log');
+
+// Log Pattern Layout
+define('MO_LOG_PATTERN_LAYOUT', '[%N] %d{Y/m/d H:i:s} [%x{ip_address} - %x{login_id}] %m %c::%F() %f:%l %x{data}%n');
+
+// Database Default Configuration
+define('DB_PHPTYPE', 'mysqli');
+define('DB_HOSTSPEC', 'localhost');
+define('DB_PORT', '3306');
+define('DB_DATABASE', '');
+define('DB_USERNAME', '');
+define('DB_PASSWORD', '');
+
+// Error column Color
+define('S4_ERROR_COLUMN_COLOR', 'background:lightpink;');
+
+// Screen Name List
+define('S4_SCREEN_NAME_LIST', 'screen.ini');
+
+/*
+ Mail Configuration
+ ¢¨É¬Íײսê¤Ë¤À¤±ÀßÄê¤ò»Ü¤¹¤³¤È¡£Ì¤ÀßÄê¤Î¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤ò»ÈÍѤ¹¤ë¡£
+*/
+// -------------(¤³¤³¤«¤é)-------------
+define('S4_MAIL_SENDER_ADDR', ''); //S4 Á÷¿®¼Ô¥¢¥É¥ì¥¹
+
+// ¥á¡¼¥ëÁ÷¿®ÊýË¡¡§mail¡Êphp mailÁ÷¿®¡Ë sendmail:sendmailÁ÷¿® smtp:SMTPÁ÷¿®
+define('S4_MAIL_DRIVER', 'mail'); //mail, sendmail, smtp
+
+// php mailÀßÄê
+define('S4_MAIL_ARGS', ''); // mail()¤ÎÄɲåѥé¥á¡¼¥¿¡ÊÂè5°ú¿ô¡Ë
+
+// sendmailÀßÄê
+define('S4_SENDMAIL_PATH', ''); //sendmail¤Î¾ì½ê¡Ê¥Ç¥Õ¥©¥ë¥È¡§/usr/bin/sendmail¡Ë
+define('S4_SENDMAIL_ARGS', ''); // sendmai¤ÎÄɲåѥé¥á¡¼¥¿¡Ê¥Ç¥Õ¥©¥ë¥È¡§-i¡Ë
+
+// smtpÀßÄê
+define('S4_SMTP_HOST', ''); // SMTPÀܳ¥µ¡¼¥Ð̾¡Ê¥Ç¥Õ¥©¥ë¥È¡§localhost¡Ë
+define('S4_SMTP_PORT', ''); // SMTPÀܳ¤¹¤ë¥Ý¡¼¥ÈÈÖ¹æ¡Ê¥Ç¥Õ¥©¥ë¥È¡§25¤Ç¤¹¡Ë
+define('S4_SMTP_AUTH', ''); // SMTPǧ¾ÚÍ̵¡Ê¥Ç¥Õ¥©¥ë¥È¡§false¡Ë
+define('S4_SMTP_USERNAME', ''); // SMTPǧ¾Ú¥æ¡¼¥¶Ì¾
+define('S4_SMTP_PASSWORD', ''); // SMTPǧ¾Ú¥Ñ¥¹¥ï¡¼¥É
+define('S4_SMTP_LOCALHOST', ''); // EHLO/HELO¤ÎÁ÷¿®¥Ñ¥é¥á¡¼¥¿¡Ê¥Ç¥Õ¥©¥ë¥È¡§localhost¡Ë
+define('S4_SMTP_TIMEOUT', ''); // SMTPÀܳ¤Î¥¿¥¤¥à¥¢¥¦¥È¡Ê¥Ç¥Õ¥©¥ë¥È¡§null(¥¿¥¤¥à¥¢¥¦¥È¤·¤Ê¤¤)¡Ë
+define('S4_SMTP_VERP', ''); // VERP»ÈÍѡʥǥե©¥ë¥È¡§false¡Ë
+define('S4_SMTP_DEBUG', ''); // SMTP¥Ç¥Ð¥Ã¥°¥â¡¼¥É¡Ê¥Ç¥Õ¥©¥ë¥È¡§false¡Ë
+define('S4_SMTP_PERSIST', ''); // send()¥á¥½¥Ã¥É¤ÎÊ£¿ô²ó¸Æ½Ð¤·¤ÇSMTPÀܳ¤ò»ý³¤µ¤»¤ë¡Ê¥Ç¥Õ¥©¥ë¥È¡§false¡Ë
+// -------------(¤³¤³¤Þ¤Ç)-------------
+
+// Mail Queue table name
+define('S4_MAIL_TABLE', 'mail_queue');
+
+// +---------------------------------------------------------------------------+
+// | Should we run the system in debug mode? When this is on, there may be |
+// | various side-effects. But for the time being it only deletes the cache |
+// | upon start-up. |
+// | |
+// | This should stay on while you're developing your application, because |
+// | many errors can stem from the fact that you're using an old cache file. |
+// +---------------------------------------------------------------------------+
+// true = ¥¢¥¯¥»¥¹¤´¤È¤Ë¥¥ã¥Ã¥·¥å¤òºî¤ë¤Î¤Ç¼Â²ÔÆ°»þ¤Ï¤«¤Ê¤é¤ºfalse¤Ë¤¹¤ë¤³¤È
+define('MO_DEBUG', false);
+
+// +---------------------------------------------------------------------------+
+// | The PHP error reporting level. |
+// | |
+// | See: http://www.php.net/error_reporting |
+// +---------------------------------------------------------------------------+
+// ¥¨¥é¡¼¥ì¥Ù¥ë¤ÎÀßÄê
+//;define('MO_ERROR_REPORTING', E_ALL | E_STRICT);
+define('MO_ERROR_REPORTING', E_ALL);
+
+// +---------------------------------------------------------------------------+
+// | An absolute filesystem path to the mojavi package. This directory |
+// | contains all the Mojavi packages. |
+// +---------------------------------------------------------------------------+
+//;define('MO_APP_DIR', '<REPLACE ME>/mojavi');
+define('MO_APP_DIR', MO_BASE_DIR . '/mojavi');
+
+// +---------------------------------------------------------------------------+
+// | An absolute filesystem path to your web application directory. This |
+// | directory is the root of your web application, which includes the core |
+// | configuration files and related web application data. |
+// +---------------------------------------------------------------------------+
+//;define('MO_WEBAPP_DIR', '<REPLACE ME>/webapp');
+define('MO_WEBAPP_DIR', MO_BASE_DIR . '/webapp');
+
+// +---------------------------------------------------------------------------+
+// | An absolute filesystem path to the directory where cache files will be |
+// | stored. |
+// | |
+// | NOTE: If you're going to use a public temp directory, make sure this is a |
+// | sub-directory of the temp directory. The cache system will attempt |
+// | to clean up *ALL* data in this directory. |
+// +---------------------------------------------------------------------------+
+define('MO_CACHE_DIR', MO_WEBAPP_DIR . '/cache');
+
+// Smarty Installation Directory
+define('MO_SMARTY_DIR', MO_BASE_DIR . '/smarty');
+
+?>
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; | -------------------------------------------------------------------------- |
+; | MOJAVI AUTO LOAD CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | Any file listed here will automatically be loaded by PHP when the class is |
+; | first accessed. This means you do not manually have to include it in your |
+; | files. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in file or param values: |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+[autoload]
+
+ ; +------------------------------------------------------------------------+
+ ; | Mojavi Classes |
+ ; +------------------------------------------------------------------------+
+
+ ; mojavi/config
+ CompileConfigHandler = "%MO_APP_DIR%/config/CompileConfigHandler.class.php"
+ DatabaseConfigHandler = "%MO_APP_DIR%/config/DatabaseConfigHandler.class.php"
+ DefineConfigHandler = "%MO_APP_DIR%/config/DefineConfigHandler.class.php"
+ FactoryConfigHandler = "%MO_APP_DIR%/config/FactoryConfigHandler.class.php"
+ FilterConfigHandler = "%MO_APP_DIR%/config/FilterConfigHandler.class.php"
+ LoggingConfigHandler = "%MO_APP_DIR%/config/LoggingConfigHandler.class.php"
+ ModuleConfigHandler = "%MO_APP_DIR%/config/ModuleConfigHandler.class.php"
+ ValidatorConfigHandler = "%MO_APP_DIR%/config/ValidatorConfigHandler.class.php"
+
+ ; mojavi/controller
+ ConsoleController = "%MO_APP_DIR%/controller/ConsoleController.class.php"
+ FrontWebController = "%MO_APP_DIR%/controller/FrontWebController.class.php"
+ PageWebController = "%MO_APP_DIR%/controller/PageWebController.class.php"
+ WebController = "%MO_APP_DIR%/controller/WebController.class.php"
+
+ ; mojavi/database
+ CreoleDatabase = "%MO_APP_DIR%/database/CreoleDatabase.class.php"
+ Database = "%MO_APP_DIR%/database/Database.class.php"
+ DatabaseManager = "%MO_APP_DIR%/database/DatabaseManager.class.php"
+ MySQLDatabase = "%MO_APP_DIR%/database/MySQLDatabase.class.php"
+ PDODatabase = "%MO_APP_DIR%/database/PDODatabase.class.php"
+ PostgreSQLDatabase = "%MO_APP_DIR%/database/PostgreSQLDatabase.class.php"
+
+ ; mojavi/exception
+ ControllerException = "%MO_APP_DIR%/exception/ControllerException.class.php"
+ DatabaseException = "%MO_APP_DIR%/exception/DatabaseException.class.php"
+ FactoryException = "%MO_APP_DIR%/exception/FactoryException.class.php"
+ FileException = "%MO_APP_DIR%/exception/FileException.class.php"
+ FilterException = "%MO_APP_DIR%/exception/FilterException.class.php"
+ ForwardException = "%MO_APP_DIR%/exception/ForwardException.class.php"
+ InitializationException = "%MO_APP_DIR%/exception/InitializationException.class.php"
+ LoggingException = "%MO_APP_DIR%/exception/LoggingException.class.php"
+ RenderException = "%MO_APP_DIR%/exception/RenderException.class.php"
+ StorageException = "%MO_APP_DIR%/exception/StorageException.class.php"
+ SecurityException = "%MO_APP_DIR%/exception/SecurityException.class.php"
+ ValidatorException = "%MO_APP_DIR%/exception/ValidatorException.class.php"
+ ViewException = "%MO_APP_DIR%/exception/ViewException.class.php"
+ ApplicationException = "%MO_APP_DIR%/exception/ApplicationException.class.php"
+
+ ; mojavi/filter
+ BasicSecurityFilter = "%MO_APP_DIR%/filter/BasicSecurityFilter.class.php"
+ ExecutionTimeFilter = "%MO_APP_DIR%/filter/ExecutionTimeFilter.class.php"
+ SecurityFilter = "%MO_APP_DIR%/filter/SecurityFilter.class.php"
+
+ ; mojavi/logging
+ FileAppender = "%MO_APP_DIR%/logging/FileAppender.class.php"
+ MailAppender = "%MO_APP_DIR%/logging/MailAppender.class.php"
+ StderrAppender = "%MO_APP_DIR%/logging/StderrAppender.class.php"
+ StdoutAppender = "%MO_APP_DIR%/logging/StdoutAppender.class.php"
+
+ ; mojavi/model
+ Model = "%MO_APP_DIR%/model/Model.class.php"
+
+ ; mojavi/request
+ ConsoleRequest = "%MO_APP_DIR%/request/ConsoleRequest.class.php"
+ WebRequest = "%MO_APP_DIR%/request/WebRequest.class.php"
+
+ ; mojavi/storage
+ MySQLSessionStorage = "%MO_APP_DIR%/storage/MySQLSessionStorage.class.php"
+ PostgreSQLSessionStorage = "%MO_APP_DIR%/storage/PostgreSQLSessionStorage.class.php"
+ SessionStorage = "%MO_APP_DIR%/storage/SessionStorage.class.php"
+
+ ; mojavi/user
+ BasicSecurityUser = "%MO_APP_DIR%/user/BasicSecurityUser.class.php"
+ SecurityUser = "%MO_APP_DIR%/user/SecurityUser.class.php"
+
+ ; mojavi/util
+ ConversionPattern = "%MO_APP_DIR%/util/ConversionPattern.class.php"
+
+ ; mojavi/validator
+ DateValidator = "%MO_APP_DIR%/validator/DateValidator.class.php"
+ EmailValidator = "%MO_APP_DIR%/validator/EmailValidator.class.php"
+ NumberValidator = "%MO_APP_DIR%/validator/NumberValidator.class.php"
+ RegexValidator = "%MO_APP_DIR%/validator/RegexValidator.class.php"
+ StringValidator = "%MO_APP_DIR%/validator/StringValidator.class.php"
+ ChoiceValidator = "%MO_APP_DIR%/validator/ChoiceValidator.class.php"
+ FieldMatchValidator = "%MO_APP_DIR%/validator/FieldMatchValidator.class.php"
+ URLValidator = "%MO_APP_DIR%/validator/URLValidator.class.php"
+
+ ; mojavi/view
+ PHPView = "%MO_APP_DIR%/view/PHPView.class.php"
+ SmartyView = "%MO_APP_DIR%/view/SmartyView.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; | Custom Classes |
+ ; | ---------------------------------------------------------------------- |
+ ; | Any classes you see fit that might be of use, such as classes that |
+ ; | used in a session that must exist when the session unserializes its |
+ ; | data. Another good example is a custom factory implementation such as |
+ ; | a controller or user. |
+ ; +------------------------------------------------------------------------+
+
+ ; +------------------------------------------------------------------------+
+ ; example
+ ; MyCustomClass = "%MO_WEBAPP_DIR%/lib/MyCustomClass.class.php"
+ ; +------------------------------------------------------------------------+
+
+ ConnectionFactory = "%MO_WEBAPP_DIR%/lib/database/common/ConnectionFactory.class.php"
+ ;DefArray = "%MO_WEBAPP_DIR%/lib/DefArray.class.php"
+ CommonMessages = "%MO_WEBAPP_DIR%/lib/CommonMessages.class.php"
+ CommonMakeText = "%MO_WEBAPP_DIR%/lib/CommonMakeText.class.php"
+ CommonMail = "%MO_WEBAPP_DIR%/lib/CommonMail.class.php"
+ PDFAction = "%MO_WEBAPP_DIR%/lib/PDFAction.class.php"
+
+ ;LoginAction = "%MO_WEBAPP_DIR%/modules/Default/actions/LoginAction.class.php"
+
+ System_Command = "%MO_PEAR_DIR%/System/Command.php"
+ Pager_Jumping = "%MO_PEAR_DIR%/Pager/Jumping.php"
+ Pager_Sliding = "%MO_PEAR_DIR%/Pager/Sliding.php"
+ Mail = "%MO_PEAR_DIR%/Mail.php"
+
+ ; +------------------------------------------------------------------------+
+ ; DAO Class
+ ; +------------------------------------------------------------------------+
+ DAO = "%MO_WEBAPP_DIR%/lib/database/dao/DAO.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; Value Class
+ ; +------------------------------------------------------------------------+
+ Value = "%MO_WEBAPP_DIR%/lib/logic/value/Value.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; Service Class
+ ; +------------------------------------------------------------------------+
+ Service = "%MO_WEBAPP_DIR%/lib/logic/service/Service.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; Extends Parent Action Class
+ ; +------------------------------------------------------------------------+
+
+ ; +------------------------------------------------------------------------+
+ ; Base Action/View Class
+ ; +------------------------------------------------------------------------+
+ BaseAction = "%MO_WEBAPP_DIR%/lib/BaseAction.class.php"
+ BaseView = "%MO_WEBAPP_DIR%/lib/BaseView.class.php"
+ ViewEx = "%MO_WEBAPP_DIR%/lib/ViewEx.class.php"
+ SimpleBaseView = "%MO_WEBAPP_DIR%/lib/SimpleBaseView.class.php"
+ SimpleViewEx = "%MO_WEBAPP_DIR%/lib/SimpleViewEx.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; ACS Common Class
+ ; +------------------------------------------------------------------------+
+ ACSMsg = "%MO_WEBAPP_DIR%/lib/message/ACSMsg.class.php"
+
+ ACSDB = "%MO_WEBAPP_DIR%/lib/class/ACSDB.class.php"
+ ACSLib = "%MO_WEBAPP_DIR%/lib/class/ACSLib.class.php"
+ ACSErrorCheck = "%MO_WEBAPP_DIR%/lib/class/ACSErrorCheck.class.php"
+ ACSAccessControl = "%MO_WEBAPP_DIR%/lib/class/ACSAccessControl.class.php"
+ ACSSchedule = "%MO_WEBAPP_DIR%/lib/class/ACSSchedule.class.php"
+ ACSScheduleParticipant = "%MO_WEBAPP_DIR%/lib/class/ACSScheduleParticipant.class.php"
+ ACSSystem = "%MO_WEBAPP_DIR%/lib/class/ACSSystem.class.php"
+ ACSSystemConfig = "%MO_WEBAPP_DIR%/lib/class/ACSSystemConfig.class.php"
+ ACSSystemAnnounce = "%MO_WEBAPP_DIR%/lib/class/ACSSystemAnnounce.class.php"
+ ACSLog = "%MO_WEBAPP_DIR%/lib/class/ACSLog.class.php"
+ ACSMessage = "%MO_WEBAPP_DIR%/lib/class/ACSMessage.class.php"
+ ACSUser = "%MO_WEBAPP_DIR%/lib/class/ACSUser.class.php"
+ ACSUserFolder = "%MO_WEBAPP_DIR%/lib/class/ACSUserFolder.class.php"
+ ACSWaiting = "%MO_WEBAPP_DIR%/lib/class/ACSWaiting.class.php"
+ ACSWaitingModel = "%MO_WEBAPP_DIR%/lib/class/ACSWaitingModel.class.php"
+ ACSDone = "%MO_WEBAPP_DIR%/lib/class/ACSDone.class.php"
+ ACSImageMagickWrapper = "%MO_WEBAPP_DIR%/lib/class/ACSImageMagickWrapper.class.php"
+ ACSDiary = "%MO_WEBAPP_DIR%/lib/class/ACSDiary.class.php"
+ ACSDiaryAccessHistoryModel = "%MO_WEBAPP_DIR%/lib/class/ACSDiaryAccessHistoryModel.class.php"
+ ACSCommunity = "%MO_WEBAPP_DIR%/lib/class/ACSCommunity.class.php"
+ ACSCommunityMail = "%MO_WEBAPP_DIR%/lib/class/ACSCommunityMail.class.php"
+ ACSCommunityMemberModel = "%MO_WEBAPP_DIR%/lib/class/ACSCommunityMemberModel.class.php"
+ ACSCommunityFolder = "%MO_WEBAPP_DIR%/lib/class/ACSCommunityFolder.class.php"
+ ACSCommunityImageFileModel = "%MO_WEBAPP_DIR%/lib/class/ACSCommunityImageFileModel.class.php"
+ ACSBBS = "%MO_WEBAPP_DIR%/lib/class/ACSBBS.class.php"
+ ACSBBSAccessHistoryModel = "%MO_WEBAPP_DIR%/lib/class/ACSBBSAccessHistoryModel.class.php"
+ ACSFile = "%MO_WEBAPP_DIR%/lib/class/ACSFile.class.php"
+ ACSFolder = "%MO_WEBAPP_DIR%/lib/class/ACSFolder.class.php"
+ ACSFileInfoModel = "%MO_WEBAPP_DIR%/lib/class/ACSFileInfoModel.class.php"
+ ACSFileHistory = "%MO_WEBAPP_DIR%/lib/class/ACSFileHistory.class.php"
+ ACSFileHistoryComment = "%MO_WEBAPP_DIR%/lib/class/ACSFileHistoryComment.class.php"
+ ACSDiaryFile = "%MO_WEBAPP_DIR%/lib/class/ACSDiaryFile.class.php"
+ ACSDiaryFileModel = "%MO_WEBAPP_DIR%/lib/class/ACSDiaryFileModel.class.php"
+ ACSBBSFile = "%MO_WEBAPP_DIR%/lib/class/ACSBBSFile.class.php"
+ ACSBBSFileModel = "%MO_WEBAPP_DIR%/lib/class/ACSBBSFileModel.class.php"
+ ACSFileDetailInfo = "%MO_WEBAPP_DIR%/lib/class/ACSFileDetailInfo.class.php"
+ ACSPOP3 = "%MO_WEBAPP_DIR%/lib/class/ACSPOP3.class.php"
+ ACSCss = "%MO_WEBAPP_DIR%/lib/class/ACSCss.class.php"
+ ACSZip = "%MO_WEBAPP_DIR%/lib/class/ACSZip.class.php"
+ ACSDiaryBackup = "%MO_WEBAPP_DIR%/lib/class/ACSDiaryBackup.class.php"
+ ACSExternalRSS = "%MO_WEBAPP_DIR%/lib/class/ACSExternalRSS.class.php"
+
+ ACSTemplateLib = "%MO_WEBAPP_DIR%/lib/template/ACSTemplateLib.class.php"
+ ACSLDAP = "%MO_WEBAPP_DIR%/lib/class/ACSLDAP.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; mojavi expand Class
+ ; +------------------------------------------------------------------------+
+
+ ; +------------------------------------------------------------------------+
+ ; for rss Class
+ ; +------------------------------------------------------------------------+
+ ;feedcreator = "%MO_WEBAPP_DIR%/lib/feedcreator/feedcreator.class.php"
+ UniversalFeedCreator = "%MO_WEBAPP_DIR%/lib/feedcreator/feedcreator.class.php"
+
+ ; +------------------------------------------------------------------------+
+ ; for calender
+ ; +------------------------------------------------------------------------+
+ calendar = "%MO_WEBAPP_DIR%/lib/calendar/calendar.class.php"
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; | -------------------------------------------------------------------------- |
+; | MOJAVI COMPILE CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | Any file in here will be stripped of comments and blank lines and will be |
+; | loaded into a single cache file. |
+; | |
+; | NOTE: When you change one of your classes it will not be reflected in the |
+; | cache file until you remove the cache file or you change the |
+; | modified time of this file. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist: |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+; +----------------------------------------------------------------------------+
+; | Core Mojavi classes. |
+; +----------------------------------------------------------------------------+
+%MO_APP_DIR%/action/Action.class.php
+%MO_APP_DIR%/action/ActionStack.class.php
+%MO_APP_DIR%/action/ActionStackEntry.class.php
+%MO_APP_DIR%/core/Context.class.php
+%MO_APP_DIR%/controller/Controller.class.php
+%MO_APP_DIR%/filter/Filter.class.php
+%MO_APP_DIR%/filter/ExecutionFilter.class.php
+%MO_APP_DIR%/filter/FilterChain.class.php
+%MO_APP_DIR%/logging/Appender.class.php
+%MO_APP_DIR%/logging/Layout.class.php
+%MO_APP_DIR%/logging/Logger.class.php
+%MO_APP_DIR%/logging/ErrorLogger.class.php
+%MO_APP_DIR%/logging/LoggerManager.class.php
+%MO_APP_DIR%/logging/Message.class.php
+%MO_APP_DIR%/logging/PatternLayout.class.php
+%MO_APP_DIR%/request/Request.class.php
+%MO_APP_DIR%/storage/Storage.class.php
+%MO_APP_DIR%/user/User.class.php
+%MO_APP_DIR%/validator/Validator.class.php
+%MO_APP_DIR%/validator/ValidatorManager.class.php
+%MO_APP_DIR%/view/View.class.php
+
+; +----------------------------------------------------------------------------+
+; | You shouldn't add any custom files to this file. Do so at your own risk. |
+; +----------------------------------------------------------------------------+
\ No newline at end of file
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; +----------------------------------------------------------------------------+
+; | MOJAVI CONFIGURATION HANDLER CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | CATEGORIES: |
+; | |
+; | A category name must exist in the form of the configuration file base |
+; | name, which is the name of the file without the path, or must exist with a |
+; | relative path to the configuration file. If a category exists with a |
+; | relative path, the path itself is relative to the MO_WEBAPP_DIR Mojavi |
+; | application setting. |
+; | |
+; | In theory, you can have the two following categories: config.ini and |
+; | modules/MyModule/config/config.ini. However, a category with a path that |
+; | matches the requested configuration file exactly takes precedence over a |
+; | category with just the base name. |
+; | |
+; | NOTES: |
+; | |
+; | 1. A category with an absolute filesystem path should never exist unless a |
+; | configuration file that is used within the application exists outside |
+; | of both MO_APP_DIR and MO_WEBAPP_DIR Mojavi application settings. |
+; | |
+; | 2. Registered handlers with a parameter list should be registered with a |
+; | relative path so the parameters do not get carried over to another |
+; | configuration file with the same base name. |
+; | -------------------------------------------------------------------------- |
+; | REQUIRED KEYS: |
+; | |
+; | 1. class - The class name providing the custom implementation. |
+; | |
+; | OPTIONAL KEYS: |
+; | |
+; | 1. file - The filesystem path to the class file. If the path is relative, |
+; | it will be relative to the MO_WEBAPP_DIR Mojavi application |
+; | setting. |
+; | -------------------------------------------------------------------------- |
+; | PARAMETER KEYS: |
+; | |
+; | Parameter keys specify a parameter name and value to be passed to the |
+; | initialization method of the class instance. Any number of parameters can |
+; | be passed. |
+; | |
+; | param.<name> = "<value>" |
+; | |
+; | Parameter keys can also be used to pass an array of values instead of a |
+; | single value. |
+; | |
+; | param.<name>.1 = "<value1>" |
+; | param.<name>.2 = "<value2>" |
+; | |
+; | For a list of available parameters for a class, browse the class source |
+; | or documentation. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in file or param values as well as the |
+; | category. |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+; +----------------------------------------------------------------------------+
+; | Core Mojavi configuration handlers. |
+; | -------------------------------------------------------------------------- |
+; | Only 1 instance of AutoloadConfigHandler can be used in the application. |
+; | If you need to add classes to be autoloaded, add them to the |
+; | config/autoload.ini configuration file. |
+; +----------------------------------------------------------------------------+
+[config/autoload.ini]
+
+ class = "AutoloadConfigHandler"
+
+[config/databases.ini]
+
+ class = "DatabaseConfigHandler"
+
+[config/settings.ini]
+
+ class = "DefineConfigHandler"
+ param.prefix = "MO_"
+
+[factories.ini]
+
+ class = "FactoryConfigHandler"
+
+; +----------------------------------------------------------------------------+
+; | Global Mojavi configuration handlers. |
+; | -------------------------------------------------------------------------- |
+; | These handlers must not be registered with a relative path, because they |
+; | need to be associated with module configuration files of the same base |
+; | name. DO NOT register relative path configuration files with these base |
+; | names or the system may cease to function. |
+; +----------------------------------------------------------------------------+
+
+[compile.conf]
+
+ class = "CompileConfigHandler"
+
+[filters.ini]
+
+ class = "FilterConfigHandler"
+
+[logging.ini]
+
+ class = "LoggingConfigHandler"
+
+[modules/*/config/module.ini]
+
+ class = "ModuleConfigHandler"
+
+[modules/*/validate/*.ini]
+
+ class = "ValidatorConfigHandler"
+
+; +----------------------------------------------------------------------------+
+; | Register your custom configuration handlers here. Or register an existing |
+; | handler with a new filename! Registering handlers does not slow down the |
+; | application because they are only loaded when a configuration file needs |
+; | to be recompiled into a cache file. To be safe, you should register them |
+; | with a relative path associated so they don't get confused with somebody |
+; | elses module configuration files with the same base name. |
+; +----------------------------------------------------------------------------+
+
+; Example configuration handler
+; [%MO_MODULE_DIR%/CoolModule/config/cool.ext]
+;
+; file = "%MO_MODULE_DIR%/CoolModule/lib/CoolConfigurationHandler.class.php"
+; class = "CoolConfigHandler"
+; param.title = "Cool Module"
+; param.array.1 = "Array value #1"
+; param.array.2 = "Array value #2"
\ No newline at end of file
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; | -------------------------------------------------------------------------- |
+; | MOJAVI DATABASE CONNECTIVITY CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | CATEGORIES: |
+; | |
+; | The main category [databases] is required. This specifies connection names |
+; | used to retrieve a database connection from this configuration. Each name |
+; | should match up with a value that is the name of another existing category |
+; | that specifies the exact configuration for that particular database |
+; | connection. The only requirement is that a default database be setup with |
+; | the name of 'default'. This way a connection can be retrieved without |
+; | specifying a connection name. This always retrieves the default database |
+; | connection. |
+; | |
+; | NOTES: |
+; | |
+; | 1. Each database implementation has its own set of parameters. View the |
+; | class source code or the API to get a list. |
+; | 2. All database implementations provide three methods of specifying |
+; | connectivity data: normal, server, and env. With normal, you specify |
+; | the information in this file, which means all of it is plain-text |
+; | and may pose a security risk. Using the server or env methods, you |
+; | specify your connectivity information in the $_SERVER or $_ENV arrays |
+; | where the information is not directly viewable. When using the server |
+; | or env methods, the information you enter as the parameter value is |
+; | the array key the database implementation will use to retrieve the |
+; | actual value from the array. Here's a short example: |
+; | |
+; | param.user = "DB_USER" |
+; | param.password = "DB_PASS" |
+; | param.database = "DB_DBNAME" |
+; | param.method = "server" |
+; | |
+; | When doing the above, the database class will retrieve the information |
+; | from $_SERVER, where $_SERVER['DB_USER'] is your username, |
+; | $_SERVER['DB_PASS'] is your password, and $_SERVER['DB_DBNAME'] is your |
+; | database name. |
+; | |
+; | Using the server method for storing information allows you to hide |
+; | otherwise viewable connection information. The most notable way of |
+; | using the server method is to set the information via an Apache |
+; | <VirtualHost> directive using SetEnv NAME "VALUE". When doing so, your |
+; | $_SERVER array is populated with the data. Here's a short example: |
+; | |
+; | <VirtualHost 192.168.0.1> |
+; | ServerName secret.domain.tld |
+; | DocumentRoot /www/secret.domain.told |
+; | SetEnv DB_USER "MyUser" |
+; | SetEnv DB_PASS "SecretPassword" |
+; | SetEnv DB_DBNAME "MyDatabase" |
+; | </VirtualHost> |
+; | -------------------------------------------------------------------------- |
+; | REQUIRED KEYS: |
+; | |
+; | 1. class - The class name providing the custom implementation. |
+; | |
+; | OPTIONAL KEYS: |
+; | |
+; | 1. file - The filesystem path to the class file. If the path is relative, |
+; | it will be relative to the MO_WEBAPP_DIR Mojavi application |
+; | setting. |
+; | -------------------------------------------------------------------------- |
+; | EXAMPLES: |
+; | |
+; | [databases] example: |
+; | |
+; | [databases] |
+; | |
+; | default = "Default" |
+; | creole = "Creole" |
+; | |
+; | Standard PostgreSQL setup: |
+; | |
+; | [DBName] |
+; | |
+; | class = "PostgreSQLDatabase" |
+; | |
+; | param.user = "JoeSchmoe" |
+; | param.password = "SecretPassword" |
+; | param.database = "MyDatabase" |
+; | |
+; | Standard PostgreSQL setup with host and port: |
+; | |
+; | [DBName] |
+; | |
+; | class = "PostgreSQLDatabase" |
+; | |
+; | param.user = "JoeSchmoe" |
+; | param.password = "SecretPassword" |
+; | param.database = "MyDatabase" |
+; | param.host = "192.168.0.1" |
+; | param.port = "2345" |
+; | |
+; | Standard MySQL setup: |
+; | |
+; | [DBName] |
+; | |
+; | class = "MySQLDatabase" |
+; | |
+; | param.user = "JoeSchmoe" |
+; | param.password = "SecretPassword" |
+; | param.database = "MyDatabase" |
+; | |
+; | Standard MySQL setup with host and port: |
+; | |
+; | [DBName] |
+; | |
+; | class = "MySQLDatabase" |
+; | |
+; | param.user = "JoeSchmoe" |
+; | param.password = "SecretPassword" |
+; | param.database = "MyDatabase" |
+; | param.host = "192.168.0.1" |
+; | param.port = "2345" |
+; | |
+; | Creole setup using PostgreSQL: |
+; | |
+; | [DBName] |
+; | |
+; | class = "CreoleDatabase" |
+; | |
+; | param.username = "JoeSchmoe" |
+; | param.password = "SecretPassword" |
+; | param.database = "MyDatabase" |
+; | param.hostspec = "localhost" |
+; | param.phptype = "pgsql" |
+; | |
+; | Creole setup using MySQL and DSN style connectivity: |
+; | |
+; | [DBName] |
+; | |
+; | class = "CreoleDatabase" |
+; | |
+; | param.dsn = "mysql://user:pass@host/dbname" |
+; | -------------------------------------------------------------------------- |
+; | PARAMETER KEYS: |
+; | |
+; | Parameter keys specify a parameter name and value to be passed to the |
+; | initialization method of the class instance. Any number of parameters can |
+; | be passed. |
+; | |
+; | param.<name> = "<value>" |
+; | |
+; | Parameter keys can also be used to pass an array of values instead of a |
+; | single value. |
+; | |
+; | param.<name>.1 = "<value1>" |
+; | param.<name>.2 = "<value2>" |
+; | |
+; | For a list of available parameters for a class, browse the class source |
+; | or documentation. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in file or param values as well as the |
+; | category. |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+[databases]
+
+ ; default = "Default"
+ ; conn2 = "MySQL"
+
+; [Default]
+
+ ; class = "PostgreSQLDatabase"
+
+ ; param.user = ""
+ ; param.password = ""
+ ; param.database = ""
+ ; param.host = ""
+ ; param.port = ""
+
+[MySQL]
+
+ class = "MySQLDatabase"
+
+ ; param.user = ""
+ ; param.password = ""
+ ; param.database = ""
+ ; param.host = ""
+ ; param.port = ""
+ ; param.method = ""
\ No newline at end of file
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; +----------------------------------------------------------------------------+
+; | MOJAVI FACTORY CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | This configuration has 4 categories, all of which are required: |
+; | |
+; | 1. request - The Request class implementation. |
+; | 2. storage - The Storage class implementation. |
+; | 3. user - The User class implementation. |
+; | 4. security_filter - The SecurityFilter class implementation. |
+; | |
+; | NOTE: The order of the factory specification is important. Do not reorder |
+; | them! |
+; | -------------------------------------------------------------------------- |
+; | REQUIRED KEYS: |
+; | |
+; | 1. class - The class name providing the custom implementation. |
+; | |
+; | OPTIONAL KEYS: |
+; | |
+; | 1. file - The filesystem path to the class file. If the path is relative, |
+; | it will be relative to the MO_WEBAPP_DIR Mojavi application |
+; | setting. |
+; | -------------------------------------------------------------------------- |
+; | PARAMETER KEYS: |
+; | |
+; | Parameter keys specify a parameter name and value to be passed to the |
+; | initialization method of the class instance. Any number of parameters can |
+; | be passed. |
+; | |
+; | param.<name> = "<value>" |
+; | |
+; | Parameter keys can also be used to pass an array of values instead of a |
+; | single value. |
+; | |
+; | param.<name>.1 = "<value1>" |
+; | param.<name>.2 = "<value2>" |
+; | |
+; | For a list of available parameters for a class, browse the class source |
+; | or documentation. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in file or param values: |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+; +----------------------------------------------------------------------------+
+; | Specify which Request implementation to use. |
+; +----------------------------------------------------------------------------+
+[request]
+
+ class = "WebRequest"
+
+; +----------------------------------------------------------------------------+
+; | Specify which Storage implementation to use. |
+; +----------------------------------------------------------------------------+
+[storage]
+
+ class = "SessionStorage"
+
+; +----------------------------------------------------------------------------+
+; | Specify which User implementation to use. |
+; +----------------------------------------------------------------------------+
+[user]
+
+ class = "BasicSecurityUser"
+
+; +----------------------------------------------------------------------------+
+; | Specify which SecurityFilter implementation to use. |
+; +----------------------------------------------------------------------------+
+[security_filter]
+
+ class = "BasicSecurityFilter"
\ No newline at end of file
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; | -------------------------------------------------------------------------- |
+; | MOJAVI GLOBAL FILTER CONFIGURATION |
+; | -------------------------------------------------------------------------- |
+; | A category must exist for each filter you wish to load. The category name |
+; | itself is meaningless, but should be named after the filter it |
+; | instantiates. The order in which you specify the filters is the order they |
+; | are loaded. |
+; | -------------------------------------------------------------------------- |
+; | REQUIRED KEYS: |
+; | |
+; | 1. class - The class name providing the custom implementation. |
+; | |
+; | OPTIONAL KEYS: |
+; | |
+; | 1. file - The filesystem path to the class file. If the path is relative, |
+; | it will be relative to the MO_WEBAPP_DIR Mojavi application |
+; | setting. |
+; | -------------------------------------------------------------------------- |
+; | PARAMETER KEYS: |
+; | |
+; | Parameter keys specify a parameter name and value to be passed to the |
+; | initialization method of the class instance. Any number of parameters can |
+; | be passed. |
+; | |
+; | param.<name> = "<value>" |
+; | |
+; | Parameter keys can also be used to pass an array of values instead of a |
+; | single value. |
+; | |
+; | param.<name>.1 = "<value1>" |
+; | param.<name>.2 = "<value2>" |
+; | |
+; | For a list of available parameters for a class, browse the class source |
+; | or documentation. |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in file or param values: |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+[ExecutionTimeFilter]
+
+ class = "ExecutionTimeFilter"
+ param.comment = "Off"
\ No newline at end of file
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; | -------------------------------------------------------------------------- |
+; | MOJAVI LOGGING CONFIGURATION |
+; +----------------------------------------------------------------------------+
\ No newline at end of file
--- /dev/null
+[ScreenName]
+; ¥·¥¹¥Æ¥àÍѲèÌÌ
+sys001=¥¢¥¯¥·¥ç¥ó¥¨¥é¡¼,Default,Error404
+sys002=¥¢¥¯¥»¥¹¸¢¸Â¥¨¥é¡¼,Default,Secure
+sys003=¥â¥¸¥å¡¼¥ë¥á¥ó¥Æ¥Ê¥ó¥¹,Default,ModuleDisabled
+sys004=¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥á¥ó¥Æ¥Ê¥ó¥¹,Default,Unavailable
+
+; ¥¢¥×¥ê¥±¡¼¥·¥ç¥óÍѲèÌÌ
+spl001=Mojavi3¡¡¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à,HelloWorld,HelloWorldForm
--- /dev/null
+; +----------------------------------------------------------------------------+
+; | This file is part of the Mojavi package. |
+; | Copyright (c) 2003, 2004 Sean Kerr. |
+; | |
+; | For the full copyright and license information, please view the LICENSE |
+; | file that was distributed with this source code. You can also view the |
+; | LICENSE file online at http://www.mojavi.org. |
+; +----------------------------------------------------------------------------+
+; | CORE MOJAVI SETTINGS |
+; | -------------------------------------------------------------------------- |
+; | KEYWORDS: |
+; | |
+; | The following keywords may exist in values: |
+; | |
+; | 1. %MO_APP_DIR% |
+; | 2. %MO_LIB_DIR% |
+; | 3. %MO_MODULE_DIR% |
+; | 4. %MO_WEBAPP_DIR% |
+; +----------------------------------------------------------------------------+
+
+; ----- ACTION SETUP -----
+
+[.actions]
+
+ ; +------------------------------------------------------------------------+
+ ; | Default Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | When a request is made but does not specify a module, the module |
+ ; | listed here will be used. When a request is made but does not specify |
+ ; | an action, and the assumed module has no 'Index' action, the action |
+ ; | listed here will be used. |
+ ; +------------------------------------------------------------------------+
+ DEFAULT_MODULE = "User"
+ DEFAULT_ACTION = "Index"
+
+ ; +------------------------------------------------------------------------+
+ ; | Error 404 Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | When a request is made for a nonexistent action, the request will be |
+ ; | forwarded to this module and action pair. |
+ ; +------------------------------------------------------------------------+
+ ERROR_404_MODULE = "Default"
+ ERROR_404_ACTION = "Error404"
+
+ ; +------------------------------------------------------------------------+
+ ; | Login Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | If an unauthenticated request is made for a secure action, the request |
+ ; | will be forwarded to this module and action pair. In most scenario's |
+ ; | this will be a login form. |
+ ; +------------------------------------------------------------------------+
+ LOGIN_MODULE = "User"
+ LOGIN_ACTION = "Login"
+
+ ; +------------------------------------------------------------------------+
+ ; | Module Disabled Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | When a request is made for a disabled module, the request will be |
+ ; | forwarded to this module and action pair. |
+ ; +------------------------------------------------------------------------+
+ MODULE_DISABLED_MODULE = "Default"
+ MODULE_DISABLED_ACTION = "ModuleDisabled"
+
+ ; +------------------------------------------------------------------------+
+ ; | Secure Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | When an authenticated request is made for an action that requires |
+ ; | credentials not currently possessed by the user, the request will be |
+ ; | forwarded to this module and action pair. |
+ ; +------------------------------------------------------------------------+
+ SECURE_MODULE = "Default"
+ SECURE_ACTION = "Secure"
+
+ ; +------------------------------------------------------------------------+
+ ; | Unavailable Module & Action |
+ ; | ---------------------------------------------------------------------- |
+ ; | When a request is made for any action while the application is |
+ ; | unavailable (this uses the AVAILABLE setting listed below), the |
+ ; | request will be forwarded to this module and action pair. |
+ ; +------------------------------------------------------------------------+
+ UNAVAILABLE_MODULE = "Default"
+ UNAVAILABLE_ACTION = "Unavailable"
+
+; ----- SETTINGS -----
+
+[.settings]
+
+ ; +------------------------------------------------------------------------+
+ ; | If this is on, the application functions as expected. When this is off |
+ ; | all requests are forwarded to the UNAVAILABLE_ACTION specified above. |
+ ; +------------------------------------------------------------------------+
+ AVAILABLE = "On"
+
+ ; +------------------------------------------------------------------------+
+ ; | These indicate which request parameters are read to determine the |
+ ; | expected module and action. |
+ ; +------------------------------------------------------------------------+
+ ACTION_ACCESSOR = "action"
+ MODULE_ACCESSOR = "module"
+
+ ; +------------------------------------------------------------------------+
+ ; | The default content-type that will be served. This doesn't force your |
+ ; | application to physically servie this type, but rather provides a type |
+ ; | that the client expects. This is useful for applications serve up |
+ ; | multiple content-types. |
+ ; +------------------------------------------------------------------------+
+ CONTENT_TYPE = "html"
+
+ ; +------------------------------------------------------------------------+
+ ; | This is an absolute web path to the public module directory. This is |
+ ; | used to access public module information such as stylesheets and |
+ ; | images. |
+ ; +------------------------------------------------------------------------+
+ MOD_PUB = "/modpub"
+
+ ; +------------------------------------------------------------------------+
+ ; | These indicate the array and array key that store the PATH_INFO data |
+ ; | for requests that specify it. This is only useful if you wish to allow |
+ ; | parameters to be specified in the path information portion of the URL. |
+ ; | |
+ ; | The option to parse path information may not be available with your |
+ ; | webserver. The best way to test if it is available is to create a test |
+ ; | script with this in it: <?php phpinfo(); ?> Once you have the test |
+ ; | script available for requst, make a request to it and append path |
+ ; | information like so: http://www.domain.com/test.php/test/path/info. |
+ ; | Once the PHP information is brought up on screen you should see a |
+ ; | $_SERVER or $_ENV array key with the value '/test/path/info'. If the |
+ ; | array is $_SERVER, specify 'SERVER' below, if it is $_ENV, specify |
+ ; | 'ENV' below. |
+ ; | |
+ ; | ARRAY OPTIONS: SERVER, ENV |
+ ; +------------------------------------------------------------------------+
+ PATH_INFO_ARRAY = "SERVER"
+ PATH_INFO_KEY = "PATH_INFO"
+
+ ; +------------------------------------------------------------------------+
+ ; | This is the format all Mojavi generated URL's will be in. If you're |
+ ; | using PATH format, please verify your server can parse PATH INFO |
+ ; | specified information. To determine if your server can parse PATH |
+ ; | formatted URL's, read the information on the above description for the |
+ ; | PATH_INFO_ARRAY setting. |
+ ; | |
+ ; | Examples: |
+ ; | |
+ ; | GET FORMAT: /index.php?param1=value1¶m2=value2 |
+ ; | PATH FORMAT: /index.php/param1/value1/param2/value2 |
+ ; | |
+ ; | OPTIONS: GET, PATH |
+ ; +------------------------------------------------------------------------+
+ URL_FORMAT = "GET"
+
+ ; +------------------------------------------------------------------------+
+ ; | Whether or not to enable database connectivity. |
+ ; +------------------------------------------------------------------------+
+ USE_DATABASE = "Off"
+
+ ; +------------------------------------------------------------------------+
+ ; | Whether or not to register the security filter factory implementation |
+ ; | when a request is made for an action that requires authentication. |
+ ; | |
+ ; | When this is on, the user factory implementation you use must be a |
+ ; | SecurityUser implementation. |
+ ; +------------------------------------------------------------------------+
+ USE_SECURITY = "On"
+
+ ; +------------------------------------------------------------------------+
+ ; | The User class provides attribute namespace support. This allows you |
+ ; | change the name of the default namespace. |
+ ; +------------------------------------------------------------------------+
+ USER_NAMESPACE = "org/mojavi"
\ No newline at end of file
--- /dev/null
+<?php
+ini_set("display_errors", 0);
+ini_set("error_reporting", false);
+ini_restore("error_reporting");
+ini_restore("display_errors");
+
+/**
+ * Action¤Î³ÈÄ¥¥¯¥é¥¹
+ * @access public
+ * @package webapp/lib
+ * @category action
+ * @author y-yuki
+ * @sourcefile
+ *
+ */
+abstract class BaseAction extends Action
+{
+ /**
+ * Controller¥ª¥Ö¥¸¥§¥¯¥È
+ * @var WebController
+ */
+ protected $controller = '';
+
+ /**
+ * Request¥ª¥Ö¥¸¥§¥¯¥È
+ * @var WebRequest
+ */
+ protected $request = '';
+
+ /* ¥Õ¥©¡¼¥àÅÐÏ¿¥¡¼ */
+ private $formRegKey = 'form1';
+
+ /* ¥Õ¥©¡¼¥àÅÐÏ¿¥ê¥¹¥È */
+ private $formList = array();
+
+ /* ¥¨¥é¡¼ÅÐÏ¿¥¡¼ */
+ private $errRegKey = 'error1';
+
+ /* user¥ª¥Ö¥¸¥§¥¯¥È */
+ private $user = '';
+
+ /* HTTP¥ê¥¯¥¨¥¹¥È¥¿¥¤¥× */
+ private $formMethod = 'POST';
+
+ /* HTTP¥ê¥¯¥¨¥¹¥È¥¿¡¼¥²¥Ã¥È */
+ private $formTarget = '';
+
+ /* FORM°À */
+ private $formAttributes = '';
+
+ /* FROMÁ÷¿®¥Á¥§¥Ã¥¯ */
+ private $formTrackSubmit = false;
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥â¥¸¥å¡¼¥ë̾ */
+ private $moduleName = '';
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥¢¥¯¥·¥ç¥ó̾ */
+ private $actionName = '';
+
+ /* ¥á¥Ã¥»¡¼¥¸¥Ç¡¼¥¿ */
+ private $messages = '';
+
+ /**
+ * ½é´ü½èÍý
+ * @access public
+ * @param Object $context context
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function initialize ($context)
+ {
+ parent::initialize($context);
+
+ // ¥¢¥¯¥·¥ç¥ó¤Î¶¦Ä̽èÍý¤ò¼ÂÁõ¤¹¤ë
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ $this->controller =$context->getController();
+ $this->request = $context->getRequest();
+ $this->user = $context->getUser();
+
+ $this->moduleName = $context->getModuleName();
+ $this->actionName = $context->getActionName();
+ $this->messages = &CommonMessages::getInstance();
+
+ /* request¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥Õ¥©¡¼¥àÅÐÏ¿¥ê¥¹¥È¤ò¥»¥Ã¥È¤¹¤ë */
+ $this->request->setAttributeByRef('formList', $this->formList);
+
+ $request = &$context->getRequest();
+ $user = &$context->getUser();
+
+ // ¥»¥Ã¥·¥ç¥ó¤«¤é¥æ¡¼¥¶ID¤¬¼èÆÀ¤Ç¤¤º¡¢POST¤Ç¥æ¡¼¥¶ID¤¬¼èÆÀ²Äǽ¤Ê¾ì¹ç
+ $user_id = $user->getAttribute('login_user_id');
+ $justLogin = false;
+ if (($user_id == NULL || $user_id == "")
+ && ($_POST['userid'] != NULL && $_POST['userid'] != "")) {
+ $input_user_id = $_POST['userid'];
+ $input_passwd = $_POST['passwd'];
+
+ // ¥¨¥é¡¼¥Á¥§¥Ã¥¯¡Ê.htpasswd¡¢LDAP¤Î½ç¡Ë
+ $user_id = ACSSystem::check_passwd($input_user_id, $input_passwd);
+ if ($user_id) {
+ $justLogin = true;
+ $getLogoutDateEverytime = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D08'), 'GET_LOGOUT_DATE_EVERYTIME');
+ $user->setAttribute('getLogoutDateEverytime', $getLogoutDateEverytime);
+ }
+
+ }
+
+ // ¸À¸ìÀßÄê¤Î¼Â¹Ô
+ if ($request->getparameter('acsmsg')) {
+ ACSMsg::set_lang($request->getparameter('acsmsg'));
+ ACSMsg::set_lang_cookie($request->getparameter('acsmsg'));
+ }
+
+ // ¸¢¸Â¥¯¥ê¥¢
+ $user->clearCredentials();
+
+ // ǧ¾ÚºÑ¤ß¤òÅÐÏ¿
+ $user->setAuthenticated(true);
+
+ // $acs_user_info_row¤òÀßÄꤹ¤ë //
+ $acs_user_info_row = array();
+
+ if ($user_id) {
+ $acs_user_info_row = ACSUser::get_user_info_row_by_user_id($user_id);
+
+ // ¥æ¡¼¥¶¾ðÊó¤¬Ìµ¤¤
+ if ($user_id && !$acs_user_info_row['user_id']) {
+ $acs_user_info_row['user_id'] = $user_id;
+ $acs_user_info_row['user_community_id'] = ACS_PUBLIC_USER_COMMUNITY_ID;
+ $acs_user_info_row['is_acs_user'] = false;
+ } else {
+ $acs_user_info_row['is_acs_user'] = true;
+
+ // ¸¢¸ÂÅÐÏ¿
+ $user->addCredential('ACS_USER');
+ }
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶(ǧ¾Ú¤òÄ̲ᤷ¤¿¥æ¡¼¥¶)¤«¤É¤¦¤«
+ $acs_user_info_row['is_login_user'] = true;
+
+ // ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¤É¤¦¤«
+ if ($acs_user_info_row['administrator_flag'] == 't') {
+ // ¸¢¸ÂÅÐÏ¿
+ $user->addCredential('SYSTEM_ADMIN_USER');
+ }
+
+ // LDAP¥æ¡¼¥¶¤«¤É¤¦¤« (¥Õ¥¡¥¤¥ëǧ¾Ú¥æ¡¼¥¶¤Ç¤Ê¤±¤ì¤ÐLDAP¥æ¡¼¥¶¤È¤ß¤Ê¤¹)
+ $acs_user_info_row['is_ldap_user'] = !ACSSystem::is_htpasswd_user($user_id);
+ // LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¡¢¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹¸¢¸Â¤òÉÕÍ¿
+ if ($acs_user_info_row['is_ldap_user']) {
+ $user->addCredential('LDAP_USER');
+ } else {
+ $user->addCredential('NOT_LDAP_USER');
+ }
+
+ // ̤ÅÐÏ¿¤ÎLDAP¥æ¡¼¥¶¤Î¾ì¹ç¤Ï»á̾¤òÄ´¤Ù¤ë
+ if (!$acs_user_info_row['is_acs_user'] && $acs_user_info_row['is_ldap_user']) {
+ $ldap_user_info_row = ACSLDAP::get_ldap_user_info_row($acs_user_info_row['user_id']);
+ $acs_user_info_row['user_name'] = $ldap_user_info_row['user_name'];
+ }
+
+ // ¥Õ¥ì¥ó¥ºID¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $acs_user_info_row['friends_id_array'] = ACSUser::get_friends_id_array($acs_user_info_row['user_community_id']);
+
+ // ³Æµ¡Ç½¤´¤È¤ÇɬÍפʸ¢¸Â¤òȽÊÌ¡¦ÀßÄꤹ¤ë
+ // ¥Þ¥¤¥Ú¡¼¥¸½êͼԡ¢¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¡¢¥á¥ó¥Ð¤ÎÀßÄê¤Ê¤É
+ if ($this->moduleName == 'User') {
+ $id = $request->getParameter('id');
+ if (!$id) {
+ $id = $acs_user_info_row['user_community_id'];
+ }
+
+ // ¥Þ¥¤¥Ú¡¼¥¸½êͼԤ«¤É¤¦¤«
+ if ($acs_user_info_row['user_community_id'] == $request->getParameter('id')) {
+ $user->addCredential('USER_PAGE_OWNER');
+
+ // ͧ¿Í¤«¤É¤¦¤«
+ } elseif (!ACSUser::is_friends($id, $acs_user_info_row['user_community_id'])) {
+ $user->addCredential('NOT_FRIENDS');
+ }
+
+ } elseif ($this->moduleName == 'Community') {
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ID¤Î»ØÄ꤬¤¢¤ë¾ì¹ç¤Î¤ß¡¢¸¢¸ÂÀßÄê¤ò¹Ô¤¦
+ if ($community_id) {
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_id);
+ $is_community_admin = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ if ($is_community_member) {
+ $user->addCredential('COMMUNITY_MEMBER');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«¤É¤¦¤«
+ if ($is_community_admin) {
+ $user->addCredential('COMMUNITY_ADMIN');
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ç¤Ï¤Ê¤¤
+ } else {
+ $user->addCredential('NOT_COMMUNITY_MEMBER');
+ }
+ }
+ }
+ $user->setAttribute('login_user_id', $user_id);
+
+ } else {
+ $acs_user_info_row['user_name'] = ACS_PUBLIC_USER_NAME;
+ $acs_user_info_row['user_community_id'] = ACS_PUBLIC_USER_COMMUNITY_ID;
+ $acs_user_info_row['is_acs_user'] = false;
+ $acs_user_info_row['is_login_user'] = false;
+
+ // ¸¢¸ÂÀßÄê
+ $user->addCredential('PUBLIC_USER');
+ }
+
+ $user->setAttribute('acs_user_info_row', $acs_user_info_row);
+
+ // ¥í¥°¥¤¥ó¾ðÊóºîÀ®
+ if ($justLogin) {
+ ACSUser::set_login_date($user);
+ }
+ // ¥¢¥¯¥»¥¹Ëè¤Î¥í¥°¥¢¥¦¥È»þ´Ö¹¹¿·
+ $getLogoutDateEverytime = $user->getAttribute('getLogoutDateEverytime');
+ if ($getLogoutDateEverytime != NULL && $getLogoutDateEverytime == "1") {
+ ACSUser::acs_login_date($user);
+ }
+
+ if ($acs_user_info_row['is_acs_user'] && $acs_user_info_row['open_level_name']
+ == ACSMsg::get_mst('open_level_master','D01')) {
+ // OK
+ } elseif ($acs_user_info_row['is_acs_user'] &&
+ $acs_user_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')
+ || (!$acs_user_info_row['is_acs_user'] && $acs_user_info_row['is_ldap_user'])) {
+ // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂΤ¬Èó¸ø³«¤Î¥æ¡¼¥¶ or ̤ÅÐÏ¿¤ÎLDAP¥æ¡¼¥¶
+
+ // ¥Þ¥¤¥Ú¡¼¥¸¤Î¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸²Äǽ¤Ê¸¢¸Â¤òÉÕÍ¿¤¹¤ë
+ $user->addCredential('USER_PAGE_OWNER');
+
+ if ($this->moduleName == DEFAULT_MODULE && ($this->actionName == 'EditProfile' || $this->actionName == 'SetOpenLevelForProfile')) {
+ // ̤ÅÐÏ¿¤ÎLDAP¥æ¡¼¥¶¤Î¾ì¹ç¡¢¥×¥í¥Õ¥£¡¼¥ëÀßÄê²èÌ̤ؤΥ¢¥¯¥»¥¹¤òµö²Ä
+ } else {
+ $edit_profile_url = $this->getControllerPath(DEFAULT_MODULE, 'EditProfile');
+ header("Location: $edit_profile_url");
+ }
+ } elseif (!$acs_user_info_row['is_acs_user'] && $acs_user_info_row['is_login_user'] && !$acs_user_info_row['is_ldap_user']) {
+ echo "Forbidden";
+ exit;
+ }
+
+ // form ¤Ç enctype="multipart/form-data" ¤Î»ØÄ꤬¹ç¤Ã¤¿¾ì¹ç¤ÎÂнè
+ // ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤òÊÑ´¹¤¹¤ë
+ if (count($_FILES) && !ini_get('mbstring.encoding_translation')) {
+ $request->params = ACSLib::convert_post_data_encoding($request->params);
+ }
+
+ // ¶¦ÄÌ¥¢¥¯¥»¥¹À©¸æ //
+ $access_control_info = $this->get_access_control_info($controller, $request, $user);
+ $valid_flag = true;
+ if ($access_control_info) {
+ $valid_flag = false;
+
+ if ($access_control_info['role_array'] && $access_control_info['contents_row_array']) {
+ foreach ($access_control_info['contents_row_array'] as $contents_row) {
+ if ($contents_row['community_type_name'] == ACSMsg::get_mst('community_type_master','D40')) {
+ if (ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $access_control_info['role_array'], $contents_row)) {
+ $valid_flag = true;
+ } else {
+ $valid_flag = false;
+ break;
+ }
+ } elseif ($contents_row['community_type_name'] == ACSMsg::get_mst('community_type_master','D10')) {
+ if (ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $access_control_info['role_array'], $contents_row)) {
+ $valid_flag = true;
+ } else {
+ $valid_flag = false;
+ break;
+ }
+ }
+ }
+ }
+ }
+ if (!$valid_flag) {
+ $this->controller->forward(SECURE_MODULE, SECURE_ACTION);
+ exit;
+ }
+
+ // ³Æµ¡Ç½¸Çͤθ¢¸ÂȽÊ̤ò¼èÆÀ
+ if ($this->get_execute_privilege($controller, $request, $user)) {
+ $user->addCredential('EXECUTE');
+ }
+
+ //return parent::initialize($controller);
+ return true;
+ }
+
+ /**
+ * ¥Ç¥Õ¥©¥ë¥È¥Õ¥©¡¼¥à¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return HTML_QuickForm
+ */
+ public function createDefaultForm()
+ {
+ return $this->createForm();
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥à¤òºîÀ®¤¹¤ë
+ * ¢¨¥Õ¥©¡¼¥à°À¤òÄɲ乤ë¾ì¹ç¡¢setFormAttributes¤òÀè¤Ë¼Â¹Ô¤·¡¢Äɲ乤ë¥Õ¥©¡¼¥à°À¤ò¥»¥Ã¥È¤·¤Æ¤ª¤¯¤³¤È
+ * @access public
+ * @param String $moduleName ¥â¥¸¥å¡¼¥ë̾
+ * @param String $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param String $formName ¥Õ¥©¡¼¥à̾
+ * @param Array $parameters ¥¢¥¯¥·¥ç¥ó¥Ñ¥é¥á¡¼¥¿
+ * @param string $fragment ¥Õ¥é¥°¥á¥ó¥È
+ * @param boolean $secure ¥»¥¥å¥¢¥Õ¥é¥°(HTTPS¡Ë
+ * @return HTML_QuickForm
+ */
+ public function createForm($moduleName = '', $actionName = '', $formName = '', $parameters = array(),
+ $fragment = '', $secure = false)
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($moduleName)) {
+ $moduleName = $this->moduleName;
+ }
+ if (empty($actionName)) {
+ $actionName = $this->actionName;
+ }
+ if (empty($formName)) {
+ $formName = $this->createFormRegKey();
+ }
+
+ /* URL¤òºîÀ®¤¹¤ë */
+ if (!is_array($parameters)) {
+ throw new ApplicationException('Invalid Parameter! $parameters');
+ }
+ if (!is_string($fragment)) {
+ throw new ApplicationException('Invalid Parameter! $fragment');
+ }
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $actionURL = $this->controller->genURL(null, $parameters);
+ $actionURL .= $fragment;
+
+ /* ¥Õ¥©¡¼¥à¤òºîÀ®¤¹¤ë */
+ $form = new HTML_QuickForm($formName, $this->formMethod, $actionURL,
+ $this->formTarget, $this->formAttributes, $this->formTrackSubmit);
+
+ /* ¥Õ¥©¡¼¥à¤òrequest¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥»¥Ã¥È¤¹¤ë */
+ array_push($this->formList, $formName);
+ $this->request->setAttribute($formName, $form);
+
+ return $form;
+ }
+
+ /**
+ * ¥Ç¥Õ¥©¥ë¥È¥Õ¥©¡¼¥à¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return HTML_QuickForm
+ */
+ public function getDefaultForm()
+ {
+ if (0 >= count($this->formList)) {
+ throw new ApplicationException('No data form');
+ }
+
+ return $this->getForm('form1');
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥à¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return HTML_QuickForm
+ */
+ public function getForm($formName = '')
+ {
+ if (!$this->request->hasAttribute($formName)) {
+ throw new ApplicationException("No data form! form=$formName");
+ }
+
+ return $this->request->getAttribute($formName);
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥àÅÐÏ¿¥¡¼¤òºîÀ®¤¹¤ë
+ * @access public
+ * @return string ¥Õ¥©¡¼¥àÅÐÏ¿¥¡¼
+ */
+ public function createFormRegKey()
+ {
+ $formRegKey = $this->formRegKey;
+ $this->formRegKey += 1;
+
+ return $formRegKey;
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥à°ÀÃͤò¥»¥Ã¥È¤¹¤ë
+ * ¢¨createForm¤ò¸Æ¤Ó½Ð¤¹Á°¤Ë¼Â»Ü¤¹¤ë¤³¤È
+ * @access public
+ * @param string /array $formAttributes ¥Õ¥©¡¼¥à°À
+ */
+ public function setFormAttributes($formAttributes)
+ {
+ $this->formAttributes = $formAttributes;
+ }
+
+ /**
+ * ²èÌÌ¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param String $message ¥á¥Ã¥»¡¼¥¸
+ */
+ public function setMessages($message)
+ {
+ $messages = array();
+ if ($this->request->hasAttribute('messages')) {
+ $messages = $this->request->getAttribute('messages');
+ }
+ array_push($messages, $message);
+ $this->request->setAttribute('messages', $messages);
+
+ }
+
+ /**
+ * ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param String $message ¥á¥Ã¥»¡¼¥¸
+ * @param string $name HTML_QuickForm¤ÎÍ×ÁÇ̾
+ */
+ public function setErrMessages($message, $name = null)
+ {
+ if (empty($name)) {
+ $name = $this->errRegKey;
+ $this->errRegKey += 1;
+ }
+ $this->request->setError($name, $message);
+ }
+
+ /**
+ * ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë
+ * ¥Ñ¥é¥á¡¼¥¿¤ò°ú¤ÅϤ¹¤È¡¢¥á¥Ã¥»¡¼¥¸¤Î%s¤Ë¥Ñ¥é¥á¡¼¥¿¤ò¥»¥Ã¥È¤·ÊֵѤ·¤Þ¤¹¡£
+ * @access public
+ * @param string $id ¥á¥Ã¥»¡¼¥¸ID
+ * @param object $args ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤Î¥Ñ¥é¥á¡¼¥¿(ÇÛÎó¤Þ¤¿¤Ï¡¢ÊÑ¿ô)
+ * @return string ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸
+ */
+ public function getMessage($id, $args = null)
+ {
+ /* ¥á¥Ã¥»¡¼¥¸¼èÆÀ */
+ $msg = $this->messages->getParameter($id);
+ if (empty($msg)) {
+ throw new ApplicationException("Not found message! id=$id");
+ }
+
+ /* ¥Ñ¥é¥á¡¼¥¿¥»¥Ã¥È */
+ if (is_array($args)) {
+ $msg = vsprintf($msg, $args);
+ } else {
+ $msg = sprintf($msg, $args);
+ }
+
+ return $msg;
+ }
+
+ /**
+ * ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌܤòÅÐÏ¿¤¹¤ë
+ * ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¥Þ¥Í¡¼¥¸¥ã¤Ë¡¢¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌܤòÅÐÏ¿¤¹¤ë
+ * @access public
+ * @param object $validatorManager ¥Ð¥ê¥Ç¡¼¥¿¥Þ¥Í¡¼¥¸¥ã
+ * @param string $name ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌÜ̾
+ * @param boolean $required ɬ¿Ü¹àÌܥե饰(true:ɬ¿Ü¹àÌÜ¡¢false:ÆþÎϹàÌÜ)
+ * @param string $message ɬ¿Ü¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ */
+ public function regValidateName($validatorManager, $name, $required = false, $message = null)
+ {
+ $validatorManager->registerName($name, $required, $message);
+ }
+
+ /**
+ * ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌܤËÆþÎÏ¥Á¥§¥Ã¥¯¤òÀßÄê(ÄɲÃÅÐÏ¿)¤¹¤ë
+ * ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌܤËÂФ·¤Æ¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤òÀßÄê(ÄɲÃÅÐÏ¿)¤¹¤ë
+ * @access public
+ * @param object $validatorManager ¥Ð¥ê¥Ç¡¼¥¿¥Þ¥Í¡¼¥¸¥ã
+ * @param string $name ¥Ð¥ê¥Ç¡¼¥·¥ç¥ó¹àÌÜ̾
+ * @param string $class ÆþÎÏ¥Á¥§¥Ã¥¯¥¯¥é¥¹Ì¾(¥Ð¥ê¥Ç¡¼¥¿¥¿¥¤¥×)
+ * @param array $params ÆþÎÏ¥Á¥§¥Ã¥¯¥Ñ¥é¥á¡¼¥¿
+ */
+ public function setValidator($validatorManager, $name, $class, $params)
+ {
+ $validator = new $class;
+ $validator->initialize($this->getContext(), $params);
+ $validatorManager->registerValidator($name, $validator);
+ }
+
+ /**
+ * ¼Â¹Ô¸¢¸Â¤ò¼èÆÀ¤¹¤ë
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ë¤Î¤ËɬÍפʸ¢¸Â¤òÀßÄꤹ¤ë
+ * @return int ¼Â¹Ô¸¢¸Â
+ */
+ public function getCredential()
+ {
+ return S4_AUTH_NOBODY;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return true;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥à¤Ç»ÈÍѤ¹¤ë¥Õ¥¡¥¤¥ë̾¤òºîÀ®¤¹¤ë
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ë¤Ê¤É¤Ë»ÈÍѤ¹¤ë¥Õ¥¡¥¤¥ë̾¤òºîÀ®¤¹¤ë
+ * @access public
+ * @param string $path ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @return string ¥Õ¥¡¥¤¥ë̾
+ */
+ public function createFilename()
+ {
+ /* ¥Õ¥¡¥¤¥ë̾¤òºîÀ®¤¹¤ë */
+ list($usec, $sec) = explode(" ", microtime());
+ $filename = sprintf("%s%d", date('YmdHis', $sec), $usec * 1000);
+ usleep(1); //¥Õ¥¡¥¤¥ë̾¤¬½ÅÊ£¤·¤Ê¤¤¤è¤¦¤Ë£±¥Þ¥¤¥¯¥íÉýèÍý¤ò»ß¤á¤ë
+
+ return $filename;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë
+ * ¡¦¥Õ¥¡¥¤¥ë¾ðÊ󤫤é¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë
+ * ¡Ê¼«Æ°È½Äꤹ¤ë¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¡§jpg, gif, png, zip, xls, pdf, doc, ppt, lzh¡Ë
+ * ¡¦¥Õ¥¡¥¤¥ë¥¿¥¤¥×¤¬¼«Æ°È½Äꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤«¤é³ÈÄ¥»Ò¤ò¼è¤ê½Ð¤¹
+ * ¢¨¥Õ¥¡¥¤¥ëÊݸ¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë¾ì¹ç¤Ë»ÈÍѤ¹¤ë
+ * @access public
+ * @param string $path ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @return string ¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò
+ */
+ public function getExtension($path)
+ {
+ // ¥Ñ¥é¥á¡¼¥¿¥Á¥§¥Ã¥¯
+ if (empty($path)) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ }
+ $realpath = realpath($path);
+ if ($path === false) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ } elseif (strncmp($path, $realpath, strlen($realpath)) !== 0) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ }
+
+ // ³ÈÄ¥»Ò¼«Æ°È½Äê
+ $mime_type = MIME_Type::autoDetect($path);
+ $ext = $this->getExtentionEx($mime_type, $path);
+ $temp = array();
+ if (empty($ext)) {
+ // ¥Õ¥¡¥¤¥ë̾¤«¤é³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë
+ preg_match("/^(.*)\.(.*)$/i", $path, $temp);
+ $ext = $temp[2];
+ }
+
+ return $ext;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë
+ * MIME¥¿¥¤¥×¤È¥Õ¥¡¥¤¥ë¾ðÊ󤫤é¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë
+ * ¡Ê¼«Æ°È½Äꤹ¤ë¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¡§jpg, gif, png, zip, xls, pdf, doc, ppt, lzh¡Ë
+ * ¢¨¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É¤µ¤ì¤¿°ì»þ¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë¾ì¹ç¤Ë»ÈÍѤ¹¤ë
+ * @access public
+ * @param string $path ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @param string $mime_type MIME¥¿¥¤¥×
+ * @return string ¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò
+ */
+ public function getExtentionEx($path, $mime_type)
+ {
+ // ¥Ñ¥é¥á¡¼¥¿¥Á¥§¥Ã¥¯
+ if (empty($path)) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ }
+ $realpath = realpath($path);
+ if ($path === false) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ } elseif (strncmp($path, $realpath, strlen($realpath)) !== 0) {
+ throw new ApplicationException('Invalid parameter! $path=' . $path);
+ }
+
+ switch ($mime_type) {
+ // jpg
+ case 'image/jpg':
+ case 'image/jpeg':
+ case 'image/pjpg':
+ case 'image/pjpeg':
+ $ext = 'jpg';
+ break;
+ // gif
+ case 'image/gif':
+ $ext = 'gif';
+ break;
+ // png
+ case 'image/png':
+ case 'image/x-png':
+ $ext = 'png';
+ break;
+ //zip
+ case 'application/x-zip-compressed':
+ $ext = 'zip';
+ break;
+ //excel
+ case 'application/vnd.ms-excel':
+ $ext = 'xls';
+ break;
+ //pdf
+ case 'application/pdf':
+ $ext = 'pdf';
+ break;
+ //word
+ case 'application/msword':
+ $ext = 'doc';
+ break;
+ //ppt
+ case 'application/vnd.ms-powerpoint':
+ $ext = 'ppt';
+ break;
+ //lzh
+ case 'application/octet-stream':
+ $aryTemp = explode('.', $path);
+ if (is_array($aryTemp) && strtolower($aryTemp[ count($aryTemp)-1 ])=='lzh' ) {
+ $ext = 'lzh';
+ }else{
+ $ext = $aryTemp[1];
+ }
+ break;
+ default :
+ $ext = '';
+ break;
+ }
+
+ return $ext;
+
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëɽ¼¨¥¡¼¤òºîÀ®¤¹¤ë
+ * ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤ò¥»¥Ã¥·¥ç¥ó¤Ë³ÊǼ¤·¡¢¥Õ¥¡¥¤¥ëɽ¼¨¥¡¼¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @param string $path ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @param boolean $download ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤«¡Ê¥Ç¥Õ¥©¥ë¥È¡§false¡Ë
+ * @param string $fileName ¥Õ¥¡¥¤¥ë̾¡Ê¥Ç¥Õ¥©¥ë¥È¡§ÊªÍý¥Õ¥¡¥¤¥ë̾¡Ë
+ * @return string ¥Õ¥¡¥¤¥ëɽ¼¨¥¡¼
+ */
+ public function createDispFilekey($path, $download = false, $fileName = null)
+ {
+ $key = sha1($path);
+
+ // ¥Õ¥¡¥¤¥ë̾¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÊªÍý¥Õ¥¡¥¤¥ë̾¤ò¥»¥Ã¥È¤¹¤ë
+ if (empty($fileName)) {
+ $fileName = basename($path);
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤È¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É¥Õ¥é¥°¤È¥Õ¥¡¥¤¥ë̾¤ò¥»¥Ã¥·¥ç¥ó¤Ë³ÊǼ¤¹¤ë */
+ $this->user->setAttribute($key, array($path, $download, $fileName));
+
+ return $key;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤ò¼èÆÀ¤¹¤ë
+ * ¥Õ¥¡¥¤¥ë¥¡¼¤ËɳÉÕ¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¥Ñ¥¹¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @param string $key ¥Õ¥¡¥¤¥ëɽ¼¨¥¡¼
+ * @return string ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ */
+ public function getDispFilepath($key)
+ {
+ return $this->user->getAttribute($key);
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëɽ¼¨¥ê¥ó¥¯¤òºîÀ®¤¹¤ë
+ * ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤ò¥»¥Ã¥È¤·¡¢¥Õ¥¡¥¤¥ëɽ¼¨¥ê¥ó¥¯¤ò¼èÆÀ¤¹¤ë¡£
+ * ¢¨¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É¤ò¤¹¤ë¾ì¹ç¤Ï¡¢ÂèÆó°ú¿ô¡Ê$download¡Ë¤Ëtrue¤ò¥»¥Ã¥È¤¹¤ë¤³¤È
+ * @access public
+ * @param string $path¥Õ¥¡¥¤¥ëɽ¼¨¥¡¼
+ * @param boolean $download ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤«¡Ê¥Ç¥Õ¥©¥ë¥È¡§false¡Ë
+ * @param string $moduleName¥â¥¸¥å¡¼¥ë̾
+ * @param string $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param string $fileName ¥Õ¥¡¥¤¥ë̾¡Ê¥Ç¥Õ¥©¥ë¥È¡§ÊªÍý¥Õ¥¡¥¤¥ë̾¡Ë
+ * @return string ¥Õ¥¡¥¤¥ëɽ¼¨¥ê¥ó¥¯
+ */
+ public function createDispFilelink($path, $download = false, $moduleName = 'Default', $actionName = 'DispFile',
+ $fileName = null)
+ {
+ /* ÆþÎÏÃͤò¥Á¥§¥Ã¥¯¤¹¤ë */
+ if (empty($path)) {
+ throw new ApplicationException('Invalid parameter! $path is null');
+ }
+ if (empty($moduleName)) {
+ throw new ApplicationException('Invalid parameter! $moduleName is null');
+ }
+ if (empty($actionName)) {
+ throw new ApplicationException('Invalid parameter! $actionName is null');
+ }
+
+ // ¥Õ¥¡¥¤¥ë̾¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÊªÍý¥Õ¥¡¥¤¥ë̾¤ò¥»¥Ã¥È¤¹¤ë
+ if (empty($fileName)) {
+ $fileName = basename($path);
+ }
+
+ /* URL¤òºîÀ®¤¹¤ë */
+ $key = $this->createDispFilekey($path, $download, $fileName);
+ $parameters = array('dispkey'=>$key);
+
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $actionURL = $this->controller->genURL(null, $parameters);
+
+ return $actionURL;
+ }
+
+ /**
+ * ¥â¥¸¥å¡¼¥ë̾¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥â¥¸¥å¡¼¥ë̾
+ */
+ public function getModuleName() {
+ return $this->moduleName;
+ }
+
+ /**
+ * ¥¢¥¯¥·¥ç¥ó̾¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥â¥¸¥å¡¼¥ë̾
+ */
+ public function getActionName() {
+ return $this->actionName;
+ }
+
+ /**
+ * ¥ê¥¯¥¨¥¹¥ÈÄêµÁ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¼Â¹Ô¤¹¤ë
+ * ¡ÊÁÛÄꤷ¤Ê¤¤¥ê¥¯¥¨¥¹¥È¤¬ÆϤ¤¤¿¾ì¹ç¡¢¥»¥¥å¥ê¥Æ¥£¾å¡¢¤¹¤Ù¤Æ¥¨¥é¡¼¤È¤·¤Æ°·¤¦¡Ë
+ * @throws ApplicationException ÁÛÄꤷ¤Ê¤¤¥ê¥¯¥¨¥¹¥È¤¬¹Ô¤ï¤ì¤¿»þ
+ */
+ public function getDefaultView() {
+ throw new ApplicationException('Á÷¿®¤µ¤ì¤¿¥Ç¡¼¥¿¤Ï̵¸ú¤Ç¤¹¡£Àµ¤·¤¯½èÍý¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£');
+ }
+
+ /**
+ * ¸Ä¿Í¾ðÊó¥¢¥¯¥»¥¹¤Î¥í¥°¤òµÏ¿¤¹¤ë.
+ * µÏ¿ÆâÍƤϡ¢Æü»þ¡¢¥í¥°¥¤¥óID¡¢IP¥¢¥É¥ì¥¹¡¢·ï¿ô¡¢¸¡º÷¾ò·ï¡¢¥Ç¡¼¥¿¥¢¥¯¥»¥¹¤·¤¿¸Ä¿Í¾ðÊó¤Î¼ç¥¡¼¤È¤¹¤ë¡£
+ * ¡¦¥á¥Ã¥»¡¼¥¸¤Ë¤Ï¡¢¥Ç¡¼¥¿¥¢¥¯¥»¥¹¤Ë»ÈÍѤ·¤¿¸¡º÷¾ò·ï¤Ê¤É¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦¸Ä¿Í¾ðÊó¤Î¼ç¥¡¼¤Ë¤Ï¡¢DB¤«¤é¼èÆÀ¤·¤¿¸Ä¿Í¾ðÊó¤Î¼ç¥¡¼¡ÊÇÛÎó¤â¤·¤¯¤Ïʸ»úÎó¡Ë¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦Æü»þ¡¢¥í¥°¥¤¥óID¡¢IP¥¢¥É¥ì¥¹¡¢·ï¿ô¤Ï¡¢¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤Ë¤Æ¼«Æ°¥»¥Ã¥È¤¹¤ë¡£
+ *
+ * @access public
+ * @param string $message ¥á¥Ã¥»¡¼¥¸ ¡Ê¸¡º÷¾ò·ï¤Ê¤É¤ò¥»¥Ã¥È¤¹¤ë¡Ë
+ * @param mixed $data ¸Ä¿Í¾ðÊó¤Î¼ç¥¡¼¡Êstring/array¤ÎξÊý¤¬¥»¥Ã¥È²Äǽ¡Ë
+ * @param string $class ¥¯¥é¥¹Ì¾
+ * @param string $function ¥Õ¥¡¥ó¥¯¥·¥ç¥ó̾
+ * @param string $file ¥×¥í¥°¥é¥à¥Õ¥¡¥¤¥ë̾
+ * @param string $line ¥×¥í¥°¥é¥à¥é¥¤¥óÈÖ¹æ
+ */
+ public function recPersonalAccessLog($message = null, $data = null,
+ $class = __CLASS__, $function = __FUNCTION__, $file = __FILE__, $line = __LINE__)
+ {
+ // ¥í¥¬¡¼¤ò¼èÆÀ¤¹¤ë
+ $logger = $this->controller->getLogger();
+
+ // ¥á¥Ã¥»¡¼¥¸¤òºîÀ®¤¹¤ë
+ if (!is_null($data)) {
+ if (is_array($data)) {
+ $data = "\n" . implode("\n", $data);
+ } else {
+ $data = "\n" . $data;
+ }
+ }
+
+ $msg = new Message(array('m' => $message,
+ 'c' => $class,
+ 'F' => $function,
+ 'f' => $file,
+ 'l' => $line,
+ 'N' => 'P_INFO',
+ 'p' => Logger::P_INFO,
+ 'ip_address' => $_SERVER['REMOTE_ADDR'],
+ 'data' => $data));
+
+ // ¥í¥°¤ò½ÐÎϤ¹¤ë
+ $logger->log($msg);
+ }
+
+ /*---------- ACS Original method ----------*/
+
+ /**
+ * ³Æµ¡Ç½¸Çͤθ¢¸ÂȽÊ̼èÆÀ
+ * ¸ÇͤΤâ¤Î¤¬¤¢¤ë¾ì¹ç¤Î¤ß¡¢¥ª¡¼¥Ð¡¼¥é¥¤¥É¤¹¤ë¤³¤È
+ */
+ function get_execute_privilege (&$controller, &$request, &$user) {
+ return false;
+ }
+
+ /**
+ * ¥¨¥é¡¼¾ðÊ󥻥åÈ
+ *
+ * @param &$controller
+ * @param &$request
+ * @param &$user
+ * @param $error_item
+ * @param $error_message
+ * @return handleError ¤Î·ë²Ì
+ */
+ function setError (&$controller, &$request, &$user, $error_item, $error_message) {
+ $request->setError($error_item, $error_message);
+
+ return $this->handleError();
+ //return $this->handleError(&$controller, &$request, &$user);
+ }
+
+ /**
+ * ¥¨¥é¡¼¾ðÊó¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È
+ * handleError ´Ø¿ô¤Ë¤Æ header() ¤Ç²èÌÌÁ«°Ü¤¹¤ë¾ì¹ç¸Æ¤Ð¤ì¤ë
+ *
+ * @param &$controller
+ * @param &$request
+ * @param &$user
+ */
+ function sendError (&$controller, &$request, &$user) {
+ $user->setAttribute('error_row' , $request->getErrors());
+ }
+
+ /**
+ * ¥¨¥é¡¼¾ðÊ󤬤¢¤ë¤«¤É¤¦¤«
+ *
+ * @param &$controller
+ * @param &$request
+ * @param &$user
+ * @return true / false
+ */
+ function hasErrors (&$controller, &$request, &$user) {
+ // PHP5Âбþ 2009.03.02
+ if ($user->getAttribute('error_row') == NULL || $request->getErrors() == NULL) {
+ return false;
+ }
+
+ $error_row_array = array_merge($user->getAttribute('error_row'), $request->getErrors());
+ if (count($error_row_array) > 0) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $access_control_info = array();
+ return $access_control_info;
+ }
+
+ function getControllerPath($module, $action) {
+ $index = "index.php?";
+ $moduleNm = "module=";
+ $actionNm = "&action=";
+ return $index . $moduleNm . $module . $actionNm . $action;
+
+ }
+}
+?>
--- /dev/null
+<?php\r
+// $Id: BaseView.class.php,v 1.20 2009/06/19 09:45:00 acs Exp $\r
+\r
+class BaseView extends ViewEx\r
+{\r
+ protected $inlineFlg = false;\r
+ protected $script_path = "index.php";\r
+\r
+ /**\r
+ * execute\r
+ */\r
+ function execute() {\r
+\r
+ $context = &$this->getContext();\r
+ $request = &$context->getRequest();\r
+ $moduleName = $context->getModuleName();\r
+ $actionName = $context->getActionName();\r
+ $controller = $context->getController();\r
+ $user = $context->getUser();\r
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');\r
+\r
+ // ¥í¥°¥¤¥óÃæ¤Î¥æ¡¼¥¶¾ðÊó\r
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);\r
+\r
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤«¤É¤¦¤«\r
+ $this->setAttribute('is_login_user', $acs_user_info_row['is_login_user']);\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥Ë¥å¡¼URL\r
+ $this->setAttribute('community_menu_url', $this->getControllerPath('Community', 'SearchCommunity'));\r
+\r
+ // ¥æ¡¼¥¶¸¡º÷URL\r
+ $this->setAttribute('search_user_url', $this->getControllerPath('User', 'SearchUser'));\r
+\r
+ // ¿·Ãå¾ðÊóURL\r
+ $this->setAttribute('public_index_url', $this->getControllerPath('Public', DEFAULT_ACTION));\r
+\r
+ // FAQ URL\r
+ $this->setAttribute('faq_url',\r
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL') . 'faq/');\r
+\r
+ // ¥·¥¹¥Æ¥à´ÉÍý¥á¥Ë¥å¡¼URL\r
+ if (ACSAccessControl::is_system_administrator($acs_user_info_row)) {\r
+ $this->setAttribute('is_system_administrator', true);\r
+ $this->setAttribute('system_manage_menu_url', $this->getControllerPath('System', DEFAULT_ACTION));\r
+ }\r
+\r
+ // ¥í¥°¥¤¥óURL\r
+ $login_url = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_LOGIN_URL');\r
+ $login_url .= $this->getControllerPath(DEFAULT_MODULE, 'Login');\r
+ $this->setAttribute('login_url', $login_url);\r
+ \r
+ // ¥í¥°¥¢¥¦¥ÈURL\r
+ $logout_url = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');\r
+ $logout_url .= $this->getControllerPath(DEFAULT_MODULE, 'Logout');\r
+ $this->setAttribute('logout_url', $logout_url);\r
+\r
+ // ¿·Ãå¾ðÊóURL¡ÊÈó¥í¥°¥¤¥ó¡Ë\r
+ $public_index_url_not_login = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');\r
+ $public_index_url_not_login .= $this->getControllerPath('Public', DEFAULT_ACTION);\r
+ $this->setAttribute('public_index_url_not_login', $public_index_url_not_login);\r
+\r
+ }\r
+\r
+ /**\r
+ * ¸ø³«¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥È¥í¡¼¥é¥Õ¥¡¥¤¥ë¤Ø¤ÎÀäÂХѥ¹¤ò¼èÆÀ¤¹¤ë¡£\r
+ *\r
+ * @param $module\r
+ * @param $action\r
+ */\r
+ function getControllerPath($module="", $action="") {\r
+ $index = "index.php?";\r
+ $moduleNm = "module=";\r
+ $actionNm = "&action=";\r
+ if ($module == "" && $action == "") {\r
+ return $index;\r
+ }\r
+ return $index . $moduleNm . $module . $actionNm . $action;\r
+\r
+ }\r
+\r
+ /**\r
+ * ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¼èÆÀ\r
+ *\r
+ * @param &$controller\r
+ * @param &$request\r
+ * @param &$target_array\r
+ */\r
+ function getErrorMessage (&$controller, &$request, &$user) {\r
+ $error_msg_array = array();\r
+ $error_row = $user->getAttribute('error_row');\r
+ if (!is_array($error_row)) {\r
+ $error_row = array();\r
+ }\r
+\r
+ // request ¤Î¥¨¥é¡¼¤È¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥¨¥é¡¼¤ò¼èÆÀ¤¹¤ë\r
+ $error_row = array_merge($error_row, $request->getErrors());\r
+ if ($error_row) {\r
+ foreach ($error_row as $key => $msg) {\r
+ array_push($error_msg_array, $msg);\r
+ }\r
+ }\r
+ $user->removeAttribute('error_row');\r
+ return $error_msg_array;\r
+ }\r
+\r
+ /**\r
+ * ¥Ú¡¼¥¸¥ó¥°¾ðÊóÀßÄê\r
+ * °ú¿ô¤Î $target_array ¤òɽ¼¨¤¹¤ëʬ¤À¤±¤Ëºï¤ê¡¢¥Ú¡¼¥¸¥ó¥°¾ðÊó¤òºîÀ®¤¹¤ë\r
+ *\r
+ * @param &$controller\r
+ * @param &$request\r
+ * @param &$target_array\r
+ * @param $display_max_count\r
+ *\r
+ * @return ¥Ú¡¼¥¸½ÐÎϤΤ¿¤á¤Î row_array\r
+ */\r
+ function getPagingInfo (&$controller, &$request, &$target_array, $display_max_count) {\r
+ $params = $request->ACSGetParameters();\r
+\r
+ // ¥Ú¡¼¥¸¥ó¥°¾ðÊó\r
+ $paging_info = array();\r
+\r
+ // ɽ¼¨Áí·ï¿ô¼èÆÀ\r
+ $all_count = count($target_array);\r
+ if ($all_count <= $display_max_count) {\r
+ // ¥Ú¡¼¥¸¥ó¥°¤ÎɬÍפʤ·\r
+ $paging_info['all_count'] = $all_count;\r
+ if ($paging_info['all_count'] > 0) {\r
+ $paging_info['start_count'] = 1;\r
+ } else {\r
+ $paging_info['start_count'] = 0;\r
+ }\r
+ $paging_info['end_count'] = $all_count;\r
+ return $paging_info;\r
+ }\r
+\r
+ // ɽ¼¨¥Ú¡¼¥¸¼èÆÀ\r
+ if ($params['page'] > 0) {\r
+ $display_page = $params['page'];\r
+ } else {\r
+ // ½é´üÃÍ\r
+ $display_page = 1;\r
+ }\r
+\r
+ /*--------------------------*/\r
+ /* ɽ¼¨¤¹¤ë¥Ç¡¼¥¿¤À¤±¤Ëºï¤ë */\r
+ /*--------------------------*/\r
+ // ɽ¼¨ÂоݤȤʤë¥Ç¡¼¥¿¤Î³«»Ï°ÌÃÖ\r
+ $display_start_position = $display_max_count * ($display_page - 1);\r
+\r
+ // ɽ¼¨Âоݥǡ¼¥¿¤Î¤ß¤Ë¤¹¤ë\r
+ $target_array = array_slice($target_array, $display_start_position, $display_max_count);\r
+\r
+ /*----------------------*/\r
+ /* ¥Ú¡¼¥¸¤Î¥ê¥ó¥¯¤òºîÀ® */\r
+ /*----------------------*/\r
+ $paging_row_array = array();\r
+ // ¥Ú¡¼¥¸¿ô\r
+ $all_page_count = ceil($all_count / $display_max_count);\r
+ for ($page_count = 1; $page_count <= $all_page_count; $page_count++) {\r
+ // ¥Ú¡¼¥¸¿ô¡ÊURL ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¹¤ëÃÍ¡Ë\r
+ $params['page'] = $page_count;\r
+\r
+ // ¥ê¥ó¥¯ÀèURL\r
+ if ($page_count != $display_page) {\r
+ $link_url = $this->genURL($params);\r
+ } else {\r
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Ë¤Ï¥ê¥ó¥¯¤ò¤Ï¤é¤Ê¤¤\r
+ $link_url = "";\r
+ }\r
+\r
+ // set\r
+ $paging_row = array();\r
+ $page_row['page_number'] = $page_count;\r
+ $page_row['link_url'] = $link_url;\r
+\r
+ array_push($paging_row_array, $page_row);\r
+ }\r
+\r
+ // ¥Ú¡¼¥¸¥ó¥°¾ðÊó¥»¥Ã¥È //\r
+ // Á´·ï\r
+ $paging_info['all_count'] = $all_count;\r
+ // XX-YY\r
+ $paging_info['start_count'] = $display_start_position + 1;\r
+ $paging_info['end_count'] = $display_start_position + $display_max_count;\r
+ if ($paging_info['end_count'] > $all_count) {\r
+ $paging_info['end_count'] = $all_count;\r
+ }\r
+ // Á°¤Ø¡¦¼¡¤Ø\r
+ if ($display_page > 1) {\r
+ $paging_info['prev_link'] = $paging_row_array[($display_page - 1) - 1]['link_url'];\r
+ } else {\r
+ $paging_info['prev_link'] = '';\r
+ }\r
+ if ($display_page < $all_page_count) {\r
+ $paging_info['next_link'] = $paging_row_array[($display_page - 1) + 1]['link_url'];\r
+ } else {\r
+ $paging_info['next_link'] = '';\r
+ }\r
+ // ¥Ú¡¼¥¸¥ó¥°¥ê¥ó¥¯\r
+ $paging_info['paging_row_array'] = $paging_row_array;\r
+\r
+ /*--------------------------------*/\r
+ /* ¥Æ¥ó¥×¥ì¡¼¥È¤Ç½ÐÎÏÍѤÎÃͤòÊÖ¤¹ */\r
+ /*--------------------------------*/\r
+ return $paging_info;\r
+ }\r
+\r
+ // ¥ê¥ó¥¯ÀèURL¤Î¼«Æ°À¸À®¡Ê¥Ú¡¼¥¸Á÷¤ê¤Ë¿ÍÑ¡Ë\r
+ // mojavi2¤Î°Ü¿¢\r
+ function genURL ($params)\r
+ {\r
+ $url = $script_path;\r
+ $divider = '&';\r
+ $equals = '=';\r
+ $url .= '?';\r
+\r
+ $keys = array_keys($params);\r
+ $count = sizeof($keys);\r
+ for ($i = 0; $i < $count; $i++)\r
+ {\r
+ if ($i > 0)\r
+ {\r
+ $url .= $divider;\r
+ }\r
+ $url .= rawurlencode(mb_convert_encoding($keys[$i], mb_http_output())) . $equals .\r
+ rawurlencode(mb_convert_encoding($params[$keys[$i]], mb_http_output()));\r
+ }\r
+ return $url;\r
+ }\r
+\r
+}\r
+\r
+?>\r
--- /dev/null
+<?php
+/*
+ * ÈÆÍÑ¥¯¥é¥¹
+ * @access public
+ * @package lib
+ * @category Common
+ * @author Masahiko Fujimoto <fujimoto@icraft.jp>
+ * @sourcefile
+ *
+ */
+class Common
+{
+ /**
+ * ¥Ú¡¼¥¸¥ó¥°½èÍýÍѤËÇÛÎó¤Î°ìÉô¤ò¼è¤ê½Ð¤¹¡£
+ *
+ * @param array $array ÇÛÎó
+ * @param int $page ¥Ú¡¼¥¸
+ * @param int $count £±¥Ú¡¼¥¸¤¢¤¿¤ê¤Î·ï¿ô
+ *
+ * @return array »ØÄꤷ¤¿¥Ú¡¼¥¸Ê¬¤ÎÇÛÎó
+ */
+ function offset($array, $page, $count)
+ {
+ if (!is_array($array) || !is_numeric($page) || !is_numeric($count))
+ {
+ return null;
+ }
+
+ $start = $count * ($page - 1);
+ $end = $count * $page;
+
+ $offsettedArray = null;
+
+ foreach ($array as $no => $value)
+ {
+ if ($start <= $no && $no < $end)
+ {
+ $offsettedArray[] = $value;
+ }
+ }
+
+ return $offsettedArray;
+ }
+
+
+ /*
+ * smarty¤ÎSELECT¥Ü¥Ã¥¯¥¹ÉÁ²è¤Ë»ÈÍѤ¹¤ëÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ */
+ function createSelectBoxArray($valueArray, $outputArray)
+ {
+ array_unshift($valueArray, "");
+ array_unshift($outputArray, "ÁªÂò¤·¤Æ²¼¤µ¤¤");
+
+ return array("value"=>$valueArray, "output"=>$outputArray);
+ }
+
+
+ /**
+ * ·î¤ò²Ã»»¤¹¤ë
+ *
+ * @param time unixtimestamp
+ * @param int ²Ã»»¤¹¤ë·î¿ô
+ *
+ * @return time unixtimestamp
+ */
+ function addMonth($date, $additionalNumber)
+ {
+ $month = date("m", $date);
+ $day = date("d", $date);
+ $year = date("y", $date);
+
+ $resultDate = mktime(0,0,0,$month + $additionalNumber, $day, $year);
+// $resultMonth = date("m", $resultDate);
+ $resultDay = date("d", $resultDate);
+// $resultYear = date("y", $resultDate);
+
+ // $date¤¬·îËö¤Î¾ì¹ç : ·î¤òÍâ·î¤Î·î¤¬Ã»¤¤¾ì¹ç
+ if(mktime (0,0,0,$month + 1 ,0 ,$year) == $date || $day != $resultDay)
+ {
+ // ·×»»¸å¤Î·î¤Î·îËö¤òÊÖ¤¹
+ $resultDate = mktime (0,0,0,$month + $additionalNumber + 1 ,0 ,$year);
+ }
+
+ return $resultDate;
+ }
+
+
+ /**
+ * Æü¤ò²Ã»»¤¹¤ë
+ *
+ * @param time unixtimestamp
+ * @param int ²Ã»»¤¹¤ëÆü¿ô
+ *
+ * @return time unixtimestamp
+ */
+ function addDay($date, $addDay)
+ {
+ $month = date("m", $date);
+ $day = date("d", $date) + $addDay;
+ $year = date("y", $date);
+
+ // ·×»»¸å¤Î·î¤Î·îËö¤òÊÖ¤¹
+ $result = mktime (0, 0, 0, $month, $day ,$year);
+
+ return $result;
+ }
+
+
+ /**
+ * ¥ê¥À¥¤¥ì¥¯¥È
+ *
+ * @param string ¥â¥¸¥å¡¼¥ë̾
+ * @param string ¥¢¥¯¥·¥ç¥ó̾
+ * @param string Éղ乤ë¥Ñ¥é¥á¡¼¥¿¡¼
+ *
+ * @return ̵¤·
+ */
+ function redirect($modName, $actName, $opt = null)
+ {
+ $params = array(MODULE_ACCESSOR => $modName, ACTION_ACCESSOR => $actName);
+ if (is_array($opt))
+ {
+ $params = array_merge($params, $opt);
+ }
+ Controller::redirect(Controller::genURL($params));
+ }
+
+
+ /**
+ * ºÎÈÖÃͤμèÆÀ
+ *
+ * @param $seqName ¥·¡¼¥±¥ó¥¹Ì¾
+ * @return ¥·¡¼¥±¥ó¥¹¤ÎÃÍ
+ * @author M.Fujijmoto
+ * @date 2005.11.16
+ */
+ function getSequence(&$db, $column, $dbName)
+ {
+ $sql = "SELECT MAX(" .$column. ") AS new_number FROM ".$dbName;
+
+ // SEQUENCE¤Î¼èÆÀ
+ $return = $db->getRow($sql);
+
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢null¤òÊÖ¤¹
+ if (0 == strcasecmp(get_class($result), 'DB_Error'))
+ {
+ return null;
+ }
+
+ return is_null($return['new_number']) ? 0 : $return['new_number'];
+ }
+
+
+ /**
+ * »°¤Ä¤ÎÇÛÎó¤ò¥Þ¡¼¥¸¤¹¤ë
+ *
+ * @param $array1
+ * @param $array2
+ * @param $array3
+ * @param array
+ */
+ function margeTreeArray($array1, $array2, $array3)
+ {
+ if(!empty($array1))
+ {
+ $errorMessage = $array1;
+ }
+
+ if(!empty($array2))
+ {
+ if(!empty($errorMessage))
+ {
+ $errorMessage = array_merge($errorMessage, $array2);
+ }
+ else
+ {
+ $errorMessage = $array2;
+ }
+ }
+
+ if(!empty($array3))
+ {
+ if(!empty($errorMessage))
+ {
+ $errorMessage = array_merge($errorMessage, $array3);
+ }
+ else
+ {
+ $errorMessage = $array3;
+ }
+ }
+
+ return $errorMessage;
+ }
+
+ /**
+ * »ØÄꤵ¤ì¤¿Ä¹¤µ¤Î¥é¥ó¥À¥à¤Êʸ»úÎó¤òÀ¸À®¤·¤Þ¤¹¡£
+ *
+ * @author fujiwara
+ * @param int $length ʸ»ú¤ÎŤµ
+ * @return string
+ */
+ public static function createRandomString($length)
+ {
+ $createdString = "";
+
+ $sCharArray = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n'
+ , 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
+ , 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'
+ , 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
+ , '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
+
+ for ($i = 1; $i <= $length; $i++) {
+ $createdString .= $sCharArray[rand(0 ,61)];
+ }
+
+ return $createdString;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * ¶¦Ḁ̈᡼¥ë¥¯¥é¥¹
+ * ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È(Smarty)¤«¤é¥á¡¼¥ë(¥Æ¥¥¹¥È)¤òºîÀ®¤·¤Æ¡¢¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë¡£
+ * ¥á¡¼¥ë¤ÎÁ÷¿®ÊýË¡¤È¤·¤Æ¡¢Æ±´ü/ÈóƱ´ü¤Î¥á¡¼¥ëÁ÷¿®I/F¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£
+ * 1.sendMail¤Ë¤è¤ëƱ´ü¥á¡¼¥ëÁ÷¿®
+ * ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤·¡¢¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë
+ * 2.sendQueueMail¤Ë¤è¤ëÈóƱ´ü¥á¡¼¥ëÁ÷¿®
+ * ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤·¡¢¥á¡¼¥ë¤òmail_queue¤Ë³ÊǼ¡ÊaddQueueMail¡Ë¤·¤Æ¤«¤é
+ * Á÷¿®¤¹¤ë
+ * @access public
+ * @package webapp/lib
+ * @category utility
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class CommonMail extends CommonMakeText
+{
+ /* ¥³¥ó¥Æ¥Ê (¥á¡¼¥ë¥¹¥È¥ì¡¼¥¸) ¥ª¥×¥·¥ç¥ó */
+ private $container_opt;
+
+ /* ¥á¡¼¥é¡¼¥ª¥×¥·¥ç¥ó */
+ private $mail_opt;
+
+ /* ¥á¡¼¥é¡¼ */
+ private $mail;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ */
+ function __construct()
+ {
+ parent::__construct();
+
+ /* ¥³¥ó¥Æ¥Ê (¥á¡¼¥ë¥¹¥È¥ì¡¼¥¸) ¥ª¥×¥·¥ç¥óÀßÄê */
+ $this->container_opt = array (
+ 'type' => 'db',
+ 'dsn' => array('phptype' => DB_PHPTYPE,
+ 'hostspec' => DB_HOSTSPEC,
+ 'port' => DB_PORT,
+ 'database' => DB_DATABASE,
+ 'username' => DB_USERNAME,
+ 'password' => DB_PASSWORD),
+ 'mail_table' => S4_MAIL_TABLE
+ );
+
+ /* ¥á¡¼¥é¡¼¥ª¥×¥·¥ç¥óÀßÄê */
+ if ('mail' == strtolower(S4_MAIL_DRIVER)) {
+ $this->mail_opt['driver'] = S4_MAIL_DRIVER;
+ if (S4_MAIL_ARGS != '') {
+ $this->mail_opt['param'] = S4_MAIL_ARGS;
+ }
+ } elseif ('sendmail' == strtolower(S4_MAIL_DRIVER)) {
+ $this->mail_opt['driver'] = S4_MAIL_DRIVER;
+ if (S4_SENDMAIL_PATH != '') {
+ $this->mail_opt["sendmail_path"] = S4_SENDMAIL_PATH;
+ }
+ if (S4_SENDMAIL_ARGS != '') {
+ $this->mail_opt["sendmail_args"] = S4_SENDMAIL_ARGS;
+ }
+ } elseif ('smtp' == strtolower(S4_MAIL_DRIVER)) {
+ if (S4_MAIL_DRIVER != '') {
+ $this->mail_opt['driver'] = S4_MAIL_DRIVER;
+ }
+ if (S4_SMTP_HOST != '') {
+ $this->mail_opt["host"] = S4_SMTP_HOST;
+ }
+ if (S4_SMTP_PORT != '') {
+ $this->mail_opt["port"] = S4_SMTP_PORT;
+ }
+ if (S4_SMTP_AUTH != '') {
+ $this->mail_opt["auth"] = S4_SMTP_AUTH;
+ }
+ if (S4_SMTP_USERNAME != '') {
+ $this->mail_opt["username"] = S4_SMTP_USERNAME;
+ }
+ if (S4_SMTP_PASSWORD != '') {
+ $this->mail_opt["password"] = S4_SMTP_PASSWORD;
+ }
+ if (S4_SMTP_LOCALHOST != '') {
+ $this->mail_opt["localhost"] = S4_SMTP_LOCALHOST;
+ }
+ if (S4_SMTP_TIMEOUT != '') {
+ $this->mail_opt["timeout"] = S4_SMTP_TIMEOUT;
+ }
+ if (S4_SMTP_VERP != '') {
+ $this->mail_opt["verp"] = S4_SMTP_VERP;
+ }
+ if (S4_SMTP_DEBUG != '') {
+ $this->mail_opt["debug"] = S4_SMTP_DEBUG;
+ }
+ if (S4_SMTP_PERSIST != '') {
+ $this->mail_opt["persist"] = S4_SMTP_PERSIST;
+ }
+ } else {
+ throw new ApplicationException('Illegal mail driver! driver=' . S4_MAIL_DRIVER);
+ }
+
+ /* ¥á¡¼¥é¡¼¼èÆÀ */
+ $options = $this->mail_opt;
+ unset($options['driver']);
+ $this->mail = &Mail::factory($this->mail_opt['driver'], $options);
+ }
+
+ /**
+ * ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë¡ÊƱ´üÁ÷¿®ÍÑ¡Ë
+ * ¡¦¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥»¥Ã¥È¤·¡¢¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë¡£
+ * ¡¦¥á¡¼¥ë¤ÏBCC¤Ç¥á¡¼¥ëÁ÷¿®¤µ¤ì¤ë¡£TO¤Ë¤ÏFROM¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÀßÄꤹ¤ë¡£
+ * ¡¦Ê£¿ô¤ÎÁ÷¿®Àè¤Ë¥á¡¼¥ëÁ÷¿®¤¹¤ë¾ì¹ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò,(¶èÀÚ¤êʸ»ú¡Ë¤Ç¶èÀÚ¤ê
+ * ¡¡ÀßÄꤹ¤ë¤«¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÇÛÎó¤Ë³ÊǼ¤¹¤ë¤³¤È¡£
+ * ¡¡¤Ê¤ª¡¢Á÷¿®Àè¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬Ï¢ÁÛÇÛÎó¤Î¾ì¹ç¡¢²¼µ½ñ¼°¤Ç¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÀßÄꤹ¤ë¡£
+ * ¡¡¡ÊÏ¢ÁÛÇÛÎó¤Î¥¡¼¤ËÁ÷¿®Àè¤Î°¸Ì¾¤òÀßÄꤷ¡¢¥á¡¼¥ëÁ÷¿®¤¬²Äǽ¤Ç¤¢¤ë¡Ë
+ * ¡¡½ñ¼°¡§"$key" <$value>
+ *
+ * @access public
+ * @param string $from Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ * @param string/array $to Á÷¿®Àè¥á¡¼¥ë¥¢¥É¥ì¥¹
+ * @param string $subject ·ï̾
+ * @param array $headers ¥á¡¼¥ë¥Ø¥Ã¥À¡ÊÏ¢ÁÛÇÛÎó¡Ë
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function sendMail ($from, $to, $subject, $headers = null)
+ {
+ /* ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤«¤é¥á¡¼¥ë¡Ê¥Æ¥¥¹¥È¡Ë¤òÀ¸À®¤¹¤ë */
+ $message = $this->render();
+ $mime = &new Mail_mime();
+ $mime->setFrom($from);
+ if (!empty($to)) {
+ if (is_array($to)) {
+ foreach ($to as $val) {
+ $mime->addBcc($val);
+ }
+ } else {
+ $mime->addBcc($to);
+ }
+ }
+ $to = $from;
+
+ $subject = mb_encode_mimeheader($subject, "ISO-2022-JP",'B', "\n");
+
+ $mime->setSubject($subject);
+ $mime->setTXTBody($this->encodeJIS($message));
+ $body = $mime->get(array("text_charset" => "ISO-2022-JP",
+ "head_charset" => "ISO-2022-JP", "text_encoding" => "7bit"));
+ $headers['To'] = $to;
+ $headers = $mime->headers($headers);
+
+ /* ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë */
+ $ret = $this->mail->send($to, $headers, $body);
+
+ if (PEAR::isError($ret)) {
+ throw new ApplicationException($ret->getMessage());
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ¥á¡¼¥ë¤òmail_queue¤Ë³ÊǼ¤¹¤ë¡ÊÈóƱ´üÁ÷¿®ÍÑ¡Ë
+ * ¡¦¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥»¥Ã¥È¤·¡¢¥á¡¼¥ë¤òmail_queue¤Ë³ÊǼ¤¹¤ë¡£
+ * ¡¦¥á¡¼¥ë¤ÏBCC¤Ç¥á¡¼¥ëÁ÷¿®¤µ¤ì¤ë¡£TO¤Ë¤ÏFROM¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÀßÄꤹ¤ë¡£
+ * ¡¦Ê£¿ô¤ÎÁ÷¿®Àè¤Ë¥á¡¼¥ëÁ÷¿®¤¹¤ë¾ì¹ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò,(¶èÀÚ¤êʸ»ú¡Ë¤Ç¶èÀÚ¤ê
+ * ¡¡ÀßÄꤹ¤ë¤«¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÇÛÎó¤Ë³ÊǼ¤¹¤ë¤³¤È¡£
+ * ¡¡¤Ê¤ª¡¢Á÷¿®Àè¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬Ï¢ÁÛÇÛÎó¤Î¾ì¹ç¡¢²¼µ½ñ¼°¤Ç¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÀßÄꤹ¤ë¡£
+ * ¡¡¡ÊÏ¢ÁÛÇÛÎó¤Î¥¡¼¤ËÁ÷¿®Àè¤Î°¸Ì¾¤òÀßÄꤷ¡¢¥á¡¼¥ëÁ÷¿®¤¬²Äǽ¤Ç¤¢¤ë¡Ë
+ * ¡¡½ñ¼°¡§"$key" <$value>
+ * ¡¦¥á¡¼¥ëÇÛãͽÌóÆü»þ¤Ï¡¢¥¿¥¤¥à¥¹¥¿¥ó¥×(mktime()¡Ë¤ÇÀßÄꤹ¤ë¤³¤È
+ *
+ * @access public
+ * @param string $from Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ * @param string/array $to Á÷¿®Àè¥á¡¼¥ë¥¢¥É¥ì¥¹
+ * @param string $subject ·ï̾
+ * @param array $headers ¥á¡¼¥ë¥Ø¥Ã¥À¡ÊÏ¢ÁÛÇÛÎó¡Ë
+ * @param int $reservetime ¥á¡¼¥ëÇÛãͽÌóÆü»þ
+ * @return int ¥á¡¼¥ë£É£Ä
+ */
+ public function addQueueMail ($from, $to, $subject, $headers = null, $reservetime = null)
+ {
+ /* ½é´ü½èÍý */
+ $mailID = null;
+ $mail_queue = &new Mail_Queue($this->container_opt, $this->mail_opt);
+
+ /* ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¤«¤é¥á¡¼¥ë¡Ê¥Æ¥¥¹¥È¡Ë¤òÀ¸À®¤¹¤ë */
+ $message = $this->render();
+ $mime = &new Mail_mime();
+ $mime->setFrom($from);
+ if (!empty($to)) {
+ if (is_array($to)) {
+ foreach ($to as $val) {
+ $mime->addBcc($val);
+ }
+ } else {
+ $mime->addBcc($to);
+ }
+ }
+ $to = $from;
+
+ $subject = mb_encode_mimeheader($subject, "ISO-2022-JP",'B', "\n");
+
+ $mime->setSubject($subject);
+ $mime->setTXTBody($this->encodeJIS($message));
+ $body = $mime->get(array("text_charset" => "ISO-2022-JP",
+ "head_charset" => "ISO-2022-JP", "text_encoding" => "7bit"));
+ $headers['To'] = $to;
+ $headers = $mime->headers($headers);
+
+ if (empty($reservetime)) {
+ // ¥á¡¼¥ë¤òmail_queue¤Ë³ÊǼ¤¹¤ë
+ $mailID = $mail_queue->put($from, $to, $headers, $body);
+ } else {
+ // ¥á¡¼¥ëÇÛãÆü»þ¤ò»ØÄꤷ¡¢¥á¡¼¥ë¤òmail_queue¤Ë³ÊǼ¤¹¤ë
+ $wait = $reservetime - time();
+ $mailID = $mail_queue->put($from, $to, $headers, $body, $wait);
+ }
+
+ return $mailID;
+ }
+
+ /**
+ * ¥á¡¼¥ë¤òmail_queue¤«¤éºï½ü¤¹¤ë¡ÊÈóƱ´üÁ÷¿®ÍÑ¡Ë
+ * @access public
+ * @param int $mailID ¥á¡¼¥ë£É£Ä
+ */
+ public function delQueueMail ($mailID)
+ {
+ $mail_queue =& new Mail_Queue($this->container_opt, $this->mail_opt);
+ $mail_queue->deleteMail($mailID);
+ }
+
+ /**
+ * ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë¡ÊÈóƱ´üÁ÷¿®ÍÑ¡Ë
+ * ¡¦mail_queue¤Ë³ÊǼ¤µ¤ì¤¿¥á¡¼¥ë¤ò¤¹¤Ù¤ÆÁ÷¿®¤¹¤ë¡£
+ * ¡¦¥á¡¼¥ëÇÛãͽÌóÆü»þ¤Ë㤷¤Æ¤¤¤Ê¤¤¥á¡¼¥ë¤ÏÁ÷¿®¤µ¤ì¤Ê¤¤¡£mail_queue¤Ë»Ä¤ë¡£
+ * ¡¦ÂçÎ̤Υ᡼¥ë¤òÁ÷¿®¤¹¤ë¾ì¹ç¤Ï¡¢ºÇÂç¥á¡¼¥ëÁ÷¿®·ï¿ô¤òÀßÄꤹ¤ë¤³¤È¡£
+ *
+ * @access public
+ * @param int $limit ºÇÂç¥á¡¼¥ëÁ÷¿®·ï¿ô
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function sendQueueMail ($limit = MAILQUEUE_ALL)
+ {
+ /* ½é´ü½èÍý */
+ $mail_queue = &new Mail_Queue($this->container_opt, $this->mail_opt);
+
+ /* ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë */
+ $ret = $mail_queue->sendMailsInQueue($limit);
+ if (PEAR::isError($ret)) {
+ throw new ApplicationException($ret->getMessage());
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ʸ»úÎó¤Îʸ»ú¥³¡¼¥É¤òJIS¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ë
+ * @access public
+ * @param string $str ʸ»úÎó
+ * @param string $from_charset ÊÑ´¹Á°Ê¸»ú¥³¡¼¥É
+ * @return string ʸ»úÎó(JIS¥³¡¼¥É)
+ */
+ public function encodeJIS($str = null, $from_charset = 'EUC-JP'){
+ /* ÊÑ´¹Á°Ê¸»ú¥³¡¼¥ÉÀßÄê */
+ if (empty($from_charset)) {
+ $from_charset = mb_detect_encoding($str);
+ }
+
+ /* ʸ»úÎó¤òJIS¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ë */
+ if ($from_charset == 'EUC-JP') {
+ $str_JIS = '';
+ $mode = 0;
+ $b = unpack("C*", $str);
+ $n = count($b);
+ for ($i = 1; $i <= $n; $i++) {
+ if ($b[$i] == 0x8E) {
+ if ($mode != 2) {
+ $mode = 2;
+ $str_JIS .= pack("CCC", 0x1B, 0x28, 0x49);
+ }
+ $b[$i+1] -= 0x80;
+ $str_JIS .= pack("C", $b[$i+1]);
+ $i++;
+ } elseif ($b[$i] > 0x8E) {
+ if ($mode != 1){
+ $mode = 1;
+ $str_JIS .= pack("CCC", 0x1B, 0x24, 0x42);
+ }
+ $b[$i] -= 0x80; $b[$i+1] -= 0x80;
+ $str_JIS .= pack("CC", $b[$i], $b[$i+1]);
+ $i++;
+ } else {
+ if ($mode != 0) {
+ $mode = 0;
+ $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42);
+ }
+ $str_JIS .= pack("C", $b[$i]);
+ }
+ }
+ if ($mode != 0) $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42);
+ } else {
+ $str_JIS = mb_convert_encoding($str, "ISO-2022-JP", $from_charset);
+ }
+
+ return $str_JIS;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+ini_set("display_errors", 0);
+ini_set("error_reporting", false);
+require_once(MO_PEAR_DIR . "/Mail/Queue.php");
+require_once(MO_SMARTY_DIR.'/libs/Smarty.class.php');
+ini_restore("error_reporting");
+ini_restore("display_errors");
+
+/**
+ * ¶¦Ḁ̈ƥ¥¹¥ÈºîÀ®¥¯¥é¥¹
+ * ¥Æ¥ó¥×¥ì¡¼¥È(Smarty)¤«¤é¥Æ¥¥¹¥È¤òºîÀ®¤¹¤ë¡£
+ *
+ * @access public
+ * @package webapp/lib
+ * @category utility
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class CommonMakeText
+{
+ /* Smarty */
+ protected $smarty;
+
+ /* ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê */
+ protected $compileDir;
+
+ /* ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê */
+ protected $directory;
+
+ /* ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë̾ */
+ protected $template;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ */
+ function __construct()
+ {
+ /* SmartyÀßÄê */
+ $this->smarty = new Smarty();
+ $this->smarty->config_dir = MO_CONFIG_DIR;
+ $this->smarty->cache_dir = MO_CACHE_DIR;
+ }
+
+ /**
+ * ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ public function getCompileDir()
+ {
+ return $this->compileDir;
+ }
+
+ /**
+ * ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $compileDir ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ public function setCompileDir($compileDir)
+ {
+ $this->compileDir = $compileDir;
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ public function getDirectory()
+ {
+ return $this->directory;
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $directory ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ public function setDirectory($directory)
+ {
+ $this->directory = $directory;
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë̾¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë̾
+ */
+ public function getTemplate()
+ {
+ return $this->template;
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë̾¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $directory ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ public function setTemplate($template)
+ {
+ if (Toolkit::isPathAbsolute($template)) {
+ $this->directory = dirname($template);
+ $this->template = basename($template);
+ } else {
+ $this->template = $template;
+ }
+ }
+
+ /**
+ * Á´¤Æ¤Î¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥¯¥ê¥¢¤¹¤ë
+ * @access public
+ */
+ public function clearAttributes()
+ {
+ $this->smarty->clear_all_assign();
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô̾¤òÁ´¤Æ¼èÆÀ¤¹¤ë
+ * @access public
+ * @return array ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô̾
+ */
+ public function getAttributeNames()
+ {
+ return array_keys($this->smarty->get_template_vars());
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return var ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¥Ç¡¼¥¿
+ */
+ public function & getAttribute($name)
+ {
+ return $this->smarty->get_template_vars($name);
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò½üµî¤¹¤ë
+ * @access public
+ * @return array ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô
+ */
+ public function & removeAttribute($name)
+ {
+ $retval = $this->smarty->get_template_vars($name);
+
+ $this->smarty->clear_assign($name);
+
+ return $retval;
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $name ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô̾
+ * @param var $value ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¥Ç¡¼¥¿
+ */
+ public function setAttribute($name, $value)
+ {
+ $this->smarty->assign($name, $value);
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $name ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô̾
+ * @param var $value ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¥Ç¡¼¥¿(»²¾È¥¢¥É¥ì¥¹)
+ */
+ public function setAttributeByRef($name, &$value)
+ {
+ $this->smarty->assign_by_ref($name, $value);
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¤Þ¤È¤á¤Æ¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param array $attributes ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô(ÇÛÎó)
+ */
+ public function setAttributes($attributes)
+ {
+ $this->smarty->assign($attributes);
+ }
+
+ /**
+ * ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¤Þ¤È¤á¤Æ¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param array $attributes ¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô(ÇÛÎó)(»²¾È¥¢¥É¥ì¥¹)
+ */
+ public function setAttributesByRef(&$attributes)
+ {
+ $this->smarty->assign_by_ref($attributes);
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤ò¥»¥Ã¥È¤·¡¢¥Æ¥¥¹¥È¤òÀ¸À®¤¹¤ë
+ * @access public
+ * @return ¥á¡¼¥ë(¥Æ¥¥¹¥È)
+ */
+ public function & render()
+ {
+ // ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤¬Ì¤¥»¥Ã¥È¤Î¾ì¹ç¡¢¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¥»¥Ã¥È¤¹¤ë
+ if (empty($this->compileDir)) {
+ $this->compileDir = MO_WEBAPP_DIR . '/compiled';
+ }
+ // ¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤¬¤Ê¤¤¾ì¹ç¡¢¥³¥ó¥Ñ¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë
+ if (!file_exists($this->compileDir)) {
+ mkdir($this->compileDir, 0755, true);
+ }
+
+ $this->smarty->compile_dir = $this->compileDir;
+ $this->smarty->template_dir = $this->directory;
+ $retval = $this->smarty->fetch($this->template);
+
+ return $retval;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¥¯¥é¥¹
+ * ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç»ÈÍѤ¹¤ë¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤ò´ÉÍý¤¹¤ë
+ * @access public
+ * @package webapp/lib
+ * @category utility
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class CommonMessages extends ParameterHolder
+{
+ /* ¥·¥ó¥°¥ë¥È¥ó¥ª¥Ö¥¸¥§¥¯¥È */
+ private static $singleton = null;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ */
+ private function __construct()
+ {
+ $this->parameters = array();
+ }
+
+ /**
+ * ¥·¥ó¥°¥ë¥È¥ó¥ª¥Ö¥¸¥§¥¯¥È¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return CommonMessages ¥¤¥ó¥¹¥¿¥ó¥¹
+ */
+ public static function getInstance() {
+ if (CommonMessages::$singleton == null) {
+ CommonMessages::$singleton = new CommonMessages();
+ }
+ return CommonMessages::$singleton;
+ }
+
+ /**
+ * ½é´ü½èÍý
+ * Ï¢ÁÛÇÛÎó¥Ç¡¼¥¿(key¡§¥³¡¼¥É¡¢value¡§¶¦ÄÌ¥á¥Ã¥»¡¼¥¸)¤ò¼õ¤±¼è¤ê¡¢¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤ò¹¹¿·¤¹¤ë
+ * @access public
+ * @param array $parameters ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸(Ï¢ÁÛÇÛÎó¥Ç¡¼¥¿)
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function initialize ($parameters = null)
+ {
+ if ($parameters != null) {
+ $this->parameters = array_merge($this->parameters, $parameters);
+ }
+
+ return true;
+ }
+}
--- /dev/null
+<?php
+require_once(MO_PEAR_DIR . '/Text/Password.php');
+require_once(MO_LIB_DIR . '/pdf/mbfpdfi.php');
+
+/**
+ * PDFAction¥¯¥é¥¹
+ * @access public
+ * @package webapp/lib
+ * @category action
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+abstract class PDFAction extends ActionEx
+{
+ /**
+ * PDF¥Õ¥¡¥¤¥ë¤ò½ÐÎϤ¹¤ë
+ * ¡Êoutput¤ò¸Æ¤Ó½Ð¤¹¡Ë
+ * @access public
+ * @return object VIEWÄê¿ô
+ */
+ public function execute ()
+ {
+ $this->output();
+ return View::NONE;
+ }
+
+ /**
+ * PDF¥¤¥ó¥¹¥¿¥ó¥¹¤òÀ¸À®¤¹¤ë
+ * ¥Þ¥ë¥Á¥Ð¥¤¥È¤ÎPDF¥¤¥ó¥¹¥¿¥ó¥¹¤òºîÀ®¤·¡¢¥Þ¥ë¥Á¥Ð¥¤¥È¥Õ¥©¥ó¥È¤òÀßÄꤹ¤ë¡£
+ * »ÈÍѤ¹¤ë¥Þ¥ë¥Á¥Ð¥¤¥È¥Õ¥©¥ó¥È¤Ï¡¢²¼µ¥¯¥é¥¤¥¢¥ó¥ÈOSÊ̤˼«Æ°ÀßÄꤹ¤ë¡£
+ * (Windows) MS-P¥´¥·¥Ã¥¯
+ * (Mac, Linux¡ËAcrobatReaderÆüËܸì¥Õ¥©¥ó¥È(ÌÀÄ«ÂÎ)
+ * (¤½¤Î¾¡ËMS-P¥´¥·¥Ã¥¯
+ * @access public
+ * @param string $orientation ÍÑ»æÊý¸þ¡ÊP:½Ä¡¢L:²£¡Ë
+ * @param string $unit ñ°Ì¡Êpt:¥Ý¥¤¥ó¥È¡¢mm:¥ß¥ê¡¢cm:¥»¥ó¥Á¡¢in:¥¤¥ó¥Á¡Ë
+ * @param string $format Íѻ極¥¤¥º¡ÊA3¡¢A4¡¢A5¡¢letter¡¢legal¡Ë
+ * @return MBfpdi
+ */
+ public function createPDF($orientation='P',$unit='mm',$format='A4') {
+ /* ¥Þ¥ë¥Á¥Ð¥¤¥ÈPDF¥¤¥ó¥¹¥¿¥ó¥¹¤òºîÀ®¤¹¤ë */
+ $pdf = &new MBfpdi($orientation, $unit, $format);
+ $pdf->SetProtection(array('print'), '',
+ CommonEncryption::getHashdata(Text_password::create(32, "unpronounceable")));
+ $pdf->SetAuthor($_SERVER['HTTP_HOST']); // ¥É¥¥å¥á¥ó¥È¤ÎÃø¼Ô¤ò¥»¥Ã¥È¤¹¤ë
+ $pdf->SetFillColor(200, 200, 200); // Åɤê¤Ä¤Ö¤·¿§¤ÎÀßÄê
+
+ /* ¥Þ¥ë¥Á¥Ð¥¤¥È¥Õ¥©¥ó¥ÈÀßÄê */
+ if (stripos($_SERVER['HTTP_USER_AGENT'], 'win') > 0) {
+ $pdf->AddMBFont(GOTHIC, 'EUC-JP');
+ $pdf->SetFont(GOTHIC); // ¥Õ¥©¥ó¥È¤ÎÀßÄê
+ } elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'mac') > 0) {
+ $pdf->AddMBFont(KOZMIN, 'EUC-JP');
+ $pdf->SetFont(KOZMIN); // ¥Õ¥©¥ó¥È¤ÎÀßÄê
+ } elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'linux') > 0) {
+ $pdf->AddMBFont(KOZMIN, 'EUC-JP');
+ $pdf->SetFont(KOZMIN); // ¥Õ¥©¥ó¥È¤ÎÀßÄê
+ } else {
+ $pdf->AddMBFont(GOTHIC, 'EUC-JP');
+ $pdf->SetFont(GOTHIC); // ¥Õ¥©¥ó¥È¤ÎÀßÄê
+ }
+ return $pdf;
+ }
+
+ /**
+ * PDF¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë
+ * createPDF¤ò¸Æ¤Ó½Ð¤·¡¢PDF¥¤¥ó¥¹¥¿¥ó¥¹¤ò¼èÆÀ¤¹¤ë¡£
+ * output¤Ë¤Æ¡¢PDF¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë($pdf->Output())¤ò¸Æ¤Ó½Ð¤¹¡£
+ * @access public
+ */
+ abstract function output();
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// $Id: BaseView.class.php,v 1.15 2008/05/21 01:53:36 y-yuki Exp $
+
+class SimpleBaseView extends SimpleViewEx
+{
+ protected $inlineFlg = false;
+ protected $script_path = "index.php";
+
+ /**
+ * execute
+ */
+ function execute() {
+
+ $context = &$this->getContext();
+ $request = &$context->getRequest();
+ $moduleName = $context->getModuleName();
+ $actionName = $context->getActionName();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¥í¥°¥¤¥óÃæ¤Î¥æ¡¼¥¶¾ðÊó
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤«¤É¤¦¤«
+ $this->setAttribute('is_login_user', $acs_user_info_row['is_login_user']);
+ }
+
+ function getControllerPath($module="", $action="") {
+ $index = "index.php?";
+ $moduleNm = "module=";
+ $actionNm = "&action=";
+ if ($module == "" && $action == "") {
+ return $index;
+ }
+ return $index . $moduleNm . $module . $actionNm . $action;
+
+ }
+
+ /**
+ * ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ *
+ * @param &$controller
+ * @param &$request
+ * @param &$target_array
+ */
+ function getErrorMessage (&$controller, &$request, &$user) {
+ $error_msg_array = array();
+ $error_row = $user->getAttribute('error_row');
+ if (!is_array($error_row)) {
+ $error_row = array();
+ }
+
+ // request ¤Î¥¨¥é¡¼¤È¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥¨¥é¡¼¤ò¼èÆÀ¤¹¤ë
+ $error_row = array_merge($error_row, $request->getErrors());
+ if ($error_row) {
+ foreach ($error_row as $key => $msg) {
+ array_push($error_msg_array, $msg);
+ }
+ }
+ $user->removeAttribute('error_row');
+ return $error_msg_array;
+ }
+
+ /**
+ * ¥Ú¡¼¥¸¥ó¥°¾ðÊóÀßÄê
+ * °ú¿ô¤Î $target_array ¤òɽ¼¨¤¹¤ëʬ¤À¤±¤Ëºï¤ê¡¢¥Ú¡¼¥¸¥ó¥°¾ðÊó¤òºîÀ®¤¹¤ë
+ *
+ * @param &$controller
+ * @param &$request
+ * @param &$target_array
+ * @param $display_max_count
+ *
+ * @return ¥Ú¡¼¥¸½ÐÎϤΤ¿¤á¤Î row_array
+ */
+ function getPagingInfo (&$controller, &$request, &$target_array, $display_max_count) {
+ $params = $request->ACSGetParameters();
+
+ // ¥Ú¡¼¥¸¥ó¥°¾ðÊó
+ $paging_info = array();
+
+ // ɽ¼¨Áí·ï¿ô¼èÆÀ
+ $all_count = count($target_array);
+ if ($all_count <= $display_max_count) {
+ // ¥Ú¡¼¥¸¥ó¥°¤ÎɬÍפʤ·
+ $paging_info['all_count'] = $all_count;
+ if ($paging_info['all_count'] > 0) {
+ $paging_info['start_count'] = 1;
+ } else {
+ $paging_info['start_count'] = 0;
+ }
+ $paging_info['end_count'] = $all_count;
+ return $paging_info;
+ }
+
+ // ɽ¼¨¥Ú¡¼¥¸¼èÆÀ
+ if ($params['page'] > 0) {
+ $display_page = $params['page'];
+ } else {
+ // ½é´üÃÍ
+ $display_page = 1;
+ }
+
+ /*--------------------------*/
+ /* ɽ¼¨¤¹¤ë¥Ç¡¼¥¿¤À¤±¤Ëºï¤ë */
+ /*--------------------------*/
+ // ɽ¼¨ÂоݤȤʤë¥Ç¡¼¥¿¤Î³«»Ï°ÌÃÖ
+ $display_start_position = $display_max_count * ($display_page - 1);
+
+ // ɽ¼¨Âоݥǡ¼¥¿¤Î¤ß¤Ë¤¹¤ë
+ $target_array = array_slice($target_array, $display_start_position, $display_max_count);
+
+ /*----------------------*/
+ /* ¥Ú¡¼¥¸¤Î¥ê¥ó¥¯¤òºîÀ® */
+ /*----------------------*/
+ $paging_row_array = array();
+ // ¥Ú¡¼¥¸¿ô
+ $all_page_count = ceil($all_count / $display_max_count);
+ for ($page_count = 1; $page_count <= $all_page_count; $page_count++) {
+ // ¥Ú¡¼¥¸¿ô¡ÊURL ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¹¤ëÃÍ¡Ë
+ $params['page'] = $page_count;
+
+ // ¥ê¥ó¥¯ÀèURL
+ if ($page_count != $display_page) {
+ $link_url = $this->genURL($params);
+ } else {
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Ë¤Ï¥ê¥ó¥¯¤ò¤Ï¤é¤Ê¤¤
+ $link_url = "";
+ }
+
+ // set
+ $paging_row = array();
+ $page_row['page_number'] = $page_count;
+ $page_row['link_url'] = $link_url;
+
+ array_push($paging_row_array, $page_row);
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°¾ðÊó¥»¥Ã¥È //
+ // Á´·ï
+ $paging_info['all_count'] = $all_count;
+ // XX-YY
+ $paging_info['start_count'] = $display_start_position + 1;
+ $paging_info['end_count'] = $display_start_position + $display_max_count;
+ if ($paging_info['end_count'] > $all_count) {
+ $paging_info['end_count'] = $all_count;
+ }
+ // Á°¤Ø¡¦¼¡¤Ø
+ if ($display_page > 1) {
+ $paging_info['prev_link'] = $paging_row_array[($display_page - 1) - 1]['link_url'];
+ } else {
+ $paging_info['prev_link'] = '';
+ }
+ if ($display_page < $all_page_count) {
+ $paging_info['next_link'] = $paging_row_array[($display_page - 1) + 1]['link_url'];
+ } else {
+ $paging_info['next_link'] = '';
+ }
+ // ¥Ú¡¼¥¸¥ó¥°¥ê¥ó¥¯
+ $paging_info['paging_row_array'] = $paging_row_array;
+
+ /*--------------------------------*/
+ /* ¥Æ¥ó¥×¥ì¡¼¥È¤Ç½ÐÎÏÍѤÎÃͤòÊÖ¤¹ */
+ /*--------------------------------*/
+ return $paging_info;
+ }
+
+ // ¥ê¥ó¥¯ÀèURL¤Î¼«Æ°À¸À®¡Ê¥Ú¡¼¥¸Á÷¤ê¤Ë¿ÍÑ¡Ë
+ // mojavi2¤Î°Ü¿¢
+ function genURL ($params)
+ {
+ $url = $script_path;
+ $divider = '&';
+ $equals = '=';
+ $url .= '?';
+
+ $keys = array_keys($params);
+ $count = sizeof($keys);
+ for ($i = 0; $i < $count; $i++)
+ {
+ if ($i > 0)
+ {
+ $url .= $divider;
+ }
+ $url .= rawurlencode(mb_convert_encoding($keys[$i], mb_http_output())) . $equals .
+ rawurlencode(mb_convert_encoding($params[$keys[$i]], mb_http_output()));
+ }
+ return $url;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+require_once(MO_PEAR_DIR . '/Config.php');
+require_once(MO_PEAR_DIR . '/HTML/menu.php');
+require_once(MO_PEAR_DIR . '/HTML/Menu/DirectRenderer.php');
+ini_set("display_errors", 0);
+ini_set("error_reporting", false);
+require_once(MO_PEAR_DIR . '/HTML/QuickForm/Renderer/ArraySmarty.php');
+require_once(MO_PEAR_DIR . '/Pager/Pager.php');
+ini_restore("error_reporting");
+ini_restore("display_errors");
+
+/**
+ * View¤Î³ÈÄ¥¥¯¥é¥¹
+ * @access public
+ * @package webapp/lib
+ * @category view
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+abstract class SimpleViewEx extends SmartyView
+{
+ /**
+ * Controller¥ª¥Ö¥¸¥§¥¯¥È
+ * @var Controller
+ */
+ protected $controller = '';
+
+ /**
+ * Request¥ª¥Ö¥¸¥§¥¯¥È
+ * @var Request
+ */
+ protected $request = '';
+
+ /* user¥ª¥Ö¥¸¥§¥¯¥È */
+ private $user = '';
+
+ /* HTML_QuickForm¤ÎSmarty¥ì¥ó¥À¥é */
+ private $quickformSmarty = '';
+
+ /* ¥á¥Ã¥»¡¼¥¸¥Ç¡¼¥¿ */
+ private $messages = '';
+
+ /* ¥Ú¡¼¥¸Ì¾ */
+ private $pageName = 'page1';
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥â¥¸¥å¡¼¥ë̾ */
+ private $moduleName = '';
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥¢¥¯¥·¥ç¥ó̾ */
+ private $actionName = '';
+
+ var $css_file_array = array();
+ var $js_file_array = array();
+
+ /**
+ * ½é´ü½èÍý
+ * @access public
+ * @param Object $contextt context
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function initialize ($context)
+ {
+ parent::initialize($context);
+
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ $this->controller = $context->getController();
+ $this->request = $context->getRequest();
+ $this->user = $context->getUser();
+
+ $this->moduleName = $context->getModuleName();
+ $this->actionName = $context->getActionName();
+ $this->messages = &CommonMessages::getInstance();
+
+ /* ¥Õ¥©¡¼¥àÅÐÏ¿¥ê¥¹¥È¤Î¥Õ¥©¡¼¥à¤òsmarty¤Ë¤¹¤Ù¤Æ¥»¥Ã¥È¤¹¤ë */
+ $o_smarty = &$this->getEngine();
+ $o_smarty->register_object("style", $this, array("request", "checkErrorElement"));
+ $this->quickformSmarty =
+ new HTML_QuickForm_Renderer_ArraySmarty($this->getEngine());
+ $formList = $this->request->getAttribute('formList');
+ foreach ($formList as $formName) {
+ $this->setForm($formName);
+ }
+
+ /* ¥á¥Ã¥»¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ if ($this->request->hasAttribute('messages')) {
+ $messages = &$this->request->getAttribute('messages');
+ $messages = array_unique($messages);
+ $this->setAttributeByRef('messages', $messages);
+ }
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ if ($this->request->hasErrors()) {
+ $errors = &$this->request->getErrors();
+ $errors = array_unique($errors);
+ $this->setAttributeByRef('errors', $errors);
+ }
+
+
+ // ¶¦Ä̤ΠCSS ¤ò¥»¥Ã¥È
+ array_push($this->css_file_array, ACS_SELECTION_CSS_DIR . ACS_DEFAULT_SELECTION_CSS_FILE);
+ $this->setAttribute('include_css_array', $this->css_file_array);
+
+ // ¶¦Ä̤ΠJS ¤ò¥»¥Ã¥È
+ array_push($this->js_file_array, ACS_JS_DIR . ACS_COMMON_JS);
+ $this->setAttribute('include_script_array', $this->js_file_array);
+
+ return true;
+ }
+
+ /**
+ * ²èÌÌID¤ò¥»¥Ã¥È¤¹¤ë
+ * ²èÌÌID¤ËɳÉÕ¤¯²èÌÌ¥¿¥¤¥È¥ë¤È¥â¥¸¥å¡¼¥ë̾¤È¥¢¥¯¥·¥ç¥ó̾¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $id ²èÌÌID
+ */
+ public function setScreenId($id)
+ {
+ /* Decorator¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë */
+ $this->setDecoratorDirectory(MO_TEMPLATE_DIR);
+ $this->setDecoratorTemplate(MO_SIMPLE_TEMPLATE_FILE);
+
+ // ¥¹¥¯¥ê¡¼¥ó¥¿¥¤¥È¥ë¤ò¼èÆÀ¤¹¤ë
+ $title = '';
+ $screenName = '';
+ $screenNameList = MO_CONFIG_DIR . '/' . S4_SCREEN_NAME_LIST;
+ $moduleName = '';
+ $actionName = '';
+ if (file_exists($screenNameList)) {
+ $config = new Config();
+ $container = $config->parseConfig($screenNameList, 'inifile');
+ $child=$container->searchPath(array('ScreenName'));
+ $screenList = $child->toArray();
+ if (isset($screenList['ScreenName'][$id])) {
+ list ($screenName, $moduleName, $actionName) = explode(',', $screenList['ScreenName'][$id]);
+ }
+ // ¥¿¥¤¥È¥ë¥Ð¡¼¤Ë²èÌÌ¥¿¥¤¥È¥ë¤ò¥»¥Ã¥È¤¹¤ë
+ $title = $screenName;
+ }
+
+ // ²èÌÌ¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë
+ $this->setAttribute('title', $title);
+ $this->setAttribute('screen_name', $screenName);
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥à¤òÅÐÏ¿¤¹¤ë
+ * @access public
+ * @param String $formName ¥Õ¥©¡¼¥à̾
+ * @param Object $form ¥Õ¥©¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ public function setForm($formName = '', $form = null)
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($form)) {
+ $form = &$this->request->getAttribute($formName);
+ if (empty($form)) {
+ throw new ApplicationException('Not found form is "' . $formName . '."');
+ }
+ }
+
+ /* ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë */
+ if ($this->request->hasErrors()) {
+ $errorNames = &$this->request->getErrorNames();
+ $errorNames = array_unique($errorNames);
+ foreach ($errorNames as $name) {
+ if ($form->elementExists($name)) {
+ $element = &$form->getElement($name);
+ $this->_setErrorAttribute($element);
+ }
+ }
+ }
+
+ /* ¥Õ¥©¡¼¥à¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $form->accept($this->quickformSmarty);
+ $this->setAttribute($formName, $this->quickformSmarty->toArray());
+ }
+
+ /**
+ * ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë
+ * ¡ÊQuickForm¤Î¹àÌܤËÂФ·¤Æ¡¢ÇØ·Ê¿§¤òÀßÄꤹ¤ë¡Ë
+ * @access public
+ * @param HTML_QuickForm_element $element ¥¨¥é¡¼¹àÌÜ
+ */
+ private function _setErrorAttribute(&$element)
+ {
+ if ('group' == $element->getType()) {
+ $elements = $element->getElements();
+ foreach ($elements as $value) {
+ $this->_setErrorAttribute($value);
+ }
+ } else {
+ $attr = $element->getAttributes();
+ $attr['style'] = S4_ERROR_COLUMN_COLOR;
+ $element->setAttributes($attr);
+ }
+ }
+
+ /**
+ * ¥¨¥é¡¼¹àÌܤòȽÃǤ·¡¢HTML¤Îstyle¥×¥í¥Ñ¥Æ¥£¤òÊֵѤ¹¤ë
+ * Smarty¤«¤é¥³¡¼¥ë¤µ¤ì¤ëfunction¤Î¤¿¤á¡¢$params¤Ë¤Ï¡¢Ï¢ÁÛÇÛÎó·Á¼°¤Ç
+ * $params['name']¤Ë¥Á¥§¥Ã¥¯¤¹¤ë¹àÌÜ̾¤ò¥»¥Ã¥È¤¹¤ë
+ * ¢¨setErrorMesseage¤ÎÂèÆó°ú¿ô¤È¡¢HTML¤Îname¤ò°ìÃפµ¤»¤ë¤³¤È
+ * @param array $params Smarty¥Ñ¥é¥á¡¼¥¿
+ * @param Smarty &$o_smarty Smarty¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ public function checkErrorElement($params, &$o_smarty)
+ {
+ $retVal = '';
+
+ /* ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë */
+ if ($this->request->hasError($params['name'])) {
+ $retVal = sprintf('style="%s"', S4_ERROR_COLUMN_COLOR);
+ }
+
+ return $retVal;
+ }
+
+ /**
+ * ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë
+ * ¥Ñ¥é¥á¡¼¥¿¤ò°ú¤ÅϤ¹¤È¡¢¥á¥Ã¥»¡¼¥¸¤Î%s¤Ë¥Ñ¥é¥á¡¼¥¿¤ò¥»¥Ã¥È¤·ÊֵѤ·¤Þ¤¹¡£
+ * @access public
+ * @param string $id ¥á¥Ã¥»¡¼¥¸ID
+ * @param object $args ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤Î¥Ñ¥é¥á¡¼¥¿(ÇÛÎó¤Þ¤¿¤Ï¡¢ÊÑ¿ô)
+ * @return string ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸
+ */
+ public function getMessage($id, $args = null)
+ {
+ /* ¥á¥Ã¥»¡¼¥¸¼èÆÀ */
+ $msg = $this->messages->getParameter($id);
+ if (empty($msg)) {
+ throw new ApplicationException("Not found message! id=$id");
+ }
+
+ /* ¥Ñ¥é¥á¡¼¥¿¥»¥Ã¥È */
+ if (is_array($args)) {
+ $msg = vsprintf($msg, $args);
+ } else {
+ $msg = sprintf($msg, $args);
+ }
+
+ return $msg;
+ }
+
+ /**
+ * ¥Ú¡¼¥¸¥Ç¡¼¥¿(1¥Ú¡¼¥¸Ê¬)¤ò¥»¥Ã¥È¤¹¤ë
+ * ¡¦¥Ú¡¼¥¸¥Ç¡¼¥¿(1¥Ú¡¼¥¸Ê¬)¤ò¼õ¤±¼è¤ê¡¢smarty¤Ëpager¤È¥Ú¡¼¥¸¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¤Ê¤ª¡¢¥Ú¡¼¥¸¥ó¥°¤ÎºÝ¤Î²èÌÌÁ«°ÜÀè¤Ï¡¢°ú¿ô¤Ç»ØÄꤵ¤ì¤¿¥¢¥¯¥·¥ç¥ó¤Ç¤¢¤ë¡£
+ * ¡¦¥¢¥¯¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢²èÌÌID¤ËɳÉÕ¤¯¥¢¥¯¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È¤È¤Ê¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$extraVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤¿¤¯¤Ê¤¤¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$excludeVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * @access public
+ * @param array $itemData ¥Ú¡¼¥¸¥ó¥°¤Î¥¢¥¤¥Æ¥àÇÛÎó¥Ç¡¼¥¿
+ * @param int $totalItems Á´¥Ú¡¼¥¸¤Î¥¢¥¤¥Æ¥à¹ç·×
+ * @param int $perPage ¥Ú¡¼¥¸¤¢¤¿¤ê¤Î¥¢¥¤¥Æ¥à¿ô
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @param string $moduleName ¥â¥¸¥å¡¼¥ë̾
+ * @param string $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param array $extraVars Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌÜ(¥«¥é¥à̾)
+ * @param array $excludeVars Pager¤ËÊÝ»ý¤µ¤»¤Ê¤¤¹àÌÜ(¥«¥é¥à̾)
+ */
+ public function setPageTotalItems($itemData = null, $perPage = 30, $totalItems = null, $pageName = null,
+ $moduleName = null, $actionName = null, $extraVars = array(), $excludeVars = array())
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($pageName)) {
+ $pageName = $this->getPageName();
+ }
+ if (empty($moduleName)) {
+ $moduleName = $this->moduleName;
+ }
+ if (empty($actionName)) {
+ $actionName = $this->actionName;
+ }
+ if (empty($perPage)) {
+ $perPage = 30;
+ }
+ /* ²èÌÌÁ«°ÜÀè¤ò¼èÆÀ¤¹¤ë */
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $url = $this->controller->genURL(null, $parameters);
+
+ /* ¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë */
+ $params = array("totalItems" => $totalItems,
+ "perPage" => $perPage,
+ "mode" => "Jumping",
+ "httpMethod" => "POST",
+ "urlVar" => $pageName,
+ "fixFileName" => false,
+ "path" => "",
+ "fileName" => $url,
+ "prevImg" => '<<',
+ "nextImg" => '>>',
+ "altFirst" => "ºÇ½é¥Ú¡¼¥¸",
+ "altPrev" => "Á°¥Ú¡¼¥¸",
+ "altNext" => "¼¡¥Ú¡¼¥¸",
+ "altLast" => "ºÇ½ª¥Ú¡¼¥¸",
+ "firstPagePre" => "{",
+ "firstPageText" => "ºÇ½é",
+ "firstPagePost" => "}",
+ "lastPagePre" => "{",
+ "lastPageText" => "ºÇ½ª",
+ "lastPagePost" => "}",
+ "extraVars" => $extraVars,
+ "excludeVars" => $excludeVars);
+ $pager = Pager::factory($params);
+
+ /* ¥Ú¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $this->setAttribute($pageName, $pager);
+ if (count($itemData) > 0) {
+ $this->setAttribute($pageName . '_data', $itemData);
+ } else {
+ $this->setAttribute($pageName . '_data', $this->getMessage("MC-006"));
+ }
+ }
+
+ /**
+ * ¥Ú¡¼¥¸¥Ç¡¼¥¿(Á´¤Æ¤Î¥Ú¡¼¥¸)¤ò¥»¥Ã¥È¤¹¤ë
+ * ¡¦¥Ú¡¼¥¸¥Ç¡¼¥¿(Á´¤Æ¤Î¥Ú¡¼¥¸)¤ò¼õ¤±¼è¤ê¡¢smarty¤Ëpager¤È¥Ú¡¼¥¸¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¤Ê¤ª¡¢¥Ú¡¼¥¸¥ó¥°¤ÎºÝ¤Î²èÌÌÁ«°ÜÀè¤Ï¡¢°ú¿ô¤Ç»ØÄꤵ¤ì¤¿¥¢¥¯¥·¥ç¥ó¤Ç¤¢¤ë¡£
+ * ¡¦¥¢¥¯¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢²èÌÌID¤ËɳÉÕ¤¯¥¢¥¯¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È¤È¤Ê¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$extraVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤¿¤¯¤Ê¤¤¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$excludeVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * @access public
+ * @param array $itemData ¥Ú¡¼¥¸¥ó¥°¤Î¥¢¥¤¥Æ¥àÇÛÎó¥Ç¡¼¥¿
+ * @param int $perPage ¥Ú¡¼¥¸¤¢¤¿¤ê¤Î¥¢¥¤¥Æ¥à¿ô
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @param string $moduleName ¥â¥¸¥å¡¼¥ë̾
+ * @param string $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param array $extraVars Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌÜ(¥«¥é¥à̾)
+ * @param array $excludeVars Pager¤ËÊÝ»ý¤µ¤»¤Ê¤¤¹àÌÜ(¥«¥é¥à̾)
+ */
+ public function setPageItemData($itemData = null, $perPage = 30, $pageName = null,
+ $moduleName = null, $actionName = null, $extraVars = array(), $excludeVars = array())
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($pageName)) {
+ $pageName = $this->getPageName();
+ }
+ if (empty($moduleName)) {
+ $moduleName = $this->moduleName;
+ }
+ if (empty($actionName)) {
+ $actionName = $this->actionName;
+ }
+ if (empty($perPage)) {
+ $perPage = 30;
+ }
+
+ /* ²èÌÌÁ«°ÜÀè¤òÀßÄꤹ¤ë */
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $url = $this->controller->genURL(null, $parameters);
+
+ /* ¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë */
+ $params = array ("itemData" => $itemData,
+ "perPage" => $perPage,
+ "mode" => "Jumping",
+ "httpMethod" => "POST",
+ "urlVar" => $pageName,
+ "fixFileName" => false,
+ "path" => "",
+ "fileName" => $url,
+ "prevImg" => '<<',
+ "nextImg" => '>>',
+ "altFirst" => "ºÇ½é¥Ú¡¼¥¸",
+ "altPrev" => "Á°¥Ú¡¼¥¸",
+ "altNext" => "¼¡¥Ú¡¼¥¸",
+ "altLast" => "ºÇ½ª¥Ú¡¼¥¸",
+ "firstPagePre" => "{",
+ "firstPageText" => "ºÇ½é",
+ "firstPagePost" => "}",
+ "lastPagePre" => "{",
+ "lastPageText" => "ºÇ½ª",
+ "lastPagePost" => "}",
+ "extraVars" => $extraVars,
+ "excludeVars" => $excludeVars);
+ $pager = Pager::factory($params);
+
+ /* ¥Ú¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $pageData = array();
+ foreach ($pager->getPageData() as $lineData) {
+ $pageData[] = $lineData;
+ }
+ $this->setAttribute($pageName, $pager);
+ if (count($pageData) > 0) {
+ $this->setAttribute($pageName . '_data', $pageData);
+ } else {
+ $this->setAttribute($pageName . '_data', $this->getMessage("MC-006"));
+ }
+ }
+
+ /**
+ * ¥Ú¡¼¥¸Ì¾¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥Ú¡¼¥¸Ì¾
+ */
+ public function getPageName()
+ {
+ $pageName = $this->pageName;
+ $this->pageName += 1;
+
+ return $pageName;
+ }
+
+ /**
+ * ¥Ú¡¼¥¸ID¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @return int ¥Ú¡¼¥¸ID
+ */
+ public function getPageID($pageName)
+ {
+ return $this->request->getParameter($pageName, 1);
+ }
+}
+?>
--- /dev/null
+<?php
+require_once(MO_PEAR_DIR . '/Config.php');
+require_once(MO_PEAR_DIR . '/HTML/menu.php');
+require_once(MO_PEAR_DIR . '/HTML/Menu/DirectRenderer.php');
+ini_set("display_errors", 0);
+ini_set("error_reporting", false);
+require_once(MO_PEAR_DIR . '/HTML/QuickForm/Renderer/ArraySmarty.php');
+require_once(MO_PEAR_DIR . '/Pager/Pager.php');
+ini_restore("error_reporting");
+ini_restore("display_errors");
+
+/**
+ * View¤Î³ÈÄ¥¥¯¥é¥¹
+ * @access public
+ * @package webapp/lib
+ * @category view
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+abstract class ViewEx extends SmartyView
+{
+ /**
+ * Controller¥ª¥Ö¥¸¥§¥¯¥È
+ * @var Controller
+ */
+ protected $controller = '';
+
+ /**
+ * Request¥ª¥Ö¥¸¥§¥¯¥È
+ * @var Request
+ */
+ protected $request = '';
+
+ /* user¥ª¥Ö¥¸¥§¥¯¥È */
+ private $user = '';
+
+ /* HTML_QuickForm¤ÎSmarty¥ì¥ó¥À¥é */
+ private $quickformSmarty = '';
+
+ /* ¥á¥Ã¥»¡¼¥¸¥Ç¡¼¥¿ */
+ private $messages = '';
+
+ /* ¥Ú¡¼¥¸Ì¾ */
+ private $pageName = 'page1';
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥â¥¸¥å¡¼¥ë̾ */
+ private $moduleName = '';
+
+ /* ²èÌÌÁ«°ÜÀè¤Î¥¢¥¯¥·¥ç¥ó̾ */
+ private $actionName = '';
+
+ /* TODO ¥¹¥¿¥¤¥ë¥·¡¼¥È */
+ var $css_file_array = array();
+ /* TODO JavaScript */
+ var $js_file_array = array();
+
+ /**
+ * ½é´ü½èÍý
+ * @access public
+ * @param Object $contextt context
+ * @return boolean ½èÍý·ë²Ì
+ */
+ public function initialize ($context)
+ {
+ parent::initialize($context);
+
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ $this->controller = $context->getController();
+ $this->request = $context->getRequest();
+ $this->user = $context->getUser();
+
+ $this->moduleName = $context->getModuleName();
+ $this->actionName = $context->getActionName();
+ $this->messages = &CommonMessages::getInstance();
+
+ /* ¥Õ¥©¡¼¥àÅÐÏ¿¥ê¥¹¥È¤Î¥Õ¥©¡¼¥à¤òsmarty¤Ë¤¹¤Ù¤Æ¥»¥Ã¥È¤¹¤ë */
+ $o_smarty = &$this->getEngine();
+ $o_smarty->register_object("style", $this, array("request", "checkErrorElement"));
+ $this->quickformSmarty =
+ new HTML_QuickForm_Renderer_ArraySmarty($this->getEngine());
+ $formList = $this->request->getAttribute('formList');
+ foreach ($formList as $formName) {
+ $this->setForm($formName);
+ }
+
+ /* ¥á¥Ã¥»¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ if ($this->request->hasAttribute('messages')) {
+ $messages = &$this->request->getAttribute('messages');
+ $messages = array_unique($messages);
+ $this->setAttributeByRef('messages', $messages);
+ }
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ if ($this->request->hasErrors()) {
+ $errors = &$this->request->getErrors();
+ $errors = array_unique($errors);
+ $this->setAttributeByRef('errors', $errors);
+ }
+
+
+ // ¶¦Ä̤ΠCSS ¤ò¥»¥Ã¥È
+ array_push($this->css_file_array, ACS_SELECTION_CSS_DIR . 'default.css');
+ $this->setAttribute('include_css_array', $this->css_file_array);
+
+ // ¶¦Ä̤ΠJS ¤ò¥»¥Ã¥È
+ array_push($this->js_file_array, ACS_JS_DIR . 'swap.js');
+ $this->setAttribute('include_script_array', $this->js_file_array);
+
+ return true;
+ }
+
+ /**
+ * ²èÌÌID¤ò¥»¥Ã¥È¤¹¤ë
+ * ²èÌÌID¤ËɳÉÕ¤¯²èÌÌ¥¿¥¤¥È¥ë¤È¥â¥¸¥å¡¼¥ë̾¤È¥¢¥¯¥·¥ç¥ó̾¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë
+ * @access public
+ * @param string $id ²èÌÌID
+ */
+ public function setScreenId($id)
+ {
+ /* Decorator¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë */
+ $this->setDecoratorDirectory(MO_TEMPLATE_DIR);
+ $this->setDecoratorTemplate(MO_TEMPLATE_FILE);
+
+ // ¥¹¥¯¥ê¡¼¥ó¥¿¥¤¥È¥ë¤ò¼èÆÀ¤¹¤ë
+ $title = '';
+ $screenName = '';
+ $screenNameList = MO_CONFIG_DIR . '/' . S4_SCREEN_NAME_LIST;
+ $moduleName = '';
+ $actionName = '';
+ if (file_exists($screenNameList)) {
+ $config = new Config();
+ $container = $config->parseConfig($screenNameList, 'inifile');
+ $child=$container->searchPath(array('ScreenName'));
+ $screenList = $child->toArray();
+ if (isset($screenList['ScreenName'][$id])) {
+ list ($screenName, $moduleName, $actionName) = explode(',', $screenList['ScreenName'][$id]);
+ }
+ // ¥¿¥¤¥È¥ë¥Ð¡¼¤Ë²èÌÌ¥¿¥¤¥È¥ë¤ò¥»¥Ã¥È¤¹¤ë
+ $title = $screenName;
+ }
+
+ // ²èÌÌ¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë
+ $this->setAttribute('title', $title);
+ $this->setAttribute('screen_name', $screenName);
+ }
+
+ /**
+ * ¥Õ¥©¡¼¥à¤òÅÐÏ¿¤¹¤ë
+ * @access public
+ * @param String $formName ¥Õ¥©¡¼¥à̾
+ * @param Object $form ¥Õ¥©¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ public function setForm($formName = '', $form = null)
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($form)) {
+ $form = &$this->request->getAttribute($formName);
+ if (empty($form)) {
+ throw new ApplicationException('Not found form is "' . $formName . '."');
+ }
+ }
+
+ /* ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë */
+ if ($this->request->hasErrors()) {
+ $errorNames = &$this->request->getErrorNames();
+ $errorNames = array_unique($errorNames);
+ foreach ($errorNames as $name) {
+ if ($form->elementExists($name)) {
+ $element = &$form->getElement($name);
+ $this->_setErrorAttribute($element);
+ }
+ }
+ }
+
+ /* ¥Õ¥©¡¼¥à¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $form->accept($this->quickformSmarty);
+ $this->setAttribute($formName, $this->quickformSmarty->toArray());
+ }
+
+ /**
+ * ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë
+ * ¡ÊQuickForm¤Î¹àÌܤËÂФ·¤Æ¡¢ÇØ·Ê¿§¤òÀßÄꤹ¤ë¡Ë
+ * @access public
+ * @param HTML_QuickForm_element $element ¥¨¥é¡¼¹àÌÜ
+ */
+ private function _setErrorAttribute(&$element)
+ {
+ if ('group' == $element->getType()) {
+ $elements = $element->getElements();
+ foreach ($elements as $value) {
+ $this->_setErrorAttribute($value);
+ }
+ } else {
+ $attr = $element->getAttributes();
+ $attr['style'] = S4_ERROR_COLUMN_COLOR;
+ $element->setAttributes($attr);
+ }
+ }
+
+ /**
+ * ¥¨¥é¡¼¹àÌܤòȽÃǤ·¡¢HTML¤Îstyle¥×¥í¥Ñ¥Æ¥£¤òÊֵѤ¹¤ë
+ * Smarty¤«¤é¥³¡¼¥ë¤µ¤ì¤ëfunction¤Î¤¿¤á¡¢$params¤Ë¤Ï¡¢Ï¢ÁÛÇÛÎó·Á¼°¤Ç
+ * $params['name']¤Ë¥Á¥§¥Ã¥¯¤¹¤ë¹àÌÜ̾¤ò¥»¥Ã¥È¤¹¤ë
+ * ¢¨setErrorMesseage¤ÎÂèÆó°ú¿ô¤È¡¢HTML¤Îname¤ò°ìÃפµ¤»¤ë¤³¤È
+ * @param array $params Smarty¥Ñ¥é¥á¡¼¥¿
+ * @param Smarty &$o_smarty Smarty¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ public function checkErrorElement($params, &$o_smarty)
+ {
+ $retVal = '';
+
+ /* ¥¨¥é¡¼¹àÌܤÎÇØ·Ê¿§¤òÀßÄꤹ¤ë */
+ if ($this->request->hasError($params['name'])) {
+ $retVal = sprintf('style="%s"', S4_ERROR_COLUMN_COLOR);
+ }
+
+ return $retVal;
+ }
+
+ /**
+ * ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë
+ * ¥Ñ¥é¥á¡¼¥¿¤ò°ú¤ÅϤ¹¤È¡¢¥á¥Ã¥»¡¼¥¸¤Î%s¤Ë¥Ñ¥é¥á¡¼¥¿¤ò¥»¥Ã¥È¤·ÊֵѤ·¤Þ¤¹¡£
+ * @access public
+ * @param string $id ¥á¥Ã¥»¡¼¥¸ID
+ * @param object $args ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸¤Î¥Ñ¥é¥á¡¼¥¿(ÇÛÎó¤Þ¤¿¤Ï¡¢ÊÑ¿ô)
+ * @return string ¶¦ÄÌ¥á¥Ã¥»¡¼¥¸
+ */
+ public function getMessage($id, $args = null)
+ {
+ /* ¥á¥Ã¥»¡¼¥¸¼èÆÀ */
+ $msg = $this->messages->getParameter($id);
+ if (empty($msg)) {
+ throw new ApplicationException("Not found message! id=$id");
+ }
+
+ /* ¥Ñ¥é¥á¡¼¥¿¥»¥Ã¥È */
+ if (is_array($args)) {
+ $msg = vsprintf($msg, $args);
+ } else {
+ $msg = sprintf($msg, $args);
+ }
+
+ return $msg;
+ }
+
+ /**
+ * ¥Ú¡¼¥¸¥Ç¡¼¥¿(1¥Ú¡¼¥¸Ê¬)¤ò¥»¥Ã¥È¤¹¤ë
+ * ¡¦¥Ú¡¼¥¸¥Ç¡¼¥¿(1¥Ú¡¼¥¸Ê¬)¤ò¼õ¤±¼è¤ê¡¢smarty¤Ëpager¤È¥Ú¡¼¥¸¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¤Ê¤ª¡¢¥Ú¡¼¥¸¥ó¥°¤ÎºÝ¤Î²èÌÌÁ«°ÜÀè¤Ï¡¢°ú¿ô¤Ç»ØÄꤵ¤ì¤¿¥¢¥¯¥·¥ç¥ó¤Ç¤¢¤ë¡£
+ * ¡¦¥¢¥¯¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢²èÌÌID¤ËɳÉÕ¤¯¥¢¥¯¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È¤È¤Ê¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$extraVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤¿¤¯¤Ê¤¤¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$excludeVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * @access public
+ * @param array $itemData ¥Ú¡¼¥¸¥ó¥°¤Î¥¢¥¤¥Æ¥àÇÛÎó¥Ç¡¼¥¿
+ * @param int $totalItems Á´¥Ú¡¼¥¸¤Î¥¢¥¤¥Æ¥à¹ç·×
+ * @param int $perPage ¥Ú¡¼¥¸¤¢¤¿¤ê¤Î¥¢¥¤¥Æ¥à¿ô
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @param string $moduleName ¥â¥¸¥å¡¼¥ë̾
+ * @param string $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param array $extraVars Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌÜ(¥«¥é¥à̾)
+ * @param array $excludeVars Pager¤ËÊÝ»ý¤µ¤»¤Ê¤¤¹àÌÜ(¥«¥é¥à̾)
+ */
+ public function setPageTotalItems($itemData = null, $perPage = 30, $totalItems = null, $pageName = null,
+ $moduleName = null, $actionName = null, $extraVars = array(), $excludeVars = array())
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($pageName)) {
+ $pageName = $this->getPageName();
+ }
+ if (empty($moduleName)) {
+ $moduleName = $this->moduleName;
+ }
+ if (empty($actionName)) {
+ $actionName = $this->actionName;
+ }
+ if (empty($perPage)) {
+ $perPage = 30;
+ }
+ /* ²èÌÌÁ«°ÜÀè¤ò¼èÆÀ¤¹¤ë */
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $url = $this->controller->genURL(null, $parameters);
+
+ /* ¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë */
+ $params = array("totalItems" => $totalItems,
+ "perPage" => $perPage,
+ "mode" => "Jumping",
+ "httpMethod" => "POST",
+ "urlVar" => $pageName,
+ "fixFileName" => false,
+ "path" => "",
+ "fileName" => $url,
+ "prevImg" => '<<',
+ "nextImg" => '>>',
+ "altFirst" => "ºÇ½é¥Ú¡¼¥¸",
+ "altPrev" => "Á°¥Ú¡¼¥¸",
+ "altNext" => "¼¡¥Ú¡¼¥¸",
+ "altLast" => "ºÇ½ª¥Ú¡¼¥¸",
+ "firstPagePre" => "{",
+ "firstPageText" => "ºÇ½é",
+ "firstPagePost" => "}",
+ "lastPagePre" => "{",
+ "lastPageText" => "ºÇ½ª",
+ "lastPagePost" => "}",
+ "extraVars" => $extraVars,
+ "excludeVars" => $excludeVars);
+ $pager = Pager::factory($params);
+
+ /* ¥Ú¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $this->setAttribute($pageName, $pager);
+ if (count($itemData) > 0) {
+ $this->setAttribute($pageName . '_data', $itemData);
+ } else {
+ $this->setAttribute($pageName . '_data', $this->getMessage("MC-006"));
+ }
+ }
+
+ /**
+ * ¥Ú¡¼¥¸¥Ç¡¼¥¿(Á´¤Æ¤Î¥Ú¡¼¥¸)¤ò¥»¥Ã¥È¤¹¤ë
+ * ¡¦¥Ú¡¼¥¸¥Ç¡¼¥¿(Á´¤Æ¤Î¥Ú¡¼¥¸)¤ò¼õ¤±¼è¤ê¡¢smarty¤Ëpager¤È¥Ú¡¼¥¸¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¤Ê¤ª¡¢¥Ú¡¼¥¸¥ó¥°¤ÎºÝ¤Î²èÌÌÁ«°ÜÀè¤Ï¡¢°ú¿ô¤Ç»ØÄꤵ¤ì¤¿¥¢¥¯¥·¥ç¥ó¤Ç¤¢¤ë¡£
+ * ¡¦¥¢¥¯¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢²èÌÌID¤ËɳÉÕ¤¯¥¢¥¯¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È¤È¤Ê¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$extraVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦Pager¤ËÊÝ»ý¤µ¤»¤¿¤¯¤Ê¤¤¹àÌܤ¬¤¢¤ë¾ì¹ç¤Ï¡¢$excludeVars¤Ë¥«¥é¥à̾¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * @access public
+ * @param array $itemData ¥Ú¡¼¥¸¥ó¥°¤Î¥¢¥¤¥Æ¥àÇÛÎó¥Ç¡¼¥¿
+ * @param int $perPage ¥Ú¡¼¥¸¤¢¤¿¤ê¤Î¥¢¥¤¥Æ¥à¿ô
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @param string $moduleName ¥â¥¸¥å¡¼¥ë̾
+ * @param string $actionName ¥¢¥¯¥·¥ç¥ó̾
+ * @param array $extraVars Pager¤ËÊÝ»ý¤µ¤»¤ë¹àÌÜ(¥«¥é¥à̾)
+ * @param array $excludeVars Pager¤ËÊÝ»ý¤µ¤»¤Ê¤¤¹àÌÜ(¥«¥é¥à̾)
+ */
+ public function setPageItemData($itemData = null, $perPage = 30, $pageName = null,
+ $moduleName = null, $actionName = null, $extraVars = array(), $excludeVars = array())
+ {
+ /* ½é´üÃͤò¥»¥Ã¥È¤¹¤ë */
+ if (empty($pageName)) {
+ $pageName = $this->getPageName();
+ }
+ if (empty($moduleName)) {
+ $moduleName = $this->moduleName;
+ }
+ if (empty($actionName)) {
+ $actionName = $this->actionName;
+ }
+ if (empty($perPage)) {
+ $perPage = 30;
+ }
+
+ /* ²èÌÌÁ«°ÜÀè¤òÀßÄꤹ¤ë */
+ $parameters['module'] = $moduleName;
+ $parameters['action'] = $actionName;
+
+ $url = $this->controller->genURL(null, $parameters);
+
+ /* ¥Ú¡¼¥¸¤òÀ¸À®¤¹¤ë */
+ $params = array ("itemData" => $itemData,
+ "perPage" => $perPage,
+ "mode" => "Jumping",
+ "httpMethod" => "POST",
+ "urlVar" => $pageName,
+ "fixFileName" => false,
+ "path" => "",
+ "fileName" => $url,
+ "prevImg" => '<<',
+ "nextImg" => '>>',
+ "altFirst" => "ºÇ½é¥Ú¡¼¥¸",
+ "altPrev" => "Á°¥Ú¡¼¥¸",
+ "altNext" => "¼¡¥Ú¡¼¥¸",
+ "altLast" => "ºÇ½ª¥Ú¡¼¥¸",
+ "firstPagePre" => "{",
+ "firstPageText" => "ºÇ½é",
+ "firstPagePost" => "}",
+ "lastPagePre" => "{",
+ "lastPageText" => "ºÇ½ª",
+ "lastPagePost" => "}",
+ "extraVars" => $extraVars,
+ "excludeVars" => $excludeVars);
+ $pager = Pager::factory($params);
+
+ /* ¥Ú¡¼¥¸¤òsmarty¤Ë¥»¥Ã¥È¤¹¤ë */
+ $pageData = array();
+ foreach ($pager->getPageData() as $lineData) {
+ $pageData[] = $lineData;
+ }
+ $this->setAttribute($pageName, $pager);
+ if (count($pageData) > 0) {
+ $this->setAttribute($pageName . '_data', $pageData);
+ } else {
+ $this->setAttribute($pageName . '_data', $this->getMessage("MC-006"));
+ }
+ }
+
+ /**
+ * ¥Ú¡¼¥¸Ì¾¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @return string ¥Ú¡¼¥¸Ì¾
+ */
+ public function getPageName()
+ {
+ $pageName = $this->pageName;
+ $this->pageName += 1;
+
+ return $pageName;
+ }
+
+ /**
+ * ¥Ú¡¼¥¸ID¤ò¼èÆÀ¤¹¤ë
+ * @access public
+ * @param string $pageName ¥Ú¡¼¥¸Ì¾
+ * @return int ¥Ú¡¼¥¸ID
+ */
+ public function getPageID($pageName)
+ {
+ return $this->request->getParameter($pageName, 1);
+ }
+
+
+ /**
+ * CSS ¥Õ¥¡¥¤¥ë¤ò¥»¥Ã¥È¤¹¤ë
+ *
+ * @param $css_file_name
+ */
+ function setCSSFile ($css_file_name) {
+ array_push($this->css_file_array, ACS_CSS_DIR . $css_file_name);
+ }
+
+ /**
+ * ¥Ç¥¶¥¤¥óÁªÂòÍÑ CSS ¥Õ¥¡¥¤¥ë¤ò¥»¥Ã¥È¤¹¤ë
+ *
+ * @param $css_file_name
+ */
+ function setSelectionCSSFile ($css_file_name) {
+ array_push($this->css_file_array, ACS_SELECTION_CSS_DIR . $css_file_name);
+ }
+
+ /**
+ * CSS ¥Õ¥¡¥¤¥ë¤ò¥ê¥»¥Ã¥È¤¹¤ë
+ *
+ * @param $css_file_name
+ */
+ function clearCSSFile () {
+ $this->css_file_array = array();
+ }
+
+ /**
+ * JS ¥Õ¥¡¥¤¥ë¤ò¥»¥Ã¥È¤¹¤ë
+ *
+ * @param $css_file_name
+ */
+ function setJSFile ($js_file_name) {
+ array_push($this->js_file_array, ACS_JS_DIR . $js_file_name);
+ }
+}
+?>
--- /dev/null
+<?php
+
+// ¥Ç¡¼¥¿¥½¡¼¥¹Ì¾
+define('ACS_DSN', 'pgsql://postgres:postgres@localhost:5432+unix/acsdb');
+
+// logging ¤ÎÀßÄê
+define('ACS_LOG_PRIORITY', LEVEL_WARN);
+define('ACS_LOG_EXIT_PRIORITY', LEVEL_FATAL);
+
+// ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Î¥æ¡¼¥¶ID
+define('ACS_ADMINISTRATOR_USER_ID', 'admin');
+
+// °ìÈÌ¥¢¥¯¥»¥¹¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+define('ACS_PUBLIC_USER_COMMUNITY_ID', '0');
+
+// °ìÈÌ¥¢¥¯¥»¥¹¤Î¥æ¡¼¥¶Ì¾
+define('ACS_PUBLIC_USER_NAME', '¥²¥¹¥È');
+
+// ¸À¸ì¤ÎÀßÄê
+// ¥á¡¼¥ë¸À¸ì¤Î¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥×¥³¡¼¥É
+define('ACS_MAIL_LANG_CONTENTS_TYPE_CODE', '51');
+
+// ¥Ç¥Õ¥©¥ë¥È¸À¸ì
+define('ACS_DEFAULT_LANG', 'ja');
+
+// ÀÚÂظÀ¸ì
+define('ACS_LANG_LIST', 'ja:Japanese,en:English');
+
+// ³°Éô¥·¥¹¥Æ¥à
+// LDAP¤Î»ÅÍÍ(0:ÉÔ»ÈÍÑ,1:»ÈÍÑ)
+define('USE_LDAP_SYSTEM', '0');
+
+/*----- ¥Ç¥£¥ì¥¯¥È¥ê -----*/
+
+// ¥¹¥¯¥ê¥×¥È¥Ñ¥¹
+define('SCRIPT_PATH', 'index.php');
+
+// ´ðËܥǥ£¥ì¥¯¥È¥ê
+define('BASE_DIR', dirname(__FILE__) . '/');
+
+// ¶¦Ḁ̈ƥó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë
+define('MO_TEMPLATE_FILE', 'acs_base.tpl.php');
+
+// ¾®²èÌ̶¦Ḁ̈ƥó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë
+define('MO_SIMPLE_TEMPLATE_FILE', 'acs_simple_base.tpl.php');
+
+// ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
+define('ACS_PASSWD_FILE', '../../etc/.htpasswd');
+
+// ¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_FOLDER_DIR', '../../files/');
+
+// ºï½ü¤·¤¿¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_TRASH_FOLDER_DIR', ACS_FOLDER_DIR . 'trash/');
+
+// ²¾ÃÖ¤¤·¤¿¥³¥ß¥å¥Ë¥Æ¥£¤Î·Ç¼¨ÈIJèÁü¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_TEMPORARY_FILE_DIR', ACS_FOLDER_DIR . 'temporary/');
+
+// ACS³Æ¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_CLASS_DIR', '../../webapp/lib/class/');
+
+// ACS Validators ¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_VALIDATORS_DIR', '../../webapp/lib/mojavi/validators/');
+
+// ACS³Æ¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_LIB_TEMPLATE_DIR', '../../webapp/lib/template/');
+
+// ACS¶¦Ḁ̈ƥó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_TEMPLATE_DIR', '../../webapp/templates/');
+
+// ACS¥á¥Ã¥»¡¼¥¸ÄêµÁ¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_LIB_MESSAGE_DIR', '../../webapp/lib/message/');
+
+// ACSmojavi¥Õ¥£¥ë¥¿¡¼¥¯¥é¥¹¥Õ¥¡¥¤¥ë(ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_LIB_FILTERS_DIR', '../../webapp/lib/filters/');
+
+// ACSÀÅŪHTML¥Õ¥¡¥¤¥ë¥Ç¡¼¥¿¤Î¥Ç¥£¥ì¥¯¥È¥ê (ÁêÂХѥ¹) (¥¹¥é¥Ã¥·¥å¤ÇÊĤ¸¤ë)
+define('ACS_PAGES_DIR', '../../webapp/pages/');
+
+// ²èÁü¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_IMAGE_DIR', './img/');
+
+// CSS¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_CSS_DIR', './css/');
+
+// JS¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_JS_DIR', './js/');
+
+// ¶¦ÄÌJS¥Õ¥¡¥¤¥ë
+define('ACS_COMMON_JS', 'swap.js');
+
+// ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_CONTENTS_BACKUP_DIR', ACS_FOLDER_DIR . 'contents_backup/');
+
+// ¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥óÁªÂòCSS¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê
+define('ACS_SELECTION_CSS_DIR', ACS_CSS_DIR . 'selection/');
+
+// ¥Ç¥Õ¥©¥ë¥È¤Î¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥óCSS¥Õ¥¡¥¤¥ë
+define('ACS_DEFAULT_SELECTION_CSS_FILE', 'default.css');
+
+// ¥Ç¥Õ¥©¥ë¥È¤Î¥æ¡¼¥¶²èÁü¥Õ¥¡¥¤¥ë
+define('ACS_DEFAULT_USER_IMAGE_FILE', ACS_IMAGE_DIR . 'people.png');
+define('ACS_DEFAULT_USER_IMAGE_FILE_THUMB', ACS_IMAGE_DIR . 'people.thumb.png');
+
+// ¥Ç¥Õ¥©¥ë¥È¤Î¥³¥ß¥å¥Ë¥Æ¥£²èÁü¥Õ¥¡¥¤¥ë
+define('ACS_DEFAULT_COMMUNITY_IMAGE_FILE', ACS_IMAGE_DIR . 'community.png');
+define('ACS_DEFAULT_COMMUNITY_IMAGE_FILE_THUMB', ACS_IMAGE_DIR . 'community.thumb.png');
+
+// ¥³¥ß¥å¥Ë¥Æ¥£ML´ØÏ¢
+// ¥á¡¼¥ë¥¢¥É¥ì¥¹¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤È¥µ¥Õ¥£¥Ã¥¯¥¹
+define('ACS_COMMUNITY_ML_ADDR_PREFIX', 'acs-');
+define('ACS_COMMUNITY_ML_ADDR_SUFFIX', '@xxx.yyy.zz.jp');
+
+// ¥á¡¼¥ë¥¢¥É¥ì¥¹£Î£Ç̾(¥«¥ó¥Þ¶èÀÚ¤ê,¾®Ê¸»ú¤Ç)
+define('ACS_COMMUNITY_ML_ADDR_NGNAMES', 'admin,administrator,root,system,mail');
+
+// ·ï̾¥×¥ì¥Õ¥£¥Ã¥¯¥¹¥Õ¥©¡¼¥Þ¥Ã¥È({BBSID}->bbs_id¤ÇÃÖ´¹)
+define('ACS_COMMUNITY_ML_SUBJECT_FORMAT', '(ACS) [bbs_id:{BBSID}] ');
+
+// ·ï̾Re:ºï½üRegex
+define('ACS_COMMUNITY_ML_SUBJECT_PREFIX_CLEAR_REGEX', '^[ ]*([R|r][E|e][0-9]*[:][ ]*)+');
+
+// ¥È¥Ã¥×¥Ú¡¼¥¸ÀÅŪHTML´ØÏ¢
+// ÀÅŪ¥Ú¡¼¥¸¥Õ¥¡¥¤¥ë¤Î͸ú»þ´ÖÈÏ°Ï(ÉÃ)
+// ¢¨»ØÄêÉðÊÆâ¤ËºîÀ®¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î¤ß¤ò͸ú¤È¤¹¤ë
+define('ACS_PAGES_EFFECTIVE_SEC', 4000);\r
+
+// ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×ÍÑ°µ½Ì¥³¥Þ¥ó¥É
+define('ACS_BACKUP_COMMAND_ORDER', '/usr/bin/zip -r -j');
+
+// ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥©¥ë¥À̾(¥Þ¥¤¥Õ¥©¥ë¥À,¥Þ¥¤¥À¥¤¥¢¥ê¡¼)
+define('ACS_BACKUP_ZIP_DIR_NAME', 'Backup' );
+define('ACS_BACKUP_MYFOLDER_SUBDIR_NAME', 'Folder' );
+define('ACS_BACKUP_MYDIARY_SUBDIR_NAME', 'Diary' );
+
+// ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¡¦¥Õ¥©¥ë¥À̾¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+define('ACS_BACKUP_NAME_ENCODING', 'SJIS-win');
+
+/*----------------------------------------------------*/
+
+/**
+ * The action to be executed when an authenticated user makes a request for
+ * an action for which they do not possess the privilege.
+ */
+define('SECURE_MODULE', 'Common');
+define('SECURE_ACTION', 'GlobalSecure');
+
+/**
+ * The parameter name used to specify a module.
+ */
+define('MODULE_ACCESSOR', 'module');
+
+/**
+ * The parameter name used to specify an action.
+ */
+define('ACTION_ACCESSOR', 'action');
+
+// Debug Mode
+define('ACS_DEBUG_MODE', 1);
+
+// ExecutionTimeFilter (0...none,1...run)
+define('ACS_EXEC_TIMER', 1);
+
+// Default Module & Action
+define('DEFAULT_MODULE', 'User');
+define('DEFAULT_ACTION', 'Index');
+
+
+?>
--- /dev/null
+<?
+class calendar {
+
+ var $wfrom;
+ var $beforeandafterday;
+
+ var $link = array();
+ var $style = array();
+
+ var $kind;
+ var $bgcolor;
+ var $week;
+ var $holiday;
+ var $holiday_name;
+
+ var $move_arrow;
+ var $str_url;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param int $arg1
+ * @param int $arg2
+ * @return void
+ */
+ function calendar($arg1 = 0, $arg2 = 0) {
+
+ // ³«»ÏÍËÆü¡Ê0-ÆüÍË, 6-ÅÚÍË¡Ë
+ $this->wfrom = $arg1;
+
+ // Åö·î°Ê³°¤ÎÆüÉÕ¤òɽ¼¨¤¹¤ë¤«¤É¤¦¤«¡Ê0-ɽ¼¨¤·¤Ê¤¤ 1-ɽ¼¨¤¹¤ë¡Ë
+ $this->beforeandafterday = $arg2;
+
+ // --- °Ê²¼¡¢É½¼¨ÀßÄê ---
+ // ¥¹¥¿¥¤¥ë¤ÎÀßÄê
+ $this->style["table"] = " class=\"calendar\"";
+ $this->style["th"] = "";
+ $this->style["tr"] = "";
+ $this->style["td"] = "";
+ $this->style["tf"] = " class=\"tf\"";
+
+ // ÍËÆü¤ËÂФ¹¤ëÇØ·Ê¿§¤ÎÀßÄê¡Ê0-Ê¿Æü, 1-ÅÚ, 2-Æü½ËÆü, 3-Åö·î°Ê³°¤ÎÊ¿Æü, 4-ÅöÆü¡Ë
+ $this->kind = array(2, 0, 0, 0, 0, 0, 1);
+ $this->bgcolor = array("#eeeeee", "#ccffff", "#ffcccc", "#ffffff", "#ffffcc");
+
+ // ÍËÆü¤Î̾Á°
+ $this->week = array(ACSMsg::get_mdmsg(__FILE__,'M001'), ACSMsg::get_mdmsg(__FILE__,'M002'), ACSMsg::get_mdmsg(__FILE__,'M003'), ACSMsg::get_mdmsg(__FILE__,'M004'), ACSMsg::get_mdmsg(__FILE__,'M005'), ACSMsg::get_mdmsg(__FILE__,'M006'), ACSMsg::get_mdmsg(__FILE__,'M007'));
+
+ }
+
+ /**
+ * ÀßÄꤵ¤ì¤¿ÆâÍƤǥ«¥ì¥ó¥À¡¼¤òɽ¼¨¤·¤Þ¤¹
+ *
+ * @param int $year
+ * @param int $month
+ * @param int $day
+ */
+ function show_calendar($year, $month, $day = 0) {
+ // µÙÆü¤Î»»½Ð
+ if(!isset($this->set_holiday)) $this->set_holiday($year, $month);
+
+ // ¤½¤Î·î¤Î³«»Ï¤È¤¹¤ë¿ôÃͤò¼èÆÀ
+ $from = 1;
+ while(date("w", mktime(0, 0, 0, $month, $from, $year)) <> $this->wfrom) {
+ $from--;
+ }
+
+ // Á°·î¤È¼¡·î¤Îǯ·î¤ò¼èÆÀ
+ list($ny, $nm, $nj) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month+1, 1, $year)));
+ list($by, $bm, $bj) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month-1, 1, $year)));
+
+ // ÅöÆü¼èÆÀ
+ $date_array = getdate();
+
+ // º£·î·×»»
+ $curr_year = $date_array['year'];
+ $curr_month = $date_array['mon'];
+ // Á°·î·×»»
+ $prev_year = $year;
+ $prev_month = $month - 1;
+ if ($prev_month < 1) {
+ $prev_month = 12;
+ $prev_year = $year - 1;
+ if ($prev_year < 1) {
+ $prev_year = 1;
+ $prev_month = 1;
+ }
+ }
+ // ¼¡·î·×»»
+ $next_year = $year;
+ $next_month = $month + 1;
+ if ($next_month > 12) {
+ $next_month = 1;
+ $next_year = $year + 1;
+ }
+
+ $strCal = "";
+ // ɽ¼¨³«»Ï
+ $strCal = "<table>\n";
+ $strCal = $strCal . "<tr>\n";
+ $strCal = $strCal . "<th".$this->style["th"]." colspan=\"7\">\n";
+ // Á°·î¤Ø
+ $strCal = $strCal . "<a href=\"" . $this->str_url . "&year=$prev_year&month=$prev_month\">"
+ . ACSMsg::get_msg('lib','calendar.class.php','M030') . "</a>\n";
+ // ɽ¼¨·î
+ //$strCal = $strCal . " " . $year . "ǯ" . $month . "·î \n";
+ $strCal = $strCal . " " . ACSMsg::get_tag_replace(ACSMsg::get_msg('lib','calendar.class.php','YEAR_MONTH'),
+ array("{YEAR}" => $year, "{MONTH}" => $month));
+
+ // ¼¡·î¤Ø
+ $strCal = $strCal . "<a href=\"" . $this->str_url . "&year=$next_year&month=$next_month\">"
+ . ACSMsg::get_msg('lib','calendar.class.php','M031') . "</a>\n";
+
+ $strCal = $strCal . "</th>\n";
+ $strCal = $strCal . "</tr>\n";
+
+ // ÍËÆüɽ¼¨
+ $strCal = $strCal . "<tr".$this->style["tr"]." style=\"text-align:center\">\n";
+ for($i = 0; $i < 7; $i++) {
+ $wk = ($this->wfrom + $i) % 7;
+ $strCal = $strCal . "<td".$this->style["td"]." bgcolor=\"".$this->bgcolor[$this->kind[$wk]]."\">".$this->week[$wk]."</td>\n";
+ }
+ $strCal = $strCal . "</tr>\n";
+
+
+ // $day¤¬¤½¤Î·î¤ÎÆü¿ô¤òĶ¤¨¤ë¤Þ¤Ç¥ë¡¼¥×
+ $tday = $from;
+ $mday = ACSLib::get_end_day($year, $month);
+ while($tday <= $mday) {
+ $strCal = $strCal . "<tr".$this->style["tr"]." style=\"text-align:right\">\n";
+
+ for($i = 0; $i < 7; $i++) {
+ $fstyle = "";
+ $wk = ($this->wfrom + $i) % 7;
+ $bgcolor = $this->bgcolor[$this->kind[$wk]];
+
+ // Åö·îȽÄê
+ if($tday >= 1 && $tday <= $mday) {
+ if($date_array["year"] == $year && $date_array["mon"] == $month && $date_array["mday"] == $tday) {
+ // ÅöÆü
+ $bgcolor = $this->bgcolor[4];
+ } else if($this->holiday[$tday] == 1) {
+ // ½ËÆü
+ $bgcolor = $this->bgcolor[2];
+ }
+
+ // »ØÄêÆü
+ if($day == $tday) {
+ $fstyle = " style=\"font-weight:bold\"";
+ }
+ } else {
+ // Åö·î°Ê³°¤ÎÊ¿Æü
+ if($wk > 0 && $wk < 6) $bgcolor = $this->bgcolor[3];
+ }
+
+ $strCal = $strCal . "<td".$this->style["td"]." bgcolor=\"".$bgcolor."\"".$fstyle.">\n";
+ list($lyear, $lmonth, $lday) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month, $tday, $year)));
+
+ // ¥Ç¡¼¥¿Éôʬɽ¼¨
+ if(($tday >= 1 && $tday <= $mday) || $this->beforeandafterday) {
+ if(isset($this->link[$tday])) {
+ $strCal = $strCal . "<a href=\"".$this->link[$tday]["url"]."\" title=\"".$this->link[$tday]["title"]."\">".$lday."</a>";
+ } else {
+ $strCal = $strCal . $lday;
+ }
+ $strCal = $strCal . "</td>\n";
+ } else {
+ $strCal = $strCal . " ";
+ }
+
+ $tday++;
+ }
+
+ $strCal = $strCal . "</tr>\n";
+ }
+
+ $strCal = $strCal . "</table>\n";
+
+ // º£·î¤ØÌá¤ë¥ê¥ó¥¯
+ $strCal .= "<br>\n";
+ $strCal .= "<div><a href=\"$this->str_url\">".ACSMsg::get_mdmsg(__FILE__,'M010')."</a></div>\n";
+
+ return $strCal;
+ }
+
+ /**
+ * »ØÄꤵ¤ì¤¿Æü¤ËÂФ·¤Æ¥ê¥ó¥¯¤òÀßÄꤷ¤Þ¤¹¡£
+ *
+ * @param int $day
+ * @param string $url
+ * @param string $title
+ */
+ function set_link($day, $url, $title) {
+ $this->link[$day]["url"] = $url;
+ $this->link[$day]["title"] = $title;
+ }
+
+ /**
+ * ¸½ºßÀßÄꤵ¤ì¤Æ¤¤¤ë¥ê¥ó¥¯¤òÁ´¤Æ²ò½ü¤·¤Þ¤¹¡£
+ *
+ */
+ function clear_link() {
+ $this->link = array();
+ }
+
+ /**
+ * ¼¡·î¡¦Á°·î¤Î¥ê¥ó¥¯Àè¤ò¥»¥Ã¥È
+ */
+ function set_str_url($set_url) {
+ $this->str_url = $set_url;
+ }
+ /**
+ * µÙÆü¤Î·×»»¤ò¹Ô¤¤¤Þ¤¹¡£
+ * ¡ÊµÙÆü̾¤â¥»¥Ã¥È¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¸½ºß¤Ï½ÐÎϤ·¤Æ¤¤¤Þ¤»¤ó¡£¡Ë
+ *
+ * @param int $year
+ * @param int $month
+ */
+ function set_holiday($year, $month) {
+
+ // ¤½¤Î·î¤ÎºÇ½é¤Î·îÍËÆü¤¬²¿Æü¤«¤ò»»½Ð
+ $day = 1;
+ while(date("w",mktime(0 ,0 ,0 , $month, $day, $year)) <> 1 && checkdate($month, $day, $year)) {
+ $day++;
+ }
+
+ // ½ËÆü¤ò¥»¥Ã¥È
+ switch($month){
+
+ case 1:
+ // ¸µÃ¶
+ $this->holiday[1] = 1;
+ $this->holiday_name[1] = ACSMsg::get_mdmsg(__FILE__,'M011');
+
+ // À®¿Í¤ÎÆü
+ if($year < 2000) {
+ $this->holiday[15] = 1;
+ $this->holiday_name[15] = ACSMsg::get_mdmsg(__FILE__,'M012');
+ } else {
+ $this->holiday[$day+7] = 1;
+ $this->holiday_name[$day+7] = ACSMsg::get_mdmsg(__FILE__,'M012');
+ }
+ break;
+
+ case 2:
+ // ·ú¹ñµÇ°Æü
+ $this->holiday[11] = 1;
+ $this->holiday_name[11] = "·ú¹ñµÇ°Æü";
+ break;
+
+ case 3:
+ // ½Õʬ¤ÎÆü
+ if($year > 1979 && $year < 2100) {
+ $tmp = floor(20.8431+($year-1980)*0.242194-floor(($year-1980)/4));
+ $this->holiday[$tmp] = 1;
+ $this->holiday_name[$tmp] = ACSMsg::get_mdmsg(__FILE__,'M013');
+ }
+ break;
+
+ case 4:
+ // Å·¹ÄÃÂÀ¸Æü or ¤ß¤É¤ê¤ÎÆü
+ $this->holiday[29] = 1;
+ if($year < 1989) {
+ $this->holiday_name[29] = ACSMsg::get_mdmsg(__FILE__,'M014');
+ } else {
+ $this->holiday_name[29] = ACSMsg::get_mdmsg(__FILE__,'M015');
+ }
+ break;
+
+ case 5:
+ // ·ûË¡µÇ°Æü
+ $this->holiday[3] = 1;
+ $this->holiday_name[3] = ACSMsg::get_mdmsg(__FILE__,'M016');
+
+ // »Ò¤É¤â¤ÎÆü
+ $this->holiday[5] = 1;
+ $this->holiday_name[5] = ACSMsg::get_mdmsg(__FILE__,'M017');
+ break;
+
+ case 7:
+ // ³¤¤ÎÆü
+ if($year > 2002) {
+ $this->holiday[$day+14] = 1;
+ $this->holiday_name[$day+14] = ACSMsg::get_mdmsg(__FILE__,'M018');
+ } elseif($year > 1994) {
+ $this->holiday[21] = 1;
+ $this->holiday_name[21] = ACSMsg::get_mdmsg(__FILE__,'M018');
+ }
+ break;
+
+ case 9:
+ // ·ÉÏ·¤ÎÆü
+ if($year < 2003) {
+ $this->holiday[15] = 1;
+ $this->holiday_name[15] = ACSMsg::get_mdmsg(__FILE__,'M020');
+ } else {
+ $this->holiday[$day+14] = 1;
+ $this->holiday_name[$day+14] = ACSMsg::get_mdmsg(__FILE__,'M020');
+ }
+
+ // ½©Ê¬¤ÎÆü
+ if($year > 1979 && $year < 2100) {
+ $tmp = floor(23.2488+($year-1980)*0.242194-floor(($year-1980)/4));
+ $this->holiday[$tmp] = 1;
+ $this->holiday_name[$tmp] = ACSMsg::get_mdmsg(__FILE__,'M022');
+ }
+ break;
+
+ case 10;
+// Âΰé¤ÎÆü
+ if($year < 2000) {
+ $this->holiday[10] = 1;
+ $this->holiday_name[10] = ACSMsg::get_mdmsg(__FILE__,'M023');
+ } else {
+ $this->holiday[$day+7] = 1;
+ $this->holiday_name[$day+7] = ACSMsg::get_mdmsg(__FILE__,'M023');
+ }
+ break;
+
+ case 11:
+ // ʸ²½¤ÎÆü
+ $this->holiday[3] = 1;
+ $this->holiday_name[3] = ACSMsg::get_mdmsg(__FILE__,'M025');
+
+ // ¶ÐÏ«´¶¼Õ¤ÎÆü
+ $this->holiday[23] = 1;
+ $this->holiday_name[23] = ACSMsg::get_mdmsg(__FILE__,'M026');
+ break;
+
+ case 12:
+ // Å·¹ÄÃÂÀ¸Æü
+ if($year > 1988) {
+ $this->holiday[23] = 1;
+ $this->holiday_name[23] = ACSMsg::get_mdmsg(__FILE__,'M014');
+ }
+ break;
+ }
+
+ // ¹ṉ̃¤ÎµÙÆü¤ò¥»¥Ã¥È
+ if($year > 1985) {
+ for($i = 1;$i < ACSLib::get_end_day($year, $month);$i++) {
+ if(isset($this->holiday[$i]) && isset($this->holiday[$i+2])) {
+ $this->holiday[$i+1] = 1;
+ $this->holiday_name[$i+1] = ACSMsg::get_mdmsg(__FILE__,'M028');
+ $i = $i + 3;
+ }
+ }
+ }
+
+ // ¿¶¤êÂؤ¨µÙÆü¤ò¥»¥Ã¥È
+ $sday = $day - 1;
+ if($sday == 0) $sday = 7;
+ for($i = $sday;$i < ACSLib::get_end_day($year, $month);$i = $i + 7) {
+ if(isset($this->holiday[$i])) {
+ $this->holiday[$i+1] = 1;
+ $this->holiday_name[$i+1] = ACSMsg::get_mdmsg(__FILE__,'M029');
+ }
+ }
+ }
+}
+
+
+
+
+?>
--- /dev/null
+<?php
+// $Id: ACSAccessControl.class.php,v 1.17 2006/11/20 08:44:02 w-ota Exp $
+
+
+/*
+ * ¥¢¥¯¥»¥¹À©¸æ¥¯¥é¥¹
+ */
+class ACSAccessControl {
+
+ /**
+ * ¸ø³«ÈϰϤÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ̾
+ * @param ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ̾
+ * @return ÀßÄê²Äǽ¤Ê¸ø³«ÈϰϤÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_open_level_master_row_array($community_type_name, $contents_type_name) {
+ $community_type_name = pg_escape_string($community_type_name);
+ $contents_type_name = pg_escape_string($contents_type_name);
+
+ $sql = "SELECT open_level_list.open_level_code, open_level_master.open_level_name, open_level_list.is_default";
+ $sql .= " FROM open_level_list, open_level_master, community_type_master, contents_type_master";
+ $sql .= " WHERE open_level_list.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND open_level_list.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND community_type_master.community_type_name = '$community_type_name'";
+ $sql .= " AND contents_type_master.contents_type_name = '$contents_type_name'";
+ $sql .= " AND open_level_list.open_level_code = open_level_master.open_level_code";
+ $sql .= " ORDER BY open_level_list.display_order ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ // set true or false
+ foreach ($row_array as $index => $row) {
+ if ($row['is_default'] == 't') {
+ $row_array[$index]['is_default'] = true;
+ } else {
+ $row_array[$index]['is_default'] = false;
+ }
+ }
+
+ return $row_array;
+ }
+
+ /**
+ * ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @return ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿¤ÎÇÛÎó
+ */
+ static function get_open_level_master_row($open_level_code) {
+ $open_level_code = pg_escape_string($open_level_code);
+
+ $sql = "SELECT *";
+ $sql .= " FROM open_level_master";
+ $sql .= " WHERE open_level_master.open_level_code = '$open_level_code'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥Ç¥Õ¥©¥ë¥È¤Îopen_level_code¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_type_code ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É
+ * @param $contents_type_code ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É
+ * @return $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ */
+ static function get_default_open_level_code($community_type_name, $contents_type_name) {
+ $community_type_name = pg_escape_string($community_type_name);
+ $contents_type_name = pg_escape_string($contents_type_name);
+
+ $sql = "SELECT open_level_list.open_level_code";
+ $sql .= " FROM open_level_list, community_type_master, contents_type_master";
+ $sql .= " WHERE open_level_list.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '$community_type_name'";
+ $sql .= " AND open_level_list.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND contents_type_master.contents_type_name = '$contents_type_name'";
+ $sql .= " AND open_level_list.is_default = 't'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Ú¡¼¥¸Æ⥳¥ó¥Æ¥ó¥Ä¤Î¥¢¥¯¥»¥¹»þ¤Ë¤ª¤±¤ërole_array¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $target_user_info_row ¥¢¥¯¥»¥¹ÂоݤΥ桼¥¶¾ðÊó
+ * @return role_array (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_user_community_role_array($acs_user_info_row, $target_user_info_row) {
+ $role_array = array('public' => false, 'user' => false, 'member' => false, 'administrator' => false, 'system_administrator' => false);
+
+ // (1) °ìÈ̥桼¥¶(³°Éô¥æ¡¼¥¶)¤«¤É¤¦¤«
+ if (!$acs_user_info_row['is_acs_user']) {
+ $role_array['public'] = true;
+
+ } else {
+ // (2) ¥í¥°¥¤¥ó¥æ¡¼¥¶¤«¤É¤¦¤«
+ $role_array['user'] = true;
+
+ // (3) ͧ¿Í¤«¤É¤¦¤«
+ if (ACSUser::is_in_friends_id_array($acs_user_info_row, $target_user_info_row['user_community_id'])) {
+ $role_array['member'] = true;
+ }
+
+ // (4) Ëܿͤ«¤É¤¦¤«
+ if ($acs_user_info_row['user_id'] == $target_user_info_row['user_id']) {
+ $role_array['administrator'] = true;
+ }
+
+ // (5) ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¤É¤¦¤«
+ if (ACSAccessControl::is_system_administrator($acs_user_info_row)) {
+ $role_array['system_administrator'] = true;
+ }
+ }
+
+ return $role_array;
+ }
+
+ /**
+ * ¥Þ¥¤¥Ú¡¼¥¸(¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£)¤Î¥³¥ó¥Æ¥ó¥Ä¤Ë¥¢¥¯¥»¥¹²Äǽ¤«¤É¤¦¤«
+ *
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $row ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿
+ * @return ¥¢¥¯¥»¥¹²Ä(true)/¥¢¥¯¥»¥¹ÉÔ²Ä(false)
+ */
+ static function is_valid_user_for_user_community($acs_user_info_row, $role_array, $row) {
+ $ret = false;
+
+ foreach ($role_array as $role_key => $role_value) {
+ if (ACSLib::get_boolean($row["open_for_{$role_key}"]) && $role_value) {
+ if ($role_key == 'member') {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º or ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¸¡º÷
+ $trusted_community_id_array = array();
+ foreach ($row['trusted_community_row_array'] as $trusted_community_row) {
+ if (ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $trusted_community_row['community_id'])) {
+ $ret = true;
+ break;
+ }
+ }
+ } else {
+ $ret = true;
+ break;
+ }
+ }
+ }
+
+ return $ret;
+ }
+
+ /**
+ * role_array¤Ë±þ¤¸¤Ærow_array¤ò¼èÆÀ¤¹¤ë (¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£)
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $row_array ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ * @return row_array
+ */
+ static function get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $row_array) {
+ $new_row_array = array();
+ foreach ($row_array as $row) {
+ if (ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $row)) {
+ array_push($new_row_array, $row);
+ }
+ }
+ return $new_row_array;
+ }
+
+ /**
+ * role_array¤Ë±þ¤¸¤Æobj_row_array¤ò¼èÆÀ¤¹¤ë (¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£)
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $obj_row_array ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó)
+ * @return ¥¢¥¯¥»¥¹²Äǽ¤Ê¥Ç¡¼¥¿(¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó)
+ */
+ static function get_valid_obj_row_array_for_user_community($acs_user_info_row, $role_array, $obj_array) {
+ $new_obj_array = array();
+
+ /* ¸ø³«ÈÏ°Ï¥Þ¥¹¥¿¼èÆÀ */
+ $open_level_master_row_array = ACSAccessControl::get_all_open_level_master_row_array();
+
+ foreach ($obj_array as $obj) {
+ $open_level_code = $obj->get_open_level_code();
+
+ // obj -> row ¤ËÊÑ´¹
+ $row['open_level_code'] = $open_level_code;
+ $row['open_for_public'] = $open_level_master_row_array[$open_level_code]['open_for_public'];
+ $row['open_for_user'] = $open_level_master_row_array[$open_level_code]['open_for_user'];
+ $row['open_for_member'] = $open_level_master_row_array[$open_level_code]['open_for_member'];
+ $row['open_for_administrator'] = $open_level_master_row_array[$open_level_code]['open_for_administrator'];
+ $row['open_for_system_administrator'] = $open_level_master_row_array[$open_level_code]['open_for_system_administrator'];
+ $row['trusted_community_row_array'] = $obj->get_trusted_community_row_array();
+
+ if (ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $row)) {
+ array_push($new_obj_array, $obj);
+ }
+ }
+ return $new_obj_array;
+ }
+
+ /**
+ * ¸ø³«ÈÏ°Ï¥Þ¥¹¥¿¼èÆÀ
+ *
+ * @return open_level_code ¤ò¥¡¼¤Ë¤·¤¿ÇÛÎó
+ */
+ static function get_all_open_level_master_row_array () {
+ $sql = "SELECT *";
+ $sql .= " FROM open_level_master";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ // set true or false
+ $role_array = array('public', 'user', 'member', 'administrator');
+ foreach ($row_array as $index => $row) {
+ $open_level_code = $row['open_level_code'];
+ $new_row_array[$open_level_code]['open_level_name'] = $row['open_level_name'];
+ foreach ($role_array as $role_key) {
+ $new_row_array[$open_level_code]["open_for_{$role_key}"] = $row["open_for_{$role_key}"];
+ }
+ }
+ return $new_row_array;
+ }
+
+ /**
+ * role_array¤Ë±þ¤¸¤Ærow¤ò¼èÆÀ¤¹¤ë (¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£)
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $row ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (Ï¢ÁÛÇÛÎó)
+ * @return row
+ */
+ static function get_valid_row_for_user_community($acs_user_info_row, $role_array, $row) {
+ $new_row = array();
+ if (count($row)) {
+ $new_row = null;
+ if (ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $row)) {
+ $new_row = $row;
+ }
+ }
+ return $new_row;
+ }
+
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£Æ⥳¥ó¥Æ¥ó¥Ä¤Î¥¢¥¯¥»¥¹»þ¤Ë¤ª¤±¤ërole_array¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $target_community_row ¥¢¥¯¥»¥¹ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * @return role_array (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_community_role_array($acs_user_info_row, $target_community_row) {
+ $role_array = array('public' => false, 'user' => false, 'member' => false, 'administrator' => false, 'system_administrator' => false);
+
+ // (1) °ìÈ̥桼¥¶(³°Éô¥æ¡¼¥¶)¤«¤É¤¦¤«
+ if (!$acs_user_info_row['is_acs_user']) {
+ $role_array['public'] = true;
+
+ } else {
+ // (2) ¥í¥°¥¤¥ó¥æ¡¼¥¶¤«¤É¤¦¤«
+ $role_array['user'] = true;
+
+ // (3) ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ if (ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $target_community_row['community_id'])) {
+ $role_array['member'] = true;
+ }
+
+ // (4) ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«¤É¤¦¤«
+ if (ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $target_community_row['community_id'])) {
+ $role_array['administrator'] = true;
+ }
+
+ // (5) ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¤É¤¦¤«
+ if (ACSAccessControl::is_system_administrator($acs_user_info_row)) {
+ $role_array['administrator'] = true;
+ }
+ }
+
+ return $role_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ó¥Æ¥ó¥Ä¤Ë¥¢¥¯¥»¥¹²Äǽ¤«¤É¤¦¤«
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $row ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (Ï¢ÁÛÇÛÎó)
+ * @return ¥¢¥¯¥»¥¹²Ä(true)/¥¢¥¯¥»¥¹ÉÔ²Ä(false)
+ */
+ static function is_valid_user_for_community($acs_user_info_row, $role_array, $row) {
+ $ret = false;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô°Ê³°¤Î¾ì¹ç
+ // ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈϰϤò¥Á¥§¥Ã¥¯
+ if (!ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $row['community_id']) && !ACSAccessControl::is_system_administrator($acs_user_info_row)) {
+ $community_self_info_row = ACSCommunity::get_contents_row($row['community_id'], ACSMsg::get_mst('contents_type_master','D00'));
+ if ($community_self_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ return false;
+ }
+ }
+
+ foreach ($role_array as $role_key => $role_value) {
+ if (ACSLib::get_boolean($row["open_for_{$role_key}"]) && $role_value) {
+ $ret = true;
+ break;
+ } elseif ($role_key == 'member') {
+ // ±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç
+ if(count($row['trusted_community_row_array']) > 0){
+ foreach ($row['trusted_community_row_array'] as $trusted_community_row) {
+ if (ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $trusted_community_row['community_id'])) {
+ $ret = true;
+ break;
+ }
+ }
+ }
+ if ($ret) {
+ break;
+ }
+ }
+ }
+
+ return $ret;
+ }
+
+ /**
+ * role_array¤Ë±þ¤¸¤Ærow_array¤ò¼èÆÀ¤¹¤ë (¥³¥ß¥å¥Ë¥Æ¥£)
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $row ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ * @return row_array
+ */
+ static function get_valid_row_array_for_community($acs_user_info_row, $role_array, $row_array) {
+ $new_row_array = array();
+ foreach ($row_array as $row) {
+ if (ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $row)) {
+ array_push($new_row_array, $row);
+ }
+ }
+ return $new_row_array;
+ }
+
+ /**
+ * role_array¤Ë±þ¤¸¤Æobj_row_array¤ò¼èÆÀ¤¹¤ë (¥³¥ß¥å¥Ë¥Æ¥£)
+ *
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¾ðÊó
+ * @param $role_array ¥¢¥¯¥»¥¹¼Ô¤Îrole_array
+ * @param $obj_row_array ¥¢¥¯¥»¥¹ÂоݤȤʤë¥Ç¡¼¥¿ (¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó)
+ * @return ¥¢¥¯¥»¥¹²Äǽ¤Ê¥Ç¡¼¥¿(¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó)
+ */
+ static function get_valid_obj_row_array_for_community($acs_user_info_row, $role_array, $obj_array) {
+ $new_obj_array = array();
+
+ /* ¸ø³«ÈÏ°Ï¥Þ¥¹¥¿¼èÆÀ */
+ $open_level_master_row_array = ACSAccessControl::get_all_open_level_master_row_array();
+
+ foreach ($obj_array as $obj) {
+ $open_level_code = $obj->get_open_level_code();
+
+ // obj -> row ¤ËÊÑ´¹
+ $row['community_id'] = $obj->get_community_id();
+ $row['open_level_code'] = $open_level_code;
+ $row['open_for_public'] = $open_level_master_row_array[$open_level_code]['open_for_public'];
+ $row['open_for_user'] = $open_level_master_row_array[$open_level_code]['open_for_user'];
+ $row['open_for_member'] = $open_level_master_row_array[$open_level_code]['open_for_member'];
+ $row['open_for_administrator'] = $open_level_master_row_array[$open_level_code]['open_for_administrator'];
+ $row['open_for_system_administrator'] = $open_level_master_row_array[$open_level_code]['open_for_system_administrator'];
+ $row['trusted_community_row_array'] = $obj->get_trusted_community_row_array();
+
+ if (ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $row)) {
+ array_push($new_obj_array, $obj);
+ }
+ }
+ return $new_obj_array;
+ }
+
+
+ /**
+ * ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¤É¤¦¤«
+ *
+ * @param $acs_user_info_row ¥æ¡¼¥¶¾ðÊó¤ÎÇÛÎó
+ * @return true / false
+ */
+ static function is_system_administrator($acs_user_info_row) {
+ if (ACSLib::get_boolean($acs_user_info_row['administrator_flag']) || $acs_user_info_row['user_id'] == ACS_ADMINISTRATOR_USER_ID) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹¸¢¤Ë±þ¤¸¤ÆÊѲ½¤¹¤ëɽ¼¨¾ðÊó¤òÀßÄꤹ¤ë
+ *
+ * @param $profile_row ¥×¥í¥Õ¥£¡¼¥ë¾ðÊó¤Î£±¤Ä
+ * @param $view_at ɽ¼¨¤Î¥¢¥¯¥»¥¹¸¢
+ *
+ * @return $profile_row
+ */
+ static function set_not_open($profile_row,$view_at){
+ $profile_row['not_open'] = false;
+ for($i = 0; $i < count($view_at); $i++){
+ if($profile_row['open_level_code'] == $view_at[$i]){
+ $profile_row['not_open'] = true;
+ break;
+ }
+ }
+ return $profile_row;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡¶¦ÄÌ¥¯¥é¥¹
+ *
+ * ACSBBS.class.php
+ * @package acs/webapp/lib/class
+ * @author ota @editor akitsu
+ * @since PHP 4.0
+ */
+// $Id: ACSBBS.class.php,v 1.38 2008/05/21 01:53:36 y-yuki Exp $
+
+/*
+ * ¥³¥ß¥å¥Ë¥Æ¥£
+ */
+class ACSBBS {
+
+ /**
+ * ·Ç¼¨ÈĤοƵ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ·Ç¼¨ÈĤοƵ»ö°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_bbs_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT bbs.*, open_level_master.*, acs_get_bbs_last_post_date(bbs.bbs_id) as bbs_last_post_date, acs_get_bbs_res_num(bbs.bbs_id) as bbs_res_num, bbs_file.file_id as file_id, community.community_name as community_name";
+ $sql .= " FROM ((bbs LEFT OUTER JOIN community ON bbs.user_community_id = community.community_id)";
+ $sql .= " LEFT OUTER JOIN bbs_file ON bbs.bbs_id = bbs_file.bbs_id) ,";
+ $sql .= " open_level_master";
+ $sql .= " WHERE bbs.community_id = '$community_id'";
+ $sql .= " AND bbs.open_level_code = open_level_master.open_level_code";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND bbs.bbs_delete_flag != 't'";
+ $sql .= " ORDER BY bbs_last_post_date DESC"; //Åê¹ÆÆü¤Î¿·¤·¤¤½ç
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * bbs_id¤ò»ØÄꤷ¤Æ·Ç¼¨ÈĤοƵ»ö¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param bbs_id
+ * @return ·Ç¼¨ÈĤοƵ»ö¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_bbs_row($bbs_id) {
+ $bbs_id = pg_escape_string($bbs_id);
+ $sql = "SELECT *, bbs.community_id AS bbs_community_id";
+ $sql .= " FROM bbs LEFT OUTER JOIN community on bbs.user_community_id = community.community_id";
+ $sql .= " LEFT OUTER JOIN bbs_file USING(bbs_id)";
+ $sql .= ", open_level_master";
+ $sql .= " WHERE bbs.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND bbs.bbs_id = '$bbs_id'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND bbs.bbs_delete_flag != 't'";
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * bbs_id¤ò»ØÄꤷ¤Æ·Ç¼¨ÈĤο®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param bbs_id
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_bbs_trusted_community_row_array($bbs_id) {
+ $bbs_id = pg_escape_string($bbs_id);
+
+ $sql = "SELECT community.community_id, community.community_name";
+ $sql .= " FROM bbs, bbs_trusted_community, community";
+ $sql .= " WHERE bbs.bbs_id = '$bbs_id'";
+ $sql .= " AND bbs.bbs_id = bbs_trusted_community.bbs_id";
+ $sql .= " AND bbs_trusted_community.trusted_community_id = community.community_id";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+
+ /**
+ * bbs_res_id¤ò»ØÄꤷ¤Æ·Ç¼¨ÈĤÎÊÖ¿®µ»ö¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param bbs_res_id
+ * @return ·Ç¼¨ÈĤÎÊÖ¿®µ»ö°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_bbs_res_row($bbs_res_id) {
+ $bbs_res_id = pg_escape_string($bbs_res_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM bbs_res LEFT OUTER JOIN community ON bbs_res.user_community_id = community.community_id";
+ $sql .= " WHERE bbs_res.bbs_res_id = '$bbs_res_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * bbs_id¤ò»ØÄꤷ¤Æ·Ç¼¨ÈĤÎÊÖ¿®µ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param bbs_id
+ * @return ·Ç¼¨ÈĤÎÊÖ¿®µ»ö°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_bbs_res_row_array($bbs_id) {
+ $bbs_id = pg_escape_string($bbs_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM bbs_res LEFT OUTER JOIN community ON bbs_res.user_community_id = community.community_id";
+ $sql .= " WHERE bbs_res.bbs_id = '$bbs_id'";
+ $sql .= " ORDER BY bbs_res.post_date ASC"; //Åê¹ÆÆü¤Î¿·¤·¤¤½ç bbs_res.delete_flag,(ºï½ü¥Õ¥é¥°¤Î¤Ê¤¤¤â¤Î¢ª¢ªºï½ü¥Õ¥é¥°¤Î¤¢¤ë¤â¤Î)
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤοƵ»ö¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ¿Æµ»ö¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_bbs($form) {
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ //ACSDB::_do_query("BEGIN");
+
+ $bbs_id_seq = ACSDB::get_next_seq('bbs_id_seq');
+
+ $sql = "INSERT INTO bbs";
+ $sql .= " (bbs_id, community_id, user_community_id, subject, body, open_level_code, expire_date,ml_send_flag)";
+ $sql .= " VALUES ($bbs_id_seq, $form[community_id], $form[user_community_id], $form[subject], $form[body], $form[open_level_code], $form[xdate], ".
+ ($org_form['is_ml_send']=='t' ? "TRUE" : "FALSE") . ")";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "bbs insert error";
+ return $ret;
+ }
+
+ $form = $org_form;
+ if($form['new_file']!=""){
+ //²èÁü¥Õ¥¡¥¤¥ë¤ÎÅÐÏ¿
+ $file_obj = $form['new_file'];
+ $ret = $file_obj->save_upload_file('BBS'); //¥Õ¥¡¥¤¥ë¤ò¥Ç¥£¥¹¥¯¤ËÊݸ
+ if($ret){
+ $ret = $file_obj->add_file(); //¥Õ¥¡¥¤¥ë¾ðÊó¤òDB¤ØÊݸ
+ }
+ if($ret){
+ $ret = ACSBBSFile::insert_bbs_file($file_obj,$bbs_id_seq);
+ }
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "bbs_file insert error";
+ return $ret;
+ }
+ }
+
+ // bbs_trusted_community
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+ // Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß)
+ if ($open_level_master_array[$form['open_level_code']] == ACSMsg::get_mst('open_level_master','D04')
+ && is_array($form['trusted_community_id_array'])) {
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $trusted_community_id = pg_escape_string($trusted_community_id);
+
+ $sql = "INSERT INTO bbs_trusted_community";
+ $sql .= " (bbs_id, trusted_community_id)";
+ $sql .= " VALUES ($bbs_id_seq, $trusted_community_id)";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "bbs_trusted_community insert error";
+ return $ret;
+ }
+ }
+ }
+
+ if ($ret) {
+ $ret = $bbs_id_seq;
+ }
+
+ // COMMIT
+ //ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤοƵ»ö¤ò¹¹¿·¤¹¤ë
+ *
+ * @param ¿Æµ»ö¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_bbs($form) {
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // bbs¹¹¿·
+ $sql = "UPDATE bbs";
+ $sql .= " SET";
+ $sql .= " subject = $form[subject],";
+ $sql .= " body = $form[body]";
+ $sql .= " WHERE";
+ $sql .= " bbs_id = $form[bbs_id]";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ $form = $org_form;
+ if ($_FILES['new_file']['tmp_name'] != '') {
+ // ²èÁü¥Õ¥¡¥¤¥ëobj¤Î¼èÆÀ
+ $file_obj = ACSFile::get_upload_file_info_instance($_FILES['new_file'], $form['community_id'], $form['user_community_id']);
+ // ¥Õ¥¡¥¤¥ë¤ò¥Ç¥£¥¹¥¯¤ËÊݸ
+ $ret = $file_obj->save_upload_file('BBS');
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ //¥Õ¥¡¥¤¥ë¾ðÊó¤òDB¤ØÊݸ
+ $ret = $file_obj->add_file();
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // bbs¥Õ¥¡¥¤¥ë¤Î¹¹¿·
+ $ret = ACSBBSFile::update_bbs_file($file_obj, $form['bbs_id']);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤÎÊÖ¿®µ»ö¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ÊÖ¿®µ»ö¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_bbs_res($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $bbs_res_id_seq = ACSDB::get_next_seq('bbs_res_id_seq');
+
+ $sql = "INSERT INTO bbs_res";
+ $sql .= " (bbs_id, bbs_res_id, user_community_id, subject, body ,bbs_res_delete_flag)";
+ $sql .= " VALUES ($form[bbs_id], $bbs_res_id_seq,$form[user_community_id], $form[subject], $form[body],'f')";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤοƵ»ö¤ò¹¹¿·¤¹¤ë
+ *
+ * @param ¿Æµ»ö¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_bbs_res($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // bbs¹¹¿·
+ $sql = "UPDATE bbs_res";
+ $sql .= " SET";
+ $sql .= " subject = $form[subject],";
+ $sql .= " body = $form[body]";
+ $sql .= " WHERE";
+ $sql .= " bbs_res_id = $form[bbs_res_id]";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤο·Ãåµ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (BBS¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãåµ»ö°ìÍ÷
+ *
+ */
+ static function get_new_bbs_row_array($user_community_id, $days=false, $offset=false) {
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+ $community_id_array = array();
+ foreach ($community_row_array as $index => $community_row) {
+ array_push($community_id_array, $community_row['community_id']);
+ }
+ if (count($community_id_array)) {
+ $community_id_csv = implode(',', $community_id_array);
+ } else {
+ $community_id_csv = 'null';
+ }
+
+ //
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ·Ç¼¨ÈĤο·Ãåµ»ö¤òºÇ¿·½ç¤Ë¼èÆÀ¤¹¤ë
+ $sql = "SELECT
+ bbs.*, community.*, open_level_master.*,
+ COALESCE(bbs_res_num_n,0) AS bbs_res_num,
+ lastts.bbs_last_timestamp AS bbs_last_post_date,
+ CASE
+ WHEN acdate.access_date IS NULL THEN TRUE
+ WHEN lastts.bbs_last_timestamp > acdate.access_date THEN TRUE
+ ELSE FALSE
+ END AS is_unread
+ FROM
+ (((bbs INNER JOIN community
+ ON bbs.community_id = community.community_id)
+ INNER JOIN open_level_master
+ ON bbs.open_level_code = open_level_master.open_level_code)
+ LEFT JOIN
+ (SELECT bbs_id, count(*) AS bbs_res_num_n
+ FROM bbs_res GROUP BY bbs_id) AS rescnt
+ ON bbs.bbs_id = rescnt.bbs_id)
+ LEFT JOIN acs_view_bbs_last_timestamp AS lastts
+ ON bbs.bbs_id = lastts.bbs_id
+ LEFT JOIN
+ (SELECT bbs_id, access_date
+ FROM bbs_access_history
+ WHERE user_community_id='".$user_community_id."') AS acdate
+ ON bbs.bbs_id = acdate.bbs_id
+ WHERE
+ bbs.community_id IN (".$community_id_csv.")
+ AND bbs.bbs_delete_flag != 't'";
+
+ if($days !== false){
+ $sql .= " AND " . ACSLib::get_sql_condition_from_today(
+ "lastts.bbs_last_timestamp", $days);
+ }
+
+ $sql .= " ORDER BY bbs_last_timestamp DESC, bbs.bbs_id DESC";
+ if($offset !== false){
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $sql = $sql . " OFFSET 0 LIMIT ". $display_count;
+ } else {
+ //$sql .= " ORDER BY bbs_last_timestamp DESC, bbs.bbs_id DESC";
+ }
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤο·Ãå¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¿·Ãå¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹°ìÍ÷
+ */
+ static function get_new_bbs_for_press_release_row_array() {
+ $limit = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+
+ $sql = "SELECT *";
+ $sql .= " FROM bbs LEFT OUTER JOIN bbs_file USING(bbs_id), open_level_master as BBS_OLM,";
+ $sql .= " community, community_type_master,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM,"; // Á´ÂÎ
+ $sql .= " open_level_master as SELF_OLM"; // Á´ÂΤÎopen_level_master
+
+ $sql .= " WHERE bbs.community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+
+ // BBS: ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ $sql .= " AND bbs.open_level_code = BBS_OLM.open_level_code";
+ $sql .= " AND BBS_OLM.open_level_name = '".ACSMsg::get_mst('open_level_master','D06')."'";
+ // BBS: ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND bbs.bbs_delete_flag != 't'";
+ // BBS: ·ÇºÜ½ªÎ»Æü¤Ë㤷¤Æ¤¤¤Ê¤¤
+ $sql .= " AND (bbs.expire_date is null OR CURRENT_DATE <= bbs.expire_date::DATE)";
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£: ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+ // ¥³¥ß¥å¥Ë¥Æ¥£: Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ê¤¤
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ // ORDER
+ $sql .= " ORDER BY bbs.post_date DESC";
+
+ // LIMIT
+ $sql .= " LIMIT $limit";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤΥ¢¥¯¥»¥¹ÍúÎò¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $bbs_id bbs_id
+ * @return ·Ç¼¨ÈĤΥ¢¥¯¥»¥¹ÍúÎò¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_bbs_access_history_row($user_community_id, $bbs_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+ $bbs_id = pg_escape_string($bbs_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM bbs_access_history";
+ $sql .= " WHERE user_community_id = '$user_community_id'";
+ $sql .= " AND bbs_id = '$bbs_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ·Ç¼¨ÈĤΥ¢¥¯¥»¥¹ÍúÎò¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $bbs_id
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_bbs_access_history($user_community_id, $bbs_id) {
+ // ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò
+ $bbs_access_history_row = ACSBBS::get_bbs_access_history_row($user_community_id, $bbs_id);
+
+ $bbs_access_history_form = array(
+ 'user_community_id' => $user_community_id,
+ 'bbs_id' => $bbs_id,
+ 'access_date' => 'now'
+ );
+
+ if ($bbs_access_history_row) {
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤¹¤ë¾ì¹ç¤ÏUPDATE
+ ACSBBSAccessHistoryModel::update_bbs_access_history($bbs_access_history_form);
+ } else {
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤ÏINSERT
+ ACSBBSAccessHistoryModel::insert_bbs_access_history($bbs_access_history_form);
+ }
+ }
+
+ /**
+ * ·Ç¼¨ÈĤοƵ»ö¤òºï½ü¤¹¤ë
+ *
+ * @param ¿Æµ»öID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_bbs($bbs_obj) {
+ $bbs_id = $bbs_obj['bbs_id'];
+
+ ACSDB::_do_query("BEGIN");
+ //¥µ¥Öµ»ö¤Î¼èÆÀ
+ $sub_row_array = ACSBBS::get_bbs_res_row_array($bbs_id);
+ $bbs_res_id_array = array();
+ if(count($sub_row_array) > 0){
+ foreach ($sub_row_array as $index => $sub_row) {
+ array_push($bbs_res_id_array, $sub_row['bbs_res_id']);
+ }
+ //¥µ¥Öµ»ö¤Îºï½üÀßÄê
+ $ret = ACSBBS::delete_bbs_res($bbs_res_id_array);
+ if(!$ret){
+ ACSDB::_do_query("ROLLBACK");
+ echo ACSMsg::get_mdmsg(__FILE__,'M001');
+ return false;
+ }
+ }
+ //¿Æµ»ö¤¬»ý¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¾ðÊó¤Îºï½ü
+ $bbs_row = ACSBBSFile::select_bbs_file_row($bbs_id);
+ $file_id = $bbs_row['file_id'];
+ if($file_id != ''){
+ $ret = ACSBBSFile::delete_bbs_file($file_id,$bbs_id);
+ if(!$ret){
+ ACSDB::_do_query("ROLLBACK");
+ echo ACSMsg::get_mdmsg(__FILE__,'M002');
+ return false;
+ }
+ }
+ //¿Æµ»ö¤Îºï½ü(ºï½ü¥Õ¥é¥°°·¤¤)
+ $sql = "UPDATE bbs";
+ $sql .= " SET bbs_delete_flag = 't'";
+ $sql .= " WHERE bbs.bbs_id = $bbs_id";
+ $ret = ACSDB::_do_query($sql);
+ if(!$ret){
+ ACSDB::_do_query("ROLLBACK");
+ echo ACSMsg::get_mdmsg(__FILE__,'M003');
+ return false;
+ }
+
+ ACSDB::_do_query("COMMIT");
+ return true;
+ }
+
+
+ /**
+ * ·Ç¼¨ÈĤÎÊÖ¿®µ»ö¤òºï½ü¤¹¤ë
+ *
+ * @param ¿Æµ»öID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_bbs_res($bbs_res_id_array) {
+ /*
+ if (count($bbs_res_id_array) > 1) {
+ $bbs_res_id = implode(',', $bbs_res_id_array);
+ }else{
+ $bbs_res_id = $bbs_res_id_array;
+ }
+ */
+ $bbs_res_id_csv = implode(',', $bbs_res_id_array);
+ ACSDB::_do_query("BEGIN");
+ //¥µ¥Öµ»ö¤Îºï½ü
+ $sql = "UPDATE bbs_res";
+ $sql .= " SET bbs_res_delete_flag = 't'";
+ $sql .= " WHERE bbs_res.bbs_res_id IN($bbs_res_id_csv)";
+ $ret = ACSDB::_do_query($sql);
+ if(!$ret){
+ ACSDB::_do_query("ROLLBACK");
+ echo ACSMsg::get_mdmsg(__FILE__,'M001');
+ return false;
+ }
+ ACSDB::_do_query("COMMIT");
+ return true;
+ }
+
+ /**
+ * get_bbs_rss_row_array ¥á¥½¥Ã¥É
+ *
+ * RSSɽ¼¨¾ðÊó¤ÎºîÀ®
+ * ¾ò·ï¡§¸ø³«ÈÏ°Ï¡á¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ & ºï½ü¥Õ¥é¥°¤Ç¤Ï¤Ê¤¤¤â¤Î
+ * @param community_id_array £±¸Ä¤Î¤È¤¤âÊ£¿ô¤Ç¤âÂбþ¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë
+ *
+ * @order bbs_last_post_date ºÇ¿·½ç¤Ë¼èÆÀ
+ * @return row_array ·Ç¼¨ÈĿƵ»ö¡¡¤ÎÇÛÎó
+ *
+ * @return $row_array RSS½ÐÎϥǡ¼¥¿
+ */
+ static function get_bbs_rss_row_array($community_id_array,$flag = 0) {
+ if (count($community_id_array) > 1) {
+ $community_id = implode(',', $community_id_array);
+ }else{
+ $community_id = $community_id_array;
+ }
+
+ $sql = "SELECT * ,bbs.bbs_id as bbs_id";
+ $sql .= " FROM (bbs LEFT OUTER JOIN bbs_file ON bbs.bbs_id = bbs_file.bbs_id) , open_level_master ";
+ $sql .= " WHERE bbs.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND open_level_master.open_level_name = '".ACSMsg::get_mst('open_level_master','D06')."'"; //¸ø³«ÈÏ°Ï¡§¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ $sql .= " AND bbs.bbs_delete_flag = 'f'"; //ºï½ü¥Õ¥é¥°¤Ç¤Ï¤Ê¤¤¤â¤Î
+ if($flag == 0){
+ // ½ü³°¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£ID¤Î»ØÄ꤬¤¢¤Ã¤¿¾ì¹ç¤Î¤ß¡¢¹Ê¤ê¹þ¤à
+ if ($community_id) {
+ $sql .= " AND bbs.community_id NOT IN( $community_id )"; //³ºÅö¤·¤Ê¤¤¥³¥ß¥å¥Ë¥Æ¥£¤¹¤Ù¤Æ
+ }
+ }else{
+ $sql .= " AND bbs.community_id IN( $community_id )"; //³ºÅö¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î¤ß
+ }
+ $sql .= " ORDER BY post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊóarray¼èÆÀ
+ * @param $where_list ¸¡º÷ÍѾò·ï»ØÄê
+ */
+ static function get_bbs_where_array ($where_list , $open_lebel_cd , $no_array) {
+ $sql = "SELECT *";
+ $sql .= " FROM bbs INNER JOIN open_level_master ON bbs.open_level_code = open_level_master.open_level_code";
+ $sql .= " WHERE bbs.bbs_delete_flag = 'f'";
+ if($open_lebel_cd != '00'){
+ $sql .= " AND bbs.open_level_code ='$open_lebel_cd'";
+ }
+ if($where_list != ''){
+ $sql .= $where_list;
+ }
+ if(count($no_array) > 0){
+ $no_array = ACSLib::get_sql_value_array($no_array);
+ $sql .= " AND bbs.bbs_id NOT IN (" . implode(", ", $no_array) . ")";
+ }
+ $sql .= " ORDER BY bbs.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * BBS¤ò¸¡º÷¤¹¤ë¤¿¤á¤Îwhere¶ç¤Î£±Éô¤òºîÀ®
+ *
+ * @param $form¡¡¾ò·ï
+ [id] => 1000
+ [move_id] => 2
+ [q_text] => ¸¡º÷¾ò·ï //¾ò·ï¡Ê¢¨É¬¿Ü¡Ë
+ [search_title] => title_in_serch //·ï̾¤òÁªÂò
+ [search_all] => subject_in_serch //ËÜʸ¤òÁªÂò
+ [open_level_code] => 00 //¸ø³«ÈÏ°Ï¡Ê00¤ÏÁªÂò¤Ê¤·¡Ë¡Ê¢¨É¬¿Ü¡Ë
+ [search_all_about] => all_in_serch //¤¹¤Ù¤Æ¤ÎCommunity¤òÁªÂò
+ * @return str_array($like_sql , $err_str , $str_count)
+ */
+ static function set_bbs_where_list($form , $flag) {
+ $str_array = array();
+ $str_array['like_sql'] = ""; //À®¸ù»þ¤ÎÌá¤êÃÍ
+ $str_array['err_str'] = ""; //¼ºÇÔ»þ¤ÎÌá¤êÃÍ
+ $str_array['str_count'] = 1; //À®¸ù»þ¤Î¥¡¼¥ï¡¼¥É¿ô
+ // ¸¡º÷¥¡¼¥ï¡¼¥É¤Î¼èÆÀ¡ÊÃí°Õ¡ª¥Ð¥¤¥Èñ°Ì¤Ç½èÍý¡Ë
+ $search_text = $form['q_text']; //form¤«¤é¸¡º÷ʸ»úÎó¤ò¼èÆÀ
+//¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡ÁÇÛÎó¤È¤·¤ÆÍøÍÑ(Like¤ÎºîÀ®)¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á
+ if($search_text != ''){
+ $search_args = ACSLib::get_query_array_array($search_text); //¸¡º÷ʸ»úÎóÇÛÎó¤ËÊÑ´¹
+ }
+ if(count($search_args) > 0){ //¸¡º÷ʸ»úÎó¤¬Â¸ºß¤¹¤ë¾ì¹ç
+ $search_args = ACSLib::escape_sql_array($search_args);
+ //¥¡¼¥ï¡¼¥Éwhere¶ç¤ÎÄɵ
+ //¼¡¤Î¤¤¤º¤ì¤«¤Ïɬ¿Ü
+ $str_like = '';
+ //·ï̾¤òÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ if($form['search_title']){
+ $str_title = " bbs.subject";
+ $str_like_array = ACSDiary::create_sql_where_field($search_args , $str_title , $flag);
+ $str_like = " (" . $str_like_array['str_like'] .") ";
+ $str_array['str_count'] = $str_like_array['str_count'];
+ }
+ //ËÜʸ¤òÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ if($form['search_all']){
+ $str_body = " bbs.body";
+ if($str_like != ""){
+ $str_like = $str_like . " OR "; //·ï̾¤È¶¦¤ËÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ }
+ $where_sql_array = ACSDiary::create_sql_where_field($search_args , $str_body, $flag);
+ $where_sql = " (" . $where_sql_array['str_like'] .") ";
+ $str_like = $str_like . $where_sql;
+ $str_array['str_count'] = $where_sql_array['str_count'];
+ }
+ //¥¡¼¥ï¡¼¥Éwhere¶ç¤ÎÄɵ½ªÎ»
+ if($str_like == ""){ //¥¡¼¥ï¡¼¥É¤¬¤¢¤ë¤Î¤Ë¡¢Âоݤ¬¤Ê¤¤¾ì¹ç
+ $str_array['err_str'] = ACSMsg::get_mdmsg(__FILE__,'M005');
+ }else{
+ $str_array['like_sql'] = $str_array['like_sql'] . $str_array['like_sql'] ." AND (" . $str_like .") ";
+ }
+ }
+//¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡ÁÆÃÄêÆüµ¸¡º÷¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á
+ //ɬ¤ºAND
+ if(!$form['search_all_about']){ //¤¹¤Ù¤Æ¤Î Community¤òÁªÂò¤·¤Æ¤¤¤Ê¤¤¾ì¹ç
+ $str_array['like_sql'] = $str_array['like_sql'] ." AND bbs.community_id = " . $form['community_id'];
+ }
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬ÇÛÎó¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦»ÃÄêÂнè
+ return $str_array;
+ }
+
+ /**
+ * BBS¤ò¸¡º÷¤¹¤ë¤¿¤á¤Îwhere¶ç¤Î£±Éô¤òºîÀ®2
+ * ·ï̾¤ÈËÜʸ¤¬¤½¤ì¤¾¤ìñÆÈ»ØÄꡦʣ¹ç»ØÄê¤Ë¤Ê¤ë²ÄǽÀ¤ò»ý¤Ä¤¿¤á
+ * Î󤴤ȤÎ\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ò·«¤êÊÖ¤¹½èÍý¤Î¤ß¤ò¹Ô¤¦´Ø¿ô
+ *
+ * @param $query_array_array \8e·\8e°\8eÜ\8e°\8eÄ\8eÞÇÛÎó
+ * @param $str_title Îó̾
+ * @return $where_sql ºîÀ®¤·¤¿SQL¾ò·ïʸ
+ */
+ static function create_sql_where_field($query_array_array , $str_field ,$flag){
+ $str_like = "";
+ foreach ($query_array_array as $query_array) { //Á´\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ËÂФ¹¤ë½èÍý
+ if (!count($query_array)) {
+ continue; //£±\8e·\8e°\8eÜ\8e°\8eÄ\8eÞÃæ¤ËÃͤ¬Ìµ¤¤¾ì¹ç¡Ê¶èÀÚ¤êʸ»ú¡©¡Ë
+ }
+ foreach ($query_array as $id => $str_q) { //£±\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ËÂФ¹¤ë½èÍý¡Êʸ»ú¼ï¤Î¤¿¤áor½èÍý¡Ë
+ $str_q = pg_escape_string($str_q);
+ ACSLib::escape_ilike($str_q);
+ if($id == 0){
+ $str_like = $str_field . " LIKE '%" . $str_q ."%'";
+ }else{
+ $where_sql['str_count'] = 2;
+ $str_like = $str_like . " OR " . $str_field . " LIKE '%" . $str_q ."%'";
+ }
+ }
+ if ($str_like != '') { //Á´\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤òAND¤«OR¤Ç¤Ä¤Ê¤²¤ë
+ if($where_sql['str_like'] != '' ){
+ switch($flag){
+ case 1; //¤¹¤Ù¤Æ¹çÃ×
+ $where_sql['str_like'] = $where_sql['str_like'] ." AND ($str_like)"; break;
+ case 2: //¤¹¤Ù¤Æ¹çÃפ»¤º
+ $where_sql['str_like'] = $where_sql['str_like'] ." OR ($str_like)";
+ }
+ }else{
+ $where_sql['str_like'] = " ($str_like)";
+ }
+ }
+ }
+ return $where_sql;
+ }
+
+ /**
+ * ºÇ¿·¤Î·Ç¼¨ÈĿƵ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë (·Ç¼¨ÈÄRSSÍÑ)
+ *
+ * @param $community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $term ¼èÆÀ´ü´Ö
+ * @return ·Ç¼¨ÈǿƵ»ö¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_new_bbs_rss_row_array($community_id, $term) {
+ $community_id = pg_escape_string($community_id);
+ $term = pg_escape_string($term);
+
+ // ·Ç¼¨ÈĤο·Ãåµ»ö¤òºÇ¿·½ç¤Ë¼èÆÀ¤¹¤ë
+ $sql = "SELECT *, bbs.bbs_id as bbs_id, acs_get_bbs_last_post_date(bbs.bbs_id) as bbs_last_post_date";
+ $sql .= " FROM (bbs LEFT OUTER JOIN bbs_file ON bbs.bbs_id = bbs_file.bbs_id), community, open_level_master";
+ $sql .= " WHERE bbs.community_id = '$community_id'";
+ $sql .= " AND bbs.community_id = community.community_id";
+ $sql .= " AND bbs.open_level_code = open_level_master.open_level_code";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND bbs.bbs_delete_flag != 't'";
+ // $termÆü°ÊÆâ¤ËÅê¹Æ¤Î¤¢¤Ã¤¿µ»ö¤ò¼èÆÀ
+ $sql .= " AND acs_get_bbs_last_post_date(bbs.bbs_id)::DATE > (CURRENT_DATE - '@ $term days'::INTERVAL)";
+ // ºÇ½ªÅê¹ÆÆü»þ¤Ç¥½¡¼¥È
+ $sql .= " ORDER BY bbs_last_post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ·Ç¼¨ÈÄRSS¤ò½ÐÎϤ¹¤ë
+ *
+ * @param $community_row Âоݥ³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * @param $bbs_row_array ·Ç¼¨ÈĿƵ»ö°ìÍ÷
+ * @param $params ¥Ñ¥é¥á¡¼¥¿Åù
+ */
+ static function print_bbs_rss($community_row, $bbs_row_array, $params) {
+ // »ÈÍÑ¥¯¥é¥¹: acs/webapp/lib/feedcreator/feedcreator.class.php
+ $rss = new UniversalFeedCreator();
+
+ // ³µÍ×Åù <channel>
+ $rss->useCached();
+ $rss->title = $community_row['community_name']; // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾
+ $rss->description = $community_row['community_profile']['contents_value']; // ¥×¥í¥Õ¥£¡¼¥ë (¸ø³«ÈÏ°ÏÊÌ)
+ $rss->link = $params['base_url'] . $community_row['top_page_url']; // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $rss->url = $params['base_url'] . $community_row['image_url']; // ²èÁüURL <image rdf:resource="...">
+ $rss->syndicationURL = $rss_syndication_url; // ¼«¿È¤ÎURL <channel rdf:about="...">
+
+ // ¥í¥´²èÁü <image>
+ $image = new FeedImage();
+ $image->title = $community_row['image_title']; // ¥Õ¥¡¥¤¥ë̾
+ $image->link = ACSMsg::get_mdmsg(__FILE__,'M006'); // ¸¦µæ¼¼¥í¥´²èÁü
+ $image->url = $params['base_url'] . $community_row['image_url'];
+ $rss->image = $image;
+
+ // 1·ï¤Î¥À¥¤¥¢¥ê¡¼: <item>
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // CRLF ¢ª LF
+ $body = preg_replace('/\r\n/', "\n", $bbs_row['body']);
+
+ $item = new FeedItem();
+ $item->post_date = $bbs_row['post_date'];
+ $item->title = $bbs_row['subject'];
+ $item->link = $params['base_url'] . $bbs_row['bbs_res_url'];
+ $item->description = $body;
+ if ($bbs_row['file_url'] != '') {
+ $item->image_link = $params['base_url'] . $bbs_row['file_url'];
+ }
+ $item->description2 = $body; //Âè2¤ÎËÜʸ <content:encoded>
+
+ $rss->addItem($item);
+ }
+
+ // http-header
+ mb_http_output('pass');
+ header('Content-type: application/xml; charset=UTF-8');
+ echo mb_convert_encoding($rss->createFeed("RSS1.0"), 'UTF-8', mb_internal_encoding());
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSBBSAccessHistoryModel.class.php,v 1.1 2006/04/19 05:33:39 w-ota Exp $
+
+
+/*
+ * bbs_access_history¥â¥Ç¥ë
+ */
+class ACSBBSAccessHistoryModel {
+
+ /**
+ * bbs_access_history INSERT
+ *
+ * @param $form ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_bbs_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO bbs_access_history";
+ $sql .= " (user_community_id, bbs_id, access_date)";
+ $sql .= " VALUES ($form[user_community_id], $form[bbs_id], $form[access_date])";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * bbs_access_history UPDATE
+ *
+ * @param $form ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_bbs_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "UPDATE bbs_access_history";
+ $sql .= " SET";
+ $sql .= " access_date = $form[access_date]";
+ $sql .= " WHERE user_community_id = $form[user_community_id]";
+ $sql .= " AND bbs_id = $form[bbs_id]";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * bbsÍÑ¥Õ¥¡¥¤¥ë¾ðÊó DB¥¢¥¯¥»¥¹
+ * bbs_file¤Èfile_info¤Î·ë¹ç¥Õ¥¡¥¤¥ë¾ðÊó
+ * ACSBBSFile.class.php
+ *
+ * bbs_file¥Æ¡¼¥Ö¥ë¤òManage¤¹¤ë
+ * @author akitsu
+ * @version $Revision: 1.5 $
+ */
+class ACSBBSFile
+{
+ /** ACSBBSFile¤Î¥¯¥é¥¹
+ * @type ACSBBSFileModel */
+ var $bbs_file_obj;
+
+ /** ACSFile¤Î¥¯¥é¥¹
+ * @type ACSFileModel */
+ var $file_info;
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ¡Ê£±·ï¡Ë
+ * ¤Ò¤È¤Ä¤ÎBBS¡Ê·Ç¼¨Èġˤ¬»ý¤ÄFile¾ðÊó
+ *
+ * @param $bbs_id
+ * @return bbs_file¤Èfile_info¤Î·ë¹ç¥Õ¥¡¥¤¥ë¾ðÊó
+ */
+ static function select_bbs_file_row ($bbs_id) {
+ $sql = "SELECT bbs_file.*,";
+ $sql .= " file_info.display_file_name AS save_file_name,file_info.server_file_name AS insystem_file_name,";
+ $sql .= " file_info.mime_type AS file_kind"; //¼ïÎà
+ $sql .= " FROM file_info, bbs_file";
+ $sql .= " WHERE bbs_id = " . $bbs_id;
+ $sql .= " AND file_info.file_id = bbs_file.file_id";
+ $sql .= " ORDER BY bbs_file.file_id ASC";
+
+ $result = ACSDB::_get_row($sql);
+ return $result;
+ }
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ *
+ * @param $file_obj
+ */
+ static function get_bbs_file ($file_obj,$bbs_id) {
+ $sql = "SELECT bbs_file.*,";
+ $sql .= " FROM bbs_file";
+
+ $ret = ACSDB::_do_query($sql);
+ if($ret){
+ $bbs_file_obj = ACSBBSFileModel::get_bbs_file_info_instance($file_obj,$bbs_id);
+ return $bbs_file_obj;
+ }else{
+ return $ret;
+ }
+ }
+
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊóÄɲÃ
+ *
+ * @param $file_obj
+ */
+ static function insert_bbs_file ($file_obj,$bbs_id) {
+ $id = $file_obj->get_file_id();
+ $sql = "INSERT INTO bbs_file";
+ $sql .= " (file_id, bbs_id)";
+ $sql .= " VALUES (";
+ $sql .= "" . $id . ",";
+ $sql .= "" . $bbs_id;
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊ󹹿· (Í×BEGIN, COMMIT)
+ *
+ * @param $file_obj
+ */
+ static function update_bbs_file ($file_obj, $bbs_id) {
+ $file_id = pg_escape_string($file_obj->get_file_id());
+ $bbs_id = pg_escape_string($bbs_id);
+
+ // ºï½ü
+ $sql = "DELETE";
+ $sql .= " FROM bbs_file";
+ $sql .= " WHERE bbs_id = '$bbs_id'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // INSERT
+ $sql = "INSERT INTO bbs_file";
+ $sql .= " (file_id, bbs_id)";
+ $sql .= " VALUES ('$file_id', '$bbs_id')";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ return $ret;
+ }
+
+ /**
+ * BBS¥Õ¥¡¥¤¥ë¾ðÊóºï½ü
+ *
+ * @param $file_id
+ * @param $bbs_id
+ */
+ static function delete_bbs_file ($file_id,$bbs_id) {
+ $sql = "DELETE FROM bbs_file";
+ $sql .= " WHERE";
+ $sql .= " file_id = " . $file_id;
+ $sql .= " AND";
+ $sql .= " bbs_id = " . $bbs_id;
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+
+ /**
+ * image_url¤ò²Ã¹©¤¹¤ë
+ *
+ * @param bbs_id
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ static function get_image_url($bbs_id, $view_mode = '') {
+ $image_url = SCRIPT_PATH . '?';
+ $image_url .= MODULE_ACCESSOR . '=Community';
+ $image_url .= '&' . ACTION_ACCESSOR . '=BBSImage';
+ $image_url .= '&id=' . $bbs_id;
+ $image_url .= '&mode=' . $view_mode;
+
+ return $image_url;
+ }
+
+}
--- /dev/null
+<?php
+/**
+ * bbsÍÑ¥Õ¥¡¥¤¥ë¾ðÊó DB¥Æ¡¼¥Ö¥ë
+ * ACSBBSFileModel.class.php
+ *
+ * bbs_file¥Æ¡¼¥Ö¥ë¥â¥Ç¥ë
+ * @author akitsu
+ * @version $Revision: 1.1 $
+ */
+
+class ACSBBSFileModel
+{
+ /* ¥Õ¥¡¥¤¥ëID
+ * @type¡¡BIG_INT */
+ var $file_id;
+
+ /* BBS¡¡ID
+ * @type¡¡BIG_INT */
+ var $bbs_id;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * ɬ¤ºÍ×ÁÇÇÛÎó¤¬ÅϤµ¤ì¤ë
+ * @param $bbs_file_row
+ */
+ function ACSBBSFileModel ($bbs_file_row) {
+ $this->set_bbs_file_info($bbs_file_row);
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊ󥻥åÈ
+ * ɬ¤ºÍ×ÁÇÇÛÎó¤¬ÅϤµ¤ì¤ë
+ * @param $bbs_file_row
+ */
+ function set_bbs_file_info ($bbs_file_row) {
+ $this->set_file_id($bbs_file_row['file_id']);
+ $this->set_bbs_id($bbs_file_row['bbs_id']);
+ }
+
+ /**
+ * ¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ¡Ê¥Õ¥¡¥¤¥ëID,BBSid»ØÄê¡Ë
+ *
+ * @param $file_id
+ */
+ static function get_bbs_file_info_instance ($file_id,$bbs_id) {
+ $bbs_file_row['file_id'] = $file_id;
+ $bbs_file_row['bbs_id'] = $bbs_id;
+ $file_obj = new ACSBBSFileModel($bbs_file_row);
+
+ return $file_obj;
+ }
+
+
+/* ¥¢¥¯¥»¥Ã¥µ */
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥»¥Ã¥È
+ *
+ * @param $file_id
+ */
+ function set_file_id ($file_id) {
+ $this->file_id = $file_id;
+ }
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_file_id () {
+ return $this->file_id;
+ }
+
+ /**
+ * BBS ID¥»¥Ã¥È
+ *
+ * @param $bbs_id
+ */
+ function set_bbs_id ($bbs_id) {
+ $this->file_id = $bbs_id;
+ }
+ /**
+ * BBS ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_bbs_id () {
+ return $this->bbs_id;
+ }
+
+
+
+}
--- /dev/null
+<?php
+// $Id: ACSCommunity.class.php,v 1.44 2006/12/28 07:36:06 w-ota Exp $
+
+/*
+ * ¥³¥ß¥å¥Ë¥Æ¥£
+ */
+class ACSCommunity {
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó
+ */
+ static function get_community_row($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM ((community LEFT OUTER JOIN category_master ON community.category_code = category_master.category_code)";
+ $sql .= " LEFT OUTER JOIN community_image_file USING(community_id)) as JOINED_COMMUNITY,";
+ $sql .= " community_type_master";
+ $sql .= " WHERE JOINED_COMMUNITY.community_id = '$community_id'";
+ $sql .= " AND JOINED_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND JOINED_COMMUNITY.delete_flag != 't'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó(¥×¥í¥Õ¥£¡¼¥ë)¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó
+ */
+ static function get_community_profile_row($community_id) {
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¥×¥í¥Õ¥£¡¼¥ë (contents)
+ $community_row['contents_row_array'] = array();
+ $community_row['contents_row_array']['community_profile'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D07'));
+ $community_row['contents_row_array']['bbs'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $community_row['contents_row_array']['community_folder'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+ $community_row['contents_row_array']['self'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D00'));
+ $community_row['contents_row_array']['ml_addr'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D61'));
+ $community_row['contents_row_array']['ml_status'] =
+ ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D62'));
+
+ // ¥Ç¡¼¥¿Ìµ¤·¤Î¾ì¹ç¤Ï¶õ¤Îarray¤òÆþ¤ì¤ë
+ foreach ($community_row['contents_row_array'] as $contents_key => $contents_row) {
+ if (!$contents_row) {
+ $community_row['contents_row_array'][$contents_key] = array();
+ }
+ }
+
+
+ // »²²Ã»ñ³Ê
+ $community_row['join_trusted_community_row_array'] = ACSCommunity::get_join_trusted_community_row_array($community_id);
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+ // bbs (·Ç¼¨ÈÄ)
+ $community_row['contents_row_array']['bbs']['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $community_row['contents_row_array']['bbs']['contents_type_code'], $community_row['contents_row_array']['bbs']['open_level_code']);
+ // community_folder (¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À)
+ $community_row['contents_row_array']['community_folder']['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $community_row['contents_row_array']['community_folder']['contents_type_code'], $community_row['contents_row_array']['community_folder']['open_level_code']);
+
+ return $community_row;
+ }
+
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * return À®¸ù(¥³¥ß¥å¥Ë¥Æ¥£ID) / ¼ºÇÔ(false)
+ */
+ static function set_community($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ //$community_type_code = array_search('¥³¥ß¥å¥Ë¥Æ¥£', $community_type_master_array);
+ $community_type_code = array_search(ACSMsg::get_mst('community_type_master','D40'), $community_type_master_array);
+
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+ $community_member_type_master_array = ACSDB::get_master_array('community_member_type');
+
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // (1) ¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $admission_flag = ACSLib::get_pg_boolean($org_form['admission_flag']);
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_name, community_type_code, category_code, admission_flag)";
+ $sql .= " VALUES ('$community_id_seq', $form[community_name], '$community_type_code', $form[category_code], '$admission_flag')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // contents
+ // (2-1) (¥³¥ß¥å¥Ë¥Æ¥£Á´ÂÎ)
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ //$contents_form['contents_type_code'] = array_search('Á´ÂÎ', $contents_type_master_array);
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D00'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D00'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-2) ¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D07'), $contents_type_master_array);
+ $contents_form['contents_value'] = $org_form['community_profile'];
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D07'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (3) »²²Ã»ñ³Ê (join_trusted_community)
+ if (is_array($org_form['join_trusted_community_id_array'])) {
+ $join_trusted_community_form = array();
+ $join_trusted_community_form['community_id'] = $community_id_seq;
+ foreach ($org_form['join_trusted_community_id_array'] as $trusted_community_id) {
+ $join_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_join_trusted_community($join_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (4) ¸ø³«ÈÏ°Ï ÅŻҷǼ¨ÈÄ
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D41'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['bbs_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // contents_trusted_community
+ if (is_array($org_form['bbs_trusted_community_id_array'])) {
+ $contents_trusted_community_form = array();
+ $contents_trusted_community_form['community_id'] = $community_id_seq;
+ $contents_trusted_community_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D41'), $contents_type_master_array);
+ $contents_trusted_community_form['open_level_code'] = $org_form['bbs_open_level_code'];
+ foreach ($org_form['bbs_trusted_community_id_array'] as $trusted_community_id) {
+ $contents_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (5) ¸ø³«ÈÏ°Ï ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À (cotents)
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D31'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['community_folder_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // contents_trusted_community
+ if (is_array($org_form['community_folder_trusted_community_id_array'])) {
+ $contents_trusted_community_form = array();
+ $contents_trusted_community_form['community_id'] = $community_id_seq;
+ $contents_trusted_community_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D31'), $contents_type_master_array);
+ $contents_trusted_community_form['open_level_code'] = $org_form['community_folder_open_level_code'];
+ foreach ($org_form['community_folder_trusted_community_id_array'] as $trusted_community_id) {
+ $contents_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (6) ¸ø³«ÈÏ°Ï Á´ÂÎ
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ //$contents_form['contents_type_code'] = array_search('Á´ÂÎ', $contents_type_master_array);
+ $contents_form['contents_type_code'] =
+ array_search(ACSMsg::get_mst('contents_type_master','D00'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['self_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (7) ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ò¥»¥Ã¥È¤¹¤ë
+ $community_admin_form = array();
+ $community_admin_form['community_id'] = $community_id_seq;
+ $community_admin_form['user_community_id'] = $org_form['user_community_id'];
+ $ret = ACSCommunity::set_community_admin($community_admin_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (8) ¥³¥ß¥å¥Ë¥Æ¥£ML
+ // contents
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹
+ if ($org_form['community_ml_address']) {
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] =
+ array_search(ACSMsg::get_mst('contents_type_master','D61'),
+ $contents_type_master_array);
+ $contents_form['contents_value'] = $org_form['community_ml_address'];
+ $contents_form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D61'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¹¥Æ¡¼¥¿¥¹
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] =
+ array_search(ACSMsg::get_mst('contents_type_master','D62'),
+ $contents_type_master_array);
+ $contents_form['contents_value'] = 'QUEUE';
+ $contents_form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D62'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $community_id_seq;
+ }
+
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤ò¹¹¿·¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $community_name ¥³¥ß¥å¥Ë¥Æ¥£Ì¾
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_community_name($community_id, $community_name) {
+ $community_id = pg_escape_string($community_id);
+ $community_name = pg_escape_string($community_name);
+
+ $sql = "UPDATE community";
+ $sql .= " SET";
+ $sql .= " community_name = '$community_name'";
+ $sql .= " WHERE community_id = '$community_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ó¥Æ¥ó¥Ä¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $contents_type_name ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ̾
+ * @return ¥³¥ó¥Æ¥ó¥Ä¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_contents_row($community_id, $contents_type_name) {
+ $community_id = pg_escape_string($community_id);
+ $contents_type_name = pg_escape_string($contents_type_name);
+
+ $sql = "SELECT contents.*, contents_type_master.*, open_level_master.*, community_type_master.*";
+ $sql .= " FROM contents, community, community_type_master, contents_type_master, open_level_master";
+ $sql .= " WHERE contents.community_id = '$community_id'";
+ $sql .= " AND contents.community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND contents.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND contents_type_master.contents_type_name = '$contents_type_name'";
+ $sql .= " AND contents.open_level_code = open_level_master.open_level_code";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ó¥Æ¥ó¥Ä¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_type_name ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ̾
+ * @param $contents_type_name ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ̾
+ * @return ¥³¥ó¥Æ¥ó¥Ä¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_empty_contents_row($community_type_name, $contents_type_name) {
+ $community_type_name = pg_escape_string($community_type_name);
+ $contents_type_name = pg_escape_string($contents_type_name);
+
+ $sql = "SELECT *";
+ $sql .= " FROM open_level_list, community_type_master, contents_type_master, open_level_master";
+ $sql .= " WHERE open_level_list.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '$community_type_name'";
+ $sql .= " AND open_level_list.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND contents_type_master.contents_type_name = '$contents_type_name'";
+ $sql .= " AND open_level_list.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND open_level_list.is_default = 't'";
+ $row = ACSDB::_get_row($sql);
+
+ return $row;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ó¥Æ¥ó¥Ä¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ¥³¥ó¥Æ¥ó¥Ä¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_contents($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // DELETE
+ $sql = "DELETE";
+ $sql .= " FROM contents";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $sql .= " AND contents_type_code = $form[contents_type_code]";
+ // open_level_code¤ò»ØÄꤷ¤Ê¤¤
+ $ret = ACSDB::_do_query($sql);
+
+ // INSERT
+ $sql = "INSERT INTO contents";
+ $sql .= " (community_id, contents_type_code, contents_value, open_level_code)";
+ $sql .= " VALUES ($form[community_id], $form[contents_type_code], $form[contents_value], $form[open_level_code])";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /*
+ * ¥³¥ó¥Æ¥ó¥Ä¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $contents_type_code ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @param $community_type_name ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ̾
+ * @return ¥³¥ó¥Æ¥ó¥Ä¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_contents_trusted_community_row_array($community_id, $contents_type_code, $open_level_code) {
+ $community_id = pg_escape_string($community_id);
+ $contents_type_code = pg_escape_string($contents_type_code);
+ $open_level_code = pg_escape_string($open_level_code);
+ $community_type_name = pg_escape_string($community_type_name);
+
+ $sql = "SELECT community.community_id, community.community_name, community.community_type_code,community_type_master.community_type_name";
+ $sql .= " FROM contents_trusted_community, community, community_type_master";
+ $sql .= " WHERE contents_trusted_community.community_id = '$community_id'";
+ $sql .= " AND contents_trusted_community.contents_type_code = '$contents_type_code'";
+ $sql .= " AND contents_trusted_community.open_level_code = '$open_level_code'";
+ $sql .= " AND contents_trusted_community.trusted_community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " ORDER BY community.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /*
+ * ¥³¥ó¥Æ¥ó¥Ä¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥³¥ó¥Æ¥ó¥Ä¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_contents_trusted_community($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO contents_trusted_community";
+ $sql .= " (community_id, contents_type_code, open_level_code, trusted_community_id)";
+ $sql .= " VALUES ($form[community_id], $form[contents_type_code], $form[open_level_code], $form[trusted_community_id])";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /*
+ * ¥³¥ó¥Æ¥ó¥Ä¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¹¹¿·¤¹¤ëÁ°½àÈ÷
+ *
+ * @param $community_id
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_contents_trusted_community($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "DELETE FROM contents_trusted_community";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $sql .= " AND contents_type_code = $form[contents_type_code]";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /*
+ * »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id
+ * @return ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_join_trusted_community_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT community.community_id, community.community_name";
+ $sql .= " FROM join_trusted_community, community";
+ $sql .= " WHERE join_trusted_community.community_id = '$community_id'";
+ $sql .= " AND join_trusted_community.trusted_community_id = community.community_id";
+ $sql .= " ORDER BY community.community_name";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /*
+ * »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_join_trusted_community($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO join_trusted_community";
+ $sql .= " (community_id, trusted_community_id)";
+ $sql .= " VALUES ($form[community_id], $form[trusted_community_id])";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /*
+ * »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤òºï½ü¤¹¤ë
+ *
+ * @param $form »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_join_trusted_community($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "DELETE FROM join_trusted_community";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+
+ /*
+ * »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¹¹¿·¤¹¤ë
+ *
+ * @param $form »²²Ã»ñ³Ê¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_join_trusted_community($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "UPDATE join_trusted_community";
+ $sql .= " SET trusted_community_id = $form[trusted_community_id]";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯¤òÀßÄꤹ¤ë
+ *
+ * @param $parent_community_id ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $sub_community_id ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_community_link($parent_community_id, $sub_community_id) {
+ $parent_community_id = pg_escape_string($parent_community_id);
+ $sub_community_id = pg_escape_string($sub_community_id);
+
+ $sql = "INSERT INTO sub_community";
+ $sql .= " (community_id, sub_community_id)";
+ $sql .= " VALUES ('$parent_community_id', '$sub_community_id')";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯¤òºï½ü¤¹¤ë
+ *
+ * @param $parent_community_id ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $sub_community_id ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_community_link($parent_community_id, $sub_community_id) {
+ $parent_community_id = pg_escape_string($parent_community_id);
+ $sub_community_id = pg_escape_string($sub_community_id);
+
+ $sql = "DELETE FROM sub_community";
+ $sql .= " WHERE community_id = '$parent_community_id'";
+ $sql .= " AND sub_community_id = '$sub_community_id'";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+
+ /**
+ * ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_sub_community_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT SUB.community_id, SUB.community_name, SUB.file_id";
+ $sql .= " FROM community, sub_community, (community LEFT OUTER JOIN community_image_file USING(community_id)) as SUB";
+ $sql .= " WHERE community.community_id = '$community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = SUB.community_id";
+ $sql .= " ORDER BY SUB.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $parent_community_id ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $sub_community_id ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_sub_community_row($parent_community_id, $sub_community_id) {
+ $parent_community_id = pg_escape_string($parent_community_id);
+ $sub_community_id = pg_escape_string($sub_community_id);
+
+ $sql = "SELECT SUB.*";
+ $sql .= " FROM community, community_type_master, sub_community, community as SUB";
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+ $sql .= " AND community.community_id = '$parent_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = SUB.community_id";
+ $sql .= " AND SUB.community_id = '$sub_community_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_parent_community_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT community.community_id, community.community_name, community.file_id";
+ $sql .= " FROM (community LEFT OUTER JOIN community_image_file USING(community_id)) as community, sub_community, community as SUB";
+ $sql .= " WHERE community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = SUB.community_id";
+ $sql .= " AND SUB.community_id = '$community_id'";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $parent_community_id ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $sub_community_id ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_parent_community_row($parent_community_id, $sub_community_id) {
+ $parent_community_id = pg_escape_string($parent_community_id);
+ $sub_community_id = pg_escape_string($sub_community_id);
+
+ $sql = "SELECT community.*";
+ $sql .= " FROM community, community_type_master, sub_community, community as SUB";
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+ $sql .= " AND community.community_id = '$parent_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = SUB.community_id";
+ $sql .= " AND SUB.community_id = '$sub_community_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_community_member_user_info_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT user_info.user_community_id, USER_NAME_C.contents_value as user_name, USER_COMMUNITY.community_name, USER_COMMUNITY.file_id";
+ $sql .= " FROM community_member, user_info, (community LEFT OUTER JOIN community_image_file USING(community_id)) as USER_COMMUNITY, contents as USER_NAME_C, contents_type_master as USER_NAME_CTM";
+ $sql .= " WHERE community_member.community_id = '$community_id'";
+ $sql .= " AND community_member.user_community_id = user_info.user_community_id";
+ $sql .= " AND user_info.user_community_id = USER_COMMUNITY.community_id";
+ // »á̾
+ $sql .= " AND user_info.user_community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ $sql .= " ORDER BY user_info.user_id ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return array ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤Î°ìÍ÷
+ */
+ static function get_community_member_mail_address_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT user_info.user_id, user_info.user_community_id, " .
+ " USER_MAIL_C.contents_value as mail_address, " .
+ " USER_NAME_C.contents_value as user_community_name, " .
+ " USER_LANG_C.contents_value as mail_lang " .
+ " FROM ((((community_member " .
+ " INNER JOIN user_info " .
+ " ON community_member.user_community_id = user_info.user_community_id) " .
+ " INNER JOIN community as USER_COMMUNITY " .
+ " ON community_member.user_community_id = USER_COMMUNITY.community_id) " .
+ " INNER JOIN contents as USER_MAIL_C " .
+ " ON community_member.user_community_id = USER_MAIL_C.community_id) " .
+ " INNER JOIN contents as USER_NAME_C ".
+ " ON community_member.user_community_id = USER_NAME_C.community_id) " .
+ " LEFT JOIN (SELECT * FROM contents WHERE contents_type_code = '51') " .
+ " as USER_LANG_C ".
+ " ON community_member.user_community_id = USER_LANG_C.community_id " .
+ " WHERE community_member.community_id = ${community_id}" .
+ " AND USER_MAIL_C.contents_type_code = '02' " . // 02...¥á¡¼¥ë¥¢¥É¥ì¥¹
+ " AND USER_NAME_C.contents_type_code = '01' " . // 01...»á̾
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ $sql .= " ORDER BY user_info.user_id ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¿Í¿ô¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return int ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¿Í¿ô
+ */
+ static function get_community_member_count($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT COUNT(*) AS cnt " .
+ " FROM community_member " .
+ " INNER JOIN community as USER_COMMUNITY " .
+ " ON community_member.user_community_id = USER_COMMUNITY.community_id " .
+ " WHERE community_member.community_id = ${community_id}" .
+ " AND USER_COMMUNITY.delete_flag != 't'";
+
+ return ACSDB::_get_value($sql);
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤Î·ï¿ô¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_community_member_num($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT count(*)";
+ $sql .= " FROM community_member, community as USER_COMMUNITY, user_info";
+ $sql .= " WHERE community_member.community_id = '$community_id'";
+ $sql .= " AND community_member.user_community_id = user_info.user_community_id";
+ $sql .= " AND user_info.user_community_id = USER_COMMUNITY.community_id";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_community_admin_user_info_row_array($community_id) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT user_info.user_community_id, USER_NAME_C.contents_value as user_name, USER_COMMUNITY.community_name, USER_COMMUNITY.file_id";
+ $sql .= " FROM community_member, community_member_type_master, user_info, (community LEFT OUTER JOIN community_image_file USING(community_id)) as USER_COMMUNITY, contents as USER_NAME_C, contents_type_master as USER_NAME_CTM";
+ $sql .= " WHERE community_member.community_id = '$community_id'";
+ $sql .= " AND community_member.community_member_type_code = community_member_type_master.community_member_type_code";
+ $sql .= " AND community_member_type_master.community_member_type_name = '".ACSMsg::get_mst('community_member_type_master','D10')."'";
+ $sql .= " AND community_member.user_community_id = user_info.user_community_id";
+ $sql .= " AND user_info.user_community_id = USER_COMMUNITY.community_id";
+ // »á̾
+ $sql .= " AND user_info.user_community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ $sql .= " ORDER BY user_info.user_community_id ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤òºï½ü¤¹¤ë
+ *
+ * @param $community_id
+ * @param $user_community_id_array
+ * @return true / false
+ */
+ static function delete_community_member ($community_id, $user_community_id_array) {
+ $target_user_community_id_str = implode(", ", $user_community_id_array);
+
+ $sql = "DELETE";
+ $sql .= " FROM community_member";
+ $sql .= " WHERE community_id = '$community_id'";
+ $sql .= " AND user_community_id IN ($target_user_community_id_str)";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤òºï½ü¤¹¤ë
+ * delete_flag ¤Ë true ¤ò¥»¥Ã¥È
+ *
+ * @param $community_id
+ * @return true / false
+ */
+ static function delete_community ($community_id) {
+ $sql = "UPDATE community";
+ $sql .= " SET";
+ $sql .= " delete_flag = 't'";
+ $sql .= " WHERE community_id = '$community_id'";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤â¸¡º÷·ë²Ì¤Ë´Þ¤á¤ë¤¿¤á)
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó
+ */
+ static function get_community_row_array($user_community_id = '') {
+ $sql = "SELECT *";
+ $sql .= " FROM community, community_type_master,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM,"; // Á´ÂÎ
+ $sql .= " open_level_master as SELF_OLM"; // Á´ÂΤÎopen_level_master
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND (";
+ $sql .= " (";
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ê¤¤
+ $sql .= " SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+ $sql .= " )";
+ if ($user_community_id) {
+ $sql .= " OR (";
+ $sql .= " SELF_OLM.open_level_name = '".ACSMsg::get_mst('open_level_master','D03')."'";
+ $sql .= " AND acs_is_community_member('$user_community_id', community.community_id)";
+ $sql .= " )";
+ }
+ $sql .= " )";
+
+ $sql .= " ORDER BY community.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤ò¸¡º÷¤¹¤ë
+ *
+ * @param $user_community_id ¥¢¥¯¥»¥¹¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤â¸¡º÷·ë²Ì¤Ë´Þ¤á¤ë¤¿¤á)
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó
+ */
+ static function search_community_row_array($user_community_id = '', $form = array()) {
+ $sql = "SELECT *";
+ if ($form['order'] == 'community_member_num') {
+ $sql .= ", acs_get_community_member_num(community.community_id) as community_member_num";
+ }
+ $sql .= " FROM community, community_type_master,";
+ $sql .= " category_master,"; // ¥«¥Æ¥´¥ê
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM,"; // Á´ÂÎ
+ $sql .= " open_level_master as SELF_OLM,"; // Á´ÂΤÎopen_level_master
+ $sql .= " contents as COMMUNITY_PROFILE_C, contents_type_master as COMMUNITY_PROFILE_CTM"; // ¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë(³µÍ×)
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND (";
+ $sql .= " (";
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ê¤¤
+ $sql .= " SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+ $sql .= " )";
+ if ($user_community_id) {
+ $sql .= " OR (";
+ $sql .= " SELF_OLM.open_level_name = '".ACSMsg::get_mst('open_level_master','D03')."'";
+ $sql .= " AND acs_is_community_member('$user_community_id', community.community_id)";
+ $sql .= " )";
+ }
+ $sql .= " )";
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë
+ $sql .= " AND community.community_id = COMMUNITY_PROFILE_C.community_id";
+ $sql .= " AND COMMUNITY_PROFILE_C.contents_type_code = COMMUNITY_PROFILE_CTM.contents_type_code";
+ $sql .= " AND COMMUNITY_PROFILE_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D07')."'";
+
+ // ¸¡º÷¾ò·ï //
+ // ¥¡¼¥ï¡¼¥É
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " community.community_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR COMMUNITY_PROFILE_C.contents_value ILIKE '%$query%'";
+ $sub_where_sql .= " OR category_master.category_name ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+
+ // ¥«¥Æ¥´¥ê
+ $sql .= " AND community.category_code = category_master.category_code";
+ if ($form['category_code']) {
+ $sql .= " AND community.category_code = '" . pg_escape_string($form['category_code']) . "'";
+ }
+
+ // »²²Ã»ñ³Ê
+ if ($form['admission_flag'] == 't' || $form['admission_flag'] == 'f') {
+ $sql .= " AND community.admission_flag = '$form[admission_flag]'";
+ }
+
+ // ORDER
+ if ($form['order'] == 'new') {
+ $sql .= " ORDER BY community.register_date DESC";
+ } elseif ($form['order'] == 'community_member_num') {
+ $sql .= " ORDER BY community_member_num DESC, community.community_name ASC";
+ } else {
+ $sql .= " ORDER BY community.community_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¿·Ã女¥ß¥å¥Ë¥Æ¥£¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¿·Ã女¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_new_community_row_array() {
+ $limit = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+
+ $sql = "SELECT *";
+ $sql .= " FROM community, community_type_master,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM,"; // Á´ÂÎ
+ $sql .= " open_level_master as SELF_OLM"; // Á´ÂΤÎopen_level_master
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ê¤¤
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ $sql .= " ORDER BY community.register_date DESC";
+ // LIMIT
+ $sql .= " LIMIT $limit";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥é¥ó¥¥ó¥°¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¥é¥ó¥¥ó¥°¾ðÊó¤Î°ìÍ÷
+ */
+ static function get_ranking_community_row_array() {
+ $limit = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D05'), 'COMMUNITY_RANKING_COUNT_TERM');
+
+ $sql = "SELECT community.community_id, community.community_name, community.file_id,";
+ $sql .= " (";
+ $sql .= " acs_get_bbs_score_by_c_id(community.community_id, '$term')";
+ $sql .= " + acs_get_bbs_res_score_by_c_id(community.community_id, '$term')";
+ $sql .= " + acs_get_file_info_score(community.community_id, '$term')";
+ $sql .= " ) as ranking_score";
+
+ $sql .= " FROM (community LEFT OUTER JOIN community_image_file USING(community_id)) as community, community_type_master,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂÎ
+
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ $sql .= " ORDER BY ranking_score DESC";
+ // LIMIT
+ $sql .= " LIMIT $limit";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ // 0pt¤Ï½ü³°
+ $new_row_array = array();
+ foreach ($row_array as $row) {
+ if ($row['ranking_score'] > 0) {
+ array_push($new_row_array, $row);
+ }
+ }
+
+ return $new_row_array;
+ }
+
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_community_admin($acs_user_info_row, $form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+ $community_member_type_master_array = ACSDB::get_master_array('community_member_type');
+ $community_admin_type_code = array_search(ACSMsg::get_mst('community_member_type_master','D10'), $community_member_type_master_array);
+ $community_member_type_code = array_search(ACSMsg::get_mst('community_member_type_master','D20'), $community_member_type_master_array);
+
+ $community_id = pg_escape_string($form['community_id']);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥¢¥¯¥»¥¹¼Ô°Ê³°¤ò¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤È¤·¤ÆÀßÄê
+ $sql = "UPDATE community_member";
+ $sql .= " SET community_member_type_code = '$community_member_type_code'";
+ $sql .= " WHERE user_community_id != '$acs_user_info_row[user_community_id]'";
+ $sql .= " AND community_id = '$community_id'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ if (is_array($form['user_community_id_array'])) {
+ // »ØÄꤵ¤ì¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤È¤·¤ÆÀßÄê
+ foreach ($form['user_community_id_array'] as $user_community_id) {
+ $sql = "UPDATE community_member";
+ $sql .= " SET community_member_type_code = '$community_admin_type_code'";
+ $sql .= " WHERE user_community_id = '$user_community_id'";
+ $sql .= " AND community_id = '$community_id'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥á¥ó¥Ð(Èó´ÉÍý¼Ô)¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_community_admin($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+ $community_member_type_master_array = ACSDB::get_master_array('community_member_type');
+
+ // $form['community_id'] »²²ÃÂоݤΥ³¥ß¥å¥Ë¥Æ¥£
+ // $form['user_community_id'] »²²Ã¤¹¤ë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ $form['community_member_type_code'] = array_search(ACSMsg::get_mst('community_member_type_master','D10'), $community_member_type_master_array);
+ $ret = ACSCommunityMemberModel::insert_community_member($form);
+
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥á¥ó¥Ð(Èó´ÉÍý¼Ô)¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_community_member($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+ $community_member_type_master_array = ACSDB::get_master_array('community_member_type');
+
+ // $form['community_id'] »²²ÃÂоݤΥ³¥ß¥å¥Ë¥Æ¥£
+ // $form['user_community_id'] »²²Ã¤¹¤ë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ $form['community_member_type_code'] = array_search(ACSMsg::get_mst('community_member_type_master','D20'), $community_member_type_master_array);
+ $ret = ACSCommunityMemberModel::insert_community_member($form);
+
+ return $ret;
+ }
+
+
+ // ÈÆÍÑ·Ï //
+
+ /**
+ * ¥æ¡¼¥¶¤¬¥³¥ß¥å¥Ë¥Æ¥£¤Î¥á¥ó¥Ð¡¼¤«¤É¤¦¤«
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return true / false
+ */
+ static function is_community_member($user_community_id, $community_id) {
+ $sql = "SELECT count(*)";
+ $sql .= " FROM community, community_member";
+ $sql .= " WHERE community.community_id = '" . pg_escape_string($community_id) . "'";
+ $sql .= " AND community.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = '" . pg_escape_string($user_community_id) . "'";
+
+ $value = ACSDB::_get_value($sql);
+ return intval($value);
+ }
+
+ /**
+ * ¥æ¡¼¥¶¤¬¥³¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô¤«¤É¤¦¤«
+ *
+ * @param DBÀܳ¥ê¥½¡¼¥¹
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return true / false
+ */
+ static function is_community_admin($user_community_id, $community_id) {
+ $sql = "SELECT count(*)";
+ $sql .= " FROM community, community_member, community_member_type_master";
+ $sql .= " WHERE community.community_id = '" . pg_escape_string($community_id) . "'";
+ $sql .= " AND community.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = '" . pg_escape_string($user_community_id) . "'";
+ $sql .= " AND community_member.community_member_type_code = community_member_type_master.community_member_type_code";
+ $sql .= " AND community_member_type_master.community_member_type_name = '".ACSMsg::get_mst('community_member_type_master','D10')."'";
+
+ $value = ACSDB::_get_value($sql);
+ return intval($value);
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥«¥Æ¥´¥ê¥°¥ë¡¼¥×°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_category_group_master_row_array() {
+ $sql = "SELECT *";
+ $sql .= " FROM category_group_master";
+ $sql .= " ORDER BY category_group_code ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¤ò»ØÄꤷ¤Æ¥«¥Æ¥´¥ê°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $category_group_code ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥³¡¼¥É
+ * @return ¥«¥Æ¥´¥ê°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_category_master_row_array_by_category_group_code($category_group_code) {
+ $category_group_code = pg_escape_string($category_group_code);
+
+ $sql = "SELECT category_code, category_name";
+ $sql .= " FROM category_master";
+ $sql .= " WHERE category_master.category_group_code = '$category_group_code'";
+ $sql .= " ORDER BY category_master.category_code ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î·ï¿ô¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥«¥Æ¥´¥ê¥³¡¼¥É¤ò¥¡¼¤Ë¤·¤¿·ï¿ô¤ÎÇÛÎó
+ */
+ static function get_category_code_community_num_array() {
+ $ret_array = array();
+
+ $sql = "SELECT community.category_code, count(*) as community_num";
+ $sql .= " FROM community, category_master";
+ $sql .= " WHERE community.category_code = category_master.category_code";
+ $sql .= " GROUP BY community.category_code";
+ $sql .= " ORDER BY community.category_code";
+ $row_array = ACSDB::_get_row_array($sql);
+
+ foreach ($row_array as $row) {
+ $ret_array[$row['category_code']] = $row['community_num'];
+ }
+
+ return $ret_array;
+ }
+
+
+ /*
+ * ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã¤Î¾µÇ§¤¬É¬Íפ«¤É¤¦¤«
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¾µÇ§¤¬É¬Í×(true) / ¼«Í³»²²Ã(false)
+ */
+ static function is_admission_required_for_join_community($user_community_id, $community_id) {
+ // ¾µÇ§É¬Íץե饰
+ $is_admission_required = true;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¼«Í³»²²Ã²Äǽ¥³¥ß¥å¥Ë¥Æ¥£
+ $join_trusted_community_row_array = ACSCommunity::get_join_trusted_community_row_array($community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£
+ $my_community_row_array = ACSUser::get_community_row_array($user_community_id);
+ $my_community_id_array = array();
+ foreach ($my_community_row_array as $my_community_row) {
+ array_push($my_community_id_array, $my_community_row['community_id']);
+ }
+
+ if (!ACSLib::get_boolean($community_row['admission_flag'])) {
+ // ¾µÇ§¥Õ¥é¥°¤¬f¤Ê¤é¼«Í³»²²Ã
+ $is_admission_required = false;
+ } else {
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤¬¼«Í³»²²Ã²Äǽ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷¤Ë´Þ¤Þ¤ì¤ë¤«
+ foreach ($join_trusted_community_row_array as $join_trusted_community_row) {
+ //if (array_search($join_trusted_community_row['community_id'], $my_community_id_array)) {
+ if (in_array($join_trusted_community_row['community_id'], $my_community_id_array)) {
+ $is_admission_required = false;
+ break;
+ }
+ }
+ }
+
+ return $is_admission_required;
+ }
+
+
+ /**
+ * ¥Ç¥Õ¥©¥ë¥È¤Î URL ¤òÊÖ¤¹
+ *
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ static function get_default_image_url ($view_mode) {
+ if ($view_mode == 'thumb') {
+ return ACS_DEFAULT_COMMUNITY_IMAGE_FILE_THUMB;
+ } else {
+ return ACS_DEFAULT_COMMUNITY_IMAGE_FILE;
+ }
+ }
+
+ /**
+ * image_url¤ò²Ã¹©¤¹¤ë
+ *
+ * @param community_id
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ static function get_image_url($community_id, $view_mode = '') {
+ $file_id = ACSCommunityImageFileModel::get_file_id($community_id);
+
+ if ($file_id != '') {
+ $image_url = SCRIPT_PATH . '?';
+ $image_url .= MODULE_ACCESSOR . '=Community';
+ $image_url .= '&' . ACTION_ACCESSOR . '=CommunityImage';
+ $image_url .= '&community_id=' . $community_id;
+ $image_url .= '&mode=' . $view_mode;
+ } else {
+ $image_url = ACSCommunity::get_default_image_url($view_mode);
+ }
+
+ return $image_url;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤òÊ£¿ô¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id_array ¥³¥ß¥å¥Ë¥Æ¥£IDÇÛÎó
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÇÛÎó
+ */
+ static function get_each_community_row_array($community_row_array) {
+ if (count($community_row_array)) {
+ $community_id_csv = implode(',', $community_row_array);
+ } else {
+ $community_id_csv = 'null';
+ }
+ $sql = "SELECT *";
+ $sql .= " FROM ((community LEFT OUTER JOIN category_master ON community.category_code = category_master.category_code)";
+ $sql .= " LEFT OUTER JOIN community_image_file USING(community_id)) as JOINED_COMMUNITY,";
+ $sql .= " community_type_master";
+ $sql .= " WHERE JOINED_COMMUNITY.community_id IN( " .$community_id_csv ." )";
+ $sql .= " AND JOINED_COMMUNITY.community_type_code = community_type_master.community_type_code";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤ò¹¹¿·¤¹¤ë
+ * 2006/3/9
+ * @param $form ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * return À®¸ù(¥³¥ß¥å¥Ë¥Æ¥£ID) / ¼ºÇÔ(false)
+ */
+ static function update_community($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ $community_type_code = array_search(ACSMsg::get_mst('community_type_master','D40'), $community_type_master_array);
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¼ïÊÌ¥Þ¥¹¥¿
+ $community_member_type_master_array = ACSDB::get_master_array('community_member_type');
+ $community_id_seq = $form['community_id'];
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // (1) ¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $admission_flag = ACSLib::get_pg_boolean($org_form['admission_flag']);
+ $sql = "UPDATE community";
+ $sql .= " SET community_name = $form[community_name],";
+ $sql .= " category_code = $form[category_code],";
+ $sql .= " admission_flag = $form[admission_flag]";
+ $sql .= " WHERE community_id = $community_id_seq";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2) ¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D07'), $contents_type_master_array);
+ $contents_form['contents_value'] = $org_form['community_profile'];
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D07'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+
+ // (3) »²²Ã»ñ³Ê (join_trusted_community)
+ $join_trusted_community_form = array();
+ $join_trusted_community_form['community_id'] = $community_id_seq;
+ // join_trusted_community Á°½àÈ÷¡¡µì¥Ç¡¼¥¿¤Î°ì³çºï½ü
+ $ret = ACSCommunity::delete_join_trusted_community($join_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ //ÅÐÏ¿
+ if (is_array($org_form['join_trusted_community_id_array'])) {
+ foreach ($org_form['join_trusted_community_id_array'] as $trusted_community_id) {
+ $join_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_join_trusted_community($join_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (4) ¸ø³«ÈÏ°Ï ÅŻҷǼ¨ÈÄ
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D41'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['bbs_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // contents_trusted_community
+ if (is_array($org_form['bbs_trusted_community_id_array'])) {
+ $contents_trusted_community_form = array();
+ $contents_trusted_community_form['community_id'] = $community_id_seq;
+ $contents_trusted_community_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D41'), $contents_type_master_array);
+ $contents_trusted_community_form['open_level_code'] = $org_form['bbs_open_level_code'];
+ // contents_trusted_community Á°½àÈ÷¡¡µì¥Ç¡¼¥¿¤Î°ì³çºï½ü
+ $ret = ACSCommunity::update_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ //ÅÐÏ¿
+ foreach ($org_form['bbs_trusted_community_id_array'] as $trusted_community_id) {
+ $contents_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (5) ¸ø³«ÈÏ°Ï ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À (cotents)
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D31'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['community_folder_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // contents_trusted_community
+ if (is_array($org_form['community_folder_trusted_community_id_array'])) {
+ $contents_trusted_community_form = array();
+ $contents_trusted_community_form['community_id'] = $community_id_seq;
+ $contents_trusted_community_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D31'), $contents_type_master_array);
+ $contents_trusted_community_form['open_level_code'] = $org_form['community_folder_open_level_code'];
+ // contents_trusted_community Á°½àÈ÷¡¡µì¥Ç¡¼¥¿¤Î°ì³çºï½ü
+ $ret = ACSCommunity::update_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // ÅÐÏ¿
+ foreach ($org_form['community_folder_trusted_community_id_array'] as $trusted_community_id) {
+ $contents_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // (6) ¸ø³«ÈÏ°Ï Á´ÂÎ
+ // contents
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D00'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = $org_form['self_open_level_code'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (7) ¥³¥ß¥å¥Ë¥Æ¥£ML
+ // contents
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹
+ if ($org_form['community_ml_address']) {
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] =
+ array_search(ACSMsg::get_mst('contents_type_master','D61'),
+ $contents_type_master_array);
+ $contents_form['contents_value'] = $org_form['community_ml_address'];
+ $contents_form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D61'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¹¥Æ¡¼¥¿¥¹
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id_seq;
+ $contents_form['contents_type_code'] =
+ array_search(ACSMsg::get_mst('contents_type_master','D62'),
+ $contents_type_master_array);
+ $contents_form['contents_value'] = 'QUEUE';
+ $contents_form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D62'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $community_id_seq;
+ }
+
+ /**
+ * ML¥¢¥É¥ì¥¹¤Î¸ºß¥Á¥§¥Ã¥¯
+ * @param $ml_addr ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ * return boolean true...´û¤Ë¸ºß/false...¸ºß¤·¤Ê¤¤
+ */
+ static function is_exists_ml_addr($ml_addr) {
+ $sql = "SELECT count(*) AS cnt FROM contents " .
+ "WHERE contents_type_code = '61' " .
+ "AND contents_value = '" . pg_escape_string($ml_addr) ."'";
+ $row = ACSDB::_get_row($sql);
+ return ($row['cnt']>0 ? TRUE : FALSE);
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ACS Community Folder
+ *
+ * @author kuwayama
+ * @version $Revision: 1.14 $ $Date: 2007/03/01 09:01:12 y-yuki Exp $
+ */
+require_once(ACS_CLASS_DIR . 'ACSGenericFolder.class.php');
+require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+
+define('_ACSCOMMUNITYFOLDER_COMMUNITY_TYPE_MASTER',
+ ACSMsg::get_mst('community_type_master','D40'));
+
+class ACSCommunityFolder extends ACSGenericFolder
+{
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¥¿¥¤¥×̾ */
+ var $community_type_name = _ACSCOMMUNITYFOLDER_COMMUNITY_TYPE_MASTER;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $community_id
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¾ðÊó
+ * @param $folder_id
+ */
+ function ACSCommunityFolder ($community_id, $acs_user_info_row, $folder_id) {
+ /* ¥Õ¥©¥ë¥ÀID¤Î»ØÄ꤬¤Ê¤¤¾ì¹ç¡¢¥ë¡¼¥È¥Õ¥©¥ë¥À¤ò¼èÆÀ¤¹¤ë */
+ if ($folder_id == "") {
+ $folder_row = $this->get_root_folder_row($community_id);
+
+ $folder_id = $folder_row['folder_id'];
+ }
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¼èÆÀ
+ $put_folder_id_array = ACSFolderModel::select_put_folder($community_id, $folder_id);
+
+ // ɽ¼¨ÂоݤȤʤë¥Õ¥©¥ë¥À¤ÎÇÛÎó¤òºîÀ®¡Êɽ¼¨¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À + ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¡Ë
+ $target_folder_array = array();
+ $target_folder_array[] = $folder_id;
+ $target_folder_array = array_merge($target_folder_array, $put_folder_id_array);
+
+ parent::ACSGenericFolder($community_id, $acs_user_info_row, $folder_id, $target_folder_array);
+ }
+
+ /**
+ * ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function set_all_community_folders_obj_array ($community_id) {
+ parent::set_all_community_folders_obj_array($community_id);
+
+ // ¥Ñ¥¹½ç¤Ë¼èÆÀ
+ $target_folder_obj = $this->get_folder_obj();
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤Î¾ì¹ç
+ // ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤Þ¤Ç¸¡º÷
+ if ($target_folder_obj->is_put_folder($this->get_community_id())) {
+ $add_folder_obj_array = array(); // ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤Î¥æ¡¼¥¶¥Õ¥©¥ë¥ÀÆâ¤Î¥Ñ¥¹¤ò³ÊǼ
+ // ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤Î¥æ¡¼¥¶¥Õ¥©¥ë¥À¤ò¼èÆÀ
+ $put_folder_obj = new ACSUserFolder($target_folder_obj->get_community_id(),
+ $target_folder_obj->get_acs_user_info_row(),
+ $target_folder_obj->get_folder_id());
+
+ // ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤Î¥æ¡¼¥¶¥Õ¥©¥ë¥ÀÆâ¤Î¥Ñ¥¹¤ò¼èÆÀ
+ // £±³¬ÁØÌܤΥե©¥ë¥À¤·¤«¥×¥Ã¥È¤Ç¤¤Ê¤¤¤¿¤á¡¢£±³¬ÁØÌܤΥե©¥ë¥À°Ê¹ß¤Î¥Ñ¥¹¤ò¼èÆÀ
+ $add_folder_obj_array = array_slice($put_folder_obj->get_path_folder_obj_array(), 1);
+ }
+ //_debug($add_folder_obj_array);
+ //_debug($this->all_community_folders_obj_array);
+ if ($this->all_community_folders_obj_array == NULL || $add_folder_obj_array == NULL) {
+ return;
+ }
+ $this->all_community_folders_obj_array = array_merge($this->all_community_folders_obj_array, $add_folder_obj_array);
+ //_debug($this->all_community_folders_obj_array);
+ }
+
+ /**
+ * ɽ¼¨Âоݥե©¥ë¥À¤Î¥Ñ¥¹¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È
+ * ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤ËÂбþ
+ */
+ function set_path_folder_obj_array () {
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $all_community_folders_obj_array = $this->get_all_community_folders_obj_array();
+ $display_all_folders_obj_array = array();
+
+ // ¥Ñ¥¹½ç¤Ë¼èÆÀ
+ $target_folder_obj = $this->get_folder_obj();
+
+ $search_parent_folder_id = $target_folder_obj->get_parent_folder_id();
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+ if ($is_root_folder) {
+ // ¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ï¡¢¥Ñ¥¹¤Ë¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÄɲ乤ë
+ array_push($display_all_folders_obj_array, $target_folder_obj);
+ }
+
+ while (!$is_root_folder) {
+ // ¿Æ¥Õ¥©¥ë¥À¤ò¸¡º÷
+ foreach ($all_community_folders_obj_array as $all_community_folders_obj) {
+ $target_folder_id = $all_community_folders_obj->get_folder_id();
+
+ if ($search_parent_folder_id == $target_folder_id) {
+ $search_parent_folder_id = $all_community_folders_obj->get_parent_folder_id();
+ // ¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À¤Î¾ì¹ç¡¢¸¡º÷¤¹¤ë¥Õ¥©¥ë¥À¤ò¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À¤ËÊѹ¹¤¹¤ë
+ if ($all_community_folders_obj->has_put_community()) {
+ $search_parent_folder_id = $all_community_folders_obj->get_put_community_folder_id($this->get_community_id());
+ break;
+ }
+
+ array_unshift($display_all_folders_obj_array, $all_community_folders_obj);
+ break;
+ }
+ }
+ $is_root_folder = $all_community_folders_obj->get_is_root_folder();
+ if ($is_root_folder) {
+ // ºÇ¸å¤Ë¡¢¸½ºß¤Î¥Õ¥©¥ë¥À¤òÄɲÃ
+ array_push($display_all_folders_obj_array, $target_folder_obj);
+ }
+ }
+
+ $this->path_folder_obj_array = $display_all_folders_obj_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥Àºï½ü
+ * ¥×¥Ã¥È¥Õ¥©¥ë¥À¤ò²ò½ü¤¹¤ëµ¡Ç½¤òÄɲÃ
+ *
+ * @param $target_folder_obj ºï½üÂоݤΥե©¥ë¥À
+ */
+ function delete_folder ($target_folder_obj) {
+ // ÇÛ²¼¤Î¥Õ¥©¥ë¥À¹½À®¼èÆÀ
+ $target_folder_obj = $this->get_lower_folder_tree($target_folder_obj);
+
+ // ÇÛ²¼¤ÎÁ´¥Õ¥©¥ë¥ÀID¼èÆÀ
+ $folder_id_array = array(); // ÇÛ²¼¤Î¥Õ¥©¥ë¥ÀÁ´¤Æ¤¬¥»¥Ã¥È¤µ¤ì¤ë
+ $this->get_lower_folder_obj_array($target_folder_obj, $folder_id_array);
+
+ // ÂоݤȤʤë¥Õ¥©¥ë¥À¤âÄɲÃ
+ array_push($folder_id_array, $target_folder_obj->get_folder_id());
+
+ // ¥×¥Ã¥È²ò½ü
+ // ÇÛ²¼¤Î¥Õ¥©¥ë¥À¤Î¥×¥Ã¥È¥Õ¥©¥ë¥À¤âºï½ü¤¹¤ë
+ $put_community_id = $target_folder_obj->get_community_id();
+ foreach ($folder_id_array as $folder_id) {
+ $put_community_folder_id = $folder_id;
+ $ret = ACSFolderModel::delete_all_put_community($put_community_id, $put_community_folder_id);
+ if (!$ret) {
+ return $ret;
+ }
+ }
+
+ // ÂоݤΥե©¥ë¥Àºï½ü
+ return parent::delete_folder($target_folder_obj);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¸¡º÷
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_folder_row_array($community_id, $form) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM folder";
+ $sql .= " WHERE folder.community_id = '$community_id'";
+ $sql .= " AND folder.parent_folder_id is not null";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " folder.folder_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR folder.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ORDER
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY folder.update_date DESC";
+ } else {
+ $sql .= " ORDER BY folder.folder_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥×¥Ã¥È¥Õ¥©¥ë¥À¸¡º÷
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_put_folder_row_array($community_id, $form) {
+ $community_id = pg_escape_string($community_id);
+
+ // 1. ¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥×¥Ã¥È¤µ¤ì¤Æ¤ë¥æ¡¼¥¶¥Õ¥©¥ë¥À¤Îfolder_id¤òÁ´¤Æ¼èÆÀ¤¹¤ë
+ $sql = "SELECT folder_id";
+ $sql .= " FROM put_community";
+ $sql .= " WHERE put_community.put_community_id = '$community_id'";
+ $row_array = ACSDB::_get_row_array($sql);
+ $folder_id_array = array();
+ foreach ($row_array as $row) {
+ array_push($folder_id_array, $row['folder_id']);
+ }
+ if (count($folder_id_array) == 0) {
+ // 0·ï
+ return array();
+ }
+
+ // 2. ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤«¤é¥¢¥¯¥»¥¹²Äǽ¤ÊÃæ¿È¤Î¥Õ¥©¥ë¥À¤Îfolder_id¤òÁ´¤Æ¼èÆÀ¤¹¤ë
+ $user_folder_id_array = ACSGenericFolder::get_recursive_folder_id_array($folder_id_array);
+ foreach ($folder_id_array as $folder_id) {
+ // ¥×¥Ã¥È¤·¤¿¥Õ¥©¥ë¥À¼«ÂΤϸ¡º÷Âоݤˤʤé¤Ê¤¤
+ $key = array_search($folder_id, $user_folder_id_array);
+ if (!($key === false)) {
+ unset($user_folder_id_array[$key]);
+ }
+ }
+ //sort($user_folder_id_array);
+ if (count($user_folder_id_array) == 0) {
+ // 0·ï
+ return array();
+ }
+
+ // 3. ¸¡º÷ÂоݤȤʤ롢¥æ¡¼¥¶¤¬¥×¥Ã¥È¤·¤¿¥Õ¥©¥ë¥À°Ê²¼¤Î¥Õ¥©¥ë¥ÀID CSV
+ $user_folder_id_array_csv = implode(',', $user_folder_id_array);
+
+
+ $sql = "SELECT *";
+ $sql .= " FROM folder";
+ $sql .= " WHERE folder.folder_id IN ($user_folder_id_array_csv)";
+ $sql .= " AND folder.parent_folder_id is not null";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " folder.folder_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR folder.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ORDER
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY folder.update_date DESC";
+ } else {
+ $sql .= " ORDER BY folder.folder_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸¡º÷
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_file_info_row_array($community_id, $form) {
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM folder, folder_file, file_info";
+ $sql .= " WHERE folder.community_id = '$community_id'";
+ $sql .= " AND folder.folder_id = folder_file.folder_id";
+ $sql .= " AND folder_file.file_id = file_info.file_id";
+ $sql .= " AND file_info.owner_community_id = '$community_id'";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " file_info.display_file_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR file_info.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ORDER
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY file_info.update_date DESC";
+ } else {
+ $sql .= " ORDER BY file_info.display_file_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * »ØÄꥳ¥ß¥å¥Ë¥Æ¥£¥×¥Ã¥È¥Õ¥¡¥¤¥ë¸¡º÷
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_put_file_info_row_array($community_id, $form) {
+ $community_id = pg_escape_string($community_id);
+
+ return ACSCommunityFolder::search_all_put_file_info_row_array(
+ $form, "put_community.put_community_id = '$community_id'");
+ }
+
+ /**
+ * Á´¥³¥ß¥å¥Ë¥Æ¥£¥×¥Ã¥È¥Õ¥¡¥¤¥ë¸¡º÷
+ *
+ * @param $community_where put¥³¥ß¥å¥Ë¥Æ¥£¸¡º÷¾ò·ï
+ * @param $unread_check_user_community_id unread¥Á¥§¥Ã¥¯¼Â»Ü»þ¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_all_put_file_info_row_array(
+ $form, $community_where = "", $unread_check_user_community_id = "", $days=false) {
+
+ // 1. ¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥×¥Ã¥È¤µ¤ì¤Æ¤ë¥æ¡¼¥¶¥Õ¥©¥ë¥À¤Îfolder_id¤òÁ´¤Æ¼èÆÀ¤¹¤ë
+ $sql = "SELECT folder_id";
+ $sql .= " FROM put_community";
+ if($community_where != ""){
+ $sql .= " WHERE " . $community_where;
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ $folder_id_array = array();
+ foreach ($row_array as $row) {
+ array_push($folder_id_array, $row['folder_id']);
+ }
+ if (count($folder_id_array) == 0) {
+ // 0·ï
+ return array();
+ }
+
+ // 2. ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤«¤é¥¢¥¯¥»¥¹²Äǽ¤ÊÃæ¿È¤Î¥Õ¥©¥ë¥À¤Îfolder_id¤òÁ´¤Æ¼èÆÀ¤¹¤ë
+ $user_folder_id_array = ACSGenericFolder::get_recursive_folder_id_array($folder_id_array);
+ if (count($user_folder_id_array) == 0) {
+ // 0·ï
+ return array();
+ }
+
+ // 3. ¸¡º÷ÂоݤȤʤ롢¥æ¡¼¥¶¤¬¥×¥Ã¥È¤·¤¿¥Õ¥©¥ë¥À°Ê²¼¤Î¥Õ¥©¥ë¥ÀID CSV
+ $user_folder_id_array_csv = implode(',', $user_folder_id_array);
+
+
+ $sql = "SELECT * ";
+
+ if ($unread_check_user_community_id != '') {
+ $sql .= ",acs_is_unread_file(" .
+ $unread_check_user_community_id . ",file_info.file_id) as is_unread ";
+ }
+
+ $sql .= " FROM folder LEFT OUTER JOIN put_community ON folder.folder_id = put_community.folder_id, folder_file, file_info";
+ $sql .= " WHERE folder.folder_id IN ($user_folder_id_array_csv)";
+ $sql .= " AND folder.folder_id = folder_file.folder_id";
+ $sql .= " AND folder_file.file_id = file_info.file_id";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " file_info.display_file_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR file_info.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if($days !== false){
+ $sql = $sql . " AND " .
+ ACSLib::get_sql_condition_from_today("file_info.update_date", $days);
+ }
+
+ // ORDER
+ if($rows != false){
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $sql = $sql . " OFFSET 0 LIMIT ". $display_count;
+ } else {
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY file_info.update_date DESC";
+ } else {
+ $sql .= " ORDER BY file_info.display_file_name ASC";
+ }
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï¥»¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function set_contents_folder_open_level ($community_id) {
+ // ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈϰϼèÆÀ
+ $open_level_row = ACSFolderModel::select_contents_folder_open_level_row($community_id);
+ if (!$open_level_row) {
+ $community_type_name = $this->get_community_type_name();
+ $open_level_row = ACSFolderModel::select_folder_open_level_default_row ($community_type_name);
+ }
+
+ $this->open_level_code = $open_level_row['open_level_code'];
+ $this->open_level_name = $open_level_row['open_level_name'];
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥»¥Ã¥È
+ $this->set_contents_folder_trusted_community_row_array($open_level_row['trusted_community_row_array']);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Ë¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ë¤«
+ *
+ * @param $target_community_row ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * @return true / false
+ */
+ function has_privilege ($target_community_row) {
+ $ret_folder_obj_array = array();
+
+ /* role_array ¼èÆÀ */
+ $role_array = ACSAccessControl::get_community_role_array($this->get_acs_user_info_row(), $target_community_row);
+
+ $folder_obj = $this->get_folder_obj();
+ $ret_folder_obj = ACSAccessControl::get_valid_obj_row_array_for_community($this->get_acs_user_info_row(), $role_array, array($folder_obj));
+
+ if ($ret_folder_obj) {
+ return true;
+
+ // ¤Ê¤¤¾ì¹ç¤Ï¡¢¥¢¥¯¥»¥¹ÉÔ²Ä
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥Õ¥©¥ë¥À¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥À¥¤¥¢¥ê¡¼¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ function get_new_community_folder_row_array($user_community_id, $days=false, $offset=false) {
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¼èÆÀ
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¾ò·ïcsvʸ»úÎó¼èÆÀ
+ $csv_string =
+ ACSLib::get_csv_string_from_array($community_row_array, 'community_id');
+
+ $row_array = array();
+
+ if ($csv_string!='') {
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ
+ $row_array = ACSCommunityFolder::get_new_folder_row_array(
+ $user_community_id, $csv_string, $days, $rows);
+ }
+ return $row_array;
+ }
+
+ /**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥×¥Ã¥È¥Õ¥©¥ë¥À¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ function get_new_community_put_folder_row_array($user_community_id, &$form, $days=false, $offset=false) {
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¼èÆÀ
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¾ò·ïcsvʸ»úÎó¼èÆÀ
+ $csv_string =
+ ACSLib::get_csv_string_from_array($community_row_array, 'community_id');
+
+ $row_array = array();
+
+ if ($csv_string!='') {
+ $condition = "put_community.put_community_id IN (" . $csv_string . ")";
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¥×¥Ã¥È¥Õ¥©¥ë¥À¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ
+ $row_array = ACSCommunityFolder::search_all_put_file_info_row_array(
+ $form, $condition, $user_community_id, $days, $rows);
+ }
+ return $row_array;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊó DB¥¢¥¯¥»¥¹
+ * ACSCommunityImageFileModel.class.php
+ *
+ * community_image_file¥Æ¡¼¥Ö¥ë
+ * @author akitsu
+ * @version $Revision: 1.5 $Date: 2008/03/24 07:00:36 $
+ */
+class ACSCommunityImageFileModel
+{
+ /* ¥Õ¥¡¥¤¥ëID */
+ var $file_id;
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $community_id;
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ¡ÊÊ£¿ô¡Ë
+ * ¤Ò¤È¤ê¤Î¥æ¡¼¥¶¤¬»ý¤Ä²èÁü¾ðÊó¤Î¤¹¤Ù¤Æ
+ * @param $file_id_array
+ */
+ static function select_community_image_row_array ($community_id) {
+ $sql = "SELECT community_image_file.*,";
+ $sql .= " file_info.display_file_name AS save_file_name,file_info.server_file_name AS insystem_file_name,";
+ $sql .= " file_info.mime_type AS file_kind"; //¼ïÎà
+ $sql .= " FROM file_info, community_image_file";
+ $sql .= " WHERE community_id = " . $community_id . ")";
+ $sql .= " AND file_info.owner_community_id = community_image_file.community_id";
+ $sql .= " ORDER BY community_image_file.file_id ASC";
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ¡Ê£±·ï¡Ë
+ *
+ * @param $file_id
+ */
+ static function select_community_image_row ($community_id) {
+ $community_id_array = array($community_id);
+ $row_array = ACSCommunityImageModel::select_community_image_row_array($file_id_array);
+
+ return $row_array[0];
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£²èÁü¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return file_id
+ */
+ static function get_file_id($community_id) {
+ if (!$community_id) {
+ return;
+ }
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT file_id";
+ $sql .= " FROM community_image_file";
+ $sql .= " WHERE community_image_file.community_id = '$community_id'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊóÄɲÃ
+ *
+ * @param $file_obj
+ */
+ static function insert_community_image ($file_obj) {
+ $sql = "INSERT INTO community_image_file";
+ $sql .= " (file_id, community_id)";
+ $sql .= " VALUES (";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ $sql .= "" . $file_obj->get_owner_community_id();
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊóºï½ü
+ *
+ * @param $file_obj
+ */
+ static function delete_community_image ($file_obj) {
+ $sql = "DELETE FROM community_image_file";
+ $sql .= " WHERE";
+ $sql .= " file_id = " . $file_obj->get_file_id();
+ $sql .= " AND";
+ $sql .= " community_id = " . $file_obj->get_owner_community_id();
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£²èÁü¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ¤¹¤ë¡Ê¸ø³«ÈÏ°ÏÁªÂòͤê¡Ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ³Æ¸ø³«ÈÏ°ÏËè¤Î¥Õ¥¡¥¤¥ëID
+ */
+ static function get_file_id_with_open_level($community_id) {
+ if (!$community_id) {
+ return;
+ }
+ $sql = "SELECT file_id, file_id_ol01, file_id_ol02, file_id_ol05 ";
+ $sql .= " FROM community_image_file";
+ $sql .= " WHERE community_image_file.community_id = '$community_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊó¤ÎÏÀÍýºï½ü¡Ê¸ø³«ÈÏ°ÏÁªÂòͤê¡Ë
+ *
+ * @param $file_obj ²èÁü¥Õ¥¡¥¤¥ë¤Î¥ª¥Ö¥¸¥§¥¯¥È
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_community_image_with_open_level ($file_obj, $open_level_code) {
+
+ $row = ACSCommunityImageFileModel::get_file_id_with_open_level(
+ $file_obj->get_owner_community_id());
+
+ // ¸ø³«ÈϰϤËÍí¤à¥Õ¥¡¥¤¥ëID¤ÏNULL¤È¤¹¤ë
+ $sql = "UPDATE community_image_file";
+ $sql .= " SET";
+ // ͧ¿Í¸þ¤±¤ËÂФ·¤Æºï½ü¤Î¾ì¹ç
+ if ($open_level_code == "05" ) {
+ if ($row['file_id_ol02'] != NULL) {
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ï¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol02'] . ",";
+ } else if ($row['file_id_ol01'] != NULL) {
+ // °ìÈ̸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ï°ìÈ̸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol01'] . ",";
+ }
+ }
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤ËÂФ·¤Æºï½ü¤Î¾ì¹ç
+ if ($open_level_code == "02" ) {
+ if ($row['file_id_ol05'] != NULL) {
+ // ͧ¿Í¸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ïͧ¿Í¸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol05'] . ",";
+ } else if ($row['file_id_ol01'] != NULL) {
+ // °ìÈ̸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ï°ìÈ̸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol01'] . ",";
+ }
+ }
+
+ // °ìÈ̸þ¤±¤ËÂФ·¤Æºï½ü¤Î¾ì¹ç
+ if ($open_level_code == "01" ) {
+ if ($row['file_id_ol05'] != NULL) {
+ // ͧ¿Í¸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ïͧ¿Í¸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol05'] . ",";
+ } else if ($row['file_id_ol02'] != NULL) {
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤Î¥Õ¥¡¥¤¥ëID¤¬¤¢¤ì¤Ð¡¢file_id¤Ï¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤Ë¤¹¤ë
+ $sql .= " file_id = " . $row['file_id_ol02'] . ",";
+ }
+ }
+ $sql .= " file_id_ol" . $open_level_code . " = NULL ";
+ $sql .= " WHERE";
+ $sql .= " community_id = " . $file_obj->get_owner_community_id();
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊóÄɲáʸø³«ÈÏ°ÏÁªÂòͤê¡Ë
+ *
+ * @param $file_obj ¥Õ¥¡¥¤¥ë¾ðÊó
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function put_community_image_with_open_level ($file_obj, $open_level_code) {
+
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤¹¤ë¤«¡©
+ $row = ACSCommunityImageFileModel::get_file_id_with_open_level($file_obj->get_owner_community_id());
+
+ if (!$row) {
+ $ret = ACSCommunityImageFileModel::insert_community_image_with_open_level($file_obj, $open_level_code);
+
+ } else {
+ // ¸ºß¤¹¤ë¾ì¹ç¢ª¥¢¥Ã¥×¥Ç¡¼¥È
+ $ret = ACSCommunityImageFileModel::update_community_image_with_open_level($file_obj, $open_level_code, $row);
+ }
+ return $ret;
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊóINSERT¡Ê¸ø³«ÈÏ°ÏÁªÂòͤê¡Ë
+ *
+ * @param $file_obj ¥Õ¥¡¥¤¥ë¾ðÊó
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_community_image_with_open_level ($file_obj, $open_level_code) {
+
+ $sql = "INSERT INTO community_image_file";
+ $sql .= " (";
+ $sql .= " file_id, ";
+ if ($open_level_code == "01" ) {
+ $sql .= " file_id_ol01,";
+ $sql .= " file_id_ol02,";
+ $sql .= " file_id_ol05,";
+ } else if ($open_level_code == "02" ) {
+ $sql .= " file_id_ol02,";
+ $sql .= " file_id_ol05,";
+ } else if ($open_level_code == "05" ) {
+ $sql .= " file_id_ol05,";
+ }
+ $sql .= " community_id";
+ $sql .= " )";
+ $sql .= " VALUES (";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ if ($open_level_code == "01" ) {
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ } else if ($open_level_code == "02" ) {
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ } else if ($open_level_code == "05" ) {
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ }
+ $sql .= "" . $file_obj->get_owner_community_id();
+ $sql .= ")";
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¾ðÊóUPDATE¡Ê¸ø³«ÈÏ°ÏÁªÂòͤê¡Ë
+ *
+ * @param $file_obj ¥Õ¥¡¥¤¥ë¾ðÊó
+ * @param $open_level_code ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ * @param $file_id_upd_flg = NULL ¥Õ¥¡¥¤¥ë¾ðÊ󹹿·¥Õ¥é¥°
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_community_image_with_open_level ($file_obj, $open_level_code, $row = NULL) {
+
+ $sql = "UPDATE community_image_file";
+ $sql .= " SET ";
+ if ($row != NULL) {
+ $sql .= " file_id = " . $file_obj->get_file_id() . ",";
+
+ // °ìÈ̸þ¤±¤ËÂФ·¤Æ¹¹¿·¤¹¤ë¾ì¹ç
+ if ($open_level_code == "01" ) {
+ if ($row['file_id_ol05'] == NULL) {
+ $sql .= " file_id_ol05 = " . $file_obj->get_file_id(). ",";
+ }
+ if ($row['file_id_ol02'] == NULL) {
+ $sql .= " file_id_ol02 = " . $file_obj->get_file_id(). ",";
+ }
+ }
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±¤ËÂФ·¤Æ¹¹¿·¤¹¤ë¾ì¹ç
+ if ($open_level_code == "02" ) {
+ if ($row['file_id_ol05'] == NULL) {
+ $sql .= " file_id_ol05 = " . $file_obj->get_file_id(). ",";
+ }
+ }
+ }
+ $sql .= " file_id_ol" . $open_level_code . " = " . $file_obj->get_file_id();
+ $sql .= " WHERE ";
+ $sql .= " community_id = " . $file_obj->get_owner_community_id() ;
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+
+ /**
+ * ³ºÅö¤Î¸ø³«ÈϰϤΥե¡¥¤¥ëID¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $open_level_code ¸ø³«ÈÏ°Ï
+ * @return ³ºÅö¤Î¸ø³«ÈϰϤΥե¡¥¤¥ëID
+ */
+ static function get_file_id_for_open_level($community_id, $open_level_code) {
+ if (!$community_id) {
+ return null;
+ }
+ if (!$open_level_code) {
+ return null;
+ }
+ $row = ACSCommunityImageFileModel::get_file_id_with_open_level($community_id);
+ $match_file_id = $row['file_id_ol' . $open_level_code];
+ if (!$match_file_id) {
+ return NULL;
+ }
+ $match_count = 0;
+ if ($match_file_id == $row['file_id_ol05']) {
+ $match_count++;
+ }
+ if ($match_file_id == $row['file_id_ol02']) {
+ $match_count++;
+ }
+ if ($match_file_id == $row['file_id_ol01']) {
+ $match_count++;
+ }
+
+ if ($match_count == 1) {
+ return $match_file_id;
+ }
+ return NULL;
+ }
+
+}
--- /dev/null
+<?php\r
+/**\r
+ * ACS Community Mail\r
+ *\r
+ * @author acs\r
+ * @version $Revision: 1.3 $\r
+ */\r
+\r
+class ACSCommunityMail\r
+{\r
+ /**\r
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿\r
+ *\r
+ * @param $community_id\r
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¾ðÊó\r
+ * @param $folder_id\r
+ */\r
+ function ACSCommunityMail ($community_id, $acs_user_info_row, $folder_id) {\r
+ }\r
+\r
+ /****************************\r
+ * ¥¹¥¿¥Æ¥£¥Ã¥¯¥Õ¥¡¥ó¥¯¥·¥ç¥ó\r
+ ****************************/\r
+\r
+ /**\r
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ø¤Î¥á¡¼¥ëÁ÷¿®(°ì³çÇÛ¿®)\r
+ *\r
+ * define('ACS_COMMUNITY_ML_SERVER') ¤Î£Ó£Í£Ô£Ð¥µ¡¼¥Ð¤ÇÁ÷¿®¤·¤Þ¤¹¡£\r
+ * Á÷¿®¼Ô¤Ï¥³¥ß¥å¥Ë¥Æ¥£¤ËÀßÄꤵ¤ì¤¿¥á¡¼¥ë¥¢¥É¥ì¥¹¤È¤Ê¤ê¤Þ¤¹¡£\r
+ *\r
+ * ¥á¥Ã¥»¡¼¥¸¤ËÂФ·¤Æ°Ê²¼¤Î¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤òÃÖ´¹¤·¤Þ¤¹¡£\r
+ * {USER_COMMUNITY_NAME}\r
+ * {SYSTEM_BASE_URL}\r
+ * {SYSTEM_SCRIPT_PATH}\r
+ * {SYSTEM_MODULE_ACCESSOR}\r
+ * {SYSTEM_ACTION_ACCESSOR}\r
+ * {COMMUNITY_ID}\r
+ * {COMMUNITY_NAME}\r
+ *\r
+ * @param string $community_id ¥³¥ß¥å¥Ë¥Æ¥£id\r
+ * @param string $from_address Á÷¿®¼Ô¥¢¥É¥ì¥¹\r
+ * (From:¤Î¤ßReply-to:¤Ï¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤¬¼«Æ°ÉÕÍ¿¤µ¤ì¤ë)\r
+ * @param string $subject ·ï̾\r
+ * @param string $msg ¥á¥Ã¥»¡¼¥¸ËÜʸ\r
+ * @param string $mmb_id_array Âоݥ桼¥¶¥³¥ß¥å¥Ë¥Æ¥£idÇÛÎó(̤»ØÄê»þ¤ÏÁ´°÷)\r
+ * @return mixed true...Àµ¾ï/PearError ¥ª¥Ö¥¸¥§¥¯¥È...°Û¾ï\r
+ */\r
+ static function send_community_mailing_list (\r
+ $community_id,$from_address,$subject,$msg,$mmb_id_array='') {\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Î¼èÆÀ\r
+ $ml_address_row = ACSCommunity::get_contents_row(\r
+ $community_id, ACSMsg::get_mst('contents_type_master','D61'));\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ\r
+ $ml_status_row = ACSCommunity::get_contents_row(\r
+ $community_id, ACSMsg::get_mst('contents_type_master','D62'));\r
+\r
+ $ml_address = $ml_address_row['contents_value'];\r
+ $ml_status = $ml_status_row['contents_value'];\r
+\r
+ if ($ml_address == '' || $ml_status != 'ACTIVE') {\r
+ return false;\r
+ }\r
+\r
+ // BBS¥·¥¹¥Æ¥à¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î¼èÆÀ\r
+ $bbs_system_mailaddr = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D03'),\r
+ 'COMMUNITY_ML_MAIL_ADDR');\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐÁ´°÷¤Î¾ðÊó¤ò¼èÆÀ\r
+ $mmb_info_rows =& ACSCommunity::get_community_member_mail_address_row_array(\r
+ $community_id);\r
+\r
+ // $mmb_id_array ¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹²½\r
+ $mmb_array = array();\r
+ if (is_array($mmb_id_array)) {\r
+ foreach ($mmb_id_array as $mmb_id) {\r
+ $mmb_array[$mmb_id] = TRUE;\r
+ }\r
+ }\r
+\r
+ // Bcc¤ÎÀ¸À®\r
+ $bcc = '';\r
+ foreach ($mmb_info_rows as $mmb_info) {\r
+ if ($mmb_id_array == '' || $mmb_array[$mmb_info['user_community_id']]) {\r
+ $bcc .= $bcc == '' ? '' : ',';\r
+ $bcc .= $mmb_info['mail_address'];\r
+ }\r
+ }\r
+\r
+ // ¥·¥¹¥Æ¥à´ØÏ¢¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤ÎÃÖ´¹\r
+ $msg = ACSCommunityMail::get_community_tag_replace($community_id, $msg);\r
+\r
+ // Bcc¥á¡¼¥ëÁ÷¿®\r
+ return ACSLib::send_mail(\r
+ $from_address, \r
+ $bcc, // Repicients¤Ë¤ÏbccÁ÷¿®¥æ¡¼¥¶¤Î¤ß»ØÄê\r
+ '', \r
+ $subject, \r
+ $msg, \r
+ array(\r
+ 'Sender' => $bbs_system_mailaddr,\r
+ 'Bcc' => $bcc,\r
+ 'Return-Path' => $ml_address,\r
+ 'Reply-to' => $ml_address,\r
+ // ¸«¤»¤«¤±¤ÎTo:¤Ë¤ÏML¥¢¥É¥ì¥¹¤òÀßÄê\r
+ 'To' => $ml_address)); \r
+ }\r
+\r
+ /**\r
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ø¤Î¥á¡¼¥ëÁ÷¿®(¸ÄÊÌÇÛ¿®)\r
+ *\r
+ * ¢¨³Æ¥æ¡¼¥¶¤Î¸À¸ìÀßÄê¤Ë½¾¤Ã¤Æ¥¿¥°¤ò¥ê¥×¥ì¡¼¥¹¤·¤Þ¤¹¡£\r
+ * ¢¨¥·¥¹¥Æ¥àÀßÄê¤Î£Ó£Í£Ô£Ð¤ÇÁ÷¿®¤·¤Þ¤¹¡£\r
+ * ¥á¥Ã¥»¡¼¥¸¤ËÂФ·¤Æ°Ê²¼¤Î¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤òÃÖ´¹¤·¤Þ¤¹¡£\r
+ * {USER_COMMUNITY_NAME}\r
+ * {SYSTEM_BASE_URL}\r
+ * {SYSTEM_SCRIPT_PATH}\r
+ * {SYSTEM_MODULE_ACCESSOR}\r
+ * {SYSTEM_ACTION_ACCESSOR}\r
+ * {COMMUNITY_ID}\r
+ * {COMMUNITY_NAME}\r
+ *\r
+ * @param string $community_id ¥³¥ß¥å¥Ë¥Æ¥£id\r
+ * @param string $from Á÷¿®¼Ô\r
+ * @param mixed $subject ÇÛÎó¤Î¾ì¹ç¡§·ï̾(array([lang] => [·ï̾]))\r
+ * ʸ»úÎó¤Î¾ì¹ç¡¢Á´¤Æ¤Î¸À¸ì¤ÇƱ°ì¤Î·ï̾\r
+ * @param mixed $msg ÇÛÎó¤Î¾ì¹ç¡§¥á¥Ã¥»¡¼¥¸ËÜʸ(array([lang] => [ËÜʸ]))\r
+ * ʸ»úÎó¤Î¾ì¹ç¡¢Á´¤Æ¤Î¸À¸ì¤ÇƱ°ì¤Î¥á¥Ã¥»¡¼¥¸ËÜʸ\r
+ * @param string $mmb_id_array Âоݥ桼¥¶¥³¥ß¥å¥Ë¥Æ¥£idÇÛÎó(̤»ØÄê»þ¤ÏÁ´°÷)\r
+ * @return mixed true...Àµ¾ï/PearError ¥ª¥Ö¥¸¥§¥¯¥È...°Û¾ï\r
+ */\r
+ static function send_community_mail ($community_id,$from,$subject,$msg,$mmb_id_array='') {\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐÁ´°÷¤Î¾ðÊó¤ò¼èÆÀ\r
+ $mmb_info_rows =& ACSCommunity::get_community_member_mail_address_row_array(\r
+ $community_id);\r
+\r
+ // ¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id¤ò»ÈÍѤ·¤¿ÇÛÎó¤òÀ¸À®\r
+ $mmb_info_array = array();\r
+ $is_all = $mmb_id_array == '' ? TRUE : FALSE;\r
+ foreach ($mmb_info_rows as $mmb_info) {\r
+ $mmb_info_array[$mmb_info['user_community_id']] = $mmb_info;\r
+ if ($is_all) {\r
+ $mmb_id_array[] = $mmb_info['user_community_id'];\r
+ }\r
+ }\r
+\r
+ // ¸À¸ì¼ïÎàÊ̤˥·¥¹¥Æ¥à´ØÏ¢¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤ÎÃÖ´¹\r
+ $msg_lang = array();\r
+ $lang_list =& ACSMsg::get_lang_list_array();\r
+ foreach ($lang_list as $lang => $lang_disp) {\r
+ $msg_lang[$lang] = ACSCommunityMail::get_community_tag_replace(\r
+ $community_id, (is_array($msg) ? $msg[$lang] : $msg));\r
+ }\r
+\r
+ // Âоݥ桼¥¶¤Ë¥á¡¼¥ë¤òÁ÷¿®\r
+ if (is_array($mmb_id_array)) {\r
+\r
+ foreach ($mmb_id_array as $mmb_id) {\r
+\r
+ $mmb_info =& $mmb_info_array[$mmb_id];\r
+\r
+ $lang = $mmb_info['mail_lang'] == '' ? \r
+ ACS_DEFAULT_LANG : $mmb_info['mail_lang'];\r
+\r
+ $mmb_msg = $msg_lang[$lang];\r
+\r
+ $mmb_subject = is_array($subject) ? $subject[$lang] : $subject;\r
+\r
+ // ̾Á°¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤ÎÃÖ´¹\r
+ $mmb_msg = ACSMsg::get_tag_replace( $mmb_msg, \r
+ array('{USER_COMMUNITY_NAME}'=>$mmb_info['user_community_name']));\r
+ $ret = ACSLib::send_mail($from, $mmb_info['mail_address'],\r
+ '', $mmb_subject, $mmb_msg, array('Sender'=>$from));\r
+ if (Pear::IsError($ret)) {\r
+ return $ret;\r
+ } \r
+ }\r
+ }\r
+ return true;\r
+ }\r
+\r
+ /**\r
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊ󥿥°ÃÖ´¹\r
+ *\r
+ * ¥á¥Ã¥»¡¼¥¸¤ËÂФ·¤Æ°Ê²¼¤Î¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À¤òÃÖ´¹¤·¤Þ¤¹¡£\r
+ * {SYSTEM_BASE_URL}\r
+ * {SYSTEM_SCRIPT_PATH}\r
+ * {SYSTEM_MODULE_ACCESSOR}\r
+ * {SYSTEM_ACTION_ACCESSOR}\r
+ * {COMMUNITY_ID}\r
+ * {COMMUNITY_NAME}\r
+ *\r
+ * @param string $community_id ¥³¥ß¥å¥Ë¥Æ¥£id\r
+ * @param string $msg ¥á¥Ã¥»¡¼¥¸ËÜʸ\r
+ * @return true / false\r
+ */\r
+ static function get_community_tag_replace ($community_id,$msg) {\r
+\r
+ $community_info = array();\r
+\r
+ // ¥·¥¹¥Æ¥àURL\r
+ $system_group = ACSMsg::get_mst('system_config_group','D01');\r
+\r
+ $community_info['system_base_url'] = ACSSystemConfig::get_keyword_value(\r
+ $system_group, 'SYSTEM_BASE_URL');\r
+ $community_info['system_base_login_url'] = ACSSystemConfig::get_keyword_value(\r
+ $system_group, 'SYSTEM_BASE_LOGIN_URL');\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ\r
+ $community_row =& ACSCommunity::get_community_row($community_id);\r
+ $community_info['community_name'] = $community_row['community_name'];\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¡¼URL\r
+ $community_info['community_url'] = \r
+ $community_info['system_base_login_url'] . SCRIPT_PATH .\r
+ "?" . MODULE_ACCESSOR . "=Community" .\r
+ "&" . ACTION_ACCESSOR . "=Index" .\r
+ "&community_id=".$community_id;\r
+\r
+ return ACSMsg::get_tag_replace($msg, array(\r
+ '{SYSTEM_BASE_URL}' => $community_info['system_base_url'],\r
+ '{SYSTEM_SCRIPT_PATH}' => \r
+ $community_info['system_base_login_url'] . SCRIPT_PATH,\r
+ '{SYSTEM_MODULE_ACCESSOR}' => MODULE_ACCESSOR,\r
+ '{SYSTEM_ACTION_ACCESSOR}' => ACTION_ACCESSOR,\r
+ '{COMMUNITY_ID}' => $community_id,\r
+ '{COMMUNITY_NAME}' => $community_info['community_name'],\r
+ '{COMMUNITY_URL}' => $community_info['community_url']\r
+ ));\r
+ }\r
+\r
+ /**\r
+ * ML¤Ø¤Î¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥ÉÄÌÃΥ᡼¥ëÁ÷¿®\r
+ *\r
+ * ³Æ¥æ¡¼¥¶¤Î¸À¸ì¤ËÂбþ¤·¤Æ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @return true / false\r
+ */\r
+ static function send_fileupload_mail($community_id, &$user_info, &$folder, &$file) {\r
+\r
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ²èÌÌURL\r
+ $file_detail_url = "{SYSTEM_SCRIPT_PATH}" .\r
+ "?{SYSTEM_MODULE_ACCESSOR}=Community" .\r
+ "&{SYSTEM_ACTION_ACCESSOR}=FileDetail" .\r
+ "&community_id={$community_id}" .\r
+ "&folder_id={$folder->folder_id}" .\r
+ "&file_id={$file->file_id}";\r
+ \r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ\r
+ $community_row =& ACSCommunity::get_community_row($community_id);\r
+\r
+ // ³Æ¸À¸ìÍѤΥá¥Ã¥»¡¼¥¸¤ò½àÈ÷\r
+ $msgs = array();\r
+ $org_lang = ACSMsg::get_lang();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang => $lang_disp) {\r
+\r
+ ACSMsg::set_lang($lang);\r
+ $msgs[$lang] = ACSMsg::get_serial_msg('lib',basename(__FILE__),'UPL%03d');\r
+ $msgs[$lang] = ACSMsg::get_tag_replace($msgs[$lang], array(\r
+ '{COMMUNITY_NAME}' => $community_row['community_name'],\r
+ '{USER_NAME}' => $user_info['user_name'],\r
+ '{USER_COMMUNITY_NAME}' => $user_info['community_name'],\r
+ '{FILE_DETAIL_URL}' => $file_detail_url,\r
+ '{UPLOAD_FILE_NAME}' => $file->display_file_name\r
+ ));\r
+ }\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¼èÆÀ\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ·ï̾\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M001');\r
+\r
+ // ¥á¡¼¥ëÁ÷¿®\r
+ return ACSCommunityMail::send_community_mail(\r
+ $community_id, $system_mail_addr, $subject, $msgs);\r
+ }\r
+\r
+ /**\r
+ * ¤Ø¤Î¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¥×¥Ã¥ÈÄÌÃΥ᡼¥ë\r
+ *\r
+ * ³Æ¥æ¡¼¥¶¤Î¸À¸ì¤ËÂбþ¤·¤Æ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @return true / false\r
+ */\r
+ static function send_putfolder_mail(&$user_info, &$folder, $community_id) {\r
+\r
+ // ¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë°ìÍ÷²èÌÌURL\r
+ $folder_list_url = "{SYSTEM_SCRIPT_PATH}" .\r
+ "?{SYSTEM_MODULE_ACCESSOR}=Community" .\r
+ "&{SYSTEM_ACTION_ACCESSOR}=Folder" .\r
+ "&community_id=" . $community_id .\r
+ "&folder_id=" . $folder['folder_id'];\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ\r
+ $community_row =& ACSCommunity::get_community_row($community_id);\r
+\r
+ // ³Æ¸À¸ìÍѤΥá¥Ã¥»¡¼¥¸¤ò½àÈ÷\r
+ $msgs = array();\r
+ $org_lang = ACSMsg::get_lang();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang => $lang_disp) {\r
+\r
+ ACSMsg::set_lang($lang);\r
+ $msgs[$lang] = ACSMsg::get_serial_msg('lib',basename(__FILE__),'PUT%03d');\r
+ $msgs[$lang] = ACSMsg::get_tag_replace($msgs[$lang], array(\r
+ '{USER_NAME}' => $user_info['user_name'],\r
+ '{USER_COMMUNITY_NAME}' => $user_info['community_name'],\r
+ '{FOLDER_LIST_URL}' => $folder_list_url,\r
+ '{PUT_FOLDER_NAME}' => $folder['folder_name']\r
+ ));\r
+\r
+ // subject¤ÎÊÔ½¸\r
+ $subjects[$lang] = ACSMsg::get_mdmsg(__FILE__, 'M005');\r
+ }\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¼èÆÀ\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ·ï̾\r
+ //$subject = ACSMsg::get_mdmsg(__FILE__,'M005');\r
+\r
+ // ¥á¡¼¥ëÁ÷¿®\r
+ return ACSCommunityMail::send_community_mail(\r
+ $community_id, $system_mail_addr, $subjects, $msgs);\r
+ }\r
+\r
+ /**\r
+ * ¥¹¥±¥¸¥å¡¼¥ëÄÌÃΥ᡼¥ë¤ÎÁ÷¿®\r
+ *\r
+ * ³Æ¥æ¡¼¥¶¤Î¸À¸ì¤ËÂбþ¤·¤Æ¥¹¥±¥¸¥å¡¼¥ë´ØÏ¢¤Î<br>\r
+ * ÄÌÃΥ᡼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @param object $schedule ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹(ACSSchedule)\r
+ * @param string $serial_msg_key_fmg ¥·¥ê¥¢¥ë¥á¥Ã¥»¡¼¥¸¼èÆÀÍÑ¥Õ¥©¡¼¥Þ¥Ã¥È(Îã:"RMD%03d")\r
+ * @param string $subject_msg_key ·ï̾¥á¥Ã¥»¡¼¥¸¼èÆÀÍÑ¥¡¼(Îã:"M001")\r
+ * @param array $additional_tags Äɲ乤ëÃÖ´¹¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À(̤»ØÄê¤â²Ä)\r
+ * @param array $additional_message_tags Äɲ乤ëÃÖ´¹¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À(¥á¥Ã¥»¡¼¥¸id»ØÄê)\r
+ * (̤»ØÄê¤â²Ä) ¥á¡¼¥ë¸À¸ì¤ËÂбþ¤·¤ÆÃÖ´¹¤µ¤ì¤Þ¤¹\r
+ * @return boolean true/false\r
+ */\r
+ static function send_schedule_announce_mail (\r
+ &$schedule, \r
+ $serial_msg_key_fmg, \r
+ $subject_msg_key, \r
+ $additional_tags = "",\r
+ $additional_message_tags = "") {\r
+\r
+ // ¥¹¥±¥¸¥å¡¼¥ë£Õ£Ò£Ì\r
+ $schedule_url = "{SYSTEM_SCRIPT_PATH}" .\r
+ "?{SYSTEM_MODULE_ACCESSOR}=Community" .\r
+ "&{SYSTEM_ACTION_ACCESSOR}=AnswerSchedule" .\r
+ "&community_id={$schedule->community_id}" .\r
+ "&schedule_id={$schedule->schedule_id}";\r
+\r
+ $user_community_row =& ACSUser::get_user_profile_row($schedule->user_community_id);\r
+\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¼èÆÀ\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value(\r
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ³Æ¸À¸ìÍѤΥá¥Ã¥»¡¼¥¸¤ò½àÈ÷\r
+ $msgs = array();\r
+ $subjects = array();\r
+ $org_lang = ACSMsg::get_lang();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang => $lang_disp) {\r
+\r
+ ACSMsg::set_lang($lang);\r
+\r
+ $tags_array = array(\r
+ '{USER_NAME}' => $user_community_row['user_name'],\r
+ '{USER_COMMUNITY_NAME}' => $user_community_row['community_name'],\r
+ '{SCHEDULE_NAME}' => $schedule->schedule_name,\r
+ '{SCHEDULE_DETAIL}' => $schedule->schedule_detail,\r
+ '{SCHEDULE_CLOSING_DATETIME}' => ACSLib::convert_pg_date_to_str(\r
+ $schedule->schedule_closing_datetime),\r
+ '{SCHEDULE_URL}' => $schedule_url\r
+ );\r
+\r
+ if (is_array($additional_tags)) {\r
+ $tags_array = array_merge($tags_array, $additional_tags);\r
+ }\r
+\r
+ if (is_array($additional_message_tags)) {\r
+ $msg_array = array();\r
+ foreach ($additional_message_tags as $tag => $msg_key) {\r
+ $msg_array[$tag] = ACSMsg::get_mdmsg(__FILE__, $msg_key);\r
+ }\r
+ $tags_array = array_merge($tags_array, $msg_array);\r
+ }\r
+\r
+ $msgs[$lang] = ACSMsg::get_serial_msg(\r
+ 'lib',basename(__FILE__), $serial_msg_key_fmg);\r
+ $msgs[$lang] = ACSMsg::get_tag_replace($msgs[$lang], $tags_array);\r
+\r
+ // subject¤ÎÊÔ½¸\r
+ $subjects[$lang] = ACSMsg::get_mdmsg(__FILE__, $subject_msg_key);\r
+\r
+ }\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ // ¥á¡¼¥ë¤ÎÁ÷¿®(Á´¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð)\r
+ return ACSCommunityMail::send_community_mail(\r
+ $schedule->community_id, $system_mail_addr, $subjects, $msgs);\r
+ }\r
+\r
+}\r
+?>\r
--- /dev/null
+<?php
+// $Id: ACSCommunityMemberModel.class.php,v 1.2 2006/01/19 10:03:36 w-ota Exp $
+
+/*
+ * community_member¥â¥Ç¥ë
+ */
+class ACSCommunityMemberModel {
+
+ /*
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐINSERT
+ *
+ * @param $form community_member¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_community_member($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO community_member";
+ $sql .= " (community_id, user_community_id, community_member_type_code)";
+ $sql .= " VALUES ($form[community_id], $form[user_community_id], $form[community_member_type_code])";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ACS Css
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $ $Date: 2007/03/27 02:12:31 $
+ */
+class ACSCss
+{
+ /* css¥Õ¥¡¥¤¥ë */
+ var $css_file_path;
+
+ /* css¥Õ¥¡¥¤¥ëÆâÍÆ */
+ var $css_file_contents;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param string $css_file_path css¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ */
+ function ACSCss ($css_file_path) {
+ $this->set_css_contents ($css_file_path);
+ }
+
+ /**
+ * css¥Õ¥¡¥¤¥ë¤Î¼è¤ê¹þ¤ß (¼«Æ°´Á»úÊÑ´¹Âбþ)
+ *
+ * @param string $css_file_path css¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @return mixed Àµ¾ï»þ...¥Õ¥¡¥¤¥ëÆâÍÆ/¥¨¥é¡¼»þ...FALSE
+ */
+ function set_css_contents ($css_file_path) {
+ $this->css_file_path = $css_file_path;
+ $contents =& implode(NULL, file($css_file_path));
+ $this->css_file_contents = mb_convert_encoding(
+ $contents, mb_internal_encoding(), mb_detect_encoding($contents) ) ;
+ return $this->css_file_contents;
+ }
+
+ /**
+ * acs¥¹¥¿¥¤¥ëÁªÂò¾ðÊó¤Î¼èÆÀ
+ *
+ * @param string $lang ¸À¸ì¼ïÊÌ
+ * @param string $encoding ʸ»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ */
+ function get_style_selection_info_array ($lang,$encoding='') {
+
+ if ($encoding != '') {
+ mb_regex_encoding($encoding);
+ }
+
+ $pattern = 'acs_style_selection[ \t]*\{([^\}]+)\}';
+
+ $result = mb_ereg($pattern, $this->css_file_contents, $regs);
+
+ if ($result != FALSE) {
+
+ $styles = trim($regs[1]);
+ $pattern_fmt = '.*%s[ \t\n\r\f\v]*:*([^;]+);';
+
+ $result = array();
+
+ // ³Æ¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀ
+ mb_ereg(sprintf($pattern_fmt, 'show_list'), $styles, $regs);
+ $result['show_list'] = trim($regs[1]);
+
+ mb_ereg(sprintf($pattern_fmt, 'display_order'), $styles, $regs);
+ $result['display_order'] = trim($regs[1]);
+
+ // ¸À¸ì°Í¸¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀ
+ mb_ereg(sprintf($pattern_fmt, 'name\.'.$lang), $styles, $regs);
+ $result['name'] = trim($regs[1]);
+
+ mb_ereg(sprintf($pattern_fmt, 'description\.'.$lang), $styles, $regs);
+ $result['description'] = trim($regs[1]);
+
+ mb_ereg(sprintf($pattern_fmt, 'thumbnail\.'.$lang), $styles, $regs);
+ $result['thumbnail'] = trim($regs[1]);
+
+ $result['filename'] = basename($this->css_file_path);
+ }
+
+ return $result;
+ }
+
+ /* Static functions */
+
+ /**
+ * acs¥¹¥¿¥¤¥ëÁªÂò¾ðÊó¤Î¼èÆÀ
+ *
+ * @param string $lang ¼èÆÀ¤¹¤ë¾ðÊó¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ * @param string $styles_dir_path css¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹
+ * @param string $match_pattern Âоݥե¡¥¤¥ë¤Î¥Þ¥Ã¥Á¥Ñ¥¿¡¼¥ó
+ * @return array ¥¹¥¿¥¤¥ë¾ðÊó¤ÎÇÛÎó
+ */
+ static function get_style_selection_list_array($lang, $styles_dir_path, $match_pattern='/.*\.css/') {
+
+ $d = dir($styles_dir_path);
+
+ $styles_array = array();
+
+ while (false !== ($file_entry = $d->read())) {
+ //if (fnmatch($match_pattern, $file_entry)) {
+ if (preg_match($match_pattern, $file_entry)) {
+ $css = new ACSCss($styles_dir_path.'/'.$file_entry);
+ $styles_array[$file_entry] =& $css->get_style_selection_info_array($lang);
+ }
+ }
+ $d->close();
+
+ // display_order
+ $order_index = array();
+ foreach ($styles_array as $key => $value) {
+ $order_index[$key] = $value['display_order'];
+ }
+ asort($order_index);
+ $sort_styles_array = array();
+ foreach ($order_index as $key => $value) {
+ $sort_styles_array[] = $styles_array[$key];
+ }
+
+ return $sort_styles_array;
+ }
+
+
+ /**
+ * ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¼ïÎà¤Î¼èÆÀ
+ *
+ * @param string $data ʸ»úÎó
+ */
+ function getEncodingType($data){
+ $encodingArray = array("ISO-2022-JP","UTF-8","Shift-JIS","EUC-JP","ASCII");
+ $n = 0;
+
+ while($focusEncoding = $encodingArray[$n]){
+ if(mb_check_encoding($data,$focusEncoding)) return $focusEncoding;
+ $n++;
+ }
+ return "nil";
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSDB.class.php,v 1.5 2007/03/27 02:12:31 w-ota Exp $
+
+require_once(ACS_LIB_MESSAGE_DIR . 'ACSMsg.class.php');
+
+/*
+ * DB¥¢¥¯¥»¥¹¥¯¥é¥¹
+ */
+class ACSDB {
+
+ /**
+ * ¥Ç¥Ð¥Ã¥°ÍÑ: ¼Â¹Ô¤Ë¼ºÇÔ¤·¤¿SQLʸ¤È¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë
+ */
+ static function _print_debug_msg($sql, $msg = '') {
+ if (ACS_DEBUG_MODE == 1) {
+ echo "<span style=\"background-color:#ffffcc\"><code>$sql</code></span><br>\n";
+ echo "<span style=\"background-color:#ffcccc\"><code>" . pg_last_error() ."</code></span><br>\n";
+ if ($msg) {
+ echo "<span style=\"background-color:#ccccff\"><code>[msg: $msg]</code></span><br>\n";
+ }
+ }
+ }
+
+
+ /**
+ * (ÆâÉô´Ø¿ô) SQLʸ¤ò¼Â¹Ô¤¹¤ë
+ *
+ * @param SQLʸ
+ * @return ¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹
+ */
+ static function _query($sql) {
+ static $db;
+
+ // DBÀܳ
+ if (!$db) {
+ $db = DB::Connect(ACS_DSN);
+ $db->setFetchMode(DB_FETCHMODE_ASSOC);
+ }
+
+ // Ä̾ï¥Æ¡¼¥Ö¥ë̾¤ò¸À¸ì»ÅÍͥơ¼¥Ö¥ë̾¤ËÊÑ´¹
+ $lang = ACSMsg::get_lang(FALSE);
+ if ($lang != ACS_DEFAULT_LANG && $lang != "") {
+ $tables_array = ACSMsg::get_lang_tables_array();
+ foreach ($tables_array as $table) {
+ $sql = mb_ereg_replace(
+ "([, \t\n\(\)\*\+\-\/]+)".
+ "(".$table.")".
+ "([., \t\n\(\)\*\+\-\/]+|$)",
+ "\\1".$table."_".$lang."\\3", $sql);
+ }
+ }
+
+ if (ACS_DEBUG_MODE && isset($_GET['timer'])) {
+ $timelimit = $_GET['timer'];
+ if (empty($timelimit)) {
+ $timelimit = 0; // ¥Ç¥Õ¥©¥ë¥È0ÉÃ
+ }
+
+ $time_array = explode(' ', microtime());
+ $start_time = substr(($time_array[1] . substr($time_array[0], 1)), 0, 14);
+
+ $res = $db->query($sql);
+
+ $time_array = explode(' ', microtime());
+ $end_time = substr(($time_array[1] . substr($time_array[0], 1)), 0, 14);
+
+ $diff_time = substr($end_time - $start_time, 0, 5);
+ if (floatval($diff_time) >= $timelimit) {
+ _debug($sql);
+ echo "<code>$start_time -> $end_time (<font color=red>$diff_time</font> sec)</code>";
+ }
+
+ } else {
+ $res = $db->query($sql);
+ }
+
+ return $res;
+ }
+
+
+ /**
+ * (ÆâÉô´Ø¿ô) SQLʸ¤ò¼Â¹Ô¤·¤Æ¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param SQLʸ
+ * @return ¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹
+ */
+ static function _get_res($sql) {
+ $res = ACSDB::_query($sql);
+ if (DB::isError($res)) {
+ ACSDB::_print_debug_msg($sql);
+ }
+ return $res;
+ }
+
+ /**
+ * (ÆâÉô´Ø¿ô) SQLʸ¤ò¼Â¹Ô¤·¤Æ¥ì¥³¡¼¥ÉÁ´ÂΤò¼èÆÀ¤¹¤ë
+ *
+ * @param SQLʸ
+ * @return Ï¢ÁÛÇÛÎó¤ÎÇÛÎó
+ */
+ static function _get_row_array($sql) {
+ $row_array = array();
+ $res = ACSDB::_get_res($sql);
+ if (!DB::isError($res)) {
+ while ($row = $res->fetchRow()) {
+ array_push($row_array, $row);
+ }
+ }
+ return $row_array;
+ }
+
+ /**
+ * (ÆâÉô´Ø¿ô) SQLʸ¤ò¼Â¹Ô¤·¤Æ1¥ì¥³¡¼¥É¤Î¤ß¤òÏ¢ÁÛÇÛÎó¤Ç¼èÆÀ¤¹¤ë
+ *
+ * @param SQLʸ
+ * @return Ï¢ÁÛÇÛÎó
+ */
+ static function _get_row($sql) {
+ $res = ACSDB::_get_res($sql);
+ if (!DB::isError($res)) {
+ $row = $res->fetchRow();
+ if (($num_rows = $res->numRows()) > 1) {
+ // ¥¯¥¨¥ê·ë²Ì¤¬Ê£¿ô¥ì¥³¡¼¥É¤¢¤ë¾ì¹ç¤Ï·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë
+ ACSDB::_print_debug_msg($sql, "Warning: rows = $num_rows");
+ }
+ }
+ return $row;
+ }
+
+ /**
+ * (ÆâÉô´Ø¿ô) SQLʸ¤ò¼Â¹Ô¤·¤Æ1¥ì¥³¡¼¥É1¥«¥é¥à¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param SQLʸ
+ * @return ¥¹¥«¥é¡¼
+ */
+ static function _get_value($sql) {
+ $res = ACSDB::_get_res($sql);
+ if (!DB::isError($res)) {
+ $row = $res->fetchRow(DB_FETCHMODE_ORDERED); // ¿ôÃͤΥ¤¥ó¥Ç¥Ã¥¯¥¹¤Ç¥«¥é¥à¤Ë¥¢¥¯¥»¥¹¤Ç¤¤ë¤è¤¦¤ËÊѹ¹
+ if (($num_rows = $res->numRows()) > 1 || ($num_cols = $res->numCols()) > 1) {
+ // ¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹¤¬Ê£¿ô¥ì¥³¡¼¥É¤Þ¤¿¤ÏÊ£¿ô¥«¥é¥à¤¢¤ë¾ì¹ç¤Ï·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë
+ ACSDB::_print_debug_msg($sql, "Warning: rows = $num_rows, cols = $num_cols");
+ }
+ }
+ return $row[0];
+ }
+
+ /**
+ * (ÆâÉô´Ø¿ô) Áàºî·ÏSQLʸ¤ò¼Â¹Ô¤¹¤ë (INSERT, UPDATE)
+ *
+ * @param DBÀܳ¥ê¥½¡¼¥¹
+ * @param SQLʸ
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function _do_query($sql) {
+ $res = ACSDB::_query($sql);
+ if (DB::isError($res)) {
+ ACSDB::_print_debug_msg($sql);
+ $ret = false;
+ } else {
+ $ret = true;
+ }
+ return $ret;
+ }
+
+
+ /**
+ * ¼¡¤Î¥·¡¼¥±¥ó¥¹ÈÖ¹æ¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥·¡¼¥±¥ó¥¹Ì¾
+ * @return ¥·¡¼¥±¥ó¥¹ÈÖ¹æ
+ */
+ static function get_next_seq($seq_name) {
+ $sql = "SELECT nextval('$seq_name')";
+ $seq = ACSDB::_get_value($sql);
+ return $seq;
+ }
+
+ /**
+ * ¥Þ¥¹¥¿¥Ç¡¼¥¿¤òÏ¢ÁÛÇÛÎó¤È¤·¤Æ¼èÆÀ¤¹¤ë
+ *
+ * @param ¥Þ¥¹¥¿¥Æ¡¼¥Ö¥ë̾¤Îprefix (***_master)
+ * @return ¥Þ¥¹¥¿¥Ç¡¼¥¿¤ÎÏ¢ÁÛÇÛÎó
+ */
+ static function get_master_array($prefix, $where="") {
+ $ret_array = array();
+
+ $master_table = $prefix . '_master';
+ $code = $prefix . '_code';
+ $name = $prefix . '_name';
+
+ $sql = "SELECT *";
+ $sql .= " FROM $master_table";
+
+ if($where != ""){
+ $sql .= " WHERE " . $where;
+ }
+
+ $sql .= " ORDER BY $code ASC";
+
+ $res = ACSDB::_get_res($sql);
+ while ($row = $res->fetchRow()) {
+ $ret_array[$row[$code]] = $row[$name];
+ }
+
+ ksort($ret_array);
+ return $ret_array;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¡¡¶¦ÄÌ¥¯¥é¥¹
+ *
+ * ACSDiary.class.php
+ * @package acs/webapp/lib/class
+ * @author w-ota @editor akitsu
+ * @since PHP 5.0
+ */
+// $Id: ACSDiary.class.php,v 1.36 2008/05/28 00:38:00 y-yuki Exp $
+
+/*
+ * ¥À¥¤¥¢¥ê¡¼¥¯¥é¥¹
+ */
+class ACSDiary {
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥À¥¤¥¢¥ê¡¼¿Æµ»ö¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_diary_row_array($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num, diary.diary_id as diary_id";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id = '$user_community_id'";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö°ìÍ÷¤ò1Æü¤À¤±¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $year ǯ
+ * @param $month ·î
+ * @param $day Æü
+ * @return ¥À¥¤¥¢¥ê¡¼¿Æµ»ö¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_diary_row_array_by_year_month_day($user_community_id, $year, $month, $day) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ǯ, ·î, Æü
+ $year = sprintf("%04d", $year);
+ $month = sprintf("%02d", $month);
+ $day = sprintf("%02d", $day);
+ // »ØÄêÆü (YYYY/MM/DD)
+ $date = "$year/$month/$day";
+
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num, diary.diary_id as diary_id";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id = '$user_community_id'";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+ // post_date¤ò»ØÄꤹ¤ë
+ $sql .= " AND diary.post_date::DATE = '$date'::DATE";
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö°ìÍ÷¤ò1·îʬ¤À¤±¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $year ǯ
+ * @param $month ·î
+ * @return ¥À¥¤¥¢¥ê¡¼¿Æµ»ö¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_diary_row_array_by_year_month($user_community_id, $year, $month) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ·î¤ÎºÇ½ªÆü¤ò¼èÆÀ
+ $end_day = ACSLib::get_end_day($year, $month);
+ // ǯ, ·î
+ $year = sprintf("%04d", $year);
+ $month = sprintf("%02d", $month);
+
+ // ³«»ÏÆü (YYYY/MM/DD)
+ $start_date = "$year/$month/01";
+ // ½ªÎ»Æü (YYYY/MM/DD)
+ $end_date = "$year/$month/$end_day";
+
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num, diary.diary_id as diary_id";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id = '$user_community_id'";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+ // post_date¤Î´ü´Ö¤ò»ØÄꤹ¤ë
+ $sql .= " AND diary.post_date::DATE BETWEEN '$start_date'::DATE AND '$end_date'::DATE";
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊóarray¼èÆÀ
+ * @param $where_list ¸¡º÷ÍѾò·ï»ØÄê
+ */
+ static function get_diary_where_array ($where_list , $open_lebel_cd , $no_array) {
+ $sql = "SELECT *";
+ $sql .= " FROM diary INNER JOIN open_level_master ON diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " WHERE diary.diary_delete_flag = 'f'";
+ if($open_lebel_cd != '00'){
+ $sql .= " AND diary.open_level_code ='$open_lebel_cd'";
+ }
+ if($where_list != ''){
+ $sql .= $where_list;
+ }
+ if(count($no_array) > 0){
+ $no_array = ACSLib::get_sql_value_array($no_array);
+ $sql .= " AND diary.diary_id NOT IN (" . implode(", ", $no_array) . ")";
+ }
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¸ø³«¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¸ø³«¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö°ìÍ÷
+ */
+ static function get_new_open_diary_row_array() {
+ $limit = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+
+ $sql = "SELECT *";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ // ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ // ¸ø³«ÈϰϤ¬°ìÈ̸ø³«
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND open_level_master.open_level_name = '".ACSMsg::get_mst('open_level_master','D01')."'";
+ // ¥À¥¤¥¢¥ê¡¼ ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+ $sql .= " ORDER BY diary.post_date DESC";
+ // LIMIT
+ $sql .= " LIMIT $limit";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $diary_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return ¥À¥¤¥¢¥ê¡¼¤Î¿Æµ»ö¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_diary_row($diary_id) {
+ $diary_id = pg_escape_string($diary_id);
+
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.diary_id = '$diary_id'";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ // ¥À¥¤¥¢¥ê¡¼ ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND diary.diary_delete_flag != 't'";
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $diary_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return ¥À¥¤¥¢¥ê¡¼¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_diary_trusted_community_row_array($diary_id) {
+ $diary_id = pg_escape_string($diary_id);
+
+ $sql = "SELECT community.community_id, community.community_name, community.community_type_code, community_type_master.community_type_name";
+ $sql .= " FROM diary, diary_trusted_community, community, community_type_master";
+ $sql .= " WHERE diary.diary_id = '$diary_id'";
+ $sql .= " AND diary.diary_id = diary_trusted_community.diary_id";
+ $sql .= " AND diary_trusted_community.trusted_community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " ORDER BY community.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $diary_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return ¥Þ¥¤¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È°ìÍ÷(¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹)
+ */
+ static function get_diary_comment_row_array($diary_id) {
+ $sql = "SELECT *";
+ $sql .= " FROM (diary_comment LEFT OUTER JOIN community ON diary_comment.user_community_id = community.community_id) as JOINED_DIARY_COMMENT";
+ $sql .= " WHERE JOINED_DIARY_COMMENT.diary_id = '$diary_id'";
+ $sql .= " ORDER BY JOINED_DIARY_COMMENT.post_date ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥À¥¤¥¢¥ê¡¼¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(ÅÐÏ¿¤µ¤ì¤¿¥À¥¤¥¢¥ê¡¼ID) / ¼ºÇÔ(false)
+ */
+ static function set_diary($form) {
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ //ACSDB::_do_query("BEGIN");
+
+ $diary_id_seq = ACSDB::get_next_seq('diary_id_seq');
+
+ // diary
+ $sql = "INSERT INTO diary";
+ $sql .= " (diary_id, community_id, subject, body, open_level_code, diary_delete_flag)";
+ $sql .= " VALUES ($diary_id_seq, $form[user_community_id], $form[subject], $form[body], $form[open_level_code],'f')";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ echo "ERROR: insert diary error";
+ return $ret;
+ }
+
+ $form = $org_form;
+
+ if($form['new_file']!=""){
+ //²èÁü¥Õ¥¡¥¤¥ë¤ÎÅÐÏ¿
+ $file_obj = $form['new_file'];
+ $ret = $file_obj->save_upload_file('DIARY'); //¥Õ¥¡¥¤¥ë¤ò¥Ç¥£¥¹¥¯¤ËÊݸ
+ if($ret){
+ $ret = $file_obj->add_file(); //¥Õ¥¡¥¤¥ë¾ðÊó¤òDB¤ØÊݸ
+ }
+ if($ret){
+ $ret = ACSDiaryFile::insert_diary_file($file_obj,$diary_id_seq);
+ }
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ echo "ERROR: insert diary_file error";
+ return $ret;
+ }
+ }
+
+ // diary_trusted_community
+ // ͧ¿Í¤Ë¸ø³«¤òÁªÂò¤·¤¿¾ì¹ç
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+ // ͧ¿Í¤Ë¸ø³«
+ if ($open_level_master_array[$form['open_level_code']] == ACSMsg::get_mst('open_level_master','D05')) {
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤ò»ØÄꤷ¤¿¾ì¹ç
+ if($form['trusted_community_flag']) {
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $trusted_community_id = pg_escape_string($trusted_community_id);
+
+ $sql = "INSERT INTO diary_trusted_community";
+ $sql .= " (diary_id, trusted_community_id)";
+ $sql .= " VALUES ($diary_id_seq, $trusted_community_id)";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ echo "ERROR: insert diary_trusted_community error:FRIEND";
+ return $ret;
+ }
+ }
+
+ } else {
+ // Á´¤Æ¤Î¥Þ¥¤¥Õ¥ì¥ó¥º
+ $trusted_community_id = ACSUser::get_friends_community_id($form['user_community_id']);
+
+ $sql = "INSERT INTO diary_trusted_community";
+ $sql .= " (diary_id, trusted_community_id)";
+ $sql .= " VALUES ($diary_id_seq, $trusted_community_id)";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ echo "ERROR: insert diary_trusted_community error:ALL";
+ return $ret;
+ }
+ }
+
+ }
+
+ // COMMIT
+ //ACSDB::_do_query("COMMIT");
+
+ if ($ret) {
+ return $diary_id_seq;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È¾ðÊó¤ÎÇÛÎó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_diary_comment($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+//°ì°Õ»ØÄê¤Î¤¿¤á¤Î¥³¥á¥ó¥ÈID
+ $diary_comment_id_seq = ACSDB::get_next_seq('diary_comment_id_seq');
+
+ $sql = "INSERT INTO diary_comment";
+ $sql .= " (diary_comment_id, diary_id, user_community_id, body,diary_comment_delete_flag)";
+ $sql .= " VALUES ($diary_comment_id_seq, $form[diary_id], $form[user_community_id], $form[body],'f')";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¿·Ãå¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥À¥¤¥¢¥ê¡¼¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãå¥À¥¤¥¢¥ê¡¼°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_new_diary_row_array($user_community_id, $days=false, $offset=false) {
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ $friends_row_array = ACSUser::get_simple_friends_row_array($user_community_id);
+ $friends_user_community_id_array = array();
+ foreach ($friends_row_array as $index => $user_info_row) {
+ array_push($friends_user_community_id_array, $user_info_row['user_community_id']);
+ }
+ if (count($friends_user_community_id_array)) {
+ $friends_user_community_id_csv = implode(',', $friends_user_community_id_array);
+ } else {
+ $friends_user_community_id_csv = 'null';
+ }
+
+ //
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥À¥¤¥¢¥ê¡¼¤òºÇ¿·½ç¤Ë¼èÆÀ¤¹¤ë
+ $sql = "SELECT *, acs_is_unread_diary('$user_community_id', diary.diary_id) as is_unread,";
+ $sql .= " acs_get_diary_comment_num(diary.diary_id) as diary_comment_num";
+ $sql .= " FROM diary, community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id IN ($friends_user_community_id_csv)";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ // ¥À¥¤¥¢¥ê¡¼ ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+
+ //------ 2007.2 ɽ¼¨»þ´Öû½ÌÂбþ
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if($days !== false){
+ $sql = $sql . " AND " . ACSLib::get_sql_condition_from_today("diary.post_date", $days);
+ }
+
+ if($offset !== false){
+ $sql = $sql . " ORDER BY diary.post_date DESC";
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $sql = $sql . " OFFSET 0 LIMIT ". $display_count;
+ } else {
+ $sql .= " ORDER BY diary.post_date DESC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¥¢¥¯¥»¥¹ÍúÎò¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $diary_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return ¥À¥¤¥¢¥ê¡¼¤Î¥¢¥¯¥»¥¹ÍúÎò¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_diary_access_history_row($user_community_id, $diary_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+ $diary_id = pg_escape_string($diary_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM diary_access_history";
+ $sql .= " WHERE user_community_id = '$user_community_id'";
+ $sql .= " AND diary_id = '$diary_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¥¢¥¯¥»¥¹ÍúÎò¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $diary_id
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_diary_access_history($user_community_id, $diary_id) {
+ // ¥À¥¤¥¢¥ê¡¼¥¢¥¯¥»¥¹ÍúÎò
+ $diary_access_history_row = ACSDiary::get_diary_access_history_row($user_community_id, $diary_id);
+
+ $diary_access_history_form = array(
+ 'user_community_id' => $user_community_id,
+ 'diary_id' => $diary_id,
+ 'access_date' => 'now'
+ );
+
+ if ($diary_access_history_row) {
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤¹¤ë¾ì¹ç¤ÏUPDATE
+ ACSDiaryAccessHistoryModel::update_diary_access_history($diary_access_history_form);
+ } else {
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤ÏINSERT
+ ACSDiaryAccessHistoryModel::insert_diary_access_history($diary_access_history_form);
+ }
+ }
+
+ /**
+ * ¥³¥á¥ó¥È¤·¤¿¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë (¼«Ê¬¤Î¥À¥¤¥¢¥ê¡¼°Ê³°¤¬ÂоÝ)
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥³¥á¥ó¥È¤·¤¿¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãå¥À¥¤¥¢¥ê¡¼°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_commented_diary_row_array($user_community_id, $days=false, $offset=false) {
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ¥³¥á¥ó¥È¤·¤¿¥À¥¤¥¢¥ê¡¼
+ $sql = "SELECT DISTINCT diary.diary_id";
+ $sql .= " FROM diary, diary_comment";
+ $sql .= " WHERE diary.diary_id = diary_comment.diary_id";
+ $sql .= " AND diary.community_id != '$user_community_id'";
+ $sql .= " AND diary_comment.user_community_id = '$user_community_id'";
+ $tmp_row_array = ACSDB::_get_row_array($sql);
+
+ $commented_diary_id_array = array();
+ foreach ($tmp_row_array as $tmp_row) {
+ array_push($commented_diary_id_array, $tmp_row['diary_id']);
+ }
+ if (count($commented_diary_id_array)) {
+ $commented_diary_id_csv = implode(',', $commented_diary_id_array);
+ } else {
+ $commented_diary_id_csv = 'null';
+ }
+
+ // ¥³¥á¥ó¥È¤·¤¿¥À¥¤¥¢¥ê¡¼¤òºÇ¿·½ç¤Ë¼èÆÀ¤¹¤ë
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num, acs_get_diary_last_post_date(diary.diary_id) as diary_last_post_date, acs_is_unread_diary_comment('$user_community_id', diary.diary_id) as is_unread";
+ $sql .= " FROM diary, community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.diary_id IN ($commented_diary_id_csv)";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+
+ //------- 2007.2 ɽ¼¨»þ´Öû½ÌÂбþ
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if ($days !== false) {
+ $sql = $sql . " AND " .
+ ACSLib::get_sql_condition_from_today("acs_get_diary_last_post_date(diary.diary_id)", $days);
+ }
+
+ if ($offset != false) {
+ $sql = $sql . " ORDER BY diary_last_post_date DESC";
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $sql = $sql . " OFFSET 0 LIMIT ". $display_count;
+ } else {
+ $sql .= " ORDER BY diary_last_post_date DESC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¿·Ã女¥á¥ó¥È¤Î¤¢¤ë(¥Þ¥¤)¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (ÂоݤΥޥ¤¥À¥¤¥¢¥ê¡¼¤Î¥æ¡¼¥¶)
+ * @return ¿·Ã女¥á¥ó¥È¤Î¤¢¤ë¥À¥¤¥¢¥ê¡¼°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_new_comment_diary_row_array($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // SQL´Ø¿ô: acs_get_diary_c_last_post_date(diary.diary_id)
+ // ºÇ¿·¤Î¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È¤ÎÆü»þ¤ò¼èÆÀ¤¹¤ë¡£¥³¥á¥ó¥È¤¬0·ï¤Ç¤¢¤ì¤Ðnull
+ $sql = "SELECT
+ dia.diary_id, dia.community_id,
+ dia.subject, lstcmt.last_post_date AS diary_comment_last_post_date
+ FROM
+ (diary AS dia LEFT JOIN diary_access_history AS hist
+ ON hist.user_community_id = '".$user_community_id."' AND dia.diary_id = hist.diary_id)
+ LEFT JOIN
+ (SELECT diary_id, max(post_date) AS last_post_date
+ FROM diary_comment GROUP BY diary_id) AS lstcmt
+ ON dia.diary_id = lstcmt.diary_id
+ WHERE
+ dia.community_id = '".$user_community_id."'
+ AND dia.diary_delete_flag = 'f'
+ AND (hist.access_date IS null
+ OR lstcmt.last_post_date > hist.access_date)
+ AND lstcmt.last_post_date IS NOT NULL
+ ORDER BY
+ dia.post_date ASC ";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤òºï½ü¤¹¤ë
+ *
+ * @param $diary_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_diary($diary_id) {
+
+ // BEGIN
+
+ // diary ¥³¥á¥ó¥È¤Î¼èÆÀ
+ $sub_row_array = ACSDiary::get_diary_comment_row_array($diary_id);
+ $diary_comment_id_array = array();
+ if(count($sub_row_array) > 0){
+ foreach ($sub_row_array as $index => $sub_row) {
+ array_push($diary_comment_id_array, $sub_row['diary_comment_id']);
+ }
+ //¥³¥á¥ó¥È¤Îºï½ü
+ $ret = ACSDiary::delete_diary_comment($diary_comment_id_array);
+ if(!$ret){
+ return false;
+ }
+ }
+
+ //Æüµ¤¬»ý¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¾ðÊó¤Îºï½ü
+ $diary_row = ACSDiary::get_diary_row($diary_id);
+ $file_id = $diary_row['file_id'];
+ if($file_id != ''){
+ $ret = ACSDiaryFile::delete_diary_file($file_id,$diary_id);
+ if(!$ret){
+ echo "ERROR: Delete attached file information failed.";
+ return false;
+ }
+ }
+
+ //Æüµ¤Îºï½ü(ºï½ü¥Õ¥é¥°°·¤¤)
+ $sql = "UPDATE diary";
+ $sql .= " SET diary_delete_flag = 't'";
+ $sql .= " WHERE diary.diary_id = $diary_id";
+ $ret = ACSDB::_do_query($sql);
+ if(!$ret){
+ echo "ERROR: Delete parent article failed.";
+ return false;
+ }
+
+ // COMMIT
+ return true;
+ }
+
+ /**
+ * Æüµ¤Î¥³¥á¥ó¥È¤òºï½ü¤¹¤ë
+ *
+ * @param $diary_comment_id_array ¥³¥á¥ó¥ÈID_array
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_diary_comment($diary_comment_id_array) {
+ if (count($diary_comment_id_array) > 1) {
+ $diary_comment_id = implode(',', $diary_comment_id_array);
+ } else {
+ $diary_comment_id = array_shift($diary_comment_id_array);
+ }
+
+ //¥³¥á¥ó¥È¤Îºï½ü
+ $sql = "UPDATE diary_comment";
+ $sql .= " SET diary_comment_delete_flag = 't'";
+ $sql .= " WHERE diary_comment.diary_comment_id IN($diary_comment_id)";
+
+ $ret = ACSDB::_do_query($sql);
+ if(!$ret){
+ echo "ERROR: Delete comment failed.";
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Æüµ¤ò¸¡º÷¤¹¤ë¤¿¤á¤Îwhere¶ç¤Î£±Éô¤òºîÀ®
+ *
+ * @param $form¡¡¾ò·ï
+ [id] => 1000
+ [move_id] => 2
+ [q_text] => ¸¡º÷¾ò·ï //¾ò·ï¡Ê¢¨É¬¿Ü¡Ë
+ [search_title] => title_in_serch //·ï̾¤òÁªÂò
+ [search_all] => subject_in_serch //ËÜʸ¤òÁªÂò
+ [open_level_code] => 00 //¸ø³«ÈÏ°Ï¡Ê00¤ÏÁªÂò¤Ê¤·¡Ë¡Ê¢¨É¬¿Ü¡Ë
+ [search_all_about] => all_in_serch //¤¹¤Ù¤Æ¤ÎÆüµ¤òÁªÂò
+ * @return str_array($like_sql , $err_str , $str_count)
+ */
+ static function set_diary_where_list($form , $flag) {
+ $str_array = array();
+ $str_array['like_sql'] = ""; //À®¸ù»þ¤ÎÌá¤êÃÍ
+ $str_array['err_str'] = ""; //¼ºÇÔ»þ¤ÎÌá¤êÃÍ
+ $str_array['str_count'] = 1; //À®¸ù»þ¤Î¥¡¼¥ï¡¼¥É¿ô
+
+ // ¸¡º÷¥¡¼¥ï¡¼¥É¤Î¼èÆÀ¡ÊÃí°Õ¡ª¥Ð¥¤¥Èñ°Ì¤Ç½èÍý¡Ë
+ $search_text = $form['q_text']; //form¤«¤é¸¡º÷ʸ»úÎó¤ò¼èÆÀ
+
+ //¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡ÁÇÛÎó¤È¤·¤ÆÍøÍÑ(Like¤ÎºîÀ®)¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á
+ if($search_text != ''){
+ $search_args = ACSLib::get_query_array_array($search_text); //¸¡º÷ʸ»úÎóÇÛÎó¤ËÊÑ´¹
+ }
+ if(count($search_args) > 0){ //¸¡º÷ʸ»úÎó¤¬Â¸ºß¤¹¤ë¾ì¹ç
+ $search_args = ACSLib::escape_sql_array($search_args);
+ //¥¡¼¥ï¡¼¥Éwhere¶ç¤ÎÄɵ
+ //¼¡¤Î¤¤¤º¤ì¤«¤Ïɬ¿Ü
+ $str_like = '';
+ //·ï̾¤òÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ if($form['search_title']){
+ $str_title = " diary.subject";
+ $str_like_array = ACSDiary::create_sql_where_field($search_args , $str_title , $flag);
+ $str_like = " (" . $str_like_array['str_like'] .") ";
+ $str_array['str_count'] = $str_like_array['str_count'];
+ }
+ //ËÜʸ¤òÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ if($form['search_all']){
+ $str_body = " diary.body";
+ if($str_like != ""){
+ $str_like = $str_like . " OR "; //·ï̾¤È¶¦¤ËÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ }
+ $where_sql_array = ACSDiary::create_sql_where_field($search_args , $str_body, $flag);
+ $where_sql = " (" . $where_sql_array['str_like'] .") ";
+ $str_like = $str_like . $where_sql;
+ $str_array['str_count'] = $where_sql_array['str_count'];
+ }
+ //¥¡¼¥ï¡¼¥Éwhere¶ç¤ÎÄɵ½ªÎ»
+ if($str_like == ""){ //¥¡¼¥ï¡¼¥É¤¬¤¢¤ë¤Î¤Ë¡¢Âоݤ¬¤Ê¤¤¾ì¹ç
+ $str_array['err_str'] = ACSMsg::get_mdmsg(__FILE__,'M001');
+ return $str_array;
+ }else{
+ $str_array['like_sql'] = $str_array['like_sql'] . $str_array['like_sql'] ." AND (" . $str_like .") ";
+ }
+ }
+ //¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡ÁÆÃÄêÆüµ¸¡º÷¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á¡Á
+ //ɬ¤ºAND
+ if(!$form['search_all_about']){ //¤¹¤Ù¤Æ¤ÎÆüµ¤òÁªÂò¤·¤Æ¤¤¤Ê¤¤¾ì¹ç
+ $str_array['like_sql'] = $str_array['like_sql'] ." AND diary.community_id = " . $form['id'];
+ }
+ return $str_array;
+ }
+
+ /**
+ * Æüµ¤ò¸¡º÷¤¹¤ë¤¿¤á¤Îwhere¶ç¤Î£±Éô¤òºîÀ®2
+ * ·ï̾¤ÈËÜʸ¤¬¤½¤ì¤¾¤ìñÆÈ»ØÄꡦʣ¹ç»ØÄê¤Ë¤Ê¤ë²ÄǽÀ¤ò»ý¤Ä¤¿¤á
+ * Î󤴤ȤÎ\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ò·«¤êÊÖ¤¹½èÍý¤Î¤ß¤ò¹Ô¤¦´Ø¿ô
+ *
+ * @param $query_array_array \8e·\8e°\8eÜ\8e°\8eÄ\8eÞÇÛÎó
+ * @param $str_title Îó̾
+ * @return $where_sql ºîÀ®¤·¤¿SQL¾ò·ïʸ
+ */
+ static function create_sql_where_field($query_array_array , $str_field ,$flag){
+ $str_like = "";
+ foreach ($query_array_array as $query_array) { //Á´\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ËÂФ¹¤ë½èÍý
+ if (!count($query_array)) {
+ continue; //£±\8e·\8e°\8eÜ\8e°\8eÄ\8eÞÃæ¤ËÃͤ¬Ìµ¤¤¾ì¹ç¡Ê¶èÀÚ¤êʸ»ú¡©¡Ë
+ }
+ foreach ($query_array as $id => $str_q) { //£±\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤ËÂФ¹¤ë½èÍý¡Êʸ»ú¼ï¤Î¤¿¤áor½èÍý¡Ë
+ $str_q = pg_escape_string($str_q);
+ ACSLib::escape_ilike($str_q);
+ if($id == 0){
+ //$str_like = "(" . $str_field . " LIKE '%" . $str_q ."%'";
+ $str_like = $str_field . " LIKE '%" . $str_q ."%'";
+ }else{
+ $where_sql['str_count'] = 2;
+ $str_like = $str_like . " OR " . $str_field . " LIKE '%" . $str_q ."%'";
+ }
+ //$str_like = $str_like . " )";
+ }
+ if ($str_like != '') { //Á´\8e·\8e°\8eÜ\8e°\8eÄ\8eÞ¤òAND¤«OR¤Ç¤Ä¤Ê¤²¤ë
+ if($where_sql['str_like'] != '' ){
+ switch($flag){
+ case 1; //¤¹¤Ù¤Æ¹çÃ×
+ $where_sql['str_like'] = $where_sql['str_like'] ." AND ($str_like)"; break;
+ case 2: //¤¹¤Ù¤Æ¹çÃפ»¤º
+ $where_sql['str_like'] = $where_sql['str_like'] ." OR ($str_like)";
+ }
+ }else{
+ $where_sql['str_like'] = " ($str_like)";
+ }
+ }
+ }
+ return $where_sql;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $diary_comment_id ¥À¥¤¥¢¥ê¡¼ID
+ * @return ¥Þ¥¤¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È(¥¯¥¨¥ê·ë²Ì¥ê¥½¡¼¥¹)
+ */
+ static function get_diary_comment_row ($diary_comment_id) {
+ $sql = "SELECT *";
+ $sql .= " FROM (diary_comment LEFT OUTER JOIN community ON diary_comment.user_community_id = community.community_id) as JOINED_DIARY_COMMENT";
+ $sql .= " WHERE JOINED_DIARY_COMMENT.diary_comment_id = '$diary_comment_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ºÇ¿·¤Î¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë (¥À¥¤¥¢¥ê¡¼RSSÍÑ)
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $term ¼èÆÀ´ü´Ö
+ * @return ¥À¥¤¥¢¥ê¡¼¿Æµ»ö¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_new_diary_rss_row_array($user_community_id, $term) {
+ $user_community_id = pg_escape_string($user_community_id);
+ $term = pg_escape_string($term);
+
+ $sql = "SELECT *, acs_get_diary_comment_num(diary.diary_id) as diary_comment_num, diary.diary_id as diary_id";
+ $sql .= " FROM diary LEFT OUTER JOIN diary_file USING(diary_id)";
+ $sql .= ", community as USER_COMMUNITY, user_info, open_level_master";
+ $sql .= " WHERE diary.community_id = '$user_community_id'";
+ $sql .= " AND diary.community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ $sql .= " AND diary.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND diary.diary_delete_flag = 'f'";
+ // $termÆü°ÊÆâ¤ÎÅê¹Æ¤ò¼èÆÀ
+ $sql .= " AND diary.post_date::DATE > (CURRENT_DATE - '@ $term days'::INTERVAL)";
+ $sql .= " ORDER BY diary.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥À¥¤¥¢¥ê¡¼RSS¤ò½ÐÎϤ¹¤ë
+ *
+ * @param $target_user_info_row Âоݥ桼¥¶¾ðÊó
+ * @param $diary_row_array ¥À¥¤¥¢¥ê¡¼°ìÍ÷
+ * @param $params ¥Ñ¥é¥á¡¼¥¿Åù
+ */
+ static function print_diary_rss($target_user_info_row, $diary_row_array, $params) {
+ // »ÈÍÑ¥¯¥é¥¹: acs/webapp/lib/feedcreator/feedcreator.class.php
+
+ $rss = new UniversalFeedCreator();
+
+ // ³µÍ×Åù <channel>
+ $rss->useCached();
+ $rss->title = ACSMsg::get_tag_replace(ACSMsg::get_mdmsg(__FILE__,'NAME'),
+ array("{USER_NAME}" => $target_user_info_row['community_name'])); // ¡û¡û¤µ¤ó
+ $rss->description = $params['description']; // ¥×¥í¥Õ¥£¡¼¥ë (¸ø³«ÈÏ°ÏÊÌ)
+ $rss->link = $params['base_url'] . $target_user_info_row['top_page_url']; // ¥Þ¥¤¥Ú¡¼¥¸URL
+ $rss->url = $params['base_url'] . $target_user_info_row['image_url']; // ²èÁüURL <image rdf:resource="...">
+ $rss->syndicationURL = $params['rss_syndication_url']; // ¼«¿È¤ÎURL <channel rdf:about="...">
+
+ // ¥í¥´²èÁü <image>
+ $image = new FeedImage();
+ $image->title = $target_user_info_row['image_title']; // ¥Õ¥¡¥¤¥ë̾
+ $image->link = ACSMsg::get_mdmsg(__FILE__,'M002'); // ¼Ì¿¿
+ $image->url = $params['base_url'] . $target_user_info_row['image_url'];
+ $rss->image = $image;
+
+ // 1·ï¤Î¥À¥¤¥¢¥ê¡¼: <item>
+ foreach ($diary_row_array as $index => $diary_row) {
+ // CRLF ¢ª LF
+ $body = preg_replace('/\r\n/', "\n", $diary_row['body']);
+
+ $item = new FeedItem();
+ $item->post_date = $diary_row['post_date'];
+ $item->title = $diary_row['subject'];
+ $item->link = $params['base_url'] . $diary_row['diary_comment_url'];
+ $item->description = $body;
+ if ($diary_row['file_url'] != '') {
+ $item->image_link = $params['base_url'] . $diary_row['file_url'];
+ }
+ $item->description2 = $body; //Âè2¤ÎËÜʸ <content:encoded>
+
+ $rss->addItem($item);
+ }
+
+ // http-header
+ mb_http_output('pass');
+ header('Content-type: application/xml; charset=UTF-8');
+ echo mb_convert_encoding($rss->createFeed("RSS1.0"), 'UTF-8', mb_internal_encoding());
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSDiaryAccessHistoryModel.class.php,v 1.1 2006/02/16 11:27:26 w-ota Exp $
+
+
+/*
+ * diary_access_history¥â¥Ç¥ë
+ */
+class ACSDiaryAccessHistoryModel {
+
+ /**
+ * diary_access_history INSERT
+ *
+ * @param $form ¥À¥¤¥¢¥ê¡¼¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_diary_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO diary_access_history";
+ $sql .= " (user_community_id, diary_id, access_date)";
+ $sql .= " VALUES ($form[user_community_id], $form[diary_id], $form[access_date])";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * diary_access_history UPDATE
+ *
+ * @param $form ¥À¥¤¥¢¥ê¡¼¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_diary_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "UPDATE diary_access_history";
+ $sql .= " SET";
+ $sql .= " access_date = $form[access_date]";
+ $sql .= " WHERE user_community_id = $form[user_community_id]";
+ $sql .= " AND diary_id = $form[diary_id]";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+//
+// Æüµ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¡§index¥Õ¥¡¥¤¥ë¤ÎÄêµÁ
+//
+define( '_ACSDIARYBACKUP_INDEX_FORMAT', '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja">
+<head>
+<meta http-equiv="content-type" content="text/html;charset=Shift_JIS">
+<title>ACS My Diaries</title>
+<style type="text/css" media="screen">
+<!--
+td {font-size: 13px;}
+body {background-color:#FFFFFF;color:#333333;font-size: 13px;}
+table.common_table {padding: 3px;}
+table.common_table td {padding: 3px;}
+img.thumb {margin-top:10px;margin-bottom:10px;boder-style:none}
+-->
+</style></head><body bgcolor="#ffffff">@CONTENTS@</body></html>
+');
+
+define( '_ACSDIARYBACKUP_INDEX_MONTHLY_FORMAT', '
+ <H1>@MONTHLY_TITLE@</H1>
+ <table class="common_table">
+ @DIARY_CONTENTS@
+ </table>
+');
+
+define( '_ACSDIARYBACKUP_INDEX_DAIRY_FORMAT', '
+ <tr>
+ <td width="15"></td>
+ <td bgcolor="#deeebd" width="180" align="center">@YMD@</td>
+ <td bgcolor="#eeffcc" width="500"><a href="@DIARY_URL@">@DIARY_SUBJECT@</a></td>
+ </tr>
+');
+
+//
+// Æüµ¥³¥ó¥Æ¥ó¥Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¡§diary¥Õ¥¡¥¤¥ë¤ÎÄêµÁ
+//
+define( '_ACSDIARYBACKUP_DIARY_FORMAT', '
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja">
+<head>
+<meta http-equiv="content-type" content="text/html;charset=Shift_JIS">
+<title>@SUBJECT@</title>
+<style type="text/css" media="screen">
+<!--
+td {font-size: 13px;}
+body {background-color:#FFFFFF;color:#333333;font-size: 13px;}
+table.common_table {padding: 3px;}
+table.common_table td {padding: 3px;}
+table.open_level_table {background-color: #dddddd;padding: 0px;}
+table.open_level_table td {padding: 0px;}
+-->
+</style>
+</head>
+<body bgcolor="#ffffff">
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="650px">
+ <tr><td bgcolor="#deeebd"><b>@SUBJECT@</b> @POST_DATE@</td></tr>
+ <tr><td bgcolor="#ffffff">
+ <table class="open_level_table">
+ <tr>
+ <td>@OPEN_LEVEL_TITLE@ : @OPEN_LEVEL_NAME@</td>
+ </tr>
+ </table><br>
+ @IMAGE@
+ <div id="diary_body">@BODY@</div><br>
+ </td>
+ </tr>
+</table>
+<br>
+<table border="0" cellpadding="6" cellspacing="5" bgcolor="#ffffff" width="650">
+@COMMENTS@
+</table>
+</body>
+</html>
+');
+
+define( '_ACSDIARYBACKUP_DIARY_COMMENT_FORMAT', '
+ <tr>
+ <td bgcolor="#eeffcc" valign="top">
+ <table>
+ <tr><td bgcolor="#eeffcc" width="500px">@POST_DATE@ [@COMMUNITY_NAME@]</td></tr>
+ <tr><td>@BODY@</td></tr>
+ </table>
+ </td>
+ </tr>
+');
+
+/**
+ * ACS DiaryBackup
+ *
+ * @author z-satosi
+ * @version $Revision: 1.3 $ $Date: 2007/03/28 10:51:16 $
+ */
+class ACSDiaryBackup
+{
+ /* ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id */
+ var $user_community_id;
+
+ /* Æüµ¥Ð¥Ã¥¯¥¢¥Ã¥×¥³¥ó¥Æ¥ó¥ÄºîÀ®¥Ç¥£¥ì¥¯¥È¥ê */
+ var $contents_dir;
+
+ /* Æüµ¥³¥ó¥Æ¥ó¥Ä¥Ç¥£¥ì¥¯¥È¥ê */
+ var $diary_dir;
+
+ /* ¥¤¥ó¥Ç¥Ã¥¯¥¹¤«¤é¤ÎÆüµ¥³¥ó¥Æ¥ó¥ÄURL */
+ var $index_to_diary_url;
+
+ /* ¥¤¥á¡¼¥¸¥³¥ó¥Æ¥ó¥Ä¥Ç¥£¥ì¥¯¥È¥ê */
+ var $img_dir;
+
+ /* Æüµ¥³¥ó¥Æ¥ó¥Ä¤«¤é¤Î¥¤¥á¡¼¥¸URL */
+ var $diary_to_img_url;
+
+ /* Æüµ¥³¥ó¥Æ¥ó¥Ä¥Õ¥¡¥¤¥ë̾¤Î¥«¥¦¥ó¥¿ */
+ var $diary_file_names;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param string $user_community_id ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id
+ * @param string $contents_dir ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê
+ */
+ function ACSDiaryBackup ($user_community_id, $contents_dir) {
+
+ // ¥Ç¥£¥ì¥¯¥È¥ê¡¦£Õ£Ò£Ì¤ÎÀßÄê
+ $this->user_community_id = $user_community_id;
+ $this->contents_dir = mb_ereg_replace('/$','',$contents_dir);
+ $this->diary_dir = $this->contents_dir . '/diary';
+ $this->img_dir = $this->contents_dir . '/img';
+ $this->index_to_diary_url = './diary';
+ $this->diary_to_img_url = '../img';
+ $this->diary_file_names = array();
+
+ // ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®
+ ACSLib::make_dir($this->contents_dir);
+ }
+
+ /**
+ * ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¤Î½é´ü²½
+ */
+ function clean_work_dir () {
+ ACSLib::remove_dir($this->contents_dir);
+ }
+
+ /**
+ * ¥Ð¥Ã¥¯¥¢¥Ã¥×¥³¥ó¥Æ¥ó¥Ä¤ÎºîÀ®
+ *
+ * @param string $encoding ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ */
+ function make_contents ($encoding='') {
+
+ $diary_row_array = ACSDiary::get_diary_row_array($this->user_community_id);
+
+ // Æüµ¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï²¿¤â¤»¤º½ªÎ»
+ if (count($diary_row_array) == 0) {
+ return;
+ }
+
+ // ¥À¥¤¥¢¥ê¥Õ¥©¥ë¥À¤È¥¤¥á¡¼¥¸¥Õ¥©¥ë¥À¤ÎºîÀ®
+ ACSLib::make_dir($this->diary_dir);
+ ACSLib::make_dir($this->img_dir);
+
+ $contents = '';
+
+ $diary_array = array();
+ $months_array = array();
+
+ foreach ($diary_row_array as $diary_row) {
+
+ if ($diary_row['delete_flag']=='f') {
+
+ // html¼ÂÂÖ¥Õ¥¡¥¤¥ë¤òºîÀ®
+ $html_file = $this->create_diary_html($diary_row, $encoding);
+
+ $post_tm = ACSLib::convert_pg_date_to_timestamp($diary_row['post_date']);
+
+ $ym = date("Ym",$post_tm);
+
+ // ǯ·îÍÑ¥Õ¥©¡¼¥Þ¥Ã¥È¤ÎÀ¸À®
+ if (!array_key_exists($ym,$months_array)) {
+ $ym_str = ACSMsg::get_mdmsg(__FILE__,'YEAR_MONTH');
+ $ym_str = str_replace('{YEAR}',date("Y",$post_tm),$ym_str);
+ $ym_str = str_replace('{MONTH}',date("m",$post_tm),$ym_str);
+ $months_array[$ym] = mb_ereg_replace('@MONTHLY_TITLE@',
+ htmlspecialchars($ym_str), _ACSDIARYBACKUP_INDEX_MONTHLY_FORMAT);
+ }
+
+ $ymd = ACSLib::convert_pg_date_to_str($diary_row['post_date']);
+
+ // Æüµ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÎÀ¸À®
+ $diary_contents = _ACSDIARYBACKUP_INDEX_DAIRY_FORMAT;
+ $diary_contents = mb_ereg_replace('@YMD@',
+ htmlspecialchars($ymd), $diary_contents);
+ $diary_contents = mb_ereg_replace('@DIARY_URL@',
+ htmlspecialchars($this->index_to_diary_url . '/' . $html_file),
+ $diary_contents);
+ $diary_contents = mb_ereg_replace('@DIARY_SUBJECT@',
+ htmlspecialchars($diary_row['subject']), $diary_contents);
+ $diary_array[$ym] .= $diary_contents;
+ }
+ }
+
+ // index.html¤ÎÀ¸À®
+ $contents = "";
+ foreach ($diary_array as $ym => $diary_contents) {
+ $contents .= mb_ereg_replace('@DIARY_CONTENTS@',
+ $diary_contents, $months_array[$ym]);
+ }
+ $contents = mb_ereg_replace('@CONTENTS@',
+ $contents, _ACSDIARYBACKUP_INDEX_FORMAT);
+
+ // ´Á»ú¥³¡¼¥É¤ÎÊÑ´¹
+ if ($encoding != '') {
+ $contents = mb_convert_encoding($contents, $encoding);
+ }
+
+ // index¥Õ¥¡¥¤¥ë¤Î½ÐÎÏ
+ $fp = fopen($this->contents_dir . '/index.html', "w");
+ fputs($fp, $contents);
+ fclose($fp);
+ }
+
+ /**
+ * Æüµhtml¥³¥ó¥Æ¥ó¥Ä¤ÎºîÀ®
+ *
+ * @param string $diary_row ÆüµÇÛÎó
+ * @param string $encoding ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ */
+ function create_diary_html ($diary_row, $encoding='') {
+
+ $file_head = date("Ymd_His",
+ ACSLib::convert_pg_date_to_timestamp($diary_row['post_date']));
+
+ $this->diary_file_names[$file_head]++;
+
+ if ($this->diary_file_names[$file_head]>1) {
+ $file_head .= '_' . ($this->diary_file_names[$html_file]-1);
+ }
+ $html_file = $file_head . '.html';
+
+ // ´ðËܹàÌܤÎÃÖ´¹
+ $contents = _ACSDIARYBACKUP_DIARY_FORMAT;
+ $contents = mb_ereg_replace('@SUBJECT@',
+ htmlspecialchars($diary_row['subject']), $contents);
+ $contents = mb_ereg_replace('@POST_DATE@',
+ htmlspecialchars(ACSLib::convert_pg_date_to_str($diary_row['post_date'])),
+ $contents);
+ $contents = mb_ereg_replace('@BODY@',
+ nl2br(htmlspecialchars($diary_row['body'])), $contents);
+ $contents = mb_ereg_replace('@OPEN_LEVEL_TITLE@',
+ htmlspecialchars(ACSMsg::get_mdmsg(__FILE__,'M001')), $contents);
+ $contents = mb_ereg_replace('@OPEN_LEVEL_NAME@',
+ htmlspecialchars($diary_row['open_level_name']), $contents);
+
+ // ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì¹ç
+ $image_file_id = $diary_row['file_id'];
+ if ($image_file_id != '') {
+
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+
+ // ³ÈÄ¥»Ò¤Î¼èÆÀ
+ mb_ereg("^.*(\.[^\.\/]*)", $file_obj->get_display_file_name(), $matches);
+ $ext = $matches[1];
+
+ // ¥Õ¥¡¥¤¥ë̾¤ÎÀ¸À®
+ $img_from = ACS_FOLDER_DIR . $file_obj->get_server_file_name();
+ $img_to = $this->img_dir . '/' . $file_head . $ext;
+ $img_thumb_from = ACS_FOLDER_DIR . $file_obj->get_thumbnail_server_file_name();
+ $img_thumb_to = $this->img_dir . '/thumb_' . $file_head . '.jpg';
+
+ // £Õ£Ò£Ì¤ÎÀ¸À®
+ $img_url = $this->diary_to_img_url . '/' . $file_head . $ext;
+ $img_thumb_url = $this->diary_to_img_url . '/thumb_' . $file_head . '.jpg';
+
+ // ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤ÎºîÀ®
+ @copy($img_from, $img_to);
+ @copy($img_thumb_from, $img_thumb_to);
+
+ // ¥ê¥ó¥¯¥¿¥°¤ÎÀ¸À®
+ $contents = mb_ereg_replace('@IMAGE@',
+ '<div><a href="' . $img_url . '">' .
+ '<img src="' . $img_thumb_url . '" border="0"></a></div><br>',
+ $contents);
+ } else {
+ $contents = mb_ereg_replace('@IMAGE@', '',$contents);
+ }
+
+ // ¥³¥á¥ó¥È¤Î¼èÆÀ
+ $diary_comment_row_array = ACSDiary::get_diary_comment_row_array($diary_row['diary_id']);
+
+ // ¥³¥á¥ó¥ÈÉôʬ¤ÎÀ¸À®
+ $comments = "";
+ foreach ($diary_comment_row_array as $diary_comment_row) {
+
+ if ($diary_comment_row['diary_comment_delete_flag']=='f') {
+ $comment_contents = _ACSDIARYBACKUP_DIARY_COMMENT_FORMAT;
+
+ $comment_contents = mb_ereg_replace('@POST_DATE@',
+ htmlspecialchars(ACSLib::convert_pg_date_to_str(
+ $diary_comment_row['post_date'])), $comment_contents);
+ $comment_contents = mb_ereg_replace('@COMMUNITY_NAME@',
+ htmlspecialchars($diary_comment_row['community_name']),
+ $comment_contents);
+ $comment_contents = mb_ereg_replace('@BODY@',
+ nl2br(htmlspecialchars($diary_comment_row['body'])),
+ $comment_contents);
+ $comments .= $comment_contents;
+ }
+ }
+ // ¥³¥á¥ó¥È¤ÎÃÖ´¹
+ $contents = mb_ereg_replace('@COMMENTS@', $comments, $contents);
+
+ // contents ¼«¿È¤ÎÊÑ´¹
+ if ($encoding != '') {
+ $contents = mb_convert_encoding($contents, $encoding);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤Ø¤Î½ÐÎÏ
+ $fp = fopen($this->diary_dir . '/' . $html_file, "w");
+ fputs($fp, $contents);
+ fclose($fp);
+
+ return $html_file;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * diaryÍÑ¥Õ¥¡¥¤¥ë¾ðÊó DB¥¢¥¯¥»¥¹
+ * diary_file¤Èfile_info¤Î·ë¹ç¥Õ¥¡¥¤¥ë¾ðÊó
+ * ACSDiaryFile.class.php
+ *
+ * diary_file¥Æ¡¼¥Ö¥ë¤òManage¤¹¤ë
+ * @author akitsu
+ * @version $Revision: 1.3 $
+ */
+class ACSDiaryFile
+{
+ /** ACSDiaryFile¤Î¥¯¥é¥¹
+ * @type ACSDiaryFileModel */
+ var $diary_file_obj;
+
+ /** ACSFile¤Î¥¯¥é¥¹
+ * @type ACSFileModel */
+ var $file_info;
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ¡Ê£±·ï¡Ë
+ * ¤Ò¤È¤Ä¤Îdiary¡Ê·Ç¼¨Èġˤ¬»ý¤ÄFile¾ðÊó
+ *
+ * @param $diary_id
+ * @return diary_file¤Èfile_info¤Î·ë¹ç¥Õ¥¡¥¤¥ë¾ðÊó
+ */
+ function select_diary_file_row ($diary_id) {
+ $sql = "SELECT diary_file.*,";
+ $sql .= " file_info.display_file_name AS save_file_name,file_info.server_file_name AS insystem_file_name,";
+ $sql .= " file_info.mime_type AS file_kind"; //¼ïÎà
+ $sql .= " FROM file_info, diary_file";
+ $sql .= " WHERE diary_file.diary_id = " . $diary_id;
+ $sql .= " AND file_info.file_id = diary_file.file_id";
+ $sql .= " ORDER BY diary_file.file_id ASC";
+
+ $result = ACSDB::_get_row($sql);
+ return $result;
+ }
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ *
+ * @param $file_obj
+ */
+ function get_diary_file ($file_obj,$diary_id) {
+ $sql = "SELECT diary_file.*,";
+ $sql .= " FROM diary_file";
+
+ $ret = ACSDB::_do_query($sql);
+ if($ret){
+ $diary_file_obj = ACSDiaryFileModel::get_diary_file_info_instance($file_obj,$diary_id);
+ return $diary_file_obj;
+ }else{
+ return $ret;
+ }
+ }
+
+ /**
+ * diary_file¾ðÊó¼èÆÀ
+ *
+ * @param $file_id ¥Õ¥¡¥¤¥ëID
+ * @return diary_file¾ðÊó
+ */
+ function get_diary_file_row_by_file_id($file_id) {
+ $sql = "SELECT *";
+ $sql .= " FROM diary_file";
+ $sql .= " WHERE file_id = '" . pg_escape_string($file_id) . "'";
+ $sql .= " LIMIT 1";
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊóÄɲÃ
+ *
+ * @param $file_obj
+ */
+ function insert_diary_file ($file_obj,$diary_id) {
+ $id = $file_obj->get_file_id();
+ $sql = "INSERT INTO diary_file";
+ $sql .= " (file_id, diary_id)";
+ $sql .= " VALUES (";
+ $sql .= "" . $id . ",";
+ $sql .= "" . $diary_id;
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊ󹹿·
+ *
+ * @param $file_obj
+ */
+ function update_diary_file ($file_obj,$diary_id) {
+ $sql = "UPDATE diary_file";
+ $sql .= " SET file_id = ";
+ $sql .= $file_obj->get_file_id() . ",";
+ $sql .= " diary_id = ";
+ $sql .= "" . $diary_id;
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * diary¥Õ¥¡¥¤¥ë¾ðÊóºï½ü
+ *
+ * @param $file_id
+ * @param $diary_id
+ */
+ function delete_diary_file ($file_id,$diary_id) {
+ $sql = "DELETE FROM diary_file";
+ $sql .= " WHERE";
+ $sql .= " file_id = " . $file_id;
+ $sql .= " AND";
+ $sql .= " diary_id = " . $diary_id;
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+
+ /**
+ * image_url¤ò²Ã¹©¤¹¤ë
+ *
+ * @param diary_file_id
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ function get_image_url($diary_file_id, $view_mode = '') {
+ $image_url = SCRIPT_PATH . '?';
+ $image_url .= MODULE_ACCESSOR . '=User';
+ $image_url .= '&' . ACTION_ACCESSOR . '=DiaryImage';
+ $image_url .= '&id=' . $diary_file_id;
+ $image_url .= '&mode=' . $view_mode;
+
+ return $image_url;
+ }
+
+}
--- /dev/null
+<?php
+/**
+ * diaryÍÑ¥Õ¥¡¥¤¥ë¾ðÊó DB¥Æ¡¼¥Ö¥ë
+ * ACSDiaryFileModel.class.php
+ *
+ * diary_file¥Æ¡¼¥Ö¥ë¥â¥Ç¥ë
+ * @author akitsu
+ * @version $Revision: 1.1 $
+ */
+
+class ACSDiaryFileModel
+{
+ /* ¥Õ¥¡¥¤¥ëID
+ * @type¡¡BIG_INT */
+ var $file_id;
+
+ /* diary¡¡ID
+ * @type¡¡BIG_INT */
+ var $diary_id;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * ɬ¤ºÍ×ÁÇÇÛÎó¤¬ÅϤµ¤ì¤ë
+ * @param $diary_file_row
+ */
+ function ACSdiaryFileModel ($diary_file_row) {
+ $this->set_diary_file_info($diary_file_row);
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊ󥻥åÈ
+ * ɬ¤ºÍ×ÁÇÇÛÎó¤¬ÅϤµ¤ì¤ë
+ * @param $diary_file_row
+ */
+ function set_diary_file_info ($diary_file_row) {
+ $this->set_file_id($diary_file_row['file_id']);
+ $this->set_diary_id($diary_file_row['diary_id']);
+ }
+
+ /**
+ * ¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ¡Ê¥Õ¥¡¥¤¥ëID,diaryid»ØÄê¡Ë
+ *
+ * @param $file_id
+ */
+ static function get_diary_file_info_instance ($file_id,$diary_id) {
+ $diary_file_row['file_id'] = $file_id;
+ $diary_file_row['diary_id'] = $diary_id;
+ $file_obj = new ACSdiaryFileModel($diary_file_row);
+
+ return $file_obj;
+ }
+
+
+/* ¥¢¥¯¥»¥Ã¥µ */
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥»¥Ã¥È
+ *
+ * @param $file_id
+ */
+ function set_file_id ($file_id) {
+ $this->file_id = $file_id;
+ }
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_file_id () {
+ return $this->file_id;
+ }
+
+ /**
+ * diary ID¥»¥Ã¥È
+ *
+ * @param $diary_id
+ */
+ function set_diary_id ($diary_id) {
+ $this->file_id = $diary_id;
+ }
+ /**
+ * diary ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_diary_id () {
+ return $this->diary_id;
+ }
+
+
+
+}
--- /dev/null
+<?php
+/**
+ * ACS Done
+ *
+ * Common ¥â¥¸¥å¡¼¥ë¤Î Done ¥¢¥¯¥·¥ç¥ó¤ËÅϤ¹¥ª¥Ö¥¸¥§¥¯¥È
+ * ɽ¼¨¤µ¤»¤¿¤¤ÆâÍƤòÊÝ»ý¤¹¤ë
+ *
+ * ¡ã»ÈÍÑÊýË¡¡ä
+ * -------------------------------------------------------------------
+ * require_once(ACS_CLASS_DIR . 'ACSDone.class.php');
+ *
+ * $done_obj = new ACSDone();
+ *
+ * $done_obj->set_title('¥¿¥¤¥È¥ë');
+ * $done_obj->set_message('¥á¥Ã¥»¡¼¥¸');
+ *
+ * // ¥ê¥ó¥¯¤ÏɬÍפÊʬ¤À¤±¡¢add_link ¤¹¤ë
+ * $done_obj->add_link('¥ê¥ó¥¯Àè̾£±', 'link1_url');
+ * $done_obj->add_link('¥ê¥ó¥¯Àè̾£²', 'link2_url');
+ *
+ * $request->setAttribute('done_obj', $done_obj);
+ * -------------------------------------------------------------------
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/01/06 07:55:08 $
+ */
+class ACSDone
+{
+ /* ¥¿¥¤¥È¥ë */
+ var $title;
+
+ /* ¥á¥Ã¥»¡¼¥¸ */
+ var $message;
+
+ /* ¥ê¥ó¥¯ */
+ var $donelink_obj_array = array();
+
+
+ /**
+ * ¥¿¥¤¥È¥ë¥»¥Ã¥È
+ *
+ * @param $title
+ */
+ function set_title ($title) {
+ $this->title = $title;
+ }
+
+ /**
+ * ¥¿¥¤¥È¥ë¥²¥Ã¥È
+ *
+ * @return ¥¿¥¤¥È¥ë
+ */
+ function get_title () {
+ return $this->title;
+ }
+
+ /**
+ * ¥á¥Ã¥»¡¼¥¸¥»¥Ã¥È
+ *
+ * @param $message
+ */
+ function set_message ($message) {
+ $this->message = $message;
+ }
+
+ /**
+ * ¥á¥Ã¥»¡¼¥¸¥²¥Ã¥È
+ *
+ * @return ¥á¥Ã¥»¡¼¥¸
+ */
+ function get_message () {
+ return $this->message;
+ }
+
+ /**
+ * ¥ê¥ó¥¯¥»¥Ã¥È
+ *
+ * @param $link_name
+ * @param $link_url
+ */
+ function add_link ($link_name, $link_url) {
+ $donelink_obj = new ACSDoneLink();
+
+ $donelink_obj->set_link_name($link_name);
+ $donelink_obj->set_url($link_url);
+
+ array_push($this->donelink_obj_array, $donelink_obj);
+ }
+
+ /**
+ * ¥ê¥ó¥¯¥²¥Ã¥È
+ *
+ * @return ¥ê¥ó¥¯¤ÎÇÛÎó
+ */
+ function get_link_row_array () {
+ $link_row_array = array();
+ foreach ($this->donelink_obj_array as $donelink_obj) {
+ $link_row = array();
+
+ $link_row['link_name'] = $donelink_obj->get_link_name();
+ $link_row['url'] = $donelink_obj->get_url();
+
+ array_push($link_row_array, $link_row);
+ }
+ return $link_row_array;
+ }
+}
+
+/**
+ * ACS DoneLink
+ *
+ * Done¥¯¥é¥¹¤ÇÊÝ»ý¤¹¤ë¥ê¥ó¥¯¤Î¥ª¥Ö¥¸¥§¥¯¥È
+ * ¥ê¥ó¥¯Àè̾¤ÈURL¤òÊÝ»ý¤¹¤ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/01/06 07:55:08 $
+ */
+class ACSDoneLink
+{
+ /* ¥ê¥ó¥¯Àè̾ */
+ var $link_name;
+
+ /* ¥ê¥ó¥¯Àè URL */
+ var $url;
+
+ /**
+ * ¥ê¥ó¥¯Àè̾¥»¥Ã¥È
+ *
+ * @param ¥ê¥ó¥¯Àè
+ */
+ function set_link_name ($link_name) {
+ $this->link_name = $link_name;
+ }
+
+ /**
+ * ¥ê¥ó¥¯Àè̾¥²¥Ã¥È
+ */
+ function get_link_name () {
+ return $this->link_name;
+ }
+
+ /**
+ * ¥ê¥ó¥¯Àè URL ¥»¥Ã¥È
+ *
+ * @param ¥ê¥ó¥¯Àè
+ */
+ function set_url ($url) {
+ $this->url = $url;
+ }
+
+ /**
+ * ¥ê¥ó¥¯Àè URL ¥²¥Ã¥È
+ */
+ function get_url () {
+ return $this->url;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSErrorCheck.class.php,v 1.3 2007/03/01 09:01:12 w-ota Exp $
+
+/**
+ * ¥¨¥é¡¼¥Á¥§¥Ã¥¯´Ø¿ô
+ */
+class ACSErrorCheck
+{
+ /**
+ * ÆüÉÕ¤¬Àµ¤·¤¤¤«
+ *
+ * @param ÆüÉÕ¤òɽ¤¹Ê¸»úÎó (YYYY/MM/DD)
+ * @return Àµ(true) / ¸í(false)
+ */
+ static function is_valid_date($str) {
+ list($yyyy, $mm, $dd) = explode('/', $str);
+ if (preg_match('/^[0-9]{4}\/[0-9]{2}\/[0-9]{2}$/', $str) && checkdate($mm, $dd, $yyyy)) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¼«Á³¿ô¤«¤É¤¦¤«
+ *
+ * @param $str ȽÄꤹ¤ëʸ»úÎó
+ * @param $enable_zero £°¤ò´Þ¤à¤«Èݤ«
+ * @return Àµ(true) / ¸í(false)
+ */
+ function is_natural_number($str,$enable_zero=false) {
+ $min = $enable_zero===true ? 0 : 1;
+ if (preg_match('/^[0-9]+$/', $str) && $str >= $min) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSExternalRSS.class.php,v 1.1 2007/03/28 05:58:13 w-ota Exp $
+
+class ACSExternalRSS {
+
+ /**
+ * ³°ÉôRSS¼«Æ°¼è¤ê¹þ¤ß¤ò¼Â¹Ô¤¹¤ë
+ *
+ * @param $community_row ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * @return $msg
+ */
+ static function do_process($community_row) {
+ $msg = "";
+ // ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ // ³°ÉôRSS¥³¥ó¥Æ¥ó¥Ä¾ðÊó¤òÉÕ²Ã
+ $community_row = ACSExternalRSS::add_contents_row_array($community_row);
+ // RSS¾ðÊó¤ò¼èÆÀ
+ $rss_row_array = ACSExternalRSS::get_external_rss_row_array($community_row['contents_row_array']['external_rss_url']['contents_value']);
+
+ if ($rss_row_array == false) {
+ return;
+ }
+
+ // ³°ÉôRSS.Åê¹Æ¼Ô¤¬³ºÅö¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤Ç¤¢¤ë¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤¹¤ë
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($community_row['community_id']);
+ $err_flg = 1;
+ foreach ($community_admin_user_info_row_array as $community_admin_user_info_row) {
+ if ($community_admin_user_info_row['user_community_id'] == $community_row['contents_row_array']['external_rss_post_user']['contents_value']) {
+ $err_flg = 0;
+ break;
+ }
+ }
+ if ($err_flg) {
+ return;
+ }
+
+ // Åê¹Æ¼Ô¾ðÊó (ml_addr¤ò´Þ¤à¾ðÊó)
+ $post_user_info_row = ACSUser::get_user_info_row_by_user_community_id($community_row['contents_row_array']['external_rss_post_user']['contents_value']);
+ $post_user_info_row = ACSUser::get_user_info_row_by_user_id($post_user_info_row['user_id']);
+
+ // Åê¹Æ¾ðÊó($form) //
+
+ // ½é´ü²½
+ $form = array();
+ $form['community_id'] = $community_row['community_id'];
+ $form['user_community_id'] = $community_row['contents_row_array']['external_rss_post_user']['contents_value'];
+ $form['open_level_code'] = $community_row['contents_row_array']['external_rss_url']['open_level_code'];
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ¤Î¾ì¹ç
+ if ($open_level_master_array[$form['open_level_code']] == ACSMsg::get_mst('open_level_master','D06')
+ && intval($community_row['contents_row_array']['external_rss_public_release_expire_term']['contents_value']) >= 1) {
+ $form['expire_date'] = "CURRENT_DATE + '@ " . ($community_row['contents_row_array']['external_rss_public_release_expire_term']['contents_value'] - 1) . " days'::INTERVAL";
+ } else {
+ $form['expire_date'] = '';
+ }
+ // Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß) ¤Î¾ì¹ç
+ if ($open_level_master_array[$form['open_level_code']] == ACSMsg::get_mst('open_level_master','D04')) {
+ $form['trusted_community_row_array'] = $community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'];
+ } else {
+ $form['trusted_community_row_array'] = array();
+ }
+ $form['ml_send_flag'] = ACSLib::get_pg_boolean(ACSLib::get_boolean($community_row['contents_row_array']['external_rss_ml_send_flag']['contents_value']));
+
+
+ // RSSµ»ö¤´¤È¤Î½èÍý //
+
+ foreach ($rss_row_array['items'] as $rss_item_row) {
+ // ·ÇºÜ¤µ¤ì¤Æ¤¤¤ë¤«¥Á¥§¥Ã¥¯
+ if (!ACSExternalRSS::is_posted_value($community_row['community_id'], $rss_item_row['rss_item_title'], $rss_item_row['rss_item_date'])) {
+ // ·ÇºÜ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+ $form['subject'] = $rss_item_row['rss_item_title'];
+ $form['body'] = $rss_item_row['rss_item_content'];
+ $form['post_date'] = $rss_item_row['rss_item_date'];
+
+ $bbs_id = ACSExternalRSS::set_bbs_and_external_rss($form, $rss_row_array['channel_info'], $rss_item_row);
+ if (!$bbs_id) {
+ echo "ERROR\n";
+ exit;
+ } else {
+ $msg .= "·ÇºÜ: $community_row[community_name] (community_id=$community_row[community_id])\n";
+ $msg .= "\t=> $form[subject] (bbs_id=$bbs_id)\n";
+
+ if (ACSLib::get_boolean($form['ml_send_flag'])) {
+ // ML¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ
+ $ml_status_row = ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D62'));
+ $ml_status = $ml_status_row['contents_value'];
+
+ // MLͤê¤Î¾ì¹ç¥á¡¼¥ë¤òÁ÷¿®
+ if ($ml_status == 'ACTIVE') {
+ // ·ï̾ÊÔ½¸
+ $subject = str_replace('{BBSID}', $bbs_id, ACS_COMMUNITY_ML_SUBJECT_FORMAT) . $form['subject'];
+
+ // MLÁ÷¿®
+ ACSCommunityMail::send_community_mailing_list(
+ $community_row['community_id'],
+ $post_user_info_row['mail_addr'],
+ $form['subject'],
+ $form['body']);
+ $msg .= "\t=> MLÁ÷¿®\n";
+ }
+ }
+ }
+ }
+ }
+
+ return $msg;
+ }
+
+ /**
+ * $community_row¤Ë³°ÉôRSS¤Ë´Ø¤¹¤ë¥³¥ó¥Æ¥ó¥Ä¾ðÊó¤òÉղ乤ë
+ *
+ * @param $community_row ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ * @return ¤Ê¤·
+ */
+ static function add_contents_row_array($community_row) {
+ // contents
+ if (!is_array($community_row['contents_row_array'])) {
+ $community_row['contents_row_array'] = array();
+ }
+ // ³°ÉôRSS.URL
+ $community_row['contents_row_array']['external_rss_url'] =
+ ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D63'));
+ // ³°ÉôRSS.Åê¹Æ¼Ô
+ $community_row['contents_row_array']['external_rss_post_user'] =
+ ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D64'));
+ // ³°ÉôRSS.MLÄÌÃÎ
+ $community_row['contents_row_array']['external_rss_ml_send_flag'] =
+ ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D65'));
+ // ³°ÉôRSS.¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹´ü´Ö
+ $community_row['contents_row_array']['external_rss_public_release_expire_term'] =
+ ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D66'));
+ // ³°ÉôRSS.URL contents_trusted_community
+ $community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'] =
+ ACSCommunity::get_contents_trusted_community_row_array($community_row['community_id'], $community_row['contents_row_array']['external_rss_url']['contents_type_code'], $community_row['contents_row_array']['external_rss_url']['open_level_code']);
+
+ return $community_row;
+ }
+
+ /**
+ * RSS¥Õ¥£¡¼¥ÉURL¤ò¥»¥Ã¥È¤·¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_external_rss_community_row_array() {
+ $sql = "SELECT community.community_id, community.community_name";
+ $sql .= " FROM community, contents, contents_type_master";
+ $sql .= " WHERE community.delete_flag = 'f'";
+ $sql .= " AND community.community_id = contents.community_id";
+ $sql .= " AND contents.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND contents.contents_value IS NOT NULL";
+ $sql .= " AND contents.contents_value != ''";
+ $sql .= " AND contents_type_master.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D63')."'";
+ $sql .= " ORDER BY community.community_id";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ³°ÉôRSS¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $bbs_id bbs_id
+ * @return ³°ÉôRSS¾ðÊó(Ï¢ÁÛÇÛÎó)
+ */
+ static function get_external_rss_row($bbs_id) {
+ $bbs_id = pg_escape_string($bbs_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM bbs, external_rss";
+ $sql .= " WHERE bbs.bbs_id = '$bbs_id'";
+ $sql .= " AND bbs.bbs_id = external_rss.bbs_id";
+ $row = ACSDB::_get_row($sql);
+
+ return $row;
+ }
+
+ /**
+ * ´û¤Ë·ÇºÜ¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $rss_title RSS<title>
+ * @param $rss_date RSS<dc:date>
+ * @param true / false
+ */
+ static function is_posted_value($community_id, $rss_item_title, $rss_item_date) {
+ $community_id = pg_escape_string($community_id);
+ $rss_item_title = pg_escape_string($rss_item_title);
+ $rss_item_date = pg_escape_string($rss_item_date);
+
+ $sql = "SELECT count(*)";
+ $sql .= " FROM bbs, external_rss";
+ $sql .= " WHERE bbs.community_id = '$community_id'";
+ $sql .= " AND bbs.bbs_id = external_rss.bbs_id";
+ $sql .= " AND external_rss.rss_item_title = '$rss_item_title'";
+ $sql .= " AND external_rss.rss_item_date = '$rss_item_date'::TIMESTAMP(0)";
+ // ºï½ü¥Õ¥é¥°Åù¤ÎÈæ³Ó¤ÏÉÔÍ×
+
+ $value = ACSDB::_get_value($sql);
+
+ if ($value) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+
+ /**
+ * RSS¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥Õ¥©¡¼¥à¾ðÊó
+ * @param $rss_channel_row <channel>
+ * @param $rss_item_row <item>
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_bbs_and_external_rss($form, $rss_channel_row, $rss_item_row) {
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ $bbs_id_seq = ACSDB::get_next_seq('bbs_id_seq');
+
+ // bbs
+ $sql = "INSERT INTO bbs";
+ $sql .= " (bbs_id, community_id, user_community_id, subject, body, open_level_code, expire_date, ml_send_flag)";
+ $sql .= " VALUES ($bbs_id_seq, $form[community_id], $form[user_community_id], $form[subject], $form[body], $form[open_level_code], ";
+ $sql .= ($org_form['expire_date'] != NULL ? $org_form['expire_date'] : "null") . ", $form[ml_send_flag])";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ $form = $org_form;
+ // bbs_trusted_community
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+ // Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß)
+ if ($open_level_master_array[$form['open_level_code']] == ACSMsg::get_mst('open_level_master','D04')) {
+ foreach ($form['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_id = pg_escape_string($trusted_community_row['community_id']);
+
+ $sql = "INSERT INTO bbs_trusted_community";
+ $sql .= " (bbs_id, trusted_community_id)";
+ $sql .= " VALUES ($bbs_id_seq, $trusted_community_id)";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // external_rss
+ ACSLib::escape_sql_array($rss_item_row);
+ ACSLib::get_sql_value_array($rss_item_row);
+ ACSLib::escape_sql_array($rss_channel_row);
+ ACSLib::get_sql_value_array($rss_channel_row);
+ $sql = "INSERT INTO external_rss";
+ $sql .= " (bbs_id, rss_url, rss_channel_title, rss_item_title, rss_item_content, rss_item_date, rss_item_link)";
+ $sql .= " VALUES ($bbs_id_seq, $rss_channel_row[rss_url], $rss_channel_row[rss_channel_title], $rss_item_row[rss_item_title], $rss_item_row[rss_item_content], $rss_item_row[rss_item_date], $rss_item_row[rss_item_link])";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ if ($ret) {
+ $ret = $bbs_id_seq;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ³°ÉôRSS¼«Æ°¼è¹þ¤ÎÀßÄêÆâÍƤòÅÐÏ¿¤¹¤ë
+ *
+ * @param $community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $form ÆþÎÏ¥Õ¥©¡¼¥à¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_external_rss_contents($community_id, $form) {
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ // 63: external_rss_url
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D63'), $contents_type_master_array);
+ $contents_form['open_level_code'] = $form['external_rss_url_open_level_code'];
+ $contents_form['contents_value'] = $form['external_rss_url'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß) ¤Î¸ø³«¥³¥ß¥å¥Ë¥Æ¥£
+ if (is_array($form['external_rss_url_trusted_community_id_array'])) {
+ $external_rss_url_trusted_community_form = array();
+ $external_rss_url_trusted_community_form['community_id'] = $community_id;
+ $external_rss_url_trusted_community_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D63'), $contents_type_master_array);
+ $external_rss_url_trusted_community_form['open_level_code'] = $form['external_rss_url_open_level_code'];
+ foreach ($form['external_rss_url_trusted_community_id_array'] as $trusted_community_id) {
+ $external_rss_url_trusted_community_form['trusted_community_id'] = $trusted_community_id;
+ $ret = ACSCommunity::set_contents_trusted_community($external_rss_url_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // 64: external_rss_post_user
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D64'), $contents_type_master_array);
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D64'));
+ $contents_form['contents_value'] = $form['external_rss_post_user'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // 65: external_rss_ml_send_flag
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D65'), $contents_type_master_array);
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D65'));
+ $contents_form['contents_value'] = ACSLib::get_pg_boolean($form['external_rss_ml_send_flag']); // 't', 'f'
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // 66: external_rss_public_release_expire_term
+ $contents_form = array();
+ $contents_form['community_id'] = $community_id;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D66'), $contents_type_master_array);
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D66'));
+ $contents_form['contents_value'] = $form['external_rss_public_release_expire_term'];
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ return $ret;
+ }
+
+ /**
+ * RSS¥Õ¥£¡¼¥É¤ÎURL¤ò»ØÄꤷ¤ÆÆâÍƤòparse¤¹¤ë
+ *
+ * @param $rss_url RSS¥Õ¥£¡¼¥É¤ÎURL(http)
+ * @return RSS¼èÆÀ»þ=RSS¾ðÊó(Ï¢ÁÛÇÛÎó) / RSS¼èÆÀ¥¨¥é¡¼»þ=false
+ */
+ static function get_external_rss_row_array($rss_url) {
+ // XML_RSS, XML_Parser
+ require_once('XML/RSS.php');
+
+ // RSS¾ðÊó
+ $rss_row_array = array();
+
+ $line_array = file($rss_url);
+ if ($line_array == false) {
+ return false;
+ }
+
+ $rss_data = implode(NULL, $line_array);
+ $rss_encoding = mb_detect_encoding($rss_data, 'auto');
+
+ // XML_RSS
+ $rss = new XML_RSS();
+ $rss->setInputString($rss_data);
+ $rss->parse();
+
+ // Channel Info
+ $channel_info = $rss->getchannelInfo();
+ $rss_row_array['channel_info'] = array();
+ $rss_row_array['channel_info']['rss_channel_title'] = mb_convert_encoding($channel_info['title'], mb_internal_encoding(), $rss_encoding);
+ $rss_row_array['channel_info']['rss_url'] = $rss_url;
+
+ // Items
+ $rss_row_array['items'] = array();
+ foreach ($rss->getItems() as $item) {
+ $item_row = array();
+ $item_row['rss_item_title'] = mb_convert_encoding($item['title'], mb_internal_encoding(), $rss_encoding);
+ $item_row['rss_item_content'] = strip_tags(mb_convert_encoding($item['content:encoded'], mb_internal_encoding(), $rss_encoding));
+ if (trim($item_row['rss_item_content']) == '') {
+ // <content:encoded>¤¬Ìµ¤¤¾ì¹ç¤Ï<description>¤ò¼èÆÀ
+ $item_row['rss_item_content'] = strip_tags(mb_convert_encoding($item['description'], mb_internal_encoding(), $rss_encoding));
+ }
+ $item_row['rss_item_date'] = mb_convert_encoding($item['dc:date'], mb_internal_encoding(), $rss_encoding);
+ $item_row['rss_item_link'] = mb_convert_encoding($item['link'], mb_internal_encoding(), $rss_encoding);
+ array_push($rss_row_array['items'], $item_row);
+ }
+
+ return $rss_row_array;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ACS File
+ *
+ * @author kuwayama
+ * @version $Revision: 1.35 $ $Date: 2006/12/18 07:41:48 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFileInfoModel.class.php');
+require_once(ACS_CLASS_DIR . 'ACSFileAccessHistoryModel.class.php');
+class ACSFile
+{
+ /* ¥Õ¥¡¥¤¥ëID */
+ var $file_id;
+
+ /* ¥ª¡¼¥Ê¡¼¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $owner_community_id;
+
+ /* ɽ¼¨ÍÑ¥Õ¥¡¥¤¥ë̾ */
+ var $display_file_name;
+
+ /* ¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾ */
+ var $server_file_name;
+
+ /* ¥µ¥à¥Í¥¤¥ë¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾ */
+ var $thumbnail_server_file_name;
+
+ /* RSS¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾ */
+ var $rss_server_file_name;
+
+ /* MIME TYPE */
+ var $mime_type;
+
+ /* ¥Õ¥¡¥¤¥ë¥µ¥¤¥º */
+ var $file_size;
+
+ /* ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $entry_user_community_id;
+
+ /* ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾ */
+ var $entry_user_community_name;
+
+ /* ÅÐÏ¿Æü */
+ var $entry_date;
+
+ /* ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $update_user_community_id;
+
+ /* ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾ */
+ var $update_user_community_name;
+
+ /* ¹¹¿·Æü */
+ var $update_date;
+
+ /* ¥¢¥Ã¥×¥í¡¼¥É¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë̾ */
+ var $upload_temp_file_name;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $file_info_row
+ */
+ function ACSFile ($file_info_row) {
+ $this->set_file_info($file_info_row);
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊ󥻥åÈ
+ *
+ * @param $file_info_row
+ */
+ function set_file_info ($file_info_row) {
+ $this->set_file_id($file_info_row['file_id']);
+ $this->set_owner_community_id($file_info_row['owner_community_id']);
+ $this->set_display_file_name($file_info_row['display_file_name']);
+ $this->set_server_file_name($file_info_row['server_file_name']);
+ $this->set_thumbnail_server_file_name($file_info_row['thumbnail_server_file_name']);
+ $this->set_rss_server_file_name($file_info_row['rss_server_file_name']);
+ $this->set_mime_type($file_info_row['mime_type']);
+ $this->set_file_size($file_info_row['file_size']);
+ $this->set_entry_user_community_id($file_info_row['entry_user_community_id']);
+ $this->set_entry_user_community_name($file_info_row['entry_user_community_name']);
+ $this->set_entry_date($file_info_row['entry_date']);
+ $this->set_update_user_community_id($file_info_row['update_user_community_id']);
+ $this->set_update_user_community_name($file_info_row['update_user_community_name']);
+ $this->set_update_date($file_info_row['update_date']);
+
+ // ¥¢¥Ã¥×¥í¡¼¥É»þ¤ËɬÍ×
+ $this->set_upload_temp_file_name($file_info_row['upload_temp_file_name']);
+ }
+
+ /**
+ * ¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ¡Ê¥Õ¥¡¥¤¥ëID»ØÄê¡Ë
+ *
+ * @param $file_id
+ */
+ static function get_file_info_instance ($file_id) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_obj = new ACSFile($file_info_row);
+
+ return $file_obj;
+ }
+
+
+ /**
+ * ¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ¡Ê¥¢¥Ã¥×¥í¡¼¥ÉÍÑ¡Ë
+ *
+ * @param $upload_file_info_row $_FILES['new_file']
+ * @param $owner_community_id ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID
+ * @param $acs_user_community_id ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $file_id ´û¸¥Õ¥¡¥¤¥ë¤Î¹¹¿·»þ¤Î¥Õ¥¡¥¤¥ëID
+ */
+ static function get_upload_file_info_instance ($upload_file_info_row, $owner_community_id, $acs_user_community_id, $file_id = "") {
+ $file_info_row = array();
+ /* file_id ¼èÆÀ */
+ if($file_id == ""){
+ $file_id = ACSFileInfoModel::get_next_file_id_seq();
+ }
+
+ /* display_file_name */
+ if (!ini_get('mbstring.encoding_translation')) {
+ $display_file_name = mb_convert_encoding($upload_file_info_row['name'], mb_internal_encoding(), mb_http_output());
+ } else {
+ $display_file_name = $upload_file_info_row['name'];
+ }
+ /* server_file_name ºîÀ® */
+ $server_file_name = ACSFile::get_upload_file_save_file_name($owner_community_id, $file_id);
+
+ /* thumbnail_server_file_name ºîÀ® */
+ $thumbnail_server_file_name = ACSFile::get_thumbnail_save_file_name($owner_community_id, $file_id);
+ /* ºîÀ®Æü */
+ $filemtime = filemtime($upload_file_info_row['tmp_name']);
+
+ // insert ÍѤ˥ե©¡¼¥Þ¥Ã¥È¤¹¤ë
+ $entry_date = ACSLib::convert_timestamp_to_pg_date($filemtime);
+
+ /* ¹¹¿·Æü */
+ $update_date = $entry_date;
+
+ $file_info_row['file_id'] = $file_id;
+ $file_info_row['owner_community_id'] = $owner_community_id;
+ $file_info_row['display_file_name'] = $display_file_name;
+ $file_info_row['server_file_name'] = $server_file_name;
+ $file_info_row['thumbnail_server_file_name'] = $thumbnail_server_file_name;
+ $file_info_row['mime_type'] = $upload_file_info_row['type'];
+ $file_info_row['file_size'] = $upload_file_info_row['size'];
+ $file_info_row['entry_user_community_id'] = $acs_user_community_id;
+ $file_info_row['entry_date'] = $entry_date;
+ $file_info_row['update_user_community_id'] = $acs_user_community_id;
+ $file_info_row['update_date'] = $update_date;
+
+ $file_info_row['upload_temp_file_name'] = $upload_file_info_row['tmp_name'];
+
+ $file_obj = new ACSFile($file_info_row);
+ return $file_obj;
+ }
+
+ /**
+ * ¥¤¥ó¥¹¥¿¥ó¥¹¼èÆÀ¡ÊÍúÎò¹¹¿·¥¢¥Ã¥×¥í¡¼¥ÉÍÑ¡Ë
+ *
+ * @param $upload_file_info_row $_FILES['new_file']
+ * @param $owner_community_id ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID
+ * @param $acs_user_community_id ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $file_id ´û¸¥Õ¥¡¥¤¥ë¤Î¹¹¿·»þ¤Î¥Õ¥¡¥¤¥ëID
+ */
+ static function get_upload_file_info_instance_for_update($upload_file_info_row, $owner_community_id, $acs_user_community_id, $file_id) {
+ $file_info_row = array();
+
+ /* ¿·file_id¼èÆÀ (server_file_nameÍÑ) */
+ $new_file_id = ACSFileInfoModel::get_next_file_id_seq();
+
+ /* display_file_name */
+ if (!ini_get('mbstring.encoding_translation')) {
+ $display_file_name = mb_convert_encoding($upload_file_info_row['name'], mb_internal_encoding(), mb_http_output());
+ } else {
+ $display_file_name = $upload_file_info_row['name'];
+ }
+ /* server_file_name ºîÀ® */
+ $server_file_name = ACSFile::get_upload_file_save_file_name($owner_community_id, $new_file_id);
+
+ /* thumbnail_server_file_name ºîÀ® */
+ $thumbnail_server_file_name = ACSFile::get_thumbnail_save_file_name($owner_community_id, $new_file_id);
+ /* ºîÀ®Æü */
+ $filemtime = filemtime($upload_file_info_row['tmp_name']);
+
+ // insert ÍѤ˥ե©¡¼¥Þ¥Ã¥È¤¹¤ë
+ $entry_date = ACSLib::convert_timestamp_to_pg_date($filemtime);
+
+ /* ¹¹¿·Æü */
+ $update_date = $entry_date;
+
+ $file_info_row['file_id'] = $file_id;
+ $file_info_row['owner_community_id'] = $owner_community_id;
+ $file_info_row['display_file_name'] = $display_file_name;
+ $file_info_row['server_file_name'] = $server_file_name;
+ $file_info_row['thumbnail_server_file_name'] = $thumbnail_server_file_name;
+ $file_info_row['mime_type'] = $upload_file_info_row['type'];
+ $file_info_row['file_size'] = $upload_file_info_row['size'];
+ $file_info_row['entry_user_community_id'] = $acs_user_community_id;
+ $file_info_row['entry_date'] = $entry_date;
+ $file_info_row['update_user_community_id'] = $acs_user_community_id;
+ $file_info_row['update_date'] = $update_date;
+
+ $file_info_row['upload_temp_file_name'] = $upload_file_info_row['tmp_name'];
+
+ $file_obj = new ACSFile($file_info_row);
+ return $file_obj;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥»¥Ã¥È
+ *
+ * @param $file_id
+ */
+ function set_file_id ($file_id) {
+ $this->file_id = $file_id;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_file_id () {
+ return $this->file_id;
+ }
+
+ /**
+ * ¥ª¡¼¥Ê¡¼¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $owner_community_id
+ */
+ function set_owner_community_id ($owner_community_id) {
+ $this->owner_community_id = $owner_community_id;
+ }
+
+ /**
+ * ¥ª¡¼¥Ê¡¼¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_owner_community_id () {
+ return $this->owner_community_id;
+ }
+
+ /**
+ * ɽ¼¨ÍÑ¥Õ¥¡¥¤¥ë̾¥»¥Ã¥È
+ *
+ * @param $file_name
+ */
+ function set_display_file_name ($file_name) {
+ $this->display_file_name = $file_name;
+ }
+
+ /**
+ * ɽ¼¨ÍÑ¥Õ¥¡¥¤¥ë̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_display_file_name () {
+ return $this->display_file_name;
+ }
+
+ /**
+ * ¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥»¥Ã¥È
+ *
+ * @param $server_file_name
+ */
+ function set_server_file_name ($server_file_name) {
+ $this->server_file_name = $server_file_name;
+ }
+
+ /**
+ * ¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_server_file_name () {
+ return $this->server_file_name;
+ }
+
+ /**
+ * ¥µ¥à¥Í¥¤¥ë¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥»¥Ã¥È
+ *
+ * @param $thumbnail_server_file_name
+ */
+ function set_thumbnail_server_file_name ($thumbnail_server_file_name) {
+ $this->thumbnail_server_file_name = $thumbnail_server_file_name;
+ }
+
+ /**
+ * ¥µ¥à¥Í¥¤¥ë¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_thumbnail_server_file_name () {
+ return $this->thumbnail_server_file_name;
+ }
+
+ /**
+ * RSS¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥»¥Ã¥È
+ *
+ * @param $rss_server_file_name
+ */
+ function set_rss_server_file_name ($rss_server_file_name) {
+ $this->rss_server_file_name = $rss_server_file_name;
+ }
+
+ /**
+ * RSS¥µ¡¼¥Ð¥Õ¥¡¥¤¥ë̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_rss_server_file_name () {
+ return $this->rss_server_file_name;
+ }
+
+ /**
+ * MIME TYPE ¥»¥Ã¥È
+ *
+ * @param $mime_type
+ */
+ function set_mime_type ($mime_type) {
+ $this->mime_type = $mime_type;
+ }
+
+ /**
+ * MIME TYPE ¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_mime_type () {
+ return $this->mime_type;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¥»¥Ã¥È
+ *
+ * @param $file_size
+ */
+ function set_file_size ($file_size) {
+ $this->file_size = $file_size;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_file_size () {
+ return $this->file_size;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¥²¥Ã¥È (KB)
+ *
+ * @param none
+ */
+ function get_file_size_kb () {
+ $size = $this->file_size / 1024;
+ return number_format(ceil($size)) . " KB";
+ }
+
+ /**
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë̾¥»¥Ã¥È
+ *
+ * @param $upload_temp_file_name
+ */
+ function set_upload_temp_file_name ($upload_temp_file_name) {
+ $this->upload_temp_file_name = $upload_temp_file_name;
+ }
+
+ /**
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_upload_temp_file_name () {
+ return $this->upload_temp_file_name;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $entry_user_community_id
+ */
+ function set_entry_user_community_id ($entry_user_community_id) {
+ $this->entry_user_community_id = $entry_user_community_id;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_user_community_id () {
+ return $this->entry_user_community_id;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥»¥Ã¥È
+ *
+ * @param $entry_user_community_name
+ */
+ function set_entry_user_community_name ($entry_user_community_name) {
+ $this->entry_user_community_name = $entry_user_community_name;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_user_community_name () {
+ return $this->entry_user_community_name;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥»¥Ã¥È
+ *
+ * @param $entry_date
+ */
+ function set_entry_date ($entry_date) {
+ $this->entry_date = $entry_date;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_date () {
+ return $this->entry_date;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥²¥Ã¥È (yyyymmddhmi)
+ *
+ * @param none
+ */
+ function get_entry_date_yyyymmddhmi () {
+ $date_yyyymmddhmi = ACSLib::convert_pg_date_to_str($this->entry_date);
+ return $date_yyyymmddhmi;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $update_user_community_id
+ */
+ function set_update_user_community_id ($update_user_community_id) {
+ $this->update_user_community_id = $update_user_community_id;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_user_community_id () {
+ return $this->update_user_community_id;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥»¥Ã¥È
+ *
+ * @param $update_user_community_name
+ */
+ function set_update_user_community_name ($update_user_community_name) {
+ $this->update_user_community_name = $update_user_community_name;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_user_community_name () {
+ return $this->update_user_community_name;
+ }
+
+ /**
+ * ¹¹¿·Æü¥»¥Ã¥È
+ *
+ * @param $update_date
+ */
+ function set_update_date ($update_date) {
+ $this->update_date = $update_date;
+ }
+
+ /**
+ * ¹¹¿·Æü¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_date () {
+ return $this->update_date;
+ }
+
+ /**
+ * ¹¹¿·Æü¥²¥Ã¥È (yyyymmddhmi)
+ *
+ * @param none
+ */
+ function get_update_date_yyyymmddhmi () {
+ $date_yyyymmddhmi = ACSLib::convert_pg_date_to_str($this->update_date);
+ return $date_yyyymmddhmi;
+ }
+
+ /**
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ëÊݸÀè¥Ñ¥¹
+ *
+ * @param $owner_community_id
+ * @param $file_id
+ */
+ function get_upload_file_save_file_name ($owner_community_id, $file_id) {
+ //$upload_file_save_file_name = ACS_FOLDER_DIR;
+ //$upload_file_save_file_name .= '/';
+ //$upload_file_save_file_name .= $owner_community_id;
+ //$upload_file_save_file_name .= '/';
+
+ $upload_file_save_file_name = ACSFile::get_upload_file_save_path($owner_community_id);
+ $upload_file_save_file_name .= $file_id;
+
+ return $upload_file_save_file_name;
+ }
+
+ /**
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ëÊݸÀè¥Ç¥£¥ì¥¯¥È¥ê
+ * ¥Õ¥¡¥¤¥ë³ÊǼÀè¥ë¡¼¥È¥Ñ¥¹ / ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID / ¥Õ¥¡¥¤¥ë̾ (file_id)
+ *
+ * @param $owner_community_id
+ */
+ static function get_upload_file_save_path ($owner_community_id) {
+ //$upload_file_save_path = ACS_FOLDER_DIR;
+ //$upload_file_save_path .= '/';
+ $upload_file_save_path = $owner_community_id;
+ $upload_file_save_path .= '/';
+
+ return $upload_file_save_path;
+ }
+
+ /**
+ * ¥µ¥à¥Í¥¤¥ë²èÁü¥Õ¥¡¥¤¥ë̾
+ * ¥Õ¥¡¥¤¥ë³ÊǼÀè¥ë¡¼¥È¥Ñ¥¹ / ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID / ¥Õ¥¡¥¤¥ë̾ (file_id.thumb)
+ *
+ * @param $owner_community_id
+ * @param $file_id
+ */
+ static function get_thumbnail_save_file_name ($owner_community_id, $file_id) {
+ $thumnail_save_file_name = ACSFile::get_upload_file_save_path($owner_community_id);
+ $thumnail_save_file_name .= $file_id;
+ $thumnail_save_file_name .= '.thumb';
+ return $thumnail_save_file_name;
+ }
+
+ /**
+ * RSS¥µ¥à¥Í¥¤¥ë²èÁü¥Õ¥¡¥¤¥ë̾
+ * ¥Õ¥¡¥¤¥ë³ÊǼÀè¥ë¡¼¥È¥Ñ¥¹ / ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID / ¥Õ¥¡¥¤¥ë̾ (file_id.rss)
+ *
+ * @param $owner_community_id
+ * @param $file_id
+ */
+ function get_rss_save_file_name ($owner_community_id, $file_id) {
+ $rss_save_file_name = ACSFile::get_upload_file_save_path($owner_community_id);
+ $rss_save_file_name .= $file_id;
+ $rss_save_file_name .= '.rss';
+ return $rss_save_file_name;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÄɲÃ
+ *
+ * @param none
+ */
+ function add_file () {
+ $ret = ACSFileInfoModel::insert_file_info($this);
+
+ return $ret;
+ }
+
+ /**
+ * ¥¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ëÊݸ
+ * ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ò¥Õ¥©¥ë¥À¤Î³ÊǼ¾ì½ê¤Ø°ÜÆ°¤¹¤ë
+ *
+ * @param $save_mode Êݸ¤¹¤ë¥â¡¼¥É ('PROFILE' or 'DIARY' or 'BBS' or 'FOLDER')
+ */
+ function save_upload_file ($save_mode) {
+ // 0¥Ð¥¤¥È¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¡¢¥¨¥é¡¼
+ if ($this->get_file_size() <= 0) {
+ return false;
+ }
+
+ /* ¥Ç¥£¥ì¥¯¥È¥ê¸ºß¥Á¥§¥Ã¥¯ */
+ // ¤Ê¤¤¾ì¹ç¤ÏºîÀ®¤¹¤ë
+ $to_dir = ACS_FOLDER_DIR . "/";
+ $to_dir .= $this->get_upload_file_save_path($this->get_owner_community_id());
+ if(!file_exists($to_dir)) {mkdir($to_dir); chmod($to_dir, 0777);}
+
+ $from = $this->get_upload_temp_file_name();
+ $to = ACS_FOLDER_DIR . "/" . $this->get_server_file_name();
+ if(is_uploaded_file($from)){
+ $ret = move_uploaded_file($from, $to);
+ if (!$ret) {
+ return $ret;
+ }
+ }else{
+ //ľÀܤΥ¢¥Ã¥×¥í¡¼¥É¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¤¾ì¹ç¡¢°ÜÆ°¤¹¤ë
+ $ret = rename($from, $to);
+ }
+ /* ²èÁü¤Î¾ì¹ç¡¢¥µ¥à¥Í¥¤¥ë¤òºîÀ® */
+ if ($this->is_image_file()) {
+ $ret = $this->make_thumbnail($to, $save_mode);
+ }
+ return $ret;
+ }
+
+ /**
+ * ¥µ¥à¥Í¥¤¥ë²èÁüºîÀ®
+ *
+ * @param $target_file ¥µ¥à¥Í¥¤¥ëºîÀ®¸µ ²èÁü¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ * @param $save_mode Êݸ¤¹¤ë¥â¡¼¥É ('PROFILE' or 'DIARY' or 'BBS' or 'FOLDER')
+ */
+ function make_thumbnail ($target_file, $save_mode) {
+ // ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×̾
+ //$system_config_group = '²èÁü¥Õ¥¡¥¤¥ë';
+ $system_config_group = ACSMsg::get_mst('system_config_group','D04');
+
+ // ²èÁü¥µ¥¤¥º¤ò¼èÆÀ
+ $default_width_max = "";
+ $default_height_max = "";
+ $thumb_width_max = "";
+ $thumb_height_max = "";
+ $rss_width_max = "";
+ $rss_height_max = "";
+
+ switch ($save_mode) {
+ case 'PROFILE':
+ $default_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'PROFILE_IMAGE_WIDTH_MAX');
+ $default_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'PROFILE_IMAGE_HEIGHT_MAX');
+ $thumb_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'PROFILE_IMAGE_THUMB_WIDTH_MAX');
+ $thumb_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'PROFILE_IMAGE_THUMB_HEIGHT_MAX');
+ break;
+
+ case 'DIARY':
+ $default_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'DIARY_IMAGE_WIDTH_MAX');
+ $default_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'DIARY_IMAGE_HEIGHT_MAX');
+ $thumb_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'DIARY_IMAGE_THUMB_WIDTH_MAX');
+ $thumb_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'DIARY_IMAGE_THUMB_HEIGHT_MAX');
+ break;
+
+ case 'BBS':
+ $default_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_WIDTH_MAX');
+ $default_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_HEIGHT_MAX');
+ $thumb_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_THUMB_WIDTH_MAX');
+ $thumb_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_THUMB_HEIGHT_MAX');
+ $rss_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_RSS_WIDTH_MAX');
+ $rss_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'BBS_IMAGE_RSS_HEIGHT_MAX');
+ break;
+
+ case 'FOLDER':
+ $thumb_width_max = ACSSystemConfig::get_keyword_value($system_config_group, 'FOLDER_IMAGE_THUMB_WIDTH_MAX');
+ $thumb_height_max = ACSSystemConfig::get_keyword_value($system_config_group, 'FOLDER_IMAGE_THUMB_HEIGHT_MAX');
+ break;
+
+ default:
+ return false;
+ }
+
+ // ¥µ¥à¥Í¥¤¥ë²èÁüºîÀ®
+ // ImageMagick
+ $image_obj = new ACSImageMagickWrapper($target_file);
+ if (!$image_obj) {
+ return false;
+ }
+
+ // ºÇÂ祵¥¤¥º¤è¤êÂ礤¤¾ì¹ç¤Ï½Ì¾®¤¹¤ë
+ // ¥Õ¥©¥ë¥À¤Î¾ì¹ç¤ÏÀ©¸Â¤Ê¤·
+ if ($save_mode != 'FOLDER') {
+ $new_image_name = $image_obj->reduce_image($default_width_max, $default_height_max);
+ }
+
+ // ¥µ¥à¥Í¥¤¥ëºîÀ®
+ $new_thumb_name = $image_obj->make_jpg_thumbnail(ACS_FOLDER_DIR . $this->get_thumbnail_server_file_name(),
+ $thumb_width_max, $thumb_height_max);
+
+ // RSS ¥Õ¥£¡¼¥ÉÍÑ
+ // BBS ¤Î¾ì¹ç¤Ï¡¢RSSÍÑ¥Õ¥¡¥¤¥ë¤òºîÀ®
+ if ($save_mode == 'BBS') {
+ $rss_server_file_name = $this->get_rss_save_file_name($this->get_owner_community_id(), $this->get_file_id());
+ $new_thumb_name = $image_obj->make_jpg_thumbnail(ACS_FOLDER_DIR . $rss_server_file_name,
+ $rss_width_max, $rss_height_max);
+ $this->set_rss_server_file_name($rss_server_file_name);
+ }
+
+ return true;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+ *
+ * @param none
+ *
+ * @return none
+ */
+ function download_file ($mode = '') {
+ // ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ if ($mode == 'thumb') {
+ $file_path = $this->get_thumbnail_server_file_name();
+ } else if ($mode == 'rss') {
+ $file_path = $this->get_rss_server_file_name();
+ } else {
+ $file_path = $this->get_server_file_name();
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤¬Æɤ߹þ¤ß¤Ç¤¤Ê¤¤¾ì¹ç
+ if (!is_readable(ACS_FOLDER_DIR . $file_path)) {
+ header("Cache-Control: public, max-age=0");
+ header("Pragma:");
+ echo "Not Found";
+ return;
+ }
+
+ // ¥À¥¦¥ó¥í¡¼¥É¥Õ¥¡¥¤¥ë̾
+ //$download_file_name = mb_convert_encoding($this->get_display_file_name(), mb_http_output());
+ $download_file_name = $this->get_display_file_name();
+
+ // Content-type
+ $content_type = $this->get_mime_type();
+ if ($content_type == '') {
+ $content_type = 'application/octet-stream';
+ }
+
+ // charset (text¤Î¾ì¹ç)
+ if (preg_match('/text/', $content_type)) {
+ $str = implode('', file(ACS_FOLDER_DIR . $file_path));
+ $encoding = mb_detect_encoding($str, 'auto');
+ if ($encoding == 'ASCII' && mb_http_output() != 'pass') {
+ $content_type .= "; charset=" . mb_preferred_mime_name(mb_http_output());
+ } else {
+ $content_type .= "; charset=" . mb_preferred_mime_name($encoding);
+
+ }
+ }
+
+ // action: inline(¥Ö¥é¥¦¥¶Æâɽ¼¨), attachment(¥À¥¦¥ó¥í¡¼¥É¥À¥¤¥¢¥í¥°)
+ //if (preg_match('/text|image/', $content_type)) {
+ if ($this->is_image_file() or $this->is_text_file()) {
+ $action = 'inline';
+ } else {
+ $action = 'attachment';
+ }
+
+ // output_buffering¤ò̵¸ú¤Ë¤¹¤ë
+ mb_http_output('pass');
+ if ($mode == 'thumb') {
+ header("Cache-Control: public, max-age=1800");
+ header("Pragma:");
+/*
+header("Pragma: no-cache");
+header("Cache-Control: no-store");
+header("Cache-Control: no-cache");
+header("Expires: -1");
+//header("Expires: 0");
+*/
+ } else {
+ header("Cache-Control: public, max-age=0");
+ header("Pragma:");
+/*
+//header("Pragma: no-store");
+header("Pragma: no-cache");
+header("Cache-Control: no-store");
+header("Cache-Control: no-cache");
+//header("Expires: 0");
+header("Expires: -1");
+*/
+ }
+
+ // HTTP¥Ø¥Ã¥À¤òÅǤ¯ (action: inline, attachment)
+ if ($this->is_image_file()) {
+ header("Content-type: $content_type");
+ header("Content-disposition: $action; filename=\"$download_file_name\"");
+ } else {
+ header("Content-type: $content_type");
+ header("Content-disposition: $action; attachment; filename=\"" . ACSFile::get_download_name( $download_file_name ) . '"' );
+
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤òÆɤ߽Ф¹
+ readfile(ACS_FOLDER_DIR . $file_path);
+ }
+
+ /**
+ * ÍúÎò¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+ *
+ * @param none
+ *
+ * @return none
+ */
+ function download_history_file($file_history_id, $mode = '') {
+ $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
+
+ // ¥Õ¥¡¥¤¥ë¥Ñ¥¹
+ if ($mode == 'thumb') {
+ $file_path = $file_history_row['thumbnail_server_file_name'];
+ } else {
+ $file_path = $file_history_row['server_file_name'];
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤¬Æɤ߹þ¤ß¤Ç¤¤Ê¤¤¾ì¹ç
+ if (!is_readable(ACS_FOLDER_DIR . $file_path)) {
+ header("Cache-Control: public, max-age=0");
+ header("Pragma:");
+ echo "Not Found";
+ return;
+ }
+
+ // ¥À¥¦¥ó¥í¡¼¥É¥Õ¥¡¥¤¥ë̾
+// $download_file_name = mb_convert_encoding($this->get_display_file_name(), mb_http_output());
+ $download_file_name = $this->get_display_file_name();
+
+ // Content-type
+ $content_type = $file_history_row['mime_type'];
+ if ($content_type == '') {
+ $content_type = 'application/octet-stream';
+ }
+
+ // charset (text¤Î¾ì¹ç)
+ if (preg_match('/text/', $content_type)) {
+ $str = implode('', file(ACS_FOLDER_DIR . $file_path));
+ $encoding = mb_detect_encoding($str, 'auto');
+ if ($encoding == 'ASCII' && mb_http_output() != 'pass') {
+ $content_type .= "; charset=" . mb_preferred_mime_name(mb_http_output());
+ } else {
+ $content_type .= "; charset=" . mb_preferred_mime_name($encoding);
+ }
+ }
+
+ // action: inline(¥Ö¥é¥¦¥¶Æâɽ¼¨), attachment(¥À¥¦¥ó¥í¡¼¥É¥À¥¤¥¢¥í¥°)
+ //if (preg_match('/text|image/', $content_type)) {
+ if (preg_match('/image/', $file_history_row['mime_type']) || preg_match('/text/', $file_history_row['mime_type'])) {
+ $action = 'inline';
+ } else {
+ $action = 'attachment';
+ }
+
+ // HTTP¥Ø¥Ã¥À¤òÅǤ¯ (action: inline, attachment)
+// header("Content-disposition: $action; filename=\"$download_file_name\"");
+ header("Content-disposition: $action; attachment; filename=\"" . ACSFile::get_download_name( $download_file_name ) . '"' );
+ header("Content-type: $content_type");
+
+ // output_buffering¤ò̵¸ú¤Ë¤¹¤ë
+ mb_http_output('pass');
+ if ($mode == 'thumb') {
+ header("Cache-Control: public, max-age=1800");
+ header("Pragma:");
+ } else {
+ header("Cache-Control: public, max-age=0");
+ header("Pragma:");
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤òÆɤ߽Ф¹
+ readfile(ACS_FOLDER_DIR . $file_path);
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ëɽ¼¨
+ *
+ * @param $mode :NULL, thumb, rss
+ *
+ * @return true/false
+ */
+ function view_image ($mode) {
+ $mime_type = $this->get_mime_type();
+
+ if ($this->is_image_file()) {
+ // image ¥Õ¥¡¥¤¥ë½ÐÎÏ
+ $this->download_file($mode);
+ return true;
+
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ²èÁü¥Õ¥¡¥¤¥ë¤«¤É¤¦¤«
+ */
+ function is_image_file () {
+ if (preg_match('/image/', $this->get_mime_type())) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë¤«¤É¤¦¤«
+ */
+ function is_text_file () {
+ if (preg_match('/text/', $this->get_mime_type())) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ɽ¼¨ÍÑ¥Õ¥¡¥¤¥ë̾Êѹ¹
+ *
+ * @param $new_display_file_name
+ * @return $ret
+ */
+ function rename_display_file_name ($new_display_file_name) {
+ $ret = ACSFileInfoModel::update_display_file_name($this->get_file_id(), $new_display_file_name);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëºï½ü
+ *
+ * @return $ret
+ */
+ function delete_file () {
+ $ret = ACSFileInfoModel::delete_file_info($this);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹ÍúÎò¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $file_id ¥Õ¥¡¥¤¥ëID
+ * @return ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹ÍúÎò¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_file_access_history_row($user_community_id, $file_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT *" .
+ " FROM file_access_history" .
+ " WHERE user_community_id = '" . $user_community_id . "'" .
+ " AND file_id = '" . $file_id . "'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹ÍúÎò¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $file_id
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_file_access_history($user_community_id, $file_id) {
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎò
+ $file_access_history_row = ACSFile::get_file_access_history_row($user_community_id, $file_id);
+
+ $file_access_history_form = array(
+ 'user_community_id' => $user_community_id,
+ 'file_id' => $file_id,
+ 'access_date' => 'now'
+ );
+
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤¹¤ë¾ì¹ç¤ÏUPDATE
+ if ($file_access_history_row) {
+ ACSFileAccessHistoryModel::update_file_access_history($file_access_history_form);
+ // ¥ì¥³¡¼¥É¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤ÏINSERT
+ } else {
+ ACSFileAccessHistoryModel::insert_file_access_history($file_access_history_form);
+ }
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥Éµ¡Ç½ÍÑ¡§¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤òÀßÄꤹ¤ë
+ *
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function get_current_mb_encoding() {
+ // ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò¸ÇÄꤹ¤ë¾ì¹ç
+ return ACSFile::_get_mb_encoding( 'EUC-JP' ) ;
+ //return ACSFile::_get_mb_encoding( lang_get( 'charset' ) );
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥Éµ¡Ç½ÍÑ¡§¥¨¥ó¥³¡¼¥É¤ò¹Ô¤¦
+ *
+ * @return À®¸ù(¥¨¥ó¥³¡¼¥É¸å) / ¼ºÇÔ(null)
+ */
+ function _get_mb_encoding( $p_charset ) {
+
+ $mb_encoding_array = array(
+ 'Shift_JIS' => 'SJIS-win',
+ 'EUC-JP' => 'EUC-JP',
+ 'UTF-8' => 'UTF-8'
+ );
+
+ if ( isset( $mb_encoding_array[$p_charset] ) ) {
+ return $mb_encoding_array[$p_charset];
+ }
+
+ return null;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥Éµ¡Ç½ÍÑ¡§¥À¥¦¥ó¥í¡¼¥É¥Õ¥¡¥¤¥ë̾¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥Õ¥¡¥¤¥ë̾
+ */
+ function get_download_name( $p_filename ) {
+
+ $encoding = ACSFile::get_current_mb_encoding();
+ if ( $encoding === null ) {
+ return $p_filename;
+ }
+
+ $ua = $_SERVER['HTTP_USER_AGENT'];
+
+ // ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤è¤Ã¤Æ¥Õ¥¡¥¤¥ë̾¤òÊÑ´¹
+ if ( strstr( $ua, 'MSIE' ) && !strstr( $ua, 'Opera' ) ) {
+ $t_filename = mb_convert_encoding( $p_filename, 'SJIS-win', $encoding );
+
+ } elseif (strstr( $ua, 'Safari') ) {
+ // SafariÂбþ
+ $t_filename = "";
+
+ } else {
+ $t_filename = mb_convert_encoding( $p_filename, 'UTF-8', $encoding );
+ }
+
+ return $t_filename;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSFileAccessHistoryModel.class.php,v 1.1 2006/12/18 07:41:48 w-ota Exp $
+
+
+/*
+ * file_access_history¥â¥Ç¥ë
+ */
+class ACSFileAccessHistoryModel {
+
+ /**
+ * file_access_history INSERT
+ *
+ * @param $form ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_file_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO file_access_history" .
+ " (user_community_id, file_id, access_date)" .
+ " VALUES (" . $form['user_community_id'] . "," .
+ $form['file_id'] . "," . $form['access_date'] . ")";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * file_access_history UPDATE
+ *
+ * @param $form ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎò¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function update_file_access_history($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "UPDATE file_access_history" .
+ " SET" .
+ " access_date = " . $form['access_date'] .
+ " WHERE user_community_id = " . $form['user_community_id'] .
+ " AND file_id = " . $form['file_id'];
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSFileDetailInfo.class.php,v 1.4 2007/03/28 09:30:29 w-ota Exp $
+
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊ󥯥饹
+ */
+
+class ACSFileDetailInfo
+{
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param
+ * @return
+ */
+ static function get_file_detail_info_row($file_id) {
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM file_detail_info, file_category_master";
+ $sql .= " WHERE file_detail_info.file_id = '$file_id'";
+ $sql .= " AND file_detail_info.file_category_code = file_category_master.file_category_code";
+ $file_detail_info_row = ACSDB::_get_row($sql);
+
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($file_detail_info_row['file_category_code']);
+
+ $file_detail_info_row['file_contents_row_array'] = array();
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_detail_info_row['file_contents_row_array'][$file_contents_type_list_row['file_contents_type_code']]
+ = ACSFileDetailInfo::get_file_contents_row($file_id, $file_contents_type_list_row['file_contents_type_code']);
+ }
+
+ return $file_detail_info_row;
+ }
+
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̥ꥹ¥È¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param
+ * @return
+ */
+ static function get_file_contents_type_list_row_array($file_category_code) {
+ $file_category_code = pg_escape_string($file_category_code);
+
+ $sql = "SELECT *";
+ $sql .= " FROM file_contents_type_list";
+ $sql .= " WHERE file_contents_type_list.file_category_code = '$file_category_code'";
+ $sql .= " ORDER BY file_contents_type_list.file_contents_type_code ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param
+ * @return
+ */
+ static function get_file_contents_type_master_row_array_array() {
+ $file_category_master_row_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_row_array = ACSDB::get_master_array('file_contents_type');
+
+ $file_contents_type_master_row_array_array = array();
+ foreach ($file_category_master_row_array as $file_category_code => $file_category_name) {
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($file_category_code);
+
+ $file_contents_type_master_row_array_array[$file_category_code] = array();
+ $file_contents_type_master_row_array_array[$file_category_code]['file_category_code'] = $file_category_code;
+ $file_contents_type_master_row_array_array[$file_category_code]['file_category_name'] = $file_category_name;
+ $file_contents_type_master_row_array_array[$file_category_code]['file_contents_row_array'] = array();
+
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_contents_row = array();
+ $file_contents_row['file_contents_type_code'] = $file_contents_type_list_row['file_contents_type_code'];
+ $file_contents_row['file_contents_type_name'] = $file_contents_type_master_row_array[$file_contents_type_list_row['file_contents_type_code']];
+ $file_contents_type_master_row_array_array[$file_category_code]['file_contents_type_master_row_array'][$file_contents_type_list_row['file_contents_type_code']]
+ = $file_contents_row;
+ }
+ }
+
+ return $file_contents_type_master_row_array_array;
+ }
+
+
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param
+ * @param
+ * @return
+ */
+ static function get_file_contents_row($file_id, $file_contents_type_code) {
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT file_contents.file_contents_type_code, file_contents_type_master.file_contents_type_name, file_contents.file_contents_value";
+ $sql .= " FROM file_contents, file_contents_type_master";
+ $sql .= " WHERE file_contents.file_id = '$file_id'";
+ $sql .= " AND file_contents.file_contents_type_code = '$file_contents_type_code'";
+ $sql .= " AND file_contents.file_contents_type_code = file_contents_type_master.file_contents_type_code";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param
+ * @param
+ * @return
+ */
+ static function set_file_detail_info($file_id, $file_category_code, $file_contents_form_array) {
+ $file_id = pg_escape_string($file_id);
+ $file_category_code = pg_escape_string($file_category_code);
+
+ ACSDB::_do_query("BEGIN");
+
+ // DELETE: file_detail_info
+ $sql = "DELETE";
+ $sql .= " FROM file_detail_info";
+ $sql .= " WHERE file_id = '$file_id'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // DELETE: file_contents
+ $sql = "DELETE";
+ $sql .= " FROM file_contents";
+ $sql .= " WHERE file_id = '$file_id'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // INSERT: detail_file_info
+ $sql = "INSERT INTO file_detail_info";
+ $sql .= " (file_id, file_category_code)";
+ $sql .= " VALUES ('$file_id', '$file_category_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // INSERT: file_contents
+ foreach ($file_contents_form_array as $file_contents_form) {
+ ACSLib::escape_sql_array($file_contents_form);
+ ACSLib::get_sql_value_array($file_contents_form);
+
+ $sql = "INSERT INTO file_contents";
+ $sql .= " (file_id, file_contents_type_code, file_contents_value)";
+ $sql .= " VALUES ($file_contents_form[file_id], $file_contents_form[file_contents_type_code], $file_contents_form[file_contents_value])";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param file_id ¥Õ¥¡¥¤¥ëID
+ * @return row(Àµ¾ï)/false(¼ºÇÔ)
+ */
+ static function get_file_public_access_row($file_id="", $where="") {
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT * FROM file_public_access";
+
+ $condition = "1=1";
+ if($file_id != ""){
+ $condition = $condition . " AND file_id = " . $file_id;
+ }
+
+ if($where != ""){
+ $condition = $condition . " AND " . $where;
+ }
+
+ $sql = $sql . " WHERE " . $condition;
+
+ $file_public_access_row = ACSDB::_get_row($sql);
+
+ return $file_public_access_row;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param file_id ¥Õ¥¡¥¤¥ëID
+ * form ÀßÄêÃÍ
+ * @return true(Àµ¾ï)/false(¼ºÇÔ)
+ */
+ static function insert_file_public_access($file_id, $form=false) {
+ ACSLib::escape_sql_array($form);
+
+ if($form === false){
+ $form = array();
+ }
+
+ ACSDB::_do_query("BEGIN");
+
+ $ret = ACSDB::_do_query(
+ "DELETE FROM file_public_access
+ WHERE file_id = " . $file_id);
+
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¥Ï¥Ã¥·¥åʸ»úÎóºîÀ®
+ $form['access_code'] = md5(uniqid(rand()) . $file_id);
+
+ $form['update_date'] = 'now';
+
+ if(!$form['all_access_count']){ $form['all_access_count'] = 0; }
+ if(!$form['access_count']){ $form['access_count'] = 0; }
+ if(!$form['access_start_date']){ $form['access_start_date'] = 'now'; }
+
+ $sql = "INSERT INTO file_public_access
+ (file_id, folder_id, community_id, access_code,
+ all_access_count, access_count, access_start_date,
+ update_date)
+ VALUES
+ (" . $file_id . ", " .
+ $form['folder_id'] . ", " .
+ $form['community_id'] . ", '" .
+ $form['access_code'] . "'," .
+ $form['all_access_count'] . "," .
+ $form['access_count'] . ", '" .
+ $form['access_start_date'] . "', '" .
+ $form['update_date'] . "')";
+
+ $ret = ACSDB::_do_query($sql);
+
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó¤ò¹¹¿·¤¹¤ë
+ *
+ * @param file_id ¥Õ¥¡¥¤¥ëID
+ * form ÀßÄêÃÍ
+ * @return true(Àµ¾ï)/false(¼ºÇÔ)
+ */
+ static function update_file_public_access($file_id, $form) {
+
+ $sql = "UPDATE file_public_access SET ";
+
+ $set = "";
+ foreach($form as $index => $value){
+ if($set != ""){
+ $set .= ",";
+ }
+ $set = $set . $index . " = " . $value;
+ }
+
+ $sql .= $set . " WHERE file_id = " . $file_id;
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó¤òºï½ü¤¹¤ë
+ *
+ * @param file_id ¥Õ¥¡¥¤¥ëID
+ * @return true(Àµ¾ï)/false(¼ºÇÔ)
+ */
+ static function delete_file_public_access($file_id) {
+ $sql = "DELETE FROM file_public_access
+ WHERE file_id = " . $file_id;
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSFileHistory.class.php,v 1.2 2006/05/29 08:03:42 w-ota Exp $
+
+/**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¥¯¥é¥¹
+ */
+class ACSFileHistory
+{
+ /**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $file_id ¥Õ¥¡¥¤¥ëID
+ * @return ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó¤ÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_file_history_row_array($file_id) {
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM file_history, file_history_operation_master, community as USER_COMMUNITY";
+ $sql .= " WHERE file_history.file_id = '$file_id'";
+ $sql .= " AND file_history.file_history_operation_code = file_history_operation_master.file_history_operation_code";
+ $sql .= " AND file_history.update_user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " ORDER BY file_history.update_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $file_id ¥Õ¥¡¥¤¥ëID
+ * @return ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó
+ */
+ static function get_file_history_row($file_history_id) {
+ $file_id = pg_escape_string($file_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM file_history, file_history_operation_master, community as USER_COMMUNITY";
+ $sql .= " WHERE file_history.file_history_id = '$file_history_id'";
+ $sql .= " AND file_history.file_history_operation_code = file_history_operation_master.file_history_operation_code";
+ $sql .= " AND file_history.update_user_community_id = USER_COMMUNITY.community_id";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $file_info_row ¥Õ¥¡¥¤¥ë¾ðÊó
+ * @param $update_user_community_id ÅÐÏ¿/¹¹¿·¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $comment ¥³¥á¥ó¥È
+ * @param $file_history_operation_name ¥Õ¥¡¥¤¥ëÍúÎòÁàºî̾
+ * @return À®¸ù(file_history_id) / ¼ºÇÔ(false)
+ */
+ static function set_file_history($file_info_row, $update_user_community_id, $comment, $file_history_operation_name) {
+ $file_history_operation_master_array = ACSDB::get_master_array('file_history_operation');
+
+ $file_history_id_seq = ACSDB::get_next_seq('file_history_id_seq');
+ $file_history_operation_code = array_search($file_history_operation_name, $file_history_operation_master_array);
+
+ ACSLib::escape_sql_array($file_info_row);
+ ACSLib::get_sql_value_array($file_info_row);
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤òÅÐÏ¿
+ $sql = "INSERT INTO file_history";
+ $sql .= " (file_history_id, file_id, display_file_name, server_file_name, thumbnail_server_file_name, mime_type, file_size, update_date, update_user_community_id, file_history_operation_code)";
+ $sql .= " VALUES ($file_history_id_seq, $file_info_row[file_id], $file_info_row[display_file_name], $file_info_row[server_file_name], $file_info_row[thumbnail_server_file_name], $file_info_row[mime_type], $file_info_row[file_size], $file_info_row[update_date], '$update_user_community_id', '$file_history_operation_code')";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È¤òÅÐÏ¿
+ $ret = ACSFileHistoryComment::set_file_history_comment($file_history_id_seq, $update_user_community_id, $comment);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // true¤Î¾ì¹ç¤Ï¥Õ¥¡¥¤¥ëÍúÎòID¤ò¥»¥Ã¥È
+ if ($ret) {
+ $ret = $file_history_id_seq;
+ }
+
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSFileHistoryComment.class.php,v 1.1 2006/05/18 05:18:00 w-ota Exp $
+
+/**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È¥¯¥é¥¹
+ */
+class ACSFileHistoryComment
+{
+ /**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $file_history_id ¥Õ¥¡¥¤¥ëÍúÎòID
+ * @param $entry_user_community_id ÅÐÏ¿¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $comment ¥³¥á¥ó¥È
+ * @return
+ */
+ static function get_file_history_comment_row_array($file_history_id) {
+ $file_history_id = pg_escape_string($file_history_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM file_history_comment, community as USER_COMMUNITY";
+ $sql .= " WHERE file_history_comment.file_history_id = '$file_history_id'";
+ $sql .= " AND file_history_comment.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " ORDER BY file_history_comment.post_date ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $file_history_id ¥Õ¥¡¥¤¥ëÍúÎòID
+ * @param $entry_user_community_id ÅÐÏ¿¼Ô¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $comment ¥³¥á¥ó¥È
+ * @return
+ */
+ static function set_file_history_comment($file_history_id, $entry_user_community_id, $comment) {
+ $file_history_comment_id_seq = ACSDB::get_next_seq('file_history_comment_id_seq');
+ $comment = ACSLib::get_sql_value(pg_escape_string($comment));
+
+ $sql = "INSERT INTO file_history_comment";
+ $sql .= " (file_history_comment_id, file_history_id, user_community_id, comment)";
+ $sql .= " VALUES ($file_history_comment_id_seq, $file_history_id, '$entry_user_community_id', $comment)";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ðÊó DB¥¢¥¯¥»¥¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.17 $ $Date: 2006/05/18 05:18:00 $
+ */
+class ACSFileInfoModel
+{
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ¡ÊÊ£¿ô¡Ë
+ *
+ * @param $file_id_array
+ */
+ static function select_file_info_row_array ($file_id_array) {
+ $target_file_id = implode(", ", $file_id_array);
+
+ $sql = "SELECT file_info.*,";
+ $sql .= " ENTRY_USER_COMMUNITY.community_name AS entry_user_community_name,";
+ $sql .= " UPDATE_USER_COMMUNITY.community_name AS update_user_community_name";
+ $sql .= " FROM file_info, community AS ENTRY_USER_COMMUNITY, community AS UPDATE_USER_COMMUNITY";
+ $sql .= " WHERE file_id IN (" . $target_file_id . ")";
+ $sql .= " AND file_info.entry_user_community_id = ENTRY_USER_COMMUNITY.community_id";
+ $sql .= " AND file_info.update_user_community_id = UPDATE_USER_COMMUNITY.community_id";
+ $sql .= " ORDER BY display_file_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ *
+ * @param $file_id
+ */
+ static function select_file_info_row ($file_id) {
+ $file_id_array = array($file_id);
+ $row_array = ACSFileInfoModel::select_file_info_row_array($file_id_array);
+
+ return $row_array[0];
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëID¼èÆÀ
+ *
+ * @param none
+ */
+ static function get_next_file_id_seq() {
+ $file_id = ACSDB::get_next_seq('file_id_seq');
+ return $file_id;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊóÄɲÃ
+ *
+ * @param none
+ */
+ static function insert_file_info ($file_obj) {
+ $sql = "INSERT INTO file_info";
+ $sql .= " (file_id, owner_community_id, display_file_name, server_file_name, ";
+ $sql .= "thumbnail_server_file_name, rss_server_file_name, mime_type, file_size, ";
+ $sql .= "entry_user_community_id, entry_date, update_user_community_id, update_date)";
+ $sql .= " VALUES (";
+ $sql .= "" . $file_obj->get_file_id() . ",";
+ $sql .= "" . $file_obj->get_owner_community_id() . ",";
+ $sql .= "'" . pg_escape_string($file_obj->get_display_file_name()) . "',";
+ $sql .= "'" . pg_escape_string($file_obj->get_server_file_name()) . "',";
+ $sql .= "'" . pg_escape_string($file_obj->get_thumbnail_server_file_name()) . "',";
+ $sql .= "'" . pg_escape_string($file_obj->get_rss_server_file_name()) . "',";
+ $sql .= "'" . pg_escape_string($file_obj->get_mime_type()) . "',";
+ $sql .= "" . $file_obj->get_file_size() . ",";
+ $sql .= "" . $file_obj->get_entry_user_community_id() . ",";
+ $sql .= "'" . $file_obj->get_entry_date() . "',";
+ $sql .= "" . $file_obj->get_update_user_community_id() . ",";
+ $sql .= "'" . $file_obj->get_update_date() . "'";
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊ󹹿· (¶¦ÄÌ)
+ *
+ * @param $target_file_id
+ * @param $row
+ * @return $ret
+ */
+ static function update_file_info ($target_file_id, $row) {
+ $set_values = array();
+ foreach ($row as $key => $value) {
+ $value_str = "";
+ $value_str = " " . $key . " = '" . pg_escape_string($value) . "'";
+
+ array_push($set_values, $value_str);
+ }
+
+ $sql = "UPDATE file_info";
+ $sql .= " SET";
+ $sql .= implode(", ", $set_values);
+ $sql .= " WHERE file_id = " . $target_file_id;
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊ󹹿·
+ * @param $file_obj
+ * @author akitsu 2005/2/10
+ */
+ static function update_all_file_info ($file_obj) {
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row = array();
+ $row['display_file_name'] = pg_escape_string($file_obj->get_display_file_name());
+ $row['server_file_name'] = pg_escape_string($file_obj->get_server_file_name());
+ $row['thumbnail_server_file_name'] = pg_escape_string($file_obj->get_thumbnail_server_file_name());
+ $row['mime_type'] = pg_escape_string($file_obj->get_mime_type());
+ $row['file_size'] = $file_obj->get_file_size();
+ $row['update_user_community_id'] = $file_obj->get_update_user_community_id();
+ $row['update_date'] = $file_obj->get_update_date();
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFileInfoModel::update_file_info($file_obj->get_file_id(), $row);
+
+ return $ret;
+ }
+
+ /**
+ * ɽ¼¨ÍÑ¥Õ¥¡¥¤¥ë̾¤ò¹¹¿·
+ * ¥¨¥é¡¼½èÍý (ROLLBACK) ¤Ï¸Æ¤Ó¸µ¤Ç¹Ô¤¦¤³¤È
+ *
+ * @param $target_file_id
+ * @param $new_display_file_name
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_display_file_name ($target_file_id, $new_display_file_name) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['display_file_name'] = $new_display_file_name;
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFileInfoModel::update_file_info($target_file_id, $row);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊóºï½ü
+ * @param $file_obj
+ */
+ static function delete_file_info ($file_obj) {
+ $sql = "DELETE FROM file_info";
+ $sql .= " WHERE";
+ $sql .= " file_id = " . $file_obj->get_file_id();
+ $sql .= " AND";
+ $sql .= " owner_community_id = " . $file_obj->get_owner_community_id();
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+}
--- /dev/null
+<?php
+/**
+ * ACS Folder
+ *
+ * @author kuwayama
+ * @version $Revision: 1.25 $ $Date: 2006/12/08 05:06:29 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+class ACSFolder
+{
+ /* ¥Õ¥©¥ë¥ÀID */
+ var $folder_id;
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $community_id;
+
+ /* ¥Õ¥©¥ë¥À̾ */
+ var $folder_name;
+
+ /* ¥³¥á¥ó¥È */
+ var $comment;
+
+ /* ¿Æ¥Õ¥©¥ë¥ÀID */
+ var $parent_folder_id;
+
+ /* ¸ø³«ÈÏ°Ï¥³¡¼¥É */
+ var $open_level_code;
+
+ /* ¸ø³«ÈÏ°Ï̾ */
+ var $open_level_name;
+
+ /* ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $entry_user_community_id;
+
+ /* ÅÐÏ¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾ */
+ var $entry_user_community_name;
+
+ /* ÅÐÏ¿Æü */
+ var $entry_date;
+
+ /* ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $update_user_community_id;
+
+ /* ¹¹¿·¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾ */
+ var $update_user_community_name;
+
+ /* ¹¹¿·Æü */
+ var $update_date;
+
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ */
+ var $trusted_community_row_array = array();
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ */
+ var $put_community_row_array = array();
+
+ /* ¥ë¡¼¥È¥Õ¥©¥ë¥À¥Õ¥é¥° */
+ var $is_root_folder = false;
+
+ /* ¥Õ¥©¥ë¥À¥ê¥¹¥È */
+ var $folder_obj_array = array();
+
+ /* ¥Õ¥¡¥¤¥ë¥ê¥¹¥È */
+ var $file_obj_array = array();
+
+ /* ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊó */
+ var $acs_user_info_row;
+
+ /* ¥µ¥Ö¥Õ¥©¥ë¥À */
+ var $sub_folder_obj_array = array();
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $folder_row
+ * @param $target_folder_id_array ¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¼èÆÀÂоݤȤʤë¥Õ¥©¥ë¥ÀID
+ */
+ function ACSFolder ($folder_row, $target_folder_id_array, $acs_user_info_row) {
+ /* ¥Õ¥©¥ë¥À¾ðÊó¥»¥Ã¥È */
+ $this->set_folder_info($folder_row);
+
+ if (!is_array($target_folder_id_array)) {
+ if ($target_folder_id_array) {
+ $target_folder_id_array = array($target_folder_id_array);
+ } else {
+ // ¤Ê¤¤¾ì¹ç¡¢¥¤¥ó¥¹¥¿¥ó¥¹¤Î¤ßÊÖ¤¹
+ return $this;
+ }
+ }
+
+ /* ¥Õ¥©¥ë¥À¥ê¥¹¥È¡¢¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥»¥Ã¥È */
+ $this->set_folder_obj_array($target_folder_id_array);
+ $this->set_file_obj_array($target_folder_id_array);
+
+ /* ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊó¥»¥Ã¥È */
+ if (!$acs_user_info_row == "") {
+ $this->set_acs_user_info_row($acs_user_info_row);
+ }
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥¤¥ó¥¹¥¿¥ó¥¹ºîÀ®
+ *
+ * ¥Õ¥©¥ë¥À¥ê¥¹¥È¡¢¥Õ¥¡¥¤¥ë¥ê¥¹¥È¤Ê¤·¤Î¥Õ¥©¥ë¥À¾ðÊó¤òÊÝ»ý¤¹¤ë
+ * ¥Õ¥©¥ë¥À¥¤¥ó¥¹¥¿¥ó¥¹¤òÊÖ¤¹
+ *
+ * @param $folder_row
+ * @return $folder_obj
+ */
+ function get_folder_instance (&$folder_row) {
+ /* ¶õ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Î¤ß¼èÆÀ */
+ $folder_obj = new ACSFolder($folder_row, '', '');
+
+ return $folder_obj;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È
+ *
+ * @param $parent_folder_id_array
+ */
+ function set_folder_obj_array (&$parent_folder_id_array) {
+ $folder_obj_array = array();
+
+ /* ¥µ¥Ö¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ */
+ $folder_row_array = ACSFolderModel::select_sub_folder_row_array($parent_folder_id_array);
+
+ /* ¥Õ¥©¥ë¥À¾ðÊó¥»¥Ã¥È */
+ foreach ($folder_row_array as $folder_row) {
+ $folder_id_array = array();
+
+ $folder_obj = ACSFolder::get_folder_instance($folder_row);
+ array_push($folder_obj_array, $folder_obj);
+ }
+ $this->folder_obj_array = $folder_obj_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ê¥¹¥È¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_folder_obj_array () {
+ return $this->folder_obj_array;
+ }
+
+ /**
+ * »ØÄê¥Õ¥©¥ë¥ÀID¤Î¥Õ¥©¥ë¥À¥²¥Ã¥È
+ *
+ * @param $search_folder_id
+ * @return $folder_obj
+ */
+ function get_folder_obj ($search_folder_id) {
+ $folder_obj_array = $this->get_folder_obj_array();
+ foreach ($folder_obj_array as $folder_obj) {
+ if ($folder_obj->get_folder_id() == $search_folder_id) {
+ $ret_folder_obj = $folder_obj;
+ break;
+ }
+ }
+
+ return $ret_folder_obj;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ê¥¹¥È¥²¥Ã¥È
+ * ¥¢¥¯¥»¥¹¼Ô¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥Õ¥©¥ë¥À¤Î¤ßÊÖ¤¹
+ *
+ * @param $acs_user_info_row
+ * @param $target_user_info_row
+ */
+ function get_display_folder_obj_array ($acs_user_info_row, $target_user_info_row) {
+ $ret_folder_obj_array = array();
+
+ /* role_array ¼èÆÀ */
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+
+ if ($this->get_is_root_folder()) {
+ /* ɽ¼¨²Äǽ¥ª¥Ö¥¸¥§¥¯¥È¼èÆÀ */
+ $all_folder_obj_array = $this->get_folder_obj_array();
+ $ret_folder_obj_array = ACSAccessControl::get_valid_obj_row_array_for_user_community(
+ $acs_user_info_row,
+ $role_array,
+ $all_folder_obj_array);
+ } else {
+ $ret_folder_obj_array = $this->get_folder_obj_array();
+ }
+
+ // ¥¢¥¯¥»¥¹²Äǽ¤Ê¥Õ¥©¥ë¥À¤Î¤ßÊÖ¤¹
+ //return $this->folder_obj_array;
+ return $ret_folder_obj_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ê¥¹¥È¥²¥Ã¥È (¥³¥ß¥å¥Ë¥Æ¥£ÍÑ)
+ * ¥¢¥¯¥»¥¹¼Ô¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥Õ¥©¥ë¥À¤Î¤ßÊÖ¤¹
+ *
+ * @param $acs_user_info_row
+ * @param $target_community_row
+ */
+ function get_display_folder_obj_array_for_community ($acs_user_info_row, $target_community_row) {
+ $ret_folder_obj_array = array();
+
+ /* role_array ¼èÆÀ */
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $target_community_row);
+
+ if ($this->get_is_root_folder()) {
+ /* ɽ¼¨²Äǽ¥ª¥Ö¥¸¥§¥¯¥È¼èÆÀ */
+ $all_folder_obj_array = $this->get_folder_obj_array();
+ $ret_folder_obj_array = ACSAccessControl::get_valid_obj_row_array_for_community(
+ $acs_user_info_row,
+ $role_array,
+ $all_folder_obj_array);
+ } else {
+ $ret_folder_obj_array = $this->get_folder_obj_array();
+ }
+
+ // ¥¢¥¯¥»¥¹²Äǽ¤Ê¥Õ¥©¥ë¥À¤Î¤ßÊÖ¤¹
+ //return $this->folder_obj_array;
+ return $ret_folder_obj_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥»¥Ã¥È
+ *
+ * @param $folder_id_array
+ */
+ function set_file_obj_array (&$folder_id_array) {
+ $file_obj_array = array();
+
+ /* ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ */
+ $file_info_row_array = ACSFolderModel::select_folder_file_info_row_array($folder_id_array);
+ if (count($file_info_row_array) <= 0) {
+ return;
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¾ðÊó¥»¥Ã¥È */
+ foreach ($file_info_row_array as $file_info_row) {
+ //_debug($file_info_row);
+ $file_obj = new ACSFile($file_info_row);
+
+ array_push($file_obj_array, $file_obj);
+ //array_push($this->file_obj_array, $file_obj);
+ }
+ $this->file_obj_array = $file_obj_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_file_obj_array () {
+ return $this->file_obj_array;
+ }
+
+ /**
+ * »ØÄêID¤Î¥Õ¥¡¥¤¥ë¥²¥Ã¥È
+ *
+ * @param $search_file_id
+ * @return $file_obj
+ */
+ function get_file_obj ($search_file_id) {
+ $file_obj_array = $this->get_file_obj_array();
+ foreach ($file_obj_array as $file_obj) {
+ if ($file_obj->get_file_id() == $search_file_id) {
+ $ret_file_obj = $file_obj;
+ break;
+ }
+ }
+
+ return $ret_file_obj;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊ󥻥åÈ
+ *
+ * @param $folder_row
+ */
+ function set_folder_info (&$folder_row) {
+ $this->set_folder_id($folder_row['folder_id']);
+ $this->set_community_id($folder_row['community_id']);
+
+ if ($folder_row['parent_folder_id']) {
+ $this->set_folder_name($folder_row['folder_name']);
+ } else {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ì¹ç
+ $this->set_folder_name(ACSMsg::get_mdmsg(__FILE__,'M001'));
+ }
+
+ $this->set_comment($folder_row['comment']);
+ $this->set_parent_folder_id($folder_row['parent_folder_id']);
+ $this->set_open_level_code($folder_row['open_level_code']);
+ $this->set_open_level_name($folder_row['open_level_name']);
+ $this->set_trusted_community_row_array($folder_row['trusted_community_row_array']);
+ $this->set_put_community_row_array($folder_row['put_community_row_array']);
+
+ $this->set_entry_user_community_id($folder_row['entry_user_community_id']);
+ $this->set_entry_user_community_name($folder_row['entry_user_community_name']);
+ $this->set_entry_date($folder_row['entry_date']);
+ $this->set_update_user_community_id($folder_row['update_user_community_id']);
+ $this->set_update_user_community_name($folder_row['update_user_community_name']);
+ $this->set_update_date($folder_row['update_date']);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀID¥»¥Ã¥È
+ *
+ * @param $folder_id
+ */
+ function set_folder_id ($folder_id) {
+ $this->folder_id = $folder_id;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_folder_id () {
+ return $this->folder_id;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function set_community_id ($community_id) {
+ $this->community_id = $community_id;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_community_id () {
+ return $this->community_id;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À̾¥»¥Ã¥È
+ *
+ * @param $folder_name
+ */
+ function set_folder_name ($folder_name) {
+ $this->folder_name = $folder_name;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_folder_name () {
+ return $this->folder_name;
+ }
+
+ /**
+ * ¥³¥á¥ó¥È¥»¥Ã¥È
+ *
+ * @param $comment
+ */
+ function set_comment ($comment) {
+ $this->comment = $comment;
+ }
+
+ /**
+ * ¥³¥á¥ó¥È¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_comment () {
+ return $this->comment;
+ }
+
+ /**
+ * ¿Æ¥Õ¥©¥ë¥ÀID¥»¥Ã¥È
+ *
+ * @param $parent_folder_id
+ */
+ function set_parent_folder_id ($parent_folder_id) {
+ $this->parent_folder_id = $parent_folder_id;
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¥Õ¥é¥°¥»¥Ã¥È
+ $this->set_is_root_folder($parent_folder_id);
+ }
+
+ /**
+ * ¿Æ¥Õ¥©¥ë¥ÀID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_parent_folder_id () {
+ return $this->parent_folder_id;
+ }
+
+ /**
+ * ¸ø³«ÈÏ°Ï¥³¡¼¥É¥»¥Ã¥È
+ *
+ * @param $open_level_code
+ */
+ function set_open_level_code ($open_level_code) {
+ $this->open_level_code = $open_level_code;
+ }
+
+ /**
+ * ¸ø³«ÈÏ°Ï¥³¡¼¥É¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_open_level_code () {
+ return $this->open_level_code;
+ }
+
+ /**
+ * ¸ø³«ÈÏ°Ï̾¥»¥Ã¥È
+ *
+ * @param $open_level_name
+ */
+ function set_open_level_name ($open_level_name) {
+ $this->open_level_name = $open_level_name;
+ }
+
+ /**
+ * ¸ø³«ÈÏ°Ï̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_open_level_name () {
+ return $this->open_level_name;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $entry_user_community_id
+ */
+ function set_entry_user_community_id ($entry_user_community_id) {
+ $this->entry_user_community_id = $entry_user_community_id;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_user_community_id () {
+ return $this->entry_user_community_id;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥»¥Ã¥È
+ *
+ * @param $entry_user_community_name
+ */
+ function set_entry_user_community_name ($entry_user_community_name) {
+ $this->entry_user_community_name = $entry_user_community_name;
+ }
+
+ /**
+ * ÅÐÏ¿¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_user_community_name () {
+ return $this->entry_user_community_name;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥»¥Ã¥È
+ *
+ * @param $entry_date
+ */
+ function set_entry_date ($entry_date) {
+ $this->entry_date = $entry_date;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_entry_date () {
+ return $this->entry_date;
+ }
+
+ /**
+ * ÅÐÏ¿Æü¥²¥Ã¥È (yyyymmddhmi)
+ *
+ * @param none
+ */
+ function get_entry_date_yyyymmddhmi () {
+ $date_yyyymmddhmi = ACSLib::convert_pg_date_to_str($this->entry_date);
+ return $date_yyyymmddhmi;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $update_user_community_id
+ */
+ function set_update_user_community_id ($update_user_community_id) {
+ $this->update_user_community_id = $update_user_community_id;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_user_community_id () {
+ return $this->update_user_community_id;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥»¥Ã¥È
+ *
+ * @param $update_user_community_name
+ */
+ function set_update_user_community_name ($update_user_community_name) {
+ $this->update_user_community_name = $update_user_community_name;
+ }
+
+ /**
+ * ¹¹¿·¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_user_community_name () {
+ return $this->update_user_community_name;
+ }
+
+ /**
+ * ¹¹¿·Æü¥»¥Ã¥È
+ *
+ * @param $update_date
+ */
+ function set_update_date ($update_date) {
+ $this->update_date = $update_date;
+ }
+
+ /**
+ * ¹¹¿·Æü¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_update_date () {
+ return $this->update_date;
+ }
+
+ /**
+ * ¹¹¿·Æü¥²¥Ã¥È (yyyymmddhmi)
+ *
+ * @param none
+ */
+ function get_update_date_yyyymmddhmi () {
+ $date_yyyymmddhmi = ACSLib::convert_pg_date_to_str($this->update_date);
+ return $date_yyyymmddhmi;
+ }
+
+ /**
+ * ¥ë¡¼¥È¥Õ¥©¥ë¥À¥Õ¥é¥°¥»¥Ã¥È
+ *
+ * @param $is_root_folder
+ */
+ function set_is_root_folder ($parent_folder_id) {
+ if ($parent_folder_id == "") {
+ $this->is_root_folder = true;
+ } else {
+ $this->is_root_folder = false;
+ }
+ }
+
+ /**
+ * ¥ë¡¼¥È¥Õ¥©¥ë¥À¥Õ¥é¥°¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_is_root_folder () {
+ return $this->is_root_folder;
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󥻥åÈ
+ *
+ * @param $acs_user_info_row
+ */
+ function set_acs_user_info_row ($acs_user_info_row) {
+ $this->acs_user_info_row = $acs_user_info_row;
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󥲥åÈ
+ *
+ * @param none
+ */
+ function get_acs_user_info_row () {
+ return $this->acs_user_info_row;
+ }
+
+ /**
+ * ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥»¥Ã¥È
+ *
+ * @param $trusted_community_row_array
+ */
+ function set_trusted_community_row_array ($trusted_community_row_array) {
+ if ($trusted_community_row_array == "") {
+ $trusted_community_row_array = array();
+ }
+ $this->trusted_community_row_array = $trusted_community_row_array;
+ }
+
+ /**
+ * ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_trusted_community_row_array () {
+ return $this->trusted_community_row_array;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¥»¥Ã¥È
+ *
+ * @param $put_community_row_array
+ */
+ function set_put_community_row_array ($put_community_row_array) {
+ if ($put_community_row_array == "") {
+ $put_community_row_array = array();
+ }
+ $this->put_community_row_array = $put_community_row_array;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_put_community_row_array () {
+ return $this->put_community_row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÄɲÃ
+ *
+ * @param $file_obj
+ *
+ * @return $ret
+ */
+ function add_file ($file_obj) {
+ $acs_user_info_row = $this->get_acs_user_info_row();
+ $acs_user_community_id = $acs_user_info_row['user_community_id'];
+
+ ACSDB::_do_query("BEGIN");
+
+ /* ¥Æ¡¼¥Ö¥ë¤ËÄɲà */
+ // file_info
+ $ret = $file_obj->add_file();
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // folder_file
+ $ret = ACSFolderModel::insert_folder_file($this->get_folder_id(), $file_obj->get_file_id());
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥©¥ë¥À¤Î¹¹¿·Æü¤ò¹¹¿· */
+ $ret = ACSFolderModel::update_folder_update_date($this->get_folder_id(),
+ $acs_user_community_id,
+ $file_obj->get_update_date());
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¤ò°ÜÆ° */
+ $ret = $file_obj->save_upload_file('FOLDER');
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¥ê¥¹¥È¤ËÄɲà */
+ array_push($this->file_obj_array, $file_obj);
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¹¹¿· (ÍúÎò´ÉÍý)
+ *
+ * @param $file_obj
+ *
+ * @return $ret
+ */
+ function update_file($file_obj) {
+ $acs_user_info_row = $this->get_acs_user_info_row();
+ $acs_user_community_id = $acs_user_info_row['user_community_id'];
+
+ ACSDB::_do_query("BEGIN");
+
+ /* ¥Æ¡¼¥Ö¥ë¹¹¿· */
+ // file_info
+ $row = array();
+ $row['server_file_name'] = $file_obj->get_server_file_name();
+ $row['thumbnail_server_file_name'] = $file_obj->get_thumbnail_server_file_name();
+ $row['rss_server_file_name'] = $file_obj->get_rss_server_file_name();
+ $row['mime_type'] = $file_obj->get_mime_type();
+ $row['file_size'] = $file_obj->get_file_size();
+ $row['update_user_community_id'] = $file_obj->get_update_user_community_id();
+ $row['update_date'] = $file_obj->get_update_date();
+ $ret = ACSFileInfoModel::update_file_info($file_obj->get_file_id(), $row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥©¥ë¥À¤Î¹¹¿·Æü¤ò¹¹¿· */
+ $ret = ACSFolderModel::update_folder_update_date($this->get_folder_id(),
+ $acs_user_community_id,
+ $file_obj->get_update_date());
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¤ò°ÜÆ°(Êݸ) */
+ $ret = $file_obj->save_upload_file('FOLDER');
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ëÉü³è (ÍúÎò´ÉÍý)
+ *
+ * @param $file_obj
+ *
+ * @return $ret
+ */
+ function restore_history_file($file_info_row, $file_history_row) {
+ $acs_user_info_row = $this->get_acs_user_info_row();
+ $acs_user_community_id = $acs_user_info_row['user_community_id'];
+
+ ACSDB::_do_query("BEGIN");
+
+ // file_info_row¹¹¿·
+ $row = array();
+ $row['display_file_name'] = $file_history_row['display_file_name'];
+ $row['server_file_name'] = $file_history_row['server_file_name'];
+ $row['thumbnail_server_file_name'] = $file_history_row['thumbnail_server_file_name'];
+ $row['mime_type'] = $file_history_row['mime_type'];
+ $row['file_size'] = $file_history_row['file_size'];
+ $row['update_user_community_id'] = $acs_user_community_id;
+ $row['update_date'] = 'now';
+ $ret = ACSFileInfoModel::update_file_info($file_info_row['file_id'], $row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ /* ¥Õ¥©¥ë¥À¤Î¹¹¿·Æü¤ò¹¹¿· */
+ $file_obj = ACSFile::get_file_info_instance($file_info_row['file_id']);
+ $ret = ACSFolderModel::update_folder_update_date($this->get_folder_id(),
+ $acs_user_community_id,
+ $file_obj->get_update_date());
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë°ÜÆ°
+ *
+ * @param $file_obj °ÜÆ°ÂоݤΥե¡¥¤¥ë¥ª¥Ö¥¸¥§¥¯¥È
+ * @param $new_folder_id °ÜÆ°Àè¤Î¥Õ¥©¥ë¥ÀID
+ * @return $ret
+ */
+ function move_file ($file_obj, $new_folder_id) {
+ $ret = ACSFolderModel::update_folder_file_folder_id($this->get_folder_id(), $file_obj->get_file_id(), $new_folder_id);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀºîÀ®
+ *
+ * @param $input_folder_row
+ *
+ * @return $ret
+ */
+ function create_folder ($input_folder_row) {
+ $acs_user_info_row = $this->get_acs_user_info_row();
+ $acs_user_community_id = $acs_user_info_row['user_community_id'];
+
+ // ¥Õ¥©¥ë¥À¤ÎÃÍ¥»¥Ã¥È
+ $folder_row = array();
+ $timestamp_pg_date = ACSLib::convert_timestamp_to_pg_date();
+ $folder_id = ACSDB::get_next_seq('folder_id_seq');
+ if ($input_folder_row['entry_date']) {
+ $entry_date = $input_folder_row['entry_date'];
+ } else {
+ $entry_date = $timestamp_pg_date;
+ }
+ $update_date = $entry_date;
+
+ $folder_row['folder_id'] = $folder_id;
+ $folder_row['community_id'] = $this->get_community_id();
+ $folder_row['folder_name'] = $input_folder_row['folder_name'];
+ $folder_row['comment'] = $input_folder_row['comment'];
+ $folder_row['parent_folder_id'] = $this->get_folder_id();
+ $folder_row['entry_user_community_id'] = $acs_user_community_id;
+ $folder_row['entry_date'] = $entry_date;
+ $folder_row['update_user_community_id'] = $acs_user_community_id;
+ $folder_row['update_date'] = $update_date;
+ $folder_row['open_level_code'] = $input_folder_row['open_level_code'];
+
+ $trusted_community_id_array = $input_folder_row['trusted_community_id_array'];
+
+
+ /* ¥Õ¥©¥ë¥ÀºîÀ® */
+ $ret = ACSFolderModel::insert_folder($folder_row, $trusted_community_id_array);
+ if (!$ret) {
+ return $ret;
+ }
+
+ /* ¿Æ¥Õ¥©¥ë¥À¤Î¹¹¿·Æü¤ò¹¹¿· */
+ $ret = ACSFolderModel::update_folder_update_date($this->get_folder_id(),
+ $acs_user_community_id,
+ $update_date);
+ if (!$ret) {
+ return $ret;
+ }
+
+ /* ¥Õ¥©¥ë¥À¥ê¥¹¥È¤ËÄɲà */
+ $folder_obj = ACSFolder::get_folder_instance($folder_row);
+ array_push($this->folder_obj_array, $folder_obj);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊóÊѹ¹
+ *
+ * @param $input_folder_row
+ *
+ * @return $ret
+ */
+ function update_folder ($input_folder_row) {
+ $acs_user_info_row = $this->get_acs_user_info_row();
+ $acs_user_community_id = $acs_user_info_row['user_community_id'];
+
+ $folder_row['folder_name'] = $input_folder_row['folder_name'];
+ $folder_row['comment'] = $input_folder_row['comment'];
+ $folder_row['update_user_community_id'] = $acs_user_community_id;
+ $folder_row['update_date'] = ACSLib::convert_timestamp_to_pg_date();
+ $folder_row['open_level_code'] = $input_folder_row['open_level_code'];
+
+ $trusted_community_id_array = $input_folder_row['trusted_community_id_array'];
+
+ $ret = ACSFolderModel::update_folder_info($this->get_folder_id(), $folder_row, $trusted_community_id_array);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+ *
+ * @param $file_id
+ *
+ * @return none
+ */
+ function download_file ($file_id) {
+ $file_obj = $this->get_file_obj($file_id);
+ $file_obj->download_file();
+ }
+
+ /**
+ * ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ *
+ * @param $community_id ɽ¼¨¤·¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£
+ * @return true/false
+ */
+ function is_put_folder ($community_id) {
+ if ($this->get_community_id() == $community_id) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤¬¤¢¤ë¤«¤É¤¦¤«
+ */
+ function has_put_community () {
+ if (count($this->get_put_community_row_array()) > 0) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥ÀID¼èÆÀ
+ *
+ * @param $community_id
+ */
+ function get_put_community_folder_id ($community_id) {
+ $ret_put_community_folder_id = "";
+ $put_community_row_array = $this->get_put_community_row_array();
+
+ foreach ($put_community_row_array as $put_community_row) {
+ if ($put_community_row['community_id'] == $community_id) {
+ $ret_put_community_folder_id = $put_community_row['put_community_folder_id'];
+ break;
+ }
+ }
+
+ return $ret_put_community_folder_id;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¹¹¿·
+ */
+ function update_put_community ($folder_id, $put_community_array) {
+ ACSDB::_do_query("BEGIN");
+
+ foreach ($put_community_array as $put_community) {
+ // delete
+ $ret = ACSFolderModel::delete_put_community($folder_id, $put_community['put_community_id']);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return false;
+ }
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥ÀID¤Î»ØÄ꤬¤¢¤ë¾ì¹ç¡¢insert
+ if ($put_community['put_community_folder_id']) {
+ // insert
+ $ret = ACSFolderModel::insert_put_community($folder_id, $put_community['put_community_id'], $put_community['put_community_folder_id']);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return false;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return true;
+ }
+
+ /**
+ * ¥µ¥Ö¥Õ¥©¥ë¥À¥»¥Ã¥È
+ *
+ * @param $sub_folder_obj_array
+ */
+ function set_sub_folder_obj_array ($sub_folder_obj_array) {
+ $this->sub_folder_obj_array = $sub_folder_obj_array;
+ }
+
+ /**
+ * ¥µ¥Ö¥Õ¥©¥ë¥À¥²¥Ã¥È
+ */
+ function get_sub_folder_obj_array () {
+ return $this->sub_folder_obj_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À̾¹¹¿·
+ *
+ * @param $new_folder_name
+ * @return $ret
+ */
+ function rename_folder_name ($new_folder_name) {
+ $ret = ACSFolderModel::update_folder_name($this->get_folder_id(), $new_folder_name);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À°ÜÆ°
+ *
+ * @param $new_parent_folder_id
+ * @return $ret
+ */
+ function move_folder ($new_parent_folder_id) {
+ $ret = ACSFolderModel::update_parent_folder_id($this->get_folder_id(), $new_parent_folder_id);
+ return $ret;
+ }
+
+ /**
+ * ¸ø³«ÈϰϹ¹¿·
+ *
+ * @param $new_open_level_code
+ * @param $new_trusted_community_row_array
+ * @return $ret
+ */
+ function update_open_level_code ($new_open_level_code, $new_trusted_community_row_array) {
+ $ret = ACSFolderModel::update_folder_open_level_code($this->get_folder_id(), $new_open_level_code, $new_trusted_community_row_array);
+ return $ret;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À DB¥¢¥¯¥»¥¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.39 $ $Date: 2007/03/01 09:01:12 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFileInfoModel.class.php');
+require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+class ACSFolderModel
+{
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ (¶¦ÄÌ)
+ *
+ * @param $sql_where
+ */
+ static function select_common_folder_row_array ($sql_where) {
+ $row_array = array();
+
+ $sql = "SELECT folder.*, open_level_master.*,";
+ $sql .= " ENTRY_USER_COMMUNITY.community_name AS entry_user_community_name,";
+ $sql .= " UPDATE_USER_COMMUNITY.community_name AS update_user_community_name";
+ $sql .= " FROM (folder LEFT OUTER JOIN open_level_master ON folder.open_level_code = open_level_master.open_level_code)";
+ $sql .= ", community AS ENTRY_USER_COMMUNITY, community AS UPDATE_USER_COMMUNITY";
+ $sql .= " WHERE ";
+ $sql .= " folder.entry_user_community_id = ENTRY_USER_COMMUNITY.community_id";
+ $sql .= " AND folder.update_user_community_id = UPDATE_USER_COMMUNITY.community_id";
+ if ($sql_where) {
+ $sql .= " AND " . $sql_where;
+ }
+ $sql .= " ORDER BY folder_name";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ (¶¦ÄÌ)
+ *
+ * @param $folder_id
+ */
+ static function select_trusted_community ($folder_id) {
+ $row_array = array();
+
+ $sql = "SELECT community.community_id, community.community_name, community.community_type_code, community_type_master.community_type_name";
+ $sql .= " FROM folder_trusted_community, community, community_type_master";
+ $sql .= " WHERE folder_trusted_community.folder_id = '$folder_id'";
+ $sql .= " AND folder_trusted_community.trusted_community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community.delete_flag != 't'";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¼èÆÀ (¶¦ÄÌ)
+ *
+ * @param $folder_id
+ */
+ static function select_put_community ($folder_id) {
+ $row_array = array();
+
+ $sql = "SELECT";
+ // community ¤«¤é¤Î¥«¥é¥à
+ $sql .= " community.community_id, community.community_name, community.community_type_code, community_type_master.community_type_name,";
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤ÎÁ´ÂΤθø³«ÈϰϾðÊó
+ $sql .= " contents.open_level_code, open_level_master.open_level_name,";
+ // folder ¤«¤é¤Î¥«¥é¥à¡Ê¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À¾ðÊó¡Ë
+ $sql .= " folder.folder_id as put_community_folder_id, folder.folder_name as put_community_folder_name";
+ $sql .= " FROM put_community, community, community_type_master, contents, contents_type_master, open_level_master, folder";
+ $sql .= " WHERE put_community.folder_id = '$folder_id'";
+ $sql .= " AND put_community.put_community_id = community.community_id";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community.delete_flag != 't'";
+
+ // Á´ÂΤθø³«ÈÏ°Ï
+ $sql .= " AND community.community_id = contents.community_id";
+ $sql .= " AND contents.contents_type_code = contents_type_master.contents_type_code";
+ $sql .= " AND contents.open_level_code = open_level_master.open_level_code";
+ $sql .= " AND contents_type_master.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+
+ $sql .= " AND put_community.put_community_folder_id = folder.folder_id";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+ }
+
+ /**
+ * ¥×¥Ã¥È¥Õ¥©¥ë¥À¼èÆÀ
+ *
+ * @param $community_id
+ * @param $folder_id
+ */
+ static function select_put_folder ($community_id, $folder_id) {
+ $row = array(); // select ·ë²Ì ¡ÊÏ¢ÁÛÇÛÎó¡Ë
+ $ret_array = array(); // folder_id ¤ÎÇÛÎó
+
+ $sql = "SELECT folder_id";
+ $sql .= " FROM put_community";
+ $sql .= " WHERE";
+ $sql .= " put_community.put_community_id = " . $community_id;
+ $sql .= " AND put_community.put_community_folder_id = " . $folder_id;
+
+ $row_array = ACSDB::_get_row_array($sql);
+ foreach ($row_array as $row) {
+ array_push($ret_array, $row['folder_id']);
+ }
+
+ return $ret_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊ󹹿· (¶¦ÄÌ)
+ *
+ * @param $target_folder_id
+ * @param $row
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder ($target_folder_id, $row) {
+ $set_values = array();
+ foreach ($row as $key => $value) {
+ $value = pg_escape_string($value);
+ $value = ACSLib::get_sql_value($value);
+
+ $value_str = "";
+ $value_str = " " . $key . " = " . $value;
+
+ array_push($set_values, $value_str);
+ }
+
+ $sql = "UPDATE folder";
+ $sql .= " SET";
+ $sql .= implode(", ", $set_values);
+ $sql .= " WHERE folder_id = " . $target_folder_id;
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¹¹¿·¡Ê¶¦ÄÌ¡Ë
+ *
+ * @param $target_folder_id
+ * @param $trusted_community_id_array
+ * @return true / false
+ */
+ static function update_folder_trusted_community ($target_folder_id, $trusted_community_id_array) {
+ /* ºï½ü */
+ $sql = "DELETE FROM folder_trusted_community";
+ $sql .= " WHERE folder_id = '" . $target_folder_id . "'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ return $ret;
+ }
+
+ /* ÁÞÆþ */
+ if ($trusted_community_id_array) {
+ $ret = ACSFolderModel::insert_folder_trusted_community($target_folder_id, $trusted_community_id_array);
+ if (!$ret) {
+ return $ret;
+ }
+ }
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊ󹹿·
+ *
+ * @param $target_folder_id
+ * @param $input_folder_row
+ * @param $input_trusted_community_id_array
+ * @return true / false
+ */
+ static function update_folder_info ($target_folder_id, $input_folder_row, $input_trusted_community_id_array) {
+ $ret = ACSFolderModel::update_folder($target_folder_id, $input_folder_row);
+ if (!$ret) {
+ return $ret;
+ }
+
+ // ¥Õ¥©¥ë¥À±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¹¹¿·
+ $ret = ACSFolderModel::update_folder_trusted_community($target_folder_id, $input_trusted_community_id_array);
+ if (!$ret) {
+ return $ret;
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Î¹¹¿·Æü¤ò¹¹¿·
+ * ¥¨¥é¡¼½èÍý (ROLLBACK) ¤Ï¸Æ¤Ó¸µ¤Ç¹Ô¤¦¤³¤È
+ *
+ * @param $target_folder_id
+ * @param $update_user_community_id
+ * @param $update_date
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder_update_date ($target_folder_id, $update_user_community_id, $update_date) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['update_user_community_id'] = $update_user_community_id;
+ $row['update_date'] = $update_date;
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFolderModel::update_folder($target_folder_id, $row);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À̾¤ò¹¹¿·
+ * ¥¨¥é¡¼½èÍý (ROLLBACK) ¤Ï¸Æ¤Ó¸µ¤Ç¹Ô¤¦¤³¤È
+ *
+ * @param $target_folder_id
+ * @param $new_folder_name
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder_name ($target_folder_id, $new_folder_name) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['folder_name'] = $new_folder_name;
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFolderModel::update_folder($target_folder_id, $row);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À°ÜÆ°
+ * ¿Æ¥Õ¥©¥ë¥ÀID¤ò¹¹¿·¤¹¤ë
+ * ¥¨¥é¡¼½èÍý (ROLLBACK) ¤Ï¸Æ¤Ó¸µ¤Ç¹Ô¤¦¤³¤È
+ *
+ * @param $target_folder_id
+ * @param $new_parent_folder_id
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_parent_folder_id ($target_folder_id, $new_parent_folder_id) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['parent_folder_id'] = $new_parent_folder_id;
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFolderModel::update_folder($target_folder_id, $row);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¸ø³«ÈϰϹ¹¿·
+ *
+ * @param $target_folder_id
+ * @param $new_open_level_code
+ * @param $new_trusted_community_row_array
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder_open_level_code ($target_folder_id, $new_open_level_code, $new_trusted_community_row_array) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['open_level_code'] = $new_open_level_code;
+
+ /* ¥Õ¥©¥ë¥À¾ðÊ󹹿· */
+ $ret = ACSFolderModel::update_folder($target_folder_id, $row);
+ if (!$ret) {
+ return $ret;
+ }
+
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¹¹¿· */
+ if ($new_trusted_community_row_array) {
+ // ¹¹¿·¤¹¤ë±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $trusted_community_id_array = array();
+ foreach ($new_trusted_community_row_array as $new_trusted_community_row) {
+ array_push($trusted_community_id_array, $new_trusted_community_row['community_id']);
+ }
+ }
+ $ret = ACSFolderModel::update_folder_trusted_community($target_folder_id, $trusted_community_id_array);
+ if (!$ret) {
+ return $ret;
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ *
+ * @param $folder_id
+ */
+ static function select_folder_row ($folder_id) {
+ $folder_id = pg_escape_string($folder_id);
+ $sql_where = "folder.folder_id = '$folder_id'";
+
+ $row_array = ACSFolderModel::select_common_folder_row_array($sql_where);
+ $row = $row_array[0];
+
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $trusted_community_row_array = ACSFolderModel::select_trusted_community($folder_id);
+ $row['trusted_community_row_array'] = $trusted_community_row_array;
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $put_community_row_array = ACSFolderModel::select_put_community($folder_id);
+ $row['put_community_row_array'] = $put_community_row_array;
+
+ return $row;
+ }
+
+ /**
+ * ¥µ¥Ö¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ *
+ * @param $folder_id
+ */
+ static function select_sub_folder_row_array ($parent_folder_id_array) {
+ $sub_folder_row_array = array();
+
+ $target_parent_folder_id = implode(", ", $parent_folder_id_array);
+ $sql_where = "folder.parent_folder_id IN (" . $target_parent_folder_id . ")";
+
+ $row_array = ACSFolderModel::select_common_folder_row_array($sql_where);
+
+ foreach ($row_array as $row) {
+ $row_tmp = array();
+ $trusted_community_row_array = array();
+
+ $row_tmp = $row;
+
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $trusted_community_row_array = ACSFolderModel::select_trusted_community($row['folder_id']);
+ $row_tmp['trusted_community_row_array'] = $trusted_community_row_array;
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $put_community_row_array = ACSFolderModel::select_put_community($row['folder_id']);
+ $row_tmp['put_community_row_array'] = $put_community_row_array;
+
+ array_push($sub_folder_row_array, $row_tmp);
+ }
+
+ return $sub_folder_row_array;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¼èÆÀ
+ *
+ * @param $community
+ */
+ static function select_all_community_folder_row_array ($community_id) {
+
+ static $cache_rows;
+
+ if (is_array($cache_rows[$community_id])) {
+ return $cache_rows[$community_id];
+ }
+
+ $all_community_row_array = array();
+ $sql_where = "folder.community_id = " . $community_id;
+
+ $row_array = ACSFolderModel::select_common_folder_row_array($sql_where);
+
+ foreach ($row_array as $row) {
+ $row_tmp = array();
+ $trusted_community_row_array = array();
+
+ $row_tmp = $row;
+
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $trusted_community_row_array = ACSFolderModel::select_trusted_community($row['folder_id']);
+ $row_tmp['trusted_community_row_array'] = $trusted_community_row_array;
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤ò¥»¥Ã¥È */
+ $put_community_row_array = ACSFolderModel::select_put_community($row['folder_id']);
+ $row_tmp['put_community_row_array'] = $put_community_row_array;
+
+ array_push($all_community_row_array, $row_tmp);
+ }
+
+ $cache_rows[$community_id] = $all_community_row_array;
+
+ return $all_community_row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ *
+ * @param $folder_id_array
+ */
+ static function select_folder_file_info_row_array ($folder_id_array) {
+ /* ¥Õ¥©¥ë¥À¥Õ¥¡¥¤¥ë¤ò¼èÆÀ */
+ $target_folder_id = implode(", ", $folder_id_array);
+ $folder_id_sql = "SELECT *";
+ $folder_id_sql .= " FROM folder_file";
+ $folder_id_sql .= " WHERE folder_id IN (" . $target_folder_id . ")";
+
+ $folder_file_row_array = ACSDB::_get_row_array($folder_id_sql);
+
+ /* ¥Õ¥©¥ë¥ÀID¤òÇÛÎó¤Ë³ÊǼ */
+ $file_id_array = array();
+ foreach ($folder_file_row_array as $folder_file_row) {
+ array_push($file_id_array, $folder_file_row['file_id']);
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¾ðÊó¤ò¼èÆÀ */
+ if (count($file_id_array) > 0) {
+ $row_array = ACSFileInfoModel::select_file_info_row_array($file_id_array);
+ }
+ return $row_array;
+ }
+
+ /**
+ * ¥ë¡¼¥È¥Õ¥©¥ë¥À¼èÆÀ
+ *
+ * @param $community_id
+ */
+ static function select_root_folder_row ($community_id) {
+ $sql_where = "folder.community_id = " . $community_id;
+ $sql_where .= " AND folder.parent_folder_id IS NULL ";
+
+ $row_array = ACSFolderModel::select_common_folder_row_array($sql_where);
+
+ return $row_array[0];
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁÞÆþ
+ *
+ * @param $folder_row
+ * @param $trusted_community_id_array
+ * @return true / false
+ */
+ static function insert_folder ($folder_row, $trusted_community_id_array = '') {
+
+ ACSLib::escape_sql_array($folder_row);
+ ACSLib::get_sql_value_array($folder_row);
+
+ $sql = "INSERT INTO folder";
+ $sql .= " (folder_id, community_id, folder_name, comment, parent_folder_id, ";
+ $sql .= "entry_user_community_id, entry_date, ";
+ $sql .= "update_user_community_id, update_date, open_level_code)";
+ $sql .= " VALUES (";
+ $sql .= $folder_row['folder_id'] . ",";
+ $sql .= $folder_row['community_id'] . ",";
+ $sql .= $folder_row['folder_name'] . ",";
+ $sql .= $folder_row['comment'] . ",";
+ $sql .= $folder_row['parent_folder_id'] . ",";
+ $sql .= $folder_row['entry_user_community_id'] . ",";
+ $sql .= $folder_row['entry_date'] . ",";
+ $sql .= $folder_row['update_user_community_id'] . ",";
+ $sql .= $folder_row['update_date'] . ",";
+ $sql .= $folder_row['open_level_code'];
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ return $ret;
+ }
+
+ // ¥Õ¥©¥ë¥À±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ÁÞÆþ
+ if ($trusted_community_id_array) {
+ $ret = ACSFolderModel::insert_folder_trusted_community($folder_row['folder_id'], $trusted_community_id_array);
+ if (!$ret) {
+ return $ret;
+ }
+ }
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ÁÞÆþ¡Ê¶¦ÄÌ¡Ë
+ *
+ * @param $target_folder_id
+ * @param $trusted_community_id_array
+ * @return true / false
+ */
+ static function insert_folder_trusted_community ($target_folder_id, $trusted_community_id_array) {
+ foreach ($trusted_community_id_array as $trusted_community_id) {
+ $sql = "INSERT INTO folder_trusted_community";
+ $sql .= " (folder_id, trusted_community_id)";
+ $sql .= " VALUES (";
+ $sql .= $target_folder_id . ",";
+ $sql .= $trusted_community_id;
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ return $ret;
+ }
+ }
+
+ return $ret;
+ }
+
+ /**
+ * ¥ë¡¼¥È¥Õ¥©¥ë¥ÀÁÞÆþ
+ *
+ * @param $community_id
+ */
+ static function insert_root_folder ($community_id) {
+ $folder_row = array();
+ $timestamp = ACSLib::convert_timestamp_to_pg_date();
+
+ $folder_row['folder_id'] = ACSDB::get_next_seq('folder_id_seq');
+ $folder_row['community_id'] = $community_id;
+ $folder_row['folder_name'] = ACSMsg::get_mdmsg(__FILE__,'M001');
+ $folder_row['comment'] = "";
+ $folder_row['parent_folder_id'] = "";
+ $folder_row['entry_user_community_id'] = $community_id;
+ $folder_row['entry_date'] = $timestamp;
+ $folder_row['update_user_community_id'] = $community_id;
+ $folder_row['update_date'] = $timestamp;
+ $folder_row['open_level_code'] = "";
+
+ ACSDB::_do_query("BEGIN");
+
+ $ret = ACSFolderModel::insert_folder($folder_row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥Õ¥¡¥¤¥ëÁÞÆþ
+ *
+ * @param $foder_id
+ * @param $file_id
+ */
+ static function insert_folder_file($folder_id, $file_id) {
+ $sql = "INSERT INTO folder_file";
+ $sql .= " (folder_id, file_id)";
+ $sql .= " VALUES (" . $folder_id . "," . $file_id . ")";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥Õ¥¡¥¤¥ë¾ðÊ󹹿· (¶¦ÄÌ)
+ *
+ * @param $target_folder_id
+ * @param $target_folder_file_id
+ * @param $row
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder_file ($target_folder_id, $target_file_id, $row) {
+ $set_values = array();
+ foreach ($row as $key => $value) {
+ $value_str = "";
+ $value_str = " " . $key . " = '" . $value . "'";
+
+ array_push($set_values, $value_str);
+ }
+
+ $sql = "UPDATE folder_file";
+ $sql .= " SET";
+ $sql .= implode(", ", $set_values);
+ $sql .= " WHERE folder_id = " . $target_folder_id;
+ $sql .= " AND file_id = " . $target_file_id;
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥Õ¥¡¥¤¥ë ¥Õ¥©¥ë¥À°ÜÆ°
+ *
+ * @param $target_folder_id
+ * @param $target_file_id
+ * @param $row
+ * @return $ret ¹¹¿··ë²Ì (true/false)
+ */
+ static function update_folder_file_folder_id($target_folder_id, $target_file_id, $new_folder_id) {
+ $row = array();
+
+ /* ¹¹¿·¥Ç¡¼¥¿¥»¥Ã¥È */
+ $row['folder_id'] = $new_folder_id;
+
+ /* ¹¹¿·½èÍý */
+ $ret = ACSFolderModel::update_folder_file($target_folder_id, $target_file_id, $row);
+
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈϰϼèÆÀ
+ *
+ * @param $community_id
+ * @return open_level_row
+ */
+ static function select_contents_folder_open_level_row ($community_id) {
+ $row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $row['contents_type_code'], $row['open_level_code']);
+
+ return $row;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï (¥Ç¥Õ¥©¥ë¥È) ¼èÆÀ
+ *
+ * @param $community_type_name
+ * @return open_level_row
+ */
+ static function select_folder_open_level_default_row ($community_type_name) {
+ $default_row = array();
+ $row_array = ACSAccessControl::get_open_level_master_row_array($community_type_name, ACSMsg::get_mst('contents_type_master','D31'));
+ foreach ($row_array as $row) {
+ if ($row['is_default']) {
+ $default_row = $row;
+ break;
+ }
+ }
+
+ return $default_row;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ºï½ü
+ *
+ * @param $folder_id
+ * @param $put_community_id
+ */
+ static function delete_put_community ($folder_id, $put_community_id) {
+ $sql = "DELETE FROM put_community";
+ $sql .= " WHERE";
+ $sql .= " folder_id = '$folder_id'";
+ $sql .= " AND put_community_id = '$put_community_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£Á´¤Æºï½ü
+ *
+ * @param $put_community_id
+ * @param $put_community_folder_id
+ */
+ static function delete_all_put_community ($put_community_id, $put_community_folder_id) {
+ $sql = "DELETE FROM put_community";
+ $sql .= " WHERE";
+ $sql .= " put_community_id = '$put_community_id'";
+ $sql .= " AND put_community_folder_id = '$put_community_folder_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Î¥×¥Ã¥È¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤òÁ´¤Æºï½ü
+ *
+ * @param $folder_id ¥×¥Ã¥È¾ðÊó
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function delete_put_community_by_folder_id($folder_id) {
+ $folder_id = pg_escape_string($folder_id);
+ $sql = "DELETE";
+ $sql .= " FROM put_community";
+ $sql .= " WHERE folder_id = '$folder_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÁÞÆþ
+ *
+ * @param $folder_id
+ * @param $put_community_id
+ * @param $put_community_folder_id
+ */
+ static function insert_put_community ($folder_id, $put_community_id, $put_community_folder_id) {
+ $sql = "INSERT INTO put_community";
+ $sql .= " (folder_id, put_community_id, put_community_folder_id)";
+ $sql .= " VALUES (";
+ $sql .= $folder_id . ",";
+ $sql .= $put_community_id . ",";
+ $sql .= $put_community_folder_id;
+ $sql .= ")";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥Àºï½ü
+ * ÇÛ²¼¤Î¥Õ¥¡¥¤¥ë¤âºï½ü¤¹¤ë
+ *
+ * @param $folder_id_array
+ */
+ static function delete_folder ($folder_id_array) {
+ // folder_file ºï½ü
+ $ret = ACSFolderModel::delete_folder_file($folder_id_array);
+ if (!$ret) {
+ return false;
+ }
+
+ // folder ºï½ü
+ $target_parent_folder_id = implode(", ", $folder_id_array);
+
+ $sql = "DELETE FROM folder";
+ $sql .= " WHERE";
+ $sql .= " folder_id IN (" . $target_parent_folder_id . ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ return false;
+ }
+
+ return $ret;
+ }
+ static function delete_folder_file ($folder_id_array) {
+ /* folder_file ¤Î file_info ¾ðÊó¼èÆÀ */
+ // folder_file ºï½üÁ°¤Ë¼èÆÀ¤¹¤ëɬÍפ¢¤ê
+ $file_info_row_array = ACSFolderModel::select_folder_file_info_row_array($folder_id_array);
+
+ /* folder_file ºï½ü */
+ $target_folder_id = implode(", ", $folder_id_array);
+ $sql = "DELETE FROM folder_file";
+ $sql .= " WHERE";
+ $sql .= " folder_id IN (" . $target_folder_id . ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ return false;
+ }
+
+ /* ¥Õ¥¡¥¤¥ëºï½ü */
+ if ($file_info_row_array) {
+ foreach ($file_info_row_array as $file_info_row) {
+ $file_obj = new ACSFile($file_info_row);
+ $ret = $file_obj->delete_file();
+ if (!$ret) {
+ return false;
+ }
+ }
+ }
+
+ return $ret;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ACS Generic Folder (ACS ÈÆÍÑ¥Õ¥©¥ë¥À)
+ *
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À¡¢¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¤Ç·Ñ¾µ¤µ¤ì¤ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.21 $ $Date: 2008/04/24 16:00:00 y-yuki Exp $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFolder.class.php');
+require_once(ACS_CLASS_DIR . 'ACSFolderModel.class.php');
+class ACSGenericFolder
+{
+ /* ¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $community_id;
+
+ /* ¸ø³«ÈÏ°Ï */
+ var $open_level_code;
+ /* ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥ê¥¹¥È */
+ var $trusted_community_row_array = array();
+
+ /* ¥Õ¥©¥ë¥À */
+ var $folder_obj;
+
+ /* ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¥ê¥¹¥È */
+ var $all_community_folders_obj_array;
+
+ /* ɽ¼¨Âоݥե©¥ë¥À¤Î¥Ñ¥¹¥Õ¥©¥ë¥À¥ê¥¹¥È */
+ var $path_folder_obj_array;
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¥¿¥¤¥×̾ */
+ // ·Ñ¾µ¤¹¤ë¥¯¥é¥¹¤ÇÄêµÁ
+ var $community_type_name = "";
+
+ /* ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊó */
+ var $acs_user_info_row = array();
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󡢥桼¥¶¥Õ¥©¥ë¥À¾ðÊó¡¢
+ * Âоݥե©¥ë¥À¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ò¼èÆÀ¤·¡¢¥»¥Ã¥È¤¹¤ë¡£
+ *
+ * @param $community_id
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊó
+ * @param $folder_id
+ * @param $target_folder_id_array ¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¼èÆÀÂоݤȤʤë¥Õ¥©¥ë¥ÀID
+ */
+ function ACSGenericFolder ($community_id, $acs_user_info_row, $folder_id, $target_folder_id_array) {
+ /* ¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È */
+ $this->set_community_id($community_id);
+
+ /* ¥Õ¥©¥ë¥À¾ðÊó¥»¥Ã¥È */
+ // ¥Õ¥©¥ë¥À¼«¿È¤Î¸ø³«ÈÏ°ÏÅù¤ò¥»¥Ã¥È
+ $this->set_folder_info($community_id);
+
+ /* ¥Õ¥©¥ë¥À¥ª¥Ö¥¸¥§¥¯¥È¥»¥Ã¥È */
+ $this->set_folder_obj($community_id, $acs_user_info_row, $folder_id, $target_folder_id_array);
+
+ /* ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È */
+ $this->set_all_community_folders_obj_array($community_id);
+
+ /* ɽ¼¨Âоݥե©¥ë¥À¤Î¥Ñ¥¹¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È */
+ $this->set_path_folder_obj_array();
+
+ /* ¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï¥»¥Ã¥È */
+ $this->set_folder_obj_open_level();
+
+ /* ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󥻥åÈ*/
+ $this->set_acs_user_info_row($acs_user_info_row);
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ID¥»¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function set_community_id ($community_id) {
+ $this->community_id = $community_id;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ID¥²¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function get_community_id () {
+ return $this->community_id;
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󥻥åÈ
+ *
+ * @param $acs_user_info_row
+ */
+ function set_acs_user_info_row ($acs_user_info_row) {
+ $this->acs_user_info_row = $acs_user_info_row;
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹¥æ¡¼¥¶¾ðÊ󥲥åÈ
+ *
+ * @param $acs_user_info_row
+ */
+ function get_acs_user_info_row () {
+ return $this->acs_user_info_row;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ª¥Ö¥¸¥§¥¯¥È¥»¥Ã¥È
+ *
+ * @param $folder_id
+ */
+ function set_folder_obj ($community_id, $acs_user_info_row, $folder_id, $target_folder_id_array) {
+ static $cache_rows;
+
+ if (is_array($cache_rows[$folder_id])) {
+ $folder_row = $cache_rows[$folder_id];
+ } else {
+ /* ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ */
+ $folder_row = ACSFolderModel::select_folder_row($folder_id);
+ $cache_rows[$folder_id] = $folder_row;
+ }
+
+ /* ¥Õ¥©¥ë¥À¥¤¥ó¥¹¥¿¥ó¥¹¥»¥Ã¥È */
+ $this->folder_obj = new ACSFolder($folder_row, $target_folder_id_array, $acs_user_info_row);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¥ª¥Ö¥¸¥§¥¯¥È¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_folder_obj () {
+ return $this->folder_obj;
+ }
+
+ /**
+ * ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È
+ *
+ * @param $community_id
+ */
+ function set_all_community_folders_obj_array ($community_id) {
+ $all_community_folders_obj_array = array();
+ /* Á´¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ */
+ $folder_row_array = ACSFolderModel::select_all_community_folder_row_array($community_id);
+
+ foreach ($folder_row_array as $folder_row) {
+ /* ¶õ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Î¤ß¼èÆÀ */
+ $folder_obj = new ACSFolder($folder_row, '', '');
+
+ array_push($all_community_folders_obj_array, $folder_obj);
+ }
+
+ /* ¥Õ¥©¥ë¥À¥¤¥ó¥¹¥¿¥ó¥¹¥»¥Ã¥È */
+ $this->all_community_folders_obj_array = $all_community_folders_obj_array;
+ }
+
+ /**
+ * ɽ¼¨Âоݥ³¥ß¥å¥Ë¥Æ¥£¤ÎÁ´¥Õ¥©¥ë¥À¥ê¥¹¥È¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_all_community_folders_obj_array () {
+ return $this->all_community_folders_obj_array;
+ }
+
+
+ /**
+ * ɽ¼¨Âоݥե©¥ë¥À¤Î¥Ñ¥¹¥Õ¥©¥ë¥À¥ê¥¹¥È¥»¥Ã¥È
+ */
+ function set_path_folder_obj_array () {
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $all_community_folders_obj_array = $this->get_all_community_folders_obj_array();
+ $display_all_folders_obj_array = array();
+
+ // ¥Ñ¥¹½ç¤Ë¼èÆÀ
+ $target_folder_obj = $this->get_folder_obj();
+
+ $search_parent_folder_id = $target_folder_obj->get_parent_folder_id();
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+ if ($is_root_folder) {
+ // ¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ï¡¢¥Ñ¥¹¤Ë¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÄɲ乤ë
+ array_push($display_all_folders_obj_array, $target_folder_obj);
+ }
+
+ while (!$is_root_folder) {
+ // ¿Æ¥Õ¥©¥ë¥À¤ò¸¡º÷
+ foreach ($all_community_folders_obj_array as $all_community_folders_obj) {
+ $target_folder_id = $all_community_folders_obj->get_folder_id();
+
+ if ($search_parent_folder_id == $target_folder_id) {
+ $search_parent_folder_id = $all_community_folders_obj->get_parent_folder_id();
+
+ array_unshift($display_all_folders_obj_array, $all_community_folders_obj);
+ break;
+ }
+ }
+ $is_root_folder = $all_community_folders_obj->get_is_root_folder();
+ if ($is_root_folder) {
+ // ºÇ¸å¤Ë¡¢¸½ºß¤Î¥Õ¥©¥ë¥À¤òÄɲÃ
+ array_push($display_all_folders_obj_array, $target_folder_obj);
+ }
+ }
+
+ $this->path_folder_obj_array = $display_all_folders_obj_array;
+ }
+
+ /**
+ * ɽ¼¨Âоݥե©¥ë¥À¤Î¥Ñ¥¹¥Õ¥©¥ë¥À¥ê¥¹¥È¥²¥Ã¥È
+ */
+ function get_path_folder_obj_array () {
+ return $this->path_folder_obj_array;
+ }
+
+ /**
+ * ¥ë¡¼¥È¥Õ¥©¥ë¥À¼èÆÀ
+ *
+ * @param $community_id
+ */
+ function get_root_folder_row ($community_id) {
+ /* ¥ë¡¼¥È¥Õ¥©¥ë¥À¤ò¼èÆÀ¤¹¤ë */
+ $folder_row = ACSFolderModel::select_root_folder_row($community_id);
+
+ /* ¤Ê¤¤¾ì¹ç¡¢ºîÀ®¤¹¤ë */
+ if ($folder_row == "") {
+ $ret = ACSFolderModel::insert_root_folder($community_id);
+ /* ¤Ê¤¤¾ì¹ç¡¢¥¨¥é¡¼ */
+ if (!$ret) {
+ print "ERROR: Create root folder failed.<br>\n";
+ exit;
+ } else {
+ // ¤â¤¦°ìÅÙ¼èÆÀ¤¹¤ë
+ return $this->get_root_folder_row($community_id);
+ }
+ }
+
+ return $folder_row;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï¥»¥Ã¥È
+ *
+ * @param none
+ */
+ function set_folder_obj_open_level () {
+ $open_level_code = "";
+ $open_level_name = "";
+ $trusted_community_row_array = array();
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ì¹ç¡¢¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈϰϤò¥»¥Ã¥È
+ if ($this->folder_obj->get_is_root_folder()) {
+ $open_level_code = $this->get_contents_folder_open_level_code();
+ $open_level_name = $this->get_contents_folder_open_level_name();
+ $trusted_community_row_array = $this->get_contents_folder_trusted_community_row_array();
+
+ } else {
+ // °ì³¬ÁØÌÜ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤò¥»¥Ã¥È
+ $folder_obj = $this->get_first_level_folder_obj();
+ if ($folder_obj->get_open_level_code() == "") {
+ $folder_obj = $this;
+ }
+ $open_level_code = $folder_obj->get_open_level_code();
+ $open_level_name = $folder_obj->get_open_level_name();
+ $trusted_community_row_array = $folder_obj->get_trusted_community_row_array();
+ }
+
+ $this->folder_obj->set_open_level_code($open_level_code);
+ $this->folder_obj->set_open_level_name($open_level_name);
+ $this->folder_obj->set_trusted_community_row_array($trusted_community_row_array);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¾ðÊ󥻥åÈ
+ *
+ * @param $community_id
+ */
+ function set_folder_info ($community_id) {
+ $this->set_contents_folder_open_level($community_id);
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï¥»¥Ã¥È
+ * ·Ñ¾µ¤¹¤ë¥¯¥é¥¹¥ª¡¼¥Ð¡¼¥é¥¤¥É¤¹¤ë¤³¤È
+ *
+ * @param $community_id
+ */
+ function set_contents_folder_open_level ($community_id) {
+ print "ERROR: not overridden (set_contents_folder_open_level)";
+ exit;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï¥³¡¼¥É¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_contents_folder_open_level_code () {
+ return $this->open_level_code;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï̾¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_contents_folder_open_level_name () {
+ return $this->open_level_name;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥»¥Ã¥È
+ *
+ * @param $trusted_community_row_array
+ */
+ function set_contents_folder_trusted_community_row_array ($trusted_community_row_array) {
+ $this->trusted_community_row_array = $trusted_community_row_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥²¥Ã¥È
+ *
+ * @param none
+ */
+ function get_contents_folder_trusted_community_row_array () {
+ return $this->trusted_community_row_array;
+ }
+
+ /**
+ * °ì³¬ÁØÌÜ¥Õ¥©¥ë¥À¼èÆÀ
+ *
+ * @param none
+ * @return $folder_obj
+ */
+ function get_first_level_folder_obj () {
+ $path_folder_obj_array = $this->get_path_folder_obj_array();
+
+ $path_count = count($path_folder_obj_array);
+ if ($path_count >= 2) {
+ $folder_obj = $path_folder_obj_array[1];
+ }
+
+ return $folder_obj;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥¿¥¤¥×̾¥²¥Ã¥È
+ */
+ function get_community_type_name () {
+ return $this->community_type_name;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¹½À®¥²¥Ã¥È
+ */
+ function get_folder_tree () {
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¼èÆÀ
+ $root_folder_obj = ACSFolder::get_folder_instance($this->get_root_folder_row($this->get_community_id()));
+
+ // ¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¤·¤Æ¤¤¤¯
+ $root_folder_obj->set_sub_folder_obj_array($this->search_sub_folder_obj_array($root_folder_obj));
+
+ return $root_folder_obj;
+ }
+ function search_sub_folder_obj_array($parent_folder_obj) {
+ $all_community_folders_obj_array = $this->get_all_community_folders_obj_array();
+ $sub_folder_obj_array = array();
+
+ // ¥µ¥Ö¥Õ¥©¥ë¥À¸¡º÷
+ foreach ($all_community_folders_obj_array as $folder_obj) {
+ if ($folder_obj->get_parent_folder_id() == $parent_folder_obj->get_folder_id()) {
+ // ¤µ¤é¤Ë¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¡ÊºÆµ¢¡Ë
+ $folder_obj->set_sub_folder_obj_array($this->search_sub_folder_obj_array($folder_obj));
+ array_push($sub_folder_obj_array, $folder_obj);
+ }
+ }
+
+ return $sub_folder_obj_array;
+ }
+
+ /**
+ * »ØÄê¥Õ¥©¥ë¥ÀÇÛ²¼¤Î¥Õ¥©¥ë¥À¹½À®¥²¥Ã¥È
+ */
+ function get_lower_folder_tree ($target_folder_obj) {
+
+ // ¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¤·¤Æ¤¤¤¯
+ $target_folder_obj->set_sub_folder_obj_array($this->search_sub_folder_obj_array($target_folder_obj));
+
+ return $target_folder_obj;
+ }
+ /**
+ * ¥Õ¥©¥ë¥Àºï½ü
+ *
+ * @param $target_folder_obj ºï½üÂоݤΥե©¥ë¥À
+ */
+ function delete_folder ($target_folder_obj) {
+ // ÇÛ²¼¤Î¥Õ¥©¥ë¥À¹½À®¼èÆÀ
+ $target_folder_obj = $this->get_lower_folder_tree($target_folder_obj);
+
+ // ÇÛ²¼¤ÎÁ´¥Õ¥©¥ë¥ÀID¼èÆÀ
+ $folder_id_array = array(); // ÇÛ²¼¤Î¥Õ¥©¥ë¥ÀÁ´¤Æ¤¬¥»¥Ã¥È¤µ¤ì¤ë
+ $this->get_lower_folder_obj_array($target_folder_obj, $folder_id_array);
+
+ // ÂоݤȤʤë¥Õ¥©¥ë¥À¤âÄɲÃ
+ array_push($folder_id_array, $target_folder_obj->get_folder_id());
+
+ // ¥Õ¥©¥ë¥Àºï½ü
+ $ret = ACSFolderModel::delete_folder($folder_id_array);
+
+ return $ret;
+ }
+ function get_lower_folder_obj_array ($target_folder_obj, &$_folder_id_array, $tree_level = 0) {
+ // ¥µ¥Ö¥Õ¥©¥ë¥À¼èÆÀ
+ $sub_folder_obj_array = $this->search_sub_folder_obj_array($target_folder_obj);
+
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ $tree_level++;
+
+ array_push($_folder_id_array, $sub_folder_obj->get_folder_id());
+
+ // ¤µ¤é¤Ë¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¡ÊºÆµ¢¡Ë
+ $this->get_lower_folder_obj_array($sub_folder_obj, $_folder_id_array, $tree_level);
+
+ // 1³¬Áؾå¤Î¸¡º÷¤ËÌá¤ë
+ $tree_level--;
+ }
+ }
+
+ /**
+ * ¥×¥Ã¥Èµ¡Ç½¤¬»ÈÍѤǤ¤ë¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ *
+ * @param true / false
+ */
+ function is_put_available () {
+ if ($this->folder_obj->get_is_root_folder()) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¸ø³«ÈÏ°ÏÀßÄ굡ǽ¤¬»ÈÍѤǤ¤ë¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ *
+ * @param true / false
+ */
+ function is_set_open_level_available () {
+ if ($this->folder_obj->get_is_root_folder()) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Ë¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ë¤«
+ * ·Ñ¾µ¤¹¤ë¥¯¥é¥¹¤Ç¥ª¡¼¥Ð¡¼¥é¥¤¥É¤¹¤ë¤³¤È
+ */
+ function has_privilege ($row) {
+ return false;
+ }
+
+
+ /**
+ * ºÆµ¢Åª¤Ë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ *
+ */
+ static function get_recursive_folder_id_array($folder_id_array) {
+ $ret_folder_id_array = $folder_id_array;
+
+ foreach ($folder_id_array as $folder_id) {
+ $sub_folder_id_array = ACSGenericFolder::get_sub_folder_id_array($folder_id);
+ if (count($sub_folder_id_array)) {
+ // ¥µ¥Ö¥Õ¥©¥ë¥À¤¬¤¢¤ë¤È¤
+ $ret_folder_id_array = array_merge($ret_folder_id_array, ACSGenericFolder::get_recursive_folder_id_array($sub_folder_id_array));
+ }
+ }
+
+ return $ret_folder_id_array;
+ }
+
+ /**
+ * ¥µ¥Ö¥Õ¥©¥ë¥À¤ÎID¤ò¼èÆÀ¤¹¤ë
+ *
+ */
+ static function get_sub_folder_id_array($folder_id) {
+ $folder_id = pg_escape_string($folder_id);
+
+ $sql = "SELECT folder_id";
+ $sql .= " FROM folder";
+ $sql .= " WHERE folder.parent_folder_id = '$folder_id'";
+ $row_array = ACSDB::_get_row_array($sql);
+ $folder_id_array = array();
+ foreach ($row_array as $row) {
+ array_push($folder_id_array, $row['folder_id']);
+ }
+
+ return $folder_id_array;
+ }
+
+ /**
+ * $user_community_id¤Î¿·Ãå¥Õ¥©¥ë¥À¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ * ($commyunity_row_array¤Ë´Þ¤Þ¤ì¤ëcommunity_id¤¬½êͤ¹¤ë¥Õ¥¡¥¤¥ë¤òÂоݤȤ¹¤ë)
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥À¥¤¥¢¥ê¡¼¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * @param $csv_string ½êͼԾò·ïcsvʸ»úÎó
+ * @return ¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ function get_new_folder_row_array($user_community_id, $csv_string, $days=false, $offset=false) {
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // ¥Õ¥©¥ë¥À¤Î¿·Ãåµ»ö¤òºÇ¿·½ç¤Ë¼èÆÀ¤¹¤ë
+ $sql = "SELECT *, acs_is_unread_file(" .
+ $user_community_id . ", fi.file_id) as is_unread " .
+ " FROM folder_file AS ff, folder AS fo, " .
+ " file_info AS fi, community AS cm" .
+ //" FROM folder AS fo, folder_file AS ff, " .
+ //" file_info AS fi, community AS cm" .
+ " WHERE fi.file_id = ff.file_id" .
+ " AND ff.folder_id = fo.folder_id" .
+ " AND fi.owner_community_id = cm.community_id" .
+ " AND fi.owner_community_id IN (" . $csv_string . ")";
+
+ //------ 2007.2 ɽ¼¨»þ´Öû½ÌÂбþ
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if($days !== false){
+ $sql = $sql . " AND " . ACSLib::get_sql_condition_from_today("fi.update_date", $days);
+ }
+
+ //$sql = $sql . " ORDER BY fi.update_date DESC";
+ if($offset != false){
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $sql = $sql . " AND open_level_code is not null";
+ $sql = $sql . " ORDER BY fi.update_date DESC";
+ $sql = $sql . " OFFSET 0 LIMIT ". $display_count;
+ } else {
+ $sql = $sql . " ORDER BY fi.update_date DESC";
+ }
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSImageMagickWrapper.class.php,v 1.5 2006/03/30 04:38:01 w-ota Exp $
+
+// define
+define('ACS_IMAGE_MAGICK_CONVERT', '/usr/bin/convert');
+define('ACS_THUMBNAIL_WIDTH', 76); // ¥µ¥à¥Í¥¤¥ë¤ÎºÇÂç²£Éý
+define('ACS_THUMBNAIL_HEIGHT', 76); // ¥µ¥à¥Í¥¤¥ë¤ÎºÇÂç½ÄÉý
+
+class ACSImageMagickWrapper
+{
+ // ²èÁü¥Õ¥¡¥¤¥ë̾
+ var $file_name;
+ // ²èÁü¤Î²£Éý
+ var $width;
+ // ²èÁü¤Î½ÄÉý
+ var $height;
+
+ // ¥³¥ó¥¹¥È¥é¥¯¥¿
+ function ACSImageMagickWrapper($file_name) {
+ $image_info_array = @getimagesize($file_name);
+ if ($image_info_array) {
+ $this->file_name = $file_name;
+ $this->width = $image_info_array[0];
+ $this->height = $image_info_array[1];
+ }
+ }
+
+ /*
+ * ²èÁü¤òºîÀ®¤¹¤ë
+ *
+ * @param $new_file_name ºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë̾
+ * @param $image_type ²èÁü¥Õ¥¡¥¤¥ë¥¿¥¤¥×
+ * @param $max_width ºÇÂç²£Éý
+ * @param $max_height ºÇÂç½ÄÉý
+ */
+ function convert ($new_file_name, $image_type, $max_width = ACS_THUMBNAIL_WIDTH, $max_height = ACS_THUMBNAIL_HEIGHT) {
+ $tmp_file_name = $this->file_name . '.tmp';
+ if ($image_type) {
+ $tmp_file_name .= '.' . $image_type;
+ }
+
+ $cmd = ACS_IMAGE_MAGICK_CONVERT;
+ // ¸µ²èÁü¤¬½Ä²£Éý¤ÎºÇÂçÃͤè¤ê¤âÂ礤±¤ì¤Ð¥ê¥µ¥¤¥º¤¹¤ë
+ if ($this->width > $max_width || $this->height > $max_height) {
+ $cmd .= " -resize {$max_width}x{$max_height}";
+ }
+ $cmd .= " -quality 100";
+ $cmd .= " +profile '*'";
+ $cmd .= " " . $this->file_name;
+ $cmd .= " " . $tmp_file_name;
+
+ // convert¥³¥Þ¥ó¥É¼Â¹Ô
+ exec($cmd);
+ // ¥Õ¥¡¥¤¥ë̾Êѹ¹
+ rename($tmp_file_name, $new_file_name);
+
+ return basename($new_file_name);
+ }
+
+ /**
+ * JPEG ¤Î¥µ¥à¥Í¥¤¥ë²èÁü¤òºîÀ®¤¹¤ë
+ *
+ * @param $new_file_name ºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë̾
+ * @param $max_width ºÇÂç²£Éý
+ * @param $max_height ºÇÂç½ÄÉý
+ */
+ function make_jpg_thumbnail ($new_file_name, $max_width = ACS_THUMBNAIL_WIDTH, $max_height = ACS_THUMBNAIL_HEIGHT) {
+ ACSImageMagickWrapper::convert($new_file_name, 'jpg', $max_width, $max_height);
+ }
+
+ /**
+ * »ØÄꥵ¥¤¥º°Ê²¼¤Î¥µ¥¤¥º¤Ë½Ì¾®¤¹¤ë
+ *
+ * @param $max_width ºÇÂç²£Éý
+ * @param $max_height ºÇÂç½ÄÉý
+ */
+ function reduce_image ($max_width = ACS_THUMBNAIL_WIDTH, $max_height = ACS_THUMBNAIL_HEIGHT) {
+ if ($this->width > $max_width || $this->height > $max_height) {
+ ACSImageMagickWrapper::convert($this->file_name, '', $max_width, $max_height);
+ }
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSLDAP.class.php,v 1.0 2009/06/24 10:30:00 y-yuki Exp $
+// CAUTION::LDAP\83N\83\89\83X\82Í\81A\8ae\8aÂ\8b«\82É\8d\87\82í\82¹\82Ä\83R\81[\83f\83B\83\93\83O\82Ì\95K\97v\82ª\82 \82é
+
+
+/*
+ * LDAP\83N\83\89\83X
+ */
+class ACSLDAP {
+
+ /**
+ * LDAP\82Ì\83p\83X\83\8f\81[\83h\94F\8fØ\8f\88\97\9d\82ð\8eÀ\8e{\82·\82é
+ *
+ * @param $input_user_id \83\86\81[\83UID
+ * @param $input_passwd \83p\83X\83\8f\81[\83h
+ * @return \98A\91z\94z\97ñ1\83G\83\93\83g\83\8a
+ */
+ function check_passwd_by_ldap($input_user_id, $input_passwd) {
+
+ $ldap_user_info_row = ACSLDAP::get_ldap_user_info_row($input_user_id);
+
+ /* LDAP\82É\83f\81[\83^\82ª\97L\82é\8fê\8d\87\82Í\83p\83X\83\8f\81[\83h\94F\8fØ */
+ if (count($ldap_user_info_row) > 1) {
+
+ /* LDAP\83p\83X\83\8f\81[\83h\82Ì\94F\8fØ */
+ $passwd = str_replace("{crypt}", "", $ldap_user_info_row['userpassword']);
+
+ if(crypt($input_passwd, $passwd) == $passwd
+ || ACSSystem::verify_passwd_by_hash($input_passwd, $passwd) == 0) {
+ return $input_user_id;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * LDAP\82æ\82è\81A\83\86\81[\83U\8fî\95ñ\82ð\8c\9f\8dõ\82·\82é
+ *
+ * @param $input_user_id \83\86\81[\83UID
+ * @return \98A\91z\94z\97ñ1\83G\83\93\83g\83\8a
+ */
+ function ldap_search_user_info_ipdb($input_user_id) {
+
+ // \83V\83X\83e\83\80\90Ý\92è\82ð\8eæ\93¾
+ $system_conf_row = ACSLDAP::set_system_conf();
+
+ // \83t\83B\83\8b\83^
+ $filter = '(cn=' . $input_user_id . ')';
+
+ // LDAP\90Ú\91±
+ $conn = ACSLDAP::connect_ldap();
+ if (!$conn) {
+ return -1;
+ }
+
+ // search
+ $res = @ldap_search($conn, $system_conf_row['ldap_base_dn'], $filter);
+
+ // \83G\83\93\83g\83\8a\8eæ\93¾
+ $row_arr = @ldap_get_entries($conn, $res);
+ return $row_arr;
+ }
+
+ /**
+ * \83\86\81[\83U\8fî\95ñ\82ð\8eæ\93¾\82·\82é
+ *
+ * @param $input_user_id \93ü\97Í\83\86\81[\83UID
+ * @return \83\86\81[\83U\8fî\95ñ
+ */
+ function get_ldap_user_info_row($input_user_id) {
+
+ // \82Ü\82¸\8eæ\93¾\82µ\82Ä\82Ý\82é
+ $ldap_user_info_row_array = ACSLDAP::ldap_search_user_info_ipdb($input_user_id);
+
+ // 1\8c\8f\82Ì\83\86\81[\83U\8fî\95ñ
+ $ldap_user_info_row = array();
+ // \83\86\81[\83UID
+ $ldap_user_info_row['user_id'] = $input_user_id;
+
+ // \8e\81\96¼
+ $ldap_user_info_row['user_name'] = mb_convert_encoding(
+ $ldap_user_info_row_array[0]['name'][0], mb_internal_encoding(), 'UTF-8');
+
+ // \83\81\81[\83\8b\83A\83h\83\8c\83X
+ $ldap_user_info_row['mail_addr'] = $ldap_user_info_row_array[0]['mail'][0];
+
+ // \8f\8a\91®
+ $ldap_user_info_row['belonging'] = '';
+
+ // \83p\83X\83\8f\81[\83h
+ $ldap_user_info_row['userpassword'] = $ldap_user_info_row_array[0]['userpassword'][0];
+
+ return $ldap_user_info_row;
+
+ }
+
+ /**
+ * LDAP\90Ú\91±\83`\83F\83b\83N
+ *
+ * @return \90Ú\91±\90¬\8c÷(true) / \90Ú\91±\8e¸\94s(false)
+ */
+ function check_connect_ldap_ipdb() {
+
+ if (!ACSLDAP::connect_ldap()) {
+ return -1;
+ }
+ return 0;
+
+ }
+
+ /**
+ * LDAP\82É\90Ú\91±\82·\82é
+ *
+ * @param
+ * @return \83\8a\83\\81[\83X
+ */
+ function connect_ldap() {
+
+ // \83V\83X\83e\83\80\90Ý\92è\82ð\8eæ\93¾
+ $system_conf_row = ACSLDAP::set_system_conf();
+
+ // LDAP\90Ú\91±
+ $conn = @ldap_connect($system_conf_row['ldap_server'], $system_conf_row['ldap_port']);
+ if (!$conn) {
+ // \8e¸\94s\8e\9e\82ÍNULL
+ return null;
+ }
+
+ // LDAP\83v\83\8d\83g\83R\83\8b\83o\81[\83W\83\87\83\93\83Z\83b\83g (LDAPv3)
+ @ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
+
+ // \83o\83C\83\93\83h\8f\88\97\9d
+ $bind = @ldap_bind($conn, $system_conf_row['ldap_bind_dn'], $system_conf_row['ldap_bind_passwd']);
+ if (!$bind) {
+ // \8e¸\94s\8e\9e\82ÍNULL
+ return null;
+ }
+ return $conn;
+ }
+
+
+ /**
+ * LDAP\90Ý\92è\8fî\95ñ\82ð\8eæ\93¾\82·\82é
+ *
+ * @return \90Ý\92è\8fî\95ñ(\94z\97ñ)
+ */
+ function set_system_conf() {
+
+ $system_conf_row = array();
+
+ // \83z\83X\83g
+ $system_conf_row['ldap_server'] = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'LDAP_SERVER');
+
+ // \83|\81[\83g
+ $system_conf_row['ldap_port'] = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'LDAP_PORT');
+
+ // BASE
+ $system_conf_row['ldap_base_dn'] = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'LDAP_BASE_DN');
+
+ // BIND
+ $system_conf_row['ldap_bind_dn'] = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'LDAP_BIND_DN');
+
+ // BIND\83p\83X\83\8f\81[\83h
+ $system_conf_row['ldap_bind_passwd'] = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'LDAP_BIND_PASSWD');
+
+ return $system_conf_row;
+ }
+
+
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// $Id: ACSLib.class.php,v 1.26 2007/03/30 05:27:15 w-ota Exp $
+
+
+/*
+ * ¥é¥¤¥Ö¥é¥ê¥¯¥é¥¹
+ */
+class ACSLib {
+
+ /**
+ * ÇÛÎó¤ËÂФ·¤Æpg_escape_string()¤¹¤ë (SQL¥¨¥¹¥±¡¼¥×)
+ *
+ * @param ÇÛÎó
+ * @return ¥¨¥¹¥±¡¼¥×¸å¤ÎÇÛÎó
+ */
+ static function escape_sql_array(&$arr) {
+ foreach ($arr as $key => $value) {
+ if (is_scalar($value)) {
+ $arr[$key] = pg_escape_string($value);
+ }
+ }
+ return $arr;
+ }
+
+ /**
+ * ÇÛÎó¤ËÂФ·¤Æget_sql_value()¤¹¤ë (¥¯¥©¡¼¥È¤Ç°Ï¤à¡¢¤Þ¤¿¤Ïnull¤È¤¹¤ë)
+ *
+ * @param ÇÛÎó
+ * @return ÇÛÎó
+ */
+ static function get_sql_value_array(&$arr) {
+ foreach ($arr as $key => $value) {
+ if (is_scalar($value) || is_null($value)) {
+ $arr[$key] = ACSLib::get_sql_value($value);
+ }
+ }
+ return $arr;
+ }
+
+ /**
+ * SQL¤ÎÃͤò¥¯¥©¡¼¥È¤Ç°Ï¤à¡¢¤Þ¤¿¤Ïnull¤È¤¹¤ë
+ *
+ * @param ʸ»úÎó
+ * @return ²Ã¹©¸å¤Îʸ»úÎó
+ */
+ static function get_sql_value($value) {
+ if ($value != '') {
+ $value = "'$value'";
+ } else {
+ $value = "null";
+ }
+ return $value;
+ }
+
+ /*
+ * Ⱦ³Ñ¥¹¥Ú¡¼¥¹¤ä¥¿¥Ö¤ò ¤ËÊÑ´¹¤¹¤ë
+ *
+ */
+ static function sp2nbsp($str) {
+ $str = str_replace(' ', ' ', $str);
+ $str = str_replace("\t", ' ', $str);
+ return $str;
+ }
+
+ /**
+ * ILIKE¶ç¤ò¥¨¥¹¥±¡¼¥×¤¹¤ë \, %
+ *
+ * @param $str ʸ»úÎó
+ * @param ¥¨¥¹¥±¡¼¥×¸å¤Îʸ»úÎó
+ */
+ static function escape_ilike(&$str) {
+ $str = str_replace('\\', '\\\\', $str);
+ $str = str_replace('%', '\\\\%', $str);
+ return $str;
+ }
+
+ /**
+ * LDAP¥Õ¥£¥ë¥¿Ê¸»úÎó¤ò¥¨¥¹¥±¡¼¥×¤¹¤ë \, (, ), *
+ *
+ * @param $str ʸ»úÎó
+ * @param ¥¨¥¹¥±¡¼¥×¸å¤Îʸ»úÎó
+ */
+ static function escape_ldap_filter($str) {
+ $str = str_replace('\\', '\\\\', $str);
+ $str = str_replace('(', '\\(', $str);
+ $str = str_replace(')', '\\)', $str);
+ $str = str_replace('*', '\\*', $str);
+ return $str;
+ }
+
+ /*
+ * Á´È¾³Ñ¥¹¥Ú¡¼¥¹¤Ç¶èÀÚ¤é¤ì¤¿Ê¸»úÎó¤ò¡¢Ê¸»úÎó¥Ñ¥¿¡¼¥ó¤´¤È¤ÎÇÛÎó¤ÎÇÛÎó¤È¤·¤Æ¼èÆÀ¤¹¤ë
+ * (Á´³Ñ¤Ò¤é¤¬¤Ê, Á´³Ñ¥«¥¿¥«¥Ê, Ⱦ³Ñ¥«¥¿¥«¥Ê, Á´³Ñ±Ñ¿ô»ú, Ⱦ³Ñ±Ñ¿ô»ú¤Î¥Ñ¥¿¡¼¥ó¤òºîÀ®)
+ *
+ * @param $str ʸ»úÎó
+ * @return ÇÛÎó¤ÎÇÛÎó
+ *
+ */
+ static function get_query_array_array($str) {
+ // 1¸Ä°Ê¾å¤ÎÁ´È¾³Ñ¥¹¥Ú¡¼¥¹¤Çsplit¤·¤ÆÇÛÎó¤Ë³ÊǼ
+ $query_array = mb_split('[ ¡¡]+', trim($str));
+
+ // ʬ³ä¸å¤Î¥¯¥¨¥ê¤òÊÝ»ý¤¹¤ëÇÛÎó¤ÎÇÛÎó
+ $ret_query_array_array = array();
+
+ foreach ($query_array as $query) {
+ if ($query == '') {
+ continue;
+ }
+ $ret_query_array = array();
+ array_push($ret_query_array, $query);
+ array_push($ret_query_array, mb_convert_kana($query, "HcV")); // Á´³Ñ¤Ò¤é¤¬¤Ê
+ array_push($ret_query_array, mb_convert_kana($query, "KCV")); // Á´³Ñ¥«¥¿¥«¥Ê
+ array_push($ret_query_array, mb_convert_kana($query, "kh")); // Ⱦ³Ñ¥«¥¿¥«¥Ê
+ array_push($ret_query_array, mb_convert_kana($query, "A")); // Á´³Ñ±Ñ¿ô»ú (£Á£Â£Ã£±£²£³)
+ array_push($ret_query_array, mb_convert_kana($query, "a")); // Ⱦ³Ñ±Ñ¿ô»ú (ABC123)
+
+ // unique¤Ë¤·¤Æ¤«¤éarray_values
+ $ret_query_array = array_values(array_unique($ret_query_array));
+ // push
+ array_push($ret_query_array_array, $ret_query_array);
+ }
+
+ return $ret_query_array_array;
+ }
+
+ /**
+ * PostgreSQL·Á¼°¤ÎÆü»þ¤òÊÑ´¹¤·À°·Á¤¹¤ë YYYY/MM/DD(wday) H:MM
+ *
+ * @param PostgreSQL¤«¤éÍ¿¤¨¤é¤ì¤¿·Á¼°¤ÎÆüÉÕ¤òɽ¤¹Ê¸»úÎó
+ * @param ÍËÆü¤òɽ¼¨¤¹¤ë
+ * @param H:MM(»þ:ʬ)¤òɽ¼¨¤¹¤ë
+ * @param SS(ÉÃ)¤òɽ¼¨¤¹¤ë
+ * @return ÊÑ´¹¤·À°·Á¤µ¤ì¤¿ÆüÉÕ¤Îʸ»úÎó
+ */
+ static function convert_pg_date_to_str($pg_date, $wday = 1, $hhmm = 1, $ss = 0) {
+ $wday_arr = array(ACSMsg::get_mdmsg(__FILE__,'M001'), ACSMsg::get_mdmsg(__FILE__,'M002'), ACSMsg::get_mdmsg(__FILE__,'M003'), ACSMsg::get_mdmsg(__FILE__,'M004'), ACSMsg::get_mdmsg(__FILE__,'M005'), ACSMsg::get_mdmsg(__FILE__,'M006'), ACSMsg::get_mdmsg(__FILE__,'M007'));
+ if ($pg_date == '') {
+ $date = '';
+ } else {
+ $t = strtotime($pg_date) + 9*60*60; // UNIX timestamp (JST)
+ $date = gmdate("Y/m/d", $t); // YYYY/MM/DD
+ if ($wday) {
+ $date .= "(" . $wday_arr[gmdate("w", $t)] . ")"; // (wday)
+ }
+ if ($hhmm) {
+ $date .= gmdate(" G:i", $t); // H:MM
+ }
+ if ($ss) {
+ $date .= gmdate(":s", $t); // SS
+ }
+ }
+ return $date;
+ }
+
+ /**
+ * Timestamp ¤ò PostgreSQL ·Á¼°¤ÎÆü»þ¤ËÀ°·Á¤¹¤ë YYYY-MM-DD H:M:S
+ *
+ * @param $timestamp »ØÄê¤Î¤Ê¤¤¾ì¹ç¡¢¸½ºß¤Î¥í¡¼¥«¥ë»þ¹ï
+ * @return À°·Á¤µ¤ì¤¿ÆüÉÕ¤Îʸ»úÎó
+ */
+ static function convert_timestamp_to_pg_date ($timestamp = '') {
+ if ($timestamp == '') {
+ $timestamp = time();
+ }
+ return date("Y-m-d H:i:s", $timestamp);
+ }
+
+ /**
+ * PostgreSQL ·Á¼°¤ÎÆü»þ¤ò Timestamp ¤ËÊÑ´¹¤¹¤ë
+ *
+ * @param string $pg_date PostgreSQL·Á¼°¤ÎÆü»þ(ʸ»úÎó)
+ * @return timestamp php¤ÎÆü»þ(¶õ¤Î¾ì¹ç¤Ï¶õʸ»úÎó¤òÊÖ¤¹)
+ */
+ static function convert_pg_date_to_timestamp ($pg_date) {
+ if ($pg_date == '') {
+ return '';
+ }
+ return strtotime($pg_date);
+ }
+
+ /**
+ * ·î¤ÎºÇ½ªÆü¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $year ǯ
+ * @param $month ·î (1-12)
+ * @return ·î¤ÎºÇ½ªÆü
+ */
+ static function get_end_day($year, $month) {
+ for ($i = 28; $i <= 31; $i++) {
+ if (checkdate($month, $i, $year)) {
+ $day = $i;
+ } else {
+ break;
+ }
+ }
+ return $day;
+ }
+
+
+ /**
+ * PostgreSQL¤Î¿¿µ¶ÃͤòPHP¤Î¿¿µ¶ÃͤȤ·¤Æ¼èÆÀ¤¹¤ë
+ */
+ static function get_boolean($pg_boolean) {
+ if ($pg_boolean == 't') {
+ $ret = true;
+ } else {
+ $ret = false;
+ }
+ return $ret;
+ }
+
+ /**
+ * PHP¤Î¿¿µ¶ÃͤòPostgreSQL¤Î¿¿µ¶ÃͤȤ·¤Æ¼èÆÀ¤¹¤ë
+ */
+ static function get_pg_boolean($php_boolean) {
+ if ($php_boolean) {
+ $pg_boolean = 't';
+ } else {
+ $pg_boolean = 'f';
+ }
+ return $pg_boolean;
+ }
+
+ /**
+ * ¥Ý¥¹¥È¤µ¤ì¤Æ¤¤¿¥Ç¡¼¥¿¤òÆâÉô¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ËÊÑ´¹¤¹¤ë
+ */
+ static function convert_post_data_encoding($params) {
+
+ if ($params == NULL) {
+ return $params;
+ }
+ foreach ($params as $key => $value) {
+ if (is_array($value)) {
+ $params[$key] = ACSLib::convert_post_data_encoding($value);
+ } else {
+ $params[$key] = mb_convert_encoding($value, mb_internal_encoding(), implode(',', mb_detect_order()));
+ }
+ }
+ return $params;
+ }
+
+
+ /*
+ * ¥á¡¼¥ëÁ÷¿®: ¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë (SMTP)
+ */
+ static function send_mail($from, $to, $cc, $subject, $body, $additional_headers = "") {
+ require_once 'Mail.php';
+ $ret = 0;
+
+ // params (for Mail)
+ //$params['host'] = ACSSystemConfig::get_keyword_value('¥·¥¹¥Æ¥à', 'SMTP_SERVER');
+ //$params['port'] = ACSSystemConfig::get_keyword_value('¥·¥¹¥Æ¥à', 'SMTP_PORT');
+ $params['host'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SMTP_SERVER');
+ $params['port'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SMTP_PORT');
+
+ // encode
+ // 2010.03.24 ʸ»ú²½¤±Âбþ
+ //$subject = mb_encode_mimeheader($subject, 'ISO-2022-JP');
+ //$body = mb_convert_encoding($body, 'JIS', mb_internal_encoding());
+ // ʸ»úÎó¤òJIS¥³¡¼¥É¤ËÊÑ´¹
+ $subject = mb_convert_encoding($subject, 'ISO-2022-JP', 'EUC-JP');
+ // ¸µ¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤òÊݸ
+ $orgEncoding = mb_internal_encoding();
+ // ÆâÉô¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤òJIS¤ËÊѹ¹
+ mb_internal_encoding('ISO-2022-JP');
+ // MIMEÊÑ´¹
+ $subject = mb_encode_mimeheader($subject, 'ISO-2022-JP');
+ // ËÜʸ¤Î¥¨¥ó¥³¡¼¥ÉÊÑ´¹
+ $body = mb_convert_encoding($body, 'JIS', 'EUC-JP');
+ // ÆâÉô¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò¸µ¤ËÌ᤹
+ mb_internal_encoding($orgEncoding);
+
+ // headers
+ $headers['From'] = $from;
+ $headers['To'] = $to;
+ if ($cc != '') {
+ $to = "$to,$cc";
+ $headers['Cc'] = $cc;
+ }
+ if ($additional_headers['Bcc'] != '') {
+ $to .= ",".$additional_headers['Bcc'];
+ }
+
+ $headers['Subject'] = $subject;
+ $headers['Content-Type'] = 'text/plain; charset=ISO-2022-JP';
+
+ // ÄɲÃheaders
+ if (is_array($additional_headers)) {
+ $headers = array_merge($headers,$additional_headers);
+ }
+
+ // to¤ÎÇÛÎó
+ $to = explode(',', $to);
+
+ // SMTP¤Ç¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë
+ $mail_object = &Mail::factory('smtp', $params);
+ if($mail_object->send($to, $headers, $body) === true) {
+ $ret = 1;
+ }
+ return $ret;
+ }
+
+ /*
+ * ÆþÎϽñ¼°¤Î¥Á¥§¥Ã¥¯
+ *
+ * @param $str ʸ»úÎó
+ * @return ÇÛÎó¤ÎÇÛÎó
+ *
+ */
+ function get_value_array($str) {
+ $value_array = trim($str);
+ $ymd = 1;
+ $err = "OK";
+ for ($i = 0; $i < 10 ;$i++) {
+ $value = substr($value_array, $i , 1);
+ if(ereg('[0-9]',$value)){
+ $set_value = $set_value . $value;
+ }else if($value == '/'){
+ switch($ymd){
+ case 1: //yyyy
+ if(strlen($set_value) == 4){
+ if($set_value > 1900 && $set_value <2035){
+ $ymd = 2; $year = $set_value; $set_value ='';
+ continue;
+ }else{$err = ACSMsg::get_mdmsg(__FILE__,'M008'); break;}
+ }else{
+ $err = ACSMsg::get_mdmsg(__FILE__,'M009'); break;
+ }
+ case 2: //mm
+ if(strlen($set_value) == 2){
+ if($set_value > 0 && $set_value <13){
+ $ymd = 3; $month = $set_value; $set_value ='';
+ continue;
+ }else{$err = ACSMsg::get_mdmsg(__FILE__,'M010'); break;}
+ }else{
+ $err = ACSMsg::get_mdmsg(__FILE__,'M011'); break;
+ }
+ }
+ }else{
+ $err = ACSMsg::get_mdmsg(__FILE__,'M012'); break;
+ }
+ }
+ if($ymd = 3){ //dd
+ if(strlen($set_value) == 2){
+ $d = date("t", mktime(0, 0, 0, $month, 1, $year));
+ if($set_value > 0 && $set_value <= $d){
+ $ymd = 0;
+ }else{$err = ACSMsg::get_mdmsg(__FILE__,'M013');}
+ }else{
+ $err = ACSMsg::get_mdmsg(__FILE__,'M014');;
+ }
+ }
+ return $err;
+ }
+
+ /*
+ * ÇÛÎ󤫤écsvʸ»úÎó(¥«¥ó¥Þ¶èÀÚ¤êʸ»úÎó)¤òºîÀ®¤¹¤ë
+ *
+ * @param $array ÇÛÎó
+ * @param $column_name ÇÛÎó¤ÎÏ¢ÁÛÇÛÎó̾
+ * @return csvʸ»úÎó
+ *
+ */
+ static function get_csv_string_from_array(&$array, $column_name="") {
+ $csv_string = "";
+ foreach ($array as $row) {
+ if($csv_string != ""){
+ $csv_string .= ",";
+ }
+ if($column_name != ""){
+ $csv_string .= $row[$column_name];
+ }else{
+ $csv_string .= $row;
+ }
+ }
+
+ return $csv_string;
+ }
+
+ /*
+ * º£Æü¤«¤é²¿ÆüÁ°¤Þ¤Ç¤È¤¤¤¦SQL¾ò·ïʸ¼èÆÀ
+ *
+ * @param $column_name ÆüÉÕ¥«¥é¥à̾
+ * $days Æü¿ô(false¤Î¾ì¹ç¤ÏÁ´¤Æ)
+ * @return csvʸ»úÎó
+ *
+ */
+ static function get_sql_condition_from_today($column_name, $days=0) {
+
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if($days > 0){
+ $year = date("Y");
+ $month = date("m");
+ $day = date("d");
+ $date_start = date("Y/m/d", mktime(0, 0, 0, $month, $day-$days+1, $year));
+ return "(" . $column_name . " >= '" . $date_start . "')";
+ } else {
+ return "true";
+ }
+ }
+
+ /**
+ * ¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®
+ * @param string $dir ¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹
+ * @param int $mode ¥Õ¥¡¥¤¥ë¥â¡¼¥É
+ * @return integer 1...ºîÀ®¤·¤¿¾ì¹ç/0...ºîÀ®¤·¤Ê¤«¤Ã¤¿¾ì¹ç
+ */
+ static function make_dir ($dir, $mode = 0777) {
+ // ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®
+ if (!file_exists($dir)) {
+ mkdir($dir);
+ chmod($dir, $mode);
+ return 1;
+ } else {
+ return 0;
+ }
+ }
+
+ /**
+ * ¥Ç¥£¥ì¥¯¥È¥ê¤Î°ì³çºï½ü
+ * @param string $dir ¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹
+ */
+ static function remove_dir ($dir) {
+ if ($handle = @opendir("$dir")) {
+ while (false !== ($item = readdir($handle))) {
+ if ($item != "." && $item != "..") {
+ if (is_dir($dir.'/'.$item)) {
+ ACSLib::remove_dir($dir.'/'.$item);
+ } else {
+ unlink($dir.'/'.$item);
+ }
+ }
+ }
+ closedir($handle);
+ rmdir($dir);
+ }
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ACSLog.class.php,v 1.3 2007/03/27 02:12:31 w-ota Exp $
+
+/*
+ * Log¥¯¥é¥¹
+ */
+class ACSLog {
+ /**
+ * ¥í¥°¾ðÊó¤ò¸¡º÷¤¹¤ë
+ *
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥í¥°¾ðÊó¤ÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function search_log_row_array($form) {
+ $sql = "SELECT *";
+ $sql .= " FROM log, operation_master";
+ $sql .= " WHERE log.operation_code = operation_master.operation_code";
+
+ // ¸¡º÷¾ò·ï //
+ // ¥¡¼¥ï¡¼¥É
+ if ($form['q'] != '') {
+
+ $sqlfunc = "acs_convert_timestamp_".ACSMsg::get_lang();
+
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " log.log_id ILIKE '%$query%'";
+ //$sub_where_sql .= " OR acs_convert_timestamp_to_jdate(log.log_date, 'YYYY/MM/DD', 'FMHH24:MI:SS') ILIKE '%$query%'";
+ $sub_where_sql .= " OR ".$sqlfunc."(log.log_date, 'YYYY/MM/DD', 'FMHH24:MI:SS') ILIKE '%$query%'";
+ $sub_where_sql .= " OR log.user_id ILIKE '%$query%'";
+ $sub_where_sql .= " OR log.user_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR log.community_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR (CASE WHEN administrator_flag = 't' THEN '".ACSMsg::get_mdmsg(__FILE__,'M001')."' ELSE '".ACSMsg::get_mdmsg(__FILE__,'M002')."' END) ILIKE '%$query%'";
+ $sub_where_sql .= " OR operation_master.operation_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR log.message ILIKE '%$query%'";
+ $sub_where_sql .= " OR (CASE WHEN log.operation_result = 't' THEN '".ACSMsg::get_mdmsg(__FILE__,'M003')."' ELSE '".ACSMsg::get_mdmsg(__FILE__,'M004')."' END) ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ $sql .= " ORDER BY log_id DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥í¥°¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $acs_user_info_row ACS¥æ¡¼¥¶¾ðÊó
+ * @param $operation_type_name Áàºî̾
+ * @param $operation_result Áàºî·ë²Ì (true/false)
+ * @param $message ¥á¥Ã¥»¡¼¥¸
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_log($acs_user_info_row, $operation_type_name, $operation_result, $message = '') {
+ // Áàºî¥³¡¼¥É¤ò¼èÆÀ
+ $operation_master_row_array = ACSDB::get_master_array('operation');
+
+ // ¥í¥°ID¤Î¥·¡¼¥±¥ó¥¹¼èÆÀ
+ $log_id_seq = ACSDB::get_next_seq('log_id_seq');
+
+ // INSERT¥Ç¡¼¥¿
+ $form['log_id'] = $log_id_seq;
+ $form['log_date'] = 'now';
+ $form['user_id'] = $acs_user_info_row['user_id'];
+ // 2009.09.08 user_name
+ if ($acs_user_info_row['user_name'] == NULL || $acs_user_info_row['user_name'] == "") {
+ $form['user_name'] = "anonymous";
+ } else {
+ $form['user_name'] = $acs_user_info_row['user_name'];
+ }
+ //$form['user_name'] = $acs_user_info_row['user_name'];
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+ $form['community_name'] = $acs_user_info_row['community_name'];
+ $form['administrator_flag'] = $acs_user_info_row['administrator_flag'];
+ $form['operation_code'] = array_search($operation_type_name, $operation_master_row_array);
+ $form['operation_result'] = ACSLib::get_pg_boolean($operation_result);
+ $form['message'] = $operation_master_row_array[$form['operation_code']] . $message;
+
+ // escape
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO log (log_id, log_date, user_id, user_name, user_community_id, community_name, administrator_flag, operation_code, operation_result, message)";
+ $sql .= " VALUES ($form[log_id], $form[log_date], $form[user_id], $form[user_name], $form[user_community_id], $form[community_name], $form[administrator_flag], $form[operation_code], $form[operation_result], $form[message])";
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ¥í¥°¾ðÊó¤òºï½ü¤¹¤ë
+ *
+ * @param $before_date ¸½ºßÆü»þ¤è¤ê²¿ÆüÁ°¤è¤ê²áµî¤Î¥í¥°¾ðÊó¤ò¾Ã¤¹¤«
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_log($before_date) {
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ $sql = "DELETE";
+ $sql .= " FROM ";
+ $sql .= " log";
+ $sql .= " WHERE ";
+ $sql .= " log_date < current_timestamp + '-$before_date days'";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+// 2009.12.25 add
+ /**
+ * ¥í¥°¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $acs_user_info_row ACS¥æ¡¼¥¶¾ðÊó
+ * @param $operation_type_name Áàºî̾
+ * @param $operation_result Áàºî·ë²Ì (true/false)
+ * @param $message ¥á¥Ã¥»¡¼¥¸
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_log_debug($user_community_id, $message) {
+
+ // ¥í¥°ID¤Î¥·¡¼¥±¥ó¥¹¼èÆÀ
+ $log_id_seq = ACSDB::get_next_seq('log_id_seq');
+
+ // INSERT¥Ç¡¼¥¿
+ $form['log_id'] = $log_id_seq;
+ $form['log_date'] = 'now';
+ $form['user_id'] = 'debug';
+ $form['user_name'] = 'anonymous';
+ $form['user_community_id'] = $user_community_id;
+ $form['community_name'] = 'DEBUG';
+ $form['administrator_flag'] = false;
+ $form['operation_code'] = '9999';
+ $form['operation_result'] = true;
+ $form['message'] = $message;
+
+ // escape
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO log (log_id, log_date, user_id, user_name, user_community_id, community_name, administrator_flag, operation_code, operation_result, message)";
+ $sql .= " VALUES ( $log_id_seq, 'now', 'debug', 'anonymous', $user_community_id, 'DEBUG', false, '9999', true, '$message')";
+ $ret = ACSDB::_do_query($sql);
+
+// return $ret;
+return null;
+ }
+
+}
+
+?>
--- /dev/null
+<?php\r
+/**\r
+ * ¥á¥Ã¥»¡¼¥¸¡¡¶¦ÄÌ¥¯¥é¥¹\r
+ * \r
+ * ACSMessage.class.php\r
+ * @package acs/webapp/lib/class\r
+ * @author acs\r
+ */\r
+// $Id: ACSMessage.class.php,v 1.1 2009/06/19 09:50:00 acs Exp $\r
+\r
+/*\r
+ * ¥á¥Ã¥»¡¼¥¸¥¯¥é¥¹\r
+ */\r
+class ACSMessage {\r
+\r
+ /**\r
+ * ¿·Ãå¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return ¿·Ãå¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_new_message_row_array($user_community_id) {\r
+ $user_community_id = pg_escape_string($user_community_id);\r
+\r
+ $sql = "SELECT message.message_id";\r
+ $sql .= " FROM message, message_receiver";\r
+ $sql .= " WHERE message_receiver.community_id = '$user_community_id'";\r
+ $sql .= " AND message_receiver.message_id = message.message_id";\r
+ $sql .= " AND message_receiver.message_delete_flag = 'f'";\r
+ $sql .= " AND message_receiver.read_flag = 'f'";\r
+ $sql .= " ORDER BY message.post_date DESC";\r
+\r
+ $row_array = ACSDB::_get_row_array($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_receive_message_row_array($user_community_id) {\r
+ $user_community_id = pg_escape_string($user_community_id);\r
+\r
+ $sql = "SELECT message.message_id";\r
+ $sql .= ", message.subject";\r
+ $sql .= ", message.post_date";\r
+ $sql .= ", message_receiver.message_receiver_id";\r
+ $sql .= ", message_receiver.read_flag";\r
+ $sql .= ", community.community_id AS user_id";\r
+ $sql .= ", community.community_name AS user_name";\r
+ $sql .= " FROM message, message_sender, message_receiver, community";\r
+ $sql .= " WHERE message_receiver.community_id = '$user_community_id'";\r
+ $sql .= " AND message_sender.community_id = community.community_id";\r
+ $sql .= " AND message_receiver.message_id = message.message_id";\r
+ $sql .= " AND message.message_id = message_sender.message_id";\r
+ $sql .= " AND message_receiver.message_delete_flag = 'f'";\r
+ $sql .= " ORDER BY message.post_date DESC";\r
+\r
+ $row_array = ACSDB::_get_row_array($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_send_message_row_array($user_community_id) {\r
+ $user_community_id = pg_escape_string($user_community_id);\r
+\r
+ $sql = "SELECT message.message_id";\r
+ $sql .= ", message.subject";\r
+ $sql .= ", message.post_date";\r
+ $sql .= ", message_sender.message_sender_id";\r
+ $sql .= ", message_receiver.read_flag";\r
+ $sql .= ", community.community_id AS user_id";\r
+ $sql .= ", community.community_name AS user_name";\r
+ $sql .= " FROM message, message_sender, message_receiver, community";\r
+ $sql .= " WHERE message_sender.community_id = '$user_community_id'";\r
+ $sql .= " AND message_receiver.community_id = community.community_id";\r
+ $sql .= " AND message_sender.message_id = message.message_id";\r
+ $sql .= " AND message.message_id = message_receiver.message_id";\r
+ $sql .= " AND message_sender.message_delete_flag = 'f'";\r
+ $sql .= " ORDER BY message.post_date DESC";\r
+\r
+ $row_array = ACSDB::_get_row_array($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î¾ÜºÙ¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @return ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î¾ÜºÙ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_receive_message_row($message_id) {\r
+ $message_id = pg_escape_string($message_id);\r
+\r
+ $sql = "SELECT message.*";\r
+ $sql .= ", message_receiver.message_receiver_id";\r
+ $sql .= ", message_receiver.read_flag";\r
+ $sql .= ", community.community_id AS user_id";\r
+ $sql .= ", community.community_name AS user_name";\r
+ $sql .= " FROM message, message_sender, message_receiver, community";\r
+ $sql .= " WHERE message.message_id = '$message_id'";\r
+ $sql .= " AND message_sender.community_id = community.community_id";\r
+ $sql .= " AND message_receiver.message_id = message.message_id";\r
+ $sql .= " AND message.message_id = message_sender.message_id";\r
+ $sql .= " AND message_receiver.message_delete_flag = 'f'";\r
+ $sql .= " ORDER BY message.post_date DESC";\r
+\r
+ $row_array = ACSDB::_get_row($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¤Î¾ÜºÙ¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @return Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¤Î¾ÜºÙ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_send_message_row($message_id) {\r
+ $message_id = pg_escape_string($message_id);\r
+\r
+ $sql = "SELECT message.*";\r
+ $sql .= ", community.community_id AS user_id";\r
+ $sql .= ", community.community_name AS user_name";\r
+ $sql .= " FROM message, message_sender, message_receiver, community";\r
+ $sql .= " WHERE message.message_id = '$message_id'";\r
+ $sql .= " AND message_receiver.community_id = community.community_id";\r
+ $sql .= " AND message_receiver.message_id = message.message_id";\r
+ $sql .= " AND message.message_id = message_sender.message_id";\r
+ $sql .= " AND message_sender.message_delete_flag = 'f'";\r
+ $sql .= " ORDER BY message.post_date DESC";\r
+\r
+ $row_array = ACSDB::_get_row($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * ¥á¥Ã¥»¡¼¥¸¤ò´ûÆɤˤ¹¤ë\r
+ *\r
+ * @param $message_receiver_id ¼õ¿®¥á¥Ã¥»¡¼¥¸ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function read_message($message_receiver_id) {\r
+ \r
+ // BEGIN\r
+ \r
+ //¥á¥Ã¥»¡¼¥¸¤Î̤ÆÉ¡¦´ûÆɥե饰Êѹ¹ \r
+ $sql = "UPDATE message_receiver";\r
+ $sql .= " SET read_flag = 't'";\r
+ $sql .= " WHERE message_receiver.message_receiver_id = $message_receiver_id";\r
+ $ret = ACSDB::_do_query($sql);\r
+ if(!$ret){\r
+ echo "ERROR: Delete parent article failed.";\r
+ return false;\r
+ }\r
+ \r
+ // COMMIT\r
+ return true;\r
+ }\r
+\r
+ /**\r
+ * ÊÖ¿®»þ¤Î°úÍÑ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @return °úÍÑ¥á¥Ã¥»¡¼¥¸¤Î¾ÜºÙ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_message_row($message_id) {\r
+ $message_id = pg_escape_string($message_id);\r
+\r
+ $sql = "SELECT message.subject";\r
+ $sql .= ", message.body";\r
+ $sql .= " FROM message";\r
+ $sql .= " WHERE message.message_id = '$message_id'";\r
+\r
+ $row_array = ACSDB::_get_row($sql);\r
+ return $row_array;\r
+ }\r
+\r
+ /**\r
+ * ¥á¥Ã¥»¡¼¥¸¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $form ¥á¥Ã¥»¡¼¥¸¾ðÊó¤ÎÇÛÎó\r
+ * @return À®¸ù(ÅÐÏ¿¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸ID) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_message($form) {\r
+ $org_form = $form;\r
+\r
+ ACSLib::escape_sql_array($form);\r
+ ACSLib::get_sql_value_array($form);\r
+\r
+ // BEGIN\r
+ //ACSDB::_do_query("BEGIN");\r
+\r
+ $message_id_seq = ACSDB::get_next_seq('message_id_seq');\r
+ $message_sender_id_seq = ACSDB::get_next_seq('message_sender_id_seq');\r
+ $message_receiver_id_seq = ACSDB::get_next_seq('message_receiver_id_seq');\r
+\r
+ // messege\r
+ $sql1 = "INSERT INTO message";\r
+ $sql1 .= " (message_id, subject, body)";\r
+ $sql1 .= " VALUES ($message_id_seq, $form[subject], $form[body])";\r
+\r
+ $ret = ACSDB::_do_query($sql1);\r
+ if (!$ret) {\r
+ //ACSDB::_do_query("ROLLBACK");\r
+ echo "ERROR: insert message error";\r
+ return $ret;\r
+ }\r
+\r
+ $form = $org_form;\r
+ \r
+ // messege_sender\r
+ $sql2 = "INSERT INTO message_sender";\r
+ $sql2 .= " (message_sender_id, message_id, community_id, message_delete_flag)";\r
+ $sql2 .= " VALUES ($message_sender_id_seq, $message_id_seq, $form[acs_user_info_id], 'f')";\r
+\r
+ $ret = ACSDB::_do_query($sql2);\r
+ if (!$ret) {\r
+ //ACSDB::_do_query("ROLLBACK");\r
+ echo "ERROR: insert message_sender error";\r
+ return $ret;\r
+ }\r
+ \r
+ $form = $org_form;\r
+ \r
+ // messege_receiver\r
+ $sql3 = "INSERT INTO message_receiver";\r
+ $sql3 .= " (message_receiver_id, message_id, community_id, read_flag, message_delete_flag)";\r
+ $sql3 .= " VALUES ($message_receiver_id_seq, $message_id_seq, $form[user_community_id], 'f', 'f')";\r
+\r
+ $ret = ACSDB::_do_query($sql3);\r
+ if (!$ret) {\r
+ //ACSDB::_do_query("ROLLBACK");\r
+ echo "ERROR: insert message_receiver error";\r
+ return $ret;\r
+ }\r
+\r
+ if ($ret) {\r
+ return $message_id_seq;\r
+ } else {\r
+ return false;\r
+ }\r
+ }\r
+\r
+ /**\r
+ * ¼õ¿®¥á¥Ã¥»¡¼¥¸¤òºï½ü¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function delete_receive_message($message_id) {\r
+ \r
+ // BEGIN\r
+ \r
+ //¥á¥Ã¥»¡¼¥¸¤Îºï½ü(ºï½ü¥Õ¥é¥°°·¤¤) \r
+ $sql = "UPDATE message_receiver";\r
+ $sql .= " SET message_delete_flag = 't'";\r
+ $sql .= " WHERE message_receiver.message_id = $message_id";\r
+ $ret = ACSDB::_do_query($sql);\r
+ if(!$ret){\r
+ echo "ERROR: Delete receive message failed.";\r
+ return false;\r
+ }\r
+ \r
+ // COMMIT\r
+ return true;\r
+ }\r
+ \r
+ /**\r
+ * Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¤òºï½ü¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function delete_send_message($message_id) {\r
+ \r
+ // BEGIN\r
+ \r
+ //¥á¥Ã¥»¡¼¥¸¤Îºï½ü(ºï½ü¥Õ¥é¥°°·¤¤) \r
+ $sql = "UPDATE message_sender";\r
+ $sql .= " SET message_delete_flag = 't'";\r
+ $sql .= " WHERE message_sender.message_id = $message_id";\r
+ $ret = ACSDB::_do_query($sql);\r
+ if(!$ret){\r
+ echo "ERROR: Delete send messege failed.";\r
+ return false;\r
+ }\r
+ \r
+ // COMMIT\r
+ return true;\r
+ }\r
+ \r
+ /**\r
+ * ÄÌÃΥ᡼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @param $receiver_id ¼õ¿®¼ÔID\r
+ * @param $sender_id Á÷¿®¼ÔID\r
+ */\r
+ static function send_info_mail($message_id, $receiver_id, $sender_id) {\r
+ $system_group = ACSMsg::get_mst('system_config_group','D01');\r
+\r
+\r
+ // ¥·¥¹¥Æ¥àURL\r
+ $system_base_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_URL');\r
+ // ¥·¥¹¥Æ¥à¥í¥°¥¤¥óURL\r
+ $system_base_login_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_LOGIN_URL');\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹ (From:)\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ÍøÍѼԤθÀ¸ìÀßÄê¤ò°ì»þŪ¤ËÊݸ\r
+ $org_lang = ACSMsg::get_lang();\r
+\r
+ // ³Æ¸À¸ì¤Î¥¿¥¤¥È¥ë¤ò¼èÆÀ\r
+ $mail_titles = array();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang_key => $lang_name) {\r
+ ACSMsg::set_lang($lang_key);\r
+ $mail_titles[$lang_key] = \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','MTL%03d')."\n";\r
+ }\r
+\r
+ // ¸À¸ì¤ò°ìö¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ // °ÍÍꦤΥ桼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($sender_id);\r
+ // °ÍÍꤵ¤ì¤ë¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($receiver_id);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $message_url = $system_base_login_url . SCRIPT_PATH;\r
+ $message_url .= "?" . MODULE_ACCESSOR . "=User";\r
+ $message_url .= "&" . ACTION_ACCESSOR . "=MessageShow";\r
+ $message_url .= "&id={$receiver_id}";\r
+ $message_url .= "&message_id={$message_id}";\r
+\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSMessage.class.php','ADF%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{MESSAGE_URL}" => $message_url,\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M002');\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+ }\r
+\r
+ /**\r
+ * ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î»ý¤Á¼ç¤¬¤É¤¦¤«È½ÃǤ¹¤ë\r
+ *\r
+ * @param $message_id ¥á¥Ã¥»¡¼¥¸ID\r
+ * @param $community_id ¥æ¡¼¥¶¡¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return true or false\r
+ */\r
+ static function check_message_receiver($message_id, $community_id) {\r
+ $message_id = pg_escape_string($message_id);\r
+ $community_id = pg_escape_string($community_id);\r
+\r
+ $sql = "SELECT count(*)";\r
+ $sql .= " FROM message_receiver ";\r
+ $sql .= " WHERE message_id = '$message_id'";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND message_delete_flag = 'f'";\r
+ \r
+ $value = ACSDB::_get_value($sql);\r
+ if ($value) {\r
+ return true;\r
+ } else {\r
+ return false;\r
+ }\r
+ }\r
+ \r
+}\r
+?>\r
--- /dev/null
+<?php
+// $Id: ACSPOP3.class.php,v 1.1 2006/12/18 07:41:48 w-ota Exp $
+
+// PEAR
+require_once 'Net/POP3.php';
+require_once 'Mail/mimeDecode.php';
+require_once 'Mail/RFC822.php';
+
+/**
+ * POP3¥¢¥¯¥»¥¹¥¯¥é¥¹
+ */
+class ACSPOP3 {
+ /**
+ * POP3¥µ¡¼¥Ð¤Ë¥¢¥¯¥»¥¹¤·¤Æ¥á¡¼¥ë¤ò¼èÆÀ¤¹¤ë (¥á¥¤¥ó½èÍý)
+ *
+ * @param $do_dele_flag 1=¼õ¿®¸å¤Ë¥á¡¼¥ë¤òºï½ü¤¹¤ë / 0=ºï½ü¤·¤Ê¤¤
+ * @return $mail_row_array ¥á¡¼¥ë¾ðÊó($mail_row)¤ÎÇÛÎó
+ */
+ static function get_mail_row_array($params, $do_dele_flag = 0) {
+ // Ìá¤êÃÍ
+ $mail_row_array = array();
+
+
+ //----------------
+ // POP3¥µ¡¼¥ÐÀܳ
+ //----------------
+
+ // POP3Àܳ¥Ï¥ó¥É¥ë
+ $pop3 =& new Net_POP3;
+
+ // POP3¥µ¡¼¥Ð¤ËÀܳ
+ if (PEAR::isError($pop3->connect($params['POP_SERVER'], $params['POP_PORT']))) {
+ echo "error: connect()\n";
+ exit;
+ }
+ // POP3¥í¥°¥¤¥ó
+ if (PEAR::isError($pop3->login($params['POP_USER'], $params['POP_PASSWD']))) {
+ echo "error: login()\n";
+ exit;
+ }
+
+ //------------
+ // ¥á¡¼¥ë¼èÆÀ
+ //------------
+
+ // ¥á¡¼¥ë°ìÍ÷¤ò¼èÆÀ
+ $mail_array = $pop3->getListing();
+
+ // Á´·ï¤Î¥á¡¼¥ë¤Ë¤Ä¤¤¤Æ¥ë¡¼¥×
+ foreach ($mail_array as $mail) {
+
+ // ¥Ø¥Ã¥À¤ò´Þ¤á¤¿¥á¡¼¥ëÁ´Ê¸¤ò¼èÆÀ
+ $msg = $pop3->getMsg($mail['msg_id']);
+
+ // 1Ä̤Υ᡼¥ë²òÀÏ
+ $mail_row = ACSPOP3::parse_mail($msg);
+
+ // Ìá¤êÃͤÎÇÛÎó¤Ëpush
+ array_push($mail_row_array, $mail_row);
+
+ // DBÅÐÏ¿¤ËÀ®¸ù¤·¤¿¥á¡¼¥ë¤Ïºï½ü¤¹¤ë
+ if ($do_dele_flag) {
+ $pop3->deleteMsg($mail['msg_id']);
+ }
+ }
+
+ //----------------
+ // POP3¥µ¡¼¥ÐÀÚÃÇ
+ //----------------
+ $pop3->disconnect();
+
+ return $mail_row_array;
+ }
+
+
+ /**
+ * ¥¢¥É¥ì¥¹¤ÎÍåÎ󤫤é̾Á°¤È¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $str ¥á¡¼¥ë¥Ø¥Ã¥À¤Ë´Þ¤Þ¤ì¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÎÍåÎó
+ * @param ¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÎÇÛÎó
+ */
+ static function get_mail_addr_array($str) {
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹¥ê¥¹¥È¤È¤·¤Æparse
+ $mail_addr_obj_array = Mail_RFC822::parseAddressList($str);
+
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò³ÊǼ¤¹¤ëÇÛÎó
+ $mail_addr_array = array();
+ foreach ($mail_addr_obj_array as $mail_addr_obj) {
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $mail_addr = $mail_addr_obj->mailbox . '@' . $mail_addr_obj->host;
+ array_push($mail_addr_array, $mail_addr);
+ }
+
+ return $mail_addr_array;
+ }
+
+
+ /**
+ * 1Ä̤Υ᡼¥ë¤ò²òÀϤ¹¤ë
+ *
+ * @param Net_POP3::getMsg($msg_id)¤Ç¼èÆÀ¤·¤¿¥ª¥Ö¥¸¥§¥¯¥È (1Ä̤Υ᡼¥ë¥Ç¡¼¥¿)
+ * @return Ï¢ÁÛÇÛÎó·Á¼°¤Ç¾ðÊó¤òÊÝ»ý¤·¤¿1Ä̤Υ᡼¥ë
+ */
+ static function parse_mail($msg) {
+ // ¥á¡¼¥ë²òÀÏ·ë²Ì¤ò³ÊǼ¤¹¤ëÏ¢ÁÛÇÛÎó
+ $mail_row = array();
+
+ $params = array();
+ $params['include_bodies'] = true;
+ $params['decode_bodies'] = false;
+ $params['decode_headers'] = false;
+ $params['input'] = $msg;
+
+ // MIME¥Ç¥³¡¼¥É¤µ¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ò¼èÆÀ
+ $mail_obj = Mail_mimeDecode::decode($params);
+
+ // From
+ if (isset($mail_obj->headers['from'])) {
+ $mail_row['from_array'] = ACSPOP3::get_mail_addr_array($mail_obj->headers['from']);
+ }
+ // To
+ if (isset($mail_obj->headers['to'])) {
+ $mail_row['to_array'] = ACSPOP3::get_mail_addr_array($mail_obj->headers['to']);
+ }
+ // Cc
+ if (isset($mail_obj->headers['cc'])) {
+ $mail_row['cc_array'] = ACSPOP3::get_mail_addr_array($mail_obj->headers['cc']);
+ }
+ // ·ï̾(Subject)
+ if (isset($mail_obj->headers['subject'])) {
+ $mail_row['subject'] = mb_decode_mimeheader($mail_obj->headers['subject']);
+ }
+ // ÆüÉÕ(Date)
+ if (isset($mail_obj->headers['date'])) {
+ // ¥í¥±¡¼¥ë¤Ë±è¤Ã¤¿ÆüÉÕ (YYYY/MM/DD HH:MM:SS)
+ $t = strtotime($mail_obj->headers['date']);
+ $mail_row['date'] = strftime('%G/%m/%d %T', $t);
+ }
+
+ // ËÜʸ(Body) (ÆâÉô¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ËÊÑ´¹)
+ if (isset($mail_obj->parts)) {
+ // MIME¥Ñ¡¼¥È¤¬Í¤ë¥á¡¼¥ë
+ foreach ($mail_obj->parts as $index => $parts) {
+ if ($parts->ctype_primary == 'text' && !isset($parts->headers['content-disposition']) && !isset($mail_row['body'])) {
+ // ¥Þ¥ë¥Á¥Ñ¡¼¥ÈÆâ¤ÎËÜʸ
+ $mail_row['body'] = mb_convert_encoding($parts->body, mb_internal_encoding(), 'auto');
+ break;
+ }
+ }
+ } else {
+ // MIME¥Ñ¡¼¥È¤¬Ìµ¤¤¥á¡¼¥ë
+ $mail_row['body'] = mb_convert_encoding($mail_obj->body, mb_internal_encoding(), 'auto');
+ }
+
+ return $mail_row;
+ }
+}
+
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSDB.class.php');
+require_once(ACS_CLASS_DIR . 'ACSCommunityMail.class.php');
+
+define( '_ACSSCHEDULE_ANSWER_COUNT', 7 );
+define( '_ACSSCHEDULE_DEFAULT_ANSWER_CHAR', 'o,v,-,x' );
+define( '_ACSSCHEDULE_DEFAULT_ANSWER_SCORE', '2,1,0,-1' );
+define( '_ACSSCHEDULE_DEFAULT_ANSWER_DEFAULT', 'f,f,t,f' );
+
+/**
+ * ACS ¥¹¥±¥¸¥å¡¼¥ë¥¯¥é¥¹
+ *
+ * @author z-satosi
+ * @version $Revision: 1.3 $
+ */
+class ACSSchedule
+{
+ /* ¥¹¥±¥¸¥å¡¼¥ëID */
+ var $schedule_id;
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $community_id;
+
+ /* ´´»ö¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $user_community_id;
+
+ /* ´´»ö¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾ */
+ var $user_community_name;
+
+ /* ¥¹¥±¥¸¥å¡¼¥ë̾ */
+ var $schedule_name;
+
+ /* ¾ì½ê */
+ var $schedule_place;
+
+ /* ¾ÜºÙ¾ðÊó */
+ var $schedule_detail;
+
+ /* ÂÐ¾Ý */
+ var $schedule_target_kind;
+
+ /* ²óÅúÄùÀÚÆü»þ */
+ var $schedule_closing_datetime;
+
+ /* ¸õÊäÆü»þ */
+ var $_adjustment_dates_array;
+
+ /* ¸õÊäÆü»þ¹¹¿·ÍÑ¥¹¥¿¥Ã¥¯ */
+ var $_adjustment_dates_stack;
+
+ /* ²óÅúÁªÂò»è */
+ var $_answer_selection_array;
+
+ /* ²óÅú¼Ô¥ê¥¹¥È */
+ var $_answer_users_array;
+
+ /* ºîÀ®Æü»þ */
+ var $_entry_datetime;
+
+ /* ¹¹¿·Æü»þ */
+ var $_update_datetime;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param integer $community_id ¥³¥ß¥å¥Ë¥Æ¥£id
+ * @param integer $user_community_id ´ÉÍý¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id
+ * @param integer $schedule_id ¥¹¥±¥¸¥å¡¼¥ëid(̤»ØÄê»þ¤Ï¿·µ¬)
+ */
+ function ACSSchedule ($community_id,$user_community_id,$schedule_id='') {
+ $this->community_id = $community_id;
+ $this->user_community_id = $user_community_id;
+ $this->user_community_name = "";
+ $this->schedule_id = $schedule_id;
+ $this->schedule_target_kind = 'ALL';
+ $this->decide_adjustment_date_id = 0;
+ $this->_adjustment_dates_array = "";
+ $this->_answer_selection_array = "";
+ $this->_answer_users_array = "";
+ $this->_adjustment_dates_stack = array();
+ }
+
+ /**
+ * ½é´ü½èÍý
+ *
+ * @param array $schedule_row ³ºÅö¤Î¥¹¥±¥¸¥å¡¼¥ë¥Æ¡¼¥Ö¥ë¹Ô
+ */
+ function initialize ($schedule_row) {
+ if (is_array($schedule_row)) {
+ $this->user_community_name = $schedule_row['user_community_name'];
+ $this->schedule_name = $schedule_row['schedule_name'];
+ $this->schedule_target_kind = $schedule_row['schedule_target_kind'];
+ $this->schedule_place = $schedule_row['schedule_place'];
+ $this->schedule_detail = $schedule_row['schedule_detail'];
+ $this->schedule_closing_datetime = $schedule_row['schedule_closing_datetime'];
+ $this->decide_adjustment_date_id = $schedule_row['decide_adjustment_date_id'];
+ $this->_entry_datetime = $schedule_row['entry_datetime'];
+ $this->_update_datetime = $schedule_row['update_datetime'];
+ }
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þ¿ô¤Î¼èÆÀ
+ *
+ * @param boolean $contain_deleted ºï½üºÑ¥Ç¡¼¥¿¤â´Þ¤à(̤»ØÄê»þ¤Ïfalse)
+ * @return int ¸õÊäÆü»þ¿ô
+ */
+ function get_adjustment_dates_count ($contain_deleted = FALSE) {
+ return count($this->get_adjustment_dates($contain_deleted));
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þ¤Î¼èÆÀ
+ *
+ * @param boolean $contain_deleted ºï½üºÑ¥Ç¡¼¥¿¤â´Þ¤à(̤»ØÄê»þ¤Ïfalse)
+ * @return array ¸õÊäÆü»þ£²¼¡¸µÇÛÎó([¸õÊäÆü»þid] => array(
+ * 'date_string' => ¸õÊäÆü»þɽ¼¨Ê¸»úÎó
+ * 'delete_flag' => ºï½ü¥Õ¥é¥° 't'=ºï½üºÑ);
+ */
+ function & get_adjustment_dates ($contain_deleted = FALSE) {
+
+ if (!is_array($this->_adjustment_dates_array)) {
+
+ $this->_adjustment_dates_array = array();
+
+ if (!$this->is_new()) {
+ $sql = "SELECT * FROM schedule_adjustment_dates ".
+ "WHERE schedule_id = " .
+ pg_escape_string($this->schedule_id) .
+ "ORDER BY adjustment_date_id";
+
+ $rows = ACSDB::_get_row_array($sql);
+
+ foreach ($rows as $row) {
+ $index = $row['adjustment_date_id'];
+ $this->_adjustment_dates_array[$index] = array(
+ 'date_string' => $row['adjustment_date_string'],
+ 'delete_flag' => $row['adjustment_date_delete_flag']);
+ }
+ }
+ }
+ if ($contain_deleted) {
+ return $this->_adjustment_dates_array;
+ } else {
+ $dates_array = array();
+ foreach ($this->_adjustment_dates_array as $index => $values) {
+ if ($values['delete_flag']=='f') $dates_array[$index] = $values;
+ }
+ reset($this->_adjustment_dates_array);
+ return $dates_array;
+ }
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë²óÅú½é´üÃÍNo¤Î¼èÆÀ
+ *
+ * @return int ²óÅú½é´üÃÍNo
+ */
+ function get_answer_selection_default () {
+ $selection =& $this->get_answer_selection();
+ foreach ($selection as $answer_no => $answer_array) {
+ if ($answer_array['answer_default']=='t') {
+ return $answer_no;
+ }
+ }
+ return '';
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë²óÅúÁªÂò¿ô¤Î¼èÆÀ
+ *
+ * @return int ÁªÂò»è¤Î¿ô
+ */
+ function get_answer_selection_count () {
+ return count($this->get_answer_selection());
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë²óÅúÁªÂò»è¼èÆÀ
+ *
+ * @return array ²óÅúÁªÂò»è¤Î2¼¡¸µÇÛÎó
+ * array( [answer_no] = array(
+ * 'answer_char' => ²óÅúµ¹æ
+ * 'answer_score' => ¥¹¥³¥¢
+ * 'answer_detail' => ²óÅú¤ÎÀâÌÀʸ
+ * 'answer_default' => 't'=½é´üÁªÂòÃÍ ))
+ */
+ function & get_answer_selection () {
+
+ if (!is_array($this->_answer_selection_array)) {
+
+ // ¿·µ¬¤Î¾ì¹ç¤Ï½é´üÃͤòÀßÄê
+ if ($this->is_new()) {
+ $char_array = explode(",",_ACSSCHEDULE_DEFAULT_ANSWER_CHAR);
+ $score_array = explode(",",_ACSSCHEDULE_DEFAULT_ANSWER_SCORE);
+ $default_array = explode(",",_ACSSCHEDULE_DEFAULT_ANSWER_DEFAULT);
+
+ for ($cnt = 1; $cnt <= count($char_array); $cnt++) {
+ $this->_answer_selection_array[$cnt]['answer_char'] =
+ $char_array[$cnt-1];
+ $this->_answer_selection_array[$cnt]['answer_score'] =
+ $score_array[$cnt-1];
+ $this->_answer_selection_array[$cnt]['answer_detail'] = "";
+ $this->_answer_selection_array[$cnt]['answer_default'] =
+ $default_array[$cnt-1];
+ }
+
+ // ´û¸¤Î¾ì¹ç¤ÏÅÐÏ¿¥Ç¡¼¥¿¤òÀßÄê
+ } else {
+ $sql = "SELECT * FROM schedule_answer_selection ".
+ "WHERE schedule_id = " .
+ pg_escape_string($this->schedule_id) .
+ "ORDER BY answer_no";
+
+ $rows = ACSDB::_get_row_array($sql);
+
+ $this->_answer_selection_array = array();
+ foreach ($rows as $row) {
+ $index = $row['answer_no'];
+ $this->_answer_selection_array[$index]['answer_char'] =
+ $row['answer_char'];
+ $this->_answer_selection_array[$index]['answer_score'] =
+ $row['answer_score'];
+ $this->_answer_selection_array[$index]['answer_detail'] =
+ $row['answer_detail'];
+ $this->_answer_selection_array[$index]['answer_default'] =
+ $row['answer_default'];
+ }
+ }
+
+ // ÁªÂò»è¤¬µ¬Äê¿ô¤Ë㤷¤Ê¤¤¾ì¹ç¤Ï¶õ¥Ç¡¼¥¿¤òÀßÄê
+ for ($cnt = count($this->_answer_selection_array)+1;
+ $cnt <= _ACSSCHEDULE_ANSWER_COUNT; $cnt++) {
+ $this->_answer_selection_array[$cnt]['answer_char'] = '';
+ $this->_answer_selection_array[$cnt]['answer_score'] = '';
+ $this->_answer_selection_array[$cnt]['answer_detail'] = '';
+ $this->_answer_selection_array[$cnt]['answer_default'] = 'f';
+ }
+ }
+ return $this->_answer_selection_array;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë²óÅúÁªÂò»èÀßÄê
+ *
+ * @param array $char_array ²óÅúµ¹æÇÛÎó(1origin)
+ * @param array $score_array ¥¹¥³¥¢ÇÛÎó(1origin)
+ * @param array $detail_array ²óÅú¤ÎÀâÌÀʸÇÛÎó(1origin)
+ * @param array $default_no ½é´üÁªÂòÃÍNo(1¡Ámax)
+ */
+ function set_answer_selection_by_arrays (
+ $char_array,$score_array,$detail_array,$default_no) {
+
+ $this->_answer_selection_array = array();
+ for ($cnt = 1;$cnt <= _ACSSCHEDULE_ANSWER_COUNT; $cnt++) {
+ $this->_answer_selection_array[$cnt]['answer_char'] = $char_array[$cnt];
+ $this->_answer_selection_array[$cnt]['answer_score'] = $score_array[$cnt];
+ $this->_answer_selection_array[$cnt]['answer_detail'] = $detail_array[$cnt];
+ $this->_answer_selection_array[$cnt]['answer_default'] =
+ $cnt == $default_no ? 't' : 'f';
+ }
+ }
+
+ /**
+ * ²óÅúÄùÀÚÆü»þ¤ÎÇÛÎó¼èÆÀ
+ *
+ * @return array ÆüÉÕ»þ¹ï¤ÎÇÛÎó
+ * 'year' => ǯ
+ * 'month => ·î
+ * 'day' => Æü
+ * 'hours' => »þ
+ * 'minutes' => ʬ
+ */
+ function get_schedule_closing_datetime_array () {
+ $dt_array = getdate(strtotime($this->schedule_closing_datetime));
+ return array(
+ 'year' => $dt_array['year'],
+ 'month' => $dt_array['mon'],
+ 'day' => $dt_array['mday'],
+ 'hours' => $dt_array['hours'],
+ 'minutes' => $dt_array['minutes'] );
+ }
+
+ /**
+ * ²óÅúÄùÀÚÆü»þ¤ÎÀßÄê(ǯ,·î,Æü,»þ,ʬ¤Î¸ÄÊÌ»ØÄê)
+ *
+ * @param array $ymd_array ǯ,·î,Æü,»þ,ʬ¤Î¸ÄÊÌ»ØÄê¤ÎÇÛÎó
+ * 'year' => ǯ
+ * 'month => ·î
+ * 'day' => Æü
+ * 'hours' => »þ
+ * 'minutes' => ʬ
+ */
+ function set_schedule_closing_datetime_by_array ($ymd_array) {
+ $this->schedule_closing_datetime = sprintf("%04d-%02d-%02d %02d:%02d:00",
+ $ymd_array['year'],
+ $ymd_array['month'],
+ $ymd_array['day'],
+ $ymd_array['hours'],
+ $ymd_array['minutes'] );
+ }
+
+ /**
+ * ¸õÊäÆü»þ¤Îºï½ü»ØÄê
+ *
+ * ¸õÊäÆü»þ¤Îºï½ü»ØÄê¤ò¹Ô¤¤¤Þ¤¹¡£<br>
+ * £Ä£Â¤Ø¤ÎÈ¿±Ç¤Ï update_schedule ¤Ë¤Æ¼Â»Ü¤µ¤ì¤Þ¤¹¡£
+ *
+ * @param string $adjustment_date_id ºï½ü»ØÄꤹ¤ë¸õÊäÆü»þid
+ */
+ function set_schdedule_adjustment_datetime_delete ($adjustment_date_id) {
+
+ $this->_adjustment_dates_stack['delete'][] = $adjustment_date_id;
+ }
+
+ /**
+ * ¸õÊäÆü»þ¤ÎÄɲûØÄê
+ *
+ * ¸õÊäÆü»þ¤ÎÄɲûØÄê¤ò¹Ô¤¤¤Þ¤¹¡£<br>
+ * £Ä£Â¤Ø¤ÎÈ¿±Ç¤Ï update_schedule ¤Ë¤Æ¼Â»Ü¤µ¤ì¤Þ¤¹¡£
+ * Äɲ乤ëʸ»úÎóÃæ¤Ë²þ¹Ôʸ»ú¤¬¤¢¤ë¾ì¹ç¡¢Ê£¿ô¤Î¸õÊäÆü»þ¤È¤·¤ÆÄɲ䵤ì¤Þ¤¹¡£
+ *
+ * @param string $append_adjustment_date_string ÄɲûØÄꤹ¤ë¸õÊäÆü»þʸ»úÎó
+ */
+ function set_schdedule_adjustment_datetime_append ($append_adjustment_date_string) {
+ $append = explode("\n",
+ str_replace("\r\n","\n",$append_adjustment_date_string));
+ if ($this->_adjustment_dates_stack['append'] != null) {
+ $this->_adjustment_dates_stack['append'] =
+ array_merge($this->_adjustment_dates_stack['append'],$append);
+ }
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î·èÄê»þ£Ä£Â¹¹¿·½èÍý
+ *
+ * ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î·èÄê»þ£Ä£Â¹¹¿·¤ò¼Â»Ü¤·¤Þ¤¹¡£<br>
+ * ¹¹¿·¤µ¤ì¤ë¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê<br>
+ * schedule.decide_adjustment_date_id ... 0 -> ·èÄꤷ¤¿¸õÊäÆü»þid<br>
+ * @return boolean TRUE...À®¸ù/FALSE...¼ºÇÔ
+ */
+ function update_decide_schedule ($decide_adjustment_date_id) {
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ $sql = "UPDATE schedule SET decide_adjustment_date_id = ".
+ pg_escape_string($decide_adjustment_date_id) .
+ " WHERE schedule_id = " . pg_escape_string($this->schedule_id);
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ $ret = ACSDB::_do_query("COMMIT");
+
+ $this->decide_adjustment_date_id = $decide_adjustment_date_id;
+
+ return $ret;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î£Ä£Â¹¹¿·
+ *
+ * ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î£Ä£Â¹¹¿·¤ò¼Â»Ü¤·¤Þ¤¹¡£<br>
+ * ¹¹¿·¤µ¤ì¤ë¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê<br>
+ * schedule<br>
+ * schedule_adjustment_dates<br>
+ * schedule_answer_selection<br>
+ * ¸õÊäÆü»þ¤Ï¡¢set_schdedule_adjustment_datetime_append() ¤ª¤è¤Ó <br>
+ * set_schdedule_adjustment_datetime_delete() ¤Ç»ØÄꤵ¤ì¤¿ÆâÍƤ¬È¿±Ç¤µ¤ì¤¢¤Þ¤¹¡£
+ *
+ * @return boolean TRUE...À®¸ù/FALSE...¼ºÇÔ
+ */
+ function update_schedule () {
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ if ($this->is_new()) {
+
+ // ¥¹¥±¥¸¥å¡¼¥ëid¤Î¼èÆÀ
+ $this->schedule_id = ACSDB::get_next_seq('schedule_id_seq');
+
+ $sql = "INSERT INTO schedule (".
+ " schedule_id, ".
+ " community_id, ".
+ " user_community_id, ".
+ " schedule_name, ".
+ " schedule_place, ".
+ " schedule_detail, ".
+ " schedule_closing_datetime, ".
+ " schedule_target_kind, ".
+ " decide_adjustment_date_id ".
+ ") VALUES (" .
+ " ".pg_escape_string($this->schedule_id)."," .
+ " ".pg_escape_string($this->community_id)."," .
+ " ".pg_escape_string($this->user_community_id)."," .
+ " '".pg_escape_string($this->schedule_name)."'," .
+ " '".pg_escape_string($this->schedule_place)."'," .
+ " '".pg_escape_string($this->schedule_detail)."'," .
+ " '".$this->schedule_closing_datetime."'," .
+ " '".pg_escape_string($this->schedule_target_kind)."'," .
+ " ".pg_escape_string($this->decide_adjustment_date_id)." " .
+ ")";
+ // Update
+ } else {
+
+ $sql = "UPDATE schedule SET ".
+ " schedule_name ".
+ "= '".pg_escape_string($this->schedule_name)."'," .
+ " schedule_place ".
+ "= '".pg_escape_string($this->schedule_place)."'," .
+ " schedule_detail ".
+ "= '".pg_escape_string($this->schedule_detail)."'," .
+ " schedule_closing_datetime ".
+ "= '".$this->schedule_closing_datetime."'," .
+ " schedule_target_kind ".
+ "= '".pg_escape_string($this->schedule_target_kind)."', " .
+ " update_datetime = CURRENT_TIMESTAMP " .
+ "WHERE schedule_id ".
+ "= ".pg_escape_string($this->schedule_id) .
+ " AND user_community_id ".
+ "= ".pg_escape_string($this->user_community_id) ;
+ }
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¸õÊäÆü»þ¤ÎÅÐÏ¿(ºï½ü)
+ if (is_array($this->_adjustment_dates_stack['delete'])) {
+ $sql = "UPDATE schedule_adjustment_dates ".
+ "SET adjustment_date_delete_flag = TRUE ";
+ $where = "";
+ foreach ($this->_adjustment_dates_stack['delete'] as $delete_dates) {
+ $where .= ($where != "" ? "," : "").$delete_dates;
+ }
+ $sql .= "WHERE schedule_id = ".pg_escape_string($this->schedule_id) .
+ " AND adjustment_date_id IN (" . $where . ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ // ¸õÊäÆü»þ¤ÎÅÐÏ¿(ÄɲÃ)
+ if (is_array($this->_adjustment_dates_stack['append'])) {
+
+ foreach ($this->_adjustment_dates_stack['append'] as $append_str) {
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þid¤Î¼èÆÀ
+ $seq = ACSDB::get_next_seq('adjustment_date_id_seq');
+
+ $sql = "INSERT INTO schedule_adjustment_dates " .
+ "(schedule_id, adjustment_date_id, adjustment_date_string" .
+ ") VALUES (".
+ "".pg_escape_string($this->schedule_id)."," .
+ "".$seq."," .
+ "'".pg_escape_string($append_str)."')";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // ÁªÂò»è¤ÎÅÐÏ¿(Delete&Insert)
+ if (is_array($this->_answer_selection_array)) {
+
+ // °ìöDelete
+ $sql = "DELETE FROM schedule_answer_selection ".
+ "WHERE schedule_id ".
+ "= ".pg_escape_string($this->schedule_id);
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¤¹¤Ù¤ÆInsert
+ foreach ($this->_answer_selection_array as $answer_no => $selection) {
+
+ ACSLib::escape_sql_array($selection);
+
+ if ($selection['answer_score'] == '') {
+ $selection['answer_score'] = "null";
+ }
+
+ $sql = "INSERT INTO schedule_answer_selection ( ".
+ " schedule_id,answer_no,answer_char,".
+ " answer_score, answer_detail, answer_default ".
+ ") VALUES (".
+ " ".pg_escape_string($this->schedule_id).", ".
+ " ".pg_escape_string($answer_no).", ".
+ "'".$selection['answer_char']."', ".
+ "".$selection['answer_score'].", ".
+ "'".$selection['answer_detail']."', ".
+ "'".$selection['answer_default']."') ";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // COMMIT
+ $ret = ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ëÄ´À°·èÄêÄÌÃÎÄ귿ʸ¼èÆÀ
+ *
+ * @return true / false
+ */
+ function get_decision_mail_message ($lang, $decide_adjustment_date_id) {
+ $current_lang = ACSMsg::get_lang();
+ ACSMsg::set_lang($lang);
+ $msg = ACSMsg::get_serial_msg('lib',basename(__FILE__),'DEC%03d');
+
+ // ¥·¥¹¥Æ¥àURL
+ $system_group = ACSMsg::get_mst('system_config_group','D01');
+ $system_base_url = ACSSystemConfig::get_keyword_value(
+ $system_group, 'SYSTEM_BASE_URL');
+ $system_base_login_url = ACSSystemConfig::get_keyword_value(
+ $system_group, 'SYSTEM_BASE_LOGIN_URL');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $community_row =& ACSCommunity::get_community_row($this->community_id);
+
+ // ·èÄêÆü
+ $adjustment_dates_list = $this->get_adjustment_dates();
+
+ // ²óÅú¾õ¶·
+ $person_count_array =& ACSSchedule::get_total_person_count(
+ $this->community_id, $this->schedule_id);
+ $person_count = $person_count_array[$this->schedule_id];
+
+ // Âоݤ¬Á´°÷¤Î¾ì¹ç¤Ï»²²Ã¿Í¿ô¤ò¥á¥ó¥Ð¿ô¤Ë½¤Àµ
+ if ($this->is_target_all()) {
+ $person_count['participate_person_count'] =
+ ACSCommunity::get_community_member_count($this->community_id);
+ }
+
+ // ¥¹¥±¥¸¥å¡¼¥ë£Õ£Ò£Ì
+ $schedule_url = $system_base_login_url . SCRIPT_PATH .
+ "?" . MODULE_ACCESSOR . "=Community" .
+ "&" . ACTION_ACCESSOR . "=AnswerSchedule" .
+ "&community_id=" . $this->community_id .
+ "&schedule_id=" . $this->schedule_id;
+
+ $user_community_row =& ACSUser::get_user_profile_row($this->user_community_id);
+
+ $msg = ACSMsg::get_tag_replace($msg, array(
+ '{SYSTEM_BASE_URL}' => $system_base_url,
+ '{COMMUNITY_ID}' => $this->community_id,
+ '{COMMUNITY_NAME}' => $community_row['community_name'],
+ '{USER_NAME}' => $user_community_row['user_name'],
+ '{USER_COMMUNITY_NAME}' => $user_community_row['community_name'],
+ '{SCHEDULE_NAME}' => $this->schedule_name,
+ '{SCHEDULE_DETAIL}' => $this->schedule_detail,
+ '{SCHEDULE_CLOSING_DATETIME}' =>
+ ACSLib::convert_pg_date_to_str($this->schedule_closing_datetime),
+ '{SCHEDULE_ANSWER_COUNT}' =>
+ $person_count['answer_person_count'],
+ '{SCHEDULE_PARTICIPATE_COUNT}' =>
+ $person_count['participate_person_count'],
+ '{SCHEDULE_DECISION_DATE}' =>
+ $adjustment_dates_list[$decide_adjustment_date_id]['date_string'],
+ '{ANSWER_SCHEDULE_URL}' => $schedule_url
+ ));
+
+ ACSMsg::set_lang($current_lang);
+
+ return $msg;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ëÄ´À°·èÄêÄÌÃηï̾¼èÆÀ
+ *
+ * @return true / false
+ */
+ function get_decision_mail_subject ($lang) {
+ $current_lang = ACSMsg::get_lang();
+ ACSMsg::set_lang($lang);
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M001');
+
+ $subject = ACSMsg::get_tag_replace($subject, array(
+ '{SUBJECT_NAME}' => $this->schedule_name
+ ));
+
+ ACSMsg::set_lang($current_lang);
+
+ return $subject;
+ }
+
+ /**
+ * Âоݤ¬Á´°÷¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @param string $community_id ³ºÅö¤Î¥³¥ß¥å¥Ë¥Æ¥£id
+ * @return boolean TRUE...Âоݤ¬Á´°÷/FALSE...Âоݤϼ«Í³»²²Ã
+ */
+ function is_target_all () {
+ return ($this->schedule_target_kind == 'ALL' ? TRUE : FALSE);
+ }
+
+ /**
+ * ¤³¤Î¥¹¥±¥¸¥å¡¼¥ë¤Î´´»ö¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @param string $user_info_row ¥æ¡¼¥¶¾ðÊó
+ * @return boolean TRUE...´´»ö/FALSE...´´»ö¤Ç¤Ê¤¤
+ */
+ function is_organizer ($user_info_row) {
+ return ($user_info_row['user_community_id']
+ == $this->user_community_id ? TRUE : FALSE);
+ }
+
+ /**
+ * ·èÄêºÑ¥¹¥±¥¸¥å¡¼¥ë¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @return boolean TRUE...·èÄêºÑ/FALSE...̤·èÄê
+ */
+ function is_fixed () {
+ return ($this->decide_adjustment_date_id > 0 ? TRUE : FALSE);
+ }
+
+ /**
+ * ÄùÀÚ¤ò²á¤®¤Æ¤¤¤ë¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @return boolean TRUE...ÄùÀÚ/FALSE...ÄùÀڤǤʤ¤
+ */
+ function is_close () {
+ $close_tm = strtotime($this->schedule_closing_datetime);
+ return (time() > strtotime($this->schedule_closing_datetime) ?
+ TRUE : FALSE);
+ }
+
+ /**
+ * ¿·µ¬¥¹¥±¥¸¥å¡¼¥ëÍÑ¥¤¥ó¥¹¥¿¥ó¥¹¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @return boolean TRUE...¿·µ¬/FALSE...´û¸
+ */
+ function is_new () {
+ return ($this->schedule_id == "" ? TRUE : FALSE);
+ }
+
+ /****************************
+ * ¥¹¥¿¥Æ¥£¥Ã¥¯¥Õ¥¡¥ó¥¯¥·¥ç¥ó
+ ****************************/
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ *
+ * @param string $community_id ³ºÅö¤Î¥³¥ß¥å¥Ë¥Æ¥£id
+ * @param string $schedule_id ³ºÅö¤Î¥¹¥±¥¸¥å¡¼¥ëid
+ * @return object ACSSchedule¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ function & get_schedule_instance ($community_id, $schedule_id) {
+
+ $sql = "SELECT SCH.*, COM.community_name AS user_community_name " .
+ " FROM schedule AS SCH LEFT JOIN community AS COM " .
+ " ON SCH.user_community_id = COM.community_id " .
+ " WHERE SCH.community_id = " .
+ pg_escape_string($community_id) .
+ " AND SCH.schedule_id = " .
+ pg_escape_string($schedule_id);
+
+ $row = ACSDB::_get_row($sql);
+
+ $schedule = new ACSSchedule(
+ $community_id,$row['user_community_id'],$schedule_id);
+ $schedule->initialize($row);
+
+ return $schedule;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë°ìÍ÷¥¤¥ó¥¹¥¿¥ó¥¹À¸À®(Á´¥¹¥±¥¸¥å¡¼¥ëÂоÝ)
+ *
+ * @param string $additional_where Äɲþò·ï(̤»ØÄê¤â²Ä)
+ * @return array ACSSchedule¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÇÛÎó
+ */
+ function & get_schedule_instance_list ($additional_where='') {
+
+ $sql = "SELECT * FROM ( " .
+ "SELECT SCH.*, COM.community_name AS user_community_name " .
+ " FROM schedule AS SCH LEFT JOIN community AS COM " .
+ " ON SCH.user_community_id = COM.community_id " .
+ ") AS SUBQ ";
+
+ if ($additional_where != '') {
+ $sql .=" WHERE " . $additional_where ;
+ }
+
+ $sql .=" ORDER BY schedule_id desc";
+
+ $rows = ACSDB::_get_row_array($sql);
+
+ $schedule_array = array();
+
+ foreach ($rows as $row) {
+ $schedule =& new ACSSchedule(
+ $row['community_id'],$row['user_community_id'],$row['schedule_id']);
+ $schedule->initialize($row);
+ $schedule_array[] = $schedule;
+ }
+
+ return $schedule_array;
+ }
+
+ /**
+ * »ØÄꥳ¥ß¥å¥Ë¥Æ¥£¥¹¥±¥¸¥å¡¼¥ë°ìÍ÷¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ *
+ * @param string $community_id ³ºÅö¤Î¥³¥ß¥å¥Ë¥Æ¥£id
+ * @return array ACSSchedule¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÇÛÎó
+ */
+ function & get_community_schedule_instance_list ($community_id) {
+ return ACSSchedule::get_schedule_instance_list(
+ "community_id = ". pg_escape_string($community_id));
+ }
+
+ /**
+ * ÄùÀÚÆü»þ»ØÄꥹ¥±¥¸¥å¡¼¥ë°ìÍ÷¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ *
+ * @param string $datetime_from Èϰϳ«»ÏÆü»þ
+ * @param string $datetime_to ÈϰϽªÎ»Æü»þ
+ * @return array ACSSchedule¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÇÛÎó
+ */
+ function & get_schedule_instance_list_by_closing_datetime (
+ $datetime_from, $datetime_to) {
+ $where = "schedule_closing_datetime >= " .
+ "'" . ACSLib::convert_timestamp_to_pg_date($datetime_from) . "'" .
+ " AND schedule_closing_datetime <= " .
+ "'" . ACSLib::convert_timestamp_to_pg_date($datetime_to) . "'";
+
+ return ACSSchedule::get_schedule_instance_list($where);
+ }
+
+ /**
+ * ³Æ¥¹¥±¥¸¥å¡¼¥ë¤Î»²²Ã¡¢²óÅú¿Í¿ô¤Î¼èÆÀ
+ *
+ * FREE¤Ç¤Î¿Í¿ô¾ðÊó¤È¤Ê¤ê¤Þ¤¹¡£<br>
+ * ALL¤ÏÊÌÅÓ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã¼Ô¿ô¤ò¼èÆÀ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
+ *
+ * @param string $community_id ¥³¥ß¥å¥Ë¥Æ¥£id(̤»ØÄê¤â²Ä)
+ * @param string $schedule_id ¥¹¥±¥¸¥å¡¼¥ëid(̤»ØÄê¤â²Ä)
+ * @return array »²²Ã²óÅú¿Í¿ôÇÛÎó
+ * array([schedule_id]=> array(
+ * 'participate_person_count' => [»²²Ã¿Í¿ô]
+ * 'answer_person_count' => [²óÅú¿Í¿ô] ))
+ */
+ function & get_total_person_count ($community_id='',$schedule_id='') {
+
+ $where = '';
+ if ($community_id != '') {
+ $where .= ($where == '' ? '' : ' AND ');
+ $where .= 'SCH.community_id = ' . pg_escape_string($community_id);
+ }
+ if ($schedule_id != '') {
+ $where .= ($where == '' ? '' : ' AND ');
+ $where .= 'SCH.schedule_id = ' . pg_escape_string($schedule_id);
+ }
+ $where = $where == '' ? '' : 'WHERE '.$where;
+
+ $sql = "SELECT ".
+ " SCH.schedule_id, ".
+ " PAT.cnt AS participate_person_count, ".
+ " ANS.cnt AS answer_person_count ".
+ "FROM ".
+ "( ".
+ " schedule AS SCH LEFT JOIN ".
+ " ( ".
+ " SELECT schedule_id, COUNT(*) AS cnt FROM schedule_participant ".
+ " WHERE participant_delete_flag = FALSE GROUP BY schedule_id ".
+ " ) AS PAT ".
+ " ON SCH.schedule_id = PAT.schedule_id ".
+ ") ".
+ "LEFT JOIN ".
+ "( ".
+ " SELECT schedule_id, COUNT(*) AS cnt FROM ".
+ " ( ".
+ " SELECT DISTINCT schedule_id, user_community_id " .
+ " FROM schedule_answer ".
+ " ) AS SBUQ ".
+ " GROUP BY schedule_id ".
+ ") AS ANS ".
+ "ON SCH.schedule_id = ANS.schedule_id ".
+ " " . $where . " ".
+ "ORDER BY SCH.schedule_id ";
+
+ $rows = ACSDB::_get_row_array($sql);
+
+ $persons_count_array = array();
+ foreach ($rows as $row) {
+ $persons_count_array[$row['schedule_id']] = array(
+ 'participate_person_count' =>
+ $row['participate_person_count']=='' ?
+ 0 : $row['participate_person_count'],
+ 'answer_person_count' =>
+ $row['answer_person_count']=='' ?
+ 0 : $row['answer_person_count']);
+ }
+
+ return $persons_count_array;
+ }
+}
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSDB.class.php');
+
+/**
+ * ACS ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¼Ô¥¯¥é¥¹
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+class ACSScheduleParticipant
+{
+ /* ¥¹¥±¥¸¥å¡¼¥ëID */
+ var $schedule_id;
+
+ /* »²²Ã¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID */
+ var $user_community_id;
+
+ /* »²²Ã¼Ô¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£Ì¾¡Ê¥Ë¥Ã¥¯¥Í¡¼¥à¡Ë */
+ var $user_community_name;
+
+ /* »²²Ã¥³¥á¥ó¥È */
+ var $participant_comment;
+
+ /* ºï½ü¥Õ¥é¥° */
+ var $participant_delete_flag;
+
+ /* £Ä£ÂÅÐÏ¿¾õÂÖ */
+ var $_is_new;
+
+ /* ²óÅúÇÛÎó array( [adjustment_date_id] => [answer_no] ) */
+ var $_schedule_answer_array;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param integer $schedule_id ¥¹¥±¥¸¥å¡¼¥ëid
+ * @param integer $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id
+ */
+ function ACSScheduleParticipant ($schedule_id,$user_community_id) {
+ $this->schedule_id = $schedule_id;
+ $this->user_community_id = $user_community_id;
+ $this->participant_delete_flag = "f";
+ $this->_schedule_answer_array = array();
+ $this->_is_new = 't';
+ }
+
+ /**
+ * ½é´ü½èÍý
+ *
+ * @param array $schedule_participant_row ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¤Î¥Æ¡¼¥Ö¥ë¹Ô
+ * @param array $schedule_answer_rows ¥¹¥±¥¸¥å¡¼¥ë²óÅú¤Î¥Æ¡¼¥Ö¥ë¹ÔÇÛÎó
+ */
+ function initialize (&$schedule_participant_row,&$schedule_answer_rows) {
+ if (is_array($schedule_participant_row)) {
+ $this->participant_comment =
+ $schedule_participant_row['participant_comment'];
+ $this->participant_delete_flag =
+ $schedule_participant_row['participant_delete_flag'] == '' ?
+ 'f' : $schedule_participant_row['participant_delete_flag'];
+ $this->user_community_name =
+ $schedule_participant_row['user_community_name'];
+ $this->_is_new = 'f';
+ }
+ $this->_schedule_answer_array = array();
+ if (is_array($schedule_answer_rows)) {
+ foreach ($schedule_answer_rows as $answer_row) {
+ $this->_schedule_answer_array[$answer_row['adjustment_date_id']]
+ = $answer_row['answer_no'];
+ }
+ reset($schedule_answer_rows);
+ }
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¾ðÊó¤Î£Ä£Â¹¹¿·
+ *
+ * ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¾ðÊó¤Î£Ä£Â¹¹¿·¤ò¼Â»Ü¤·¤Þ¤¹¡£<br>
+ * ¹¹¿·¤µ¤ì¤ë¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê<br>
+ * schedule_paticipant<br>
+ * schedule_answer<br>
+ *
+ * @param boolean $is_participant_only »²²ÃÅÐÏ¿¤Î¤ß¤Î¾ì¹çTRUE(̤»ØÄê»þ¤ÏFALSE)
+ */
+ function update_participant($is_participant_only=FALSE) {
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ if ($this->is_new()) {
+
+ $sql = "INSERT INTO schedule_participant (".
+ " schedule_id, ".
+ " user_community_id, ".
+ " participant_comment, ".
+ " participant_delete_flag ".
+ ") VALUES (" .
+ " ".pg_escape_string($this->schedule_id)."," .
+ " ".pg_escape_string($this->user_community_id)."," .
+ " '".pg_escape_string($this->participant_comment)."'," .
+ " '".pg_escape_string($this->participant_delete_flag)."' " .
+ ")";
+
+
+ // Update
+ } else {
+ $sql = "UPDATE schedule_participant SET ".
+ " participant_comment = ".
+ " '".pg_escape_string($this->participant_comment)."'," .
+ " participant_delete_flag = ".
+ " '".pg_escape_string($this->participant_delete_flag)."' " .
+ "WHERE schedule_id ".
+ "= ".pg_escape_string($this->schedule_id) .
+ " AND user_community_id ".
+ "= ".pg_escape_string($this->user_community_id) ;
+ }
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ $this->_is_new = 'f';
+
+ // ²óÅú(schedule_answer)¤ÎÅÐÏ¿(Delete/Insert)
+ if ($is_participant_only === FALSE) {
+
+ // °ìöDelete
+ $sql = "DELETE FROM schedule_answer ".
+ "WHERE schedule_id ".
+ "= ".pg_escape_string($this->schedule_id) .
+ " AND user_community_id ".
+ "= ".pg_escape_string($this->user_community_id) ;
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¤¹¤Ù¤ÆInsert
+ foreach ($this->_schedule_answer_array as $adjustment_date_id => $answer_no) {
+
+ $sql = "INSERT INTO schedule_answer ( ".
+ " schedule_id, ".
+ " user_community_id, ".
+ " adjustment_date_id, ".
+ " answer_no ".
+ ") VALUES (".
+ " ".pg_escape_string($this->schedule_id)."," .
+ " ".pg_escape_string($this->user_community_id)."," .
+ " ".pg_escape_string($adjustment_date_id)."," .
+ " ".pg_escape_string($answer_no)." " .
+ ")";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // COMMIT
+ $ret = ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * »ØÄê¸õÊäÆü»þ¤Î²óÅú¤òÀßÄê
+ *
+ * @param array $answers_array ²óÅú¾ðÊóÇÛÎó array([adjustment_date_id]=>[answer_no])
+ */
+ function set_answer ($answers_array) {
+ if (is_array($answers_array)) {
+ foreach ($answers_array as $adjustment_date_id => $answer_no) {
+ $this->_schedule_answer_array[$adjustment_date_id] = $answer_no;
+ }
+ }
+ }
+
+ /**
+ * »ØÄê¸õÊäÆü»þ¤Î²óÅú¤ò¼èÆÀ
+ *
+ * @param integer $adjustment_date_id ¸õÊäÆü»þid
+ * @return integer ²óÅúNo(answer_no)
+ */
+ function & get_answer ($adjustment_date_id) {
+ return $this->_schedule_answer_array[$adjustment_date_id];
+ }
+
+ /**
+ * »²²Ã¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * @return boolean TRUE...»²²Ã/FALSE...ÉÔ»²²Ã
+ */
+ function is_participate () {
+ return ((!$this->is_new() && $this->participant_delete_flag == 'f') ? TRUE : FALSE);
+ }
+
+ /**
+ * ¿·µ¬¥¤¥ó¥¹¥¿¥ó¥¹¤«¤É¤¦¤«¤ÎȽÄê
+ *
+ * ¿·µ¬¤Ç¤Ê¤¤¥±¡¼¥¹<br>
+ * ¡¦initialize½èÍý»þ¤Ë»²²Ã¾ðÊó¤¬Â¸ºß¤·¤¿¾ì¹ç<br>
+ * ¡¦update_participant¤ò¼Â¹Ô¤·¤¿¾ì¹ç
+ *
+ * @return boolean TRUE...¿·µ¬/FALSE...¹¹¿·
+ */
+ function is_new () {
+ return $this->_is_new == 'f' ? FALSE : TRUE;
+ }
+
+ /****************************
+ * ¥¹¥¿¥Æ¥£¥Ã¥¯¥Õ¥¡¥ó¥¯¥·¥ç¥ó
+ ****************************/
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ *
+ * @param string $schedule_id ³ºÅö¤Î¥¹¥±¥¸¥å¡¼¥ëid
+ * @param string $user_community_id ³ºÅö¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£id
+ * @return object ACSScheduleParticipant¥ª¥Ö¥¸¥§¥¯¥È
+ */
+ function & get_schedule_participant_instance ($schedule_id,$user_community_id) {
+
+ $sql = "SELECT pa.*, cm.community_name AS user_community_name " .
+ "FROM schedule_participant AS pa " .
+ "LEFT JOIN community AS cm " .
+ " ON pa.user_community_id = cm.community_id " .
+ "WHERE pa.schedule_id = " . pg_escape_string($schedule_id) .
+ " AND pa.user_community_id = " . pg_escape_string($user_community_id);
+
+ $participant_row = ACSDB::_get_row($sql);
+
+ $sql = "SELECT * FROM schedule_answer " .
+ "WHERE schedule_id = " . pg_escape_string($schedule_id) .
+ " AND user_community_id = " . pg_escape_string($user_community_id) .
+ " ORDER BY adjustment_date_id";
+
+ $answer_rows = ACSDB::_get_row_array($sql);
+
+ $schedule_participant =&
+ new ACSScheduleParticipant($schedule_id,$user_community_id);
+ $schedule_participant->initialize($participant_row,$answer_rows);
+
+ return $schedule_participant;
+ }
+
+ /**
+ * ¥¹¥±¥¸¥å¡¼¥ë°ìÍ÷¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ *
+ * Ìá¤êÃͤϡ¢array([user_community_id] => ACSScheduleParticipant¥¤¥ó¥¹¥¿¥ó¥¹)
+ *
+ * @param string $schedule_id ³ºÅö¤Î¥¹¥±¥¸¥å¡¼¥ëid
+ * @param boolean $is_target_kind_all Á´°÷»²²Ã¥â¡¼¥É¤Ç¼èÆÀ¤¹¤ë¤«¤É¤¦¤«
+ * @return array ACSScheduleParticipant¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÇÛÎó
+ */
+ function & get_schedule_participant_instance_list ($schedule_id,$is_target_kind_all) {
+
+ if ($is_target_kind_all) {
+ $sql = "SELECT " .
+ " sc.schedule_id, " .
+ " mmb.user_community_id, " .
+ " pa.participant_comment, ".
+ " pa.participant_delete_flag, ".
+ " cmm.community_name AS user_community_name " .
+ "FROM (((schedule AS sc " .
+ "LEFT JOIN community AS cm ".
+ " ON sc.community_id = cm.community_id) " .
+ "LEFT JOIN community_member AS mmb ".
+ " ON sc.community_id = mmb.community_id) " .
+ "LEFT JOIN community AS cmm ".
+ " ON mmb.user_community_id = cmm.community_id) " .
+ "LEFT JOIN schedule_participant AS pa ".
+ " ON sc.schedule_id = pa.schedule_id " .
+ " AND mmb.user_community_id = pa.user_community_id ".
+ "WHERE sc.schedule_id = " . pg_escape_string($schedule_id) .
+ " AND cmm.delete_flag != 't'";
+ " ORDER BY mmb.user_community_id ";
+ } else {
+ $sql = "SELECT ".
+ " pa.schedule_id, ".
+ " pa.user_community_id, ".
+ " pa.participant_comment, ".
+ " pa.participant_delete_flag, ".
+ " cm.community_name AS user_community_name " .
+ "FROM schedule_participant AS pa " .
+ "LEFT JOIN community AS cm " .
+ " ON pa.user_community_id = cm.community_id " .
+ "WHERE pa.schedule_id = " . pg_escape_string($schedule_id) .
+ " AND pa.participant_delete_flag = FALSE " .
+ " AND cm.delete_flag != 't'";
+ " ORDER BY pa.user_community_id ";
+ }
+
+ $participant_rows = ACSDB::_get_row_array($sql);
+
+ $sql = "SELECT * FROM schedule_answer " .
+ "WHERE schedule_id = " . pg_escape_string($schedule_id) .
+ " ORDER BY user_community_id, adjustment_date_id";
+
+ $answer_res = ACSDB::_get_res($sql);
+ $answer_all_rows = array();
+ while ($row = $answer_res->fetchRow(DB_FETCHMODE_ASSOC)) {
+ $answer_all_rows[$row['user_community_id']][] = $row;
+ }
+ $answer_res->free();
+
+ $schedule_participant_array = array();
+ foreach ($participant_rows as $participant_row) {
+ $user_community_id = $participant_row['user_community_id'];
+ $schedule_participant =&
+ new ACSScheduleParticipant($schedule_id,$user_community_id);
+ $schedule_participant->initialize(
+ $participant_row,$answer_all_rows[$user_community_id]);
+ $schedule_participant_array[$user_community_id] = $schedule_participant;
+ }
+ return $schedule_participant_array;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSSystem.class.php,v 2.0 2009/06/24 16:30:00 acs Exp $
+
+
+/*
+ * System¥¯¥é¥¹
+ */
+class ACSSystem {
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤ò¹¹¿·¤¹¤ë
+ *
+ * @param $new_user_id ¿·µ¬¥æ¡¼¥¶ID
+ * @param $new_passwd ¿·µ¬¥Ñ¥¹¥ï¡¼¥É
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function update_passwd($new_user_id, $new_passwd) {
+ $ret = 1;
+ $entry_array = array(); // ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥êÊÝ»ýÇÛÎó
+
+ if (!is_writable(ACS_PASSWD_FILE)) {
+ return 0;
+ }
+
+ // ¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $data_arr = file(ACS_PASSWD_FILE);
+ foreach ($data_arr as $line) {
+ list($user_id, $passwd) = explode(':', trim($line));
+ // ¥æ¡¼¥¶¾ðÊó(user_info)¤¬Â¸ºß¤¹¤ë¥æ¡¼¥¶ID¤Î¤ßÊݸÂоݤȤ¹¤ë
+ if (ACSUser::get_user_info_row_by_user_id($user_id)) {
+ $entry_array[$user_id] = $passwd;
+ }
+ }
+
+ // ¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É
+ if ($new_passwd != '') {
+ $new_passwd = crypt($new_passwd);
+ }
+ $entry_array[$new_user_id] = $new_passwd;
+
+ // ¥Õ¥¡¥¤¥ë¥ª¡¼¥×¥ó
+ if (($fp = fopen(ACS_PASSWD_FILE, 'w')) === false) {
+ return 0;
+ }
+ flock($fp, LOCK_EX);
+
+ foreach ($entry_array as $user_id => $passwd) {
+ // ¶õ¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï½üµî
+ if ($passwd != '') {
+ fwrite($fp, "$user_id:$passwd\n");
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¯¥í¡¼¥º
+ fclose($fp);
+ return $ret;
+ }
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤«¤é»ØÄê¤Î¥æ¡¼¥¶ID¤Î¥¨¥ó¥È¥ê¤òºï½ü¤¹¤ë
+ *
+ * @param $delete_user_id ºï½ü¤¹¤ë¥æ¡¼¥¶ID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function delete_passwd($delete_user_id) {
+ $ret = 1;
+ $entry_array = array(); // ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥êÊÝ»ýÇÛÎó
+
+ if (!is_writable(ACS_PASSWD_FILE)) {
+ return 0;
+ }
+
+ // ¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $data_arr = file(ACS_PASSWD_FILE);
+ foreach ($data_arr as $line) {
+ list($user_id, $passwd) = explode(':', trim($line));
+ // ºï½ü¤¹¤ë¥æ¡¼¥¶ID¤Ï¥¹¥¥Ã¥×
+ if ($user_id == $delete_user_id) {
+ continue;
+ }
+ // ¥æ¡¼¥¶¾ðÊó(user_info)¤¬Â¸ºß¤¹¤ë¥æ¡¼¥¶ID¤Î¤ßÊݸÂоݤȤ¹¤ë
+ if (ACSUser::get_user_info_row_by_user_id($user_id)) {
+ $entry_array[$user_id] = $passwd;
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥ª¡¼¥×¥ó
+ if (($fp = fopen(ACS_PASSWD_FILE, 'w')) === false) {
+ return 0;
+ }
+ flock($fp, LOCK_EX);
+
+ foreach ($entry_array as $user_id => $passwd) {
+ // ¶õ¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï½üµî
+ if ($passwd != '') {
+ fwrite($fp, "$user_id:$passwd\n");
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¯¥í¡¼¥º
+ fclose($fp);
+ return $ret;
+ }
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë(.htpasswd)¤Ë¸ºß¤¹¤ë¥æ¡¼¥¶ID¤«¤É¤¦¤«
+ *
+ * @param $target_user_id ÂоݤΥ桼¥¶ID
+ * @return ¸ºß¤¹¤ë(true) / ¸ºß¤·¤Ê¤¤(false)
+ */
+ function is_htpasswd_user($target_user_id) {
+
+ $ret = false;
+
+ // ¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $data_arr = file(ACS_PASSWD_FILE);
+ foreach ($data_arr as $line) {
+ list($user_id, $passwd) = explode(':', trim($line));
+ if ($user_id != '' && $target_user_id == $user_id) {
+ $ret = true;
+ break;
+ }
+ }
+
+ return $ret;
+ }
+
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ëǧ¾Ú
+ *
+ * @param $input_user_id ÆþÎϥ桼¥¶ID
+ * @param $input_passwd ÆþÎϥѥ¹¥ï¡¼¥É
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function check_passwd_by_htpasswd($input_user_id, $input_passwd) {
+
+ // ¥¨¥¹¥±¡¼¥×½èÍý
+ $filepassword = "";
+
+ // ¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $data_arr = file(ACS_PASSWD_FILE);
+ foreach ($data_arr as $line) {
+
+ list($user_id, $passwd) = explode(':', trim($line));
+
+ // ¥æ¡¼¥¶¾ðÊó(user_info)¤¬Â¸ºß¤¹¤ë¥æ¡¼¥¶ID¤Î¤ßÊݸÂоݤȤ¹¤ë
+ if ($input_user_id == $user_id) {
+
+ if(crypt($input_passwd, $passwd) == $passwd){
+ // OK¢ª¥Þ¥¤¥Ú¡¼¥¸¤Ø
+ return 0;
+ }
+
+ // °Å¹æ·Á¼°¤ÎÈæ³Ó
+ if (ACSSystem::verify_passwd_by_hash($input_passwd, $passwd) == 0) {
+ return 0;
+ }
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * °Å¹æ²½ºÑ¤ß¥Ñ¥¹¥ï¡¼¥É¤òǧ¾Ú¤¹¤ë(À©¸æ)
+ *
+ * @param $input_passwd ÆþÎϥѥ¹¥ï¡¼¥É
+ * @param $get_hash ¥Ï¥Ã¥·¥å
+ * @return ǧ¾ÚÀ®¸ù(true) / ǧ¾Ú¼ºÇÔ(false)
+ */
+ function verify_passwd_by_hash($input_passwd, $get_hash) {
+
+ // SSHA·Á¼°¤ÎÈæ³Ó
+ if (ACSSystem::verify_passwd_by_ssha($input_passwd, $get_hash) == 0) {
+ return 0;
+ }
+
+ // SHA·Á¼°¤ÎÈæ³Ó
+ if (ACSSystem::verify_passwd_by_sha($input_passwd, $get_hash) == 0) {
+ return 0;
+ }
+
+ return -1;
+
+ }
+
+ /**
+ * °Å¹æ²½ºÑ¤ß¥Ñ¥¹¥ï¡¼¥É¤òǧ¾Ú¤¹¤ë(SSHA)
+ *
+ * @param $input_passwd ÆþÎϥѥ¹¥ï¡¼¥É
+ * @param $ssha_hash ¥Ï¥Ã¥·¥å(SSHA)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function verify_passwd_by_ssha($input_passwd, $ssha_hash) {
+
+ // Verify SSHA hash
+ $rep_hash = ereg_replace("{SSHA}", "", $ssha_hash);
+
+ // base64_encode
+ $ohash = base64_decode($rep_hash);
+ $osalt = substr($ohash, 20);
+ $ohash = substr($ohash, 0, 20);
+
+ // PHP¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤êʬ´ô
+ if(function_exists('sha1')) {
+ $nhash = pack("H*", sha1($input_passwd . $osalt));
+ } else if(function_exists('mHash')) {
+ $nhash = mHash(MHASH_SHA1, $input_passwd . $osalt);
+ } else {
+ return -1;
+ }
+
+ // ¥Ï¥Ã¥·¥åƱ»Î¤¬¹çÃפ¹¤ë¤«
+ if ($ohash == $nhash) {
+ return 0;
+ } else {
+ return -1;
+ }
+ }
+
+ /**
+ * °Å¹æ²½ºÑ¤ß¥Ñ¥¹¥ï¡¼¥É¤òǧ¾Ú¤¹¤ë(SHA)
+ *
+ * @param $input_passwd ÆþÎϥѥ¹¥ï¡¼¥É
+ * @param $sha_hash ¥Ï¥Ã¥·¥å
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ function verify_passwd_by_sha($input_passwd, $sha_hash) {
+
+ // Verify SHA hash
+ $rep_hash = ereg_replace("{SHA}", "", $sha_hash);
+
+ // PHP¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤êʬ´ô
+ // base64_encode
+ if(function_exists('sha1')) {
+ $nhash = base64_encode(pack("H*", sha1($input_passwd)));
+ } else if(function_exists('mHash')) {
+ $nhash = base64_encode(mHash(MHASH_SHA1, $input_passwd));
+ } else {
+ return -1;
+ }
+
+ // ¥Ï¥Ã¥·¥åƱ»Î¤¬¹çÃפ¹¤ë¤«
+ if ($rep_hash == $nhash) {
+ return 0;
+ } else {
+ return -1;
+ }
+ }
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤Î¥æ¡¼¥¶ID¤òÆþ¤ìÂؤ¨¤ë
+ *
+ * @param $new_user_id ¿·µ¬¥æ¡¼¥¶ID
+ * @param $old_user_id µì¥æ¡¼¥¶ID
+ * @return ½èÍýÀ®¸ù(true) / ½èÍý¼ºÇÔ(false)
+ */
+ function update_passwd_with_userid($new_user_id, $old_user_id) {
+ $ret = 1;
+ $entry_array = array(); // ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥êÊÝ»ýÇÛÎó
+
+ // ½ñ¤¹þ¤ß²Äǽ¥Á¥§¥Ã¥¯
+ if (!is_writable(ACS_PASSWD_FILE)) {
+ return 0;
+ }
+
+ // ¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $data_arr = file(ACS_PASSWD_FILE);
+ foreach ($data_arr as $line) {
+ list($user_id, $passwd) = explode(':', trim($line));
+ $entry_array[$user_id] = $passwd;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥ª¡¼¥×¥ó
+ if (($fp = fopen(ACS_PASSWD_FILE, 'w')) === false) {
+ return 0;
+ }
+ flock($fp, LOCK_EX);
+ foreach ($entry_array as $user_id => $passwd) {
+ // ¶õ¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï½üµî
+ if ($passwd != '') {
+ if ($old_user_id == $user_id) {
+ // ¸Å¤¤¥æ¡¼¥¶ID¤ò¿·¤·¤¤¥æ¡¼¥¶ID¤ËÊѹ¹
+ fwrite($fp, "$new_user_id:$passwd\n");
+ } else {
+ // Âоݥ桼¥¶°Ê³°¤Ï½ñ¤Ä¾¤¹¤À¤±
+ fwrite($fp, "$user_id:$passwd\n");
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¯¥í¡¼¥º
+ fclose($fp);
+ return $ret;
+ }
+
+ /**
+ * ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤òǧ¾Ú¤¹¤ë
+ *
+ * @param $input_user_id ÆþÎϥ桼¥¶ID
+ * @param $input_passwd ÆþÎϥѥ¹¥ï¡¼¥É
+ * @return ¥Þ¥Ã¥Á¤¹¤ë¥æ¡¼¥¶ID / NULL
+ */
+ function check_passwd($input_user_id, $input_passwd) {
+ // ¥¨¥¹¥±¡¼¥×½èÍý
+ $input_user_id = trim($input_user_id);
+ $input_passwd = trim($input_passwd);
+ $filepassword = "";
+
+ /* LDAP¤Ø¤Îǧ¾Ú(LDAP¤ò»ÈÍѤ¹¤ë¾ì¹ç) */
+ if (USE_LDAP_SYSTEM == "1") {
+ $ret_id = ACSLDAP::check_passwd_by_ldap($input_user_id, $input_passwd);
+ if ($ret_id != null) {
+ return $ret_id;
+ }
+ }
+
+ /* ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤È¤Îǧ¾Ú */
+ $ret = ACSSystem::check_passwd_by_htpasswd($input_user_id, $input_passwd);
+ if ($ret == 0) {
+ // ÆþÎϥ桼¥¶ID¤òÊÖµÑ
+ return $input_user_id;
+ }
+
+ // NULL¤òÊÖµÑ
+ return NULL;
+ }
+
+ /**
+ * ³°Éô¥·¥¹¥Æ¥à¤È¤ÎÀܳ¥Á¥§¥Ã¥¯
+ * LDAP¤Ê¤É³°Éô¥·¥¹¥Æ¥à¤«¤é¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ¤¹¤ë¾ì¹ç¡¢
+ * Àܳ¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+ *
+ * @return ÀܳÀ®¸ù(true) / Àܳ¼ºÇÔ(false)
+ */
+ function check_connect_outside() {
+
+ if (USE_LDAP_SYSTEM != "1") {
+ // ³°Éô¥·¥¹¥Æ¥à¤ËÀܳ¤·¤Ê¤¤¾ì¹ç¤ÏÌäÂê¤Ê¤¤
+ return 0;
+ }
+
+ // LDAP¤ËÀܳ¤¹¤ë»ÅÍͤξì¹ç
+ if (!ACSLDAP::connect_ldap()) {
+ return -1;
+ }
+ return 0;
+
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: ACSSystemAnnounce.class.php,v 1.1 2006/06/13 02:50:10 w-ota Exp $
+
+/**
+ * SystemAnnounce
+ * ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹ (¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻)
+ */
+class ACSSystemAnnounce
+{
+ /**
+ * ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $system_announce_id
+ * @return ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó
+ */
+ static function get_system_announce_row($system_announce_id) {
+ $system_announce_id = pg_escape_string($system_announce_id);
+
+ $sql = "SELECT *, acs_is_expire_date(system_announce.expire_date) AS is_expire";
+ $sql .= " FROM (system_announce LEFT OUTER JOIN community ON system_announce.user_community_id = community.community_id)";
+ $sql .= " WHERE system_announce.system_announce_id = '$system_announce_id'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+ /**
+ * ·ÇºÜÃæ¤Î¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó°ìÍ÷
+ */
+ static function get_valid_system_announce_row_array() {
+ $sql = "SELECT *";
+ $sql .= " FROM (system_announce LEFT OUTER JOIN community ON system_announce.user_community_id = community.community_id)";
+ $sql .= " WHERE acs_is_expire_date(system_announce.expire_date) = 'f'";
+ $sql .= " AND system_announce.system_announce_delete_flag = 'f'";
+ $sql .= " ORDER BY system_announce.system_announce_id DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ·ÇºÜÃæ¤Î¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó°ìÍ÷
+ */
+ static function get_all_system_announce_row_array() {
+ $sql = "SELECT *, acs_is_expire_date(system_announce.expire_date) as is_expire";
+ $sql .= " FROM (system_announce LEFT OUTER JOIN community ON system_announce.user_community_id = community.community_id)";
+ $sql .= " ORDER BY system_announce.system_announce_id DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_system_announce($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $system_announce_id_seq = ACSDB::get_next_seq('system_announce_id_seq');
+
+ $sql = "INSERT INTO system_announce";
+ $sql .= " (system_announce_id, user_community_id, subject, body, expire_date)";
+ $sql .= " VALUES ($system_announce_id_seq, $form[user_community_id], $form[subject], $form[body], $form[expire_date])";
+
+ ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¤òºï½ü¤¹¤ë (·ÇºÜÃæ»ß)
+ *
+ * @param ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹ID
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_system_announce($system_announce_id) {
+ $system_announce_id = pg_escape_string($system_announce_id);
+
+ $sql = "UPDATE system_announce";
+ $sql .= " SET system_announce_delete_flag = 't'";
+ $sql .= " WHERE system_announce_id = '$system_announce_id'";
+
+ ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ACS SystemConfig
+ * ¥·¥¹¥Æ¥àÀßÄê
+ *
+ * »ÈÍÑÊýË¡¡§
+ * <ÆÃÄê¤Î¥¡¼¥ï¡¼¥É¤ÎÃͤò¼èÆÀ>
+ * $system_config_keyword_value = ACSSystemConfig::get_keyword_value('¥°¥ë¡¼¥×̾', '¥¡¼¥ï¡¼¥É');
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2008/03/24 07:00:36 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSSystemConfigModel.class.php');
+class ACSSystemConfig
+{
+ /* ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×ÇÛÎó */
+ var $system_config_group_array = array();
+
+ /* ACSSystemConfigKeywordData ÇÛÎó */
+ var $system_config_keyword_data_obj_array = array();
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $file_info_row
+ */
+ function ACSSystemConfig ($system_config_group = '') {
+ if (!$system_config_group) {
+ // ¥Æ¡¼¥Ö¥ë¤«¤éÁ´¥Ç¡¼¥¿¼èÆÀ
+ $system_config_row_array = ACSSystemConfigModel::select_system_config_row_array();
+
+ } else {
+ // »ØÄê¤Î¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¥Ç¡¼¥¿¼èÆÀ
+ $system_config_row_array = ACSSystemConfigModel::select_system_config_group_row($system_config_group);
+ }
+
+ // ACSSystemConfigKeywordData ÇÛÎó ¥»¥Ã¥È
+ foreach ($system_config_row_array as $system_config_row) {
+ // ACSSystemConfigKeywordData ¥¤¥ó¥¹¥¿¥ó¥¹À¸À®¡ÊÇÛÎóºîÀ®¡Ë
+ $_system_config_keyword_data_obj = new ACSSystemConfigKeywordData($system_config_row);
+ $this->add_system_config_keyword_data_obj($_system_config_keyword_data_obj);
+
+ // ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¼èÆÀ
+ $_system_config_group = $_system_config_keyword_data_obj->get_system_config_group_name();
+ if (!in_array($_system_config_group, $this->system_config_group_array)) {
+ $this->add_system_config_group($_system_config_group);
+ }
+ }
+ }
+
+ /**
+ * ACSSystemConfigKeywordData ÇÛÎó ÄɲÃ
+ *
+ * @param $system_config_keyword_data_obj
+ */
+ function add_system_config_keyword_data_obj ($system_config_keyword_data_obj) {
+ array_push($this->system_config_keyword_data_obj_array, $system_config_keyword_data_obj);
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×ÇÛÎó ÄɲÃ
+ *
+ * @param $system_config_group
+ */
+ function add_system_config_group ($system_config_group) {
+ array_push($this->system_config_group_array, $system_config_group);
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×ÇÛÎ󥲥åÈ
+ *
+ * @return ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×ÇÛÎó
+ */
+ function get_system_config_group_array () {
+ return $this->system_config_group_array;
+ }
+
+ /**
+ * »ØÄꥷ¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¤Î ACSSystemConfigKeywordData ÇÛÎ󥲥åÈ
+ *
+ * @param $system_config_group_name
+ */
+ function get_system_config_keyword_data_obj ($system_config_group_name) {
+ $ret_config_keyword_data_obj_array = array();
+
+ foreach ($this->system_config_keyword_data_obj_array as $system_config_keyword_data_obj) {
+ if ($system_config_keyword_data_obj->get_system_config_group_name() == $system_config_group_name) {
+ array_push($ret_config_keyword_data_obj_array, $system_config_keyword_data_obj);
+ }
+ }
+
+ return $ret_config_keyword_data_obj_array;
+ }
+
+ /**
+ * ACSSystemConfigKeywordData ÇÛÎ󥲥åÈ
+ */
+ function get_system_config_keyword_data_obj_array () {
+ return $this->system_config_keyword_data_obj_array;
+ }
+
+ /**
+ * »ØÄꥷ¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¡¢¥¡¼¥ï¡¼¥É¤ÎÃÍ¥²¥Ã¥È
+ *
+ * @param $system_config_group_name
+ * @param $keyword
+ */
+ function get_keyword_value ($system_config_group_name, $keyword) {
+ $system_config_data_row = ACSSystemConfigModel::select_system_config_keyword_row($system_config_group_name, $keyword);
+ if (!isset($system_config_data_row)) {
+ // ¥Ç¡¼¥¿¼èÆÀ¤Ç¤¤Ê¤¤¾ì¹ç¡¢¥¨¥é¡¼
+ print "ERROR: Get system value failed. ($system_config_group_name, $keyword)";
+ exit;
+ }
+
+ $keyword_data_instance = new ACSSystemConfigKeywordData($system_config_data_row);
+ $value = $keyword_data_instance->get_value();
+ return $value;
+ }
+
+ /**
+ * Ã͹¹¿·
+ *
+ * @param $system_config_group ¹¹¿·ÂоݤΥ¡¼
+ * @param $keyword ¹¹¿·ÂоݤΥ¡¼
+ * @param $update_value ¹¹¿·¤¹¤ëÃÍ
+ */
+ function update_value ($system_config_group, $keyword, $update_value) {
+ return ACSSystemConfigModel::update_system_config_value($system_config_group, $keyword, $update_value);
+ }
+}
+
+class ACSSystemConfigKeywordData
+{
+ /* ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¥³¡¼¥É */
+ var $system_config_group_code;
+
+ /* ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥× */
+ var $system_config_group_name;
+
+ /* ¥¡¼¥ï¡¼¥É */
+ var $keyword;
+
+ /* ¹àÌÜ̾ */
+ var $name;
+
+ /* ÃÍ */
+ var $value;
+
+ /* ·¿ */
+ var $type;
+
+ /* ñ°Ì */
+ var $unit;
+
+ /* È÷¹Í */
+ var $note;
+
+ /* ÁªÂò»è */
+ var $select;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $system_config_group
+ * @param $keyword
+ */
+ function ACSSystemConfigKeywordData ($system_config_data_row = array()) {
+ $this->set_system_config_group_code($system_config_data_row['system_config_group_code']);
+ $this->set_system_config_group_name($system_config_data_row['system_config_group_name']);
+ $this->set_keyword($system_config_data_row['keyword']);
+ //$this->set_name($system_config_data_row['name']);
+ $this->set_value($system_config_data_row['value']);
+ $this->set_type($system_config_data_row['type']);
+ //$this->set_unit($system_config_data_row['unit']);
+ //$this->set_note($system_config_data_row['note']);
+
+ // ¥á¥Ã¥»¡¼¥¸¥Õ¥¡¥¤¥ë¤è¤ê¼èÆÀ
+ $this->set_name(ACSMsg::get_mdmsg(__FILE__,$system_config_data_row['keyword']));
+ $this->set_unit(ACSMsg::get_mdmsg(__FILE__,$system_config_data_row['keyword'].".unit"));
+ $this->set_note(ACSMsg::get_mdmsg(__FILE__,$system_config_data_row['keyword'].".note"));
+
+ $this->set_select(ACSMsg::get_mdmsg(__FILE__,$system_config_data_row['keyword'].".select"));
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¥³¡¼¥É¥»¥Ã¥È
+ *
+ * @parma $system_config_group_code
+ */
+ function set_system_config_group_code ($system_config_group_code) {
+ $this->system_config_group_code = $system_config_group_code;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¥³¡¼¥É¥²¥Ã¥È
+ *
+ * @return ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×
+ */
+ function get_system_config_group_code () {
+ return $this->system_config_group_code;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×̾¥»¥Ã¥È
+ *
+ * @parma $system_config_group_name
+ */
+ function set_system_config_group_name ($system_config_group_name) {
+ $this->system_config_group_name = $system_config_group_name;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×̾¥²¥Ã¥È
+ *
+ * @return ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×
+ */
+ function get_system_config_group_name () {
+ return $this->system_config_group_name;
+ }
+
+ /**
+ * ¥¡¼¥ï¡¼¥É¥»¥Ã¥È
+ *
+ * @parma $keyword
+ */
+ function set_keyword ($keyword) {
+ $this->keyword = $keyword;
+ }
+
+ /**
+ * ¥¡¼¥ï¡¼¥É¥²¥Ã¥È
+ *
+ * @return ¥¡¼¥ï¡¼¥É
+ */
+ function get_keyword () {
+ return $this->keyword;
+ }
+
+ /**
+ * ¹àÌÜ̾¥»¥Ã¥È
+ *
+ * @parma $name
+ */
+ function set_name ($name) {
+ $this->name = $name;
+ }
+
+ /**
+ * ¹àÌÜ̾¥²¥Ã¥È
+ *
+ * @return ¹àÌÜ̾
+ */
+ function get_name () {
+ return $this->name;
+ }
+
+ /**
+ * ÃÍ¥»¥Ã¥È
+ *
+ * @parma $value
+ */
+ function set_value ($value) {
+ $this->value = $value;
+ }
+
+ /**
+ * ÃÍ¥²¥Ã¥È
+ *
+ * @return ÃÍ
+ */
+ function get_value () {
+ return $this->value;
+ }
+
+ /**
+ * ·¿¥»¥Ã¥È
+ *
+ * @parma $type
+ */
+ function set_type ($type) {
+ $this->type = $type;
+ }
+
+ /**
+ * ·¿¥²¥Ã¥È
+ *
+ * @return ·¿
+ */
+ function get_type () {
+ return $this->type;
+ }
+
+ /**
+ * ñ°Ì¥»¥Ã¥È
+ *
+ * @parma $unit
+ */
+ function set_unit ($unit) {
+ $this->unit = $unit;
+ }
+
+ /**
+ * ñ°Ì¥²¥Ã¥È
+ *
+ * @return ñ°Ì
+ */
+ function get_unit () {
+ return $this->unit;
+ }
+
+ /**
+ * È÷¹Í¥»¥Ã¥È
+ *
+ * @parma $note
+ */
+ function set_note ($note) {
+ $this->note = $note;
+ }
+
+ /**
+ * È÷¹Í¥²¥Ã¥È
+ *
+ * @return È÷¹Í
+ */
+ function get_note () {
+ return $this->note;
+ }
+
+ /**
+ * ÁªÂò»è¥»¥Ã¥È
+ *
+ * @parma $note
+ */
+ function set_select ($select) {
+ $this->select = $select;
+ }
+
+ /**
+ * ÁªÂò»è¥²¥Ã¥È
+ *
+ * @return ÁªÂò»è
+ */
+ function get_select () {
+ return $this->select;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥àÀßÄê DB¥¢¥¯¥»¥¹
+ *
+ * @author kuwayamm
+ * @version $Revision: 1.5 $ $Date: 2007/03/01 09:01:12 $
+ */
+class ACSSystemConfigModel
+{
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄê¾ðÊó¼èÆÀ
+ *
+ * @parma $sql_where
+ */
+ static function select_system_config_row_array ($sql_where = "") {
+ $sql = "SELECT";
+ $sql .= " system_config_group.system_config_group_code, system_config_group.system_config_group_name,";
+ $sql .= " system_config.keyword, system_config.value, system_config.type";
+ $sql .= " FROM system_config_group, system_config";
+ $sql .= " WHERE";
+ $sql .= " system_config_group.system_config_group_code = system_config.system_config_group_code";
+ if ($sql_where) {
+ // ¾ò·ï¤Î»ØÄ꤬¤¢¤ë¾ì¹ç¤Î¤ß¡¢ÄɲÃ
+ $sql .= " AND " . $sql_where;
+ }
+ $sql .= " ORDER BY system_config_group.display_order, system_config.display_order";
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄê¾ðÊó¼èÆÀ
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×¡¢¥¡¼¥ï¡¼¥É»ØÄê
+ *
+ * @param $system_config_group_name
+ * @param $keyword
+ */
+ static function select_system_config_keyword_row ($system_config_group_name, $keyword) {
+ $sql_where = "system_config_group_name = '" . $system_config_group_name . "'";
+ $sql_where .= " AND ";
+ $sql_where .= "keyword = '" . $keyword . "'";
+
+ $row_array = ACSSystemConfigModel::select_system_config_row_array($sql_where);
+ return $row_array[0];
+ }
+
+ /**
+ * ¥·¥¹¥Æ¥àÀßÄê¾ðÊó¼èÆÀ
+ * ¥·¥¹¥Æ¥àÀßÄꥰ¥ë¡¼¥×»ØÄê
+ *
+ * @param $system_config_group_name
+ */
+ static function select_system_config_group_row ($system_config_group_name) {
+ $sql_where = "system_config_group_name = '" . $system_config_group_name . "'";
+
+ $row_array = ACSSystemConfigModel::select_system_config_row_array($sql_where);
+ return $row_array;
+ }
+
+ /**
+ * Ã͹¹¿·
+ *
+ * @param $system_config_group ¹¹¿·ÂоݤΥ¡¼
+ * @param $keyword ¹¹¿·ÂоݤΥ¡¼
+ * @param $update_value ¹¹¿·¤¹¤ëÃÍ
+ */
+ static function update_system_config_value ($system_config_group_name, $keyword, $update_value) {
+ $sql = "UPDATE system_config";
+ $sql .= " SET";
+ $sql .= " value = '" . pg_escape_string($update_value) . "'";
+ $sql .= " WHERE";
+ $sql .= " keyword = '" . $keyword . "'";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+}
--- /dev/null
+<?php
+// $Id: ACSUser.class.php,v 1.47 2008/04/24 16:00:00 y-yuki Exp $
+
+/*
+ * ¥Þ¥¤¥Ú¡¼¥¸¶¦ÄÌ¥¯¥é¥¹
+ */
+class ACSUser {
+
+ /**
+ * ¥æ¡¼¥¶ID¤ò»ØÄꤷ¤Æ¡¢¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶ID
+ * @return ¥æ¡¼¥¶¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_user_info_row_by_user_id($user_id) {
+
+ static $cache_rows;
+
+ $user_id = pg_escape_string($user_id);
+
+ if (is_array($cache_rows[$user_id])) {
+ return $cache_rows[$user_id];
+ }
+
+ $sql = "SELECT user_info.user_id, user_info.user_community_id, USER_COMMUNITY.community_name,";
+ $sql .= " USER_NAME_C.contents_value as user_name, MAIL_ADDR_C.contents_value as mail_addr,";
+ $sql .= " SELF_C.contents_type_code, SELF_CTM.contents_type_name,";
+ $sql .= " SELF_C.open_level_code, SELF_OLM.open_level_name,";
+ $sql .= " user_info.administrator_flag";
+ $sql .= " FROM user_info, community as USER_COMMUNITY,";
+ $sql .= " contents as USER_NAME_C, contents_type_master as USER_NAME_CTM,"; // »á̾
+ $sql .= " contents as MAIL_ADDR_C, contents_type_master as MAIL_ADDR_CTM,"; // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+ $sql .= " WHERE user_info.user_id = '$user_id'";
+ $sql .= " AND user_info.user_community_id = USER_COMMUNITY.community_id";
+ // »á̾
+ $sql .= " AND USER_COMMUNITY.community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $sql .= " AND USER_COMMUNITY.community_id = MAIL_ADDR_C.community_id";
+ $sql .= " AND MAIL_ADDR_C.contents_type_code = MAIL_ADDR_CTM.contents_type_code";
+ $sql .= " AND MAIL_ADDR_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D02')."'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ //$sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ $row = ACSDB::_get_row($sql);
+
+ $cache_rows[$user_id] = $row;
+
+ return $row;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò»ØÄꤷ¤Æ¡¢¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $include_private_flag Èó¸ø³«¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤â´Þ¤á¤ë
+ * @return ¥æ¡¼¥¶¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_user_info_row_by_user_community_id($user_community_id, $include_private_flag = false) {
+
+ static $cache_rows;
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $cache_key = $user_community_id ."_". ($include_private_flag===true ? "T" : "F");
+ if (is_array($cache_rows[$cache_key])) {
+ return $cache_rows[$cache_key];
+ }
+
+ $sql = "SELECT *";
+ $sql .= " FROM user_info,";
+ $sql .= " (community LEFT OUTER JOIN community_image_file USING(community_id)) as USER_COMMUNITY, community_type_master,";
+ $sql .= " contents as USER_NAME_C, contents_type_master as USER_NAME_CTM,"; // »á̾
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+ $sql .= " WHERE user_info.user_community_id = '$user_community_id'";
+ $sql .= " AND user_info.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D10')."'";
+ // »á̾
+ $sql .= " AND USER_COMMUNITY.community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ if (!$include_private_flag) {
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+ }
+
+ $row = ACSDB::_get_row($sql);
+
+ $cache_rows[$cache_key] = $row;
+
+ return $row;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò»ØÄꤷ¤Æ¡¢¥æ¡¼¥¶¾ðÊó(¥×¥í¥Õ¥£¡¼¥ë)¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param $include_private_flag Èó¸ø³«¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤â´Þ¤á¤ë
+ * @return ¥æ¡¼¥¶¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_user_profile_row($user_community_id, $include_private_flag = false) {
+
+ $user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id, $include_private_flag);
+ if (!$user_info_row) {
+ return;
+ }
+
+ // ¥×¥í¥Õ¥£¡¼¥ë(contents)
+ $user_info_row['contents_row_array'] = array();
+ $user_info_row['contents_row_array']['user_name'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D01'));
+ $user_info_row['contents_row_array']['mail_addr'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D02'));
+ $user_info_row['contents_row_array']['belonging'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D03'));
+ $user_info_row['contents_row_array']['speciality'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D04'));
+ $user_info_row['contents_row_array']['birthplace'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D05'));
+ $user_info_row['contents_row_array']['birthday'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D06'));
+ $user_info_row['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D07'));
+ $user_info_row['contents_row_array']['community_profile_login'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D08'));
+ $user_info_row['contents_row_array']['community_profile_friend'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D09'));
+ $user_info_row['contents_row_array']['self'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D00'));
+ $user_info_row['contents_row_array']['friends_list'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D11'));
+
+ $user_info_row['contents_row_array']['mail_lang'] = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D51'));
+
+ // ¥Ç¡¼¥¿Ìµ¤·¤Î¾ì¹ç¤Ï¶õ¤Îarray¤òÆþ¤ì¤ë
+ foreach ($user_info_row['contents_row_array'] as $contents_key => $contents_row) {
+ if (!$contents_row) {
+ $user_info_row['contents_row_array'][$contents_key] = array();
+ }
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+ // birthplace
+ if ($user_info_row['contents_row_array']['birthplace']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ // trusted_community_flag
+ $user_info_row['contents_row_array']['birthplace']['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($user_community_id, $user_info_row['contents_row_array']['birthplace']['contents_type_code'], $user_info_row['contents_row_array']['birthplace']['open_level_code']);
+ if (count($user_info_row['contents_row_array']['birthplace']['trusted_community_row_array'])
+ && $user_info_row['contents_row_array']['birthplace']['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $user_info_row['contents_row_array']['birthplace']['trusted_community_flag'] = 0;
+ } else {
+ $user_info_row['contents_row_array']['birthplace']['trusted_community_flag'] = 1;
+ }
+ // trusted_community_id_csv
+ $trusted_community_id_array = array();
+ foreach ($user_info_row['contents_row_array']['birthplace']['trusted_community_row_array'] as $trusted_community_row) {
+ array_push($trusted_community_id_array, $trusted_community_row['community_id']);
+ }
+ $user_info_row['contents_row_array']['birthplace']['trusted_community_id_csv'] = implode(',', $trusted_community_id_array);
+ }
+
+ // birthday
+ if ($user_info_row['contents_row_array']['birthday']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ // trusted_community_flag
+ $user_info_row['contents_row_array']['birthday']['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($user_community_id, $user_info_row['contents_row_array']['birthday']['contents_type_code'], $user_info_row['contents_row_array']['birthday']['open_level_code']);
+ if (count($user_info_row['contents_row_array']['birthday']['trusted_community_row_array'])
+ && $user_info_row['contents_row_array']['birthday']['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $user_info_row['contents_row_array']['birthday']['trusted_community_flag'] = 0;
+ } else {
+ $user_info_row['contents_row_array']['birthday']['trusted_community_flag'] = 1;
+ }
+ // trusted_community_id_csv
+ $trusted_community_id_array = array();
+ foreach ($user_info_row['contents_row_array']['birthday']['trusted_community_row_array'] as $trusted_community_row) {
+ array_push($trusted_community_id_array, $trusted_community_row['community_id']);
+ }
+ $user_info_row['contents_row_array']['birthday']['trusted_community_id_csv'] = implode(',', $trusted_community_id_array);
+ }
+
+ // flat
+ foreach ($user_info_row['contents_row_array'] as $contents_key => $contents_row) {
+ $user_info_row[$contents_key] = $contents_row['contents_value'];
+ }
+
+ return $user_info_row;
+ }
+
+ /**
+ * ¥æ¡¼¥¶ID¤ò»ØÄꤷ¤Æ¡¢¥á¡¼¥ë¸À¸ì¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶ID
+ * @return ¥á¡¼¥ë¸À¸ì
+ */
+ static function get_user_mail_lang($user_id) {
+
+ $user_id = pg_escape_string($user_id);
+
+ $sql = "SELECT contents.contents_value ";
+ $sql .= " FROM user_info, contents ";
+ $sql .= " WHERE user_info.user_id = '" . $user_id . "'";
+ $sql .= " AND user_info.user_community_id = contents.community_id";
+ $sql .= " AND contents.contents_type_code = '" . ACS_MAIL_LANG_CONTENTS_TYPE_CODE ."'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row['contents_value'];
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ID¤ò»ØÄꤷ¤Æ¡¢¥á¡¼¥ë¸À¸ì¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥á¡¼¥ë¸À¸ì
+ */
+ function get_community_mail_lang($community_id) {
+
+ $community_id = pg_escape_string($community_id);
+
+ $sql = "SELECT contents_value FROM contents ";
+ $sql .= " WHERE community_id = '" . $community_id . "'";
+ $sql .= " AND contents_type_code = '" . ACS_MAIL_LANG_CONTENTS_TYPE_CODE ."'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row['contents_value'];
+ }
+
+
+ /**
+ * ¥æ¡¼¥¶¾ðÊó(¥×¥í¥Õ¥£¡¼¥ë)¤ò¥»¥Ã¥È¤¹¤ë
+ *
+ * @param $acs_user_info_row
+ * @param ¥æ¡¼¥¶¾ðÊó(¥×¥í¥Õ¥£¡¼¥ë)
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_user_profile($acs_user_info_row, $form) {
+ $user_community_id = $form['id'];
+
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ $contents_type_code_array['self'] = array_search(ACSMsg::get_mst('contents_type_master','D00'), $contents_type_master_array);
+ $contents_type_code_array['user_name'] = array_search(ACSMsg::get_mst('contents_type_master','D01'), $contents_type_master_array);
+ $contents_type_code_array['mail_addr'] = array_search(ACSMsg::get_mst('contents_type_master','D02'), $contents_type_master_array);
+ $contents_type_code_array['belonging'] = array_search(ACSMsg::get_mst('contents_type_master','D03'), $contents_type_master_array);
+ $contents_type_code_array['speciality'] = array_search(ACSMsg::get_mst('contents_type_master','D04'), $contents_type_master_array);
+ $contents_type_code_array['birthplace'] = array_search(ACSMsg::get_mst('contents_type_master','D05'), $contents_type_master_array);
+ $contents_type_code_array['birthday'] = array_search(ACSMsg::get_mst('contents_type_master','D06'), $contents_type_master_array);
+ $contents_type_code_array['community_profile'] = array_search(ACSMsg::get_mst('contents_type_master','D07'), $contents_type_master_array);
+ $contents_type_code_array['community_profile_login'] = array_search(ACSMsg::get_mst('contents_type_master','D08'), $contents_type_master_array);
+ $contents_type_code_array['community_profile_friend'] = array_search(ACSMsg::get_mst('contents_type_master','D09'), $contents_type_master_array);
+ $contents_type_code_array['friends_list'] = array_search(ACSMsg::get_mst('contents_type_master','D11'), $contents_type_master_array);
+ $contents_type_code_array['mail_lang'] = array_search(ACSMsg::get_mst('contents_type_master','D51'), $contents_type_master_array);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É
+ $user_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D10'), $community_type_master_array);
+ $friends_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D20'), $community_type_master_array);
+ // ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+
+ // user_info¤¬Ì¤ÅÐÏ¿¤ÎLDAP¥æ¡¼¥¶¤Î¾ì¹ç¤Ï´ðËܾðÊó¤òÅÐÏ¿¤¹¤ë
+ if (!$acs_user_info_row['is_acs_user'] && $acs_user_info_row['is_ldap_user']) {
+ // ¿·¥³¥ß¥å¥Ë¥Æ¥£ID
+ $user_community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $user_community_id = $user_community_id_seq;
+
+ // (1) ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_name, community_type_code)";
+ $sql .= " VALUES ($user_community_id_seq, null, '$user_community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2) ¥æ¡¼¥¶¾ðÊó (user_info)
+ $sql = "INSERT INTO user_info";
+ $sql .= " (user_id, user_community_id, administrator_flag)";
+ $sql .= " VALUES ('$form[user_id]', '$user_community_id_seq', 'f')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (3) ¥Þ¥¤¥Õ¥ì¥ó¥º
+ $contents_form = array();
+ $contents_form['community_id'] = $user_community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D11'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D11'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (4) ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $friends_community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_type_code)";
+ $sql .= " VALUES ('$friends_community_id_seq', '$friends_community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (5) ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£¤ò¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤È¤¹¤ë (sub_community)
+ $sql = "INSERT INTO sub_community";
+ $sql .= " (community_id, sub_community_id)";
+ $sql .= " VALUES ('$user_community_id_seq', '$friends_community_id_seq')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ $is_ldap_user_login_flag = 1;
+ // ¥æ¡¼¥¶´ðËܾðÊ󤳤³¤Þ¤Ç
+ }
+
+
+ // ¥Ë¥Ã¥¯¥Í¡¼¥à
+ $ret = ACSCommunity::set_community_name($user_community_id, $form['community_name']);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¥³¥ó¥Æ¥ó¥Ä: »á̾, ¥á¡¼¥ë¥¢¥É¥ì¥¹, ½ê°, À칶, ½Ð¿È, À¸Ç¯·îÆü, ¥×¥í¥Õ¥£¡¼¥ë¤Ï£³¼ï
+ foreach (array('user_name', 'mail_addr', 'belonging', 'speciality', 'birthplace', 'birthday', 'community_profile', 'community_profile_login', 'community_profile_friend', 'friends_list', 'mail_lang') as $contents_key) {
+ $contents_form = array(
+ 'community_id' => $user_community_id,
+ 'contents_type_code' => $contents_type_code_array[$contents_key],
+ 'contents_value' => $form[$contents_key],
+ 'open_level_code' => $form['open_level_code_array'][$contents_key]
+ );
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ // ¥³¥ó¥Æ¥ó¥Ä: ¥Ú¡¼¥¸Á´ÂÎ = °ìÈ̸ø³«¤È¤¹¤ë
+ $contents_form = array(
+ 'community_id' => $user_community_id,
+ 'contents_type_code' => $contents_type_code_array['self'],
+ 'contents_value' => '',
+ 'open_level_code' => array_search(ACSMsg::get_mst('open_level_master','D01'), $open_level_master_array)
+ );
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£: ½Ð¿È, À¸Ç¯·îÆü
+ foreach (array('birthplace', 'birthday') as $contents_key) {
+ if ($form['trusted_community_flag'][$contents_key]) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $trusted_community_id_array = explode(',', $form['trusted_community_id_csv_array'][$contents_key]);
+ foreach ($trusted_community_id_array as $trusted_community_id) {
+ if ($trusted_community_id == '') {
+ continue;
+ }
+ $contents_trusted_community_form = array(
+ 'community_id' => $user_community_id,
+ 'contents_type_code' => $contents_type_code_array[$contents_key],
+ 'open_level_code' => $form['open_level_code_array'][$contents_key],
+ 'trusted_community_id' => $trusted_community_id
+ );
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ } else {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º
+ $trusted_community_id = ACSUser::get_friends_community_id($user_community_id); // ¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID
+ $contents_trusted_community_form = array(
+ 'community_id' => $user_community_id,
+ 'contents_type_code' => $contents_type_code_array[$contents_key],
+ 'open_level_code' => $form['open_level_code_array'][$contents_key],
+ 'trusted_community_id' => $trusted_community_id
+ );
+ $ret = ACSCommunity::set_contents_trusted_community($contents_trusted_community_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ if ($is_ldap_user_login_flag) {
+ $acs_user_info_row = ACSUser::get_user_info_row_by_user_id($form['user_id']);
+ // ¥í¥°ÅÐÏ¿: LDAP¥æ¡¼¥¶¿·µ¬ÅÐÏ¿
+ ACSLog::set_log($acs_user_info_row, 'New LDAP User Registration', $ret, "[UserID:{$form['user_id']}]");
+ // ¥é¥¹¥È¥í¥°¥¤¥óÅÐÏ¿
+ ACSUser::set_last_login($acs_user_info_row);
+ }
+
+ return $ret;
+ }
+
+
+ /**
+ * Á´¤Æ¤Î¥æ¡¼¥¶¾ðÊó¤ò¸¡º÷¤¹¤ë
+ *
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥æ¡¼¥¶¾ðÊó¤ÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function search_all_user_info_row_array($form) {
+ $sql = "SELECT *,";
+ $sql .=" USER_NAME_C.contents_value as user_name,";
+ $sql .=" MAIL_ADDR_C.contents_value as mail_addr";
+
+ $sql .= " FROM user_info, community as USER_COMMUNITY, community_type_master,";
+ $sql .= " contents as USER_NAME_C, contents_type_master as USER_NAME_CTM,"; // »á̾
+ $sql .= " contents as MAIL_ADDR_C, contents_type_master as MAIL_ADDR_CTM,"; // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE user_info.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D10')."'";
+
+ // »á̾
+ $sql .= " AND USER_COMMUNITY.community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $sql .= " AND USER_COMMUNITY.community_id = MAIL_ADDR_C.community_id";
+ $sql .= " AND MAIL_ADDR_C.contents_type_code = MAIL_ADDR_CTM.contents_type_code";
+ $sql .= " AND MAIL_ADDR_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D02')."'";
+
+
+ // ¸¡º÷¾ò·ï //
+ // ¥¡¼¥ï¡¼¥É
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " user_info.user_id ILIKE '%$query%'";
+ $sub_where_sql .= " OR USER_NAME_C.contents_value ILIKE '%$query%'";
+ $sub_where_sql .= " OR USER_COMMUNITY.community_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR MAIL_ADDR_C.contents_value ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ //$sql .= " AND SELF_OLM.open_level_name != 'Èó¸ø³«'";
+
+ $sql .= " ORDER BY user_info.user_id ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¾ðÊó¤ò¸¡º÷¤¹¤ë
+ *
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥æ¡¼¥¶¾ðÊó¤ÎÇÛÎó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function search_user_info_row_array($form, $open_level_name_array) {
+ $sql = "SELECT user_info.*, USER_COMMUNITY.*";
+
+ if ($form['order'] == 'friends_num') {
+ $sql .= ", acs_get_friends_num(USER_COMMUNITY.community_id) AS friends_num";
+ } elseif ($form['order'] == 'community_num') {
+ $sql .= ", acs_get_community_num(USER_COMMUNITY.community_id) AS community_num";
+ }
+
+ $sql .= " FROM user_info, community as USER_COMMUNITY,";
+
+ // ¥µ¥Ö¥¯¥¨¥ê: ¥³¥ó¥Æ¥ó¥Ä //
+ $sql .= " (";
+ $sql .= " SELECT DISTINCT SUB_USER_COMMUNITY.community_id";
+ $sql .= " FROM community as SUB_USER_COMMUNITY, community_type_master, contents, open_level_master";
+ $sql .= " WHERE SUB_USER_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D10')."'";
+ $sql .= " AND SUB_USER_COMMUNITY.community_id = contents.community_id";
+ // ¸ø³«ÈϰϤò¸ÂÄê
+ $sql .= " AND contents.open_level_code = open_level_master.open_level_code";
+
+ $open_level_name_where_sql = '';
+ foreach ($open_level_name_array as $open_level_name) {
+ if ($open_level_name_where_sql != '') {
+ $open_level_name_where_sql .= ' OR ';
+ }
+ $open_level_name_where_sql .= "open_level_master.open_level_name = '" . pg_escape_string($open_level_name) . "'";
+ }
+ $sql .= " AND ($open_level_name_where_sql)";
+
+ // ¸¡º÷¾ò·ï //
+ // ¥¡¼¥ï¡¼¥É
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " SUB_USER_COMMUNITY.community_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR contents.contents_value ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ $sql .= " ORDER BY SUB_USER_COMMUNITY.community_id ASC ";
+ $sql .= " ) as SUB_USER_COMMUNITY";
+ //
+
+ $sql .= " ,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE user_info.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = SUB_USER_COMMUNITY.community_id";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ // ORDER
+ if ($form['order'] == 'community_name') {
+ $sql .= " ORDER BY USER_COMMUNITY.community_name ASC";
+ } elseif ($form['order'] == 'friends_num') {
+ $sql .= " ORDER BY friends_num DESC, user_info.user_id ASC";
+ } elseif ($form['order'] == 'community_num') {
+ $sql .= " ORDER BY community_num DESC, user_info.user_id ASC";
+ } else {
+ $sql .= " ORDER BY user_info.user_id ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¥é¥ó¥¥ó¥°¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @return ¥æ¡¼¥¶¥é¥ó¥¥ó¥°¾ðÊó¤Î°ìÍ÷
+ */
+ static function get_ranking_user_info_row_array() {
+ $limit = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D05'), 'USER_RANKING_COUNT_TERM');
+
+ $sql = "SELECT user_info.user_community_id, USER_COMMUNITY.community_name, USER_COMMUNITY.file_id,";
+ $sql .= " (";
+ // Åê¹Æ¤·¤¿¥À¥¤¥¢¥ê¡¼·ï¿ô
+ $sql .= " acs_get_diary_score(USER_COMMUNITY.community_id, '$term')";
+ // Åê¹Æ¤·¤¿¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È·ï¿ô
+ $sql .= " + acs_get_diary_comment_score(USER_COMMUNITY.community_id, '$term')";
+ // ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¿ô
+ $sql .= " + acs_get_file_info_score(USER_COMMUNITY.community_id, '$term')";
+ // ¥³¥á¥ó¥È¤µ¤ì¤¿¥À¥¤¥¢¥ê¡¼·ï¿ô
+ //$sql .= " + acs_get_commented_diary_score(USER_COMMUNITY.community_id, '$term')";
+ // Åê¹Æ¤·¤¿bbs·ï¿ô
+ $sql .= " + acs_get_bbs_score_by_u_c_id(USER_COMMUNITY.community_id, '$term')";
+ // Åê¹Æ¤·¤¿bbs_res·ï¿ô
+ $sql .= " + acs_get_bbs_res_score_by_u_c_id(USER_COMMUNITY.community_id, '$term')";
+ $sql .= " ) as ranking_score";
+
+ $sql .= " FROM user_info, (community LEFT OUTER JOIN community_image_file USING(community_id)) as USER_COMMUNITY, community_type_master,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE user_info.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D10')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ $sql .= " ORDER BY ranking_score DESC";
+ // LIMIT
+ $sql .= " LIMIT $limit";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ // 0pt¤Ï½ü³°
+ $new_row_array = array();
+ foreach ($row_array as $row) {
+ if ($row['ranking_score'] > 0) {
+ array_push($new_row_array, $row);
+ }
+ }
+
+ return $new_row_array;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ¥æ¡¼¥¶¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_user_info($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É
+ $user_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D10'), $community_type_master_array);
+ $friends_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D20'), $community_type_master_array);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É
+ $self_contents_type_code = array_search(ACSMsg::get_mst('contents_type_master','D00'), $contents_type_master_array);
+ $user_name_contents_type_code = array_search(ACSMsg::get_mst('contents_type_master','D01'), $contents_type_master_array);
+ $mail_addr_contents_type_code = array_search(ACSMsg::get_mst('contents_type_master','D02'), $contents_type_master_array);
+
+
+ $org_form = $form;
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // (1) ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $user_community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_name, community_type_code)";
+ $sql .= " VALUES ($user_community_id_seq, $form[user_name], '$user_community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-1) ¥æ¡¼¥¶¾ðÊó (user_info)
+ $sql = "INSERT INTO user_info";
+ $sql .= " (user_id, user_community_id, administrator_flag)";
+ $sql .= " VALUES ($form[user_id], '$user_community_id_seq', 'f')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-2) (¥Þ¥¤¥Ú¡¼¥¸)Á´ÂÎ
+ $contents_form = array();
+ $contents_form['community_id'] = $user_community_id_seq;
+ $contents_form['contents_type_code'] = $self_contents_type_code;
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D00'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-3) »á̾
+ $user_name_default_open_level_code = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D08'), 'NAME_DISPLAY_LEVEL');
+ //$user_name_default_open_level_code = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D01'));
+ $sql = "INSERT INTO contents";
+ $sql .= " (community_id, contents_type_code, contents_value, open_level_code)";
+ $sql .= " VALUES ($user_community_id_seq, '$user_name_contents_type_code', $form[user_name], '$user_name_default_open_level_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-4) ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $mail_addr_default_open_level_code = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D02'));
+ $sql = "INSERT INTO contents";
+ $sql .= " (community_id, contents_type_code, contents_value, open_level_code)";
+ $sql .= " VALUES ($user_community_id_seq, '$mail_addr_contents_type_code', $form[mail_addr], '$mail_addr_default_open_level_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2-5) ¥Þ¥¤¥Õ¥ì¥ó¥º
+ $contents_form = array();
+ $contents_form['community_id'] = $user_community_id_seq;
+ $contents_form['contents_type_code'] = array_search(ACSMsg::get_mst('contents_type_master','D11'), $contents_type_master_array);
+ $contents_form['contents_value'] = '';
+ $contents_form['open_level_code'] = ACSAccessControl::get_default_open_level_code(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D11'));
+ $ret = ACSCommunity::set_contents($contents_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (3) ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $friends_community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_type_code)";
+ $sql .= " VALUES ('$friends_community_id_seq', '$friends_community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (4) ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£¤ò¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤È¤¹¤ë (sub_community)
+ $sql = "INSERT INTO sub_community";
+ $sql .= " (community_id, sub_community_id)";
+ $sql .= " VALUES ('$user_community_id_seq', '$friends_community_id_seq')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ // (5) ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
+ ACSSystem::update_passwd($org_form['user_id'], $org_form['passwd']);
+
+ return $ret;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Ú¡¼¥¸¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Ú¡¼¥¸¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ function get_user_community_row($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM community, community_type_master";
+ $sql .= " WHERE community_id = '$user_community_id'";
+ $sql .= " AND community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D10')."'";
+
+ $row = ACSDB::_get_row($sql);
+ return $row;
+ }
+
+
+ /**
+ * ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò»ØÄꤷ¤Æ¡¢¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID
+ */
+ static function get_friends_community_id($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT MY_FRIENDS_COMMUNIY.community_id";
+ $sql .= " FROM community as USER_COMMUNITY, sub_community, community as MY_FRIENDS_COMMUNIY, community_type_master";
+ $sql .= " WHERE USER_COMMUNITY.community_id = '$user_community_id'";
+ $sql .= " and USER_COMMUNITY.community_id = sub_community.community_id";
+ $sql .= " and sub_community.sub_community_id = MY_FRIENDS_COMMUNIY.community_id";
+ $sql .= " AND MY_FRIENDS_COMMUNIY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D20')."'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_friends_id_array($user_community_id) {
+
+ static $cache_rows;
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ if (is_array($cache_rows[$user_community_id])) {
+ return $cache_rows[$user_community_id];
+ }
+
+ $sql = "SELECT user_info.user_community_id";
+ $sql .= " FROM community, sub_community, community as FRIENDS_COMMUNITY, community_type_master, community_member, user_info, community as USER_COMMUNITY,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE community.community_id = '$user_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id";
+ $sql .= " AND FRIENDS_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D20')."'";
+ $sql .= " AND FRIENDS_COMMUNITY.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ $friends_id_array = array();
+ foreach ($row_array as $row) {
+ array_push($friends_id_array, $row['user_community_id']);
+ }
+
+ $cache_rows[$user_community_id] = $friends_id_array;
+
+ return $friends_id_array;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë (simple)
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_simple_friends_row_array($user_community_id) {
+
+ static $cache_rows;
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ if (is_array($cache_rows[$user_community_id])) {
+ return $cache_rows[$user_community_id];
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£id¤Î¼èÆÀ
+ $sql = "SELECT
+ FRIENDS_COMMUNITY.community_id
+ FROM
+ community,
+ sub_community,
+ community as FRIENDS_COMMUNITY
+ WHERE
+ community.community_id = '$user_community_id'
+ AND community.community_id = sub_community.community_id
+ AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id
+ AND FRIENDS_COMMUNITY.community_type_code = '20'";
+
+ $row = ACSDB::_get_row($sql);
+ $friends_community_id = $row['community_id'];
+
+ // 2009.09.02 /
+ if ($friends_community_id == NULL || $friends_community_id == '') {
+ return array();
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¼èÆÀ
+ $sql = "SELECT
+ mmb.user_community_id,
+ usrcom.community_name,
+ img.file_id
+ FROM
+ (community_member AS mmb
+ INNER JOIN community AS usrcom ON mmb.user_community_id =
+ usrcom.community_id)
+ LEFT JOIN community_image_file AS img ON usrcom.community_id =
+ img.community_id
+ WHERE
+ mmb.community_id = '$friends_community_id'
+ AND usrcom.delete_flag != 't'
+ ORDER BY
+ mmb.user_community_id";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ $cache_rows[$user_community_id] = $row_array;
+
+ return $row_array;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_friends_row_array($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT user_info.user_community_id, USER_NAME_C.contents_value as user_name, USER_COMMUNITY.community_name, USER_COMMUNITY.file_id";
+ $sql .= " FROM community, sub_community, community as FRIENDS_COMMUNITY, community_type_master, community_member,";
+ $sql .= " (community LEFT OUTER JOIN community_image_file USING(community_id)) as USER_COMMUNITY, user_info,";
+ $sql .= " contents as USER_NAME_C, contents_type_master as USER_NAME_CTM,"; // »á̾
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE community.community_id = '$user_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id";
+ $sql .= " AND FRIENDS_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D20')."'";
+ $sql .= " AND FRIENDS_COMMUNITY.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = USER_COMMUNITY.community_id";
+ $sql .= " AND USER_COMMUNITY.community_id = user_info.user_community_id";
+ // »á̾
+ $sql .= " AND USER_COMMUNITY.community_id = USER_NAME_C.community_id";
+ $sql .= " AND USER_NAME_C.contents_type_code = USER_NAME_CTM.contents_type_code";
+ $sql .= " AND USER_NAME_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D01')."'";
+
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+
+ $sql .= " ORDER BY user_info.user_id ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¿Í¿ô¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_friends_row_array_num($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT count(*)";
+ $sql .= " FROM community, sub_community, community as FRIENDS_COMMUNITY, community_type_master, community_member,";
+ $sql .= " community as USER_COMMUNITY, contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂÎ
+
+ $sql .= " WHERE community.community_id = '$user_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id";
+ $sql .= " AND FRIENDS_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D20')."'";
+ $sql .= " AND FRIENDS_COMMUNITY.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = USER_COMMUNITY.community_id";
+
+ // Á´ÂÎ=Èó¸ø³«¤ò½ü¤¯
+ $sql .= " AND USER_COMMUNITY.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+ $sql .= " AND SELF_OLM.open_level_name != '".ACSMsg::get_mst('open_level_master','D03')."'";
+
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND USER_COMMUNITY.delete_flag != 't'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤«¤É¤¦¤«
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID
+ * @return true(¥Þ¥¤¥Õ¥ì¥ó¥º¤Ç¤¢¤ë) / false(¥Þ¥¤¥Õ¥ì¥ó¥º¤Ç¤Ï¤Ê¤¤)
+ */
+ static function is_friends($user_community_id, $target_user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+ $target_user_community_id = pg_escape_string($target_user_community_id);
+
+ if ($target_user_community_id == NULL || $target_user_community_id == '') {
+ return 0;
+ }
+
+ $sql = "SELECT count(*)";
+
+ $sql .= " FROM community, sub_community, community as FRIENDS_COMMUNITY, community_type_master, community_member";
+
+ $sql .= " WHERE community.community_id = '$user_community_id'";
+ $sql .= " AND community.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = FRIENDS_COMMUNITY.community_id";
+ $sql .= " AND FRIENDS_COMMUNITY.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D20')."'";
+ $sql .= " AND FRIENDS_COMMUNITY.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = '$target_user_community_id'";
+
+ $value = ACSDB::_get_value($sql);
+ return $value;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤¬friends_id_array¤Ë´Þ¤Þ¤ì¤ë¤«
+ *
+ * @param $acs_user_info_row ACS¥æ¡¼¥¶¾ðÊó
+ * @param $target_user_community_id ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID
+ * @return true(¥Þ¥¤¥Õ¥ì¥ó¥º¤Ç¤¢¤ë) / false(¥Þ¥¤¥Õ¥ì¥ó¥º¤Ç¤Ï¤Ê¤¤)
+ */
+ static function is_in_friends_id_array($acs_user_info_row, $target_user_community_id) {
+ if (in_array($target_user_community_id, $acs_user_info_row['friends_id_array'])) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ static function get_friends_group_row_array($user_community_id) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ¤¹¤ë
+ $friends_community_id = ACSUser::get_friends_community_id($user_community_id);
+
+ $sql = "SELECT FRIENDS_GROUP_COMMUNITY.community_id, FRIENDS_GROUP_COMMUNITY.community_name";
+ $sql .= " FROM community as FRIENDS_COMMUNITY, sub_community, community as FRIENDS_GROUP_COMMUNITY";
+ $sql .= " WHERE FRIENDS_COMMUNITY.community_id = '$friends_community_id'";
+ $sql .= " AND FRIENDS_COMMUNITY.community_id = sub_community.community_id";
+ $sql .= " AND sub_community.sub_community_id = FRIENDS_GROUP_COMMUNITY.community_id";
+ $sql .= " ORDER BY FRIENDS_GROUP_COMMUNITY.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î°ìÍ÷ (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_community_row_array($user_community_id) {
+
+ static $cache_rows;
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ if (is_array($cache_rows[$user_community_id])) {
+ return $cache_rows[$user_community_id];
+ }
+
+ $sql = "SELECT *";
+ $sql .= " FROM community, community_type_master, community_member,";
+ $sql .= " contents as SELF_C, contents_type_master as SELF_CTM, open_level_master as SELF_OLM"; // ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂÎ
+ $sql .= " WHERE community.community_type_code = community_type_master.community_type_code";
+ $sql .= " AND community_type_master.community_type_name = '".ACSMsg::get_mst('community_type_master','D40')."'";
+ $sql .= " AND community.community_id = community_member.community_id";
+ $sql .= " AND community_member.user_community_id = '$user_community_id'";
+ // ºï½ü¥Õ¥é¥°OFF
+ $sql .= " AND community.delete_flag != 't'";
+ // ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈÏ°Ï
+ $sql .= " AND community.community_id = SELF_C.community_id";
+ $sql .= " AND SELF_C.contents_type_code = SELF_CTM.contents_type_code";
+ $sql .= " AND SELF_C.open_level_code = SELF_OLM.open_level_code";
+ $sql .= " AND SELF_CTM.contents_type_name = '".ACSMsg::get_mst('contents_type_master','D00')."'";
+
+ $sql .= " ORDER BY community.community_name ASC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ $cache_rows[$user_community_id] = $row_array;
+
+ return $row_array;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function set_friends($user_community_id, $target_user_community_id) {
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID
+ $friends_community_id = ACSUser::get_friends_community_id($user_community_id);
+ $target_friends_community_id = ACSUser::get_friends_community_id($target_user_community_id);
+
+ // ¼«Ê¬¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¤ËÁê¼ê¤òÄɲ乤ë
+ $form = array(
+ 'community_id' => $friends_community_id,
+ 'user_community_id' => $target_user_community_id,
+ 'community_member_type_code' => ''
+ );
+ $ret = ACSCommunityMemberModel::insert_community_member($form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // Áê¼ê¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¤Ë¼«Ê¬¤òÄɲ乤ë
+ $form = array(
+ 'community_id' => $target_friends_community_id,
+ 'user_community_id' => $user_community_id,
+ 'community_member_type_code' => ''
+ );
+ $ret = ACSCommunityMemberModel::insert_community_member($form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤òºï½ü¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function delete_friends($user_community_id, $target_user_community_id) {
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID
+ $friends_community_id = ACSUser::get_friends_community_id($user_community_id);
+ $target_friends_community_id = ACSUser::get_friends_community_id($target_user_community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º
+ $friends_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D20'), $community_type_master_array);
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D30'), $community_type_master_array);
+
+ $user_community_id = pg_escape_string($user_community_id);
+ $target_user_community_id = pg_escape_string($target_user_community_id);
+
+
+ // (1) ¸ß¤¤¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¤«¤éºï½ü
+ $sql = "DELETE";
+ $sql .= " FROM community_member";
+ $sql .= " WHERE (community_id = '$friends_community_id' OR community_id = '$target_friends_community_id')";
+ $sql .= " AND (user_community_id = '$target_user_community_id' OR user_community_id = '$user_community_id')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+
+ // (2) ¸ß¤¤¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤«¤éºï½ü
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+ $target_friends_group_row_array = ACSUser::get_friends_group_row_array($target_user_community_id);
+
+ $friends_group_community_id_array = array();
+ foreach ($friends_group_row_array as $friends_group_row) {
+ array_push($friends_group_community_id_array, $friends_group_row['community_id']);
+ }
+ foreach ($target_friends_group_row_array as $target_friends_group_row) {
+ array_push($friends_group_community_id_array, $target_friends_group_row['community_id']);
+ }
+
+ // ºï½üÂоݤȤʤë¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV
+ if ($friends_group_community_id_array) {
+ $friends_group_community_id_csv = implode(',', $friends_group_community_id_array);
+ } else {
+ $friends_group_community_id_csv = 'null';
+ }
+
+ // ºï½ü
+ $sql = "DELETE";
+ $sql .= " FROM community_member";
+ $sql .= " WHERE community_id IN ($friends_group_community_id_csv)";
+ $sql .= " AND (user_community_id = '$target_user_community_id' OR user_community_id = '$user_community_id')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£¤òºîÀ®¤¹¤ë (¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£¤¬Â¸ºß¤·¤Ê¤¤¤È¤)
+ */
+ function set_friends_community($user_community_id) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É
+ $friends_community_type_code = array_search(ACSMsg::get_mst('community_type_master','D20'), $community_type_master_array);
+
+ $user_community_id = pg_escape_string($user_community_id);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ (community)
+ $friends_community_id_seq = ACSDB::get_next_seq('community_id_seq');
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_type_code)";
+ $sql .= " VALUES ('$friends_community_id_seq', '$friends_community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£¤ò¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤È¤¹¤ë (sub_community)
+ $sql = "INSERT INTO sub_community";
+ $sql .= " (community_id, sub_community_id)";
+ $sql .= " VALUES ('$user_community_id', '$friends_community_id_seq')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ return $friends_community_id_seq;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥á¥ó¥Ð¤ò¹¹¿·¤¹¤ë
+ *
+ * @param ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥á¥ó¥Ð¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function update_friends_group_member($form) {
+ $org_form = $form;
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×̾
+ $sql = "UPDATE community";
+ $sql .= " SET community_name = $form[community_name]";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // DELETE
+ $sql = "DELETE";
+ $sql .= " FROM community_member";
+ $sql .= " WHERE community_id = $form[community_id]";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ $form = $org_form;
+
+ // INSERT
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $trusted_community_id = pg_escape_string($trusted_community_id);
+ $community_member_form = array(
+ 'community_id' => $form['community_id'],
+ 'user_community_id' => $trusted_community_id,
+ 'community_member_type_code' => ''
+ );
+ $ret = ACSCommunityMemberModel::insert_community_member($community_member_form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó (Ï¢ÁÛÇÛÎó)
+ * @return ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function set_friends_group($form) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥Þ¥¹¥¿
+ $community_type_master_array = ACSDB::get_master_array('community_type');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼ïÊÌ¥³¡¼¥É
+ $community_type_code = array_search(ACSMsg::get_mst('community_type_master','D30'), $community_type_master_array);
+ // ¥Õ¥ì¥ó¥º¥³¥ß¥å¥Ë¥Æ¥£ID
+ $friends_community_id = ACSUser::get_friends_community_id($form['user_community_id']);
+
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ $community_id_seq = ACSDB::get_next_seq('community_id_seq');
+
+ // INSERT
+ $sql = "INSERT INTO community";
+ $sql .= " (community_id, community_name, community_type_code)";
+ $sql .= " VALUES ($community_id_seq, $form[community_name], '$community_type_code')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // INSERT
+ $sql = "INSERT INTO sub_community";
+ $sql .= " (community_id, sub_community_id)";
+ $sql .= " VALUES ('$friends_community_id', '$community_id_seq')";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $community_id_seq;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤òºï½ü¤¹¤ë
+ *
+ * @param ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function delete_friends_group($friends_group_community_id) {
+ $friends_group_community_id = pg_escape_string($friends_group_community_id);
+
+ $sql = "DELETE";
+ $sql .= " FROM community";
+ $sql .= " WHERE community_id = '$friends_group_community_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+
+
+ /**
+ * ¥Ç¥Õ¥©¥ë¥È¤Î URL ¤òÊÖ¤¹
+ *
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ static function get_default_image_url ($view_mode) {
+ if ($view_mode == 'thumb') {
+ return ACS_DEFAULT_USER_IMAGE_FILE_THUMB;
+ } else {
+ return ACS_DEFAULT_USER_IMAGE_FILE;
+ }
+ }
+
+ /**
+ * image_url¤ò²Ã¹©¤¹¤ë
+ *
+ * @param user_community_id
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ */
+ static function get_image_url($user_community_id, $view_mode = '') {
+ $file_id = ACSCommunityImageFileModel::get_file_id($user_community_id);
+
+ if ($file_id != '') {
+ $image_url = SCRIPT_PATH . '?';
+ $image_url .= MODULE_ACCESSOR . '=User';
+ $image_url .= '&' . ACTION_ACCESSOR . '=UserImage';
+ $image_url .= '&id=' . $user_community_id;
+ $image_url .= '&mode=' . $view_mode;
+ } else {
+ $image_url = ACSUser::get_default_image_url($view_mode);
+ }
+
+ return $image_url;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¾ðÊó¤ò¹¹¿·¤¹¤ë¡Ê´ÉÍý¼Ô¡Ë
+ * name¡¤password¡¤mail_addr ¤Î¤ß¹¹¿·ÂоݤȤʤë
+ * @param $form¡¡Êѹ¹¾ðÊó
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function update_user_info($form) {
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É
+ $user_name_contents_type_code = array_search(ACSMsg::get_mst('contents_type_master','D01'), $contents_type_master_array);
+ $mail_addr_contents_type_code = array_search(ACSMsg::get_mst('contents_type_master','D02'), $contents_type_master_array);
+
+ $org_form = $form;
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥æ¡¼¥¶ID¤¬Êѹ¹¤µ¤ì¤¿¾ì¹ç
+ if ($form['old_user_id'] != $form['user_id']) {
+ // (0) ¥æ¡¼¥¶ID
+ $sql = "UPDATE user_info";
+ $sql .= " SET user_id = $form[user_id]";
+ $sql .= " WHERE user_community_id = $form[user_community_id]";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // ¥Ñ¥¹¥ï¡¼¥É¥æ¡¼¥¶¤Î¾ì¹ç
+ if (ACSSystem::is_htpasswd_user($org_form['old_user_id'])) {
+ $ret = ACSSystem::update_passwd_with_userid($org_form['user_id'], $org_form['old_user_id']);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ }
+
+ }
+
+ // (1) »á̾
+ $sql = "UPDATE contents";
+ $sql .= " SET contents_value = $form[user_name]";
+ $sql .= " WHERE community_id = $form[user_community_id]";
+ $sql .= " AND contents_type_code = '$user_name_contents_type_code'";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // (2) ¥á¡¼¥ë¥¢¥É¥ì¥¹
+ $sql = "UPDATE contents";
+ $sql .= " SET contents_value = $form[mail_addr]";
+ $sql .= " WHERE community_id = $form[user_community_id]";
+ $sql .= " AND contents_type_code = '$mail_addr_contents_type_code'";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ // (3) ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
+ if($org_form['passwd_change'] == 'change_on'){
+ $ret = ACSSystem::update_passwd($org_form['user_id'], $org_form['passwd']);
+ }
+ return $ret;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¤òºï½ü¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶ID
+ * @return true(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function delete_user_community($user_community_id) {
+ $user_community_id = pg_escape_string($user_community_id);
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // (1) ¥³¥ß¥å¥Ë¥Æ¥£¤«¤éºï½ü¤¹¤ë
+ $sql = "UPDATE community";
+ $sql .= " SET delete_flag = 't'";
+ $sql .= " WHERE community_id = '$user_community_id'";
+
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ // (2) ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
+ $ret = ACSSystem::delete_passwd($user_community_id);
+
+ return $ret;
+ }
+
+ /**
+ * ÂÀ×¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $form ÂÀ×¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_footprint($form) {
+
+ ACSLib::escape_sql_array($form);
+
+ $sql = "INSERT INTO footprint
+ (community_id, visitor_community_id, contents_type_code,
+ contents_title, contents_link_url, contents_date, post_date)
+ VALUES
+ (" . $form['community_id'] . ", " . $form['visitor_community_id'] . ", " .
+ "'" . $form['contents_type_code'] . "', '" . $form['contents_title'] . "', " .
+ "'" . $form['contents_link_url'] . "', '" . $form['contents_date'] . "', " .
+ "'" . $form['post_date'] . "')";
+
+ $ret = ACSDB::_do_query($sql);
+
+ return $ret;
+ }
+
+ /**
+ * ÂÀ×¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * $days ¥Ç¡¼¥¿¼èÆÀÆü¿ô
+ * @return $row(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function get_footprint_row($user_community_id, $days=0) {
+
+ // Æü¿ô»ØÄ꤬¤¢¤ë¾ì¹ç
+ if($days != 0){
+ $where = ACSLib::get_sql_condition_from_today("foot.post_date", $days);
+ }
+
+ $ret = ACSUser::get_footprint_list($user_community_id, $where);
+
+ return $ret;
+ }
+
+ /**
+ * ÂÀ×¾ðÊó°ìÍ÷¤òDB¤è¤ê¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥³¥ß¥å¥Ë¥Æ¥£ID
+ * $where ¾ò·ï
+ * @return $row(À®¸ù) / false(¼ºÇÔ)
+ */
+ static function get_footprint_list($user_community_id, $where="", $select="") {
+
+ $sql = "SELECT ";
+
+ if($select == ""){
+ $sql .= "foot.*, community.community_name, access_ctm.contents_type_name ";
+ }else{
+ $sql = $sql . $select . " ";
+ }
+
+ $sql = $sql . "
+ FROM footprint AS foot,
+ community,
+ contents_type_master AS access_ctm
+ WHERE foot.visitor_community_id = community.community_id AND
+ foot.contents_type_code = access_ctm.contents_type_code AND
+ foot.community_id = " . $user_community_id;
+
+ if($where != ""){
+ $sql = $sql . " AND " . $where;
+ }
+
+ $sql .= " ORDER BY foot.post_date DESC";
+
+ $row_array = ACSDB::_get_row_array($sql);
+
+ return $row_array;
+ }
+
+ /**
+ * ¥é¥¹¥È¥í¥°¥¤¥ó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $acs_user_info_row ACS¥æ¡¼¥¶¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_last_login($acs_user_info_row) {
+
+ $date = date("Y/m/d H:i:s");
+
+ $contents_type_name = ACSMsg::get_mst('contents_type_master','D52');
+ $contents_type_arr = ACSDB::get_master_array(
+ "contents_type",
+ "contents_type_name='" . $contents_type_name . "'");
+
+ $form['community_id'] = $acs_user_info_row['user_community_id'];
+ $form['contents_type_code'] = array_search($contents_type_name, $contents_type_arr);
+ $form['contents_value'] = $date;
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«
+ $form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D10'),
+ $contents_type_name);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+ $ret = ACSCommunity::set_contents($form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥ó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $acs_user_info_row ACS¥æ¡¼¥¶¾ðÊó
+ * @param $css_file ¥Ç¥¶¥¤¥ó¤Î£Ã£Ó£Ó¥Õ¥¡¥¤¥ë̾
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_design($acs_user_info_row,$css_file) {
+
+ $contents_type_name = ACSMsg::get_mst('contents_type_master','D53');
+ $contents_type_arr = ACSDB::get_master_array(
+ "contents_type",
+ "contents_type_name='" . $contents_type_name . "'");
+
+ $form['community_id'] = $acs_user_info_row['user_community_id'];
+ $form['contents_type_code'] = array_search($contents_type_name, $contents_type_arr);
+ $form['contents_value'] = $css_file;
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«
+ $form['open_level_code'] =
+ ACSAccessControl::get_default_open_level_code(
+ ACSMsg::get_mst('community_type_master','D10'),
+ $contents_type_name);
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+ $ret = ACSCommunity::set_contents($form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥í¥°¥¤¥ó¾ðÊó¤òÅÐÏ¿¤¹¤ë
+ *
+ * @param $user ¥æ¡¼¥¶¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function set_login_date(&$user) {
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_community_id = $acs_user_info_row['user_community_id'];
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥í¥°¥¤¥ó¾ðÊó¤Î¥¤¥ó¥µ¡¼¥È
+ $login_id_seq = ACSDB::get_next_seq('login_id_seq');
+ $sql = "INSERT INTO login_info";
+ $sql .= " (logout_id, community_id, login_date, logout_date)";
+ $sql .= " VALUES (" . $login_id_seq. "," . $user_community_id . ", CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ $user->setAttribute('logout_id', $login_id_seq);
+ return $ret;
+ }
+
+ /**
+ * ¥¢¥¯¥»¥¹Ëè¤Ë¥í¥°¥¢¥¦¥È»þ´Ö¤ò¹¹¿·¤¹¤ë
+ *
+ * @param $user ¥æ¡¼¥¶¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function acs_login_date(&$user) {
+
+ $login_id_seq = $user->getAttribute('logout_id');
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥í¥°¥¤¥ó¾ðÊó¤Î¥¤¥ó¥µ¡¼¥È
+ $sql = "UPDATE login_info";
+ $sql .= " SET ";
+ $sql .= " logout_date = CURRENT_TIMESTAMP, ";
+ $sql .= " use_button_flg = FALSE ";
+ $sql .= " WHERE logout_id = " . $login_id_seq. "";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * ¥í¥°¥¢¥¦¥È¾ðÊó¤Ë¥í¥°¥¢¥¦¥È»þ´Ö¤ò¹¹¿·¤¹¤ë
+ *
+ * @param $user ¥æ¡¼¥¶¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function upd_login_date(&$user) {
+
+ $login_id_seq = $user->getAttribute('logout_id');
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ // ¥í¥°¥¤¥ó¾ðÊó¤Î¥¤¥ó¥µ¡¼¥È
+ $sql = "UPDATE login_info";
+ $sql .= " SET ";
+ $sql .= " logout_date = CURRENT_TIMESTAMP, ";
+ $sql .= " use_button_flg = TRUE ";
+ $sql .= " WHERE logout_id = " . $login_id_seq. "";
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+ /**
+ * image_url¤òopen_levelÊ̤˼èÆÀ¤¹¤ë
+ *
+ * @param user_community_id ¥æ¡¼¥¶¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ * @param open_level_code_row ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É¤Î¹Ô
+ * @param view_mode ɽ¼¨¥â¡¼¥É : NULL, thumb, rss
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function get_image_url_with_open_level($user_community_id, $open_level_code_row, $view_mode = '') {
+ $row = ACSCommunityImageFileModel::get_file_id_with_open_level($user_community_id);
+
+ $image_url = array();
+ for ($i = 0; $i < count($open_level_code_row); $i++) {
+ if ($row && $row['file_id_ol' . $open_level_code_row[$i]] != '') {
+ $image_url[$i] = SCRIPT_PATH . '?';
+ $image_url[$i] .= MODULE_ACCESSOR . '=User';
+ $image_url[$i] .= '&' . ACTION_ACCESSOR . '=EditProfileImageDisp';
+ $image_url[$i] .= '&id=' . $user_community_id;
+ $image_url[$i] .= '&mode=' . $view_mode;
+ $image_url[$i] .= '&open_level_code=' . $open_level_code_row[$i];
+ } else {
+ $image_url[$i] = ACSUser::get_default_image_url($view_mode);
+ }
+ }
+
+ return $image_url;
+ }
+
+ /**
+ * ¥í¥°¥¤¥ó¾ðÊó¤òºï½ü¤¹¤ë
+ *
+ * @param $before_date ¸½ºßÆü»þ¤è¤ê²¿ÆüÁ°¤è¤ê²áµî¤Î¥í¥°¥¤¥ó¾ðÊó¤ò¾Ã¤¹¤«
+ * @param $use_button_flg ¥í¥°¥¢¥¦¥È¥Ü¥¿¥ó²¡²¼Í̵¤Ç¾Ã¤¹¾Ã¤µ¤Ê¤¤¤òÊѤ¨¤ë¤«
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function delete_login_info($before_date, $use_button_flg = NULL) {
+
+ // BEGIN
+ ACSDB::_do_query("BEGIN");
+
+ $sql = "DELETE";
+ $sql .= " FROM ";
+ $sql .= " login_info";
+ $sql .= " WHERE ";
+ $sql .= " login_date < current_timestamp + '-$before_date days'";
+ if ($use_button_flg) {
+ $sql .= " and use_button_flg = '" . $use_button_flg . "'";
+ }
+ $ret = ACSDB::_do_query($sql);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ return $ret;
+ }
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ return $ret;
+ }
+
+
+ /**
+ * ¥í¥°¥¤¥ó¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶ID
+ * @return ¥í¥°¥¤¥ó¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_login_info_row_array($user_id) {
+
+ static $cache_rows;
+
+ $user_id = pg_escape_string($user_id);
+
+ if (is_array($cache_rows[$user_id])) {
+ return $cache_rows[$user_id];
+ }
+
+ $sql = "SELECT community.community_id,";
+ $sql .= " community.community_name,";
+ $sql .= " contents.contents_value,";
+ $sql .= " user_info.user_id,";
+ $sql .= " login_info.login_date,";
+ $sql .= " login_info.logout_date,";
+ $sql .= " login_info.use_button_flg";
+ $sql .= " FROM community,";
+ $sql .= " contents,";
+ $sql .= " user_info,";
+ $sql .= " login_info";
+ $sql .= " WHERE community.community_id = '$user_id'";
+ $sql .= " AND community.community_id = login_info.community_id";
+ $sql .= " AND community.community_id = user_info.user_community_id";
+ $sql .= " AND community.community_id = contents.community_id";
+ $sql .= " AND contents.contents_type_code = '01'";
+ $sql .= " ORDER BY login_info.login_date DESC";
+
+ $row = ACSDB::_get_row_array($sql);
+
+ $cache_rows[$user_id] = $row;
+
+ return $row;
+ }
+
+ /**
+ * ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param ¥æ¡¼¥¶ID
+ * @return ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó (Ï¢ÁÛÇÛÎó)
+ */
+ static function get_user_info_row($user_id) {
+
+ $sql = "SELECT community.community_id,";
+ $sql .= " community.community_name,";
+ $sql .= " contents.contents_value as user_name,";
+ $sql .= " user_info.user_id";
+ $sql .= " FROM community,";
+ $sql .= " contents,";
+ $sql .= " user_info";
+ $sql .= " WHERE community.community_id = '$user_id'";
+ $sql .= " AND community.community_id = user_info.user_community_id";
+ $sql .= " AND community.community_id = contents.community_id";
+ $sql .= " AND contents.contents_type_code = '01'";
+
+ $row = ACSDB::_get_row($sql);
+
+ return $row;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ACS User Folder
+ *
+ * @author kuwayama
+ * @version $Revision: 1.13 $ $Date: 2008/04/24 16:00:00 y-yuki Exp $
+ */
+require_once(ACS_CLASS_DIR . 'ACSGenericFolder.class.php');
+
+define('_ACSUSERFOLDER_COMMUNITY_TYPE_MASTER',
+ ACSMsg::get_mst('community_type_master','D10'));
+
+class ACSUserFolder extends ACSGenericFolder
+{
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¥¿¥¤¥×̾ */
+ var $community_type_name = _ACSUSERFOLDER_COMMUNITY_TYPE_MASTER;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param $user_community_id
+ * @param $acs_user_info_row ¥¢¥¯¥»¥¹¼Ô¾ðÊó
+ * @param $folder_id
+ */
+ function ACSUserFolder ($user_community_id, $acs_user_info_row, $folder_id) {
+ /* ¥Õ¥©¥ë¥ÀID¤Î»ØÄ꤬¤Ê¤¤¾ì¹ç¡¢¥ë¡¼¥È¥Õ¥©¥ë¥À¤ò¼èÆÀ¤¹¤ë */
+ if ($folder_id == "") {
+ $folder_row = $this->get_root_folder_row($user_community_id);
+
+ $folder_id = $folder_row['folder_id'];
+ }
+
+ // ¥æ¡¼¥¶¥Õ¥©¥ë¥À¤Ç¤Ï¡¢¼èÆÀÂоݤΥե©¥ë¥À¾ðÊó¤Èɽ¼¨¤¹¤ë¥Õ¥©¥ë¥À¤ÏƱ°ì
+ parent::ACSGenericFolder($user_community_id, $acs_user_info_row, $folder_id, array($folder_id));
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¸¡º÷
+ *
+ * @param $user_community_id
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_folder_row_array($user_community_id, $form) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM folder";
+ $sql .= " WHERE folder.community_id = '$user_community_id'";
+ $sql .= " AND folder.parent_folder_id is not null";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " folder.folder_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR folder.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ORDER
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY folder.update_date DESC";
+ } else {
+ $sql .= " ORDER BY folder.folder_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¸¡º÷
+ *
+ * @param $user_community_id
+ * @param $form ¸¡º÷¾ò·ï
+ * @return ¥Õ¥©¥ë¥À¾ðÊó¤ÎÇÛÎó
+ */
+ function search_file_info_row_array($user_community_id, $form) {
+ $user_community_id = pg_escape_string($user_community_id);
+
+ $sql = "SELECT *";
+ $sql .= " FROM folder, folder_file, file_info";
+ $sql .= " WHERE folder.community_id = '$user_community_id'";
+ $sql .= " AND folder.folder_id = folder_file.folder_id";
+ $sql .= " AND folder_file.file_id = file_info.file_id";
+ $sql .= " AND file_info.owner_community_id = '$user_community_id'";
+
+ if ($form['q'] != '') {
+ $query_array_array = ACSLib::get_query_array_array($form['q']);
+ $where_sql = '';
+ foreach ($query_array_array as $query_array) {
+ if (!count($query_array)) {
+ continue;
+ }
+
+ $sub_where_sql = '';
+ foreach ($query_array as $query) {
+ $query = pg_escape_string($query);
+ ACSLib::escape_ilike($query);
+
+ if ($sub_where_sql != '') {
+ $sub_where_sql .= " OR ";
+ }
+
+ $sub_where_sql .= "(";
+ $sub_where_sql .= " file_info.display_file_name ILIKE '%$query%'";
+ $sub_where_sql .= " OR file_info.comment ILIKE '%$query%'";
+ $sub_where_sql .= ")";
+ }
+
+ if ($sub_where_sql != '') {
+ if ($where_sql != '') {
+ $where_sql .= " AND ";
+ }
+ $where_sql .= "($sub_where_sql)";
+ }
+ }
+
+ if ($where_sql != '') {
+ $sql .= " AND ($where_sql)";
+ }
+ }
+ //
+
+ // ORDER
+ if ($form['order'] == 'update_date') {
+ $sql .= " ORDER BY file_info.update_date DESC";
+ } else {
+ $sql .= " ORDER BY file_info.display_file_name ASC";
+ }
+
+ $row_array = ACSDB::_get_row_array($sql);
+ return $row_array;
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï¥»¥Ã¥È
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À¤Î¾ì¹ç¤Ï¡¢°ìÈ̸ø³«
+ *
+ * @param $community_id
+ */
+ function set_contents_folder_open_level ($community_id) {
+ $open_level_code = "";
+ $open_level_name = "";
+
+ // ¥Õ¥©¥ë¥ÀÁ´ÂΤθø³«ÈÏ°Ï °ìÈ̸ø³«¤ò¼èÆÀ
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D32'));
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D01')) {
+ $open_level_code = $open_level_master_row['open_level_code'];
+ $open_level_name = $open_level_master_row['open_level_name'];
+
+ break;
+ }
+ }
+
+ $this->open_level_code = $open_level_code;
+ $this->open_level_name = $open_level_name;
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¥»¥Ã¥È
+ // ÀßÄê¤Ê¤·
+ $this->set_contents_folder_trusted_community_row_array(array());
+ }
+
+ /**
+ * ¥Õ¥©¥ë¥À¤Ë¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ë¤«
+ *
+ * @param $target_user_info_row ɽ¼¨Âоݥޥ¤¥Ú¡¼¥¸¾ðÊó
+ * @return true / false
+ */
+ function has_privilege ($target_user_info_row) {
+ $ret_folder_obj_array = array();
+
+ /* role_array ¼èÆÀ */
+ $role_array = ACSAccessControl::get_user_community_role_array($this->get_acs_user_info_row(), $target_user_info_row);
+
+ $folder_obj = $this->get_folder_obj();
+ $ret_folder_obj = ACSAccessControl::get_valid_obj_row_array_for_user_community($this->get_acs_user_info_row(), $role_array, array($folder_obj));
+
+ if ($ret_folder_obj) {
+ return true;
+
+ // ¤Ê¤¤¾ì¹ç¤Ï¡¢¥¢¥¯¥»¥¹ÉÔ²Ä
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¿·Ãå¥Õ¥¡¥¤¥ë¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥À¥¤¥¢¥ê¡¼¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * $days ¼èÆÀ¤¹¤ëÆü¿ô(ºÇ¶á²¿Æü´Ö¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ)
+ * @return ¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ function get_new_friends_file_row_array($user_community_id, $days=false, $offset=false) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¾ò·ïcsvʸ»úÎó¼èÆÀ
+ $csv_string = ACSUserFolder::get_new_friends_csv_string($user_community_id);
+
+ $row_array = array();
+
+ if ($csv_string!='') {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥Õ¥©¥ë¥À¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ
+ $row_array = ACSUserFolder::get_new_folder_row_array(
+ $user_community_id, $csv_string, $days, $offset);
+ }
+
+ return $row_array;
+
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Îcsvʸ»úÎó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * @return csvʸ»úÎó
+ */
+ function get_new_friends_csv_string($user_community_id) {
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¼èÆÀ
+ $friends_row_array = ACSUser::get_simple_friends_row_array($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¾ò·ïcsvʸ»úÎó¼èÆÀ
+ $csv_string =
+ ACSLib::get_csv_string_from_array($friends_row_array, 'user_community_id');
+
+ return $csv_string;
+ }
+
+ /**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¿·Ãå¥Õ¥©¥ë¥À¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ *
+ * @param $user_community_id ¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¥À¥¤¥¢¥ê¡¼¤Ø¤Î¥¢¥¯¥»¥¹¼Ô¤È¤Ê¤ë¥æ¡¼¥¶)
+ * @return ¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷ (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)
+ */
+ function get_new_friends_folder_row_array($user_community_id) {
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ÎCSV¤òºîÀ®¤¹¤ë
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¼èÆÀ
+ $friends_row_array = ACSUser::get_simple_friends_row_array($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¾ò·ïcsvʸ»úÎó¼èÆÀ
+ $csv_string =
+ ACSLib::get_csv_string_from_array($friends_row_array, 'user_community_id');
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥Õ¥©¥ë¥À¤Î¿·Ãå¾ðÊó¤ò¼èÆÀ
+ $row_array = ACSUserFolder::get_new_folder_row_array(
+ $user_community_id, $csv_string);
+
+ return $row_array;
+
+ }
+}
+?>
--- /dev/null
+<?php\r
+// $Id: ACSWaiting.class.php,v 1.12 2009/06/19 09:50:00 acs Exp $\r
+\r
+\r
+/*\r
+ * ÂÔµ¡\r
+ */\r
+class ACSWaiting {\r
+\r
+ /**\r
+ * ÂÔµ¡¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $waiting_id ÂÔµ¡ID\r
+ * @return ÂÔµ¡¾ðÊó (Ï¢ÁÛÇÛÎó)\r
+ */\r
+ static function get_waiting_row($waiting_id) {\r
+ $waiting_id = pg_escape_string($waiting_id);\r
+\r
+ $sql = "SELECT *";\r
+ $sql .= " FROM waiting, waiting_type_master, waiting_status_master";\r
+ $sql .= " WHERE waiting.waiting_id = '$waiting_id'";\r
+ $sql .= " AND waiting.waiting_type_code = waiting_type_master.waiting_type_code";\r
+ $sql .= " AND waiting.waiting_status_code = waiting_status_master.waiting_status_code";\r
+\r
+ $row = ACSDB::_get_row($sql);\r
+ return $row;\r
+ }\r
+\r
+ /**\r
+ * ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó¤ò¼èÆÀ¤¹¤ë\r
+ *\r
+ * @param $community_id ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£ID¤Þ¤¿¤Ï¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param ÂÔµ¡¼ïÊÌ̾\r
+ * @param ÂÔµ¡¾õÂÖ̾\r
+ * @return ÂÔµ¡¾ðÊó (Ï¢ÁÛÇÛÎó¤ÎÇÛÎó)\r
+ */\r
+ static function get_waiting_row_array($community_id, $waiting_type_name, $waiting_status_name) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_type_name = pg_escape_string($waiting_type_name);\r
+ $waiting_status_name = pg_escape_string($waiting_status_name);\r
+\r
+ $sql = "SELECT *";\r
+ $sql .= " FROM waiting, community, waiting_type_master, waiting_status_master";\r
+ $sql .= " WHERE waiting.community_id = '$community_id'";\r
+ $sql .= " AND waiting.waiting_community_id = community.community_id";\r
+ $sql .= " AND waiting.waiting_type_code = waiting_type_master.waiting_type_code";\r
+ $sql .= " AND waiting_type_master.waiting_type_name = '$waiting_type_name'";\r
+ $sql .= " AND waiting.waiting_status_code = waiting_status_master.waiting_status_code";\r
+ $sql .= " AND waiting_status_master.waiting_status_name = '$waiting_status_name'";\r
+\r
+ $row_array = ACSDB::_get_row_array($sql);\r
+ return $row_array;\r
+ }\r
+\r
+\r
+ /**\r
+ * ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $user_community_id ÂоݤΥ桼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID (°ÍÍê¦)\r
+ * @param $message ¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(waiting_id) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_waiting_for_add_friends($user_community_id, $waiting_community_id, $message) {\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ $waiting_form = array();\r
+ $waiting_form['waiting_id'] = ACSDB::get_next_seq('waiting_id_seq');\r
+ $waiting_form['community_id'] = $user_community_id;\r
+ $waiting_form['waiting_community_id'] = $waiting_community_id;\r
+ $waiting_form['waiting_type_code'] = array_search(ACSMsg::get_mst('waiting_type_master','D10'), $waiting_type_master_array);\r
+ $waiting_form['waiting_status_code'] = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ $waiting_form['message'] = $message;\r
+ $waiting_form['entry_user_community_id'] = $waiting_community_id;\r
+ $ret = ACSWaitingModel::insert_waiting($waiting_form);\r
+\r
+ if ($ret) {\r
+ $ret = $waiting_form['waiting_id'];\r
+ }\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $user_community_id ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID (°ÍÍê¦)\r
+ * @param $message ¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_waiting_for_join_community($community_id, $waiting_community_id, $message) {\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ $waiting_form = array();\r
+ $waiting_form['waiting_id'] = ACSDB::get_next_seq('waiting_id_seq');\r
+ $waiting_form['community_id'] = $community_id;\r
+ $waiting_form['waiting_community_id'] = $waiting_community_id;\r
+ $waiting_form['waiting_type_code'] = array_search(ACSMsg::get_mst('waiting_type_master','D20'), $waiting_type_master_array);\r
+ $waiting_form['waiting_status_code'] = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ $waiting_form['message'] = $message;\r
+ $waiting_form['entry_user_community_id'] = $waiting_community_id;\r
+ $ret = ACSWaitingModel::insert_waiting($waiting_form);\r
+\r
+ if ($ret) {\r
+ $ret = $waiting_form['waiting_id'];\r
+ }\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $user_community_id ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID (°ÍÍê¦)\r
+ * @param $entry_user_community_id ÅÐÏ¿¤·¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param $message ¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_waiting_for_invite_to_community($community_id, $waiting_community_id, $entry_user_community_id, $message) {\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ $waiting_form = array();\r
+ $waiting_form['waiting_id'] = ACSDB::get_next_seq('waiting_id_seq');\r
+ $waiting_form['community_id'] = $community_id;\r
+ $waiting_form['waiting_community_id'] = $waiting_community_id;\r
+ $waiting_form['waiting_type_code'] = array_search(ACSMsg::get_mst('waiting_type_master','D30'), $waiting_type_master_array);\r
+ $waiting_form['waiting_status_code'] = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ $waiting_form['message'] = $message;\r
+ $waiting_form['entry_user_community_id'] = $entry_user_community_id;\r
+ $ret = ACSWaitingModel::insert_waiting($waiting_form);\r
+\r
+ if ($ret) {\r
+ $ret = $waiting_form['waiting_id'];\r
+ }\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ¿Æ¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $user_community_id ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID (°ÍÍê¦)\r
+ * @param $entry_user_community_id ÅÐÏ¿¤·¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param $message ¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_waiting_for_parent_community_link($community_id, $waiting_community_id, $entry_user_community_id, $message) {\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ $waiting_form = array();\r
+ $waiting_form['waiting_id'] = ACSDB::get_next_seq('waiting_id_seq');\r
+ $waiting_form['community_id'] = $community_id;\r
+ $waiting_form['waiting_community_id'] = $waiting_community_id;\r
+ $waiting_form['waiting_type_code'] = array_search(ACSMsg::get_mst('waiting_type_master','D40'), $waiting_type_master_array);\r
+ $waiting_form['waiting_status_code'] = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ $waiting_form['message'] = $message;\r
+ $waiting_form['entry_user_community_id'] = $entry_user_community_id;\r
+ $ret = ACSWaitingModel::insert_waiting($waiting_form);\r
+\r
+ if ($ret) {\r
+ $ret = $waiting_form['waiting_id'];\r
+ }\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ¿Æ¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë\r
+ *\r
+ * @param $user_community_id ÂоݤΥ³¥ß¥å¥Ë¥Æ¥£ID (¾µÇ§Â¦)\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID (°ÍÍê¦)\r
+ * @param $entry_user_community_id ÅÐÏ¿¤·¤¿¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param $message ¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function set_waiting_for_sub_community_link($community_id, $waiting_community_id, $entry_user_community_id, $message) {\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ $waiting_form = array();\r
+ $waiting_form['waiting_id'] = ACSDB::get_next_seq('waiting_id_seq');\r
+ $waiting_form['community_id'] = $community_id;\r
+ $waiting_form['waiting_community_id'] = $waiting_community_id;\r
+ $waiting_form['waiting_type_code'] = array_search(ACSMsg::get_mst('waiting_type_master','D50'), $waiting_type_master_array);\r
+ $waiting_form['waiting_status_code'] = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ $waiting_form['message'] = $message;\r
+ $waiting_form['entry_user_community_id'] = $entry_user_community_id;\r
+ $ret = ACSWaitingModel::insert_waiting($waiting_form);\r
+\r
+ if ($ret) {\r
+ $ret = $waiting_form['waiting_id'];\r
+ }\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ÂÔµ¡¾õÂÖ¥³¡¼¥É¤ò¹¹¿·¤¹¤ë\r
+ *\r
+ * @param $waiting_community_id ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param $waiting_status_name ÂÔµ¡¾õÂÖ̾\r
+ * @param $reply_message ÊÖ¿®¥á¥Ã¥»¡¼¥¸\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_waiting_status_code($waiting_id, $waiting_status_name, $complete_user_community_id, $reply_message = '') {\r
+ $waiting_id = pg_escape_string($waiting_id);\r
+ $complete_user_community_id = pg_escape_string($complete_user_community_id);\r
+ $reply_message = pg_escape_string($reply_message);\r
+\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+ $waiting_status_code = array_search($waiting_status_name, $waiting_status_master_array);\r
+\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET";\r
+ $sql .= " waiting_status_code = '$waiting_status_code',";\r
+ if ($reply_message != '') {\r
+ $sql .= " reply_message = '$reply_message',";\r
+ }\r
+ $sql .= " complete_user_community_id = '$complete_user_community_id',";\r
+ $sql .= " complete_date = CURRENT_TIMESTAMP";\r
+ $sql .= " WHERE waiting_id = '$waiting_id'";\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ´ØÏ¢¤¹¤ëÂÔµ¡¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤¹¤ë (¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ)\r
+ *\r
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param ÂÔµ¡Â¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_for_add_friends($community_id, $waiting_community_id) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_community_id = pg_escape_string($waiting_community_id);\r
+\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ // ¡Ö¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲáפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_add_friends = array_search(ACSMsg::get_mst('waiting_type_master','D10'), $waiting_type_master_array);\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ // ¡Ö¾µÇ§ºÑ¤ß¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $complete_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D20'), $waiting_status_master_array);\r
+\r
+ // UPDATE\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET"; \r
+ $sql .= " waiting_status_code = '$complete_waiting_status_code'";\r
+ $sql .= " WHERE waiting_type_code = '$waiting_type_code_for_add_friends'";\r
+ $sql .= " AND ((community_id = '$community_id' AND waiting_community_id = '$waiting_community_id')"; \r
+ $sql .= " OR (community_id = '$waiting_community_id' AND waiting_community_id = '$community_id'))"; \r
+ $sql .= " AND waiting_status_code = '$waiting_waiting_status_code'";\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ´ØÏ¢¤¹¤ëÂÔµ¡¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤¹¤ë (¥³¥ß¥å¥Ë¥Æ¥£»²²Ã)\r
+ *\r
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param ÂÔµ¡Â¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_for_join_community($community_id, $waiting_community_id) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_community_id = pg_escape_string($waiting_community_id);\r
+\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ // ¡Ö¥³¥ß¥å¥Ë¥Æ¥£»²²Ã¡×¤ÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_join_community = array_search(ACSMsg::get_mst('waiting_type_master','D20'), $waiting_type_master_array);\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ // ¡Ö¾µÇ§ºÑ¤ß¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $complete_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D20'), $waiting_status_master_array);\r
+\r
+ // UPDATE\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET"; \r
+ $sql .= " waiting_status_code = '$complete_waiting_status_code'"; // ¾µÇ§ºÑ¤ß\r
+ $sql .= " WHERE waiting_type_code = '$waiting_type_code_for_join_community'";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND waiting_community_id = '$waiting_community_id'";\r
+ $sql .= " AND waiting_status_code = '$waiting_waiting_status_code'"; // ¾µÇ§ÂÔ¤Á\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ´ØÏ¢¤¹¤ëÂÔµ¡¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤¹¤ë (¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ)\r
+ *\r
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param ÂÔµ¡Â¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_for_invite_to_community($community_id, $waiting_community_id) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_community_id = pg_escape_string($waiting_community_id);\r
+\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ // ¡Ö¥³¥ß¥å¥Ë¥Æ¥£¾·ÂԡפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_invite_to_community = array_search(ACSMsg::get_mst('waiting_type_master','D30'), $waiting_type_master_array);\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ // ¡Ö¾µÇ§ºÑ¤ß¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $complete_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D20'), $waiting_status_master_array);\r
+\r
+ // UPDATE\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET"; \r
+ $sql .= " waiting_status_code = '$complete_waiting_status_code'"; // ¾µÇ§ºÑ¤ß\r
+ $sql .= " WHERE waiting_type_code = '$waiting_type_code_for_invite_to_community'";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND waiting_community_id = '$waiting_community_id'";\r
+ $sql .= " AND waiting_status_code = '$waiting_waiting_status_code'"; // ¾µÇ§ÂÔ¤Á\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ´ØÏ¢¤¹¤ëÂÔµ¡¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤¹¤ë (¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ)\r
+ *\r
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param ÂÔµ¡Â¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_for_parent_community_link($community_id, $waiting_community_id) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_community_id = pg_escape_string($waiting_community_id);\r
+\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ // ¡Ö¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲáפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_parent_community_link = array_search(ACSMsg::get_mst('waiting_type_master','D40'), $waiting_type_master_array);\r
+ // ¡Ö¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲáפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_sub_community_link = array_search(ACSMsg::get_mst('waiting_type_master','D50'), $waiting_type_master_array);\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ // ¡Ö¾µÇ§ºÑ¤ß¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $complete_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D20'), $waiting_status_master_array);\r
+\r
+ // UPDATE\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET"; \r
+ $sql .= " waiting_status_code = '$complete_waiting_status_code'"; // ¾µÇ§ºÑ¤ß\r
+ $sql .= " WHERE (";\r
+ $sql .= " ("; \r
+ $sql .= " waiting_type_code = '$waiting_type_code_for_parent_community_link'";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND waiting_community_id = '$waiting_community_id'";\r
+ $sql .= " ) OR (";\r
+ $sql .= " waiting_type_code = '$waiting_type_code_for_sub_community_link'";\r
+ $sql .= " AND community_id = '$waiting_community_id'";\r
+ $sql .= " AND waiting_community_id = '$community_id'";\r
+ $sql .= " )";\r
+ $sql .= " )";\r
+ $sql .= " AND waiting_status_code = '$waiting_waiting_status_code'"; // ¾µÇ§ÂÔ¤Á\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * ´ØÏ¢¤¹¤ëÂÔµ¡¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤¹¤ë (¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ)\r
+ *\r
+ * @param ¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @param ÂÔµ¡Â¦¥³¥ß¥å¥Ë¥Æ¥£ID\r
+ * @return À®¸ù(true) / ¼ºÇÔ(false)\r
+ */\r
+ static function update_waiting_for_sub_community_link($community_id, $waiting_community_id) {\r
+ $community_id = pg_escape_string($community_id);\r
+ $waiting_community_id = pg_escape_string($waiting_community_id);\r
+\r
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿\r
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+\r
+ // ¡Ö¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲáפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_parent_community_link = array_search(ACSMsg::get_mst('waiting_type_master','D40'), $waiting_type_master_array);\r
+ // ¡Ö¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲáפÎÂÔµ¡¼ïÊÌ¥³¡¼¥É\r
+ $waiting_type_code_for_sub_community_link = array_search(ACSMsg::get_mst('waiting_type_master','D50'), $waiting_type_master_array);\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+ // ¡Ö¾µÇ§ºÑ¤ß¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $complete_waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D20'), $waiting_status_master_array);\r
+\r
+ // UPDATE\r
+ $sql = "UPDATE waiting";\r
+ $sql .= " SET"; \r
+ $sql .= " waiting_status_code = '$complete_waiting_status_code'"; // ¾µÇ§ºÑ¤ß\r
+ $sql .= " WHERE (";\r
+ $sql .= " ("; \r
+ $sql .= " waiting_type_code = '$waiting_type_code_for_sub_community_link'";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND waiting_community_id = '$waiting_community_id'";\r
+ $sql .= " ) OR (";\r
+ $sql .= " waiting_type_code = '$waiting_type_code_for_parent_community_link'";\r
+ $sql .= " AND community_id = '$waiting_community_id'";\r
+ $sql .= " AND waiting_community_id = '$community_id'";\r
+ $sql .= " )";\r
+ $sql .= " )";\r
+ $sql .= " AND community_id = '$community_id'";\r
+ $sql .= " AND waiting_community_id = '$waiting_community_id'"; \r
+ $sql .= " AND waiting_status_code = '$waiting_waiting_status_code'"; // ¾µÇ§ÂÔ¤Á\r
+\r
+ $ret = ACSDB::_do_query($sql);\r
+ return $ret;\r
+ }\r
+\r
+\r
+ /**\r
+ * °ÍÍêÄÌÃΥ᡼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @param $waiting_id ÂÔµ¡ID\r
+ * @param $return À®¸ù(true) / ¼ºÇÔ(false)\r
+ * @return \r
+ */\r
+ static function send_admission_request_notify_mail($waiting_id) {\r
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿\r
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');\r
+ // ¡Ö¾µÇ§ÂÔ¤Á¡×¤ÎÂÔµ¡¾õÂÖ¥³¡¼¥É\r
+ $waiting_status_code = array_search(ACSMsg::get_mst('waiting_status_master','D10'), $waiting_status_master_array);\r
+\r
+ // ÂÔµ¡¾ðÊó\r
+ $waiting_row = ACSWaiting::get_waiting_row($waiting_id);\r
+\r
+ $system_group = ACSMsg::get_mst('system_config_group','D01');\r
+\r
+\r
+ // ¥·¥¹¥Æ¥àURL\r
+ //$system_base_url = ACSSystemConfig::get_keyword_value('¥·¥¹¥Æ¥à', 'SYSTEM_BASE_URL');\r
+ $system_base_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_URL');\r
+ // ¥·¥¹¥Æ¥à¥í¥°¥¤¥óURL\r
+ //$system_base_login_url = ACSSystemConfig::get_keyword_value('¥·¥¹¥Æ¥à', 'SYSTEM_BASE_LOGIN_URL');\r
+ $system_base_login_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_LOGIN_URL');\r
+\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹ (From:)\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ÍøÍѼԤθÀ¸ìÀßÄê¤ò°ì»þŪ¤ËÊݸ\r
+ $org_lang = ACSMsg::get_lang();\r
+\r
+ // ³Æ¸À¸ì¤Î¥¿¥¤¥È¥ë¤ò¼èÆÀ\r
+ $mail_titles = array();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang_key => $lang_name) {\r
+ ACSMsg::set_lang($lang_key);\r
+ $mail_titles[$lang_key] = \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','MTL%03d')."\n";\r
+ }\r
+\r
+ // ¸À¸ì¤ò°ìö¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D10')) {\r
+ // °ÍÍꦤΥ桼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['waiting_community_id']);\r
+ // °ÍÍꤵ¤ì¤ë¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($waiting_row['community_id']);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $waiting_url = $system_base_login_url . SCRIPT_PATH;\r
+ $waiting_url .= "?" . MODULE_ACCESSOR . "=User";\r
+ $waiting_url .= "&" . ACTION_ACCESSOR . "=WaitingList";\r
+ $waiting_url .= "&id={$waiting_row['community_id']}";\r
+ $waiting_url .= "&waiting_type_code={$waiting_row['waiting_type_code']}";\r
+ $waiting_url .= "&waiting_status_code={$waiting_status_code}";\r
+\r
+ // ¥á¡¼¥ëËÜʸ\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','ADF%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{MESSAGE}" => trim($waiting_row['message']),\r
+ "{WAITING_URL}" => $waiting_url,\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M002');\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D20')) {\r
+ // °ÍÍꦤΥ桼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['waiting_community_id']);\r
+ // °ÍÍꤵ¤ì¤ë¦¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $target_community_row = ACSCommunity::get_community_row($waiting_row['community_id']);\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó¤ÎÇÛÎó\r
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($target_community_row['community_id']);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $waiting_url = $system_base_login_url . SCRIPT_PATH;\r
+ $waiting_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $waiting_url .= "&" . ACTION_ACCESSOR . "=WaitingList";\r
+ $waiting_url .= "&community_id={$waiting_row['community_id']}";\r
+ $waiting_url .= "&waiting_type_code={$waiting_row['waiting_type_code']}";\r
+ $waiting_url .= "&waiting_status_code={$waiting_status_code}";\r
+\r
+ foreach ($community_admin_user_info_row_array as $community_admin_user_info_row) {\r
+\r
+ $community_admin_user_info_row = ACSUser::get_user_profile_row(\r
+ $community_admin_user_info_row['user_community_id']);\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($community_admin_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','JCM%03d'),\r
+ array(\r
+ "{TARGET_COMMUNITY_NAME}" => $target_community_row['community_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{MESSAGE}" => trim($waiting_row['message']),\r
+ "{WAITING_URL}" => $waiting_url,\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M003');\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $community_admin_user_info_row['mail_addr'], null, $subject, $body);\r
+ }\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {\r
+ // ¾·ÂÔ¤µ¤ì¤¿¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $community_row = ACSCommunity::get_community_row($waiting_row['waiting_community_id']);\r
+ // °ÍÍꦤΥ桼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['entry_user_community_id']);\r
+ // °ÍÍꤵ¤ì¤ë¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($waiting_row['community_id']);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $waiting_url = $system_base_login_url . SCRIPT_PATH;\r
+ $waiting_url .= "?" . MODULE_ACCESSOR . "=User";\r
+ $waiting_url .= "&" . ACTION_ACCESSOR . "=WaitingList";\r
+ $waiting_url .= "&id={$waiting_row['community_id']}";\r
+ $waiting_url .= "&waiting_type_code={$waiting_row['waiting_type_code']}";\r
+ $waiting_url .= "&waiting_status_code={$waiting_status_code}";\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸URL\r
+ $community_top_page_url = $system_base_login_url . SCRIPT_PATH;\r
+ $community_top_page_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $community_top_page_url .= "&" . ACTION_ACCESSOR . "=" . DEFAULT_ACTION;\r
+ $community_top_page_url .= "&community_id=" . $community_row['community_id'];\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','ICM%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{COMMUNITY_NAME}" => $community_row['community_name'],\r
+ "{COMMUNITY_URL}" => $community_top_page_url,\r
+ "{MESSAGE}" => trim($waiting_row['message']),\r
+ "{WAITING_URL}" => $waiting_url,\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M004');\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40') || $waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {\r
+ // °ÍÍꦤΥ³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $community_row = ACSCommunity::get_community_row($waiting_row['waiting_community_id']);\r
+ // °ÍÍꦤΥ桼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['entry_user_community_id']);\r
+\r
+ // °ÍÍꤵ¤ì¤ë¦¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $target_community_row = ACSCommunity::get_community_row($waiting_row['community_id']);\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó¤ÎÇÛÎó\r
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($target_community_row['community_id']);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $waiting_url = $system_base_login_url . SCRIPT_PATH;\r
+ $waiting_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $waiting_url .= "&" . ACTION_ACCESSOR . "=WaitingList";\r
+ $waiting_url .= "&community_id={$waiting_row['community_id']}";\r
+ $waiting_url .= "&waiting_type_code={$waiting_row['waiting_type_code']}";\r
+ $waiting_url .= "&waiting_status_code={$waiting_status_code}";\r
+\r
+ foreach ($community_admin_user_info_row_array as $community_admin_user_info_row) {\r
+ $community_admin_user_info_row = ACSUser::get_user_profile_row(\r
+ $community_admin_user_info_row['user_community_id']);\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($community_admin_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','CML%03d'),\r
+ array(\r
+ "{TARGET_COMMUNITY_NAME}" => $target_community_row['community_name'],\r
+ "{COMMUNITY_NAME}" => $community_row['community_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{WAITING_TYPE_NAME}" => $waiting_row['waiting_type_name'],\r
+ "{COMMUNITY_URL}" => $community_top_page_url,\r
+ "{MESSAGE}" => trim($waiting_row['message']),\r
+ "{WAITING_URL}" => $waiting_url,\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M005');\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $community_admin_user_info_row['mail_addr'], null, $subject, $body);\r
+ }\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+ }\r
+\r
+ return $ret;\r
+ }\r
+\r
+ /**\r
+ * °ÍÍê¾µÂú¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë\r
+ *\r
+ * @param $waiting_id ÂÔµ¡ID\r
+ * @param $return À®¸ù(true) / ¼ºÇÔ(false)\r
+ * @return \r
+ */\r
+ static function send_admission_accept_notify_mail($waiting_id) {\r
+ // ÂÔµ¡¾ðÊó\r
+ $waiting_row = ACSWaiting::get_waiting_row($waiting_id);\r
+\r
+ // ¥·¥¹¥Æ¥àURL\r
+ $system_base_url = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');\r
+ // ¥·¥¹¥Æ¥à¥í¥°¥¤¥óURL\r
+ $system_base_login_url = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_LOGIN_URL');\r
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹ (From:)\r
+ $system_mail_addr = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');\r
+\r
+ // ÍøÍѼԤθÀ¸ìÀßÄê¤ò°ì»þŪ¤ËÊݸ\r
+ $org_lang = ACSMsg::get_lang();\r
+\r
+ // ³Æ¸À¸ì¤Î¥¿¥¤¥È¥ë¤ò¼èÆÀ\r
+ $mail_titles = array();\r
+ foreach (ACSMsg::get_lang_list_array() as $lang_key => $lang_name) {\r
+ ACSMsg::set_lang($lang_key);\r
+ $mail_titles[$lang_key] = \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','MTL%03d')."\n";\r
+ }\r
+\r
+ // ¸À¸ì¤ò°ìö¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D10')) {\r
+ // ¾µÇ§Â¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['community_id']);\r
+ // ¾µÇ§¤µ¤ì¤ë¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($waiting_row['waiting_community_id']);\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','AMF%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{MESSAGE}" => trim($waiting_row['reply_message']),\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M006');\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D20')) {\r
+ // ¾µÇ§Â¦¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $community_row = ACSCommunity::get_community_row($waiting_row['community_id']);\r
+ // ¾µÇ§¤µ¤ì¤ë¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($waiting_row['waiting_community_id']);\r
+\r
+ // ÂÔµ¡¾µÇ§URL\r
+ $waiting_url = $system_base_login_url . SCRIPT_PATH;\r
+ $waiting_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $waiting_url .= "&" . ACTION_ACCESSOR . "=WaitingList";\r
+ $waiting_url .= "&community_id={$waiting_row['community_id']}";\r
+ $waiting_url .= "&waiting_type_code={$waiting_row['waiting_type_code']}";\r
+ $waiting_url .= "&waiting_status_code={$waiting_status_code}";\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','ACM%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{COMMUNITY_NAME}" => $community_row['community_name'],\r
+ "{MESSAGE}" => trim($waiting_row['reply_message']),\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M007');\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {\r
+ // ¾·ÂÔ¤µ¤ì¤¿¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $community_row = ACSCommunity::get_community_row($waiting_row['waiting_community_id']);\r
+ // ¾µÇ§Â¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $user_info_row = ACSUser::get_user_profile_row($waiting_row['community_id']);\r
+ // ¾µÇ§¤µ¤ì¤¿Â¦¤Î¥æ¡¼¥¶¾ðÊó\r
+ $target_user_info_row = ACSUser::get_user_profile_row($waiting_row['entry_user_community_id']);\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸URL\r
+ $community_top_page_url = $system_base_login_url . SCRIPT_PATH;\r
+ $community_top_page_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $community_top_page_url .= "&" . ACTION_ACCESSOR . "=" . DEFAULT_ACTION;\r
+ $community_top_page_url .= "&community_id=" . $community_row['community_id'];\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','AIM%03d'),\r
+ array(\r
+ "{TARGET_USER_NAME}" => $target_user_info_row['user_name'],\r
+ "{USER_NAME}" => $user_info_row['user_name'],\r
+ "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'],\r
+ "{COMMUNITY_NAME}" => $community_row['community_name'],\r
+ "{COMMUNITY_URL}" => $community_top_page_url,\r
+ "{MESSAGE}" => trim($waiting_row['reply_message']),\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M004');\r
+\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $target_user_info_row['mail_addr'], null, $subject, $body);\r
+\r
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40') || $waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {\r
+ // ¾µÇ§Â¦¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $community_row = ACSCommunity::get_community_row($waiting_row['community_id']);\r
+ // ¾µÇ§¤µ¤ì¤ë¦¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó\r
+ $target_community_row = ACSCommunity::get_community_row($waiting_row['waiting_community_id']);\r
+\r
+ // ¾µÇ§¤µ¤ì¤ë¦¤Î¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó¤ÎÇÛÎó\r
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($target_community_row['community_id']);\r
+\r
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸URL\r
+ $community_top_page_url = $system_base_login_url . SCRIPT_PATH;\r
+ $community_top_page_url .= "?" . MODULE_ACCESSOR . "=Community";\r
+ $community_top_page_url .= "&" . ACTION_ACCESSOR . "=" . DEFAULT_ACTION;\r
+ $community_top_page_url .= "&community_id=" . $community_row['community_id'];\r
+\r
+ foreach ($community_admin_user_info_row_array as $community_admin_user_info_row) {\r
+ $community_admin_user_info_row = ACSUser::get_user_profile_row(\r
+ $community_admin_user_info_row['user_community_id']);\r
+\r
+ $target_lang = ACSMsg::get_mail_lang_by_inforow($community_admin_user_info_row);\r
+\r
+ // °ìö°ÍÍꤵ¤ì¤ë¦¤Î¸À¸ì¤ËÀßÄꤹ¤ë\r
+ ACSMsg::set_lang($target_lang);\r
+\r
+ $body = $mail_titles[$target_lang];\r
+ $body .= ACSMsg::get_tag_replace( \r
+ ACSMsg::get_serial_msg('lib','ACSWaiting.class.php','ACL%03d'),\r
+ array(\r
+ "{TARGET_COMMUNITY_NAME}" => $target_community_row['community_name'],\r
+ "{COMMUNITY_NAME}" => $community_row['community_name'],\r
+ "{WAITING_TYPE_NAME}" => $waiting_row['waiting_type_name'],\r
+ "{COMMUNITY_URL}" => $community_top_page_url,\r
+ "{MESSAGE}" => trim($waiting_row['reply_message']),\r
+ "{SYSTEM_BASE_URL}" => $system_base_url\r
+ )\r
+ );\r
+ $subject = ACSMsg::get_mdmsg(__FILE__,'M009');\r
+\r
+ $ret = ACSLib::send_mail($system_mail_addr, \r
+ $community_admin_user_info_row['mail_addr'], null, $subject, $body);\r
+ }\r
+ // ¸À¸ì¤ò¸µ¤ËÌ᤹\r
+ ACSMsg::set_lang($org_lang);\r
+ }\r
+\r
+ return $ret;\r
+ }\r
+\r
+}\r
+\r
+?>\r
--- /dev/null
+<?php
+// $Id: ACSWaitingModel.class.php,v 1.1 2006/01/26 06:48:50 w-ota Exp $
+
+
+/*
+ * waiting¥â¥Ç¥ë
+ */
+class ACSWaitingModel {
+
+ /**
+ * waiting INSERT
+ *
+ * @param $form ÂÔµ¡¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¾ðÊó
+ * @return À®¸ù(true) / ¼ºÇÔ(false)
+ */
+ static function insert_waiting($form) {
+ ACSLib::escape_sql_array($form);
+ ACSLib::get_sql_value_array($form);
+
+ $sql = "INSERT INTO waiting";
+ $sql .= " (waiting_id, community_id, waiting_community_id, waiting_type_code, waiting_status_code, message, entry_user_community_id)";
+ $sql .= " VALUES ($form[waiting_id], $form[community_id], $form[waiting_community_id], $form[waiting_type_code], $form[waiting_status_code], $form[message], $form[entry_user_community_id])";
+
+ $ret = ACSDB::_do_query($sql);
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+define('_ACSZIP_ZIP_CMD', 'cd %s;/usr/bin/zip -r %s %s;cd -');
+
+/**
+ * ACS Zip
+ *
+ * @author z-satosi
+ * @version $Revision: 1.2 $ $Date: 2007/03/28 02:26:48 $
+ */
+class ACSZip
+{
+ /* zip¥Õ¥¡¥¤¥ë */
+ var $zip_file;
+
+ /* zip¥Õ¥¡¥¤¥ëºîÀ®»þ¤Î¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê */
+ var $zip_work_dir;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ *
+ * @param string $zip_work_dir zipºîÀ®Íѥ¥¯¥Ç¥£¥ì¥¯¥È¥ê
+ * @param string $zip_file zip¥Õ¥¡¥¤¥ë̾
+ */
+ function ACSZip ($zip_work_dir, $zip_file = "") {
+ $this->zip_work_dir = mb_ereg_replace('/$','',$zip_work_dir);
+ $this->zip_file = $zip_file == "" ?
+ $this->zip_work_dir.'.zip' : dirname($this->zip_work_dir).'/'.$zip_file;
+ $this->initialize();
+ }
+
+ /**
+ * ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¤Î½é´ü²½
+ */
+ function initialize () {
+ $this->clear_zip_file ();
+ $this->clear_work_dir_and_files ();
+ ACSLib::make_dir($this->zip_work_dir);
+ }
+
+ /**
+ * ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¡¦¥Õ¥¡¥¤¥ë¤Î¾Ãµî
+ */
+ function clear_work_dir_and_files () {
+ ACSLib::remove_dir($this->zip_work_dir);
+ }
+
+ /**
+ * zip¥Õ¥¡¥¤¥ë¤Î¾Ãµî
+ */
+ function clear_zip_file () {
+ @unlink($this->zip_file);
+ }
+
+ /**
+ * ¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®(ÅÓÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤â¼«Æ°À¸À®)
+ *
+ * @param string $dir ¥Ç¥£¥ì¥¯¥È¥ê
+ * @param string $name_encoding ÆüËܸì¥Õ¥¡¥¤¥ë¡¦¥Õ¥©¥ë¥À̾¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ * @return mixed Àµ¾ï»þ...¥Õ¥¡¥¤¥ëÆâÍÆ/¥¨¥é¡¼»þ...FALSE
+ */
+ function make_dir ($dir, $name_encoding = '') {
+ // ¥Õ¥©¥ë¥À¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®
+ $dir_array = explode("/", $dir);
+ $dest_dir = $this->zip_work_dir;
+ foreach ($dir_array as $dir) {
+ if ($dir != '') {
+ $dir = $name_encoding != '' ?
+ mb_convert_encoding($dir, $name_encoding) : $dir;
+ $dest_dir .= '/' . $dir;
+ ACSLib::make_dir($dest_dir);
+ }
+ }
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¤ÎÇÛÃÖ(¥Ç¥£¥ì¥¯¥È¥ê¤Î¼«Æ°ºîÀ®)
+ *
+ * @param string $from_file ¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹
+ * @param string $dest_file ¥³¥Ô¡¼Àè¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹(zip_work_dir ¤«¤é¤Î¥Ñ¥¹)
+ * @param string $name_encoding ÆüËܸì¥Õ¥¡¥¤¥ë¡¦¥Õ¥©¥ë¥À̾¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°
+ * @return mixed Àµ¾ï»þ...¥Õ¥¡¥¤¥ëÆâÍÆ/¥¨¥é¡¼»þ...FALSE
+ */
+ function entry ($from_file, $dest_file, $name_encoding = '') {
+
+ $dest_file = mb_ereg_replace( '^/', '', $dest_file);
+
+ // ¥³¥Ô¡¼Àè¤Î¥Õ¥©¥ë¥À¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®
+ $this->make_dir(dirname($dest_file), $name_encoding);
+
+ if ($name_encoding != '') {
+ $dest_file = mb_convert_encoding($dest_file, $name_encoding);
+ }
+ return @copy($from_file, $this->zip_work_dir . '/' . $dest_file);
+ }
+
+ /**
+ * ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¤Î°µ½Ì¤ò¼Â¹Ô¤·¡¢zip¥Õ¥¡¥¤¥ë¤òºîÀ®
+ */
+ function commpress () {
+ $commpress = $this->zip_work_dir;
+ $commpress_cmd = sprintf(_ACSZIP_ZIP_CMD,
+ dirname($this->zip_work_dir),
+ basename($this->zip_file),
+ basename($this->zip_work_dir) . '/');
+
+ return exec($commpress_cmd);
+ }
+
+ /**
+ * zip¥Õ¥¡¥¤¥ë¤Î¼èÆÀ
+ *
+ * @param string $attachement_file_name ¥À¥¦¥ó¥í¡¼¥É»þ¤Î¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤹ¤ë¾ì¹ç
+ */
+ function download ($attachement_file_name = '') {
+
+ $file_name = $attachement_file_name=='' ?
+ basename($this->zip_file) : $attachement_file_name;
+
+ // HTTP¥Ø¥Ã¥À½ÐÎÏ
+ mb_http_output('pass');
+ header("Cache-Control: public, max-age=0");
+ header("Pragma:");
+ header('Content-disposition: attachment; filename="'.$file_name.'"');
+ header("Content-type: application/zip");
+ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+
+ // ¥Õ¥¡¥¤¥ë¤òÆɤ߽Ф¹
+ readfile($this->zip_file);
+ }
+}
+
+?>
--- /dev/null
+<?php
+require_once(MO_PEAR_DIR . "/DB.php");
+
+class ConnectionFactory
+{
+ function getConnection()
+ {
+ $dsn = array (
+ 'phptype' => DB_PHPTYPE,
+ 'hostspec' => DB_HOSTSPEC,
+ 'port' => DB_PORT,
+ 'database' => DB_DATABASE,
+ 'username' => DB_USERNAME,
+ 'password' => DB_PASSWORD
+ );
+
+ $options = array (
+ 'debug' => 2,
+ );
+
+ $db =& DB::connect($dsn, $options);
+ if (DB::isError($db)) {
+ throw new ApplicationException($db->getMessage());
+ }
+
+ return $db;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * DAO¥ª¥Ö¥¸¥§¥¯¥È¤Î´ðÄ쥯¥é¥¹
+ * @access public
+ * @package database/dao
+ * @category DAO
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class DAO
+{
+ /**
+ * ¥Ç¡¼¥¿¥Ù¡¼¥¹¥³¥Í¥¯¥·¥ç¥ó
+ * @var DB_common
+ */
+ protected $db = null;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ * @param Object $db ¥Ç¡¼¥¿¥Ù¡¼¥¹¥³¥Í¥¯¥·¥ç¥ó
+ */
+ function __construct($db)
+ {
+ $this->db = $db;
+ }
+
+ /**
+ * SQLʸ¤ò¼Â¹Ô¤·¡¢ÇÛÎó¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë(SELECTÀìÍÑ)
+ * (¥Ç¡¼¥¿·Á¼°) array([0]=>array([0]=>data, ¡¦¡¦¡¦¡¦)
+ * ¢¨¥ë¡¼¥×½èÍý¤Ê¤É¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤ë¤¿¤á½èÍý¤¬ÃÙ¤¤¡£
+ * (SQL¤Î·ë²Ì¥»¥Ã¥È¤òÇÛÎó¥Ç¡¼¥¿¤Ç¼èÆÀ¤·¤¿¤¤¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤ò¹Ô¤Ê¤Ã¤Æ¤«¤éSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @param string $fetchMode¥Õ¥§¥Ã¥Á¥â¡¼¥É(¥Ç¥Õ¥©¥ë¥È¡§DB_FETCHMODE_ORDERED)
+ * DB_FETCHMODE_ORDERED¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥¤¥ó¥Ç¥Ã¥¯¥¹ÇÛÎó([0][1]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_ASSOC¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤òÏ¢ÁÛÇÛÎó([id][name]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_OBJECT¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥ª¥Ö¥¸¥§¥¯¥È($data->id¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * @return array SQLʸ¤Î¼Â¹Ô·ë²Ì(Á´¥ì¥³¡¼¥É)
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢2¼¡¸µÇÛÎ󥪥֥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execQuerySqlAll($sql, $params = array(),
+ $fetchMode = DB_FETCHMODE_DEFAULT)
+ {
+ $rs = &$this->db->getAll($sql, $params, $fetchMode);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * SQLʸ¤ò¼Â¹Ô¤·¡¢Ï¢ÁÛÇÛÎó¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë(SELECTÀìÍÑ)
+ * ¢¨¥ë¡¼¥×½èÍý¤Ê¤É¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤ë¤¿¤á½èÍý¤¬ÃÙ¤¤¡£
+ * (SQL¤Î·ë²Ì¥»¥Ã¥È¤òÏ¢ÁÛÇÛÎó¥Ç¡¼¥¿¤Ç¼èÆÀ¤·¤¿¤¤(¥×¥ë¥À¥¦¥ó¥ê¥¹¥È)¾ì¹ç¤Ë
+ * »ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦select¤ÎÀèƬ¥«¥é¥à¤ò¥¡¼(key)¤Ë¡¢»Ä¤ê¤Î¥«¥é¥à¤òÃÍÇÛÎó(array)¤È¤·¤Æ
+ * ¼èÆÀ¤¹¤ë¡£
+ * (¥Ç¡¼¥¿·Á¼°) array([key]=>array([0]=>data, ¡¦¡¦¡¦¡¦)
+ * ¡¦select¤Î¥«¥é¥à¤¬2Îó¤·¤«¤Ê¤¤¾ì¹ç¤Ï¡¢ÃͤȤ·¤Æ¼èÆÀ¤¹¤ë¡£
+ * (¥Ç¡¼¥¿·Á¼°) array[key]=>data
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤ò¹Ô¤Ê¤Ã¤Æ¤«¤éSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param boolean $force Ï¢ÁÛÇÛÎó¤Ç¤Ï¤Ê¤¯ÇÛÎó¤Ë¤¹¤ë¤«
+ * (¥Ç¥Õ¥©¥ë¥È¡§false)
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @param string $fetchMode¥Õ¥§¥Ã¥Á¥â¡¼¥É(¥Ç¥Õ¥©¥ë¥È¡§DB_FETCHMODE_ORDERED)
+ * DB_FETCHMODE_ORDERED¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥¤¥ó¥Ç¥Ã¥¯¥¹ÇÛÎó([0][1]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_ASSOC¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤òÏ¢ÁÛÇÛÎó([id][name]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_OBJECT¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥ª¥Ö¥¸¥§¥¯¥È($data->id¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * @param boolean $group ¥¡¼½ÅÊ£»þ¤ËÇÛ²¼¤ÎÇÛÎó¤òÆþ¤ì»Ò¤Ë¤¹¤ë¤«
+ * (¥Ç¥Õ¥©¥ë¥È¡§false)
+ * @return array SQLʸ¤Î¼Â¹Ô·ë²Ì(Á´¥ì¥³¡¼¥É)
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢Ï¢ÁÛÇÛÎ󥪥֥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execQuerySqlAssoc($sql, $force = false, $params = array(),
+ $fetchMode = DB_FETCHMODE_DEFAULT, $group = false)
+ {
+ $rs = &$this->db->getAssoc($sql, $force, $params, $fetchMode, $group);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * SQLʸ¤ò¼Â¹Ô¤·¡¢ºÇ½é¤ÎÇÛÎó¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë(SELECTÀìÍÑ)
+ * ¢¨¥ë¡¼¥×½èÍý¤Ê¤É¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤ë¤¿¤á½èÍý¤¬ÃÙ¤¤¡£
+ * (SQL¤Î·ë²Ì¥»¥Ã¥È¤òÇÛÎó¥Ç¡¼¥¿¤Ç¼èÆÀ¤·¤¿¤¤¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¢¨ºÇ½é¤ÎÇÛÎó¥Ç¡¼¥¿¤ò¼èÆÀ¤·¤¿¸å¡¢·ë²Ì¥»¥Ã¥È¤ò³«Êü¤¹¤ë
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤ò¹Ô¤Ê¤Ã¤Æ¤«¤éSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @param string $fetchMode¥Õ¥§¥Ã¥Á¥â¡¼¥É(¥Ç¥Õ¥©¥ë¥È¡§DB_FETCHMODE_ORDERED)
+ * DB_FETCHMODE_ORDERED¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥¤¥ó¥Ç¥Ã¥¯¥¹ÇÛÎó([0][1]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_ASSOC¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤òÏ¢ÁÛÇÛÎó([id][name]¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * DB_FETCHMODE_OBJECT¡¦¡¦¡¦ÇÛÎó¥Ç¡¼¥¿¤ò¥ª¥Ö¥¸¥§¥¯¥È($data->id¡Ä)¤Ç¼èÆÀ¤¹¤ë
+ * @return array SQLʸ¤Î¼Â¹Ô·ë²Ì(1¥ì¥³¡¼¥É)
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢1¼¡¸µÇÛÎ󥪥֥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execQuerySqlRow($sql, $params = array(),
+ $fetchMode = DB_FETCHMODE_DEFAULT)
+ {
+ $rs = &$this->db->getRow($sql, $params, $fetchMode);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * SQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¢¨¥ë¡¼¥×½èÍý¤Ê¤É¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤ë¤¿¤á½èÍý¤¬ÃÙ¤¤¡£
+ * (SQL¤ò²¿Å٤ⷫ¤êÊÖ¤·¼Â¹Ô¤·¤Ê¤¤¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤ò¹Ô¤Ê¤Ã¤Æ¤«¤éSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @return object SQLʸ¤Î¼Â¹Ô·ë²Ì
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_Result¥ª¥Ö¥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * (INSERT/UPDATE/DELETE¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_OK¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execQuerySql($sql, $params = array())
+ {
+ $rs = &$this->db->query($sql, $params);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * SQL¥¯¥¨¥ê¤Ç¼èÆÀ¤¹¤ë¹Ô¿ô¤ò»ØÄꤹ¤ë(SELECTÀìÍÑ)
+ * (SQL¥¯¥¨¥ê¤Ç¼èÆÀ¤¹¤ë¹Ô¿ô¤òÀ©¸Â¤¹¤ë¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤ò¹Ô¤Ê¤Ã¤Æ¤«¤éSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param int $from ¼èÆÀ³«»Ï¹Ô
+ * @param int $cnt ¼èÆÀ¤¹¤ë·ï¿ô
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @return object SQLʸ¤Î¼Â¹Ô·ë²Ì
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_Result¥ª¥Ö¥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execLimitQuerySql($sql, $from, $cnt, $params = array())
+ {
+ $rs = &$this->db->limitQuery($sql, $from, $cnt, $params);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * ½àÈ÷ºÑ¤ßSQLʸ¤òºîÀ®¤¹¤ë
+ * (executeSQL¤ò¼Â¹Ô¤¹¤ë¤¿¤á»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQLʸ¤Î²òÀÏ¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @return object ½àÈ÷ºÑ¤ßSQLʸ
+ * @throws DatabaseException SQLʸ¤Î²òÀÏ¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function prepareSql($sql)
+ {
+ $sth = &$this->db->prepare($sql);
+
+ if (DB::isError($sth)) {
+ $this->db->rollback();
+ throw new DatabaseException($sth->getMessage());
+ }
+
+ return $sth;
+ }
+
+ /**
+ * ½àÈ÷ºÑ¤ßSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¢¨¥ë¡¼¥×½èÍý¤Ê¤É¤Ë¤Æ»ÈÍѤ¹¤ë¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤Ê¤¤¤¿¤á½èÍý¤¬Áᤤ¡£
+ * (Ʊ¤¸SQL¤ò·«¤êÊÖ¤·¼Â¹Ô¤¹¤ë¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤Ï¤»¤º¤Ë½àÈ÷ºÑ¤ß¤ÎSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param array $params SQLʸ¤Ë¥»¥Ã¥È¤¹¤ë¥Ñ¥é¥á¡¼¥¿
+ * @return object SQLʸ¤Î¼Â¹Ô·ë²Ì
+ * (Select¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_Result¥ª¥Ö¥¸¥§¥¯¥È¤ò¥»¥Ã¥È¤¹¤ë)
+ * (INSERT/UPDATE/DELETE¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_OK¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execSql($sth, $params = array())
+ {
+ $rs = &$this->db->execute($sth, $params);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+
+ /**
+ * ½àÈ÷ºÑ¤ßSQLʸ¤ò¤Þ¤È¤á¤Æ¼Â¹Ô¤¹¤ë(INSERT/UPDATE/DELETEÀìÍÑ)
+ * ¢¨ÇÛÎó¥Ç¡¼¥¿¤ò°ì³çÅÐÏ¿¤¹¤ë¤Ê¤É¤Ë»ÈÍѤ¹¤ë¡£
+ * ¢¨SQL¤Î²òÀϤ¬·«¤êÊÖ¤·¹Ô¤Ê¤ï¤ì¤Ê¤¤¤¿¤á½èÍý¤¬Áᤤ¡£
+ * (Ʊ¤¸SQL¤ò·«¤êÊÖ¤·¼Â¹Ô¤¹¤ë¾ì¹ç¤Ë»ÈÍѤ¹¤ë)
+ * ¡ã½èÍýÆâÍÆ¡ä
+ * ¡¦SQL¤Î²òÀÏ(prepare)¤Ï¤»¤º¤Ë½àÈ÷ºÑ¤ß¤ÎSQLʸ¤ò¼Â¹Ô¤¹¤ë
+ * ¡¦¼Â¹ÔÅÓÃæ¤Ç½èÍý¤¬¼ºÇÔ¤·¤¿¾ì¹ç¡¢°Ê¹ß¤Î¥Ç¡¼¥¿¤Ï½èÍý¤µ¤ì¤Þ¤»¤ó¡£
+ * ¡¦SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë
+ * @access public
+ * @param string $sql SQLʸ
+ * @param array $data SQLʸ¤Ë¥»¥Ã¥È¤¹¤ëÇÛÎó¥Ç¡¼¥¿
+ * @return object SQLʸ¤Î¼Â¹Ô·ë²Ì
+ * (INSERT/UPDATE/DELETE¤¬À®¸ù¤·¤¿¾ì¹ç¡¢DB_OK¤ò¥»¥Ã¥È¤¹¤ë)
+ * @throws DatabaseException SQLʸ¤Î¼Â¹Ô¥¨¥é¡¼¤¬È¯À¸¤·¤¿»þ
+ */
+ function execMultipleSql($sth, $data = array())
+ {
+ $rs = &$this->db->executeMultiple($sth, $data);
+
+ if (DB::isError($rs)) {
+ $this->db->rollback();
+ throw new DatabaseException($rs->getMessage());
+ }
+
+ return $rs;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/***************************************************************************
+
+FeedCreator class v1.7.2
+originally (c) Kai Blankenhorn
+www.bitfolge.de
+kaib@bitfolge.de
+v1.3 work by Scott Reynen (scott@randomchaos.com) and Kai Blankenhorn
+v1.5 OPML support by Dirk Clemens
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+****************************************************************************
+
+
+Changelog:
+
+v1.7.2 10-11-04
+ license changed to LGPL
+
+v1.7.1
+ fixed a syntax bug
+ fixed left over debug code
+
+v1.7 07-18-04
+ added HTML and JavaScript feeds (configurable via CSS) (thanks to Pascal Van Hecke)
+ added HTML descriptions for all feed formats (thanks to Pascal Van Hecke)
+ added a switch to select an external stylesheet (thanks to Pascal Van Hecke)
+ changed default content-type to application/xml
+ added character encoding setting
+ fixed numerous smaller bugs (thanks to Söòen Fuhrmann of golem.de)
+ improved changing ATOM versions handling (thanks to August Trometer)
+ improved the UniversalFeedCreator's useCached method (thanks to Söòen Fuhrmann of golem.de)
+ added charset output in HTTP headers (thanks to Söòen Fuhrmann of golem.de)
+ added Slashdot namespace to RSS 1.0 (thanks to Söòen Fuhrmann of golem.de)
+
+v1.6 05-10-04
+ added stylesheet to RSS 1.0 feeds
+ fixed generator comment (thanks Kevin L. Papendick and Tanguy Pruvot)
+ fixed RFC822 date bug (thanks Tanguy Pruvot)
+ added TimeZone customization for RFC8601 (thanks Tanguy Pruvot)
+ fixed Content-type could be empty (thanks Tanguy Pruvot)
+ fixed author/creator in RSS1.0 (thanks Tanguy Pruvot)
+
+v1.6 beta 02-28-04
+ added Atom 0.3 support (not all features, though)
+ improved OPML 1.0 support (hopefully - added more elements)
+ added support for arbitrary additional elements (use with caution)
+ code beautification :-)
+ considered beta due to some internal changes
+
+v1.5.1 01-27-04
+ fixed some RSS 1.0 glitches (thanks to Stéðhane Vanpoperynghe)
+ fixed some inconsistencies between documentation and code (thanks to Timothy Martin)
+
+v1.5 01-06-04
+ added support for OPML 1.0
+ added more documentation
+
+v1.4 11-11-03
+ optional feed saving and caching
+ improved documentation
+ minor improvements
+
+v1.3 10-02-03
+ renamed to FeedCreator, as it not only creates RSS anymore
+ added support for mbox
+ tentative support for echo/necho/atom/pie/???
+
+v1.2 07-20-03
+ intelligent auto-truncating of RSS 0.91 attributes
+ don't create some attributes when they're not set
+ documentation improved
+ fixed a real and a possible bug with date conversions
+ code cleanup
+
+v1.1 06-29-03
+ added images to feeds
+ now includes most RSS 0.91 attributes
+ added RSS 2.0 feeds
+
+v1.0 06-24-03
+ initial release
+
+
+
+***************************************************************************/
+
+/*** GENERAL USAGE *********************************************************
+
+include("feedcreator.class.php");
+
+$rss = new UniversalFeedCreator();
+$rss->useCached(); // use cached version if age<1 hour
+$rss->title = "PHP news";
+$rss->description = "daily news from the PHP scripting world";
+
+//optional
+$rss->descriptionTruncSize = 500;
+$rss->descriptionHtmlSyndicated = true;
+
+$rss->link = "http://www.dailyphp.net/news";
+$rss->syndicationURL = "http://www.dailyphp.net/".$_SERVER["PHP_SELF"];
+
+$image = new FeedImage();
+$image->title = "dailyphp.net logo";
+$image->url = "http://www.dailyphp.net/images/logo.gif";
+$image->link = "http://www.dailyphp.net";
+$image->description = "Feed provided by dailyphp.net. Click to visit.";
+
+//optional
+$image->descriptionTruncSize = 500;
+$image->descriptionHtmlSyndicated = true;
+
+$rss->image = $image;
+
+// get your news items from somewhere, e.g. your database:
+mysql_select_db($dbHost, $dbUser, $dbPass);
+$res = mysql_query("SELECT * FROM news ORDER BY newsdate DESC");
+while ($data = mysql_fetch_object($res)) {
+ $item = new FeedItem();
+ $item->title = $data->title;
+ $item->link = $data->url;
+ $item->description = $data->short;
+
+ //optional
+ item->descriptionTruncSize = 500;
+ item->descriptionHtmlSyndicated = true;
+
+ $item->date = $data->newsdate;
+ $item->source = "http://www.dailyphp.net";
+ $item->author = "John Doe";
+
+ $rss->addItem($item);
+}
+
+// valid format strings are: RSS0.91, RSS1.0, RSS2.0, PIE0.1 (deprecated),
+// MBOX, OPML, ATOM, ATOM0.3, HTML, JS
+echo $rss->saveFeed("RSS1.0", "news/feed.xml");
+
+
+***************************************************************************
+* A little setup *
+**************************************************************************/
+
+// your local timezone, set to "" to disable or for GMT
+//define("TIME_ZONE","+01:00");
+define("TIME_ZONE","+09:00");
+
+
+
+
+/**
+ * Version string.
+ **/
+define("FEEDCREATOR_VERSION", "FeedCreator 1.7.2");
+
+
+
+/**
+ * A FeedItem is a part of a FeedCreator feed.
+ *
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ * @since 1.3
+ */
+class FeedItem extends HtmlDescribable {
+ /**
+ * Mandatory attributes of an item.
+ */
+ var $title, $description, $link, $image_link, $description2, $post_date;
+
+ /**
+ * Optional attributes of an item.
+ */
+ var $author, $authorEmail, $image, $category, $comments, $guid, $source, $creator;
+
+ /**
+ * Publishing date of an item. May be in one of the following formats:
+ *
+ * RFC 822:
+ * "Mon, 20 Jan 03 18:05:41 +0400"
+ * "20 Jan 03 18:05:41 +0000"
+ *
+ * ISO 8601:
+ * "2003-01-20T18:05:41+04:00"
+ *
+ * Unix:
+ * 1043082341
+ */
+ var $date;
+
+ /**
+ * Any additional elements to include as an assiciated array. All $key => $value pairs
+ * will be included unencoded in the feed item in the form
+ * <$key>$value</$key>
+ * Again: No encoding will be used! This means you can invalidate or enhance the feed
+ * if $value contains markup. This may be abused to embed tags not implemented by
+ * the FeedCreator class used.
+ */
+ var $additionalElements = Array();
+
+ // on hold
+ // var $source;
+}
+
+
+
+/**
+ * An FeedImage may be added to a FeedCreator feed.
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ * @since 1.3
+ */
+class FeedImage extends HtmlDescribable {
+ /**
+ * Mandatory attributes of an image.
+ */
+ var $title, $url, $link;
+
+ /**
+ * Optional attributes of an image.
+ */
+ var $width, $height, $description;
+}
+
+
+
+/**
+ * An HtmlDescribable is an item within a feed that can have a description that may
+ * include HTML markup.
+ */
+class HtmlDescribable {
+ /**
+ * Indicates whether the description field should be rendered in HTML.
+ */
+ var $descriptionHtmlSyndicated;
+
+ /**
+ * Indicates whether and to how many characters a description should be truncated.
+ */
+ var $descriptionTruncSize;
+
+ /**
+ * Returns a formatted description field, depending on descriptionHtmlSyndicated and
+ * $descriptionTruncSize properties
+ * @return string the formatted description
+ */
+ function getDescription() {
+ $descriptionField = new FeedHtmlField($this->description);
+ $descriptionField->syndicateHtml = $this->descriptionHtmlSyndicated;
+ $descriptionField->truncSize = $this->descriptionTruncSize;
+ return $descriptionField->output();
+ }
+
+}
+
+
+/**
+ * An FeedHtmlField describes and generates
+ * a feed, item or image html field (probably a description). Output is
+ * generated based on $truncSize, $syndicateHtml properties.
+ * @author Pascal Van Hecke <feedcreator.class.php@vanhecke.info>
+ * @version 1.6
+ */
+class FeedHtmlField {
+ /**
+ * Mandatory attributes of a FeedHtmlField.
+ */
+ var $rawFieldContent;
+
+ /**
+ * Optional attributes of a FeedHtmlField.
+ *
+ */
+ var $truncSize, $syndicateHtml;
+
+ /**
+ * Creates a new instance of FeedHtmlField.
+ * @param $string: if given, sets the rawFieldContent property
+ */
+ function FeedHtmlField($parFieldContent) {
+ if ($parFieldContent) {
+ $this->rawFieldContent = $parFieldContent;
+ }
+ }
+
+
+ /**
+ * Creates the right output, depending on $truncSize, $syndicateHtml properties.
+ * @return string the formatted field
+ */
+ function output() {
+ // when field available and syndicated in html we assume
+ // - valid html in $rawFieldContent and we enclose in CDATA tags
+ // - no truncation (truncating risks producing invalid html)
+ if (!$this->rawFieldContent) {
+ $result = "";
+ } elseif ($this->syndicateHtml) {
+ $result = "<![CDATA[".$this->rawFieldContent."]]>";
+ } else {
+ if ($this->truncSize and is_int($this->truncSize)) {
+ $result = FeedCreator::iTrunc(htmlspecialchars($this->rawFieldContent),$this->truncSize);
+ } else {
+ $result = htmlspecialchars($this->rawFieldContent);
+ }
+ }
+ return $result;
+ }
+
+}
+
+
+
+/**
+ * UniversalFeedCreator lets you choose during runtime which
+ * format to build.
+ * For general usage of a feed class, see the FeedCreator class
+ * below or the example above.
+ *
+ * @since 1.3
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class UniversalFeedCreator extends FeedCreator {
+ var $_feed;
+
+ function _setFormat($format) {
+ switch (strtoupper($format)) {
+
+ case "2.0":
+ // fall through
+ case "RSS2.0":
+ $this->_feed = new RSSCreator20();
+ break;
+
+ case "1.0":
+ // fall through
+ case "RSS1.0":
+ $this->_feed = new RSSCreator10();
+ break;
+
+ case "0.91":
+ // fall through
+ case "RSS0.91":
+ $this->_feed = new RSSCreator091();
+ break;
+
+ case "PIE0.1":
+ $this->_feed = new PIECreator01();
+ break;
+
+ case "MBOX":
+ $this->_feed = new MBOXCreator();
+ break;
+
+ case "OPML":
+ $this->_feed = new OPMLCreator();
+ break;
+
+ case "ATOM":
+ // fall through: always the latest ATOM version
+
+ case "ATOM0.3":
+ $this->_feed = new AtomCreator03();
+ break;
+
+ case "HTML":
+ $this->_feed = new HTMLCreator();
+ break;
+
+ case "JS":
+ // fall through
+ case "JAVASCRIPT":
+ $this->_feed = new JSCreator();
+ break;
+
+ default:
+ $this->_feed = new RSSCreator091();
+ break;
+ }
+
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ // prevent overwriting of properties "contentType", "encoding"; do not copy "_feed" itself
+ if (!in_array($key, array("_feed", "contentType", "encoding"))) {
+ $this->_feed->{$key} = $this->{$key};
+ }
+ }
+ }
+
+ /**
+ * Creates a syndication feed based on the items previously added.
+ *
+ * @see FeedCreator::addItem()
+ * @param string format format the feed should comply to. Valid values are:
+ * "PIE0.1", "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3", "HTML", "JS"
+ * @return string the contents of the feed.
+ */
+ function createFeed($format = "RSS0.91") {
+ $this->_setFormat($format);
+ return $this->_feed->createFeed();
+ }
+
+
+
+ /**
+ * Saves this feed as a file on the local disk. After the file is saved, an HTTP redirect
+ * header may be sent to redirect the use to the newly created file.
+ * @since 1.4
+ *
+ * @param string format format the feed should comply to. Valid values are:
+ * "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM", "ATOM0.3", "HTML", "JS"
+ * @param string filename optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
+ * @param boolean displayContents optional send the content of the file or not. If true, the file will be sent in the body of the response.
+ */
+ function saveFeed($format="RSS0.91", $filename="", $displayContents=true) {
+ $this->_setFormat($format);
+ $this->_feed->saveFeed($filename, $displayContents);
+ }
+
+
+ /**
+ * Turns on caching and checks if there is a recent version of this feed in the cache.
+ * If there is, an HTTP redirect header is sent.
+ * To effectively use caching, you should create the FeedCreator object and call this method
+ * before anything else, especially before you do the time consuming task to build the feed
+ * (web fetching, for example).
+ *
+ * @param string format format the feed should comply to. Valid values are:
+ * "PIE0.1" (deprecated), "mbox", "RSS0.91", "RSS1.0", "RSS2.0", "OPML", "ATOM0.3".
+ * @param filename string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
+ * @param timeout int optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)
+ */
+ function useCached($format="RSS0.91", $filename="", $timeout=3600) {
+ $this->_setFormat($format);
+ $this->_feed->useCached($filename, $timeout);
+ }
+
+}
+
+
+/**
+ * FeedCreator is the abstract base implementation for concrete
+ * implementations that implement a specific format of syndication.
+ *
+ * @abstract
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ * @since 1.4
+ */
+class FeedCreator extends HtmlDescribable {
+
+ /**
+ * Mandatory attributes of a feed.
+ */
+ var $title, $description, $link;
+
+
+ /**
+ * Optional attributes of a feed.
+ */
+ var $syndicationURL, $image, $language, $copyright, $pubDate, $lastBuildDate, $editor, $editorEmail, $webmaster, $category, $docs, $ttl, $rating, $skipHours, $skipDays;
+
+ /**
+ * The url of the external xsl stylesheet used to format the naked rss feed.
+ * Ignored in the output when empty.
+ */
+ var $xslStyleSheet = "";
+
+
+ /**
+ * @access private
+ */
+ var $items = Array();
+
+
+ /**
+ * This feed's MIME content type.
+ * @since 1.4
+ * @access private
+ */
+ var $contentType = "application/xml";
+
+
+ /**
+ * This feed's character encoding.
+ * @since 1.6.1
+ **/
+ //var $encoding = "ISO-8859-1";
+ var $encoding = "UTF-8";
+
+
+ /**
+ * Any additional elements to include as an assiciated array. All $key => $value pairs
+ * will be included unencoded in the feed in the form
+ * <$key>$value</$key>
+ * Again: No encoding will be used! This means you can invalidate or enhance the feed
+ * if $value contains markup. This may be abused to embed tags not implemented by
+ * the FeedCreator class used.
+ */
+ var $additionalElements = Array();
+
+
+ /**
+ * Adds an FeedItem to the feed.
+ *
+ * @param object FeedItem $item The FeedItem to add to the feed.
+ * @access public
+ */
+ function addItem($item) {
+ $this->items[] = $item;
+ }
+
+
+ /**
+ * Truncates a string to a certain length at the most sensible point.
+ * First, if there's a '.' character near the end of the string, the string is truncated after this character.
+ * If there is no '.', the string is truncated after the last ' ' character.
+ * If the string is truncated, " ..." is appended.
+ * If the string is already shorter than $length, it is returned unchanged.
+ *
+ * @static
+ * @param string string A string to be truncated.
+ * @param int length the maximum length the string should be truncated to
+ * @return string the truncated string
+ */
+ function iTrunc($string, $length) {
+ if (strlen($string)<=$length) {
+ return $string;
+ }
+
+ $pos = strrpos($string,".");
+ if ($pos>=$length-4) {
+ $string = substr($string,0,$length-4);
+ $pos = strrpos($string,".");
+ }
+ if ($pos>=$length*0.4) {
+ return substr($string,0,$pos+1)." ...";
+ }
+
+ $pos = strrpos($string," ");
+ if ($pos>=$length-4) {
+ $string = substr($string,0,$length-4);
+ $pos = strrpos($string," ");
+ }
+ if ($pos>=$length*0.4) {
+ return substr($string,0,$pos)." ...";
+ }
+
+ return substr($string,0,$length-4)." ...";
+
+ }
+
+
+ /**
+ * Creates a comment indicating the generator of this feed.
+ * The format of this comment seems to be recognized by
+ * Syndic8.com.
+ */
+ function _createGeneratorComment() {
+ return "<!-- generator=\"".FEEDCREATOR_VERSION."\" -->\n";
+ }
+
+
+ /**
+ * Creates a string containing all additional elements specified in
+ * $additionalElements.
+ * @param elements array an associative array containing key => value pairs
+ * @param indentString string a string that will be inserted before every generated line
+ * @return string the XML tags corresponding to $additionalElements
+ */
+ function _createAdditionalElements($elements, $indentString="") {
+ $ae = "";
+ if (is_array($elements)) {
+ foreach($elements AS $key => $value) {
+ $ae.= $indentString."<$key>$value</$key>\n";
+ }
+ }
+ return $ae;
+ }
+
+ function _createStylesheetReferences() {
+ $xml = "";
+ if ($this->cssStyleSheet) $xml .= "<?xml-stylesheet href=\"".$this->cssStyleSheet."\" type=\"text/css\"?>\n";
+ if ($this->xslStyleSheet) $xml .= "<?xml-stylesheet href=\"".$this->xslStyleSheet."\" type=\"text/xsl\"?>\n";
+ return $xml;
+ }
+
+
+ /**
+ * Builds the feed's text.
+ * @abstract
+ * @return string the feed's complete text
+ */
+ function createFeed() {
+ }
+
+ /**
+ * Generate a filename for the feed cache file. The result will be $_SERVER["PHP_SELF"] with the extension changed to .xml.
+ * For example:
+ *
+ * echo $_SERVER["PHP_SELF"]."\n";
+ * echo FeedCreator::_generateFilename();
+ *
+ * would produce:
+ *
+ * /rss/latestnews.php
+ * latestnews.xml
+ *
+ * @return string the feed cache filename
+ * @since 1.4
+ * @access private
+ */
+ function _generateFilename() {
+ $fileInfo = pathinfo($_SERVER["PHP_SELF"]);
+ return substr($fileInfo["basename"],0,-(strlen($fileInfo["extension"])+1)).".xml";
+ }
+
+
+ /**
+ * @since 1.4
+ * @access private
+ */
+ function _redirect($filename) {
+ // attention, heavily-commented-out-area
+
+ // maybe use this in addition to file time checking
+ //Header("Expires: ".date("r",time()+$this->_timeout));
+
+ /* no caching at all, doesn't seem to work as good:
+ Header("Cache-Control: no-cache");
+ Header("Pragma: no-cache");
+ */
+
+ // HTTP redirect, some feed readers' simple HTTP implementations don't follow it
+ //Header("Location: ".$filename);
+
+ Header("Content-Type: ".$this->contentType."; charset=".$this->encoding."; filename=".basename($filename));
+ Header("Content-Disposition: inline; filename=".basename($filename));
+ readfile($filename, "r");
+ die();
+ }
+
+ /**
+ * Turns on caching and checks if there is a recent version of this feed in the cache.
+ * If there is, an HTTP redirect header is sent.
+ * To effectively use caching, you should create the FeedCreator object and call this method
+ * before anything else, especially before you do the time consuming task to build the feed
+ * (web fetching, for example).
+ * @since 1.4
+ * @param filename string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
+ * @param timeout int optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)
+ */
+ function useCached($filename="", $timeout=3600) {
+ $this->_timeout = $timeout;
+ if ($filename=="") {
+ $filename = $this->_generateFilename();
+ }
+ if (file_exists($filename) AND (time()-filemtime($filename) < $timeout)) {
+ $this->_redirect($filename);
+ }
+ }
+
+
+ /**
+ * Saves this feed as a file on the local disk. After the file is saved, a redirect
+ * header may be sent to redirect the user to the newly created file.
+ * @since 1.4
+ *
+ * @param filename string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
+ * @param redirect boolean optional send an HTTP redirect header or not. If true, the user will be automatically redirected to the created file.
+ */
+ function saveFeed($filename="", $displayContents=true) {
+ if ($filename=="") {
+ $filename = $this->_generateFilename();
+ }
+ $feedFile = fopen($filename, "w+");
+ if ($feedFile) {
+ fputs($feedFile,$this->createFeed());
+ fclose($feedFile);
+ if ($displayContents) {
+ $this->_redirect($filename);
+ }
+ } else {
+ echo "<br /><b>Error creating feed file, please check write permissions.</b><br />";
+ }
+ }
+
+}
+
+
+/**
+ * FeedDate is an internal class that stores a date for a feed or feed item.
+ * Usually, you won't need to use this.
+ */
+class FeedDate {
+ var $unix;
+
+ /**
+ * Creates a new instance of FeedDate representing a given date.
+ * Accepts RFC 822, ISO 8601 date formats as well as unix time stamps.
+ * @param mixed $dateString optional the date this FeedDate will represent. If not specified, the current date and time is used.
+ */
+ function FeedDate($dateString="") {
+ if ($dateString=="") $dateString = date("r");
+
+ if (is_integer($dateString)) {
+ $this->unix = $dateString;
+ return;
+ }
+ if (preg_match("~(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s+)?(\\d{1,2})\\s+([a-zA-Z]{3})\\s+(\\d{4})\\s+(\\d{2}):(\\d{2}):(\\d{2})\\s+(.*)~",$dateString,$matches)) {
+ $months = Array("Jan"=>1,"Feb"=>2,"Mar"=>3,"Apr"=>4,"May"=>5,"Jun"=>6,"Jul"=>7,"Aug"=>8,"Sep"=>9,"Oct"=>10,"Nov"=>11,"Dec"=>12);
+ $this->unix = mktime($matches[4],$matches[5],$matches[6],$months[$matches[2]],$matches[1],$matches[3]);
+ if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') {
+ $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;
+ } else {
+ if (strlen($matches[7])==1) {
+ $oneHour = 3600;
+ $ord = ord($matches[7]);
+ if ($ord < ord("M")) {
+ $tzOffset = (ord("A") - $ord - 1) * $oneHour;
+ } elseif ($ord >= ord("M") AND $matches[7]!="Z") {
+ $tzOffset = ($ord - ord("M")) * $oneHour;
+ } elseif ($matches[7]=="Z") {
+ $tzOffset = 0;
+ }
+ }
+ switch ($matches[7]) {
+ case "UT":
+ case "GMT": $tzOffset = 0;
+ }
+ }
+ $this->unix += $tzOffset;
+ return;
+ }
+ if (preg_match("~(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(.*)~",$dateString,$matches)) {
+ $this->unix = mktime($matches[4],$matches[5],$matches[6],$matches[2],$matches[3],$matches[1]);
+ if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') {
+ $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;
+ } else {
+ if ($matches[7]=="Z") {
+ $tzOffset = 0;
+ }
+ }
+ $this->unix += $tzOffset;
+ return;
+ }
+ $this->unix = 0;
+ }
+
+ /**
+ * Gets the date stored in this FeedDate as an RFC 822 date.
+ *
+ * @return a date in RFC 822 format
+ */
+ function rfc822() {
+ //return gmdate("r",$this->unix);
+ $date = gmdate("D, d M Y H:i:s", $this->unix);
+ if (TIME_ZONE!="") $date .= " ".str_replace(":","",TIME_ZONE);
+ return $date;
+ }
+
+ /**
+ * Gets the date stored in this FeedDate as an ISO 8601 date.
+ *
+ * @return a date in ISO 8601 format
+ */
+ function iso8601() {
+ $date = gmdate("Y-m-d\TH:i:sO",$this->unix);
+ $date = substr($date,0,22) . ':' . substr($date,-2);
+ if (TIME_ZONE!="") $date = str_replace("+00:00",TIME_ZONE,$date);
+ return $date;
+ }
+
+ /**
+ * Gets the date stored in this FeedDate as unix time stamp.
+ *
+ * @return a date as a unix time stamp
+ */
+ function unix() {
+ return $this->unix;
+ }
+}
+
+
+/**
+ * RSSCreator10 is a FeedCreator that implements RDF Site Summary (RSS) 1.0.
+ *
+ * @see http://www.purl.org/rss/1.0/
+ * @since 1.3
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class RSSCreator10 extends FeedCreator {
+
+ /**
+ * Builds the RSS feed's text. The feed will be compliant to RDF Site Summary (RSS) 1.0.
+ * The feed will contain all items previously added in the same order.
+ * @return string the feed's complete text
+ */
+ function createFeed() {
+ $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n";
+ $feed.= $this->_createGeneratorComment();
+ if ($this->cssStyleSheet=="") {
+ $cssStyleSheet = "http://www.w3.org/2000/08/w3c-synd/style.css";
+ }
+ $feed.= $this->_createStylesheetReferences();
+ $feed.= "<rdf:RDF\n";
+ $feed.= " xmlns=\"http://purl.org/rss/1.0/\"\n";
+ $feed.= " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n";
+ $feed.= " xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\n";
+ $feed.= " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n";
+ $feed.= " xmlns:content=\"http://purl.org/rss/1.0/modules/content/\">\n";
+ $feed.= " <channel rdf:about=\"".htmlspecialchars($this->syndicationURL)."\">\n";
+ $feed.= " <title>".htmlspecialchars($this->title)."</title>\n";
+ $feed.= " <description>".htmlspecialchars($this->description)."</description>\n";
+ $feed.= " <link>".htmlspecialchars($this->link)."</link>\n";
+ if ($this->image!=null) {
+ $feed.= " <image rdf:resource=\"".htmlspecialchars($this->image->url)."\" />\n";
+ }
+ $now = new FeedDate();
+ $feed.= " <dc:date>".htmlspecialchars($now->iso8601())."</dc:date>\n";
+ $feed.= " <items>\n";
+ $feed.= " <rdf:Seq>\n";
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <rdf:li rdf:resource=\"".htmlspecialchars($this->items[$i]->link)."\"/>\n";
+ }
+ $feed.= " </rdf:Seq>\n";
+ $feed.= " </items>\n";
+ $feed.= " </channel>\n";
+ if ($this->image!=null) {
+ $feed.= " <image rdf:about=\"".htmlspecialchars($this->image->url)."\">\n";
+ $feed.= " <title>".$this->image->title."</title>\n";
+ $feed.= " <link>".$this->image->link."</link>\n";
+ $feed.= " <url>".htmlspecialchars($this->image->url)."</url>\n";
+ $feed.= " </image>\n";
+ }
+ $feed.= $this->_createAdditionalElements($this->additionalElements, " ");
+
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <item rdf:about=\"".htmlspecialchars($this->items[$i]->link)."\">\n";
+ //$feed.= " <dc:type>Posting</dc:type>\n";
+ $feed.= " <dc:format>text/html</dc:format>\n";
+ $feed.= " <dc:date>".htmlspecialchars($this->items[$i]->post_date)."</dc:date>\n";
+ if ($this->items[$i]->source!="") {
+ $feed.= " <dc:source>".htmlspecialchars($this->items[$i]->source)."</dc:source>\n";
+ }
+ if ($this->items[$i]->author!="") {
+ $feed.= " <dc:creator>".htmlspecialchars($this->items[$i]->author)."</dc:creator>\n";
+ }
+ $feed.= " <title>".htmlspecialchars(strip_tags(strtr($this->items[$i]->title,"\n\r"," ")))."</title>\n";
+ $feed.= " <link>".htmlspecialchars($this->items[$i]->link)."</link>\n";
+ $feed.= " <description>".htmlspecialchars($this->items[$i]->description)."</description>\n";
+ $feed.= " <content:encoded><![CDATA[";
+ if($this->items[$i]->image_link !=""){
+ $feed.= " <img src=\"" .$this->items[$i]->image_link ."\">";
+ }
+ $feed.= $this->items[$i]->description2 . "]]>" ."</content:encoded>";
+ $feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
+ $feed.= " </item>\n";
+ }
+ $feed.= "</rdf:RDF>\n";
+ return $feed;
+ }
+}
+
+
+
+/**
+ * RSSCreator091 is a FeedCreator that implements RSS 0.91 Spec, revision 3.
+ *
+ * @see http://my.netscape.com/publish/formats/rss-spec-0.91.html
+ * @since 1.3
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class RSSCreator091 extends FeedCreator {
+
+ /**
+ * Stores this RSS feed's version number.
+ * @access private
+ */
+ var $RSSVersion;
+
+ function RSSCreator091() {
+ $this->_setRSSVersion("0.91");
+ $this->contentType = "application/rss+xml";
+ }
+
+ /**
+ * Sets this RSS feed's version number.
+ * @access private
+ */
+ function _setRSSVersion($version) {
+ $this->RSSVersion = $version;
+ }
+
+ /**
+ * Builds the RSS feed's text. The feed will be compliant to RDF Site Summary (RSS) 1.0.
+ * The feed will contain all items previously added in the same order.
+ * @return string the feed's complete text
+ */
+ function createFeed() {
+ $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n";
+ $feed.= $this->_createGeneratorComment();
+ $feed.= $this->_createStylesheetReferences();
+ $feed.= "<rss version=\"".$this->RSSVersion."\">\n";
+ $feed.= " <channel>\n";
+ $feed.= " <title>".FeedCreator::iTrunc(htmlspecialchars($this->title),100)."</title>\n";
+ $this->descriptionTruncSize = 500;
+ $feed.= " <description>".$this->getDescription()."</description>\n";
+ $feed.= " <link>".$this->link."</link>\n";
+ $now = new FeedDate();
+ $feed.= " <lastBuildDate>".htmlspecialchars($now->rfc822())."</lastBuildDate>\n";
+ $feed.= " <generator>".FEEDCREATOR_VERSION."</generator>\n";
+
+ if ($this->image!=null) {
+ $feed.= " <image>\n";
+ $feed.= " <url>".$this->image->url."</url>\n";
+ $feed.= " <title>".FeedCreator::iTrunc(htmlspecialchars($this->image->title),100)."</title>\n";
+ $feed.= " <link>".$this->image->link."</link>\n";
+ if ($this->image->width!="") {
+ $feed.= " <width>".$this->image->width."</width>\n";
+ }
+ if ($this->image->height!="") {
+ $feed.= " <height>".$this->image->height."</height>\n";
+ }
+ if ($this->image->description!="") {
+ $feed.= " <description>".$this->image->getDescription()."</description>\n";
+ }
+ $feed.= " </image>\n";
+ }
+ if ($this->language!="") {
+ $feed.= " <language>".$this->language."</language>\n";
+ }
+ if ($this->copyright!="") {
+ $feed.= " <copyright>".FeedCreator::iTrunc(htmlspecialchars($this->copyright),100)."</copyright>\n";
+ }
+ if ($this->editor!="") {
+ $feed.= " <managingEditor>".FeedCreator::iTrunc(htmlspecialchars($this->editor),100)."</managingEditor>\n";
+ }
+ if ($this->webmaster!="") {
+ $feed.= " <webMaster>".FeedCreator::iTrunc(htmlspecialchars($this->webmaster),100)."</webMaster>\n";
+ }
+ if ($this->pubDate!="") {
+ $pubDate = new FeedDate($this->pubDate);
+ $feed.= " <pubDate>".htmlspecialchars($pubDate->rfc822())."</pubDate>\n";
+ }
+ if ($this->category!="") {
+ $feed.= " <category>".htmlspecialchars($this->category)."</category>\n";
+ }
+ if ($this->docs!="") {
+ $feed.= " <docs>".FeedCreator::iTrunc(htmlspecialchars($this->docs),500)."</docs>\n";
+ }
+ if ($this->ttl!="") {
+ $feed.= " <ttl>".htmlspecialchars($this->ttl)."</ttl>\n";
+ }
+ if ($this->rating!="") {
+ $feed.= " <rating>".FeedCreator::iTrunc(htmlspecialchars($this->rating),500)."</rating>\n";
+ }
+ if ($this->skipHours!="") {
+ $feed.= " <skipHours>".htmlspecialchars($this->skipHours)."</skipHours>\n";
+ }
+ if ($this->skipDays!="") {
+ $feed.= " <skipDays>".htmlspecialchars($this->skipDays)."</skipDays>\n";
+ }
+ $feed.= $this->_createAdditionalElements($this->additionalElements, " ");
+
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <item>\n";
+ $feed.= " <title>".FeedCreator::iTrunc(htmlspecialchars(strip_tags($this->items[$i]->title)),100)."</title>\n";
+ $feed.= " <link>".htmlspecialchars($this->items[$i]->link)."</link>\n";
+ $feed.= " <description>".$this->items[$i]->getDescription()."</description>\n";
+
+ if ($this->items[$i]->author!="") {
+ $feed.= " <author>".htmlspecialchars($this->items[$i]->author)."</author>\n";
+ }
+ /*
+ // on hold
+ if ($this->items[$i]->source!="") {
+ $feed.= " <source>".htmlspecialchars($this->items[$i]->source)."</source>\n";
+ }
+ */
+ if ($this->items[$i]->category!="") {
+ $feed.= " <category>".htmlspecialchars($this->items[$i]->category)."</category>\n";
+ }
+ if ($this->items[$i]->comments!="") {
+ $feed.= " <comments>".htmlspecialchars($this->items[$i]->comments)."</comments>\n";
+ }
+ if ($this->items[$i]->date!="") {
+ $itemDate = new FeedDate($this->items[$i]->date);
+ $feed.= " <pubDate>".htmlspecialchars($itemDate->rfc822())."</pubDate>\n";
+ }
+ if ($this->items[$i]->guid!="") {
+ $feed.= " <guid>".htmlspecialchars($this->items[$i]->guid)."</guid>\n";
+ }
+ $feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
+ $feed.= " </item>\n";
+ }
+ $feed.= " </channel>\n";
+ $feed.= "</rss>\n";
+ return $feed;
+ }
+}
+
+
+
+/**
+ * RSSCreator20 is a FeedCreator that implements RDF Site Summary (RSS) 2.0.
+ *
+ * @see http://backend.userland.com/rss
+ * @since 1.3
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class RSSCreator20 extends RSSCreator091 {
+
+ function RSSCreator20() {
+ parent::_setRSSVersion("2.0");
+ }
+
+}
+
+
+/**
+ * PIECreator01 is a FeedCreator that implements the emerging PIE specification,
+ * as in http://intertwingly.net/wiki/pie/Syntax.
+ *
+ * @deprecated
+ * @since 1.3
+ * @author Scott Reynen <scott@randomchaos.com> and Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class PIECreator01 extends FeedCreator {
+
+ function PIECreator01() {
+ $this->encoding = "utf-8";
+ }
+
+ function createFeed() {
+ $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n";
+ $feed.= $this->_createStylesheetReferences();
+ $feed.= "<feed version=\"0.1\" xmlns=\"http://example.com/newformat#\">\n";
+ $feed.= " <title>".FeedCreator::iTrunc(htmlspecialchars($this->title),100)."</title>\n";
+ $this->truncSize = 500;
+ $feed.= " <subtitle>".$this->getDescription()."</subtitle>\n";
+ $feed.= " <link>".$this->link."</link>\n";
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <entry>\n";
+ $feed.= " <title>".FeedCreator::iTrunc(htmlspecialchars(strip_tags($this->items[$i]->title)),100)."</title>\n";
+ $feed.= " <link>".htmlspecialchars($this->items[$i]->link)."</link>\n";
+ $itemDate = new FeedDate($this->items[$i]->date);
+ $feed.= " <created>".htmlspecialchars($itemDate->iso8601())."</created>\n";
+ $feed.= " <issued>".htmlspecialchars($itemDate->iso8601())."</issued>\n";
+ $feed.= " <modified>".htmlspecialchars($itemDate->iso8601())."</modified>\n";
+ $feed.= " <id>".htmlspecialchars($this->items[$i]->guid)."</id>\n";
+ if ($this->items[$i]->author!="") {
+ $feed.= " <author>\n";
+ $feed.= " <name>".htmlspecialchars($this->items[$i]->author)."</name>\n";
+ if ($this->items[$i]->authorEmail!="") {
+ $feed.= " <email>".$this->items[$i]->authorEmail."</email>\n";
+ }
+ $feed.=" </author>\n";
+ }
+ $feed.= " <content type=\"text/html\" xml:lang=\"en-us\">\n";
+ $feed.= " <div xmlns=\"http://www.w3.org/1999/xhtml\">".$this->items[$i]->getDescription()."</div>\n";
+ $feed.= " </content>\n";
+ $feed.= " </entry>\n";
+ }
+ $feed.= "</feed>\n";
+ return $feed;
+ }
+}
+
+
+/**
+ * AtomCreator03 is a FeedCreator that implements the atom specification,
+ * as in http://www.intertwingly.net/wiki/pie/FrontPage.
+ * Please note that just by using AtomCreator03 you won't automatically
+ * produce valid atom files. For example, you have to specify either an editor
+ * for the feed or an author for every single feed item.
+ *
+ * Some elements have not been implemented yet. These are (incomplete list):
+ * author URL, item author's email and URL, item contents, alternate links,
+ * other link content types than text/html. Some of them may be created with
+ * AtomCreator03::additionalElements.
+ *
+ * @see FeedCreator#additionalElements
+ * @since 1.6
+ * @author Kai Blankenhorn <kaib@bitfolge.de>, Scott Reynen <scott@randomchaos.com>
+ */
+class AtomCreator03 extends FeedCreator {
+
+ function AtomCreator03() {
+ $this->contentType = "application/atom+xml";
+ $this->encoding = "utf-8";
+ }
+
+ function createFeed() {
+ $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n";
+ $feed.= $this->_createGeneratorComment();
+ $feed.= $this->_createStylesheetReferences();
+ $feed.= "<feed version=\"0.3\" xmlns=\"http://purl.org/atom/ns#\"";
+ if ($this->language!="") {
+ $feed.= " xml:lang=\"".$this->language."\"";
+ }
+ $feed.= ">\n";
+ $feed.= " <title>".htmlspecialchars($this->title)."</title>\n";
+ $feed.= " <tagline>".htmlspecialchars($this->description)."</tagline>\n";
+ $feed.= " <link rel=\"alternate\" type=\"text/html\" href=\"".htmlspecialchars($this->link)."\"/>\n";
+ $feed.= " <id>".htmlspecialchars($this->link)."</id>\n";
+ $now = new FeedDate();
+ $feed.= " <modified>".htmlspecialchars($now->iso8601())."</modified>\n";
+ if ($this->editor!="") {
+ $feed.= " <author>\n";
+ $feed.= " <name>".$this->editor."</name>\n";
+ if ($this->editorEmail!="") {
+ $feed.= " <email>".$this->editorEmail."</email>\n";
+ }
+ $feed.= " </author>\n";
+ }
+ $feed.= " <generator>".FEEDCREATOR_VERSION."</generator>\n";
+ $feed.= $this->_createAdditionalElements($this->additionalElements, " ");
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <entry>\n";
+ $feed.= " <title>".htmlspecialchars(strip_tags($this->items[$i]->title))."</title>\n";
+ $feed.= " <link rel=\"alternate\" type=\"text/html\" href=\"".htmlspecialchars($this->items[$i]->link)."\"/>\n";
+ if ($this->items[$i]->date=="") {
+ $this->items[$i]->date = time();
+ }
+ $itemDate = new FeedDate($this->items[$i]->date);
+ $feed.= " <created>".htmlspecialchars($itemDate->iso8601())."</created>\n";
+ $feed.= " <issued>".htmlspecialchars($itemDate->iso8601())."</issued>\n";
+ $feed.= " <modified>".htmlspecialchars($itemDate->iso8601())."</modified>\n";
+ $feed.= " <id>".htmlspecialchars($this->items[$i]->link)."</id>\n";
+ $feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
+ if ($this->items[$i]->author!="") {
+ $feed.= " <author>\n";
+ $feed.= " <name>".htmlspecialchars($this->items[$i]->author)."</name>\n";
+ $feed.= " </author>\n";
+ }
+ if ($this->items[$i]->description!="") {
+ $feed.= " <summary>".htmlspecialchars($this->items[$i]->description)."</summary>\n";
+ }
+ $feed.= " </entry>\n";
+ }
+ $feed.= "</feed>\n";
+ return $feed;
+ }
+}
+
+
+/**
+ * MBOXCreator is a FeedCreator that implements the mbox format
+ * as described in http://www.qmail.org/man/man5/mbox.html
+ *
+ * @since 1.3
+ * @author Kai Blankenhorn <kaib@bitfolge.de>
+ */
+class MBOXCreator extends FeedCreator {
+
+ function MBOXCreator() {
+ $this->contentType = "text/plain";
+ $this->encoding = "ISO-8859-15";
+ }
+
+ function qp_enc($input = "", $line_max = 76) {
+ $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
+ $lines = preg_split("/(?:\r\n|\r|\n)/", $input);
+ $eol = "\r\n";
+ $escape = "=";
+ $output = "";
+ while( list(, $line) = each($lines) ) {
+ //$line = rtrim($line); // remove trailing white space -> no =20\r\n necessary
+ $linlen = strlen($line);
+ $newline = "";
+ for($i = 0; $i < $linlen; $i++) {
+ $c = substr($line, $i, 1);
+ $dec = ord($c);
+ if ( ($dec == 32) && ($i == ($linlen - 1)) ) { // convert space at eol only
+ $c = "=20";
+ } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) { // always encode "\t", which is *not* required
+ $h2 = floor($dec/16); $h1 = floor($dec%16);
+ $c = $escape.$hex["$h2"].$hex["$h1"];
+ }
+ if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted
+ $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay
+ $newline = "";
+ }
+ $newline .= $c;
+ } // end of for
+ $output .= $newline.$eol;
+ }
+ return trim($output);
+ }
+
+
+ /**
+ * Builds the MBOX contents.
+ * @return string the feed's complete text
+ */
+ function createFeed() {
+ for ($i=0;$i<count($this->items);$i++) {
+ if ($this->items[$i]->author!="") {
+ $from = $this->items[$i]->author;
+ } else {
+ $from = $this->title;
+ }
+ $itemDate = new FeedDate($this->items[$i]->date);
+ $feed.= "From ".strtr(MBOXCreator::qp_enc($from)," ","_")." ".date("D M d H:i:s Y",$itemDate->unix())."\n";
+ $feed.= "Content-Type: text/plain;\n";
+ $feed.= " charset=\"".$this->encoding."\"\n";
+ $feed.= "Content-Transfer-Encoding: quoted-printable\n";
+ $feed.= "Content-Type: text/plain\n";
+ $feed.= "From: \"".MBOXCreator::qp_enc($from)."\"\n";
+ $feed.= "Date: ". $itemDate->rfc822()."\n";
+ $feed.= "Subject: ".MBOXCreator::qp_enc(FeedCreator::iTrunc($this->items[$i]->title,100))."\n";
+ $feed.= "\n";
+ $body = chunk_split(MBOXCreator::qp_enc($this->items[$i]->description));
+ $feed.= preg_replace("~\nFrom ([^\n]*)(\n?)~","\n>From $1$2\n",$body);
+ $feed.= "\n";
+ $feed.= "\n";
+ }
+ return $feed;
+ }
+
+ /**
+ * Generate a filename for the feed cache file. Overridden from FeedCreator to prevent XML data types.
+ * @return string the feed cache filename
+ * @since 1.4
+ * @access private
+ */
+ function _generateFilename() {
+ $fileInfo = pathinfo($_SERVER["PHP_SELF"]);
+ return substr($fileInfo["basename"],0,-(strlen($fileInfo["extension"])+1)).".mbox";
+ }
+}
+
+
+/**
+ * OPMLCreator is a FeedCreator that implements OPML 1.0.
+ *
+ * @see http://opml.scripting.com/spec
+ * @author Dirk Clemens, Kai Blankenhorn
+ * @since 1.5
+ */
+class OPMLCreator extends FeedCreator {
+
+ function OPMLCreator() {
+ $this->encoding = "utf-8";
+ }
+
+ function createFeed() {
+ $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n";
+ $feed.= $this->_createGeneratorComment();
+ $feed.= $this->_createStylesheetReferences();
+ $feed.= "<opml xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n";
+ $feed.= " <head>\n";
+ $feed.= " <title>".htmlspecialchars($this->title)."</title>\n";
+ if ($this->pubDate!="") {
+ $date = new FeedDate($this->pubDate);
+ $feed.= " <dateCreated>".$date->rfc822()."</dateCreated>\n";
+ }
+ if ($this->lastBuildDate!="") {
+ $date = new FeedDate($this->lastBuildDate);
+ $feed.= " <dateModified>".$date->rfc822()."</dateModified>\n";
+ }
+ if ($this->editor!="") {
+ $feed.= " <ownerName>".$this->editor."</ownerName>\n";
+ }
+ if ($this->editorEmail!="") {
+ $feed.= " <ownerEmail>".$this->editorEmail."</ownerEmail>\n";
+ }
+ $feed.= " </head>\n";
+ $feed.= " <body>\n";
+ for ($i=0;$i<count($this->items);$i++) {
+ $feed.= " <outline type=\"rss\" ";
+ $title = htmlspecialchars(strip_tags(strtr($this->items[$i]->title,"\n\r"," ")));
+ $feed.= " title=\"".$title."\"";
+ $feed.= " text=\"".$title."\"";
+ //$feed.= " description=\"".htmlspecialchars($this->items[$i]->description)."\"";
+ $feed.= " url=\"".htmlspecialchars($this->items[$i]->link)."\"";
+ $feed.= "/>\n";
+ }
+ $feed.= " </body>\n";
+ $feed.= "</opml>\n";
+ return $feed;
+ }
+}
+
+
+
+/**
+ * HTMLCreator is a FeedCreator that writes an HTML feed file to a specific
+ * location, overriding the createFeed method of the parent FeedCreator.
+ * The HTML produced can be included over http by scripting languages, or serve
+ * as the source for an IFrame.
+ * All output by this class is embedded in <div></div> tags to enable formatting
+ * using CSS.
+ *
+ * @author Pascal Van Hecke
+ * @since 1.7
+ */
+class HTMLCreator extends FeedCreator {
+
+ var $contentType = "text/html";
+
+ /**
+ * Contains HTML to be output at the start of the feed's html representation.
+ */
+ var $header;
+
+ /**
+ * Contains HTML to be output at the end of the feed's html representation.
+ */
+ var $footer ;
+
+ /**
+ * Contains HTML to be output between entries. A separator is only used in
+ * case of multiple entries.
+ */
+ var $separator;
+
+ /**
+ * Used to prefix the stylenames to make sure they are unique
+ * and do not clash with stylenames on the users' page.
+ */
+ var $stylePrefix;
+
+ /**
+ * Determines whether the links open in a new window or not.
+ */
+ var $openInNewWindow = true;
+
+ var $imageAlign ="right";
+
+ /**
+ * In case of very simple output you may want to get rid of the style tags,
+ * hence this variable. There's no equivalent on item level, but of course you can
+ * add strings to it while iterating over the items ($this->stylelessOutput .= ...)
+ * and when it is non-empty, ONLY the styleless output is printed, the rest is ignored
+ * in the function createFeed().
+ */
+ var $stylelessOutput ="";
+
+ /**
+ * Writes the HTML.
+ * @return string the scripts's complete text
+ */
+ function createFeed() {
+ // if there is styleless output, use the content of this variable and ignore the rest
+ if ($this->stylelessOutput!="") {
+ return $this->stylelessOutput;
+ }
+
+ //if no stylePrefix is set, generate it yourself depending on the script name
+ if ($this->stylePrefix=="") {
+ $this->stylePrefix = str_replace(".", "_", $this->_generateFilename())."_";
+ }
+
+ //set an openInNewWindow_token_to be inserted or not
+ if ($this->openInNewWindow) {
+ $targetInsert = " target='_blank'";
+ }
+
+ // use this array to put the lines in and implode later with "document.write" javascript
+ $feedArray = array();
+ if ($this->image!=null) {
+ $imageStr = "<a href='".$this->image->link."'".$targetInsert.">".
+ "<img src='".$this->image->url."' border='0' alt='".
+ FeedCreator::iTrunc(htmlspecialchars($this->image->title),100).
+ "' align='".$this->imageAlign."' ";
+ if ($this->image->width) {
+ $imageStr .=" width='".$this->image->width. "' ";
+ }
+ if ($this->image->height) {
+ $imageStr .=" height='".$this->image->height."' ";
+ }
+ $imageStr .="/></a>";
+ $feedArray[] = $imageStr;
+ }
+
+ if ($this->title) {
+ $feedArray[] = "<div class='".$this->stylePrefix."title'><a href='".$this->link."' ".$targetInsert." class='".$this->stylePrefix."title'>".
+ FeedCreator::iTrunc(htmlspecialchars($this->title),100)."</a></div>";
+ }
+ if ($this->getDescription()) {
+ $feedArray[] = "<div class='".$this->stylePrefix."description'>".
+ str_replace("]]>", "", str_replace("<![CDATA[", "", $this->getDescription())).
+ "</div>";
+ }
+
+ if ($this->header) {
+ $feedArray[] = "<div class='".$this->stylePrefix."header'>".$this->header."</div>";
+ }
+
+ for ($i=0;$i<count($this->items);$i++) {
+ if ($this->separator and $i > 0) {
+ $feedArray[] = "<div class='".$this->stylePrefix."separator'>".$this->separator."</div>";
+ }
+
+ if ($this->items[$i]->title) {
+ if ($this->items[$i]->link) {
+ $feedArray[] =
+ "<div class='".$this->stylePrefix."item_title'><a href='".$this->items[$i]->link."' class='".$this->stylePrefix.
+ "item_title'".$targetInsert.">".FeedCreator::iTrunc(htmlspecialchars(strip_tags($this->items[$i]->title)),100).
+ "</a></div>";
+ } else {
+ $feedArray[] =
+ "<div class='".$this->stylePrefix."item_title'>".
+ FeedCreator::iTrunc(htmlspecialchars(strip_tags($this->items[$i]->title)),100).
+ "</div>";
+ }
+ }
+ if ($this->items[$i]->getDescription()) {
+ $feedArray[] =
+ "<div class='".$this->stylePrefix."item_description'>".
+ str_replace("]]>", "", str_replace("<![CDATA[", "", $this->items[$i]->getDescription())).
+ "</div>";
+ }
+ }
+ if ($this->footer) {
+ $feedArray[] = "<div class='".$this->stylePrefix."footer'>".$this->footer."</div>";
+ }
+
+ $feed= "".join($feedArray, "\r\n");
+ return $feed;
+ }
+
+ /**
+ * Overrrides parent to produce .html extensions
+ *
+ * @return string the feed cache filename
+ * @since 1.4
+ * @access private
+ */
+ function _generateFilename() {
+ $fileInfo = pathinfo($_SERVER["PHP_SELF"]);
+ return substr($fileInfo["basename"],0,-(strlen($fileInfo["extension"])+1)).".html";
+ }
+}
+
+
+/**
+ * JSCreator is a class that writes a js file to a specific
+ * location, overriding the createFeed method of the parent HTMLCreator.
+ *
+ * @author Pascal Van Hecke
+ */
+class JSCreator extends HTMLCreator {
+ var $contentType = "text/javascript";
+
+ /**
+ * writes the javascript
+ * @return string the scripts's complete text
+ */
+ function createFeed()
+ {
+ $feed = parent::createFeed();
+ $feedArray = explode("\n",$feed);
+
+ $jsFeed = "";
+ foreach ($feedArray as $value) {
+ $jsFeed .= "document.write('".trim(addslashes($value))."');\n";
+ }
+ return $jsFeed;
+ }
+
+ /**
+ * Overrrides parent to produce .js extensions
+ *
+ * @return string the feed cache filename
+ * @since 1.4
+ * @access private
+ */
+ function _generateFilename() {
+ $fileInfo = pathinfo($_SERVER["PHP_SELF"]);
+ return substr($fileInfo["basename"],0,-(strlen($fileInfo["extension"])+1)).".js";
+ }
+
+}
+
+
+
+/*** TEST SCRIPT *********************************************************
+
+//include("feedcreator.class.php");
+
+$rss = new UniversalFeedCreator();
+$rss->useCached();
+$rss->title = "PHP news";
+$rss->description = "daily news from the PHP scripting world";
+
+//optional
+//$rss->descriptionTruncSize = 500;
+//$rss->descriptionHtmlSyndicated = true;
+//$rss->xslStyleSheet = "http://feedster.com/rss20.xsl";
+
+$rss->link = "http://www.dailyphp.net/news";
+$rss->feedURL = "http://www.dailyphp.net/".$PHP_SELF;
+
+$image = new FeedImage();
+$image->title = "dailyphp.net logo";
+$image->url = "http://www.dailyphp.net/images/logo.gif";
+$image->link = "http://www.dailyphp.net";
+$image->description = "Feed provided by dailyphp.net. Click to visit.";
+
+//optional
+$image->descriptionTruncSize = 500;
+$image->descriptionHtmlSyndicated = true;
+
+$rss->image = $image;
+
+// get your news items from somewhere, e.g. your database:
+//mysql_select_db($dbHost, $dbUser, $dbPass);
+//$res = mysql_query("SELECT * FROM news ORDER BY newsdate DESC");
+//while ($data = mysql_fetch_object($res)) {
+ $item = new FeedItem();
+ $item->title = "This is an the test title of an item";
+ $item->link = "http://localhost/item/";
+ $item->description = "<b>description in </b><br/>HTML";
+
+ //optional
+ //item->descriptionTruncSize = 500;
+ $item->descriptionHtmlSyndicated = true;
+
+ $item->date = time();
+ $item->source = "http://www.dailyphp.net";
+ $item->author = "John Doe";
+
+ $rss->addItem($item);
+//}
+
+// valid format strings are: RSS0.91, RSS1.0, RSS2.0, PIE0.1, MBOX, OPML, ATOM0.3, HTML, JS
+echo $rss->saveFeed("RSS0.91", "feed.xml");
+
+
+
+***************************************************************************/
+
+?>
--- /dev/null
+<?php
+
+/**
+ * ¼Â¹Ô»þ´Ö·×¬¥Õ¥£¥ë¥¿¡¼¥¯¥é¥¹
+ *
+ * @author teramoto
+ * @version $Revision: 1.1 $
+ *
+ */
+
+class AcsExecutionTimeFilter extends Filter
+{
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ */
+ function AcsExecutionTimeFilter ()
+ {
+ }
+
+ /**
+ * ¼Â¹Ô»þ´Ö·×¬¥Õ¥£¥ë¥¿¡¼¤Î¼Â¹Ô
+ *
+ * @param FilterChain Mojavi FilterChain ¥¤¥ó¥¹¥¿¥ó¥¹
+ * @param Controller Mojavi Controller ¥¤¥ó¥¹¥¿¥ó¥¹
+ * @param Request Mojavi Request ¥¤¥ó¥¹¥¿¥ó¥¹
+ * @param User Mojavi User ¥¤¥ó¥¹¥¿¥ó¥¹
+ */
+ function execute (&$filterChain, &$controller, &$request, &$user)
+ {
+
+ $loaded = TRUE;
+
+ ob_start();
+
+ $stimer = explode(' ', microtime());
+ $stimer = $stimer[1] + $stimer[0];
+
+ $filterChain->execute($controller, $request, $user);
+
+ $etimer = explode(' ', microtime());
+ $etimer = $etimer[1] + $etimer [0];
+ $time = round(($etimer - $stimer), 3);
+
+ $content = str_replace('%EXEC_TIME%', $time, ob_get_contents());
+
+ ob_clean();
+
+ echo "$content\n<!-- [".
+ $controller->getCurrentModule().".".
+ $controller->getCurrentAction().
+ "] Page was processed in $time seconds -->";
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * Service¥ª¥Ö¥¸¥§¥¯¥È¤Î´ðÄ쥯¥é¥¹
+ * @access public
+ * @package logic/service
+ * @category Service
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class Service
+{
+ /**
+ * ¥Ç¡¼¥¿¥Ù¡¼¥¹¥³¥Í¥¯¥·¥ç¥ó
+ * @var DB_common
+ */
+ protected $db = null;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ */
+ function __construct()
+ {
+ $this->db = ConnectionFactory::getConnection();
+ }
+
+ /**
+ * ¥Ç¥¹¥È¥é¥¯¥¿
+ * @access public
+ */
+ function __destruct()
+ {
+ $this->db->disconnect();
+ }
+
+ /**
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó³«»Ï
+ * ¥ª¡¼¥È¥³¥ß¥Ã¥È¤ò²ò½ü¤·¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò³«»Ï¤¹¤ë¡£
+ * @access public
+ */
+ function begin()
+ {
+ $this->db->autoCommit(false);
+ $this->db->query("BEGIN");
+ }
+
+ /**
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó½ªÎ»¡Ê¥³¥ß¥Ã¥È¡Ë
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò½ªÎ»¤·¡¢¥ª¡¼¥È¥³¥ß¥Ã¥È¤ËÀßÄꤹ¤ë¡£
+ * @access public
+ */
+ function end()
+ {
+ $this->db->query("COMMIT");
+ $this->db->autoCommit(true);
+ }
+
+ /**
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¥³¥ß¥Ã¥È
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥³¥ß¥Ã¥È¤·¡¢¥ª¡¼¥È¥³¥ß¥Ã¥È¤ËÀßÄꤹ¤ë¡£
+ * @access public
+ */
+ function commit()
+ {
+ $this->db->query("COMMIT");
+ $this->db->autoCommit(true);
+ }
+
+ /**
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¥í¡¼¥ë¥Ð¥Ã¥¯
+ * ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¥í¡¼¥ë¥Ð¥Ã¥¯¤·¡¢¥ª¡¼¥È¥³¥ß¥Ã¥È¤ËÀßÄꤹ¤ë¡£
+ * @access public
+ */
+ function rollback()
+ {
+ $this->db->query("ROLLBACK");
+ $this->db->autoCommit(true);
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Valuee¥ª¥Ö¥¸¥§¥¯¥È¤Î´ðÄ쥯¥é¥¹
+ * (Value¤ÏͽÌó¸ì¤Î¤¿¤á¡¢Valuee¤È̿̾¤·¤Æ¤¤¤ë)
+ * @access public
+ * @package logic/value
+ * @category value
+ * @author Tsutomu Wakuda <wakuda@withit.co.jp>
+ * @sourcefile
+ *
+ */
+class Value
+{
+ /**
+ * °Å¹æ²½¥Õ¥é¥°
+ * ¸Ä¿Í¾ðÊó¡¢µ¡Ì©¾ðÊó¤Ê¤É¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¾ì¹ç¡¢
+ * °Å¹æ²½¥Õ¥é¥°¤òON¤Ë¤¹¤ë
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤òON¤Ë¤¹¤ëÊýË¡¤Ï¡¢encryptFlagON()¤ò¼Â¹Ô¤¹¤ë¤«¡¢
+ * ¡¡¥³¥ó¥¹¥È¥é¥¯¥¿¤Î°ú¿ô¤Ëtrue¤ò¥»¥Ã¥È¤¹¤ë¡£
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤òOFF¤Ë¤¹¤ëÊýË¡¤Ï¡¢encryptFlagOFF()¤ò¼Â¹Ô¤¹¤ë¡£
+ * @var boolean true:°Å¹æ²½¤¹¤ë¡¢false:°Å¹æ²½¤·¤Ê¤¤
+ */
+ private $encryptFlag;
+
+ /* °Å¹æ²½¥¯¥é¥¹ */
+ private $encryption;
+
+ /**
+ * ¥³¥ó¥¹¥È¥é¥¯¥¿
+ * @access public
+ * @param boolean $encryptFlag °Å¹æ²½¥Õ¥é¥°¡Ê¥Ç¥Õ¥©¥ë¥È¡§true¡Ë
+ */
+ public function __construct($encryptFlag = true)
+ {
+ $this->encryptFlag = $encryptFlag;
+ $this->encryption = CommonEncryption::getInstance();
+ }
+
+ /**
+ * °Å¹æ²½¥Õ¥é¥°¤òON¤Ë¤¹¤ë
+ * @access public
+ */
+ public function encryptFlagON()
+ {
+ $this->encryptFlag = true;
+ }
+
+ /**
+ * °Å¹æ²½¥Õ¥é¥°¤òOFF¤Ë¤¹¤ë
+ * @access public
+ */
+ public function encryptFlagOFF()
+ {
+ $this->encryptFlag = false;
+ }
+
+ /**
+ * ¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬ON¤Î»þ¡¢°ú¿ô¤Î¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¡£
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬OFF¤Î»þ¡¢°ú¿ô¤Î¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤ÞÌ᤹¡£
+ * @access public
+ * @param mixed $data ¥Ç¡¼¥¿
+ * @return string °Å¹æ²½¥Ç¡¼¥¿
+ */
+ public function encrypt($data)
+ {
+ // °Å¹æ²½¥í¥¸¥Ã¥¯¤ò¼ÂÁõ¤¹¤ë
+ $retVal = $data;
+
+ return $retVal;
+ }
+
+ /**
+ * ¥Ç¡¼¥¿¤òÉü¹æ²½¤¹¤ë
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬ON¤Î»þ¡¢°ú¿ô¤Î¥Ç¡¼¥¿¤òÉü¹æ²½¤¹¤ë¡£
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬OFF¤Î»þ¡¢°ú¿ô¤Î¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤ÞÌ᤹¡£
+ * @access public
+ * @param mixed $data ¥Ç¡¼¥¿
+ * @return string Éü¹æ²½¥Ç¡¼¥¿
+ */
+ public function decrypt($data)
+ {
+ // Ê£¹ç²½¥í¥¸¥Ã¥¯¤ò¼ÂÁõ¤¹¤ë
+ $retVal = $data;
+
+ return $retVal;
+ }
+
+ /**
+ * ÇÛÎó¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬ON¤Î»þ¡¢°ú¿ô¤ÎÇÛÎó¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¡£
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬OFF¤Î»þ¡¢°ú¿ô¤ÎÇÛÎó¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤ÞÌ᤹¡£
+ * ¡¦ÇÛÎó¥Ç¡¼¥¿¤Î°ìÉô¤ò°Å¹æ²½¤¹¤ë¾ì¹ç¤Ï¡¢°Å¹æ²½¤¹¤ëÇÛÎó¥Ç¡¼¥¿¤Î½èÍý¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò°ú¤ÅϤ¹¤³¤È¡£
+ * @access public
+ * @param array $data ÇÛÎó¥Ç¡¼¥¿
+ * @param array $indexs ½èÍý¥¤¥ó¥Ç¥Ã¥¯¥¹
+ * @return array Éü¹æ²½ÇÛÎó¥Ç¡¼¥¿
+ */
+ public function encryptArray($data, $indexs = null)
+ {
+ $retVal = array();
+ if ($this->encryptFlag) {
+ if (isset($indexs)) {
+ foreach ($data as $key => $value) {
+ if (in_array($key, $indexs)) {
+ $retVal[$key] = $this->encrypt($value);
+ } else {
+ $retVal[$key] = $value;
+ }
+ }
+ } else {
+ $retVal = array_map(array("Value", "encrypt"), $data);
+ }
+ } else {
+ $retVal = $data;
+ }
+
+ return $retVal;
+ }
+
+ /**
+ * ÇÛÎó¥Ç¡¼¥¿¤òÉü¹æ²½¤¹¤ë
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬ON¤Î»þ¡¢°ú¿ô¤ÎÇÛÎó¥Ç¡¼¥¿¤òÉü¹æ²½¤¹¤ë¡£
+ * ¡¦°Å¹æ²½¥Õ¥é¥°¤¬OFF¤Î»þ¡¢°ú¿ô¤ÎÇÛÎó¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤ÞÌ᤹¡£
+ * ¡¦ÇÛÎó¥Ç¡¼¥¿¤Î°ìÉô¤òÉü¹æ²½¤¹¤ë¾ì¹ç¤Ï¡¢Éü¹æ²½¤¹¤ëÇÛÎó¥Ç¡¼¥¿¤Î½èÍý¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò°ú¤ÅϤ¹¤³¤È¡£
+ * @access public
+ * @param array $data ÇÛÎó¥Ç¡¼¥¿
+ * @param array $indexs ½èÍý¥¤¥ó¥Ç¥Ã¥¯¥¹
+ * @return array Éü¹æ²½ÇÛÎó¥Ç¡¼¥¿
+ */
+ public function decryptArray($data, $indexs = null)
+ {
+ $retVal = array();
+ if ($this->encryptFlag) {
+ if (isset($indexs)) {
+ foreach ($data as $key => $value) {
+ if (in_array($key, $indexs)) {
+ $retVal[$key] = $this->decrypt($value);
+ } else {
+ $retVal[$key] = $value;
+ }
+ }
+ } else {
+ $retVal = array_map(array("Value", "decrypt"), $data);
+ }
+ } else {
+ $retVal = $data;
+ }
+
+ return $retVal;
+ }
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+
+require_once(ACS_CLASS_DIR . 'ACSUser.class.php');
+
+/**
+ * ¥á¥Ã¥»¡¼¥¸¥¯¥é¥¹
+ *
+ * @author teramoto
+ * @version $Revision: 1.4 $
+ *
+ */
+
+define('ACSMSG_LANG_COOKIE_NAME', 'acsmsg_lang');
+define('ACSMSG_LANG_COOKIE_EXPIRESEC', (60*60*24*30)); // 30days
+define('ACSMSG_LANG_COOKIE_PATH', '/');
+
+$_ACSMSG_LANG = "";
+$_ACSMSG_LANG_LIST_STACK = "";
+$_ACSMSG_INI_STACK = array();
+
+class ACSMsg
+{
+ /**
+ * ¸À¸ìÀßÄê
+ *
+ * ¥¯¥Ã¥¡¼¤ÎÀßÄê¤Ï¹Ô¤¤¤Þ¤»¤ó
+ *
+ * @param string $lang ÀßÄꤹ¤ë¥í¥±¡¼¥ë(ja,en,...)
+ */
+ function set_lang($lang) {
+ global $_ACSMSG_LANG;
+ if (array_key_exists($lang,ACSMsg::get_lang_list_array())) {
+ $_ACSMSG_LANG = $lang;
+ }
+ }
+
+ /**
+ * ¸À¸ì¥¯¥Ã¥¡¼Êݸ
+ *
+ * ¸½ºß¤Î¸À¸ìÀßÄê¤ò¥¯¥Ã¥¡¼¤ËÊݸ¤·¤Þ¤¹
+ *
+ * @param string $lang ÀßÄꤹ¤ë¥í¥±¡¼¥ë(ja,en,...)
+ */
+ function set_lang_cookie($lang) {
+ if (array_key_exists($lang,ACSMsg::get_lang_list_array())) {
+ setcookie( ACSMSG_LANG_COOKIE_NAME,
+ $lang, time() + ACSMSG_LANG_COOKIE_EXPIRESEC,
+ ACSMSG_LANG_COOKIE_PATH);
+ }
+ }
+
+ /**
+ * ¸À¸ì¤Î¼èÆÀ
+ *
+ * ¸À¸ì¤Î¼èÆÀ¤ò°Ê²¼¤Î¼ê½ç¤Ë¤Æ¼Â¹Ô¤·¤Þ¤¹¡£<br>
+ *
+ * £±¡¥¸À¸ì¤¬¤¹¤Ç¤Ë¼èÆÀºÑ¤ß¤Î¾ì¹ç¡¢¤½¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£<br>
+ * £²¡¥¥¯¥Ã¥¡¼¤«¤é¤Î¸À¸ìÀßÄê¤Î¼èÆÀ¤ò»î¤ß¡¢À®¸ù¤¹¤ë¤È¤½¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£<br>
+ * £³¡¥Ç§¾ÚºÑ¤Ç¤¢¤ê¡¢¤«¤Ä°ÊÁ°£Ä£Â¥¢¥¯¥»¥¹¤Î»î¤ß¤Ç¼ºÇÔ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢<br>
+ * £Ä£Â¾å¤Î¥á¡¼¥ë¸À¸ìÀßÄ꤫¤é¸À¸ìÀßÄê¤Î¼èÆÀ¤ò»î¤ß¤Þ¤¹¡£<br>
+ * £´¡¥acs_define.php ¤Ë¤ÆÄêµÁ¤µ¤ì¤¿¥Ç¥Õ¥©¥ë¥È¸À¸ìÀßÄê¤òÊÖ¤·¤Þ¤¹¡£<br>
+ *
+ * @param string $is_db_access £Ä£Â¥¢¥¯¥»¥¹¤òÀ©¸æ¤·¤¿¾ì¹ç¤Ë»ØÄꤷ¤Þ¤¹(̤ÀßÄê»þ¤ÏTRUE)
+ * @return string ¥í¥±¡¼¥ë(ja,en,...)
+ */
+ function get_lang($is_db_access=TRUE) {
+ global $_ACSMSG_LANG;
+ static $is_db_disable;
+
+ if ($_ACSMSG_LANG != "") {
+ return $_ACSMSG_LANG;
+ }
+
+ // ¥¯¥Ã¥¡¼¤è¤ê¼èÆÀ
+ $_ACSMSG_LANG = $_COOKIE[ACSMSG_LANG_COOKIE_NAME];
+ if ($_ACSMSG_LANG != "") {
+ ACSMsg::set_lang_cookie($_ACSMSG_LANG); // ͸ú´ü´Ö±äĹ
+ return $_ACSMSG_LANG;
+ }
+
+ // DB¤è¤ê¼èÆÀ
+ if (
+ $is_db_access === TRUE &&
+ $is_db_disable !== TRUE) {
+// if ($_SERVER['PHP_AUTH_USER'] != "" &&
+// $is_db_access === TRUE &&
+// $is_db_disable !== TRUE) {
+// $_ACSMSG_LANG = ACSUser::get_user_mail_lang($_SERVER['PHP_AUTH_USER']);
+
+ if ($_ACSMSG_LANG != "") {
+ ACSMsg::set_lang_cookie($_ACSMSG_LANG);
+ return $_ACSMSG_LANG;
+ } else {
+ $is_db_disable = TRUE;
+ }
+ }
+
+ $_ACSMSG_LANG = ACS_DEFAULT_LANG;
+ return $_ACSMSG_LANG;
+ }
+
+ /**
+ * »ØÄê¥æ¡¼¥¶¤Î¥á¡¼¥ë¸À¸ì¼èÆÀ
+ *
+ * @param string $user_id ¥æ¡¼¥¶¡¼ID
+ * @return string ¥á¡¼¥ë¸À¸ì¥í¥±¡¼¥ë(ja,en,...)
+ */
+ function get_mail_lang($user_id) {
+ $lang = ACSUser::get_user_mail_lang($user_id);
+ return $lang == "" ? ACS_DEFAULT_LANG : $lang;
+ }
+
+ /**
+ * ¥æ¡¼¥¶¾ðÊ󤫤é¤Î¥á¡¼¥ë¸À¸ì¼èÆÀ
+ *
+ * @param array $user_info_row ¥æ¡¼¥¶¾ðÊóÇÛÎó
+ * @return string ¥á¡¼¥ë¸À¸ì¥í¥±¡¼¥ë(ja,en,...)
+ */
+ function get_mail_lang_by_inforow(&$inforow) {
+ $lang =& $inforow['contents_row_array']['mail_lang']['contents_value'];
+ return $lang == "" ? ACS_DEFAULT_LANG : $lang;
+ }
+
+ /**
+ * ¥á¥Ã¥»¡¼¥¸ÄêµÁ¥Õ¥¡¥¤¥ë¥Ñ¥¹¼èÆÀ
+ *
+ * @return string ¥á¥Ã¥»¡¼¥¸ÄêµÁ¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹
+ */
+ function get_messages_dir() {
+ return ACS_LIB_MESSAGE_DIR . ACSMsg::get_lang();
+ }
+
+ /**
+ * ¸À¸ì£Ä£Â¥Æ¡¼¥Ö¥ë°ìÍ÷¼èÆÀ
+ *
+ * ¸À¸ì¤Ë´ØÏ¢¤¹¤ë£Ä£Â¥Æ¡¼¥Ö¥ë¤Î°ìÍ÷¤òÊÖ¤·¤Þ¤¹¡£<br>
+ * Ä̾ï¤Î¥Æ¡¼¥Ö¥ë̾¤ÎËöÈø¤Ë'_(¥í¥±¡¼¥ë)'¤¬Éղ䵤줿¥Æ¡¼¥Ö¥ë¤¬<br>
+ * ³Æ¸À¸ìÍѤΥơ¼¥Ö¥ë̾¤È¤Ê¤ê¤Þ¤¹¡£<br>
+ *
+ * Îã¡Ëen ¤Î¾ì¹ç<br>
+ * community_type_master -> community_type_master_en <br>
+ *
+ * @return array ¥Æ¡¼¥Ö¥ë̾°ìÍ÷
+ */
+ function get_lang_tables_array() {
+ return array(
+ 'community_type_master',
+ 'community_member_type_master',
+ 'category_group_master',
+ 'category_master',
+ 'contents_type_master',
+ 'open_level_master',
+ 'waiting_type_master',
+ 'waiting_status_master',
+ 'file_category_master',
+ 'file_contents_type_master',
+ 'file_history_operation_master',
+ 'system_config_group'
+ );
+ }
+
+ /**
+ * ¸À¸ì°ìÍ÷¼èÆÀ
+ *
+ * »ØÄê²Äǽ¤Ê¸À¸ì¤Î°ìÍ÷¤òÊÖ¤·¤Þ¤¹¡£<br>
+ * »ØÄê²Äǽ¤Ê¸À¸ì¤Ï acs_define.ini ¤Î ACS_LANG_LIST ¤ÇÄêµÁ¤·¤Æ¤¢¤ê¤Þ¤¹¡£<br>
+ *
+ * @return string ¥á¥Ã¥»¡¼¥¸ÄêµÁ¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹
+ */
+ function get_lang_list_array() {
+ global $_ACSMSG_LANG_LIST_STACK;
+
+ if (!defined('ACS_LANG_LIST')) {
+ return array();
+ }
+ if (is_array($_ACSMSG_LANG_LIST_STACK)) {
+ reset($_ACSMSG_LANG_LIST_STACK);
+ return $_ACSMSG_LANG_LIST_STACK;
+ }
+ $langs_list = array();
+ $langs_array = explode(",",ACS_LANG_LIST);
+ foreach($langs_array as $langset) {
+ $langset_array = explode(":",$langset);
+ $langs_list[$langset_array[0]] = $langset_array[1];
+ }
+ $_ACSMSG_LANG_LIST_STACK = $langs_list;
+
+ return $langs_list;
+ }
+
+ /**
+ * ¸À¸ìÀÚÂØÍÑ£Õ£Ò£ÌÀ¸À®
+ *
+ * ¸À¸ìÀÚÂØÍѤΣգң̤òÀ¸À®¤·¤Þ¤¹¡£<br>
+ * ¸½ºß¤Î£Õ£Ò£Ì¤Ë ¥Ñ¥é¥á¡¼¥¿ acsmsg ¤òÄɲ乤ë·Á¤ÇÀ¸À®¤·¤Þ¤¹¡£<br>
+ * ¢¨POST¥Ñ¥é¥á¡¼¥¿¤òºÆ¸½¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£<br>
+ *
+ * @param string $lang ÀÚÂØÀè¤Î¥í¥±¡¼¥ëʸ»ú(ja,en,...)
+ * @param string $base_url £Õ£Ò£Ì(̤»ØÄê¤Î¾ì¹ç¤Ï¸½ºß¤Î£Õ£Ò£Ì¤¬Å¬ÍѤµ¤ì¤ë)
+ * @return string À¸À®¤·¤¿£Õ£Ò£Ì
+ */
+ function get_lang_url($lang, $base_url="") {
+ $base = $base_url == "" ? $_SERVER['REQUEST_URI'] : $base_url;
+
+ list($url_host,$url_query) = explode("?",$base);
+
+ if ($url_query == "") {
+ $base .= "?acsmsg=".$lang;
+ } else {
+ if (ereg("([?&])(acsmsg=)",$base)) {
+ $base = mb_ereg_replace(
+ "([?&])(acsmsg=)([a-zA-Z]*)([&]|$)",
+ "\\1\\2".$lang."\\4",$base);
+ } else {
+ $base .= "&acsmsg=".$lang;
+ }
+ }
+ return $base;
+ }
+
+ /**
+ * ¥¿¥°ÃÖ´¹
+ *
+ * ʸÃæ¤Î¥¿¥°(¥×¥ì¡¼¥¹¥Õ¥©¥ë¥À)¤òÃÖ´¹¤·¤Þ¤¹¡£<br>
+ *
+ * @param string $fmt ¥¿¥°¤òËä¤á¹þ¤ó¤Àʸ»úÎó
+ * @param array $tags_array ¥¿¥°(¥¡¼¹àÌÜ)¤È¤½¤ÎÃͤÎÏ¢ÁÛÇÛÎó
+ * @return string ÃÖ´¹¤·¤¿Ê¸»úÎó
+ */
+ function get_tag_replace($fmt, $tags_array) {
+ $replace = $fmt;
+ foreach ($tags_array as $tag => $value) {
+
+ // {}¤Ï´Ö¤Ë²þ¹Ô¤¬Æþ¤Ã¤Æ¤·¤Þ¤¦¤¿¤á
+ $tag = str_replace("\n", "", $tag);
+ $replace = str_replace($tag, $value, $replace);
+
+ }
+ return $replace;
+ }
+
+ /**
+ * ¥â¥¸¥å¡¼¥ëÍÑ¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ *
+ * °ú¿ô¤Î¥Õ¥¡¥¤¥ë¥Ñ¥¹¤Î£²³¬Áؾå¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤ò¥â¥¸¥å¡¼¥ë̾¤È¤·¡¢<br>
+ * ¥Õ¥¡¥¤¥ë̾¤ò¥»¥¯¥·¥ç¥ó̾¤È¤·¤Æ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë¡£<br>
+ * <br>
+ * get_msg('.../NamedModule/actions/NamedAction.class.php','MSG999')<br>
+ * -> ÄêµÁ¥Õ¥¡¥¤¥ë¡§NamedModule_messages.ini ¥»¥¯¥·¥ç¥ó¡§[NamedAction.class.php]<br>
+ * <br>
+ * ¢¨¥â¥¸¥å¡¼¥ë̾¤Î¤ßľÀÜ»ØÄꤹ¤ë¤³¤È¤â²Ä<br>
+ * get_msg('.../NamedModule/actions/NamedAction.class.php','MSG999','special')<br>
+ * -> ÄêµÁ¥Õ¥¡¥¤¥ë¡§special_messages.ini ¥»¥¯¥·¥ç¥ó¡§[NamedAction.class.php]<br>
+ *
+ * @param string $file_path
+ * @param string $msg_id
+ * @param string $module_name
+ * @return string ¥á¥Ã¥»¡¼¥¸
+ */
+ function get_mdmsg($file_path,$msg_id,$module_name="") {
+ $module = ($module_name == "" ? basename(dirname(dirname($file_path))) : $module_name);
+ $section = basename($file_path);
+ return ACSMsg::get_msg($module,$section,$msg_id);
+ }
+
+ /**
+ * ¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ *
+ * @param string $module ¥â¥¸¥å¡¼¥ë̾¡£ÄêµÁ¥Õ¥¡¥¤¥ë¤Ï '¥â¥¸¥å¡¼¥ë̾'_message.ini ¤È¤Ê¤ë
+ * @param string $section ¥»¥¯¥·¥ç¥ó̾¡£
+ * @param string $msg_id ¥á¥Ã¥»¡¼¥¸ID
+ * @param mixed $value_not_exists ÄêµÁ¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤ÎÌá¤êÃÍ
+ * @return mixed ¼èÆÀ¤·¤¿¥á¥Ã¥»¡¼¥¸
+ */
+ function get_msg($module,$section,$msg_id,$value_not_exists='') {
+
+ global $_ACSMSG_INI_STACK;
+
+ $ini_stack =& $_ACSMSG_INI_STACK;
+
+ $module_key = ACSMsg::get_lang().".".$module;
+
+ //if (!array_key_exists($module_key,$ini_stack)) {
+ if (!is_array($ini_stack) || !array_key_exists($module_key,$ini_stack)) {
+ $ini_stack[$module_key] = parse_ini_file(ACSMsg::get_messages_dir() .'/'. $module.'_messages.ini',TRUE);
+ }
+
+ if (is_array($ini_stack[$module_key][$section])) {
+ if (array_key_exists($msg_id,$ini_stack[$module_key][$section])) {
+ return $ini_stack[$module_key][$section][$msg_id];
+ } else {
+ return $value_not_exists;
+ }
+ } else {
+ return "$section";
+ }
+ }
+
+ /**
+ * Ï¢ÈÖÏ¢·ë¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ *
+ * Ϣ³¤·¤¿ÈÖ¹æ¤Ç¹½À®¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸ID¤Î¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¡£<br>
+ * ¼¡¤ÎÈֹ椬¸ºß¤·¤Ê¤¤¾ì¹ç¤«ºÇÂçÃͤË㤹¤ë¤Þ¤ÇÏ¢ÈÖ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë¡£<br>
+ * ºÇ¸å¤Ë»ØÄꤷ¤¿Ê¸»úÎó¤ÇÏ¢·ë¤·¤ÆÊÖ¤¹¡£<br>
+ *
+ * @param string $module ¥â¥¸¥å¡¼¥ë̾¡£ÄêµÁ¥Õ¥¡¥¤¥ë¤Ï '¥â¥¸¥å¡¼¥ë̾'_message.ini ¤È¤Ê¤ë
+ * @param string $section ¥»¥¯¥·¥ç¥ó̾¡£
+ * @param string $msgid_format ¥á¥Ã¥»¡¼¥¸IDÀ¸À®ÍÑprintf¥Õ¥©¡¼¥Þ¥Ã¥È Îã) "MSG%03d"
+ * @param int $glue Ï¢·ë¤¹¤ëʸ»úÎó(̤»ØÄê¤Î¾ì¹ç²þ¹Ôʸ»ú)
+ * @param int $start ³«»ÏÈÖ¹æ(̤»ØÄê¤Î¾ì¹ç1)
+ * @param int $end ºÇÂçÈÖ¹æ(̤»ØÄê¤Î¾ì¹ç999)
+ * @return string ¼èÆÀ¤·¤¿¥á¥Ã¥»¡¼¥¸
+ */
+ function get_serial_msg($module,$section,$msgid_format,$glue="\n",$start=1,$end=999) {
+ $arr =& ACSMsg::get_serial_msg_array($module,$section,$msgid_format,$start,$end);
+ return implode($glue,$arr);
+ }
+
+ /**
+ * Ï¢ÈÖ¥á¥Ã¥»¡¼¥¸ÇÛÎó¼èÆÀ
+ *
+ * Ϣ³¤·¤¿ÈÖ¹æ¤Ç¹½À®¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸ID¤Î¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¡£<br>
+ * ¼¡¤ÎÈֹ椬¸ºß¤·¤Ê¤¤¾ì¹ç¤«ºÇÂçÃͤË㤹¤ë¤Þ¤ÇÏ¢ÈÖ¥á¥Ã¥»¡¼¥¸¤ò¼èÆÀ¤¹¤ë¡£<br>
+ *
+ * @param string $module ¥â¥¸¥å¡¼¥ë̾¡£ÄêµÁ¥Õ¥¡¥¤¥ë¤Ï '¥â¥¸¥å¡¼¥ë̾'_message.ini ¤È¤Ê¤ë
+ * @param string $section ¥»¥¯¥·¥ç¥ó̾¡£
+ * @param string $msgid_format ¥á¥Ã¥»¡¼¥¸IDÀ¸À®ÍÑprintf¥Õ¥©¡¼¥Þ¥Ã¥È Îã) "MSG%03d"
+ * @param int $start ³«»ÏÈÖ¹æ(̤»ØÄê¤Î¾ì¹ç1)
+ * @param int $end ºÇÂçÈÖ¹æ(̤»ØÄê¤Î¾ì¹ç999)
+ * @return string ¼èÆÀ¤·¤¿¥á¥Ã¥»¡¼¥¸
+ */
+ function get_serial_msg_array($module,$section,$msgid_format,$start=1,$end=999) {
+ $arr = array();
+ for ($i = $start; $i <= $end; $i++) {
+ $val = ACSMsg::get_msg($module,$section,sprintf($msgid_format,$i),false);
+ if ($val === false) {
+ break;
+ }
+ $arr[$i] = $val;
+ }
+ return $arr;
+ }
+
+ /**
+ * ¥Þ¥¹¥¿ÄêµÁÆâÍƤμèÆÀ
+ *
+ * create_masterini.sh ¤Ë¤ÆºîÀ®¤µ¤ì¤¿¥Þ¥¹¥¿¥Ç¡¼¥¿ini¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò¼èÆÀ¤¹¤ë¡£
+ *
+ * @param string $table ¥Æ¡¼¥Ö¥ë̾
+ * @param string $id ID
+ * @param string $module ¥â¥¸¥å¡¼¥ë̾(¥Ç¥Õ¥©¥ë¥È¤Ï master ¤È¤Ê¤ë)
+ * @return string ¼èÆÀ¤·¤¿ÆâÍÆ
+ */
+ function get_mst($table,$id,$module="master") {
+ return ACSMsg::get_msg($module,$table,$id);
+ }
+}
+?>
--- /dev/null
+[GlobalSecure.tpl.php]
+ M001 = "You don't have permission to access this page."
+
+[LoginInput.tpl.php]
+ M001 = "Login Screen"
+ M002 = "User id"
+ M003 = "Password"
+ M004 = "Login"
+
+[LoginAction.class.php]
+ M001 = "The mistake is found in user ID and the password. "
+ M002 = "It failed in the connection to LDAP."
+
--- /dev/null
+[Index.tpl.php]
+ M001 = "community"
+ M002 = "Change image"
+ M003 = "BBS"
+ M004 = "Community folder"
+ M005 = "Change community information"
+ M006 = "Invite community"
+ M007 = "Community manager setting"
+ M008 = "Community-link setting"
+ M009 = "Delete community"
+ M010 = "join this community"
+ M011 = "leave this community"
+ M012 = "invited community."
+ M013 = "requested to add community-link."
+ M014 = "requested to add community-link."
+ M015 = ""
+ M016 = "community name"
+ M017 = "from"
+ M018 = "summary"
+ M019 = "category"
+ M020 = "managers"
+ M021 = ""
+ M022 = "members"
+ M023 = "who can join this community"
+ M024 = "manager's authorization required"
+ M025 = "open access community"
+ M026 = "open access"
+ M027 = "BBS Publication range"
+ M028 = "communities that members allow to access this community"
+ M029 = "Publication range : folder"
+ M030 = "Community Publication range"
+ M031 = "parent community"
+ M032 = "sub community"
+ M033 = "What's New"
+ M034 = "Edit community profile"
+ M035 = "Members"
+ M036 = "list community member"
+ M037 = "delete community member"
+ M038 = "Modify schedule"
+ M039 = "Create automatic capturing of external RSS"
+
+[Index_error.tpl.php]
+ M001 = "community is not exists."
+
+[AddCommunityLinkAction.class.php]
+ M001 = "Community-link"
+ M002 = "request process completed."
+ M003 = "back to link setting"
+ M004 = "back to community"
+ M005 = "failed."
+ M006 = "select link type."
+ M007 = "please select target community"
+ M008 = "please input message."
+
+[BBSPreAction.class.php]
+ M001 = "please input title."
+ M002 = "please input contents."
+ M003 = "please select publication range."
+ M004 = "invalid expire time."
+
+[BBSResPreAction.class.php]
+ M001 = "failed."
+ M002 = "please input title."
+ M003 = "please input contents."
+
+[CreateCommunityAction.class.php]
+ M001 = "Community created."
+ M002 = ""
+ M003 = "community"
+ M050 = "Enter community name."
+ M051 = "Characters other than alphanumeric character, hyphen (-) and underscore (_), cannot be used for community ML address."
+ M052 = "Please use names that start with English characters for community ML address."
+ M053 = "Names that have already been designated for community ML address cannot be used. Names that cannot be used include:"
+ M054 = "The designated community ML address already existed"
+
+[DecideScheduleAction.class.php]
+ M050 = "Please enter name of schedule"
+ M051 = "The subject is too long. Maximum size should be single-byte characters."
+ M052 = "Please insert the text"
+ M053 = "The text is too long. Maximum size should be single-byte characters"
+
+[DeleteBBSAction.class.php]
+ M001 = "failed."
+
+[DeleteCommunityAction.class.php]
+ M001 = "back"
+ M002 = "Community deleted."
+
+ ; komyuniteisakujo
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_COMMUNITY_NAME}
+ DELETECM = "Delete community : {TARGET_COMMUNITY_NAME}."
+
+[DeleteCommunityLinkAction.class.php]
+ M001 = "Community-link deleted."
+ M002 = ""
+ M003 = "back"
+
+ ; komyuniteipe^jihenomodori
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "Back to {COMMUNITY_NAME}."
+
+[DeleteCommunityMemberAction.class.php]
+ M001 = "User deleted."
+ M002 = "deleted."
+
+ ; komyuniteipe^jihenomodori
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "Back to {COMMUNITY_NAME}."
+
+[DeleteFolderAction.class.php]
+ M001 = "select delete target"
+
+[EditBBSAction.class.php]
+ M001 = "please input title."
+ M002 = "please input contents."
+
+[EditBBSResAction.class.php]
+ M001 = "please input title."
+ M002 = "please input contents."
+
+[EditCommunityAction.class.php]
+ M001 = "Characters other than alphanumeric character, hyphen (-) and underscore (_), cannot be used for community ML address."
+ M002 = "Please use names that start with English characters for community ML address."
+ M003 = "Names that have already been designated for community ML address cannot be used. Names that cannot be used include:"
+ M004 = "The designated community ML address already existed"
+
+[EditCommunityAdminAction.class.php]
+ M001 = "community manager setting"
+ M002 = "completed."
+
+ ; komyuniteipe^jihenomodori
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "Back to {COMMUNITY_NAME}."
+
+[EditExternalRSSAction.class.php]
+ M001 = "Settings for automatic capturing of external RSS completed"
+ M002 = "Task completed"
+ M003 = "Return to Community page"
+ M004 = "Failed"
+ M005 = "Please enter RSS URL in http:// format."
+ M006 = "Error exists in the format for duration of publication (single-byte characters from 1 unword or blank space)."
+ M007 = "Please select contributor."
+
+[EditFolderAction.class.php]
+ M001 = "folder name is too long."
+ M002 = "please input folder name."
+ M003 = "folder already exists."
+
+[EditScheduleAction.class.php]
+ M001 = "Irregularities exist in the parameter required by the system."
+ M002 = "Please enter name of shedule."
+ M003 = "There is an overlap of the signs for choices."
+ M004 = "There is a leak in choice and score setting."
+ M005 = "Choice setting has not been created"
+ M006 = "Error exists in the initial value of choices."
+ M007 = "Error exists in the score of choices."
+ M009 = "The subject is too long. Maximum size should be single-byte characters:"
+ M010 = "The location is too long. Maximum size should be single-byte characters:"
+ M011 = "Detailed information is too long. Maximum size should be single-byte characters:"
+ M012 = "Additional nomination of date and time is too long. Maximum single-byte characters:"
+ M013 = "The explanatory note for choices is too long. Maximum single-byte characters:"
+ M014 = "The nominated date and time exceeds the limit. Maximum:"
+ M015 = "Nominated date and time has not been set."
+ M016 = "There is an error regarding the date and time of deadline."
+ M017 = "The designated date and time has already passed."
+
+[InviteToCommunityAction.class.php]
+ M001 = "community invitation request"
+ M002 = "completed."
+ M003 = "please select user invited to"
+ M004 = "please input messages."
+
+ ; komyuniteipe^jihenomodori
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "Back to {COMMUNITY_NAME}."
+
+[JoinCommunityAction.class.php]
+ M001 = "request to join the community"
+ M002 = "join the community."
+ M003 = "Task completed"
+ M004 = "Return to Community Page"
+
+[LeaveCommunityAction.class.php]
+ M001 = "back"
+ M002 = "leave community"
+
+ ; komyuniteinotaikai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ LEAVE_CM = "Unsubscribe from {COMMUNITY_NAME}."
+ BACK_TO_CM = "Back to {COMMUNITY_NAME}."
+
+[MoveFolderAction.class.php]
+ M001 = "select destination folder."
+
+[MoveFolderListAction.class.php]
+ M001 = "Please select the folder/file that you want to move."
+
+[PressReleaseAllRSSAction.class.php]
+ M001 = "title"
+ M002 = "URL"
+ M003 = "link"
+ M004 = "abstract"
+
+[PressReleaseRSS.php]
+ M001 = "logo image"
+
+[PressReleaseRSSAction.class.php]
+ M001 = "no pictures"
+
+[RenameFolderAction.class.php]
+ M001 = "please input new name."
+ M002 = "folder name is too long."
+ M003 = "please input new name."
+
+[RenameFolderListAction.class.php]
+ M001 = "please select folder/file"
+
+[RestoreHistoryFileAction.class.php]
+ M001 = "restore"
+
+[SearchResultBBSAction.class.php]
+ M001 = "no information."
+
+[WaitingListAction.class.php]
+ M001 = "completed."
+ M002 = "failed."
+
+ ; komyuniteipe^jihenomodori
+ ; (kigou)kakitagugariyoukanou
+ ; {WAITING_TYPE_NAME} {COMMUNITY_NAME}
+ FIN_ADM = "{WAITING_TYPE_NAME} Approval completed"
+ FIN_DIS = "{WAITING_TYPE_NAME} Rejection completed"
+ BACK_TO_CM = "Back to Community : {COMMUNITY_NAME}"
+
+[AnswerScheduleSuccessView.class.php]
+ M001 = "Score"
+ M002 = "Explanation"
+ M003 = "Decision"
+ M004 = "Deadline"
+ M005 = "Recruiting"
+
+[BBSRSSSuccessView.class.php]
+ M001 = "No community photo"
+
+[EditFileDetailSuccessView.class.php]
+ ; fairushousaijouhouhenshuu
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} folder"
+
+[FileDetailSuccessView.class.php]
+ ; fairushousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} folder"
+
+[FolderDetailSuccessView.class.php]
+ ; forudashousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} folder"
+
+[FolderSuccessView.class.php]
+ ; foruda
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} folder"
+
+[ScheduleSuccessView.class.php]
+ M001 = "Decision"
+ M002 = "Deadline"
+ M003 = "Recruiting"
+ M004 = "People"
+
+[AddCommunityLink.tpl.php]
+ M001 = "Community"
+ M002 = "Community-link setting"
+ M003 = "add community-link"
+ M004 = "link type"
+ M005 = "<b>parant community</b>"
+ M006 = "<b>sub community</b>"
+ M007 = "linked community"
+ M008 = "select"
+ M009 = " please selec community."
+ M010 = "message"
+ M011 = " send "
+
+[BBS.tpl.php]
+ M001 = "Community"
+ M002 = "BBS"
+ M003 = "BBS Search"
+ M004 = "Title"
+ M005 = "Contents"
+ M006 = "Pictures"
+ M007 = "Publication range"
+ M008 = "write"
+ M009 = " add communities to allow to access information."
+ M010 = " expire date: "
+ M011 = " format: yyyy/mm/dd"
+ M012 = "thread list"
+ M013 = "all"
+ M014 = "posted date"
+ M015 = "Res"
+ M016 = "Edit"
+ M017 = "Delete"
+ M018 = "Publication range"
+ M019 = "expire date"
+ M020 = "communities allowed to access information"
+ M021 = "deleted."
+ M022 = "posted date"
+ M023 = "deleted."
+ M024 = "Parent community"
+ M025 = "Sub-community"
+ M026 = "Supplement"
+ M027 = "Read all"
+ M028 = "Community ML"
+ M029 = "Notify Community ML"
+ M030 = "(As community ML address has not been created, this function cannot be used.)"
+ M031 = "Link to the original article"
+ M032 = "RSS delivery"
+ M033 = "Execute capturing of external RSS"
+
+ ; ukitagugariyoukanou {OMISSION_NUM}
+ TPL = "(Item 1 - {OMISSION_NUM} was abbreviated)"
+
+[BBSPre.tpl.php]
+ M001 = "Community"
+ M002 = "BBS Post Confirmation"
+ M003 = "Are you sure that post following contents ?"
+ M004 = ""
+ M005 = "posted by"
+ M006 = "contents"
+ M007 = "picture"
+ M008 = "Publication range"
+ M009 = "Publication range"
+ M010 = "expire date"
+ M011 = "communities allowed to access information"
+ M012 = "cancel"
+ M013 = ""
+ M014 = "File name"
+ M015 = "File"
+ M016 = "Contents"
+ M017 = "Community ML"
+ M018 = "Notify"
+ M019 = "No notification"
+
+[BBSRes.tpl.php]
+ M001 = " community"
+ M002 = "BBS"
+ M003 = "Res"
+ M004 = ""
+ M005 = "write"
+ M006 = "posted date"
+ M007 = "Publication range"
+ M008 = "expire date"
+ M009 = "communities allowed to access information"
+ M010 = "posted date"
+ M011 = "Edit"
+ M012 = "Delete"
+ M013 = "deleted."
+ M014 = "Title"
+ M015 = "Contents"
+ M016 = "write"
+ M017 = "Link to the original article"
+ M018 = "RSS delivery"
+ M019 = "Community ML"
+ M020 = "Notify Community ML"
+
+[BBSResPre.tpl.php]
+ M001 = "BBS"
+ M002 = "Post Confirmation"
+ M003 = "Are you sure that post following contents ?"
+ M004 = ""
+ M005 = "posted by"
+ M006 = "Title"
+ M007 = "contents"
+ M008 = "cancel"
+ M009 = " Community"
+
+[BBSThreadList.tpl.php]
+ M001 = " Community"
+ M002 = "Notice board"
+ M003 = "Thread catalogue"
+
+[CommunityLink.tpl.php]
+ M001 = " community"
+ M002 = "community-link setting"
+ M003 = "add community-link"
+ M004 = "parent community"
+ M005 = "delete"
+ M006 = "sub community"
+ M007 = "delete"
+
+[CommunityMemberList.tpl.php]
+ M001 = " community"
+ M002 = "community members"
+ M003 = "friends-group list"
+ M004 = "nothing"
+
+[CreateCommunity.tpl.php]
+ M001 = "create community"
+ M002 = "community name"
+ M003 = "summary"
+ M004 = "category"
+ M005 = "who can join this community"
+ M006 = "open access"
+ M007 = "manager's authorization required"
+ M008 = "BBS Publication range"
+ M009 = "Community Publication range"
+ M010 = ""
+ M011 = " Create "
+ M012 = " you can add communities that members allow to access this community."
+ M013 = " you can add communities that members allow to access this community."
+ M014 = "Scope of public access to community folder"
+ M015 = "Supplement"
+ M016 = "Community ML address"
+ M017 = " (Once the set-up is finished, it cannot be changed.)"
+
+[DeleteBBS.tpl.php]
+ M001 = "BBS Post : delete confirmation"
+ M002 = "Are you sure that delete following contents ?"
+ M003 = "If you click OK, cantents are completely deleted."
+ M004 = ""
+ M005 = "Are you sure that delete following contents ?"
+ M006 = "OK"
+ M007 = "cancel"
+
+[DeleteBBSRes.tpl.php]
+ M001 = "BBS Post : delete confirmation"
+ M002 = "Are you sure that delete following contents ?"
+ M003 = "If you click OK, cantents are completely deleted."
+ M004 = "Are you sure that delete following contents ?"
+ M005 = "OK"
+ M006 = "cancel"
+
+[DeleteCommunityLink.tpl.php]
+ M001 = " community"
+ M002 = "community-link setting"
+ M003 = "delete community-link"
+ M004 = "Are you sure that delete following links ?"
+ M005 = ""
+ M006 = "parent community"
+ M007 = "sub community"
+ M008 = "OK"
+ M009 = "cancel"
+
+[DeleteCommunityMemberList_confirm.tpl.php]
+ M001 = " community"
+ M002 = "delete member"
+ M003 = "Are you sure that delete following members ?"
+ M004 = "If you click OK, cantents are completely deleted."
+ M005 = "OK ?"
+ M006 = "OK"
+ M007 = "cancel"
+
+[DeleteCommunityMemberList_input.tpl.php]
+ M001 = " community"
+ M002 = "delete member"
+ M003 = "please select members to delete."
+ M004 = "delete"
+
+[DeleteCommunity_confirm.tpl.php]
+ M001 = " community"
+ M002 = "delete community"
+ M003 = "delete community"
+ M004 = "If you click OK, cantents are completely deleted."
+ M005 = "Are you sure that delete community ?"
+ M006 = "[summary]"
+ M007 = "OK"
+ M008 = "cancel"
+
+[DeleteFolder.tpl.php]
+ M001 = "delete"
+ M002 = "Are you sure that delete following folders/files ?"
+ M003 = ""
+ M004 = "If you click OK, cantents are completely deleted."
+ M005 = ""
+ M006 = "OK"
+ M007 = "cancel"
+
+[DeleteProfileImage.tpl.php]
+ M001 = "delete community image"
+ M002 = "delete community image."
+ M003 = "If you click OK, cantents are completely deleted."
+ M004 = "Are you sure that delete community image ?"
+ M005 = "OK"
+ M006 = "cancel"
+
+[EditBBS.tpl.php]
+ M001 = " community"
+ M002 = "BBS"
+ M003 = "Edit"
+ M004 = "Edit BBS contents"
+ M005 = "Posting"
+ M006 = "File name"
+ M007 = "Contents"
+ M008 = "Photo"
+
+[EditBBSRes.tpl.php]
+ M001 = " community"
+ M002 = "BBS"
+ M003 = "Res"
+ M004 = "Edit contents."
+ M005 = "Edit contents."
+ M006 = "Edit"
+ M007 = "File name"
+ M008 = "Contents"
+
+[EditCommunity.tpl.php]
+ M001 = "community"
+ M002 = "Edit"
+ M003 = "community name"
+ M004 = "summary"
+ M005 = "category"
+ M006 = "who can join this community"
+ M007 = "open access"
+ M008 = "manager's authorization required"
+ M009 = "open access"
+ M010 = "manager's authorization required"
+ M011 = "BBS Publication range"
+ M012 = "Community Publication range"
+ M013 = ""
+ M014 = "from"
+ M015 = "OK"
+ M016 = "cancel"
+ M017 = "add"
+ M018 = " you can add communities that members allow to access this community."
+ M019 = " you can add communities that members allow to access this community."
+ M020 = "Scope of public access to community folder"
+ M021 = "Participate freely"
+ M022 = "Approval required"
+ M023 = "Community ML address"
+ M024 = " (Once the set-up is finished, it cannot be changed.)"
+ M025 = " (Please wait for 1 minute until the set-up is valid.)"
+
+[EditCommunityAdmin.tpl.php]
+ M001 = " community"
+ M002 = "Edit community manager settings"
+ M003 = "OK"
+
+[EditExternalRSS.tpl.php]
+ M001 = " Community"
+ M002 = "Create automatic capturing of external RSS"
+ M003 = "Posting on the notice board after automatic capturing from external RSS is permitted."
+ M004 = "Contributor"
+ M005 = "(Only nominations by community manager are allowed.)"
+ M006 = "Scope of public access"
+ M007 = "Community ML"
+ M008 = "Notify community ML"
+ M009 = "(Set-up of community ML address required.)"
+ M010 = "Set-up"
+ M011 = "Supplement"
+ M012 = " Browsable communities can be added."
+ M013 = "Term of publication"
+ M014 = " Time"
+
+[EditFileDetail.tpl.php]
+ M001 = " community"
+ M002 = "Folder"
+ M003 = "File Information"
+ M004 = "Edit File Information"
+ M005 = "details"
+ M006 = "filename"
+ M007 = "file type"
+ M008 = "OK"
+ M009 = "cancel"
+
+[EditFolder.tpl.php]
+ M001 = "Create Folder"
+ M002 = "Create"
+ M003 = "Edit Folder Information"
+ M004 = "change"
+ M005 = "Folder Name"
+ M006 = "comments"
+ M007 = " you can add communities that members allow to access this community."
+ M008 = "cancel"
+ M009 = "Scope of public access"
+ M010 = "Supplement"
+
+[EditProfileImage.tpl.php]
+ M001 = "Edit Profile Image"
+ M002 = "delete"
+ M003 = "upload"
+ M004 = "back to community"
+
+[EditSchedule.tpl.php]
+ M001 = "Community"
+ M002 = "View schedule modifications list"
+ M003 = "Create new schedule modifications list"
+ M004 = "Modify schedule modifications list"
+ M005 = "Name"
+ M006 = "Date and time nominations"
+ M007 = "Location"
+ M008 = "Detailed information"
+ M009 = "Deadline for replies"
+ M010 = "Date"
+ M011 = "Time"
+ M012 = "Targets"
+ M013 = "All members"
+ M014 = "Participate freely"
+ M015 = "Choices"
+ M016 = "Reply signs"
+ M017 = "Initial value"
+ M018 = "Score"
+ M019 = "Explanation concerning replies"
+ M020 = "Automatic creation of nominated date and time <br>'s <br>"
+ M021 = "Start"
+ M022 = "Terminate"
+ M023 = "Add to date and time nominations"
+ M024 = "Notify community members"
+ M025 = "Create"
+ M026 = "Modify"
+ M027 = "Cancel"
+ M028 = "Registered date and time nominations"
+ M029 = "Additional date and time nominations"
+ M030 = "Include year"
+ M031 = "Does not include year"
+ M050 = "There is an error in the entered date."
+ M051 = "There is an error concerning the scope of date."
+
+ WEEKDAY = "'Sun','Mon','Tue','Wed','Thu','Fri','Sat'"
+
+ ; kouhonichijiseiseijifo^matto
+ ; (kigou)kakitagugariyoukanou
+ ; {YEAR}{MONTH}{DAY} {WEEKDAY}
+ GEN_YMDFMT = "{YEAR}/{MONTH}/{DAY}({WEEKDAY})"
+ GEN_MDFMT = "{MONTH}/{DAY}({WEEKDAY})"
+
+[FileDetail.tpl.php]
+ M001 = " community"
+ M002 = "folder"
+ M003 = "File Information"
+ M004 = "Basic Information"
+ M005 = "File Update"
+ M006 = "rename"
+ M007 = "move"
+ M008 = "delete"
+ M009 = "filename"
+ M010 = "size"
+ M011 = "bytes"
+ M012 = "location"
+ M013 = "Publication range"
+ M014 = "registered information"
+ M015 = "updated information"
+ M016 = "details"
+ M017 = "Edit"
+ M018 = "file type"
+ M019 = "unregistered"
+ M020 = "history"
+ M021 = "update date"
+ M022 = "update user"
+ M023 = "file"
+ M024 = "operation"
+ M025 = "comments"
+ M026 = "back"
+ M027 = "write comments"
+ M028 = "back"
+ M029 = "URL open to the public"
+ M030 = "Create"
+ M031 = "Delete"
+ M032 = "Reset"
+ M033 = "Total number of access"
+
+ ; accesscountfo^matto
+ ; (kigou)ukitagugariyoukanou {DATE}
+ ACCESS_COUNT = "Number of access from {DATE}"
+
+[Folder.tpl.php]
+ M001 = "community"
+ M002 = "folder"
+ M003 = "search"
+ M004 = "Publication range"
+ M005 = "upload"
+ M006 = "input details"
+ M007 = "move"
+ M008 = "rename"
+ M009 = "delete"
+ M010 = "Create Folder"
+ M011 = "normal view"
+ M012 = "group view"
+ M013 = "operation"
+ M014 = "select"
+ M015 = "name"
+ M016 = "update user"
+ M017 = "update date"
+ M018 = "size"
+ M019 = "Publication range"
+ M020 = "details"
+ M021 = "Notify community members"
+
+[FolderDetail.tpl.php]
+ M001 = "community"
+ M002 = "folder"
+ M003 = "folder details"
+ M004 = "Edit"
+ M005 = "move"
+ M006 = "delete"
+ M007 = "folder name"
+ M008 = "comments"
+ M009 = "Publication range"
+ M010 = "registered information"
+ M011 = "updated information"
+ M012 = "back"
+
+[Folder_group.tpl.php]
+ M001 = "community"
+ M002 = "folder"
+ M003 = "search"
+ M004 = "Publication range"
+ M005 = "upload"
+ M006 = "input details"
+ M007 = "move"
+ M008 = "rename"
+ M009 = "delete"
+ M010 = "Create Folder"
+ M011 = "normal view"
+ M012 = "group view"
+ M013 = "operation"
+ M014 = "select"
+ M015 = "name"
+ M016 = "update user"
+ M017 = "update date"
+ M018 = "size"
+ M019 = "Publication range"
+ M020 = "details"
+ M021 = "operation"
+ M022 = "select"
+ M023 = "name"
+ M024 = "details"
+ M025 = "image"
+
+[InviteToCommunity.tpl.php]
+ M001 = " community"
+ M002 = "invite community"
+ M003 = "please select users to invite community."
+ M004 = "user"
+ M005 = "OK"
+ M006 = "Message"
+
+[JoinCommunity.tpl.php]
+ M001 = "community"
+ M002 = "join the community"
+ M003 = "Are you sure that join this community ?"
+ M004 = "join"
+ M005 = "cancel"
+
+[JoinCommunity_admission.tpl.php]
+ M001 = "community"
+ M002 = "request managers to accept to join this community"
+ M003 = "community manager's authorization required to join this community."
+ M004 = "message to community managers."
+ M005 = "OK"
+ M006 = "cancel"
+
+[LeaveCommunity_confirm.tpl.php]
+ M001 = "community"
+ M002 = "leave community"
+ M003 = "leave community."
+ M004 = ""
+ M005 = "Are you sure that leave this community ?"
+ M006 = "OK"
+ M007 = "cancel"
+
+[MoveFolderList.tpl.php]
+ M001 = "move folder"
+ M002 = "destination"
+ M003 = "(select destination)"
+ M004 = "(folder is not created yet.)"
+ M005 = "move"
+ M006 = "cancel"
+
+[RenameFolderList.tpl.php]
+ M001 = "rename"
+ M002 = "OK"
+ M003 = "cancel"
+
+[AnswerSchedule.tpl.php]
+ M001 = "Community"
+ M002 = "View schedule modifications list"
+ M003 = "Schedule modications list input"
+ M004 = "Decide schedule"
+ M005 = "Status"
+ M006 = "File name"
+ M007 = "Location"
+ M008 = "Organiser"
+ M009 = "Deadline for replies"
+ M010 = "Detailed information"
+ M011 = "Targets"
+ M012 = "Participate"
+ M013 = "Terminate participation"
+ M014 = "Comments"
+ M015 = "Explanations regarding answers"
+ M016 = "Register"
+ M017 = "Cancel"
+ M018 = "Score"
+ M019 = "Tally"
+ M020 = "Decide"
+ M021 = "Decision"
+ M022 = "All members"
+ M023 = "Participate freely"
+ M024 = "Deadline"
+ M025 = "Recruiting"
+ M026 = "View participants"
+ M027 = "Reply tally"
+ M028 = "Return"
+
+[DecideSchedule_input.tpl.php]
+ M001 = "Community"
+ M002 = "View schedule modifications list"
+ M003 = "Decide schedule"
+ M004 = "File name"
+ M005 = "Location"
+ M006 = "Decision date"
+ M007 = "Select set literary expressions"
+ M008 = "Message"
+ M009 = "Send"
+ M010 = "Cancel"
+ M011 = "Message contents will be overwritten. Is this all right?"
+
+[RestoreHistoryFile.tpl.php]
+ M001 = "community"
+ M002 = "folder"
+ M003 = "File Information"
+ M004 = "file revert"
+ M005 = "revert file ?"
+ M006 = "filename"
+ M007 = "size"
+ M008 = "bytes"
+ M009 = "comments"
+ M010 = "File Update comments"
+ M011 = "OK"
+ M012 = "cancel"
+
+[Schedule.tpl.php]
+ M001 = "Community"
+ M002 = "View schedule of modifications"
+ M003 = "Create new schedule"
+ M004 = "Menu of officers"
+ M005 = "File name"
+ M006 = "Detailed information"
+ M007 = "Deadline for replies"
+ M008 = "State of affairs of replies"
+ M009 = "Status"
+ M010 = "Modification"
+ M011 = "Decision"
+ M012 = "Organiser"
+
+[SearchBBS.tpl.php]
+ M001 = "community"
+ M002 = "BBS"
+ M003 = "search"
+ M004 = "Title search"
+ M005 = "contents search"
+ M006 = "Publication range"
+ M007 = "all"
+ M008 = "search"
+ M009 = "search for all community"
+ M010 = "About Community BBS search"
+ M011 = "[keyword]"
+ M012 = "title search"
+ M013 = "contents search"
+ M014 = ""
+ M015 = ""
+ M016 = ""
+ M017 = ""
+ M018 = ""
+ M019 = ""
+ M020 = ""
+ M021 = ""
+ M022 = ""
+ M023 = ""
+ M024 = ""
+
+[SearchCommunity.tpl.php]
+ M001 = "communitysearch"
+ M002 = "create community"
+ M003 = "keywords"
+ M004 = "search"
+ M005 = "category"
+ M006 = "who can join this community"
+ M007 = "nothing"
+ M008 = "open access"
+ M009 = "manager's authorization required"
+ M010 = "display order"
+ M011 = "order by name"
+ M012 = "order by date"
+ M013 = "order by number of members"
+ M014 = "summary"
+ M015 = "category"
+ M016 = "managers"
+ M017 = "no communities"
+
+[SearchFolder.tpl.php]
+ M001 = "community"
+ M002 = "folder"
+ M003 = "search"
+ M004 = "search"
+ M005 = "search target"
+ M006 = "folders and files"
+ M007 = "folders"
+ M008 = "files"
+ M009 = "display order"
+ M010 = "order by name"
+ M011 = "order by date"
+ M012 = "name"
+ M013 = "update date"
+ M014 = "size"
+ M015 = "locations"
+
+[SearchResultBBS.tpl.php]
+ M001 = "community"
+ M002 = "BBS"
+ M003 = "search"
+ M004 = "search results : BBS title list"
+ M005 = ""
+ M006 = "search"
+ M007 = "title search"
+ M008 = "contents search"
+ M009 = "Publication range"
+ M010 = "all"
+ M011 = "search"
+ M012 = "search for all communities"
+
+[SelectTrustedCommunity.tpl.php]
+ M001 = "please select community."
+ M002 = "keyword"
+ M003 = "search"
+ M004 = "category"
+ M005 = "select"
+ M006 = "cancel"
+
+[UpdateFile.tpl.php]
+ M001 = "Folder"
+ M002 = "File"
+ M003 = "update"
+ M004 = "File"
+ M005 = "upload"
+ M006 = "comment"
+ M007 = "comment for update"
+ M008 = "back"
+ M009 = "Notify community members"
+
+[UploadFile.tpl.php]
+ M001 = "Community"
+ M002 = "Folder"
+ M003 = "File upload"
+ M004 = "File"
+ M005 = "upload"
+ M006 = "comment"
+ M007 = "comment for update"
+ M008 = "category"
+ M009 = "normal view"
+ M010 = "group view"
+ M011 = "Notify community members"
+
+[WaitingList.tpl.php]
+ M001 = "community"
+ M002 = "waiting acceptance"
+ M003 = "from"
+ M004 = "message"
+ M005 = "request date"
+ M006 = "return message"
+ M007 = "(if you deny this request, message doesn't send.)"
+ M008 = "(parent community)"
+ M009 = "|"
+ M010 = "+--"
+ M011 = "if you accept, community is linked each other."
+ M012 = "(parent community)"
+ M013 = "(sub community)"
+ M014 = "if you accept, community is linked each other."
+ M015 = "accept"
+ M016 = "deny"
+
+[FileHistoryCommentAction.class.php]
+ M001 = "Please input comment."
+
--- /dev/null
+[CommunityRanking.tpl.php]
+ M001 = "Community Ranking"
+
+[NewCommunity.tpl.php]
+ M001 = "Communities created in recent days"
+ M002 = "[ Abstract ]"
+
+[NewOpenDiary.tpl.php]
+ M001 = "Diaries posted in recent days"
+
+[NewPressRelease.tpl.php]
+ M001 = "New Public Releases"
+
+[UserRanking.tpl.php]
+ M001 = "User Ranking"
+
--- /dev/null
+[AddUserAction.class.php]
+ M001 = "Duplicate User ID."
+
+[CreateSystemAnnounceAction.class.php]
+ M001 = "Incorrect date format."
+ M002 = "Please input title."
+ M003 = "Please input information."
+ M004 = "Please input expire date."
+
+[EditSystemConfigAction.class.php]
+ M001 = "System Configuration"
+ M002 = "Back"
+ M003 = "Back"
+ M004 = "System settings is modified."
+ M005 = "System set-up completed"
+
+ ; atainochiekku
+ ; (kigou)kakitagugariyoukanou
+ ; {GROUP_NAME} {NAME} {VAL}
+ M_WRONG_VALUE = "{GROUP_NAME} -> The variable for {NAME} is not correct. (Should be above {VAL})"
+ ; {GROUP_NAME} {NAME}
+ M_EMPTY_VALUE = "{GROUP_NAME} -> Please insert {NAME}."
+
+[EditUserAction.class.php]
+ M001 = "Please re-enter password."
+ M002 = "Duplicate User ID."
+
+[LogInputView.class.php]
+ M001 = "System manager"
+ M002 = "Login User"
+ M003 = "Successful"
+ M004 = "Failed"
+
+[AddUser.tpl.php]
+ M001 = "Add new user"
+ M002 = "User ID"
+ M003 = "Password"
+ M004 = "(re-enter password)"
+ M005 = "Name"
+ M006 = "Mail Address"
+ M007 = "Add"
+ M008 = "Back"
+
+[CreateSystemAnnounce.tpl.php]
+ M001 = "System Information"
+ M002 = "Add system information"
+ M003 = ""
+ M004 = ""
+ M005 = "title"
+ M006 = "information"
+ M007 = "expire time"
+ M008 = "Add"
+ M009 = "Back"
+
+[DeleteSystemAnnounce.tpl.php]
+ M001 = "System Information"
+ M002 = "Cancel"
+ M003 = "Cancel to publish information?"
+ M004 = "title"
+ M005 = "information"
+ M006 = "expire date"
+ M007 = "OK"
+ M008 = "Cancel"
+
+[DeleteUser.tpl.php]
+ M001 = "Delete confirmation"
+ M002 = ""
+ M003 = ""
+ M004 = "Delete user?"
+ M005 = "OK"
+ M006 = "Cancel"
+
+ ; ukitagugariyoukanou {USER_ID} {USER_NAME}
+ DELM = "Delete registered user [{USER_ID}:{USER_NAME}]."
+
+[EditSystemConfig.tpl.php]
+ M001 = "System configuration"
+ M002 = "OK"
+ M003 = "Reset"
+
+[EditUser.tpl.php]
+ M001 = "Modified user information"
+ M002 = "User ID"
+ M003 = "Password"
+ M004 = "change password"
+ M005 = "(re-enter same password)"
+ M006 = "** only basic-authentication user **"
+ M007 = "Name"
+ M008 = "Mail Address"
+ M009 = "Change"
+ M010 = "Cancel"
+
+[Index.tpl.php]
+ M001 = "System Management"
+ M002 = "User Management"
+ M003 = "Log Management"
+ M004 = "System Information"
+ M005 = "System Configuration"
+
+[Log.tpl.php]
+ M001 = "Log Management"
+ M002 = "Search"
+ M003 = "No."
+ M004 = "Date/Time"
+ M005 = "User ID"
+ M006 = "Name"
+ M007 = "Nick Name"
+ M008 = "Privilege"
+ M009 = "Operation"
+ M010 = "Result"
+ M011 = "Failed"
+
+[SystemAnnounceList.tpl.php]
+ M001 = "System Information"
+ M002 = "Add New Information"
+ M003 = "post date"
+ M004 = "posted by"
+ M005 = "title"
+ M006 = "information"
+ M007 = "expire date"
+ M008 = "status"
+ M009 = "canceled"
+ M010 = "out of date"
+ M011 = "publishing"
+ M012 = "cancel"
+ M013 = "Not created"
+
+[UserList.tpl.php]
+ M001 = "User List"
+ M002 = "Add New User"
+ M003 = "keyword"
+ M004 = "Search"
+ M005 = "USer ID"
+ M006 = "Name"
+ M007 = "Nick Name"
+ M008 = "Mail Address"
+ M009 = "Change"
+ M010 = "Delete"
+ M011 = "Login history"
+
+[LoginInfo.tpl.php]
+ M001 = "Login Information Confirm"
+ M002 = "User ID"
+ M003 = "Name"
+ M004 = "Nick Name"
+ M005 = "Login Date"
+ M006 = "Logout Date"
+ M007 = "Use Logout Button"
+ M008 = "Not Use"
+ M009 = "Use"
+ M010 = "nothing"
+
--- /dev/null
+[Index.tpl.php]
+ M001 = "change picture"
+ M002 = "Menu"
+ M003 = "Diary"
+ M004 = "Diary"
+ M005 = "Folder"
+ M006 = "Folder"
+ M007 = "Change password"
+ M008 = "Edit profile"
+ M009 = "View profile"
+ M010 = "there are requests"
+ M011 = ""
+ M012 = "Community"
+ M013 = "there are requests"
+ M014 = "there are requests"
+ M015 = "there are requests"
+ M016 = "You invited the communoty"
+ M017 = " new comments"
+ M018 = "add my friends"
+ M019 = "Name"
+ M020 = "Nickname"
+ M021 = "affiliation"
+ M022 = "major"
+ M023 = "I'm from"
+ M024 = "Birthday"
+ M025 = "Introduction"
+ M026 = "Friends"
+ M027 = "nothing"
+ M028 = "Friends list"
+ M029 = "Friends group list"
+ M030 = "Community"
+ M031 = "nothing"
+ M032 = "Community list"
+ M033 = "Confirm footprint"
+ M034 = "Select design"
+ M035 = "Backup"
+ M036 = "Message"
+ M037 = "Send Message"
+ M038 = "unread Message"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME_PROFILE = "Profile of {USER_NAME}"
+
+ ; ukitagugariyoukanou {LAST_LOGIN}
+ LAST_LOGIN = "Last login <br>{LAST_LOGIN}"
+
+[Index_error.tpl.php]
+ M001 = "no user"
+
+[AddFriendsAction.class.php]
+ M001 = "Send request to add his/her friends-list."
+ M002 = "Sent message."
+ M003 = "Back to MyPage"
+
+[CreateFriendsGroupAction.class.php]
+ M001 = "Please input group name."
+
+[DeleteFolderAction.class.php]
+ M001 = "Please select the folder/file you want to delete."
+
+[DeleteFriendsAction.class.php]
+ M001 = "Delete my friend."
+ M002 = "Deleted."
+ M003 = "Back to my friends-list."
+
+[DiaryCalendarAction.class.php]
+ M001 = "diary posted"
+
+[DiaryCommentPreAction.class.php]
+ M001 = "Please input comments."
+
+[DiaryPreAction.class.php]
+ M001 = "Please input title."
+ M002 = "Please input contents."
+ M003 = "Please select who can access this contents."
+
+[DiaryPreImageAction.class.php]
+ M001 = "Error: Not image file."
+
+[SearchResultDiaryAction.class.php]
+ M001 = "The information you have requested in not available"
+
+[EditFolderAction.class.php]
+ M001 = "Folder name is too long."
+ M002 = "Please input folder name"
+ M003 = "already existed."
+
+[EditFriendsGroupMemberAction.class.php]
+ M001 = "Please input group name."
+
+[EditProfileAction.class.php]
+ M001 = "Please input mail address."
+ M002 = "Please input nick name."
+
+[FileHistoryCommentAction.class.php]
+ M001 = "Please input comments."
+
+[MoveFolderAction.class.php]
+ M001 = "Please select destination."
+
+[MoveFolderListAction.class.php]
+ M001 = "Please select source."
+
+[RenameFolderAction.class.php]
+ M001 = "Please input new name."
+ M002 = "Folder name is too long."
+ M003 = "Please input new name."
+
+[RenameFolderListAction.class.php]
+ M001 = "Please select rename target."
+
+[SelectDesignAction.class.php]
+ M001 = "Please select the design you want to set-up."
+
+[WaitingListAction.class.php]
+ M001 = "Completed."
+ M002 = "Failed."
+ M003 = "Back"
+
+ ; iraikekka
+ ; (kigou)kakitagugariyoukanou
+ ; {WAITING_TYPE_NAME}
+ FIN_ADM = "{WAITING_TYPE_NAME} approved"
+ FIN_DIS = "{WAITING_TYPE_NAME} rejected"
+
+[DiaryRSSSuccessView.class.php]
+ M001 = "No photograph"
+
+[EditFileDetailSuccessView.class.php]
+ ; fairushousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME}'s folder"
+
+[FileDetailSuccessView.class.php]
+ ; fairushousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME}'s folder"
+
+[FolderDetailSuccessView.class.php]
+ ; fairushousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME}'s folder"
+
+[FolderSuccessView.class.php]
+ ; fairushousai
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME}'s folder"
+
+[AddFriends.tpl.php]
+ M001 = "Request of addition to friends-list"
+ M002 = "Message"
+ M003 = "Send"
+ M004 = "Cancel"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ ADF = "Send request to add friend to {USER_NAME}."
+
+[ChangePassword.tpl.php]
+ M001 = "Change password"
+ M002 = "New password"
+ M003 = "(confirm)"
+ M004 = "change"
+
+[CommunityList.tpl.php]
+ M001 = "View Community"
+ M002 = "View Community"
+ M003 = "Nil"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[CreateFriendsGroup.tpl.php]
+ M001 = "Create friends group."
+ M002 = "Group Name"
+ M003 = " Create "
+
+[DeleteDiary.tpl.php]
+ M001 = "Confirmation : delete diary"
+ M002 = "Delete diary."
+ M003 = "You can't restore deleted diary."
+ M004 = ""
+ M005 = "Are you sure that you want to delete diary ?"
+ M006 = "OK"
+ M007 = "Cancel"
+
+[DeleteDiaryComment.tpl.php]
+ M001 = "Comfirmation : delete comment"
+ M002 = "Delete diary comment."
+ M003 = "You can't restore deleted diary comment."
+ M004 = "Are you sure that you want to delete diary comment ?"
+ M005 = "OK"
+ M006 = "Cancel"
+
+[DeleteFolder.tpl.php]
+ M001 = "Delete"
+ M002 = "Delete following files/folders."
+ M003 = "You can't restore deleted files/folders."
+ M004 = "Are you sure that you want to delete files/folders ?"
+ M005 = "OK"
+ M006 = "Cancel"
+
+[DeleteFriends.tpl.php]
+ M001 = "Delete My Friends"
+ M002 = "Is it all right to delete the below listed My Friends?"
+ M003 = "If you delete it, you will be deleted from the other side's My Friends list."
+ M004 = "OK"
+ M005 = "Cancel"
+
+[DeleteFriendsGroup.tpl.php]
+ M001 = "Delete friends group"
+ M002 = "OK"
+ M003 = "Cancel"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ DELC = "Delete {USER_NAME}."
+
+[DeleteProfileImage.tpl.php]
+ M001 = "Comfirmation : delete picture"
+ M002 = "Delete profile picture."
+ M003 = "You can't restore deleted data."
+ M004 = "Are you sure that you want to delete picture ?"
+ M005 = "OK"
+ M006 = "Cancel"
+
+[Diary.tpl.php]
+ M001 = "Diary"
+ M002 = "Diary"
+ M003 = "Search diary"
+ M004 = "Title"
+ M005 = "Contents"
+ M006 = "Picture"
+ M007 = "Publication range"
+ M008 = "OK"
+ M009 = "All friends"
+ M010 = "Friends group"
+ M011 = "delete"
+ M012 = ""
+ M013 = "Comments"
+ M014 = "there is no diary."
+ M015 = "Diary list"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[DiaryComment.tpl.php]
+ M001 = "Diary"
+ M002 = "Comments"
+ M003 = "Diary"
+ M004 = "This diary is deleted."
+ M005 = "Publication range"
+ M006 = ""
+ M007 = "delete"
+ M008 = "deleted."
+ M009 = "write comments"
+ M010 = "Track"
+ M011 = "Pressed down"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[DiaryCommentHistory.tpl.php]
+ M001 = "Diary comment history"
+ M002 = "There is no comments."
+ M003 = "Comment history"
+
+ ; ukitagugariyoukanou {DAYS}
+ GETDAYS = "New arrivals for the past {DAYS}"
+
+[DiaryCommentPre.tpl.php]
+ M001 = "Diary"
+ M002 = "Diary"
+ M003 = "Comment"
+ M004 = "Confirmation"
+ M005 = "Post following comments."
+ M006 = "Are you sure ?"
+ M007 = "Cancel"
+ M008 = "Contents of comments"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[DiaryPre.tpl.php]
+ M001 = "Diary"
+ M002 = "Confirmation"
+ M003 = "Post following contents."
+ M004 = "Are you sure ?"
+ M005 = "Title"
+ M006 = "File"
+ M007 = "Contents"
+ M008 = "Picture"
+ M009 = "Publication range"
+ M010 = "Publication range"
+ M011 = "OK"
+ M012 = "Cancel"
+ M013 = ""
+
+[EditFileDetail.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "File detail"
+ M004 = "Edit file detail"
+ M005 = "detail information"
+ M006 = "Filename"
+ M007 = "File category"
+ M008 = "OK"
+ M009 = "Cancel"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[EditFolder.tpl.php]
+ M001 = "Create folder"
+ M002 = "Create"
+ M003 = "Change folder information"
+ M004 = "change"
+ M005 = "Folder Name"
+ M006 = "Comment"
+ M007 = "All friends"
+ M008 = "Cancel"
+ M009 = "Scope of public access"
+ M010 = "My Friends group"
+
+[EditFriendsGroupMember.tpl.php]
+ M001 = "Friends Group Name"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "Edit [{USER_NAME}] group members"
+
+[EditProfile.tpl.php]
+ M001 = "Error"
+ M002 = "please input following format : yyyy/mm/dd"
+ M003 = "example) 2006/03/05"
+ M004 = "Invalid format"
+ M005 = "Invalid format"
+ M006 = "Invalid format"
+ M007 = "Invalid format"
+ M008 = "Invalid format"
+ M009 = "Welcome to Academic Community System"
+ M010 = "Please input profile and regist."
+ M011 = "Edit profile"
+ M012 = " required "
+ M013 = "item"
+ M014 = "value"
+ M015 = "Publication range"
+ M016 = "Publication range"
+ M017 = "Name"
+ M018 = "Setting"
+ M019 = ""
+ M020 = "mail address"
+ M021 = "nickname"
+ M022 = "allow access from Internet"
+ M023 = "affiliation"
+ M024 = "major"
+ M025 = "I'm from "
+ M026 = ""
+ M027 = "Introduction"
+ M028 = "for public (Internet)"
+ M029 = "for ACS user"
+ M030 = "for friends"
+ M031 = "item"
+ M032 = "friends"
+ M033 = "Cancel"
+ M034 = "Birth date"
+ M035 = "Mail language"
+
+[EditProfileImage.tpl.php]
+ M001 = "change picture"
+ M002 = "delete picture"
+ M003 = "upload"
+ M004 = "back"
+ M005 = "friend open"
+ M006 = "login open"
+ M007 = "public open"
+
+[FileDetail.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "File information"
+ M004 = "Basic Information"
+ M005 = "Update file"
+ M006 = "change name"
+ M007 = "move"
+ M008 = "delete"
+ M009 = "Filename"
+ M010 = "File size"
+ M011 = "byte"
+ M012 = "location"
+ M013 = "Publication range"
+ M014 = "registered information"
+ M015 = "updated information"
+ M016 = "detail information"
+ M017 = "edit"
+ M018 = "File category"
+ M019 = "unregistered"
+ M020 = "history information"
+ M021 = "update time"
+ M022 = "update user"
+ M023 = "File"
+ M024 = "Operation"
+ M025 = "Comments"
+ M026 = "Back"
+ M027 = "write comment"
+ M028 = "Back"
+ M029 = "*No target"
+ M030 = "Track"
+ M031 = "Pressed down"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[Folder.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "Search"
+ M004 = "Publication range"
+ M005 = "input detail"
+ M006 = "move"
+ M007 = "change name"
+ M008 = "delete"
+ M009 = "create folder"
+ M010 = "normal view"
+ M011 = "group view"
+ M012 = "operation"
+ M013 = "select"
+ M014 = "Name"
+ M015 = "Update user"
+ M016 = "Update time"
+ M017 = "size"
+ M018 = "Publication range"
+ M019 = "put<br>community"
+ M020 = "put"
+ M021 = "details"
+ M022 = "Y"
+ M023 = "N"
+ M024 = "details"
+ M025 = "*No target"
+ M026 = "Upload"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[FolderDetail.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "Folder details"
+ M004 = "edit"
+ M005 = "move"
+ M006 = "delete"
+ M007 = "Folder name"
+ M008 = "Comment"
+ M009 = "Publication range"
+ M010 = "registered information"
+ M011 = "updated information"
+ M012 = "Put community"
+ M013 = "(not yet put)"
+ M014 = "Back"
+
+[FolderPutCommunity.tpl.php]
+ M001 = "Put Community"
+ M002 = "Select community to put folder."
+ M003 = "(Not selected)"
+ M004 = "OK"
+ M005 = "Notify community members"
+
+[Folder_group.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "Search"
+ M004 = "Friends"
+ M005 = "*Nothing"
+ M006 = "Publication range"
+ M007 = "Upload"
+ M008 = "input details"
+ M009 = "move"
+ M010 = "rename"
+ M011 = "delete"
+ M012 = "create folder"
+ M013 = "normal view"
+ M014 = "group view"
+ M015 = "operation"
+ M016 = "select"
+ M017 = "Name"
+ M018 = "Update user"
+ M019 = "Update time"
+ M020 = "size"
+ M021 = "Publication range"
+ M022 = "Put Community"
+ M023 = "Put"
+ M024 = "details"
+ M025 = "Y"
+ M026 = "N"
+ M027 = "operation"
+ M028 = "select"
+ M029 = "Name"
+ M030 = "details"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[FootprintCheck.tpl.php]
+ M001 = "My Page"
+ M002 = "Footprint confirmation screen"
+ M003 = "Date and time of track"
+ M004 = "The accessing party"
+ M005 = "Type"
+ M006 = "Contents"
+ M010 = "No footprint"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ TITLE = "Footprint of {USER_NAME}'s page"
+
+[FriendsGroupList.tpl.php]
+ M001 = "Friends Group"
+ M002 = "Group"
+ M003 = "Create group"
+ M004 = " user"
+ M005 = "Nothing"
+ M006 = "edit"
+ M007 = "delete"
+
+[FriendsList.tpl.php]
+ M001 = "Friends"
+ M002 = "Friends list"
+ M003 = "Friends group list"
+ M004 = "delete"
+ M005 = "nothing"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[MoveFolderList.tpl.php]
+ M001 = "select destination"
+ M002 = "destination"
+ M003 = "(please select destination)"
+ M004 = "(folder is not created)"
+ M005 = "move"
+ M006 = "Cancel"
+
+[NewBBS.tpl.php]
+ M001 = "New thread"
+ M002 = ""
+ M003 = "New thread list"
+
+ ; ukitagugariyoukanou {DAYS}
+ GETDAYS = "New arrivals for the past {DAYS}"
+
+[NewCommunityFolder.tpl.php]
+ M001 = "My Community: New folder"
+ M002 = "No new folder"
+ M003 = "View My Community new folder"
+
+ ; ukitagugariyoukanou {DAYS}
+ GETDAYS = "New arrivals for the past {DAYS}"
+
+[NewDiary.tpl.php]
+ M001 = "New Diary"
+ M002 = ""
+ M003 = "New Diary list"
+
+ ; ukitagugariyoukanou {DAYS}
+ GETDAYS = "New arrivals for the past {DAYS}"
+
+[NewFriendsFolder.tpl.php]
+ M001 = "My Friends: New folder"
+ M002 = "No new folder"
+ M003 = "View My Friends new folder"
+
+ ; ukitagugariyoukanou {DAYS}
+ GETDAYS = "New arrivals for the past {DAYS}"
+
+[ProfileCheck.tpl.php]
+ M001 = "MyPage"
+ M002 = "View of my profile"
+ M003 = "Please select type of visitor."
+ M004 = "View of login user."
+ M005 = "View of your friends."
+ M006 = "View of public users."
+ M007 = "Public users"
+ M008 = "Login users"
+ M009 = "Friends"
+ M010 = "name"
+ M011 = "nickname"
+ M012 = "affiliation"
+ M013 = "major"
+ M014 = "I'm from"
+ M015 = "Birthday"
+ M016 = "Introduction"
+
+[PutCommunity.tpl.php]
+ M001 = "Folder"
+ M002 = "nothing"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME} : Folder"
+
+ ; ukitagugariyoukanou {FOLDER_NAME}
+ PUTCOM = "{FOLDER_NAME}'s community at PUT"
+
+[RenameFolderList.tpl.php]
+ M001 = "rename"
+ M002 = "change"
+ M003 = "cancel"
+
+[RestoreHistoryFile.tpl.php]
+ M001 = "Folder :: File Information :: Revert File"
+ M002 = "Would you want to revert file ?"
+ M003 = "filename"
+ M004 = "size"
+ M005 = "bytes"
+ M006 = "comments"
+ M007 = "update history"
+ M008 = "OK"
+ M009 = "cancel"
+
+[SearchDiary.tpl.php]
+ M001 = "Diary :: Search"
+ M002 = "Diary"
+ M003 = "Search"
+ M004 = "Search by title"
+ M005 = "Search by contents"
+ M006 = "Publication range"
+ M007 = "All"
+ M008 = "Search"
+ M009 = "Search all diaries"
+ M010 = "About diary search"
+ M011 = "[keyword]"
+ M012 = ""
+ M013 = ""
+ M014 = ""
+ M015 = ""
+ M016 = ""
+ M017 = ""
+ M018 = ""
+ M019 = ""
+ M020 = ""
+ M021 = ""
+ M022 = ""
+ M023 = ""
+ M024 = ""
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[SearchFolder.tpl.php]
+ M001 = "Folder"
+ M002 = "Folder"
+ M003 = "Search"
+ M004 = "keyword"
+ M005 = "search"
+ M006 = "search"
+ M007 = "folders and files"
+ M008 = "folders"
+ M009 = "files"
+ M010 = "display order"
+ M011 = "order by name"
+ M012 = "order by update time"
+ M013 = "name"
+ M014 = "update time"
+ M015 = "size"
+ M016 = "path"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[SearchResultDiary.tpl.php]
+ M001 = "Diary :: Search Result"
+ M002 = "Diary"
+ M003 = "Search Result"
+ M004 = "Search Result"
+ M005 = " titles available"
+ M006 = "Search"
+ M007 = "Search by title"
+ M008 = "Search by contents"
+ M009 = "Publication range"
+ M010 = "All"
+ M011 = "Search"
+ M012 = "Search"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[SearchUser.tpl.php]
+ M001 = "User search"
+ M002 = "keyword"
+ M003 = "search"
+ M004 = "display order"
+ M005 = "order by user"
+ M006 = "order by nickname"
+ M007 = "order by number of friends"
+ M008 = "order by number of communnities"
+ M009 = "[Introduction]"
+ M010 = "no user."
+ M011 = "User ID order"
+
+[SelectDesign.tpl.php]
+ M001 = "My Page"
+ M002 = "Design selection screen"
+ M003 = "Image"
+ M004 = "Select"
+ M005 = "Name"
+ M006 = "Explanations"
+ M010 = "Please select the design you want to set-up."
+ M011 = "OK"
+ M012 = "Cancel"
+
+[SetOpenLevelForProfileView.tpl.php]
+ M001 = "*No target"
+ M002 = "All friends"
+ M003 = "My Friends group"
+
+ ; ukitagugariyoukanou {CONTENT_TYPE_NAME}
+ CONT = "{CONTENT_TYPE_NAME}'s scope of public access"
+
+[UpdateFile.tpl.php]
+ M001 = "Folder :: File Information :: File Update"
+ M002 = "File"
+ M003 = "Upload"
+ M004 = "comments"
+ M005 = "comment for update"
+ M006 = "back"
+
+[UploadFile.tpl.php]
+ M001 = "Folder :: Upload"
+ M002 = "File"
+ M003 = "comments"
+ M004 = "comment for update"
+ M005 = "category"
+ M006 = "normal view"
+ M007 = "group view"
+
+[WaitingList.tpl.php]
+ M001 = "waiting acceptance"
+ M002 = "(closed)"
+ M003 = "summary"
+ M004 = "category"
+ M005 = "message"
+ M006 = "request date"
+ M007 = "return message"
+ M008 = "(if you deny this request, message doesn't send.)"
+ M009 = "accept"
+ M010 = "deny"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "Message from {USER_NAME}"
+
+
+[MessagePreAction.class.php]
+ M001 = "Please input subject."
+
+[DeleteMessageAction.class.php]
+ M001 = "Please select the message you want to delete."
+
+[Message.tpl.php]
+ M001 = "Input Message"
+ M002 = "To"
+ M003 = "Subject"
+ M004 = "Body"
+ M005 = "Send notification mail."
+ M006 = "Confirmation"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[MessagePre.tpl.php]
+ M001 = "Message Confirm"
+ M002 = "Send following message."
+ M003 = "Are you sure ?"
+ M004 = "To"
+ M005 = "Subject"
+ M006 = "Body"
+ M007 = "Send notification mail."
+ M008 = "OK"
+ M009 = "Cancel"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[MessageBox.tpl.php]
+ M001 = "Messages"
+ M002 = "Inbox"
+ M003 = "Sent Messages"
+ M004 = "Open"
+ M005 = "Delete"
+ M006 = "To"
+ M007 = "From"
+ M008 = "Subject"
+ M009 = "Date"
+ M010 = "Unopen"
+ M011 = "Open"
+ M012 = "nothing"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[MessageShow.tpl.php]
+ M001 = "Messages"
+ M002 = "Inbox"
+ M003 = "Sent Messages"
+ M004 = "Sent Message"
+ M005 = "Received Message"
+ M006 = "To"
+ M007 = "From"
+ M008 = "Date"
+ M009 = "Subject"
+ M010 = "Body"
+ M011 = "Reply"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[DeleteMessage.tpl.php]
+ M001 = "Delete Message"
+ M002 = ""
+ M003 = "You can't restore deleted messages."
+ M004 = "Are you sure that you want to delete messages ?"
+ M005 = "OK"
+ M006 = "Cancel"
+
+[LoginInput.tpl.php]
+ M001 = "Login Screen"
+ M002 = "User id"
+ M003 = "Password"
+ M004 = "Login"
+
+[LoginAction.class.php]
+ M001 = "The mistake is found in user ID and the password. "
+ M002 = "It failed in the connection to LDAP."
+
+[Logout.tpl.php]
+ M001 = "logout process complete"
+
+[Logout_error.tpl.php]
+ M001 = "logout process failed"
+
--- /dev/null
+[calendar.class.php]
+ M001 = "Sun"
+ M002 = "Mon"
+ M003 = "Tue"
+ M004 = "Wed"
+ M005 = "Thu"
+ M006 = "Fri"
+ M007 = "Sat"
+ M008 = "."
+ M009 = "."
+ M010 = "Back to last diary"
+ M011 = "New Year's Day"
+ M012 = "Coming-of-Age Day"
+ M013 = "Vernal Equinox Day"
+ M014 = "The Emperor's Birthday"
+ M015 = "Greenery Day"
+ M016 = "Constitution Day"
+ M017 = "Children's Day"
+ M018 = "Marine Day"
+ M019 = "Marine Day"
+ M020 = "Respect-for-Senior-Citizens Day"
+ M021 = "Respect-for-Senior-Citizens Day"
+ M022 = "Autumnal Equinox Day"
+ M023 = "National Sports Day"
+ M024 = "National Sports Day"
+ M025 = "Culture Day"
+ M026 = "Labor Thanksgiving Day"
+ M027 = "The Emperor's Birthday"
+ M028 = "National holiday"
+ M029 = "Substitute public holiday"
+ M030 = " << "
+ M031 = " >> "
+
+ ; (kigou)kakitagugariyoukanou
+ ; {YEAR},{MONTH}
+ YEAR_MONTH = "{YEAR}-{MONTH}"
+
+[ACSBBS.class.php]
+ M001 = "Can't delete this message"
+ M002 = "Can't delete file information."
+ M003 = "Can't delete this thread."
+ M004 = "Can't delete this message."
+ M005 = "Please select search type."
+ M006 = "Logo image of office"
+
+[ACSCommunityMail.class.php]
+ M001 = "File upload notice"
+ M002 = "Notification regarding schedule modification deadline"
+ M003 = "Notification about new schedule entry"
+ M004 = "Notification about change of schedule contents"
+ M005 = "Notification about PUT"
+ M006 = "New entry"
+ M007 = "Change"
+
+ ;
+ ; MLhenofairuappuro^dotsuuchime^ru
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {FILE_DETAIL_URL}
+ ; {COMMUNITY_URL}
+ ; {UPLOAD_FILE_NAME}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou RMD001~RMD999 madeteigika(tobibanfuka)
+ ;
+ UPL001 = "**************************************************************"
+ UPL002 = " Academic Community System Automatic Mail Transmission"
+ UPL003 = "**************************************************************"
+ UPL004 = ""
+ UPL005 = "To everyone in the {COMMUNITY_NAME} Community:"
+ UPL006 = ""
+ UPL007 = "Notification from Academic Community System."
+ UPL008 = "File Upload from {USER_NAME} ({USER_COMMUNITY_NAME}) to community folder."
+ UPL009 = ""
+ UPL010 = "Please access the file detail screen from the below listed URL."
+ UPL011 = "{FILE_DETAIL_URL}"
+ UPL012 = ""
+ UPL013 = "[Community]"
+ UPL014 = "{COMMUNITY_NAME}"
+ UPL015 = "{COMMUNITY_URL}"
+ UPL016 = "[File]"
+ UPL017 = "{UPLOAD_FILE_NAME}"
+ UPL018 = ""
+ UPL019 = "--"
+ UPL020 = "Academic Community System"
+ UPL021 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; MLhenokomyuniteiforudaputtotsuuchime^ru
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {FILE_DETAIL_URL}
+ ; {COMMUNITY_URL}
+ ; {UPLOAD_FILE_NAME}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou RMD001~RMD999 madeteigika(tobibanfuka)
+ ;
+ PUT001 = "**************************************************************"
+ PUT002 = " Academic Community System Automatic Mail Transmission"
+ PUT003 = "**************************************************************"
+ PUT004 = ""
+ PUT005 = "To everyone in the {COMMUNITY_NAME} Community:"
+ PUT006 = ""
+ PUT007 = "Notification from Academic Community System."
+ PUT008 = "PUT from {USER_NAME} ({USER_COMMUNITY_NAME}) to community folder."
+ PUT009 = ""
+ PUT010 = "Please access folder/file from the below listed URL."
+ PUT011 = "{FOLDER_LIST_URL}"
+ PUT012 = ""
+ PUT013 = "[Community]"
+ PUT014 = "{COMMUNITY_NAME}"
+ PUT015 = "{COMMUNITY_URL}"
+ PUT016 = "[Folder at PUT]"
+ PUT017 = "{PUT_FOLDER_NAME}"
+ PUT018 = ""
+ PUT019 = "--"
+ PUT020 = "Academic Community System"
+ PUT021 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; rimaindame^ru
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou RMD001~RMD999 madeteigika(tobibanfuka)
+ ;
+ RMD001 = "***************************************************************"
+ RMD002 = " Academic Community System Automatic Mail Transmission"
+ RMD003 = "***************************************************************"
+ RMD004 = ""
+ RMD005 = "To everyone in the {COMMUNITY_NAME} Community:"
+ RMD006 = ""
+ RMD007 = "Notification from Academic Community System."
+ RMD008 = "The deadline for modifying schedule hosted by {USER_NAME} ({USER_COMMUNITY_NAME}) is approaching"
+ RMD009 = ""
+ RMD010 = "Please access schedule detail screen from the below listed URL."
+ RMD011 = "{SCHEDULE_URL}"
+ RMD012 = ""
+ RMD013 = "[Community]"
+ RMD014 = "{COMMUNITY_NAME}"
+ RMD015 = "{COMMUNITY_URL}"
+ RMD016 = ""
+ RMD017 = "[Schedule contents]"
+ RMD018 = "File name : {SCHEDULE_NAME}"
+ RMD019 = "Host : {USER_NAME}({USER_COMMUNITY_NAME})"
+ RMD020 = "Detailed information : {SCHEDULE_DETAIL}"
+ RMD021 = "Date and time of deadline for response : {SCHEDULE_CLOSING_DATETIME}"
+ RMD022 = ""
+ RMD023 = "--"
+ RMD024 = "Academic Community System"
+ RMD025 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; sukeju^rutouroku.henkoutsuuchime^ru
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {ACTION}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou RMD001~RMD999 madeteigika(tobibanfuka)
+ ;
+ UPD001 = "***************************************************************"
+ UPD002 = " Academic Community System Automatic Mail Transmission"
+ UPD003 = "***************************************************************"
+ UPD004 = ""
+ UPD005 = "To everyone in the {COMMUNITY_NAME} Community:"
+ UPD006 = ""
+ UPD007 = "Notification from Academic Community System."
+ UPD008 = "The schedule hosted by {USER_NAME} ({USER_COMMUNITY_NAME}) was {ACTION}."
+ UPD009 = ""
+ UPD010 = "Please access schedule detail screen from the below listed URL."
+ UPD011 = "{SCHEDULE_URL}"
+ UPD012 = ""
+ UPD013 = "[Community]"
+ UPD014 = "{COMMUNITY_NAME}"
+ UPD015 = "{COMMUNITY_URL}"
+ UPD016 = ""
+ UPD017 = "[Schedule contents]"
+ UPD018 = "File name : {SCHEDULE_NAME}"
+ UPD019 = "Host : {USER_NAME}({USER_COMMUNITY_NAME})"
+ UPD020 = "Detailed information : {SCHEDULE_DETAIL}"
+ UPD021 = "Date and time of deadline for response : {SCHEDULE_CLOSING_DATETIME}"
+ UPD022 = ""
+ UPD023 = "--"
+ UPD024 = "Academic Community System"
+ UPD025 = "{SYSTEM_BASE_URL}"
+
+[ACSDiary.class.php]
+ M001 = "Please select search type."
+ M002 = "Photographs"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}"
+
+[ACSDiaryBackup.class.php]
+ M001 = "Scope of Public Access"
+
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {YEAR},{MONTH}
+ YEAR_MONTH = "{YEAR} {MONTH}"
+
+[ACSFolder.class.php]
+ M001 = "(Route folder)"
+
+[ACSFolderModel.class.php]
+ M001 = "(Root of Directory)"
+
+[ACSLib.class.php]
+ M001 = "Sun"
+ M002 = "Mon"
+ M003 = "Tue"
+ M004 = "Wed"
+ M005 = "Thu"
+ M006 = "Fri"
+ M007 = "Sat"
+ M008 = "Year"
+ M009 = "format of year."
+ M010 = "Month"
+ M011 = "formato of manth."
+ M012 = "format :"
+ M013 = "Day"
+ M014 = "format of day."
+
+[ACSLog.class.php]
+ M001 = "System manager"
+ M002 = "Login User"
+ M003 = "Succeed"
+ M004 = "Fail"
+
+[ACSSchedule.class.php]
+
+ ;
+ ; sukeju^ruchoseiketeituutime^ruteikeibun
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {SUBJECT_NAME}
+ M001 = "Notification about decided date and time of {SUBJECT_NAME}"
+
+ ;
+ ; sukeju^ruchouseiketteitsuuchime^ruteikeibun
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_ANSWER_COUNT}
+ ; {SCHEDULE_PARTICIPATE_COUNT}
+ ; {SCHEDULE_DECISION_DATE}
+ ; {ANSWER_SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou RMD001~RMD999 madeteigika(tobibanfuka)
+ ;
+ DEC001 = "Academic Community System"
+ DEC002 = "{COMMUNITY_NAME}'s {USER_NAME}({USER_COMMUNITY_NAME})."
+ DEC003 = ""
+ DEC004 = "Notification about schedule modification of {SCHEDULE_NAME}"
+ DEC005 = "Report about decided date and time."
+ DEC006 = ""
+ DEC007 = "[Schedule contents]"
+ DEC008 = "File name : {SCHEDULE_NAME}"
+ DEC009 = "Host : {USER_NAME}({USER_COMMUNITY_NAME})"
+ DEC010 = "Detailed information : {SCHEDULE_DETAIL}"
+ DEC011 = "Date and time of deadline for response : {SCHEDULE_CLOSING_DATETIME}"
+ DEC012 = "Status of responses : {SCHEDULE_ANSWER_COUNT} / {SCHEDULE_PARTICIPATE_COUNT} people"
+ DEC013 = ""
+ DEC014 = "[Decision date]"
+ DEC015 = "{SCHEDULE_DECISION_DATE}"
+ DEC016 = ""
+ DEC017 = "Please click on the below listed URL and check the contents."
+ DEC018 = "{ANSWER_SCHEDULE_URL}"
+ DEC019 = ""
+ DEC020 = "--"
+ DEC021 = "Academic Community System"
+ DEC022 = "{SYSTEM_BASE_URL}"
+
+[ACSSystemConfig.class.php]
+ ;¥·¥¹¥Æ¥àÀßÄê ¹àÌÜ̾(name)
+ SYSTEM_NAME = "System name"
+ SYSTEM_OUTLINE = "System outline"
+ SYSTEM_BASE_URL = "System URL"
+ SYSTEM_BASE_LOGIN_URL = "My Page URL"
+ SYSTEM_MAIL_ADDR = "System mail address"
+ SMTP_SERVER = "SMTP server"
+ SMTP_PORT = "SMTP por"
+ LDAP_SERVER = "LDAP server"
+ LDAP_PORT = "LDAP port"
+ LDAP_BASE_DN = "LDAP Base DN"
+ LDAP_BIND_DN = "LDAP Bind DN"
+ LDAP_BIND_PASSWD = "LDAP Bind password"
+ DESIGN_STYLE_CSS_URL = "My Page design CSS URL"
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT = "Displayed number of new top page information"
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT = "Displayed number of new information lists"
+ FRIENDS_DISPLAY_MAX_COUNT = "Displayed number of My Friends"
+ COMMUNITY_DISPLAY_MAX_COUNT = "Displayed number of My Community"
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT = "Displayed number of user search results"
+ DIARY_RSS_TERM = "Term for acquiring diary RSS"
+ NEW_INFO_TOP_TERM = "Term for acquiring new information"
+ NEW_INFO_LIST_TERM = "Term for acquiring new information lists"
+ FOOTPRINT_LIST_TERM = "Term for acquiring footprint lists"
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT = "Displayed number of footprint lists"
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT = "Displayed number of community members"
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT = "Displayed number of community search results"
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT = "Displayed number of community schedules lists"
+ COMMUNITY_ML_MAIL_ADDR = "Community ML system mail adddress"
+ COMMUNITY_ML_POP_SERVER = "Community ML POP server"
+ COMMUNITY_ML_POP_PORT = "Community ML POP port"
+ COMMUNITY_ML_POP_USER = "Community ML POP user"
+ COMMUNITY_ML_POP_PASSWD = "Community ML POP password"
+ BBS_RSS_TERM = "Term for acquiring Bulletin Board RSS"
+ PROFILE_IMAGE_WIDTH_MAX = "Maximum width of profile photos"
+ PROFILE_IMAGE_HEIGHT_MAX = "Maximum height of profile photos"
+ PROFILE_IMAGE_THUMB_WIDTH_MAX = "Maximum width of profile photo thumbnails"
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX = "Maximum height of profile photo thumbnails"
+ BBS_IMAGE_WIDTH_MAX = "Maximum width of BBS upload image"
+ BBS_IMAGE_HEIGHT_MAX = "Maximum height of BBS upload image"
+ BBS_IMAGE_THUMB_WIDTH_MAX = "Maximum width of BBS upload image thumbnails"
+ BBS_IMAGE_THUMB_HEIGHT_MAX = "Maximum height of BBS upload image thumbnails"
+ BBS_IMAGE_RSS_WIDTH_MAX = "Maximum width of BBS upload image public release"
+ BBS_IMAGE_RSS_HEIGHT_MAX = "Maximum height of BBS upload image public release"
+ DIARY_IMAGE_WIDTH_MAX = "Maximum width of diary image"
+ DIARY_IMAGE_HEIGHT_MAX = "Maximum height of diary image"
+ DIARY_IMAGE_THUMB_WIDTH_MAX = "Maximum width of diary image thumbnails"
+ DIARY_IMAGE_THUMB_HEIGHT_MAX = "Maximum height of diary image thumbnails"
+ FOLDER_IMAGE_THUMB_WIDTH_MAX = "Maxium width of folder image thumbnails"
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX = "Maximum height of folder image thumbnails"
+ USER_RANKING_COUNT_TERM = "Term for tallying user ranking"
+ COMMUNITY_RANKING_COUNT_TERM = "Term for tallying community ranking"
+ RSS_DISPLAY_MAX_COUNT = "Number of public release outputs"
+ LOG_DISPLAY_MAX_COUNT = "Displayed number of log lists"
+ GET_LOGOUT_DATE_EVERYTIME = "Get logout date everytime"
+ NAME_DISPLAY_LEVEL = "Name display level"
+ DISPLAY_PHOTOS_FOR_PUBLIC = "Display photos for public"
+
+ ;¥·¥¹¥Æ¥àÀßÄê ¥Î¡¼¥È(note)
+ SYSTEM_NAME.note = ""
+ SYSTEM_OUTLINE.note = "Output to RSS"
+ SYSTEM_BASE_URL.note = "System's top page URL"
+ SYSTEM_BASE_LOGIN_URL.note = "Top page URL after login"
+ SYSTEM_MAIL_ADDR.note = ""
+ SMTP_SERVER.note = ""
+ SMTP_PORT.note = ""
+ LDAP_SERVER.note = ""
+ LDAP_PORT.note = ""
+ LDAP_BASE_DN.note = ""
+ LDAP_BIND_DN.note = ""
+ LDAP_BIND_PASSWD.note = ""
+ DESIGN_STYLE_CSS_URL.note = ""
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT.note = ""
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT.note = ""
+ FOOTPRINT_LIST_TERM.note = ""
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT.note = ""
+ FRIENDS_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_DISPLAY_MAX_COUNT.note = ""
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT.note = ""
+ DIARY_RSS_TERM.note = ""
+ NEW_INFO_TOP_TERM.note = "If you designate 0, the entire period will become target"
+ NEW_INFO_LIST_TERM.note = "If you designate 0, the entire period will become target"
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_ML_MAIL_ADDR.note = ""
+ COMMUNITY_ML_POP_SERVER.note = ""
+ COMMUNITY_ML_POP_PORT.note = ""
+ COMMUNITY_ML_POP_USER.note = ""
+ COMMUNITY_ML_POP_PASSWD.note = ""
+ BBS_RSS_TERM.note = ""
+ PROFILE_IMAGE_WIDTH_MAX.note = ""
+ PROFILE_IMAGE_HEIGHT_MAX.note = ""
+ PROFILE_IMAGE_THUMB_WIDTH_MAX.note = ""
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ BBS_IMAGE_WIDTH_MAX.note = ""
+ BBS_IMAGE_HEIGHT_MAX.note = ""
+ BBS_IMAGE_THUMB_WIDTH_MAX.note = ""
+ BBS_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ BBS_IMAGE_RSS_WIDTH_MAX.note = ""
+ BBS_IMAGE_RSS_HEIGHT_MAX.note = ""
+ DIARY_IMAGE_WIDTH_MAX.note = ""
+ DIARY_IMAGE_HEIGHT_MAX.note = ""
+ DIARY_IMAGE_THUMB_WIDTH_MAX.note = ""
+ DIARY_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ FOLDER_IMAGE_THUMB_WIDTH_MAX.note = ""
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ USER_RANKING_COUNT_TERM.note = ""
+ COMMUNITY_RANKING_COUNT_TERM.note = ""
+ RSS_DISPLAY_MAX_COUNT.note = ""
+ LOG_DISPLAY_MAX_COUNT.note = ""
+ GET_LOGOUT_DATE_EVERYTIME.note = ""
+ NAME_DISPLAY_LEVEL.note = ""
+ DISPLAY_PHOTOS_FOR_PUBLIC.note = ""
+
+ ;¥·¥¹¥Æ¥àÀßÄê ñ°Ì(unit)
+ SYSTEM_NAME.unit = ""
+ SYSTEM_OUTLINE.unit = ""
+ SYSTEM_BASE_URL.unit = ""
+ SYSTEM_BASE_LOGIN_URL.unit = ""
+ SYSTEM_MAIL_ADDR.unit = ""
+ SMTP_SERVER.unit = ""
+ SMTP_PORT.unit = ""
+ LDAP_SERVER.unit = ""
+ LDAP_PORT.unit = ""
+ LDAP_BASE_DN.unit = ""
+ LDAP_BIND_DN.unit = ""
+ LDAP_BIND_PASSWD.unit = ""
+ DESIGN_STYLE_CSS_URL.unit = ""
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT.unit = "Unit"
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT.unit = "Unit"
+ FRIENDS_DISPLAY_MAX_COUNT.unit = "Unit"
+ COMMUNITY_DISPLAY_MAX_COUNT.unit = "Unit"
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT.unit = "Unit"
+ DIARY_RSS_TERM.unit = "Day"
+ NEW_INFO_TOP_TERM.unit = "Day"
+ NEW_INFO_LIST_TERM.unit = "Day"
+ FOOTPRINT_LIST_TERM.unit = "Day"
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT.unit = "Unit"
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT.unit = "Unit"
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT.unit = "Unit"
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT.unit = "Unit"
+ COMMUNITY_ML_MAIL_ADDR.unit = ""
+ COMMUNITY_ML_POP_SERVER.unit = ""
+ COMMUNITY_ML_POP_PORT.unit = ""
+ COMMUNITY_ML_POP_USER.unit = ""
+ COMMUNITY_ML_POP_PASSWD.unit = ""
+ BBS_RSS_TERM.unit = "Day"
+ PROFILE_IMAGE_WIDTH_MAX.unit = "px"
+ PROFILE_IMAGE_HEIGHT_MAX.unit = "px"
+ PROFILE_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_RSS_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_RSS_HEIGHT_MAX.unit = "px"
+ DIARY_IMAGE_WIDTH_MAX.unit = "px"
+ DIARY_IMAGE_HEIGHT_MAX.unit = "px"
+ DIARY_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ DIARY_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ FOLDER_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ USER_RANKING_COUNT_TERM.unit = "Day"
+ COMMUNITY_RANKING_COUNT_TERM.unit = "Day"
+ RSS_DISPLAY_MAX_COUNT.unit = "Day"
+ LOG_DISPLAY_MAX_COUNT.unit = "Day"
+ GET_LOGOUT_DATE_EVERYTIME.unit = ""
+ NAME_DISPLAY_LEVEL.unit = ""
+ DISPLAY_PHOTOS_FOR_PUBLIC.unit = ""
+
+ ;¥·¥¹¥Æ¥àÀßÄê ñ°Ì(select)
+ GET_LOGOUT_DATE_EVERYTIME.select = "1:Use,0:No use"
+ NAME_DISPLAY_LEVEL.select = "05:Friend,02:LoginUser,01:Public"
+ DISPLAY_PHOTOS_FOR_PUBLIC.select = "1:Use,0:No use"
+
+
+[ACSWaiting.class.php]
+ M001 = "Academic Community System Automatic Mail Transmission"
+ M002 = "Announcement : Someone request to add your friends."
+ M003 = "Announcement : Someone request to join the community you managed."
+ M004 = "Announcement : Community invitation."
+ M005 = "Announcement : Someone request to link communities."
+ M006 = "Announcement : Your request to add friends is comfirmed."
+ M007 = "Announcement : Your request to join the community is confirmed."
+ M008 = "Announcement : Community invitation."
+ M009 = "Announcement : Your request to communities link is confirmed."
+
+ ;
+ ; me^rusoushinkyoutsuutaitoru
+ ;
+ ; (kigou)gyou MTL001~MTL999 madeteigika(tobibanfuka)
+ ;
+ MTL001 = "***************************************************************"
+ MTL002 = " This message is sent automatically by ACS"
+ MTL003 = "***************************************************************"
+
+ ;
+ ; maifurenzutsuikairai
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou ADF001~ADF999 madeteigika(tobibanfuka)
+ ;
+ ADF001 = "Dear {TARGET_USER_NAME}:"
+ ADF002 = ""
+ ADF003 = "Announcement from Academic Community System."
+ ADF004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) requested to add friends-list."
+ ADF005 = ""
+ ADF006 = "[Message]"
+ ADF007 = "{MESSAGE}"
+ ADF008 = ""
+ ADF009 = "Please access following URL to accept/denied."
+ ADF010 = "{WAITING_URL}"
+ ADF011 = ""
+ ADF012 = "--"
+ ADF013 = "Academic Community System"
+ ADF014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteisankairai
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ JCM001 = "Dear manager of {TARGET_COMMUNITY_NAME} community:"
+ JCM002 = ""
+ JCM003 = "Announcement from Academic Community System."
+ JCM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) invite you to the community."
+ JCM005 = ""
+ JCM006 = "[Message]"
+ JCM007 = "{MESSAGE}"
+ JCM008 = ""
+ JCM009 = "Please access following URL to accept/denied."
+ JCM010 = "{WAITING_URL}"
+ JCM011 = ""
+ JCM012 = "--"
+ JCM013 = "Academic Community System"
+ JCM014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteishoutai
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ ICM001 = "Dear {TARGET_USER_NAME}:"
+ ICM002 = ""
+ ICM003 = "Announcement from Academic Community System."
+ ICM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) invite you to the community."
+ ICM005 = ""
+ ICM006 = "[Invitation Community]"
+ ICM007 = "{COMMUNITY_NAME}"
+ ICM008 = "{COMMUNITY_URL}"
+ ICM009 = "[Message]"
+ ICM010 = "{MESSAGE}"
+ ICM011 = ""
+ ICM012 = "Please access following URL to accept/denied."
+ ICM013 = "{WAITING_URL}"
+ ICM014 = ""
+ ICM015 = "--"
+ ICM016 = "Academic Community System"
+ ICM017 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteikanrinkuirai
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {WAITING_TYPE_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ CML001 = "Dear manager of {TARGET_COMMUNITY_NAME} community:"
+ CML002 = ""
+ CML003 = "Announcement from Academic Community System."
+ CML004 = "Community-link request ({WAITING_TYPE_NAME}) from {USER_NAME} ({USER_COMMUNITY_NAME}), manager of {COMMUNITY_NAME}."
+ CML005 = ""
+ CML006 = ""
+ CML007 = "[Request Community]"
+ CML008 = "{COMMUNITY_NAME}"
+ CML009 = "{COMMUNITY_URL}"
+ CML010 = "[Message]"
+ CML011 = "{MESSAGE}"
+ CML012 = ""
+ CML013 = "Please access following URL to accept/denied."
+ CML014 = "{WAITING_URL}"
+ CML015 = ""
+ CML016 = "--"
+ CML017 = "Academic Community System"
+ CML018 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; maifurenzutsuikashounin
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ AMF001 = "Dear {TARGET_USER_NAME}:"
+ AMF002 = ""
+ AMF003 = "Announcement from Academic Community System."
+ AMF004 = "Accepted request of addition {USER_NAME} ({USER_COMMUNITY_NAME}) friends-list."
+ AMF005 = ""
+ AMF006 = "[Return Message]"
+ AMF007 = "{MESSAGE}"
+ AMF008 = ""
+ AMF009 = "--"
+ AMF010 = "Academic Community System"
+ AMF011 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteisankashounin
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ ACM001 = "Dear {TARGET_USER_NAME}:"
+ ACM002 = ""
+ ACM003 = "Announcement from Academic Community System."
+ ACM004 = "Accepted invitation to {COMMUNITY_NAME} community."
+ ACM005 = ""
+ ACM006 = "[Return Message]"
+ ACM007 = "{MESSAGE}"
+ ACM008 = ""
+ ACM009 ="--"
+ ACM010 = "Academic Community System"
+ ACM011 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteishoutaishounin
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ AIM001 = "Dear {TARGET_USER_NAME}:"
+ AIM002 = ""
+ AIM003 = "Announcement from Academic Community System."
+ AIM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) accepted invitation of community."
+ AIM005 = ""
+ AIM006 = "[invited community]"
+ AIM007 = "{COMMUNITY_NAME}"
+ AIM008 = "{COMMUNITY_URL}"
+ AIM009 = "[Return Message]"
+ AIM010 = "{MESSAGE}"
+ AIM011 = ""
+ AIM012 = "--"
+ AIM013 = "Academic Community System"
+ AIM014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; komyuniteikanrinkushounin
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {WAITING_TYPE_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou JCM001~JCM999 madeteigika(tobibanfuka)
+ ;
+ ACL001 = "Dear manager of {TARGET_COMMUNITY_NAME} community:"
+ ACL002 = ""
+ ACL003 = "Announcement from Academic Community System."
+ ACL004 = "{COMMUNITY_NAME} :"
+ ACL005 = "Community link ({WAITING_TYPE_NAME}) is accepted."
+ ACL006 = ""
+ ACL007 = "[Request Community]"
+ ACL008 = "{COMMUNITY_NAME}"
+ ACL009 = "{COMMUNITY_URL}"
+ ACL010 = "[Return Message]"
+ ACL011 = "{MESSAGE}"
+ ACL012 = ""
+ ACL013 = "--"
+ ACL014 = "Academic Community System"
+ ACL015 = "{SYSTEM_BASE_URL}"
+
+[ACSTemplateLib.class.php]
+ M001 = "Next"
+ M002 = "Prev"
+
+ ; pe^jijouhou
+ ; (kigou)kakitagugariyoukanou
+ ; {ALL_COUNT},{START_COUNT},{END_COUNT}
+ PAGE_INFO = "All {ALL_COUNT} units: Display {START_COUNT}-{END_COUNT} units"
+
+
+[ACSMessage.class.php]
+ M001 = "Academic Community System Automatic Mail Transmission"
+ M002 = "Announcement : Reception message"
+
+ ;
+ ; me^rusoushinkyoutsuutaitoru
+ ;
+ ; (kigou)gyou MTL001~MTL999 madeteigika(tobibanfuka)
+ ;
+ MTL001 = "***************************************************************"
+ MTL002 = " This message is sent automatically by ACS"
+ MTL003 = "***************************************************************"
+
+ ;
+ ; jushinmessagenooshirase
+ ;
+ ; (kigou)kakitagugariyoukanou
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; (kigou)gyou ADF001~ADF999 madeteigika(tobibanfuka)
+ ;
+ ADF001 = "Dear {TARGET_USER_NAME}:"
+ ADF002 = ""
+ ADF003 = "Announcement from Academic Community System."
+ ADF004 = "Message from {USER_NAME} ({USER_COMMUNITY_NAME})."
+ ADF005 = ""
+ ADF006 = "Please access following URL to read message."
+ ADF007 = "{MESSAGE_URL}"
+ ADF008 = ""
+ ADF009 = "--"
+ ADF010 = "Academic Community System"
+ ADF011 = "{SYSTEM_BASE_URL}"
--- /dev/null
+;
+; Created on 2007ǯ 3·î 20Æü ²ÐÍËÆü 19:26:19 JST
+; Created by [create_masterini.sh]
+;
+
+[category_group_master]
+ D0001 = "Research"
+ D0002 = "Education"
+ D0003 = "Field"
+ D0004 = "Occupation"
+ D0005 = "Club/Circle"
+ D0006 = "Interest/Pastime"
+ D0007 = "Other"
+
+[category_master]
+ D0001 = "Laboratory"
+ D0002 = "Research Group"
+ D0003 = "Study Group"
+ D0004 = "Collaborative Research"
+ D0005 = "Project"
+ D0006 = "Seminar"
+ D0007 = "Academic Association"
+ D0008 = "Symposium"
+ D0009 = "Research Association"
+ D0010 = "Workshop"
+ D0011 = "Lecture"
+ D0012 = "Special Lecture"
+ D0013 = "Lifelong Education"
+ D0014 = "Hardware"
+ D0015 = "Software"
+ D0016 = "Network"
+ D0017 = "Database"
+ D0018 = "Algorithm"
+ D0019 = "Speech Processing"
+ D0020 = "Graphical/Image Processing"
+ D0021 = "Media Processing"
+ D0022 = "Pattern Information Processing"
+ D0023 = "Fundamental Mathematics"
+ D0024 = "Mathematical Model"
+ D0025 = "Computation Theory"
+ D0026 = "Integrated System"
+ D0027 = "Logical Circuit"
+ D0028 = "Installed System"
+ D0029 = "Operating System"
+ D0030 = "System Control"
+ D0031 = "Programming"
+ D0032 = "Natural Language Processing"
+ D0033 = "Security"
+ D0034 = "Knowledge Information Processin"
+ D0035 = "Biological Information Processi"
+ D0036 = "Mobile"
+ D0037 = "Ubiquitous"
+ D0038 = "Healthcare"
+ D0039 = "Welfare"
+ D0040 = "Communication"
+ D0041 = "Grid"
+ D0042 = "Cognitive Science"
+ D0043 = "Media Application"
+ D0044 = "Simulation"
+ D0045 = "multiple degree of freedom syst"
+ D0046 = "Material Information"
+ D0047 = "Life Information"
+ D0048 = "Large Dimension Computing"
+ D0049 = "General Medical"
+ D0050 = "General Science"
+ D0051 = "General Biology"
+ D0052 = "General Physics"
+ D0053 = "Information Model"
+ D0054 = "Decentralized Coordination"
+ D0055 = "Intellectual Assistance"
+ D0056 = "Information Design"
+ D0057 = "Philosophy/Ethics"
+ D0058 = "General Education"
+ D0059 = "Language"
+ D0060 = "Education"
+ D0061 = "Psychology"
+ D0062 = "Economy"
+ D0063 = "Literature"
+ D0064 = "Law"
+ D0065 = "Society"
+ D0066 = "Health and Healthcare"
+ D0067 = "Undergraduate School"
+ D0068 = "School"
+ D0069 = "Graduate School"
+ D0070 = "Major"
+ D0071 = "Course"
+ D0072 = "Committee"
+ D0073 = "Humanities"
+ D0074 = "Sports"
+ D0075 = "Book/Author"
+ D0076 = "Music/Artist"
+ D0077 = "Movie/TV/Animation/Movie Star"
+ D0078 = "Game"
+ D0079 = "Car/Bike"
+ D0080 = "Travel"
+ D0081 = "Internet/Computer"
+ D0082 = "Food/Restaurant"
+ D0083 = "Fashion"
+ D0084 = "Pet/Animal"
+ D0085 = "Sports/Outdoors"
+ D0086 = "Qualifications/Certificates"
+ D0087 = "General Interest/Pastime"
+ D0088 = "Other"
+
+[community_member_type_master]
+ D10 = "Administrator"
+ D20 = "Member"
+
+[community_type_master]
+ D10 = "My Page"
+ D20 = "My Friends"
+ D30 = "My Friends Group"
+ D40 = "Community"
+
+[contents_type_master]
+ D00 = "Self"
+ D01 = "Name"
+ D02 = "Mail Address"
+ D03 = "Affiliation"
+ D04 = "Major"
+ D05 = "Place of Birth"
+ D06 = "Date of Birth"
+ D07 = "Profile"
+ D08 = "Login User Profile"
+ D09 = "Friend Profile"
+ D11 = "My Friends"
+ D21 = "Diary"
+ D31 = "Folder"
+ D32 = "Folder/Folder"
+ D33 = "File"
+ D41 = "Bulletin Board"
+ D42 = "Bulletin Board Thread"
+ D43 = "Private Community Bulletin Board Thread"
+ D51 = "mail_lang"
+ D52 = "Last Login"
+ D53 = "My Page Design"
+ D61 = "Community ML Address"
+ D62 = "Community ML Status"
+ D63 = "External RSS URL"
+ D64 = "External RSS Post User"
+ D65 = "External RSS ML Send Flag"
+ D66 = "External RSS Public Release Term"
+
+[file_category_master]
+ D0000 = "Not Specified"
+ D0001 = "Article"
+ D0002 = "Presentation"
+ D0003 = "Picture"
+ D0004 = "Movie"
+
+[file_contents_type_master]
+ D0001 = "Author"
+ D0002 = "Title"
+ D0003 = "Journal/Association"
+ D0004 = "Volume Number"
+ D0005 = "Page (from)"
+ D0006 = "Page (to)"
+ D0007 = "Date of Announcement/Publication"
+ D0008 = "Language"
+ D0009 = "Venue"
+ D0010 = "Publisher"
+ D0011 = "Article Type"
+ D0012 = "Remarks"
+
+[file_history_operation_master]
+ D0101 = "New"
+ D0201 = "Refresh"
+ D0301 = "Revive"
+
+[open_level_master]
+ D01 = "Open to General Public"
+ D02 = "Open to Logged in Users"
+ D03 = "Private"
+ D04 = "Private (Members Only)"
+ D05 = "Open to Friends"
+ D06 = "Public Release"
+
+[waiting_status_master]
+ D10 = "Approval Pending"
+ D20 = "Approved"
+ D30 = "Rejected"
+
+[waiting_type_master]
+ D10 = "Add to My Friends"
+ D20 = "Add to Community"
+ D30 = "Invite to Community"
+ D40 = "Add Parent Community"
+ D50 = "Add Sub Community"
+
+[system_config_group]
+ D01 = "System"
+ D02 = "My Page"
+ D03 = "Community"
+ D04 = "Graphics File"
+ D05 = "Ranking"
+ D06 = "Public Release"
+ D07 = "Log"
+ D08 = "User Info"
--- /dev/null
+[acs_base.tpl.php]
+ M001 = "Academic Community System"
+ M002 = "Academic Community System"
+ M003 = "Login"
+ M004 = "Folder"
+ M005 = "Diary"
+ M006 = "Profile"
+ M007 = "Edit"
+ M008 = "Confirm"
+ M009 = "MyPage"
+ M010 = "Community"
+ M011 = "Search ACS member"
+ M012 = "Help"
+ M013 = "Logout"
+ M014 = "System Management"
+
+ ; ukitagugariyoukanou {USER_NAME}
+ WELCOME = "Welcome, {USER_NAME}"
+
--- /dev/null
+[GlobalSecure.tpl.php]
+ M001 = "¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+
+[LoginInput.tpl.php]
+ M001 = "¥í¥°¥¤¥ó²èÌÌ"
+ M002 = "¥æ¡¼¥¶ID"
+ M003 = "¥Ñ¥¹¥ï¡¼¥É"
+ M004 = "¥í¥°¥¤¥ó"
+
+[LoginAction.class.php]
+ M001 = "¥æ¡¼¥¶ID¤Þ¤¿¤Ï¥Ñ¥¹¥ï¡¼¥É¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M002 = "LDAP¤Ø¤ÎÀܳ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+
--- /dev/null
+[Index.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¼Ì¿¿Êѹ¹"
+ M003 = "·Ç¼¨ÈÄ"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À"
+ M005 = "¥³¥ß¥å¥Ë¥Æ¥£¾ðÊóÊѹ¹"
+ M006 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ"
+ M007 = "¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼ÔÀßÄê"
+ M008 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê"
+ M009 = "¥³¥ß¥å¥Ë¥Æ¥£ºï½ü"
+ M010 = "¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤¹¤ë"
+ M011 = "¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤«¤éÂà²ñ¤¹¤ë"
+ M012 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍ꤬¤¢¤ê¤Þ¤¹"
+ M013 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê¡Ê¿Æ¥³¥ß¥å¥Ë¥Æ¥£Äɲáˤ¬¤¢¤ê¤Þ¤¹"
+ M014 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê¡Ê¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£Äɲáˤ¬¤¢¤ê¤Þ¤¹"
+ M015 = "·ï"
+ M016 = "¥³¥ß¥å¥Ë¥Æ¥£Ì¾"
+ M017 = "³«ÀßÆü"
+ M018 = "³µÍ×"
+ M019 = "¥«¥Æ¥´¥ê"
+ M020 = "´ÉÍý¼Ô"
+ M021 = "¥á¥ó¥Ð¿ô"
+ M022 = "¿Í"
+ M023 = "»²²Ã»ñ³Ê"
+ M024 = "¾µÇ§¤¬É¬Í×"
+ M025 = "¼«Í³»²²Ã²Äǽ¥³¥ß¥å¥Ë¥Æ¥£"
+ M026 = "¼«Í³»²²Ã"
+ M027 = "·Ç¼¨ÈĤθø³«ÈÏ°Ï"
+ M028 = "¸ø³«¥³¥ß¥å¥Ë¥Æ¥£"
+ M029 = "¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï"
+ M030 = "¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈÏ°Ï"
+ M031 = "¿Æ¥³¥ß¥å¥Ë¥Æ¥£"
+ M032 = "¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£"
+ M033 = "¿·Ãåµ»ö"
+ M034 = "¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸"
+ M035 = "¥á¥ó¥Ð"
+ M036 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷"
+ M037 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðºï½ü"
+ M038 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°"
+ M039 = "³°ÉôRSS¼«Æ°¼è¹þÀßÄê"
+
+[Index_error.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¤¬Â¸ºß¤·¤Þ¤»¤ó¡£"
+
+[AddCommunityLinkAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍ괰λ"
+ M002 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+ M005 = "¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+ M006 = "¥ê¥ó¥¯¼ïÊ̤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M007 = "¥ê¥ó¥¯¤òÀßÄꤹ¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M008 = "¥á¥Ã¥»¡¼¥¸¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[BBSPreAction.class.php]
+ M001 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M002 = "ÆâÍƤòÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "¸ø³«ÈϰϤòÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M004 = "·ÇºÜ½ªÎ»Æü¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£"
+
+[BBSResPreAction.class.php]
+ M001 = "ÊÖ¿®Åê¹Æ¤Î½ñ¤¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿"
+ M002 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "ÆâÍƤòÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[CreateCommunityAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£ºîÀ®´°Î»"
+ M002 = "´°Î»¤·¤Þ¤·¤¿"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M050 = "¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M051 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë¤Ï±Ñ¿ô»ú¡¦¥Ï¥¤¥Õ¥ó¡Ê-¡Ë¡¦¥¢¥ó¥À¡¼¥¹¥³¥¢¡Ê_¡Ë°Ê³°¤Îʸ»ú¤Ï»ÈÍѤǤ¤Þ¤»¤ó¡£"
+ M052 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë¤Ï±Ñ¿ô»ú¤«¤é»Ï¤Þ¤ë̾Á°¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£"
+ M053 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë»ØÄꤵ¤ì¤¿Ì¾Á°¤ÏÍøÍѤǤ¤Þ¤»¤ó¡£ÍøÍѤǤ¤Ê¤¤Ì¾Á°¡§"
+ M054 = "»ØÄꤷ¤¿¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ï´û¤Ë¸ºß¤·¤Æ¤¤¤Þ¤¹¡£"
+
+[DecideScheduleAction.class.php]
+ M050 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M051 = "·ï̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M052 = "ËÜʸ¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M053 = "ËÜʸ¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+
+[DeleteBBSAction.class.php]
+ M001 = "µ»ö¤¬¼èÆÀ¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+
+[DeleteCommunityAction.class.php]
+ M001 = "¥Þ¥¤¥Ú¡¼¥¸¤ØÌá¤ë"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£ºï½ü´°Î»"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_COMMUNITY_NAME}
+ DELETECM = "{TARGET_COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤òºï½ü¤·¤Þ¤·¤¿¡£"
+
+[DeleteCommunityLinkAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ºï½ü´°Î»"
+ M002 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Ø¤ÎÌá¤ê
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "{COMMUNITY_NAME} ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[DeleteCommunityMemberAction.class.php]
+ M001 = "¥á¥ó¥Ðºï½ü´°Î»"
+ M002 = "ºï½ü¤·¤Þ¤·¤¿¡£"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Ø¤ÎÌá¤ê
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "{COMMUNITY_NAME}¤ØÌá¤ë"
+
+[DeleteFolderAction.class.php]
+ M001 = "ºï½ü¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[EditBBSAction.class.php]
+ M001 = "·ï̾¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M002 = "ÆâÍƤòÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[EditBBSResAction.class.php]
+ M001 = "·ï̾¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M002 = "ÆâÍƤòÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[EditCommunityAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë¤Ï±Ñ¿ô»ú¡¦¥Ï¥¤¥Õ¥ó¡Ê-¡Ë¡¦¥¢¥ó¥À¡¼¥¹¥³¥¢¡Ê_¡Ë°Ê³°¤Îʸ»ú¤Ï»ÈÍѤǤ¤Þ¤»¤ó¡£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë¤Ï±Ñ¿ô»ú¤«¤é»Ï¤Þ¤ë̾Á°¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ë»ØÄꤵ¤ì¤¿Ì¾Á°¤ÏÍøÍѤǤ¤Þ¤»¤ó¡£ÍøÍѤǤ¤Ê¤¤Ì¾Á°¡§"
+ M004 = "»ØÄꤷ¤¿¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤Ï´û¤Ë¸ºß¤·¤Æ¤¤¤Þ¤¹¡£"
+
+[EditCommunityAdminAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼ÔÀßÄ괰λ"
+ M002 = "´°Î»¤·¤Þ¤·¤¿¡£"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Ø¤ÎÌá¤ê
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "{COMMUNITY_NAME} ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[EditExternalRSSAction.class.php]
+ M001 = "³°ÉôRSS¼«Æ°¼è¹þÀßÄ괰λ"
+ M002 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+ M004 = "¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+ M005 = "RSS URL¤ò http:// ¤Î·Á¼°¤ÇÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M006 = "·ÇºÜ´ü´Ö¤Î·Á¼°¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£¡Ê1°Ê¾å¤ÎȾ³Ñ¿ô»ú, ¤Þ¤¿¤Ï¶õÍó¡Ë"
+ M007 = "Åê¹Æ¼Ô¤òÁªÂò¤·¤Æ²¼¤µ¤¤¡£";
+
+[EditFolderAction.class.php]
+ M001 = "¥Õ¥©¥ë¥À̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£¡Ê100ʸ»ú°ÊÆâ¡Ë"
+ M002 = "¥Õ¥©¥ë¥À̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "¤¹¤Ç¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À̾¤Ç¤¹¡£"
+
+[EditScheduleAction.class.php]
+ M001 = "¥·¥¹¥Æ¥à¤ËɬÍפʥѥé¥á¡¼¥¿¤ËÉÔÀµ¤¬¤¢¤ê¤Þ¤¹¡£"
+ M002 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "ÁªÂò»è¤Î²óÅúµ¹æ¤¬½ÅÊ£¤·¤Æ¤¤¤Þ¤¹¡£"
+ M004 = "ÁªÂò»è¤Î²óÅúµ¹æ¤È¥¹¥³¥¢¤Î¥»¥Ã¥È¤Ëϳ¤ì¤¬¤¢¤ê¤Þ¤¹¡£"
+ M005 = "ÁªÂò»è¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£"
+ M006 = "ÁªÂò»è¤Î½é´üÃͤ˸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M007 = "ÁªÂò»è¤Î¥¹¥³¥¢¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M009 = "·ï̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M010 = "¾ì½ê¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M011 = "¾ÜºÙ¾ðÊó¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M012 = "Äɲ乤ë¸õÊäÆü»þ¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M013 = "ÁªÂò»è²óÅú¤ÎÀâÌÀʸ¤¬Ä¹¤¹¤®¤Þ¤¹¡£ºÇÂçȾ³Ñʸ»ú¿ô:"
+ M014 = "¸õÊäÆü»þ¤ÎºÇÂç¿ô¤òĶ¤¨¤Æ¤¤¤Þ¤¹¡£ºÇÂç¿ô:"
+ M015 = "¸õÊäÆü»þ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£"
+ M016 = "ÄùÀÚÆü»þ¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M017 = "ÄùÀÚÆü»þ¤¬²áµî¤ÎÆü»þ¤Ç¤¹¡£"
+
+[InviteToCommunityAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ ¾µÇ§°ÍÍ괰λ"
+ M002 = "´°Î»¤·¤Þ¤·¤¿"
+ M003 = "¾·ÂÔ¤¹¤ë¥æ¡¼¥¶¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M004 = "¥á¥Ã¥»¡¼¥¸¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Ø¤ÎÌá¤ê
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ BACK_TO_CM = "{COMMUNITY_NAME} ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[JoinCommunityAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã ¾µÇ§°ÍÍ괰λ"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã´°Î»"
+ M003 = "´°Î»¤·¤Þ¤·¤¿"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[LeaveCommunityAction.class.php]
+ M001 = "¥Þ¥¤¥Ú¡¼¥¸¤ØÌá¤ë"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£Âà²ñ´°Î»"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¤ÎÂà²ñ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; %COMMUNITY_NAME%
+ LEAVE_CM = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤«¤éÂà²ñ¤·¤Þ¤·¤¿¡£"
+ BACK_TO_CM = "{COMMUNITY_NAME}¤ØÌá¤ë"
+
+[MoveFolderAction.class.php]
+ M001 = "°ÜÆ°Àè¥Õ¥©¥ë¥À¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[MoveFolderListAction.class.php]
+ M001 = "°ÜÆ°¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[PressReleaseAllRSSAction.class.php]
+ M001 = "¥í¥´²èÁü¤Î¥¿¥¤¥È¥ë¡ÊÅÐÏ¿¥Ç¡¼¥¿¤Ê¤·¡Ë"
+ M002 = "¥í¥´²èÁü¤ÎURL¡ÊÅÐÏ¿¥Ç¡¼¥¿¤Ê¤·¡Ë"
+ M003 = "¥í¥´²èÁü¤Î¥ê¥ó¥¯Ì¾¡ÊÅÐÏ¿¥Ç¡¼¥¿¤Ê¤·¡Ë"
+ M004 = "¥í¥´²èÁü¤Î³µÍסÊÅÐÏ¿¥Ç¡¼¥¿¤Ê¤·¡Ë"
+
+[PressReleaseRSS.php]
+ M001 = "¸¦µæ¼¼¥í¥´²èÁü"
+
+[PressReleaseRSSAction.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¼Ì¿¿¤Ï¤¢¤ê¤Þ¤»¤ó"
+
+[RenameFolderAction.class.php]
+ M001 = "¿·¤·¤¤Ì¾Á°¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M002 = "¥Õ¥©¥ë¥À̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£¡Ê100ʸ»ú°ÊÆâ¡Ë"
+ M003 = "¿·¤·¤¤Ì¾Á°¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[RenameFolderListAction.class.php]
+ M001 = "̾Á°Êѹ¹¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[RestoreHistoryFileAction.class.php]
+ M001 = "Éü³è"
+
+[SearchResultBBSAction.class.php]
+ M001 = "³ºÅö¤¹¤ë¾ðÊ󤬤¢¤ê¤Þ¤»¤ó"
+
+[WaitingListAction.class.php]
+ M001 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M002 = "¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¥Ú¡¼¥¸¤Ø¤ÎÌá¤ê
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {WAITING_TYPE_NAME} {COMMUNITY_NAME}
+ FIN_ADM = "{WAITING_TYPE_NAME} ¾µÇ§´°Î»"
+ FIN_DIS = "{WAITING_TYPE_NAME} µñÈÝ´°Î»"
+ BACK_TO_CM = "{COMMUNITY_NAME} ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[AnswerScheduleSuccessView.class.php]
+ M001 = "¥¹¥³¥¢"
+ M002 = "ÀâÌÀ"
+ M003 = "·èÄê"
+ M004 = "ÄùÀÚ"
+ M005 = "Ê罸Ãæ"
+
+[BBSRSSSuccessView.class.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¼Ì¿¿¤Ï¤¢¤ê¤Þ¤»¤ó"
+
+[EditFileDetailSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÊÔ½¸
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤Î¥Õ¥©¥ë¥À"
+
+[FileDetailSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤Î¥Õ¥©¥ë¥À"
+
+[FolderDetailSuccessView.class.php]
+ ; ¥Õ¥©¥ë¥À¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤Î¥Õ¥©¥ë¥À"
+
+[FolderSuccessView.class.php]
+ ; ¥Õ¥©¥ë¥À
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤Î¥Õ¥©¥ë¥À"
+
+[ScheduleSuccessView.class.php]
+ M001 = "·èÄê"
+ M002 = "ÄùÀÚ"
+ M003 = "Ê罸Ãæ"
+ M004 = "¿Í"
+
+[AddCommunityLink.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲÃ"
+ M004 = "¥ê¥ó¥¯¼ïÊÌ"
+ M005 = "¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Î<b>¿Æ¥³¥ß¥å¥Ë¥Æ¥£</b>¤Ë¤Ê¤Ã¤Æ¤â¤é¤¦"
+ M006 = "¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Î<b>¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£</b>¤Ë¤Ê¤Ã¤Æ¤â¤é¤¦"
+ M007 = "¥ê¥ó¥¯¤òÀßÄꤹ¤ë<br>¥³¥ß¥å¥Ë¥Æ¥£"
+ M008 = "ÁªÂò"
+ M009 = " ¢¨¥³¥ß¥å¥Ë¥Æ¥£¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M010 = "¥á¥Ã¥»¡¼¥¸"
+ M011 = " Á÷¿® "
+
+[BBS.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "·Ç¼¨Èĸ¡º÷"
+ M004 = "·ï̾"
+ M005 = "ÆâÍÆ"
+ M006 = "¼Ì¿¿"
+ M007 = "¸ø³«ÈÏ°Ï"
+ M008 = "½ñ¤¹þ¤à"
+ M009 = " ¢¨±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M010 = " ·ÇºÜ½ªÎ»Æü: "
+ M011 = " ¢¨yyyy/mm/dd·Á¼°¤ÇÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M012 = "¥¹¥ì¥Ã¥É°ìÍ÷"
+ M013 = "Á´¤Æɽ¼¨"
+ M014 = "Åê¹ÆÆü"
+ M015 = "ÊÖ¿®"
+ M016 = "ÊÔ½¸"
+ M017 = "ºï½ü"
+ M018 = "¸ø³«ÈÏ°Ï"
+ M019 = "·ÇºÜ½ªÎ»Æü"
+ M020 = "¸ø³«¥³¥ß¥å¥Ë¥Æ¥£"
+ M021 = "ºï½ü¤·¤Þ¤·¤¿"
+ M022 = "Åê¹ÆÆü"
+ M023 = "ºï½ü¤·¤Þ¤·¤¿"
+ M024 = "¿Æ¥³¥ß¥å¥Ë¥Æ¥£"
+ M025 = "¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£"
+ M026 = "ÄɲÃ"
+ M027 = "Á´¤ÆÆɤà"
+ M028 = "¥³¥ß¥å¥Ë¥Æ¥£ML"
+ M029 = "¥³¥ß¥å¥Ë¥Æ¥£ML¤ØÄÌÃΤ¹¤ë"
+ M030 = "¡Ê¢¨¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¡¢¤³¤Îµ¡Ç½¤Ï»ÈÍѤǤ¤Þ¤»¤ó¡£¡Ë"
+ M031 = "¸µ¤Îµ»ö¤Ø¤Î¥ê¥ó¥¯"
+ M032 = "RSSÇÛ¿®"
+ M033 = "³°ÉôRSS¼è¹þ¼Â¹Ô"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {OMISSION_NUM}
+ TPL = "¡Ê1 - {OMISSION_NUM} ·ïÌܤϾÊά¤µ¤ì¤Þ¤·¤¿¡Ë"
+
+[BBSPre.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ Åê¹Æ³Îǧ²èÌÌ"
+ M003 = "°Ê²¼¤ÎÆâÍƤòÅê¹Æ¤·¤Þ¤¹¡£"
+ M004 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "Åê¹Æ¼Ô¾ðÊó"
+ M006 = "ÆâÍÆ"
+ M007 = "¼Ì¿¿"
+ M008 = "¸ø³«ÈÏ°Ï"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "·ÇºÜ½ªÎ»Æü"
+ M011 = "¸ø³«¥³¥ß¥å¥Ë¥Æ¥£"
+ M012 = "¥¥ã¥ó¥»¥ë"
+ M013 = "¡Î¥¥ã¥ó¥»¥ë¡Ï¡á¡ä¡Ö¼Ì¿¿¡×¤È¡Ö¸ø³«ÈϰϡפÎÌÀºÙ¾ðÊó¤Ï¡¢ÀßÄꤷ¤Ê¤ª¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£"
+ M014 = "·ï̾"
+ M015 = "¥Õ¥¡¥¤¥ë"
+ M016 = "ÆâÍÆ"
+ M017 = "¥³¥ß¥å¥Ë¥Æ¥£ML"
+ M018 = "ÄÌÃΤ¹¤ë"
+ M019 = "ÄÌÃΤ·¤Ê¤¤"
+
+[BBSRes.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "ÊÖ¿®"
+ M004 = "¡ÊÊÖ¿®¥Õ¥©¡¼¥à¤Ï²¼Éô¤Ë¤¢¤ê¤Þ¤¹¡£¡Ë"
+ M005 = "½ñ¤¹þ¤à"
+ M006 = "Åê¹ÆÆü"
+ M007 = "¸ø³«ÈÏ°Ï"
+ M008 = "·ÇºÜ½ªÎ»Æü"
+ M009 = "¸ø³«¥³¥ß¥å¥Ë¥Æ¥£"
+ M010 = "Åê¹ÆÆü"
+ M011 = "ÊÔ½¸"
+ M012 = "ºï½ü"
+ M013 = "ºï½ü¤·¤Þ¤·¤¿"
+ M014 = "·ï̾"
+ M015 = "ÆâÍÆ"
+ M016 = "½ñ¤¹þ¤à"
+ M017 = "¸µ¤Îµ»ö¤Ø¤Î¥ê¥ó¥¯"
+ M018 = "RSSÇÛ¿®"
+ M019 = "¥³¥ß¥å¥Ë¥Æ¥£ML"
+ M020 = "¥³¥ß¥å¥Ë¥Æ¥£ML¤ØÄÌÃΤ¹¤ë"
+
+[BBSResPre.tpl.php]
+ M001 = "·Ç¼¨ÈÄ"
+ M002 = "ÊÖ¿® Åê¹Æ³Îǧ²èÌÌ"
+ M003 = "°Ê²¼¤ÎÆâÍƤòÅê¹Æ¤·¤Þ¤¹¡£"
+ M004 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "Åê¹Æ¼Ô¾ðÊó"
+ M006 = "·ï̾"
+ M007 = "ÆâÍÆ"
+ M008 = "¥¥ã¥ó¥»¥ë"
+ M009 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+
+[BBSThreadList.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "¥¹¥ì¥Ã¥É°ìÍ÷"
+
+[CommunityLink.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲÃ"
+ M004 = "¿Æ¥³¥ß¥å¥Ë¥Æ¥£"
+ M005 = "ºï½ü"
+ M006 = "¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£"
+ M007 = "ºï½ü"
+
+[CommunityMemberList.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷"
+ M004 = "¤Ê¤·"
+
+[CreateCommunity.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£ºîÀ®"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£Ì¾"
+ M003 = "³µÍ×"
+ M004 = "¥«¥Æ¥´¥ê"
+ M005 = "»²²Ã»ñ³Ê"
+ M006 = "¼«Í³»²²Ã"
+ M007 = "¾µÇ§¤¬É¬Í×"
+ M008 = "·Ç¼¨ÈĤθø³«ÈÏ°Ï"
+ M009 = "¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈÏ°Ï"
+ M010 = " ¡Ê¢¨¥³¥ß¥å¥Ë¥Æ¥£¤Î¸ºß¤¬¥á¥ó¥Ð°Ê³°¤«¤é¸«¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£¡Ë"
+ M011 = " ºîÀ® "
+ M012 = " ¢¨¼«Í³»²²Ã¤Îµö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M013 = " ¢¨±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M014 = "¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï"
+ M015 = "ÄɲÃ"
+ M016 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹"
+ M017 = " ¡Ê¢¨°ìÅÙÀßÄꤹ¤ë¤ÈÊѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¡Ë"
+
+[DeleteBBS.tpl.php]
+ M001 = "·Ç¼¨ÈÄ¡¡Åê¹Æ¡¡ºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ëÅê¹Æ¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¤Þ¤¿¡¢ÊÖ¿®¤µ¤ì¤¿Åê¹Æ¤â°ì½ï¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M005 = "Åê¹Æ¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "OK"
+ M007 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteBBSRes.tpl.php]
+ M001 = "·Ç¼¨ÈÄ¡¡ÊÖ¿®Åê¹Æ¡¡ºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ëÊÖ¿®Åê¹Æ¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "Åê¹Æ¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteCommunityLink.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ºï½ü"
+ M004 = "°Ê²¼¤Î¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "ºï½ü¤¹¤ë¤È¡¢ÁÐÊý¤Î¥³¥ß¥å¥Ë¥Æ¥£¤«¤é¥ê¥ó¥¯¤¬ºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M006 = "¿Æ¥³¥ß¥å¥Ë¥Æ¥£"
+ M007 = "¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£"
+ M008 = "OK"
+ M009 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteCommunityMemberList_confirm.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥á¥ó¥Ðºï½ü"
+ M003 = "°Ê²¼¤Î¥á¥ó¥Ð¤òºï½ü¤·¤Þ¤¹¡£"
+ M004 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M005 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "OK"
+ M007 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteCommunityMemberList_input.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥á¥ó¥Ðºï½ü"
+ M003 = "ºï½ü¤¹¤ë¥á¥ó¥Ð¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M004 = "ºï½ü"
+
+[DeleteCommunity_confirm.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£ºï½ü"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤òºï½ü¤·¤Þ¤¹¡£"
+ M004 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M005 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "¡Ú³µÍסÛ"
+ M007 = "OK"
+ M008 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteFolder.tpl.php]
+ M001 = "ºï½ü"
+ M002 = "°Ê²¼¤Î¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Þ¤¹¡£¥Õ¥©¥ë¥À¤ÏÇÛ²¼¤Î¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤¬Á´¤Æºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M003 = "¥×¥Ã¥È¥Õ¥©¥ë¥À¤¬¤¢¤ë¾ì¹ç¤Ï²ò½ü¤µ¤ì¤Þ¤¹¡£"
+ M004 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M005 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "OK"
+ M007 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteProfileImage.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¼Ì¿¿¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[EditBBS.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "Åê¹ÆÆâÍÆÊÔ½¸"
+ M004 = "·Ç¼¨ÈǤÎÅê¹ÆÆâÍƤòÊÔ½¸¤·¤Þ¤¹¡£"
+ M005 = "½ñ¤¹þ¤à"
+ M006 = "·ï̾"
+ M007 = "ÆâÍÆ"
+ M008 = "¼Ì¿¿"
+
+[EditBBSRes.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "ÊÖ¿®"
+ M004 = "Åê¹ÆÆâÍÆÊÔ½¸"
+ M005 = "·Ç¼¨ÈǤÎÊÖ¿®ÆâÍƤòÊÔ½¸¤·¤Þ¤¹¡£"
+ M006 = "ÊÔ½¸"
+ M007 = "·ï̾"
+ M008 = "ÆâÍÆ"
+
+[EditCommunity.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "ÊÔ½¸"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£Ì¾"
+ M004 = "³µÍ×"
+ M005 = "¥«¥Æ¥´¥ê"
+ M006 = "»²²Ã»ñ³Ê"
+ M007 = "¼«Í³»²²Ã"
+ M008 = "¾µÇ§¤¬É¬Í×"
+ M009 = "¼«Í³»²²Ã"
+ M010 = "¾µÇ§¤¬É¬Í×"
+ M011 = "·Ç¼¨ÈĤθø³«ÈÏ°Ï"
+ M012 = "¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈÏ°Ï"
+ M013 = " ¡Ê¢¨¥³¥ß¥å¥Ë¥Æ¥£¤Î¸ºß¤¬¥á¥ó¥Ð°Ê³°¤«¤é¸«¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£¡Ë"
+ M014 = "³«ÀßÆü"
+ M015 = "OK"
+ M016 = "¥¥ã¥ó¥»¥ë"
+ M017 = "ÄɲÃ"
+ M018 = " ¢¨¼«Í³»²²Ã¤Îµö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M019 = " ¢¨±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M020 = "¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï"
+ M021 = "¼«Í³»²²Ã"
+ M022 = "¾µÇ§¤¬É¬Í×"
+ M023 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹"
+ M024 = " ¡Ê¢¨°ìÅÙÀßÄꤹ¤ë¤ÈÊѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¡Ë"
+ M025 = " ¡Ê¢¨ÀßÄ꤬͸ú¤Ë¤Ê¤ë¤Þ¤Ç1ʬÄøÅÙ¤ªÂÔ¤Á²¼¤µ¤¤¡£¡Ë"
+
+[EditCommunityAdmin.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼ÔÀßÄê"
+ M003 = "ÀßÄê"
+
+[EditExternalRSS.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "³°ÉôRSS¼«Æ°¼è¹þÀßÄê"
+ M003 = "³°Éô¤ÎRSS¤ò¼«Æ°Åª¤Ë¼è¤ê¹þ¤ß¡¢·Ç¼¨ÈĤ˷Ǻܤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£"
+ M004 = "Åê¹Æ¼Ô"
+ M005 = "¡Ê¢¨¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤Î¤ß»ØÄê²Ä¡Ë"
+ M006 = "¸ø³«ÈÏ°Ï"
+ M007 = "¥³¥ß¥å¥Ë¥Æ¥£ML"
+ M008 = "¥³¥ß¥å¥Ë¥Æ¥£ML¤ØÄÌÃΤ¹¤ë"
+ M009 = "¡Ê¢¨¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹¤ÎÀßÄ꤬ɬÍפǤ¹¡£¡Ë"
+ M010 = "ÀßÄê"
+ M011 = "ÄɲÃ"
+ M012 = " ¢¨±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M013 = "·ÇºÜ´ü´Ö"
+ M014 = " Æü´Ö"
+
+[EditFileDetail.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M004 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÊÔ½¸"
+ M005 = "¾ÜºÙ¾ðÊó"
+ M006 = "¥Õ¥¡¥¤¥ë̾"
+ M007 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M008 = "OK"
+ M009 = "¥¥ã¥ó¥»¥ë"
+
+[EditFolder.tpl.php]
+ M001 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M002 = "ºîÀ®"
+ M003 = "¥Õ¥©¥ë¥À¾ðÊóÊѹ¹"
+ M004 = "Êѹ¹"
+ M005 = "¥Õ¥©¥ë¥À̾"
+ M006 = "¥³¥á¥ó¥È"
+ M007 = "¢¨±ÜÍ÷µö²Ä¤òÍ¿¤¨¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÄɲäǤ¤Þ¤¹¡£"
+ M008 = "¥¥ã¥ó¥»¥ë"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "ÄɲÃ"
+
+[EditProfileImage.tpl.php]
+ M001 = "¼Ì¿¿Êѹ¹"
+ M002 = "¼Ì¿¿¤òºï½ü¤¹¤ë"
+ M003 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£¤Ø "
+
+[EditSchedule.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷"
+ M003 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½¿·µ¬ºîÀ®"
+ M004 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½Êѹ¹"
+ M005 = "·ï̾"
+ M006 = "¸õÊäÆü»þ"
+ M007 = "¾ì½ê"
+ M008 = "¾ÜºÙ¾ðÊó"
+ M009 = "²óÅúÄùÀÚÆü»þ"
+ M010 = "ÆüÉÕ"
+ M011 = "»þ´Ö"
+ M012 = "ÂоÝ"
+ M013 = "Á´°÷"
+ M014 = "¼«Í³»²²Ã"
+ M015 = "ÁªÂò»è"
+ M016 = "²óÅúµ¹æ"
+ M017 = "½é´üÃÍ"
+ M018 = "¥¹¥³¥¢"
+ M019 = "²óÅú¤ÎÀâÌÀʸ"
+ M020 = "¸õÊäÆü»þ<br>¤Î<br>¼«Æ°ºîÀ®"
+ M021 = "³«»Ï"
+ M022 = "½ªÎ»"
+ M023 = "¸õÊäÆü»þ¤ËÄɲ乤ë"
+ M024 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ØÄÌÃΤ¹¤ë"
+ M025 = "ºîÀ®¤¹¤ë"
+ M026 = "Êѹ¹¤¹¤ë"
+ M027 = "¥¥ã¥ó¥»¥ë"
+ M028 = "ÅÐÏ¿¤µ¤ì¤¿¸õÊäÆü»þ"
+ M029 = "Äɲ乤ë¸õÊäÆü»þ"
+ M030 = "ǯ¤ò´Þ¤à"
+ M031 = "ǯ¤ò´Þ¤Þ¤Ê¤¤"
+ M050 = "ÆþÎÏÆüÉդ˸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M051 = "ÆüÉÕ¤ÎÈϰϤ˸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+
+ WEEKDAY = "'Æü','·î','²Ð','¿å','ÌÚ','¶â','ÅÚ'"
+
+ ; ¸õÊäÆü»þÀ¸À®»þ¥Õ¥©¡¼¥Þ¥Ã¥È
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; %YEAR% %MONTH% %DAY% %WEEKDAY%
+ GEN_YMDFMT = "%YEAR%/%MONTH%/%DAY%¡Ê%WEEKDAY%¡Ë"
+ GEN_MDFMT = "%MONTH%/%DAY%¡Ê%WEEKDAY%¡Ë"
+
+[FileDetail.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M004 = "´ðËܾðÊó"
+ M005 = "¥Õ¥¡¥¤¥ë¹¹¿·"
+ M006 = "̾Á°Êѹ¹"
+ M007 = "°ÜÆ°"
+ M008 = "ºï½ü"
+ M009 = "¥Õ¥¡¥¤¥ë̾"
+ M010 = "¥Õ¥¡¥¤¥ë¥µ¥¤¥º"
+ M011 = "¥Ð¥¤¥È"
+ M012 = "¾ì½ê"
+ M013 = "¸ø³«ÈÏ°Ï"
+ M014 = "ÅÐÏ¿¾ðÊó"
+ M015 = "¹¹¿·¾ðÊó"
+ M016 = "¾ÜºÙ¾ðÊó"
+ M017 = "ÊÔ½¸"
+ M018 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M019 = "̤ÅÐÏ¿"
+ M020 = "ÍúÎò¾ðÊó"
+ M021 = "¹¹¿·Æü"
+ M022 = "¹¹¿·¼Ô"
+ M023 = "¥Õ¥¡¥¤¥ë"
+ M024 = "Áàºî"
+ M025 = "¥³¥á¥ó¥È"
+ M026 = "Ì᤹"
+ M027 = "¥³¥á¥ó¥È¤ò½ñ¤¯"
+ M028 = "Ìá¤ë"
+ M029 = "¸ø³«ÍÑURL"
+ M030 = "ºîÀ®"
+ M031 = "ºï½ü"
+ M032 = "¥ê¥»¥Ã¥È"
+ M033 = "Áí¥¢¥¯¥»¥¹¿ô"
+
+ ; ¥¢¥¯¥»¥¹¿ô¥Õ¥©¡¼¥Þ¥Ã¥È
+ ; ¢¨±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DATE}
+ ACCESS_COUNT = "{DATE}¤«¤é¤Î¥¢¥¯¥»¥¹¿ô"
+
+[Folder.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "¸ø³«ÈÏ°Ï"
+ M005 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M006 = "¾ÜºÙÆþÎÏ"
+ M007 = "°ÜÆ°"
+ M008 = "̾Á°Êѹ¹"
+ M009 = "ºï½ü"
+ M010 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M011 = "Ä̾ïɽ¼¨"
+ M012 = "¥°¥ë¡¼¥×ɽ¼¨"
+ M013 = "Áàºî"
+ M014 = "ÁªÂò"
+ M015 = "̾Á°"
+ M016 = "¹¹¿·¼Ô"
+ M017 = "¹¹¿·Æü"
+ M018 = "¥µ¥¤¥º"
+ M019 = "¸ø³«ÈÏ°Ï"
+ M020 = "¾ÜºÙ"
+ M021 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ØÄÌÃΤ¹¤ë"
+
+[FolderDetail.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥©¥ë¥À¾ÜºÙ"
+ M004 = "ÊÔ½¸"
+ M005 = "°ÜÆ°"
+ M006 = "ºï½ü"
+ M007 = "¥Õ¥©¥ë¥À̾"
+ M008 = "¥³¥á¥ó¥È"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "ÅÐÏ¿¾ðÊó"
+ M011 = "¹¹¿·¾ðÊó"
+ M012 = "Ìá¤ë"
+
+[Folder_group.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "¸ø³«ÈÏ°Ï"
+ M005 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M006 = "¾ÜºÙÆþÎÏ"
+ M007 = "°ÜÆ°"
+ M008 = "̾Á°Êѹ¹"
+ M009 = "ºï½ü"
+ M010 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M011 = "Ä̾ïɽ¼¨"
+ M012 = "¥°¥ë¡¼¥×ɽ¼¨"
+ M013 = "Áàºî"
+ M014 = "ÁªÂò"
+ M015 = "̾Á°"
+ M016 = "¹¹¿·¼Ô"
+ M017 = "¹¹¿·Æü"
+ M018 = "¥µ¥¤¥º"
+ M019 = "¸ø³«ÈÏ°Ï"
+ M020 = "¾ÜºÙ"
+ M021 = "Áàºî"
+ M022 = "ÁªÂò"
+ M023 = "̾Á°"
+ M024 = "¾ÜºÙ"
+ M025 = "²èÁü"
+
+[InviteToCommunity.tpl.php]
+ M001 = " ¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤Ë¾·ÂÔ¤¹¤ë¥æ¡¼¥¶¤òÁªÂò¤·¡¢Á÷¿®¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ²¼¤µ¤¤¡£"
+ M004 = "¾·ÂÔ¤¹¤ë¥æ¡¼¥¶"
+ M005 = "Á÷¿®"
+ M006 = "¥á¥Ã¥»¡¼¥¸"
+
+[JoinCommunity.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã³Îǧ"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤·¤Þ¤¹¤«¡©"
+ M004 = "»²²Ã"
+ M005 = "¥¥ã¥ó¥»¥ë"
+
+[JoinCommunity_admission.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã³Îǧ"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤Ë»²²Ã¤¹¤ë¤Ë¤Ï¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤Î¾µÇ§¤¬É¬ÍפǤ¹¡£"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤Ø¤Î¥á¥Ã¥»¡¼¥¸"
+ M005 = "Á÷¿®"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[LeaveCommunity_confirm.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£Âà²ñ"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£¤«¤éÂà²ñ¤·¤Þ¤¹¡£"
+ M004 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M005 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "OK"
+ M007 = "¥¥ã¥ó¥»¥ë"
+
+[MoveFolderList.tpl.php]
+ M001 = "¥Õ¥©¥ë¥À°ÜÆ°ÀèÁªÂò"
+ M002 = "°ÜÆ°Àè"
+ M003 = "¡Ê°ÜÆ°Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡Ë"
+ M004 = "¡Ê¥Õ¥©¥ë¥À¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡Ë"
+ M005 = "°ÜÆ°"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[RenameFolderList.tpl.php]
+ M001 = "̾Á°Êѹ¹"
+ M002 = "Êѹ¹"
+ M003 = "¥¥ã¥ó¥»¥ë"
+
+[AnswerSchedule.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷"
+ M003 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½ÆþÎÏ"
+ M004 = "¥¹¥±¥¸¥å¡¼¥ë·èÄê"
+ M005 = "¾õÂÖ"
+ M006 = "·ï̾"
+ M007 = "¾ì½ê"
+ M008 = "¼çºÅ¼Ô"
+ M009 = "²óÅúÄùÀÚÆü»þ"
+ M010 = "¾ÜºÙ¾ðÊó"
+ M011 = "ÂоÝ"
+ M012 = "»²²Ã¤¹¤ë"
+ M013 = "»²²Ã¤ò¤ä¤á¤ë"
+ M014 = "¥³¥á¥ó¥È"
+ M015 = "²óÅú¤ÎÀâÌÀ"
+ M016 = "ÅÐÏ¿¤¹¤ë"
+ M017 = "¥¥ã¥ó¥»¥ë"
+ M018 = "¥¹¥³¥¢"
+ M019 = "½¸·×"
+ M020 = "·èÄꤹ¤ë"
+ M021 = "·èÄê"
+ M022 = "Á´°÷"
+ M023 = "¼«Í³»²²Ã"
+ M024 = "ÄùÀÚ"
+ M025 = "Ê罸Ãæ"
+ M026 = "»²²Ã¼Ô¤Î°ìÍ÷"
+ M027 = "²óÅú½¸·×"
+ M028 = "Ìá¤ë"
+
+[DecideSchedule_input.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷"
+ M003 = "¥¹¥±¥¸¥å¡¼¥ë·èÄê"
+ M004 = "·ï̾"
+ M005 = "¾ì½ê"
+ M006 = "·èÄêÆü"
+ M007 = "Ä귿ʸ¸À¸ì¤ÎÁªÂò"
+ M008 = "¥á¥Ã¥»¡¼¥¸"
+ M009 = "Á÷¿®"
+ M010 = "¥¥ã¥ó¥»¥ë"
+ M011 = "¥á¥Ã¥»¡¼¥¸ÆâÍƤ¬¾å½ñ¤¤µ¤ì¤Þ¤¹¡£¤è¤í¤·¤¤¤Ç¤¹¤«?"
+
+[RestoreHistoryFile.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M004 = "¥Õ¥¡¥¤¥ëÉü³è"
+ M005 = "¸½ºß¤Î¥Õ¥¡¥¤¥ë¤ò°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ËÌᤷ¤Þ¤¹¤«¡©"
+ M006 = "¥Õ¥¡¥¤¥ë̾"
+ M007 = "¥Õ¥¡¥¤¥ë¥µ¥¤¥º"
+ M008 = "¥Ð¥¤¥È"
+ M009 = "¥³¥á¥ó¥È"
+ M010 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È ¡Ê¶õÍó²Ä¡Ë"
+ M011 = "OK"
+ M012 = "¥¥ã¥ó¥»¥ë"
+
+[Schedule.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷"
+ M003 = "¿·µ¬ºîÀ®"
+ M004 = "´´»ö¥á¥Ë¥å¡¼"
+ M005 = "·ï̾"
+ M006 = "¾ÜºÙ¾ðÊó"
+ M007 = "²óÅúÄùÀÚÆü»þ"
+ M008 = "²óÅú¾õ¶·"
+ M009 = "¾õÂÖ"
+ M010 = "Êѹ¹"
+ M011 = "·èÄê"
+ M012 = "¼çºÅ¼Ô"
+
+[SearchBBS.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "¸¡º÷"
+ M004 = "·ï̾¸¡º÷"
+ M005 = "Á´Ê¸¸¡º÷"
+ M006 = "¸ø³«ÈÏ°Ï"
+ M007 = "¤¹¤Ù¤Æ"
+ M008 = "¸¡º÷"
+ M009 = "Á´¥³¥ß¥å¥Ë¥Æ¥£¤Çõ¤¹"
+ M010 = "¥³¥ß¥å¥Ë¥Æ¥£·Ç¼¨ÈÄ ¸¡º÷¤Ë¤Ä¤¤¤Æ"
+ M011 = "¡Ú¸¡º÷Âоݥ¡¼¥ï¡¼¥É¡Û"
+ M012 = "·ï̾¸¡º÷¡§ ³Æ¿Æµ»ö¤Î¥¿¥¤¥È¥ë"
+ M013 = "Á´Ê¸¸¡º÷¡§ ³Æ¿Æµ»ö¤ÎËÜʸ"
+ M014 = "¡ü´ðËܸ¡º÷"
+ M015 = "¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤Ë¥¡¼¥ï¡¼¥É¤òÆþÎϤ·¤Æ¸¡º÷¥Ü¥¿¥ó¤ò²¡¤¹¤ÈÂоݤθ¡º÷·ë²Ì¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"
+ M016 = "·ë²Ì¤Îɽ¼¨¤Ï¿·Ãå½ç¤È¤Ê¤ê¤Þ¤¹¡£"
+ M017 = "¡üÊ£¹ç¸¡º÷"
+ M018 = "Ê£¿ô¤Î¥¡¼¥ï¡¼¥É¤Ç¸¡º÷¤¬¤Ç¤¤Þ¤¹¡£"
+ M019 = "¥¡¼¥ï¡¼¥É¤Î´Ö¤Ï¥¹¥Ú¡¼¥¹¤Ç¶õ¤±¤Æ¤¯¤À¤µ¤¤¡£"
+ M020 = "·ë²Ì¤Îɽ¼¨¤Ï°Ê²¼¤Î½ç¤È¤Ê¤ê¤Þ¤¹¡£"
+ M021 = "Îã¡Ë¤¢ ¤¤ ¤¦ ¸¡º÷¢Í ¤¢ and ¤¤ and ¤¦ ¢ª ¤¢ or ¤¤ or ¤¦"
+ M022 = "¡ü¸ø³«Èϰϸ¡º÷"
+ M023 = "¥ê¥¹¥È¤«¤é¸ø³«ÈϰϤòÁªÂò¤¹¤ë¤ÈÂоݤθ¡º÷·ë²Ì¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"
+ M024 = "¢¨¡ÖÁ´¥³¥ß¥å¥Ë¥Æ¥£¤Çõ¤¹¡×¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¤ÈÁªÂò¤·¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£°Ê³°¤Î·Ç¼¨ÈĤ«¤é¤â¸¡º÷¤·¤Þ¤¹¡£"
+
+[SearchCommunity.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¸¡º÷"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£ºîÀ®"
+ M003 = "¥¡¼¥ï¡¼¥É"
+ M004 = "¸¡º÷"
+ M005 = "¥«¥Æ¥´¥ê"
+ M006 = "»²²Ã»ñ³Ê"
+ M007 = "»ØÄê¤Ê¤·"
+ M008 = "¼«Í³»²²Ã"
+ M009 = "¾µÇ§¤¬É¬Í×"
+ M010 = "ɽ¼¨½ç½ø"
+ M011 = "̾Á°½ç"
+ M012 = "¿·Ãå½ç"
+ M013 = "¥á¥ó¥Ð¿ô¤¬Â¿¤¤½ç"
+ M014 = "³µÍ×"
+ M015 = "¥«¥Æ¥´¥ê"
+ M016 = "´ÉÍý¼Ô"
+ M017 = "³ºÅö¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£"
+
+[SearchFolder.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "¸¡º÷"
+ M005 = "¸¡º÷ÂоÝ"
+ M006 = "¥Õ¥©¥ë¥À¤È¥Õ¥¡¥¤¥ë"
+ M007 = "¥Õ¥©¥ë¥À"
+ M008 = "¥Õ¥¡¥¤¥ë"
+ M009 = "ɽ¼¨½ç½ø"
+ M010 = "̾Á°½ç"
+ M011 = "¹¹¿·Æü¤¬¿·¤·¤¤½ç"
+ M012 = "̾Á°"
+ M013 = "¹¹¿·Æü"
+ M014 = "¥µ¥¤¥º"
+ M015 = "¥Ñ¥¹"
+
+[SearchResultBBS.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "·Ç¼¨ÈÄ"
+ M003 = "¸¡º÷"
+ M004 = "¸¡º÷·ë²Ì¡¡¡§¡¡·Ç¼¨ÈÄ ·ï̾°ìÍ÷"
+ M005 = "·ï¤¢¤ê¤Þ¤·¤¿¡£"
+ M006 = "ºÆ¸¡º÷"
+ M007 = "·ï̾¸¡º÷"
+ M008 = "Á´Ê¸¸¡º÷"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "¤¹¤Ù¤Æ"
+ M011 = "¸¡º÷"
+ M012 = "Á´¥³¥ß¥å¥Ë¥Æ¥£¤Çõ¤¹"
+
+[SelectTrustedCommunity.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¤òÁªÂò¤·¤Æ²¼¤µ¤¤¡£¡ÊÊ£¿ô²Ä¡Ë"
+ M002 = "¥¡¼¥ï¡¼¥É"
+ M003 = "¸¡º÷"
+ M004 = "¥«¥Æ¥´¥ê"
+ M005 = "ÁªÂò"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[UpdateFile.tpl.php]
+ M001 = "¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M003 = "¥Õ¥¡¥¤¥ë¹¹¿·"
+ M004 = "¥Õ¥¡¥¤¥ë"
+ M005 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M006 = "¥³¥á¥ó¥È"
+ M007 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È ¡Ê¶õÍó²Ä¡Ë"
+ M008 = "Ìá¤ë"
+ M009 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ØÄÌÃΤ¹¤ë"
+
+[UploadFile.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É"
+ M004 = "¥Õ¥¡¥¤¥ë"
+ M005 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M006 = "¥³¥á¥ó¥È"
+ M007 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È ¡Ê¶õÍó²Ä¡Ë"
+ M008 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M009 = "¥Õ¥©¥ë¥À¡ÊÄ̾ïɽ¼¨¡Ë¤ËÌá¤ë"
+ M010 = "¥Õ¥©¥ë¥À¡Ê¥°¥ë¡¼¥×ɽ¼¨¡Ë¤ËÌá¤ë"
+ M011 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ØÄÌÃΤ¹¤ë"
+
+[WaitingList.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¾µÇ§ÂÔ¤Á"
+ M003 = "¤µ¤ó¤«¤é¤Î"
+ M004 = "¥á¥Ã¥»¡¼¥¸"
+ M005 = "°ÍÍêÆü"
+ M006 = "ÊÖ¿®¥á¥Ã¥»¡¼¥¸"
+ M007 = "¡Ê¢¨µñÈݤ¹¤ë¾ì¹ç¤ÏÁê¼ê¤ËÁ÷¿®¤µ¤ì¤Þ¤»¤ó¡Ë"
+ M008 = "¡Ê¿Æ¥³¥ß¥å¥Ë¥Æ¥£¡Ë"
+ M009 = "¨"
+ M010 = "¨±¨¬"
+ M011 = "¾µÇ§¤¹¤ë¤È¾åµ¤Î¥ê¥ó¥¯¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£"
+ M012 = "¡Ê¿Æ¥³¥ß¥å¥Ë¥Æ¥£¡Ë"
+ M013 = "¡Ê¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¡Ë"
+ M014 = "¾µÇ§¤¹¤ë¤È¾åµ¤Î¥ê¥ó¥¯¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£"
+ M015 = "¾µÇ§"
+ M016 = "µñÈÝ"
+
+[FileHistoryCommentAction.class.php]
+ M001 = "¥³¥á¥ó¥È¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
--- /dev/null
+[CommunityRanking.tpl.php]
+ M001 = "¥³¥ß¥å¥Ë¥Æ¥£¥é¥ó¥¥ó¥°"
+
+[NewCommunity.tpl.php]
+ M001 = "¿·Ã女¥ß¥å¥Ë¥Æ¥£"
+ M002 = "¡Ú³µÍסÛ"
+
+[NewOpenDiary.tpl.php]
+ M001 = "¿·Ãå¥À¥¤¥¢¥ê¡¼"
+
+[NewPressRelease.tpl.php]
+ M001 = "¿·Ãå¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹"
+
+[UserRanking.tpl.php]
+ M001 = "¥æ¡¼¥¶¥é¥ó¥¥ó¥°"
+
--- /dev/null
+[AddUserAction.class.php]
+ M001 = "¥æ¡¼¥¶ID¤¬½ÅÊ£¤·¤Æ¤¤¤Þ¤¹¡£"
+
+[CreateSystemAnnounceAction.class.php]
+ M001 = "·ÇºÜ´ü¸ÂÆü¤Î·Á¼°¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£"
+ M002 = "·ï̾¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M003 = "ÆâÍƤòÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M004 = "·ÇºÜ´ü¸Â¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[EditSystemConfigAction.class.php]
+ M001 = "¥·¥¹¥Æ¥àÀßÄêÊѹ¹"
+ M002 = "¥·¥¹¥Æ¥àÀßÄê¤ØÌá¤ë"
+ M003 = "¥·¥¹¥Æ¥à´ÉÍý¥á¥Ë¥å¡¼¤ØÌá¤ë"
+ M004 = "¥·¥¹¥Æ¥àÀßÄ괰λ"
+ M005 = "¥·¥¹¥Æ¥àÀßÄꤷ¤Þ¤·¤¿"
+
+ ; ÃͤΥÁ¥§¥Ã¥¯
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {GROUP_NAME} {NAME} {VAL}
+ M_WRONG_VALUE = "{GROUP_NAME} -> {NAME} ¤ÎÃͤ¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£({VAL}°Ê¾å)"
+ ; {GROUP_NAME} {NAME}
+ M_EMPTY_VALUE = "{GROUP_NAME} -> {NAME} ¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[EditUserAction.class.php]
+ M001 = "Ãí°Õ¡§¥Ñ¥¹¥ï¡¼¥É¤Î³Îǧ¥Ç¡¼¥¿¤¬È´¤±¤Æ¤¤¤Þ¤¹"
+ M002 = "¥æ¡¼¥¶ID¤¬½ÅÊ£¤·¤Æ¤¤¤Þ¤¹¡£"
+
+[LogInputView.class.php]
+ M001 = "¥·¥¹¥Æ¥à´ÉÍý¼Ô"
+ M002 = "¥í¥°¥¤¥ó¥æ¡¼¥¶"
+ M003 = "À®¸ù"
+ M004 = "¼ºÇÔ"
+
+[AddUser.tpl.php]
+ M001 = "¥æ¡¼¥¶¿·µ¬ÅÐÏ¿"
+ M002 = "¥æ¡¼¥¶ID"
+ M003 = "¥Ñ¥¹¥ï¡¼¥É"
+ M004 = "(³Îǧ)"
+ M005 = "»á̾"
+ M006 = "¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ M007 = "ÅÐÏ¿"
+ M008 = "¥æ¡¼¥¶°ìÍ÷¤ËÌá¤ë"
+
+[CreateSystemAnnounce.tpl.php]
+ M001 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻°ìÍ÷"
+ M002 = "¿·µ¬ºîÀ®"
+ M003 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤òºîÀ®¤·¤Þ¤¹¡£"
+ M004 = "ºîÀ®¤·¤¿¤ªÃΤ餻¤Ï¡¢Á´¥æ¡¼¥¶¤Î¥Þ¥¤¥Ú¡¼¥¸¾åÉô¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£"
+ M005 = "·ï̾"
+ M006 = "ÆâÍÆ"
+ M007 = "·ÇºÜ´ü¸Â"
+ M008 = "ºîÀ®"
+ M009 = "Ìá¤ë"
+
+[DeleteSystemAnnounce.tpl.php]
+ M001 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻°ìÍ÷"
+ M002 = "·ÇºÜÃæ»ß"
+ M003 = "°Ê²¼¤Î¤ªÃΤ餻¤ò·ÇºÜÃæ»ß¤·¤Þ¤¹¡£¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M004 = "·ï̾"
+ M005 = "ÆâÍÆ"
+ M006 = "·ÇºÜ´ü¸Â"
+ M007 = "OK"
+ M008 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteUser.tpl.php]
+ M001 = "¥æ¡¼¥¶¡¡ºï½ü³Îǧ"
+ M002 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M003 = "¤Þ¤¿¡¢¥æ¡¼¥¶¤Î»ý¤Ä¥Õ¥©¥ë¥À¤ä¥Õ¥ì¥ó¥É¾ðÊó¤âÍøÍѤǤ¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£"
+ M004 = "¥æ¡¼¥¶¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_ID} {USER_NAME}
+ DELM = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥æ¡¼¥¶¡Î{USER_ID}:{USER_NAME}¡Ï¤òºï½ü¤·¤Þ¤¹¡£"
+
+[EditSystemConfig.tpl.php]
+ M001 = "¥·¥¹¥Æ¥àÀßÄê"
+ M002 = "ÀßÄê"
+ M003 = "¥ê¥»¥Ã¥È"
+
+[EditUser.tpl.php]
+ M001 = "¥æ¡¼¥¶ÊÔ½¸"
+ M002 = "¥æ¡¼¥¶ID"
+ M003 = "¥Ñ¥¹¥ï¡¼¥É"
+ M004 = "¥Ñ¥¹¥ï¡¼¥É¤ò¿·¤·¤¯ÀßÄꤹ¤ë"
+ M005 = "(³Îǧ)"
+ M006 = "¢¨LDAP¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤ÏÀßÄêÉÔÍ×"
+ M007 = "»á̾"
+ M008 = "¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ M009 = "Êѹ¹"
+ M010 = "¥¥ã¥ó¥»¥ë"
+
+[Index.tpl.php]
+ M001 = "¥·¥¹¥Æ¥à´ÉÍý¥á¥Ë¥å¡¼"
+ M002 = "¥æ¡¼¥¶°ìÍ÷"
+ M003 = "¥í¥°´ÉÍý"
+ M004 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻°ìÍ÷"
+ M005 = "¥·¥¹¥Æ¥àÀßÄê"
+
+[Log.tpl.php]
+ M001 = "¥í¥°´ÉÍý"
+ M002 = "¹Ê¹þ¸¡º÷"
+ M003 = "No."
+ M004 = "Æü»þ"
+ M005 = "¥æ¡¼¥¶ID"
+ M006 = "»á̾"
+ M007 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M008 = "¥æ¡¼¥¶¥ì¥Ù¥ë"
+ M009 = "Áàºî"
+ M010 = "·ë²Ì"
+ M011 = "¼ºÇÔ"
+
+[SystemAnnounceList.tpl.php]
+ M001 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻°ìÍ÷"
+ M002 = "¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤òºîÀ®¤¹¤ë"
+ M003 = "·ÇºÜÆü»þ"
+ M004 = "·ÇºÜ¼Ô"
+ M005 = "·ï̾"
+ M006 = "ÆâÍÆ"
+ M007 = "·ÇºÜ´ü¸Â"
+ M008 = "¾õÂÖ"
+ M009 = "·ÇºÜÃæ»ß"
+ M010 = "·ÇºÜ½ªÎ»"
+ M011 = "·ÇºÜÃæ"
+ M012 = "Ãæ»ß¤¹¤ë"
+ M013 = "¤Þ¤ÀºîÀ®¤·¤Æ¤¤¤Þ¤»¤ó¡£"
+
+[UserList.tpl.php]
+ M001 = "¥æ¡¼¥¶°ìÍ÷"
+ M002 = "¥æ¡¼¥¶¿·µ¬ÅÐÏ¿"
+ M003 = "¥¡¼¥ï¡¼¥É"
+ M004 = "¹Ê¹þ¸¡º÷"
+ M005 = "¥æ¡¼¥¶ID"
+ M006 = "»á̾"
+ M007 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M008 = "¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ M009 = "Êѹ¹"
+ M010 = "ºï½ü"
+ M011 = "¥í¥°¥¤¥óÍúÎò"
+
+[LoginInfo.tpl.php]
+ M001 = "¥í¥°¥¤¥ó¾ðÊó³Îǧ"
+ M002 = "¥æ¡¼¥¶ID"
+ M003 = "»á̾"
+ M004 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M005 = "¥í¥°¥¤¥óÆü»þ"
+ M006 = "¥í¥°¥¢¥¦¥ÈÆü»þ"
+ M007 = "¥í¥°¥¢¥¦¥È¥Ü¥¿¥ó»ÈÍÑÍ̵"
+ M008 = "̤»ÈÍÑ"
+ M009 = "»ÈÍÑ"
+ M010 = "¥í¥°¥¤¥óÍúÎò¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+
--- /dev/null
+[Index.tpl.php]
+ M001 = "¼Ì¿¿Êѹ¹"
+ M002 = "¥á¥Ë¥å¡¼"
+ M003 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼"
+ M004 = "¥À¥¤¥¢¥ê¡¼"
+ M005 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M006 = "¥Õ¥©¥ë¥À"
+ M007 = "¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹"
+ M008 = "¥Þ¥¤¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸"
+ M009 = "¥Þ¥¤¥×¥í¥Õ¥£¡¼¥ë³Îǧ"
+ M010 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍ꤬¤¢¤ê¤Þ¤¹"
+ M011 = "·ï"
+ M012 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M013 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍ꤬¤¢¤ê¤Þ¤¹"
+ M014 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê(¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ)¤¬¤¢¤ê¤Þ¤¹"
+ M015 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê(¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ)¤¬¤¢¤ê¤Þ¤¹"
+ M016 = "¥³¥ß¥å¥Ë¥Æ¥£¤Ë¾·ÂÔ¤µ¤ì¤Æ¤¤¤Þ¤¹"
+ M017 = "·ï¤ÎÆüµ¤Ë¿·¤·¤¤¥³¥á¥ó¥È¤¬¤¢¤ê¤Þ¤¹"
+ M018 = "¥Þ¥¤¥Õ¥ì¥ó¥º¤ØÄɲÃ"
+ M019 = "»á̾"
+ M020 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M021 = "½ê°"
+ M022 = "À칶"
+ M023 = "½Ð¿È"
+ M024 = "À¸Ç¯·îÆü"
+ M025 = "¼«¸Ê¾Ò²ð"
+ M026 = "¥Þ¥¤¥Õ¥ì¥ó¥º"
+ M027 = "¤Ê¤·"
+ M028 = "¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷"
+ M029 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷"
+ M030 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£"
+ M031 = "¤Ê¤·"
+ M032 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷"
+ M033 = "ÂÀ׳Îǧ"
+ M034 = "¥Ç¥¶¥¤¥óÁªÂò"
+ M035 = "¥Ð¥Ã¥¯¥¢¥Ã¥×"
+ M036 = "¥á¥Ã¥»¡¼¥¸"
+ M037 = "¥á¥Ã¥»¡¼¥¸¤òÁ÷¤ë"
+ M038 = "·ï¤Î̤ÆÉ¥á¥Ã¥»¡¼¥¸¤¬¤¢¤ê¤Þ¤¹¡£"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME_PROFILE = "{USER_NAME}¤µ¤ó¤Î¥×¥í¥Õ¥£¡¼¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {LAST_LOGIN}
+ LAST_LOGIN = "ºÇ½ª¥í¥°¥¤¥ó<br>{LAST_LOGIN}"
+
+[Index_error.tpl.php]
+ M001 = "¥æ¡¼¥¶¤¬Â¸ºß¤·¤Þ¤»¤ó¡£"
+
+[IndexSuccessView.class.php]
+ M001 = "¥í¥°¥¤¥ó¾ðÊó¤Ê¤·"
+
+[AddFriendsAction.class.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà °ÍÍ괰λ"
+ M002 = "´°Î»¤·¤Þ¤·¤¿"
+ M003 = "¥Þ¥¤¥Ú¡¼¥¸¤ØÌá¤ë"
+
+[CreateFriendsGroupAction.class.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×̾¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[DeleteFolderAction.class.php]
+ M001 = "ºï½ü¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[DeleteFriendsAction.class.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥ººï½ü´°Î»"
+ M002 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷¤ØÌá¤ë"
+
+[DiaryCalendarAction.class.php]
+ M001 = "Æüµ¤¬¤¢¤ê¤Þ¤¹"
+
+[DiaryCommentPreAction.class.php]
+ M001 = "¥³¥á¥ó¥È¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[DiaryPreAction.class.php]
+ M001 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M002 = "ÆâÍƤòÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "¸ø³«ÈϰϤòÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[DiaryPreImageAction.class.php]
+ M001 = "²èÁü¥Õ¥¡¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡ª"
+
+[SearchResultDiaryAction.class.php]
+ M001 = "³ºÅö¤¹¤ë¾ðÊ󤬤¢¤ê¤Þ¤»¤ó"
+
+[EditFolderAction.class.php]
+ M001 = "¥Õ¥©¥ë¥À̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£(100ʸ»ú°ÊÆâ)"
+ M002 = "¥Õ¥©¥ë¥À̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "¤¹¤Ç¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ë¥À̾¤Ç¤¹¡£"
+
+[EditFriendsGroupMemberAction.class.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×̾¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[EditProfileAction.class.php]
+ M001 = "¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+ M002 = "¥Ë¥Ã¥¯¥Í¡¼¥à¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[FileHistoryCommentAction.class.php]
+ M001 = "¥³¥á¥ó¥È¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£"
+
+[MoveFolderAction.class.php]
+ M001 = "°ÜÆ°Àè¥Õ¥©¥ë¥À¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[MoveFolderListAction.class.php]
+ M001 = "°ÜÆ°¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[RenameFolderAction.class.php]
+ M001 = "¿·¤·¤¤Ì¾Á°¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M002 = "¥Õ¥©¥ë¥À̾¤¬Ä¹¤¹¤®¤Þ¤¹¡£(100ʸ»ú°ÊÆâ)"
+ M003 = "¿·¤·¤¤Ì¾Á°¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[RenameFolderListAction.class.php]
+ M001 = "̾Á°Êѹ¹¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[SelectDesignAction.class.php]
+ M001 = "ÀßÄꤹ¤ë¥Ç¥¶¥¤¥ó¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[WaitingListAction.class.php]
+ M001 = "´°Î»¤·¤Þ¤·¤¿¡£"
+ M002 = "¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+ M003 = "¥Þ¥¤¥Ú¡¼¥¸¤ØÌá¤ë"
+
+ ; °ÍÍê·ë²Ì
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {WAITING_TYPE_NAME}
+ FIN_ADM = "{WAITING_TYPE_NAME} ¾µÇ§´°Î»"
+ FIN_DIS = "{WAITING_TYPE_NAME} µñÈÝ´°Î»"
+
+[DiaryRSSSuccessView.class.php]
+ M001 = "¼Ì¿¿¤Ï¤¢¤ê¤Þ¤»¤ó"
+
+[EditFileDetailSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤µ¤ó¤Î¥Õ¥©¥ë¥À"
+
+[FileDetailSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤µ¤ó¤Î¥Õ¥©¥ë¥À"
+
+[FolderDetailSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤µ¤ó¤Î¥Õ¥©¥ë¥À"
+
+[FolderSuccessView.class.php]
+ ; ¥Õ¥¡¥¤¥ë¾ÜºÙ
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ FOLDER_NM = "{COMMUNITY_NAME} ¤µ¤ó¤Î¥Õ¥©¥ë¥À"
+
+[AddFriends.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍê"
+ M002 = "¥á¥Ã¥»¡¼¥¸"
+ M003 = "Á÷¿®"
+ M004 = "¥¥ã¥ó¥»¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ ADF = "{USER_NAME}¤µ¤ó¤Ë¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲäΰÍÍê¤ò¤·¤Þ¤¹¡£"
+
+[ChangePassword.tpl.php]
+ M001 = "¥Ñ¥¹¥ï¡¼¥É¤ÎÊѹ¹"
+ M002 = "¿·¥Ñ¥¹¥ï¡¼¥É"
+ M003 = "(³Îǧ)"
+ M004 = "Êѹ¹"
+
+[CommunityList.tpl.php]
+ M001 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷"
+ M002 = "¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷"
+ M003 = "¤Ê¤·"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[CreateFriendsGroup.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×ºîÀ®"
+ M002 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×̾"
+ M003 = " ºîÀ® "
+
+[DeleteDiary.tpl.php]
+ M001 = "¥À¥¤¥¢¥ê¡¼¡¡ºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥À¥¤¥¢¥ê¡¼¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¤Þ¤¿¡¢¥³¥á¥ó¥È¤â°ì½ï¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M005 = "¥À¥¤¥¢¥ê¡¼¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M006 = "OK"
+ M007 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteDiaryComment.tpl.php]
+ M001 = "¥À¥¤¥¢¥ê¡¼¡¡¥³¥á¥ó¥Èºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¥À¥¤¥¢¥ê¡¼¤Î¥³¥á¥ó¥È¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteFolder.tpl.php]
+ M001 = "ºï½ü"
+ M002 = "°Ê²¼¤Î¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Þ¤¹¡£¥Õ¥©¥ë¥À¤ÏÇÛ²¼¤Î¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤¬Á´¤Æºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteFriends.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥ººï½ü"
+ M002 = "°Ê²¼¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M003 = "ºï½ü¤¹¤ë¤È¡¢¤ª¸ß¤¤¤Î¥Þ¥¤¥Õ¥ì¥ó¥º¤«¤éºï½ü¤µ¤ì¤Þ¤¹¡£"
+ M004 = "OK"
+ M005 = "¥¥ã¥ó¥»¥ë"
+
+[DeleteFriendsGroup.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×ºï½ü"
+ M002 = "OK"
+ M003 = "¥¥ã¥ó¥»¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ DELC = "¡Ö{USER_NAME}¡×¤òºï½ü¤·¤Þ¤¹¡£"
+
+[DeleteProfileImage.tpl.php]
+ M001 = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ºï½ü³Îǧ"
+ M002 = "ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¼Ì¿¿¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¤òºï½ü¤·¤Æ¤â¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[Diary.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼"
+ M002 = "¥À¥¤¥¢¥ê¡¼"
+ M003 = "¥À¥¤¥¢¥ê¡¼¸¡º÷"
+ M004 = "·ï̾"
+ M005 = "ÆâÍÆ"
+ M006 = "¼Ì¿¿"
+ M007 = "¸ø³«ÈÏ°Ï"
+ M008 = "½ñ¤¹þ¤à"
+ M009 = "Á´¤Æ¤Îͧ¿Í"
+ M010 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×"
+ M011 = "ºï½ü"
+ M012 = "(*Âоݤʤ·)"
+ M013 = "¥³¥á¥ó¥È"
+ M014 = "¥À¥¤¥¢¥ê¡¼¤Ï0·ï¤Ç¤¹¡£"
+ M015 = "¥À¥¤¥¢¥ê¡¼ ·ï̾°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[DiaryComment.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼"
+ M002 = "¥³¥á¥ó¥È"
+ M003 = "¥À¥¤¥¢¥ê¡¼"
+ M004 = "Æüµ¤Ïºï½ü¤µ¤ì¤Æ¤¤¤Þ¤¹¡ª"
+ M005 = "¸ø³«ÈÏ°Ï"
+ M006 = "(*Âоݤʤ·)"
+ M007 = "ºï½ü"
+ M008 = "ºï½ü¤·¤Þ¤·¤¿"
+ M009 = "¥³¥á¥ó¥È¤ò½ñ¤¯"
+ M010 = "ÂÀפò¤Ä¤±¤ë"
+ M011 = "²¡²¼ºÑ¤ß"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[DiaryCommentHistory.tpl.php]
+ M001 = "Æüµ¥³¥á¥ó¥ÈÍúÎò"
+ M002 = "¥³¥á¥ó¥ÈÍúÎò¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+ M003 = "¥³¥á¥ó¥ÈÍúÎò°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DAYS}
+ GETDAYS = "²áµî{DAYS}Æü¤Î¿·Ãå"
+
+[DiaryCommentPre.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼"
+ M002 = "¥À¥¤¥¢¥ê¡¼"
+ M003 = "¥³¥á¥ó¥È"
+ M004 = "ÅÐÏ¿³Îǧ²èÌÌ"
+ M005 = "°Ê²¼¤ÎÆâÍƤòÅê¹Æ¤·¤Þ¤¹¡£"
+ M006 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M007 = "¥¥ã¥ó¥»¥ë"
+ M008 = "¥³¥á¥ó¥ÈÆâÍÆ"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[DiaryPre.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼"
+ M002 = "ÅÐÏ¿³Îǧ²èÌÌ"
+ M003 = "°Ê²¼¤ÎÆâÍƤòÅê¹Æ¤·¤Þ¤¹¡£"
+ M004 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "·ï̾"
+ M006 = "¥Õ¥¡¥¤¥ë"
+ M007 = "ÆâÍÆ"
+ M008 = "¼Ì¿¿"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "¸ø³«ÈÏ°Ï"
+ M011 = "OK"
+ M012 = "¥¥ã¥ó¥»¥ë"
+ M013 = "¡Î¥¥ã¥ó¥»¥ë¡Ï¡á¡ä¡Ö¼Ì¿¿¡×¤È¡Ö¸ø³«ÈϰϡפÎÌÀºÙ¾ðÊó¤Ï¡¢ÀßÄꤷ¤Ê¤ª¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£"
+
+[EditFileDetail.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M004 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÊÔ½¸"
+ M005 = "¾ÜºÙ¾ðÊó"
+ M006 = "¥Õ¥¡¥¤¥ë̾"
+ M007 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M008 = "OK"
+ M009 = "¥¥ã¥ó¥»¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[EditFolder.tpl.php]
+ M001 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M002 = "ºîÀ®"
+ M003 = "¥Õ¥©¥ë¥À¾ðÊóÊѹ¹"
+ M004 = "Êѹ¹"
+ M005 = "¥Õ¥©¥ë¥À̾"
+ M006 = "¥³¥á¥ó¥È"
+ M007 = "Á´¤Æ¤Îͧ¿Í"
+ M008 = "¥¥ã¥ó¥»¥ë"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×"
+
+[EditFriendsGroupMember.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×̾"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "¡Ú{USER_NAME}¡Û¥°¥ë¡¼¥× ¥á¥ó¥ÐÊÔ½¸"
+
+[EditProfile.tpl.php]
+ M001 = "ÆþÎÏÃÍ¥¨¥é¡¼"
+ M002 = "yyyy/mm/dd·Á¼°¤ÇÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "Îã¡Ë2006/03/05"
+ M004 = "½ñ¼°¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£"
+ M005 = "ÆüÉÕ¤ÎÃͤ¬°Û¾ï¤Ç¤¹¡£"
+ M006 = "ǯ¤ÎÃͤ¬°Û¾ï¤Ç¤¹¡£"
+ M007 = "·î¤ÎÃͤ¬°Û¾ï¤Ç¤¹¡£"
+ M008 = "Æü¤ÎÃͤ¬°Û¾ï¤Ç¤¹¡£"
+ M009 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤Ø¤è¤¦¤³¤½"
+ M010 = "¥×¥í¥Õ¥£¡¼¥ë¤òÆþÎϤ·¡¢ÅÐÏ¿¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£"
+ M011 = "¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸"
+ M012 = "¤Ïɬ¿Ü¹àÌܤǤ¹¡£"
+ M013 = "¥×¥í¥Õ¥£¡¼¥ë¹àÌÜ"
+ M014 = "¥×¥í¥Õ¥£¡¼¥ëÀßÄêÃÍ"
+ M015 = "¸ø³«ÈÏ°Ï"
+ M016 = "¸ø³«ÈÏ°ÏÀßÄê"
+ M017 = "»á̾"
+ M018 = "ÀßÄê"
+ M019 = "ÀßÄêÉÔ²Ä"
+ M020 = "¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ M021 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M022 = "°ìÈ̸ø³«"
+ M023 = "½ê°"
+ M024 = "À칶"
+ M025 = "½Ð¿È"
+ M026 = " (*Âоݤʤ·)"
+ M027 = "¼«¸Ê¾Ò²ð (±ÜÍ÷¼ÔÊ̤ËÅÐÏ¿¤·¤Æ¤¯¤À¤µ¤¤)"
+ M028 = "°ìÈ̸þ¤±"
+ M029 = "¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±"
+ M030 = "ͧ¿Í¡ÊÁ´°÷¡Ë¸þ¤±"
+ M031 = "ɽ¼¨¹àÌÜ"
+ M032 = "¥Þ¥¤¥Õ¥ì¥ó¥º"
+ M033 = "¥¥ã¥ó¥»¥ë"
+ M034 = "À¸Ç¯·îÆü"
+ M035 = "¥á¡¼¥ë¸À¸ì"
+
+[EditProfileImage.tpl.php]
+ M001 = "¼Ì¿¿Êѹ¹"
+ M002 = "¼Ì¿¿¤òºï½ü¤¹¤ë"
+ M003 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M004 = "¥Þ¥¤¥Ú¡¼¥¸¤ØÌá¤ë"
+ M005 = "ͧ¿Í¤Ë¸ø³«"
+ M006 = "¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«"
+ M007 = "°ìÈ̸ø³«"
+
+[FileDetail.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó"
+ M004 = "´ðËܾðÊó"
+ M005 = "¥Õ¥¡¥¤¥ë¹¹¿·"
+ M006 = "̾Á°Êѹ¹"
+ M007 = "°ÜÆ°"
+ M008 = "ºï½ü"
+ M009 = "¥Õ¥¡¥¤¥ë̾"
+ M010 = "¥Õ¥¡¥¤¥ë¥µ¥¤¥º"
+ M011 = "¥Ð¥¤¥È"
+ M012 = "¾ì½ê"
+ M013 = "¸ø³«ÈÏ°Ï"
+ M014 = "ÅÐÏ¿¾ðÊó"
+ M015 = "¹¹¿·¾ðÊó"
+ M016 = "¾ÜºÙ¾ðÊó"
+ M017 = "ÊÔ½¸"
+ M018 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M019 = "̤ÅÐÏ¿"
+ M020 = "ÍúÎò¾ðÊó"
+ M021 = "¹¹¿·Æü"
+ M022 = "¹¹¿·¼Ô"
+ M023 = "¥Õ¥¡¥¤¥ë"
+ M024 = "Áàºî"
+ M025 = "¥³¥á¥ó¥È"
+ M026 = "Ì᤹"
+ M027 = "¥³¥á¥ó¥È¤ò½ñ¤¯"
+ M028 = "Ìá¤ë"
+ M029 = "*Âоݤʤ·"
+ M030 = "ÂÀפò¤Ä¤±¤ë"
+ M031 = "²¡²¼ºÑ¤ß"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[Folder.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "¸ø³«ÈÏ°Ï"
+ M005 = "¾ÜºÙÆþÎÏ"
+ M006 = "°ÜÆ°"
+ M007 = "̾Á°Êѹ¹"
+ M008 = "ºï½ü"
+ M009 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M010 = "Ä̾ïɽ¼¨"
+ M011 = "¥°¥ë¡¼¥×ɽ¼¨"
+ M012 = "Áàºî"
+ M013 = "ÁªÂò"
+ M014 = "̾Á°"
+ M015 = "¹¹¿·¼Ô"
+ M016 = "¹¹¿·Æü"
+ M017 = "¥µ¥¤¥º"
+ M018 = "¸ø³«ÈÏ°Ï"
+ M019 = "¥×¥Ã¥ÈÀè<br>¥³¥ß¥å¥Ë¥Æ¥£"
+ M020 = "¥×¥Ã¥È"
+ M021 = "¾ÜºÙ"
+ M022 = "¤¢¤ê"
+ M023 = "¤Ê¤·"
+ M024 = "¾ÜºÙ"
+ M025 = "*Âоݤʤ·"
+ M026 = "¥¢¥Ã¥×¥í¡¼¥É"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[FolderDetail.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¥Õ¥©¥ë¥À¾ÜºÙ"
+ M004 = "ÊÔ½¸"
+ M005 = "°ÜÆ°"
+ M006 = "ºï½ü"
+ M007 = "¥Õ¥©¥ë¥À̾"
+ M008 = "¥³¥á¥ó¥È"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "ÅÐÏ¿¾ðÊó"
+ M011 = "¹¹¿·¾ðÊó"
+ M012 = "¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£"
+ M013 = "(¥×¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó)"
+ M014 = "Ìá¤ë"
+
+[FolderPutCommunity.tpl.php]
+ M001 = "¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê"
+ M002 = "¥Õ¥©¥ë¥À¤ò¥×¥Ã¥È¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M003 = "(¥Õ¥©¥ë¥À¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó)"
+ M004 = "ÀßÄê"
+ M005 = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ØÄÌÃΤ¹¤ë"
+
+[Folder_group.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "ͧ¿Í¤Ë¸ø³«"
+ M005 = "*Âоݤʤ·"
+ M006 = "¸ø³«ÈÏ°Ï"
+ M007 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M008 = "¾ÜºÙÆþÎÏ"
+ M009 = "°ÜÆ°"
+ M010 = "̾Á°Êѹ¹"
+ M011 = "ºï½ü"
+ M012 = "¥Õ¥©¥ë¥ÀºîÀ®"
+ M013 = "Ä̾ïɽ¼¨"
+ M014 = "¥°¥ë¡¼¥×ɽ¼¨"
+ M015 = "Áàºî"
+ M016 = "ÁªÂò"
+ M017 = "̾Á°"
+ M018 = "¹¹¿·¼Ô"
+ M019 = "¹¹¿·Æü"
+ M020 = "¥µ¥¤¥º"
+ M021 = "¸ø³«ÈÏ°Ï"
+ M022 = "¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£"
+ M023 = "¥×¥Ã¥È"
+ M024 = "¾ÜºÙ"
+ M025 = "¤¢¤ê"
+ M026 = "¤Ê¤·"
+ M027 = "Áàºî"
+ M028 = "ÁªÂò"
+ M029 = "̾Á°"
+ M030 = "¾ÜºÙ"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[FootprintCheck.tpl.php]
+ M001 = "¥Þ¥¤¥Ú¡¼¥¸"
+ M002 = "ÂÀ׳Îǧ²èÌÌ"
+ M003 = "ÂÀ×Æü»þ"
+ M004 = "¥¢¥¯¥»¥¹¼Ô"
+ M005 = "¼ïÊÌ"
+ M006 = "¥³¥ó¥Æ¥ó¥Ä"
+ M010 = "ÂÀפϤ¢¤ê¤Þ¤»¤ó¡£"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ TITLE = "{USER_NAME}¤µ¤ó¤Î¥Ú¡¼¥¸¤ÎÂÀ×"
+
+[FriendsGroupList.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷"
+ M002 = "¥°¥ë¡¼¥×"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×ºîÀ®"
+ M004 = "¿Í"
+ M005 = "¤Ê¤·"
+ M006 = "ÊÔ½¸"
+ M007 = "ºï½ü"
+
+[FriendsList.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷"
+ M002 = "¥Õ¥ì¥ó¥º°ìÍ÷"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷"
+ M004 = "ºï½ü"
+ M005 = "¤Ê¤·"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[MoveFolderList.tpl.php]
+ M001 = "¥Õ¥©¥ë¥À°ÜÆ°ÀèÁªÂò"
+ M002 = "°ÜÆ°Àè"
+ M003 = "(°ÜÆ°Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤)"
+ M004 = "(¥Õ¥©¥ë¥À¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó)"
+ M005 = "°ÜÆ°"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+[NewBBS.tpl.php]
+ M001 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¡§·Ç¼¨ÈÄ¿·Ãåµ»ö"
+ M002 = "¿·Ãåµ»ö¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+ M003 = "·Ç¼¨ÈÄ¿·Ãåµ»ö°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DAYS}
+ GETDAYS = "²áµî{DAYS}Æü¤Î¿·Ãå"
+
+[NewCommunityFolder.tpl.php]
+ M001 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¡§¥Õ¥©¥ë¥À¿·Ãå"
+ M002 = "¿·Ãå¥Õ¥©¥ë¥À¤Ï¤¢¤ê¤Þ¤»¤ó"
+ M003 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¿·Ãå°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DAYS}
+ GETDAYS = "²áµî{DAYS}Æü¤Î¿·Ãå"
+
+[NewDiary.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¡§¿·ÃåÆüµ"
+ M002 = "¿·ÃåÆüµ¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+ M003 = "¿·ÃåÆüµ°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DAYS}
+ GETDAYS = "²áµî{DAYS}Æü¤Î¿·Ãå"
+
+[NewFriendsFolder.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥ì¥ó¥º¡§¥Õ¥©¥ë¥À¿·Ãå"
+ M002 = "¿·Ãå¥Õ¥©¥ë¥À¤Ï¤¢¤ê¤Þ¤»¤ó"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥Õ¥©¥ë¥À¿·Ãå°ìÍ÷"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {DAYS}
+ GETDAYS = "²áµî{DAYS}Æü¤Î¿·Ãå"
+
+[ProfileCheck.tpl.php]
+ M001 = "¥Þ¥¤¥Ú¡¼¥¸"
+ M002 = "¥×¥í¥Õ¥£¡¼¥ë¤Îɽ¼¨¡¡³Îǧ²èÌÌ"
+ M003 = "±ÜÍ÷¼Ô¤Î¼ïÎà¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M004 = "¥í¥°¥¤¥ó¥æ¡¼¥¶±ÜÍ÷¼Ô¤Ø¤Îɽ¼¨¤Ç¤¹"
+ M005 = "¤¹¤Ù¤Æ¤Îͧ¿Í¤Ø¤Îɽ¼¨¤Ç¤¹"
+ M006 = "°ìÈ̱ÜÍ÷¼Ô¤Ø¤Îɽ¼¨¤Ç¤¹"
+ M007 = "°ìÈ̤ؤθø³«"
+ M008 = "¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ø¤Î¸ø³«"
+ M009 = "¤¹¤Ù¤Æ¤Îͧ¿Í¤Ø¤Î¸ø³«"
+ M010 = "»á̾"
+ M011 = "¥Ë¥Ã¥¯¥Í¡¼¥à"
+ M012 = "½ê°"
+ M013 = "À칶"
+ M014 = "½Ð¿È"
+ M015 = "À¸Ç¯·îÆü"
+ M016 = "¼«¸Ê¾Ò²ð"
+
+[PutCommunity.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¤Ê¤·"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó¤Î¥Õ¥©¥ë¥À"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {FOLDER_NAME}
+ PUTCOM = "¡Ö{FOLDER_NAME}¡×¤Î¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£"
+
+[RenameFolderList.tpl.php]
+ M001 = "̾Á°Êѹ¹"
+ M002 = "Êѹ¹"
+ M003 = "¥¥ã¥ó¥»¥ë"
+
+[RestoreHistoryFile.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À :: ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó :: ¥Õ¥¡¥¤¥ëÉü³è"
+ M002 = "¸½ºß¤Î¥Õ¥¡¥¤¥ë¤ò°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ËÌᤷ¤Þ¤¹¤«¡©"
+ M003 = "¥Õ¥¡¥¤¥ë̾"
+ M004 = "¥Õ¥¡¥¤¥ë¥µ¥¤¥º"
+ M005 = "¥Ð¥¤¥È"
+ M006 = "¥³¥á¥ó¥È"
+ M007 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È (¶õÍó²Ä)"
+ M008 = "OK"
+ M009 = "¥¥ã¥ó¥»¥ë"
+
+[SelectDesign.tpl.php]
+ M001 = "¥Þ¥¤¥Ú¡¼¥¸"
+ M002 = "¥Ç¥¶¥¤¥óÁªÂò²èÌÌ"
+ M003 = "¥¤¥á¡¼¥¸"
+ M004 = "ÁªÂò"
+ M005 = "̾Á°"
+ M006 = "ÀâÌÀ"
+ M010 = "ÀßÄꤹ¤ë¥Ç¥¶¥¤¥ó¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+ M011 = "OK"
+ M012 = "¥¥ã¥ó¥»¥ë"
+
+[SearchDiary.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼ :: ¸¡º÷"
+ M002 = "¥À¥¤¥¢¥ê¡¼"
+ M003 = "¸¡º÷"
+ M004 = "·ï̾¸¡º÷"
+ M005 = "Á´Ê¸¸¡º÷"
+ M006 = "¸ø³«ÈÏ°Ï"
+ M007 = "¤¹¤Ù¤Æ"
+ M008 = "¸¡º÷"
+ M009 = "Á´Æüµ¤Çõ¤¹"
+ M010 = "¥À¥¤¥¢¥ê¡¼ ¸¡º÷¤Ë¤Ä¤¤¤Æ"
+ M011 = "[¸¡º÷Âоݥ¡¼¥ï¡¼¥É]"
+ M012 = "·ï̾¸¡º÷¡§ ³ÆÆüµ/µ»ö¤Î¥¿¥¤¥È¥ë"
+ M013 = "Á´Ê¸¸¡º÷¡§ ³ÆÆüµ/µ»ö¤ÎËÜʸ"
+ M014 = "¡ü´ðËܸ¡º÷"
+ M015 = "¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤Ë¥¡¼¥ï¡¼¥É¤òÆþÎϤ·¤Æ¸¡º÷¥Ü¥¿¥ó¤ò²¡¤¹¤ÈÂоݤθ¡º÷·ë²Ì¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"
+ M016 = "·ë²Ì¤Îɽ¼¨¤Ï¿·Ãå½ç¤È¤Ê¤ê¤Þ¤¹¡£"
+ M017 = "¡üÊ£¹ç¸¡º÷"
+ M018 = "Ê£¿ô¤Î¥¡¼¥ï¡¼¥É¤Ç¸¡º÷¤¬¤Ç¤¤Þ¤¹¡£"
+ M019 = "¥¡¼¥ï¡¼¥É¤Î´Ö¤Ï¥¹¥Ú¡¼¥¹¤Ç¶õ¤±¤Æ¤¯¤À¤µ¤¤¡£"
+ M020 = "·ë²Ì¤Îɽ¼¨¤Ï°Ê²¼¤Î½ç¤È¤Ê¤ê¤Þ¤¹¡£"
+ M021 = "Îã¡Ë¤¢ ¤¤ ¤¦ ¸¡º÷¢Í ¤¢ and ¤¤ and ¤¦ ¢ª ¤¢ or ¤¤ or ¤¦"
+ M022 = "¡ü¸ø³«Èϰϸ¡º÷"
+ M023 = "¥ê¥¹¥È¤«¤é¸ø³«ÈϰϤòÁªÂò¤¹¤ë¤ÈÂоݤθ¡º÷·ë²Ì¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"
+ M024 = "¢¨¡ÖÁ´Æüµ¤Çõ¤¹¡×¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¤ÈÁªÂò¤·¤Æ¤¤¤ë¥æ¡¼¥¶°Ê³°¤ÎÆüµ¤«¤é¤â¸¡º÷¤·¤Þ¤¹¡£"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[SearchFolder.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À"
+ M002 = "¥Õ¥©¥ë¥À"
+ M003 = "¸¡º÷"
+ M004 = "¥¡¼¥ï¡¼¥É"
+ M005 = "¸¡º÷"
+ M006 = "¸¡º÷ÂоÝ"
+ M007 = "¥Õ¥©¥ë¥À¤È¥Õ¥¡¥¤¥ë"
+ M008 = "¥Õ¥©¥ë¥À"
+ M009 = "¥Õ¥¡¥¤¥ë"
+ M010 = "ɽ¼¨½ç½ø"
+ M011 = "̾Á°½ç"
+ M012 = "¹¹¿·Æü¤¬¿·¤·¤¤½ç"
+ M013 = "̾Á°"
+ M014 = "¹¹¿·Æü"
+ M015 = "¥µ¥¤¥º"
+ M016 = "¥Ñ¥¹"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[SearchResultDiary.tpl.php]
+ M001 = "¥Þ¥¤¥À¥¤¥¢¥ê¡¼ :: ¸¡º÷·ë²Ì"
+ M002 = "¥À¥¤¥¢¥ê¡¼"
+ M003 = "¸¡º÷·ë²Ì"
+ M004 = "¸¡º÷·ë²Ì¡¡¡§¡¡¥À¥¤¥¢¥ê¡¼ ·ï̾°ìÍ÷"
+ M005 = "·ï¤¢¤ê¤Þ¤·¤¿¡£"
+ M006 = "ºÆ¸¡º÷"
+ M007 = "·ï̾¸¡º÷"
+ M008 = "Á´Ê¸¸¡º÷"
+ M009 = "¸ø³«ÈÏ°Ï"
+ M010 = "¤¹¤Ù¤Æ"
+ M011 = "¸¡º÷"
+ M012 = "Á´Æüµ¤Çõ¤¹"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[SearchUser.tpl.php]
+ M001 = "¥æ¡¼¥¶¸¡º÷"
+ M002 = "¥¡¼¥ï¡¼¥É"
+ M003 = "¸¡º÷"
+ M004 = "ɽ¼¨½ç½ø"
+ M005 = "¥æ¡¼¥¶"
+ M006 = "¥Ë¥Ã¥¯¥Í¡¼¥à½ç"
+ M007 = "¥Þ¥¤¥Õ¥ì¥ó¥º¿ô¤¬Â¿¤¤½ç"
+ M008 = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¿ô¤¬Â¿¤¤½ç"
+ M009 = "¡Ú¼«¸Ê¾Ò²ð¡Û"
+ M010 = "³ºÅö¤¹¤ë¥æ¡¼¥¶¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£"
+ M011 = "¥æ¡¼¥¶ID½ç"
+
+[SetOpenLevelForProfileView.tpl.php]
+ M001 = "*Âоݤʤ·"
+ M002 = "Á´¤Æ¤Îͧ¿Í"
+ M003 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {CONTENT_TYPE_NAME}
+ CONT = "¡Ö{CONTENT_TYPE_NAME}¡×¤Î¸ø³«ÈÏ°ÏÀßÄê"
+
+[UpdateFile.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À :: ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó :: ¥Õ¥¡¥¤¥ë¹¹¿·"
+ M002 = "¥Õ¥¡¥¤¥ë"
+ M003 = "¥¢¥Ã¥×¥í¡¼¥É"
+ M004 = "¥³¥á¥ó¥È"
+ M005 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È (¶õÍó²Ä)"
+ M006 = "Ìá¤ë"
+
+[UploadFile.tpl.php]
+ M001 = "¥Þ¥¤¥Õ¥©¥ë¥À :: ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É"
+ M002 = "¥Õ¥¡¥¤¥ë"
+ M003 = "¥³¥á¥ó¥È"
+ M004 = "¥Õ¥¡¥¤¥ë¹¹¿·ÍúÎò¤Î¥³¥á¥ó¥È (¶õÍó²Ä)"
+ M005 = "¥Õ¥¡¥¤¥ë¤Î¼ïÎà"
+ M006 = "¥Õ¥©¥ë¥À¡ÊÄ̾ïɽ¼¨¡Ë¤ËÌá¤ë"
+ M007 = "¥Õ¥©¥ë¥À¡Ê¥°¥ë¡¼¥×ɽ¼¨¡Ë¤ËÌá¤ë"
+
+[WaitingList.tpl.php]
+ M001 = "¾µÇ§ÂÔ¤Á"
+ M002 = "(Èó¸ø³«)"
+ M003 = "³µÍ×"
+ M004 = "¥«¥Æ¥´¥ê"
+ M005 = "¥á¥Ã¥»¡¼¥¸"
+ M006 = "°ÍÍêÆü"
+ M007 = "ÊÖ¿®¥á¥Ã¥»¡¼¥¸"
+ M008 = "(¢¨µñÈݤ¹¤ë¾ì¹ç¤ÏÁê¼ê¤ËÁ÷¿®¤µ¤ì¤Þ¤»¤ó)"
+ M009 = "¾µÇ§"
+ M010 = "µñÈÝ"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó¤«¤é¤Î¥á¥Ã¥»¡¼¥¸"
+[MessagePreAction.class.php]
+ M001 = "·ï̾¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[DeleteMessageAction.class.php]
+ M001 = "ºï½ü¤¹¤ë¥á¥Ã¥»¡¼¥¸¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+[Message.tpl.php]
+ M001 = "¥á¥Ã¥»¡¼¥¸µÆþ"
+ M002 = "Á÷¿®Àè"
+ M003 = "·ï̾"
+ M004 = "ËÜʸ"
+ M005 = "ÄÌÃΥ᡼¥ë¤òÁ÷¿®¤¹¤ë"
+ M006 = "³Îǧ²èÌÌ"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[MessagePre.tpl.php]
+ M001 = "¥á¥Ã¥»¡¼¥¸³Îǧ²èÌÌ"
+ M002 = "°Ê²¼¤ÎÆâÍƤòÁ÷¿®¤·¤Þ¤¹¡£"
+ M003 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M004 = "Á÷¿®Àè"
+ M005 = "·ï̾"
+ M006 = "ËÜʸ"
+ M007 = "ÄÌÃΥ᡼¥ë¤òÁ÷¿®¤¹¤ë"
+ M008 = "Á÷¿®"
+ M009 = "¥¥ã¥ó¥»¥ë"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[MessageBox.tpl.php]
+ M001 = "¥á¥Ã¥»¡¼¥¸"
+ M002 = "¼õ¿®È¢"
+ M003 = "Á÷¿®ºÑ"
+ M004 = "³«Éõ"
+ M005 = "ºï½ü"
+ M006 = "Á÷¿®Àè"
+ M007 = "Á÷¿®¼Ô"
+ M008 = "·ï̾"
+ M009 = "ÆüÉÕ"
+ M010 = "̤"
+ M011 = "ºÑ"
+ M012 = "¥á¥Ã¥»¡¼¥¸¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[MessageShow.tpl.php]
+ M001 = "¥á¥Ã¥»¡¼¥¸"
+ M002 = "¼õ¿®È¢"
+ M003 = "Á÷¿®ºÑ"
+ M004 = "Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸"
+ M005 = "¼õ¿®¥á¥Ã¥»¡¼¥¸"
+ M006 = "Á÷¿®Àè"
+ M007 = "Á÷¿®¼Ô"
+ M008 = "ÆüÉÕ"
+ M009 = "·ï̾"
+ M010 = "ËÜʸ"
+ M011 = "ÊÖ¿®"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[DeleteMessage.tpl.php]
+ M001 = "¥á¥Ã¥»¡¼¥¸¡¡ºï½ü"
+ M002 = "ÁªÂò¤·¤¿¥á¥Ã¥»¡¼¥¸¤òºï½ü¤·¤Þ¤¹¡£"
+ M003 = "¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¡¢ºï½ü¤·¤¿¥Ç¡¼¥¿¤ò¸µ¤ËÌ᤹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£"
+ M004 = "¤è¤í¤·¤¤¤Ç¤¹¤«¡©"
+ M005 = "OK"
+ M006 = "¥¥ã¥ó¥»¥ë"
+
+
+[LoginInput.tpl.php]
+ M001 = "¥í¥°¥¤¥ó²èÌÌ"
+ M002 = "¥æ¡¼¥¶ID"
+ M003 = "¥Ñ¥¹¥ï¡¼¥É"
+ M004 = "¥í¥°¥¤¥ó"
+
+[LoginAction.class.php]
+ M001 = "¥æ¡¼¥¶ID¤Þ¤¿¤Ï¥Ñ¥¹¥ï¡¼¥É¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£"
+ M002 = "LDAP¤Ø¤ÎÀܳ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+
+[Logout.tpl.php]
+ M001 = "¥í¥°¥¢¥¦¥È½èÍý¤¬´°Î»¤·¤Þ¤·¤¿¡£"
+
+[Logout_error.tpl.php]
+ M001 = "¥í¥°¥¢¥¦¥È½èÍý¤¬¼ºÇÔ¤·¤Þ¤·¤¿¡£"
+
--- /dev/null
+[calendar.class.php]
+ M001 = "Æü"
+ M002 = "·î"
+ M003 = "²Ð"
+ M004 = "¿å"
+ M005 = "ÌÚ"
+ M006 = "¶â"
+ M007 = "ÅÚ"
+ M008 = "ǯ"
+ M009 = "·î"
+ M010 = "ºÇ¿·¤Î¥À¥¤¥¢¥ê¡¼¤ËÌá¤ë"
+ M011 = "¸µÃ¶"
+ M012 = "À®¿Í¤ÎÆü"
+ M013 = "½Õʬ¤ÎÆü"
+ M014 = "Å·¹ÄÃÂÀ¸Æü"
+ M015 = "¤ß¤É¤ê¤ÎÆü"
+ M016 = "·ûË¡µÇ°Æü"
+ M017 = "»Ò¶¡¤ÎÆü"
+ M018 = "³¤¤ÎÆü"
+ M019 = "³¤¤ÎÆü"
+ M020 = "·ÉÏ·¤ÎÆü"
+ M021 = "·ÉÏ·¤ÎÆü"
+ M022 = "½©Ê¬¤ÎÆü"
+ M023 = "Âΰé¤ÎÆü"
+ M024 = "Âΰé¤ÎÆü"
+ M025 = "ʸ²½¤ÎÆü"
+ M026 = "¶ÐÏ«´¶¼Õ¤ÎÆü"
+ M027 = "Å·¹ÄÃÂÀ¸Æü"
+ M028 = "¹ṉ̃¤ÎµÙÆü"
+ M029 = "¿¶ÂصÙÆü"
+ M030 = "¡ã¡ã"
+ M031 = "¡ä¡ä"
+
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {YEAR},{MONTH}
+ YEAR_MONTH = "{YEAR} ǯ {MONTH} ·î"
+
+[ACSBBS.class.php]
+ M001 = "ÊÖ¿®µ»ö¤¬ºï½ü¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+ M002 = "¥Õ¥¡¥¤¥ë¾ðÊ󤬺ï½ü¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+ M003 = "¿Æµ»ö¤¬ºï½ü¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+ M004 = "ÊÖ¿®µ»ö¤¬ºï½ü¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+ M005 = "·ï̾¸¡º÷¡¢ËÜʸ¸¡º÷¡¡¤Ïɬ¤º£±¤Ä°Ê¾åÁªÂò¤·¤Æ¤¯¤À¤µ¤¤"
+ M006 = "¸¦µæ¼¼¥í¥´²èÁü"
+
+[ACSCommunityMail.class.php]
+ M001 = "¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É¤Î¤ªÃΤ餻"
+ M002 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°ÄùÀڤΤªÃΤ餻"
+ M003 = "¥¹¥±¥¸¥å¡¼¥ë¿·µ¬ÅÐÏ¿¤Î¤ªÃΤ餻"
+ M004 = "¥¹¥±¥¸¥å¡¼¥ëÆâÍÆÊѹ¹¤Î¤ªÃΤ餻"
+ M005 = "¥×¥Ã¥È¤Î¤ªÃΤ餻"
+ M006 = "¿·µ¬ÅÐÏ¿"
+ M007 = "Êѹ¹"
+
+ ;
+ ; ML¤Ø¤Î¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥ÉÄÌÃΥ᡼¥ë
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {FILE_DETAIL_URL}
+ ; {COMMUNITY_URL}
+ ; {UPLOAD_FILE_NAME}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï RMD001¡ÁRMD999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ UPL001 = "**************************************************************"
+ UPL002 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ UPL003 = "**************************************************************"
+ UPL004 = ""
+ UPL005 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Î³§ÍͤØ:"
+ UPL006 = ""
+ UPL007 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ UPL008 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Ø¤Î¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É¤¬¤¢¤ê¤Þ¤·¤¿¡£"
+ UPL009 = ""
+ UPL010 = "°Ê²¼¤ÎURL¤«¤é¥Õ¥¡¥¤¥ë¾ÜºÙ²èÌ̤˥¢¥¯¥»¥¹¤·¤Æ²¼¤µ¤¤¡£"
+ UPL011 = "{FILE_DETAIL_URL}"
+ UPL012 = ""
+ UPL013 = "[¥³¥ß¥å¥Ë¥Æ¥£]"
+ UPL014 = "{COMMUNITY_NAME}"
+ UPL015 = "{COMMUNITY_URL}"
+ UPL016 = "[¥Õ¥¡¥¤¥ë]"
+ UPL017 = "{UPLOAD_FILE_NAME}"
+ UPL018 = ""
+ UPL019 = "--"
+ UPL020 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ UPL021 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ML¤Ø¤Î¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¥×¥Ã¥ÈÄÌÃΥ᡼¥ë
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {FILE_DETAIL_URL}
+ ; {COMMUNITY_URL}
+ ; {UPLOAD_FILE_NAME}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï RMD001¡ÁRMD999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ PUT001 = "**************************************************************"
+ PUT002 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ PUT003 = "**************************************************************"
+ PUT004 = ""
+ PUT005 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Î³§ÍͤØ:"
+ PUT006 = ""
+ PUT007 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ PUT008 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Ø¤Î¥×¥Ã¥È¤¬¤¢¤ê¤Þ¤·¤¿¡£"
+ PUT009 = ""
+ PUT010 = "°Ê²¼¤ÎURL¤«¤é¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë°ìÍ÷²èÌ̤˥¢¥¯¥»¥¹¤·¤Æ²¼¤µ¤¤¡£"
+ PUT011 = "{FOLDER_LIST_URL}"
+ PUT012 = ""
+ PUT013 = "[¥³¥ß¥å¥Ë¥Æ¥£]"
+ PUT014 = "{COMMUNITY_NAME}"
+ PUT015 = "{COMMUNITY_URL}"
+ PUT016 = "[¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À]"
+ PUT017 = "{PUT_FOLDER_NAME}"
+ PUT018 = ""
+ PUT019 = "--"
+ PUT020 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ PUT021 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥ê¥Þ¥¤¥ó¥À¥á¡¼¥ë
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï RMD001¡ÁRMD999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ RMD001 = "***************************************************************"
+ RMD002 = " ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ RMD003 = "***************************************************************"
+ RMD004 = ""
+ RMD005 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Î³§ÍͤØ:"
+ RMD006 = ""
+ RMD007 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ RMD008 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤¬¼çºÅ¤¹¤ë¥¹¥±¥¸¥å¡¼¥ëÄ´À°¤ÎÄùÀÚÆü»þ¤¬Ç÷¤Ã¤Æ¤¤¤Þ¤¹¡£"
+ RMD009 = ""
+ RMD010 = "°Ê²¼¤ÎURL¤«¤é¥¹¥±¥¸¥å¡¼¥ë¾ÜºÙ²èÌ̤˥¢¥¯¥»¥¹¤·¤Æ²¼¤µ¤¤¡£"
+ RMD011 = "{SCHEDULE_URL}"
+ RMD012 = ""
+ RMD013 = "[¥³¥ß¥å¥Ë¥Æ¥£]"
+ RMD014 = "{COMMUNITY_NAME}"
+ RMD015 = "{COMMUNITY_URL}"
+ RMD016 = ""
+ RMD017 = "[¥¹¥±¥¸¥å¡¼¥ëÆâÍÆ]"
+ RMD018 = "·ï̾¡§{SCHEDULE_NAME}"
+ RMD019 = "¼çºÅ¼Ô¡§{USER_NAME}({USER_COMMUNITY_NAME})¤µ¤ó"
+ RMD020 = "¾ÜºÙ¾ðÊó¡§{SCHEDULE_DETAIL}"
+ RMD021 = "²óÅúÄùÀÚÆü»þ¡§{SCHEDULE_CLOSING_DATETIME}"
+ RMD022 = ""
+ RMD023 = "--"
+ RMD024 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ RMD025 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥¹¥±¥¸¥å¡¼¥ëÅÐÏ¿¡¦Êѹ¹ÄÌÃΥ᡼¥ë
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {ACTION}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï RMD001¡ÁRMD999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ UPD001 = "***************************************************************"
+ UPD002 = " ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ UPD003 = "***************************************************************"
+ UPD004 = ""
+ UPD005 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Î³§ÍͤØ:"
+ UPD006 = ""
+ UPD007 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ UPD008 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤¬¼çºÅ¤¹¤ë¥¹¥±¥¸¥å¡¼¥ë¤¬{ACTION}¤µ¤ì¤Þ¤·¤¿¡£"
+ UPD009 = ""
+ UPD010 = "°Ê²¼¤ÎURL¤«¤é¥¹¥±¥¸¥å¡¼¥ë¾ÜºÙ²èÌ̤˥¢¥¯¥»¥¹¤·¤Æ²¼¤µ¤¤¡£"
+ UPD011 = "{SCHEDULE_URL}"
+ UPD012 = ""
+ UPD013 = "[¥³¥ß¥å¥Ë¥Æ¥£]"
+ UPD014 = "{COMMUNITY_NAME}"
+ UPD015 = "{COMMUNITY_URL}"
+ UPD016 = ""
+ UPD017 = "[¥¹¥±¥¸¥å¡¼¥ëÆâÍÆ]"
+ UPD018 = "·ï̾¡§{SCHEDULE_NAME}"
+ UPD019 = "¼çºÅ¼Ô¡§{USER_NAME}({USER_COMMUNITY_NAME})¤µ¤ó"
+ UPD020 = "¾ÜºÙ¾ðÊó¡§{SCHEDULE_DETAIL}"
+ UPD021 = "²óÅúÄùÀÚÆü»þ¡§{SCHEDULE_CLOSING_DATETIME}"
+ UPD022 = ""
+ UPD023 = "--"
+ UPD024 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ UPD025 = "{SYSTEM_BASE_URL}"
+
+[ACSDiary.class.php]
+ M001 = "·ï̾¸¡º÷¡¢ËÜʸ¸¡º÷¡¡¤Ïɬ¤º£±¤Ä°Ê¾åÁªÂò¤·¤Æ¤¯¤À¤µ¤¤"
+ M002 = "¼Ì¿¿"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ NAME = "{USER_NAME}¤µ¤ó"
+
+[ACSDiaryBackup.class.php]
+ M001 = "¸ø³«ÈÏ°Ï"
+
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {YEAR},{MONTH}
+ YEAR_MONTH = "{YEAR} ǯ {MONTH} ·î"
+
+[ACSFolder.class.php]
+ M001 = "(¥ë¡¼¥È¥Õ¥©¥ë¥À)"
+
+[ACSFolderModel.class.php]
+ M001 = "(¥ë¡¼¥È¥Õ¥©¥ë¥À)"
+
+[ACSLib.class.php]
+ M001 = "Æü"
+ M002 = "·î"
+ M003 = "²Ð"
+ M004 = "¿å"
+ M005 = "ÌÚ"
+ M006 = "¶â"
+ M007 = "ÅÚ"
+ M008 = "ǯ¤ÎÃÍ"
+ M009 = "½ñ¼°Ç¯"
+ M010 = "·î¤ÎÃÍ"
+ M011 = "½ñ¼°·î"
+ M012 = "½ñ¼°"
+ M013 = "Æü¤ÎÃÍ"
+ M014 = "½ñ¼°Æü"
+
+[ACSLog.class.php]
+ M001 = "¥·¥¹¥Æ¥à´ÉÍý¼Ô"
+ M002 = "¥í¥°¥¤¥ó¥æ¡¼¥¶"
+ M003 = "À®¸ù"
+ M004 = "¼ºÇÔ"
+
+[ACSSchedule.class.php]
+
+ ;
+ ; ¥¹¥±¥¸¥å¡¼¥ëÄ´À°·èÄêÄÌÃΥ᡼¥ëÄ귿ʸ
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {SUBJECT_NAME}
+ M001 = "¡Ö{SUBJECT_NAME}¡×¤ÎÆü»þ·èÄê¤Î¤ªÃΤ餻"
+
+ ;
+ ; ¥¹¥±¥¸¥å¡¼¥ëÄ´À°·èÄêÄÌÃΥ᡼¥ëÄ귿ʸ
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {SCHEDULE_NAME}
+ ; {SCHEDULE_DETAIL}
+ ; {SCHEDULE_CLOSING_DATETIME}
+ ; {SCHEDULE_ANSWER_COUNT}
+ ; {SCHEDULE_PARTICIPATE_COUNT}
+ ; {SCHEDULE_DECISION_DATE}
+ ; {ANSWER_SCHEDULE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï RMD001¡ÁRMD999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ DEC001 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ DEC002 = "{COMMUNITY_NAME} ¥³¥ß¥å¥Ë¥Æ¥£¤Î {USER_NAME}({USER_COMMUNITY_NAME}) ¤Ç¤¹¡£"
+ DEC003 = ""
+ DEC004 = "¥¹¥±¥¸¥å¡¼¥ëÄ´À°¡Ö{SCHEDULE_NAME}¡×¤Ë¤Ä¤¤¤Æ¤Î"
+ DEC005 = "Æü»þ¤¬·èÄꤷ¤Þ¤·¤¿¤Î¤Ç¤´Êó¹ð¤¤¤¿¤·¤Þ¤¹¡£"
+ DEC006 = ""
+ DEC007 = "[¥¹¥±¥¸¥å¡¼¥ëÆâÍÆ]"
+ DEC008 = "·ï̾¡§{SCHEDULE_NAME}"
+ DEC009 = "¼çºÅ¼Ô¡§{USER_NAME}({USER_COMMUNITY_NAME})¤µ¤ó"
+ DEC010 = "¾ÜºÙ¾ðÊó¡§{SCHEDULE_DETAIL}"
+ DEC011 = "²óÅúÄùÀÚÆü»þ¡§{SCHEDULE_CLOSING_DATETIME}"
+ DEC012 = "²óÅú¾õ¶·¡§{SCHEDULE_ANSWER_COUNT} / {SCHEDULE_PARTICIPATE_COUNT} ¿Í"
+ DEC013 = ""
+ DEC014 = "[·èÄêÆü]"
+ DEC015 = "{SCHEDULE_DECISION_DATE}"
+ DEC016 = ""
+ DEC017 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤ÆÆâÍƤò³Îǧ¤·¤Æ²¼¤µ¤¤¡£"
+ DEC018 = "{ANSWER_SCHEDULE_URL}"
+ DEC019 = ""
+ DEC020 = "--"
+ DEC021 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ DEC022 = "{SYSTEM_BASE_URL}"
+
+[ACSSystemConfig.class.php]
+ ;¥·¥¹¥Æ¥àÀßÄê ¹àÌÜ̾(name)
+ SYSTEM_NAME = "¥·¥¹¥Æ¥à̾"
+ SYSTEM_OUTLINE = "¥·¥¹¥Æ¥à³µÍ×"
+ SYSTEM_BASE_URL = "¥·¥¹¥Æ¥àURL"
+ SYSTEM_BASE_LOGIN_URL = "¥Þ¥¤¥Ú¡¼¥¸URL"
+ SYSTEM_MAIL_ADDR = "¥·¥¹¥Æ¥à¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ SMTP_SERVER = "SMTP¥µ¡¼¥Ð"
+ SMTP_PORT = "SMTP¥Ý¡¼¥È"
+ LDAP_SERVER = "LDAP¥µ¡¼¥Ð"
+ LDAP_PORT = "LDAP¥Ý¡¼¥È"
+ LDAP_BASE_DN = "LDAP Base DN"
+ LDAP_BIND_DN = "LDAP Bind DN"
+ LDAP_BIND_PASSWD = "LDAP Bind ¥Ñ¥¹¥ï¡¼¥É"
+ DESIGN_STYLE_CSS_URL = "¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥óCSS URL"
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT = "¥È¥Ã¥×¥Ú¡¼¥¸¿·Ãå¾ðÊóɽ¼¨·ï¿ô"
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT = "¿·Ãå¾ðÊó°ìÍ÷ɽ¼¨·ï¿ô"
+ FRIENDS_DISPLAY_MAX_COUNT = "¥Þ¥¤¥Õ¥ì¥ó¥ºÉ½¼¨·ï¿ô"
+ COMMUNITY_DISPLAY_MAX_COUNT = "¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£É½¼¨·ï¿ô"
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT = "¥æ¡¼¥¶¸¡º÷·ë²Ìɽ¼¨·ï¿ô"
+ DIARY_RSS_TERM = "¥À¥¤¥¢¥ê¡¼RSS¼èÆÀ´ü´Ö"
+ NEW_INFO_TOP_TERM = "¿·Ãå¾ðÊó¼èÆÀ´ü´Ö"
+ NEW_INFO_LIST_TERM = "¿·Ãå¾ðÊó°ìÍ÷¼èÆÀ´ü´Ö"
+ FOOTPRINT_LIST_TERM = "ÂÀ×°ìÍ÷¼èÆÀ´ü´Ö"
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT = "ÂÀ×°ìÍ÷ɽ¼¨·ï¿ô"
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT = "¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðɽ¼¨·ï¿ô"
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT = "¥³¥ß¥å¥Ë¥Æ¥£¸¡º÷·ë²Ìɽ¼¨·ï¿ô"
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT = "¥³¥ß¥å¥Ë¥Æ¥£¥¹¥±¥¸¥å¡¼¥ë°ìÍ÷ɽ¼¨·ï¿ô"
+ COMMUNITY_ML_MAIL_ADDR = "¥³¥ß¥å¥Ë¥Æ¥£¥¹ML ¥·¥¹¥Æ¥à¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ COMMUNITY_ML_POP_SERVER = "¥³¥ß¥å¥Ë¥Æ¥£¥¹ML POP¥µ¡¼¥Ð"
+ COMMUNITY_ML_POP_PORT = "¥³¥ß¥å¥Ë¥Æ¥£¥¹ML POP¥Ý¡¼¥È"
+ COMMUNITY_ML_POP_USER = "¥³¥ß¥å¥Ë¥Æ¥£¥¹ML POP¥æ¡¼¥¶"
+ COMMUNITY_ML_POP_PASSWD = "¥³¥ß¥å¥Ë¥Æ¥£¥¹ML POP¥Ñ¥¹¥ï¡¼¥É"
+ BBS_RSS_TERM = "·Ç¼¨ÈÄRSS¼èÆÀ´ü´Ö"
+ PROFILE_IMAGE_WIDTH_MAX = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿²£ºÇÂç"
+ PROFILE_IMAGE_HEIGHT_MAX = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿½ÄºÇÂç"
+ PROFILE_IMAGE_THUMB_WIDTH_MAX = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¥µ¥à¥Í¥¤¥ë²£ºÇÂç"
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX = "¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¥µ¥à¥Í¥¤¥ë½ÄºÇÂç"
+ BBS_IMAGE_WIDTH_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü²£ºÇÂç"
+ BBS_IMAGE_HEIGHT_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü½ÄºÇÂç"
+ BBS_IMAGE_THUMB_WIDTH_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü¥µ¥à¥Í¥¤¥ë²£ºÇÂç"
+ BBS_IMAGE_THUMB_HEIGHT_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü¥µ¥à¥Í¥¤¥ë½ÄºÇÂç"
+ BBS_IMAGE_RSS_WIDTH_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹²£ºÇÂç"
+ BBS_IMAGE_RSS_HEIGHT_MAX = "ÅŻҷǼ¨ÈÄ¥¢¥Ã¥×¥í¡¼¥É²èÁü¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹½ÄºÇÂç"
+ DIARY_IMAGE_WIDTH_MAX = "¥À¥¤¥¢¥ê¡¼¼Ì¿¿²£ºÇÂç"
+ DIARY_IMAGE_HEIGHT_MAX = "¥À¥¤¥¢¥ê¡¼¼Ì¿¿½ÄºÇÂç"
+ DIARY_IMAGE_THUMB_WIDTH_MAX = "¥À¥¤¥¢¥ê¡¼¼Ì¿¿¥µ¥à¥Í¥¤¥ë²£ºÇÂç"
+ DIARY_IMAGE_THUMB_HEIGHT_MAX = "¥À¥¤¥¢¥ê¡¼¼Ì¿¿¥µ¥à¥Í¥¤¥ë½ÄºÇÂç"
+ FOLDER_IMAGE_THUMB_WIDTH_MAX = "¥Õ¥©¥ë¥À¼Ì¿¿¥µ¥à¥Í¥¤¥ë²£ºÇÂç"
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX = "¥Õ¥©¥ë¥À¼Ì¿¿¥µ¥à¥Í¥¤¥ë½ÄºÇÂç"
+ USER_RANKING_COUNT_TERM = "¥æ¡¼¥¶¥é¥ó¥¥ó¥°½¸·×´ü´Ö"
+ COMMUNITY_RANKING_COUNT_TERM = "¥³¥ß¥å¥Ë¥Æ¥£¥é¥ó¥¥ó¥°½¸·×´ü´Ö"
+ RSS_DISPLAY_MAX_COUNT = "¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹½ÐÎÏ·ï¿ô"
+ LOG_DISPLAY_MAX_COUNT = "¥í¥°°ìÍ÷ɽ¼¨·ï¿ô"
+ GET_LOGOUT_DATE_EVERYTIME = "¥¢¥¯¥»¥¹Ëè¤Î¥í¥°¥¢¥¦¥È¾ðÊó¼èÆÀ"
+ NAME_DISPLAY_LEVEL = "LDAPÏ¢·È»þËÜ̾¸ø³«²ÄÈݽé´üÃÍ"
+ DISPLAY_PHOTOS_FOR_PUBLIC = "¼Ì¿¿°ìÈ̸ø³«ÀßÄê²ÄÈÝ"
+
+ ;¥·¥¹¥Æ¥àÀßÄê ¥Î¡¼¥È(note)
+ SYSTEM_NAME.note = ""
+ SYSTEM_OUTLINE.note = "RSS¤Ë½ÐÎϤµ¤ì¤Þ¤¹"
+ SYSTEM_BASE_URL.note = "¥·¥¹¥Æ¥à¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL"
+ SYSTEM_BASE_LOGIN_URL.note = "¥í¥°¥¤¥ó¸å¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL"
+ SYSTEM_MAIL_ADDR.note = ""
+ SMTP_SERVER.note = ""
+ SMTP_PORT.note = ""
+ LDAP_SERVER.note = ""
+ LDAP_PORT.note = ""
+ LDAP_BASE_DN.note = ""
+ LDAP_BIND_DN.note = ""
+ LDAP_BIND_PASSWD.note = ""
+ DESIGN_STYLE_CSS_URL.note = ""
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT.note = ""
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT.note = ""
+ FRIENDS_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_DISPLAY_MAX_COUNT.note = ""
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT.note = ""
+ DIARY_RSS_TERM.note = ""
+ NEW_INFO_TOP_TERM.note = "0¤ò»ØÄꤹ¤ë¤ÈÁ´´ü´Ö¤òÂоݤȤ·¤Þ¤¹"
+ NEW_INFO_LIST_TERM.note = "0¤ò»ØÄꤹ¤ë¤ÈÁ´´ü´Ö¤òÂоݤȤ·¤Þ¤¹"
+ FOOTPRINT_LIST_TERM.note = ""
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT.note = ""
+ COMMUNITY_ML_MAIL_ADDR.note = ""
+ COMMUNITY_ML_POP_SERVER.note = ""
+ COMMUNITY_ML_POP_PORT.note = ""
+ COMMUNITY_ML_POP_USER.note = ""
+ COMMUNITY_ML_POP_PASSWD.note = ""
+ BBS_RSS_TERM.note = ""
+ PROFILE_IMAGE_WIDTH_MAX.note = ""
+ PROFILE_IMAGE_HEIGHT_MAX.note = ""
+ PROFILE_IMAGE_THUMB_WIDTH_MAX.note = ""
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ BBS_IMAGE_WIDTH_MAX.note = ""
+ BBS_IMAGE_HEIGHT_MAX.note = ""
+ BBS_IMAGE_THUMB_WIDTH_MAX.note = ""
+ BBS_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ BBS_IMAGE_RSS_WIDTH_MAX.note = ""
+ BBS_IMAGE_RSS_HEIGHT_MAX.note = ""
+ DIARY_IMAGE_WIDTH_MAX.note = ""
+ DIARY_IMAGE_HEIGHT_MAX.note = ""
+ DIARY_IMAGE_THUMB_WIDTH_MAX.note = ""
+ DIARY_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ FOLDER_IMAGE_THUMB_WIDTH_MAX.note = ""
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX.note = ""
+ USER_RANKING_COUNT_TERM.note = ""
+ COMMUNITY_RANKING_COUNT_TERM.note = ""
+ RSS_DISPLAY_MAX_COUNT.note = ""
+ LOG_DISPLAY_MAX_COUNT.note = ""
+ GET_LOGOUT_DATE_EVERYTIME.note = "¡Ö»ÈÍѤ¹¤ë¡×¤ò»ØÄꤹ¤ë¤È¥¢¥¯¥»¥¹Ëè¤Ë»þ´Ö¤ò¼èÆÀ¤·¤Þ¤¹¡£"
+ NAME_DISPLAY_LEVEL.note = ""
+ DISPLAY_PHOTOS_FOR_PUBLIC.note = "¡Ö»ÈÍѤ¹¤ë¡×¤ò»ØÄꤹ¤ë¤È°ìÈ̸ø³«ÍѤβèÁü¥¢¥Ã¥×¥í¡¼¥É¤¬²Äǽ¤È¤Ê¤ê¤Þ¤¹¡£"
+
+ ;¥·¥¹¥Æ¥àÀßÄê ñ°Ì(unit)
+ SYSTEM_NAME.unit = ""
+ SYSTEM_OUTLINE.unit = ""
+ SYSTEM_BASE_URL.unit = ""
+ SYSTEM_BASE_LOGIN_URL.unit = ""
+ SYSTEM_MAIL_ADDR.unit = ""
+ SMTP_SERVER.unit = ""
+ SMTP_PORT.unit = ""
+ LDAP_SERVER.unit = ""
+ LDAP_PORT.unit = ""
+ LDAP_BASE_DN.unit = ""
+ LDAP_BIND_DN.unit = ""
+ LDAP_BIND_PASSWD.unit = ""
+ DESIGN_STYLE_CSS_URL.unit = ""
+ NEW_INFO_TOP_DISPLAY_MAX_COUNT.unit = "·ï"
+ NEW_INFO_LIST_DISPLAY_MAX_COUNT.unit = "·ï"
+ FRIENDS_DISPLAY_MAX_COUNT.unit = "·ï"
+ COMMUNITY_DISPLAY_MAX_COUNT.unit = "·ï"
+ USER_SEARCH_RESULT_DISPLAY_MAX_COUNT.unit = "·ï"
+ DIARY_RSS_TERM.unit = "Æü"
+ NEW_INFO_TOP_TERM.unit = "Æü"
+ NEW_INFO_LIST_TERM.unit = "Æü"
+ FOOTPRINT_LIST_TERM.unit = "Æü"
+ FOOTPRINT_LIST_DISPLAY_MAX_COUNT.unit = "·ï"
+ COMMUNITY_MEMBER_DISPLAY_MAX_COUNT.unit = "·ï"
+ COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT.unit = "·ï"
+ COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT.unit = "·ï"
+ COMMUNITY_ML_MAIL_ADDR.unit = ""
+ COMMUNITY_ML_POP_SERVER.unit = ""
+ COMMUNITY_ML_POP_PORT.unit = ""
+ COMMUNITY_ML_POP_USER.unit = ""
+ COMMUNITY_ML_POP_PASSWD.unit = ""
+ BBS_RSS_TERM.unit = "Æü"
+ PROFILE_IMAGE_WIDTH_MAX.unit = "px"
+ PROFILE_IMAGE_HEIGHT_MAX.unit = "px"
+ PROFILE_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ PROFILE_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ BBS_IMAGE_RSS_WIDTH_MAX.unit = "px"
+ BBS_IMAGE_RSS_HEIGHT_MAX.unit = "px"
+ DIARY_IMAGE_WIDTH_MAX.unit = "px"
+ DIARY_IMAGE_HEIGHT_MAX.unit = "px"
+ DIARY_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ DIARY_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ FOLDER_IMAGE_THUMB_WIDTH_MAX.unit = "px"
+ FOLDER_IMAGE_THUMB_HEIGHT_MAX.unit = "px"
+ USER_RANKING_COUNT_TERM.unit = "Æü"
+ COMMUNITY_RANKING_COUNT_TERM.unit = "Æü"
+ RSS_DISPLAY_MAX_COUNT.unit = "·ï"
+ LOG_DISPLAY_MAX_COUNT.unit = "·ï"
+ GET_LOGOUT_DATE_EVERYTIME.unit = ""
+ NAME_DISPLAY_LEVEL.unit = ""
+ DISPLAY_PHOTOS_FOR_PUBLIC.unit = ""
+
+ ;¥·¥¹¥Æ¥àÀßÄê ñ°Ì(select)
+ GET_LOGOUT_DATE_EVERYTIME.select = "1:»ÈÍѤ¹¤ë,0:»ÈÍѤ·¤Ê¤¤"
+ NAME_DISPLAY_LEVEL.select = "03:Èó¸ø³«,02:¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«,01:°ìÈ̸ø³«"
+ DISPLAY_PHOTOS_FOR_PUBLIC.select = "1:»ÈÍѤ¹¤ë,0:»ÈÍѤ·¤Ê¤¤"
+
+[ACSWaiting.class.php]
+ M001 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ M002 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍê¤Î¤ªÃΤ餻"
+ M003 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍê¤Î¤ªÃΤ餻"
+ M004 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂԤΤªÃΤ餻"
+ M005 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê¤Î¤ªÃΤ餻"
+ M006 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲþµÇ§¤Î¤ªÃΤ餻"
+ M007 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍ꾵ǧ¤Î¤ªÃΤ餻"
+ M008 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂԤΤªÃΤ餻"
+ M009 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲþµÇ§¤Î¤ªÃΤ餻"
+
+ ;
+ ; ¥á¡¼¥ëÁ÷¿®¶¦ÄÌ¥¿¥¤¥È¥ë
+ ;
+ ; ¢¨¹Ô¤Ï MTL001¡ÁMTL999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ MTL001 = "***************************************************************"
+ MTL002 = " ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ MTL003 = "***************************************************************"
+
+ ;
+ ; ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍê
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï ADF001¡ÁADF999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ ADF001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ ADF002 = ""
+ ADF003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ ADF004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍ꤬¤¢¤ê¤Þ¤·¤¿¡£"
+ ADF005 = ""
+ ADF006 = "[¥á¥Ã¥»¡¼¥¸]"
+ ADF007 = "{MESSAGE}"
+ ADF008 = ""
+ ADF009 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¾µÇ§¤Þ¤¿¤ÏµñÈݤÎÁàºî¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£"
+ ADF010 = "{WAITING_URL}"
+ ADF011 = ""
+ ADF012 = "--"
+ ADF013 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ ADF014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍê
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_COMMUNITY_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ JCM001 = "{TARGET_COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£ ´ÉÍý¼ÔÍͤØ:"
+ JCM002 = ""
+ JCM003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ JCM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍ꤬¤¢¤ê¤Þ¤·¤¿¡£"
+ JCM005 = ""
+ JCM006 = "[¥á¥Ã¥»¡¼¥¸]"
+ JCM007 = "{MESSAGE}"
+ JCM008 = ""
+ JCM009 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¾µÇ§¤Þ¤¿¤ÏµñÈݤÎÁàºî¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£"
+ JCM010 = "{WAITING_URL}"
+ JCM011 = ""
+ JCM012 = "--"
+ JCM013 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ JCM014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ ICM001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ ICM002 = ""
+ ICM003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ ICM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Î¾·ÂÔ¤¬¤¢¤ê¤Þ¤·¤¿¡£"
+ ICM005 = ""
+ ICM006 = "[¾·ÂÔ¤µ¤ì¤¿¥³¥ß¥å¥Ë¥Æ¥£]"
+ ICM007 = "{COMMUNITY_NAME}"
+ ICM008 = "{COMMUNITY_URL}"
+ ICM009 = "[¥á¥Ã¥»¡¼¥¸]"
+ ICM010 = "{MESSAGE}"
+ ICM011 = ""
+ ICM012 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¾µÇ§¤Þ¤¿¤ÏµñÈݤÎÁàºî¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£"
+ ICM013 = "{WAITING_URL}"
+ ICM014 = ""
+ ICM015 = "--"
+ ICM016 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ ICM017 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯°ÍÍê
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {WAITING_TYPE_NAME}
+ ; {MESSAGE}
+ ; {WAITING_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ CML001 = "{TARGET_COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£ ´ÉÍý¼ÔÍͤØ:"
+ CML002 = ""
+ CML003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ CML004 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤Î {USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é"
+ CML005 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê ({WAITING_TYPE_NAME}) ¤¬¤¢¤ê¤Þ¤·¤¿¡£"
+ CML006 = ""
+ CML007 = "[°ÍÍ긵¥³¥ß¥å¥Ë¥Æ¥£]"
+ CML008 = "{COMMUNITY_NAME}"
+ CML009 = "{COMMUNITY_URL}"
+ CML010 = "[¥á¥Ã¥»¡¼¥¸]"
+ CML011 = "{MESSAGE}"
+ CML012 = ""
+ CML013 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¾µÇ§¤Þ¤¿¤ÏµñÈݤÎÁàºî¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£"
+ CML014 = "{WAITING_URL}"
+ CML015 = ""
+ CML016 = "--"
+ CML017 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ CML018 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲþµÇ§
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ AMF001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ AMF002 = ""
+ AMF003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ AMF004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤Ø¤Î¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍ꤬¾µÇ§¤µ¤ì¤Þ¤·¤¿¡£"
+ AMF005 = ""
+ AMF006 = "[ÊÖ¿®¥á¥Ã¥»¡¼¥¸]"
+ AMF007 = "{MESSAGE}"
+ AMF008 = ""
+ AMF009 = "--"
+ AMF010 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ AMF011 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã¾µÇ§
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {COMMUNITY_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ ACM001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ ACM002 = ""
+ ACM003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ ACM004 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Î»²²Ã°ÍÍ꤬¾µÇ§¤µ¤ì¤Þ¤·¤¿¡£"
+ ACM005 = ""
+ ACM006 = "[ÊÖ¿®¥á¥Ã¥»¡¼¥¸]"
+ ACM007 = "{MESSAGE}"
+ ACM008 = ""
+ ACM009 ="--"
+ ACM010 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ ACM011 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ¾µÇ§
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ AIM001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ AIM002 = ""
+ AIM003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ AIM004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤¬¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Î¾·ÂÔ¤ò¾µÇ§¤·¤Þ¤·¤¿¡£"
+ AIM005 = ""
+ AIM006 = "[¾·ÂÔ¤·¤¿¥³¥ß¥å¥Ë¥Æ¥£]"
+ AIM007 = "{COMMUNITY_NAME}"
+ AIM008 = "{COMMUNITY_URL}"
+ AIM009 = "[ÊÖ¿®¥á¥Ã¥»¡¼¥¸]"
+ AIM010 = "{MESSAGE}"
+ AIM011 = ""
+ AIM012 = "--"
+ AIM013 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ AIM014 = "{SYSTEM_BASE_URL}"
+
+ ;
+ ; ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯¾µÇ§
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_COMMUNITY_NAME}
+ ; {COMMUNITY_NAME}
+ ; {COMMUNITY_URL}
+ ; {WAITING_TYPE_NAME}
+ ; {MESSAGE}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï JCM001¡ÁJCM999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ ACL001 = "{TARGET_COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£ ´ÉÍý¼ÔÍͤØ:"
+ ACL002 = ""
+ ACL003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ ACL004 = "{COMMUNITY_NAME}¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Î"
+ ACL005 = "¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍê ({WAITING_TYPE_NAME}) ¤¬¾µÇ§¤µ¤ì¤Þ¤·¤¿¡£"
+ ACL006 = ""
+ ACL007 = "[°ÍÍêÀ襳¥ß¥å¥Ë¥Æ¥£]"
+ ACL008 = "{COMMUNITY_NAME}"
+ ACL009 = "{COMMUNITY_URL}"
+ ACL010 = "[ÊÖ¿®¥á¥Ã¥»¡¼¥¸]"
+ ACL011 = "{MESSAGE}"
+ ACL012 = ""
+ ACL013 = "--"
+ ACL014 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ ACL015 = "{SYSTEM_BASE_URL}"
+
+[ACSTemplateLib.class.php]
+ M001 = "Á°¤Ø"
+ M002 = "¼¡¤Ø"
+
+ ; ¥Ú¡¼¥¸¾ðÊó
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {ALL_COUNT},{START_COUNT},{END_COUNT}
+ PAGE_INFO = "Á´{ALL_COUNT}·ï: {START_COUNT}-{END_COUNT}·ï¤òɽ¼¨ "
+
+
+[ACSMessage.class.php]
+ M001 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ M002 = "¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î¤ªÃΤ餻"
+
+ ;
+ ; ¥á¡¼¥ëÁ÷¿®¶¦ÄÌ¥¿¥¤¥È¥ë
+ ;
+ ; ¢¨¹Ô¤Ï MTL001¡ÁMTL999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ MTL001 = "***************************************************************"
+ MTL002 = " ¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à ¼«Æ°Á÷¿®¥á¡¼¥ë¤Ç¤¹"
+ MTL003 = "***************************************************************"
+
+ ;
+ ; ¼õ¿®¥á¥Ã¥»¡¼¥¸¤Î¤ªÃΤ餻
+ ;
+ ; ¢¨²¼µ¥¿¥°¤¬ÍøÍѲÄǽ
+ ; {TARGET_USER_NAME}
+ ; {USER_NAME}
+ ; {USER_COMMUNITY_NAME}
+ ; {MESSAGE_URL}
+ ; {SYSTEM_BASE_URL}
+ ; ¢¨¹Ô¤Ï ADF001¡ÁADF999 ¤Þ¤ÇÄêµÁ²Ä(Èô¤ÓÈÖÉÔ²Ä)
+ ;
+ ADF001 = "{TARGET_USER_NAME}¤µ¤ó¤Ø:"
+ ADF002 = ""
+ ADF003 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻¤Ç¤¹¡£"
+ ADF004 = "{USER_NAME} ({USER_COMMUNITY_NAME}) ¤µ¤ó¤«¤é¤Î¥á¥Ã¥»¡¼¥¸¤¬¤¢¤ê¤Þ¤¹¡£"
+ ADF005 = ""
+ ADF006 = "°Ê²¼¤ÎURL¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¥á¥Ã¥»¡¼¥¸²èÌ̤˥¢¥¯¥»¥¹¤·¤Æ²¼¤µ¤¤¡£"
+ ADF007 = "{MESSAGE_URL}"
+ ADF008 = ""
+ ADF009 = "--"
+ ADF010 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ ADF011 = "{SYSTEM_BASE_URL}"
+
--- /dev/null
+;
+; Created on 2007ǯ 3·î 20Æü ²ÐÍËÆü 19:26:19 JST
+; Created by [create_masterini.sh]
+;
+
+[category_group_master]
+ D0001 = "¸¦µæ"
+ D0002 = "¶µ°é"
+ D0003 = "ʬÌî"
+ D0004 = "ÁÈ¿¥"
+ D0005 = "Éô³è¡¦¥µ¡¼¥¯¥ë"
+ D0006 = "¼ñÌ£¡¦¸ä³Ú"
+ D0007 = "¤½¤Î¾"
+
+[category_master]
+ D0001 = "¸¦µæ¼¼"
+ D0002 = "¸¦µæ¥°¥ë¡¼¥×"
+ D0003 = "ÊÙ¶¯²ñ"
+ D0004 = "¶¦Æ±¸¦µæ"
+ D0005 = "¥×¥í¥¸¥§¥¯¥È"
+ D0006 = "¥¼¥ß"
+ D0007 = "³Ø²ñ"
+ D0008 = "¥·¥ó¥Ý¥¸¥¦¥à"
+ D0009 = "¸¦µæ²ñ"
+ D0010 = "¥ï¡¼¥¯¥·¥ç¥Ã¥×"
+ D0011 = "¹ÖµÁ"
+ D0012 = "ÆÃÊֵ̹Á"
+ D0013 = "À¸³¶¶µ°é"
+ D0014 = "¥Ï¡¼¥É¥¦¥§¥¢"
+ D0015 = "¥½¥Õ¥È¥¦¥§¥¢"
+ D0016 = "¥Í¥Ã¥È¥ï¡¼¥¯"
+ D0017 = "¥Ç¡¼¥¿¥Ù¡¼¥¹"
+ D0018 = "¥¢¥ë¥´¥ê¥º¥à"
+ D0019 = "²»À¼½èÍý"
+ D0020 = "²èÁü¡¦±ÇÁü½èÍý"
+ D0021 = "¥á¥Ç¥£¥¢½èÍý"
+ D0022 = "¥Ñ¥¿¡¼¥ó¾ðÊó½èÍý"
+ D0023 = "¿ôÍý´ðÁÃ"
+ D0024 = "¿ôÍý¥â¥Ç¥ë"
+ D0025 = "·×»»ÏÀ"
+ D0026 = "½¸ÀÑ¥·¥¹¥Æ¥à"
+ D0027 = "ÏÀÍý²óÏ©"
+ D0028 = "Áȹþ¤ß¥·¥¹¥Æ¥à"
+ D0029 = "¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à"
+ D0030 = "¥·¥¹¥Æ¥àÀ©¸æ"
+ D0031 = "¥×¥í¥°¥é¥ß¥ó¥°"
+ D0032 = "¼«Á³¸À¸ì½èÍý"
+ D0033 = "¥»¥¥å¥ê¥Æ¥£"
+ D0034 = "Ãμ±¾ðÊó½èÍý"
+ D0035 = "À¸ÂξðÊó½èÍý"
+ D0036 = "¥â¥Ð¥¤¥ë"
+ D0037 = "¥æ¥Ó¥¥¿¥¹"
+ D0038 = "°åÎÅ"
+ D0039 = "Ê¡»ã"
+ D0040 = "¥³¥ß¥å¥Ë¥±¡¼¥·¥ç¥ó"
+ D0041 = "¥°¥ê¥Ã¥É"
+ D0042 = "ǧÃβʳØ"
+ D0043 = "¥á¥Ç¥£¥¢±þÍÑ"
+ D0044 = "¥·¥ß¥å¥ì¡¼¥·¥ç¥ó"
+ D0045 = "¿¼«Í³ÅÙ¥·¥¹¥Æ¥à"
+ D0046 = "ʪ¼Á¾ðÊó"
+ D0047 = "À¸Ì¿¾ðÊó"
+ D0048 = "Â絬ÌÏ·×»»"
+ D0049 = "°å³Ø°ìÈÌ"
+ D0050 = "²½³Ø°ìÈÌ"
+ D0051 = "À¸Êª³Ø°ìÈÌ"
+ D0052 = "ʪÍý³Ø°ìÈÌ"
+ D0053 = "¾ðÊó¥â¥Ç¥ë"
+ D0054 = "ʬ»¶¶¨Ä´"
+ D0055 = "ÃÎŪ»Ù±ç"
+ D0056 = "¾ðÊó¥Ç¥¶¥¤¥ó"
+ D0057 = "ů³Ø¡¦ÎÑÍý"
+ D0058 = "¶µÍÜ°ìÈÌ"
+ D0059 = "¸À¸ì"
+ D0060 = "¶µ°é"
+ D0061 = "¿´Íý"
+ D0062 = "·ÐºÑ"
+ D0063 = "ʸ³Ø"
+ D0064 = "ˡΧ"
+ D0065 = "¼Ò²ñ"
+ D0066 = "·ò¹¯¡¦ÊÝ·ò"
+ D0067 = "³ØÉô"
+ D0068 = "³Ø²Ê"
+ D0069 = "¸¦µæ²Ê"
+ D0070 = "À칶"
+ D0071 = "¥³¡¼¥¹"
+ D0072 = "°Ñ°÷²ñ"
+ D0073 = "ʸ²½·Ï"
+ D0074 = "±¿Æ°·Ï"
+ D0075 = "ËÜ¡¦ºî²È"
+ D0076 = "²»³Ú¡¦²Î¼ê"
+ D0077 = "±Ç²è¡¦¥Æ¥ì¥Ó¡¦¥¢¥Ë¥á¡¦ÇÐÍ¥"
+ D0078 = "¥²¡¼¥à"
+ D0079 = "¼Ö¡¦¥Ð¥¤¥¯"
+ D0080 = "ι¹Ô"
+ D0081 = "¥¤¥ó¥¿¡¼¥Í¥Ã¥È¡¦¥³¥ó¥Ô¥å¡¼¥¿"
+ D0082 = "¥Õ¡¼¥É¡¦¥ì¥¹¥È¥é¥ó"
+ D0083 = "¥Õ¥¡¥Ã¥·¥ç¥ó"
+ D0084 = "¥Ú¥Ã¥È¡¦Æ°Êª"
+ D0085 = "¥¹¥Ý¡¼¥Ä¡¦¥¢¥¦¥È¥É¥¢"
+ D0086 = "»ñ³Ê¡¦¸¡Äê"
+ D0087 = "¼ñÌ£¡¦¸ä³ÚÁ´ÈÌ"
+ D0088 = "¤½¤Î¾"
+
+[community_member_type_master]
+ D10 = "´ÉÍý¼Ô"
+ D20 = "¥á¥ó¥Ð"
+
+[community_type_master]
+ D10 = "¥Þ¥¤¥Ú¡¼¥¸"
+ D20 = "¥Þ¥¤¥Õ¥ì¥ó¥º"
+ D30 = "¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×"
+ D40 = "¥³¥ß¥å¥Ë¥Æ¥£"
+
+[contents_type_master]
+ D00 = "Á´ÂÎ"
+ D01 = "»á̾"
+ D02 = "¥á¡¼¥ë¥¢¥É¥ì¥¹"
+ D03 = "½ê°"
+ D04 = "À칶"
+ D05 = "½Ð¿È"
+ D06 = "À¸Ç¯·îÆü"
+ D07 = "¥×¥í¥Õ¥£¡¼¥ë"
+ D08 = "¥×¥í¥Õ¥£¡¼¥ë_¥í¥°¥¤¥ó¥æ¡¼¥¶"
+ D09 = "¥×¥í¥Õ¥£¡¼¥ë_¥Õ¥ì¥ó¥É"
+ D11 = "¥Þ¥¤¥Õ¥ì¥ó¥º"
+ D21 = "¥À¥¤¥¢¥ê¡¼"
+ D31 = "¥Õ¥©¥ë¥À"
+ D32 = "¥Õ¥©¥ë¥À.¥Õ¥©¥ë¥À"
+ D33 = "¥Õ¥¡¥¤¥ë"
+ D41 = "ÅŻҷǼ¨ÈÄ"
+ D42 = "ÅŻҷǼ¨ÈÄ.¥¹¥ì¥Ã¥É"
+ D43 = "ÅŻҷǼ¨ÈÄ.¥¹¥ì¥Ã¥É_Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£"
+ D51 = "¥á¡¼¥ë¸À¸ì"
+ D52 = "¥é¥¹¥È¥í¥°¥¤¥ó"
+ D53 = "¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥ó"
+ D61 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¢¥É¥ì¥¹"
+ D62 = "¥³¥ß¥å¥Ë¥Æ¥£ML¥¹¥Æ¡¼¥¿¥¹"
+ D63 = "³°ÉôRSS.URL"
+ D64 = "³°ÉôRSS.Åê¹Æ¼Ô"
+ D65 = "³°ÉôRSS.MLÄÌÃÎ"
+ D66 = "³°ÉôRSS.¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹´ü´Ö"
+
+[file_category_master]
+ D0000 = "»ØÄê¤Ê¤·"
+ D0001 = "ÏÀʸ"
+ D0002 = "¥×¥ì¥¼¥ó"
+ D0003 = "²èÁü"
+ D0004 = "Æ°²è"
+
+[file_contents_type_master]
+ D0001 = "Ãø¼Ô"
+ D0002 = "ɽÂê"
+ D0003 = "·ÇºÜ»ï¡¦³Ø²ñ"
+ D0004 = "VolNo.Åù"
+ D0005 = "¥Ú¡¼¥¸from"
+ D0006 = "¥Ú¡¼¥¸to"
+ D0007 = "ȯɽ¡¦·ÇºÜÆü"
+ D0008 = "¸À¸ì"
+ D0009 = "³«ºÅÃÏ"
+ D0010 = "½ÐÈǼÒ"
+ D0011 = "ÏÀʸ¼ïÊÌ"
+ D0012 = "È÷¹Í"
+
+[file_history_operation_master]
+ D0101 = "ºîÀ®"
+ D0201 = "¹¹¿·"
+ D0301 = "Éü³è"
+
+[open_level_master]
+ D01 = "°ìÈ̸ø³«"
+ D02 = "¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³«"
+ D03 = "Èó¸ø³«"
+ D04 = "Èó¸ø³« (¥á¥ó¥Ð¤Î¤ß)"
+ D05 = "ͧ¿Í¤Ë¸ø³«"
+ D06 = "¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹"
+
+[waiting_status_master]
+ D10 = "¾µÇ§ÂÔ¤Á"
+ D20 = "¾µÇ§ºÑ¤ß"
+ D30 = "¾µÇ§µñÈÝ"
+
+[waiting_type_master]
+ D10 = "¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ"
+ D20 = "¥³¥ß¥å¥Ë¥Æ¥£»²²Ã"
+ D30 = "¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ"
+ D40 = "¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ"
+ D50 = "¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ"
+
+[system_config_group]
+ D01 = "¥·¥¹¥Æ¥à"
+ D02 = "¥Þ¥¤¥Ú¡¼¥¸"
+ D03 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ D04 = "²èÁü¥Õ¥¡¥¤¥ë"
+ D05 = "¥é¥ó¥¥ó¥°"
+ D06 = "¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹"
+ D07 = "¥í¥°"
+ D08 = "¥æ¡¼¥¶¾ðÊó"
--- /dev/null
+[acs_base.tpl.php]
+ M001 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ M002 = "¥¢¥«¥Ç¥ß¥Ã¥¯¥³¥ß¥å¥Ë¥Æ¥£¥·¥¹¥Æ¥à"
+ M003 = "¥í¥°¥¤¥ó"
+ M004 = "¥Õ¥©¥ë¥À"
+ M005 = "¥À¥¤¥¢¥ê¡¼"
+ M006 = "¥×¥í¥Õ¥£¡¼¥ë"
+ M007 = "ÊÔ½¸"
+ M008 = "³Îǧ"
+ M009 = "¥Þ¥¤¥Ú¡¼¥¸"
+ M010 = "¥³¥ß¥å¥Ë¥Æ¥£"
+ M011 = "¥æ¡¼¥¶¸¡º÷"
+ M012 = "¥Ø¥ë¥×"
+ M013 = "¥í¥°¥¢¥¦¥È"
+ M014 = "¥·¥¹¥Æ¥à´ÉÍý"
+
+ ; ±¦µ¥¿¥°¤¬ÍøÍѲÄǽ {USER_NAME}
+ WELCOME = "{USER_NAME}¤µ¤ó ¤è¤¦¤³¤½"
+
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+if (!defined("ORD_z"))
+ define("ORD_z",ord('z'));
+if (!defined("ORD_!"))
+ define("ORD_exclmark", ord('!'));
+if (!defined("ORD_u"))
+ define("ORD_u", ord("u"));
+if (!defined("ORD_tilde"))
+ define("ORD_tilde", ord('~'));
+
+class ASCII85Decode {
+
+ function ASCII85Decode(&$fpdi) {
+ $this->fpdi =& $fpdi;
+ }
+
+
+ function decode($in) {
+ $out = "";
+ $state = 0;
+ $chn = null;
+
+ $l = strlen($in);
+
+ for ($k = 0; $k < $l; ++$k) {
+ $ch = ord($in[$k]) & 0xff;
+
+ if ($ch == ORD_tilde) {
+ break;
+ }
+ if (preg_match("/^\s$/",chr($ch))) {
+ continue;
+ }
+ if ($ch == ORD_z && $state == 0) {
+ $out .= chr(0).chr(0).chr(0).chr(0);
+ continue;
+ }
+ if ($ch < ORD_exclmark || $ch > ORD_u) {
+ $this->fpdi->error("Illegal character in ASCII85Decode.");
+ }
+
+ $chn[$state++] = $ch - ORD_exclmark;
+
+ if ($state == 5) {
+ $state = 0;
+ $r = 0;
+ for ($j = 0; $j < 5; ++$j)
+ $r = $r * 85 + $chn[$j];
+ $out .= chr($r >> 24);
+ $out .= chr($r >> 16);
+ $out .= chr($r >> 8);
+ $out .= chr($r);
+ }
+ }
+ $r = 0;
+
+ if ($state == 1)
+ $this->fpdi->error("Illegal length in ASCII85Decode.");
+ if ($state == 2) {
+ $r = $chn[0] * 85 * 85 * 85 * 85 + ($chn[1]+1) * 85 * 85 * 85;
+ $out .= chr($r >> 24);
+ }
+ else if ($state == 3) {
+ $r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + ($chn[2]+1) * 85 * 85;
+ $out .= chr($r >> 24);
+ $out .= chr($r >> 16);
+ }
+ else if ($state == 4) {
+ $r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + $chn[2] * 85 * 85 + ($chn[3]+1) * 85 ;
+ $out .= chr($r >> 24);
+ $out .= chr($r >> 16);
+ $out .= chr($r >> 8);
+ }
+
+ return $out;
+ }
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+class LZWDecode {
+
+ var $sTable = array();
+ var $data = null;
+ var $tIdx;
+ var $bitsToGet = 9;
+ var $bytePointer;
+ var $bitPointer;
+ var $nextData = 0;
+ var $nextBits = 0;
+ var $andTable = array(511, 1023, 2047, 4095);
+
+ function LZWDecode(&$fpdi) {
+ $this->fpdi =& $fpdi;
+ }
+
+ /**
+ * Method to decode LZW compressed data.
+ *
+ * @param string data The compressed data.
+ */
+ function decode(&$data) {
+
+ if($data[0] == 0x00 && $data[1] == 0x01) {
+ $this->fpdi->error("LZW flavour not supported.");
+ }
+
+ $this->initsTable();
+
+ $this->data =& $data;
+
+ // Initialize pointers
+ $this->bytePointer = 0;
+ $this->bitPointer = 0;
+
+ $this->nextData = 0;
+ $this->nextBits = 0;
+
+ $oldCode = 0;
+
+ $string = "";
+ $uncompData = "";
+
+ while (($code = $this->getNextCode()) != 257) {
+ if ($code == 256) {
+ $this->initsTable();
+ $code = $this->getNextCode();
+
+ if ($code == 257) {
+ break;
+ }
+
+ $uncompData .= $this->sTable[$code];
+ $oldCode = $code;
+
+ } else {
+
+ if ($code < $this->tIdx) {
+ $string = $this->sTable[$code];
+ $uncompData .= $string;
+
+ $this->addStringToTable($this->sTable[$oldCode], $string[0]);
+ $oldCode = $code;
+ } else {
+ $string = $this->sTable[$oldCode];
+ $string = $string.$string[0];
+ $uncompData .= $string;
+
+ $this->addStringToTable($string);
+ $oldCode = $code;
+ }
+ }
+ }
+
+ return $uncompData;
+ }
+
+
+ /**
+ * Initialize the string table.
+ */
+ function initsTable() {
+ $this->sTable = array();
+
+ for ($i = 0; $i < 256; $i++)
+ $this->sTable[$i] = chr($i);
+
+ $this->tIdx = 258;
+ $this->bitsToGet = 9;
+ }
+
+ /**
+ * Add a new string to the string table.
+ */
+ function addStringToTable ($oldString, $newString="") {
+ $string = $oldString.$newString;
+
+ // Add this new String to the table
+ $this->sTable[$this->tIdx++] = $string;
+
+ if ($this->tIdx == 511) {
+ $this->bitsToGet = 10;
+ } else if ($this->tIdx == 1023) {
+ $this->bitsToGet = 11;
+ } else if ($this->tIdx == 2047) {
+ $this->bitsToGet = 12;
+ }
+ }
+
+ // Returns the next 9, 10, 11 or 12 bits
+ function getNextCode() {
+ if ($this->bytePointer == strlen($this->data))
+ return 257;
+
+ $this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
+ $this->nextBits += 8;
+
+ if ($this->nextBits < $this->bitsToGet) {
+ $this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
+ $this->nextBits += 8;
+ }
+
+ $code = ($this->nextData >> ($this->nextBits - $this->bitsToGet)) & $this->andTable[$this->bitsToGet-9];
+ $this->nextBits -= $this->bitsToGet;
+
+ return $code;
+ }
+}
+
+
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+for($i=0;$i<=255;$i++)
+ $fpdf_charwidths['courier'][chr($i)]=600;
+$fpdf_charwidths['courierB']=$fpdf_charwidths['courier'];
+$fpdf_charwidths['courierI']=$fpdf_charwidths['courier'];
+$fpdf_charwidths['courierBI']=$fpdf_charwidths['courier'];
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['helvetica']=array(
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
+ 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
+ chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
+ chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['helveticaB']=array(
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
+ 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
+ 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
+ chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
+ chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['helveticaBI']=array(
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
+ 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
+ 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
+ chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
+ chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['helveticaI']=array(
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
+ 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
+ chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
+ chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
+?>
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!89 U+2030 perthousand
+!8A U+0160 Scaron
+!8B U+2039 guilsinglleft
+!8C U+015A Sacute
+!8D U+0164 Tcaron
+!8E U+017D Zcaron
+!8F U+0179 Zacute
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9A U+0161 scaron
+!9B U+203A guilsinglright
+!9C U+015B sacute
+!9D U+0165 tcaron
+!9E U+017E zcaron
+!9F U+017A zacute
+!A0 U+00A0 space
+!A1 U+02C7 caron
+!A2 U+02D8 breve
+!A3 U+0141 Lslash
+!A4 U+00A4 currency
+!A5 U+0104 Aogonek
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+015E Scedilla
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+017B Zdotaccent
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+02DB ogonek
+!B3 U+0142 lslash
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+0105 aogonek
+!BA U+015F scedilla
+!BB U+00BB guillemotright
+!BC U+013D Lcaron
+!BD U+02DD hungarumlaut
+!BE U+013E lcaron
+!BF U+017C zdotaccent
+!C0 U+0154 Racute
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+0102 Abreve
+!C4 U+00C4 Adieresis
+!C5 U+0139 Lacute
+!C6 U+0106 Cacute
+!C7 U+00C7 Ccedilla
+!C8 U+010C Ccaron
+!C9 U+00C9 Eacute
+!CA U+0118 Eogonek
+!CB U+00CB Edieresis
+!CC U+011A Ecaron
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+010E Dcaron
+!D0 U+0110 Dcroat
+!D1 U+0143 Nacute
+!D2 U+0147 Ncaron
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+0150 Ohungarumlaut
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+0158 Rcaron
+!D9 U+016E Uring
+!DA U+00DA Uacute
+!DB U+0170 Uhungarumlaut
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+0162 Tcommaaccent
+!DF U+00DF germandbls
+!E0 U+0155 racute
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+0103 abreve
+!E4 U+00E4 adieresis
+!E5 U+013A lacute
+!E6 U+0107 cacute
+!E7 U+00E7 ccedilla
+!E8 U+010D ccaron
+!E9 U+00E9 eacute
+!EA U+0119 eogonek
+!EB U+00EB edieresis
+!EC U+011B ecaron
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+010F dcaron
+!F0 U+0111 dcroat
+!F1 U+0144 nacute
+!F2 U+0148 ncaron
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+0151 ohungarumlaut
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+0159 rcaron
+!F9 U+016F uring
+!FA U+00FA uacute
+!FB U+0171 uhungarumlaut
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+0163 tcommaaccent
+!FF U+02D9 dotaccent
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0402 afii10051
+!81 U+0403 afii10052
+!82 U+201A quotesinglbase
+!83 U+0453 afii10100
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+20AC Euro
+!89 U+2030 perthousand
+!8A U+0409 afii10058
+!8B U+2039 guilsinglleft
+!8C U+040A afii10059
+!8D U+040C afii10061
+!8E U+040B afii10060
+!8F U+040F afii10145
+!90 U+0452 afii10099
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9A U+0459 afii10106
+!9B U+203A guilsinglright
+!9C U+045A afii10107
+!9D U+045C afii10109
+!9E U+045B afii10108
+!9F U+045F afii10193
+!A0 U+00A0 space
+!A1 U+040E afii10062
+!A2 U+045E afii10110
+!A3 U+0408 afii10057
+!A4 U+00A4 currency
+!A5 U+0490 afii10050
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+0401 afii10023
+!A9 U+00A9 copyright
+!AA U+0404 afii10053
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+0407 afii10056
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+0406 afii10055
+!B3 U+0456 afii10103
+!B4 U+0491 afii10098
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+0451 afii10071
+!B9 U+2116 afii61352
+!BA U+0454 afii10101
+!BB U+00BB guillemotright
+!BC U+0458 afii10105
+!BD U+0405 afii10054
+!BE U+0455 afii10102
+!BF U+0457 afii10104
+!C0 U+0410 afii10017
+!C1 U+0411 afii10018
+!C2 U+0412 afii10019
+!C3 U+0413 afii10020
+!C4 U+0414 afii10021
+!C5 U+0415 afii10022
+!C6 U+0416 afii10024
+!C7 U+0417 afii10025
+!C8 U+0418 afii10026
+!C9 U+0419 afii10027
+!CA U+041A afii10028
+!CB U+041B afii10029
+!CC U+041C afii10030
+!CD U+041D afii10031
+!CE U+041E afii10032
+!CF U+041F afii10033
+!D0 U+0420 afii10034
+!D1 U+0421 afii10035
+!D2 U+0422 afii10036
+!D3 U+0423 afii10037
+!D4 U+0424 afii10038
+!D5 U+0425 afii10039
+!D6 U+0426 afii10040
+!D7 U+0427 afii10041
+!D8 U+0428 afii10042
+!D9 U+0429 afii10043
+!DA U+042A afii10044
+!DB U+042B afii10045
+!DC U+042C afii10046
+!DD U+042D afii10047
+!DE U+042E afii10048
+!DF U+042F afii10049
+!E0 U+0430 afii10065
+!E1 U+0431 afii10066
+!E2 U+0432 afii10067
+!E3 U+0433 afii10068
+!E4 U+0434 afii10069
+!E5 U+0435 afii10070
+!E6 U+0436 afii10072
+!E7 U+0437 afii10073
+!E8 U+0438 afii10074
+!E9 U+0439 afii10075
+!EA U+043A afii10076
+!EB U+043B afii10077
+!EC U+043C afii10078
+!ED U+043D afii10079
+!EE U+043E afii10080
+!EF U+043F afii10081
+!F0 U+0440 afii10082
+!F1 U+0441 afii10083
+!F2 U+0442 afii10084
+!F3 U+0443 afii10085
+!F4 U+0444 afii10086
+!F5 U+0445 afii10087
+!F6 U+0446 afii10088
+!F7 U+0447 afii10089
+!F8 U+0448 afii10090
+!F9 U+0449 afii10091
+!FA U+044A afii10092
+!FB U+044B afii10093
+!FC U+044C afii10094
+!FD U+044D afii10095
+!FE U+044E afii10096
+!FF U+044F afii10097
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!83 U+0192 florin
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+02C6 circumflex
+!89 U+2030 perthousand
+!8A U+0160 Scaron
+!8B U+2039 guilsinglleft
+!8C U+0152 OE
+!8E U+017D Zcaron
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!98 U+02DC tilde
+!99 U+2122 trademark
+!9A U+0161 scaron
+!9B U+203A guilsinglright
+!9C U+0153 oe
+!9E U+017E zcaron
+!9F U+0178 Ydieresis
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+00D0 Eth
+!D1 U+00D1 Ntilde
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+00DE Thorn
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+00F0 eth
+!F1 U+00F1 ntilde
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+00FE thorn
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!83 U+0192 florin
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!89 U+2030 perthousand
+!8B U+2039 guilsinglleft
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9B U+203A guilsinglright
+!A0 U+00A0 space
+!A1 U+0385 dieresistonos
+!A2 U+0386 Alphatonos
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+2015 afii00208
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+0384 tonos
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+0388 Epsilontonos
+!B9 U+0389 Etatonos
+!BA U+038A Iotatonos
+!BB U+00BB guillemotright
+!BC U+038C Omicrontonos
+!BD U+00BD onehalf
+!BE U+038E Upsilontonos
+!BF U+038F Omegatonos
+!C0 U+0390 iotadieresistonos
+!C1 U+0391 Alpha
+!C2 U+0392 Beta
+!C3 U+0393 Gamma
+!C4 U+0394 Delta
+!C5 U+0395 Epsilon
+!C6 U+0396 Zeta
+!C7 U+0397 Eta
+!C8 U+0398 Theta
+!C9 U+0399 Iota
+!CA U+039A Kappa
+!CB U+039B Lambda
+!CC U+039C Mu
+!CD U+039D Nu
+!CE U+039E Xi
+!CF U+039F Omicron
+!D0 U+03A0 Pi
+!D1 U+03A1 Rho
+!D3 U+03A3 Sigma
+!D4 U+03A4 Tau
+!D5 U+03A5 Upsilon
+!D6 U+03A6 Phi
+!D7 U+03A7 Chi
+!D8 U+03A8 Psi
+!D9 U+03A9 Omega
+!DA U+03AA Iotadieresis
+!DB U+03AB Upsilondieresis
+!DC U+03AC alphatonos
+!DD U+03AD epsilontonos
+!DE U+03AE etatonos
+!DF U+03AF iotatonos
+!E0 U+03B0 upsilondieresistonos
+!E1 U+03B1 alpha
+!E2 U+03B2 beta
+!E3 U+03B3 gamma
+!E4 U+03B4 delta
+!E5 U+03B5 epsilon
+!E6 U+03B6 zeta
+!E7 U+03B7 eta
+!E8 U+03B8 theta
+!E9 U+03B9 iota
+!EA U+03BA kappa
+!EB U+03BB lambda
+!EC U+03BC mu
+!ED U+03BD nu
+!EE U+03BE xi
+!EF U+03BF omicron
+!F0 U+03C0 pi
+!F1 U+03C1 rho
+!F2 U+03C2 sigma1
+!F3 U+03C3 sigma
+!F4 U+03C4 tau
+!F5 U+03C5 upsilon
+!F6 U+03C6 phi
+!F7 U+03C7 chi
+!F8 U+03C8 psi
+!F9 U+03C9 omega
+!FA U+03CA iotadieresis
+!FB U+03CB upsilondieresis
+!FC U+03CC omicrontonos
+!FD U+03CD upsilontonos
+!FE U+03CE omegatonos
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!83 U+0192 florin
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+02C6 circumflex
+!89 U+2030 perthousand
+!8A U+0160 Scaron
+!8B U+2039 guilsinglleft
+!8C U+0152 OE
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!98 U+02DC tilde
+!99 U+2122 trademark
+!9A U+0161 scaron
+!9B U+203A guilsinglright
+!9C U+0153 oe
+!9F U+0178 Ydieresis
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+011E Gbreve
+!D1 U+00D1 Ntilde
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+0130 Idotaccent
+!DE U+015E Scedilla
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+011F gbreve
+!F1 U+00F1 ntilde
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+0131 dotlessi
+!FE U+015F scedilla
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!83 U+0192 florin
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+02C6 circumflex
+!89 U+2030 perthousand
+!8B U+2039 guilsinglleft
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!98 U+02DC tilde
+!99 U+2122 trademark
+!9B U+203A guilsinglright
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+20AA afii57636
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00D7 multiply
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD sfthyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 middot
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00F7 divide
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+05B0 afii57799
+!C1 U+05B1 afii57801
+!C2 U+05B2 afii57800
+!C3 U+05B3 afii57802
+!C4 U+05B4 afii57793
+!C5 U+05B5 afii57794
+!C6 U+05B6 afii57795
+!C7 U+05B7 afii57798
+!C8 U+05B8 afii57797
+!C9 U+05B9 afii57806
+!CB U+05BB afii57796
+!CC U+05BC afii57807
+!CD U+05BD afii57839
+!CE U+05BE afii57645
+!CF U+05BF afii57841
+!D0 U+05C0 afii57842
+!D1 U+05C1 afii57804
+!D2 U+05C2 afii57803
+!D3 U+05C3 afii57658
+!D4 U+05F0 afii57716
+!D5 U+05F1 afii57717
+!D6 U+05F2 afii57718
+!D7 U+05F3 gereshhebrew
+!D8 U+05F4 gershayimhebrew
+!E0 U+05D0 afii57664
+!E1 U+05D1 afii57665
+!E2 U+05D2 afii57666
+!E3 U+05D3 afii57667
+!E4 U+05D4 afii57668
+!E5 U+05D5 afii57669
+!E6 U+05D6 afii57670
+!E7 U+05D7 afii57671
+!E8 U+05D8 afii57672
+!E9 U+05D9 afii57673
+!EA U+05DA afii57674
+!EB U+05DB afii57675
+!EC U+05DC afii57676
+!ED U+05DD afii57677
+!EE U+05DE afii57678
+!EF U+05DF afii57679
+!F0 U+05E0 afii57680
+!F1 U+05E1 afii57681
+!F2 U+05E2 afii57682
+!F3 U+05E3 afii57683
+!F4 U+05E4 afii57684
+!F5 U+05E5 afii57685
+!F6 U+05E6 afii57686
+!F7 U+05E7 afii57687
+!F8 U+05E8 afii57688
+!F9 U+05E9 afii57689
+!FA U+05EA afii57690
+!FD U+200E afii299
+!FE U+200F afii300
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!89 U+2030 perthousand
+!8B U+2039 guilsinglleft
+!8D U+00A8 dieresis
+!8E U+02C7 caron
+!8F U+00B8 cedilla
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9B U+203A guilsinglright
+!9D U+00AF macron
+!9E U+02DB ogonek
+!A0 U+00A0 space
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00D8 Oslash
+!A9 U+00A9 copyright
+!AA U+0156 Rcommaaccent
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00C6 AE
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00F8 oslash
+!B9 U+00B9 onesuperior
+!BA U+0157 rcommaaccent
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00E6 ae
+!C0 U+0104 Aogonek
+!C1 U+012E Iogonek
+!C2 U+0100 Amacron
+!C3 U+0106 Cacute
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+0118 Eogonek
+!C7 U+0112 Emacron
+!C8 U+010C Ccaron
+!C9 U+00C9 Eacute
+!CA U+0179 Zacute
+!CB U+0116 Edotaccent
+!CC U+0122 Gcommaaccent
+!CD U+0136 Kcommaaccent
+!CE U+012A Imacron
+!CF U+013B Lcommaaccent
+!D0 U+0160 Scaron
+!D1 U+0143 Nacute
+!D2 U+0145 Ncommaaccent
+!D3 U+00D3 Oacute
+!D4 U+014C Omacron
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+0172 Uogonek
+!D9 U+0141 Lslash
+!DA U+015A Sacute
+!DB U+016A Umacron
+!DC U+00DC Udieresis
+!DD U+017B Zdotaccent
+!DE U+017D Zcaron
+!DF U+00DF germandbls
+!E0 U+0105 aogonek
+!E1 U+012F iogonek
+!E2 U+0101 amacron
+!E3 U+0107 cacute
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+0119 eogonek
+!E7 U+0113 emacron
+!E8 U+010D ccaron
+!E9 U+00E9 eacute
+!EA U+017A zacute
+!EB U+0117 edotaccent
+!EC U+0123 gcommaaccent
+!ED U+0137 kcommaaccent
+!EE U+012B imacron
+!EF U+013C lcommaaccent
+!F0 U+0161 scaron
+!F1 U+0144 nacute
+!F2 U+0146 ncommaaccent
+!F3 U+00F3 oacute
+!F4 U+014D omacron
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+0173 uogonek
+!F9 U+0142 lslash
+!FA U+015B sacute
+!FB U+016B umacron
+!FC U+00FC udieresis
+!FD U+017C zdotaccent
+!FE U+017E zcaron
+!FF U+02D9 dotaccent
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!83 U+0192 florin
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+02C6 circumflex
+!89 U+2030 perthousand
+!8B U+2039 guilsinglleft
+!8C U+0152 OE
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!98 U+02DC tilde
+!99 U+2122 trademark
+!9B U+203A guilsinglright
+!9C U+0153 oe
+!9F U+0178 Ydieresis
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+0102 Abreve
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+0300 gravecomb
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+0110 Dcroat
+!D1 U+00D1 Ntilde
+!D2 U+0309 hookabovecomb
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+01A0 Ohorn
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+01AF Uhorn
+!DE U+0303 tildecomb
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+0103 abreve
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+0301 acutecomb
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+0111 dcroat
+!F1 U+00F1 ntilde
+!F2 U+0323 dotbelowcomb
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+01A1 ohorn
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+01B0 uhorn
+!FE U+20AB dong
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!85 U+2026 ellipsis
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!A0 U+00A0 space
+!A1 U+0E01 kokaithai
+!A2 U+0E02 khokhaithai
+!A3 U+0E03 khokhuatthai
+!A4 U+0E04 khokhwaithai
+!A5 U+0E05 khokhonthai
+!A6 U+0E06 khorakhangthai
+!A7 U+0E07 ngonguthai
+!A8 U+0E08 chochanthai
+!A9 U+0E09 chochingthai
+!AA U+0E0A chochangthai
+!AB U+0E0B sosothai
+!AC U+0E0C chochoethai
+!AD U+0E0D yoyingthai
+!AE U+0E0E dochadathai
+!AF U+0E0F topatakthai
+!B0 U+0E10 thothanthai
+!B1 U+0E11 thonangmonthothai
+!B2 U+0E12 thophuthaothai
+!B3 U+0E13 nonenthai
+!B4 U+0E14 dodekthai
+!B5 U+0E15 totaothai
+!B6 U+0E16 thothungthai
+!B7 U+0E17 thothahanthai
+!B8 U+0E18 thothongthai
+!B9 U+0E19 nonuthai
+!BA U+0E1A bobaimaithai
+!BB U+0E1B poplathai
+!BC U+0E1C phophungthai
+!BD U+0E1D fofathai
+!BE U+0E1E phophanthai
+!BF U+0E1F fofanthai
+!C0 U+0E20 phosamphaothai
+!C1 U+0E21 momathai
+!C2 U+0E22 yoyakthai
+!C3 U+0E23 roruathai
+!C4 U+0E24 ruthai
+!C5 U+0E25 lolingthai
+!C6 U+0E26 luthai
+!C7 U+0E27 wowaenthai
+!C8 U+0E28 sosalathai
+!C9 U+0E29 sorusithai
+!CA U+0E2A sosuathai
+!CB U+0E2B hohipthai
+!CC U+0E2C lochulathai
+!CD U+0E2D oangthai
+!CE U+0E2E honokhukthai
+!CF U+0E2F paiyannoithai
+!D0 U+0E30 saraathai
+!D1 U+0E31 maihanakatthai
+!D2 U+0E32 saraaathai
+!D3 U+0E33 saraamthai
+!D4 U+0E34 saraithai
+!D5 U+0E35 saraiithai
+!D6 U+0E36 sarauethai
+!D7 U+0E37 saraueethai
+!D8 U+0E38 sarauthai
+!D9 U+0E39 sarauuthai
+!DA U+0E3A phinthuthai
+!DF U+0E3F bahtthai
+!E0 U+0E40 saraethai
+!E1 U+0E41 saraaethai
+!E2 U+0E42 saraothai
+!E3 U+0E43 saraaimaimuanthai
+!E4 U+0E44 saraaimaimalaithai
+!E5 U+0E45 lakkhangyaothai
+!E6 U+0E46 maiyamokthai
+!E7 U+0E47 maitaikhuthai
+!E8 U+0E48 maiekthai
+!E9 U+0E49 maithothai
+!EA U+0E4A maitrithai
+!EB U+0E4B maichattawathai
+!EC U+0E4C thanthakhatthai
+!ED U+0E4D nikhahitthai
+!EE U+0E4E yamakkanthai
+!EF U+0E4F fongmanthai
+!F0 U+0E50 zerothai
+!F1 U+0E51 onethai
+!F2 U+0E52 twothai
+!F3 U+0E53 threethai
+!F4 U+0E54 fourthai
+!F5 U+0E55 fivethai
+!F6 U+0E56 sixthai
+!F7 U+0E57 seventhai
+!F8 U+0E58 eightthai
+!F9 U+0E59 ninethai
+!FA U+0E5A angkhankhuthai
+!FB U+0E5B khomutthai
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+00D0 Eth
+!D1 U+00D1 Ntilde
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+00DE Thorn
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+00F0 eth
+!F1 U+00F1 ntilde
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+00FE thorn
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+0E01 kokaithai
+!A2 U+0E02 khokhaithai
+!A3 U+0E03 khokhuatthai
+!A4 U+0E04 khokhwaithai
+!A5 U+0E05 khokhonthai
+!A6 U+0E06 khorakhangthai
+!A7 U+0E07 ngonguthai
+!A8 U+0E08 chochanthai
+!A9 U+0E09 chochingthai
+!AA U+0E0A chochangthai
+!AB U+0E0B sosothai
+!AC U+0E0C chochoethai
+!AD U+0E0D yoyingthai
+!AE U+0E0E dochadathai
+!AF U+0E0F topatakthai
+!B0 U+0E10 thothanthai
+!B1 U+0E11 thonangmonthothai
+!B2 U+0E12 thophuthaothai
+!B3 U+0E13 nonenthai
+!B4 U+0E14 dodekthai
+!B5 U+0E15 totaothai
+!B6 U+0E16 thothungthai
+!B7 U+0E17 thothahanthai
+!B8 U+0E18 thothongthai
+!B9 U+0E19 nonuthai
+!BA U+0E1A bobaimaithai
+!BB U+0E1B poplathai
+!BC U+0E1C phophungthai
+!BD U+0E1D fofathai
+!BE U+0E1E phophanthai
+!BF U+0E1F fofanthai
+!C0 U+0E20 phosamphaothai
+!C1 U+0E21 momathai
+!C2 U+0E22 yoyakthai
+!C3 U+0E23 roruathai
+!C4 U+0E24 ruthai
+!C5 U+0E25 lolingthai
+!C6 U+0E26 luthai
+!C7 U+0E27 wowaenthai
+!C8 U+0E28 sosalathai
+!C9 U+0E29 sorusithai
+!CA U+0E2A sosuathai
+!CB U+0E2B hohipthai
+!CC U+0E2C lochulathai
+!CD U+0E2D oangthai
+!CE U+0E2E honokhukthai
+!CF U+0E2F paiyannoithai
+!D0 U+0E30 saraathai
+!D1 U+0E31 maihanakatthai
+!D2 U+0E32 saraaathai
+!D3 U+0E33 saraamthai
+!D4 U+0E34 saraithai
+!D5 U+0E35 saraiithai
+!D6 U+0E36 sarauethai
+!D7 U+0E37 saraueethai
+!D8 U+0E38 sarauthai
+!D9 U+0E39 sarauuthai
+!DA U+0E3A phinthuthai
+!DF U+0E3F bahtthai
+!E0 U+0E40 saraethai
+!E1 U+0E41 saraaethai
+!E2 U+0E42 saraothai
+!E3 U+0E43 saraaimaimuanthai
+!E4 U+0E44 saraaimaimalaithai
+!E5 U+0E45 lakkhangyaothai
+!E6 U+0E46 maiyamokthai
+!E7 U+0E47 maitaikhuthai
+!E8 U+0E48 maiekthai
+!E9 U+0E49 maithothai
+!EA U+0E4A maitrithai
+!EB U+0E4B maichattawathai
+!EC U+0E4C thanthakhatthai
+!ED U+0E4D nikhahitthai
+!EE U+0E4E yamakkanthai
+!EF U+0E4F fongmanthai
+!F0 U+0E50 zerothai
+!F1 U+0E51 onethai
+!F2 U+0E52 twothai
+!F3 U+0E53 threethai
+!F4 U+0E54 fourthai
+!F5 U+0E55 fivethai
+!F6 U+0E56 sixthai
+!F7 U+0E57 seventhai
+!F8 U+0E58 eightthai
+!F9 U+0E59 ninethai
+!FA U+0E5A angkhankhuthai
+!FB U+0E5B khomutthai
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+20AC Euro
+!A5 U+00A5 yen
+!A6 U+0160 Scaron
+!A7 U+00A7 section
+!A8 U+0161 scaron
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+017D Zcaron
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+017E zcaron
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+0152 OE
+!BD U+0153 oe
+!BE U+0178 Ydieresis
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+00D0 Eth
+!D1 U+00D1 Ntilde
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+00DE Thorn
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+00F0 eth
+!F1 U+00F1 ntilde
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+00FE thorn
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+0104 Aogonek
+!A2 U+0105 aogonek
+!A3 U+0141 Lslash
+!A4 U+20AC Euro
+!A5 U+201E quotedblbase
+!A6 U+0160 Scaron
+!A7 U+00A7 section
+!A8 U+0161 scaron
+!A9 U+00A9 copyright
+!AA U+0218 Scommaaccent
+!AB U+00AB guillemotleft
+!AC U+0179 Zacute
+!AD U+00AD hyphen
+!AE U+017A zacute
+!AF U+017B Zdotaccent
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+010C Ccaron
+!B3 U+0142 lslash
+!B4 U+017D Zcaron
+!B5 U+201D quotedblright
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+017E zcaron
+!B9 U+010D ccaron
+!BA U+0219 scommaaccent
+!BB U+00BB guillemotright
+!BC U+0152 OE
+!BD U+0153 oe
+!BE U+0178 Ydieresis
+!BF U+017C zdotaccent
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+0102 Abreve
+!C4 U+00C4 Adieresis
+!C5 U+0106 Cacute
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+0110 Dcroat
+!D1 U+0143 Nacute
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+0150 Ohungarumlaut
+!D6 U+00D6 Odieresis
+!D7 U+015A Sacute
+!D8 U+0170 Uhungarumlaut
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+0118 Eogonek
+!DE U+021A Tcommaaccent
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+0103 abreve
+!E4 U+00E4 adieresis
+!E5 U+0107 cacute
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+0111 dcroat
+!F1 U+0144 nacute
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+0151 ohungarumlaut
+!F6 U+00F6 odieresis
+!F7 U+015B sacute
+!F8 U+0171 uhungarumlaut
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+0119 eogonek
+!FE U+021B tcommaaccent
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+0104 Aogonek
+!A2 U+02D8 breve
+!A3 U+0141 Lslash
+!A4 U+00A4 currency
+!A5 U+013D Lcaron
+!A6 U+015A Sacute
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+0160 Scaron
+!AA U+015E Scedilla
+!AB U+0164 Tcaron
+!AC U+0179 Zacute
+!AD U+00AD hyphen
+!AE U+017D Zcaron
+!AF U+017B Zdotaccent
+!B0 U+00B0 degree
+!B1 U+0105 aogonek
+!B2 U+02DB ogonek
+!B3 U+0142 lslash
+!B4 U+00B4 acute
+!B5 U+013E lcaron
+!B6 U+015B sacute
+!B7 U+02C7 caron
+!B8 U+00B8 cedilla
+!B9 U+0161 scaron
+!BA U+015F scedilla
+!BB U+0165 tcaron
+!BC U+017A zacute
+!BD U+02DD hungarumlaut
+!BE U+017E zcaron
+!BF U+017C zdotaccent
+!C0 U+0154 Racute
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+0102 Abreve
+!C4 U+00C4 Adieresis
+!C5 U+0139 Lacute
+!C6 U+0106 Cacute
+!C7 U+00C7 Ccedilla
+!C8 U+010C Ccaron
+!C9 U+00C9 Eacute
+!CA U+0118 Eogonek
+!CB U+00CB Edieresis
+!CC U+011A Ecaron
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+010E Dcaron
+!D0 U+0110 Dcroat
+!D1 U+0143 Nacute
+!D2 U+0147 Ncaron
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+0150 Ohungarumlaut
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+0158 Rcaron
+!D9 U+016E Uring
+!DA U+00DA Uacute
+!DB U+0170 Uhungarumlaut
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+0162 Tcommaaccent
+!DF U+00DF germandbls
+!E0 U+0155 racute
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+0103 abreve
+!E4 U+00E4 adieresis
+!E5 U+013A lacute
+!E6 U+0107 cacute
+!E7 U+00E7 ccedilla
+!E8 U+010D ccaron
+!E9 U+00E9 eacute
+!EA U+0119 eogonek
+!EB U+00EB edieresis
+!EC U+011B ecaron
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+010F dcaron
+!F0 U+0111 dcroat
+!F1 U+0144 nacute
+!F2 U+0148 ncaron
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+0151 ohungarumlaut
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+0159 rcaron
+!F9 U+016F uring
+!FA U+00FA uacute
+!FB U+0171 uhungarumlaut
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+0163 tcommaaccent
+!FF U+02D9 dotaccent
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+0104 Aogonek
+!A2 U+0138 kgreenlandic
+!A3 U+0156 Rcommaaccent
+!A4 U+00A4 currency
+!A5 U+0128 Itilde
+!A6 U+013B Lcommaaccent
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+0160 Scaron
+!AA U+0112 Emacron
+!AB U+0122 Gcommaaccent
+!AC U+0166 Tbar
+!AD U+00AD hyphen
+!AE U+017D Zcaron
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+0105 aogonek
+!B2 U+02DB ogonek
+!B3 U+0157 rcommaaccent
+!B4 U+00B4 acute
+!B5 U+0129 itilde
+!B6 U+013C lcommaaccent
+!B7 U+02C7 caron
+!B8 U+00B8 cedilla
+!B9 U+0161 scaron
+!BA U+0113 emacron
+!BB U+0123 gcommaaccent
+!BC U+0167 tbar
+!BD U+014A Eng
+!BE U+017E zcaron
+!BF U+014B eng
+!C0 U+0100 Amacron
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+012E Iogonek
+!C8 U+010C Ccaron
+!C9 U+00C9 Eacute
+!CA U+0118 Eogonek
+!CB U+00CB Edieresis
+!CC U+0116 Edotaccent
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+012A Imacron
+!D0 U+0110 Dcroat
+!D1 U+0145 Ncommaaccent
+!D2 U+014C Omacron
+!D3 U+0136 Kcommaaccent
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+0172 Uogonek
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+0168 Utilde
+!DE U+016A Umacron
+!DF U+00DF germandbls
+!E0 U+0101 amacron
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+012F iogonek
+!E8 U+010D ccaron
+!E9 U+00E9 eacute
+!EA U+0119 eogonek
+!EB U+00EB edieresis
+!EC U+0117 edotaccent
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+012B imacron
+!F0 U+0111 dcroat
+!F1 U+0146 ncommaaccent
+!F2 U+014D omacron
+!F3 U+0137 kcommaaccent
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+0173 uogonek
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+0169 utilde
+!FE U+016B umacron
+!FF U+02D9 dotaccent
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+0401 afii10023
+!A2 U+0402 afii10051
+!A3 U+0403 afii10052
+!A4 U+0404 afii10053
+!A5 U+0405 afii10054
+!A6 U+0406 afii10055
+!A7 U+0407 afii10056
+!A8 U+0408 afii10057
+!A9 U+0409 afii10058
+!AA U+040A afii10059
+!AB U+040B afii10060
+!AC U+040C afii10061
+!AD U+00AD hyphen
+!AE U+040E afii10062
+!AF U+040F afii10145
+!B0 U+0410 afii10017
+!B1 U+0411 afii10018
+!B2 U+0412 afii10019
+!B3 U+0413 afii10020
+!B4 U+0414 afii10021
+!B5 U+0415 afii10022
+!B6 U+0416 afii10024
+!B7 U+0417 afii10025
+!B8 U+0418 afii10026
+!B9 U+0419 afii10027
+!BA U+041A afii10028
+!BB U+041B afii10029
+!BC U+041C afii10030
+!BD U+041D afii10031
+!BE U+041E afii10032
+!BF U+041F afii10033
+!C0 U+0420 afii10034
+!C1 U+0421 afii10035
+!C2 U+0422 afii10036
+!C3 U+0423 afii10037
+!C4 U+0424 afii10038
+!C5 U+0425 afii10039
+!C6 U+0426 afii10040
+!C7 U+0427 afii10041
+!C8 U+0428 afii10042
+!C9 U+0429 afii10043
+!CA U+042A afii10044
+!CB U+042B afii10045
+!CC U+042C afii10046
+!CD U+042D afii10047
+!CE U+042E afii10048
+!CF U+042F afii10049
+!D0 U+0430 afii10065
+!D1 U+0431 afii10066
+!D2 U+0432 afii10067
+!D3 U+0433 afii10068
+!D4 U+0434 afii10069
+!D5 U+0435 afii10070
+!D6 U+0436 afii10072
+!D7 U+0437 afii10073
+!D8 U+0438 afii10074
+!D9 U+0439 afii10075
+!DA U+043A afii10076
+!DB U+043B afii10077
+!DC U+043C afii10078
+!DD U+043D afii10079
+!DE U+043E afii10080
+!DF U+043F afii10081
+!E0 U+0440 afii10082
+!E1 U+0441 afii10083
+!E2 U+0442 afii10084
+!E3 U+0443 afii10085
+!E4 U+0444 afii10086
+!E5 U+0445 afii10087
+!E6 U+0446 afii10088
+!E7 U+0447 afii10089
+!E8 U+0448 afii10090
+!E9 U+0449 afii10091
+!EA U+044A afii10092
+!EB U+044B afii10093
+!EC U+044C afii10094
+!ED U+044D afii10095
+!EE U+044E afii10096
+!EF U+044F afii10097
+!F0 U+2116 afii61352
+!F1 U+0451 afii10071
+!F2 U+0452 afii10099
+!F3 U+0453 afii10100
+!F4 U+0454 afii10101
+!F5 U+0455 afii10102
+!F6 U+0456 afii10103
+!F7 U+0457 afii10104
+!F8 U+0458 afii10105
+!F9 U+0459 afii10106
+!FA U+045A afii10107
+!FB U+045B afii10108
+!FC U+045C afii10109
+!FD U+00A7 section
+!FE U+045E afii10110
+!FF U+045F afii10193
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+2018 quoteleft
+!A2 U+2019 quoteright
+!A3 U+00A3 sterling
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AF U+2015 afii00208
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+0384 tonos
+!B5 U+0385 dieresistonos
+!B6 U+0386 Alphatonos
+!B7 U+00B7 periodcentered
+!B8 U+0388 Epsilontonos
+!B9 U+0389 Etatonos
+!BA U+038A Iotatonos
+!BB U+00BB guillemotright
+!BC U+038C Omicrontonos
+!BD U+00BD onehalf
+!BE U+038E Upsilontonos
+!BF U+038F Omegatonos
+!C0 U+0390 iotadieresistonos
+!C1 U+0391 Alpha
+!C2 U+0392 Beta
+!C3 U+0393 Gamma
+!C4 U+0394 Delta
+!C5 U+0395 Epsilon
+!C6 U+0396 Zeta
+!C7 U+0397 Eta
+!C8 U+0398 Theta
+!C9 U+0399 Iota
+!CA U+039A Kappa
+!CB U+039B Lambda
+!CC U+039C Mu
+!CD U+039D Nu
+!CE U+039E Xi
+!CF U+039F Omicron
+!D0 U+03A0 Pi
+!D1 U+03A1 Rho
+!D3 U+03A3 Sigma
+!D4 U+03A4 Tau
+!D5 U+03A5 Upsilon
+!D6 U+03A6 Phi
+!D7 U+03A7 Chi
+!D8 U+03A8 Psi
+!D9 U+03A9 Omega
+!DA U+03AA Iotadieresis
+!DB U+03AB Upsilondieresis
+!DC U+03AC alphatonos
+!DD U+03AD epsilontonos
+!DE U+03AE etatonos
+!DF U+03AF iotatonos
+!E0 U+03B0 upsilondieresistonos
+!E1 U+03B1 alpha
+!E2 U+03B2 beta
+!E3 U+03B3 gamma
+!E4 U+03B4 delta
+!E5 U+03B5 epsilon
+!E6 U+03B6 zeta
+!E7 U+03B7 eta
+!E8 U+03B8 theta
+!E9 U+03B9 iota
+!EA U+03BA kappa
+!EB U+03BB lambda
+!EC U+03BC mu
+!ED U+03BD nu
+!EE U+03BE xi
+!EF U+03BF omicron
+!F0 U+03C0 pi
+!F1 U+03C1 rho
+!F2 U+03C2 sigma1
+!F3 U+03C3 sigma
+!F4 U+03C4 tau
+!F5 U+03C5 upsilon
+!F6 U+03C6 phi
+!F7 U+03C7 chi
+!F8 U+03C8 psi
+!F9 U+03C9 omega
+!FA U+03CA iotadieresis
+!FB U+03CB upsilondieresis
+!FC U+03CC omicrontonos
+!FD U+03CD upsilontonos
+!FE U+03CE omegatonos
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0080 .notdef
+!81 U+0081 .notdef
+!82 U+0082 .notdef
+!83 U+0083 .notdef
+!84 U+0084 .notdef
+!85 U+0085 .notdef
+!86 U+0086 .notdef
+!87 U+0087 .notdef
+!88 U+0088 .notdef
+!89 U+0089 .notdef
+!8A U+008A .notdef
+!8B U+008B .notdef
+!8C U+008C .notdef
+!8D U+008D .notdef
+!8E U+008E .notdef
+!8F U+008F .notdef
+!90 U+0090 .notdef
+!91 U+0091 .notdef
+!92 U+0092 .notdef
+!93 U+0093 .notdef
+!94 U+0094 .notdef
+!95 U+0095 .notdef
+!96 U+0096 .notdef
+!97 U+0097 .notdef
+!98 U+0098 .notdef
+!99 U+0099 .notdef
+!9A U+009A .notdef
+!9B U+009B .notdef
+!9C U+009C .notdef
+!9D U+009D .notdef
+!9E U+009E .notdef
+!9F U+009F .notdef
+!A0 U+00A0 space
+!A1 U+00A1 exclamdown
+!A2 U+00A2 cent
+!A3 U+00A3 sterling
+!A4 U+00A4 currency
+!A5 U+00A5 yen
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+00AA ordfeminine
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+00AF macron
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+00B2 twosuperior
+!B3 U+00B3 threesuperior
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+00B9 onesuperior
+!BA U+00BA ordmasculine
+!BB U+00BB guillemotright
+!BC U+00BC onequarter
+!BD U+00BD onehalf
+!BE U+00BE threequarters
+!BF U+00BF questiondown
+!C0 U+00C0 Agrave
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+00C3 Atilde
+!C4 U+00C4 Adieresis
+!C5 U+00C5 Aring
+!C6 U+00C6 AE
+!C7 U+00C7 Ccedilla
+!C8 U+00C8 Egrave
+!C9 U+00C9 Eacute
+!CA U+00CA Ecircumflex
+!CB U+00CB Edieresis
+!CC U+00CC Igrave
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+00CF Idieresis
+!D0 U+011E Gbreve
+!D1 U+00D1 Ntilde
+!D2 U+00D2 Ograve
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+00D5 Otilde
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+00D8 Oslash
+!D9 U+00D9 Ugrave
+!DA U+00DA Uacute
+!DB U+00DB Ucircumflex
+!DC U+00DC Udieresis
+!DD U+0130 Idotaccent
+!DE U+015E Scedilla
+!DF U+00DF germandbls
+!E0 U+00E0 agrave
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+00E3 atilde
+!E4 U+00E4 adieresis
+!E5 U+00E5 aring
+!E6 U+00E6 ae
+!E7 U+00E7 ccedilla
+!E8 U+00E8 egrave
+!E9 U+00E9 eacute
+!EA U+00EA ecircumflex
+!EB U+00EB edieresis
+!EC U+00EC igrave
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+00EF idieresis
+!F0 U+011F gbreve
+!F1 U+00F1 ntilde
+!F2 U+00F2 ograve
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+00F5 otilde
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+00F8 oslash
+!F9 U+00F9 ugrave
+!FA U+00FA uacute
+!FB U+00FB ucircumflex
+!FC U+00FC udieresis
+!FD U+0131 dotlessi
+!FE U+015F scedilla
+!FF U+00FF ydieresis
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+2500 SF100000
+!81 U+2502 SF110000
+!82 U+250C SF010000
+!83 U+2510 SF030000
+!84 U+2514 SF020000
+!85 U+2518 SF040000
+!86 U+251C SF080000
+!87 U+2524 SF090000
+!88 U+252C SF060000
+!89 U+2534 SF070000
+!8A U+253C SF050000
+!8B U+2580 upblock
+!8C U+2584 dnblock
+!8D U+2588 block
+!8E U+258C lfblock
+!8F U+2590 rtblock
+!90 U+2591 ltshade
+!91 U+2592 shade
+!92 U+2593 dkshade
+!93 U+2320 integraltp
+!94 U+25A0 filledbox
+!95 U+2219 periodcentered
+!96 U+221A radical
+!97 U+2248 approxequal
+!98 U+2264 lessequal
+!99 U+2265 greaterequal
+!9A U+00A0 space
+!9B U+2321 integralbt
+!9C U+00B0 degree
+!9D U+00B2 twosuperior
+!9E U+00B7 periodcentered
+!9F U+00F7 divide
+!A0 U+2550 SF430000
+!A1 U+2551 SF240000
+!A2 U+2552 SF510000
+!A3 U+0451 afii10071
+!A4 U+2553 SF520000
+!A5 U+2554 SF390000
+!A6 U+2555 SF220000
+!A7 U+2556 SF210000
+!A8 U+2557 SF250000
+!A9 U+2558 SF500000
+!AA U+2559 SF490000
+!AB U+255A SF380000
+!AC U+255B SF280000
+!AD U+255C SF270000
+!AE U+255D SF260000
+!AF U+255E SF360000
+!B0 U+255F SF370000
+!B1 U+2560 SF420000
+!B2 U+2561 SF190000
+!B3 U+0401 afii10023
+!B4 U+2562 SF200000
+!B5 U+2563 SF230000
+!B6 U+2564 SF470000
+!B7 U+2565 SF480000
+!B8 U+2566 SF410000
+!B9 U+2567 SF450000
+!BA U+2568 SF460000
+!BB U+2569 SF400000
+!BC U+256A SF540000
+!BD U+256B SF530000
+!BE U+256C SF440000
+!BF U+00A9 copyright
+!C0 U+044E afii10096
+!C1 U+0430 afii10065
+!C2 U+0431 afii10066
+!C3 U+0446 afii10088
+!C4 U+0434 afii10069
+!C5 U+0435 afii10070
+!C6 U+0444 afii10086
+!C7 U+0433 afii10068
+!C8 U+0445 afii10087
+!C9 U+0438 afii10074
+!CA U+0439 afii10075
+!CB U+043A afii10076
+!CC U+043B afii10077
+!CD U+043C afii10078
+!CE U+043D afii10079
+!CF U+043E afii10080
+!D0 U+043F afii10081
+!D1 U+044F afii10097
+!D2 U+0440 afii10082
+!D3 U+0441 afii10083
+!D4 U+0442 afii10084
+!D5 U+0443 afii10085
+!D6 U+0436 afii10072
+!D7 U+0432 afii10067
+!D8 U+044C afii10094
+!D9 U+044B afii10093
+!DA U+0437 afii10073
+!DB U+0448 afii10090
+!DC U+044D afii10095
+!DD U+0449 afii10091
+!DE U+0447 afii10089
+!DF U+044A afii10092
+!E0 U+042E afii10048
+!E1 U+0410 afii10017
+!E2 U+0411 afii10018
+!E3 U+0426 afii10040
+!E4 U+0414 afii10021
+!E5 U+0415 afii10022
+!E6 U+0424 afii10038
+!E7 U+0413 afii10020
+!E8 U+0425 afii10039
+!E9 U+0418 afii10026
+!EA U+0419 afii10027
+!EB U+041A afii10028
+!EC U+041B afii10029
+!ED U+041C afii10030
+!EE U+041D afii10031
+!EF U+041E afii10032
+!F0 U+041F afii10033
+!F1 U+042F afii10049
+!F2 U+0420 afii10034
+!F3 U+0421 afii10035
+!F4 U+0422 afii10036
+!F5 U+0423 afii10037
+!F6 U+0416 afii10024
+!F7 U+0412 afii10019
+!F8 U+042C afii10046
+!F9 U+042B afii10045
+!FA U+0417 afii10025
+!FB U+0428 afii10042
+!FC U+042D afii10047
+!FD U+0429 afii10043
+!FE U+0427 afii10041
+!FF U+042A afii10044
--- /dev/null
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+2500 SF100000
+!81 U+2502 SF110000
+!82 U+250C SF010000
+!83 U+2510 SF030000
+!84 U+2514 SF020000
+!85 U+2518 SF040000
+!86 U+251C SF080000
+!87 U+2524 SF090000
+!88 U+252C SF060000
+!89 U+2534 SF070000
+!8A U+253C SF050000
+!8B U+2580 upblock
+!8C U+2584 dnblock
+!8D U+2588 block
+!8E U+258C lfblock
+!8F U+2590 rtblock
+!90 U+2591 ltshade
+!91 U+2592 shade
+!92 U+2593 dkshade
+!93 U+2320 integraltp
+!94 U+25A0 filledbox
+!95 U+2022 bullet
+!96 U+221A radical
+!97 U+2248 approxequal
+!98 U+2264 lessequal
+!99 U+2265 greaterequal
+!9A U+00A0 space
+!9B U+2321 integralbt
+!9C U+00B0 degree
+!9D U+00B2 twosuperior
+!9E U+00B7 periodcentered
+!9F U+00F7 divide
+!A0 U+2550 SF430000
+!A1 U+2551 SF240000
+!A2 U+2552 SF510000
+!A3 U+0451 afii10071
+!A4 U+0454 afii10101
+!A5 U+2554 SF390000
+!A6 U+0456 afii10103
+!A7 U+0457 afii10104
+!A8 U+2557 SF250000
+!A9 U+2558 SF500000
+!AA U+2559 SF490000
+!AB U+255A SF380000
+!AC U+255B SF280000
+!AD U+0491 afii10098
+!AE U+255D SF260000
+!AF U+255E SF360000
+!B0 U+255F SF370000
+!B1 U+2560 SF420000
+!B2 U+2561 SF190000
+!B3 U+0401 afii10023
+!B4 U+0404 afii10053
+!B5 U+2563 SF230000
+!B6 U+0406 afii10055
+!B7 U+0407 afii10056
+!B8 U+2566 SF410000
+!B9 U+2567 SF450000
+!BA U+2568 SF460000
+!BB U+2569 SF400000
+!BC U+256A SF540000
+!BD U+0490 afii10050
+!BE U+256C SF440000
+!BF U+00A9 copyright
+!C0 U+044E afii10096
+!C1 U+0430 afii10065
+!C2 U+0431 afii10066
+!C3 U+0446 afii10088
+!C4 U+0434 afii10069
+!C5 U+0435 afii10070
+!C6 U+0444 afii10086
+!C7 U+0433 afii10068
+!C8 U+0445 afii10087
+!C9 U+0438 afii10074
+!CA U+0439 afii10075
+!CB U+043A afii10076
+!CC U+043B afii10077
+!CD U+043C afii10078
+!CE U+043D afii10079
+!CF U+043E afii10080
+!D0 U+043F afii10081
+!D1 U+044F afii10097
+!D2 U+0440 afii10082
+!D3 U+0441 afii10083
+!D4 U+0442 afii10084
+!D5 U+0443 afii10085
+!D6 U+0436 afii10072
+!D7 U+0432 afii10067
+!D8 U+044C afii10094
+!D9 U+044B afii10093
+!DA U+0437 afii10073
+!DB U+0448 afii10090
+!DC U+044D afii10095
+!DD U+0449 afii10091
+!DE U+0447 afii10089
+!DF U+044A afii10092
+!E0 U+042E afii10048
+!E1 U+0410 afii10017
+!E2 U+0411 afii10018
+!E3 U+0426 afii10040
+!E4 U+0414 afii10021
+!E5 U+0415 afii10022
+!E6 U+0424 afii10038
+!E7 U+0413 afii10020
+!E8 U+0425 afii10039
+!E9 U+0418 afii10026
+!EA U+0419 afii10027
+!EB U+041A afii10028
+!EC U+041B afii10029
+!ED U+041C afii10030
+!EE U+041D afii10031
+!EF U+041E afii10032
+!F0 U+041F afii10033
+!F1 U+042F afii10049
+!F2 U+0420 afii10034
+!F3 U+0421 afii10035
+!F4 U+0422 afii10036
+!F5 U+0423 afii10037
+!F6 U+0416 afii10024
+!F7 U+0412 afii10019
+!F8 U+042C afii10046
+!F9 U+042B afii10045
+!FA U+0417 afii10025
+!FB U+0428 afii10042
+!FC U+042D afii10047
+!FD U+0429 afii10043
+!FE U+0427 afii10041
+!FF U+042A afii10044
--- /dev/null
+<?php
+/*******************************************************************************
+* Utility to generate font definition files *
+* Version: 1.13 *
+* Date: 2004-12-31 *
+*******************************************************************************/
+
+function ReadMap($enc)
+{
+ //Read a map file
+ $file=dirname(__FILE__).'/'.strtolower($enc).'.map';
+ $a=file($file);
+ if(empty($a))
+ die('<B>Error:</B> encoding not found: '.$enc);
+ $cc2gn=array();
+ foreach($a as $l)
+ {
+ if($l{0}=='!')
+ {
+ $e=preg_split('/[ \\t]+/',rtrim($l));
+ $cc=hexdec(substr($e[0],1));
+ $gn=$e[2];
+ $cc2gn[$cc]=$gn;
+ }
+ }
+ for($i=0;$i<=255;$i++)
+ {
+ if(!isset($cc2gn[$i]))
+ $cc2gn[$i]='.notdef';
+ }
+ return $cc2gn;
+}
+
+function ReadAFM($file,&$map)
+{
+ //Read a font metric file
+ $a=file($file);
+ if(empty($a))
+ die('File not found');
+ $widths=array();
+ $fm=array();
+ $fix=array('Edot'=>'Edotaccent','edot'=>'edotaccent','Idot'=>'Idotaccent','Zdot'=>'Zdotaccent','zdot'=>'zdotaccent',
+ 'Odblacute'=>'Ohungarumlaut','odblacute'=>'ohungarumlaut','Udblacute'=>'Uhungarumlaut','udblacute'=>'uhungarumlaut',
+ 'Gcedilla'=>'Gcommaaccent','gcedilla'=>'gcommaaccent','Kcedilla'=>'Kcommaaccent','kcedilla'=>'kcommaaccent',
+ 'Lcedilla'=>'Lcommaaccent','lcedilla'=>'lcommaaccent','Ncedilla'=>'Ncommaaccent','ncedilla'=>'ncommaaccent',
+ 'Rcedilla'=>'Rcommaaccent','rcedilla'=>'rcommaaccent','Scedilla'=>'Scommaaccent','scedilla'=>'scommaaccent',
+ 'Tcedilla'=>'Tcommaaccent','tcedilla'=>'tcommaaccent','Dslash'=>'Dcroat','dslash'=>'dcroat','Dmacron'=>'Dcroat','dmacron'=>'dcroat',
+ 'combininggraveaccent'=>'gravecomb','combininghookabove'=>'hookabovecomb','combiningtildeaccent'=>'tildecomb',
+ 'combiningacuteaccent'=>'acutecomb','combiningdotbelow'=>'dotbelowcomb','dongsign'=>'dong');
+ foreach($a as $l)
+ {
+ $e=explode(' ',rtrim($l));
+ if(count($e)<2)
+ continue;
+ $code=$e[0];
+ $param=$e[1];
+ if($code=='C')
+ {
+ //Character metrics
+ $cc=(int)$e[1];
+ $w=$e[4];
+ $gn=$e[7];
+ if(substr($gn,-4)=='20AC')
+ $gn='Euro';
+ if(isset($fix[$gn]))
+ {
+ //Fix incorrect glyph name
+ foreach($map as $c=>$n)
+ {
+ if($n==$fix[$gn])
+ $map[$c]=$gn;
+ }
+ }
+ if(empty($map))
+ {
+ //Symbolic font: use built-in encoding
+ $widths[$cc]=$w;
+ }
+ else
+ {
+ $widths[$gn]=$w;
+ if($gn=='X')
+ $fm['CapXHeight']=$e[13];
+ }
+ if($gn=='.notdef')
+ $fm['MissingWidth']=$w;
+ }
+ elseif($code=='FontName')
+ $fm['FontName']=$param;
+ elseif($code=='Weight')
+ $fm['Weight']=$param;
+ elseif($code=='ItalicAngle')
+ $fm['ItalicAngle']=(double)$param;
+ elseif($code=='Ascender')
+ $fm['Ascender']=(int)$param;
+ elseif($code=='Descender')
+ $fm['Descender']=(int)$param;
+ elseif($code=='UnderlineThickness')
+ $fm['UnderlineThickness']=(int)$param;
+ elseif($code=='UnderlinePosition')
+ $fm['UnderlinePosition']=(int)$param;
+ elseif($code=='IsFixedPitch')
+ $fm['IsFixedPitch']=($param=='true');
+ elseif($code=='FontBBox')
+ $fm['FontBBox']=array($e[1],$e[2],$e[3],$e[4]);
+ elseif($code=='CapHeight')
+ $fm['CapHeight']=(int)$param;
+ elseif($code=='StdVW')
+ $fm['StdVW']=(int)$param;
+ }
+ if(!isset($fm['FontName']))
+ die('FontName not found');
+ if(!empty($map))
+ {
+ if(!isset($widths['.notdef']))
+ $widths['.notdef']=600;
+ if(!isset($widths['Delta']) and isset($widths['increment']))
+ $widths['Delta']=$widths['increment'];
+ //Order widths according to map
+ for($i=0;$i<=255;$i++)
+ {
+ if(!isset($widths[$map[$i]]))
+ {
+ echo '<B>Warning:</B> character '.$map[$i].' is missing<BR>';
+ $widths[$i]=$widths['.notdef'];
+ }
+ else
+ $widths[$i]=$widths[$map[$i]];
+ }
+ }
+ $fm['Widths']=$widths;
+ return $fm;
+}
+
+function MakeFontDescriptor($fm,$symbolic)
+{
+ //Ascent
+ $asc=(isset($fm['Ascender']) ? $fm['Ascender'] : 1000);
+ $fd="array('Ascent'=>".$asc;
+ //Descent
+ $desc=(isset($fm['Descender']) ? $fm['Descender'] : -200);
+ $fd.=",'Descent'=>".$desc;
+ //CapHeight
+ if(isset($fm['CapHeight']))
+ $ch=$fm['CapHeight'];
+ elseif(isset($fm['CapXHeight']))
+ $ch=$fm['CapXHeight'];
+ else
+ $ch=$asc;
+ $fd.=",'CapHeight'=>".$ch;
+ //Flags
+ $flags=0;
+ if(isset($fm['IsFixedPitch']) and $fm['IsFixedPitch'])
+ $flags+=1<<0;
+ if($symbolic)
+ $flags+=1<<2;
+ if(!$symbolic)
+ $flags+=1<<5;
+ if(isset($fm['ItalicAngle']) and $fm['ItalicAngle']!=0)
+ $flags+=1<<6;
+ $fd.=",'Flags'=>".$flags;
+ //FontBBox
+ if(isset($fm['FontBBox']))
+ $fbb=$fm['FontBBox'];
+ else
+ $fbb=array(0,$des-100,1000,$asc+100);
+ $fd.=",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'";
+ //ItalicAngle
+ $ia=(isset($fm['ItalicAngle']) ? $fm['ItalicAngle'] : 0);
+ $fd.=",'ItalicAngle'=>".$ia;
+ //StemV
+ if(isset($fm['StdVW']))
+ $stemv=$fm['StdVW'];
+ elseif(isset($fm['Weight']) and eregi('(bold|black)',$fm['Weight']))
+ $stemv=120;
+ else
+ $stemv=70;
+ $fd.=",'StemV'=>".$stemv;
+ //MissingWidth
+ if(isset($fm['MissingWidth']))
+ $fd.=",'MissingWidth'=>".$fm['MissingWidth'];
+ $fd.=')';
+ return $fd;
+}
+
+function MakeWidthArray($fm)
+{
+ //Make character width array
+ $s="array(\n\t";
+ $cw=$fm['Widths'];
+ for($i=0;$i<=255;$i++)
+ {
+ if(chr($i)=="'")
+ $s.="'\\''";
+ elseif(chr($i)=="\\")
+ $s.="'\\\\'";
+ elseif($i>=32 and $i<=126)
+ $s.="'".chr($i)."'";
+ else
+ $s.="chr($i)";
+ $s.='=>'.$fm['Widths'][$i];
+ if($i<255)
+ $s.=',';
+ if(($i+1)%22==0)
+ $s.="\n\t";
+ }
+ $s.=')';
+ return $s;
+}
+
+function MakeFontEncoding($map)
+{
+ //Build differences from reference encoding
+ $ref=ReadMap('cp1252');
+ $s='';
+ $last=0;
+ for($i=32;$i<=255;$i++)
+ {
+ if($map[$i]!=$ref[$i])
+ {
+ if($i!=$last+1)
+ $s.=$i.' ';
+ $last=$i;
+ $s.='/'.$map[$i].' ';
+ }
+ }
+ return rtrim($s);
+}
+
+function SaveToFile($file,$s,$mode='t')
+{
+ $f=fopen($file,'w'.$mode);
+ if(!$f)
+ die('Can\'t write to file '.$file);
+ fwrite($f,$s,strlen($s));
+ fclose($f);
+}
+
+function ReadShort($f)
+{
+ $a=unpack('n1n',fread($f,2));
+ return $a['n'];
+}
+
+function ReadLong($f)
+{
+ $a=unpack('N1N',fread($f,4));
+ return $a['N'];
+}
+
+function CheckTTF($file)
+{
+ //Check if font license allows embedding
+ $f=fopen($file,'rb');
+ if(!$f)
+ die('<B>Error:</B> Can\'t open '.$file);
+ //Extract number of tables
+ fseek($f,4,SEEK_CUR);
+ $nb=ReadShort($f);
+ fseek($f,6,SEEK_CUR);
+ //Seek OS/2 table
+ $found=false;
+ for($i=0;$i<$nb;$i++)
+ {
+ if(fread($f,4)=='OS/2')
+ {
+ $found=true;
+ break;
+ }
+ fseek($f,12,SEEK_CUR);
+ }
+ if(!$found)
+ {
+ fclose($f);
+ return;
+ }
+ fseek($f,4,SEEK_CUR);
+ $offset=ReadLong($f);
+ fseek($f,$offset,SEEK_SET);
+ //Extract fsType flags
+ fseek($f,8,SEEK_CUR);
+ $fsType=ReadShort($f);
+ $rl=($fsType & 0x02)!=0;
+ $pp=($fsType & 0x04)!=0;
+ $e=($fsType & 0x08)!=0;
+ fclose($f);
+ if($rl and !$pp and !$e)
+ echo '<B>Warning:</B> font license does not allow embedding';
+}
+
+/*******************************************************************************
+* $fontfile : chemin du fichier TTF (ou chaîne vide si pas d'incorporation) *
+* $afmfile : chemin du fichier AFM *
+* $enc : encodage (ou chaîne vide si la police est symbolique) *
+* $patch : patch optionnel pour l'encodage *
+* $type : type de la police si $fontfile est vide *
+*******************************************************************************/
+function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
+{
+ //Generate a font definition file
+ set_magic_quotes_runtime(0);
+ ini_set('auto_detect_line_endings','1');
+ if($enc)
+ {
+ $map=ReadMap($enc);
+ foreach($patch as $cc=>$gn)
+ $map[$cc]=$gn;
+ }
+ else
+ $map=array();
+ if(!file_exists($afmfile))
+ die('<B>Error:</B> AFM file not found: '.$afmfile);
+ $fm=ReadAFM($afmfile,$map);
+ if($enc)
+ $diff=MakeFontEncoding($map);
+ else
+ $diff='';
+ $fd=MakeFontDescriptor($fm,empty($map));
+ //Find font type
+ if($fontfile)
+ {
+ $ext=strtolower(substr($fontfile,-3));
+ if($ext=='ttf')
+ $type='TrueType';
+ elseif($ext=='pfb')
+ $type='Type1';
+ else
+ die('<B>Error:</B> unrecognized font file extension: '.$ext);
+ }
+ else
+ {
+ if($type!='TrueType' and $type!='Type1')
+ die('<B>Error:</B> incorrect font type: '.$type);
+ }
+ //Start generation
+ $s='<?php'."\n";
+ $s.='$type=\''.$type."';\n";
+ $s.='$name=\''.$fm['FontName']."';\n";
+ $s.='$desc='.$fd.";\n";
+ if(!isset($fm['UnderlinePosition']))
+ $fm['UnderlinePosition']=-100;
+ if(!isset($fm['UnderlineThickness']))
+ $fm['UnderlineThickness']=50;
+ $s.='$up='.$fm['UnderlinePosition'].";\n";
+ $s.='$ut='.$fm['UnderlineThickness'].";\n";
+ $w=MakeWidthArray($fm);
+ $s.='$cw='.$w.";\n";
+ $s.='$enc=\''.$enc."';\n";
+ $s.='$diff=\''.$diff."';\n";
+ $basename=substr(basename($afmfile),0,-4);
+ if($fontfile)
+ {
+ //Embedded font
+ if(!file_exists($fontfile))
+ die('<B>Error:</B> font file not found: '.$fontfile);
+ if($type=='TrueType')
+ CheckTTF($fontfile);
+ $f=fopen($fontfile,'rb');
+ if(!$f)
+ die('<B>Error:</B> Can\'t open '.$fontfile);
+ $file=fread($f,filesize($fontfile));
+ fclose($f);
+ if($type=='Type1')
+ {
+ //Find first two sections and discard third one
+ $header=(ord($file{0})==128);
+ if($header)
+ {
+ //Strip first binary header
+ $file=substr($file,6);
+ }
+ $pos=strpos($file,'eexec');
+ if(!$pos)
+ die('<B>Error:</B> font file does not seem to be valid Type1');
+ $size1=$pos+6;
+ if($header and ord($file{$size1})==128)
+ {
+ //Strip second binary header
+ $file=substr($file,0,$size1).substr($file,$size1+6);
+ }
+ $pos=strpos($file,'00000000');
+ if(!$pos)
+ die('<B>Error:</B> font file does not seem to be valid Type1');
+ $size2=$pos-$size1;
+ $file=substr($file,0,$size1+$size2);
+ }
+ if(function_exists('gzcompress'))
+ {
+ $cmp=$basename.'.z';
+ SaveToFile($cmp,gzcompress($file),'b');
+ $s.='$file=\''.$cmp."';\n";
+ echo 'Font file compressed ('.$cmp.')<BR>';
+ }
+ else
+ {
+ $s.='$file=\''.basename($fontfile)."';\n";
+ echo '<B>Notice:</B> font file could not be compressed (zlib extension not available)<BR>';
+ }
+ if($type=='Type1')
+ {
+ $s.='$size1='.$size1.";\n";
+ $s.='$size2='.$size2.";\n";
+ }
+ else
+ $s.='$originalsize='.filesize($fontfile).";\n";
+ }
+ else
+ {
+ //Not embedded font
+ $s.='$file='."'';\n";
+ }
+ $s.="?>\n";
+ SaveToFile($basename.'.php',$s);
+ echo 'Font definition file generated ('.$basename.'.php'.')<BR>';
+}
+?>
--- /dev/null
+@ECHO OFF\r
+rem -----------------------------------------------------------------------\r
+rem Make mbttfdef.php\r
+rem -----------------------------------------------------------------------\r
+set PHPEXE=c:\php\cli\php.exe\r
+IF "%1"=="" GOTO HELP\r
+IF NOT EXIST %PHPEXE% GOTO ERR1\r
+IF NOT EXIST ttf2pt1.exe GOTO ERR2\r
+IF "%1"=="remake" GOTO PHPONLY\r
+IF "%1"=="backup" GOTO BACKUP\r
+IF "%1"=="restore" GOTO RESTORE\r
+IF NOT EXIST %1 GOTO ERR3\r
+ttf2pt1 %1 work\r
+:PHPONLY\r
+%PHPEXE% -r require('mkttfdef.php');\r
+IF "%1"=="remake" GOTO EXIT\r
+del work.t1a\r
+del work.afm\r
+GOTO EXIT\r
+:BACKUP\r
+COPY /Y ..\mbttfdef.php ..\mbttfdef.bak\r
+COPY /Y mkttfdef.dat mkttfdef.bak\r
+GOTO EXIT\r
+:RESTORE\r
+COPY /Y ..\mbttfdef.bak ..\mbttfdef.php\r
+COPY /Y mkttfdef.bak mkttfdef.dat\r
+GOTO EXIT\r
+:HELP\r
+ECHO Usage: mkttfdef YourFont.TTF (Add TrueType Information)\r
+ECHO mkttfdef remake (Remake mbttfdef.php file)\r
+ECHO mkttfdef backup (Backup enviroment files)\r
+ECHO mkttfdef restore (Restore enviroment files)\r
+GOTO EXIT\r
+:ERR1\r
+ECHO Error: Not Found PHP.EXE Cli Version.\r
+ECHO Please EDIT PHPEXE Variable for PHP(CLI PHP.EXE File Path)\r
+ECHO Now Setting PHPEXE=%PHPEXE% ok?\r
+GOTO EXIT\r
+:ERR2\r
+ECHO Error: Not Found ttf2pt1.exe\r
+GOTO EXIT\r
+:ERR3\r
+ECHO Error: Not Found %1\r
+GOTO EXIT\r
+:EXIT
\ No newline at end of file
--- /dev/null
+MSungStd-Light-Acro,40,-120,250/250/408/668/490/875/698/250/240/240/417/667/250/313/250/520/500/500/500/500/500/500/500/500/500/500/250/250/667/667/667/396/921/677/615/719/760/625/552/771/802/354/354/781/604/927/750/823/563/823/729/542/698/771/729/948/771/677/635/344/520/344/469/500/250/469/521/427/521/438/271/469/531/250/250/458/240/802/531/500/521/521/365/333/292/521/458/677/479/458/427/480/496/480/667
+STSongStd-Light-Acro,40,-120,207/270/342/467/462/797/710/239/374/374/423/605/238/375/238/334/462/462/462/462/462/462/462/462/462/462/238/238/605/605/605/344/748/684/560/695/739/563/511/729/793/318/312/666/526/896/758/772/544/772/628/465/607/753/711/972/647/620/607/374/333/374/606/500/239/417/503/427/529/415/264/444/518/241/230/495/228/793/527/524/524/504/338/336/277/517/450/652/466/452/407/370/258/370/605
+KozMinPro-Regular-Acro,40,-120,278/299/353/614/614/721/735/216/323/323/449/529/219/306/219/453/614/614/614/614/614/614/614/614/614/614/219/219/529/529/529/486/744/646/604/617/681/567/537/647/738/320/433/637/566/904/710/716/605/716/623/517/601/690/668/990/681/634/578/316/614/316/529/500/387/509/566/478/565/503/337/549/580/275/266/544/276/854/579/550/578/566/410/444/340/575/512/760/503/529/453/326/380/326/387
+MS-Gothic,74,-66,500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500
+MS-PGothic,74,-66,305/219/500/500/500/500/594/203/305/305/500/500/203/500/203/500/500/500/500/500/500/500/500/500/500/500/203/203/500/500/500/453/668/633/637/664/648/566/551/680/641/246/543/598/539/742/641/707/617/707/625/602/590/641/633/742/602/590/566/336/504/336/414/305/414/477/496/500/496/500/305/461/500/211/219/461/211/734/500/508/496/496/348/461/352/500/477/648/461/477/457/234/234/234/414
+MS-UIGothic,74,-66,305/219/500/500/500/500/594/203/305/305/500/500/203/500/203/500/500/500/500/500/500/500/500/500/500/500/203/203/500/500/500/453/668/633/637/664/648/566/551/680/641/246/543/598/539/742/641/707/617/707/625/602/590/641/633/742/602/590/566/336/504/336/414/305/414/477/496/500/496/500/305/461/500/211/219/461/211/734/500/508/496/496/348/461/352/500/477/648/461/477/457/234/234/234/414
+MS-Mincho,47,-94,500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500/500
+MS-PMincho,47,-94,305/305/461/500/500/500/613/305/305/305/500/500/305/500/305/500/500/500/500/500/500/500/500/500/500/500/305/305/500/500/500/500/727/664/621/699/691/598/598/711/723/289/387/668/586/801/664/766/563/766/602/504/625/691/664/871/656/625/563/332/500/332/305/305/305/453/500/465/500/473/254/473/500/242/242/492/242/703/500/500/500/500/367/414/352/500/477/602/469/477/453/242/219/242/500
--- /dev/null
+<?php
+// ------------------------------------------------------------------------
+// Make mbttfdef.php
+// ------------------------------------------------------------------------
+
+// Multi Byte TrueType Font Define ----------------------------------------
+$ttfdef = "../mbttfdef.php";
+
+// Data File --------------------------------------------------------------
+$temp = "mkttfdef.dat";
+
+// Maked file by ttf2pt1.exe ---------------------------------------------
+$work = "work.afm";
+
+// load Data File to Array ------------------------------------------------
+$fp=@fopen($temp,"r");
+if ($fp != false) {
+ while ($line = fgets($fp)) {
+ $line = rtrim($line);
+ list($key,$ut,$up,$value) = split(",",$line);
+ $font[$key] = "$ut,$up,$value";
+ }
+ fclose($fp);
+}
+
+// Get FontName,UT,UP and Character Width ---------------------------------
+$fp=@fopen($work,"r");
+if ($fp != false) {
+ while ($line = fgets($fp)) {
+ $line = rtrim($line);
+ if (ereg('^FontName ([A-Za-z0-9_-]*)$',$line,$regs)) $f = $regs[1];
+ if (ereg('^UnderlineThickness ([A-Za-z0-9_-]*)$',$line,$regs)) $ut = $regs[1];
+ if (ereg('^UnderlinePosition ([A-Za-z0-9_-]*)$',$line,$regs)) $up = $regs[1];
+ if (ereg('^C ([0-9]+) ; WX ([0-9]+) ; N [A-Za-z.]+ ; B [0-9-]+ [0-9-]+ [0-9-]+ [0-9-]+ ;',$line,$regs)) {
+ $no = $regs[1]; $width = $regs[2];
+ if ($no >= 32 and $no <= 126) {
+ if ($no != 32) $d .= "/";
+ $d .= $width;
+ }
+ }
+ }
+ fclose($fp);
+ $font[$f] = "$ut,$up,$d";
+}
+
+// Save Array to Data File ------------------------------------------------
+$fp=fopen($temp,"w");
+foreach($font as $key => $value) {
+ fputs($fp,"$key,$value\n");
+}
+fclose($fp);
+
+// Save Array to mbttfdef.php ---------------------------------------------
+$fp=fopen($ttfdef,"w");
+fputs($fp,"<?php\n\n");
+fputs($fp,"// Multi Byte TrueType Font Define ----------------------------------------\n\n");
+foreach($font as $key => $value) {
+ list($ut,$up,$width) = split(",",$value);
+ $buf = "\$MBTTFDEF['".$key."'] = array (\n";
+ $buf .= " " . str_pad("'ut'=>$ut",10) . ",";
+ $buf .= str_pad("'up'=>$up",10) . ",'cw'=>array (";
+ $data = array ( );
+ $data = split("/",$width);
+ $acnt = count($data);
+ $cnt = 0;
+ foreach($data as $i => $w) {
+ if ($cnt == 0) { $buf .= "\n "; }
+ $cnt++;
+ $buf .= str_pad("'".addslashes(chr($i+32))."'=>$w",10);
+ if ($i != $acnt-1) { $buf .= ','; }
+ if ($cnt == 7) { $cnt = 0; }
+ }
+ $buf .= ")\n);\n\n";
+ fputs($fp,$buf);
+}
+fputs($fp,"?>");
+fclose($fp);
+
+?>
--- /dev/null
+<?php
+
+// Multi Byte TrueType Font Define ----------------------------------------
+
+$MBTTFDEF['MSungStd-Light-Acro'] = array (
+ 'ut'=>40 ,'up'=>-120,'cw'=>array (
+ ' '=>250 ,'!'=>250 ,'\"'=>408 ,'#'=>668 ,'$'=>490 ,'%'=>875 ,'&'=>698 ,
+ '\''=>250 ,'('=>240 ,')'=>240 ,'*'=>417 ,'+'=>667 ,','=>250 ,'-'=>313 ,
+ '.'=>250 ,'/'=>520 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>250 ,';'=>250 ,
+ '<'=>667 ,'='=>667 ,'>'=>667 ,'?'=>396 ,'@'=>921 ,'A'=>677 ,'B'=>615 ,
+ 'C'=>719 ,'D'=>760 ,'E'=>625 ,'F'=>552 ,'G'=>771 ,'H'=>802 ,'I'=>354 ,
+ 'J'=>354 ,'K'=>781 ,'L'=>604 ,'M'=>927 ,'N'=>750 ,'O'=>823 ,'P'=>563 ,
+ 'Q'=>823 ,'R'=>729 ,'S'=>542 ,'T'=>698 ,'U'=>771 ,'V'=>729 ,'W'=>948 ,
+ 'X'=>771 ,'Y'=>677 ,'Z'=>635 ,'['=>344 ,'\\'=>520 ,']'=>344 ,'^'=>469 ,
+ '_'=>500 ,'`'=>250 ,'a'=>469 ,'b'=>521 ,'c'=>427 ,'d'=>521 ,'e'=>438 ,
+ 'f'=>271 ,'g'=>469 ,'h'=>531 ,'i'=>250 ,'j'=>250 ,'k'=>458 ,'l'=>240 ,
+ 'm'=>802 ,'n'=>531 ,'o'=>500 ,'p'=>521 ,'q'=>521 ,'r'=>365 ,'s'=>333 ,
+ 't'=>292 ,'u'=>521 ,'v'=>458 ,'w'=>677 ,'x'=>479 ,'y'=>458 ,'z'=>427 ,
+ '{'=>480 ,'|'=>496 ,'}'=>480 ,'~'=>667 )
+);
+
+$MBTTFDEF['STSongStd-Light-Acro'] = array (
+ 'ut'=>40 ,'up'=>-120,'cw'=>array (
+ ' '=>207 ,'!'=>270 ,'\"'=>342 ,'#'=>467 ,'$'=>462 ,'%'=>797 ,'&'=>710 ,
+ '\''=>239 ,'('=>374 ,')'=>374 ,'*'=>423 ,'+'=>605 ,','=>238 ,'-'=>375 ,
+ '.'=>238 ,'/'=>334 ,'0'=>462 ,'1'=>462 ,'2'=>462 ,'3'=>462 ,'4'=>462 ,
+ '5'=>462 ,'6'=>462 ,'7'=>462 ,'8'=>462 ,'9'=>462 ,':'=>238 ,';'=>238 ,
+ '<'=>605 ,'='=>605 ,'>'=>605 ,'?'=>344 ,'@'=>748 ,'A'=>684 ,'B'=>560 ,
+ 'C'=>695 ,'D'=>739 ,'E'=>563 ,'F'=>511 ,'G'=>729 ,'H'=>793 ,'I'=>318 ,
+ 'J'=>312 ,'K'=>666 ,'L'=>526 ,'M'=>896 ,'N'=>758 ,'O'=>772 ,'P'=>544 ,
+ 'Q'=>772 ,'R'=>628 ,'S'=>465 ,'T'=>607 ,'U'=>753 ,'V'=>711 ,'W'=>972 ,
+ 'X'=>647 ,'Y'=>620 ,'Z'=>607 ,'['=>374 ,'\\'=>333 ,']'=>374 ,'^'=>606 ,
+ '_'=>500 ,'`'=>239 ,'a'=>417 ,'b'=>503 ,'c'=>427 ,'d'=>529 ,'e'=>415 ,
+ 'f'=>264 ,'g'=>444 ,'h'=>518 ,'i'=>241 ,'j'=>230 ,'k'=>495 ,'l'=>228 ,
+ 'm'=>793 ,'n'=>527 ,'o'=>524 ,'p'=>524 ,'q'=>504 ,'r'=>338 ,'s'=>336 ,
+ 't'=>277 ,'u'=>517 ,'v'=>450 ,'w'=>652 ,'x'=>466 ,'y'=>452 ,'z'=>407 ,
+ '{'=>370 ,'|'=>258 ,'}'=>370 ,'~'=>605 )
+);
+
+$MBTTFDEF['KozMinPro-Regular-Acro'] = array (
+ 'ut'=>40 ,'up'=>-120,'cw'=>array (
+ ' '=>278 ,'!'=>299 ,'\"'=>353 ,'#'=>614 ,'$'=>614 ,'%'=>721 ,'&'=>735 ,
+ '\''=>216 ,'('=>323 ,')'=>323 ,'*'=>449 ,'+'=>529 ,','=>219 ,'-'=>306 ,
+ '.'=>219 ,'/'=>453 ,'0'=>614 ,'1'=>614 ,'2'=>614 ,'3'=>614 ,'4'=>614 ,
+ '5'=>614 ,'6'=>614 ,'7'=>614 ,'8'=>614 ,'9'=>614 ,':'=>219 ,';'=>219 ,
+ '<'=>529 ,'='=>529 ,'>'=>529 ,'?'=>486 ,'@'=>744 ,'A'=>646 ,'B'=>604 ,
+ 'C'=>617 ,'D'=>681 ,'E'=>567 ,'F'=>537 ,'G'=>647 ,'H'=>738 ,'I'=>320 ,
+ 'J'=>433 ,'K'=>637 ,'L'=>566 ,'M'=>904 ,'N'=>710 ,'O'=>716 ,'P'=>605 ,
+ 'Q'=>716 ,'R'=>623 ,'S'=>517 ,'T'=>601 ,'U'=>690 ,'V'=>668 ,'W'=>990 ,
+ 'X'=>681 ,'Y'=>634 ,'Z'=>578 ,'['=>316 ,'\\'=>614 ,']'=>316 ,'^'=>529 ,
+ '_'=>500 ,'`'=>387 ,'a'=>509 ,'b'=>566 ,'c'=>478 ,'d'=>565 ,'e'=>503 ,
+ 'f'=>337 ,'g'=>549 ,'h'=>580 ,'i'=>275 ,'j'=>266 ,'k'=>544 ,'l'=>276 ,
+ 'm'=>854 ,'n'=>579 ,'o'=>550 ,'p'=>578 ,'q'=>566 ,'r'=>410 ,'s'=>444 ,
+ 't'=>340 ,'u'=>575 ,'v'=>512 ,'w'=>760 ,'x'=>503 ,'y'=>529 ,'z'=>453 ,
+ '{'=>326 ,'|'=>380 ,'}'=>326 ,'~'=>387 )
+);
+
+$MBTTFDEF['MS-Gothic'] = array (
+ 'ut'=>74 ,'up'=>-66 ,'cw'=>array (
+ ' '=>500 ,'!'=>500 ,'\"'=>500 ,'#'=>500 ,'$'=>500 ,'%'=>500 ,'&'=>500 ,
+ '\''=>500 ,'('=>500 ,')'=>500 ,'*'=>500 ,'+'=>500 ,','=>500 ,'-'=>500 ,
+ '.'=>500 ,'/'=>500 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>500 ,';'=>500 ,
+ '<'=>500 ,'='=>500 ,'>'=>500 ,'?'=>500 ,'@'=>500 ,'A'=>500 ,'B'=>500 ,
+ 'C'=>500 ,'D'=>500 ,'E'=>500 ,'F'=>500 ,'G'=>500 ,'H'=>500 ,'I'=>500 ,
+ 'J'=>500 ,'K'=>500 ,'L'=>500 ,'M'=>500 ,'N'=>500 ,'O'=>500 ,'P'=>500 ,
+ 'Q'=>500 ,'R'=>500 ,'S'=>500 ,'T'=>500 ,'U'=>500 ,'V'=>500 ,'W'=>500 ,
+ 'X'=>500 ,'Y'=>500 ,'Z'=>500 ,'['=>500 ,'\\'=>500 ,']'=>500 ,'^'=>500 ,
+ '_'=>500 ,'`'=>500 ,'a'=>500 ,'b'=>500 ,'c'=>500 ,'d'=>500 ,'e'=>500 ,
+ 'f'=>500 ,'g'=>500 ,'h'=>500 ,'i'=>500 ,'j'=>500 ,'k'=>500 ,'l'=>500 ,
+ 'm'=>500 ,'n'=>500 ,'o'=>500 ,'p'=>500 ,'q'=>500 ,'r'=>500 ,'s'=>500 ,
+ 't'=>500 ,'u'=>500 ,'v'=>500 ,'w'=>500 ,'x'=>500 ,'y'=>500 ,'z'=>500 ,
+ '{'=>500 ,'|'=>500 ,'}'=>500 ,'~'=>500 )
+);
+
+$MBTTFDEF['MS-PGothic'] = array (
+ 'ut'=>74 ,'up'=>-66 ,'cw'=>array (
+ ' '=>305 ,'!'=>219 ,'\"'=>500 ,'#'=>500 ,'$'=>500 ,'%'=>500 ,'&'=>594 ,
+ '\''=>203 ,'('=>305 ,')'=>305 ,'*'=>500 ,'+'=>500 ,','=>203 ,'-'=>500 ,
+ '.'=>203 ,'/'=>500 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>203 ,';'=>203 ,
+ '<'=>500 ,'='=>500 ,'>'=>500 ,'?'=>453 ,'@'=>668 ,'A'=>633 ,'B'=>637 ,
+ 'C'=>664 ,'D'=>648 ,'E'=>566 ,'F'=>551 ,'G'=>680 ,'H'=>641 ,'I'=>246 ,
+ 'J'=>543 ,'K'=>598 ,'L'=>539 ,'M'=>742 ,'N'=>641 ,'O'=>707 ,'P'=>617 ,
+ 'Q'=>707 ,'R'=>625 ,'S'=>602 ,'T'=>590 ,'U'=>641 ,'V'=>633 ,'W'=>742 ,
+ 'X'=>602 ,'Y'=>590 ,'Z'=>566 ,'['=>336 ,'\\'=>504 ,']'=>336 ,'^'=>414 ,
+ '_'=>305 ,'`'=>414 ,'a'=>477 ,'b'=>496 ,'c'=>500 ,'d'=>496 ,'e'=>500 ,
+ 'f'=>305 ,'g'=>461 ,'h'=>500 ,'i'=>211 ,'j'=>219 ,'k'=>461 ,'l'=>211 ,
+ 'm'=>734 ,'n'=>500 ,'o'=>508 ,'p'=>496 ,'q'=>496 ,'r'=>348 ,'s'=>461 ,
+ 't'=>352 ,'u'=>500 ,'v'=>477 ,'w'=>648 ,'x'=>461 ,'y'=>477 ,'z'=>457 ,
+ '{'=>234 ,'|'=>234 ,'}'=>234 ,'~'=>414 )
+);
+
+$MBTTFDEF['MS-UIGothic'] = array (
+ 'ut'=>74 ,'up'=>-66 ,'cw'=>array (
+ ' '=>305 ,'!'=>219 ,'\"'=>500 ,'#'=>500 ,'$'=>500 ,'%'=>500 ,'&'=>594 ,
+ '\''=>203 ,'('=>305 ,')'=>305 ,'*'=>500 ,'+'=>500 ,','=>203 ,'-'=>500 ,
+ '.'=>203 ,'/'=>500 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>203 ,';'=>203 ,
+ '<'=>500 ,'='=>500 ,'>'=>500 ,'?'=>453 ,'@'=>668 ,'A'=>633 ,'B'=>637 ,
+ 'C'=>664 ,'D'=>648 ,'E'=>566 ,'F'=>551 ,'G'=>680 ,'H'=>641 ,'I'=>246 ,
+ 'J'=>543 ,'K'=>598 ,'L'=>539 ,'M'=>742 ,'N'=>641 ,'O'=>707 ,'P'=>617 ,
+ 'Q'=>707 ,'R'=>625 ,'S'=>602 ,'T'=>590 ,'U'=>641 ,'V'=>633 ,'W'=>742 ,
+ 'X'=>602 ,'Y'=>590 ,'Z'=>566 ,'['=>336 ,'\\'=>504 ,']'=>336 ,'^'=>414 ,
+ '_'=>305 ,'`'=>414 ,'a'=>477 ,'b'=>496 ,'c'=>500 ,'d'=>496 ,'e'=>500 ,
+ 'f'=>305 ,'g'=>461 ,'h'=>500 ,'i'=>211 ,'j'=>219 ,'k'=>461 ,'l'=>211 ,
+ 'm'=>734 ,'n'=>500 ,'o'=>508 ,'p'=>496 ,'q'=>496 ,'r'=>348 ,'s'=>461 ,
+ 't'=>352 ,'u'=>500 ,'v'=>477 ,'w'=>648 ,'x'=>461 ,'y'=>477 ,'z'=>457 ,
+ '{'=>234 ,'|'=>234 ,'}'=>234 ,'~'=>414 )
+);
+
+$MBTTFDEF['MS-Mincho'] = array (
+ 'ut'=>47 ,'up'=>-94 ,'cw'=>array (
+ ' '=>500 ,'!'=>500 ,'\"'=>500 ,'#'=>500 ,'$'=>500 ,'%'=>500 ,'&'=>500 ,
+ '\''=>500 ,'('=>500 ,')'=>500 ,'*'=>500 ,'+'=>500 ,','=>500 ,'-'=>500 ,
+ '.'=>500 ,'/'=>500 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>500 ,';'=>500 ,
+ '<'=>500 ,'='=>500 ,'>'=>500 ,'?'=>500 ,'@'=>500 ,'A'=>500 ,'B'=>500 ,
+ 'C'=>500 ,'D'=>500 ,'E'=>500 ,'F'=>500 ,'G'=>500 ,'H'=>500 ,'I'=>500 ,
+ 'J'=>500 ,'K'=>500 ,'L'=>500 ,'M'=>500 ,'N'=>500 ,'O'=>500 ,'P'=>500 ,
+ 'Q'=>500 ,'R'=>500 ,'S'=>500 ,'T'=>500 ,'U'=>500 ,'V'=>500 ,'W'=>500 ,
+ 'X'=>500 ,'Y'=>500 ,'Z'=>500 ,'['=>500 ,'\\'=>500 ,']'=>500 ,'^'=>500 ,
+ '_'=>500 ,'`'=>500 ,'a'=>500 ,'b'=>500 ,'c'=>500 ,'d'=>500 ,'e'=>500 ,
+ 'f'=>500 ,'g'=>500 ,'h'=>500 ,'i'=>500 ,'j'=>500 ,'k'=>500 ,'l'=>500 ,
+ 'm'=>500 ,'n'=>500 ,'o'=>500 ,'p'=>500 ,'q'=>500 ,'r'=>500 ,'s'=>500 ,
+ 't'=>500 ,'u'=>500 ,'v'=>500 ,'w'=>500 ,'x'=>500 ,'y'=>500 ,'z'=>500 ,
+ '{'=>500 ,'|'=>500 ,'}'=>500 ,'~'=>500 )
+);
+
+$MBTTFDEF['MS-PMincho'] = array (
+ 'ut'=>47 ,'up'=>-94 ,'cw'=>array (
+ ' '=>305 ,'!'=>305 ,'\"'=>461 ,'#'=>500 ,'$'=>500 ,'%'=>500 ,'&'=>613 ,
+ '\''=>305 ,'('=>305 ,')'=>305 ,'*'=>500 ,'+'=>500 ,','=>305 ,'-'=>500 ,
+ '.'=>305 ,'/'=>500 ,'0'=>500 ,'1'=>500 ,'2'=>500 ,'3'=>500 ,'4'=>500 ,
+ '5'=>500 ,'6'=>500 ,'7'=>500 ,'8'=>500 ,'9'=>500 ,':'=>305 ,';'=>305 ,
+ '<'=>500 ,'='=>500 ,'>'=>500 ,'?'=>500 ,'@'=>727 ,'A'=>664 ,'B'=>621 ,
+ 'C'=>699 ,'D'=>691 ,'E'=>598 ,'F'=>598 ,'G'=>711 ,'H'=>723 ,'I'=>289 ,
+ 'J'=>387 ,'K'=>668 ,'L'=>586 ,'M'=>801 ,'N'=>664 ,'O'=>766 ,'P'=>563 ,
+ 'Q'=>766 ,'R'=>602 ,'S'=>504 ,'T'=>625 ,'U'=>691 ,'V'=>664 ,'W'=>871 ,
+ 'X'=>656 ,'Y'=>625 ,'Z'=>563 ,'['=>332 ,'\\'=>500 ,']'=>332 ,'^'=>305 ,
+ '_'=>305 ,'`'=>305 ,'a'=>453 ,'b'=>500 ,'c'=>465 ,'d'=>500 ,'e'=>473 ,
+ 'f'=>254 ,'g'=>473 ,'h'=>500 ,'i'=>242 ,'j'=>242 ,'k'=>492 ,'l'=>242 ,
+ 'm'=>703 ,'n'=>500 ,'o'=>500 ,'p'=>500 ,'q'=>500 ,'r'=>367 ,'s'=>414 ,
+ 't'=>352 ,'u'=>500 ,'v'=>477 ,'w'=>602 ,'x'=>469 ,'y'=>477 ,'z'=>453 ,
+ '{'=>242 ,'|'=>219 ,'}'=>242 ,'~'=>500 )
+);
+
+$GLOBALS['MBTTFDEF'] =& $MBTTFDEF;
+?>
\ No newline at end of file
--- /dev/null
+<?php
+$fpdf_charwidths['symbol']=array(
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
+ ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
+ 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
+ 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
+ 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
+ chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
+ chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
+ chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
+ chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
+ chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
+ chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['times']=array(
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
+ 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
+ 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
+ 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
+ chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
+ chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+ chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['timesB']=array(
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
+ 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
+ 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
+ chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
+ chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['timesBI']=array(
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
+ 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
+ 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
+ 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
+ chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
+ chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
+ chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['timesI']=array(
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
+ 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
+ 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
+ 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
+ chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
+ chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
+ chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
+ chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+ chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
+?>
--- /dev/null
+<?php
+$fpdf_charwidths['zapfdingbats']=array(
+ chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
+ chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
+ ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
+ 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,
+ 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,
+ 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,
+ chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
+ chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,
+ chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,
+ chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
+ chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
+ chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
+?>
--- /dev/null
+<?php
+/*******************************************************************************
+* Software: FPDF *
+* Version: 1.53 *
+* Date: 2004-12-31 *
+* Author: Olivier PLATHEY *
+* License: Freeware *
+* *
+* You may use, modify and redistribute this software as you wish. *
+*******************************************************************************/
+
+if(!class_exists('FPDF', false))
+{
+define('FPDF_VERSION','1.53');
+
+class FPDF
+{
+//Private properties
+var $page; //current page number
+var $n; //current object number
+var $offsets; //array of object offsets
+var $buffer; //buffer holding in-memory PDF
+var $pages; //array containing pages
+var $state; //current document state
+var $compress; //compression flag
+var $DefOrientation; //default orientation
+var $CurOrientation; //current orientation
+var $OrientationChanges; //array indicating orientation changes
+var $k; //scale factor (number of points in user unit)
+var $fwPt,$fhPt; //dimensions of page format in points
+var $fw,$fh; //dimensions of page format in user unit
+var $wPt,$hPt; //current dimensions of page in points
+var $w,$h; //current dimensions of page in user unit
+var $lMargin; //left margin
+var $tMargin; //top margin
+var $rMargin; //right margin
+var $bMargin; //page break margin
+var $cMargin; //cell margin
+var $x,$y; //current position in user unit for cell positioning
+var $lasth; //height of last cell printed
+var $LineWidth; //line width in user unit
+var $CoreFonts; //array of standard font names
+var $fonts; //array of used fonts
+var $FontFiles; //array of font files
+var $diffs; //array of encoding differences
+var $images; //array of used images
+var $PageLinks; //array of links in pages
+var $links; //array of internal links
+var $FontFamily; //current font family
+var $FontStyle; //current font style
+var $underline; //underlining flag
+var $CurrentFont; //current font info
+var $FontSizePt; //current font size in points
+var $FontSize; //current font size in user unit
+var $DrawColor; //commands for drawing color
+var $FillColor; //commands for filling color
+var $TextColor; //commands for text color
+var $ColorFlag; //indicates whether fill and text colors are different
+var $ws; //word spacing
+var $AutoPageBreak; //automatic page breaking
+var $PageBreakTrigger; //threshold used to trigger page breaks
+var $InFooter; //flag set when processing footer
+var $ZoomMode; //zoom display mode
+var $LayoutMode; //layout display mode
+var $title; //title
+var $subject; //subject
+var $author; //author
+var $keywords; //keywords
+var $creator; //creator
+var $AliasNbPages; //alias for total number of pages
+var $PDFVersion; //PDF version number
+
+/*******************************************************************************
+* *
+* Public methods *
+* *
+*******************************************************************************/
+function FPDF($orientation='P',$unit='mm',$format='A4')
+{
+ //Some checks
+ $this->_dochecks();
+ //Initialization of properties
+ $this->page=0;
+ $this->n=2;
+ $this->buffer='';
+ $this->pages=array();
+ $this->OrientationChanges=array();
+ $this->state=0;
+ $this->fonts=array();
+ $this->FontFiles=array();
+ $this->diffs=array();
+ $this->images=array();
+ $this->links=array();
+ $this->InFooter=false;
+ $this->lasth=0;
+ $this->FontFamily='';
+ $this->FontStyle='';
+ $this->FontSizePt=12;
+ $this->underline=false;
+ $this->DrawColor='0 G';
+ $this->FillColor='0 g';
+ $this->TextColor='0 g';
+ $this->ColorFlag=false;
+ $this->ws=0;
+ //Standard fonts
+ $this->CoreFonts=array('courier'=>'Courier','courierB'=>'Courier-Bold','courierI'=>'Courier-Oblique','courierBI'=>'Courier-BoldOblique',
+ 'helvetica'=>'Helvetica','helveticaB'=>'Helvetica-Bold','helveticaI'=>'Helvetica-Oblique','helveticaBI'=>'Helvetica-BoldOblique',
+ 'times'=>'Times-Roman','timesB'=>'Times-Bold','timesI'=>'Times-Italic','timesBI'=>'Times-BoldItalic',
+ 'symbol'=>'Symbol','zapfdingbats'=>'ZapfDingbats');
+ //Scale factor
+ if($unit=='pt')
+ $this->k=1;
+ elseif($unit=='mm')
+ $this->k=72/25.4;
+ elseif($unit=='cm')
+ $this->k=72/2.54;
+ elseif($unit=='in')
+ $this->k=72;
+ else
+ $this->Error('Incorrect unit: '.$unit);
+ //Page format
+ if(is_string($format))
+ {
+ $format=strtolower($format);
+ if($format=='a3')
+ $format=array(841.89,1190.55);
+ elseif($format=='a4')
+ $format=array(595.28,841.89);
+ elseif($format=='a5')
+ $format=array(420.94,595.28);
+ elseif($format=='letter')
+ $format=array(612,792);
+ elseif($format=='legal')
+ $format=array(612,1008);
+ else
+ $this->Error('Unknown page format: '.$format);
+ $this->fwPt=$format[0];
+ $this->fhPt=$format[1];
+ }
+ else
+ {
+ $this->fwPt=$format[0]*$this->k;
+ $this->fhPt=$format[1]*$this->k;
+ }
+ $this->fw=$this->fwPt/$this->k;
+ $this->fh=$this->fhPt/$this->k;
+ //Page orientation
+ $orientation=strtolower($orientation);
+ if($orientation=='p' || $orientation=='portrait')
+ {
+ $this->DefOrientation='P';
+ $this->wPt=$this->fwPt;
+ $this->hPt=$this->fhPt;
+ }
+ elseif($orientation=='l' || $orientation=='landscape')
+ {
+ $this->DefOrientation='L';
+ $this->wPt=$this->fhPt;
+ $this->hPt=$this->fwPt;
+ }
+ else
+ $this->Error('Incorrect orientation: '.$orientation);
+ $this->CurOrientation=$this->DefOrientation;
+ $this->w=$this->wPt/$this->k;
+ $this->h=$this->hPt/$this->k;
+ //Page margins (1 cm)
+ $margin=28.35/$this->k;
+ $this->SetMargins($margin,$margin);
+ //Interior cell margin (1 mm)
+ $this->cMargin=$margin/10;
+ //Line width (0.2 mm)
+ $this->LineWidth=.567/$this->k;
+ //Automatic page break
+ $this->SetAutoPageBreak(true,2*$margin);
+ //Full width display mode
+ $this->SetDisplayMode('fullwidth');
+ //Enable compression
+ $this->SetCompression(true);
+ //Set default PDF version number
+ $this->PDFVersion='1.3';
+}
+
+function SetMargins($left,$top,$right=-1)
+{
+ //Set left, top and right margins
+ $this->lMargin=$left;
+ $this->tMargin=$top;
+ if($right==-1)
+ $right=$left;
+ $this->rMargin=$right;
+}
+
+function SetLeftMargin($margin)
+{
+ //Set left margin
+ $this->lMargin=$margin;
+ if($this->page>0 && $this->x<$margin)
+ $this->x=$margin;
+}
+
+function SetTopMargin($margin)
+{
+ //Set top margin
+ $this->tMargin=$margin;
+}
+
+function SetRightMargin($margin)
+{
+ //Set right margin
+ $this->rMargin=$margin;
+}
+
+function SetAutoPageBreak($auto,$margin=0)
+{
+ //Set auto page break mode and triggering margin
+ $this->AutoPageBreak=$auto;
+ $this->bMargin=$margin;
+ $this->PageBreakTrigger=$this->h-$margin;
+}
+
+function SetDisplayMode($zoom,$layout='continuous')
+{
+ //Set display mode in viewer
+ if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom))
+ $this->ZoomMode=$zoom;
+ else
+ $this->Error('Incorrect zoom display mode: '.$zoom);
+ if($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default')
+ $this->LayoutMode=$layout;
+ else
+ $this->Error('Incorrect layout display mode: '.$layout);
+}
+
+function SetCompression($compress)
+{
+ //Set page compression
+ if(function_exists('gzcompress'))
+ $this->compress=$compress;
+ else
+ $this->compress=false;
+}
+
+function SetTitle($title)
+{
+ //Title of document
+ $this->title=$title;
+}
+
+function SetSubject($subject)
+{
+ //Subject of document
+ $this->subject=$subject;
+}
+
+function SetAuthor($author)
+{
+ //Author of document
+ $this->author=$author;
+}
+
+function SetKeywords($keywords)
+{
+ //Keywords of document
+ $this->keywords=$keywords;
+}
+
+function SetCreator($creator)
+{
+ //Creator of document
+ $this->creator=$creator;
+}
+
+function AliasNbPages($alias='{nb}')
+{
+ //Define an alias for total number of pages
+ $this->AliasNbPages=$alias;
+}
+
+function Error($msg)
+{
+ //Fatal error
+ die('<B>FPDF error: </B>'.$msg);
+}
+
+function Open()
+{
+ //Begin document
+ $this->state=1;
+}
+
+function Close()
+{
+ //Terminate document
+ if($this->state==3)
+ return;
+ if($this->page==0)
+ $this->AddPage();
+ //Page footer
+ $this->InFooter=true;
+ $this->Footer();
+ $this->InFooter=false;
+ //Close page
+ $this->_endpage();
+ //Close document
+ $this->_enddoc();
+}
+
+function AddPage($orientation='')
+{
+ //Start a new page
+ if($this->state==0)
+ $this->Open();
+ $family=$this->FontFamily;
+ $style=$this->FontStyle.($this->underline ? 'U' : '');
+ $size=$this->FontSizePt;
+ $lw=$this->LineWidth;
+ $dc=$this->DrawColor;
+ $fc=$this->FillColor;
+ $tc=$this->TextColor;
+ $cf=$this->ColorFlag;
+ if($this->page>0)
+ {
+ //Page footer
+ $this->InFooter=true;
+ $this->Footer();
+ $this->InFooter=false;
+ //Close page
+ $this->_endpage();
+ }
+ //Start new page
+ $this->_beginpage($orientation);
+ //Set line cap style to square
+ $this->_out('2 J');
+ //Set line width
+ $this->LineWidth=$lw;
+ $this->_out(sprintf('%.2f w',$lw*$this->k));
+ //Set font
+ if($family)
+ $this->SetFont($family,$style,$size);
+ //Set colors
+ $this->DrawColor=$dc;
+ if($dc!='0 G')
+ $this->_out($dc);
+ $this->FillColor=$fc;
+ if($fc!='0 g')
+ $this->_out($fc);
+ $this->TextColor=$tc;
+ $this->ColorFlag=$cf;
+ //Page header
+ $this->Header();
+ //Restore line width
+ if($this->LineWidth!=$lw)
+ {
+ $this->LineWidth=$lw;
+ $this->_out(sprintf('%.2f w',$lw*$this->k));
+ }
+ //Restore font
+ if($family)
+ $this->SetFont($family,$style,$size);
+ //Restore colors
+ if($this->DrawColor!=$dc)
+ {
+ $this->DrawColor=$dc;
+ $this->_out($dc);
+ }
+ if($this->FillColor!=$fc)
+ {
+ $this->FillColor=$fc;
+ $this->_out($fc);
+ }
+ $this->TextColor=$tc;
+ $this->ColorFlag=$cf;
+}
+
+function Header()
+{
+ //To be implemented in your own inherited class
+}
+
+function Footer()
+{
+ //To be implemented in your own inherited class
+}
+
+function PageNo()
+{
+ //Get current page number
+ return $this->page;
+}
+
+function SetDrawColor($r,$g=-1,$b=-1)
+{
+ //Set color for all stroking operations
+ if(($r==0 && $g==0 && $b==0) || $g==-1)
+ $this->DrawColor=sprintf('%.3f G',$r/255);
+ else
+ $this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255);
+ if($this->page>0)
+ $this->_out($this->DrawColor);
+}
+
+function SetFillColor($r,$g=-1,$b=-1)
+{
+ //Set color for all filling operations
+ if(($r==0 && $g==0 && $b==0) || $g==-1)
+ $this->FillColor=sprintf('%.3f g',$r/255);
+ else
+ $this->FillColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255);
+ $this->ColorFlag=($this->FillColor!=$this->TextColor);
+ if($this->page>0)
+ $this->_out($this->FillColor);
+}
+
+function SetTextColor($r,$g=-1,$b=-1)
+{
+ //Set color for text
+ if(($r==0 && $g==0 && $b==0) || $g==-1)
+ $this->TextColor=sprintf('%.3f g',$r/255);
+ else
+ $this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255);
+ $this->ColorFlag=($this->FillColor!=$this->TextColor);
+}
+
+function GetStringWidth($s)
+{
+ //Get width of a string in the current font
+ $s=(string)$s;
+ $cw=&$this->CurrentFont['cw'];
+ $w=0;
+ $l=strlen($s);
+ for($i=0;$i<$l;$i++)
+ $w+=$cw[$s{$i}];
+ return $w*$this->FontSize/1000;
+}
+
+function SetLineWidth($width)
+{
+ //Set line width
+ $this->LineWidth=$width;
+ if($this->page>0)
+ $this->_out(sprintf('%.2f w',$width*$this->k));
+}
+
+function Line($x1,$y1,$x2,$y2)
+{
+ //Draw a line
+ $this->_out(sprintf('%.2f %.2f m %.2f %.2f l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k));
+}
+
+function Rect($x,$y,$w,$h,$style='')
+{
+ //Draw a rectangle
+ if($style=='F')
+ $op='f';
+ elseif($style=='FD' || $style=='DF')
+ $op='B';
+ else
+ $op='S';
+ $this->_out(sprintf('%.2f %.2f %.2f %.2f re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));
+}
+
+function AddFont($family,$style='',$file='')
+{
+ //Add a TrueType or Type1 font
+ $family=strtolower($family);
+ if($file=='')
+ $file=str_replace(' ','',$family).strtolower($style).'.php';
+ if($family=='arial')
+ $family='helvetica';
+ $style=strtoupper($style);
+ if($style=='IB')
+ $style='BI';
+ $fontkey=$family.$style;
+ if(isset($this->fonts[$fontkey]))
+ $this->Error('Font already added: '.$family.' '.$style);
+ include($this->_getfontpath().$file);
+ if(!isset($name))
+ $this->Error('Could not include font definition file');
+ $i=count($this->fonts)+1;
+ $this->fonts[$fontkey]=array('i'=>$i,'type'=>$type,'name'=>$name,'desc'=>$desc,'up'=>$up,'ut'=>$ut,'cw'=>$cw,'enc'=>$enc,'file'=>$file);
+ if($diff)
+ {
+ //Search existing encodings
+ $d=0;
+ $nb=count($this->diffs);
+ for($i=1;$i<=$nb;$i++)
+ {
+ if($this->diffs[$i]==$diff)
+ {
+ $d=$i;
+ break;
+ }
+ }
+ if($d==0)
+ {
+ $d=$nb+1;
+ $this->diffs[$d]=$diff;
+ }
+ $this->fonts[$fontkey]['diff']=$d;
+ }
+ if($file)
+ {
+ if($type=='TrueType')
+ $this->FontFiles[$file]=array('length1'=>$originalsize);
+ else
+ $this->FontFiles[$file]=array('length1'=>$size1,'length2'=>$size2);
+ }
+}
+
+function SetFont($family,$style='',$size=0)
+{
+ //Select a font; size given in points
+ global $fpdf_charwidths;
+
+ $family=strtolower($family);
+ if($family=='')
+ $family=$this->FontFamily;
+ if($family=='arial')
+ $family='helvetica';
+ elseif($family=='symbol' || $family=='zapfdingbats')
+ $style='';
+ $style=strtoupper($style);
+ if(strpos($style,'U')!==false)
+ {
+ $this->underline=true;
+ $style=str_replace('U','',$style);
+ }
+ else
+ $this->underline=false;
+ if($style=='IB')
+ $style='BI';
+ if($size==0)
+ $size=$this->FontSizePt;
+ //Test if font is already selected
+ if($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size)
+ return;
+ //Test if used for the first time
+ $fontkey=$family.$style;
+ if(!isset($this->fonts[$fontkey]))
+ {
+ //Check if one of the standard fonts
+ if(isset($this->CoreFonts[$fontkey]))
+ {
+ if(!isset($fpdf_charwidths[$fontkey]))
+ {
+ //Load metric file
+ $file=$family;
+ if($family=='times' || $family=='helvetica')
+ $file.=strtolower($style);
+ include($this->_getfontpath().$file.'.php');
+ if(!isset($fpdf_charwidths[$fontkey]))
+ $this->Error('Could not include font metric file');
+ }
+ $i=count($this->fonts)+1;
+ $this->fonts[$fontkey]=array('i'=>$i,'type'=>'core','name'=>$this->CoreFonts[$fontkey],'up'=>-100,'ut'=>50,'cw'=>$fpdf_charwidths[$fontkey]);
+ }
+ else
+ $this->Error('Undefined font: '.$family.' '.$style);
+ }
+ //Select it
+ $this->FontFamily=$family;
+ $this->FontStyle=$style;
+ $this->FontSizePt=$size;
+ $this->FontSize=$size/$this->k;
+ $this->CurrentFont=&$this->fonts[$fontkey];
+ if($this->page>0)
+ $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));
+}
+
+function SetFontSize($size)
+{
+ //Set font size in points
+ if($this->FontSizePt==$size)
+ return;
+ $this->FontSizePt=$size;
+ $this->FontSize=$size/$this->k;
+ if($this->page>0)
+ $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));
+}
+
+function AddLink()
+{
+ //Create a new internal link
+ $n=count($this->links)+1;
+ $this->links[$n]=array(0,0);
+ return $n;
+}
+
+function SetLink($link,$y=0,$page=-1)
+{
+ //Set destination of internal link
+ if($y==-1)
+ $y=$this->y;
+ if($page==-1)
+ $page=$this->page;
+ $this->links[$link]=array($page,$y);
+}
+
+function Link($x,$y,$w,$h,$link)
+{
+ //Put a link on the page
+ $this->PageLinks[$this->page][]=array($x*$this->k,$this->hPt-$y*$this->k,$w*$this->k,$h*$this->k,$link);
+}
+
+function Text($x,$y,$txt)
+{
+ //Output a string
+ $s=sprintf('BT %.2f %.2f Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
+ if($this->underline && $txt!='')
+ $s.=' '.$this->_dounderline($x,$y,$txt);
+ if($this->ColorFlag)
+ $s='q '.$this->TextColor.' '.$s.' Q';
+ $this->_out($s);
+}
+
+function AcceptPageBreak()
+{
+ //Accept automatic page break or not
+ return $this->AutoPageBreak;
+}
+
+function Cell($w,$h=0,$txt='',$border=0,$ln=0,$align='',$fill=0,$link='')
+{
+ //Output a cell
+ $k=$this->k;
+ if($this->y+$h>$this->PageBreakTrigger && !$this->InFooter && $this->AcceptPageBreak())
+ {
+ //Automatic page break
+ $x=$this->x;
+ $ws=$this->ws;
+ if($ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ $this->AddPage($this->CurOrientation);
+ $this->x=$x;
+ if($ws>0)
+ {
+ $this->ws=$ws;
+ $this->_out(sprintf('%.3f Tw',$ws*$k));
+ }
+ }
+ if($w==0)
+ $w=$this->w-$this->rMargin-$this->x;
+ $s='';
+ if($fill==1 || $border==1)
+ {
+ if($fill==1)
+ $op=($border==1) ? 'B' : 'f';
+ else
+ $op='S';
+ $s=sprintf('%.2f %.2f %.2f %.2f re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op);
+ }
+ if(is_string($border))
+ {
+ $x=$this->x;
+ $y=$this->y;
+ if(strpos($border,'L')!==false)
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k);
+ if(strpos($border,'T')!==false)
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k);
+ if(strpos($border,'R')!==false)
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
+ if(strpos($border,'B')!==false)
+ $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
+ }
+ if($txt!=='')
+ {
+ if($align=='R')
+ $dx=$w-$this->cMargin-$this->GetStringWidth($txt);
+ elseif($align=='C')
+ $dx=($w-$this->GetStringWidth($txt))/2;
+ else
+ $dx=$this->cMargin;
+ if($this->ColorFlag)
+ $s.='q '.$this->TextColor.' ';
+ $txt2=str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$txt)));
+ $s.=sprintf('BT %.2f %.2f Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$txt2);
+ if($this->underline)
+ $s.=' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt);
+ if($this->ColorFlag)
+ $s.=' Q';
+ if($link)
+ $this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link);
+ }
+ if($s)
+ $this->_out($s);
+ $this->lasth=$h;
+ if($ln>0)
+ {
+ //Go to next line
+ $this->y+=$h;
+ if($ln==1)
+ $this->x=$this->lMargin;
+ }
+ else
+ $this->x+=$w;
+}
+
+function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0)
+{
+ //Output text with automatic or explicit line breaks
+ $cw=&$this->CurrentFont['cw'];
+ if($w==0)
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $s=str_replace("\r",'',$txt);
+ $nb=strlen($s);
+ if($nb>0 && $s[$nb-1]=="\n")
+ $nb--;
+ $b=0;
+ if($border)
+ {
+ if($border==1)
+ {
+ $border='LTRB';
+ $b='LRT';
+ $b2='LR';
+ }
+ else
+ {
+ $b2='';
+ if(strpos($border,'L')!==false)
+ $b2.='L';
+ if(strpos($border,'R')!==false)
+ $b2.='R';
+ $b=(strpos($border,'T')!==false) ? $b2.'T' : $b2;
+ }
+ }
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $ns=0;
+ $nl=1;
+ while($i<$nb)
+ {
+ //Get next character
+ $c=$s{$i};
+ if($c=="\n")
+ {
+ //Explicit line break
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ $i++;
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border && $nl==2)
+ $b=$b2;
+ continue;
+ }
+ if($c==' ')
+ {
+ $sep=$i;
+ $ls=$l;
+ $ns++;
+ }
+ $l+=$cw[$c];
+ if($l>$wmax)
+ {
+ //Automatic line break
+ if($sep==-1)
+ {
+ if($i==$j)
+ $i++;
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ }
+ else
+ {
+ if($align=='J')
+ {
+ $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0;
+ $this->_out(sprintf('%.3f Tw',$this->ws*$this->k));
+ }
+ $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill);
+ $i=$sep+1;
+ }
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border && $nl==2)
+ $b=$b2;
+ }
+ else
+ $i++;
+ }
+ //Last chunk
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ if($border && strpos($border,'B')!==false)
+ $b.='B';
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ $this->x=$this->lMargin;
+}
+
+function Write($h,$txt,$link='')
+{
+ //Output text in flowing mode
+ $cw=&$this->CurrentFont['cw'];
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $s=str_replace("\r",'',$txt);
+ $nb=strlen($s);
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $nl=1;
+ while($i<$nb)
+ {
+ //Get next character
+ $c=$s{$i};
+ if($c=="\n")
+ {
+ //Explicit line break
+ $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
+ $i++;
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ if($nl==1)
+ {
+ $this->x=$this->lMargin;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ }
+ $nl++;
+ continue;
+ }
+ if($c==' ')
+ $sep=$i;
+ $l+=$cw[$c];
+ if($l>$wmax)
+ {
+ //Automatic line break
+ if($sep==-1)
+ {
+ if($this->x>$this->lMargin)
+ {
+ //Move to next line
+ $this->x=$this->lMargin;
+ $this->y+=$h;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $i++;
+ $nl++;
+ continue;
+ }
+ if($i==$j)
+ $i++;
+ $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
+ }
+ else
+ {
+ $this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',0,$link);
+ $i=$sep+1;
+ }
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ if($nl==1)
+ {
+ $this->x=$this->lMargin;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ }
+ $nl++;
+ }
+ else
+ $i++;
+ }
+ //Last chunk
+ if($i!=$j)
+ $this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',0,$link);
+}
+
+function Image($file,$x,$y,$w=0,$h=0,$type='',$link='')
+{
+ //Put an image on the page
+ if(!isset($this->images[$file]))
+ {
+ //First use of image, get info
+ if($type=='')
+ {
+ $pos=strrpos($file,'.');
+ if(!$pos)
+ $this->Error('Image file has no extension and no type was specified: '.$file);
+ $type=substr($file,$pos+1);
+ }
+ $type=strtolower($type);
+ $mqr=get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
+ if($type=='jpg' || $type=='jpeg')
+ $info=$this->_parsejpg($file);
+ elseif($type=='png')
+ $info=$this->_parsepng($file);
+ else
+ {
+ //Allow for additional formats
+ $mtd='_parse'.$type;
+ if(!method_exists($this,$mtd))
+ $this->Error('Unsupported image type: '.$type);
+ $info=$this->$mtd($file);
+ }
+ set_magic_quotes_runtime($mqr);
+ $info['i']=count($this->images)+1;
+ $this->images[$file]=$info;
+ }
+ else
+ $info=$this->images[$file];
+ //Automatic width and height calculation if needed
+ if($w==0 && $h==0)
+ {
+ //Put image at 72 dpi
+ $w=$info['w']/$this->k;
+ $h=$info['h']/$this->k;
+ }
+ if($w==0)
+ $w=$h*$info['w']/$info['h'];
+ if($h==0)
+ $h=$w*$info['h']/$info['w'];
+ $this->_out(sprintf('q %.2f 0 0 %.2f %.2f %.2f cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i']));
+ if($link)
+ $this->Link($x,$y,$w,$h,$link);
+}
+
+function Ln($h='')
+{
+ //Line feed; default value is last cell height
+ $this->x=$this->lMargin;
+ if(is_string($h))
+ $this->y+=$this->lasth;
+ else
+ $this->y+=$h;
+}
+
+function GetX()
+{
+ //Get x position
+ return $this->x;
+}
+
+function SetX($x)
+{
+ //Set x position
+ if($x>=0)
+ $this->x=$x;
+ else
+ $this->x=$this->w+$x;
+}
+
+function GetY()
+{
+ //Get y position
+ return $this->y;
+}
+
+function SetY($y)
+{
+ //Set y position and reset x
+ $this->x=$this->lMargin;
+ if($y>=0)
+ $this->y=$y;
+ else
+ $this->y=$this->h+$y;
+}
+
+function SetXY($x,$y)
+{
+ //Set x and y positions
+ $this->SetY($y);
+ $this->SetX($x);
+}
+
+function Output($name='',$dest='')
+{
+ //Output PDF to some destination
+ //Finish document if necessary
+ if($this->state<3)
+ $this->Close();
+ //Normalize parameters
+ if(is_bool($dest))
+ $dest=$dest ? 'D' : 'F';
+ $dest=strtoupper($dest);
+ if($dest=='')
+ {
+ if($name=='')
+ {
+ $name='doc.pdf';
+ $dest='I';
+ }
+ else {
+ $dest='D';
+// $dest='F';
+ }
+ }
+ switch($dest)
+ {
+ case 'I':
+ //Send to standard output
+ ob_start();
+ if(ob_get_contents())
+ $this->Error('Some data has already been output, can\'t send PDF file');
+ if(php_sapi_name()!='cli')
+ {
+ //We send to a browser
+ header('Content-Type: application/pdf');
+ if(headers_sent())
+ $this->Error('Some data has already been output to browser, can\'t send PDF file');
+ header('Content-Length: '.strlen($this->buffer));
+ header('Content-disposition: inline; filename="'.$name.'"');
+ }
+ echo $this->buffer;
+ ob_flush();
+ ob_end_clean();
+ break;
+ case 'D':
+ //Download file
+ ob_start();
+ if(ob_get_contents())
+ $this->Error('Some data has already been output, can\'t send PDF file');
+ if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE'))
+ header('Content-Type: application/force-download');
+ else
+ header('Content-Type: application/octet-stream');
+ if(headers_sent())
+ $this->Error('Some data has already been output to browser, can\'t send PDF file');
+ header('Content-Length: '.strlen($this->buffer));
+ header('Content-disposition: attachment; filename="'.$name.'"');
+ echo $this->buffer;
+ ob_flush();
+ ob_end_clean();
+ break;
+ case 'F':
+ //Save to local file
+ $f=fopen($name,'wb');
+ if(!$f)
+ $this->Error('Unable to create output file: '.$name);
+ fwrite($f,$this->buffer,strlen($this->buffer));
+ fclose($f);
+ break;
+ case 'S':
+ //Return as a string
+ return $this->buffer;
+ default:
+ $this->Error('Incorrect output destination: '.$dest);
+ }
+ return '';
+}
+
+/*******************************************************************************
+* *
+* Protected methods *
+* *
+*******************************************************************************/
+function _dochecks()
+{
+ //Check for locale-related bug
+ if(1.1==1)
+ $this->Error('Don\'t alter the locale before including class file');
+ //Check for decimal separator
+ if(sprintf('%.1f',1.0)!='1.0')
+ setlocale(LC_NUMERIC,'C');
+}
+
+function _getfontpath()
+{
+ if(!defined('FPDF_FONTPATH') && is_dir(dirname(__FILE__).'/font'))
+ define('FPDF_FONTPATH',dirname(__FILE__).'/font/');
+ return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : '';
+}
+
+function _putpages()
+{
+ $nb=$this->page;
+ if(!empty($this->AliasNbPages))
+ {
+ //Replace number of pages
+ for($n=1;$n<=$nb;$n++)
+ $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]);
+ }
+ if($this->DefOrientation=='P')
+ {
+ $wPt=$this->fwPt;
+ $hPt=$this->fhPt;
+ }
+ else
+ {
+ $wPt=$this->fhPt;
+ $hPt=$this->fwPt;
+ }
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ for($n=1;$n<=$nb;$n++)
+ {
+ //Page
+ $this->_newobj();
+ $this->_out('<</Type /Page');
+ $this->_out('/Parent 1 0 R');
+ if(isset($this->OrientationChanges[$n]))
+ $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$hPt,$wPt));
+ $this->_out('/Resources 2 0 R');
+ if(isset($this->PageLinks[$n]))
+ {
+ //Links
+ $annots='/Annots [';
+ foreach($this->PageLinks[$n] as $pl)
+ {
+ $rect=sprintf('%.2f %.2f %.2f %.2f',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]);
+ $annots.='<</Type /Annot /Subtype /Link /Rect ['.$rect.'] /Border [0 0 0] ';
+ if(is_string($pl[4]))
+ $annots.='/A <</S /URI /URI '.$this->_textstring($pl[4]).'>>>>';
+ else
+ {
+ $l=$this->links[$pl[4]];
+ $h=isset($this->OrientationChanges[$l[0]]) ? $wPt : $hPt;
+ $annots.=sprintf('/Dest [%d 0 R /XYZ 0 %.2f null]>>',1+2*$l[0],$h-$l[1]*$this->k);
+ }
+ }
+ $this->_out($annots.']');
+ }
+ $this->_out('/Contents '.($this->n+1).' 0 R>>');
+ $this->_out('endobj');
+ //Page content
+ $p=($this->compress) ? gzcompress($this->pages[$n]) : $this->pages[$n];
+ $this->_newobj();
+ $this->_out('<<'.$filter.'/Length '.strlen($p).'>>');
+ $this->_putstream($p);
+ $this->_out('endobj');
+ }
+ //Pages root
+ $this->offsets[1]=strlen($this->buffer);
+ $this->_out('1 0 obj');
+ $this->_out('<</Type /Pages');
+ $kids='/Kids [';
+ for($i=0;$i<$nb;$i++)
+ $kids.=(3+2*$i).' 0 R ';
+ $this->_out($kids.']');
+ $this->_out('/Count '.$nb);
+ $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$wPt,$hPt));
+ $this->_out('>>');
+ $this->_out('endobj');
+}
+
+function _putfonts()
+{
+ $nf=$this->n;
+ foreach($this->diffs as $diff)
+ {
+ //Encodings
+ $this->_newobj();
+ $this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
+ $this->_out('endobj');
+ }
+ $mqr=get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
+ foreach($this->FontFiles as $file=>$info)
+ {
+ //Font file embedding
+ $this->_newobj();
+ $this->FontFiles[$file]['n']=$this->n;
+ $font='';
+ $f=fopen($this->_getfontpath().$file,'rb',1);
+ if(!$f)
+ $this->Error('Font file not found');
+ while(!feof($f))
+ $font.=fread($f,8192);
+ fclose($f);
+ $compressed=(substr($file,-2)=='.z');
+ if(!$compressed && isset($info['length2']))
+ {
+ $header=(ord($font{0})==128);
+ if($header)
+ {
+ //Strip first binary header
+ $font=substr($font,6);
+ }
+ if($header && ord($font{$info['length1']})==128)
+ {
+ //Strip second binary header
+ $font=substr($font,0,$info['length1']).substr($font,$info['length1']+6);
+ }
+ }
+ $this->_out('<</Length '.strlen($font));
+ if($compressed)
+ $this->_out('/Filter /FlateDecode');
+ $this->_out('/Length1 '.$info['length1']);
+ if(isset($info['length2']))
+ $this->_out('/Length2 '.$info['length2'].' /Length3 0');
+ $this->_out('>>');
+ $this->_putstream($font);
+ $this->_out('endobj');
+ }
+ set_magic_quotes_runtime($mqr);
+ foreach($this->fonts as $k=>$font)
+ {
+ //Font objects
+ $this->fonts[$k]['n']=$this->n+1;
+ $type=$font['type'];
+ $name=$font['name'];
+ if($type=='core')
+ {
+ //Standard font
+ $this->_newobj();
+ $this->_out('<</Type /Font');
+ $this->_out('/BaseFont /'.$name);
+ $this->_out('/Subtype /Type1');
+ if($name!='Symbol' && $name!='ZapfDingbats')
+ $this->_out('/Encoding /WinAnsiEncoding');
+ $this->_out('>>');
+ $this->_out('endobj');
+ }
+ elseif($type=='Type1' || $type=='TrueType')
+ {
+ //Additional Type1 or TrueType font
+ $this->_newobj();
+ $this->_out('<</Type /Font');
+ $this->_out('/BaseFont /'.$name);
+ $this->_out('/Subtype /'.$type);
+ $this->_out('/FirstChar 32 /LastChar 255');
+ $this->_out('/Widths '.($this->n+1).' 0 R');
+ $this->_out('/FontDescriptor '.($this->n+2).' 0 R');
+ if($font['enc'])
+ {
+ if(isset($font['diff']))
+ $this->_out('/Encoding '.($nf+$font['diff']).' 0 R');
+ else
+ $this->_out('/Encoding /WinAnsiEncoding');
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Widths
+ $this->_newobj();
+ $cw=&$font['cw'];
+ $s='[';
+ for($i=32;$i<=255;$i++)
+ $s.=$cw[chr($i)].' ';
+ $this->_out($s.']');
+ $this->_out('endobj');
+ //Descriptor
+ $this->_newobj();
+ $s='<</Type /FontDescriptor /FontName /'.$name;
+ foreach($font['desc'] as $k=>$v)
+ $s.=' /'.$k.' '.$v;
+ $file=$font['file'];
+ if($file)
+ $s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R';
+ $this->_out($s.'>>');
+ $this->_out('endobj');
+ }
+ else
+ {
+ //Allow for additional types
+ $mtd='_put'.strtolower($type);
+ if(!method_exists($this,$mtd))
+ $this->Error('Unsupported font type: '.$type);
+ $this->$mtd($font);
+ }
+ }
+}
+
+function _putimages()
+{
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ reset($this->images);
+ while(list($file,$info)=each($this->images))
+ {
+ $this->_newobj();
+ $this->images[$file]['n']=$this->n;
+ $this->_out('<</Type /XObject');
+ $this->_out('/Subtype /Image');
+ $this->_out('/Width '.$info['w']);
+ $this->_out('/Height '.$info['h']);
+ if($info['cs']=='Indexed')
+ $this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]');
+ else
+ {
+ $this->_out('/ColorSpace /'.$info['cs']);
+ if($info['cs']=='DeviceCMYK')
+ $this->_out('/Decode [1 0 1 0 1 0 1 0]');
+ }
+ $this->_out('/BitsPerComponent '.$info['bpc']);
+ if(isset($info['f']))
+ $this->_out('/Filter /'.$info['f']);
+ if(isset($info['parms']))
+ $this->_out($info['parms']);
+ if(isset($info['trns']) && is_array($info['trns']))
+ {
+ $trns='';
+ for($i=0;$i<count($info['trns']);$i++)
+ $trns.=$info['trns'][$i].' '.$info['trns'][$i].' ';
+ $this->_out('/Mask ['.$trns.']');
+ }
+ $this->_out('/Length '.strlen($info['data']).'>>');
+ $this->_putstream($info['data']);
+ unset($this->images[$file]['data']);
+ $this->_out('endobj');
+ //Palette
+ if($info['cs']=='Indexed')
+ {
+ $this->_newobj();
+ $pal=($this->compress) ? gzcompress($info['pal']) : $info['pal'];
+ $this->_out('<<'.$filter.'/Length '.strlen($pal).'>>');
+ $this->_putstream($pal);
+ $this->_out('endobj');
+ }
+ }
+}
+
+function _putxobjectdict()
+{
+ foreach($this->images as $image)
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+}
+
+function _putresourcedict()
+{
+ $this->_out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ $this->_out('/Font <<');
+ foreach($this->fonts as $font)
+ $this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
+ $this->_out('>>');
+ $this->_out('/XObject <<');
+ $this->_putxobjectdict();
+ $this->_out('>>');
+}
+
+function _putresources()
+{
+ $this->_putfonts();
+ $this->_putimages();
+ //Resource dictionary
+ $this->offsets[2]=strlen($this->buffer);
+ $this->_out('2 0 obj');
+ $this->_out('<<');
+ $this->_putresourcedict();
+ $this->_out('>>');
+ $this->_out('endobj');
+}
+
+function _putinfo()
+{
+ $this->_out('/Producer '.$this->_textstring('FPDF '.FPDF_VERSION));
+ if(!empty($this->title))
+ $this->_out('/Title '.$this->_textstring($this->title));
+ if(!empty($this->subject))
+ $this->_out('/Subject '.$this->_textstring($this->subject));
+ if(!empty($this->author))
+ $this->_out('/Author '.$this->_textstring($this->author));
+ if(!empty($this->keywords))
+ $this->_out('/Keywords '.$this->_textstring($this->keywords));
+ if(!empty($this->creator))
+ $this->_out('/Creator '.$this->_textstring($this->creator));
+ $this->_out('/CreationDate '.$this->_textstring('D:'.date('YmdHis')));
+}
+
+function _putcatalog()
+{
+ $this->_out('/Type /Catalog');
+ $this->_out('/Pages 1 0 R');
+ if($this->ZoomMode=='fullpage')
+ $this->_out('/OpenAction [3 0 R /Fit]');
+ elseif($this->ZoomMode=='fullwidth')
+ $this->_out('/OpenAction [3 0 R /FitH null]');
+ elseif($this->ZoomMode=='real')
+ $this->_out('/OpenAction [3 0 R /XYZ null null 1]');
+ elseif(!is_string($this->ZoomMode))
+ $this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']');
+ if($this->LayoutMode=='single')
+ $this->_out('/PageLayout /SinglePage');
+ elseif($this->LayoutMode=='continuous')
+ $this->_out('/PageLayout /OneColumn');
+ elseif($this->LayoutMode=='two')
+ $this->_out('/PageLayout /TwoColumnLeft');
+}
+
+function _putheader()
+{
+ $this->_out('%PDF-'.$this->PDFVersion);
+}
+
+function _puttrailer()
+{
+ $this->_out('/Size '.($this->n+1));
+ $this->_out('/Root '.$this->n.' 0 R');
+ $this->_out('/Info '.($this->n-1).' 0 R');
+}
+
+function _enddoc()
+{
+ $this->_putheader();
+ $this->_putpages();
+ $this->_putresources();
+ //Info
+ $this->_newobj();
+ $this->_out('<<');
+ $this->_putinfo();
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Catalog
+ $this->_newobj();
+ $this->_out('<<');
+ $this->_putcatalog();
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Cross-ref
+ $o=strlen($this->buffer);
+ $this->_out('xref');
+ $this->_out('0 '.($this->n+1));
+ $this->_out('0000000000 65535 f ');
+ for($i=1;$i<=$this->n;$i++)
+ $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i]));
+ //Trailer
+ $this->_out('trailer');
+ $this->_out('<<');
+ $this->_puttrailer();
+ $this->_out('>>');
+ $this->_out('startxref');
+ $this->_out($o);
+ $this->_out('%%EOF');
+ $this->state=3;
+}
+
+function _beginpage($orientation)
+{
+ $this->page++;
+ $this->pages[$this->page]='';
+ $this->state=2;
+ $this->x=$this->lMargin;
+ $this->y=$this->tMargin;
+ $this->FontFamily='';
+ //Page orientation
+ if(!$orientation)
+ $orientation=$this->DefOrientation;
+ else
+ {
+ $orientation=strtoupper($orientation{0});
+ if($orientation!=$this->DefOrientation)
+ $this->OrientationChanges[$this->page]=true;
+ }
+ if($orientation!=$this->CurOrientation)
+ {
+ //Change orientation
+ if($orientation=='P')
+ {
+ $this->wPt=$this->fwPt;
+ $this->hPt=$this->fhPt;
+ $this->w=$this->fw;
+ $this->h=$this->fh;
+ }
+ else
+ {
+ $this->wPt=$this->fhPt;
+ $this->hPt=$this->fwPt;
+ $this->w=$this->fh;
+ $this->h=$this->fw;
+ }
+ $this->PageBreakTrigger=$this->h-$this->bMargin;
+ $this->CurOrientation=$orientation;
+ }
+}
+
+function _endpage()
+{
+ //End of page contents
+ $this->state=1;
+}
+
+function _newobj()
+{
+ //Begin a new object
+ $this->n++;
+ $this->offsets[$this->n]=strlen($this->buffer);
+ $this->_out($this->n.' 0 obj');
+}
+
+function _dounderline($x,$y,$txt)
+{
+ //Underline text
+ $up=$this->CurrentFont['up'];
+ $ut=$this->CurrentFont['ut'];
+ $w=$this->GetStringWidth($txt)+$this->ws*substr_count($txt,' ');
+ return sprintf('%.2f %.2f %.2f %.2f re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt);
+}
+
+function _parsejpg($file)
+{
+ //Extract info from a JPEG file
+ $a=GetImageSize($file);
+ if(!$a)
+ $this->Error('Missing or incorrect image file: '.$file);
+ if($a[2]!=2)
+ $this->Error('Not a JPEG file: '.$file);
+ if(!isset($a['channels']) || $a['channels']==3)
+ $colspace='DeviceRGB';
+ elseif($a['channels']==4)
+ $colspace='DeviceCMYK';
+ else
+ $colspace='DeviceGray';
+ $bpc=isset($a['bits']) ? $a['bits'] : 8;
+ //Read whole file
+ $f=fopen($file,'rb');
+ $data='';
+ while(!feof($f))
+ $data.=fread($f,4096);
+ fclose($f);
+ return array('w'=>$a[0],'h'=>$a[1],'cs'=>$colspace,'bpc'=>$bpc,'f'=>'DCTDecode','data'=>$data);
+}
+
+function _parsepng($file)
+{
+ //Extract info from a PNG file
+ $f=fopen($file,'rb');
+ if(!$f)
+ $this->Error('Can\'t open image file: '.$file);
+ //Check signature
+ if(fread($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10))
+ $this->Error('Not a PNG file: '.$file);
+ //Read header chunk
+ fread($f,4);
+ if(fread($f,4)!='IHDR')
+ $this->Error('Incorrect PNG file: '.$file);
+ $w=$this->_freadint($f);
+ $h=$this->_freadint($f);
+ $bpc=ord(fread($f,1));
+ if($bpc>8)
+ $this->Error('16-bit depth not supported: '.$file);
+ $ct=ord(fread($f,1));
+ if($ct==0)
+ $colspace='DeviceGray';
+ elseif($ct==2)
+ $colspace='DeviceRGB';
+ elseif($ct==3)
+ $colspace='Indexed';
+ else
+ $this->Error('Alpha channel not supported: '.$file);
+ if(ord(fread($f,1))!=0)
+ $this->Error('Unknown compression method: '.$file);
+ if(ord(fread($f,1))!=0)
+ $this->Error('Unknown filter method: '.$file);
+ if(ord(fread($f,1))!=0)
+ $this->Error('Interlacing not supported: '.$file);
+ fread($f,4);
+ $parms='/DecodeParms <</Predictor 15 /Colors '.($ct==2 ? 3 : 1).' /BitsPerComponent '.$bpc.' /Columns '.$w.'>>';
+ //Scan chunks looking for palette, transparency and image data
+ $pal='';
+ $trns='';
+ $data='';
+ do
+ {
+ $n=$this->_freadint($f);
+ $type=fread($f,4);
+ if($type=='PLTE')
+ {
+ //Read palette
+ $pal=fread($f,$n);
+ fread($f,4);
+ }
+ elseif($type=='tRNS')
+ {
+ //Read transparency info
+ $t=fread($f,$n);
+ if($ct==0)
+ $trns=array(ord(substr($t,1,1)));
+ elseif($ct==2)
+ $trns=array(ord(substr($t,1,1)),ord(substr($t,3,1)),ord(substr($t,5,1)));
+ else
+ {
+ $pos=strpos($t,chr(0));
+ if($pos!==false)
+ $trns=array($pos);
+ }
+ fread($f,4);
+ }
+ elseif($type=='IDAT')
+ {
+ //Read image data block
+ $data.=fread($f,$n);
+ fread($f,4);
+ }
+ elseif($type=='IEND')
+ break;
+ else
+ fread($f,$n+4);
+ }
+ while($n);
+ if($colspace=='Indexed' && empty($pal))
+ $this->Error('Missing palette in '.$file);
+ fclose($f);
+ return array('w'=>$w,'h'=>$h,'cs'=>$colspace,'bpc'=>$bpc,'f'=>'FlateDecode','parms'=>$parms,'pal'=>$pal,'trns'=>$trns,'data'=>$data);
+}
+
+function _freadint($f)
+{
+ //Read a 4-byte integer from file
+ $a=unpack('Ni',fread($f,4));
+ return $a['i'];
+}
+
+function _textstring($s)
+{
+ //Format a text string
+ return '('.$this->_escape($s).')';
+}
+
+function _escape($s)
+{
+ //Add \ before \, ( and )
+ return str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$s)));
+}
+
+function _putstream($s)
+{
+ $this->_out('stream');
+ $this->_out($s);
+ $this->_out('endstream');
+}
+
+function _out($s)
+{
+ //Add a line to the document
+ if($this->state==2)
+ $this->pages[$this->page].=$s."\n";
+ else
+ $this->buffer.=$s."\n";
+}
+//End of class
+}
+
+//Handle special IE contype request
+if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT']=='contype')
+{
+ header('Content-Type: application/pdf');
+ exit;
+}
+
+}
+?>
--- /dev/null
+<?php
+//
+// fpdf_tpl - Version 1.0.2
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+require_once("fpdf.php");
+
+class fpdf_tpl extends fpdf {
+ /**
+ * Array of Tpl-Data
+ * @var array
+ */
+ var $tpls = array();
+
+ /**
+ * Current Template-ID
+ * @var int
+ */
+ var $tpl = 0;
+
+ /**
+ * "In Template"-Flag
+ * @var boolean
+ */
+ var $intpl = false;
+
+ /**
+ * Nameprefix of Templates used in Resources-Dictonary
+ * @var string A String defining the Prefix used as Template-Object-Names. Have to beginn with an /
+ */
+ var $tplprefix = "/TPL";
+
+ /**
+ * Nameprefix of Fonts used in Resources-Dictonary
+ * (not realy needed, but for future versions with import-function needed)
+ * @var string
+ */
+ var $fontprefix = "/F";
+
+ /**
+ * Resources used By Templates and Pages
+ * @var array
+ */
+ var $res = array();
+
+ /**
+ * Constructor
+ * See FPDF-Documentation
+ * @param string $orientation
+ * @param string $unit
+ * @param mixed $format
+ */
+ function fpdf_tpl($orientation='P',$unit='mm',$format='A4') {
+ parent::fpdf($orientation,$unit,$format);
+ }
+
+ /**
+ * Start a Template
+ *
+ * This method starts a template. You can give own coordinates to build an own sized
+ * Template. Pay attention, that the margins are adapted to the new templatesize.
+ * If you want to write outside the template, for example to build a clipped Template,
+ * you have to set the Margins and "Cursor"-Position manual after beginTemplate-Call.
+ *
+ * If no parameter is given, the template uses the current page-size.
+ * The Method returns an ID of the current Template. This ID is used later for using this template.
+ * Warning: A created Template is used in PDF at all events. Still if you don't use it after creation!
+ *
+ * @param int $x The x-coordinate given in user-unit
+ * @param int $y The y-coordinate given in user-unit
+ * @param int $w The width given in user-unit
+ * @param int $h The height given in user-unit
+ * @return int The ID of new created Template
+ */
+ function beginTemplate($x=null,$y=null,$w=null,$h=null) {
+ if ($this->page <= 0)
+ $this->error("You have to add a page to fpdf first!");
+
+ // Save settings
+ $this->tpl++;
+ $this->tpls[$this->tpl]['o_x'] = $this->x;
+ $this->tpls[$this->tpl]['o_y'] = $this->y;
+ $this->tpls[$this->tpl]['o_AutoPageBreak'] = $this->AutoPageBreak;
+ $this->tpls[$this->tpl]['o_bMargin'] = $this->bMargin;
+ $this->tpls[$this->tpl]['o_tMargin'] = $this->tMargin;
+ $this->tpls[$this->tpl]['o_lMargin'] = $this->lMargin;
+ $this->tpls[$this->tpl]['o_rMargin'] = $this->rMargin;
+ $this->tpls[$this->tpl]['o_h'] = $this->h;
+ $this->tpls[$this->tpl]['o_w'] = $this->w;
+
+ $this->SetAutoPageBreak(false);
+
+ if ($x == null)
+ $x = 0;
+ if ($y == null)
+ $y = 0;
+ if ($w == null)
+ $w = $this->w;
+ if ($h == null)
+ $h = $this->h;
+
+ // Define own high and width to calculate possitions correct
+ $this->h = $h;
+ $this->w = $w;
+
+ $this->tpls[$this->tpl]['buffer'] = "";
+ $this->tpls[$this->tpl]['x'] = $x;
+ $this->tpls[$this->tpl]['y'] = $y;
+ $this->tpls[$this->tpl]['w'] = $w;
+ $this->tpls[$this->tpl]['h'] = $h;
+
+ $this->intpl = true;
+ $this->SetXY($x+$this->lMargin,$y+$this->tMargin);
+ $this->SetRightMargin($this->w-$w+$this->rMargin);
+
+ return $this->tpl;
+ }
+
+ /**
+ * End Template
+ *
+ * This method ends a template and reset initiated variables on beginTemplate.
+ *
+ * @return mixed If a template is opened, the ID is returned. If not a false is returned.
+ */
+ function endTemplate() {
+ if ($this->intpl) {
+ $this->intpl = false;
+ $this->SetAutoPageBreak($this->tpls[$this->tpl]['o_AutoPageBreak'],$this->tpls[$this->tpl]['o_bMargin']);
+ $this->SetXY($this->tpls[$this->tpl]['o_x'],$this->tpls[$this->tpl]['o_y']);
+ $this->tMargin = $this->tpls[$this->tpl]['o_tMargin'];
+ $this->lMargin = $this->tpls[$this->tpl]['o_lMargin'];
+ $this->rMargin = $this->tpls[$this->tpl]['o_rMargin'];
+ $this->h = $this->tpls[$this->tpl]['o_h'];
+ $this->w = $this->tpls[$this->tpl]['o_w'];
+ return $this->tpl;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * Use a Template in current Page or other Template
+ *
+ * You can use a template in a page or in another template.
+ * You can give the used template a new size like you use the Image()-method.
+ * All parameters are optional. The width or height is calculated automaticaly
+ * if one is given. If no parameter is given the origin size as defined in
+ * beginTemplate() is used.
+ * The calculated or used width and height are returned as an array.
+ *
+ * @param int $tplidx A valid template-Id
+ * @param int $_x The x-position
+ * @param int $_y The y-position
+ * @param int $_w The new width of the template
+ * @param int $_h The new height of the template
+ * @retrun array The height and width of the template
+ */
+ function useTemplate($tplidx, $_x=null, $_y=null, $_w=0, $_h=0) {
+ if ($this->page <= 0)
+ $this->error("You have to add a page to fpdf first!");
+
+ if (!$this->tpls[$tplidx])
+ $this->error("Template does not exist!");
+
+ if ($this->intpl) {
+ $this->res['tpl'][$this->tpl]['tpls'][$tplidx] =& $this->tpls[$tplidx];
+ }
+ extract($this->tpls[$tplidx]);
+
+ if ($_x == null)
+ $_x = $x;
+ if ($_y == null)
+ $_y = $y;
+ $wh = $this->getTemplateSize($tplidx,$_w,$_h);
+ $_w = $wh['w'];
+ $_h = $wh['h'];
+
+ $this->_out(sprintf("q %.4f 0 0 %.4f %.2f %.2f cm", ($_w/$w), ($_h/$h), $_x*$this->k, ($this->h-($_y+$_h))*$this->k)); // Translate
+ $this->_out($this->tplprefix.$tplidx." Do Q");
+
+ return array("w" => $_w, "h" => $_h);
+ }
+
+ /**
+ * Get The calculated Size of a Template
+ *
+ * If one size is given, this method calculates the other one.
+ *
+ * @param int $tplidx A valid template-Id
+ * @param int $_w The width of the template
+ * @param int $_h The height of the template
+ * @return array The height and width of the template
+ */
+ function getTemplateSize($tplidx, $_w=0, $_h=0) {
+ if (!$this->tpls[$tplidx])
+ return false;
+
+ extract($this->tpls[$tplidx]);
+ if ($_w == 0 and $_h == 0) {
+ $_w = $w;
+ $_h = $h;
+ }
+
+ if($_w==0)
+ $_w=$_h*$w/$h;
+ if($_h==0)
+ $_h=$_w*$h/$w;
+
+ return array("w" => $_w, "h" => $_h);
+ }
+
+ /**
+ * See FPDF-Documentation ;-)
+ */
+ function SetFont($family,$style='',$size=0) {
+ //Select a font; size given in points
+ global $fpdf_charwidths;
+
+ $family=strtolower($family);
+ if($family=='')
+ $family=$this->FontFamily;
+ if($family=='arial')
+ $family='helvetica';
+ elseif($family=='symbol' or $family=='zapfdingbats')
+ $style='';
+ $style=strtoupper($style);
+ if(is_int(strpos($style,'U')))
+ {
+ $this->underline=true;
+ $style=str_replace('U','',$style);
+ }
+ else
+ $this->underline=false;
+ if($style=='IB')
+ $style='BI';
+ if($size==0)
+ $size=$this->FontSizePt;
+ //Test if font is already selected
+ if($this->FontFamily==$family and $this->FontStyle==$style and $this->FontSizePt==$size and !$this->intpl)
+ return;
+ //Test if used for the first time
+ $fontkey=$family.$style;
+ if(!isset($this->fonts[$fontkey]))
+ {
+ //Check if one of the standard fonts
+ if(isset($this->CoreFonts[$fontkey]))
+ {
+ if(!isset($fpdf_charwidths[$fontkey]))
+ {
+ //Load metric file
+ $file=$family;
+ if($family=='times' or $family=='helvetica')
+ $file.=strtolower($style);
+ $file.='.php';
+ if(defined('FPDF_FONTPATH'))
+ $file=FPDF_FONTPATH.$file;
+ include($file);
+ if(!isset($fpdf_charwidths[$fontkey]))
+ $this->Error('Could not include font metric file');
+ }
+ $i = $this->findNextAvailFont();
+ $this->fonts[$fontkey]=array('i'=>$i,'type'=>'core','name'=>$this->CoreFonts[$fontkey],'up'=>-100,'ut'=>50,'cw'=>$fpdf_charwidths[$fontkey]);
+ }
+ else
+ $this->Error('Undefined font: '.$family.' '.$style);
+ }
+ //Select it
+ $this->FontFamily=$family;
+ $this->FontStyle=$style;
+ $this->FontSizePt=$size;
+ $this->FontSize=$size/$this->k;
+ $this->CurrentFont=&$this->fonts[$fontkey];
+ if($this->page>0)
+ $this->_out(sprintf('BT '.$this->fontprefix.'%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));
+
+
+ if ($this->intpl) {
+ $this->res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
+ } else {
+ $this->res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
+ }
+ }
+
+ /**
+ * Find the next available Font-No.
+ *
+ * @return int
+ */
+ function findNextAvailFont() {
+ return count($this->fonts)+1;
+ }
+
+ /**
+ * See FPDF-Documentation ;-)
+ */
+ function Image($file,$x,$y,$w=0,$h=0,$type='',$link='') {
+ parent::Image($file,$x,$y,$w,$h,$type,$link);
+ if ($this->intpl) {
+ $this->res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
+ } else {
+ $this->res['page'][$this->page]['images'][$file] =& $this->images[$file];
+ }
+ }
+
+ /**
+ * See FPDF-Documentation ;-)
+ *
+ * AddPage is not available when you're "in" a template.
+ */
+ function AddPage($orientation='') {
+ if ($this->intpl)
+ $this->Error('Adding pages in templates isn\'t possible!');
+ parent::AddPage($orientation);
+ }
+
+ /**
+ * Preserve adding Links in Templates ...won't work
+ */
+ function Link($x,$y,$w,$h,$link) {
+ if ($this->intpl)
+ $this->Error('Using links in templates aren\'t possible!');
+ parent::Link($x,$y,$w,$h,$link);
+ }
+
+ function AddLink() {
+ if ($this->intpl)
+ $this->Error('Adding links in templates aren\'t possible!');
+ return parent::AddLink();
+ }
+
+ function SetLink($link,$y=0,$page=-1) {
+ if ($this->intpl)
+ $this->Error('Setting links in templates aren\'t possible!');
+ parent::SetLink($link,$y,$page);
+ }
+
+ /**
+ * Private Method that writes the Resources-Objects
+ */
+ function _puttemplates() {
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ reset($this->tpls);
+ foreach($this->tpls AS $tplidx => $tpl) {
+
+ $p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
+ $this->_newobj();
+ $this->tpls[$tplidx]['n'] = $this->n;
+ $this->_out('<<'.$filter.'/Type /XObject');
+ $this->_out('/Subtype /Form');
+ $this->_out('/FormType 1');
+ $this->_out(sprintf('/BBox [%.2f %.2f %.2f %.2f]',$tpl['x']*$this->k, ($tpl['h']-$tpl['y'])*$this->k, $tpl['w']*$this->k, ($tpl['h']-$tpl['y']-$tpl['h'])*$this->k)); // ($this->h-$tpl['y'])*$this->k
+ $this->_out('/Resources ');
+
+ $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ if (count($this->res['tpl'][$tplidx]['fonts'])) {
+ $this->_out('/Font <<');
+ foreach($this->res['tpl'][$tplidx]['fonts'] as $font)
+ $this->_out($this->fontprefix.$font['i'].' '.$font['n'].' 0 R');
+ $this->_out('>>');
+ }
+ if(count($this->res['tpl'][$tplidx]['images']) || count($this->res['tpl'][$tplidx]['tpls']))
+ {
+ $this->_out('/XObject <<');
+ if (count($this->res['tpl'][$tplidx]['images'])) {
+ foreach($this->res['tpl'][$tplidx]['images'] as $image)
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+ }
+ if (count($this->res['tpl'][$tplidx]['tpls'])) {
+ foreach($this->res['tpl'][$tplidx]['tpls'] as $i => $tpl)
+ $this->_out($this->tplprefix.$i.' '.$tpl['n'].' 0 R');
+ }
+ $this->_out('>>');
+ }
+ $this->_out('>>');
+
+ $this->_out('/Length '.strlen($p).' >>');
+ $this->_putstream($p);
+ $this->_out('endobj');
+ }
+ }
+
+ /**
+ * Private Method
+ */
+ function _putresources() {
+ $this->_putfonts();
+ $this->_putimages();
+ $this->_puttemplates();
+ //Resource dictionary
+ $this->offsets[2]=strlen($this->buffer);
+ $this->_out('2 0 obj');
+ $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ $this->_out('/Font <<');
+ foreach($this->fonts as $font)
+ $this->_out($this->fontprefix.$font['i'].' '.$font['n'].' 0 R');
+ $this->_out('>>');
+ if(count($this->images) || count($this->tpls))
+ {
+ $this->_out('/XObject <<');
+ if (count($this->images)) {
+ foreach($this->images as $image)
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+ }
+ if (count($this->tpls)) {
+ foreach($this->tpls as $tplidx => $tpl)
+ $this->_out($this->tplprefix.$tplidx.' '.$tpl['n'].' 0 R');
+ }
+ $this->_out('>>');
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ }
+
+
+ /**
+ * Private Method
+ */
+ function _out($s) {
+ //Add a line to the document
+ if ($this->state==2) {
+ if (!$this->intpl)
+ $this->pages[$this->page].=$s."\n";
+ else
+ $this->tpls[$this->tpl]['buffer'] .= $s."\n";
+ } else {
+ $this->buffer.=$s."\n";
+ }
+ }
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+define ('PDF_TYPE_NULL', 0);
+define ('PDF_TYPE_NUMERIC', 1);
+define ('PDF_TYPE_TOKEN', 2);
+define ('PDF_TYPE_HEX', 3);
+define ('PDF_TYPE_STRING', 4);
+define ('PDF_TYPE_DICTIONARY', 5);
+define ('PDF_TYPE_ARRAY', 6);
+define ('PDF_TYPE_OBJDEC', 7);
+define ('PDF_TYPE_OBJREF', 8);
+define ('PDF_TYPE_OBJECT', 9);
+define ('PDF_TYPE_STREAM', 10);
+
+ini_set('auto_detect_line_endings',1); // Strongly required!
+
+require_once("fpdf_tpl.php");
+require_once("fpdi_pdf_parser.php");
+
+
+class fpdi extends fpdf_tpl {
+ /**
+ * Actual filename
+ * @var string
+ */
+ var $current_filename;
+
+ /**
+ * Parser-Objects
+ * @var array
+ */
+ var $parsers;
+
+ /**
+ * Current parser
+ * @var object
+ */
+ var $current_parser;
+
+ /**
+ * FPDF/FPDI - PDF-Version
+ * @var double
+ */
+ var $PDFVersion = 1.3;
+
+ /**
+ * Highest version of imported PDF
+ * @var double
+ */
+ var $importVersion = 1.3;
+
+ /**
+ * object stack
+ * @var array
+ */
+ var $obj_stack;
+
+ /**
+ * done object stack
+ * @var array
+ */
+ var $don_obj_stack;
+
+ /**
+ * Current Object Id.
+ * @var integer
+ */
+ var $current_obj_id;
+
+ /**
+ * Constructor
+ * See FPDF-Manual
+ */
+ function fpdi($orientation='P',$unit='mm',$format='A4') {
+ parent::fpdf_tpl($orientation,$unit,$format);
+ }
+
+ /**
+ * Set a source-file
+ *
+ * @param string $filename a valid filename
+ * @return int number of available pages
+ */
+ function setSourceFile($filename) {
+ $this->current_filename = $filename;
+ $fn =& $this->current_filename;
+
+ $this->parsers[$fn] = new fpdi_pdf_parser($fn,$this);
+ $this->current_parser =& $this->parsers[$fn];
+
+ return $this->parsers[$fn]->getPageCount();
+ }
+
+ /**
+ * Import a page
+ *
+ * @param int $pageno pagenumber
+ * @return int Index of imported page - to use with fpdf_tpl::useTemplate()
+ */
+ function ImportPage($pageno) {
+ $fn =& $this->current_filename;
+
+ $this->parsers[$fn]->setPageno($pageno);
+
+ $this->tpl++;
+ $this->tpls[$this->tpl] = array();
+ $this->tpls[$this->tpl]['parser'] =& $this->parsers[$fn];
+ $this->tpls[$this->tpl]['resources'] = $this->parsers[$fn]->getPageResources();
+ $this->tpls[$this->tpl]['buffer'] = $this->parsers[$fn]->getContent();
+ // $mediabox holds the dimensions of the source page
+ $mediabox = $this->parsers[$fn]->getPageMediaBox($pageno);
+
+ // To build array that can used by pdf_tpl::useTemplate()
+ $this->tpls[$this->tpl] = array_merge($this->tpls[$this->tpl],$mediabox);
+
+ return $this->tpl;
+ }
+
+ /**
+ * Private method, that rebuilds all needed objects of source files
+ */
+ function _putOobjects() {
+ if (is_array($this->parsers) && count($this->parsers) > 0) {
+ foreach($this->parsers AS $filename => $p) {
+ $this->current_parser =& $this->parsers[$filename];
+ if (is_array($this->obj_stack[$filename])) {
+ while($n = key($this->obj_stack[$filename])) {
+ $nObj = $this->current_parser->pdf_resolve_object($this->current_parser->c,$this->obj_stack[$filename][$n][1]);
+
+ $this->_newobj($this->obj_stack[$filename][$n][0]);
+
+ if ($nObj[0] == PDF_TYPE_STREAM) {
+ $this->pdf_write_value ($nObj);
+ } else {
+ $this->pdf_write_value ($nObj[1]);
+ }
+
+ $this->_out('endobj');
+ $this->obj_stack[$filename][$n] = null; // free memory
+ unset($this->obj_stack[$filename][$n]);
+ reset($this->obj_stack[$filename]);
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Rewritten for handling own defined PDF-Versions
+ * only needed by FPDF 1.52
+ */
+ function _begindoc() {
+ //Start document
+ $this->state=1;
+ }
+
+ /**
+ * Sets the PDF Version to the highest of imported documents
+ */
+ function setVersion() {
+ if ($this->importVersion > $this->PDFVersion)
+ $this->PDFVersion = $this->importVersion;
+
+ if (!method_exists($this, '_putheader')) {
+ $this->buffer = '%PDF-'.$this->PDFVersion."\n".$this->buffer;
+ }
+ }
+
+ /**
+ * rewritten for handling higher PDF Versions
+ */
+ function _enddoc() {
+ $this->setVersion();
+ parent::_enddoc();
+ }
+
+
+ /**
+ * Put resources
+ */
+ function _putresources() {
+ $this->_putfonts();
+ $this->_putimages();
+ $this->_puttemplates();
+ $this->_putOobjects();
+
+ //Resource dictionary
+ $this->offsets[2]=strlen($this->buffer);
+ $this->_out('2 0 obj');
+ $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ $this->_out('/Font <<');
+ foreach($this->fonts as $font)
+ $this->_out($this->fontprefix.$font['i'].' '.$font['n'].' 0 R');
+ $this->_out('>>');
+ if(count($this->images) || count($this->tpls))
+ {
+ $this->_out('/XObject <<');
+ if (count($this->images)) {
+ foreach($this->images as $image)
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+ }
+ if (count($this->tpls)) {
+ foreach($this->tpls as $tplidx => $tpl)
+ $this->_out($this->tplprefix.$tplidx.' '.$tpl['n'].' 0 R');
+ }
+ $this->_out('>>');
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ }
+
+ /**
+ * Private Method that writes /XObjects - "Templates"
+ */
+ function _puttemplates() {
+ $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
+ reset($this->tpls);
+ foreach($this->tpls AS $tplidx => $tpl) {
+
+ $p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
+ $this->_newobj();
+ $this->tpls[$tplidx]['n'] = $this->n;
+ $this->_out('<<'.$filter.'/Type /XObject');
+ $this->_out('/Subtype /Form');
+ $this->_out('/FormType 1');
+ $this->_out(sprintf('/BBox [%.2f %.2f %.2f %.2f]',$tpl['x']*$this->k, ($tpl['h']-$tpl['y'])*$this->k, $tpl['w']*$this->k, ($tpl['h']-$tpl['y']-$tpl['h'])*$this->k));
+ $this->_out('/Resources ');
+
+ if ($tpl['resources']) {
+ $this->current_parser =& $tpl['parser'];
+ $this->pdf_write_value($tpl['resources']);
+ } else {
+ $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
+ if (count($this->res['tpl'][$tplidx]['fonts'])) {
+ $this->_out('/Font <<');
+ foreach($this->res['tpl'][$tplidx]['fonts'] as $font)
+ $this->_out($this->fontprefix.$font['i'].' '.$font['n'].' 0 R');
+ $this->_out('>>');
+ }
+ if(count($this->res['tpl'][$tplidx]['images']) || count($this->res['tpl'][$tplidx]['tpls']))
+ {
+ $this->_out('/XObject <<');
+ if (count($this->res['tpl'][$tplidx]['images'])) {
+ foreach($this->res['tpl'][$tplidx]['images'] as $image)
+ $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
+ }
+ if (count($this->res['tpl'][$tplidx]['tpls'])) {
+ foreach($this->res['tpl'][$tplidx]['tpls'] as $i => $tpl)
+ $this->_out($this->tplprefix.$i.' '.$tpl['n'].' 0 R');
+ }
+ $this->_out('>>');
+ }
+ $this->_out('>>');
+ }
+
+ $this->_out('/Length '.strlen($p).' >>');
+ $this->_putstream($p);
+ $this->_out('endobj');
+ }
+ }
+
+ /**
+ * Rewritten to handle existing own defined objects
+ */
+ function _newobj($obj_id=false,$onlynewobj=false) {
+ if (!$obj_id) {
+ $obj_id = ++$this->n;
+ }
+
+ //Begin a new object
+ if (!$onlynewobj) {
+ $this->offsets[$obj_id]=strlen($this->buffer);
+ $this->_out($obj_id.' 0 obj');
+ $this->current_obj_id = $obj_id; // for later use with encryption
+ }
+
+ }
+
+ /**
+ * Writes a value
+ * Needed to rebuild the source document
+ *
+ * @param mixed $value A PDF-Value. Structure of values see cases in this method
+ */
+ function pdf_write_value(&$value)
+ {
+
+ switch ($value[0]) {
+
+ case PDF_TYPE_NUMERIC :
+ case PDF_TYPE_TOKEN :
+ // A numeric value or a token.
+ // Simply output them
+ $this->_out($value[1]." ");
+ break;
+
+ case PDF_TYPE_ARRAY :
+
+ // An array. Output the proper
+ // structure and move on.
+
+ $this->_out("[",false);
+ for ($i = 0; $i < count($value[1]); $i++) {
+ $this->pdf_write_value($value[1][$i]);
+ }
+
+ $this->_out("]");
+ break;
+
+ case PDF_TYPE_DICTIONARY :
+
+ // A dictionary.
+ $this->_out("<<",false);
+
+ reset ($value[1]);
+
+ while (list($k, $v) = each($value[1])) {
+ $this->_out($k . " ",false);
+ $this->pdf_write_value($v);
+ }
+
+ $this->_out(">>");
+ break;
+
+ case PDF_TYPE_OBJREF :
+
+ // An indirect object reference
+ // Fill the object stack if needed
+ if (!isset($this->don_obj_stack[$this->current_parser->filename][$value[1]])) {
+ $this->_newobj(false,true);
+ $this->obj_stack[$this->current_parser->filename][$value[1]] = array($this->n,$value);
+ $this->don_obj_stack[$this->current_parser->filename][$value[1]] = array($this->n,$value);
+ }
+ $objid = $this->don_obj_stack[$this->current_parser->filename][$value[1]][0];
+
+ $this->_out("{$objid} 0 R"); //{$value[2]}
+ break;
+
+ case PDF_TYPE_STRING :
+
+ // A string.
+ $this->_out('(' . $value[1] . ')');
+
+ break;
+
+ case PDF_TYPE_STREAM :
+
+ // A stream. First, output the
+ // stream dictionary, then the
+ // stream data itself.
+ $this->pdf_write_value($value[1]);
+ $this->_out("stream");
+ $this->_out($value[2][1]);
+ $this->_out("endstream");
+ break;
+ case PDF_TYPE_HEX :
+
+ $this->_out("<" . $value[1] . ">");
+ break;
+
+ case PDF_TYPE_NULL :
+ // The null object.
+
+ $this->_out("null");
+ break;
+ }
+ }
+
+
+ /**
+ * Private Method
+ */
+ function _out($s,$ln=true) {
+ //Add a line to the document
+ if ($this->state==2) {
+ if (!$this->intpl)
+ $this->pages[$this->page].=$s.($ln == true ? "\n" : '');
+ else
+ $this->tpls[$this->tpl]['buffer'] .= $s.($ln == true ? "\n" : '');
+ } else {
+ $this->buffer.=$s.($ln == true ? "\n" : '');
+ }
+ }
+
+ /**
+ * close all files opened by parsers
+ */
+ function closeParsers() {
+ foreach ($this->parsers as $parser){
+ $parser->closeFile();
+ }
+ }
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+if (!defined ('PDF_TYPE_NULL'))
+ define ('PDF_TYPE_NULL', 0);
+if (!defined ('PDF_TYPE_NUMERIC'))
+ define ('PDF_TYPE_NUMERIC', 1);
+if (!defined ('PDF_TYPE_TOKEN'))
+ define ('PDF_TYPE_TOKEN', 2);
+if (!defined ('PDF_TYPE_HEX'))
+ define ('PDF_TYPE_HEX', 3);
+if (!defined ('PDF_TYPE_STRING'))
+ define ('PDF_TYPE_STRING', 4);
+if (!defined ('PDF_TYPE_DICTIONARY'))
+ define ('PDF_TYPE_DICTIONARY', 5);
+if (!defined ('PDF_TYPE_ARRAY'))
+ define ('PDF_TYPE_ARRAY', 6);
+if (!defined ('PDF_TYPE_OBJDEC'))
+ define ('PDF_TYPE_OBJDEC', 7);
+if (!defined ('PDF_TYPE_OBJREF'))
+ define ('PDF_TYPE_OBJREF', 8);
+if (!defined ('PDF_TYPE_OBJECT'))
+ define ('PDF_TYPE_OBJECT', 9);
+if (!defined ('PDF_TYPE_STREAM'))
+ define ('PDF_TYPE_STREAM', 10);
+
+
+require_once("wrapper_functions.php");
+require_once("pdf_parser.php");
+
+class fpdi_pdf_parser extends pdf_parser {
+
+ /**
+ * Pages
+ * Index beginns at 0
+ *
+ * @var array
+ */
+ var $pages;
+
+ /**
+ * Page count
+ * @var integer
+ */
+ var $page_count;
+
+ /**
+ * actual page number
+ * @var integer
+ */
+ var $pageno;
+
+ /**
+ * PDF Version of imported Document
+ * @var string
+ */
+ var $pdfVersion;
+
+ /**
+ * FPDI Reference
+ * @var object
+ */
+ var $fpdi;
+
+ /**
+ * Constructor
+ *
+ * @param string $filename Source-Filename
+ * @param object $fpdi Object of type fpdi
+ */
+ function fpdi_pdf_parser($filename,&$fpdi) {
+ $this->fpdi =& $fpdi;
+ $this->filename = $filename;
+
+ parent::pdf_parser($filename);
+
+ // Get Info
+ $this->getInfo();
+
+ // resolve Pages-Dictonary
+ $pages = $this->pdf_resolve_object($this->c, $this->root[1][1]['/Pages']);
+
+ // Read pages
+ $this->read_pages($this->c, $pages, $this->pages);
+
+ // count pages;
+ $this->page_count = count($this->pages);
+ }
+
+ /**
+ * Overwrite parent::error()
+ *
+ * @param string $msg Error-Message
+ */
+ function error($msg) {
+ $this->fpdi->error($msg);
+ }
+
+ /**
+ * Get pagecount from sourcefile
+ *
+ * @return int
+ */
+ function getPageCount() {
+ return $this->page_count;
+ }
+
+
+ /**
+ * Set pageno
+ *
+ * @param int $pageno Pagenumber to use
+ */
+ function setPageno($pageno) {
+ $pageno-=1;
+
+ if ($pageno < 0 || $pageno >= $this->getPageCount()) {
+ $this->fpdi->error("Pagenumber is wrong!");
+ }
+
+ $this->pageno = $pageno;
+ }
+
+ /**
+ * Get page-resources from current page
+ *
+ * @return array
+ */
+ function getPageResources() {
+ return $this->_getPageResources($this->pages[$this->pageno]);
+ }
+
+ /**
+ * Get page-resources from /Page
+ *
+ * @param array $obj Array of pdf-data
+ */
+ function _getPageResources ($obj) { // $obj = /Page
+ $obj = $this->pdf_resolve_object($this->c, $obj);
+
+ // If the current object has a resources
+ // dictionary associated with it, we use
+ // it. Otherwise, we move back to its
+ // parent object.
+ if (isset ($obj[1][1]['/Resources'])) {
+ $res = $this->pdf_resolve_object($this->c, $obj[1][1]['/Resources']);
+ if ($res[0] == PDF_TYPE_OBJECT)
+ return $res[1];
+ return $res;
+ } else {
+ if (!isset ($obj[1][1]['/Parent'])) {
+ return false;
+ } else {
+ $res = $this->_getPageResources($obj[1][1]['/Parent']);
+ if ($res[0] == PDF_TYPE_OBJECT)
+ return $res[1];
+ return $res;
+ }
+ }
+ }
+
+
+ function getInfo() {
+ $avail_infos = array("Title", "Author", "Subject", "Keywords", "Creator", "Producer", "CreationDate", "ModDate", "Trapped");
+
+ $_infos = $this->pdf_resolve_object($this->c,$this->xref['trailer'][1]['/Info']);
+ $infos = array();
+
+ foreach ($avail_infos AS $info) {
+ if (isset($_infos[1][1]["/".$info])) {
+ if ($_infos[1][1]["/".$info][0] == PDF_TYPE_STRING) {
+ $infos[$info] = $this->deescapeString($_infos[1][1]["/".$info][1]);
+ } else if ($_infos[1][1]["/".$info][0] == PDF_TYPE_HEX) {
+ $infos[$info] = $this->hex2String($_infos[1][1]["/".$info][1]);
+ }
+ }
+ }
+ $this->infos = $infos;
+ }
+
+ /**
+ * Rebuilds a hexstring to string
+ *
+ * @param string $hex hexstring
+ * @return string
+ */
+ function hex2String($hex) {
+ $endian = false;
+
+ if (preg_match("/^FEFF/",$hex)) { // is utf-16 aka big endian
+ $i = 4;
+ $endian = "big";
+ } else if (preg_match("/^FFFE/",$hex)) { // is utf-16 aka little endian
+ $i = 4;
+ $endian = "little";
+ } else {
+ $i = 0;
+ }
+
+ $s = "";
+ $l = strlen($hex);
+ for (; $i < $l; $i+=2) {
+ if (!$endian) {
+ $s .= chr(hexdec($hex[$i].(isset($hex[$i+1]) ? $hex[$i+1] : '0')));
+ } else {
+ if ($endian == "big") {
+ $_c = $hex[$i].$hex[$i+1];
+ $i+=2;
+ $c = $hex[$i].$hex[$i+1];
+
+ if ($_c != "00") {
+ $s .= "?";
+ continue;
+ } else {
+ $s .= chr(hexdec($c));
+ continue;
+ }
+ } else if ($endian == "little") {
+ $c = $hex[$i].$hex[$i+1];
+ $i+=2;
+ $_c = $hex[$i].$hex[$i+1];
+
+ if ($_c != "00") {
+ $s .= "?";
+ continue;
+ } else {
+ $s .= chr(hexdec($c));
+ continue;
+ }
+ }
+ }
+ }
+
+ return $s;
+ }
+
+ function deescapeString($s) {
+ $torepl = array("/\\\(\d{1,3})/e" => "chr(octdec(\\1))",
+ "/\\\\\(/" => "(",
+ "/\\\\\)/" => ")");
+ return preg_replace(array_keys($torepl),$torepl,$s);
+ }
+
+
+
+ /**
+ * Get content of current page
+ *
+ * If more /Contents is an array, the streams are concated
+ *
+ * @return string
+ */
+ function getContent() {
+ $buffer = "";
+
+ $contents = $this->getPageContent($this->pages[$this->pageno][1][1]['/Contents']);
+ foreach($contents AS $tmp_content) {
+ $buffer .= $this->rebuildContentStream($tmp_content);
+ }
+
+ return $buffer;
+ }
+
+
+ /**
+ * Resolve all content-objects
+ *
+ * @param array $content_ref
+ * @return array
+ */
+ function getPageContent($content_ref) {
+ $contents = array();
+
+ if ($content_ref[0] == PDF_TYPE_OBJREF) {
+ $content = $this->pdf_resolve_object($this->c, $content_ref);
+ if ($content[1][0] == PDF_TYPE_ARRAY) {
+ $contents = $this->getPageContent($content[1]);
+ } else {
+ $contents[] = $content;
+ }
+ } else if ($content_ref[0] == PDF_TYPE_ARRAY) {
+ foreach ($content_ref[1] AS $tmp_content_ref) {
+ $contents = array_merge($contents,$this->getPageContent($tmp_content_ref));
+ }
+ }
+
+ return $contents;
+ }
+
+
+ /**
+ * Rebuild content-streams
+ * only non-compressed streams and /FlateDecode are ready!
+ *
+ * @param array $obj
+ * @return string
+ */
+ function rebuildContentStream($obj) {
+ $filters = array();
+
+ if (isset($obj[1][1]['/Filter'])) {
+ $_filter = $obj[1][1]['/Filter'];
+
+ if ($_filter[0] == PDF_TYPE_TOKEN) {
+ $filters[] = $_filter;
+ } else if ($_filter[0] == PDF_TYPE_ARRAY) {
+ $filters = $_filter[1];
+ }
+ }
+
+ $stream = $obj[2][1];
+
+ foreach ($filters AS $_filter) {
+ switch ($_filter[1]) {
+ case "/FlateDecode":
+ if (function_exists('gzuncompress')) {
+ $stream = @gzuncompress($stream);
+ } else {
+ $this->fpdi->error(sprintf("To handle %s filter, please compile php with zlib support.",$_filter[1]));
+ }
+ if ($stream === false) {
+ $this->fpdi->error("Error while decompressing string.");
+ }
+
+ break;
+ case "/LZWDecode":
+ @include_once("decoders/lzw.php");
+ if (class_exists("LZWDecode")) {
+ $lzwdec = new LZWDecode($this->fpdi);
+ $stream = $lzwdec->decode($stream);
+ } else {
+ $this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
+ }
+ break;
+ case "/ASCII85Decode":
+ @include_once("decoders/ascii85.php");
+ if (class_exists("ASCII85Decode")) {
+ $ascii85 = new ASCII85Decode($this->fpdi);
+ $stream = $ascii85->decode(trim($stream));
+ } else {
+ $this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
+ }
+ break;
+ case null:
+ $stream = $stream;
+ break;
+ default:
+ $this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
+ }
+ }
+
+ return $stream;
+ }
+
+ /**
+ * Get MediaBox
+ *
+ * gets an array that describes the size of a page.
+ *
+ * @param integer $pageno
+ * @return array @see getPageBox()
+ */
+ function getPageMediaBox($pageno) {
+ return $this->getPageBox($this->pages[$pageno-1],"/MediaBox");
+ }
+
+
+ /**
+ * Get a Box from a page
+ * Arrayformat is same as used by fpdf_tpl
+ *
+ * @param array $page a /Page
+ * @param string $box_index Type of Box @see getPageBoxes()
+ * @return array
+ */
+ function getPageBox($page, $box_index) {
+ $page = $this->pdf_resolve_object($this->c,$page);
+
+ $box = null;
+ if (isset($page[1][1][$box_index]))
+ $box =& $page[1][1][$box_index];
+
+ if (!is_null($box) && $box[0] == PDF_TYPE_OBJREF) {
+ $tmp_box = $this->pdf_resolve_object($this->c,$box);
+ $box = $tmp_box[1];
+ }
+
+ if (!is_null($box) && $box[0] == PDF_TYPE_ARRAY) {
+ $b =& $box[1];
+ return array("x" => $b[0][1]/$this->fpdi->k,
+ "y" => $b[1][1]/$this->fpdi->k,
+ "w" => $b[2][1]/$this->fpdi->k,
+ "h" => $b[3][1]/$this->fpdi->k);
+ } else if (!isset ($page[1][1]['/Parent'])) {
+ return false;
+ } else {
+ return $this->getPageBox($this->pdf_resolve_object($this->c, $page[1][1]['/Parent']), $box_index);
+ }
+ }
+
+ /**
+ * Get all Boxes from /Page
+ *
+ * @param array a /Page
+ * @return array
+ */
+ function getPageBoxes($page) {
+ $_boxes = array("/MediaBox","/CropBox","/BleedBox","/TrimBox","/ArtBox");
+ $boxes = array();
+
+ foreach($_boxes AS $box) {
+ if ($_box = $this->getPageBox($page,$box)) {
+ $boxes[$box] = $_box;
+ }
+ }
+
+ return $boxes;
+ }
+
+
+ /**
+ * Read all /Page(es)
+ *
+ * @param object pdf_context
+ * @param array /Pages
+ * @param array the result-array
+ */
+ function read_pages (&$c, &$pages, &$result) {
+
+ // Get the kids dictionary
+ $kids = $this->pdf_resolve_object ($c, $pages[1][1]['/Kids']);
+
+ if (!is_array($kids))
+ $this->fpdi->Error("Cannot find /Kids in current /Page-Dictionary");
+ foreach ($kids[1] as $v) {
+ $pg = $this->pdf_resolve_object ($c, $v);
+ #print_r($pg);
+
+ if ($pg[1][1]['/Type'][1] === '/Pages') {
+ // If one of the kids is an embedded
+ // /Pages array, resolve it as well.
+ $this->read_pages ($c, $pg, $result);
+ } else {
+ $result[] = $pg;
+ }
+ }
+ }
+
+
+
+ /**
+ * Get PDF-Version
+ *
+ * And reset the PDF Version used in FPDI if needed
+ */
+ function getPDFVersion() {
+ parent::getPDFVersion();
+
+ if (isset($this->fpdi->importVersion) && $this->pdfVersion > $this->fpdi->importVersion) {
+ $this->fpdi->importVersion = $this->pdfVersion;
+ }
+ }
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/****************************************************************************
+* Software: FPDI_Protection *
+* Version: 1.0 *
+* Date: 2005/06/14 *
+* Author: Klemen VODOPIVEC, Jan Slabon *
+* License: Freeware *
+* *
+* You may use and modify this software as you wish as stated in original *
+* FPDF package. *
+* *
+* Infos (by Jan Slabon): *
+* This class extends the FPDI-class available at http://fpdi.setasign.de *
+* so that you can import pages and create new protected pdf files. *
+* *
+* This release is dedicated to my 10 days old son Fin Frederik (*2005/06/04)*
+* If you want to make him/my family/me happy and bring forward the *
+* development of free/open source software make a donation on *
+* http://fpdi.setasign.de ;-) *
+* *
+****************************************************************************/
+
+require_once("fpdi.php");
+
+class FPDI_Protection extends fpdi {
+
+ var $encrypted; //whether document is protected
+ var $Uvalue; //U entry in pdf document
+ var $Ovalue; //O entry in pdf document
+ var $Pvalue; //P entry in pdf document
+ var $enc_obj_id; //encryption object id
+ var $last_rc4_key; //last RC4 key encrypted (cached for optimisation)
+ var $last_rc4_key_c; //last RC4 computed key
+
+ function FPDI_Protection($orientation='P',$unit='mm',$format='A4')
+ {
+ parent::FPDI($orientation,$unit,$format);
+
+ $this->encrypted=false;
+ $this->last_rc4_key = '';
+ $this->padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08".
+ "\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A";
+ }
+
+ /**
+ * Function to set permissions as well as user and owner passwords
+ *
+ * - permissions is an array with values taken from the following list:
+ * 40bit: copy, print, modify, annot-forms
+ * 128bit: fill-in, screenreaders, assemble, degraded-print
+ * If a value is present it means that the permission is granted
+ * - If a user password is set, user will be prompted before document is opened
+ * - If an owner password is set, document can be opened in privilege mode with no
+ * restriction if that password is entered
+ */
+ function SetProtection($permissions=array(),$user_pass='',$owner_pass=null)
+ {
+ $options = array('print' => 4, 'modify' => 8, 'copy' => 16, 'annot-forms' => 32 );
+ $protection = 192;
+ foreach($permissions as $permission){
+ if (!isset($options[$permission]))
+ $this->Error('Incorrect permission: '.$permission);
+ $protection += $options[$permission];
+ }
+ if ($owner_pass === null)
+ $owner_pass = uniqid(rand());
+ $this->encrypted = true;
+ $this->_generateencryptionkey($user_pass, $owner_pass, $protection);
+ }
+
+
+ function _putstream($s)
+ {
+ if ($this->encrypted) {
+ $s = $this->_RC4($this->_objectkey($this->current_obj_id), $s);
+ }
+ parent::_putstream($s);
+ }
+
+
+ function _textstring($s)
+ {
+ if ($this->encrypted) {
+ $s = $this->_RC4($this->_objectkey($this->current_obj_id), $s);
+ }
+ return parent::_textstring($s);
+ }
+
+
+ /**
+ * Compute key depending on object number where the encrypted data is stored
+ */
+ function _objectkey($n)
+ {
+ return substr($this->_md5_16($this->encryption_key.pack('VXxx',$n)),0,10);
+ }
+
+
+ /**
+ * Escape special characters
+ */
+ function _escape($s)
+ {
+ return str_replace(
+ array('\\',')','(',"\r"),
+ array('\\\\','\\)','\\(','\\r'),$s);
+ }
+
+ function _putresources()
+ {
+ parent::_putresources();
+ if ($this->encrypted) {
+ $this->_newobj();
+ $this->enc_obj_id = $this->current_obj_id;
+ $this->_out('<<');
+ $this->_putencryption();
+ $this->_out('>>');
+ }
+ }
+
+ function _putencryption()
+ {
+ $this->_out('/Filter /Standard');
+ $this->_out('/V 1');
+ $this->_out('/R 2');
+ $this->_out('/O ('.$this->_escape($this->Ovalue).')');
+ $this->_out('/U ('.$this->_escape($this->Uvalue).')');
+ $this->_out('/P '.$this->Pvalue);
+ }
+
+
+ function _puttrailer()
+ {
+ parent::_puttrailer();
+ if ($this->encrypted) {
+ $this->_out('/Encrypt '.$this->enc_obj_id.' 0 R');
+ $this->_out('/ID [()()]');
+ }
+ }
+
+
+ /**
+ * RC4 is the standard encryption algorithm used in PDF format
+ */
+ function _RC4($key, $text)
+ {
+ if ($this->last_rc4_key != $key) {
+ $k = str_repeat($key, 256/strlen($key)+1);
+ $rc4 = range(0,255);
+ $j = 0;
+ for ($i=0; $i<256; $i++){
+ $t = $rc4[$i];
+ $j = ($j + $t + ord($k{$i})) % 256;
+ $rc4[$i] = $rc4[$j];
+ $rc4[$j] = $t;
+ }
+ $this->last_rc4_key = $key;
+ $this->last_rc4_key_c = $rc4;
+ } else {
+ $rc4 = $this->last_rc4_key_c;
+ }
+
+ $len = strlen($text);
+ $a = 0;
+ $b = 0;
+ $out = '';
+ for ($i=0; $i<$len; $i++){
+ $a = ($a+1)%256;
+ $t= $rc4[$a];
+ $b = ($b+$t)%256;
+ $rc4[$a] = $rc4[$b];
+ $rc4[$b] = $t;
+ $k = $rc4[($rc4[$a]+$rc4[$b])%256];
+ $out.=chr(ord($text{$i}) ^ $k);
+ }
+
+ return $out;
+ }
+
+
+ /**
+ * Get MD5 as binary string
+ */
+ function _md5_16($string)
+ {
+ return pack('H*',md5($string));
+ }
+
+ /**
+ * Compute O value
+ */
+ function _Ovalue($user_pass, $owner_pass)
+ {
+ $tmp = $this->_md5_16($owner_pass);
+ $owner_RC4_key = substr($tmp,0,5);
+ return $this->_RC4($owner_RC4_key, $user_pass);
+ }
+
+
+ /**
+ * Compute U value
+ */
+ function _Uvalue()
+ {
+ return $this->_RC4($this->encryption_key, $this->padding);
+ }
+
+
+ /**
+ * Compute encryption key
+ */
+ function _generateencryptionkey($user_pass, $owner_pass, $protection)
+ {
+ // Pad passwords
+ $user_pass = substr($user_pass.$this->padding,0,32);
+ $owner_pass = substr($owner_pass.$this->padding,0,32);
+ // Compute O value
+ $this->Ovalue = $this->_Ovalue($user_pass,$owner_pass);
+ // Compute encyption key
+ $tmp = $this->_md5_16($user_pass.$this->Ovalue.chr($protection)."\xFF\xFF\xFF");
+ $this->encryption_key = substr($tmp,0,5);
+ // Compute U value
+ $this->Uvalue = $this->_Uvalue();
+ // Compute P value
+ $this->Pvalue = -(($protection^255)+1);
+ }
+
+
+ function pdf_write_value(&$value) {
+ switch ($value[0]) {
+ case PDF_TYPE_STRING :
+ if ($this->encrypted) {
+ $value[1] = $this->_RC4($this->_objectkey($this->current_obj_id), $value[1]);
+ $value[1] = $this->_escape($value[1]);
+ }
+ break;
+
+ case PDF_TYPE_STREAM :
+ if ($this->encrypted) {
+ $value[2][1] = $this->_RC4($this->_objectkey($this->current_obj_id), $value[2][1]);
+ }
+ break;
+
+ case PDF_TYPE_HEX :
+
+ if ($this->encrypted) {
+ $value[1] = $this->hex2str($value[1]);
+ $value[1] = $this->_RC4($this->_objectkey($this->current_obj_id), $value[1]);
+
+ // remake hexstring of encrypted string
+ $value[1] = $this->str2hex($value[1]);
+ }
+ break;
+ }
+
+ parent::pdf_write_value($value);
+ }
+
+
+ function hex2str($hex) {
+ return pack("H*", str_replace(array("\r","\n"),"", $hex));
+ }
+
+ function str2hex($str) {
+ return current(unpack("H*",$str));
+ }
+
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//-------------------------------------------------------------------------
+// Multi-Byte FPDF version: 1.0b
+//-------------------------------------------------------------------------
+// Usage: AddMBFont(FontName,Encoding);
+//
+// Example:
+// Chinese: AddMBFont(BIG5 ,'BIG5');
+// Japanese: AddMBFont(GOTHIC,'SJIS');
+
+//require('fpdi.php'); // Original Class
+require('fpdi_protection.php');
+require('font/mbttfdef.php'); // Multi-Byte TrueType Font Define
+
+// FPDF Version Check
+if ((float) FPDF_VERSION < 1.51) die("You need FPDF version 1.51");
+
+// Encoding & CMap List (CMap information from Acrobat Reader Resource/CMap folder)
+$MBCMAP['BIG5'] = array ('CMap'=>'ETenms-B5-H' ,'Ordering'=>'CNS1' ,'Supplement'=>0);
+$MBCMAP['GB'] = array ('CMap'=>'GBKp-EUC-H' ,'Ordering'=>'GB1' ,'Supplement'=>2);
+$MBCMAP['SJIS'] = array ('CMap'=>'90msp-RKSJ-H' ,'Ordering'=>'Japan1','Supplement'=>2);
+$MBCMAP['UNIJIS'] = array ('CMap'=>'UniJIS-UTF16-H','Ordering'=>'Japan1','Supplement'=>5);
+$MBCMAP['EUC-JP'] = array ('CMap'=>'EUC-H' ,'Ordering'=>'Japan1','Supplement'=>1);
+// EUC-JP has *problem* of underline and not support half-pitch characters.
+
+// if you want convert encoding to SJIS from EUC-JP, you must change $EUC2SJIS to true.
+$EUC2SJIS = false;
+
+$GLOBALS['MBCMAP'] =& $MBCMAP;
+$GLOBALS['EUC2SJIS'] =& $EUC2SJIS;
+
+// Short Font Name ------------------------------------------------------------
+// For Acrobat Reader (Windows, MacOS, Linux, Solaris etc)
+DEFINE("BIG5", 'MSungStd-Light-Acro');
+DEFINE("GB", 'STSongStd-Light-Acro');
+DEFINE("KOZMIN", 'KozMinPro-Regular-Acro');
+// For Japanese Windows Only
+DEFINE("GOTHIC", 'MS-Gothic');
+DEFINE("PGOTHIC", 'MS-PGothic');
+DEFINE("UIGOTHIC",'MS-UIGothic');
+DEFINE("MINCHO", 'MS-Mincho');
+DEFINE("PMINCHO", 'MS-PMincho');
+
+class MBfpdi extends FPDI_Protection
+{
+// For Outline, Title, Sub-Title and ETC Multi-Byte Encoding
+function _unicode($txt)
+{
+ if (function_exists('mb_detect_encoding')) {
+ if (mb_detect_encoding($txt) != "ASCII") {
+ $txt = chr(254).chr(255).mb_convert_encoding($txt,"UTF-16","auto");
+ }
+ }
+ return $txt;
+}
+
+function AddCIDFont($family,$style,$name,$cw,$CMap,$registry,$ut,$up)
+{
+ $i=count($this->fonts)+1;
+ $fontkey=strtolower($family).strtoupper($style);
+ $this->fonts[$fontkey] =
+ array('i'=>$i,'type'=>'Type0','name'=>$name,'up'=>$up,'ut'=>$ut,'cw'=>$cw,'CMap'=>$CMap,'registry'=>$registry);
+}
+
+function AddMBFont($family='',$enc='')
+{
+ global $MBTTFDEF,$MBCMAP;
+ $gt=$MBTTFDEF;
+ $gc=$MBCMAP;
+ if ($enc == '' || isset($gc[$enc]) == false) {
+ die("AddMBFont: ERROR Encoding [$enc] Undefine.");
+ }
+ if (isset($gt[$family])) {
+ $ut=$gt[$family]['ut'];
+ $up=$gt[$family]['up'];
+ $cw=$gt[$family]['cw'];
+ $cm=$gc[$enc]['CMap'];
+ $od=$gc[$enc]['Ordering'];
+ $sp=$gc[$enc]['Supplement'];
+ $registry=array('ordering'=>$od,'supplement'=>$sp);
+ $this->AddCIDFont($family,'' ,"$family" ,$cw,$cm,$registry,$ut,$up);
+ $this->AddCIDFont($family,'B' ,"$family,Bold" ,$cw,$cm,$registry,$ut,$up);
+ $this->AddCIDFont($family,'I' ,"$family,Italic" ,$cw,$cm,$registry,$ut,$up);
+ $this->AddCIDFont($family,'BI',"$family,BoldItalic",$cw,$cm,$registry,$ut,$up);
+ } else {
+ die("AddMBFont: ERROR FontName [$family] Undefine.");
+ }
+}
+
+function GetStringWidth($s)
+{
+ if($this->CurrentFont['type']=='Type0')
+ return $this->GetMBStringWidth($s);
+ else
+ return parent::GetStringWidth($s);
+}
+
+function GetMBStringWidth($s)
+{
+ //Multi-byte version of GetStringWidth()
+ $l=0;
+ $cw=&$this->CurrentFont['cw'];
+ $japanese = ($this->CurrentFont['registry']['ordering'] == 'Japan1');
+ $nb=strlen($s);
+ $i=0;
+ while($i<$nb)
+ {
+ $c=$s[$i];
+ if(ord($c)<128)
+ {
+ $l+=$cw[$c];
+ $i++;
+ }
+ else
+ {
+ $hwkana = ($japanese && ord($c)==142);
+ $l+=$hwkana ? 500 : 1000;
+ $i+=2;
+ }
+ }
+ return $l*$this->FontSize/1000;
+}
+
+// Function Cell override for Encode Change.
+function Cell($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = 0, $link = '')
+{
+
+ $k = $this->k;
+
+ if ($this->y + $h > $this->PageBreakTrigger
+ && !$this->InFooter
+ && $this->AcceptPageBreak()) {
+ $x = $this->x;
+ $ws = $this->ws;
+ if ($ws > 0) {
+ $this->ws = 0;
+ $this->_out('0 Tw');
+ }
+ $this->AddPage($this->CurOrientation);
+ $this->x = $x;
+ if ($ws > 0) {
+ $this->ws = $ws;
+ $this->_out(sprintf('%.3f Tw', $ws * $k));
+ }
+ } // end if
+
+ if ($w == 0) {
+ $w = $this->w - $this->rMargin - $this->x;
+ }
+
+ $s = '';
+ if ($fill == 1 || $border == 1) {
+ if ($fill == 1) {
+ $op = ($border == 1) ? 'B' : 'f';
+ } else {
+ $op = 'S';
+ }
+ $s = sprintf('%.2f %.2f %.2f %.2f re %s ', $this->x * $k, ($this->h - $this->y) * $k, $w * $k, -$h * $k, $op);
+ } // end if
+
+ if (is_string($border)) {
+ $x = $this->x;
+ $y = $this->y;
+ if (strpos(' ' . $border, 'L')) {
+ $s .= sprintf('%.2f %.2f m %.2f %.2f l S ', $x * $k, ($this->h - $y) * $k, $x * $k, ($this->h - ($y+$h)) * $k);
+ }
+ if (strpos(' ' . $border, 'T')) {
+ $s .= sprintf('%.2f %.2f m %.2f %.2f l S ', $x * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - $y) * $k);
+ }
+ if (strpos(' ' . $border, 'R')) {
+ $s .= sprintf('%.2f %.2f m %.2f %.2f l S ', ($x + $w) * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
+ }
+ if (strpos(' ' . $border, 'B')) {
+ $s .= sprintf('%.2f %.2f m %.2f %.2f l S ', $x * $k, ($this->h - ($y + $h)) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
+ }
+ } // end if
+
+ if ($txt != '') {
+ if ($align == 'R') {
+ $dx = $w - $this->cMargin - $this->GetStringWidth($txt);
+ }
+ else if ($align == 'C') {
+ $dx = ($w - $this->GetStringWidth($txt)) / 2;
+ }
+ else {
+ $dx = $this->cMargin;
+ }
+ // For Japanese Encode Change
+ global $EUC2SJIS;
+ if ($EUC2SJIS && function_exists('mb_convert_encoding')) {
+ $txt = mb_convert_encoding($txt,"SJIS","EUC-JP");
+ }
+ $txt = str_replace(')', '\\)', str_replace('(', '\\(', str_replace('\\', '\\\\', $txt)));
+ if ($this->ColorFlag) {
+ $s .= 'q ' . $this->TextColor . ' ';
+ }
+ $s .= sprintf('BT %.2f %.2f Td (%s) Tj ET', ($this->x + $dx) * $k, ($this->h - ($this->y + .5 * $h + .3 * $this->FontSize)) * $k, $txt);
+ $txt = stripslashes($txt);
+ if ($this->underline) {
+ $s .= ' ' . $this->_dounderline($this->x+$dx, $this->y + .5 * $h + .3 * $this->FontSize, $txt);
+ }
+ if ($this->ColorFlag) {
+ $s .= ' Q';
+ }
+ if ($link) {
+ $this->Link($this->x + $dx, $this->y + .5 * $h - .5 * $this->FontSize, $this->GetStringWidth($txt), $this->FontSize, $link);
+ }
+ } // end if
+
+ if ($s) {
+ $this->_out($s);
+ }
+ $this->lasth = $h;
+
+ if ($ln > 0) {
+ // Go to next line
+ $this->y += $h;
+ if ($ln == 1) {
+ $this->x = $this->lMargin;
+ }
+ } else {
+ $this->x += $w;
+ }
+} // end of the "Cell()" method
+
+function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
+{
+ if($this->CurrentFont['type']=='Type0')
+ $this->MBMultiCell($w,$h,$txt,$border,$align,$fill);
+ else
+ parent::MultiCell($w,$h,$txt,$border,$align,$fill);
+}
+
+function MBMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
+{
+ //Multi-byte version of MultiCell()
+ $cw=&$this->CurrentFont['cw'];
+ $japanese = ($this->CurrentFont['registry']['ordering'] == 'Japan1');
+ if($w==0)
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $s=str_replace("\r",'',$txt);
+ $nb=strlen($s);
+ if($nb>0 and $s[$nb-1]=="\n")
+ $nb--;
+ $b=0;
+ if($border)
+ {
+ if($border==1)
+ {
+ $border='LTRB';
+ $b='LRT';
+ $b2='LR';
+ }
+ else
+ {
+ $b2='';
+ if(is_int(strpos($border,'L')))
+ $b2.='L';
+ if(is_int(strpos($border,'R')))
+ $b2.='R';
+ $b=is_int(strpos($border,'T')) ? $b2.'T' : $b2;
+ }
+ }
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $ns=0;
+ $nl=1;
+ $ascii=true;
+ while($i<$nb)
+ {
+ //Get next character
+ $c=$s[$i];
+ //Check if ASCII or MB
+ $prev_ascii=$ascii;
+ $ascii=(ord($c)<128);
+ $hwkana = ($japanese && ord($c)==142);
+ if($c=="\n")
+ {
+ //Explicit line break
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ $i++;
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border and $nl==2)
+ $b=$b2;
+ continue;
+ }
+ if(!($ascii && $prev_ascii) && $i != $j)
+ {
+ $sep=$i;
+ $ls=$l;
+ }
+ elseif($c==' ')
+ {
+ $sep=$i;
+ $ls=$l;
+ $ns++;
+ }
+ $l+=$ascii ? $cw[$c] : $hwkana ? 500 : 1000;
+ if($l>$wmax)
+ {
+ //Automatic line break
+ if($sep==-1)
+ {
+ if($i==$j)
+ $i+=$ascii ? 1 : 2;
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ }
+ else
+ {
+ if($align=='J')
+ {
+ if($s[$sep]==' ')
+ $ns--;
+ if($s[$i-1]==' ')
+ {
+ $ns--;
+ $ls-=$cw[' '];
+ }
+ $this->ws=($ns>0) ? ($wmax-$ls)/1000*$this->FontSize/$ns : 0;
+ $this->_out(sprintf('%.3f Tw',$this->ws*$this->k));
+ }
+ $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill);
+ $i=($s[$sep]==' ') ? $sep+1 : $sep;
+ }
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ $ns=0;
+ $nl++;
+ if($border and $nl==2)
+ $b=$b2;
+ }
+ else
+ $i+=$ascii ? 1 : 2;
+ }
+ //Last chunk
+ if($this->ws>0)
+ {
+ $this->ws=0;
+ $this->_out('0 Tw');
+ }
+ if($border and is_int(strpos($border,'B')))
+ $b.='B';
+ $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
+ $this->x=$this->lMargin;
+}
+
+function Write($h,$txt,$link='')
+{
+ if($this->CurrentFont['type']=='Type0')
+ $this->MBWrite($h,$txt,$link);
+ else
+ parent::Write($h,$txt,$link);
+}
+
+function MBWrite($h,$txt,$link)
+{
+ //Multi-byte version of Write()
+ $cw=&$this->CurrentFont['cw'];
+ $japanese = ($this->CurrentFont['registry']['ordering'] == 'Japan1');
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $s=str_replace("\r",'',$txt);
+ $nb=strlen($s);
+ $sep=-1;
+ $i=0;
+ $j=0;
+ $l=0;
+ $nl=1;
+ while($i<$nb)
+ {
+ //Get next character
+ $c=$s[$i];
+ //Check if ASCII or MB
+ $ascii=(ord($c)<128);
+ $hwkana = ($japanese && ord($c)==142);
+ if($c=="\n")
+ {
+ //Explicit line break
+ $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
+ $i++;
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ if($nl==1)
+ {
+ $this->x=$this->lMargin;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ }
+ $nl++;
+ continue;
+ }
+ if(!$ascii or $c==' ')
+ $sep=$i;
+ $l+=$ascii ? $cw[$c] : $hwkana ? 500 : 1000;
+ if($l>$wmax)
+ {
+ //Automatic line break
+ if($sep==-1 or $i==$j)
+ {
+ if($this->x>$this->lMargin)
+ {
+ //Move to next line
+ $this->x=$this->lMargin;
+ $this->y+=$h;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ $i++;
+ $nl++;
+ continue;
+ }
+ if($i==$j)
+ $i+=$ascii ? 1 : 2;
+ $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
+ }
+ else
+ {
+ $this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',0,$link);
+ $i=($s[$sep]==' ') ? $sep+1 : $sep;
+ }
+ $sep=-1;
+ $j=$i;
+ $l=0;
+ if($nl==1)
+ {
+ $this->x=$this->lMargin;
+ $w=$this->w-$this->rMargin-$this->x;
+ $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
+ }
+ $nl++;
+ }
+ else
+ $i+=$ascii ? 1 : 2;
+ }
+ //Last chunk
+ if($i!=$j)
+ $this->Cell($l/1000*$this->FontSize,$h,substr($s,$j,$i-$j),0,0,'',0,$link);
+}
+
+function _putfonts()
+{
+ $nf=$this->n;
+ foreach($this->diffs as $diff)
+ {
+ //Encodings
+ $this->_newobj();
+ $this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
+ $this->_out('endobj');
+ }
+ $mqr=get_magic_quotes_runtime();
+ set_magic_quotes_runtime(0);
+ foreach($this->FontFiles as $file=>$info)
+ {
+ //Font file embedding
+ $this->_newobj();
+ $this->FontFiles[$file]['n']=$this->n;
+ if(defined('FPDF_FONTPATH'))
+ $file=FPDF_FONTPATH.$file;
+ $size=filesize($file);
+ if(!$size)
+ $this->Error('Font file not found');
+ $this->_out('<</Length '.$size);
+ if(substr($file,-2)=='.z')
+ $this->_out('/Filter /FlateDecode');
+ $this->_out('/Length1 '.$info['length1']);
+ if(isset($info['length2']))
+ $this->_out('/Length2 '.$info['length2'].' /Length3 0');
+ $this->_out('>>');
+ $f=fopen($file,'rb');
+ $this->_putstream(fread($f,$size));
+ fclose($f);
+ $this->_out('endobj');
+ }
+ set_magic_quotes_runtime($mqr);
+ foreach($this->fonts as $k=>$font)
+ {
+ //Font objects
+ $this->_newobj();
+ $this->fonts[$k]['n']=$this->n;
+ $this->_out('<</Type /Font');
+ if($font['type']=='Type0')
+ $this->_putType0($font);
+ else
+ {
+ $name=$font['name'];
+ $this->_out('/BaseFont /'.$name);
+ if($font['type']=='core')
+ {
+ //Standard font
+ $this->_out('/Subtype /Type1');
+ if($name!='Symbol' and $name!='ZapfDingbats')
+ $this->_out('/Encoding /WinAnsiEncoding');
+ }
+ else
+ {
+ //Additional font
+ $this->_out('/Subtype /'.$font['type']);
+ $this->_out('/FirstChar 32');
+ $this->_out('/LastChar 255');
+ $this->_out('/Widths '.($this->n+1).' 0 R');
+ $this->_out('/FontDescriptor '.($this->n+2).' 0 R');
+ if($font['enc'])
+ {
+ if(isset($font['diff']))
+ $this->_out('/Encoding '.($nf+$font['diff']).' 0 R');
+ else
+ $this->_out('/Encoding /WinAnsiEncoding');
+ }
+ }
+ $this->_out('>>');
+ $this->_out('endobj');
+ if($font['type']!='core')
+ {
+ //Widths
+ $this->_newobj();
+ $cw=&$font['cw'];
+ $s='[';
+ for($i=32;$i<=255;$i++)
+ $s.=$cw[chr($i)].' ';
+ $this->_out($s.']');
+ $this->_out('endobj');
+ //Descriptor
+ $this->_newobj();
+ $s='<</Type /FontDescriptor /FontName /'.$name;
+ foreach($font['desc'] as $k=>$v)
+ $s.=' /'.$k.' '.$v;
+ $file=$font['file'];
+ if($file)
+ $s.=' /FontFile'.($font['type']=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R';
+ $this->_out($s.'>>');
+ $this->_out('endobj');
+ }
+ }
+ }
+}
+
+function _putType0($font)
+{
+ //Type0
+ $this->_out('/Subtype /Type0');
+ $this->_out('/BaseFont /'.$font['name'].'-'.$font['CMap']);
+ $this->_out('/Encoding /'.$font['CMap']);
+ $this->_out('/DescendantFonts ['.($this->n+1).' 0 R]');
+ $this->_out('>>');
+ $this->_out('endobj');
+ //CIDFont
+ $this->_newobj();
+ $this->_out('<</Type /Font');
+ $this->_out('/Subtype /CIDFontType0');
+ $this->_out('/BaseFont /'.$font['name']);
+// $this->_out('/CIDSystemInfo <</Registry (Adobe) /Ordering ('.$font['registry']['ordering'].') /Supplement '.$font['registry']['supplement'].'>>');
+ $this->_out('/CIDSystemInfo <</Registry '.$this->_textstring('Adobe').' /Ordering '.$this->_textstring($font['registry']['ordering']).' /Supplement '.$font['registry']['supplement'].'>>');
+ $this->_out('/FontDescriptor '.($this->n+1).' 0 R');
+ $W='/W [1 [';
+ foreach($font['cw'] as $w)
+ $W.=$w.' ';
+ $this->_out($W.']');
+ if($font['registry']['ordering'] == 'Japan1')
+ $this->_out(' 231 325 500 631 [500] 326 389 500');
+ $this->_out(']');
+ $this->_out('>>');
+ $this->_out('endobj');
+ //Font descriptor
+ $this->_newobj();
+ $this->_out('<</Type /FontDescriptor');
+ $this->_out('/FontName /'.$font['name']);
+ $this->_out('/Flags 6');
+ $this->_out('/FontBBox [0 0 1000 1000]');
+ $this->_out('/ItalicAngle 0');
+ $this->_out('/Ascent 1000');
+ $this->_out('/Descent 0');
+ $this->_out('/CapHeight 1000');
+ $this->_out('/StemV 10');
+ $this->_out('>>');
+ $this->_out('endobj');
+}
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+class pdf_context {
+
+ var $file;
+ var $buffer;
+ var $offset;
+ var $length;
+
+ var $stack;
+
+ // Constructor
+
+ function pdf_context($f) {
+ $this->file = $f;
+ $this->reset();
+ }
+
+ // Optionally move the file
+ // pointer to a new location
+ // and reset the buffered data
+
+ function reset($pos = null, $l = 100) {
+ if (!is_null ($pos)) {
+ fseek ($this->file, $pos);
+ }
+
+ $this->buffer = fread($this->file, $l);
+ $this->offset = 0;
+ $this->length = strlen($this->buffer);
+ $this->stack = array();
+ }
+
+ // Make sure that there is at least one
+ // character beyond the current offset in
+ // the buffer to prevent the tokenizer
+ // from attempting to access data that does
+ // not exist
+
+ function ensure_content() {
+ if ($this->offset >= $this->length - 1) {
+ return $this->increase_length();
+ } else {
+ return true;
+ }
+ }
+
+ // Forcefully read more data into the buffer
+
+ function increase_length($l=100) {
+ if (feof($this->file)) {
+ return false;
+ } else {
+ $this->buffer .= fread($this->file, $l);
+ $this->length = strlen($this->buffer);
+ return true;
+ }
+ }
+
+}
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+if (!defined ('PDF_TYPE_NULL'))
+ define ('PDF_TYPE_NULL', 0);
+if (!defined ('PDF_TYPE_NUMERIC'))
+ define ('PDF_TYPE_NUMERIC', 1);
+if (!defined ('PDF_TYPE_TOKEN'))
+ define ('PDF_TYPE_TOKEN', 2);
+if (!defined ('PDF_TYPE_HEX'))
+ define ('PDF_TYPE_HEX', 3);
+if (!defined ('PDF_TYPE_STRING'))
+ define ('PDF_TYPE_STRING', 4);
+if (!defined ('PDF_TYPE_DICTIONARY'))
+ define ('PDF_TYPE_DICTIONARY', 5);
+if (!defined ('PDF_TYPE_ARRAY'))
+ define ('PDF_TYPE_ARRAY', 6);
+if (!defined ('PDF_TYPE_OBJDEC'))
+ define ('PDF_TYPE_OBJDEC', 7);
+if (!defined ('PDF_TYPE_OBJREF'))
+ define ('PDF_TYPE_OBJREF', 8);
+if (!defined ('PDF_TYPE_OBJECT'))
+ define ('PDF_TYPE_OBJECT', 9);
+if (!defined ('PDF_TYPE_STREAM'))
+ define ('PDF_TYPE_STREAM', 10);
+
+require_once("pdf_context.php");
+
+class pdf_parser {
+
+ /**
+ * Filename
+ * @var string
+ */
+ var $filename;
+
+ /**
+ * File resource
+ * @var resource
+ */
+ var $f;
+
+ /**
+ * PDF Context
+ * @var object pdf_context-Instance
+ */
+ var $c;
+
+ /**
+ * xref-Data
+ * @var array
+ */
+ var $xref;
+
+ /**
+ * root-Object
+ * @var array
+ */
+ var $root;
+
+
+ /**
+ * Constructor
+ *
+ * @param string $filename Source-Filename
+ */
+ function pdf_parser($filename) {
+ $this->filename = $filename;
+
+ $this->f = @fopen($this->filename,"rb");
+
+ if (!$this->f)
+ $this->error(sprintf("Cannot open %s !",$filename));
+
+ $this->getPDFVersion();
+
+ $this->c = new pdf_context($this->f);
+ // Read xref-Data
+ $this->pdf_read_xref($this->xref, $this->pdf_find_xref());
+
+ // Check for Encryption
+ $this->getEncryption();
+
+ // Read root
+ $this->pdf_read_root();
+ }
+
+ /**
+ * Close the opened file
+ */
+ function closeFile() {
+ if (isset($this->f)) {
+ fclose($this->f);
+ }
+ }
+
+ /**
+ * Print Error and die
+ *
+ * @param string $msg Error-Message
+ */
+ function error($msg) {
+ die("<b>PDF-Parser Error:</b> ".$msg);
+ }
+
+ /**
+ * Check Trailer for Encryption
+ */
+ function getEncryption() {
+ if (isset($this->xref['trailer'][1]['/Encrypt'])) {
+ $this->error("File is encrypted!");
+ }
+ }
+
+ /**
+ * Find/Return /Root
+ *
+ * @return array
+ */
+ function pdf_find_root() {
+ if ($this->xref['trailer'][1]['/Root'][0] != PDF_TYPE_OBJREF) {
+ $this->Error("Wrong Type of Root-Element! Must be an indirect reference");
+ }
+ return $this->xref['trailer'][1]['/Root'];
+ }
+
+ /**
+ * Read the /Root
+ */
+ function pdf_read_root() {
+ // read root
+ $this->root = $this->pdf_resolve_object($this->c, $this->pdf_find_root());
+ }
+
+ /**
+ * Get PDF-Version
+ *
+ * And reset the PDF Version used in FPDI if needed
+ */
+ function getPDFVersion() {
+ fseek($this->f, 0);
+ preg_match("/\d\.\d/",fread($this->f,16),$m);
+ $this->pdfVersion = $m[0];
+ }
+
+ /**
+ * Find the xref-Table
+ */
+ function pdf_find_xref() {
+ fseek ($this->f, -50, SEEK_END);
+ $data = fread($this->f, 50);
+
+ if (!preg_match('/startxref\s*(\d+)\s*%%EOF\s*$/', $data, $matches)) {
+ $this->error("Unable to find pointer to xref table");
+ }
+
+ return (int) $matches[1];
+ }
+
+ /**
+ * Read xref-table
+ *
+ * @param array $result Array of xref-table
+ * @param integer $offset of xref-table
+ * @param integer $start start-position in xref-table
+ * @param integer $end end-position in xref-table
+ */
+ function pdf_read_xref(&$result, $offset, $start = null, $end = null) {
+ if (is_null ($start) || is_null ($end)) {
+ fseek($this->f, $o_pos = $offset);
+ $data = trim(fgets($this->f));
+
+ if ($data !== 'xref') {
+ fseek($this->f, $o_pos);
+ $data = trim(_fgets($this->f, true));
+
+ if ($data !== 'xref') {
+ $this->error("Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'");
+ }
+ }
+
+ $o_pos = ftell($this->f);
+ $data = explode(' ', trim(fgets($this->f)));
+ if (count($data) != 2) {
+ fseek($this->f, $o_pos);
+ $data = explode(' ', trim(_fgets($this->f, true)));
+
+ if (count($data) != 2)
+ $this->error("Unexpected header in xref table");
+ }
+ $start = $data[0];
+ $end = $start + $data[1];
+ }
+
+ if (!isset($result['xref_location'])) {
+ $result['xref_location'] = $offset;
+ }
+
+ if (!isset($result['max_object']) || $end > $result['max_object']) {
+ $result['max_object'] = $end;
+ }
+
+ for (; $start < $end; $start++) {
+ $data = fread($this->f, 20); // Spezifications says: 20 bytes including newlines
+ $offset = substr($data, 0, 10);
+ $generation = substr($data, 11, 5);
+
+ if (!isset ($result['xref'][$start][(int) $generation])) {
+ $result['xref'][$start][(int) $generation] = (int) $offset;
+ }
+ }
+
+ $o_pos = ftell($this->f);
+ $data = fgets($this->f);
+
+ if (preg_match("/trailer/",$data)) {
+ if (preg_match("/(.*trailer[ \n\r]+)/",$data,$m)) {
+ fseek($this->f, $o_pos+strlen($m[1]));
+ }
+
+ $c =& new pdf_context($this->f);
+ $trailer = $this->pdf_read_value($c);
+
+ if (isset($trailer[1]['/Prev'])) {
+ $this->pdf_read_xref($result, $trailer[1]['/Prev'][1]);
+ $result['trailer'][1] = array_merge($result['trailer'][1], $trailer[1]);
+ } else {
+ $result['trailer'] = $trailer;
+ }
+ } else {
+ $data = explode(' ', trim($data));
+
+ if (count($data) != 2) {
+ fseek($this->f, $o_pos);
+ $data = explode(' ', trim (_fgets ($this->f, true)));
+
+ if (count($data) != 2) {
+ $this->error("Unexpected data in xref table");
+ }
+ }
+
+ $this->pdf_read_xref($result, null, (int) $data[0], (int) $data[0] + (int) $data[1]);
+ }
+ }
+
+
+ /**
+ * Reads an Value
+ *
+ * @param object $c pdf_context
+ * @param string $token a Token
+ * @return mixed
+ */
+ function pdf_read_value(&$c, $token = null) {
+ if (is_null($token)) {
+ $token = $this->pdf_read_token($c);
+ }
+
+ if ($token === false) {
+ return false;
+ }
+
+ switch ($token) {
+ case '<':
+ // This is a hex string.
+ // Read the value, then the terminator
+
+ $pos = $c->offset;
+
+ while(1) {
+
+ $match = strpos ($c->buffer, '>', $pos);
+
+ // If you can't find it, try
+ // reading more data from the stream
+
+ if ($match === false) {
+ if (!$c->increase_length()) {
+ return false;
+ } else {
+ continue;
+ }
+ }
+
+ $result = substr ($c->buffer, $c->offset, $match - $c->offset);
+ $c->offset = $match+1;
+
+ return array (PDF_TYPE_HEX, $result);
+ }
+
+ break;
+ case '<<':
+ // This is a dictionary.
+
+ $result = array();
+
+ // Recurse into this function until we reach
+ // the end of the dictionary.
+ while (($key = $this->pdf_read_token($c)) !== '>>') {
+ if ($key === false) {
+ return false;
+ }
+
+ if (($value = $this->pdf_read_value($c)) === false) {
+ return false;
+ }
+ $result[$key] = $value;
+ }
+
+ return array (PDF_TYPE_DICTIONARY, $result);
+
+ case '[':
+ // This is an array.
+
+ $result = array();
+
+ // Recurse into this function until we reach
+ // the end of the array.
+ while (($token = $this->pdf_read_token($c)) !== ']') {
+ if ($token === false) {
+ return false;
+ }
+
+ if (($value = $this->pdf_read_value($c, $token)) === false) {
+ return false;
+ }
+
+ $result[] = $value;
+ }
+
+ return array (PDF_TYPE_ARRAY, $result);
+
+ case '(' :
+ // This is a string
+
+ $pos = $c->offset;
+
+ while(1) {
+
+ // Start by finding the next closed
+ // parenthesis
+
+ $match = strpos ($c->buffer, ')', $pos);
+
+ // If you can't find it, try
+ // reading more data from the stream
+
+ if ($match === false) {
+ if (!$c->increase_length()) {
+ return false;
+ } else {
+ continue;
+ }
+ }
+
+ // Make sure that there is no backslash
+ // before the parenthesis. If there is,
+ // move on. Otherwise, return the string.
+
+ if (isset($c->buffer[$match - 1]) && $c->buffer[$match - 1] !== '\\' ||
+ isset($c->buffer[$match - 1]) && $c->buffer[$match - 1] === '\\' && isset($c->buffer[$match - 2]) && $c->buffer[$match - 2] === '\\') {
+ $result = substr ($c->buffer, $c->offset, $match - $c->offset);
+ $c->offset = $match + 1;
+ return array (PDF_TYPE_STRING, $result);
+ } else {
+ $pos = $match + 1;
+
+ if ($pos > $c->offset + $c->length) {
+ $c->increase_length();
+ }
+ }
+ }
+
+ case "stream":
+ $o_pos = ftell($c->file)-strlen($c->buffer);
+ $o_offset = $c->offset;
+
+ $c->reset($startpos = $o_pos + $o_offset);
+
+ $e = 0; // ensure line breaks in front of the stream
+ if ($c->buffer[0] == chr(10) || $c->buffer[0] == chr(13))
+ $e++;
+ if ($c->buffer[1] == chr(10) && $c->buffer[0] != chr(10))
+ $e++;
+
+ if ($this->actual_obj[1][1]['/Length'][0] == PDF_TYPE_OBJREF) {
+ $tmp_c = new pdf_context($this->f);
+ $tmp_length = $this->pdf_resolve_object($tmp_c,$this->actual_obj[1][1]['/Length']);
+ $length = $tmp_length[1][1];
+ } else {
+ $length = $this->actual_obj[1][1]['/Length'][1];
+ }
+
+ $c->reset($startpos+$e,$length);
+ $v = $c->buffer;
+ $c->reset($startpos+$e+$length+strlen("endstream"));
+
+ return array(PDF_TYPE_STREAM, $v);
+
+ default :
+ if (is_numeric ($token)) {
+ // A numeric token. Make sure that
+ // it is not part of something else.
+ if (($tok2 = $this->pdf_read_token ($c)) !== false) {
+ if (is_numeric ($tok2)) {
+
+ // Two numeric tokens in a row.
+ // In this case, we're probably in
+ // front of either an object reference
+ // or an object specification.
+ // Determine the case and return the data
+ if (($tok3 = $this->pdf_read_token ($c)) !== false) {
+ switch ($tok3) {
+ case 'obj' :
+ return array (PDF_TYPE_OBJDEC, (int) $token, (int) $tok2);
+ case 'R' :
+ return array (PDF_TYPE_OBJREF, (int) $token, (int) $tok2);
+ }
+ // If we get to this point, that numeric value up
+ // there was just a numeric value. Push the extra
+ // tokens back into the stack and return the value.
+ array_push ($c->stack, $tok3);
+ }
+ }
+
+ array_push ($c->stack, $tok2);
+ }
+
+ return array (PDF_TYPE_NUMERIC, $token);
+ } else {
+
+ // Just a token. Return it.
+ return array (PDF_TYPE_TOKEN, $token);
+ }
+
+ }
+ }
+
+ /**
+ * Resolve an object
+ *
+ * @param object $c pdf_context
+ * @param array $obj_spec The object-data
+ * @param boolean $encapsulate Must set to true, cause the parsing and fpdi use this method only without this para
+ */
+ function pdf_resolve_object(&$c, $obj_spec, $encapsulate = true) {
+ // Exit if we get invalid data
+ if (!is_array($obj_spec)) {
+ return false;
+ }
+
+ if ($obj_spec[0] == PDF_TYPE_OBJREF) {
+
+ // This is a reference, resolve it
+ if (isset($this->xref['xref'][$obj_spec[1]][$obj_spec[2]])) {
+
+ // Save current file position
+ // This is needed if you want to resolve
+ // references while you're reading another object
+ // (e.g.: if you need to determine the length
+ // of a stream)
+
+ $old_pos = ftell($c->file);
+
+ // Reposition the file pointer and
+ // load the object header.
+
+ $c->reset($this->xref['xref'][$obj_spec[1]][$obj_spec[2]]);
+
+ $header = $this->pdf_read_value($c,null,true);
+
+ if ($header[0] != PDF_TYPE_OBJDEC || $header[1] != $obj_spec[1] || $header[2] != $obj_spec[2]) {
+ $this->error("Unable to find object ({$obj_spec[1]}, {$obj_spec[2]}) at expected location");
+ }
+
+ // If we're being asked to store all the information
+ // about the object, we add the object ID and generation
+ // number for later use
+ $this->actual_obj =& $result;
+ if ($encapsulate) {
+ $result = array (
+ PDF_TYPE_OBJECT,
+ 'obj' => $obj_spec[1],
+ 'gen' => $obj_spec[2]
+ );
+ } else {
+ $result = array();
+ }
+
+ // Now simply read the object data until
+ // we encounter an end-of-object marker
+ while(1) {
+ $value = $this->pdf_read_value($c);
+ if ($value === false || count($result) > 4) {
+ // in this case the parser coudn't find an endobj so we break here
+ break;
+ }
+
+ if ($value[0] == PDF_TYPE_TOKEN && $value[1] === 'endobj') {
+ break;
+ }
+
+ $result[] = $value;
+ }
+
+ $c->reset($old_pos);
+
+ if (isset($result[2][0]) && $result[2][0] == PDF_TYPE_STREAM) {
+ $result[0] = PDF_TYPE_STREAM;
+ }
+
+ return $result;
+ }
+ } else {
+ return $obj_spec;
+ }
+ }
+
+
+
+ /**
+ * Reads a token from the file
+ *
+ * @param object $c pdf_context
+ * @return mixed
+ */
+ function pdf_read_token(&$c)
+ {
+ // If there is a token available
+ // on the stack, pop it out and
+ // return it.
+
+ if (count($c->stack)) {
+ return array_pop($c->stack);
+ }
+
+ // Strip away any whitespace
+
+ do {
+ if (!$c->ensure_content()) {
+ return false;
+ }
+ $c->offset += _strspn($c->buffer, " \n\r", $c->offset);
+ } while ($c->offset >= $c->length - 1);
+
+ // Get the first character in the stream
+
+ $char = $c->buffer[$c->offset++];
+
+ switch ($char) {
+
+ case '[' :
+ case ']' :
+ case '(' :
+ case ')' :
+
+ // This is either an array or literal string
+ // delimiter, Return it
+
+ return $char;
+
+ case '<' :
+ case '>' :
+
+ // This could either be a hex string or
+ // dictionary delimiter. Determine the
+ // appropriate case and return the token
+
+ if ($c->buffer[$c->offset] == $char) {
+ if (!$c->ensure_content()) {
+ return false;
+ }
+ $c->offset++;
+ return $char . $char;
+ } else {
+ return $char;
+ }
+
+ default :
+
+ // This is "another" type of token (probably
+ // a dictionary entry or a numeric value)
+ // Find the end and return it.
+
+ if (!$c->ensure_content()) {
+ return false;
+ }
+
+ while(1) {
+
+ // Determine the length of the token
+
+ $pos = _strcspn($c->buffer, " []<>()\r\n\t/", $c->offset);
+
+ if ($c->offset + $pos <= $c->length - 1) {
+ break;
+ } else {
+ // If the script reaches this point,
+ // the token may span beyond the end
+ // of the current buffer. Therefore,
+ // we increase the size of the buffer
+ // and try again--just to be safe.
+
+ $c->increase_length();
+ }
+ }
+
+ $result = substr($c->buffer, $c->offset - 1, $pos + 1);
+
+ $c->offset += $pos;
+ return $result;
+ }
+ }
+
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+//
+// FPDI - Version 1.1
+//
+// Copyright 2004,2005 Setasign - Jan Slabon
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+if (!defined("PHP_VER_LOWER43"))
+ define("PHP_VER_LOWER43", version_compare(PHP_VERSION, "4.3", "<"));
+
+
+/**
+ * ensure that strspn works correct if php-version < 4.3
+ */
+function _strspn($str1, $str2, $start=null, $length=null) {
+ $numargs = func_num_args();
+
+ if (PHP_VER_LOWER43 == 1) {
+ if (isset($length)) {
+ $str1 = substr($str1, $start, $length);
+ } else {
+ $str1 = substr($str1, $start);
+ }
+ }
+
+ if ($numargs == 2 || PHP_VER_LOWER43 == 1) {
+ return strspn($str1, $str2);
+ } else if ($numargs == 3) {
+ return strspn($str1, $str2, $start);
+ } else {
+ return strspn($str1, $str2, $start, $length);
+ }
+}
+
+
+/**
+ * ensure that strcspn works correct if php-version < 4.3
+ */
+function _strcspn($str1, $str2, $start=null, $length=null) {
+ $numargs = func_num_args();
+
+ if (PHP_VER_LOWER43 == 1) {
+ if (isset($length)) {
+ $str1 = substr($str1, $start, $length);
+ } else {
+ $str1 = substr($str1, $start);
+ }
+ }
+
+ if ($numargs == 2 || PHP_VER_LOWER43 == 1) {
+ return strcspn($str1, $str2);
+ } else if ($numargs == 3) {
+ return strcspn($str1, $str2, $start);
+ } else {
+ return strcspn($str1, $str2, $start, $length);
+ }
+}
+
+
+/**
+ * ensure that fgets works correct if php-version < 4.3
+ */
+function _fgets (&$h, $force=false) {
+ $startpos = ftell($h);
+ $s = fgets($h, 1024);
+
+ if ((PHP_VER_LOWER43 == 1 || $force) && preg_match("/^([^\r\n]*[\r\n]{1,2})(.)/",trim($s), $ns)) {
+ $s = $ns[1];
+ fseek($h,$startpos+strlen($s));
+ }
+
+ return $s;
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * ¥Æ¥ó¥×¥ì¡¼¥È¥é¥¤¥Ö¥é¥ê
+ *
+ * @author kuwayama
+ * @version $Revision: 1.10 $ $Date: 2006/12/28 07:36:12 $
+ *
+ */
+class ACSTemplateLib
+{
+ /**
+ * ¥Ú¡¼¥¸¥ó¥°¥ê¥ó¥¯½ÐÎÏ
+ *
+ * @param $paging_info
+ */
+ function print_paging_link ($paging_info) {
+ if (!$paging_info) {
+ return;
+ }
+
+ // ·ï¿ôɽ¼¨
+ //echo "Á´$paging_info[all_count]·ï: $paging_info[start_count]-$paging_info[end_count]·ï¤òɽ¼¨<br>\n";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg('lib','ACSTemplateLib.class.php','PAGE_INFO'),
+ array(
+ "{ALL_COUNT}" => $paging_info[all_count],
+ "{START_COUNT}" => $paging_info[start_count],
+ "{END_COUNT}" => $paging_info[end_count]
+ ));
+
+ // 1¥Ú¡¼¥¸¤Î¤ß¤Î¾ì¹ç¤Ïɽ¼¨½ªÎ»
+ if (!$paging_info['paging_row_array']) {
+ echo "<br>\n";
+ return;
+ }
+
+ // Á°¤Ø¡¦¼¡¤Ø
+ if ($paging_info['prev_link']) {
+ echo "<a href=\"$paging_info[prev_link]\">".ACSMsg::get_mdmsg(__FILE__,'M001')."</a>";
+ } else {
+ echo ACSMsg::get_mdmsg(__FILE__,'M001');
+ }
+ echo " ";
+ if ($paging_info['next_link']) {
+ echo "<a href=\"$paging_info[next_link]\">".ACSMsg::get_mdmsg(__FILE__,'M002')."</a>";
+ } else {
+ echo ACSMsg::get_mdmsg(__FILE__,'M002');
+ }
+ echo " ";
+
+ // ¥Ú¡¼¥¸¿ôɽ¼¨
+ foreach ($paging_info['paging_row_array'] as $paging_row) {
+ print '<span class="page_number">';
+ // ¥ê¥ó¥¯¤¬¤¢¤ë¾ì¹ç¤Î¤ß
+ if ($paging_row['link_url']) {
+ print '<a href="' . $paging_row['link_url'] . '">';
+ print $paging_row['page_number'];
+ print '</a>';
+ } else {
+ print '<b>' . $paging_row['page_number'] . '</b>';
+ }
+ print '</span>' . "\n";
+ }
+ print "<br><br>\n";
+ }
+
+ /**
+ * ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸½ÐÎÏ
+ *
+ * @param $error_message_array
+ */
+ function print_error_message ($error_message_array) {
+ if ($error_message_array) {
+ print '<div class="err_msg">' . "\n";
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸É½¼¨
+ foreach ($error_message_array as $error_message) {
+ print htmlspecialchars($error_message) . "<br>\n";
+ }
+ print "</div>\n";
+ }
+ }
+
+ /**
+ * ʸ»úÎó¤ËÂФ·URL¼«Æ°¥ê¥ó¥¯¤ò¹Ô¤¦
+ *
+ * @param $str
+ * @return $str
+ */
+ function auto_link($str) {
+ $str = ereg_replace("(https?|ftp)(://[[:alnum:]\+\$\;\?\.%,!#~*/:@&=_-]+)",
+ "<a href=\"\\1\\2\" target=\"_blank\">\\1\\2</a>",
+ $str);
+ return $str;
+ }
+
+ /*
+ * Ť¤Ê¸»úÎó¤òÀÚ¤êµÍ¤á¤ë (¥Ð¥¤¥È»ØÄê)
+ *
+ * @param ʸ»úÎó
+ * @param ºÇÂç¥Ð¥¤¥È¿ô
+ * @return ʸ»úÎó
+ */
+ function trim_long_str($str, $max_str_byte = 50) {
+ $long_str_suffix = '...';
+ if (mb_strwidth($str) > $max_str_byte) {
+ $str = mb_strcut($str, 0, $max_str_byte) . $long_str_suffix;
+ }
+ return $str;
+ }
+
+ /**
+ * ¥Õ¥¡¥¤¥ë¤Î¼ïÎà¤Ë¤è¤Ã¤Æ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤òÀÚ¤êÂؤ¨¤ëJavaScript
+ *
+ * @param $form_name ¥Õ¥©¡¼¥à̾
+ * @param $file_contents_type_master_array ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ * @param $file_contents_type_master_row_array_array ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿¤ÎÇÛÎó¤ÎÇÛÎó
+ * @return null
+ */
+ function print_change_file_contents_js($form_name, $file_contents_type_master_array, $file_contents_type_master_row_array_array) {
+ echo "<script language=\"JavaScript\">\n";
+ echo "<!--\n";
+
+ echo "window.onload = function () {\n";
+ echo " change_file_contents();\n";
+ echo "}\n";
+
+ echo "var file_contents_type_code_array = new Array(\"";
+ echo implode('", "', array_keys($file_contents_type_master_array));
+ echo "\");\n";
+ echo "var file_contents_type_code_array_array = new Array();\n";
+
+ foreach ($file_contents_type_master_row_array_array as $file_contents_type_master_row_array) {
+ echo "file_contents_type_code_array_array[\"{$file_contents_type_master_row_array['file_category_code']}\"] = new Array(";
+ $str = '';
+ foreach ($file_contents_type_master_row_array['file_contents_type_master_row_array'] as $file_contents_type_master_row) {
+ if ($str != '') {
+ $str .= ', ';
+ }
+ $str .= '"' . $file_contents_type_master_row['file_contents_type_code'] . '"';
+ }
+ echo $str;
+ echo ");\n";
+ }
+
+ echo "function change_file_contents() {\n";
+ echo " file_category_code = document.forms[\"$form_name\"].elements[\"file_category_code\"].value;\n";
+ echo " for (var i = 0; i < file_contents_type_code_array.length; i++) {\n";
+ echo " tr_obj = document.getElementById(\"file_contents_tr[\" + file_contents_type_code_array[i] + \"]\");\n";
+ echo " if (in_array(file_contents_type_code_array[i], file_contents_type_code_array_array[file_category_code])) {\n";
+ echo " // ɽ¼¨\n";
+ echo " tr_obj.style.display = \"\";\n";
+ echo " } else {\n";
+ echo " // Èóɽ¼¨\n";
+ echo " tr_obj.style.display = \"none\";\n";
+ echo " }\n";
+ echo " }\n";
+ echo "}\n";
+
+ echo "function in_array(user_value, user_array) {\n";
+ echo " for (var i = 0; i < user_array.length; i++) {\n";
+ echo " if (user_value == user_array[i]) {\n";
+ echo " return true;\n";
+ echo " }\n";
+ echo " }\n";
+ echo " return false;\n";
+ echo "}\n";
+
+ echo "//-->\n";
+ echo "</script>\n";
+ }
+
+ /*
+ * ǯÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param int $selected_year ½é´üÃÍ(̤»ØÄê»þ¤Ï¸½ºßǯ)
+ * @param int $start_year ³«»Ïǯ(̤»ØÄê»þ¤Ï¸½ºßǯ)
+ * @param int $length ÁªÂòǯ¤ÎŤµ(̤»ØÄê»þ¤Ï3ǯʬ)
+ * @return string ǯÁªÂòoptionʸ»úÎó
+ */
+ function get_year_select_options ($selected_year = '', $start_year = '', $length = 3) {
+
+ $dt = getdate();
+ if ($selected_year === '') {
+ $selected_year = $dt['year'];
+ }
+ if ($start_year === '') {
+ $start_year = $dt['year'];
+ }
+
+ $vals = array();
+ for ($year = $start_year; $year < ($start_year + $length); $year++) {
+ $vals[$year] = $year;
+ }
+ return ACSTemplateLib::get_simple_select_options($vals,$selected_year);
+ }
+
+ /*
+ * ·îÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param int $selected_month ½é´üÃÍ(̤»ØÄê»þ¤Ï¸½ºß·î)
+ * @return string ·îÁªÂòoptionʸ»úÎó
+ */
+ function get_month_select_options ($selected_month = '') {
+
+ if ($selected_month === '') {
+ $dt = getdate();
+ $selected_month = $dt['mon'];
+ }
+
+ $vals = array();
+ for ($month = 1; $month <= 12; $month++) {
+ $vals[$month] = sprintf("%02d",$month);
+ }
+ return ACSTemplateLib::get_simple_select_options($vals,$selected_month);
+ }
+
+ /*
+ * ÆüÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param int $selected_day ½é´üÃÍ(̤»ØÄê»þ¤Ï¸½ºßÆü)
+ * @return string ÆüÁªÂòoptionʸ»úÎó
+ */
+ function get_day_select_options ($selected_day = '') {
+
+ if ($selected_day === '') {
+ $dt = getdate();
+ $selected_day = $dt['mday'];
+ }
+
+ $vals = array();
+ for ($day = 1; $day <= 31; $day++) {
+ $vals[$day] = sprintf("%02d",$day);
+ }
+ return ACSTemplateLib::get_simple_select_options($vals,$selected_day);
+ }
+
+ /*
+ * »þÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param int $selected_hour ½é´üÃÍ(̤»ØÄê»þ¤Ï¸½ºß»þ)
+ * @return string »þÁªÂòoptionʸ»úÎó
+ */
+ function get_hour_select_options ($selected_hour = '') {
+
+ if ($selected_hour === '') {
+ $dt = getdate();
+ $selected_hour = $dt['hours'];
+ }
+
+ $vals = array();
+ for ($hour = 0; $hour <= 23; $hour++) {
+ $vals[$hour] = sprintf("%02d",$hour);
+ }
+ return ACSTemplateLib::get_simple_select_options($vals,$selected_hour);
+ }
+
+ /*
+ * ʬÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param int $selected_min ½é´üÃÍ(̤»ØÄê»þ¤Ï¸½ºßʬ)
+ * @param int $step_min ÁªÂòºÇ¾®Ã±°Ì(̤»ØÄê»þ¤Ï5ʬ)
+ * @return string ʬÁªÂòoptionʸ»úÎó
+ */
+ function get_min_select_options ($selected_min = '', $step_min = 5) {
+
+ if ($selected_min === '') {
+ $dt = getdate();
+ $selected_min = $dt['minutes'];
+ }
+
+ $vals = array();
+ for ($min = 0; $min <= 59; $min += $step_min) {
+ $vals[$min] = sprintf("%02d",$min);
+ }
+ return ACSTemplateLib::get_simple_select_options(
+ $vals, floor($selected_min/$step_min)*$step_min);
+ }
+
+ /*
+ * ÁªÂò¥ê¥¹¥ÈoptionsÀ¸À®
+ *
+ * @param array $vals_array ÁªÂòÃͤΰìÍ÷ÇÛÎó(key => value ·Á¼°)
+ * @param string $selected_val ½é´üÃÍ(̤»ØÄê»þ¤ÏÀèƬ)
+ * @param string $is_blank_ok ¥Ö¥é¥ó¥¯ÁªÂòÀßÄê(̤»ØÄê»þ¤ÏÉÔ²Ä)
+ * @return string ÆüÁªÂòoptionʸ»úÎó
+ */
+ function get_simple_select_options (
+ $vals_array, $selected_val = '', $is_blank_ok = FALSE) {
+ $html = '';
+ if ($is_blank_ok == TRUE) {
+ $html .= '<option value="">'."\n";
+ }
+ foreach ($vals_array as $value => $display) {
+ $html .= '<option value="' . $value . '" ' .
+ ($value == $selected_val ? ' SELECTED' : ''). '>' . $display . "\n";
+ }
+ return $html;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: CloseChildWindowAction.class.php,v 1.1 2005/12/28 08:58:57 w-ota Exp $
+
+class CloseChildWindowAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DoneAction.class.php,v 1.2 2006/01/06 07:59:01 kuwayama Exp $
+
+class DoneAction extends BaseAction
+{
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤΥǡ¼¥¿¤ò¼èÆÀ
+ $done_obj = $request->getAttribute('done_obj');
+
+ // set
+ $request->setAttribute('done_obj', $done_obj);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥¢¥¯¥»¥¹ÉԲĥá¥Ã¥»¡¼¥¸É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/27 07:49:27 $
+ */
+class GlobalSecureAction extends Action
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_id = $user->getAttribute('login_user_id');
+ return View::SUCCESS;
+ }
+
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_id = $user->getAttribute('login_user_id');
+ if ($user_id == null || $user_id == "") {
+ if (ACSSystem::check_connect_outside() != "0") {
+ // LDAPÀܳ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ $this->setError($controller, $request, $user, 'login_input',
+ ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M002'));
+ }
+ else if ($_POST['userid'] != NULL && $_POST['userid'] != "") {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ $this->setError($controller, $request, $user, 'login_input',
+ ACSMsg::get_msg('Common', 'GlobalSecureAction.class.php', 'M001'));
+ }
+ return View::INPUT;
+ }
+
+ if ($acs_user_info_row['is_acs_user']) {
+ // ¥í¥°ÅÐÏ¿: ¥í¥°¥¤¥ó
+ ACSLog::set_log($acs_user_info_row, 'Login', true,
+ "[UserID:" .$acs_user_info_row['user_id']. "]");
+
+ // ¥é¥¹¥È¥í¥°¥¤¥óÅÐÏ¿
+ ACSUser::set_last_login($acs_user_info_row);
+ header("Location: ./" . $_SERVER['REQUEST_URI']);
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+}
+?>
--- /dev/null
+[module]
+ ENABLED = "On"
+ TITLE = "ACS Common Module"
+ VERSION = "1.0"
+ NAME = "Common"
+ AUTHOR = "acs"
+ HOMEPAGE = ""
+ UPDATE_URL = ""
+ DESCRIPTION = "Academic Community System Common module"
+
--- /dev/null
+<?php
+// $Id: CloseChildWindow.tpl.php,v 1.2 2006/01/30 09:44:09 w-ota Exp $
+?>
+<script>
+<!--
+window.onload = function () {
+ window.opener.document.location.href = window.opener.document.location.href;
+ window.close();
+}
+-->
+</script>
--- /dev/null
+<?php
+// $Id: Done.tpl.php,v 1.3 2006/03/01 05:25:59 kuwayama Exp $
+?>
+
+<span class="sub_title"><?= $this->_tpl_vars['title'] ?></span><br>
+<br>
+
+<?= $this->_tpl_vars['message'] ?><br>
+<br>
+
+<?php
+$str = '';
+foreach ($this->_tpl_vars['link_row_array'] as $link_row) {
+ if ($str != '') {
+ $str .= ' ';
+ }
+ $str .= "<a href=\"" .$link_row['url']. "\">" . htmlspecialchars($link_row['link_name']) . "</a>";
+}
+echo "$str<br>\n";
+?>
--- /dev/null
+<?= ACSMsg::get_msg("Common", "GlobalSecure.tpl.php","M001") ?>
--- /dev/null
+<?php
+// $Id: LoginInput.tpl.php,v 1.00 2008/03/03 19:00:00 y-yuki Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Common", "Index.tpl.php",'M001') ?></div>
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<table class="layout_table">
+<tr>
+<td><?= ACSMsg::get_msg("Common", "Index.tpl.php",'M002') ?></td>
+<td><input type="text" name="userid" value="<?= htmlspecialchars($_POST['userid']) ?>" size="30" style="width:200px" tabindex="1"></td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("Common", "Index.tpl.php",'M003') ?></td>
+<td><input type="password" name="passwd" value="<?= htmlspecialchars($_POST['passwd']) ?>" size="30" style="width:200px" tabindex="2"></td>
+</tr>
+<tr>
+<td colspan="2" align="center">
+<input type="submit" value="<?= ACSMsg::get_msg("Common", "Index.tpl.php",'M004') ?>" tabindex="3">
+</td>
+</tr>
+</table>
+</td></tr></table>
+</form>
+</p>
--- /dev/null
+<?php
+// $Id: CloseChildWindowView::SUCCESS.class.php,v 1.1 2005/12/28 08:59:39 w-ota Exp $
+
+class CloseChildWindowSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('CloseChildWindow.tpl.php');
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DoneView::SUCCESS.class.php,v 1.2 2006/01/06 07:56:22 kuwayama Exp $
+
+
+class DoneSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $done_obj = $request->getAttribute('done_obj');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Done.tpl.php');
+
+ // set
+ $this->setAttribute('title', $done_obj->get_title());
+ $this->setAttribute('message', $done_obj->get_message());
+ $this->setAttribute('link_row_array', $done_obj->get_link_row_array());
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥¢¥¯¥»¥¹ÉԲĥá¥Ã¥»¡¼¥¸É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/27 07:49:29 $
+ */
+class GlobalSecureSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $user_info_row_array = $request->getAttribute('user_info_row_array');
+ $form = $request->getAttribute('form');
+
+ // set REQUEST_URI
+ $request->setAttribute('request_uri', $_SERVER['REQUEST_URI']);
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
+
+ // ²Ã¹©
+ if (is_array($user_info_row_array)) {
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ $user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
+ }
+ }
+
+ // URL
+ $action_url = $_SERVER['REQUEST_URI'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('LoginInput.tpl.php');
+
+ // set
+ $this->setAttribute('form', $form);
+ $this->setAttribute('user_info_row_array', $user_info_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', "User");
+ $this->setAttribute('action', "Login");
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥¢¥¯¥»¥¹ÉԲĥá¥Ã¥»¡¼¥¸É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/27 07:49:29 $
+ */
+class GlobalSecureSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('GlobalSecure.tpl.php');
+ $this->setScreenId("0001");
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: AddCommunityLinkAction.class.php,v 1.8 2006/11/20 08:44:12 w-ota Exp $
+
+class AddCommunityLinkAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // forward
+ $done_obj = new ACSDone();
+
+ ACSDB::_do_query("BEGIN");
+
+ // À¸À®¤µ¤ì¤¿waiting_id¤ÎÇÛÎó
+ $waiting_id_array = array();
+ $ret = 1; // 1:À®¸ù / 0:¼ºÇÔ
+
+ foreach ($form['trusted_community_id_array'] as $link_community_id) {
+ if (ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $link_community_id)) {
+ // ¥ê¥ó¥¯°ÍÍêÀ襳¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô¤Ç¤¢¤ë¾ì¹ç¤Ï¾µÇ§ÂÔ¤ÁÅÐÏ¿¤»¤º¤Ë¡¢Â¨ºÂ¤Ë¥ê¥ó¥¯¤òÄɲ乤ë
+ if ($form['link_type'] == 'parent') {
+ $ret = ACSCommunity::set_community_link($link_community_id, $community_id);
+ } elseif ($form['link_type'] == 'sub') {
+ $ret = ACSCommunity::set_community_link($community_id, $link_community_id);
+ }
+
+ } else {
+ if ($form['link_type'] == 'parent') {
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲþµÇ§ÂÔ¤ÁÅÐÏ¿
+ $waiting_id = ACSWaiting::set_waiting_for_parent_community_link($link_community_id, $community_id, $acs_user_info_row['user_community_id'], $form['message']);
+ } elseif ($form['link_type'] == 'sub') {
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲþµÇ§ÂÔ¤ÁÅÐÏ¿
+ $waiting_id = ACSWaiting::set_waiting_for_sub_community_link($link_community_id, $community_id, $acs_user_info_row['user_community_id'], $form['message']);
+ }
+
+ if ($waiting_id) {
+ // À¸À®¤µ¤ì¤¿waiting¾ðÊó¤òÊÝ»ý
+ array_push($waiting_id_array, $waiting_id);
+ } else {
+ $ret = 0;
+ }
+ }
+
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ break;
+ }
+ }
+
+ if ($ret) {
+ // COMMIT
+ ACSDB::_do_query("COMMIT");
+
+ // À¸À®¤µ¤ì¤¿waiting¾ðÊó¤ò¸µ¤ËÊ£¿ô¥á¡¼¥ëÁ÷¿®
+ foreach ($waiting_id_array as $waiting_id) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲðÍÍêÄÌÃΥ᡼¥ë
+ ACSWaiting::send_admission_request_notify_mail($waiting_id);
+ }
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M002'));
+ $done_obj->add_link(ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M003'), $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id']);
+ $done_obj->add_link($community_row['community_name'] . ' '. ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M004'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+ } else {
+ $done_obj->set_message('¼ºÇÔ¤·¤Þ¤·¤¿¡£');
+ }
+
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "link_type",
+ true,
+ ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M006'));
+
+ parent::regValidateName($validatorManager,
+ "trusted_community_id_array",
+ true,
+ ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M007'));
+
+ parent::regValidateName($validatorManager,
+ "message",
+ true,
+ ACSMsg::get_msg('Community', 'AddCommunityLinkAction.class.php', 'M008'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSSchedule.class.php');
+require_once(ACS_CLASS_DIR . 'ACSScheduleParticipant.class.php');
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ë²óÅú
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+class AnswerScheduleAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_community_id = $request->getParameter('community_id');
+ $target_schedule_id = $request->getParameter('schedule_id');
+
+ if (!$this->get_execute_privilege()) {
+
+ // 2010.03.24 ̤¥í¥°¥¤¥ó»þ¤ÎͶƳ
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ç¤Ê¤¤¾ì¹ç¤Ï¥í¥°¥¤¥ó²èÌ̤Ø
+ if ($user->hasCredential('PUBLIC_USER')) {
+ $controller->forward("User", "Login");
+ return;
+ }
+
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ÎÀßÄê
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $target_community_row =
+ ACSCommunity::get_community_row($target_community_id);
+ $request->setAttributeByRef('target_community_row', $target_community_row);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î¼èÆÀ
+ $schedule =& ACSSchedule::get_schedule_instance(
+ $target_community_id, $target_schedule_id);
+
+ $request->setAttributeByRef('schedule', $schedule);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥¥ã¥Ã¥·¥å
+ $user->setAttribute('schedule', serialize($schedule));
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î»²²Ã¾ðÊó¤Î¼èÆÀ
+ if ($request->getAttribute('schedule_participant')) {
+ $schedule_participant =& $request->getAttribute('schedule_participant');
+ } else {
+ $schedule_participant =&
+ ACSScheduleParticipant::get_schedule_participant_instance(
+ $schedule->schedule_id, $acs_user_info_row['user_community_id']);
+ $request->setAttributeByRef('schedule_participant', $schedule_participant);
+ }
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î»²²Ã¾ðÊó¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥¥ã¥Ã¥·¥å
+ $user->setAttribute('org_participant', serialize($schedule_participant));
+
+ // ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¼ÔÁ´°÷¤Î¾ðÊó¤ò¼èÆÀ
+ $schedule_participant_list =&
+ ACSScheduleParticipant::get_schedule_participant_instance_list(
+ $schedule->schedule_id, $schedule->is_target_all());
+ $request->setAttributeByRef('schedule_participant_list', $schedule_participant_list);
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ÅÐÏ¿¼Â¹Ô½èÍý
+ * POST¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function execute () {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $params =& $request->getParameters();
+
+ $redirect_url = $this->getControllerPath(
+ 'Community', 'Schedule') .
+ "&community_id=" . $params['community_id'];
+
+ $schedule_participant =& $this->getFormPostParticipant(
+ &$params, unserialize($user->getAttribute('org_participant')));
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÅÐÏ¿¤Ç¤¤Ê¤¤¥¹¥±¥¸¥å¡¼¥ë¤Î¾ì¹ç¥¹¥ë¡¼
+ // ºÇ¿·¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤ò¼èÆÀ¤·¤Æ²ÄÈݤò³Îǧ
+ $schedule =& ACSSchedule::get_schedule_instance(
+ $params['community_id'], $schedule_participant->schedule_id);
+ if ($schedule->is_fixed() || $schedule->is_close()) {
+ $controller->redirect($redirect_url);
+ }
+
+ // »²²ÃÀÚÂؤξì¹çºÆɽ¼¨
+ if ($params['participate']) {
+ $request->setAttributeByRef('schedule_participant',$schedule_participant);
+
+ // £Ä£Â¹¹¿·(»²²ÃÅÐÏ¿¤Î¤ß)
+ $schedule_participant->update_participant(TRUE);
+
+ return $this->getDefaultView();
+
+ } else {
+
+ // £Ä£Â¹¹¿·
+ $schedule_participant->update_participant();
+ }
+
+ // ¥ê¥À¥¤¥ì¥¯¥È(¥ê¥í¡¼¥ÉÂкö)
+ $controller->redirect($redirect_url);
+ }
+
+ /**
+ * POST¥Ñ¥é¥á¡¼¥¿¤«¤é¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎºîÀ®
+ *
+ * @param array $post_params POST¥Ñ¥é¥á¡¼¥¿
+ * @param object $org_answer Êѹ¹Á°¤Î¸µ¥Ç¡¼¥¿
+ * @return object ACSScheduleParticipant¥¤¥ó¥¹¥¿¥ó¥¹
+ */
+ function & getFormPostParticipant($post_params, $org_answer) {
+
+ $participant =& $org_answer;
+
+ if ($post_params['participate']) {
+ if ($post_params['participate'] == 't') {
+ $participant->participant_delete_flag = 'f';
+ } else {
+ $participant->participant_delete_flag = 't';
+ }
+ }
+
+ $participant->set_answer($post_params['answers']);
+ $participant->participant_comment = $post_params['participant_comment'];
+
+ return $participant;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡Action¥¯¥é¥¹
+ * Åê¹Æ¾ðÊó¡¡ÆþÎÏ¡¦É½¼¨
+ * @package acs/webapp/modules/Community/action
+ * @author ºîÀ®ota Êѹ¹akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.14 $ $Date: 2007/03/28 05:58:18 $
+ */
+// $Id: BBSAction.class.php,v 1.14 2007/03/28 05:58:18 w-ota Exp $
+
+
+class BBSAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+ $community_row = ACSExternalRSS::add_contents_row_array($community_row);
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_row_array = ACSBBS::get_bbs_row_array($community_id);
+
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+
+ // ÊÖ¿®µ»ö
+ $bbs_row_array[$index]['bbs_res_row_array'] = ACSBBS::get_bbs_res_row_array($bbs_row['bbs_id']);
+ }
+ if($community_row['contents_row_array']['self']['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D43'));
+ }else{
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row_array', $bbs_row_array);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ //¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+
+ $user = $context->getUser();
+ $move_id = $request->getParameter('move_id');
+ if($move_id == 3){
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSGetParameter('community_id');
+
+ // ¸µ¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');//·ï̾¡§subject ÆâÍÆ¡§body ¸ø³«ÈÏ°Ï¡§open_level_code ²èÁü¡§new_file ·ÇºÜ½ªÎ»Æü¡§xdate
+ $form['community_id'] = $community_id;
+ $form['user_community_id'] = $acs_user_info_row['user_community_id']; // Åê¹Æ¼Ô
+
+ $user->setAttribute('new_form_obj',$form);
+ // GET¤Î½èÍý¤Ø
+ return $this->getDefaultView();
+ // $bbs_top_page_url = $this->getControllerPath('Community', $controller->getCurrentAction()) . '&community_id=' . $community_id;
+ // header("Location: $bbs_top_page_url");
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿É½¼¨
+ *
+ * @author akitsu
+ * @version $Revision: 1.3 $ $Date: 2007/03/28 10:20:22 $
+ */
+class BBSImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $bbs_id = $request->getParameter('id');
+ $view_mode = $request->getParameter('mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $bbs_row = ACSBBS::get_bbs_row($bbs_id);
+
+ $is_permitted = false;
+
+ /* ¥¢¥¯¥»¥¹¸¢¥Á¥§¥Ã¥¯ */
+ // ±ÜÍ÷²Äǽ¤«¥Á¥§¥Ã¥¯¤¹¤ë
+ // ºï½ü¥Õ¥é¥°¡¢Á´ÂΤθø³«ÈϰϤò¥Á¥§¥Ã¥¯
+ // ¸¢¸Â¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* ¼Ì¿¿É½¼¨ */
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $image_file_id = $bbs_row['file_id'];
+ if ($image_file_id) {
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ }
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ return array();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $bbs_row = ACSBBS::get_bbs_row($request->ACSGetParameter('id'));
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ if ($bbs_row['open_level_code'] == '06') {
+ return array();
+ }
+
+ $community_id = $bbs_row['bbs_community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¸ø³«ÈϰϾðÊó¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $bbs_row = ACSBBS::get_bbs_row($request->ACSGetParameter('id'));
+ if (!$bbs_row) {
+ return false;
+ }
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ if ($bbs_row['open_level_code'] == '06') {
+ return true;
+ }
+ $bbs_row['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ $target_community_row = ACSCommunity::get_community_profile_row($bbs_row['bbs_community_id']);
+
+ // ¥¹¥ì¥Ã¥É¤´¤È¤Î¥¢¥¯¥»¥¹À©¸æȽÄê
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $target_community_row);
+ $ret = ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $bbs_row);
+
+ return $ret;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡action¥¯¥é¥¹
+ * Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿½èÍý
+ * @package acs/webapp/modules/Community/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.12 $ $Date: 2006/12/19 10:17:26 $
+ */
+// $Id: BBSPreAction.class.php,v 1.12 2006/12/19 10:17:26 w-ota Exp $
+class BBSPreAction extends BaseAction
+{
+ //field
+ var $form;
+
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+ // ¥æ¡¼¥¶¡¼¾ðÊó
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ //¥¨¥é¡¼¤Î½é´ü²½
+
+
+/* ÆþÎϲèÌ̤è¤ê */
+ if($move_id==1){
+ $err = 'OK'; //¥¨¥é¡¼Ãͤνé´ü²½
+//¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form['subject'] = $request->getParameter('subject');//·ï̾¡§subject
+ $form['body'] = $request->getParameter('body'); //ÆâÍÆ¡§body
+ $form['open_level_code'] = $request->getParameter('open_level_code'); //¸ø³«ÈÏ°Ï¥³¡¼¥É¡§open_level_code
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $form['open_level_code']){
+ $form['open_level_name'] = htmlspecialchars($open_level_master_row['open_level_name']) ;//¸ø³«ÈÏ°Ïɽ¼¨Ì¾¡§open_level_name
+ }
+ }
+ $form['new_file'] = $request->getParameter('new_file'); //²èÁü¡§new_file
+ //¥Õ¥¡¥¤¥ë¾ðÊó¤Î¤¢¤ë¤Ê¤·¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤¯
+ if (!ini_get('mbstring.encoding_translation')) {
+ $form['file_name'] = mb_convert_encoding($_FILES['new_file']['name'], mb_internal_encoding(), mb_http_output());
+ } else {
+ $form['file_name'] = $_FILES['new_file']['name'];
+ }
+
+ if($form['file_name'] != ''){
+ /* ¥Ç¥£¥ì¥¯¥È¥ê¸ºß¥Á¥§¥Ã¥¯ */
+ // ¤Ê¤¤¾ì¹ç¤ÏºîÀ®¤¹¤ë
+ $to_dir = ACS_TEMPORARY_FILE_DIR;
+ if(!file_exists($to_dir)) {mkdir($to_dir); chmod($to_dir, 0777);}
+ //¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì¹ç¡¢²¾ÃÖ¤¾ì½ê¤òÀßÄꤹ¤ë
+ $_FILES['new_file']['upload_tmp_dir'] = ACS_TEMPORARY_FILE_DIR;
+ //²¾ÃÖ¤¤Î¥Õ¥¡¥¤¥ë̾¤òÀßÄꤹ¤ë
+ $type_name = session_id();
+ $upload = $_FILES['new_file']['upload_tmp_dir'];
+ $upload .= $type_name;
+ if ( !move_uploaded_file( $_FILES['new_file']['tmp_name'], $upload ) ) {
+ echo "¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿\n";
+ }
+ $_FILES['new_file']['tmp_name'] = $upload;
+ $form['file_obj'] = $_FILES['new_file'];
+ $user->setAttribute('new_file_info',$upload);
+ $user->setAttribute('new_file_obj',$_FILES['new_file']);
+ }
+ $form['xdate'] = $request->getParameter('xdate'); //·ÇºÜºÇ½ªÆü¡§xdate
+ //·ÇºÜºÇ½ªÆü¥Ç¥Õ¥©¥ë¥ÈÃÍ
+ if($form['xdate'] == ''){
+ $form[xdate] ='';
+ }
+ //±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£
+ $form['trusted_community_id_array'] = $request->getParameter('trusted_community_id_array');
+ $form['trusted_community_row_array'] = ACSCommunity::get_each_community_row_array($form['trusted_community_id_array']);
+
+ $form['community_id'] = $community_id; //Åö¥³¥ß¥å¥Ë¥Æ¥£¤ÎID
+ $form['user_community_id'] = $acs_user_info_row['user_community_id']; // Åê¹Æ¼Ôprint "form_row:";
+
+ // MLÁ÷¿®¥ª¥×¥·¥ç¥ó
+ $form['is_ml_send'] = $request->getParameter('is_ml_send'); //²èÁü¡§new_file
+//¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ $user->setAttribute('new_form_obj',$form);
+
+ return View::SUCCESS;
+
+
+
+
+
+/* ÅÐÏ¿³ÎÄê¥Ü¥¿¥ó¡Ö¤Ï¤¤¡×¤è¤ê */
+ }else if($move_id==2){
+//¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');
+ $new_file_obj = $form['file_obj'];
+//¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ // DB¤Ø¤Î½ñ¤¹þ¤ßÅù
+ ACSDB::_do_query("BEGIN");
+ if($form['file_name'] != ""){ //¥Õ¥¡¥¤¥ë¾ðÊ󤬤¢¤Ã¤¿¾ì¹ç
+ //1.¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ(¿·µ¬)
+ $file_obj = ACSFile::get_upload_file_info_instance($user->getAttribute('new_file_obj'),$community_id,$form['user_community_id']);
+ //form¾ðÊó¤ØÅÐÏ¿
+ $form['new_file'] = $file_obj;
+ }
+ //2.bbs¥Æ¡¼¥Ö¥ë¾ðÊó
+ $ret = ACSBBS::set_bbs($form);
+ if($ret){
+ ACSDB::_do_query("COMMIT");
+ // ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò
+ ACSBBS::set_bbs_access_history($acs_user_info_row['user_community_id'], $ret);
+ }else{
+ ACSDB::_do_query("ROLLBACK");
+ }
+ $bbs_id_seq = $ret;
+
+ // ML¥ª¥×¥·¥ç¥ó¤¢¤ê¤Î¾ì¹ç
+ if ($form['is_ml_send']=='t') {
+
+ // ML¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ
+ $ml_status_row = ACSCommunity::get_contents_row(
+ $community_id, ACSMsg::get_mst('contents_type_master','D62'));
+ $ml_status = $ml_status_row['contents_value'];
+
+ // MLͤê¤Î¾ì¹ç¥á¡¼¥ë¤òÁ÷¿®
+ if ($bbs_id_seq && $ml_status == 'ACTIVE') {
+
+ // ·ï̾ÊÔ½¸
+ $subject = str_replace('{BBSID}',
+ $bbs_id_seq,ACS_COMMUNITY_ML_SUBJECT_FORMAT) . $form['subject'];
+
+ // MLÁ÷¿®
+ ACSCommunityMail::send_community_mailing_list(
+ $community_id,
+ $acs_user_info_row['mail_addr'],
+ $subject,
+ $form['body']);
+ }
+ }
+
+ $action_url = $this->getControllerPath('Community', 'BBS'). '&community_id=' . $community_id. '&move_id=4';
+
+ header("Location: $action_url");
+ }
+}
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $move_id = $request->getParameter('move_id');
+
+ // ÆþÎϲèÌ̤«¤é¤Î¾ì¹ç¤Î¤ß¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤ò¤¹¤ë
+ if ($move_id == 1) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('Community', 'BBSPreAction.class.php', 'M001'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('Community', 'BBSPreAction.class.php', 'M002'));
+ parent::regValidateName($validatorManager,
+ "open_level_code",
+ true,
+ ACSMsg::get_msg('Community', 'BBSPreAction.class.php', 'M003'));
+
+ /* ÆüÉÕ¥Á¥§¥Ã¥¯ */
+ // ·ÇºÜ½ªÎ»Æü
+ $xdate = $request->getParameter('xdate');
+ if ($xdate) {
+ $validator =& new DateValidator($controller);
+ $criteria = array('date_error' => ACSMsg::get_msg('Community', 'BBSPreAction.class.php', 'M004'));
+ $validator->initialize($criteria);
+ //$validatorManager->register('xdate', $validator);
+ $validatorManager->registerValidator('xdate', $validator);
+ }
+ }
+ }
+
+ function handleError () {
+ return $this->execute();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥ì¥Ó¥å¡¼¼Ì¿¿É½¼¨
+ *
+ * @author akitsu
+ * @version $Revision: 1.3 $ $Date: 2006/11/20 08:44:12 $
+ */
+
+class BBSPreImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+// $file_name = $request->getParameter('file_name');
+ $mime_type = $request->getParameter('type');
+ $new_file_info = $request->getParameter('new_file_info');
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+
+ if (preg_match('/image/', $mime_type)) {
+ $action = 'inline';//¥Ö¥é¥¦¥¶Æâɽ¼¨
+ mb_http_output('pass'); // output_buffering¤ò̵¸ú¤Ë¤¹¤ë
+ header("Content-disposition: $action; filename=\$file_name\"");
+ header("Content-type: $content_type");
+ // ¥Õ¥¡¥¤¥ë¤òÆɤ߽Ф¹
+ readfile($new_file_info);
+ } else {
+ echo "This is not picture file format¡ª";
+ return $back_url;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄRSS¡¡Action¥¯¥é¥¹
+ *
+ * $Id: BBSRSSAction.class.php,v 1.1 2006/12/13 09:51:32 w-ota Exp $
+ */
+class BBSRSSAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ $community_row['community_profile'] = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D07'));
+
+ // ¼èÆÀ´ü´Ö
+ $term = intval($request->ACSgetParameter('term'));
+ if (!$term) {
+ // ¥·¥¹¥Æ¥àÀßÄê: ¥³¥ß¥å¥Ë¥Æ¥£: ·Ç¼¨ÈÄRSS¼èÆÀ´ü´Ö
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D03'), 'BBS_RSS_TERM');
+ }
+
+ // ºÇ¿·¤Î·Ç¼¨ÈÄRSS
+ $bbs_row_array = ACSBBS::get_new_bbs_rss_row_array($community_id, $term);
+
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row_array', $bbs_row_array);
+ $request->setAttribute('term', $term);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: BBSResAction.class.php,v 1.10 2006/11/20 08:44:12 w-ota Exp $
+
+
+class BBSResAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤëbbs_id¤ò¼èÆÀ
+ $bbs_id = $request->getParameter('bbs_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_row = ACSBBS::get_bbs_row($bbs_id);
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ // ÊÖ¿®µ»ö
+ $bbs_row['bbs_res_row_array'] = ACSBBS::get_bbs_res_row_array($bbs_row['bbs_id']);
+
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+
+ // ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSBBS::set_bbs_access_history($acs_user_info_row['user_community_id'], $bbs_row['bbs_id']);
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row', $bbs_row);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ $move_id = $request->getParameter('move_id');
+ if($move_id == 3){
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSGetParameter('community_id');
+ // ÂоݤȤʤëbbs_id¤ò¼èÆÀ
+ $bbs_id = $request->getParameter('bbs_id');
+
+ // ¸µ¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');//·ï̾¡§subject ÆâÍÆ¡§body
+ $form['community_id'] = $community_id;
+ $form['user_community_id'] = $acs_user_info_row['user_community_id']; // Åê¹Æ¼Ô
+
+ $user->setAttribute('new_form_obj',$form);
+ // GET¤Î½èÍý¤Ø
+ return $this->getDefaultView();
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege (&$controller, &$request, &$user) {
+
+ // ¸ø³«ÈϰϾðÊó¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_row = ACSCommunity::get_community_profile_row($request->getParameter('community_id'));
+ $bbs_row = ACSBBS::get_bbs_row($request->getParameter('bbs_id'));
+ if (!$bbs_row) {
+ return false;
+ }
+ $bbs_row['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+
+ // ¥¢¥¯¥»¥¹À©¸æȽÄê
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $target_community_row);
+ $ret = ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $bbs_row);
+
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡action¥¯¥é¥¹
+ * ÊÖ¿®Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿½èÍý
+ * @package acs/webapp/modules/Community/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.7 $ $Date: 2006/02/28
+ */
+// $Id: BBSResPreAction.class.php,v 1.7 2006/12/19 10:17:26 w-ota Exp $
+
+
+class BBSResPreAction extends BaseAction
+{
+ //field
+ var $form;
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+ // ¥æ¡¼¥¶¡¼¾ðÊó
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+
+ /* ÆþÎϲèÌ̤è¤ê */
+ if($move_id==1){
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form['subject'] = $request->getParameter('subject');//·ï̾¡§subject
+ // ËÜʸ
+ $form['body'] = $request->getParameter('body'); //ÆâÍÆ¡§body
+
+ $form['community_id'] = $community_id; //Åö¥³¥ß¥å¥Ë¥Æ¥£¤ÎID
+ $form['user_community_id'] = $acs_user_info_row['user_community_id']; // Åê¹Æ¼Ôprint "form_row:";
+ $form['bbs_id'] = $bbs_id; // Åê¹Æ¼Ôprint "form_row:";
+
+ $user->setAttribute('new_form_obj',$form);
+ return View::SUCCESS;
+
+ /* ÅÐÏ¿³ÎÄê¥Ü¥¿¥ó¡Ö¤Ï¤¤¡×¤è¤ê */
+ }else if($move_id==2){
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');
+ // DB¤Ø¤Î½ñ¤¹þ¤ßÅù
+ $ret = ACSBBS::set_bbs_res($form);
+
+ if($ret){
+
+ // ·Ç¼¨ÈÄ¥¢¥¯¥»¥¹ÍúÎò¤ØµÏ¿
+ ACSBBS::set_bbs_access_history(
+ $acs_user_info_row['user_community_id'], $form['bbs_id']);
+
+ // bbs¾ðÊó¼èÆÀ
+ $bbs_row = ACSBBS::get_bbs_row($request->getParameter('bbs_id'));
+
+ // ML¥ª¥×¥·¥ç¥ó¤¢¤ê¤Î¾ì¹ç
+ if ($bbs_row['ml_send_flag']=='t') {
+
+ // ML¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ
+ $ml_status_row = ACSCommunity::get_contents_row(
+ $community_id, ACSMsg::get_mst('contents_type_master','D62'));
+ $ml_status = $ml_status_row['contents_value'];
+
+ // MLͤê¤Î¾ì¹ç¥á¡¼¥ë¤òÁ÷¿®
+ if ($ml_status == 'ACTIVE') {
+
+ // "Re:"¤Îºï½ü
+ $subject_msg = mb_ereg_replace(
+ ACS_COMMUNITY_ML_SUBJECT_PREFIX_CLEAR_REGEX,
+ '', $form['subject']);
+
+ // ·ï̾ÊÔ½¸
+ $subject = "Re: ".str_replace('{BBSID}', $bbs_id,
+ ACS_COMMUNITY_ML_SUBJECT_FORMAT) . $subject_msg;
+
+ // MLÁ÷¿®
+ ACSCommunityMail::send_community_mailing_list(
+ $community_id, $acs_user_info_row['mail_addr'],
+ $subject, $form['body']);
+ }
+ }
+
+ } else {
+ echo ACSMsg::get_msg('Community', 'BBSResPreAction.class.php', 'M001');
+ }
+
+ // ½ñ¤¹þ¤ß¸å¡¢BBS Top ɽ¼¨¤Î½èÍý¤Ø
+ $action_url = $this->getControllerPath('Community', 'BBS'). '&community_id=' . $community_id. '&move_id=4';
+ header("Location: $action_url");
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $move_id = $request->getParameter('move_id');
+
+ // ÆþÎϲèÌ̤«¤é¤Î¾ì¹ç¡¢ÆþÎÏ¥Á¥§¥Ã¥¯
+ if ($move_id == 1){
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('Community', 'BBSResPreAction.class.php', 'M002'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('Community', 'BBSResPreAction.class.php', 'M003'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->execute();
+ }
+
+ function getCredential () {
+ return array('EXECUTE');
+ }
+
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: BBSThreadListAction.class.php,v 1.3 2006/11/20 08:44:12 w-ota Exp $
+
+class BBSThreadListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_row_array = ACSBBS::get_bbs_row_array($community_id);
+
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row_array', $bbs_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2007/03/28 02:51:43 $
+ */
+class CommunityImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $community_id = $request->getParameter('community_id');
+ $view_mode = $request->getParameter('mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ $is_permitted = false;
+ /* ¥¢¥¯¥»¥¹¸¢¥Á¥§¥Ã¥¯ */
+ // ±ÜÍ÷²Äǽ¤«¥Á¥§¥Ã¥¯¤¹¤ë
+ // ºï½ü¥Õ¥é¥°¡¢Á´ÂΤθø³«ÈϰϤò¥Á¥§¥Ã¥¯
+
+ /* ¼Ì¿¿É½¼¨ */
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $image_file_id = $community_row['file_id'];
+ if ($image_file_id) {
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ } else {
+ $image_url = ACSCommunity::get_default_image_url($view_mode);
+ header("Location: $image_url");
+ }
+
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ï¥á¥ó¥Ð¤Î¤ß¥¢¥¯¥»¥¹²Äǽ
+ $community_self_info_row = ACSCommunity::get_contents_row($request->getParameter('community_id'), ACSMsg::get_mst('contents_type_master','D00'));
+ if ($community_self_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ return array('COMMUNITY_MEMBER');
+ }
+ return array();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: CommunityLinkAction.class.php,v 1.2 2006/03/28 02:00:22 kuwayama Exp $
+
+class CommunityLinkAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSGetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $sub_community_row_array = ACSCommunity::get_sub_community_row_array($community_id);
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $parent_community_row_array = ACSCommunity::get_parent_community_row_array($community_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('sub_community_row_array', $sub_community_row_array);
+ $request->setAttribute('parent_community_row_array', $parent_community_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityMemberListAction.class.php,v 1.2 2005/12/28 06:36:34 w-ota Exp $
+
+class CommunityMemberListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $community_member_user_info_row_array = ACSCommunity::get_community_member_user_info_row_array($community_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CreateCommunityAction.class.php,v 1.7 2006/12/28 07:36:13 w-ota Exp $
+
+class CreateCommunityAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $bbs_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D41'));
+ $community_folder_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D31'));
+ $self_open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D00'));
+
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥Þ¥¹¥¿
+ $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
+ foreach ($category_group_master_row_array as $index => $category_group_master_row) {
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¤´¤È¤Î¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+ $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
+ }
+
+ // set
+ $request->setAttribute('bbs_open_level_master_row_array', $bbs_open_level_master_row_array);
+ $request->setAttribute('community_folder_open_level_master_row_array', $community_folder_open_level_master_row_array);
+ $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
+ $request->setAttribute('self_open_level_master_row_array', $self_open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ if ($form['community_ml_address'] != '') {
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¤Ë¥×¥ì¥Õ¥£¥Ã¥¯¥¹¡¦¥µ¥Õ¥£¥Ã¥¯¥¹¤òÄɲÃ
+ $form['community_ml_address'] =
+ ACS_COMMUNITY_ML_ADDR_PREFIX .
+ $form['community_ml_address'] .
+ ACS_COMMUNITY_ML_ADDR_SUFFIX;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ºîÀ®
+ $community_id = ACSCommunity::set_community($form);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // forward
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M002'));
+ $done_obj->add_link($community_row['community_name'] . ' '.ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M003'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯
+ */
+ function validate () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥Ñ¥é¥á¡¼¥¿¼èÆÀ
+ $params =& $request->getParameters();
+
+ $result = TRUE;
+
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î¥Á¥§¥Ã¥¯
+ if ($params['community_ml_address']) {
+ // ±Ñ¿ô»ú-_¤Î¥Á¥§¥Ã¥¯
+ if (!ereg( "^[a-z|A-Z|0-9|_|\-]+$", $params['community_ml_address'])) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M051'));
+ $result = FALSE;
+ }
+ // ±Ñ¿ô»ú»Ï¤Þ¤ê¤Î¥Á¥§¥Ã¥¯
+ if (!ereg( "^[a-z|A-Z|0-9]+", $params['community_ml_address'])) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M052'));
+ $result = FALSE;
+ }
+ // ÍøÍѤǤ¤Ê¤¤Ì¾Á°¤Î¥Á¥§¥Ã¥¯
+ $ng_name_array = explode(",",ACS_COMMUNITY_ML_ADDR_NGNAMES);
+ if (in_array(strtolower($params['community_ml_address']),$ng_name_array)) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M053').ACS_COMMUNITY_ML_ADDR_NGNAMES);
+ $result = FALSE;
+ }
+ // ´û¸¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹
+ if (ACSCommunity::is_exists_ml_addr(
+ ACS_COMMUNITY_ML_ADDR_PREFIX .
+ $params['community_ml_address'] .
+ ACS_COMMUNITY_ML_ADDR_SUFFIX)) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M054'));
+ $result = FALSE;
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯(ValidatorManager»ÈÍÑ)
+ */
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+
+ $params =& $request->ACSGetParameters();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾ [schedule_name]
+ parent::regValidateName($validatorManager,
+ "community_name",
+ true,
+ ACSMsg::get_msg('Community', 'CreateCommunityAction.class.php', 'M007'));
+ }
+
+ /**
+ * ÆþÎÏ¥Á¥§¥Ã¥¯¥¨¥é¡¼»þ¤ÎÂбþ
+ */
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥Ñ¥é¥á¡¼¥¿¼èÆÀ
+ $params =& $request->getParameters();
+ $result = $this->getDefaultView();
+
+ if ($result != View::INPUT) {
+ return $result;
+ }
+
+ $community_row =& $request->getAttribute('community_row');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÉü¸µ
+ $community_row['community_name'] = $params['community_name'];
+ $community_row['category_code'] = $params['category_code'];
+ $community_row['admission_flag'] =
+ $params['admission_flag'] == '1' ? 't' : 'f';
+ $community_row['contents_row_array']['community_profile']['contents_value'] =
+ $params['community_profile'];
+ $community_row['contents_row_array']['bbs']['open_level_code'] =
+ $params['bbs_open_level_code'];
+ $community_row['contents_row_array']['community_folder']['open_level_code'] =
+ $params['community_folder_open_level_code'];
+ $community_row['contents_row_array']['self']['open_level_code'] =
+ $params['self_open_level_code'];
+
+ // »²²Ã»ñ³Ê¤Î¸ø³«ÈϰϤÎÉü¸µ
+ $join_trusted_community_row_array =&
+ $community_row['join_trusted_community_row_array'];
+ $join_trusted_community_row_array = array();
+ if (is_array($params['join_trusted_community_id_array'])) {
+ foreach ($params['join_trusted_community_id_array'] as $trusted_community_id) {
+ $join_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ·Ç¼¨ÈĤθø³«ÈϰϤÎÉü¸µ
+ $bbs_trusted_community_row_array =&
+ $community_row['contents_row_array']['bbs']['trusted_community_row_array'];
+ $bbs_trusted_community_row_array = array();
+ if (is_array($params['bbs_trusted_community_id_array'])) {
+ foreach ($params['bbs_trusted_community_id_array'] as $trusted_community_id) {
+ $bbs_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤÎÉü¸µ
+ $community_folder_trusted_community_row_array =&
+ $community_row['contents_row_array']['community_folder']['trusted_community_row_array'];
+ $community_folder_trusted_community_row_array = array();
+ if (is_array($params['community_folder_trusted_community_id_array'])) {
+ foreach ($params['community_folder_trusted_community_id_array'] as $trusted_community_id) {
+ $community_folder_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ÊÔ½¸Ãæ¤Î¥³¥ß¥å¥Ë¥Æ¥£¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÎÉü¸µ
+ $request->setAttributeByRef('edit_community_ml_address',
+ $params['community_ml_address']);
+
+ $request->setAttributeByRef('community_row',$community_row);
+
+ return View::INPUT;
+ }
+
+ function getCredential () {
+ return array('ACS_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')) {
+ return false;
+ }
+ return true;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+require_once(dirname(__FILE__).'/AnswerScheduleAction.class.php');
+//require_once(VALIDATOR_DIR . 'StringValidator.class.php');
+
+// ÆþÎÏʸ»úºÇÂçĹ(Ⱦ³Ñ¤Ç¤Îʸ»ú¿ô)
+define( '_DECIDESCHEDULEACTION_MAIL_SUBJECT_MAXLEN', 256 );
+define( '_DECIDESCHEDULEACTION_MAIL_MESSAGE_MAXLEN', 4096 );
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ë·èÄê
+ *
+ * @author z-satosi
+ * @version $Revision: 1.3 $
+ */
+class DecideScheduleAction extends AnswerScheduleAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ *
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë¡£
+ * "schedule_id"¥Ñ¥é¥á¡¼¥¿¤¬Ìµ¤¤¾ì¹ç¤Ï¿·µ¬ºîÀ®¤È¤¹¤ë¡£
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+
+ // ·èÄêÁªÂò²èÌ̤«¤é¤ÎÁ«°Ü¤Î¾ì¹ç
+ if ($params['post_from_answer']=='t') {
+ return $this->execute();
+ }
+
+ $target_community_id = $params['community_id'];
+ $target_schedule_id = $params['schedule_id'];
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ÎÀßÄê
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+
+ // ´´»ö¤Ç¤Ê¤¤¥¹¥±¥¸¥å¡¼¥ë¤ä·èÄêºÑ¤Î¾ì¹ç¥»¥¥å¥ê¥Æ¥£¥¨¥é¡¼
+ // ºÇ¿·¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤ò¼èÆÀ¤·¤Æ²ÄÈݤò³Îǧ
+ $schedule =& ACSSchedule::get_schedule_instance(
+ $params['community_id'], $params['schedule_id']);
+ if ($schedule->is_fixed() || !$schedule->is_organizer($acs_user_info_row)) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ·èÄê¸õÊäÆü»þ¤ÎÀßÄê(¥á¡¼¥ë¥Õ¥©¡¼¥à¤«¤é"Ìá¤ë"»þ¤ÎÂбþ)
+ $request->setAttribute('mailentry_adjustment_id',
+ $request->getParameter('mailentry_adjustment_id'));
+
+ return parent::getDefaultView();
+ }
+
+ /**
+ * ¥á¡¼¥ë¥Õ¥©¡¼¥àÆþÎϲèÌ̤Îɽ¼¨
+ */
+ function getMailInputView (&$controller, &$request, &$user) {
+
+ $params =& $request->getParameters();
+ $schedule =& $request->getAttribute('schedule');
+
+ $target_community_id = $params['community_id'];
+ $target_schedule_id = $params['schedule_id'];
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ÎÀßÄê
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+
+ // ´´»ö¤Ç¤Ê¤¤¥¹¥±¥¸¥å¡¼¥ë¤ä·èÄêºÑ¤Î¾ì¹ç¥»¥¥å¥ê¥Æ¥£¥¨¥é¡¼
+ if ($schedule->is_fixed() || !$schedule->is_organizer($acs_user_info_row)) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $target_community_row =
+ ACSCommunity::get_community_row($target_community_id);
+ $request->setAttributeByRef('target_community_row', $target_community_row);
+
+ // ·èÄê¸õÊäÆü»þ¤ÎÀßÄê
+ $request->setAttributeByRef('mailentry_adjustment_id',
+ $params['mailentry_adjustment_id']);
+
+ // ¥¨¥é¡¼»þ¤ÎºÆɽ¼¨ÍÑ
+ $request->setAttribute('mail_subject',$params['mail_subject']);
+ $request->setAttribute('mail_message',$params['mail_message']);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ÅÐÏ¿¼Â¹Ô½èÍý
+ * POST¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ÎÀßÄê
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+
+ // ´´»ö¤Ç¤Ê¤¤¥¹¥±¥¸¥å¡¼¥ë¤ä·èÄêºÑ¤Î¾ì¹ç¥»¥¥å¥ê¥Æ¥£¥¨¥é¡¼
+ // ºÇ¿·¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤ò¼èÆÀ¤·¤Æ²ÄÈݤò³Îǧ
+ $schedule =& ACSSchedule::get_schedule_instance(
+ $params['community_id'], $params['schedule_id']);
+ if ($schedule->is_fixed() || !$schedule->is_organizer($acs_user_info_row)) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¸õÊäÆü»þÁªÂò²èÌ̤«¤é¤ÎPOST¤Î¾ì¹ç
+ if ($params['post_from_answer']=='t') {
+ $request->setAttributeByRef('schedule',$schedule);
+
+ $return_view = $this->getMailInputView($controller, $request, $user);
+
+ // ¥á¡¼¥ëÆþÎϲèÌ̤«¤é¤ÎPOST¤Î¾ì¹ç
+ } else {
+
+ // DB¹¹¿·
+ $schedule->update_decide_schedule($params['mailentry_adjustment_id']);
+
+ // ¥·¥¹¥Æ¥à¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¼èÆÀ
+ $system_mail_addr = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');
+
+ // ¥á¡¼¥ëÁ÷¿®Áê¼ê¤ÎÀßÄê
+ // ¼«Í³»²²Ã¤Î¾ì¹çÂоݤȤʤë¥á¥ó¥Ð¤Î¼èÆÀ
+ $target_mmb = "";
+ if ($schedule->is_target_all()===FALSE) {
+ $p_array =& ACSScheduleParticipant::get_schedule_participant_instance_list(
+ $schedule->schedule_id,FALSE);
+ foreach ($p_array as $user_community_id => $schedule_participant) {
+ $target_mmb[] = $user_community_id;
+ }
+ $p_array = "";
+ }
+
+ // ¥á¡¼¥ë¤ÎÁ÷¿®
+ ACSCommunityMail::send_community_mail(
+ $schedule->community_id, $system_mail_addr,
+ $params['mail_subject'], $params['mail_message'], $target_mmb);
+
+ // ¥ê¥À¥¤¥ì¥¯¥È(¥ê¥í¡¼¥ÉÂкö)
+ $controller->redirect(
+ $this->getControllerPath(
+ 'Community', 'Schedule') .
+ "&community_id=" . $schedule->community_id);
+
+ }
+ return $return_view;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯
+ */
+ function validate () {
+ return TRUE;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯(ValidatorManager»ÈÍÑ)
+ */
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥Ñ¥é¥á¡¼¥¿¼èÆÀ
+ $params =& $request->getParameters();
+
+ // ¥á¡¼¥ëÆþÎϲèÌ̤«¤é¤ÎPOST¤Î¾ì¹ç
+ if ($params['post_from_answer']!='t') {
+
+ // ·ï̾¤ÎÆþÎÏ¥Á¥§¥Ã¥¯
+ parent::regValidateName($validatorManager,
+ "mail_subject",
+ true,
+ ACSMsg::get_msg('Community', 'DecideScheduleAction.class.php', 'M050'));
+
+ if ($params['mail_subject']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _DECIDESCHEDULEACTION_MAIL_SUBJECT_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'DecideScheduleAction.class.php', 'M051').
+ _DECIDESCHEDULEACTION_MAIL_SUBJECT_MAXLEN));
+ }
+
+ // ËÜʸ¤ÎÆþÎÏ¥Á¥§¥Ã¥¯
+ parent::regValidateName($validatorManager,
+ "mail_message",
+ true,
+ ACSMsg::get_msg('Community', 'DecideScheduleAction.class.php', 'M052'));
+
+ if ($params['mail_message']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _DECIDESCHEDULEACTION_MAIL_MESSAGE_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'DecideScheduleAction.class.php', 'M053').
+ _DECIDESCHEDULEACTION_MAIL_MESSAGE_MAXLEN));
+ }
+ }
+ }
+
+ /**
+ * ÆþÎÏ¥Á¥§¥Ã¥¯¥¨¥é¡¼»þ¤ÎÂбþ
+ */
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+
+ $schedule =& ACSSchedule::get_schedule_instance(
+ $params['community_id'], $params['schedule_id']);
+
+ $request->setAttributeByRef('schedule',$schedule);
+
+ return $this->getMailInputView($controller, $request, $user);
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æ ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteBBSAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @version ver1.0 $ 2006/02/23 $
+ */
+
+class DeleteBBSAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // get parameter
+ $target_community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+
+ $bbs_change_url = $this->getControllerPath('Community','BBS');
+ $bbs_change_url .= '&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id;
+
+ $delete_bbs_url = $this->getControllerPath('Community','DeleteBBS') .'&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id;
+ $back_url = $bbs_change_url;
+
+ $request->setAttribute('delete_bbs_url', $delete_bbs_url);
+ $request->setAttribute('back_url', $back_url);
+ // ɽ¼¨
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_community_id = $request->getParameter('community_id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $bbs_id = $request->getParameter('bbs_id');
+ //¥Õ¥¡¥¤¥ë¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ $bbs_obj = ACSBBS::get_bbs_row($bbs_id);
+ if(!$bbs_obj){
+ echo ACSMsg::get_msg('Community', 'DeleteBBSAction.class.php', 'M001');
+ }
+ $ret =ACSBBS::delete_bbs($bbs_obj);
+ if (!$ret) {
+ echo "ERROR: delete article failed";
+ }
+
+ //ɽ¼¨
+ $bbs_change_url = $this->getControllerPath('Community','BBS');
+ $bbs_change_url .= '&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id;
+ header("Location: $bbs_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ´ÉÍý¿Í¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+
+ // ½ñ¤¹þ¤ó¤À¥á¥ó¥ÐËܿͤÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ $bbs_row = ACSBBS::get_bbs_row($request->getParameter('bbs_id'));
+ if ($acs_user_info_row['user_community_id'] == $bbs_row['user_community_id']) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡ÊÖ¿®Åê¹Æ ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteBBSResAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @version ver1.0 $ 2006/02/23 $
+ */
+
+class DeleteBBSResAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // get parameter
+ $target_community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+ $bbs_res_id = $request->getParameter('bbs_res_id');
+
+ $bbs_change_url = $this->getControllerPath('Community','BBSRes');
+ $bbs_change_url .= '&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id;
+
+ $delete_bbs_url = $this->getControllerPath('Community','DeleteBBSRes') ;
+ $delete_bbs_url .= '&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id .'&bbs_res_id=' .$bbs_res_id;
+ $back_url = $bbs_change_url;
+
+ $request->setAttribute('delete_bbs_res_url', $delete_bbs_url);
+ $request->setAttribute('back_url', $back_url);
+ // ɽ¼¨
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_community_id = $request->getParameter('community_id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $bbs_id = $request->getParameter('bbs_id');
+ $bbs_res_id = $request->getParameter('bbs_res_id');
+ $post_date = $request->getParameter('post_date');
+ //ÊÖ¿®¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ $ret =ACSBBS::delete_bbs_res(array($bbs_res_id));
+ if (!$ret) {
+ echo "ERROR: delete reply-article failed";
+ }
+
+ //ɽ¼¨
+ $bbs_change_url = $this->getControllerPath('Community','BBSRes');
+ $bbs_change_url .= '&community_id=' . $target_community_id .'&bbs_id=' .$bbs_id;
+
+ header("Location: $bbs_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ËܿͤÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+
+ // ½ñ¤¹þ¤ó¤À¥á¥ó¥ÐËܿͤÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ $bbs_res_row = ACSBBS::get_bbs_res_row($request->getParameter('bbs_res_id'));
+ if ($acs_user_info_row['user_community_id'] == $bbs_res_row['user_community_id']) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.7 $ $Date: 2006/11/20 08:44:12 $
+ */
+// ¥¢¥Ã¥×¥í¡¼¥ÉÀè¥Ç¥£¥ì¥¯¥È¥ê¼èÆÀ¤ËɬÍ×
+//require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+require_once(ACS_CLASS_DIR . 'ACSDone.class.php');
+class DeleteCommunityAction extends BaseAction
+{
+ /**
+ * ³Îǧ²èÌÌɽ¼¨
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£³µÍ×¼èÆÀ
+ $target_community_row['community_profile'] =
+ ACSCommunity::get_contents_row($target_community_id, ACSMsg::get_mst('contents_type_master','D07'));
+
+ $request->setAttribute('target_community_row', $target_community_row);
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü½èÍý
+ */
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ /* ºï½ü½èÍý */
+ ACSDB::_do_query("BEGIN");
+ $ret = ACSCommunity::delete_community($target_community_id);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ "ERROR : delete community failed";
+ exit;
+ }
+
+ // ¥Õ¥©¥ë¥À¤Î¥Ç¥£¥ì¥¯¥È¥ê°ÜÆ°
+ $from_dir = ACS_FOLDER_DIR . "/";
+ $from_dir .= ACSFile::get_upload_file_save_path($target_community_id);
+
+ if (file_exists($from_dir)) {
+ $to_dir = ACS_TRASH_FOLDER_DIR . "/";
+ $to_dir .= ACSFile::get_upload_file_save_path($target_community_id);
+ if (!file_exists(ACS_TRASH_FOLDER_DIR)) {
+ // ÃÖ¤¾ì½ê¥Ç¥£¥ì¥¯¥È¥ê¤¬¤Ê¤±¤ì¤ÐºîÀ®¤¹¤ë
+ mkdir(ACS_TRASH_FOLDER_DIR);
+ chmod(ACS_TRASH_FOLDER_DIR, 0777);
+ }
+
+ $ret = rename($from_dir, $to_dir);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ "ERROR : delete community failed";
+ exit;
+ }
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+
+ /* ´°Î»²èÌÌɽ¼¨ */
+ // °ú¿ô¥»¥Ã¥È
+ $message = ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'DELETECM'),
+ array('{TARGET_COMMUNITY_NAME}' => $target_community_row['community_name']));
+ $top_page_url = $this->getControllerPath('User', 'Index');
+ $top_page_link_name = ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M001');
+
+ $done_obj = new ACSDone();
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M002'));
+ $done_obj->set_message($message);
+ $done_obj->add_link($top_page_link_name, $top_page_url);
+
+ $request->setAttribute('done_obj', $done_obj);
+
+ // ²èÌ̸ƤӽФ·
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DeleteCommunityLinkAction.class.php,v 1.4 2006/11/20 08:44:12 w-ota Exp $
+
+class DeleteCommunityLinkAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+ // ºï½ü¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¥ê¥ó¥¯¤Î¥³¥ß¥å¥Ë¥Æ¥£ID
+ $delete_community_id = $request->ACSgetParameter('delete_community_id');
+ // mode
+ $mode = $request->ACSgetParameter('mode');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ºï½ü¤¹¤ë¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ if ($mode == 'parent') {
+ $delete_community_row = ACSCommunity::get_parent_community_row($delete_community_id, $community_id);
+ } elseif ($mode == 'sub') {
+ $delete_community_row = ACSCommunity::get_sub_community_row($community_id, $delete_community_id);
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('delete_community_row', $delete_community_row);
+ $request->setAttribute('mode', $mode);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ if ($form['mode'] == 'parent') {
+ $parent_community_id = $form['delete_community_id'];
+ $sub_community_id = $community_id;
+ } elseif ($form['mode'] == 'sub') {
+ $parent_community_id = $community_id;
+ $sub_community_id = $form['delete_community_id'];
+ }
+
+ // ºï½ü
+ ACSCommunity::delete_community_link($parent_community_id, $sub_community_id);
+
+ // forward
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M002'));
+ $done_obj->add_link(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M003'), $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id']);
+
+ $done_obj->add_link(
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $community_row['community_name'])),
+ $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $community_row['community_id']);
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('COMMUNITY_ADMIN');
+ }
+
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðºï½ü½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/11/20 08:44:12 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSDone.class.php');
+class DeleteCommunityMemberAction extends BaseAction
+{
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ /* ºï½ü½èÍý */
+ $delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
+
+ $ret = ACSCommunity::delete_community_member($target_community_id, $delete_user_community_id_array);
+ if (!$ret) {
+ "ERROR : delete community member failed";
+ exit;
+ }
+
+ /* ´°Î»²èÌÌɽ¼¨ */
+ // °ú¿ô¥»¥Ã¥È
+ $community_top_url = $this->getControllerPath('Community','');
+ $community_top_url .= '&community_id=' . $target_community_row['community_id'];
+ $community_top_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+
+ $done_obj = new ACSDone();
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M002'));
+ $done_obj->add_link($community_top_link_name, $community_top_url);
+
+ $request->setAttribute('done_obj', $done_obj);
+
+
+ // ²èÌ̸ƤӽФ·
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðºï½ü ¥á¥ó¥Ð°ìÍ÷ɽ¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/03/28 02:00:22 $
+ */
+class DeleteCommunityMemberListAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $target_community_id = $request->getParameter('community_id');
+
+
+ /* ¥á¥ó¥Ð¾ðÊó¼èÆÀ */
+ $target_community_member_info_row_array = ACSCommunity::get_community_member_user_info_row_array($target_community_id);
+
+ $request->setAttribute('target_community_member_info_row_array', $target_community_member_info_row_array);
+
+ $this->set_request_community_info(&$request);
+
+ return View::INPUT;
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* INPUT ²èÌÌɽ¼¨ */
+ if ($request->getParameter('action_type') == 'back') {
+ // ÁªÂò¤µ¤ì¤Æ¤¤¤ë user_community_id ¼èÆÀ
+ $selected_user_community_id_array = array();
+ $selected_user_community_id_array = $request->getParameter('delete_user_community_id_array');
+
+ $request->setAttribute('selected_user_community_id_array', $selected_user_community_id_array);
+
+ return $this->getDefaultView();
+ }
+
+ /* CONFIRM ²èÌÌɽ¼¨ */
+ else if ($request->getParameter('action_type') == 'confirm') {
+ /* ¥¨¥é¡¼¤ò¼èÆÀ */
+ if ($request->hasErrors()) {
+ // ¥¨¥é¡¼¤¬¤¢¤ë¾ì¹ç¤Ï¡¢INPUT ²èÌÌɽ¼¨
+ $user->removeAttribute('error_row');
+ $request->setAttribute('error_row', $error_row);
+
+ return $this->getDefaultView();
+ }
+
+ /* POST ¥Ç¡¼¥¿¼èÆÀ½èÍý */
+ $delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
+ $delete_user_info_row_array = $this->get_user_info_row_array($delete_user_community_id_array);
+
+ /* View ¤ØÅϤ¹ÃÍ¥»¥Ã¥È */
+ $this->set_request_community_info(&$request);
+ $request->setAttribute('delete_user_info_row_array', $delete_user_info_row_array);
+
+ return View::SUCCESS;
+ }
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+
+ parent::regValidateName($validatorManager,
+ "delete_user_community_id_array",
+ true,
+ 'ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£');
+ }
+
+ function handleError () {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢INPUT ²èÌ̤òɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function set_request_community_info (&$request) {
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ $request->setAttribute('target_community_row', $target_community_row);
+ }
+
+ function get_user_info_row_array ($user_community_id_array) {
+ $user_info_row_array = array();
+ foreach ($user_community_id_array as $user_community_id) {
+ $user_info_row = array();
+ $user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ array_push($user_info_row_array, $user_info_row);
+ }
+
+ return $user_info_row_array;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºï½ü
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2007/03/27 02:12:36 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class DeleteFolderAction extends BaseAction
+{
+ // ³Îǧ²èÌÌɽ¼¨
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+
+ // ºï½üÂоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹ºï½üÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $community_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹ºï½üÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $community_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ: ¥×¥Ã¥È¥Õ¥©¥ë¥À¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¤ÏNG //
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ if ($selected_folder_obj->get_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+ }
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ if ($selected_file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+ }
+
+
+ // set
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::SUCCESS;
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_folder',
+ ACSMsg::get_msg('Community', 'DeleteFolderAction.class.php', 'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+
+ /* ------------ */
+ /* ³Îǧ²èÌÌɽ¼¨ */
+ /* ------------ */
+ if ($request->getParameter('action_type') == 'confirm') {
+ return $this->getDefaultView();
+ }
+
+ /* -------- */
+ /* ºï½ü½èÍý */
+ /* -------- */
+ elseif ($request->getParameter('action_type') == 'delete') {
+ ACSDB::_do_query("BEGIN");
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $delete_folder_id_array = $request->getParameter('selected_folder');
+ if ($delete_folder_id_array) {
+ foreach ($delete_folder_id_array as $folder_id) {
+ // ºï½ü½èÍý
+ $_folder_obj = $community_folder_obj->folder_obj->get_folder_obj($folder_id);
+ $ret = $community_folder_obj->delete_folder($_folder_obj);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Remove folder failed.";
+ exit;
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $delete_file_id_array = $request->getParameter('selected_file');
+ if ($delete_file_id_array) {
+ foreach ($delete_file_id_array as $file_id) {
+ // ¸ø³«ÍÑ¥Õ¥¡¥¤¥ë¾ðÊó
+ ACSFileDetailInfo::delete_file_public_access($file_id);
+
+ // ºï½ü½èÍý
+ $_file_obj = $community_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $_file_obj->delete_file();
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Remove file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+ <?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteProfileImageAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @version ver1.0 $ 2006/02/16 $
+ * @import ACSFile.class.php
+ * @import ACSCommunityImageFileModel.class.php
+ */
+// require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+// require_once(ACS_CLASS_DIR . 'ACSCommunityImageFileModel.class.php');
+
+class DeleteProfileImageAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // set parameter
+ $target_user_community_id = $request->getParameter('community_id');
+
+ $image_change_url = $this->getControllerPath('Community','EditProfileImage');
+ $image_change_url .= '&community_id=' . $target_user_community_id;
+
+ $delete_image_url = $image_change_url;
+ $back_url = $image_change_url;
+
+ $request->setAttribute('delete_image_url', $delete_image_url);
+ $request->setAttribute('back_url', $back_url);
+
+ // ɽ¼¨
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_user_community_id = $request->getParameter('community_id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $file_id = $request->getParameter('file_id');
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ //¥Õ¥¡¥¤¥ë¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ ACSDB::_do_query("BEGIN");
+
+ $ret = $file_obj->delete_file();
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Remove imagefile failed.:file_info";
+ }else{
+ //community_image_file¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ $ret = ACSCommunityImageFileModel::delete_community_image($file_obj);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Remove imagefile failed.:image_file";
+ }else{
+ ACSDB::_do_query("COMMIT");
+ }
+ }
+ //ɽ¼¨
+ $image_change_url = $this->getControllerPath('Community','EditProfileImage');
+ $image_change_url .= '&community_id=' . $target_user_community_id;
+ header("Location: $image_change_url");
+ return View::INPUT;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/12/18 07:42:11 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+
+class DownloadFileAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $view_mode = $request->getParameter('mode');
+
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É½èÍý
+ $target_file_id = $request->getParameter('file_id');
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$community_folder_obj->has_privilege($target_community_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤Ï¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°Ê³°¥¢¥¯¥»¥¹ÉÔ²Ä
+ if ($folder_obj->get_is_root_folder()
+ && $user->hasCredential('COMMUNITY_MEMBER')) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎòÅÐÏ¿
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSFile::set_file_access_history($acs_user_info_row['user_community_id'], $target_file_id);
+ }
+
+ if ($view_mode == 'thumb') {
+ $file_obj = ACSFile::get_file_info_instance($target_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ } else {
+ $folder_obj->download_file($target_file_id);
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $folder_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+ $folder_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $folder_contents_row['contents_type_code'], $folder_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($folder_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+?>
--- /dev/null
+<?php
+// ¥³¥ß¥å¥Ë¥Æ¥£¤ÎÍúÎò¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+// $Id: DownloadHistoryFileAction.class.php,v 1.1 2006/05/26 08:44:02 w-ota Exp $
+
+class DownloadHistoryFileAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $target_file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+ $view_mode = $request->getParameter('mode');
+
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É½èÍý
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$community_folder_obj->has_privilege($target_community_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤Ï¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°Ê³°¥¢¥¯¥»¥¹ÉÔ²Ä
+ if ($folder_obj->get_is_root_folder()
+ && $user->hasCredential('COMMUNITY_MEMBER')) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $file_obj = ACSFile::get_file_info_instance($target_file_id);
+ if ($view_mode == 'thumb') {
+ $ret = $file_obj->view_image($file_history_id, $view_mode);
+ } else {
+ $file_obj->download_history_file($file_history_id, $view_mode);
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: EditBBSAction.class.php,v 1.2 2006/11/20 08:44:12 w-ota Exp $
+
+class EditBBSAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_row = ACSBBS::get_bbs_row($bbs_id);
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row', $bbs_row);
+
+
+ // (Åê¹Æ¼ÔËÜ¿Í or ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô)¤Î¤ß¤¬¥¢¥¯¥»¥¹¤Ç¤¤ë
+ if ($acs_user_info_row['user_community_id'] != $bbs_row['user_community_id']
+ && !ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id'])) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+
+ // ÆþÎϥǡ¼¥¿
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ // bbs¹¹¿·
+ ACSDB::_do_query("BEGIN");
+ $ret = ACSBBS::update_bbs($form);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ exit;
+ }
+
+ ACSDB::_do_query("COMMIT");
+
+ $bbs_url = $this->getControllerPath('Community', 'BBS'). '&community_id=' . $community_id;
+ header("Location: $bbs_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('Community', 'EditBBSAction.class.php', 'M001'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('Community', 'EditBBSAction.class.php', 'M002'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditBBSResAction.class.php,v 1.2 2006/11/20 08:44:12 w-ota Exp $
+
+class EditBBSResAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+ $bbs_res_id = $request->getParameter('bbs_res_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_res_row = ACSBBS::get_bbs_res_row($bbs_res_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_res_row', $bbs_res_row);
+
+
+ // (Åê¹Æ¼ÔËÜ¿Í or ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô)¤Î¤ß¤¬¥¢¥¯¥»¥¹¤Ç¤¤ë
+ if ($acs_user_info_row['user_community_id'] != $bbs_res_row['user_community_id']
+ && !ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id'])) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $community_id = $request->getParameter('community_id');
+ $bbs_id = $request->getParameter('bbs_id');
+ $bbs_res_id = $request->getParameter('bbs_res_id');
+
+ // ÆþÎϥǡ¼¥¿
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ // bbs¹¹¿·
+ $ret = ACSBBS::update_bbs_res($form);
+
+ $bbs_res_url = $this->getControllerPath('Community', 'BBSRes')
+ . '&community_id=' . $community_id . '&bbs_id=' . $bbs_id;
+ header("Location: $bbs_res_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('Community', 'EditBBSResAction.class.php', 'M001'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('Community', 'EditBBSResAction.class.php', 'M002'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£µ¡Ç½¡¡Action¥¯¥é¥¹
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¡¡Êѹ¹²èÌÌ
+ * @package acs/webapp/modules/Community/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.12 $ $Date: 2006/03/09
+ */
+// $Id: EditCommunityAction.class.php,v 1.12 2006/12/28 07:36:13 w-ota Exp $
+
+class EditCommunityAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $bbs_open_level_master_row_array =
+ ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D41'));
+
+ $community_folder_open_level_master_row_array =
+ ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D31'));
+
+ $self_open_level_master_row_array =
+ ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D00'));
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSGetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $sub_community_row_array = ACSCommunity::get_sub_community_row_array($community_id);
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $parent_community_row_array =
+ ACSCommunity::get_parent_community_row_array($community_id);
+
+ $category_group_master_row_array =
+ ACSCommunity::get_category_group_master_row_array();
+
+ foreach ($category_group_master_row_array as $index => $category_group_master_row) {
+ $category_group_master_row_array[$index]['category_master_row_array'] =
+ ACSCommunity::get_category_master_row_array_by_category_group_code(
+ $category_group_master_row['category_group_code']);
+ }
+
+ // set
+ $request->setAttribute('bbs_open_level_master_row_array',
+ $bbs_open_level_master_row_array);
+
+ $request->setAttribute('community_folder_open_level_master_row_array',
+ $community_folder_open_level_master_row_array);
+
+ $request->setAttribute('category_group_master_row_array',
+ $category_group_master_row_array);
+
+ $request->setAttribute('self_open_level_master_row_array',
+ $self_open_level_master_row_array);
+
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('sub_community_row_array', $sub_community_row_array);
+ $request->setAttribute('parent_community_row_array', $parent_community_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // µì¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_id = $request->ACSGetParameter('community_id');
+ $old_community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¿·¾ðÊó
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£MLÀßÄê¤ÏÊѹ¹ÉÔ²Ä(¥µ¥Ë¥¿¥¤¥º)
+ if ($old_community_row['contents_row_array']['ml_addr']['contents_value']) {
+ $form['community_ml_address'] = '';
+ } else {
+ if ($form['community_ml_address'] != '') {
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ML¤Ë¥×¥ì¥Õ¥£¥Ã¥¯¥¹¡¦¥µ¥Õ¥£¥Ã¥¯¥¹¤òÄɲÃ
+ $form['community_ml_address'] =
+ ACS_COMMUNITY_ML_ADDR_PREFIX .
+ $form['community_ml_address'] .
+ ACS_COMMUNITY_ML_ADDR_SUFFIX;
+ }
+ }
+
+/*****************************
+ //µì¾ðÊó¤Ë¿®ÍêCommunity¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÏÂàÈò¤·¤Æ¤ª¤¯
+ ½é´ü¥Ç¡¼¥¿¤Îformɽ¼¨¤¬¤µ¤ì¤¿¤¿¤á¡¢ÂàÈò¤ÏÉÔÍפȤʤä¿ 2006/3/22
+ if(count($old_community_row['contents_row_array']['bbs']['trusted_community_row_array']) > 0){
+ if($form['bbs_open_level_code'] == '04'){
+ $form['bbs_trusted_community_id_array'] = array();
+ foreach($old_community_row['contents_row_array']['bbs']['trusted_community_row_array'] as $index => $set_data){
+ array_push($form['bbs_trusted_community_id_array'],$set_data['community_id']);
+ }
+ }
+ }
+ if($old_community_row['contents_row_array']['community_folder']['trusted_community_row_array']){
+ if(!$form['community_folder_trusted_community_id_array'] && $form['community_folder_open_level_code'] == '04'){
+ $form['community_folder_trusted_community_id_array'] = array();
+ foreach($old_community_row['contents_row_array']['community_folder']['trusted_community_row_array'] as $index => $set_data){
+ array_push($form['community_folder_trusted_community_id_array'],$set_data['community_id']);
+ }
+ }
+ }
+ /*
+ if($old_community_row['join_trusted_community_row_array'] && !$form['join_trusted_community_row_array']){
+ $form['join_trusted_community_row_array'] = $old_community_row['join_trusted_community_row_array'];
+ }
+******************************/
+
+ // DB¹¹¿·
+ $community_id = ACSCommunity::update_community($form);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸É½¼¨
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_id;
+ header("Location: $community_top_page_url");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯
+ */
+ function validate () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+
+ $result = TRUE;
+
+ // ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î¥Á¥§¥Ã¥¯
+ if ($params['community_ml_address']) {
+ // ±Ñ¿ô»ú-_¤Î¥Á¥§¥Ã¥¯
+ if (!ereg( "^[a-z|A-Z|0-9|_|\-]+$", $params['community_ml_address'])) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'EditCommunityAction.class.php', 'M001'));
+ $result = FALSE;
+ }
+ // ±Ñ¿ô»ú»Ï¤Þ¤ê¤Î¥Á¥§¥Ã¥¯
+ if (!ereg( "^[a-z|A-Z|0-9]+", $params['community_ml_address'])) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'EditCommunityAction.class.php', 'M002'));
+ $result = FALSE;
+ }
+ // ÍøÍѤǤ¤Ê¤¤Ì¾Á°¤Î¥Á¥§¥Ã¥¯
+ $ng_name_array = explode(",",ACS_COMMUNITY_ML_ADDR_NGNAMES);
+ if (in_array(strtolower($params['community_ml_address']),$ng_name_array)) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'EditCommunityAction.class.php', 'M003').ACS_COMMUNITY_ML_ADDR_NGNAMES);
+ $result = FALSE;
+ }
+ // ´û¸¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹
+ if (ACSCommunity::is_exists_ml_addr(
+ ACS_COMMUNITY_ML_ADDR_PREFIX .
+ $params['community_ml_address'] .
+ ACS_COMMUNITY_ML_ADDR_SUFFIX)) {
+ $request->setError("community_ml_address",
+ ACSMsg::get_msg('Community', 'EditCommunityAction.class.php', 'M004'));
+ $result = FALSE;
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯(ValidatorManager»ÈÍÑ)
+ */
+ function registerValidators (&$validatorManager) {
+ }
+
+ /**
+ * ÆþÎÏ¥Á¥§¥Ã¥¯¥¨¥é¡¼»þ¤ÎÂбþ
+ */
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+ $result = $this->getDefaultView();
+
+ if ($result != View::INPUT) {
+ return $result;
+ }
+
+ $community_row =& $request->getAttribute('community_row');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÉü¸µ
+ $community_row['community_name'] = $params['community_name'];
+ $community_row['category_code'] = $params['category_code'];
+ $community_row['admission_flag'] =
+ $params['admission_flag'] == '1' ? 't' : 'f';
+ $community_row['contents_row_array']['community_profile']['contents_value'] =
+ $params['community_profile'];
+ $community_row['contents_row_array']['bbs']['open_level_code'] =
+ $params['bbs_open_level_code'];
+ $community_row['contents_row_array']['community_folder']['open_level_code'] =
+ $params['community_folder_open_level_code'];
+ $community_row['contents_row_array']['self']['open_level_code'] =
+ $params['self_open_level_code'];
+
+ // »²²Ã»ñ³Ê¤Î¸ø³«ÈϰϤÎÉü¸µ
+ $join_trusted_community_row_array =&
+ $community_row['join_trusted_community_row_array'];
+ $join_trusted_community_row_array = array();
+ if (is_array($params['join_trusted_community_id_array'])) {
+ foreach ($params['join_trusted_community_id_array'] as $trusted_community_id) {
+ $join_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ·Ç¼¨ÈĤθø³«ÈϰϤÎÉü¸µ
+ $bbs_trusted_community_row_array =&
+ $community_row['contents_row_array']['bbs']['trusted_community_row_array'];
+ $bbs_trusted_community_row_array = array();
+ if (is_array($params['bbs_trusted_community_id_array'])) {
+ foreach ($params['bbs_trusted_community_id_array'] as $trusted_community_id) {
+ $bbs_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤÎÉü¸µ
+ $community_folder_trusted_community_row_array =&
+ $community_row['contents_row_array']['community_folder']['trusted_community_row_array'];
+ $community_folder_trusted_community_row_array = array();
+ if (is_array($params['community_folder_trusted_community_id_array'])) {
+ foreach ($params['community_folder_trusted_community_id_array'] as $trusted_community_id) {
+ $community_folder_trusted_community_row_array[] =
+ ACSCommunity::get_community_row($trusted_community_id);
+ }
+ }
+
+ // ÊÔ½¸Ãæ¤Î¥³¥ß¥å¥Ë¥Æ¥£¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÎÉü¸µ
+ $request->setAttributeByRef('edit_community_ml_address',
+ $params['community_ml_address']);
+
+ $request->setAttributeByRef('community_row',$community_row);
+
+ return View::INPUT;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditCommunityAdminAction.class.php,v 1.4 2006/11/20 08:44:12 w-ota Exp $
+
+class EditCommunityAdminAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $community_member_user_info_row_array = ACSCommunity::get_community_member_user_info_row_array($community_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ $form = $request->ACSGetParameters();
+ $form['community_id'] = $community_row['community_id'];
+
+ // ¹¹¿·
+ ACSCommunity::update_community_admin($acs_user_info_row, $form);
+
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M002'));
+ $done_obj->add_link( ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $community_row['community_name'])),
+ $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+// ³°ÉôRSS¾ðÊó¼«Æ°¼è¤ê¹þ¤ßÀßÄê
+// $Id: EditExternalRSSAction.class.php,v 1.1 2007/03/28 05:58:18 w-ota Exp $
+
+class EditExternalRSSAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // get
+ $external_rss_url_open_level_master_row_array =
+ ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D63'));
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+ $community_row = ACSExternalRSS::add_contents_row_array($community_row);
+
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤ÎÉü¸µ //
+ $form = $request->ACSGetParameters();
+ if ($form['is_error']) {
+ $community_row['contents_row_array']['external_rss_url']['contents_value'] = $form['external_rss_url'];
+ $community_row['contents_row_array']['external_rss_url']['open_level_code'] = $form['external_rss_url_open_level_code'];
+ $community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'] = array();
+ if (is_array($form['external_rss_url_trusted_community_id_array'])) {
+ foreach ($form['external_rss_url_trusted_community_id_array'] as $trusted_community_id) {
+ array_push($community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'],
+ array('community_id' => $trusted_community_id));
+ }
+ }
+ $community_row['contents_row_array']['external_rss_post_user']['contents_value'] = $form['external_rss_post_user'];
+ $community_row['contents_row_array']['external_rss_public_release_expire_term']['contents_value'] = $form['external_rss_public_release_expire_term'];
+ $community_row['contents_row_array']['external_rss_ml_send_flag']['contents_value'] = $form['external_rss_ml_send_flag'];
+ }
+
+ // ½é´üÃÍ //
+ // Åê¹Æ¼Ô
+ if (!isset($community_row['contents_row_array']['external_rss_post_user']['contents_value'])) {
+ $community_row['contents_row_array']['external_rss_post_user']['contents_value'] = $acs_user_info_row['user_community_id'];
+ }
+ // ¸ø³«ÈÏ°Ï
+ if (!isset($community_row['contents_row_array']['external_rss_url']['open_level_code'])) {
+ $community_row['contents_row_array']['external_rss_url']['open_level_code'] =
+ $community_row['contents_row_array']['bbs']['open_level_code'];
+ $community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'] =
+ $community_row['contents_row_array']['bbs']['trusted_community_row_array'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¾ðÊó
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($community_row['community_id']);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('community_admin_user_info_row_array', $community_admin_user_info_row_array);
+ $request->setAttribute('external_rss_url_open_level_master_row_array', $external_rss_url_open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ $form = $request->ACSGetParameters();
+
+ $ret = ACSExternalRSS::set_external_rss_contents($community_id, $form);
+
+ // forward
+ $done_obj = new ACSDone();
+
+ if ($ret) {
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php', 'M002'));
+ $done_obj->add_link($community_row['community_name'] . ' ' . ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php','M003'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+ } else {
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php','M004'));
+ }
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ $params =& $request->getParameters();
+ $result = true;
+
+ // RSS URL
+ if ($params['external_rss_url'] != '' && !preg_match('/^http:\/\/.+/', $params['external_rss_url'])) {
+ $request->setError('external_rss_url', ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php', 'M005'));
+ $result = false;
+ }
+
+ // ¸ø³«ÈÏ°Ï
+ if ($open_level_master_array[$params['external_rss_url_open_level_code']] == ACSMsg::get_mst('open_level_master','D06')) {
+ if ($params['external_rss_public_release_expire_term'] != ''
+ && (!preg_match('/^[0-9]+/', $params['external_rss_public_release_expire_term']) || intval($params['external_rss_public_release_expire_term']) < 1)) {
+ $request->setError('external_rss_public_release_expire_term', ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php', 'M006'));
+ $result = false;
+ }
+ }
+
+ return $result;
+ }
+
+ function registerValidators(&$validatorManager) {
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ parent::regValidateName($validatorManager,
+ "external_rss_post_user",
+ true,
+ ACSMsg::get_msg('Community', 'EditExternalRSSAction.class.php', 'M007'));
+ }
+
+ function handleError() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÆþÎÏÃͤòset
+ $form = $request->ACSGetParameters();
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤Î¥Ç¡¼¥¿Éü¸µ
+ $request->setAttribute('is_error', 1);
+ $request->setAttribute('external_rss_url', $form['external_rss_url']);
+ $request->setAttribute('external_rss_post_user', $form['external_rss_post_user']);
+ $request->setAttribute('external_rss_url_open_level_code', $form['external_rss_url_open_level_code']);
+ $request->setAttribute('external_rss_url_trusted_community_id_array', $form['external_rss_url_trusted_community_id_array']);
+ $request->setAttribute('external_rss_public_release_expire_term', $form['external_rss_public_release_expire_term']);
+ $request->setAttribute('external_rss_ml_send_flag', $form['external_rss_ml_send_flag']);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ * $Id: EditFileDetailAction.class.php,v 1.2 2006/06/16 07:52:32 w-ota Exp $
+ */
+
+class EditFileDetailAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+
+
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSUserFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊó
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_id);
+
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+
+ // set
+ $request->setAttribute('target_community_row', $target_community_row);
+ $request->setAttribute('file_obj', $file_obj);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+ $request->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($form['file_category_code']);
+ $file_contents_form_array = array();
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_contents_form = array(
+ 'file_id' => $file_id,
+ 'file_contents_type_code' => $file_contents_type_list_row['file_contents_type_code'],
+ 'file_contents_value' => $form['file_contents_array'][$file_contents_type_list_row['file_contents_type_code']]
+ );
+ array_push($file_contents_form_array, $file_contents_form);
+ }
+
+ $ret = ACSFileDetailInfo::set_file_detail_info($file_id, $form['file_category_code'], $file_contents_form_array);
+
+ if ($ret) {
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail');
+ $file_detail_url .= '&community_id=' . $target_community_id;
+ $file_detail_url .= '&folder_id=' . $target_community_folder_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL¤Ø
+ header("Location: $file_detail_url");
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºîÀ®¡¦Êѹ¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/11/20 08:44:12 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class EditFolderAction extends BaseAction
+{
+ /**
+ * ÆþÎϲèÌÌɽ¼¨
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ºîÀ®¡¦¹¹¿·¤ÎȽÊÌ
+ if ($request->getParameter('edit_folder_id')) {
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+ $view_mode = 'update';
+ } else {
+ $view_mode = 'create';
+ }
+
+ // ½é´üɽ¼¨¤¹¤ë±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ¡Ê¿Æ¡¦¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¡Ë
+ $parent_community_row_array = ACSCommunity::get_parent_community_row_array($target_community_id);
+ $sub_community_row_array = ACSCommunity::get_sub_community_row_array($target_community_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('view_mode', $view_mode);
+ $request->setAttribute('edit_folder_id', $edit_folder_id);
+ $request->setAttribute('parent_community_row_array', $parent_community_row_array);
+ $request->setAttribute('sub_community_row_array', $sub_community_row_array);
+
+
+
+ // ¥¨¥é¡¼¤Ç¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ï¡¢ÆþÎÏÃͤò¼èÆÀ
+ // hasErrors ´Ø¿ôºîÀ®¡©
+ if ($this->hasErrors($controller, $request, $user)) {
+
+ // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃͤò row ¤Ë¥»¥Ã¥È
+ $default_data_row['folder_id'] = $request->getParameter('folder_id');
+ $default_data_row['folder_name'] = $request->getParameter('folder_name');
+ $default_data_row['comment'] = $request->getParameter('comment');
+ $default_data_row['open_level_code'] = $request->getParameter('open_level_code');
+ $default_data_row['trusted_community_flag'] = $request->getParameter('trusted_community_flag');
+ $default_data_row['trusted_community_id_array'] = $request->getParameter('trusted_community_id_array');
+
+ // set
+ $request->setAttribute('default_data_row', $default_data_row);
+ return View::INPUT;
+ }
+
+ // ¹¹¿·¤Î¾ì¹ç¤Ï¡¢¹¹¿·ÂоݤΥե©¥ë¥ÀID¤ò¼èÆÀ
+ if ($view_mode == 'update') {
+ // ½é´üɽ¼¨¤Î¾ì¹ç¡¢¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ if (!$this->hasErrors($controller, $request, $user)) {
+
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ $update_user_folder_obj = new ACSCommunityFolder($request->getParameter('community_id'),
+ $acs_user_info_row,
+ $edit_folder_id);
+ $update_folder_obj = $update_user_folder_obj->get_folder_obj();
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ID¼èÆÀ
+ $trusted_community_id_array = array();
+ foreach($update_folder_obj->get_trusted_community_row_array() as $trusted_community_row) {
+ array_push($trusted_community_id_array, $trusted_community_row['community_id']);
+ }
+
+ // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃͤò row ¤Ë¥»¥Ã¥È
+ $default_data_row['folder_id'] = $update_folder_obj->get_folder_id();
+ $default_data_row['folder_name'] = $update_folder_obj->get_folder_name();
+ $default_data_row['comment'] = $update_folder_obj->get_comment();
+ $default_data_row['open_level_code'] = $update_folder_obj->get_open_level_code();
+ $default_data_row['trusted_community_flag'] = ""; // view ¤ÇÃͤòȽÃǤ¹¤ë
+ $default_data_row['trusted_community_id_array'] = $trusted_community_id_array;
+ $request->setAttribute('default_data_row', $default_data_row);
+ }
+
+ // set
+ $request->setAttribute('input_data_row', $input_data_row);
+ return View::INPUT;
+ } elseif ($view_mode == 'create') {
+ return View::INPUT;
+ }
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ½èÍý¤Î¼ïÎà
+ $action_type = $request->getParameter('action_type');
+ // get
+ $form = $request->ACSGetParameters();
+
+
+ // Validator¤Ç½ÐÍè¤Ê¤¤¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ //
+ if (mb_strlen($form['folder_name']) > 100) {
+ $this->setError($controller, $request, $user, 'folder_name',
+ ACSMsg::get_msg('Community', 'EditFileAction.class.php', 'M001'));
+ return $this->handleError();
+ }
+
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ /* ----------------- */
+ /* ÆþÎϲèÌÌɽ¼¨½èÍý */
+ /* ----------------- */
+ // action_type (create or update) ¤¬Â¸ºß¤·¡¢¥¨¥é¡¼¤ÇÁ«°Ü¤·¤Æ¤¤Æ¤¤¤Ê¤¤¾ì¹ç
+ if (!$action_type || $this->hasErrors($controller, $request, $user)) {
+ return $this->getDefaultView();
+ }
+
+
+ /* ---------- */
+ /* ÆþÎÏÃͼèÆÀ */
+ /* ---------- */
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+
+ $input_folder_row = array();
+ $input_folder_row['folder_name'] = $request->getParameter('folder_name');
+ $input_folder_row['comment'] = $request->getParameter('comment');
+ $input_folder_row['open_level_code'] = $request->getParameter('open_level_code');
+ $input_folder_row['trusted_community_id_array'] = $request->getParameter('trusted_community_id_array');
+
+ /* ---------------------- */
+ /* ¥Õ¥©¥ë¥À̾½ÅÊ£¥Á¥§¥Ã¥¯ */
+ /* ---------------------- */
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀÇÛ²¼¤Î¥Õ¥©¥ë¥À¤ò¼èÆÀ
+ $sub_folder_obj_array = $user_folder_obj->folder_obj->get_folder_obj_array();
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ if ($sub_folder_obj->get_folder_id() == $edit_folder_id) {
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¤Ï¥Á¥§¥Ã¥¯ÂоݤȤ·¤Ê¤¤
+ continue;
+ }
+
+ if ($sub_folder_obj->get_folder_name() == $input_folder_row['folder_name']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥È¤·¡¢½èÍý¤òÃæÃǤ¹¤ë
+ return $this->setError($controller, $request, $user, 'folder_name', ACSMsg::get_msg('Community', 'EditFolderAction.class.php', 'M003').'[' . $input_folder_row['folder_name'] . ']');
+ }
+ }
+
+ ACSDB::_do_query("BEGIN");
+ /* -------- */
+ /* ÅÐÏ¿½èÍý */
+ /* -------- */
+ if ($action_type == 'create') {
+ $ret = $user_folder_obj->folder_obj->create_folder($input_folder_row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Create folder failed.";
+ exit;
+ }
+
+ } elseif ($action_type == 'update') {
+ /* -------- */
+ /* ¹¹¿·½èÍý */
+ /* -------- */
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ $update_user_folder_obj = new ACSCommunityFolder($request->getParameter('community_id'),
+ $acs_user_info_row,
+ $edit_folder_id);
+
+ $ret = $update_user_folder_obj->folder_obj->update_folder($input_folder_row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Create folder information failed.";
+ exit;
+ }
+ }
+ ACSDB::_do_query("COMMIT;");
+
+
+ /* -------------------- */
+ /* ¥Õ¥©¥ë¥À°ìÍ÷²èÌÌɽ¼¨ */
+ /* -------------------- */
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $folder_action = $this->getControllerPath('Community',
+ 'Folder');
+ $folder_action .= '&community_id=' . $target_community_info_row['community_id'];
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ // ºîÀ®¡¦Êѹ¹½èÍý¤Î¾ì¹ç¤Î¤ß¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤ò¤¹¤ë
+ if ($request->getParameter('action_type')) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "folder_name",
+ true,
+ ACSMsg::get_msg('User', 'EditFolderAction.class.php', 'M001'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿Êѹ¹²èÌÌ Action¥¯¥é¥¹
+ * @package acs/webapp/modules/Community/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version ver1.0 2006/02/14 $
+ */
+
+class EditProfileImageAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¤ò¼èÆÀ */
+ //$error_row = $user->getAttribute('error_row');
+ //$user->removeAttribute('error_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('community_id');
+ // ¥×¥í¥Õ¥£¡¼¥ë¾ðÊó¤ò¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($user_community_id);
+ // Ìá¤ë¥ê¥ó¥¯Àè¾ðÊó¤ò¼èÆÀ
+ $back_url = $this->getControllerPath('Community','Index');
+ $back_url .= '&community_id=' . $user_community_id;
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ²èÁü¤¬¿·µ¬ÅÐÏ¿¤«¹¹¿·¤«¤òȽÄꤹ¤ë true:¿·µ¬ false:¹¹¿·
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¤Î¸ºß³Îǧ
+
+ $image_file_id = $target_community_info_row['file_id'];// ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ if ($image_file_id) {
+ $image_new_add = false;
+ } else {
+ $image_new_add = true;
+ }
+
+ // set
+ //user_community_id ¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('community_id', $user_community_id);
+ //target_user_info_row¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ //²èÁü¤¬¿·µ¬ÅÐÏ¿¤«¹¹¿·¤«¤Îimage_new_add¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('image_new_add',$image_new_add);
+ //Ìá¤ë¥ê¥ó¥¯Àè¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('back_url', $back_url);
+
+ return View::INPUT;
+ }
+
+ function getRequestMethods() {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSSchedule.class.php');
+//require_once(VALIDATOR_DIR . 'StringValidator.class.php');
+
+// ÁªÂò»è¥¹¥³¥¢¤ÎÈÏ°Ï
+define( '_EDITSCHEDULEACTION_ANSWER_SCORE_MIN', -99 );
+define( '_EDITSCHEDULEACTION_ANSWER_SCORE_MAX', 99 );
+
+// ¸õÊäÆü»þºÇÂç¿ô
+define( '_EDITSCHEDULEACTION_ADJUSTMENT_DAYS_MAX', 20 );
+
+// ÆþÎÏʸ»úºÇÂçĹ(Ⱦ³Ñ¤Ç¤Îʸ»ú¿ô)
+define( '_EDITSCHEDULEACTION_SCHEDULE_NAME_MAXLEN', 256 );
+define( '_EDITSCHEDULEACTION_EDIT_APPEND_SCHEDULES_MAXLEN', 4096 );
+define( '_EDITSCHEDULEACTION_SCHEDULE_PLACE_MAXLEN', 256 );
+define( '_EDITSCHEDULEACTION_SCHEDULE_DETAIL_MAXLEN', 256 );
+define( '_EDITSCHEDULEACTION_ANSWER_DETAIL_MAXLEN', 128 );
+
+/**
+ * ¥¹¥±¥¸¥å¡¼¥ë¤ÎºîÀ®¡¦½¤Àµ
+ *
+ * ²èÌÌÁ«°Ü
+ * (GET)View::INPUT -> (POST)View::SUCCESS -> (POST)View::SUCCESS
+ *
+ * @author z-satosi
+ * @version $Revision: 1.3 $
+ */
+class EditScheduleAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ *
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë¡£
+ * "schedule_id"¥Ñ¥é¥á¡¼¥¿¤¬Ìµ¤¤¾ì¹ç¤Ï¿·µ¬ºîÀ®¤È¤¹¤ë¡£
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $params =& $request->getParameters();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $target_community_id = $request->getParameter('community_id');
+ $target_schedule_id = $request->getParameter('schedule_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $target_community_row =
+ ACSCommunity::get_community_row($target_community_id);
+ $request->setAttributeByRef('target_community_row', $target_community_row);
+
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î¼èÆÀ
+ if ($target_schedule_id != "") {
+ $schedule =&
+ ACSSchedule::get_schedule_instance(
+ $target_community_id, $target_schedule_id);
+
+ // (ÉÔÀµÂкö)
+ // ´´»ö°Ê³°¤Î¾ì¹ç
+ if (!$schedule->is_organizer($acs_user_info_row)) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ } else {
+ $schedule =& new ACSSchedule(
+ $target_community_id, $acs_user_info_row['user_community_id']);
+ }
+
+ // (ÉÔÀµÂкö)
+ // ·èÄêºÑ¤ß¤Î¥¹¥±¥¸¥å¡¼¥ë¤Ç¤¢¤Ã¤¿¾ì¹ç
+ if ($schedule->is_fixed()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // Êѹ¹Á°¤Î¸µ¥Ç¡¼¥¿¤ò¥¥ã¥Ã¥·¥å
+ $user->setAttribute('org_schedule',serialize($schedule));
+ $request->setAttributeByRef('schedule', $schedule);
+
+ // ÄùÀÚÆü»þ¤ÎÀßÄê
+ $request->setAttribute('closing_datetime_array',
+ $schedule->get_schedule_closing_datetime_array());
+
+ // ¤ªÃΤ餻¥á¡¼¥ë¤Î½é´üÀßÄê
+ $request->setAttribute('send_annouce_mail_checked', ' CHECKED');
+
+ return View::INPUT;
+ }
+
+ /**
+ * ³Îǧ¡¦ÅÐÏ¿½èÍý
+ *
+ * POST¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë¡£
+ * "schedule_id"¥Ñ¥é¥á¡¼¥¿¤¬Ìµ¤¤¾ì¹ç¤Ï¿·µ¬ºîÀ®¤È¤¹¤ë¡£
+ */
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $params =& $request->getParameters();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¹¹¿·¤¹¤ë¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤Î¼èÆÀ
+ $schedule =& $this->getFormPostSchedule(
+ &$params, unserialize($user->getAttribute('org_schedule')));
+
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+
+ // (ÉÔÀµÂкö)
+ // ´´»ö°Ê³°¤Î¾ì¹ç
+ if (!$schedule->is_organizer($acs_user_info_row)) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // (ÉÔÀµÂкö)
+ // ·èÄêºÑ¤ß¤Î¥¹¥±¥¸¥å¡¼¥ë¤Ç¤¢¤Ã¤¿¾ì¹ç
+ if ($schedule->is_fixed()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // Äɲ乤ë¸õÊäÆü»þ¤ÎÀßÄê
+ $append_dates = $this->getBlankOff($params['edit_append_adjustment_dates']);
+ if ($append_dates) {
+ $schedule->set_schdedule_adjustment_datetime_append($append_dates);
+ }
+
+ // ºï½ü»ØÄꤹ¤ë¸õÊäÆü»þ¤ÎÀßÄê
+ $delete_dates = $params['delete_adjustment_dates'];
+ if (is_array($delete_dates)) {
+ foreach ($delete_dates as $delete_adjustment_date_id) {
+ $schedule->set_schdedule_adjustment_datetime_delete(
+ $delete_adjustment_date_id);
+ }
+ }
+
+ // ¿·µ¬ÅÐÏ¿¤«¹¹¿·¤«¤Î¼èÆÀ
+ $is_new = $schedule->is_new();
+
+ // ¹¹¿·¤Î¼Â¹Ô
+ $schedule->update_schedule();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥££Í£Ì¤Ø¤ÎÄÌÃÎ
+ if ($params['send_annouce_mail']=='t') {
+
+ if ($is_new) {
+ $subject_msg_key = "M003";
+ $action_msg_key = "M006";
+ } else {
+ $subject_msg_key = "M004";
+ $action_msg_key = "M007";
+ }
+
+ // Á´¥á¥ó¥Ð¤Ø¥á¡¼¥ë¤òÁ÷¿®
+ ACSCommunityMail::send_schedule_announce_mail(
+ $schedule,
+ "UPD%03d",
+ $subject_msg_key,
+ '',
+ array('{ACTION}' => $action_msg_key));
+ }
+
+ // ¥ê¥À¥¤¥ì¥¯¥È(¥ê¥í¡¼¥ÉÂкö)
+ $controller->redirect(
+ $this->getControllerPath(
+ 'Community', 'Schedule') .
+ "&community_id=" . $schedule->community_id);
+
+ }
+
+ /**
+ * POST¥Ñ¥é¥á¡¼¥¿¤«¤é¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎºîÀ®
+ *
+ * @param array $post_params POST¥Ñ¥é¥á¡¼¥¿
+ * @param object $org_schedule Êѹ¹Á°¤Î¸µ¥Ç¡¼¥¿
+ * @return object ACSSchedule¥¤¥ó¥¹¥¿¥ó¥¹
+ */
+ function getFormPostSchedule($post_params,$org_schedule) {
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤Ø¤ÎÀßÄê
+ $schedule =& $org_schedule;
+ $schedule->schedule_name = $post_params['schedule_name'];
+ if ($post_params['schedule_target_kind'] != '') {
+ $schedule->schedule_target_kind = $post_params['schedule_target_kind'];
+ }
+ $schedule->schedule_place = $post_params['schedule_place'];
+ $schedule->schedule_detail = $post_params['schedule_detail'];
+
+ // ÄùÀÚÆü»þ¤ÎÀßÄê
+ $schedule->set_schedule_closing_datetime_by_array( array(
+ 'year' => $post_params['edit_closing_year'],
+ 'month' => $post_params['edit_closing_month'],
+ 'day' => $post_params['edit_closing_day'],
+ 'hours' => $post_params['edit_closing_hour'],
+ 'minutes' => $post_params['edit_closing_min']));
+
+ // ²óÅúÁªÂò»è¤ÎÀßÄê
+ $schedule->set_answer_selection_by_arrays(
+ $post_params['answer_char'],
+ $post_params['answer_score'],
+ $post_params['answer_detail'],
+ $post_params['answer_default']);
+
+ return $schedule;
+ }
+
+ /**
+ * ¸õÊäÆü»þ¤Î¥Ö¥é¥ó¥¯ºï½ü
+ *
+ * @param string $append_adjustment_dates ÄɲøõÊäÆü»þ
+ * @return string ¥Ö¥é¥ó¥¯ºï½ü¤·¤¿ÄɲøõÊäÆü»þ
+ */
+ function getBlankOff($append_adjustment_dates) {
+ $suppress = "";
+ foreach (explode("\n",trim($append_adjustment_dates)) as $line) {
+ if (trim(str_replace("¡¡","",$line)) != '') $suppress .= $line . "\n";
+ }
+ return trim($suppress);
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯
+ */
+ function validate () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $params =& $request->getParameters();
+
+ $schedule =& $this->getFormPostSchedule(
+ &$params, unserialize($user->getAttribute('org_schedule')));
+
+ $result = TRUE;
+
+ // **** ¸õÊäÆü»þºÇÂç¿ô¡¦ºÇ¾¯¿ô¤Î¥Á¥§¥Ã¥¯
+ $adjust_cnt = $schedule->get_adjustment_dates_count(FALSE);
+ $adjust_cnt -= count($params['delete_adjustment_dates']);
+ $append_adjustment_dates =
+ $this->getBlankOff($params['edit_append_adjustment_dates']);
+ if ($append_adjustment_dates != '') {
+ $adjust_cnt += count(explode("\n",$append_adjustment_dates));
+ }
+ if ($adjust_cnt > _EDITSCHEDULEACTION_ADJUSTMENT_DAYS_MAX ) {
+ $request->setError("schedule_closing_datetime",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M014') .
+ _EDITSCHEDULEACTION_ADJUSTMENT_DAYS_MAX);
+ $result = FALSE;
+ }
+ if ($adjust_cnt <= 0) {
+ $request->setError("schedule_closing_datetime",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M015'));
+ $result = FALSE;
+ }
+
+ // **** ÄùÀÚÆü»þÁªÂòÃͤΥÁ¥§¥Ã¥¯
+ if (!checkdate($params['edit_closing_month'],
+ $params['edit_closing_day'],
+ $params['edit_closing_year']) ||
+ $params['edit_closing_hour'] == "" ||
+ $params['edit_closing_hour'] < 0 ||
+ $params['edit_closing_hour'] > 23 ||
+ $params['edit_closing_min'] == "" ||
+ $params['edit_closing_min'] < 0 ||
+ $params['edit_closing_min'] > 59 ) {
+ $request->setError("schedule_closing_datetime",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M016'));
+ $result = FALSE;
+
+ } else {
+ // **** ÄùÀÚÆü»þÁªÂòÃͤΥÁ¥§¥Ã¥¯(¿·µ¬ÅÐÏ¿»þ¤Î¤ß²áµîÆü»þ¤ò¥Á¥§¥Ã¥¯)
+ if ($schedule->is_new()) {
+ $closing_datetime = mktime(
+ $params['edit_closing_hour'],
+ $params['edit_closing_min'],
+ 0,
+ $params['edit_closing_month'],
+ $params['edit_closing_day'],
+ $params['edit_closing_year']);
+ if ($closing_datetime <= time()) {
+ $request->setError("schedule_closing_datetime",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M017'));
+ $result = FALSE;
+ }
+ }
+ }
+
+ // **** ÂоݤÎÁªÂòÃÍ¥Á¥§¥Ã¥¯ [schedule_target_kind]
+ if ($schedule->is_new()) {
+ if ($params['schedule_target_kind'] <> 'ALL' &&
+ $params['schedule_target_kind'] <> 'FREE') {
+ $request->setError("schedule_target_kind",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M001'));
+ $result = FALSE;
+ }
+ }
+
+ // **** ÁªÂò»è¤Î¥Á¥§¥Ã¥¯
+ $char_check = array();
+ $answer_cnt = 0;
+ for ($cnt = 1; $cnt <= count($params['answer_char']); $cnt++) {
+ $answer_char = trim($params['answer_char'][$cnt]);
+ $answer_score = trim($params['answer_score'][$cnt]);
+ $answer_detail = trim($params['answer_detail'][$cnt]);
+ // ½ÅÊ£
+ if ($answer_char != '') {
+ if ($char_check[$answer_char]) {
+ $request->setError("answer_duplicate",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M003'));
+ $result = FALSE;
+ }
+ $char_check[$answer_char] = TRUE;
+ $answer_cnt++;
+ }
+ // ÀßÄêÃÍÉÔÂ
+ if ($answer_char != '' || $answer_score != '' || $answer_detail != '') {
+ if ($answer_char == '' || $answer_score == '') {
+ $request->setError("answer_incomplete",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M004'));
+ $result = FALSE;
+ }
+ }
+ // ¥¹¥³¥¢ÀßÄêÃÍ¡¦ÈÏ°Ï¥Á¥§¥Ã¥¯
+ if ($answer_score != '') {
+ if ($answer_score < _EDITSCHEDULEACTION_ANSWER_SCORE_MIN ||
+ $answer_score > _EDITSCHEDULEACTION_ANSWER_SCORE_MAX ||
+ is_numeric($answer_score) == FALSE ||
+ ereg_replace("[-0123456789]+","",$answer_score) != "" ) {
+ $request->setError("answer_disable_score",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M007') .
+ ' (Min:'._EDITSCHEDULEACTION_ANSWER_SCORE_MIN .
+ ' Max:'._EDITSCHEDULEACTION_ANSWER_SCORE_MAX . ')');
+ $result = FALSE;
+ }
+ }
+ // ²óÅú¤ÎÀâÌÀŤµ
+ if (mb_strlen($answer_detail) > _EDITSCHEDULEACTION_ANSWER_DETAIL_MAXLEN) {
+ $request->setError("answer_detail_len",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M013').
+ _EDITSCHEDULEACTION_ANSWER_DETAIL_MAXLEN);
+ $result = FALSE;
+ }
+ }
+ // ÁªÂò»è̤ÀßÄê
+ if ($answer_cnt==0) {
+ $request->setError("answer_none",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M005'));
+ $result = FALSE;
+ }
+ // ½é´üÃ͸í¤ê
+ $answer_default = $params['answer_default'];
+ if (trim($params['answer_char'][$answer_default]) == '' &&
+ trim($params['answer_score'][$answer_default]) == '') {
+ $request->setError("answer_disable_def",
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M006'));
+ $result = FALSE;
+ }
+
+ return $result;
+ }
+
+ /**
+ * ÆþÎÏÃÍ¥Á¥§¥Ã¥¯(ValidatorManager»ÈÍÑ)
+ */
+ function registerValidators (&$validatorManager) {
+
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $params =& $request->getParameters();
+
+ // ¥·¥¹¥Æ¥àÍѥѥé¥á¡¼¥¿
+ parent::regValidateName($validatorManager,
+ "community_id",
+ true,
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M001'));
+
+ // ·ï̾ [schedule_name]
+ parent::regValidateName($validatorManager,
+ "schedule_name",
+ true,
+ ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M002'));
+
+ if ($params['schedule_name']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _EDITSCHEDULEACTION_SCHEDULE_NAME_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M009').
+ _EDITSCHEDULEACTION_SCHEDULE_NAME_MAXLEN));
+ $validatorManager->registerValidator('schedule_name',$validator);
+ }
+
+ // ¸õÊäÆü»þ(ÄɲÃʬ) [edit_append_adjustment_dates]
+ if ($params['edit_append_adjustment_dates']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _EDITSCHEDULEACTION_EDIT_APPEND_SCHEDULES_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M012').
+ _EDITSCHEDULEACTION_EDIT_APPEND_SCHEDULES_MAXLEN));
+ $validatorManager->registerValidator('edit_append_adjustment_dates',$validator);
+ }
+
+ // ¾ì½ê [schedule_place]
+ if ($params['schedule_place']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _EDITSCHEDULEACTION_SCHEDULE_PLACE_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M010').
+ _EDITSCHEDULEACTION_SCHEDULE_PLACE_MAXLEN));
+ $validatorManager->registerValidator('schedule_place',$validator);
+ }
+
+ // ¾ÜºÙ¾ðÊó [schedule_detail]
+ if ($params['schedule_detail']) {
+ $validator =& new StringValidator($controller);
+ $validator->initialize(array(
+ 'max' => _EDITSCHEDULEACTION_SCHEDULE_DETAIL_MAXLEN,
+ 'max_error' => ACSMsg::get_msg('Community', 'EditScheduleAction.class.php', 'M011').
+ _EDITSCHEDULEACTION_SCHEDULE_DETAIL_MAXLEN));
+ $validatorManager->registerValidator('schedule_detail',$validator);
+ }
+ }
+
+ /**
+ * ÆþÎÏ¥Á¥§¥Ã¥¯¥¨¥é¡¼»þ¤ÎÂбþ
+ */
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $params =& $request->getParameters();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $target_community_row =
+ ACSCommunity::get_community_row($params['community_id']);
+ $request->setAttributeByRef('target_community_row', $target_community_row);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¾ðÊó¤Î¼èÆÀ
+ $schedule =& $this->getFormPostSchedule(
+ &$params, unserialize($user->getAttribute('org_schedule')));
+ $request->setAttributeByRef('schedule', $schedule);
+
+ // POSTÃͤΰú·Ñ¤®ÀßÄê
+ $request->setAttribute('edit_append_adjustment_dates',
+ $this->getBlankOff($params['edit_append_adjustment_dates']));
+ $request->setAttribute('closing_datetime_array', array(
+ 'year' => $params['edit_closing_year'],
+ 'month' => $params['edit_closing_month'],
+ 'day' => $params['edit_closing_day'],
+ 'hours' => $params['edit_closing_hour'],
+ 'minutes' => $params['edit_closing_min']));
+ $request->setAttribute('send_annouce_mail_checked',
+ $params['send_annouce_mail'] != '' ? ' CHECKED' : '');
+
+ $delete_ajustment_dates_checked = array();
+ if (is_array($params['delete_adjustment_dates'])) {
+ foreach ($params['delete_adjustment_dates'] as $adjust_id) {
+ $delete_ajustment_dates_checked[$adjust_id] = ' CHECKED';
+ }
+ }
+ $request->setAttributeByRef('delete_ajustment_dates_checked',
+ $delete_ajustment_dates_checked);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ * $Id: FileDetailAction.class.php,v 1.5 2007/03/28 08:59:09 w-ota Exp $
+ */
+
+class FileDetailAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«
+ $is_community_admin = false;
+ if(ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $target_community_id)){
+ $is_community_admin = true;
+ }
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$community_folder_obj->has_privilege($target_community_row)) {
+
+ // 2010.03.24 ̤¥í¥°¥¤¥ó»þ¤ÎͶƳ
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ç¤Ê¤¤¾ì¹ç¤Ï¥í¥°¥¤¥ó²èÌ̤Ø
+ if ($user->hasCredential('PUBLIC_USER')) {
+ $controller->forward("User", "Login");
+ return;
+ }
+
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤Ï¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°Ê³°¥¢¥¯¥»¥¹ÉÔ²Ä
+ if ($folder_obj->get_is_root_folder() && $user->hasCredential('COMMUNITY_MEMBER')) {
+
+ // 2010.03.24 ̤¥í¥°¥¤¥ó»þ¤ÎͶƳ
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ç¤Ê¤¤¾ì¹ç¤Ï¥í¥°¥¤¥ó²èÌ̤Ø
+ if ($user->hasCredential('PUBLIC_USER')) {
+ $controller->forward("User", "Login");
+ return;
+ }
+
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊó
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤ÎÍúÎò¾ðÊó
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤´¤È¤Î¥³¥á¥ó¥È
+ foreach ($file_history_row_array as $index => $file_history_row) {
+ $file_history_row_array[$index]['file_history_comment_row_array'] = ACSFileHistoryComment::get_file_history_comment_row_array($file_history_row['file_history_id']);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎòÅÐÏ¿
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSFile::set_file_access_history($acs_user_info_row['user_community_id'], $file_id);
+ }
+
+
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤Ç¤Ê¤¤¾ì¹ç
+ if ($file_obj->get_owner_community_id() == $target_community_id) {
+ // ¥Õ¥¡¥¤¥ë¤Î¸ø³«¾ðÊó
+ $file_public_access_row = ACSFileDetailInfo::get_file_public_access_row($file_id);
+ }
+
+ // set
+ $request->setAttribute('target_community_row', $target_community_row);
+ $request->setAttribute('file_obj', $file_obj);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+ $request->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $request->setAttribute('file_history_row_array', $file_history_row_array);
+ $request->setAttribute('is_community_admin', $is_community_admin);
+ $request->setAttribute('file_public_access_row', $file_public_access_row);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FileHistoryCommentAction.class.php,v 1.3 2006/12/08 05:06:34 w-ota Exp $
+
+class FileHistoryCommentAction extends BaseAction
+{
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+ // ¥Õ¥¡¥¤¥ëÍúÎòID
+ $file_history_id = $request->getParameter('file_history_id');
+
+ // form
+ $form = $request->ACSGetParameters();
+
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$community_folder_obj->has_privilege($target_community_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È¤òÅÐÏ¿¤¹¤ë
+ if ($form['comment'] != '') {
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤¬1·ï¤âÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï"ºîÀ®"¤òÅÐÏ¿¤¹¤ë
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ if (count($file_history_row_array) == 0) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_id = ACSFileHistory::set_file_history($file_info_row, $file_info_row['entry_user_community_id'], '', ACSMsg::get_mst('file_history_operation_master','D0101'));
+ }
+
+ $ret = ACSFileHistoryComment::set_file_history_comment($file_history_id, $acs_user_info_row['user_community_id'], $form['comment']);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail');
+ $file_detail_url .= '&community_id=' . $target_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $file_detail_url");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "comment",
+ true,
+ ACSMsg::get_msg('Community', 'FileHistoryCommentAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ // °ÜÆ°°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('Community', 'FileDetail');
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥Àɽ¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/11/20 08:44:12 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class FolderAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_community_id = $request->getParameter('community_id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $mode = $request->getParameter('mode'); // ɽ¼¨¥â¡¼¥É
+
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ // ¥°¥ë¡¼¥×ɽ¼¨
+ $file_detail_info_row_array = array();
+ if ($mode == 'group') {
+ // ¥Õ¥¡¥¤¥ë¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó
+ $target_folder_obj = $community_folder_obj->get_folder_obj();
+ $file_obj_array = $target_folder_obj->get_file_obj_array();
+
+ foreach ($file_obj_array as $file_obj) {
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_obj->get_file_id());
+ if (!$file_detail_info_row['file_id']) {
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤¬ÀßÄꤵ¤ì¤Æ¤Ê¤¤¾ì¹ç
+ $file_detail_info_row['file_id'] = $file_obj->get_file_id();
+ }
+ $file_detail_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_detail_info_row['thumbnail_server_file_name'] = $file_obj->get_thumbnail_server_file_name();
+ if ($file_obj->get_owner_community_id() == $target_community_row['community_id']) {
+ $file_detail_info_row['is_put'] = false;
+ } else {
+ $file_detail_info_row['is_put'] = true;
+ }
+ array_push($file_detail_info_row_array, $file_detail_info_row);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+ }
+
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$community_folder_obj->has_privilege($target_community_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $request->setAttribute('target_community_row', $target_community_row);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+ $request->setAttribute('error_row', $error_row);
+
+ $request->setAttribute('mode', $mode);
+ if ($mode == 'group') {
+ $request->setAttribute('file_detail_info_row_array', $file_detail_info_row_array);
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ }
+
+ return View::SUCCESS;
+ }
+
+ function execute () {
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::POST | Request::GET;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $folder_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+ $folder_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $folder_contents_row['contents_type_code'], $folder_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($folder_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2006/12/08 05:06:34 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class FolderDetailAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $detail_community_folder_id = $request->getParameter('detail_folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ $detail_community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $detail_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+ $request->setAttribute('detail_community_folder_obj', $detail_community_folder_obj);
+
+ return View::SUCCESS;
+ }
+ function isSecure () {
+ return false;
+ }
+
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $folder_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+ $folder_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $folder_contents_row['contents_type_code'], $folder_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($folder_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+?>
--- /dev/null
+<?php
+// ³°ÉôRSS¾ðÊó¼«Æ°¼è¹þ¼Â¹Ô
+// $Id: GetExternalRSSAction.class.php,v 1.1 2007/03/28 05:58:18 w-ota Exp $
+
+class GetExternalRSSAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¼Â¹Ô
+ ACSExternalRSS::do_process($community_row);
+
+ $bbs_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_id;
+ header("Location: $bbs_url");
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getPrivilege(&$controller, &$request, &$user) {
+ return array('COMMUNITY_ADMIN');
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexAction.class.php,v 1.12 2006/12/08 05:06:34 w-ota Exp $
+
+class IndexAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSGetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Â¸ºß¥Á¥§¥Ã¥¯
+ $community_row = ACSCommunity::get_community_row($community_id);
+ if (!$community_row || $community_row['community_type_name'] != ACSMsg::get_mst('community_type_master','D40')) {
+ return View::ERROR;
+ }
+
+ // ¸¢¸Â¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $sub_community_row_array = ACSCommunity::get_sub_community_row_array($community_id);
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î°ìÍ÷
+ $parent_community_row_array = ACSCommunity::get_parent_community_row_array($community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð, ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô
+ $community_member_user_info_row_array = ACSCommunity::get_community_member_user_info_row_array($community_id);
+ $community_admin_user_info_row_array = ACSCommunity::get_community_admin_user_info_row_array($community_id);
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã ¾µÇ§ÂÔ¤Á
+ $waiting_for_join_community_row_array = ACSWaiting::get_waiting_row_array($community_id, ACSMsg::get_mst('waiting_type_master','D20'), ACSMsg::get_mst('waiting_status_master','D10'));
+
+ // ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ, ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $waiting_for_parent_community_link_row_array = ACSWaiting::get_waiting_row_array($community_id, ACSMsg::get_mst('waiting_type_master','D40'), ACSMsg::get_mst('waiting_status_master','D10'));
+ $waiting_for_sub_community_link_row_array = ACSWaiting::get_waiting_row_array($community_id, ACSMsg::get_mst('waiting_type_master','D50'), ACSMsg::get_mst('waiting_status_master','D10'));
+
+ // ºÇ¿·¾ðÊó: BBS
+ // BBSµ»ö°ìÍ÷
+ $bbs_row_array = ACSBBS::get_bbs_row_array($community_id);
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('sub_community_row_array', $sub_community_row_array);
+ $request->setAttribute('parent_community_row_array', $parent_community_row_array);
+ $request->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+ $request->setAttribute('community_admin_user_info_row_array', $community_admin_user_info_row_array);
+ $request->setAttribute('waiting_for_join_community_row_array', $waiting_for_join_community_row_array);
+ $request->setAttribute('waiting_for_parent_community_link_row_array', $waiting_for_parent_community_link_row_array);
+ $request->setAttribute('waiting_for_sub_community_link_row_array', $waiting_for_sub_community_link_row_array);
+ $request->setAttribute('bbs_row_array', $bbs_row_array);
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ function isSecure()
+ {
+ return false;
+ }
+
+ function getCredential () {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ï¥á¥ó¥Ð¤Î¤ß¥¢¥¯¥»¥¹²Äǽ
+ $community_self_info_row = ACSCommunity::get_contents_row($request->getParameter('community_id'), ACSMsg::get_mst('contents_type_master','D00'));
+ if ($community_self_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ return array('COMMUNITY_MEMBER');
+ }
+ return array();
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+
+ // Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ï¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏÉÔ²Äǽ
+ $community_self_info_row = ACSCommunity::get_contents_row($request->getParameter('community_id'), ACSMsg::get_mst('contents_type_master','D00'));
+ if ($community_self_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: InviteToCommunityAction.class.php,v 1.4 2006/11/20 08:44:12 w-ota Exp $
+
+class InviteToCommunityAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷
+ $community_member_user_info_row_array = ACSCommunity::get_community_member_user_info_row_array($community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷
+ $friends_row_array = ACSUser::get_friends_row_array($acs_user_info_row['user_community_id']);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+ $request->setAttribute('friends_row_array', $friends_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $form = $form = $request->ACSGetParameters();
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+
+ ACSDB::_do_query("BEGIN");
+
+ // À¸À®¤µ¤ì¤¿waiting_id¤ÎÇÛÎó
+ $waiting_id_array = array();
+
+ foreach ($form['user_community_id_array'] as $invited_user_community_id) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ¾µÇ§ÂÔ¤ÁÅÐÏ¿
+ $waiting_id = ACSWaiting::set_waiting_for_invite_to_community($invited_user_community_id, $community_id, $acs_user_info_row['user_community_id'], $form['message']);
+ if (!$waiting_id) {
+ ACSDB::_do_query("ROLLBACK");
+ break;
+ }
+ // À¸À®¤µ¤ì¤¿waiting¾ðÊó¤òÊÝ»ý
+ array_push($waiting_id_array, $waiting_id);
+ }
+
+ if ($waiting_id) {
+ ACSDB::_do_query("COMMIT");
+ }
+
+
+ // À¸À®¤µ¤ì¤¿waiting¾ðÊó¤ò¸µ¤ËÊ£¿ô¥á¡¼¥ëÁ÷¿®
+ foreach ($waiting_id_array as $waiting_id) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ¾µÇ§°ÍÍêÄÌÃΥ᡼¥ë
+ ACSWaiting::send_admission_request_notify_mail($waiting_id);
+ }
+
+ // forward
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M002'));
+ $done_obj->add_link( ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $community_row['community_name'])),
+ $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "user_community_id_array",
+ true,
+ ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M003'));
+ parent::regValidateName($validatorManager,
+ "message",
+ true,
+ ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M004'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: JoinCommunityAction.class.php,v 1.7 2006/11/20 08:44:12 w-ota Exp $
+
+class JoinCommunityAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ¾µÇ§¤¬É¬Íפ«
+ $is_admission_required = ACSCommunity::is_admission_required_for_join_community($acs_user_info_row['user_community_id'], $community_id);
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('is_admission_required', $is_admission_required);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $form = $form = $request->ACSGetParameters();
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¾µÇ§¤¬É¬Íפ«
+ $is_admission_required = ACSCommunity::is_admission_required_for_join_community($acs_user_info_row['user_community_id'], $community_id);
+
+
+ // forward
+ $done_obj = new ACSDone();
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M003'));
+ $done_obj->add_link($community_row['community_name'] . ' ' .
+ ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M004'), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
+
+ if ($is_admission_required) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã¾µÇ§ÂÔ¤ÁÅÐÏ¿
+ $waiting_id = ACSWaiting::set_waiting_for_join_community($community_id, $acs_user_info_row['user_community_id'], $form['message']);
+
+ // »²²Ã¾µÇ§°ÍÍêÄÌÃΥ᡼¥ë
+ ACSWaiting::send_admission_request_notify_mail($waiting_id);
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M001'));
+
+ } else {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐÅÐÏ¿
+ $community_member_form = array();
+ $community_member_form['community_id'] = $community_id;
+ $community_member_form['user_community_id'] = $acs_user_info_row['user_community_id'];
+ ACSCommunity::set_community_member($community_member_form);
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'JoinCommunityAction.class.php', 'M002'));
+ }
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('NOT_COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')) {
+ return false;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤âNG
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£Âà²ñ½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2006/11/20 08:44:12 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSDone.class.php');
+class LeaveCommunityAction extends BaseAction
+{
+ /**
+ * ³Îǧ²èÌÌɽ¼¨
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ $request->setAttribute('target_community_row', $target_community_row);
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü½èÍý
+ */
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ /* ¥¢¥¯¥»¥¹¤·¤Æ¤¤¤ë¥æ¡¼¥¶¾ðÊó */
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ /* ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ */
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
+
+ /* ºï½ü½èÍý */
+ ACSDB::_do_query("BEGIN");
+ $ret = ACSCommunity::delete_community_member($target_community_id, array($acs_user_info_row['user_community_id']));
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ "ERROR : Delete community member failed.";
+ exit;
+ }
+ ACSDB::_do_query("COMMIT");
+
+
+ /* ´°Î»²èÌÌɽ¼¨ */
+ // °ú¿ô¥»¥Ã¥È
+ $message = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'LEAVE_CM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+
+ // ¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $top_page_url = $this->getControllerPath('User', 'Index');
+ $top_page_link_name = ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M001');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£URL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= '&community_id=' . $target_community_row['community_id'];
+ $community_top_page_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+
+ $done_obj = new ACSDone();
+
+ $done_obj->set_title(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M002'));
+ $done_obj->set_message($message);
+ $done_obj->add_link($top_page_link_name, $top_page_url);
+ $done_obj->add_link($community_top_page_link_name, $community_top_page_url);
+
+ $request->setAttribute('done_obj', $done_obj);
+
+ // ²èÌ̸ƤӽФ·
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏNG
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return false;
+ }
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2007/03/27 02:12:36 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class MoveFolderAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+
+ // °ÜÆ°Àè¥Õ¥©¥ë¥ÀID
+ $move_target_folder_id = $request->getParameter('selected_move_folder_id');
+
+ /* -------- */
+ /* °ÜÆ°½èÍý */
+ /* -------- */
+ ACSDB::_do_query("BEGIN");
+
+ // °ÜÆ°À褬¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ì¹ç¤Ï¡¢¸ø³«ÈϰϤò¥»¥Ã¥È¤¹¤ëɬÍפ¬¤¢¤ë¤¿¤á¡¢
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ðÊó¤ò¼èÆÀ¤·¤Æ¤ª¤¯
+ $root_folder_obj = ACSFolder::get_folder_instance($community_folder_obj->get_root_folder_row($community_folder_obj->get_community_id()));
+
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_id_array = $request->getParameter('selected_folder');
+ if ($selected_folder_id_array) {
+ foreach ($selected_folder_id_array as $folder_id) {
+ // °ÜÆ°¤¹¤ë¥Õ¥©¥ë¥À¼èÆÀ
+ $_folder_obj = $community_folder_obj->folder_obj->get_folder_obj($folder_id);
+
+ // °ÜÆ°½èÍý
+ $ret = $_folder_obj->move_folder($move_target_folder_id);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Move folder failed.";
+ exit;
+ }
+
+ // ¸ø³«ÈϰϤò¹¹¿·
+ if ($move_target_folder_id == $root_folder_obj->get_folder_id()) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Ø°ÜÆ°¤Î¾ì¹ç¡¢¸ø³«ÈϰϤò¥»¥Ã¥È
+ $new_open_level_code = $community_folder_obj->folder_obj->get_open_level_code();
+ $new_trusted_community_row_array = $community_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ } else {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À°Ê³°¤Ø°ÜÆ°¤Î¾ì¹ç¡¢¸ø³«ÈϰϤò¥ê¥»¥Ã¥È
+ $new_open_level_code = "";
+ $new_trusted_community_row_array = array();
+ }
+ $ret = $_folder_obj->update_open_level_code($new_open_level_code, $new_trusted_community_row_array);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Move folder failed.";
+ exit;
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_id_array = $request->getParameter('selected_file');
+ if ($selected_file_id_array) {
+ foreach ($selected_file_id_array as $file_id) {
+
+ // °ÜÆ°½èÍý
+ $file_obj = $community_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $community_folder_obj->folder_obj->move_file($file_obj, $move_target_folder_id);
+ //$ret = $_file_obj->rename_display_file_name($new_file_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Move file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¸ø³«ÍÑ¥Õ¥¡¥¤¥ë¾ðÊ󹹿·
+ $form['folder_id'] = $move_target_folder_id;
+ ACSFileDetailInfo::update_file_public_access($file_id, $form);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "selected_move_folder_id",
+ true,
+ ACSMsg::get_msg('Community', 'MoveFolderAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ // °ÜÆ°°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('Community', 'MoveFolderList');
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°ÀèÁªÂò
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/11/20 08:44:12 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class MoveFolderListAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_folder',
+ ACSMsg::get_msg('Community', 'MoveFolderListAction.class.php', 'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('community_folder_obj', $community_folder_obj);
+
+ // °ÜÆ°ÀèÁªÂòÍѤΥե©¥ë¥À¹½À®¼èÆÀ
+ $community_folder_tree = array();
+ $community_folder_tree = $community_folder_obj->get_folder_tree();
+
+ // °ÜÆ°Âоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹°ÜÆ°ÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $community_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹°ÜÆ°ÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $community_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+
+ // ¥¢¥¯¥»¥¹À©¸æ: ¥×¥Ã¥È¥Õ¥©¥ë¥À¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¤ÏNG //
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ if ($selected_folder_obj->get_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ }
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ if ($selected_file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ }
+
+ // set
+ $request->setAttribute('community_folder_tree', $community_folder_tree);
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_folder_id_array', $selected_folder_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::INPUT;
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÅϤ¹ */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// RSS¥µ¥ó¥×¥ë
+
+$rss = new UniversalFeedCreator();
+
+$rss->useCached();
+
+//¥·¥¹¥Æ¥à¾ðÊó¤Î¼èÆÀ
+$system_config_keyword_value = $request->getAttribute('system_config_keyword_value');
+$rss->title = $system_config_keyword_value['SYSTEM_NAME'];
+$rss->description = $system_config_keyword_value['SYSTEM_OUTLINE'];
+$rss->link = $system_config_keyword_value['SYSTEM_BASE_URL'];
+$rss->syndicationURL = $request->getAttribute('rss_syndicationURL');
+
+$image = new FeedImage();
+$image->title = $system_config_keyword_value['SYSTEM_IMAGE']['title'];
+$image->url = $system_config_keyword_value['SYSTEM_IMAGE']['url'];
+$image->link = $system_config_keyword_value['SYSTEM_IMAGE']['link'];
+$image->description = $system_config_keyword_value['SYSTEM_IMAGE']['description'];
+$rss->image = $image;
+
+// get news items from somewhere:
+$bbs_rss_array = $request->getAttribute('bbs_rss_array');
+$system_top_address = $request->getAttribute('system_top_address');
+
+$rss_display_max_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D06'), 'RSS_DISPLAY_MAX_COUNT');
+$rss_count = 0;
+foreach ($bbs_rss_array as $index => $data) {
+ // CRLF ¢ª LF
+ $body = preg_replace('/\r\n/', "\n", $data['body']);
+
+ $item = new FeedItem();
+ $item->post_date = $data['post_date'];
+ $item->title = $data['community_id_name'] . "::" . $data['subject'];
+ $item->link = $system_top_address . $data['bbs_url'];
+ $item->description = $body;
+ $item->image_link = $data['file_url'];
+ $item->description2 = $body; //Â裲¤ÎËÜʸ
+
+ $rss->addItem($item);
+
+ $rss_count++;
+ if ($rss_count == $rss_display_max_count) {
+ // ºÇÂç½ÐÎÏɽ¼¨·ï¿ô¤Î¾ì¹ç¡¢½ªÎ»
+ break;
+ }
+}
+
+// http-header
+mb_http_output('pass');
+header('Content-type: application/xml; charset=UTF-8');
+echo mb_convert_encoding($rss->createFeed("RSS1.0"), 'UTF-8', mb_internal_encoding());
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹µ¡Ç½¡¡Action¥¯¥é¥¹
+ *
+ * PressReleaseAllRSSAction.class.php
+ * @package acs/webapp/modules/Community/action
+ * @author acs
+ * @since PHP 5.0
+ * @version $Revision: 1.20 $ $Date: 2009/06/19 10:00:00 $
+ */
+class PressReleaseAllRSSAction extends BaseAction
+{
+ // GET¡¡É¸½à½ÐÎÏ
+ function getDefaultView() {
+ }
+
+ // POST ɸ½à½ÐÎϤΤß
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ // RSS¤Ëɽ¼¨¤¹¤ëÁ´¥³¥ß¥å¥Ë¥Æ¥£¡¡¤Î¥³¥ß¥å¥Ë¥Æ¥£ID»ØÄêÄê¿ô
+ // ÂоݤȤʤé¤Ê¤¤¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $except_community_id = $request->getParameter('except_community_id');
+
+ // BBSµ»ö°ìÍ÷
+ $bbs_row_array = ACSBBS::get_bbs_rss_row_array($except_community_id,0);
+
+ // ¥·¥¹¥Æ¥à¾ðÊó¤ÎÀßÄê
+ $system_config_keyword_value['SYSTEM_NAME'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_NAME');
+ $system_config_keyword_value['SYSTEM_OUTLINE'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_OUTLINE');
+ $system_config_keyword_value['SYSTEM_BASE_URL'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');
+ $system_config_keyword_value['SYSTEM_MAIL_ADDR'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_MAIL_ADDR');
+ // $system_config_keyword_value['SYSTEM_IMAGE'] = ACSSystemConfig::get_keyword_value('¥·¥¹¥Æ¥à', 'SYSTEM_IMAGE'); // 3/13¸½ºß²èÁü¤Ï̵¤¤¡¡¼¡¹Ô¡¡»ÃÄê½èÍý
+ $system_config_keyword_value['SYSTEM_IMAGE']['title'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M001');
+ $system_config_keyword_value['SYSTEM_IMAGE']['url'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M002');
+ $system_config_keyword_value['SYSTEM_IMAGE']['link'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M003');
+ $system_config_keyword_value['SYSTEM_IMAGE']['description'] = ACSMsg::get_msg('Community', 'PressReleaseAllRSSAction.class.php', 'M004');
+
+ $rss_syndicationURL .= $system_config_keyword_value['SYSTEM_BASE_URL'] . $this->getControllerPath('Community', 'PressReleaseAllRSS');
+
+ // ·ÇºÜ½ªÎ»Æü¤¬ËÜÆü¤ò±Û¤¨¤Æ¤¤¤Ê¤¤¤â¤Î¤Î¤ß¤Ë¤¹¤ë
+ // ËÜÆü¤ò¼èÆÀ
+ $today = date("Y/m/d");
+ $bbs_rss_array = array();
+
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ //ÂоݤȤʤ뵻ö¤Î¤ß¤òÃê½Ð
+ $bbs_date = ACSLib::convert_pg_date_to_str($bbs_row['expire_date'],false,false,false);
+ if($bbs_date >= $today || $bbs_date == null){
+ //µ»öÇÛÎó¤òºî¤êÊѤ¨
+ $bbs_rss_array[$index] = $bbs_row;
+ //ÁêÂФ¹¤ëCommunity̾¤òºî¤ë
+ $community_row = ACSCommunity::get_community_row($bbs_row['community_id']);
+ $bbs_rss_array[$index]['community_id_name'] = $community_row['community_name'];
+ //µ»ö¤Î¥ê¥ó¥¯Àè¤òºî¤ë
+ $bbs_rss_array[$index]['bbs_url']=$this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $bbs_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ //²èÁü¤Î¥ê¥ó¥¯Àè¤òºî¤ë
+ $bbs_rss_array[$index]['file_link']="";
+ if($bbs_row['file_id'] != ""){
+ $bbs_rss_array[$index]['file_url'] = $system_config_keyword_value['SYSTEM_BASE_URL'] . ACSBBSFile::get_image_url($bbs_row['bbs_id'],'rss'); //RSSɽ¼¨ÍÑ
+ }
+ }
+ }
+
+ $user->setAttribute('bbs_rss_array',$bbs_rss_array);
+
+ // RSSÂоݤÎBBSµ»ö°ìÍ÷
+ $bbs_rss_array = $user->getAttribute('bbs_rss_array');
+ // RSSÂоݤΥ¢¥É¥ì¥¹³«»ÏÃÍ
+ $system_top_address = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');
+
+ // set
+ $request->setAttribute('system_config_keyword_value', $system_config_keyword_value);
+ $request->setAttribute('rss_syndicationURL', $rss_syndicationURL);
+ $request->setAttribute('bbs_rss_array', $bbs_rss_array);
+ $request->setAttribute('system_top_address', $system_top_address);
+
+ require "PressReleaseAllRSS.php";
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// ñÆȤÎCommunity·Ç¼¨ÈĤòɽ¼¨¤¹¤ëRSS
+
+$rss = new UniversalFeedCreator();
+
+//Community¾ðÊó
+$community_row = $request->getAttribute('community_row');
+$community_name = $request->getAttribute('community_name');
+$system_top_address = $request->getAttribute('system_top_address');
+$detail = $request->getAttribute('detail');
+
+$community_row_url = $system_top_address .$community_row['community_profile']['top_page_url'];
+//¡û¡û¸¦µæ¼¼¥³¥ß¥å¥Ë¥Æ¥£¤Î³µÍ×
+$rss->useCached();
+$rss->title = $community_name;
+$rss->description = $community_row['community_profile']['contents_value'];
+$rss->link = $community_row_url; //¥³¥ß¥å¥Ë¥Æ¥£¤ÎTOP URL
+$rss->url = $community_row_url; //image rdf:resource
+$rss->syndicationURL = $request->getAttribute('rss_syndicationURL');
+
+//¡û¡û¸¦µæ¼¼¥í¥´²èÁü
+$image = new FeedImage();
+$image->title = $community_row['image_title'];
+$image->link = ACSMsg::get_msg('Community', 'PressReleaseRSS.php', 'M001');
+$image->url = $system_top_address .$community_row['image_url'];
+$rss->image = $image;
+
+// get news items from somewhere:
+$bbs_rss_array = $request->getAttribute('bbs_rss_array');
+if($detail == 1){
+ $rss_display_max_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D06'), 'RSS_DISPLAY_MAX_COUNT');
+ $rss_count = 0;
+ foreach ($bbs_rss_array as $index => $data) {
+ // CRLF ¢ª LF
+ $body = preg_replace('/\r\n/', "\n", $data['body']);
+
+ $item = new FeedItem();
+ $item->post_date = $data['post_date'];
+ $item->title = $data['subject'];
+ $item->link = $system_top_address . $data['bbs_url'];
+ $item->description = $body;
+ $item->image_link = $data['file_url'];
+ $item->description2 = $body; //Â裲¤ÎËÜʸ
+
+ $rss->addItem($item);
+
+ $rss_count++;
+ if ($rss_count == $rss_display_max_count) {
+ // ºÇÂç½ÐÎÏɽ¼¨·ï¿ô¤Î¾ì¹ç¡¢½ªÎ»
+ break;
+ }
+ }
+}
+// http-header
+mb_http_output('pass');
+header('Content-type: application/xml; charset=UTF-8');
+echo mb_convert_encoding($rss->createFeed("RSS1.0"), 'UTF-8', mb_internal_encoding());
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹µ¡Ç½¡¡Action¥¯¥é¥¹
+ *
+ * PressReleaseRSSAction.class.php
+ * @package acs/webapp/modules/Community/action
+ * @author acs
+ * @since PHP 5.0
+ * @version $Revision: 1.20 $ $Date: 2009/06/19 10:00:00 $
+ */
+class PressReleaseRSSAction extends BaseAction
+{
+ // GET¡¡É¸½à½ÐÎÏ
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // RSSÂоݤΥ¢¥É¥ì¥¹³«»ÏÃÍ
+ $system_top_address = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');
+
+ $rss_syndicationURL = $system_top_address;
+ $rss_syndicationURL .= $this->getControllerPath('Community', 'PressReleaseRSS');
+ $rss_syndicationURL .= '&community_id=' . $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_id = $request->getParameter('community_id');
+ $community_row = ACSCommunity::get_community_row($community_id);
+ $community_row['community_profile'] = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D07'));
+
+
+ //¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸
+ $community_top_page_url = $this->getControllerPath('Community', 'Index') . '&community_id=' . $community_id;
+ $community_row['community_profile']['top_page_url'] = $community_top_page_url;
+
+ //¥³¥ß¥å¥Ë¥Æ¥£¼Ì¿¿É½¼¨
+ if($community_row['file_id']){
+ $community_file_info_row = ACSFileInfoModel::select_file_info_row($community_row['file_id']);
+ $community_row['image_title'] = $community_file_info_row['display_file_name'];
+ }else{
+ $community_row['image_title'] = ACSMsg::get_msg('Community', 'PressReleaseRSSAction.class.php', 'M001');
+ }
+ $community_row['image_url'] = ACSCommunity::get_image_url($community_id,'rss');
+
+ // BBSµ»ö°ìÍ÷ °ì¤Ä¤À¤±½ÐÎϤ¹¤ë¤â¤Î¤òÁªÂò¤Ç¤¤ë
+ $bbs_row_array = ACSBBS::get_bbs_rss_row_array($community_id,1);
+ if(count($bbs_row_array) > 0){
+ // ·ÇºÜ½ªÎ»Æü¤¬ËÜÆü¤ò±Û¤¨¤Æ¤¤¤Ê¤¤¤â¤Î¤Î¤ß¤Ë¤¹¤ë
+ // ËÜÆü¤ò¼èÆÀ
+ $today = date("Y/m/d");
+ $bbs_rss_array = array();
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ //ÂоݤȤʤ뵻ö¤Î¤ß¤òÃê½Ð
+ $bbs_date = ACSLib::convert_pg_date_to_str($bbs_row['expire_date'],false,false,false);
+ if($bbs_date >= $today || $bbs_date == null){
+ //µ»öÇÛÎó¤òºî¤êÊѤ¨
+ $bbs_rss_array[$index] = $bbs_row;
+ //µ»ö¤Î¥ê¥ó¥¯Àè¤òºî¤ë
+ $bbs_rss_array[$index]['bbs_url']=$this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ //²èÁü¤Î¥ê¥ó¥¯Àè¤òºî¤ë
+ $bbs_rss_array[$index]['file_link']="";
+ if($bbs_row['file_id'] != ""){
+ $bbs_rss_array[$index]['file_url'] = $system_top_address . ACSBBSFile::get_image_url($bbs_row['bbs_id'],'rss') ; //RSSɽ¼¨ÍÑ
+ }
+ }
+ }
+ $detail = true; //¸ºß¤¹¤ë
+ }else{
+ $detail = false;//¸ºß¤·¤Ê¤¤
+ }
+ // RSSÂоݤÎBBSµ»ö°ìÍ÷
+ $user->setAttribute('bbs_rss_array',$bbs_rss_array);
+
+ // RSSÂоݤÎCommunity¾ðÊó
+ $user->setAttribute('community_row',$community_row);
+ $community_name = htmlspecialchars($community_row['community_name']);
+
+ // set
+ $request->setAttribute('rss_syndicationURL', $rss_syndicationURL);
+ $request->setAttribute('bbs_rss_array', $bbs_rss_array);
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('community_name', $community_name);
+ $request->setAttribute('system_top_address', $system_top_address);
+
+ //µ»ö¤Î¸ºß¥Õ¥é¥°
+ $request->setAttribute('detail',$detail);
+ require "PressReleaseRSS.php";
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¸ø³«ÀßÄê
+ * $Id: PublicAccessFileDetailAction.class.php,v 1.1 2007/03/28 08:59:09 w-ota Exp $
+ */
+
+class PublicAccessFileDetailAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«
+ $is_community_admin = false;
+ if(ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $target_community_id)){
+ $is_community_admin = true;
+ }
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¸ø³«ÀßÄê
+ $submit_kind = $request->getParameter('submit_kind');
+
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤Ç¤Ê¤¤¾ì¹ç
+ if ($file_obj->get_owner_community_id() == $target_community_id) {
+ if($submit_kind != "" && $is_community_admin){
+ // ¥Õ¥¡¥¤¥ë¸ø³«URLºîÀ®
+ if($submit_kind == "insert"){
+ $form['folder_id'] = $target_community_folder_id;
+ $form['community_id'] = $target_community_id;
+ ACSFileDetailInfo::insert_file_public_access($file_id, $form);
+
+ // ¥Õ¥¡¥¤¥ë¸ø³«URLºï½ü
+ }else if($submit_kind == "delete"){
+ ACSFileDetailInfo::delete_file_public_access($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¸ø³«¥¢¥¯¥»¥¹¿ô¥ê¥»¥Ã¥È
+ }else if($submit_kind == "reset"){
+ $form['access_count'] = 0;
+ $form['access_start_date'] = "'now'";
+ ACSFileDetailInfo::update_file_public_access($file_id, $form);
+ }
+ }
+ }
+
+ $contents_link_url =
+ $this->getControllerPath('Community', 'FileDetail') .
+ "&community_id=" . $target_community_id .
+ "&file_id=" . $file_obj->get_file_id() .
+ "&folder_id=" . $community_folder_obj->folder_obj->get_folder_id();
+
+ header("Location: $contents_link_url");
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/11/20 08:44:12 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class RenameFolderAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+
+ /* ------------- */
+ /* ̾Á°Êѹ¹½èÍý */
+ /* ------------- */
+ // ¿·¤·¤¤Ì¾Á°¤Ç¹¹¿·
+ ACSDB::_do_query("BEGIN");
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $new_folder_name_array = $request->getParameter('new_folder_name');
+ if ($new_folder_name_array) {
+ foreach ($new_folder_name_array as $folder_id => $new_folder_name) {
+ // ¥Õ¥©¥ë¥À̾ɬ¿Ü¥Á¥§¥Ã¥¯
+ if (!$new_folder_name) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_folder_name', ACSMsg::get_msg('Community', 'RenameFolderAction.class.php', 'M001'));
+ } elseif (mb_strlen($new_folder_name) > 100) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_file_name', ACSMsg::get_msg('Community', 'RenameFolderAction.class.php', 'M002'));
+ }
+
+ // folder_id ƬÈø¤Î¡Ö'¡×¤òºï½ü
+ $folder_id = trim($folder_id, "'");
+
+ // ̾Á°¹¹¿·½èÍý
+ $_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($folder_id);
+ $ret = $_folder_obj->rename_folder_name($new_folder_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Rename folder failed.";
+ exit;
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $new_file_name_array = $request->getParameter('new_file_name');
+ if ($new_file_name_array) {
+ foreach ($new_file_name_array as $file_id => $new_file_name) {
+ // ¥Õ¥¡¥¤¥ë̾ɬ¿Ü¥Á¥§¥Ã¥¯
+ if (!$new_file_name) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_file_name', ACSMsg::get_msg('Community', 'RenameFolderAction.class.php', 'M001'));
+ }
+
+ // file_id ƬÈø¤Î¡Ö'¡×¤òºï½ü
+ $file_id = trim($file_id, "'");
+
+ // ̾Á°¹¹¿·½èÍý
+ $_file_obj = $user_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $_file_obj->rename_display_file_name($new_file_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Rename file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+
+ // ̾Á°Êѹ¹°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('Community', 'RenameFolderList');
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹°ìÍ÷
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/11/20 08:44:12 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class RenameFolderListAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_folder',
+ ACSMsg::get_msg('Community', 'RenameFolderListAction.class.php','M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_community_info_row = ACSCommunity::get_community_row($target_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+
+ // set
+ $request->setAttribute('target_community_info_row', $target_community_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ // ̾Á°Êѹ¹Âоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹Êѹ¹ÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $user_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ: ¥×¥Ã¥È¥Õ¥©¥ë¥À¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¤ÏNG //
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ if ($selected_folder_obj->get_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+ }
+
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ if ($selected_file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+ }
+
+ // set
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::INPUT;
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+
+}
+?>
--- /dev/null
+<?php
+// ÍúÎò¥Õ¥¡¥¤¥ëÉü³è
+// $Id: RestoreHistoryFileAction.class.php,v 1.2 2006/11/20 08:44:12 w-ota Exp $
+
+class RestoreHistoryFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
+
+ // set
+ $request->setAttribute('file_info_row', $file_info_row);
+ $request->setAttribute('file_history_row', $file_history_row);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ //return VIEW_NONE;
+ }
+
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ // ¥Õ¥¡¥¤¥ëÉü³è½èÍý
+
+ // ¥Õ¥©¥ë¥Àobj
+ $community_folder_obj = new ACSUserFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // file_info¹¹¿·
+ $ret = $folder_obj->restore_history_file($file_info_row, $file_history_row);
+
+ if (!$ret) {
+ print "ERROR: Restore file failed.";
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history($file_info_row, $acs_user_info_row['user_community_id'], $form['comment'], ACSMsg::get_msg('Community', '', 'M001'));
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail');
+ $file_detail_url .= '&community_id=' . $target_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $file_detail_url");
+
+ //return VIEW_NONE;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSSchedule.class.php');
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ëɽ¼¨
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+class ScheduleAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó¤ÎÀßÄê
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_row =
+ ACSCommunity::get_community_row($target_community_id);
+ $request->setAttributeByRef('target_community_row', $target_community_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¿Í¿ô¤Î¼èÆÀ
+ $request->setAttribute('member_count',
+ ACSCommunity::get_community_member_count($target_community_id));
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹ÇÛÎó¤Î¼èÆÀ
+ $schedule_array =&
+ ACSSchedule::get_community_schedule_instance_list($target_community_id);
+
+ $request->setAttributeByRef('schedules', $schedule_array);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¿Í¿ô¾ðÊóÇÛÎó¤Î¼èÆÀ
+ $schedule_persons_array =&
+ ACSSchedule::get_total_person_count($target_community_id);
+
+ $request->setAttributeByRef('schedule_persons', $schedule_persons_array);
+
+ return View::SUCCESS;
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return $this->getDefaultView();
+ }
+
+ function getRequestMethods () {
+ return Request::POST | Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨Èĸ¡º÷¡¡Action¥¯¥é¥¹
+ *
+ * SearchDiaryAction.class.php
+ * @package acs/webapp/module/Community/Action
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchBBSAction.class.php,v 1.4 2006/11/20 08:44:12 w-ota Exp $
+
+class SearchBBSAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('community_id');
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSCommunity::get_community_profile_row($user_community_id);
+ // ¸ø³«ÈϰϤΥꥹ¥È¥Ç¡¼¥¿
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D42'));
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchCommunityAction.class.php,v 1.7 2006/11/20 08:44:12 w-ota Exp $
+
+class SearchCommunityAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ // ÆþÎÏ¥Õ¥©¡¼¥à
+ $form = $request->ACSgetParameters();
+
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥Þ¥¹¥¿
+ $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
+ foreach ($category_group_master_row_array as $index => $category_group_master_row) {
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¤´¤È¤Î¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+ $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
+ }
+
+ // ¥«¥Æ¥´¥ê¤´¤È¤Î¥³¥ß¥å¥Ë¥Æ¥£¿ô
+ $category_code_community_num_array = ACSCommunity::get_category_code_community_num_array();
+
+ // ¸¡º÷»þ
+ if ($form['search']) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $community_row_array = ACSCommunity::search_community_row_array($acs_user_info_row['user_community_id'], $form);
+
+ // ³µÍ×
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+ }
+
+ // set
+ $request->setAttribute('community_row_array', $community_row_array);
+
+ }
+
+ // set
+ $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
+ $request->setAttribute('category_code_community_num_array', $category_code_community_num_array);
+ $request->setAttribute('form', $form);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ function isSecure()
+ {
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchFolderAction.class.php,v 1.5 2006/12/18 07:42:11 w-ota Exp $
+
+class SearchFolderAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_id = $request->ACSgetParameter('community_id');
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ $form = $request->ACSgetParameters();
+
+ // ¸¡º÷»þ
+ if ($form['search']) {
+ $folder_row_array = array();
+ $put_folder_row_array = array();
+ $file_info_row_array = array();
+ $put_file_info_row_array = array();
+
+ // ¥Õ¥©¥ë¥À¸¡º÷
+ if ($form['target'] != 'file') {
+ $folder_row_array = ACSCommunityFolder::search_folder_row_array($community_id, $form);
+ $put_folder_row_array = ACSCommunityFolder::search_put_folder_row_array($community_id, $form);
+ }
+ // ¥Õ¥¡¥¤¥ë¸¡º÷
+ if ($form['target'] != 'folder') {
+ $file_info_row_array = ACSCommunityFolder::search_file_info_row_array($community_id, $form);
+ $put_file_info_row_array = ACSCommunityFolder::search_put_file_info_row_array($community_id, $form);
+ }
+
+ // ¥Õ¥©¥ë¥À
+ foreach ($folder_row_array as $index => $folder_row) {
+ $target_folder_obj = new ACSCommunityFolder($community_id, $acs_user_info_row, $folder_row['folder_id']);
+ $folder_row_array[$index]['update_date'] = $target_folder_obj->folder_obj->get_update_date_yyyymmddhmi();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $folder_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $folder_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($folder_row_array[$index]['open_level_code']);
+ $folder_row_array[$index] = array_merge($folder_row_array[$index], $open_level_master_row);
+ $folder_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ $folder_row_array[$index]['path_array'] = $path_array;
+ }
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À
+ foreach ($put_folder_row_array as $index => $folder_row) {
+ $target_folder_obj = new ACSCommunityFolder($community_id, $acs_user_info_row, $folder_row['folder_id']);
+ $put_folder_row_array[$index]['update_date'] = $target_folder_obj->folder_obj->get_update_date_yyyymmddhmi();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $put_folder_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $put_folder_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($put_folder_row_array[$index]['open_level_code']);
+ $put_folder_row_array[$index] = array_merge($put_folder_row_array[$index], $open_level_master_row);
+ $put_folder_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ $put_folder_row_array[$index]['path_array'] = $path_array;
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ foreach ($file_info_row_array as $index => $file_info_row) {
+ $target_folder_obj = new ACSCommunityFolder($community_id, $acs_user_info_row, $file_info_row['folder_id']);
+ $target_file_obj = new ACSFile($file_info_row);
+
+ $file_info_row_array[$index]['file_size'] = $target_file_obj->get_file_size_kb();
+ $file_info_row_array[$index]['update_date'] = $target_file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row_array[$index]['is_root_folder'] = $target_folder_obj->folder_obj->get_is_root_folder();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $file_info_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $file_info_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($file_info_row_array[$index]['open_level_code']);
+ $file_info_row_array[$index] = array_merge($file_info_row_array[$index], $open_level_master_row);
+ $file_info_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ array_push($path_array, $file_info_row['display_file_name']);
+ $file_info_row_array[$index]['path_array'] = $path_array;
+ }
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë
+ foreach ($put_file_info_row_array as $index => $file_info_row) {
+ // ¥×¥Ã¥È¤µ¤ì¤¿¥Õ¥©¥ë¥À¤Îľ²¼¤Ë°ÌÃÖ¤¹¤ë¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤Îfolder_id¤Ï
+ // ¥×¥Ã¥È¤µ¤ì¤¿¥Õ¥©¥ë¥À¤Îfolder_id¤ËÊÑ´¹¤¹¤ë
+ if ($file_info_row['put_community_folder_id'] != '') {
+ $file_info_row['folder_id'] = $file_info_row['put_community_folder_id'];
+ $put_file_info_row_array[$index] = $file_info_row;
+ }
+ $target_folder_obj = new ACSCommunityFolder($community_id, $acs_user_info_row, $file_info_row['folder_id']);
+ $target_file_obj = new ACSFile($file_info_row);
+
+ $put_file_info_row_array[$index]['file_size'] = $target_file_obj->get_file_size_kb();
+ $put_file_info_row_array[$index]['update_date'] = $target_file_obj->get_update_date_yyyymmddhmi();
+ $put_file_info_row_array[$index]['is_root_folder'] = $target_folder_obj->folder_obj->get_is_root_folder();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $put_file_info_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $put_file_info_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($put_file_info_row_array[$index]['open_level_code']);
+ $put_file_info_row_array[$index] = array_merge($put_file_info_row_array[$index], $open_level_master_row);
+ $put_file_info_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ array_push($path_array, $file_info_row['display_file_name']);
+ $put_file_info_row_array[$index]['path_array'] = $path_array;
+ }
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('form', $form);
+ $request->setAttribute('folder_row_array', $folder_row_array);
+ $request->setAttribute('put_folder_row_array', $put_folder_row_array);
+ $request->setAttribute('file_info_row_array', $file_info_row_array);
+ $request->setAttribute('put_file_info_row_array', $put_file_info_row_array);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $folder_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D31'));
+ $folder_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $folder_contents_row['contents_type_code'], $folder_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($folder_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡¸¡º÷·ë²Ì¡¡Action¥¯¥é¥¹
+ *
+ * SearchResultBBSAction.class.php
+ * @package acs/webapp/module/Community/Action
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchResultBBSAction.class.php,v 1.4 2006/11/20 08:44:12 w-ota Exp $
+
+class SearchResultBBSAction extends BaseAction
+{
+ // POST ¸¡º÷¥Ü¥¿¥ó¤Î½èÍý
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ if ($move_id == 1) {
+ $form = $request->getParameters('search_form_default');
+ } else if($move_id == 2) {
+ $form = $request->getParameters('search_form_new');
+ }
+
+ // form¤Î¾ðÊó¤Ë½¾¤¤¸¡º÷¤ò¹Ô¤¦
+ if ($move_id > 0) {
+ $err_str = "";
+ /* Array
+ [id] => 1000
+ [move_id] => 2
+ [q_text] => ¸¡º÷¾ò·ï //¾ò·ï¡Ê¢¨É¬¿Ü¡Ë
+ [search_title] => title_in_serch //·ï̾¤òÁªÂò
+ [search_all] => subject_in_serch //ËÜʸ¤òÁªÂò
+ [open_level_code] => 00 //¸ø³«ÈÏ°Ï¡Ê00¤ÏÁªÂò¤Ê¤·¡Ë¡Ê¢¨É¬¿Ü¡Ë
+ [search_all_about] => all_in_serch //¤¹¤Ù¤Æ¤ÎBBS¤òÁªÂò
+ */
+
+ // ------------ ¸¡º÷¾ðÊó¤Î¼èÆÀ¡ÊÃí°Õ¡ª¥Ð¥¤¥Èñ°Ì¤Ç½èÍý¡Ë
+ for ($i = 1; $i < 3; $i++) {
+ $str_where_create[$i] = ACSBBS::set_bbs_where_list($form,$i);
+ if ($str_where_create[$i]['err_str']) {
+ $err_str = $str_where_create[$i]['err_str']; //where¶ç¤Î°ìÉô¤¬ºîÀ®¤Ç¤¤Ê¤¤¥ª¥Ú¥ì¡¼¥¿¥ß¥¹
+ if ($err_str != '') {
+ break;
+ }
+ } else {
+ $str_where[$i] = $str_where_create[$i]['like_sql'];
+ }
+ }
+ //¸ø³«ÈϰϤÏÊÌ»ØÄê
+ $str_open_level_code = '00';
+ if ($form['open_level_code'] != '00') { //¸ø³«ÈϰϤòÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ $str_open_level_code = $form['open_level_code'] ;
+ }
+
+ // ------------
+ //db¸¡º÷½èÍý and or £²²ó¹Ô¤¦
+ if (!$err_str) {
+ $bbs_row_array_result = ACSBBS::get_bbs_where_array($str_where[1],$str_open_level_code,array());
+ //Ê£¹ç¾ò·ï¤Î¥µ¥Þ¥ê
+ //and´°Á´°ìÃפò¾Ê¤¤¤¿Æüµ¤«¤éorÉôʬ°ìÃפò¸¡º÷¤¹¤ë
+ if ($str_where_create[1]['str_count'] == 2 || $str_where_create[2]['str_count'] == 2) {
+ $str_where_create['not_id'] = array();
+ foreach ($bbs_row_array_result as $index => $bbs_row) {
+ array_push($str_where_create['not_id'], $bbs_row['bbs_id']);
+ }
+ $bbs_row_array_not = ACSBBS::get_bbs_where_array($str_where[2],$str_open_level_code,$str_where_create['not_id']);
+ foreach ($bbs_row_array_not as $index => $bbs_row) {
+ array_push($bbs_row_array_result, $bbs_row);
+ }
+ }
+ if (!$bbs_row_array_result) {
+ $err_str = ACSMsg::get_msg('Community', 'SearchResultBBSAction.class.php', 'M001');
+ } else {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ foreach ($bbs_row_array_result as $index => $bbs_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ $bbs_row_array[$index]['trusted_community_row_array'] = ACSBBS::get_bbs_trusted_community_row_array($bbs_row['bbs_id']);
+ }
+ }
+ }
+ }
+
+ $request->setAttribute('bbs_row_array_result',$bbs_row_array_result);
+ $request->setAttribute('err_str',$err_str);
+ $request->setAttribute('form_pre',$form);
+
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D40'),
+ ACSMsg::get_mst('contents_type_master','D42'));
+
+ // set
+ $user->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('bbs_row_array', $bbs_row_array);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+// $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_profile_row($community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row),
+ 'contents_row_array' => array($bbs_contents_row)
+ );
+
+ return $access_control_info;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: SelectTrustedCommunityAction.class.php,v 1.4 2006/03/20 05:58:53 w-ota Exp $
+
+class SelectTrustedCommunityAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ // ÆþÎÏ¥Õ¥©¡¼¥à
+ $form = $request->ACSgetParameters();
+
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¥Þ¥¹¥¿
+ $category_group_master_row_array = ACSCommunity::get_category_group_master_row_array();
+ foreach ($category_group_master_row_array as $index => $category_group_master_row) {
+ // ¥«¥Æ¥´¥ê¥°¥ë¡¼¥×¤´¤È¤Î¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+ $category_group_master_row_array[$index]['category_master_row_array'] = ACSCommunity::get_category_master_row_array_by_category_group_code($category_group_master_row['category_group_code']);
+ }
+
+ $form_name = $request->ACSgetParameter('form_name');
+ $prefix = $request->ACSgetParameter('prefix');
+
+ // ¸¡º÷»þ
+ if ($form['search']) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $community_row_array = ACSCommunity::search_community_row_array($acs_user_info_row['user_community_id'], $form);
+ } else {
+ $community_row_array = ACSCommunity::get_community_row_array($acs_user_info_row['user_community_id']);
+ }
+
+ // set
+ $request->setAttribute('community_row_array', $community_row_array);
+ $request->setAttribute('category_group_master_row_array', $category_group_master_row_array);
+ $request->setAttribute('form', $form);
+ $request->setAttribute('form_name', $form_name);
+ $request->setAttribute('prefix', $prefix);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// ¥Õ¥¡¥¤¥ë¹¹¿·
+// $Id: UpdateFileAction.class.php,v 1.4 2006/12/18 07:42:11 w-ota Exp $
+
+class UpdateFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+ // set
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¡¢¥Õ¥¡¥¤¥ë¤ÏNG
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ $ret = false;
+ // ¥Õ¥¡¥¤¥ë¹¹¿·½èÍý
+ if ($_FILES['new_file']['tmp_name'] != '') {
+ // ¥Õ¥¡¥¤¥ëobj
+ $file_obj = ACSFile::get_upload_file_info_instance_for_update($_FILES['new_file'],
+ $target_community_id,
+ $acs_user_info_row['user_community_id'],
+ $file_id
+ );
+
+ // ¥Õ¥©¥ë¥Àobj
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤¬1·ï¤âÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï"ºîÀ®"¤òÅÐÏ¿¤¹¤ë
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ if (count($file_history_row_array) == 0) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_id = ACSFileHistory::set_file_history($file_info_row, $file_info_row['entry_user_community_id'], '', ACSMsg::get_mst('file_history_operation_master','D0101'));
+ }
+
+ // file_info¹¹¿·, ¥Õ¥¡¥¤¥ëÊݸ
+ $ret = $folder_obj->update_file($file_obj);
+ }
+
+ if (!$ret) {
+ print "ERROR: ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É¤Ë¼ºÇÔ¤·¤Þ¤·¤¿";
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history(
+ $file_info_row,
+ $acs_user_info_row['user_community_id'],
+ $form['comment'],
+ ACSMsg::get_mst('file_history_operation_master','D0201'));
+
+ // 2007.12 ÄɲÃ
+ // MLÄÌÃÎ¥Á¥§¥Ã¥¯¤¬¤¢¤ì¤ÐML¤Ë¥á¡¼¥ëÁ÷¿®¤¹¤ë
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $send_announce_mail = $request->getParameter('send_announce_mail');
+ if($send_announce_mail == "t"){
+ ACSCommunityMail::send_fileupload_mail(
+ $target_community_id, $acs_user_info_row, $folder_obj, $file_obj);
+ }
+
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail');
+ $file_detail_url .= '&community_id=' . $target_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_community_folder_id;
+ header("Location: $file_detail_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+require_once(ACS_CLASS_DIR . 'ACSCommunityMail.class.php');
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É
+ *
+ * @author kuwayama
+ * @version $Revision: 1.7 $ $Date: 2006/12/18 07:42:11 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class UploadFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤ÏNG
+ $community_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $target_folder_obj = $community_folder_obj->get_folder_obj();
+ $is_put_folder = $target_folder_obj->is_put_folder($target_community_id);
+ if ($is_put_folder) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+ // set
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_community_id = $request->getParameter('community_id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ /* ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É½èÍý */
+ $ret = 0;
+ if ($_FILES['new_file']['tmp_name'] != '') {
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_upload_file_info_instance($_FILES['new_file'],
+ $target_community_id,
+ $acs_user_info_row['user_community_id']);
+
+ // ¥Õ¥©¥ë¥À¤Ë¥Õ¥¡¥¤¥ëÄɲýèÍý
+ $user_folder_obj = new ACSCommunityFolder($target_community_id,
+ $acs_user_info_row,
+ $target_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+ $ret = $folder_obj->add_file($file_obj);
+
+ }
+
+ if (!$ret) {
+ print "ERROR: Upload file failed.";
+ }
+
+ if ($ret) {
+ // ¿·µ¬ÅÐÏ¿¤·¤¿¥Õ¥¡¥¤¥ëID
+ $file_id = $file_obj->get_file_id();
+
+ // 2007.12 ÄɲÃ
+ // MLÄÌÃÎ¥Á¥§¥Ã¥¯¤¬¤¢¤ì¤ÐML¤Ë¥á¡¼¥ëÁ÷¿®¤¹¤ë
+ $send_announce_mail = $request->getParameter('send_announce_mail');
+ if($send_announce_mail == "t"){
+ ACSCommunityMail::send_fileupload_mail(
+ $target_community_id, $acs_user_info_row, $folder_obj, $file_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history($file_info_row, $acs_user_info_row['user_community_id'], $form['comment'], ACSMsg::get_mst('file_history_operation_master','D0101'));
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÅÐÏ¿
+ if ($form['file_category_code'] != '' && $ret) {
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($form['file_category_code']);
+ $file_contents_form_array = array();
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_contents_form = array(
+ 'file_id' => $file_id,
+ 'file_contents_type_code' => $file_contents_type_list_row['file_contents_type_code'],
+ 'file_contents_value' => $form['file_contents_array'][$file_contents_type_list_row['file_contents_type_code']]
+ );
+ array_push($file_contents_form_array, $file_contents_form);
+ }
+
+ $ret = ACSFileDetailInfo::set_file_detail_info($file_id, $form['file_category_code'], $file_contents_form_array);
+ }
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $folder_action = $this->getControllerPath('Community', 'Folder');
+ $folder_action .= '&community_id=' . $target_community_id;
+ $folder_action .= '&folder_id=' . $target_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_MEMBER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤ÏOK
+ if ($user->hasCredential('COMMUNITY_MEMBER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¥¢¥Ã¥×¥í¡¼¥É
+ * UploadImageAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @version $Revision: 1.6 $
+ * @import ACSFile.class.php
+ * @import ACSCommunityImageFileModel.class.php
+ * @import ACSFileInfoModel.class.php
+ */
+//require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+//require_once(ACS_CLASS_DIR . 'ACSCommunityImageFileModel.class.php');
+//require_once(ACS_CLASS_DIR . 'ACSFileInfoModel.class.php');
+
+class UploadProfileImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_community_id = $request->getParameter('community_id');
+ $image_new_mode = $request->getParameter('image_new_mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $file_id = $request->getParameter('file_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //Äɲäȹ¹¿·¤Îʬ´ô ver1.1
+ // $image_new_mode¥Õ¥é¥°
+ // file_info¥Æ¡¼¥Ö¥ë¤Ø¤ÎÄɲÃtrue¤Þ¤¿¤Ï¹¹¿·false
+ if($image_new_mode){
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ(¿·µ¬¤Î¾ì¹ç)
+ $file_obj = ACSFile::get_upload_file_info_instance($_FILES['new_file'],$target_user_community_id,$acs_user_info_row['user_community_id']);
+ } else {
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ(¹¹¿·¤Î¾ì¹ç)
+ $file_obj = ACSFile::get_upload_file_info_instance(
+ $_FILES['new_file'],$target_user_community_id,$acs_user_info_row['user_community_id'],
+ $file_id);
+ }
+
+ //¥Õ¥¡¥¤¥ë¤Î¼ïÎà¥Á¥§¥Ã¥¯
+ $image_check = $file_obj->is_image_file();
+ if (!$image_check) {
+ print "ERROR: This file is not image-format.";
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É½èÍý */
+
+ // ¥Õ¥¡¥¤¥ë¤ÎÊݸ
+ $ret = $file_obj->save_upload_file('PROFILE');
+
+ ACSDB::_do_query("BEGIN");
+ if($image_new_mode){
+ $ret = $file_obj->add_file();
+ } else {
+ $ret = ACSFileInfoModel::update_all_file_info($file_obj);
+ }
+
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Upload image-file failed.:file_info";
+ } else if($image_new_mode) {
+ //community_image_file¥Æ¡¼¥Ö¥ë¤Ø¤ÎÄɲÃ
+ $ret = ACSCommunityImageFileModel::insert_community_image($file_obj);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Upload image-file failed.:image_file";
+ } else {
+ ACSDB::_do_query("COMMIT"); //Äɲå⡼¥É¤Î¥³¥ß¥Ã¥È
+ }
+ } else {
+ ACSDB::_do_query("COMMIT"); //¹¹¿·¥â¡¼¥É¤Î¥³¥ß¥Ã¥È
+ }
+
+ /* ɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤· */
+ $image_change_url = $this->getControllerPath('Community','EditProfileImage');
+ $image_change_url .= '&community_id=' . $target_user_community_id;
+
+ header("Location: $image_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: WaitingListAction.class.php,v 1.7 2006/11/20 08:44:12 w-ota Exp $
+
+class WaitingListAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->ACSgetParameter('community_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+
+ // ÂÔµ¡¼ïÊÌ¥³¡¼¥É
+ $waiting_type_code = $request->ACSgetParameter('waiting_type_code');
+ // ÂÔµ¡¾õÂÖ¥³¡¼¥É
+ $waiting_status_code = $request->ACSgetParameter('waiting_status_code');
+
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');
+
+ $waiting_type_name = $waiting_type_master_array[$waiting_type_code];
+ $waiting_status_name = $waiting_status_master_array[$waiting_status_code];
+
+ // ÂÔµ¡
+ $waiting_row_array = ACSWaiting::get_waiting_row_array($community_id, $waiting_type_name, $waiting_status_name);
+ if ($waiting_type_name == ACSMsg::get_mst('waiting_type_master','D40') || $waiting_type_name == ACSMsg::get_mst('waiting_type_master','D50')) {
+ foreach ($waiting_row_array as $index => $waiting_row) {
+ $waiting_row_array[$index]['entry_user_info_row'] = ACSUser::get_user_info_row_by_user_community_id($waiting_row['entry_user_community_id']);
+ }
+ }
+
+ // set
+ $request->setAttribute('community_row', $community_row);
+ $request->setAttribute('waiting_type_name', $waiting_type_name);
+ $request->setAttribute('waiting_row_array', $waiting_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $form = $request->ACSgetParameters();
+
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');
+
+ // ÂÔµ¡¾ðÊó
+ $waiting_row = ACSWaiting::get_waiting_row($form['waiting_id']);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($waiting_row['community_id']);
+
+ // forward
+ $done_obj = new ACSDone();
+
+
+ if ($form['accept_button']) {
+ // ¾µÇ§¥Ü¥¿¥ó²¡²¼»þ //
+ ACSDB::_do_query("BEGIN");
+
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D20')) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥ÐÄɲÃ
+ $community_member_form = array();
+ $community_member_form['community_id'] = $waiting_row['community_id'];
+ $community_member_form['user_community_id'] = $waiting_row['waiting_community_id'];
+ $ret = ACSCommunity::set_community_member($community_member_form);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40')) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê
+ $ret = ACSCommunity::set_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê
+ $ret = ACSCommunity::set_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
+ }
+
+ if ($ret) {
+ // ¾µÇ§ºÑ¤ß¤ò¥»¥Ã¥È
+ $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master','D20'), $acs_user_info_row['user_community_id'], $form['reply_message']);
+ if ($ret) {
+ ACSDB::_do_query("COMMIT");
+
+ // À°¹çÀÊÝ»ý
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D20')) {
+ // »²²Ã¤Î½ÅÊ£¤ò²ò½ü
+ ACSWaiting::update_waiting_for_join_community($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ // ¾·ÂԤνÅÊ£¤ò²ò½ü
+ ACSWaiting::update_waiting_for_invite_to_community($waiting_row['waiting_community_id'], $waiting_row['community_id']);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40')) {
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲäνÅÊ£²ò½ü
+ ACSWaiting::update_waiting_for_parent_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲäνÅÊ£²ò½ü
+ ACSWaiting::update_waiting_for_sub_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲäνÅÊ£²ò½ü
+ ACSWaiting::update_waiting_for_sub_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲäνÅÊ£²ò½ü
+ ACSWaiting::update_waiting_for_parent_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
+ }
+
+ // ÊÖ¿®¥á¥Ã¥»¡¼¥¸
+ if ($form['reply_message'] != '') {
+ $ret = ACSWaiting::send_admission_accept_notify_mail($form['waiting_id']);
+ }
+
+ $done_obj->set_title(
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'FIN_ADM'),
+ array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M001'));
+ } else {
+ $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M002'));
+ }
+ } else {
+ ACSDB::_do_query("ROLLBACK");
+ }
+
+ } elseif ($form['reject_button']) {
+ // µñÈݥܥ¿¥ó²¡²¼»þ
+ $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master','D30'), $acs_user_info_row['user_community_id']);
+ if ($ret) {
+ $done_obj->set_title(ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'FIN_DIS'),
+ array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
+ $done_obj->set_message(
+ ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M001'));
+ } else {
+ $done_obj->set_message(
+ ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M002'));
+ }
+ }
+
+ $done_obj->add_link(ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'BACK_TO_CM'),
+ array("{COMMUNITY_NAME}" => $community_row['community_name'])),
+ $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $community_row['community_id']);
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('COMMUNITY_ADMIN');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤ÏOK
+ if ($user->hasCredential('COMMUNITY_ADMIN')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+[module]
+ ENABLED = "On"
+ TITLE = "ACS Community Module"
+ VERSION = "1.0"
+ NAME = "Community"
+ AUTHOR = "y-yuki"
+ HOMEPAGE = ""
+ UPDATE_URL = ""
+ DESCRIPTION = "Academic Community System Community module"
+
--- /dev/null
+<?php
+// $Id: AddCommunityLink.tpl.php,v 1.9 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M001') ?></a> :: <a href="<?= $this->_tpl_vars['community_link_url'] ?>"><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M003') ?>
+</div>
+<br>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+
+<form name="add_community_link_form" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<input type="hidden" name="except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ÁªÂò¤¹¤ë¥ê¥ó¥¯¼ïÊ̤òÀßÄê
+$link_type_checked_str['parent'] = "";
+$link_type_checked_str['sub'] = "";
+if ($this->_tpl_vars['form']) {
+ $link_type_checked_str[$this->_tpl_vars['form']['link_type']] = " checked";
+} else {
+ // ½é´üÃͤϿƥ³¥ß¥å¥Ë¥Æ¥£
+ $link_type_checked_str['parent'] = " checked";
+}
+?>
+<input type="radio" name="link_type" value="parent"<?= $link_type_checked_str['parent'] ?>><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M005') ?><br>
+<input type="radio" name="link_type" value="sub"<?= $link_type_checked_str['sub'] ?>><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M006') ?><br>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+<div id="trusted_community_div">
+ <table class="layout_table">
+ <tr><td id="trusted_community_td">
+ <?php
+ // ÁªÂò¤µ¤ì¤¿¥³¥ß¥å¥Ë¥Æ¥£Éü¸µ
+ if ($this->_tpl_vars['form']['trusted_community_row_array']) {
+ foreach ($this->_tpl_vars['form']['trusted_community_row_array'] as $trusted_community_row) {
+ echo '<input type="checkbox" name="trusted_community_id_array[]" value="' . $trusted_community_row['community_id'] . '" checked>' . "\n";
+
+ echo '<a href="' . $trusted_community_row['top_page_url'] . '" target="_blank">';
+ echo htmlspecialchars($trusted_community_row['community_name']);
+ echo '</a><br>' . "\n";
+ }
+ }
+ ?>
+ </td></tr>
+
+ <tr><td>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M008') ?>" onClick="select_trusted_community()">
+ <span style="font-size: 8pt;"><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M009') ?></span>
+ </td></tr>
+ </table>
+</div>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M010') ?></td>
+<td bgcolor="#ffffff"><textarea name="message" cols="50" rows="4"><?= $this->_tpl_vars['form']['message'] ?></textarea></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "AddCommunityLink.tpl.php",'M011') ?>">
+</form>
+<br>
+
+
+<script language="JavaScript">
+<!--
+ prefix = '';
+ function select_trusted_community () {
+ window.open("<?= $this->_tpl_vars['select_trusted_community_url'] ?>" + "&form_name=" + 'add_community_link_form' + '&prefix=' + prefix,
+ "SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
+ }
+// -->
+</script>
--- /dev/null
+<?php
+ require_once(ACS_LIB_TEMPLATE_DIR . 'ACSTemplateLib.class.php');
+
+ //
+ // $Id: AnswerSchedule.tpl.php,v 1.2 2006/12/28 07:36:15 w-ota Exp $
+ //
+
+ $target_community_row =& $this->_tpl_vars['target_community_row'];
+ $is_decision_screen =& $this->_tpl_vars['is_decision_screen'];
+ $acs_user_info_row =& $this->_tpl_vars['acs_user_info_row'];
+ $schedule =& $this->_tpl_vars['schedule'];
+ $schedule_participant =& $this->_tpl_vars['schedule_participant'];
+ $answer_selection =& $schedule->get_answer_selection();
+ $is_closed = ($schedule->is_fixed() || $schedule->is_close() ? TRUE : FALSE);
+
+ $title = '<a href="' . $this->_tpl_vars['url_community_top'] . '">';
+ $title .= htmlspecialchars($target_community_row['community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ";
+ $title .= '<a href="' . $this->_tpl_vars['url_schedule_list'] . '">';
+ $title .= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M002');
+ $title .= '</a>';
+
+ // ¥¹¥±¥¸¥å¡¼¥ë·èÄê
+ if ($is_decision_screen) {
+ $title .= " :: ".ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M004');
+ // ¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½ÆþÎÏ
+ } else {
+ $title .= " :: ".ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M003');
+ }
+
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<p>
+<form name="edit_form" action="<?= $this->_tpl_vars['url_commit'] ?>" method="post">
+<input type="hidden" name="community_id" value="<?= $schedule->community_id ?>">
+<input type="hidden" name="schedule_id" value="<?= $schedule->schedule_id ?>">
+<input type="hidden" name="participate" value="">
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="600">
+<?php // ¾õÂÖ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M005') ?></th>
+ <td bgcolor="#ffffff" colspan="3" align="left"><b>
+ <?= $this->_tpl_vars['schedule_status'] ?>
+ </b></td>
+</tr>
+<?php // ·ï̾ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M006') ?></th>
+ <td bgcolor="#ffffff" width="200"><?= htmlspecialchars($schedule->schedule_name) ?></td>
+<?php // ¾ì½ê ?>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M007') ?></th>
+ <td bgcolor="#ffffff" width="200"><?= htmlspecialchars($schedule->schedule_place) ?></td>
+</tr>
+<?php // ¼çºÅ¼Ô ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M008') ?></th>
+ <td bgcolor="#ffffff" width="200"
+ ><a href="<?= $this->_tpl_vars['user_community_name_url'] ?>"
+ ><?= htmlspecialchars($this->_tpl_vars['user_community_name']) ?></a></td>
+<?php // ²óÅúÄùÀÚÆü»þ ?>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M009') ?></th>
+ <td bgcolor="#ffffff" width="200"><?= htmlspecialchars(ACSLib::convert_pg_date_to_str($schedule->schedule_closing_datetime)) ?></td>
+</tr>
+<?php // ¾ÜºÙ¾ðÊó ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M010') ?></th>
+ <td bgcolor="#ffffff" width="200"><?= htmlspecialchars($schedule->schedule_detail) ?></td>
+<?php // ÂÐ¾Ý ?>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M011') ?>
+ </th>
+ <td bgcolor="#ffffff" width="200">
+ <?php
+ if ($schedule->schedule_target_kind == "ALL"){
+ ?>
+ <?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M022') ?>
+ <?php
+ }else{
+ ?>
+ <?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M023') ?>
+ <?php
+ }
+ ?>
+ </td>
+</tr>
+</table>
+</p>
+
+<?php // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î»²²ÃÅÐÏ¿¥¨¥ê¥¢
+
+// --- ¥¹¥±¥¸¥å¡¼¥ë·èÄê¤Î¾ì¹ç¤Ïɽ¼¨¤·¤Ê¤¤(¤³¤³¤«¤é)
+if (!$is_decision_screen) {
+?>
+<p>
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"></th>
+ <?php // ¸õÊäÆü»þ¥¿¥¤¥È¥ëɽ¼¨
+ foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+ ?>
+ <th bgcolor="#DEEEBD" width="60"><?= $adjustment_date['date_string'] ?></th>
+ <?php
+ }
+ ?>
+ <th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M014') ?></th>
+</tr>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100" nowrap><?= $acs_user_info_row['user_name'] ?>
+ <br><?php // »²²Ã¥Ü¥¿¥ó¤Î½ÐÎÏ
+ if ($schedule->is_target_all() == FALSE && $is_closed == FALSE) {
+ // Âоݤ¬¡Ö¼«Í³»²²Ã¡×¤Ç»²²ÃÅÐÏ¿ºÑ¤ß¤Î¾ì¹ç
+ if ($schedule_participant->is_participate()) {
+ ?>
+ <input type="button"
+ onclick="document.edit_form.participate.value='f';document.edit_form.submit();"
+ value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M013') ?>">
+ <?php
+ // Âоݤ¬¡Ö¼«Í³»²²Ã¡×¤Ç»²²Ã̤ÅÐÏ¿¤Î¾ì¹ç
+ } else {
+ ?>
+ <input type="button"
+ onclick="document.edit_form.participate.value='t';document.edit_form.submit();"
+ value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M012') ?>">
+ <?php
+ }
+ }
+ ?>
+ </th>
+ <?php // ÁªÂò¥ê¥¹¥È¤Î½ÐÎÏ
+ foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+ $disp_answer_no =& $schedule_participant->get_answer($date_id);
+ $answer_no = $disp_answer_no == '' ?
+ $schedule->get_answer_selection_default() : $disp_answer_no;
+ ?>
+ <td bgcolor="#ffffff" width="60" align="center">
+ <?php
+ // »²²Ã¾õÂ֤ξì¹ç¤ÏÁªÂò¥ê¥¹¥È¤ò½ÐÎÏ
+ if ($is_closed == FALSE &&
+ ($schedule_participant->is_participate() || $schedule->is_target_all())) {
+ ?>
+ <select name="answers[<?= $date_id ?>]">
+ <?= ACSTemplateLib::get_simple_select_options(
+ $this->_tpl_vars['html_options_answer_selection'], $answer_no) ?>
+ </select>
+ <?php
+ // »²²Ã¾õÂ֤Ǥʤ¤¾ì¹ç¤Ïɽ¼¨¤Î¤ß
+ } else {
+ ?>
+ <?= $answer_selection[$disp_answer_no]['answer_char'] ?>
+ <input type="hidden" name="answers[<?= $date_id ?>]"
+ value="<?= $answer_no ?>">
+ <?php
+ }
+ ?>
+ </td>
+ <?php
+ }
+ ?>
+ <td bgcolor="#ffffff" nowrap>
+ <?php
+ // »²²Ã¾õÂ֤ξì¹ç¤Ï¥³¥á¥ó¥ÈÆþÎÏ°è¤ò½ÐÎÏ
+ if ($is_closed == FALSE &&
+ ($schedule_participant->is_participate() || $schedule->is_target_all())) {
+ ?>
+ <textarea name="participant_comment" rows="3" cols="25"
+ ><?= htmlspecialchars($schedule_participant->participant_comment) ?></textarea>
+ <?php
+ // »²²Ã¾õÂ֤Ǥʤ¤¾ì¹ç¤Ïɽ¼¨¤Î¤ß
+ } else {
+ ?>
+ <?= nl2br(htmlspecialchars($schedule_participant->participant_comment)) ?>
+ <?php
+ }
+ ?>
+ </td>
+</tr>
+<tr>
+ <th bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M015') ?></th>
+ <td colspan="<?= $this->_tpl_vars['adjustment_dates_count']+1 ?>" bgcolor="#ffffff">
+ <?= $this->_tpl_vars['answer_detail_text'] ?>
+ </td>
+</tr>
+</table>
+</p>
+<?php
+
+// ½ªÎ»¾õÂ֤ξì¹ç
+if ($is_closed) {
+ ?>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M028') ?>"
+ onclick="location.href='<?= $this->_tpl_vars['url_schedule_list'] ?>'">
+ <?php
+} else {
+// »²²Ã¾õÂ֤ξì¹ç¡¢ÅÐÏ¿¥Ü¥¿¥ó¤Îɽ¼¨
+ if ($schedule_participant->is_participate() || $schedule->is_target_all()) {
+?>
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M016') ?>">
+ <?php
+ }
+ ?>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M017') ?>"
+ onclick="location.href='<?= $this->_tpl_vars['url_schedule_list'] ?>'">
+<?php
+}
+?>
+
+<?php // --- ¥¹¥±¥¸¥å¡¼¥ë·èÄê»þ¤ÎÈóɽ¼¨½ªÎ»(¤³¤³¤Þ¤Ç)
+}
+?>
+
+<?php // »²²Ã¼Ô¤Î°ìÍ÷ ?>
+<p>
+<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M026') ?><br>
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"></th>
+ <?php // ¥¿¥¤¥È¥ë¸õÊäÆü»þɽ¼¨
+ foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+ ?>
+ <th bgcolor="#DEEEBD" width="60"><?= htmlspecialchars($adjustment_date['date_string']) ?></th>
+ <?php
+ }
+ ?>
+ <th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M014') ?></th>
+</tr>
+
+<?php // ³Æ»²²Ã¼Ô¤Î½ÐÀʾõ¶·¤òɽ¼¨ ?>
+<?php
+foreach ($this->_tpl_vars['schedule_participant_list'] as
+ $list_user_community_id => $schedule_participant) {
+?>
+ <tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100" nowrap
+ ><?= $schedule_participant->user_community_name ?></th>
+ <?php
+ foreach($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+ $answer_no =& $schedule_participant->get_answer($date_id);
+ ?>
+ <td bgcolor="#ffffff" width="60" align="center">
+ <?= $answer_selection[$answer_no]['answer_char'] ?>
+ </td>
+ <?php
+ }
+ ?>
+ <td bgcolor="#ffffff" width="200" nowrap
+ ><?= nl2br(htmlspecialchars($schedule_participant->participant_comment)) ?></td>
+ </tr>
+<?php
+}
+?>
+</table>
+</form>
+</p>
+
+<?php // »²²Ã°ìÍ÷(½¸·×) ?>
+<p>
+<form name="decide_form" action="<?= $this->_tpl_vars['url_decide'] ?>" method="get">
+<input type="hidden" name="<?= MODULE_ACCESSOR ?>" value="<?= $this->_tpl_vars['current_module'] ?>">
+<input type="hidden" name="<?= ACTION_ACCESSOR ?>" value="<?= $this->_tpl_vars['current_action'] ?>">
+<input type="hidden" name="community_id" value="<?= $schedule->community_id ?>">
+<input type="hidden" name="schedule_id" value="<?= $schedule->schedule_id ?>">
+<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M027') ?><br>
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"></th>
+<?php // ¸õÊäÆü»þ¥¿¥¤¥È¥ëɽ¼¨
+foreach($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+?>
+ <th bgcolor="#DEEEBD" width="60"><?= $adjustment_date['date_string'] ?></th>
+<?php
+}
+?>
+ <th bgcolor="#DEEEBD" width="200"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M015') ?></th>
+</tr>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100" nowrap
+ ><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M018') ?></th>
+<?php // ¥¹¥³¥¢É½¼¨
+$total_score =& $this->_tpl_vars['total_score'];
+foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+?>
+ <td bgcolor="#ffffff" width="60" align="center"
+ ><?= $total_score[$date_id] ?></td>
+<?php
+}
+?>
+ <td bgcolor="#ffffff" rowspan="2" nowrap><?= $this->_tpl_vars['answer_detail_text'] ?></td>
+</tr>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100" nowrap
+ ><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M019') ?></th>
+<?php // µ¹æ½¸·×
+$total_count =& $this->_tpl_vars['total_count'];
+foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+?>
+ <td bgcolor="#ffffff" width="60" align="left">
+ <?php
+ foreach ($answer_selection as $answer_no => $selection) {
+ if ($selection['answer_char'] != '') {
+ $count = $total_count[$date_id][$answer_no];
+ $count = $count=='' ? 0 : $count;
+ ?><?= $selection['answer_char'] ?>:<?= $count ?><br><?php
+ }
+ }
+ ?>
+ </td>
+<?php
+}
+?>
+</tr>
+<?php
+//¥¹¥±¥¸¥å¡¼¥ë·èÄê¤Î¾ì¹ç
+if ($is_decision_screen) {
+?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M021') ?></th>
+ <?php
+ $checked = "CHECKED";
+ $mailentry_adjustment_id = $this->_tpl_vars['mailentry_adjustment_id'];
+ foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date){
+ if($mailentry_adjustment_id == ""){
+ $mailentry_adjustment_id = $date_id;
+ }
+ if($date_id == $this->_tpl_vars['mailentry_adjustment_id']){
+ $checked = "CHECKED";
+ }
+ ?>
+ <td bgcolor="#ffffff" width="60" align="center"
+ ><input type="radio" name="mailentry_adjustment_id" value="<?= $date_id ?>"
+ <?= $checked ?>></td>
+ <?php
+ $checked = "";
+ }
+ ?>
+ <td bgcolor="#ffffff" width="60"></td>
+</tr>
+<?php
+}
+?>
+</table>
+<?php
+//¥¹¥±¥¸¥å¡¼¥ë·èÄê¤Î¾ì¹ç
+if ($is_decision_screen) {
+?>
+<br>
+<input type="hidden" name="post_from_answer" value="t">
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M020') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "AnswerSchedule.tpl.php",'M017') ?>"
+ onclick="location.href='<?= $this->_tpl_vars['url_schedule_list'] ?>'">
+<?php
+}
+?>
+</form>
+</p>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: ota update: akitsu 2006/2/22 ver1.0 |
+// |BBS¡¡top²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+//
+// $Id: BBS.tpl.php,v 1.41 2007/03/30 05:27:18 w-ota Exp $
+?>
+
+<?php
+// ¿Æ¥³¥ß¥å¥Ë¥Æ¥£¤È¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤ò·ë¹ç¤·¤Æ¥Ç¥Õ¥©¥ë¥È¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤ÎÇÛÎó¤È¤¹¤ë
+function get_trusted_community_row_array($parent_community_row_array, $sub_community_row_array) {
+ $trusted_community_row_array = array();
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($parent_community_row_array as $parent_community_row) {
+ //$parent_community_row['community_position'] = '¿Æ¥³¥ß¥å¥Ë¥Æ¥£';
+ $parent_community_row['community_position'] = ACSMsg::get_msg("Community", "BBS.tpl.php",'M024');
+ array_push($trusted_community_row_array, $parent_community_row);
+ }
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($sub_community_row_array as $sub_community_row) {
+ //$sub_community_row['community_position'] = '¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£';
+ $sub_community_row['community_position'] = ACSMsg::get_msg("Community", "BBS.tpl.php",'M025');
+ array_push($trusted_community_row_array, $sub_community_row);
+ }
+
+ return $trusted_community_row_array;
+}
+
+if (!$this->_tpl_vars['is_community_member']) {
+ $disabled_str = ' style="background-color:#dddddd" disabled';
+}
+//³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+ $value = '';
+ if($this->_tpl_vars['move_id'] == 3){
+ $value['subject'] = $this->_tpl_vars['form']['subject'];
+ $value['body'] = $this->_tpl_vars['form']['body'];
+ if($this->_tpl_vars['form']['open_level_code'] == '06'){
+ $value['xdate'] = $this->_tpl_vars['form']['xdate'];
+ }
+ }
+//¥¨¥é¡¼½èÍý
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M002') ?>
+ <a href="<?= $this->_tpl_vars['bbs_rss_url'] ?>"><img src="<?php echo ACS_IMAGE_DIR . "rss.png" ?>" border=0></a>
+</div>
+<br>
+
+<?php
+// BBS¸¡º÷²èÌ̤Îɽ¼¨
+echo "<a class=\"ichiran3\" href=\"" .$this->_tpl_vars['search_bbs_url'] ."\">";
+echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M003');
+echo "</a>";
+if ($this->_tpl_vars['is_community_admin'] && $this->_tpl_vars['get_external_rss_url'] != '') {
+ echo " | ";
+ echo "<a class=\"ichiran3\" href=\"". htmlspecialchars($this->_tpl_vars['get_external_rss_url']) . "\"";
+ echo " title=\"[RSS]\n" . htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['external_rss_url']['contents_value']) . "\"";
+ echo ">";
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M033');
+ echo "</a>";
+}
+echo "<br><br>\n";
+?>
+
+<?php
+if ($this->_tpl_vars['is_community_member']) {
+?>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<input type="hidden" name="except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="subject" value="<?=$value['subject'] ?>" size="50" style="width:400px"<?= $disabled_str ?>></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff"><textarea name="body" cols="60" rows="10" style="width:480px"<?= $disabled_str ?>><?= htmlspecialchars($value['body']) ?></textarea></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><input type="file" name="new_file" size="50" <?=$value ?> ></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+
+<?php
+// ¸ø³«ÈÏ°Ï
+echo "<select name=\"open_level_code\" onchange=\"print_sub_menu(this)\"{$disabled_str}>\n";
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+unset($selected);
+foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+//¥¥ã¥ó¥»¥ë½èÍý¤Î¾ì¹ç
+ if($this->_tpl_vars['move_id'] == 3){
+ unset($selected);
+ $selected[$this->_tpl_vars['form']['open_level_code']] = ' selected';
+ }
+
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"".$open_level_master_row['open_level_code']. "\"{$selected[$open_level_master_row['open_level_code']]}>";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¡¡Éôʬ¤Î½ñ¼°ÀßÄê¡¡ÁªÂò¤µ¤ì¤¿¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤Ë¤è¤êÊѲ½¤¹¤ë
+echo "<div id=\"trusted_community_div\"></div>";
+?>
+
+</td>
+</tr>
+<?php
+if ($this->_tpl_vars['is_ml_active'] || $this->_tpl_vars['is_community_admin']) {
+ echo '<tr>';
+ echo '<td id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "BBS.tpl.php",'M028').'</td>';
+ echo '<td bgcolor="#ffffff">';
+
+ if ($this->_tpl_vars['is_ml_active']) {
+ echo '<input type="checkbox" name="is_ml_send" value="t"' . ($this->_tpl_vars['form']['is_ml_send']=='t' ? ' CHECKED' : '') . '>';
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M029');
+ } else {
+ echo '<span class="notice">' . ACSMsg::get_msg("Community", "BBS.tpl.php",'M030') . '</span';
+ }
+}
+?>
+</td>
+</tr>
+</table>
+<br>
+<?php
+// submit
+if ($this->_tpl_vars['is_community_member']) {
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg("Community", "BBS.tpl.php",'M008')."\">\n";
+} else {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBS.tpl.php",'M008')."\" disabled>\n";
+}
+?>
+</form>
+<br>
+
+
+<script language="JavaScript">
+<!--
+window.onload = function () {
+ // ¸ø³«ÈϰϤΥǥե©¥ë¥ÈÁªÂò
+ select_obj = document.forms["bbs_form"].elements["open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text
+ if (selected_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D04') ?>' || selected_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D06') ?>') {
+ print_sub_menu(select_obj);
+ }
+}
+
+<?php
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Ç¥Õ¥©¥ë¥È
+$trusted_community_row_array = get_trusted_community_row_array($this->_tpl_vars['parent_community_row_array'], $this->_tpl_vars['sub_community_row_array']);
+?>
+trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($trusted_community_row_array as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"".$trusted_community_row['community_id']."\", ";
+ $str .= "\"community_name\" : \"".$trusted_community_row['community_name']."\", ";
+ $str .= "\"community_position\" : \"".$trusted_community_row['community_position']."\", ";
+ $str .= "\"top_page_url\" : \"".$trusted_community_row['top_page_url']."\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+post_date = new Array(2);
+<?php
+//¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ÁªÂò»þ
+if($value['xdate']){
+ echo "post_date[0]=\"yes\";";
+ $str_post = '';
+ $str_post .= "post_date[1]=\"".$value['xdate']."\"";
+ echo $str_post .";";
+}
+?>
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj) {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text
+ div_obj = document.getElementById("trusted_community_div");
+
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D04') ?>") {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = 'trusted_community_td';
+
+ // text
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ input_obj.defaultChecked = false;
+ new_cell.appendChild(input_obj);
+
+ // <a>
+ a_obj = document.createElement("a");
+ a_obj.href = trusted_community_row_array[i]["top_page_url"];
+ a_obj.target = "_blank";
+ a_obj.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(a_obj);
+
+ // text
+ if (trusted_community_row_array[i]["community_position"] != '') {
+ new_cell.appendChild(document.createTextNode(" ("));
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_position"]));
+ new_cell.appendChild(document.createTextNode(")"));
+ }
+ // <br>
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+
+ // button
+ input_obj = document.createElement("input");
+ input_obj.type = "button";
+ input_obj.value = "<?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M026') ?>";
+ input_obj.onclick = function () {
+ window.open("<?= $this->_tpl_vars['select_trusted_community_url'] ?>", "SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
+ }
+ new_cell.appendChild(input_obj);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M009') ?>"));
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+
+ /* ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤Î¾ì¹ç */
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D06') ?>") {
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¡¡Éôʬ¤Î½ñ¼°ÀßÄê¡¡ÁªÂò¤µ¤ì¤¿¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤Ë¤è¤êÊѲ½¤¹¤ë
+ div_obj = document.getElementById("trusted_community_div");
+
+ //¸½ºß¤Î½ñ¼°¤ò¥¯¥ê¥¢¤¹¤ë
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+ //¿·¤·¤¯½ñ¼°¤Î¸µ¤òÀ®·Á¤¹¤ë
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr> 1¹ÔÌÜ ·ÇºÜ½ªÎ»Æü¤ÎÆþÎÏ
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = 'trusted_community_td';
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "10pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M010') ?>"));
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // <input>txtField
+ input_obj = document.createElement("input");
+ input_obj.type = "text";
+ input_obj.name = "xdate";
+ input_obj.id = "expire_date";
+ input_obj.value="";
+ if(post_date[0] == "yes"){
+ input_obj.value = post_date[1];
+ }
+ new_cell.appendChild(input_obj);
+
+ // </td>
+ // </tr>
+
+ // <tr> 2¹ÔÌÜ notes
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M011') ?>"));
+
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+ // </table>
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¡¡Éôʬ¤Î¿·¤·¤¤½ñ¼°ÀßÄê
+ div_obj.appendChild(table_obj);
+
+ }
+}
+// -->
+</script>
+
+<?php
+}
+?>
+
+
+<!--¡¡É½¼¨ -->
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="660">
+<th id="myttl" bgcolor="#DEEEBD"><span class="nowrap"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M012') ?></span></th>
+<td bgcolor="#ffffff">
+<?php
+// ¥¹¥ì¥Ã¥É°ìÍ÷
+$str = '';
+foreach ($this->_tpl_vars['bbs_row_array'] as $index => $bbs_row) {
+ if ($str != '') {
+ $str .= " ";
+ }
+ $str .= "<a href=\"$bbs_row[bbs_res_url]\">";
+ $str .= htmlspecialchars(ACSTemplateLib::trim_long_str($bbs_row['subject']));
+ $str .= "</a>";
+ $str .= "($bbs_row[bbs_res_row_array_num])";
+}
+echo $str;
+?>
+<div align="right">[<a href="<?= $this->_tpl_vars['bbs_thread_list_url'] ?>"><?= ACSMsg::get_msg("Community", "BBS.tpl.php",'M013') ?></a>]</div>
+</td></tr></table>
+<br>
+
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+<br>
+
+
+<?php
+// table
+foreach ($this->_tpl_vars['bbs_row_array'] as $index => $bbs_row) {
+ if($bbs_row['bbs_delete_flag']=='f'){
+ // ¿Æµ»ö
+ //echo "<table border=\"1\" class=\"bbs_table\">\n";
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+
+ // ¥Ø¥Ã¥ÀÉô
+ echo "<tr><td colspan=\"2\" bgcolor=\"#DEEEBD\" class=\"head\" align=\"right\">";
+ if (is_array($bbs_row['external_rss_row'])) {
+ // µ»ö¤Ø¤Î¥ê¥ó¥¯
+ if ($bbs_row['external_rss_row']['rss_item_link'] != '') {
+ echo "<a href=\"" . htmlspecialchars($bbs_row['external_rss_row']['rss_item_link']) . "\" target=\"_blank\">";
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M031');
+ echo "</a>";
+ }
+ // (YYYY/MM/DD H:MM RSSÇÛ¿®)
+ if ($bbs_row['external_rss_row']['rss_item_date'] != '') {
+ echo " (";
+ echo $bbs_row['external_rss_row']['rss_item_date'];
+ echo " " . ACSMsg::get_msg("Community", "BBS.tpl.php",'M032') . ")";
+ }
+ } else {
+ echo " ";
+ }
+ echo "</td></tr>\n";
+
+ // Åê¹Æ¼Ô¾ðÊó
+ echo "<tr>";
+ echo "<td align=\"center\" width=\"80px\" bgcolor=\"#ffffff\">";
+ if($bbs_row['bbs_delete_flag']=='f'){
+ echo "<a href=\"".$bbs_row['top_page_url']."\"><img src=\"".$bbs_row['image_url']."\" border=\"0\"></a><br>";
+ echo "<a href=\"".$bbs_row['top_page_url']."\">" . htmlspecialchars($bbs_row['community_name']) . "</a>";
+ }
+ echo "</td>";
+
+ echo "<td class=\"body\" valign=\"top\" bgcolor=\"#ffffff\">";
+
+
+ echo "<table class=\"layout_table\" width=\"480px\">";
+ echo "<tr>";
+
+ echo "<td>";
+ if($bbs_row['bbs_delete_flag']=='f'){
+ echo "<b>" . htmlspecialchars($bbs_row['subject']) . "</b>";
+ }
+ echo " ";
+ //echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M014')." : " . ACSLib::convert_pg_date_to_str($bbs_row['post_date']) . "</td>";
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M014')." : " . $bbs_row['post_date'] . "</td>";
+ echo "<td align=\"right\" valign=\"top\">";
+ echo "<form>";
+ //ÊÖ¿®¥Ü¥¿¥ó¤Îɽ¼¨¡¡Community¤Î¥á¥ó¥Ð¤Ç¤¢¤ë¤³¤È¡¢ºï½ü¥Õ¥é¥°¤¬¤Ê¤¤¤³¤È
+ if ($this->_tpl_vars['is_community_member'] && $bbs_row['bbs_delete_flag']=='f') {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBS.tpl.php",'M015')."\" onclick=\"location.href='$bbs_row[bbs_res_url]'\">";
+ echo " ";
+ } else {
+ //echo "<input type=\"button\" value=\"ÊÖ¿®\" disabled>";
+ }
+ // ÊÔ½¸¥Ü¥¿¥ó¤Îɽ¼¨
+ if ($bbs_row['edit_bbs_url']) {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBS.tpl.php",'M016')."\" onclick=\"location.href='$bbs_row[edit_bbs_url]'\">";
+ echo " ";
+ }
+ //ºï½ü¥Ü¥¿¥ó¤Îɽ¼¨¡¡¡Ü¼«Ê¬¤¬Åê¹Æ¤·¤¿¤â¤Î¡¡Ëô¤Ï¡¡¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô
+ if ($this->_tpl_vars['is_community_member'] && $bbs_row['bbs_delete_flag']=='f' && $bbs_row['bbs_set_delete_flag'] == true ) {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBS.tpl.php",'M017')."\" onclick=\"location.href='$bbs_row[bbs_delete_url]'\">";
+ } else {
+ //echo "<input type=\"button\" value=\"ºï½ü\" disabled>";
+ }
+
+ echo "</form>";
+ echo "</td>";
+ echo "</tr>\n";
+
+
+ echo "<tr><td colspan=\"2\">";
+ // ¸ø³«ÈÏ°Ï
+ if($bbs_row['bbs_delete_flag']=='f'){
+ echo "<table border=\"0\" bgcolor=\"#dddddd\"><tr><td>";
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M007')." : " . htmlspecialchars($bbs_row['open_level_name']);
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤Î¾ì¹ç¤Î¤ß·ÇºÜ½ªÎ»Æü¤òɽ¼¨¤µ¤»¤ë 2/21add @akitsu
+ if($bbs_row['expire_date']!=''){
+ $out_expire_date = "[ ".ACSMsg::get_msg("Community", "BBS.tpl.php",'M019').":" . $bbs_row['expire_date'] . " ]";
+ echo $out_expire_date;
+ }
+ echo "<br>";
+ if (count($bbs_row['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($bbs_row['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ", ";
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ if ($trusted_community_str != '') {
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M020')." : " . htmlspecialchars($trusted_community_str) . "<br>";;
+ }
+ }
+ echo "</td></tr></table>";
+ }
+ echo "</td></tr>\n";
+
+ //¼Ì¿¿
+ if ($bbs_row['file_url']) {
+ echo "<tr>";
+ echo "<td valign=\"top\" colspan=\"2\">";
+ echo "<a href=\"javascript:w=window.open('" . $bbs_row['file_url_alink'] . "','popUp','scrollbars=yes,resizable=yes');w.focus();\">";
+ echo "<img src=\"". $bbs_row['file_url'] . "\" style=\"margin-top:10px;margin-bottom:10px\" BORDER=0></a>";
+ echo "</td>";
+ echo "</tr>\n";
+ }
+
+ echo "<tr>";
+ echo "<td valign=\"top\" colspan=\"2\">";
+ if($bbs_row['bbs_delete_flag']=='f'){
+ echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($bbs_row['body']))));
+ }else{
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M021');
+ }
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "</table>";
+
+
+ echo "</td>";
+ echo "</tr>\n";
+
+
+ // ɽ¼¨·ï¿ô¤¬¾Êά¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+ if ($bbs_row['omission_num']) {
+ echo "<tr><td colspan=\"2\" align=\"right\" bgcolor=\"#ffffff\">";
+ //echo "<span class=\"note\">(1 - $bbs_row[omission_num] ·ïÌܤϾÊά¤µ¤ì¤Þ¤·¤¿)</span>";
+ echo "<span class=\"note\">".
+ ACSMsg::get_tag_replace(ACSMsg::get_msg("Community", "BBS.tpl.php",'TPL'),
+ array("{OMISSION_NUM}" => $bbs_row['omission_num'])) . "</span>";
+ echo " ";
+ //echo "<a href=\"$bbs_row[bbs_res_url]\">Á´¤ÆÆɤà($bbs_row[bbs_res_row_array_num])</a>";
+ echo "<a href=\"".$bbs_row['bbs_res_url']."\">".
+ ACSMsg::get_msg("Community", "BBS.tpl.php",'M027')."(".$bbs_row['bbs_res_row_array_num'].")</a>";
+ echo "</td></tr>\n";
+ }
+
+
+ // ÊÖ¿®µ»ö
+ if($bbs_row['bbs_delete_flag']=='f'){
+ foreach ($bbs_row['bbs_res_row_array'] as $bbs_res_row) { //¿Æ¤¬ºï½ü¤µ¤ì¤Æ¤¤¤ë»þ¡¡¤³¤³¤«¤é̵¤·
+ echo "<tr>";
+ echo "<td align=\"center\" width=\"80px\" bgcolor=\"#ffffff\">";
+ if($bbs_res_row['bbs_res_delete_flag']=='f'){
+ echo "<a href=\"".$bbs_res_row['top_page_url']."\"><img src=\"" .
+ $bbs_res_row['image_url'] . "\" border=\"0\"></a><br>";
+ echo "<a href=\"".$bbs_res_row['top_page_url']."\">" . htmlspecialchars($bbs_res_row['community_name']) . "</a>";
+ }
+ echo "</td>";
+
+ echo "<td class=\"body\" valign=\"top\" bgcolor=\"#ffffff\">";
+
+ echo "<table class=\"layout_table\" width=\"450px\" border=\"0\">";
+ echo "<tr>";
+ echo "<td><b>";
+ if($bbs_res_row['bbs_res_delete_flag']=='f'){
+ echo htmlspecialchars($bbs_res_row['subject']) . "</b>";
+ }
+ echo " ";
+ //echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M014')." : " . ACSLib::convert_pg_date_to_str($bbs_res_row['post_date']) . "</td>";
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M014')." : " . $bbs_res_row['post_date'] . "</td>";
+
+ echo "<td></td>";
+ echo "</tr>";
+
+ echo "<tr>";
+ echo "<td valign=\"top\">";
+ if($bbs_res_row['bbs_res_delete_flag']=='f'){
+ echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($bbs_res_row['body']))));
+ }else{
+ echo ACSMsg::get_msg("Community", "BBS.tpl.php",'M021');
+ }
+ echo "</td>";
+ echo "</tr>";
+
+ echo "</table>";
+
+ echo "</td>";
+ echo "</tr>\n";
+ }
+
+ // ³¤¤¬¤¢¤ë¾ì¹ç
+ if ($bbs_row['omission_num']) {
+ echo "<tr><td colspan=\"2\" align=\"right\">";
+ //echo "<a href=\"$bbs_row[bbs_res_url]\">Á´¤ÆÆɤà($bbs_row[bbs_res_row_array_num])</a>";
+ echo "<a href=\"".$bbs_row['bbs_res_url']."\">".ACSMsg::get_msg("Community", "BBS.tpl.php",'M027')."(".$bbs_row['bbs_res_row_array_num'].")</a>";
+ echo "</td></tr>\n";
+ }
+
+ echo "</table>\n";
+ echo "<br>\n";
+ } //¿Æ¤¬ºï½ü¤µ¤ì¤Æ¤¤¤ë»þ¡¡¤³¤³¤Þ¤Ç̵¤·
+ }
+ echo "<br>\n";
+}
+?>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/02/23 ver1.0 |
+// | Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: BBSPre.tpl.php,v 1.16 2007/03/30 05:27:18 w-ota Exp $
+?>
+<!-- HTML -->
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M002') ?>
+</div>
+
+<?php
+//¥¨¥é¡¼½èÍý
+if($this->_tpl_vars['error_message']){
+ ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+} else {
+ echo '<div class="confirm_msg">';
+ echo ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M003').'<br>';
+ echo ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M004');
+ echo '</div>';
+}
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<input type="hidden" name="except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<!-- <?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M005') ?> -->
+<table class="table.confirm_table">
+ <colgroup class="required">
+ <colgroup class="value">
+ <colgroup class="partition">
+ <colgroup class="required">
+ <colgroup class="value">
+<tr>
+ <td><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M014') ?></td>
+ <td><?= htmlspecialchars($this->_tpl_vars['form']['subject']) ?></td>
+ <td></td>
+ <td><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M015') ?></td>
+ <td>
+ <?php
+ if($this->_tpl_vars['form']['file_name'] != ''){
+ echo $this->_tpl_vars['form']['file_name'];
+ }
+ ?>
+ </td>
+</tr>
+
+<tr>
+ <td height=150px><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M016') ?></td>
+ <td valign=top>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['body']))) ?>
+ </td>
+ <td></td>
+ <td><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M007') ?></td>
+ <td>
+ <?php
+ if($this->_tpl_vars['form']['file_name'] != ''){
+ echo "<img src=";
+ echo $this->_tpl_vars['form']['file_url_alink'];
+ echo " border=0>";
+ }
+ ?>
+ </td>
+</tr>
+
+<tr>
+ <td><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M008') ?></td>
+ <td colspan=4>
+ <?php
+ // ¸ø³«ÈÏ°Ï
+ echo ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M008')." : " . htmlspecialchars($this->_tpl_vars['form']['open_level_name']);
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤Î¾ì¹ç¤Î¤ß·ÇºÜ½ªÎ»Æü¤òɽ¼¨¤µ¤»¤ë 2/21add @akitsu
+ if($this->_tpl_vars['form']['xdate']!=''){
+ $out_expire_date = "[ ".ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M010').":" . $this->_tpl_vars['form']['xdate'] . " ]";
+ echo $out_expire_date;
+ }
+ echo "<br>";
+ if (count($this->_tpl_vars['form']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['form']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ", ";
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ if ($trusted_community_str != '') {
+ echo ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M011')." : " . htmlspecialchars($trusted_community_str) . "<br>";;
+ }
+ }
+ ?>
+ </td>
+</tr>
+
+<?php
+if ($this->_tpl_vars['is_ml_active']) {
+?>
+<tr>
+ <td><?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M017') ?></td>
+ </td>
+ <td colspan=4>
+ <?php
+ if ($this->_tpl_vars['is_ml_send']=='t') {
+ ?>
+ <?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M018') ?>
+ <?php
+ } else {
+ ?>
+ <?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M019') ?>
+ <?php
+ }
+ ?>
+ </td>
+</tr>
+<?php
+}
+?>
+
+</table>
+
+<br><br>
+<?php
+ if (!$this->_tpl_vars['error_message']) {
+ echo '<input type="submit" value="OK"> ';
+ }
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M012') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+ <?= ACSMsg::get_msg("Community", "BBSPre.tpl.php",'M013') ?>
+</form>
+<br>
--- /dev/null
+<?php
+// BBS ÊÖ¿®Åê¹Æ²èÌÌ
+// $Id: BBSRes.tpl.php,v 1.24 2007/03/30 05:27:18 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M001') ?></a> :: <a href="<?= $this->_tpl_vars['bbs_top_page_url'] ?>"><?= ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M002') ?></a>
+<?php
+if ($this->_tpl_vars['is_community_member']) {
+ echo ":: ".ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M003');
+}
+?>
+</div>
+<br><br>
+
+<?php
+if ($this->_tpl_vars['is_community_member']) {
+ echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M004')."<br><br>\n";
+}
+?>
+
+<?php
+if ($this->_tpl_vars['is_community_member']) {
+//³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+ $value = '';
+ if($this->_tpl_vars['move_id'] == 3){
+ $value['subject'] = $this->_tpl_vars['form']['subject'];
+ $value['body'] = $this->_tpl_vars['form']['body'];
+ }else{
+ $value['subject']="Re: ". htmlspecialchars($this->_tpl_vars['bbs_row']['subject']);
+ }
+}
+?>
+
+
+<?php
+// ¿Æµ»ö
+echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+
+// ¥Ø¥Ã¥ÀÉô
+echo "<tr><td colspan=\"2\" bgcolor=\"#DEEEBD\" class=\"head\" align=\"right\">";
+if (is_array($this->_tpl_vars['bbs_row']['external_rss_row'])) {
+ // µ»ö¤Ø¤Î¥ê¥ó¥¯
+ if ($this->_tpl_vars['bbs_row']['external_rss_row']['rss_item_link'] != '') {
+ echo "<a href=\"" . htmlspecialchars($this->_tpl_vars['bbs_row']['external_rss_row']['rss_item_link']) . "\" target=\"_blank\">";
+ echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M017');
+ echo "</a>";
+ }
+ // (YYYY/MM/DD H:MM RSSÇÛ¿®)
+ if ($this->_tpl_vars['bbs_row']['external_rss_row']['rss_item_date'] != '') {
+ echo " (";
+ echo $this->_tpl_vars['bbs_row']['external_rss_row']['rss_item_date'];
+ echo " " . ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M018') . ")";
+ }
+} else {
+ echo " ";
+}
+echo "</td></tr>\n";
+
+// Åê¹Æ¼Ô¾ðÊó
+echo "<tr>";
+echo "<td align=\"center\" width=\"80px\" bgcolor=\"#ffffff\">";
+echo "<a href=\"" . $this->_tpl_vars['bbs_row']['top_page_url'] . "\">" .
+ "<img src=\"" . $this->_tpl_vars['bbs_row']['image_url'] . "\" border=\"0\"></a><br>";
+echo "<a href=\"" . $this->_tpl_vars['bbs_row']['top_page_url'] . "\">" . htmlspecialchars($this->_tpl_vars['bbs_row']['community_name']) . "</a><br><br>";
+echo "</td>";
+
+echo "<td class=\"body\" valign=\"top\" bgcolor=\"#ffffff\">";
+
+
+echo "<table class=\"layout_table\" width=\"450px\" border=\"0\">";
+echo "<tr>";
+
+echo "<td>";
+echo "<b>" . htmlspecialchars($this->_tpl_vars['bbs_row']['subject']) . "</b>";
+echo " ";
+//echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M006')." : " . ACSLib::convert_pg_date_to_str($this->_tpl_vars['bbs_row']['post_date']) . "</td>";
+echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M006')." : " . $this->_tpl_vars['bbs_row']['post_date'] . "</td>";
+echo "<td align=\"right\" valign=\"top\">";
+echo "</td>";
+echo "</tr>";
+
+
+echo "<tr><td>";
+// ¸ø³«ÈÏ°Ï
+echo "<table border=\"0\" bgcolor=\"#dddddd\"><tr><td>";
+echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M007')." : " . htmlspecialchars($this->_tpl_vars['bbs_row']['open_level_name']);
+// ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹¤Î¾ì¹ç¤Î¤ß·ÇºÜ½ªÎ»Æü¤òɽ¼¨¤µ¤»¤ë 2/21add @akitsu
+if($this->_tpl_vars['bbs_row']['expire_date']!=''){
+ $out_expire_date = "[ "."·ÇºÜ½ªÎ»Æü:" . $this->_tpl_vars['bbs_row']['expire_date'] . " ]";
+ echo $out_expire_date;
+}
+echo "<br>";
+if (count($this->_tpl_vars['bbs_row']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['bbs_row']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ", ";
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ if ($trusted_community_str != '') {
+ echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M009')." : " . htmlspecialchars($trusted_community_str) . "<br>";;
+ }
+}
+echo "</td></tr></table>";
+echo "</td></tr>";
+
+//¼Ì¿¿ 2/20add
+if ($this->_tpl_vars['bbs_row']['file_url']) {
+ echo "<tr>";
+ echo "<td valign=\"top\" colspan=\"2\">";
+ echo "<a href=\"javascript:w=window.open('" . $this->_tpl_vars['bbs_row']['file_url_alink'] . "','popUp','scrollbars=yes,resizable=yes');w.focus();\">";
+ echo "<img src=\"". $this->_tpl_vars['bbs_row']['file_url'] . "\" style=\"margin-top:10px;margin-bottom:10px\" border=0></a>";
+ echo "</td>";
+ echo "</tr>\n";
+}
+
+echo "<tr>";
+echo "<td valign=\"top\">";
+echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['bbs_row']['body']))));
+echo "</td>";
+echo "</tr>";
+
+echo "</table>";
+
+
+echo "</td>";
+echo "</tr>\n";
+
+
+// ÊÖ¿®µ»ö
+foreach ($this->_tpl_vars['bbs_row']['bbs_res_row_array'] as $bbs_res_row) {
+ echo "<tr>";
+ echo "<td align=\"center\" width=\"80px\" bgcolor=\"#ffffff\">";
+ if ( $bbs_res_row['bbs_res_delete_flag'] == 'f') {
+ echo "<a href=\"".$bbs_res_row['top_page_url']."\"><img src=\"".$bbs_res_row['image_url']."\" border=\"0\"></a><br>";
+ echo "<a href=\"".$bbs_res_row['top_page_url']."\">" . htmlspecialchars($bbs_res_row['community_name']) . "</a>";
+ }
+ echo "</td>";
+
+ echo "<td class=\"body\" valign=\"top\" bgcolor=\"#ffffff\">";
+
+ echo "<table class=\"layout_table\" width=\"450px\" border=\"0\">";
+ echo "<tr>";
+ if ( $bbs_res_row['bbs_res_delete_flag'] == 'f') {
+ echo "<td><b>" . htmlspecialchars($bbs_res_row['subject']) . "</b>";
+ }
+ echo " ";
+ //echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M006')." : " . ACSLib::convert_pg_date_to_str($bbs_res_row['post_date']) . "</td>";
+ echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M006')." : " . $bbs_res_row['post_date'] . "</td>";
+
+ echo "<td class=\"nowrap\">";
+ echo "<form>";
+ if ($bbs_res_row['edit_bbs_res_url']) {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M011')."\" onclick=\"location.href='".$bbs_res_row['edit_bbs_res_url']."'\">";
+ }
+ //ºï½ü¥Ü¥¿¥ó¤Îɽ¼¨¡¡ºï½ü¥Õ¥é¥°¤¬¤Ê¤¤¤³¤È¡¡¡Ü¼«Ê¬¤¬Åê¹Æ¤·¤¿¤â¤Î¡¡Ëô¤Ï¡¡¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô
+ if ( $bbs_res_row['bbs_res_delete_flag'] == 'f' && $bbs_res_row['bbs_set_delete_flag'] == 1) {
+ echo " <input type=\"button\" value=\"".ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M012')."\" onclick=\"location.href='".$bbs_res_row['delete_bbs_res_url']."'\">";
+ }
+ echo "</form>";
+ echo "</td>";
+ echo "</tr>";
+
+ echo "<tr>";
+ echo "<td valign=\"top\">";
+ if ( $bbs_res_row['bbs_res_delete_flag'] == 'f') {
+ echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($bbs_res_row['body']))));
+ }else{
+ echo ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M013');
+ }
+ echo "</td>";
+ echo "</tr>";
+
+ echo "</table>";
+
+ echo "</td>";
+ echo "</tr>\n";
+}
+
+echo "</table>\n";
+echo "<br>\n";
+echo "<br>\n";
+?>
+
+
+<?php
+if ($this->_tpl_vars['is_community_member']) {
+?>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M014') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="subject" value="<?=$value['subject'] ?>" size="50" style="width:400px"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M015') ?></td>
+<td bgcolor="#ffffff"><textarea name="body" cols="60" rows="10" style="width:480px"><?= htmlspecialchars($value['body']) ?></textarea></td>
+</tr>
+<?php
+if (ACSLib::get_boolean($this->_tpl_vars['bbs_row']['ml_send_flag'])) {
+ echo '<tr>';
+ echo '<td id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M019').'</td>';
+ echo '<td bgcolor="#ffffff">'.ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M020').'</td>';
+ echo '</tr>';
+}
+?>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "BBSRes.tpl.php",'M005') ?>">
+</form>
+<br>
+<?php
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/2/22 ver1.0 |
+// |ÅÐÏ¿ÆâÍƤò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+// ÊÖ¿®Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+// $Id: BBSResPre.tpl.php,v 1.6 2007/03/30 05:27:18 w-ota Exp $
+?>
+<?php
+if (!$this->_tpl_vars['is_community_member']) {
+ $disabled_str = ' style="background-color:#dddddd" disabled';
+}
+?>
+<!-- HTML -->
+<div class="sub_title">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M009') ?></a> :: <a href="<?= $this->_tpl_vars['back_bbs_url'] ?>"><?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M002') ?>
+</div>
+
+<?php
+ if ($this->_tpl_vars['error_message']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸É½¼¨
+ ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+ } else {
+ echo '<div class="confirm_msg">';
+ echo ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M003').'<br>';
+ echo ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M004');
+ echo '</div>';
+ }
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<input type="hidden" name="except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<!-- <?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M005') ?> -->
+<table class="table.confirm_table">
+ <colgroup class="required">
+ <colgroup class="value">
+<tr>
+ <td><?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M006') ?></td>
+ <td><?= htmlspecialchars($this->_tpl_vars['form']['subject']) ?></td>
+</tr>
+
+<tr>
+ <td height=150px><?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M007') ?></td>
+ <td valign=top>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['body']))) ?>
+ </td>
+</tr>
+
+</table>
+
+<br><br>
+<?php
+ if (!$this->_tpl_vars['error_message']) {
+ echo '<input type="submit" value="OK"> ';
+ }
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "BBSResPre.tpl.php",'M008') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
+<br>
--- /dev/null
+<?php
+// $Id: BBSThreadList.tpl.php,v 1.4 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "BBSThreadList.tpl.php",'M001') ?></a> :: <a href="<?= $this->_tpl_vars['bbs_top_page_url'] ?>"><?= ACSMsg::get_msg("Community", "BBSThreadList.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "BBSThreadList.tpl.php",'M003') ?>
+</div>
+<br><br>
+
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+// ¥¹¥ì¥Ã¥É°ìÍ÷
+foreach ($this->_tpl_vars['bbs_row_array'] as $index => $bbs_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">" . $bbs_row['post_date'] . "</td>";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"" .$bbs_row['bbs_res_url']. "\">" . htmlspecialchars($bbs_row['subject']) . "</a></td>";
+ echo "</tr>\n";
+}
+?>
+</table>
--- /dev/null
+<?php
+// $Id: CommunityLink.tpl.php,v 1.3 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M002') ?>
+</div>
+
+
+<br><br>
+
+
+<a href="<?= $this->_tpl_vars['add_community_link_url'] ?>"><?= ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M003') ?></a><br>
+<br>
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+if ($this->_tpl_vars['parent_community_row_array']) {
+ echo "<tr>\n";
+ echo "<td bgcolor=\"#ffffff\">".ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M004')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ foreach ($this->_tpl_vars['parent_community_row_array'] as $parent_community_row) {
+ echo "<a href=\"$parent_community_row[top_page_url]\">" . htmlspecialchars($parent_community_row['community_name']) . "</a>";
+ echo " [<a href=\"$parent_community_row[delete_community_link_url]\">".ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M005')."</a>]";
+ echo "<br>\n";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+
+if ($this->_tpl_vars['sub_community_row_array']) {
+ echo "<tr>\n";
+ echo "<td bgcolor=\"#ffffff\">".ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M006')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ foreach ($this->_tpl_vars['sub_community_row_array'] as $sub_community_row) {
+ echo "<a href=\"$sub_community_row[top_page_url]\">" . htmlspecialchars($sub_community_row['community_name']) . "</a>";
+ echo " [<a href=\"$sub_community_row[delete_community_link_url]\">".ACSMsg::get_msg("Community", "CommunityLink.tpl.php",'M005')."</a>]";
+ echo "<br>\n";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
--- /dev/null
+<?
+// $Id: CommunityMemberList.tpl.php,v 1.7 2007/03/14 04:28:17 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "CommunityMemberList.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "CommunityMemberList.tpl.php",'M002') ?>
+(<?= $this->_tpl_vars['community_member_user_info_row_array_num'] ?>¿Í)
+</div><br><br>
+
+<?php
+if ($this->_tpl_vars['friends_group_list_url'] != '') {
+ echo "<a href=\"$this->_tpl_vars[friends_group_list_url]\">".ACSMsg::get_msg("Community", "CommunityMemberList.tpl.php",'M003')."</a><br><br>\n";
+}
+?>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr><td bgcolor="#ffffff">
+<table>
+<?php
+if (count($this->_tpl_vars['community_member_user_info_row_array'])) {
+ $count = 0;
+ foreach ($this->_tpl_vars['community_member_user_info_row_array'] as $user_info_row) {
+ if ($count % 4 == 0) {
+ echo "<tr>";
+ }
+ echo "<td align=\"center\">";
+ echo "<a href=\"$user_info_row[top_page_url]\"><img src=\"$user_info_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$user_info_row[top_page_url]\">" . htmlspecialchars($user_info_row['community_name']) . "</a>";
+ echo "($user_info_row[friends_row_array_num])<br>";
+ echo "</td>";
+ if ($count % 4 == 3) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td>".ACSMsg::get_msg("Community", "CommunityMemberList.tpl.php",'M004')."</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+</tr></td>
+</table>
+<br>
--- /dev/null
+<?php
+// $Id: CreateCommunity.tpl.php,v 1.6 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M001') ?></div><br>
+<br>
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="create_community_form">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M002') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="community_name" value="<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?>"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M003') ?></td>
+<td bgcolor="#ffffff"><textarea name="community_profile" cols="50" rows="4"><?= htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['community_profile']['contents_value']) ?></textarea></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M004') ?></td>
+<td bgcolor="#ffffff">
+<select name="category_code">
+<?php
+foreach ($this->_tpl_vars['category_master_row_array'] as $category_master_row) {
+ if($category_master_row[category_code] == $this->_tpl_vars['community_row']['category_code']){
+ echo "<option value=\"$category_master_row[category_code]\" selected>";
+ }else{
+ echo "<option value=\"$category_master_row[category_code]\">";
+ }
+ echo htmlspecialchars($category_master_row['category_name']);
+}
+?>
+</select>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M005') ?></td>
+<td bgcolor="#ffffff">
+<?php
+if($this->_tpl_vars['community_row']['admission_flag'] == 't') {
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"0\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 0)\">".ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M006')."<br>";
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"1\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 1)\" checked>".ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M007')."<br>";
+}else{
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"0\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 0)\" checked>".ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M006')."<br>";
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"1\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 1)\">".ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M007')."<br>";
+}
+ echo "<div id=\"join_trusted_community_div\"></div>";
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M008') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ·Ç¼¨ÈÄ
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['bbs_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+echo "<select name=\"bbs_open_level_code\" onchange=\"print_sub_menu(this, bbs_trusted_community_row_array, 'bbs_')\">\n";
+foreach ($this->_tpl_vars['bbs_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] ==
+ $this->_tpl_vars['community_row']['contents_row_array']['bbs']['open_level_code']){
+ echo "<option value=\"$open_level_master_row[open_level_code]\" selected>";
+ }else{
+ echo "<option value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+echo "<div id=\"bbs_trusted_community_div\"></div>";
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M014') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['community_folder_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+echo "<select name=\"community_folder_open_level_code\" onchange=\"print_sub_menu(this, community_folder_trusted_community_row_array, 'community_folder_')\">\n";
+foreach ($this->_tpl_vars['community_folder_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['community_folder']['open_level_code']){
+ echo "<option value=\"$open_level_master_row[open_level_code]\" selected>";
+ }else{
+ echo "<option value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+echo "<div id=\"community_folder_trusted_community_div\"></div>";
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M009') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂÎ
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['self_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' checked';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+$is_set_default = false;
+if ($this->_tpl_vars['community_row']['contents_row_array']['self']['open_level_code']=='') {
+ $is_set_default = true;
+}
+foreach ($this->_tpl_vars['self_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['self']['open_level_code'] || $is_set_default ) {
+ echo "<input type=\"radio\" name=\"self_open_level_code\" value=\"$open_level_master_row[open_level_code]\" checked>";
+ $is_set_default = false;
+ }else{
+ echo "<input type=\"radio\" name=\"self_open_level_code\" value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']);
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ echo "<span class=\"notice\">";
+ echo ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M010');
+ echo "</span>";
+ }
+ echo "<br>\n";
+}
+?>
+</td>
+</tr>
+
+
+<?php
+// ¥³¥ß¥å¥Ë¥Æ¥££Í£Ì¥¢¥É¥ì¥¹
+?>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M016') ?></td>
+<?php
+$community_ml_address =& $this->_tpl_vars['community_row']['contents_row_array']['ml_addr']['contents_value'];
+if ($community_ml_address == '') {
+?>
+ <td bgcolor="#ffffff">
+ <?= ACS_COMMUNITY_ML_ADDR_PREFIX ?><input type="text"
+ name="community_ml_address" value="<?= htmlspecialchars($this->_tpl_vars['edit_community_ml_address']) ?>"
+ size="30"><?= ACS_COMMUNITY_ML_ADDR_SUFFIX ?><br>
+ <span class="notice"><?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M017') ?></span>
+ </td>
+<?php
+} else {
+?>
+ <td bgcolor="#ffffff">
+ <?= htmlspecialchars($community_ml_address) ?>
+ </td>
+<?php
+}
+?>
+</tr>
+
+
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M011') ?>"><br>
+</form>
+
+
+
+<script language="JavaScript">
+<!--
+
+window.onload = function () {
+
+ // »²²Ã»ñ³Ê
+ radio_obj = document.forms["create_community_form"].elements["admission_flag"];
+ if (radio_obj[1].checked) {
+ print_sub_menu(radio_obj[1], join_trusted_community_row_array, "join_", 1);
+ }
+
+ // ·Ç¼¨ÈǤθø³«ÈÏ°Ï
+ select_obj = document.forms["create_community_form"].elements["bbs_open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ if (selected_open_level_name = '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ print_sub_menu(select_obj, bbs_trusted_community_row_array, "bbs_");
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï
+ select_obj = document.forms["create_community_form"].elements["community_folder_open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ if (selected_open_level_name = '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ print_sub_menu(select_obj, community_folder_trusted_community_row_array, "community_folder_");
+ }
+}
+
+
+// ½é´üÃÍ
+
+var bbs_trusted_community_row_array = new Array(
+<?php
+$str = '';
+if (is_array($this->_tpl_vars['community_row']['contents_row_array']['bbs']['trusted_community_row_array'])) {
+ foreach ($this->_tpl_vars['community_row']['contents_row_array']['bbs']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+ }
+}
+echo $str;
+?>
+);
+var community_folder_trusted_community_row_array = new Array(
+<?php
+$str = '';
+if (is_array($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['trusted_community_row_array'])) {
+ foreach ($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+ }
+}
+echo $str;
+?>
+);
+var join_trusted_community_row_array = new Array(
+<?php
+$str = '';
+if (is_array($this->_tpl_vars['community_row']['join_trusted_community_row_array'])) {
+ foreach ($this->_tpl_vars['community_row']['join_trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+ }
+}
+echo $str;
+?>
+);
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj, trusted_community_row_array, prefix) {
+
+ // Âè4°ú¿ô //
+ if (print_sub_menu.arguments.length == 4) {
+ is_print_sub_menu = print_sub_menu.arguments[3];
+ selected_open_level_name = "";
+ } else {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ is_print_sub_menu = 0;
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤ÎÀßÄê²Õ½ê¤Îdiv
+ div_obj = document.getElementById(prefix + "trusted_community_div");
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ò°ìöÁ´¤Æºï½ü
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+
+ // ¥µ¥Ö¥á¥Ë¥å¡¼É½¼¨
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D04') ?>" || is_print_sub_menu) {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = prefix + "trusted_community_td";
+
+ // text
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="' + prefix + 'trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = prefix + "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ //input_obj.defaultChecked = false;
+ input_obj.defaultChecked = true;
+ new_cell.appendChild(input_obj);
+
+ // <a>
+ a_obj = document.createElement("a");
+ a_obj.href = trusted_community_row_array[i]["top_page_url"];
+ a_obj.target = "_blank";
+ a_obj.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(a_obj);
+
+ // text
+ if (trusted_community_row_array[i]["community_position"] != '') {
+ new_cell.appendChild(document.createTextNode(" ("));
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_position"]));
+ new_cell.appendChild(document.createTextNode(")"));
+ }
+ // <br>
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+
+ // button
+ input_obj = document.createElement("input");
+ input_obj.type = "button";
+ input_obj.value = "<?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M015') ?>";
+ input_obj.onclick = function () {
+ window.open("<?= $this->_tpl_vars['select_trusted_community_url'] ?>" + "&form_name=" + select_obj.form.name + '&prefix=' + prefix,
+ "SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
+ }
+ new_cell.appendChild(input_obj);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ if (prefix == "join_") {
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M012') ?>"));
+ } else {
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "CreateCommunity.tpl.php", 'M013') ?>"));
+ }
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+}
+
+
+// -->
+</script>
--- /dev/null
+<?php
+ //require_once(ACS_LIB_TEMPLATE_DIR . 'ACSTemplateLib.class.php');
+
+ //
+ // $Id: DecideSchedule_input.tpl.php,v 1.3 2006/12/28 07:36:15 w-ota Exp $
+ //
+
+ $target_community_row =& $this->_tpl_vars['target_community_row'];
+ $acs_user_info_row =& $this->_tpl_vars['acs_user_info_row'];
+
+ $schedule =& $this->_tpl_vars['schedule'];
+
+ $title = '<a href="' . $this->_tpl_vars['url_community_top'] . '">';
+ $title .= htmlspecialchars($target_community_row['community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ";
+ $title .= '<a href="' . $this->_tpl_vars['url_schedule_list'] . '">';
+ $title .= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M002');
+ $title .= '</a>';
+
+ $title .= " :: ".ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M003');
+
+?>
+<div class="ttl"><?= $title ?></div>
+
+<script language="JavaScript">
+<!--
+ <?php echo $this->_tpl_vars['java_message_var_string'] ?>
+ <?php echo $this->_tpl_vars['java_subject_var_string'] ?>
+ var before_sel_index = <?php echo $this->_tpl_vars['java_default_lang_index'] ?>;
+ var dirty_flg = false;
+
+ function onchange_msg() {
+ dirty_flg = true;
+ }
+
+ function sel_lang() {
+ var sel_lang_id = document.mail_form.lang_id.value;
+ if(dirty_flg){
+ if(confirm("<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M011') ?>")){
+ document.mail_form.mail_message.value = msg_list[sel_lang_id];
+ document.mail_form.mail_subject.value = subject_list[sel_lang_id];
+ dirty_flg = false;
+ }else{
+ document.mail_form.lang_id.options[before_sel_index].selected = true;
+ }
+ }else{
+ document.mail_form.mail_message.value = msg_list[sel_lang_id];
+ document.mail_form.mail_subject.value = subject_list[sel_lang_id];
+ }
+
+ before_sel_index = document.mail_form.lang_id.selectedIndex;
+ }
+// -->
+</script>
+
+<p>
+<form name="mail_form" action="<?= $this->_tpl_vars['url_commit'] ?>" method="post">
+<input type="hidden" name="community_id" value="<?= $schedule->community_id ?>">
+<input type="hidden" name="schedule_id" value="<?= $schedule->schedule_id ?>">
+<input type="hidden" name="mailentry_adjustment_id" value="<?= $this->_tpl_vars['mailentry_adjustment_id'] ?>">
+<input type="hidden" name="participate" value="">
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="400">
+<?php // ·ï̾ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M004') ?></th>
+ <td bgcolor="#ffffff" width="300"><?= htmlspecialchars($schedule->schedule_name) ?></td>
+</tr>
+<?php // ¾ì½ê ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M005') ?></th>
+ <td bgcolor="#ffffff" width="300"><?= htmlspecialchars($schedule->schedule_place) ?></td>
+</tr>
+<?php // ·èÄêÆü ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M006') ?></th>
+ <td bgcolor="#ffffff" width="300"><?= htmlspecialchars($this->_tpl_vars['adjustment_date']) ?></td>
+</tr>
+</table>
+</p>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?php // Ä귿ʸ¸À¸ì¤ÎÁªÂò ?>
+<p>
+<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M007') ?>:<br>
+ <select name="lang_id" onChange="sel_lang()">
+ <?= ACSTemplateLib::get_simple_select_options(
+ $this->_tpl_vars['html_options_lang_list'], $this->_tpl_vars['current_lang']) ?>
+ </select>
+</p>
+<?php // ¥á¡¼¥ë·ï̾ ?>
+<p>
+<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M004') ?>:<br>
+<input type="text" name="mail_subject" onChange="onchange_msg()" value="<?= $this->_tpl_vars['mail_subject'] ?>" size="90">
+</p>
+<?php // ¥á¥Ã¥»¡¼¥¸ ?>
+<p>
+<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M008') ?>:<br>
+ <textarea name="mail_message" rows="15" cols="65" onChange="onchange_msg()"><?= $this->_tpl_vars['mail_message'] ?>
+ </textarea>
+</p>
+<p>
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M009') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php",'M010') ?>"
+ onclick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
+</p>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/2/23 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+//
+// $Id: DeleteBBS.tpl.php,v 1.0
+?>
+
+<div class="sub_title">
+ <?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M003') ?><br>
+ <?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M004') ?><br><br>
+ <?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M005') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_bbs_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M006') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "DeleteBBS.tpl.php",'M007') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/2/23 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+//
+// $Id: DeleteBBSRes.tpl.php,v 1.0
+?>
+
+<div class="ttl">
+ <?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M003') ?><br><br>
+ <?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M004') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_bbs_res_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M005') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "DeleteBBSRes.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// $Id: DeleteCommunityLink.tpl.php,v 1.2 2006/11/20 08:44:14 w-ota Exp $
+?>
+
+<div class="sub_title">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M001') ?></a> :: <a href="<?= $this->_tpl_vars['community_link_url'] ?>"><?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M003') ?>
+</div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M004') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M005') ?><br>
+</div>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border>
+<?php
+echo "<tr>\n";
+if ($this->_tpl_vars['mode'] == 'parent') {
+ echo "<td>".ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M006')."</td>\n";
+} elseif ($this->_tpl_vars['mode'] == 'sub') {
+ echo "<td>".ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M007')."</td>\n";
+}
+echo "<td>";
+echo "<a href=\"{$this->_tpl_vars['delete_community_row']['top_page_url']}\">" . htmlspecialchars($this->_tpl_vars['delete_community_row']['community_name']) . "</a>";
+echo "</td>";
+echo "</tr>\n";
+?>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M008') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "DeleteCommunityLink.tpl.php",'M009') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_name']);
+ $title .= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M002');
+?>
+<span class="ttl"><?= $title ?></span>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M004') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M005') ?><br>
+</div>
+
+<form name="delete" method="POST" action="">
+<input type="hidden" name="action_type" value="back">
+
+<p>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+ // ¥á¥ó¥Ð°ìÍ÷½ÐÎÏ
+ foreach ($this->_tpl_vars['community_member_info_row_array'] as $community_member_info_row) {
+ print '<tr>' . "\n";
+ print '<td align="center" bgcolor="#ffffff">';
+ print '<input type="hidden" name="delete_user_community_id_array[]" value="' . $community_member_info_row['community_id'] . '">';
+ print '<a href="' . $community_member_info_row[top_page_url] . '"><img src="' .
+ $community_member_info_row[image_url] . '" border="0"></a><br>';
+ print '<a href="' . $community_member_info_row[top_page_url] . '">';
+ print htmlspecialchars($community_member_info_row['name']) . '</a><br>';
+ print '</td>';
+ print '</tr>' . "\n";
+ }
+?>
+</table>
+</p>
+
+<p>
+<input type="button" onClick="javascript:submitDelete(this.form)" value="<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M006') ?>">
+<input type="button" onClick="javascript:submitBack(this.form)" value="<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_confirm.tpl.php",'M007') ?>">
+</p>
+</form>
+
+<script type="text/javascript">
+ function submitBack (form) {
+ form.action = "<?=$this->_tpl_vars['back_action_url'] ?>";
+ form.submit();
+ }
+ function submitDelete (form) {
+ form.action = "<?=$this->_tpl_vars['delete_action_url'] ?>";
+ form.submit();
+ }
+</script>
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_name']);
+ $title .= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_input.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "DeleteCommunityMemberList_input.tpl.php",'M002');
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<div class="msg">
+<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_input.tpl.php",'M003') ?>
+</div>
+
+<form name="select_member" method="POST" action="<?=$this->_tpl_vars['confirm_action_url'] ?>">
+<input type="hidden" name="action_type" value="confirm">
+
+<p>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+ // ¥á¥ó¥Ð°ìÍ÷½ÐÎÏ
+ foreach ($this->_tpl_vars['community_member_info_row_array'] as $community_member_info_row) {
+ $selected_info = "";
+ $disabled_info = "";
+ if ($community_member_info_row['is_selected']) {
+ $selected_info = " checked";
+ }
+ if ($community_member_info_row['is_disabled']) {
+ $disabled_info = " disabled";
+ }
+ print '<tr>' . "\n";
+ print '<td bgcolor="#ffffff">';
+ print '<input type="checkbox" name="delete_user_community_id_array[]" value="' . $community_member_info_row['community_id'] . '"' . $selected_info . $disabled_info . '></td>' . "\n";
+ print '<td align="center" bgcolor="#ffffff">';
+ print '<a href="' . $community_member_info_row[top_page_url] . '"><img src="' .
+ $community_member_info_row[image_url] . '" border="0"></a><br>';
+ print '<a href="' . $community_member_info_row[top_page_url] . '">';
+ print htmlspecialchars($community_member_info_row['name']) . '</a><br>';
+ print '</td>';
+ print '</tr>' . "\n";
+ }
+?>
+</table>
+</p>
+
+<p>
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteCommunityMemberList_input.tpl.php",'M004') ?>">
+</p>
+</form>
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_name']);
+ $title .= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M002');
+?>
+<div class="ttl"><?= $title ?></div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M004') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M005') ?><br>
+</div>
+
+<form name="delete" method="POST" action="<?=$this->_tpl_vars['delete_action_url'] ?>">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td align="center" bgcolor="#ffffff">
+ <a href="<?=$this->_tpl_vars['delete_community_row']['top_page_url']?>">
+ <img src="<?=$this->_tpl_vars['delete_community_row']['image_url'] ?>" border="0"></a><br>
+ <a href="<?=$this->_tpl_vars['delete_community_row']['top_page_url']?>"><?=htmlspecialchars($this->_tpl_vars['delete_community_row']['community_name']) ?></a>
+ </td>
+ <td valign="top" bgcolor="#ffffff">
+ <?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M006') ?><br>
+ <?=nl2br(htmlspecialchars($this->_tpl_vars['delete_community_row']['community_profile'])) ?>
+ </td>
+</tr>
+</table>
+
+<p>
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M007') ?>">
+<input type="button" onClick="location.href='<?=$this->_tpl_vars['cancel_action_url'] ?>'" value="<?= ACSMsg::get_msg("Community", "DeleteCommunity_confirm.tpl.php",'M008') ?>">
+</p>
+</form>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M001') ?></div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M002') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M004') ?><br>
+<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M005') ?><br>
+</div>
+
+<form name="delete_folder" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M006') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "DeleteFolder.tpl.php",'M007') ?>" onClick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/2/16 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+//
+// $Id: DeleteProfileImage.tpl.php,v 1.0
+?>
+
+<div class="sub_title">
+ <?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M003') ?><br>
+ <?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M004') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_image_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M005') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "DeleteProfileImage.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// $Id: EditBBS.tpl.php,v 1.4 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M001') ?></a> :: <a href="<?= $this->_tpl_vars['bbs_url'] ?>"><?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M003') ?>
+</div>
+<br><br>
+
+<?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M004') ?><br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M006') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="subject" value="<?= htmlspecialchars($this->_tpl_vars['bbs_row']['subject']) ?>" size="50" style="width:400px"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M007') ?></td>
+<td bgcolor="#ffffff"><textarea name="body" cols="60" rows="10" style="width:480px"><?= htmlspecialchars($this->_tpl_vars['bbs_row']['body']) ?></textarea></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M008') ?></td>
+<td bgcolor="#ffffff">
+<?php
+if ($this->_tpl_vars['bbs_row']['file_url']) {
+ echo "<img src=\"{$this->_tpl_vars['bbs_row']['file_url']}\" style=\"margin:5px\"><br>\n";
+}
+?>
+<input type="file" name="new_file" size="50">
+</td>
+</tr>
+</table>
+<br>
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "EditBBS.tpl.php", 'M005') ?>">
+</form>
+<br>
--- /dev/null
+<?php
+// $Id: EditBBSRes.tpl.php,v 1.4 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M001') ?></a>
+ :: <a href="<?= $this->_tpl_vars['bbs_url'] ?>"><?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M002') ?></a>
+ :: <a href="<?= $this->_tpl_vars['bbs_res_url'] ?>"><?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M003') ?></a>
+ :: <?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M004') ?>
+</div>
+<br><br>
+
+<?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M005') ?><br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="subject" value="<?= htmlspecialchars($this->_tpl_vars['bbs_res_row']['subject']) ?>" size="50" style="width:400px"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M008') ?></td>
+<td bgcolor="#ffffff"><textarea name="body" cols="60" rows="10" style="width:480px"><?= htmlspecialchars($this->_tpl_vars['bbs_res_row']['body']) ?></textarea></td>
+</tr>
+</table>
+<br>
+<input type="submit" value="<?=ACSMsg::get_msg("Community", "EditBBSRes.tpl.php",'M006') ?>">
+</form>
+<br>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// | Authors: w-ota v 1.3 2006/03/02 @update akitsu |
+// +----------------------------------------------------------------------+
+//¡¡EditCommunity.tpl.php
+//
+// $Id: EditCommunity.tpl.php,v 1.9 2007/03/28 05:58:19 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>">
+<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?>
+<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M002') ?></div><br>
+<br>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="create_community_form">
+
+<input type="hidden" name="join_except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+<input type="hidden" name="bbs_except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+<input type="hidden" name="community_folder_except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php //¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤òÊÔ½¸ÉԲĤˤ·¤¿¤¤¾ì¹ç¤Ï readonly°À¤òÄɲ乤뤳¤È ?>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M003') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="community_name" value="<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?>"></td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff"><textarea name="community_profile" cols="50" rows="4"><?= htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['community_profile']['contents_value']) ?></textarea></td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff">
+<select name="category_code">
+<?php
+foreach ($this->_tpl_vars['category_master_row_array'] as $category_master_row) {
+ if($category_master_row[category_code] == $this->_tpl_vars['community_row']['category_code']){
+ echo "<option value=\"$category_master_row[category_code]\" selected>";
+ }else{
+ echo "<option value=\"$category_master_row[category_code]\">";
+ }
+ echo htmlspecialchars($category_master_row['category_name']);
+}
+?>
+</select>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff">
+<?php
+if($this->_tpl_vars['community_row']['admission_flag'] == 't') {
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"0\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 0)\">".ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M021')."<br>";
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"1\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 1)\" checked>".ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M022')."<br>";
+}else{
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"0\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 0)\" checked>".ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M021')."<br>";
+ echo "<input type=\"radio\" name=\"admission_flag\" value=\"1\" onclick=\"print_sub_menu(this, join_trusted_community_row_array, 'join_', 1)\">".ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M022')."<br>";
+}
+ echo "<div id=\"join_trusted_community_div\"></div>";
+?>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M011') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ·Ç¼¨ÈÄ
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['bbs_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+echo "<select name=\"bbs_open_level_code\" onchange=\"print_sub_menu(this, bbs_trusted_community_row_array, 'bbs_')\">\n";
+foreach ($this->_tpl_vars['bbs_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['bbs']['open_level_code']){
+ echo "<option value=\"$open_level_master_row[open_level_code]\" selected>";
+ }else{
+ echo "<option value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+echo "<div id=\"bbs_trusted_community_div\"></div>";
+
+?>
+</td>
+</tr>
+
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M020') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['community_folder_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+echo "<select name=\"community_folder_open_level_code\" onchange=\"print_sub_menu(this, community_folder_trusted_community_row_array, 'community_folder_')\">\n";
+foreach ($this->_tpl_vars['community_folder_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['community_folder']['open_level_code']){
+ echo "<option value=\"$open_level_master_row[open_level_code]\" selected>";
+ }else{
+ echo "<option value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+echo "<div id=\"community_folder_trusted_community_div\"></div>";
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M012') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ·Ç¼¨ÈÄ
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['self_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' checked';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+foreach ($this->_tpl_vars['self_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['self']['open_level_code']) {
+ echo "<input type=\"radio\" name=\"self_open_level_code\" value=\"$open_level_master_row[open_level_code]\" checked>";
+ }else{
+ echo "<input type=\"radio\" name=\"self_open_level_code\" value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']);
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ echo "<span class=\"notice\">";
+ echo ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M013');
+ echo "</span>";
+ }
+ echo "<br>\n";
+}
+?>
+</td>
+</tr>
+
+<?php
+// ¥³¥ß¥å¥Ë¥Æ¥££Í£Ì¥¢¥É¥ì¥¹
+?>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M023') ?></td>
+<?php
+$community_ml_address =& $this->_tpl_vars['community_row']['contents_row_array']['ml_addr']['contents_value'];
+if ($community_ml_address == '') {
+?>
+ <td bgcolor="#ffffff">
+ <?= ACS_COMMUNITY_ML_ADDR_PREFIX ?><input type="text"
+ name="community_ml_address" value="<?= htmlspecialchars($this->_tpl_vars['edit_community_ml_address']) ?>"
+ size="30"><?= ACS_COMMUNITY_ML_ADDR_SUFFIX ?><br>
+ <span class="notice"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M024') ?><br><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M025') ?></span>
+ </td>
+<?php
+} else {
+?>
+ <td bgcolor="#ffffff">
+ <?= htmlspecialchars($community_ml_address) ?>
+<?php
+ if ($this->_tpl_vars['community_row']['contents_row_array']['ml_status']['contents_value'] == 'QUEUE') {
+ echo '<br><span class="notice">';
+ echo ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M025');
+ echo '</span>';
+ }
+?>
+ </td>
+<?php
+}
+?>
+</tr>
+
+<?php
+// È󹹿·¾ðÊó¡¡ÅÐÏ¿Æü
+?>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M014') ?></td>
+<td bgcolor="#ffffff"><?= $this->_tpl_vars['community_row']['register_date'] ?></td>
+</tr>
+
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M015') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M016') ?>" onclick="location.href='<?= $this->_tpl_vars['community_top_page_url'] ?>'"><br>
+</form>
+</p>
+
+
+<script language="JavaScript">
+<!--
+
+window.onload = function () {
+ // ¸ø³«ÈϰϤΥǥե©¥ë¥ÈÁªÂò
+
+ // »²²Ã»ñ³Ê
+ radio_obj = document.forms["create_community_form"].elements["admission_flag"];
+ if (radio_obj[1].checked) {
+ print_sub_menu(radio_obj[1], join_trusted_community_row_array, "join_", 1);
+ }
+
+ // ·Ç¼¨ÈǤθø³«ÈÏ°Ï
+ select_obj = document.forms["create_community_form"].elements["bbs_open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ if (selected_open_level_name = '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ print_sub_menu(select_obj, bbs_trusted_community_row_array, "bbs_");
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï
+ select_obj = document.forms["create_community_form"].elements["community_folder_open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ if (selected_open_level_name = '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ print_sub_menu(select_obj, community_folder_trusted_community_row_array, "community_folder_");
+ }
+}
+
+
+// ½é´üÃÍ:¸½ºßÀßÄꤵ¤ì¤Æ¤¤¤ëÃÍ
+var bbs_trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['community_row']['contents_row_array']['bbs']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+var community_folder_trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+var join_trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['community_row']['join_trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj, trusted_community_row_array, prefix) {
+
+ // Âè4°ú¿ô //
+ if (print_sub_menu.arguments.length == 4) {
+ is_print_sub_menu = print_sub_menu.arguments[3];
+ selected_open_level_name = "";
+ } else {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ is_print_sub_menu = 0;
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤ÎÀßÄê²Õ½ê¤Îdiv
+ div_obj = document.getElementById(prefix + "trusted_community_div");
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ò°ìöÁ´¤Æºï½ü
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+
+ // ¥µ¥Ö¥á¥Ë¥å¡¼É½¼¨
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D04') ?>" || is_print_sub_menu) {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = prefix + "trusted_community_td";
+
+ // text
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="' + prefix + 'trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = prefix + "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ //input_obj.defaultChecked = false;
+ input_obj.defaultChecked = true;
+ new_cell.appendChild(input_obj);
+
+ // <a>
+ a_obj = document.createElement("a");
+ a_obj.href = trusted_community_row_array[i]["top_page_url"];
+ a_obj.target = "_blank";
+ a_obj.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(a_obj);
+
+ // text
+ if (trusted_community_row_array[i]["community_position"] != '') {
+ new_cell.appendChild(document.createTextNode(" ("));
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_position"]));
+ new_cell.appendChild(document.createTextNode(")"));
+ }
+ // <br>
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+
+ // button
+ input_obj = document.createElement("input");
+ input_obj.type = "button";
+ input_obj.value = "<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M017') ?>";
+ input_obj.onclick = function () {
+ window.open("<?= $this->_tpl_vars['select_trusted_community_url'] ?>" + "&form_name=" + select_obj.form.name + '&prefix=' + prefix,
+ "SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
+ }
+ new_cell.appendChild(input_obj);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ if (prefix == "join_") {
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M018') ?>"));
+ } else {
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "EditCommunity.tpl.php",'M019') ?>"));
+ }
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+}
+
+
+// -->
+</script>
--- /dev/null
+<?php
+// $Id: EditCommunityAdmin.tpl.php,v 1.3 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "EditCommunityAdmin.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "EditCommunityAdmin.tpl.php",'M002') ?>
+</div>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr><td bgcolor="#ffffff">
+<?php
+if ($this->_tpl_vars['acs_user_info_row']['is_community_admin']) {
+ echo "<input type=\"checkbox\" checked disabled>";
+ echo htmlspecialchars($this->_tpl_vars['acs_user_info_row']['user_name']);
+ echo " (" . htmlspecialchars($this->_tpl_vars['acs_user_info_row']['community_name']) . ")";
+ echo "<br>\n";
+}
+?>
+<?php
+foreach ($this->_tpl_vars['community_member_user_info_row_array'] as $user_info_row) {
+ echo "<input type=\"checkbox\" name=\"user_community_id_array[]\" value=\"$user_info_row[user_community_id]\"";
+ if ($user_info_row['is_community_admin']) {
+ echo ' checked';
+ }
+ echo ">";
+ echo htmlspecialchars($user_info_row['user_name']);
+ echo " (" . htmlspecialchars($user_info_row['community_name']) . ")";
+ echo "<br>\n";
+}
+?>
+</td></tr></table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "EditCommunityAdmin.tpl.php",'M003') ?>">
+</form>
--- /dev/null
+<?php
+// $Id: EditExternalRSS.tpl.php,v 1.1 2007/03/28 05:58:19 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M002') ?>
+</div>
+<br>
+<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M003') ?><br>
+<br>
+
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+
+<form name="edit_external_rss_form" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<input type="hidden" name="external_rss_url_except_community_id_array[]" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD">RSS URL</td>
+<td bgcolor="#ffffff">
+<input type="text" name="external_rss_url" value="<?= htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['external_rss_url']['contents_value']) ?>" size="80"><br>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff">
+<?php
+foreach ($this->_tpl_vars['community_admin_user_info_row_array'] as $community_admin_user_info_row) {
+ echo "<input type=\"radio\" name=\"external_rss_post_user\" value=\"$community_admin_user_info_row[user_community_id]\"";
+ if ($community_admin_user_info_row['user_community_id'] == $this->_tpl_vars['community_row']['contents_row_array']['external_rss_post_user']['contents_value']) {
+ echo " checked";
+ }
+ echo ">";
+ echo htmlspecialchars($community_admin_user_info_row['community_name']) . "<br>\n";
+}
+?>
+<span class="notice"><?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M005') ?></span>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï: ³°ÉôRSS¾ðÊó
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È
+unset($selected);
+foreach ($this->_tpl_vars['external_rss_url_open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+echo "<select name=\"external_rss_url_open_level_code\" onchange=\"print_sub_menu(this, external_rss_url_trusted_community_row_array, 'external_rss_url_')\">\n";
+foreach ($this->_tpl_vars['external_rss_url_open_level_master_row_array'] as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $this->_tpl_vars['community_row']['contents_row_array']['external_rss_url']['open_level_code']){
+ echo "<option value=\"$open_level_master_row[open_level_code]\" selected>";
+ }else{
+ echo "<option value=\"$open_level_master_row[open_level_code]\">";
+ }
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+echo "<div id=\"external_rss_url_trusted_community_div\"></div>";
+
+?>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+<?php
+unset($checked);
+if (ACSLib::get_boolean($this->_tpl_vars['community_row']['contents_row_array']['external_rss_ml_send_flag']['contents_value'])) {
+ $checked = ' checked';
+}
+?>
+<input type="checkbox" name="external_rss_ml_send_flag" value="t"<?= $checked ?>>
+<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M008') ?><br>
+<?php
+if ($this->_tpl_vars['community_row']['contents_row_array']['ml_addr']['contents_value'] == '') {
+ echo "<span class=\"notice\">".ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M009')."</span><br>\n";
+}
+?>
+</td>
+</tr>
+
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M010') ?>">
+
+</form>
+
+
+
+
+
+
+<script language="JavaScript">
+<!--
+
+window.onload = function () {
+ // ¸ø³«ÈϰϤΥǥե©¥ë¥ÈÁªÂò
+
+ // ·Ç¼¨ÈǤθø³«ÈÏ°Ï
+ select_obj = document.forms["edit_external_rss_form"].elements["external_rss_url_open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ if (selected_open_level_name = '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ print_sub_menu(select_obj, external_rss_url_trusted_community_row_array, "external_rss_url_");
+ }
+}
+
+// ½é´üÃÍ:¸½ºßÀßÄꤵ¤ì¤Æ¤¤¤ëÃÍ
+var external_rss_url_trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['community_row']['contents_row_array']['external_rss_url']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$trusted_community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$trusted_community_row[community_name]\", ";
+ $str .= "\"community_position\" : \"$trusted_community_row[community_position]\", ";
+ $str .= "\"top_page_url\" : \"$trusted_community_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+// ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj, trusted_community_row_array, prefix) {
+
+ // Âè4°ú¿ô //
+ if (print_sub_menu.arguments.length == 4) {
+ is_print_sub_menu = print_sub_menu.arguments[3];
+ selected_open_level_name = "";
+ } else {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+ is_print_sub_menu = 0;
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤ÎÀßÄê²Õ½ê¤Îdiv
+ div_obj = document.getElementById(prefix + "trusted_community_div");
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ò°ìöÁ´¤Æºï½ü
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+
+ // ¥µ¥Ö¥á¥Ë¥å¡¼É½¼¨
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D04') ?>" || is_print_sub_menu) {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = prefix + "trusted_community_td";
+
+ // text
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="' + prefix + 'trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = prefix + "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ //input_obj.defaultChecked = false;
+ input_obj.defaultChecked = true;
+ new_cell.appendChild(input_obj);
+
+ // <a>
+ a_obj = document.createElement("a");
+ a_obj.href = trusted_community_row_array[i]["top_page_url"];
+ a_obj.target = "_blank";
+ a_obj.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(a_obj);
+
+ // text
+ if (trusted_community_row_array[i]["community_position"] != '') {
+ new_cell.appendChild(document.createTextNode(" ("));
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_position"]));
+ new_cell.appendChild(document.createTextNode(")"));
+ }
+ // <br>
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+
+ // button
+ input_obj = document.createElement("input");
+ input_obj.type = "button";
+ input_obj.value = "<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M011') ?>";
+ input_obj.onclick = function () {
+ window.open("<?= $this->_tpl_vars['select_trusted_community_url'] ?>" + "&form_name=" + select_obj.form.name + '&prefix=' + prefix,
+ "SelectTrustedCommunity", "width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
+ }
+ new_cell.appendChild(input_obj);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M012') ?>"));
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D06') ?>") {
+
+ div_obj = document.getElementById("external_rss_url_trusted_community_div");
+
+ //¸½ºß¤Î½ñ¼°¤ò¥¯¥ê¥¢¤¹¤ë
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+ //¿·¤·¤¯½ñ¼°¤Î¸µ¤òÀ®·Á¤¹¤ë
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr> 1¹ÔÌÜ ·ÇºÜ´ü´Ö¤ÎÆþÎÏ
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.id = 'trusted_community_td';
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "10pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M013') ?> : "));
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // <input>txtField
+ input_obj = document.createElement("input");
+ input_obj.type = "text";
+ input_obj.size = "4";
+ input_obj.name = "external_rss_public_release_expire_term";
+ input_obj.value = "<?= $this->_tpl_vars['community_row']['contents_row_array']['external_rss_public_release_expire_term']['contents_value'] ?>";
+ new_cell.appendChild(input_obj);
+
+ // <span>
+ span_obj = document.createElement("span");
+ span_obj.style.fontSize = "8pt";
+ span_obj.appendChild(document.createTextNode("<?= ACSMsg::get_msg("Community", "EditExternalRSS.tpl.php",'M014') ?>"));
+
+ new_cell.appendChild(span_obj);
+ // </span>
+
+ // </td>
+ // </tr>
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+}
+
+
+// -->
+</script>
--- /dev/null
+<?php
+// $Id: EditFileDetail.tpl.php,v 1.4 2007/03/28 08:39:32 w-ota Exp $
+?>
+
+<?
+// ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥ÄÀÚ¤êÂؤ¨JS½ÐÎÏ
+ACSTemplateLib::print_change_file_contents_js('edit_file_detail_form', $this->_tpl_vars['file_contents_type_master_array'], $this->_tpl_vars['file_contents_type_master_row_array_array']);
+?>
+
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_row']['community_name']) . ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M001');
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M003') ?> :: <?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M004') ?></div>
+<br>
+
+<?php
+// ¥Ñ¥¹¾ðÊó½ÐÎÏ
+$path = "";
+foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+}
+
+print "<p>\n";
+print $path . "\n";
+print "</p>\n";
+?>
+
+<!-- layout_table -->
+
+<form name="edit_file_detail_form" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M005') ?></div></td>
+</tr>
+
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M006') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table"><tr>
+ <td><img src="<?= ACS_IMAGE_DIR . "file.gif" ?>"></td>
+ <td><a href="<?= $this->_tpl_vars['file_info_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_info_row']['display_file_name']) ?></a></td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+<select name="file_category_code" onchange="change_file_contents()">
+<?php
+unset($selected);
+$selected[$this->_tpl_vars['file_detail_info_row']['file_category_code']] = ' selected';
+foreach ($this->_tpl_vars['file_category_master_array'] as $file_category_code => $file_category_name) {
+ echo "<option value=\"$file_category_code\"$selected[$file_category_code]>" . htmlspecialchars($file_category_name) . "\n";
+}
+?>
+</select>
+</td>
+</tr>
+
+<?php
+foreach ($this->_tpl_vars['file_contents_type_master_array'] as $file_contents_type_code => $file_contents_type_name) {
+ echo "<tr id=\"file_contents_tr[$file_contents_type_code]\"";
+ if (!is_array($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code])) {
+ echo " style=\"display:none\"";
+ }
+ echo ">";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_type_name);
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<textarea name=\"file_contents_array[$file_contents_type_code]\" cols=\"50\" rows=\"3\">";
+ echo htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code]['file_contents_value']);
+ echo "</textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+
+</td></tr></table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M008') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "EditFileDetail.tpl.php",'M009') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+if ($this->_tpl_vars['view_mode'] == 'create') {
+ $title = ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M001');
+ $submit_button_name = ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M002');
+} elseif ($this->_tpl_vars['view_mode'] == 'update') {
+ $title = ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M003');
+ $submit_button_name = ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M004');
+}
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="folder_info" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<input type="hidden" name="except_community_id_array[]" value="<?= $this->_tpl_vars['target_community_info_row']['community_id'] ?>">
+
+<p>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M005') ?></td>
+ <td bgcolor="#ffffff"><input type="text" name="folder_name" value="<?= htmlspecialchars($this->_tpl_vars['default_data_row']['folder_name']) ?>"></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M006') ?></td>
+ <td bgcolor="#ffffff"><input type="text" name="comment" value="<?= htmlspecialchars($this->_tpl_vars['default_data_row']['comment']) ?>"></td>
+</tr>
+
+<?php
+// ¸ø³«ÈϰϤ¬ÀßÄê¤Ç¤¤ë¾ì¹ç¤Î¤ß¡¢½ÐÎÏ
+if ($this->_tpl_vars['is_set_open_level_available']) {
+?>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <select name="open_level_code" onChange="show_open_level_option(this.options[this.selectedIndex].text)">
+ <?php
+ // ÁªÂò»èºîÀ®
+ $trusted_community_display_mode = 'none';
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default']) {
+ $selected_str = " selected";
+
+ // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¸ø³«ÈϰϤ¬¡Öͧ¿Í¤Ë¸ø³«¡×¤Î¾ì¹ç¤Ï¡¢trusted_community ¤òɽ¼¨¤¹¤ë
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D04')) {
+ $trusted_community_display_mode = 'block';
+ }
+ } else {
+ $selected_str = "";
+ }
+ print '<option value="' . $open_level_master_row['open_level_code'] . '"' . $selected_str . '>' . htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ ?>
+ </select>
+
+ <div id="trusted_community_div" style="display:<?= $trusted_community_display_mode ?>;">
+ <table class="layout_table">
+ <tr><td id="trusted_community_td">
+ <?php
+ // ½ÐÎϺѤߥ³¥ß¥å¥Ë¥Æ¥£
+ $output_community_id_array = array();
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£½ÐÎÏ
+ if ($this->_tpl_vars['parent_community_info_array']) {
+ foreach ($this->_tpl_vars['parent_community_info_array'] as $parent_community_info) {
+ if ($this->_tpl_vars['default_data_row']['trusted_community_id_array']) {
+ if (in_array($sub_community_info['community_id'], $this->_tpl_vars['default_data_row']['trusted_community_id_array'])) {
+ $checked_str = " checked";
+ array_push($output_community_id_array, $sub_community_info['community_id']);
+ } else {
+ $checked_str = "";
+ }
+ }
+ print '<input type="checkbox" name="trusted_community_id_array[]" value="' . $parent_community_info['community_id'] . '"' . $checked_str . '>';
+ print '<a href="' . $parent_community_info['top_page_url'] . '" target="_blank">';
+ print htmlspecialchars($parent_community_info['community_name']) . "<br>\n";
+ print '</a>';
+ }
+ }
+
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£½ÐÎÏ
+ if ($this->_tpl_vars['sub_community_info_array']) {
+ foreach ($this->_tpl_vars['sub_community_info_array'] as $sub_community_info) {
+ if ($this->_tpl_vars['default_data_row']['trusted_community_id_array']) {
+ if (in_array($sub_community_info['community_id'], $this->_tpl_vars['default_data_row']['trusted_community_id_array'])) {
+ $checked_str = " checked";
+ array_push($output_community_id_array, $sub_community_info['community_id']);
+ } else {
+ $checked_str = "";
+ }
+ }
+ print '<input type="checkbox" name="trusted_community_id_array[]" value="' . $sub_community_info['community_id'] . '"' . $checked_str . '>';
+ print '<a href="' . $sub_community_info['top_page_url'] . '" target="_blank">';
+ print htmlspecialchars($sub_community_info['community_name']) . "<br>\n";
+ print '</a>';
+ }
+ }
+
+ // ¿Æ¡¦¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£°Ê³°¤ÇÁªÂò¤µ¤ì¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£½ÐÎÏ
+ if ($this->_tpl_vars['selected_trusted_community_info_array']) {
+ foreach ($this->_tpl_vars['selected_trusted_community_info_array'] as $selected_trusted_community_info) {
+ if (in_array($selected_trusted_community_info['community_id'], $output_community_id_array)) {
+ // ¿Æ¡¦¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤È¤·¤Æ½ÐÎϺѤߤΤâ¤Î¤Ï¡¢¥Ñ¥¹
+ continue;
+ }
+ print '<input type="checkbox" name="trusted_community_id_array[]" value="' . $selected_trusted_community_info['community_id'] . '" checked>';
+ print '<a href="' . $selected_trusted_community_info['top_page_url'] . '" target="_blank">';
+ print htmlspecialchars($selected_trusted_community_info['community_name']) . "<br>\n";
+ print '</a>';
+ }
+ }
+ ?>
+ </td></tr>
+ </table>
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M010') ?>" onClick="window.open('<?= $this->_tpl_vars['add_trusted_community_url'] ?>', 'SelectTrustedCommunity', 'width=600,height=400,top=200,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');">
+ <span style="font-size: 8pt"><?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M007') ?></span>
+ </div>
+ </td>
+</tr>
+<?php
+// ¸ø³«ÈϰϤ¬ÀßÄê¤Ç¤¤ë¾ì¹ç¤Î¤ß¡¢½ÐÎÏ
+}
+?>
+
+</table>
+</p>
+
+<p>
+<input type="submit" value="<?= $submit_button_name ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "EditFolder.tpl.php",'M008') ?>" onclick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</p>
+</form>
+
+<script type="text/javascript">
+<!--
+ // ͧ¿Í¤Ë¸ø³«¤ÎÁªÂò»èɽ¼¨¤òÁàºî
+ function show_open_level_option (selected_open_level_name) {
+ trusted_community_div_obj = document.getElementById('trusted_community_div');
+ if (selected_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D04') ?>') {
+ trusted_community_div_obj.style.display = "block";
+ } else {
+ trusted_community_div_obj.style.display = "none";
+ }
+ }
+//-->
+</script>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// | Authors: akitsu 2006/2/15 |
+// +----------------------------------------------------------------------+
+//¡¡EditProfileImage.tpl.php
+// $Id: EditProfileImage.tpl.php,v 1.5 2006/12/08 05:06:36 w-ota Exp $
+//
+// @image_new_mode = ²èÁü¾ðÊó¤ÎÅÐÏ¿¤¬¤Ê¤¤¡¡not¡¡ÅÐÏ¿¤¬¤¢¤ë
+?>
+
+<SCRIPT language="JavaScript">
+<!--
+// ¥Õ¥©¡¼¥à¤ËÆþÎϤ¬¤¢¤Ã¤¿¤é¥¢¥Ã¥×¥í¡¼¥É¥Ü¥¿¥ó¤ò͸ú¤È¤¹¤ë
+ function fmTurn(){
+ // »È¤¨¤ë¥Õ¥¡¥¤¥ë¤Ê¤é¤Ð¥Ü¥¿¥ó¤ò͸ú¤È¤¹¤ë
+ document.upload_file.upload_image.disabled = false;
+/*
+ ¡¡¡¡// ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º³ÎǧÍÑ
+ var objid=document.getElementById('view_image');
+ objid.src='file://'+document.upload_file.new_file.value;
+*/
+ }
+/*
+// ¥µ¡¼¥Ð¤ËÀܳ¤¹¤ëÁ°¤Ë¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ò³Îǧ¤·¤Æ¤ª¤¯script
+ function imagesize() {
+ var objid=document.getElementById('view_image');
+ var wid=document.getElementById('w');
+ var hid=document.getElementById('h');
+ var imgwidth=objid.width;
+ var imgheight=objid.height;
+ wid.innerHTML=imgwidth;
+ hid.innerHTML=imgheight;
+ }
+*/
+//-->
+</SCRIPT>
+
+<div class="sub_title"><?= ACSMsg::get_msg("Community", "EditProfileImage.tpl.php",'M001') ?></div>
+
+ <table>
+ <!-- ²èÁü¾ðÊó -->
+ <tr align="center"><td>
+ <img src="<?=$this->_tpl_vars['profile']['image_url'] ?>" style="margin-top:10px;margin-bottom:10px" id="view_image"><br>
+ </td></tr>
+
+ <!-- ºï½ü¥ê¥ó¥¯ -->
+ <tr align="center"><td>
+ <?php
+ /* ºï½ü¥Ñ¥¹¾ðÊó½ÐÎÏ */
+ // ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë
+ $path="";
+ if(!$this->_tpl_vars['menu']['image_new_mode']){
+ $path = '<a href="';
+ $path .= $this->_tpl_vars['menu']['delete_image_url'];
+ $path .='">';
+ $path .= ACSMsg::get_msg("Community", "EditProfileImage.tpl.php",'M002').'</a>';
+ }
+ //²èÌ̤Ëɽ¼¨
+ print $path . "\n";
+ ?>
+ </td></tr>
+ </table>
+
+ <p>
+ <form name="upload_file" action="<?= $this->_tpl_vars['upload_image_url'] ?>" method="POST" enctype="multipart/form-data">
+ <input type="file" name="new_file" size="30" onchange="fmTurn()">
+ <input type="submit" name="upload_image" value="<?= ACSMsg::get_msg("Community", "EditProfileImage.tpl.php",'M003') ?>" disabled>
+ </form>
+ </p>
+ <p>
+ <a href="<?= $this->_tpl_vars['back_url'] ?>"> <?= htmlspecialchars($this->_tpl_vars['profile']['community_name']) ?> <?= ACSMsg::get_msg("Community", "EditProfileImage.tpl.php",'M004') ?></a>
+ </p>
--- /dev/null
+<?php
+ //
+ // $Id: EditSchedule.tpl.php,v 1.2 2006/12/19 10:17:27 w-ota Exp $
+ //
+
+ $target_community_row =& $this->_tpl_vars['target_community_row'];
+ $schedule =& $this->_tpl_vars['schedule'];
+
+ $title = '<a href="' . $this->_tpl_vars['url_community_top'] . '">';
+ $title .= htmlspecialchars($target_community_row['community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ";
+ $title .= '<a href="' . $this->_tpl_vars['url_schedule_list'] . '">';
+ $title .= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M002');
+ $title .= '</a>';
+
+ if ($schedule->is_new()) {
+ $title .= " :: ".ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M003');
+ } else {
+ $title .= " :: ".ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M004');
+ }
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<script language="JavaScript">
+<!--
+ function sel_value(selectbox) {
+ return selectbox.options[selectbox.selectedIndex].value;
+ }
+
+ function generate_adjustment_dates () {
+
+ // Analyze date
+ var dt_from = get_date(
+ sel_value(document.edit_form.generate_year_from),
+ sel_value(document.edit_form.generate_month_from),
+ sel_value(document.edit_form.generate_day_from));
+ var dt_to = get_date(
+ sel_value(document.edit_form.generate_year_to),
+ sel_value(document.edit_form.generate_month_to),
+ sel_value(document.edit_form.generate_day_to));
+ var entry_area = document.edit_form.edit_append_adjustment_dates;
+ var showyear;
+
+ // Error check
+ if (dt_from == false || dt_to == false) {
+ alert('<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M050') ?>');
+ return;
+ }
+ if (dt_from.getTime() > dt_to.getTime()) {
+ alert('<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M051') ?>');
+ return;
+ }
+ // Generate dates string
+ for (var i = 0; i < document.edit_form.generate_show_year.length; i++) {
+ if (document.edit_form.generate_show_year[i].checked == true)
+ showyear = document.edit_form.generate_show_year[i].value;
+ }
+ showyear = showyear == 't' ? true : false;
+ for (var tm = dt_from.getTime(); tm <= dt_to.getTime(); tm += (1000*60*60*24)) {
+ var dt = new Date();
+ dt.setTime(tm);
+ entry_area.value = entry_area.value + format_date(dt,showyear) + "\n";
+ }
+ }
+
+ function get_date (y,m,d) {
+ var dt = new Date(y,(m-1),d);
+ if (isNaN(dt)) {
+ return false;
+ } else if (dt.getFullYear()==y && dt.getMonth()==(m-1) && dt.getDate()==d) {
+ return dt;
+ } else {
+ return false;
+ }
+ }
+
+ function format_date (dt,showyear) {
+ var fmt = showyear ?
+ '<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'GEN_YMDFMT') ?>' :
+ '<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'GEN_MDFMT') ?>' ;
+ var wday = new Array(<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'WEEKDAY') ?>);
+ var month = dt.getMonth()+1;
+ var day = dt.getDate();
+
+ if (month < 10) month = "0" + month;
+ if (day < 10) day = "0" + day;
+
+ fmt = fmt.replace("%YEAR%",dt.getFullYear());
+ fmt = fmt.replace("%MONTH%",month);
+ fmt = fmt.replace("%DAY%",day);
+ fmt = fmt.replace("%WEEKDAY%",wday[dt.getDay()]);
+ return fmt;
+ }
+// -->
+</script>
+
+<p>
+<form name="edit_form" action="<?= $this->_tpl_vars['posturl'] ?>" method="post">
+<input type="hidden" name="community_id" value="<?= $schedule->community_id ?>">
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="600">
+<?php // ·ï̾ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M005') ?></th>
+ <td bgcolor="#ffffff" colspan="4">
+ <input type="text" name="schedule_name" value="<?= htmlspecialchars($schedule->schedule_name) ?>" size="50" style="width:450px">
+ </td>
+</tr>
+<?php // ¸õÊäÆü»þ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" rowspan="2"
+ width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M006') ?></th>
+ <td bgcolor="#ffffff" colspan="4">
+<?php
+$adjust_dates =& $schedule->get_adjustment_dates(FALSE);
+$del_adjust_checked =& $this->_tpl_vars['delete_ajustment_dates_checked'];
+if (count($adjust_dates)>0) {
+ ?>
+ <?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M028') ?>:<br>
+ <table class="schedulelist_table" border="0" cellpadding="2" cellspacing="1" bgcolor="#99CC33">
+ <?php
+ foreach ($adjust_dates as $adjust_id => $adjust_vals) {
+ ?>
+ <tr>
+ <td bgcolor="#DEEEBD" width="200"><?= $adjust_vals['date_string'] ?></td>
+ <td bgcolor="#ffffff"><input type="checkbox" name="delete_adjustment_dates[]"
+ value="<?= $adjust_id ?>" <?= $del_adjust_checked[$adjust_id] ?>>ºï½ü</td>
+ </tr>
+ <?php
+ }
+ ?>
+ </table><br>
+ <?php
+}
+?>
+ <?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M029') ?>:<br>
+ <textarea name="edit_append_adjustment_dates" cols="50" rows="7"
+ style="width:450px"><?= $this->_tpl_vars['edit_append_adjustment_dates'] ?></textarea>
+ </td>
+</tr>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD"
+ width="56"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M020') ?></th>
+ <td bgcolor="#DEEEBD" colspan="3">
+ <table>
+ <tr><td>
+ <?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M021') ?>
+ <select name="generate_year_from"><?= $this->_tpl_vars["html_options_generate_year"] ?>
+ </select> /
+ <select name="generate_month_from"><?= $this->_tpl_vars["html_options_generate_month"] ?>
+ </select> /
+ <select name="generate_day_from"><?= $this->_tpl_vars["html_options_generate_day"] ?>
+ </select><br>
+ <?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M022') ?>
+ <select name="generate_year_to"><?= $this->_tpl_vars["html_options_generate_year"] ?>
+ </select> /
+ <select name="generate_month_to"><?= $this->_tpl_vars["html_options_generate_month"] ?>
+ </select> /
+ <select name="generate_day_to"><?= $this->_tpl_vars["html_options_generate_day"] ?>
+ </select>
+ </td>
+ <td>
+ <input type="radio" name="generate_show_year" value="f" CHECKED
+ ><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M031') ?>
+ <input type="radio" name="generate_show_year" value="t"
+ ><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M030') ?><br>
+ <input type="button" onclick="generate_adjustment_dates();"
+ value="<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M023') ?>">
+ </td></tr>
+ </table>
+ </td>
+</tr>
+
+<?php // ¾ì½ê ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M007') ?></th>
+ <td bgcolor="#ffffff" colspan="4">
+ <input type="text" name="schedule_place" value="<?= htmlspecialchars($schedule->schedule_place) ?>" size="50" style="width:450px">
+ </td>
+</tr>
+<?php // ¾ÜºÙ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M008') ?></th>
+ <td bgcolor="#ffffff" colspan="4">
+ <input type="text" name="schedule_detail" value="<?= htmlspecialchars($schedule->schedule_detail) ?>" size="50" style="width:450px">
+ </td>
+</tr>
+
+<?php // ²óÅúÄùÀÚÆü»þ ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M009') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD" width="56"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M010') ?></th>
+ <td bgcolor="#ffffff">
+ <select name="edit_closing_year">
+ <?= $this->_tpl_vars["html_options_closing_year"] ?>
+ </select> /
+ <select name="edit_closing_month">
+ <?= $this->_tpl_vars["html_options_closing_month"] ?>
+ </select> /
+ <select name="edit_closing_day">
+ <?= $this->_tpl_vars["html_options_closing_day"] ?>
+ </select>
+ </td>
+ <th id="myttl" bgcolor="#DEEEBD" width="46"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M011') ?></th>
+ <td bgcolor="#ffffff">
+ <select name="edit_closing_hour">
+ <?= $this->_tpl_vars["html_options_closing_hour"] ?>
+ </select> :
+ <select name="edit_closing_min">
+ <?= $this->_tpl_vars["html_options_closing_min"] ?>
+ </select>
+ </td>
+</tr>
+
+<?php // ÂÐ¾Ý ?>
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M012') ?></th>
+ <td bgcolor="#ffffff" colspan="4">
+ <?php
+ // ¿·µ¬ÅÐÏ¿¤Î¾ì¹ç
+ if ($schedule->is_new()) {
+ ?>
+ <input type="radio" name="schedule_target_kind" value="ALL"
+ <?= $this->_tpl_vars['html_checked_target_all'] ?>><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M013') ?>
+ <input type="radio" name="schedule_target_kind" value="FREE"
+ <?= $this->_tpl_vars['html_checked_target_free'] ?>><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M014') ?>
+ <?php
+ } else {
+ echo ($schedule->is_target_all() ?
+ ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M013') : ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M014'));
+ }
+ ?>
+ </td>
+</tr>
+</table>
+</p>
+
+<p>
+<?php // ÁªÂò»è ?>
+<table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="600">
+<tr>
+ <th id="myttl" bgcolor="#DEEEBD" width="100" rowspan="<?= $schedule->get_answer_selection_count()+1 ?>"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M015') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD" width="70"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M016') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD" width="50"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M018') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD" width="50"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M017') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M019') ?></th>
+</tr>
+<?php
+$answer_selection =& $schedule->get_answer_selection();
+foreach ($answer_selection as $answer_no => $answer_def) {
+?>
+ <tr>
+ <td bgcolor="#ffffff" align="center" width="70">
+ <input type="text" name="answer_char[<?= $answer_no ?>]"
+ value="<?= $answer_def['answer_char'] ?>" size="2" maxlength="1">
+ </td>
+ <td bgcolor="#ffffff" align="center" width="50">
+ <input type="text" name="answer_score[<?= $answer_no ?>]"
+ value="<?= $answer_def['answer_score'] ?>" size="2" maxlength="3">
+ </td>
+ <td bgcolor="#ffffff" align="center" width="50">
+ <input type="radio" name="answer_default" value="<?= $answer_no ?>"
+ <?= ($answer_def['answer_default']=='t' ? 'CHECKED' : '') ?>>
+ </td>
+ <td bgcolor="#ffffff">
+ <input type="text" name="answer_detail[<?= $answer_no ?>]"
+ value="<?= htmlspecialchars($answer_def['answer_detail']) ?>" size="25" style="width:250px">
+ </td>
+ </tr>
+<?php
+}
+?>
+</table>
+<br>
+<input type="checkbox" value="t"
+ name="send_annouce_mail" <?= $this->_tpl_vars['send_annouce_mail_checked'] ?>
+ ><?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M024') ?><br>
+<?php
+if ($schedule->is_new()) {
+?><input type="submit"
+ value="<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M025') ?>">
+<?php
+} else {
+?><input type="submit"
+ value="<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M026') ?>">
+<?php
+}
+?>
+<input type="button"
+ value="<?= ACSMsg::get_msg("Community", "EditSchedule.tpl.php",'M027') ?>"
+ onclick="location.href='<?= $this->_tpl_vars['url_schedule_list'] ?>'">
+
+</form>
+</p>
--- /dev/null
+<?php
+// $Id: FileDetail.tpl.php,v 1.10 2007/03/28 09:24:51 w-ota Exp $
+?>
+<script type="text/javascript">
+<!--
+ function submit_public_access (submit_kind) {
+ document.public_access.submit_kind.value = submit_kind;
+ document.public_access.submit();
+ }
+//-->
+</script>
+
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_row']['community_name']) . ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M001');
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M003') ?></div>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<p>
+<!-- layout_table start //-->
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M004') ?></div></td>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['update_file_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['update_file_url'] . '">'.ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M005').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['rename_folder_list_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['rename_folder_list_url'] . '">'.ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M006').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['move_folder_list_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['move_folder_list_url'] . '">'.ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M007').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['delete_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['delete_folder_url'] . '">'.ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M008').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+
+<tr><td colspan="2">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table"><tr>
+<?php
+ if ($this->_tpl_vars['is_put_file']) {
+ $file_img = ACS_IMAGE_DIR . "put_file.gif";
+ } else {
+ $file_img = ACS_IMAGE_DIR . "file.gif";
+ }
+echo "<td><img src=\"$file_img\"></td>\n";
+?>
+ <td>
+ <a href="<?= $this->_tpl_vars['file_info_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_info_row']['display_file_name']) ?></a> (<?= htmlspecialchars($this->_tpl_vars['file_info_row']['mime_type']) ?>)
+ </td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M010') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['file_info_row']['file_size_kb'] ?> (<?= $this->_tpl_vars['file_info_row']['file_size'] ?> <?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M011') ?>)</td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M012') ?></td>
+ <td bgcolor="#ffffff"><a href="<?= $this->_tpl_vars['detail_folder_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['folder_name']) ?></a></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M013') ?></td>
+ <td bgcolor="#ffffff">
+ <?php
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ if ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) {
+ foreach ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = "<a href=\"$trusted_community_row[community_top_page_url]\">";
+ $trusted_community_name .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_name .= "</a>";
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ }
+
+ print htmlspecialchars($this->_tpl_vars['detail_folder_row']['open_level_name']);
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ ?>
+ <br></td>
+</tr>
+<?php
+if(!$this->_tpl_vars['is_put_file']){
+?>
+<tr>
+ <form action="<?= $this->_tpl_vars['file_public_access_row']['submit_url'] ?>" method="post" name="public_access">
+ <input type="hidden" name="submit_kind" value="">
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M029') ?></td>
+ <td bgcolor="#ffffff">
+<?php
+if($this->_tpl_vars['file_public_access_row']['file_id'] == ""){
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô
+ if($this->_tpl_vars['is_community_admin']){
+ print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M030') .
+ '" onclick="javascript:submit_public_access(\'insert\')">';
+ }
+}else{
+ print '<a href="'.$this->_tpl_vars['file_public_access_row']['access_url'].'">'.
+ htmlspecialchars($this->_tpl_vars['file_public_access_row']['access_url']).'</a>';
+
+ if($this->_tpl_vars['is_community_admin']){
+ print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M031') .
+ '" onclick="javascript:submit_public_access(\'delete\')">';
+ }
+ print '<br>';
+ // Áí¥¢¥¯¥»¥¹¿ô
+ print "[" . ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M033') . ":" .
+ $this->_tpl_vars['file_public_access_row']['all_access_count'] . '] ';
+ // ¥¢¥¯¥»¥¹¿ô
+ print "[" . ACSMsg::get_tag_replace(ACSMsg::get_msg("Community", "FileDetail.tpl.php",'ACCESS_COUNT'),
+ array("{DATE}" => $this->_tpl_vars['file_public_access_row']['access_start_date_disp'])) .
+ ":" . $this->_tpl_vars['file_public_access_row']['access_count'] . "]";
+
+ if($this->_tpl_vars['is_community_admin']){
+ print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M032') .
+ '" onclick="javascript:submit_public_access(\'reset\')">';
+ }
+}
+?>
+ </td>
+ </form>
+</tr>
+<?php
+}
+?>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M014') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['file_info_row']['entry_user_community_link_url'] ?>"><?= $this->_tpl_vars['file_info_row']['entry_user_community_name'] ?></a>
+ (<?= $this->_tpl_vars['file_info_row']['entry_date'] ?>)
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M015') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['file_info_row']['update_user_community_link_url'] ?>"><?= $this->_tpl_vars['file_info_row']['update_user_community_name'] ?></a>
+ (<?= $this->_tpl_vars['file_info_row']['update_date'] ?>)
+ </td>
+</tr>
+</table>
+
+</td></tr>
+</table>
+<!-- layout_table end //-->
+</p>
+
+
+<!-- layout_table -->
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M016') ?></div></td>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['edit_file_detail_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['edit_file_detail_url'] . '">'.ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M017').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+<td colspan="2">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+ if (count($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'])) {
+ echo "<tr>";
+ echo "<td class=\"nowrap\" id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M018')."</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#fffff\">" . htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_category_name']) . "</td>";
+ echo "</tr>\n";
+ foreach ($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'] as $file_contents_row) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_row['file_contents_type_name']);
+ echo "</td>";
+ echo "<td bgcolor=\"#fffff\">";
+ echo nl2br(htmlspecialchars($file_contents_row['file_contents_value']));
+ echo "</td>";
+ echo "</tr>\n";
+ }
+ } else {
+ echo "<tr><td width=\"100px\" bgcolor=\"#ffffff\">".ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M019')."</td></tr>\n";
+ }
+?>
+</table>
+</td></tr></table>
+<br>
+
+
+<table class="layout_table">
+<tr>
+<td>
+<div class="subsub_title"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M020') ?></div>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+</td>
+</tr>
+<td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"> </td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M021') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M022') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M023') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M024') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M025') ?></td>
+</tr>
+<?php
+foreach ($this->_tpl_vars['file_history_row_array'] as $file_history_row) {
+ echo "<tr>\n";
+
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . htmlspecialchars($file_history_row['file_history_operation_name']) . "</td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . htmlspecialchars($file_history_row['update_date']) . "</td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\"><a href=\"$file_history_row[link_url]\">" . htmlspecialchars($file_history_row['community_name']) . "</a></td>\n";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"$file_history_row[download_history_file_url]\">" . htmlspecialchars($file_history_row['display_file_name']) . "</a></td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">";
+ if ($file_history_row['restore_history_file_url'] != '') {
+ echo "[<a href=\"$file_history_row[restore_history_file_url]\">".ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M026')."</a>]";
+ } else {
+ echo " ";
+ }
+ echo "</td>\n";
+ // ¥³¥á¥ó¥È
+ $comment_str = "";
+ foreach ($file_history_row['file_history_comment_row_array'] as $file_history_comment_row) {
+ if ($file_history_comment_row['comment'] != '') {
+ if ($comment_str != '') {
+ $comment_str .= "<br>";
+ }
+ $comment_str .= "<li>";
+ $comment_str .= nl2br(htmlspecialchars($file_history_comment_row['comment']));
+ $comment_str .= "<span class=\"nowrap\"> (";
+ $comment_str .= "<a href=\"$file_history_comment_row[link_url]\">";
+ $comment_str .= htmlspecialchars($file_history_comment_row['community_name']);
+ $comment_str .= "</a> ";
+ $comment_str .= $file_history_comment_row['post_date'];
+ $comment_str .= ")</span>";
+ }
+ }
+ if ($comment_str == '') {
+ $comment_str = ' ';
+ }
+ echo "<td bgcolor=\"#ffffff\">" . $comment_str . "</td>\n"; // ¥¨¥¹¥±¡¼¥×ºÑ
+ echo "</tr>\n";
+}
+?>
+</table>
+
+</td>
+</tr>
+<?php
+if ($this->_tpl_vars['acs_user_info_row']['is_acs_user']) {
+?>
+<tr>
+<td align="right">
+<form action="<?= $this->_tpl_vars['file_history_comment_url'] ?>" method="post">
+<input type="text" name="comment" size="50"> <input type="submit" value="<?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M027') ?>">
+</form>
+</td>
+</tr>
+<?php
+ }
+?>
+</table>
+<br>
+
+
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("Community", "FileDetail.tpl.php",'M028') ?></a><br>
--- /dev/null
+<?php
+// $Id: Folder.tpl.php,v 1.24 2007/03/28 08:39:32 w-ota Exp $
+?>
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_user_community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "Folder.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "Folder.tpl.php",'M002');
+?>
+<div class="ttl"><?= $title ?> [<a href="<?= $this->_tpl_vars['search_folder_url'] ?>"><?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M003') ?></a>]</div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_obj_row_array'] as $path_folder_obj) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder_obj['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder_obj['name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<?php
+ // ¸ø³«ÈÏ°Ïɽ¼¨
+ $target_folder_open_level_row = $this->_tpl_vars['target_folder_open_level_row'];
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ foreach ($target_folder_open_level_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_info = "";
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+
+ $trusted_community_info = '<a href="' . $trusted_community_row['community_top_page_url'] . '">';
+ $trusted_community_info .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_info .= '</a>';
+
+ array_push($trusted_community_info_array, $trusted_community_info);
+ }
+
+ print '<table class="open_level_table"><tr><td>';
+ print ACSMsg::get_msg("Community", "Folder.tpl.php",'M004')." : ";
+ print $target_folder_open_level_row['name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print '</td></tr></table>';
+ print "\n";
+?>
+
+<?php if ($this->_tpl_vars['is_community_member'] && !$this->_tpl_vars['is_put_folder']) { ?>
+ <form name="upload_file" action="<?= $this->_tpl_vars['upload_file_url'] ?>" method="POST" enctype="multipart/form-data">
+ <p>
+ <span style="border-style: solid; border-width: 1px; background: #FFF5AA; border-color: #555555; padding: 10px; margin: 5px 0 5px 0;">
+ <input type="file" name="new_file" size="30">
+ [<input type="checkbox" value="t" name="send_announce_mail" <?= $this->_tpl_vars['send_annouce_mail_checked'] ?>>
+ <?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M021') ?>]
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M005') ?>">
+ <a href="<?= $this->_tpl_vars['upload_file_url'] ?>"><?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M006') ?></a>
+ </span>
+ </p>
+ </form>
+
+ <p>
+ <form name="operation" action="" method="POST">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M007') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['move_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M008') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['rename_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder.tpl.php",'M009') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['delete_folder_url'] ?>')">
+ <?php
+ if ($this->_tpl_vars['edit_folder_url']) {
+ print '<input type="button" value="'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M010').'" onClick="submit_operation(this.form, \'' . $this->_tpl_vars['edit_folder_url'] . '\')">';
+ }
+ ?>
+ </p>
+
+ <script type="text/javascript">
+ <!--
+ function submit_operation (form_obj, submit_url) {
+ form_obj.action = submit_url;
+ form_obj.submit();
+ }
+ //-->
+ </script>
+<?php } ?>
+
+<p>
+<?php
+ /* ¥Õ¥©¥ë¥À°ìÍ÷ɽ¼¨ */
+ echo "[ ".ACSMsg::get_msg("Community", "Folder.tpl.php",'M011')." | <a href=\"" .$this->_tpl_vars['folder_group_mode_url']. "\">".ACSMsg::get_msg("Community", "Folder.tpl.php",'M012')."</a> ]<br><br>";
+
+ if (count($this->_tpl_vars['folder_row_array']) > 0 or count($this->_tpl_vars['file_row_array']) > 0 ) {
+ print '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">' . "\n";
+ print '<tr>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M013').'</th>' . "\n";
+ if ($this->_tpl_vars['is_community_member']) {
+ // ÁàºîÍÑ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹Ê¬
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M014').'</th>' . "\n";
+ }
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M015').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M016').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M017').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M018').'</th>' . "\n";
+ if ($this->_tpl_vars['is_root_folder']) {
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M004').'</th>' . "\n";
+ }
+ print '</tr>' . "\n";
+ }
+
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row ) {
+ print "<tr>\n";
+
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ */
+ print "<td align=\"center\" bgcolor=\"#ffffff\">";
+ print '[<a href="' . $folder_row['detail_url'] . '">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M020').'</a>]';
+ print "</td>\n";
+
+ /* ÁàºîÍѤΥÁ¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ */
+ if ($this->_tpl_vars['is_community_member']) {
+ if ($folder_row['is_put']) {
+ $disabled_str = " disabled";
+ } else {
+ $disabled_str = "";
+ }
+ print '<td align="center" bgcolor="#ffffff">';
+ print '<input type="checkbox" name="selected_folder[]" value="' . $folder_row['folder_id'] . '"' . $disabled_str . '>';
+ print "</td>\n";
+ }
+
+ /* ¥Õ¥©¥ë¥À²èÁü */
+ if ($folder_row['is_put']) {
+ $folder_img = ACS_IMAGE_DIR . 'put_folder.png';
+ } else {
+ $folder_img = ACS_IMAGE_DIR . 'folder.png';
+ }
+ print "<td bgcolor=\"#ffffff\">";
+ print '<table class="layout_table"><tr>';
+ print "<td bgcolor=\"#ffffff\">";
+ print '<img src="' . $folder_img . '">';
+ print "</td>";
+
+ /* ¥Õ¥©¥ë¥À̾ (¥ê¥ó¥¯) */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $folder_row['link_url'] . '">';
+ print htmlspecialchars($folder_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $folder_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($folder_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print "<td bgcolor=\"#ffffff\">";
+ print htmlspecialchars($folder_row['update_date']);
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ foreach ($folder_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_info = "";
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+
+ $trusted_community_info = '<a href="' . $trusted_community_row['community_top_page_url'] . '">';
+ $trusted_community_info .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_info .= '</a>';
+
+ array_push($trusted_community_info_array, $trusted_community_info);
+ }
+
+ print "<td bgcolor=\"#ffffff\">";
+ print $folder_row['open_level_name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+ print "</tr>\n";
+ }
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row ) {
+ print "<tr>\n";
+
+ /* ¥Õ¥¡¥¤¥ë¾ÜºÙ */
+ print '<td align="center" class="nowrap" bgcolor="#ffffff">';
+ print '[<a href="' . $file_row['detail_url'] . '">'.ACSMsg::get_msg("Community", "Folder.tpl.php",'M020').'</a>]';
+ print '</td>' . "\n";
+
+ /* ÁàºîÍѤΥÁ¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ */
+ if ($this->_tpl_vars['is_community_member']) {
+ if ($file_row['is_put']) {
+ $disabled_str = " disabled";
+ } else {
+ $disabled_str = "";
+ }
+ print '<td align="center" bgcolor="#ffffff">';
+ print '<input type="checkbox" name="selected_file[]" value="' . $file_row['file_id'] . '"' . $disabled_str . '>';
+ print "</td>\n";
+ }
+
+ /* ¥Õ¥©¥ë¥À²èÁü */
+ /* ¥Õ¥¡¥¤¥ë²èÁü */
+ if ($file_row['is_put']) {
+ $file_img = ACS_IMAGE_DIR . 'put_file.gif';
+ } else {
+ $file_img = ACS_IMAGE_DIR . 'file.gif';
+ }
+ print "<td bgcolor=\"#ffffff\">";
+ print '<table class="layout_table"><tr>';
+ print "<td bgcolor=\"#ffffff\">";
+ print '<img src="' . $file_img . '">';
+ print "</td>";
+
+ /* ¥Õ¥¡¥¤¥ë̾ (¥ê¥ó¥¯) */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $file_row['link_url'] . '">';
+ print htmlspecialchars($file_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $file_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($file_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print "<td bgcolor=\"#ffffff\">";
+ print $file_row['update_date'];
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print '<td align="right" bgcolor="#ffffff">';
+ print $file_row['file_size'];
+ print "</td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+ }
+
+ print "</tr>\n";
+ }
+ if (count($this->_tpl_vars['folder_row_array']) > 0 or count($this->_tpl_vars['file_row_array']) > 0 ) {
+ print "</table>\n";
+ }
+?>
+</p>
+</form>
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_info_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_info_row']['community_name']) . " ".ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M001');
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M003') ?></div>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<p>
+<!-- layout_table start //-->
+<table class="layout_table">
+<tr>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['edit_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['edit_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M004').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['move_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['move_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M005').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['delete_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['delete_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M006').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M007') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['folder_name']) ?><br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M008') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['comment']) ?><br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <?php
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ if ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) {
+ foreach ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = "<a href=\"$trusted_community_row[community_top_page_url]\">";
+ $trusted_community_name .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_name .= "</a>";
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ }
+
+ print htmlspecialchars($this->_tpl_vars['detail_folder_row']['open_level_name']);
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ ?>
+ <br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M010') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['detail_folder_row']['entry_user_community_link_url'] ?>">
+ <?= $this->_tpl_vars['detail_folder_row']['entry_user_community_name'] ?>
+ </a>
+ (<?= $this->_tpl_vars['detail_folder_row']['entry_date'] ?>)
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M011') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['detail_folder_row']['update_user_community_link_url'] ?>">
+ <?= $this->_tpl_vars['detail_folder_row']['update_user_community_name'] ?>
+ </a>
+ (<?= $this->_tpl_vars['detail_folder_row']['update_date'] ?>)
+ </td>
+</tr>
+</table>
+
+</td></tr>
+</table>
+<!-- layout_table end //-->
+</p>
+
+<p>
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M012') ?></a>
+</p>
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_user_community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M002');
+?>
+<div class="ttl"><?= $title ?> [<a href="<?= $this->_tpl_vars['search_folder_url'] ?>"><?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M003') ?></a>]</div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_obj_row_array'] as $path_folder_obj) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder_obj['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder_obj['name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<?php
+ // ¸ø³«ÈÏ°Ïɽ¼¨
+ $target_folder_open_level_row = $this->_tpl_vars['target_folder_open_level_row'];
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ foreach ($target_folder_open_level_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_info = "";
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+
+ $trusted_community_info = '<a href="' . $trusted_community_row['community_top_page_url'] . '">';
+ $trusted_community_info .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_info .= '</a>';
+
+ array_push($trusted_community_info_array, $trusted_community_info);
+ }
+
+ print '<table class="open_level_table"><tr><td>';
+ print ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M004')." : ";
+ print $target_folder_open_level_row['name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print '</td></tr></table>';
+ print "\n";
+?>
+
+<?php if ($this->_tpl_vars['is_community_member']) { ?>
+ <form name="upload_file" action="<?= $this->_tpl_vars['upload_file_url'] ?>" method="POST" enctype="multipart/form-data">
+ <p>
+ <span style="border-style: solid; border-width: 1px; border-color: #555555; background: #FFF5AA; padding: 10px; margin: 5px 0 5px 0;">
+ <input type="file" name="new_file" size="30">
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M005') ?>">
+ <a href="<?= $this->_tpl_vars['upload_file_url'] ?>"><?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M006') ?></a>
+ </span>
+ </p>
+ </form>
+
+ <p>
+ <form name="operation" action="" method="POST">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M007') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['move_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M008') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['rename_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M009') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['delete_folder_url'] ?>')">
+ <?php
+ if ($this->_tpl_vars['edit_folder_url']) {
+ print '<input type="button" value="'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M010').'" onClick="submit_operation(this.form, \'' . $this->_tpl_vars['edit_folder_url'] . '\')">';
+ }
+ ?>
+ </p>
+
+ <script type="text/javascript">
+ <!--
+ function submit_operation (form_obj, submit_url) {
+ form_obj.action = submit_url;
+ form_obj.submit();
+ }
+ //-->
+ </script>
+<?php } ?>
+
+<p>
+<?php
+ /* ¥Õ¥©¥ë¥À°ìÍ÷ɽ¼¨ */
+ echo "[ <a href=\"$this->_tpl_vars[folder_url]\">".ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M011')."</a> | ".ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M012')." ]<br><br>";
+
+ if (count($this->_tpl_vars['folder_row_array']) > 0) {
+ print '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">' . "\n";
+ print '<tr>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M013').'</th>' . "\n";
+ if ($this->_tpl_vars['is_community_member']) {
+ // ÁàºîÍÑ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹Ê¬
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M014').'</th>' . "\n";
+ }
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M015').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M016').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M017').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M018').'</th>' . "\n";
+ if ($this->_tpl_vars['is_root_folder']) {
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M004').'</th>' . "\n";
+ }
+ print '</tr>' . "\n";
+ }
+
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row ) {
+ print "<tr>\n";
+
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ */
+ print '<td align="center" bgcolor="#ffffff" class=\"nowrap\">';
+ print '[<a href="' . $folder_row['detail_url'] . '">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M020').'</a>]';
+ print "</td>\n";
+
+ /* ÁàºîÍѤΥÁ¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ */
+ if ($this->_tpl_vars['is_community_member']) {
+ if ($folder_row['is_put']) {
+ $disabled_str = " disabled";
+ } else {
+ $disabled_str = "";
+ }
+ print '<td bgcolor="#ffffff" align="center">';
+ print '<input type="checkbox" name="selected_folder[]" value="' . $folder_row['folder_id'] . '"' . $disabled_str . '>';
+ print "</td>\n";
+ }
+
+ /* ¥Õ¥©¥ë¥À²èÁü */
+ if ($folder_row['is_put']) {
+ $folder_img = ACS_IMAGE_DIR . 'put_folder.png';
+ } else {
+ $folder_img = ACS_IMAGE_DIR . 'folder.png';
+ }
+ print '<td bgcolor="#ffffff">';
+ print '<table class="layout_table"><tr>';
+ print "<td>";
+ print '<img src="' . $folder_img . '">';
+ print "</td>";
+
+ /* ¥Õ¥©¥ë¥À̾ (¥ê¥ó¥¯) */
+ print "<td>";
+ print '<a href="' . $folder_row['link_url'] . '">';
+ print htmlspecialchars($folder_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print '<td bgcolor="#ffffff">';
+ print '<a href="' . $folder_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($folder_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print '<td bgcolor="#ffffff">';
+ print htmlspecialchars($folder_row['update_date']);
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ foreach ($folder_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_info = "";
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+
+ $trusted_community_info = '<a href="' . $trusted_community_row['community_top_page_url'] . '">';
+ $trusted_community_info .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_info .= '</a>';
+
+ array_push($trusted_community_info_array, $trusted_community_info);
+ }
+
+ print '<td bgcolor="#ffffff">';
+ print $folder_row['open_level_name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+ print "</tr>\n";
+ }
+ if (count($this->_tpl_vars['folder_row_array']) > 0) {
+ print "</table><br>\n";
+ }
+?>
+<?php
+// ¥°¥ë¡¼¥×ɽ¼¨
+
+
+foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'] as $file_contents_type_master_row_array) {
+ $file_category_code = $file_contents_type_master_row_array['file_category_code'];
+ $file_category_name = $file_contents_type_master_row_array['file_category_name'];
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ÎÏ¢ÁÛÇÛÎó¤¬1·ï°Ê¾å¤¢¤ë¾ì¹ç
+ if (count($this->_tpl_vars['file_detail_info_row_array_array'][$file_category_code]['file_detail_info_row_array']) > 0) {
+ echo "<div class=\"subsub_title\">";
+ echo $file_contents_type_master_row_array['file_category_name'];
+ echo "</div>\n";
+
+ echo '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">';
+ echo "<tr>";
+ if ($this->_tpl_vars['is_community_member']) {
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M013')."</th>";
+ }
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M014')."</th>";
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M015')."</th>";
+
+ // ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤´¤È¤Î¥¿¥¤¥È¥ëɽ¼¨
+ foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'][$file_category_code]['file_contents_type_master_row_array']
+ as $file_contents_type_master_row) {
+ echo '<th id="myttl" bgcolor="#DEEEBD">';
+ echo htmlspecialchars($file_contents_type_master_row['file_contents_type_name']);
+ echo "</th>";
+ }
+ echo "</tr>\n";
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ foreach ($this->_tpl_vars['file_detail_info_row_array_array'][$file_category_code]['file_detail_info_row_array'] as $file_detail_info_row) {
+ echo "<tr>\n";
+
+ // ´ðËܾðÊó
+ echo "<td align=\"center\" bgcolor=\"#ffffff\" class=\"nowrap\">[<a href=\"$file_detail_info_row[file_detail_url]\">".ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M020')."</a>]</td>\n";
+
+ if ($file_detail_info_row['is_put']) {
+ $disabled_str = " disabled";
+ } else {
+ $disabled_str = "";
+ }
+ if ($this->_tpl_vars['is_community_member']) {
+ echo "<td bgcolor=\"#ffffff\" align=\"center\"><input type=\"checkbox\" name=\"selected_file[]\" value=\"$file_detail_info_row[file_id]\"$disabled_str></td>\n";
+ }
+
+ if ($file_category_name == ACSMsg::get_msg("Community", "Folder_group.tpl.php",'M025')) {
+ echo "<td bgcolor=\"#ffffff\" align=\"center\">";
+ echo "<img src=\"$file_detail_info_row[image_url]\"><br>";
+ echo "<a href=\"$file_detail_info_row[link_url]\">$file_detail_info_row[display_file_name]</a>";
+ echo "</td>\n";
+ } else {
+ echo "<td bgcolor=\"#ffffff\"><a href=\"$file_detail_info_row[link_url]\">$file_detail_info_row[display_file_name]</a></td>\n";
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤´¤È¤Î¥³¥ó¥Æ¥ó¥Äɽ¼¨
+ foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'][$file_category_code]['file_contents_type_master_row_array']
+ as $file_contents_type_master_row) {
+ echo "<td bgcolor=\"#ffffff\">";
+ $file_contents_value = $file_detail_info_row['file_contents_row_array'][$file_contents_type_master_row['file_contents_type_code']]['file_contents_value'];
+ if ($file_contents_value != '') {
+ echo nl2br(htmlspecialchars($file_contents_value));
+ } else {
+ echo " ";
+ }
+ echo "</td>";
+ }
+
+ echo "</tr>\n";
+ }
+
+ echo "</table><br>\n";
+ }
+}
+
+?>
+</p>
+<?php if ($this->_tpl_vars['is_community_member']) { ?>
+</form>
+<?php } ?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 16:00:00 |
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// | Authors: kuwayama v 1.21 2006/03/08 @update akitsu |
+// +----------------------------------------------------------------------+
+// Index.tpl.php
+// $Id: Index.tpl.php,v 1.33 2007/03/28 05:58:19 w-ota Exp $
+?>
+
+<div class="ttl">
+<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg('Community', 'Index.tpl.php','M001') ?>
+<a href="<?= $this->_tpl_vars['PressRelease_community_url'] ?>"><img src="<?php echo ACS_IMAGE_DIR . "rss.png" ?>" border=0></a>
+</div>
+
+<br>
+<table class="layout_table">
+<tr>
+ <td valign="top">
+ <table class="layout_table" width="150px">
+ <tr>
+ <td align="center">
+ <!-- ¼Ì¿¿ -->
+<?php
+if ($this->_tpl_vars['edit_profile_image_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['edit_profile_image_url'] . "\">";
+ echo '<img src="' . $this->_tpl_vars['community_row']['image_url'] . '" style="margin-top:10px;margin-bottom:5px" width="120px" border="0"></a><br>';
+ // ¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô¤Î¾ì¹ç¤Î¤ßÊѹ¹¤Ç¤¤ë
+ echo "<a href=\"" . $this->_tpl_vars['edit_profile_image_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M002')."</a><br>\n";
+} else {
+ echo '<img src="'. $this->_tpl_vars['community_row']['image_url'] . '" style="margin-top:10px;margin-bottom:5px" width="120px" border="0"><br>';
+}
+?>
+ </td>
+ </tr>
+ <tr>
+ <td class="nowrap">
+ <br>
+ <a href="<?= $this->_tpl_vars['bbs_url'] ?>"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M003') ?></a><br>
+ <a href="<?= $this->_tpl_vars['community_folder_url'] ?>"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M004') ?></a><br>
+<?php
+if ($this->_tpl_vars['community_schedule_url']) {
+ echo "<a href=\"".$this->_tpl_vars['community_schedule_url']."\">". ACSMsg::get_msg('Community', 'Index.tpl.php','M038') ."</a><br>\n";
+}
+if ($this->_tpl_vars['edit_community_admin_url']) {
+ // ¤³¤Î¥³¥ß¥å¥Ë¥Æ¥£¤Î´ÉÍý¼Ô¤Î¾ì¹ç¤Î¤ßÊѹ¹¤Ç¤¤ë
+ echo "<a href=\"" . $this->_tpl_vars['community_change_url'] . "\">" . ACSMsg::get_msg('Community', 'Index.tpl.php','M005') . "</a><br>\n";
+}
+?>
+<br>
+<?php
+if ($this->_tpl_vars['invite_to_community_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['invite_to_community_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M006')."</a><br>\n";
+}
+if ($this->_tpl_vars['edit_community_admin_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['edit_community_admin_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M007')."</a><br>\n";
+}
+if ($this->_tpl_vars['community_link_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['community_link_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M008')."</a><br>\n";
+}
+if ($this->_tpl_vars['edit_external_rss_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['edit_external_rss_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M039')."</a><br>\n";
+}
+if ($this->_tpl_vars['delete_community_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['delete_community_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M009')."</a><br>\n";
+}
+?>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="15px"> </td>
+ <td>
+<?php
+// ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã
+if ($this->_tpl_vars['join_community_url']) {
+ echo "<div align=\"right\">";
+ echo "<form>";
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg('Community', 'Index.tpl.php','M010')."\" onclick=\"location.href='" .$this->_tpl_vars['join_community_url']. "'\">";
+ echo "</form>";
+ echo "</div>";
+ echo "<br>";
+}
+if ($this->_tpl_vars['leave_community_url']) {
+ echo "<div align=\"right\">";
+ echo "<form>";
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg('Community', 'Index.tpl.php','M011')."\" onclick=\"location.href='" .$this->_tpl_vars['leave_community_url']. "'\">";
+ echo "</form>";
+ echo "</div>";
+ echo "<br>";
+}
+
+// ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã
+if ($this->_tpl_vars['waiting_for_join_community_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"" . $this->_tpl_vars['waiting_for_join_community_url'] . "\">";
+ echo ACSMsg::get_msg('Community', 'Index.tpl.php','M012')." (" . $this->_tpl_vars['waiting_for_join_community_row_array_num'] . ACSMsg::get_msg('Community', 'Index.tpl.php','M015').")";
+ echo "</a>";
+ echo "</div>";
+ echo "<br>";
+}
+// ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+if ($this->_tpl_vars['waiting_for_parent_community_link_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"" . $this->_tpl_vars['waiting_for_parent_community_link_url'] . "\">";
+ echo ACSMsg::get_msg('Community', 'Index.tpl.php','M013')." (" . $this->_tpl_vars['waiting_for_parent_community_link_row_array_num'] . ACSMsg::get_msg('Community', 'Index.tpl.php','M015').")";
+ echo "</a>";
+ echo "</div>";
+ echo "<br>";
+}
+// ÂÔµ¡: ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+if ($this->_tpl_vars['waiting_for_sub_community_link_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"" . $this->_tpl_vars['waiting_for_sub_community_link_url'] . "\">";
+ echo ACSMsg::get_msg('Community', 'Index.tpl.php','M014')." (" . $this->_tpl_vars['waiting_for_sub_community_link_row_array_num'] . ACSMsg::get_msg('Community', 'Index.tpl.php','M015').")";
+ echo "</a>";
+ echo "</div>";
+ echo "<br>";
+}
+?>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="500px">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M016') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M017') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['community_row']['register_date'] ?></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M018') ?></td>
+ <td bgcolor="#ffffff"><?= nl2br(ACSTemplateLib::auto_link(htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['community_profile']['contents_value']))) ?></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M019') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['community_row']['category_name']) ?></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M020') ?></td>
+ <td bgcolor="#ffffff">
+<?php
+foreach ($this->_tpl_vars['community_admin_user_info_row_array'] as $community_admin_user_info_row) {
+ echo "<a href=\"" . $community_admin_user_info_row['top_page_url'] . "\">";
+ echo htmlspecialchars($community_admin_user_info_row['community_name']);
+ echo "</a><br>\n";
+}
+?>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M021') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['community_row']['community_member_num'] ?> <?= ACSMsg::get_msg('Community', 'Index.tpl.php','M022') ?></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M023') ?></td>
+ <td bgcolor="#ffffff">
+<?php
+if ($this->_tpl_vars['community_row']['admission_flag'] == 't') {
+ echo ACSMsg::get_msg('Community', 'Index.tpl.php','M024')."<br>\n";
+ if (count($this->_tpl_vars['community_row']['join_trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['community_row']['join_trusted_community_row_array'] as $join_trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= "<a href=\"" .$join_trusted_community_row['top_page_url']. "\">";
+ $trusted_community_str .= htmlspecialchars($join_trusted_community_row['community_name']);
+ $trusted_community_str .= "</a>";
+ }
+ echo "<table class=\"inner_layout_table\" bgcolor=\"#dddddd\"><tr>";
+ echo "<td class=\"layout_table\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M025')." : " . $trusted_community_str . "</td>";
+ echo "</tr></table>\n";
+ }
+} else {
+ echo ACSMsg::get_msg('Community', 'Index.tpl.php', 'M026')."<br>\n";
+}
+?>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php', 'M027') ?></td>
+ <td bgcolor="#ffffff">
+<?php
+echo htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['bbs']['open_level_name']);
+if ($this->_tpl_vars['community_row']['contents_row_array']['bbs']['open_level_name'] == ACSMsg::get_mst('open_level_master', 'D04')) {
+ if (count($this->_tpl_vars['community_row']['contents_row_array']['bbs']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['community_row']['contents_row_array']['bbs']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= "<a href=\"" . $trusted_community_row['top_page_url'] . "\">";
+ $trusted_community_str .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_str .= "</a>";
+ }
+ echo "<table class=\"inner_layout_table\" bgcolor=\"#dddddd\"><tr>";
+ echo "<td class=\"layout_table\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M028')." : " . $trusted_community_str . "</td>";
+ echo "</tr></table>\n";
+ }
+}
+?>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php', 'M029') ?></td>
+ <td bgcolor="#ffffff">
+<?php
+echo htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['open_level_name']);
+if ($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['open_level_name'] == ACSMsg::get_mst('open_level_master','D04')) {
+ if (count($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['community_row']['contents_row_array']['community_folder']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= "<a href=\"" . $trusted_community_row['top_page_url'] . "\">";
+ $trusted_community_str .= htmlspecialchars($trusted_community_row['community_name']);
+ $trusted_community_str .= "</a>";
+ }
+ echo "<table class=\"inner_layout_table\" bgcolor=\"#dddddd\"><tr>";
+ echo "<td class=\"layout_table\">".ACSMsg::get_msg('Community', 'Index.tpl.php','M028')." : " . $trusted_community_str . "</td>";
+ echo "</tr></table>\n";
+ }
+}
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg('Community', 'Index.tpl.php', 'M030') ?></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['community_row']['contents_row_array']['self']['open_level_name']) ?>
+</td>
+</tr>
+
+<?php
+// ¿Æ¥³¥ß¥å¥Ë¥Æ¥£Îó
+if ($this->_tpl_vars['parent_community_row_array']) {
+ echo "<tr>\n";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M031')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ foreach ($this->_tpl_vars['parent_community_row_array'] as $parent_community_row) {
+ echo "<a href=\"" . $parent_community_row['top_page_url'] . "\">" . htmlspecialchars($parent_community_row['community_name']) . "</a><br>\n";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+
+// ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£Îó
+if ($this->_tpl_vars['sub_community_row_array']) {
+ echo "<tr>\n";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M032')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ foreach ($this->_tpl_vars['sub_community_row_array'] as $sub_community_row) {
+ echo "<a href=\"" . $sub_community_row['top_page_url'] . "\">" . htmlspecialchars($sub_community_row['community_name']) . "</a><br>\n";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+
+<?php
+// ¿·Ãåµ»ö
+if ($this->_tpl_vars['bbs_row_array']) {
+ echo "<tr>\n";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M033')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ foreach ($this->_tpl_vars['bbs_row_array'] as $bbs_row) {
+ echo $bbs_row['bbs_last_post_date'] . " ";
+ echo "<a href=\"" . $bbs_row['bbs_res_url'] . "\">";
+ echo htmlspecialchars(ACSTemplateLib::trim_long_str($bbs_row['subject']));
+ echo "</a> (" . $bbs_row['bbs_res_num'] . ")<br>\n";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+
+</table>
+
+<?php
+if ($this->_tpl_vars['edit_community_profile_url']) {
+ echo "<br><div align=\"right\">\n";
+ echo "<a href=\"" . $this->_tpl_vars['edit_community_profile_url'] . "\">".ACSMsg::get_msg('Community', 'Index.tpl.php', 'M034')."</a>\n";
+ echo "</div>\n";
+}
+?>
+
+</td>
+</tr>
+</table>
+<br><br>
+
+
+<table border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCC33">
+<tr>
+<td bgcolor="#F6F2B8" id="myttl" style="padding:5px;"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M035') ?> (<?= $this->_tpl_vars['community_row']['community_member_num'] ?><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M022') ?>)</td>
+</tr>
+<tr>
+<td bgcolor="#FFFFFF">
+
+<table class="common_table" border="0" cellspacing="10" cellpadding="5">
+<?php
+if ($this->_tpl_vars['community_member_display_user_info_row_array']) {
+ $count = 0;
+ foreach ($this->_tpl_vars['community_member_display_user_info_row_array'] as $community_member_user_info_row) {
+ if ($count % 6 == 0) {
+ echo "<tr>";
+ }
+ echo '<td align="center" id="mytbl">';
+ echo '<a href="' . $community_member_user_info_row['top_page_url'] . '"><img src="' .
+ $community_member_user_info_row['image_url'] . '" border="0"></a><br>';
+ echo "<a href=\"" . $community_member_user_info_row['top_page_url'] . "\">";
+ echo htmlspecialchars($community_member_user_info_row['community_name']);
+ echo "</a>";
+ echo "(" . $community_member_user_info_row['friends_row_array_num'] . ")";
+ echo "</td>";
+ if ($count % 6 == 5) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td id=\"mytbl\">No Member</td>";
+ echo "</tr>\n";
+}
+?>
+
+<tr>
+<td colspan="6" style="padding:5px;" bgcolor="ffffff">
+
+<a class="ichiran3" href="<?= $this->_tpl_vars['community_member_list_url'] ?>"><?= ACSMsg::get_msg('Community', 'Index.tpl.php','M036') ?></a><br>
+<?php
+if ($this->_tpl_vars['delete_community_member_list_url']) {
+ echo '<a class="ichiran3" href="' . $this->_tpl_vars['delete_community_member_list_url'] . '">'.ACSMsg::get_msg('Community', 'Index.tpl.php','M037').'</a><br>';
+ echo "\n";
+}
+
+?>
+</td>
+</tr>
+</table>
+
+
+</tr>
+</table>
+
--- /dev/null
+<?= ACSMsg::get_msg("Community", "Index_error.tpl.php", 'M001') ?>
--- /dev/null
+<?php
+// $Id: InviteToCommunity.tpl.php,v 1.5 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M002') ?>
+</div>
+<br>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M003') ?><br>
+<br>
+
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff">
+<?php
+foreach ($this->_tpl_vars['friends_row_array'] as $user_info_row) {
+ echo "<input type=\"checkbox\" name=\"user_community_id_array[]\" value=\"$user_info_row[user_community_id]\"";
+ if ($user_info_row['is_community_member']) {
+ echo " disabled";
+
+ } elseif ($this->_tpl_vars['form']['user_community_id_array']) {
+ // ¥¨¥é¡¼»þ¤ÎÆþÎÏÃÍÉü¸µ½èÍý
+ if (in_array($user_info_row['user_community_id'], $this->_tpl_vars['form']['user_community_id_array'])) {
+ echo " checked";
+ }
+ }
+ echo ">";
+ echo htmlspecialchars($user_info_row['user_name']);
+ echo " (" . htmlspecialchars($user_info_row['community_name']) . ")";
+ echo "<br>\n";
+}
+?>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><textarea name="message" cols="50" rows="4"><?= $this->_tpl_vars['form']['message'] ?></textarea></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "InviteToCommunity.tpl.php",'M005') ?>">
+</form>
--- /dev/null
+<?php
+// $Id: JoinCommunity.tpl.php,v 1.2 2006/11/20 08:44:14 w-ota Exp $
+?>
+
+<span class="sub_title">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "JoinCommunity.tpl.php", 'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "JoinCommunity.tpl.php", 'M002') ?>
+</span>
+<br><br>
+
+<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "JoinCommunity.tpl.php", 'M003') ?><br>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "JoinCommunity.tpl.php", 'M004') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "JoinCommunity.tpl.php", 'M005') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+
+</form>
--- /dev/null
+<?php
+// $Id: JoinCommunity_admission.tpl.php,v 1.2 2006/11/20 08:44:14 w-ota Exp $
+?>
+
+<span class="sub_title">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M002') ?>
+</span>
+<br><br>
+
+<?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?><?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M003') ?><br>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M004') ?> :<br>
+<textarea name="message" cols="50" rows="4"></textarea><br>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M005') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "JoinCommunity_admission.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+
+</form>
--- /dev/null
+<?php
+ $title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M002');
+?>
+<span class="sub_title"><?= $title ?></span>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M004') ?><br>
+<?= ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M005') ?><br>
+</div>
+
+<p>
+<form name="delete" method="POST" action="<?=$this->_tpl_vars['leave_action_url'] ?>">
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M006') ?>">
+<input type="button" onClick="location.href='<?=$this->_tpl_vars['cancel_action_url'] ?>'" value="<?= ACSMsg::get_msg("Community", "LeaveCommunity_confirm.tpl.php",'M007') ?>">
+</form>
+</p>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M001') ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="rename_folder_list" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<p>
+<?php
+ // °ÜÆ°Àè¥Õ¥©¥ë¥ÀÁªÂò»èºîÀ®
+ if (count($this->_tpl_vars['folder_tree'])) {
+ print ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M002').'¡§';
+ print '<select name="selected_move_folder_id">';
+ print '<option value="">'.ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M003');
+ foreach ($this->_tpl_vars['folder_tree'] as $folder_row) {
+ $selected_str = "";
+ if ($folder_row['is_selected']) {
+ $selected_str = " selected";
+ }
+ print '<option value="' . $folder_row['folder_id'] . '"' . $selected_str . '>';
+ print str_repeat("-", $folder_row['tree_level']);
+ print ' ' . htmlspecialchars($folder_row['folder_name']);
+ print "\n";
+ }
+ print '</select>';
+ print "\n";
+
+ } else {
+ // ¥Õ¥©¥ë¥À¤¬¤Ê¤¤¾ì¹ç
+ print ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M004');
+ }
+?>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M005') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "MoveFolderList.tpl.php",'M006') ?>" onClick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("Community", "RenameFolderList.tpl.php",'M001') ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="rename_folder_list" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ // ¿·¥Õ¥©¥ë¥À̾ÆþÎÏ¥Õ¥©¡¼¥à
+ print '<td>';
+ print '<input type="text" name="new_folder_name[\'' . $folder_row['folder_id'] . '\']">';
+ print '</td>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ // ¿·¥Õ¥¡¥¤¥ë̾ÆþÎÏ¥Õ¥©¡¼¥à
+ print '<td>';
+ print '<input type="text" name="new_file_name[\'' . $file_row['file_id'] . '\']">';
+ print '</td>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "RenameFolderList.tpl.php",'M002') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "RenameFolderList.tpl.php",'M003') ?>" onClick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// $Id: RestoreHistoryFile.tpl.php,v 1.4 2007/03/28 08:39:32 w-ota Exp $
+?>
+
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_row']['community_name']) . " ".ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M001');
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M003') ?> :: <?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M004') ?></div>
+<br>
+
+<?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M005') ?><br><br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M006') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table"><tr>
+ <td><img src="<?= ACS_IMAGE_DIR . "file.gif" ?>"></td>
+ <td>
+ <a href="<?= $this->_tpl_vars['file_history_row']['download_history_file_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_history_row']['display_file_name']) ?></a> (<?= htmlspecialchars($this->_tpl_vars['file_history_row']['mime_type']) ?>)
+ </td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M007') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['file_history_row']['file_size_kb'] ?> (<?= $this->_tpl_vars['file_history_row']['file_size'] ?> <?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M008') ?>)</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M009') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M010') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M011') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "RestoreHistoryFile.tpl.php",'M012') ?>" onclick="history.back()">
+
+</form>
--- /dev/null
+<?php
+ //
+ // $Id: Schedule.tpl.php,v 1.1 2006/12/18 07:42:12 w-ota Exp $
+ //
+
+ $target_community_row =& $this->_tpl_vars['target_community_row'];
+ $schedule_list =& $this->_tpl_vars['schedule_list'];
+
+ $title = '<a href="' . $this->_tpl_vars['url_community_top'] . '">';
+ $title .= htmlspecialchars($target_community_row['community_name']);
+ $title .= ' '.ACSMsg::get_msg("Community", "Schedule.tpl.php",'M001');
+ $title .= '</a>';
+ $title .= " :: ".ACSMsg::get_msg("Community", "Schedule.tpl.php",'M002');
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<p>[ <a href="<?= $this->_tpl_vars['url_schedule_new'] ?>"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M003') ?></a> ]</p>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<p>
+<?php if (count($schedule_list) > 0) { ?>
+
+ <table class="schedulelist_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+ <tr>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M004') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M005') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M012') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M006') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M007') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M008') ?></th>
+ <th id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "Schedule.tpl.php",'M009') ?></th>
+ </tr>
+
+ <?php
+ reset($schedule_list);
+ foreach ($schedule_list as $schedule_array) {
+
+ $manage_menu = "";
+ $schedule =& $schedule_array['instance'];
+
+ if ($schedule->is_organizer($this->_tpl_vars['acs_user_info_row'])
+ && $schedule->is_fixed() === FALSE) {
+ $manage_menu = sprintf('[ <a href="%s">%s</a> ] [ <a href="%s">%s</a> ]',
+ $schedule_array['url_edit'],
+ ACSMsg::get_msg("Community", "Schedule.tpl.php",'M010'),
+ $schedule_array['url_decide'],
+ ACSMsg::get_msg("Community", "Schedule.tpl.php",'M011'));
+ }
+
+ ?><tr>
+ <td bgcolor="#ffffff" align="center" nowrap><?= $manage_menu ?></td>
+ <td bgcolor="#ffffff" align="left"
+ ><a href="<?= $schedule_array['url_answer'] ?>"
+ ><?= htmlspecialchars($schedule->schedule_name) ?></a></td>
+ <td bgcolor="#ffffff" align="left" nowrap
+ ><?= htmlspecialchars($schedule->user_community_name) ?></td>
+ <td bgcolor="#ffffff" align="left"><?= htmlspecialchars($schedule_array['disp_detail']) ?></td>
+ <td bgcolor="#ffffff" align="left"><?= $schedule_array['disp_closing'] ?></td>
+ <td bgcolor="#ffffff" align="center"><?= $schedule_array['disp_person_count'] ?></td>
+ <td bgcolor="#ffffff" align="center"><?= $schedule_array['disp_status'] ?></td>
+ </tr><?php
+ }
+
+?>
+ </table>
+
+<?php } else { ?>
+<?php } ?>
+</p>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/17 ver1.0 |
+// |·Ç¼¨ÈÄ¡¡¸¡º÷²èÌÌ ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SearchBBS.tpl.php,v 1.6 2007/03/01 09:01:35 w-ota Exp $
+?>
+<script language="JavaScript">
+<!--
+ function fmTurn(){
+ }
+-->
+</script>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['link_page_url']['top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M001') ?></a>
+ :: <a href="<?= $this->_tpl_vars['link_page_url']['bbs_page_url'] ?>"><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M003') ?>
+</div>
+
+<br>
+<form name="search_form_default" action="<?= $this->_tpl_vars['link_page_url']['search_bbs_url'] ?>" method="get" enctype="multipart/form-data">
+ <input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+ <input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+ <input type="hidden" name="community_id" value="<?= $this->_tpl_vars['community_id'] ?>">
+ <input type="hidden" name="move_id" value="<?= $this->_tpl_vars['move_id'] ?>">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<!--¥¡¼¥ï¡¼¥É -->
+ <input type="text" name="q_text" value="" size="30" style="ime-mode: active;">
+<!--¸¡º÷ÂÐ¾Ý -->
+ <input type="checkbox" name="search_title" value="title_in_serch" checked><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M004') ?>
+ <input type="checkbox" name="search_all" value="subject_in_serch" checked><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M005') ?>
+<!--¸ø³«ÈÏ°Ï -->
+<?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M006') ?>
+<?php
+ // ¸ø³«ÈÏ°Ï
+ echo "<select name=\"open_level_code\">\n";
+ // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+ unset($selected);
+ // µ¬Äê¤Î¥×¥ë¥À¥¦¥ó
+ echo "<option value=\"00\" " .$selected['00']. " selected>";
+ echo htmlspecialchars(ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M007')) . "\n";
+ // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"" .$open_level_master_row['open_level_code']. "\"" .$selected[$open_level_master_row['open_level_code']] . ">";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ echo "</select>\n";
+?>
+
+ <input type="submit" name="search" value="<?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M003') ?>"><br>
+<!-- Âоݤò¹¤²¤ë -->
+ <input type="checkbox" name ="search_all_about" value="all_in_serch" onChange="fmTurn()"><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M009') ?>
+ </td>
+ </tr>
+ </table>
+</form>
+
+<br>
+<dl>
+ <b><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M010') ?></b><br><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M011') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M012') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M013') ?><br>
+ <br>
+ <dt><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M014') ?></dt>
+ <dd><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M015') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M016') ?><br></dd>
+ <br>
+
+ <dt><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M017') ?></dt>
+ <dd><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M018') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M019') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M020') ?><br>
+ <?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M021') ?><br>
+ </dd>
+ <br>
+ <dt><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M022') ?></dt>
+ <dd><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M023') ?><br></dd>
+ <br>
+ <dt><?= ACSMsg::get_msg("Community", "SearchBBS.tpl.php",'M024') ?><br></dt>
+
+</dl>
+<br>
+
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 16:00:00 |
+// +----------------------------------------------------------------------+
+// $Id: SearchCommunity.tpl.php,v 1.19 2007/03/28 05:58:19 w-ota Exp $
+?>
+
+<div class="ttl">
+<?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M001') ?>
+<a href="<?= $this->_tpl_vars['PressRelease_community_url'] ?>"><img src="<?php echo ACS_IMAGE_DIR . "rss.png" ?>" border=0></a>
+</div>
+
+<p>
+<?php
+if ($this->_tpl_vars['create_community_url']) {
+ echo '<a class="ichiran3" href="' . $this->_tpl_vars['create_community_url'] . '">'.ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M002').'</a><br><br>';
+}
+?>
+</p>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+<tr>
+ <td bgcolor="#FFF5AA">
+ <table class="layout_table">
+ <tr>
+ <td><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M003') ?></td>
+ <td>
+ <input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30">
+ <input type="submit" value="<?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M004') ?>">
+ </td>
+ </tr>
+ <tr>
+ <td><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M005') ?></td>
+ <td>
+ <select name="category_code">
+<?php
+unset($selected);
+$selected[$this->_tpl_vars['form']['category_code']] = ' selected';
+foreach ($this->_tpl_vars['category_master_row_array'] as $category_master_row) {
+ echo "<option value=\"$category_master_row[category_code]\"{$selected[$category_master_row['category_code']]}>";
+ echo htmlspecialchars($category_master_row['category_name']);
+ // ¥³¥ß¥å¥Ë¥Æ¥£¿ô
+ if (isset($category_master_row['community_num'])) {
+ echo ' (' . $category_master_row['community_num'] . ')';
+ }
+ echo "\n";
+}
+?>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M006') ?></td>
+ <td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['admission_flag'] == 't' || $this->_tpl_vars['form']['admission_flag'] == 'f') {
+ $selected[$this->_tpl_vars['form']['admission_flag']] = ' checked';
+} else {
+ $selected['0'] = ' checked';
+}
+?>
+ <input type="radio" name="admission_flag" value="0"<?= $selected['0'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M007') ?>
+ <input type="radio" name="admission_flag" value="f"<?= $selected['f'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M008') ?>
+ <input type="radio" name="admission_flag" value="t"<?= $selected['t'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M009') ?>
+ </td>
+ </tr>
+ <tr>
+ <td><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M010') ?></td>
+ <td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['order'] == 'name' || $this->_tpl_vars['form']['order'] == 'new' || $this->_tpl_vars['form']['order'] == 'community_member_num') {
+ $selected[$this->_tpl_vars['form']['order']] = ' selected';
+} else {
+ $selected['name'] = ' selected';
+}
+?>
+ <select name="order">
+ <option value="community_name"<?= $selected['community_name'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M011') ?>
+ <option value="new"<?= $selected['new'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M012') ?>
+ <option value="community_member_num"<?= $selected['community_member_num'] ?>><?= ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M013') ?>
+ </select>
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+</table>
+
+</form>
+</p>
+
+<?php
+if ($this->_tpl_vars['form']['search'] != '') {
+
+ if (count($this->_tpl_vars['community_row_array'])) {
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ foreach ($this->_tpl_vars['community_row_array'] as $community_row) {
+ echo "<tr>";
+ // ¼Ì¿¿
+ echo "<td align=\"center\" rowspan=\"3\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$community_row[top_page_url]\"><img src=\"$community_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$community_row[top_page_url]\">" . htmlspecialchars($community_row['community_name']) . "</a>";
+ echo "(" . $community_row['community_member_num'] . ")";
+ echo "</td>";
+ // ¼«¸Ê¾Ò²ð
+ echo "<td class=\"nowrap\" id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M014')."</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($community_row['contents_row_array']['community_profile']['contents_value'], 500)));
+ echo "</td>";
+ echo "</tr>\n";
+
+ // ¥«¥Æ¥´¥ê
+ echo "<tr>";
+ echo "<td class=\"nowrap\" id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M005')."</td>";
+ echo "<td bgcolor=\"#ffffff\">" . $community_row['category_name'] . "</td>";
+ echo "</tr>\n";
+
+ // ´ÉÍý¼Ô
+ echo "<tr>";
+ echo "<td class=\"nowrap\" id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M016')."</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ $str = '';
+ foreach ($community_row['community_admin_user_info_row_array'] as $community_admin_user_info_row) {
+ if ($str != '') {
+ $str .= ', ';
+ }
+ $str .= "<a href=\"" . $community_admin_user_info_row['top_page_url'] . "\">";
+ $str .= htmlspecialchars($community_admin_user_info_row['community_name']);
+ $str .= "</a>";
+ }
+ echo $str;
+ echo "</td>";
+ echo "</tr>\n";
+ }
+ echo "</table>\n";
+ echo "<br>\n";
+
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+ } else {
+ echo ACSMsg::get_msg("Community", "SearchCommunity.tpl.php", 'M017')."<br>\n";
+ }
+
+} else {
+ echo $this->_tpl_vars['NewCommunity'];
+}
+?>
--- /dev/null
+<?php
+// $Id: SearchFolder.tpl.php,v 1.6 2007/03/28 08:39:32 w-ota Exp $
+?>
+
+<?php
+$title = '<a href="' . $this->_tpl_vars['community_top_page_url'] . '">';
+$title .= htmlspecialchars($this->_tpl_vars['community_row']['community_name']);
+$title .= ' '.ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M001');
+$title .= '</a>';
+$title .= ' :: ';
+$title .= '<a href="' . $this->_tpl_vars['folder_url'] . '">';
+$title .= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M002');
+$title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M003') ?></div>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="community_id" value="<?= $this->_tpl_vars['community_row']['community_id'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<table class="layout_table">
+<tr>
+<td>¥¡¼¥ï¡¼¥É</td>
+<td><input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30"></td>
+<td><input type="submit" value="<?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M003') ?>"></td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M005') ?></td>
+<td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['target'] == 'folder' || $this->_tpl_vars['form']['target'] == 'file') {
+ $selected[$this->_tpl_vars['form']['target']] = ' checked';
+} else {
+ $selected['folder_file'] = ' checked';
+}
+?>
+<input type="radio" name="target" value="folder_file"<?= $selected['folder_file'] ?>><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M006') ?>
+<input type="radio" name="target" value="folder"<?= $selected['folder'] ?>><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M002') ?>
+<input type="radio" name="target" value="file"<?= $selected['file'] ?>><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M008') ?>
+</td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M009') ?></td>
+<td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['order'] == 'update_date') {
+ $selected[$this->_tpl_vars['form']['order']] = ' selected';
+} else {
+ $selected['name'] = ' selected';
+}
+?>
+<select name="order">
+<option value="name"<?= $selected['name'] ?>><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M010') ?>
+<option value="update_date"<?= $selected['update_date'] ?>><?= ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M011') ?>
+</select>
+</td>
+</tr>
+</table>
+</td></tr></table>
+
+</form>
+</p>
+
+
+<?php
+if ($this->_tpl_vars['form']['search']) {
+ //echo "<table class=\"file_list_table\" border>\n";
+ echo "<table class=\"file_list_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M012')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M013')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M014')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("Community", "SearchFolder.tpl.php",'M015')."</th>\n";
+ echo "</tr>\n";
+
+ // ¥Õ¥©¥ë¥À
+ if (is_array($this->_tpl_vars['folder_row_array'])) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "folder.png\"></td>";
+ echo "<td><a href=\"$folder_row[folder_url]\">" . htmlspecialchars($folder_row['folder_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo"</td>";
+ echo "<td bgcolor=\"#ffffff\">$folder_row[update_date]</td>";
+ echo "<td bgcolor=\"#ffffff\"> </td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($folder_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ if (is_array($this->_tpl_vars['file_info_row_array'])) {
+ foreach ($this->_tpl_vars['file_info_row_array'] as $file_info_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "file.gif\"></td>";
+ echo "<td><a href=\"$file_info_row[download_file_url]\">" . htmlspecialchars($file_info_row['display_file_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo"</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">$file_info_row[update_date]</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">$file_info_row[file_size]</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($file_info_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À
+ if (is_array($this->_tpl_vars['put_folder_row_array'])) {
+ foreach ($this->_tpl_vars['put_folder_row_array'] as $folder_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "put_folder.png\"></td>";
+ echo "<td><a href=\"$folder_row[folder_url]\">" . htmlspecialchars($folder_row['folder_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo"</td>";
+ echo "<td bgcolor=\"#ffffff\">$folder_row[update_date]</td>";
+ echo "<td bgcolor=\"#ffffff\"> </td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($folder_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë
+ if (is_array($this->_tpl_vars['put_file_info_row_array'])) {
+ foreach ($this->_tpl_vars['put_file_info_row_array'] as $file_info_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "put_file.gif\"></td>";
+ echo "<td><a href=\"$file_info_row[download_file_url]\">" . htmlspecialchars($file_info_row['display_file_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo"</td>";
+ echo "<td bgcolor=\"#ffffff\">$file_info_row[update_date]</td>";
+ echo "<td bgcolor=\"#ffffff\">$file_info_row[file_size]</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($file_info_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ echo "</table>\n";
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0 |
+// |·Ç¼¨ÈÄ¡¡¸¡º÷·ë²Ì²èÌÌ ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SearchResultBBS.tpl.php,v 1.11 2007/03/30 05:27:18 w-ota Exp $
+?>
+<script language="JavaScript">
+<!--
+ function fmTurn(){
+ }
+-->
+</script>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['link_page_url']['top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M001') ?></a>
+ :: <a href="<?= $this->_tpl_vars['link_page_url']['bbs_page_url'] ?>"><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M003') ?></div>
+
+<br>
+<?php
+ if($this->_tpl_vars['err_str'] != ""){
+ echo "<div class='err_msg'>";
+ echo $this->_tpl_vars['err_str'];
+ echo "</div>";
+ }else{
+?>
+
+<!-- BBS¤Î°ìÍ÷ ·ï̾¤Î¤ß -->
+<table>
+<tr><td>
+<?php
+ echo "<b>".ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M004')."</b><br><br>";
+ echo "<span class=\"result_success\">" . count($this->_tpl_vars['bbs_row_array_result']) .ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M005')."</span><br><br>";
+ // ¥¹¥ì¥Ã¥É°ìÍ÷
+ $str = '';
+ foreach ($this->_tpl_vars['bbs_row_array_result'] as $index => $bbs_row) {
+ if($bbs_row['bbs_delete_flag']=='f'){ //ºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ß°ìÍ÷ɽ¼¨¤¹¤ë
+ if ($str != '') {
+ $str .= " ";
+ }
+ $str .= "<a href=\"$bbs_row[bbs_res_url]\">";
+ $str .= htmlspecialchars($bbs_row['subject']);
+ $str .= "</a>";
+ }
+ }
+ echo $str;
+?>
+
+</td></tr>
+<!-- BBS¤Î°ìÍ÷ ÅÐÏ¿Æü:¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤ÈËÜʸ¤Î¤ß -->
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['bbs_row_array_result'] as $index => $bbs_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ccffcc\" colspan=\"2\">";
+ echo "<b><a href=\"$bbs_row[bbs_res_url]\">" . htmlspecialchars($bbs_row['subject']) . "</a></b>";
+ echo " ";
+ echo $bbs_row['post_date'];
+ echo "<a href=\"$bbs_row[bbs_community_page_url]\">" ." ::" . htmlspecialchars($bbs_row['bbs_community_name']) . "</a>";
+ echo "</td>";
+ echo "</tr>";
+
+ echo "<tr>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$bbs_row[top_page_url]\"><img src=\"$bbs_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$bbs_row[top_page_url]\">" . htmlspecialchars($bbs_row['community_name']) . "</a>";
+ echo "</td>";
+
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
+ echo nl2br(ACSLib::sp2nbsp(htmlspecialchars($bbs_row['body'])));
+ echo "</td>";
+ echo "</tr>";
+}
+?>
+</table>
+</td></tr></table>
+<?php
+ }
+?>
+
+
+<hr>
+
+<!-- ºÆ¸¡º÷ÍѤΥե©¡¼¥à -->
+<?php
+ // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ÎÆþÎÏÃͤòÉü¸µ¤¹¤ë¤¿¤á¤Î½èÍý
+ // ·ï̾¸¡º÷
+ if ($this->_tpl_vars['form_pre']['search_title']) {
+ $serch_title_checked_str = ' checked';
+ } else {
+ $serch_title_checked_str = '';
+ }
+
+ // Á´Ê¸¸¡º÷
+ if ($this->_tpl_vars['form_pre']['search_all']) {
+ $search_all_checked_str = ' checked';
+ } else {
+ $search_all_checked_str = '';
+ }
+
+ // Á´Æüµ¤Çõ¤¹
+ if ($this->_tpl_vars['form_pre']['search_all_about']) {
+ $search_all_about_checked_str = ' checked';
+ } else {
+ $search_all_about_checked_str = '';
+ }
+?>
+<br>
+<span class="sub_title"><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M006') ?></span>
+
+<form name="search_form_default" action="<?= $this->_tpl_vars['link_page_url']['search_bbs_url'] ?>" method="get" enctype="multipart/form-data">
+ <input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+ <input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+ <input type="hidden" name="community_id" value="<?= $this->_tpl_vars['community_id'] ?>">
+ <input type="hidden" name="move_id" value="<?= $this->_tpl_vars['move_id'] ?>">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<!--¥¡¼¥ï¡¼¥É -->
+ <input type="text" name="q_text" value="<?=$this->_tpl_vars['form_pre']['q_text'] ?>" size="30" style="ime-mode: active;">
+<!--¸¡º÷ÂÐ¾Ý -->
+ <input type="checkbox" name="search_title" value="title_in_serch"<?= $serch_title_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M007') ?>
+ <input type="checkbox" name="search_all" value="subject_in_serch"<?= $search_all_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M008') ?>
+<!--¸ø³«ÈÏ°Ï -->
+<?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M009') ?>
+<?php
+ // ¸ø³«ÈÏ°Ï
+ // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+ unset($selected);
+ $selected[$this->_tpl_vars['form_pre']['open_level_code']] = ' selected';
+
+ echo "<select name=\"open_level_code\">\n";
+ // µ¬Äê¤Î¥×¥ë¥À¥¦¥ó
+ echo "<option value=\"00\"" .$selected['00']. ">";
+ echo htmlspecialchars(ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M010')) . "\n";
+ // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"$open_level_master_row[open_level_code]\"{$selected[$open_level_master_row['open_level_code']]}>";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ echo "</select>\n";
+?>
+
+ <input type="submit" name="search" value="<?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M003') ?>"><br>
+<!-- Âоݤò¹¤²¤ë -->
+ <input type="checkbox" name ="search_all_about" value="all_in_serch" onChange="fmTurn()"<?= $search_all_about_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M012') ?>
+ </td>
+ </tr>
+</table>
+</form>
+
+
--- /dev/null
+<?php
+// $Id: SelectTrustedCommunity.tpl.php,v 1.9 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<font size="3"><?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M001') ?></font><br>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="form_name" value="<?= $this->_tpl_vars['form_name'] ?>">
+<input type="hidden" name="prefix" value="<?= $this->_tpl_vars['prefix'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<table class="layout_table"><tr><td>
+<tr>
+<td><?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M002') ?></td>
+<td><input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30"></td>
+<td><input type="submit" value="<?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M003') ?>"></td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M004') ?></td>
+<td>
+<select name="category_code">
+<?php
+unset($selected);
+$selected[$this->_tpl_vars['form']['category_code']] = ' selected';
+foreach ($this->_tpl_vars['category_master_row_array'] as $category_master_row) {
+ echo "<option value=\"$category_master_row[category_code]\"{$selected[$category_master_row['category_code']]}>";
+ echo htmlspecialchars($category_master_row['category_name']) . "\n";
+}
+?>
+</select>
+</td>
+</tr>
+</table>
+</td></tr></table>
+
+</form>
+</p>
+
+<?php
+if (count($this->_tpl_vars['community_row_array'])) {
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+}
+?>
+
+<form name="trusted_community_form" style="font-size:10pt">
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr><td bgcolor="#ffffff">
+<?php
+foreach ($this->_tpl_vars['community_row_array'] as $community_row) {
+ echo "<input type=\"checkbox\" name=\"trusted_community_id_array[]\" value=\"$community_row[community_id]\" alt=\"";
+ echo htmlspecialchars($community_row['community_name']);
+ echo "\">";
+ echo "<a href=\"$community_row[top_page_url]\" target=\"_blank\">";
+ echo htmlspecialchars($community_row['community_name']);
+ echo "</a>";
+ echo "<br>\n";
+}
+?>
+</tr></td>
+</table>
+<br>
+<input type="button" value="<?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M005') ?>" onclick="add_trusted_community(this.form)">
+<input type="button" value="<?= ACSMsg::get_msg("Community", "SelectTrustedCommunity.tpl.php",'M006') ?>" onclick="window.close()">
+</form>
+
+
+<script language="JavaScript">
+<!--
+// Äê¿ô
+var prefix = "<?= str_replace("\"", "\\\"", $this->_tpl_vars['prefix']) ?>";
+var parent_form_name = "<?= str_replace("\"", "\\\"", $this->_tpl_vars['form_name']) ?>";
+
+
+window.onload = function () {
+ focus();
+ disable_exist_community_id();
+ // ¸¡º÷¥Ü¥Ã¥¯¥¹¤Ëfocus
+ document.forms[0].elements["q"].focus();
+}
+
+community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['community_row_array'] as $community_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$community_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$community_row[community_name]\", ";
+ $str .= "\"top_page_url\" : \"$community_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+
+function add_trusted_community(child_form_obj) {
+ if (window.opener != null) {
+ parent_td_obj = window.opener.document.getElementById(prefix + "trusted_community_td");
+
+ if (child_form_obj.elements["trusted_community_id_array[]"]) {
+ if (child_form_obj.elements["trusted_community_id_array[]"].value) {
+ // 1¸Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ if (child_form_obj.elements["trusted_community_id_array[]"].checked && !child_form_obj.elements["trusted_community_id_array[]"].disabled) {
+ _add_trusted_community(parent_td_obj, 0);
+ }
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < child_form_obj.elements["trusted_community_id_array[]"].length; i++) {
+ if (child_form_obj.elements["trusted_community_id_array[]"][i].checked && !child_form_obj.elements["trusted_community_id_array[]"][i].disabled) {
+ _add_trusted_community(parent_td_obj, i);
+ }
+ }
+ }
+ }
+
+ window.close();
+ }
+}
+
+function _add_trusted_community(parent_td_obj, i) {
+ // <input>
+ if (document.all) {
+ parent_input_obj = window.opener.document.createElement('<input name="' + prefix + 'trusted_community_id_array[]">');
+ } else {
+ parent_input_obj = window.opener.document.createElement("input");
+ parent_input_obj.name = prefix + "trusted_community_id_array[]";
+ }
+ parent_input_obj.type = "checkbox";
+ parent_input_obj.value = community_row_array[i]["community_id"];
+ parent_input_obj.defaultChecked = true;
+ parent_td_obj.appendChild(parent_input_obj);
+
+ // <a>
+ parent_a_obj = window.opener.document.createElement("a");
+ parent_a_obj.href = community_row_array[i]["top_page_url"];
+ parent_a_obj.target = "_blank";
+ parent_a_obj.appendChild(window.opener.document.createTextNode(community_row_array[i]["community_name"]));
+ parent_td_obj.appendChild(parent_a_obj);
+
+ // <br>
+ parent_td_obj.appendChild(window.opener.document.createElement("br"));
+}
+
+function disable_exist_community_id() {
+ child_form_obj = document.forms["trusted_community_form"];
+
+ // ¿Æ¥Õ¥©¡¼¥à
+ parent_form = window.opener.document.forms[parent_form_name];
+
+ // ¿Æ¥¦¥£¥ó¥É¥¦¤Ç´û¤ËÁªÂò¤µ¤ì¤Æ¤¤¤ë¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£
+ exist_trusted_community_array = new Array();
+
+ if (parent_form.elements[prefix + "trusted_community_id_array[]"]) {
+ // ´û¤ËÁªÂò¤µ¤ì¤Æ¤¤¤ë¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤ò¼ý½¸¤¹¤ë
+ if (parent_form.elements[prefix + "trusted_community_id_array[]"].value) {
+ // 1¸Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ exist_trusted_community_array.push(parent_form.elements[prefix + "trusted_community_id_array[]"].value);
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < parent_form.elements[prefix + "trusted_community_id_array[]"].length; i++) {
+ exist_trusted_community_array.push(parent_form.elements[prefix + "trusted_community_id_array[]"][i].value);
+ }
+ }
+ }
+
+ // ¿Æ¥¦¥£¥ó¥É¥¦¤Ç½ü³°»ØÄꤵ¤ì¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤ò¼ý½¸¤¹¤ë
+ if (parent_form.elements[prefix + "except_community_id_array[]"]) {
+ if (parent_form.elements[prefix + "except_community_id_array[]"].value) {
+ // 1¸Ä¤ÎhiddenÍ×ÁÇ
+ exist_trusted_community_array.push(parent_form.elements[prefix + "except_community_id_array[]"].value);
+ } else {
+ // Ê£¿ô¤ÎhiddenÍ×ÁÇ
+ for (var i = 0; i < parent_form.elements[prefix + "except_community_id_array[]"].length; i++) {
+ exist_trusted_community_array.push(parent_form.elements[prefix + "except_community_id_array[]"][i].value);
+ }
+ }
+ }
+
+ // ´û¤ËÁªÂò¤µ¤ì¤Æ¤¤¤ë¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤Ïdisabled¤È¤¹¤ë
+ if (child_form_obj.elements["trusted_community_id_array[]"]) {
+ if (child_form_obj.elements["trusted_community_id_array[]"].value) {
+ // 1¸Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ if (find_array(child_form_obj.elements["trusted_community_id_array[]"].value, exist_trusted_community_array)) {
+ child_form_obj.elements["trusted_community_id_array[]"].disabled = true;
+ }
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < child_form_obj.elements["trusted_community_id_array[]"].length; i++) {
+ if (find_array(child_form_obj.elements["trusted_community_id_array[]"][i].value, exist_trusted_community_array)) {
+ child_form_obj.elements["trusted_community_id_array[]"][i].disabled = true;
+ }
+ }
+ }
+ }
+}
+
+
+function find_array(value, arr) {
+ var i;
+ for (i = 0; i < arr.length; i++) {
+ if (arr[i] == value) {
+ return true;
+ }
+ }
+ return false;
+}
+// -->
+</script>
+
+</body>
+</html>
--- /dev/null
+<?php
+// $Id: UpdateFile.tpl.php,v 1.4 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_row']['community_name']) . " ¥³¥ß¥å¥Ë¥Æ¥£";
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M001') ?> :: <?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M003') ?></div>
+<br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST" enctype="multipart/form-data">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff"><input type="file" name="new_file" size="50"> <input type="submit" value="<?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M005') ?>"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M007') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+</table>
+<input type="checkbox" value="t" name="send_announce_mail" <?= $this->_tpl_vars['send_annouce_mail_checked'] ?>>
+ <?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M009') ?>
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['file_detail_url'] ?>"><?= ACSMsg::get_msg("Community", "UpdateFile.tpl.php",'M008') ?></a>
--- /dev/null
+<?php
+// $Id: UploadFile.tpl.php,v 1.5 2007/03/01 09:01:35 w-ota Exp $
+?>
+
+<?
+// ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥ÄÀÚ¤êÂؤ¨JS½ÐÎÏ
+ACSTemplateLib::print_change_file_contents_js('upload_file', $this->_tpl_vars['file_contents_type_master_array'], $this->_tpl_vars['file_contents_type_master_row_array_array']);
+?>
+
+<?php
+ $title = '<a href="' . $this->_tpl_vars['target_community_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_community_row']['community_name']) . " ".ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M001');
+ $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M002') ?> :: <?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M003') ?></div>
+<br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST" enctype="multipart/form-data">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M004') ?></td>
+<td bgcolor="#ffffff"><input type="file" name="new_file" size="50"> <input type="submit" value="<?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M005') ?>"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M006') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M007') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M008') ?></td>
+<td bgcolor="#ffffff">
+<select name="file_category_code" onchange="change_file_contents()">
+<?php
+foreach ($this->_tpl_vars['file_category_master_array'] as $file_category_code => $file_category_name) {
+ echo "<option value=\"$file_category_code\">" . htmlspecialchars($file_category_name) . "\n";
+}
+?>
+</select>
+</td>
+</tr>
+
+<?php
+$default_file_category_code = array_search(ACSMsg::get_mst('file_category_master','D0000'), $this->_tpl_vars['file_category_master_array']);
+
+foreach ($this->_tpl_vars['file_contents_type_master_array'] as $file_contents_type_code => $file_contents_type_name) {
+ echo "<tr id=\"file_contents_tr[$file_contents_type_code]\"";
+ if (!array_key_exists($file_contents_type_code, $this->_tpl_vars['file_contents_type_master_row_array_array'][$default_file_category_code]['file_contents_type_master_row_array'])) {
+ echo " style=\"display:none\"";
+ }
+ echo ">";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_type_name);
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<textarea name=\"file_contents_array[$file_contents_type_code]\" cols=\"50\" rows=\"3\">";
+ echo htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code]['file_contents_value']);
+ echo "</textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+<input type="checkbox" value="t" name="send_announce_mail" <?= $this->_tpl_vars['send_annouce_mail_checked'] ?>>
+ <?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M011') ?>
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['folder_url'] ?>"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M009') ?></a>
+<a href="<?= $this->_tpl_vars['folder_group_mode_url'] ?>"><?= ACSMsg::get_msg("Community", "UploadFile.tpl.php", 'M010') ?></a><br>
--- /dev/null
+<?php
+// $Id: WaitingList.tpl.php,v 1.8 2007/03/14 04:28:17 w-ota Exp $
+?>
+
+<span class="sub_title">
+<a href="<?= $this->_tpl_vars['community_top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M001') ?></a> :: <span class="sub_title"><?= $this->_tpl_vars['waiting_type_name'] ?> <?= ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M002') ?></span>
+</span>
+<br><br>
+
+<?php
+foreach ($this->_tpl_vars['waiting_row_array'] as $waiting_row) {
+ echo "<form action=\"$waiting_row[action_url]\" method=\"post\">\n";
+
+ echo "<table border=\"1\" class=\"common_table\">\n";
+ echo "<tr>";
+ echo "<td align=\"center\" rowspan=\"4\">";
+ echo "<a href=\"$waiting_row[top_page_url]\"><img src=\"$waiting_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$waiting_row[top_page_url]\">" . htmlspecialchars($waiting_row['community_name']) . "</a>";
+ echo "</td>";
+ echo "<td>";
+ if ($this->_tpl_vars['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40') || $this->_tpl_vars['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {
+ echo "<a href=\"{$waiting_row['entry_user_info_row']['top_page_url']}\">" . htmlspecialchars($waiting_row['entry_user_info_row']['community_name']) . "</a>";
+ echo ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M003');
+ }
+ echo ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M004')."</td>";
+ echo "</tr>\n";
+
+ echo "<tr>";
+ echo "<td valign=\"top\">";
+ echo ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M005')." : " . $waiting_row['entry_date'] . "<br><br>";
+ echo nl2br(htmlspecialchars($waiting_row['message']));
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "<tr>";
+ echo "<td>".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M006')." <span class=\"notice\">".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M007')."</span></td>";
+ echo "</tr>\n";
+
+ echo "<tr>";
+ echo "<td>";
+ echo "<textarea name=\"reply_message\" cols=\"50\" rows=\"4\"></textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "<tr><td colspan=\"2\">";
+ if ($this->_tpl_vars['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D40')) {
+ echo "<a href=\"$this->_tpl_vars[community_top_page_url]\">" . htmlspecialchars($this->_tpl_vars['community_row']['community_name']) . "</a>" . " ".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M008')."<br>\n";
+ echo "¡¡".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M009')."<br>\n";
+ echo "¡¡".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M010')." " . "<a href=\"$waiting_row[top_page_url]\">" . htmlspecialchars($waiting_row['community_name']) . "</a>" . " ".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M013')."<br>\n";
+ echo "<br>\n";
+ echo ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M011')."<br><br>\n";
+ } else if ($this->_tpl_vars['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D50')) {
+ echo "<a href=\"$waiting_row[top_page_url]\">" . htmlspecialchars($waiting_row['community_name']) . "</a>" . " ".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M008')."<br>\n";
+ echo "¡¡".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M009')."<br>\n";
+ echo "¡¡".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M010')." " . "<a href=\"$this->_tpl_vars[community_top_page_url]\">" . htmlspecialchars($this->_tpl_vars['community_row']['community_name']) . "</a>" . " ".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M013')."<br>\n";
+ echo "<br>\n";
+ echo ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M011')."<br><br>\n";
+ }
+
+ echo "<input type=\"submit\" name=\"accept_button\" value=\"".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M015')."\">\n";
+ echo " ";
+ echo "<input type=\"submit\" name=\"reject_button\" value=\"".ACSMsg::get_msg("Community", "WaitingList.tpl.php",'M016')."\">\n";
+ echo "</td></tr>\n";
+
+ echo "</table>\n";
+ echo "<br>\n";
+
+ echo "</form>\n";
+ echo "<br><br>\n";
+}
+?>
--- /dev/null
+<?php
+// $Id: AddCommunityLinkView::INPUT.class.php,v 1.3 2006/03/23 12:36:46 kuwayama Exp $
+
+class AddCommunityLinkInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $input_form = $request->getAttribute('form');
+
+ // ¥¨¥é¡¼»þ¤ÎÆþÎÏÃͤò¼èÆÀ
+ $form = array();
+ if ($input_form) {
+ // ÁªÂò¤µ¤ì¤¿¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¼èÆÀ
+ $trusted_community_row_array = array();
+ if ($input_form['trusted_community_id_array']) {
+ foreach ($input_form['trusted_community_id_array'] as $trusted_community_id) {
+ // ½é´ü²½
+ $_community_row = array();
+ $trusted_community_row = array();
+
+ $_community_row = ACSCommunity::get_community_row($trusted_community_id);
+ $trusted_community_row['community_id'] = $_community_row['community_id'];
+ $trusted_community_row['community_name'] = $_community_row['community_name'];
+ $trusted_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
+ $trusted_community_row['top_page_url'] .= '&community_id=' . $_community_row['community_id'];
+
+ array_push($trusted_community_row_array, $trusted_community_row);
+ }
+ }
+
+ $form['link_type'] = $input_form['link_type'];
+ $form['trusted_community_row_array'] = $trusted_community_row_array;
+ $form['message'] = $input_form['message'];
+
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'AddCommunityLink') . '&community_id=' . $community_row['community_id'];
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥ê¥ó¥¯ÀßÄêURL
+ $community_link_url = $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('AddCommunityLink.tpl.php');
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('community_link_url', $community_link_url);
+ $this->setAttribute('form', $form);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ë²óÅú
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+
+class AnswerScheduleSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $this->setScreenId("0001");
+ $this->setTemplate('AnswerSchedule.tpl.php');
+
+ $current_module = 'Community';
+ $current_action = 'AnswerSchedule';
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó
+ $acs_user_info_row = $request->getAttribute('acs_user_info_row');
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $target_community_row =& $request->getAttribute('target_community_row');
+ $this->setAttribute('target_community_row', $target_community_row);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÀßÄê
+ $schedule =& $request->getAttribute('schedule');
+ $this->setAttribute('schedule', $schedule);
+
+ // ¶¦ÄÌURL¥Ñ¥é¥á¡¼¥¿
+ $url_params = "community_id=" . $target_community_row['community_id'];
+
+ // ÆþÎϽªÎ»»þPOST-URL
+ $this->setAttribute('url_commit',
+ $this->getControllerPath($current_module, $current_action));
+
+ // ·èÄê»þPOST-URL
+ $this->setAttribute('url_decide',
+ $this->getControllerPath($current_module, 'DecideSchedule'));
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $this->setAttribute('url_community_top',
+ $this->getControllerPath($current_module, 'Index') .
+ "&" . $url_params);
+
+ // ¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷¤ÎURL
+ $this->setAttribute('url_schedule_list',
+ $this->getControllerPath($current_module, 'Schedule') .
+ "&" . $url_params);
+
+ // ¼çºÅ¼Ô
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $user_community_row =& ACSUser::get_user_profile_row($schedule->user_community_id);
+ $this->setAttribute('user_community_name', $user_community_row['community_name']);
+ $this->setAttribute('user_community_name_url',
+ $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) .
+ '&id='.$schedule->user_community_id);
+
+ // ²óÅú°ìÍ÷
+ $answer_selection =& $schedule->get_answer_selection();
+ $html_options_answer_selection = array();
+ $answer_detail_text = "";
+ foreach ($answer_selection as $key => $val) {
+ if ($val['answer_char'] != ""){
+ $html_options_answer_selection[$key] = $val['answer_char'];
+ if ($answer_detail_text != ""){
+ $answer_detail_text .= "<br>";
+ }
+ $answer_detail_text .=
+ htmlspecialchars($val['answer_char']) . "..." .
+ ACSMsg::get_msg('Community', 'AnswerScheduleSuccessView.class.php', 'M001') . ":" .
+ htmlspecialchars($val['answer_score']);
+ if ($val['answer_detail']) {
+ $answer_detail_text .= " " .
+ ACSMsg::get_msg('Community', 'AnswerScheduleSuccessView.class.php', 'M002') . ":" .
+ htmlspecialchars($val['answer_detail']);
+ }
+ }
+ }
+
+ $this->setAttribute('html_options_answer_selection', $html_options_answer_selection);
+ $this->setAttribute('answer_detail_text', $answer_detail_text);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¸õÊäÆü»þ
+ $this->setAttribute('adjustment_dates_count',
+ $schedule->get_adjustment_dates_count());
+ $adjustment_dates_list =& $schedule->get_adjustment_dates();
+ $this->setAttribute('adjustment_dates_list', $adjustment_dates_list);
+
+ // ¾õÂÖ
+ if($schedule->is_fixed()){
+ $schedule_status = ACSMsg::get_msg('Community', 'AnswerScheduleSuccessView.class.php', 'M003') .
+ " ·èÄêÆü:" .
+ $adjustment_dates_list[$schedule->decide_adjustment_date_id]['date_string'] ;
+ }else{
+ $schedule_status = $schedule->is_close() ? ACSMsg::get_msg('Community', 'AnswerScheduleSuccessView.class.php', 'M004') :
+ ACSMsg::get_msg('Community', 'AnswerScheduleSuccessView.class.php', 'M005');
+ }
+ $this->setAttribute('schedule_status', $schedule_status);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë»²²Ã¾ðÊó
+ $schedule_participant_list =& $request->getAttribute('schedule_participant_list');
+ $this->setAttribute('schedule_participant',
+ $request->getAttribute('schedule_participant'));
+ $this->setAttribute('schedule_participant_list', $schedule_participant_list);
+
+ // ½¸·×¾ðÊó
+ $total_count = array();
+ $total_score = array();
+ foreach ($adjustment_dates_list as $adjustment_date_id => $adjustment_date_array) {
+ foreach ($schedule_participant_list as
+ $user_community_id => $schedule_participant) {
+ $answer_no = $schedule_participant->get_answer($adjustment_date_id);
+ $total_count[$adjustment_date_id][$answer_no]++;
+ $total_score[$adjustment_date_id] +=
+ $answer_selection[$answer_no]['answer_score'];
+ }
+ }
+ $this->setAttribute('total_count',$total_count);
+ $this->setAttribute('total_score',$total_score);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡View¥¯¥é¥¹
+ * Åê¹Æ¾ðÊó¡¡ÆþÎÏ¡¦É½¼¨²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author ºîÀ®ota Êѹ¹akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.25 $ $Date: 2007/03/28 05:58:21 $
+ */
+ // $Id: BBSInputView.class.php,v 1.25 2007/03/28 05:58:21 w-ota Exp $
+
+class BBSInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row_array = $request->getAttribute('bbs_row_array');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ //¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«¤É¤¦¤«
+ $is_community_admin = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id']);
+
+ // form action ³Îǧ²èÌ̤ؤÎÁ«°Ü
+ $action_url = $this->getControllerPath('Community',
+ 'BBSPre') . '&community_id=' . $community_row['community_id'] . '&move_id=1';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // BBS¥¹¥ì¥Ã¥É°ìÍ÷URL
+ $bbs_thread_list_url = $this->getControllerPath('Community', 'BBSThreadList') . '&community_id=' . $community_row['community_id'];
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ÁªÂò¥Ú¡¼¥¸¤ÎURL
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity') . '&form_name=bbs_form';
+
+ //¸¡º÷²èÌÌurl
+ $search_bbs_url = $this->getControllerPath('Community', 'SearchBBS') . '&community_id=' . $community_row['community_id'] .'&move_id=1';
+
+ //³°ÉôRSS¼è¤ê¹þ¤ß¼Â¹Ô
+ if ($community_row['contents_row_array']['external_rss_url']['contents_value'] != '') {
+ $get_external_rss_url = $this->getControllerPath('Community', 'GetExternalRSS') . '&community_id=' . $community_row['community_id'];
+ }
+
+ // ·Ç¼¨ÈÄRSS URL
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D03'), 'BBS_RSS_TERM');
+ $bbs_rss_url = $this->getControllerPath('Community', 'BBSRSS')
+ . '&community_id=' . $community_row['community_id']
+ . '&term=' . $term;
+
+
+ // ²Ã¹©
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿Æµ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_row['user_community_id'];
+ // ¼Ì¿¿URL
+ $bbs_row_array[$index]['image_url'] = ACSUser::get_image_url($bbs_row['user_community_id'], 'thumb');
+ // Åê¹ÆÆü»þ
+ $bbs_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($bbs_row['post_date']);
+ // ÊÖ¿®²èÌÌURL
+ $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ // ÊÔ½¸²èÌÌURL
+ if ($bbs_row['user_community_id'] == $acs_user_info_row['user_community_id'] || $is_community_admin) {
+ $bbs_row_array[$index]['edit_bbs_url'] = $this->getControllerPath('Community', 'EditBBS')
+ . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ }
+ // ºï½ü²èÌÌURL
+ $bbs_row_array[$index]['bbs_delete_url'] = $this->getControllerPath('Community', 'DeleteBBS') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ //ºï½ü¸¢¸Â¥Õ¥é¥° (¼«Ê¬¤¬Åê¹Æ¤·¤¿¤â¤Î¡¡Ëô¤Ï¡¡¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô)
+ if($bbs_row['user_community_id'] == $acs_user_info_row['user_community_id'] || $is_community_admin == 1){
+ $bbs_row_array[$index]['bbs_set_delete_flag'] = true;
+ }else{
+ $bbs_row_array[$index]['bbs_set_delete_flag'] = false;
+ }
+
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $bbs_row_array[$index]['file_url'] = "";
+ if($bbs_row['file_id'] != ""){
+ $bbs_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'],'thumb'); //Åê¹ÆÆâɽ¼¨ÍÑ
+ $bbs_row_array[$index]['file_url_alink'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'],''); //¥Ý¥Ã¥×¥¢¥Ã¥×ÍÑ
+ }
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ·ÇºÜ½ªÎ»Æü 2/21add @akitsu
+ $bbs_row_array[$index]['expire_date'] = "";
+ if($bbs_row['expire_date'] != ""){
+ $bbs_row_array[$index]['expire_date'] = ACSLib::convert_pg_date_to_str($bbs_row['expire_date'],true,false,false);
+ }
+ if($bbs_row['bbs_delete_flag'] != 't'){
+ // ÊÖ¿®µ»ö
+ $bbs_res_display_max = 10;
+ $bbs_row_array[$index]['bbs_res_row_array_num'] = count($bbs_row_array[$index]['bbs_res_row_array']);
+ if ($bbs_row_array[$index]['bbs_res_row_array_num'] > $bbs_res_display_max) {
+ // ºÇ¿·¤Î10·ï¤Î¤ßslice
+ $bbs_row_array[$index]['bbs_res_row_array'] = array_slice($bbs_row_array[$index]['bbs_res_row_array'], -1 * $bbs_res_display_max);
+ // ¾Êά·ï¿ô¤ò»»½Ð
+ $bbs_row_array[$index]['omission_num'] = $bbs_row_array[$index]['bbs_res_row_array_num'] - $bbs_res_display_max;
+ }
+ foreach ($bbs_row_array[$index]['bbs_res_row_array'] as $res_index => $bbs_res_row) {
+ // ÊÖ¿®µ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row_array[$index]['bbs_res_row_array'][$res_index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_res_row['user_community_id'];
+ // ¼Ì¿¿URL
+ $bbs_row_array[$index]['bbs_res_row_array'][$res_index]['image_url'] = ACSUser::get_image_url($bbs_res_row['user_community_id'], 'thumb');
+ // Åê¹ÆÆü»þ
+ $bbs_row_array[$index]['bbs_res_row_array'][$res_index]['post_date'] = ACSLib::convert_pg_date_to_str($bbs_res_row['post_date']);
+ //ºï½ü¾ðÊó
+ $bbs_row_array[$index]['bbs_res_row_array'][$res_index]['delete_flag'] = ACSLib::get_boolean($bbs_res_row['res_delete_flag']);
+ }
+ }
+ }
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ / ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£¤Î¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $parent_community_row_array = ACSCommunity::get_parent_community_row_array($community_row['community_id']);
+ foreach ($parent_community_row_array as $index => $parent_community_row) {
+ $parent_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $parent_community_row['community_id'];
+ }
+ $sub_community_row_array = ACSCommunity::get_sub_community_row_array($community_row['community_id']);
+ foreach ($sub_community_row_array as $index => $sub_community_row) {
+ $sub_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $sub_community_row['community_id'];
+ }
+
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
+ //----------------------//
+
+
+ // ³°ÉôRSS¾ðÊó
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ $external_rss_row = ACSExternalRSS::get_external_rss_row($bbs_row['bbs_id']);
+ if ($external_rss_row) {
+ if ($external_rss_row['rss_item_date'] != '') {
+ // YYYY/MM/DD H:MM
+ $external_rss_row['rss_item_date'] = ACSLib::convert_pg_date_to_str($external_rss_row['rss_item_date'], 0, 1, 0);
+ }
+ $bbs_row_array[$index]['external_rss_row'] = $external_rss_row;
+ }
+ }
+
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $bbs_row_array, $display_count);
+
+ // set
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('is_community_admin', $is_community_admin);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('bbs_thread_list_url', $bbs_thread_list_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('search_bbs_url', $search_bbs_url);
+ $this->setAttribute('get_external_rss_url', $get_external_rss_url);
+ $this->setAttribute('bbs_rss_url', $bbs_rss_url);
+
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('bbs_row_array', $bbs_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('open_level_master_row_array', $request->getAttribute('open_level_master_row_array'));
+ $this->setAttribute('parent_community_row_array', $parent_community_row_array);
+ $this->setAttribute('sub_community_row_array', $sub_community_row_array);
+
+ // MLÁ÷¿®¥Á¥§¥Ã¥¯É½¼¨ÀßÄê
+ if($community_row['contents_row_array']['ml_status']['contents_value'] == 'ACTIVE') {
+ $this->setAttribute('is_ml_active', TRUE);
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('BBS.tpl.php');
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ if($request->getParameter('move_id') == 3){
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ·ÇºÜ½ªÎ»Æü
+ $form['expire_date'] = "";
+ if($form['expire_date'] != ""){
+ $form['expire_date'] = ACSLib::convert_pg_date_to_str($form['expire_date'],false,false,false);
+ }
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡View¥¯¥é¥¹
+ * Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.5 $ $Date: 2006/02/21
+ */
+// $Id: BBSPreConfirmView.class.php,v 1.5 2006/12/18 07:42:13 w-ota Exp $
+
+
+class BBSPreSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ // ¥Õ¥¡¥¤¥ë¾ðÊó
+ $new_file_obj = $user->getAttribute('new_file_obj');
+ $new_file_info = $user->getAttribute('new_file_info');
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ // form action
+ $action_url = $this->getControllerPath('Community', 'BBSPre') . '&community_id=' . $community_row['community_id'] . '&move_id=2';
+ //$action_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'] ';
+ $back_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id']. '&move_id=3';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ÁªÂò¥Ú¡¼¥¸¤ÎURL
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity') . '&form_name=bbs_form';
+
+ // ²Ã¹©
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $form['file_url'] = "";
+ if($form['file_name'] != ""){
+ $file_name = $form['file_name'];
+ $type = $new_file_obj['type'];
+ $form['file_url_alink'] = $this->getControllerPath('Community', 'BBSPreImage') . '&type=' . $type ."&new_file_info=" . $new_file_info;
+ }
+
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ·ÇºÜ½ªÎ»Æü
+ if($form['expire_date'] != ""){
+ $form['expire_date'] = ACSLib::convert_pg_date_to_str($form['expire_date'],true,false,false);
+ }
+
+ // MLÁ÷¿®¥Á¥§¥Ã¥¯É½¼¨ÀßÄê
+ $ml_status_row =
+ ACSCommunity::get_contents_row(
+ $community_row['community_id'],
+ ACSMsg::get_mst('contents_type_master','D62'));
+ if($ml_status_row['contents_value'] == 'ACTIVE') {
+ $this->setAttribute('is_ml_active', TRUE);
+ $this->setAttribute('is_ml_send', $form['is_ml_send']);
+ }
+
+ // set
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('form', $form);
+ $this->setAttribute('new_file_obj', $new_file_obj);
+ $this->setAttribute('new_file_info', $new_file_info);
+ $this->setAttribute('community_row', $community_row);
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('BBSPre.tpl.php');
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: BBSRSSSuccessView.class.php,v 1.20 2009/06/19 10:05:00 acs Exp $
+
+class BBSRSSSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row_array = $request->getAttribute('bbs_row_array');
+ $term = $request->getAttribute('term');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $community_row['community_id'];
+
+ $community_row['image_url'] = ACSCommunity::get_image_url($community_row['community_id']);
+
+ if ($community_row['file_id'] != '') {
+ $community_file_info_row = ACSFileInfoModel::select_file_info_row($community_row['file_id']);
+ $community_row['image_title'] = $community_file_info_row['display_file_name'];
+ } else {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¼Ì¿¿¤Ï¤¢¤ê¤Þ¤»¤ó
+ $community_row['image_title'] = ACSMsg::get_msg('Community', ' BBSRSSSuccessView.class.php', 'M001');
+ }
+
+ // ²Ã¹©
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿Æµ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $bbs_row['community_id'];
+ // ÊÖ¿®²èÌÌURL
+ $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ // ¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ if($bbs_row['file_id'] != ""){
+ $bbs_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'], 'rss');
+ }
+ }
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
+ //----------------------//
+
+ // ACSBBS::print_bbs_rss()¤Ç»ÈÍѤ¹¤ë¥Ñ¥é¥á¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
+ $params = array();
+ // ¥Ù¡¼¥¹URL
+ if ($acs_user_info_row['is_acs_user']) {
+ $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_LOGIN_URL');
+ } else {
+ $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');
+ }
+
+ // ¼«¿È¤ÎURL
+ $params['rss_syndication_url'] = $params['base_url']
+ . $this->getControllerPath('Community', 'BBSRSS')
+ . '&id=' . $community_row['community_id']
+ . '&term=' . $term;
+
+ // RSS½ÐÎÏÉô
+ ACSBBS::print_bbs_rss($community_row, $bbs_row_array, $params);
+
+ // ½ªÎ»
+ exit;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡ÊÖ¿®Åê¹Æµ¡Ç½¡¡View¥¯¥é¥¹
+ * Åê¹Æ¾ðÊó¡¡ÆþÎÏ¡¦É½¼¨²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author ºîÀ®ota Êѹ¹akitsu
+ * @since PHP 4.0
+ */
+// $Id: BBSResInputView.class.php,v 1.15 2007/03/28 05:58:21 w-ota Exp $
+
+
+class BBSResInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row = $request->getAttribute('bbs_row');
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ //¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô¤«¤É¤¦¤«
+ $is_community_admin = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ // ²Ã¹©
+ if($bbs_row['bbs_res_delete_flag'] != 't'){
+ // ¿Æµ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_row['user_community_id'];
+ // ¼Ì¿¿URL
+ $bbs_row['image_url'] = ACSUser::get_image_url($bbs_row['user_community_id'], 'thumb');
+ // Åê¹ÆÆü»þ
+ $bbs_row['post_date'] = ACSLib::convert_pg_date_to_str($bbs_row['post_date']);
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $bbs_row['file_url'] = "";
+ if($bbs_row['file_id'] != ""){
+ $bbs_row['file_url'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'],'thumb'); //Åê¹ÆÆâɽ¼¨ÍÑ
+ $bbs_row['file_url_alink'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'],''); //¥Ý¥Ã¥×¥¢¥Ã¥×ÍÑ
+ }
+ // ¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹ ·ÇºÜ½ªÎ»Æü
+ if($bbs_row['expire_date'] != ""){
+ $bbs_row['expire_date'] = ACSLib::convert_pg_date_to_str($bbs_row['expire_date'],true,false,false);
+ }
+
+ // ³°ÉôRSS¾ðÊó
+ $external_rss_row = ACSExternalRSS::get_external_rss_row($bbs_row['bbs_id']);
+ if ($external_rss_row) {
+ if ($external_rss_row['rss_item_date'] != '') {
+ // YYYY/MM/DD H:MM
+ $external_rss_row['rss_item_date'] = ACSLib::convert_pg_date_to_str($external_rss_row['rss_item_date'], 0, 1, 0);
+ }
+ $bbs_row['external_rss_row'] = $external_rss_row;
+ }
+
+ // ÊÖ¿®µ»ö
+ foreach ($bbs_row['bbs_res_row_array'] as $res_index => $bbs_res_row) {
+ // ÊÖ¿®µ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row['bbs_res_row_array'][$res_index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_res_row['user_community_id'];
+ // ¼Ì¿¿URL
+ $bbs_row['bbs_res_row_array'][$res_index]['image_url'] =ACSUser::get_image_url($bbs_res_row['user_community_id'], 'thumb');
+ // Åê¹ÆÆü»þ
+ $bbs_row['bbs_res_row_array'][$res_index]['post_date'] = ACSLib::convert_pg_date_to_str($bbs_res_row['post_date']);
+ // ÊÖ¿®¤Îºï½üURL
+ $bbs_row['bbs_res_row_array'][$res_index]['delete_bbs_res_url'] = $this->getControllerPath('Community', 'DeleteBBSRes')
+ . '&community_id=' . $community_row['community_id'] . '&bbs_res_id=' . $bbs_row['bbs_res_row_array'][$res_index]['bbs_res_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ // ÊÔ½¸URL
+ if (!ACSLib::get_boolean($bbs_res_row['bbs_res_delete_flag'])
+ && ($bbs_res_row['user_community_id'] == $acs_user_info_row['user_community_id'] || $is_community_admin)) {
+ $bbs_row['bbs_res_row_array'][$res_index]['edit_bbs_res_url'] = $this->getControllerPath('Community', 'EditBBSRes')
+ . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_res_row['bbs_id'] . '&bbs_res_id=' . $bbs_res_row['bbs_res_id'];
+ }
+ //ºï½ü¸¢¸Â¥Õ¥é¥° (¼«Ê¬¤¬Åê¹Æ¤·¤¿¤â¤Î¡¡Ëô¤Ï¡¡¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô)
+ if($bbs_res_row['user_community_id'] == $acs_user_info_row['user_community_id'] || $is_community_admin == 1){
+ $bbs_row['bbs_res_row_array'][$res_index]['bbs_set_delete_flag'] = true;
+ }else{
+ $bbs_row['bbs_res_row_array'][$res_index]['bbs_set_delete_flag'] = false;
+ }
+ }
+ }
+
+ // form action ³Îǧ²èÌ̤ؤÎÁ«°Ü
+ $action_url = $this->getControllerPath('Community', 'BBSResPre') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'] . '&move_id=1';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'] ;
+ // BBS URL
+ $bbs_top_page_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'];
+
+ // set
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('bbs_row', $bbs_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('bbs_top_page_url', $bbs_top_page_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('BBSRes.tpl.php');
+
+ if($request->getParameter('move_id') == 3){
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æµ¡Ç½¡¡View¥¯¥é¥¹
+ * ÊÖ¿®Åê¹Æ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.4 $ $Date: 2006/02/29
+ */
+// $Id: BBSResPreConfirmView.class.php,v 1.4 2006/03/29 08:53:05 kuwayama Exp $
+
+
+class BBSResPreSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //get
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('community_id');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ $bbs_id = $request->getParameter('bbs_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ // form action
+ $action_url = $this->getControllerPath('Community', 'BBSResPre') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_id . '&move_id=2';
+ // action URL ³Îǧ²èÌ̤Υ¥ã¥ó¥»¥ë¥Ü¥¿¥ó
+ $back_url = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_id . '&move_id=3';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index') . '&community_id=' . $community_row['community_id'];
+ //bbs_top_page_url ·Ç¼¨ÈÄTOP²èÌÌ
+ $back_bbs_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'];
+
+ // set
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('back_bbs_url', $back_bbs_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('form', $form);
+ $this->setAttribute('community_row', $community_row);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('BBSResPre.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: BBSThreadListSuccessView.class.php,v 1.1 2006/03/07 07:29:59 w-ota Exp $
+
+class BBSThreadListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row_array = $request->getAttribute('bbs_row_array');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // BBS URL
+ $bbs_top_page_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'];
+
+ // ²Ã¹©
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¿Æµ»ö¤ÎÅê¹Æ¼Ô ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $bbs_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_row['user_community_id'];
+ // Åê¹ÆÆü»þ
+ $bbs_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($bbs_row['post_date']);
+ // ÊÖ¿®²èÌÌURL
+ $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ }
+
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
+ //----------------------//
+
+
+ // set
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('bbs_top_page_url', $bbs_top_page_url);
+
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('bbs_row_array', $bbs_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('BBSThreadList.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityLinkSuccessView.class.php,v 1.1 2006/03/07 07:35:16 w-ota Exp $
+
+class CommunityLinkSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $sub_community_row_array = $request->getAttribute('sub_community_row_array');
+ $parent_community_row_array = $request->getAttribute('parent_community_row_array');
+ $community_id = $community_row['community_id'];
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($parent_community_row_array as $index => $parent_community_row) {
+ $parent_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $parent_community_row['community_id'];
+ $parent_community_row_array[$index]['delete_community_link_url'] = $this->getControllerPath('Community', 'DeleteCommunityLink') . '&community_id=' . $community_row['community_id'] . '&delete_community_id=' . $parent_community_row['community_id'] . '&mode=parent';
+ }
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($sub_community_row_array as $index => $sub_community_row) {
+ $sub_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $sub_community_row['community_id'];
+ $sub_community_row_array[$index]['delete_community_link_url'] = $this->getControllerPath('Community', 'DeleteCommunityLink') . '&community_id=' . $community_row['community_id'] . '&delete_community_id=' . $sub_community_row['community_id'] . '&mode=sub';
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÄɲÃURL
+ $add_community_link_url = $this->getControllerPath('Community', 'AddCommunityLink') . '&community_id=' . $community_id;
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('parent_community_row_array', $parent_community_row_array);
+ $this->setAttribute('sub_community_row_array', $sub_community_row_array);
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('add_community_link_url', $add_community_link_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CommunityLink.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityMemberListSuccessView.class.php,v 1.4 2006/06/23 07:32:54 w-ota Exp $
+
+
+class CommunityMemberListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $community_member_user_info_row_array = $request->getAttribute('community_member_user_info_row_array');
+ $community_member_user_info_row_array_num = count($community_member_user_info_row_array);
+
+ foreach ($community_member_user_info_row_array as $index => $user_info_row) {
+ $community_member_user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $community_member_user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ $community_member_user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CommunityMemberList.tpl.php');
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+ $this->setAttribute('community_member_user_info_row_array_num', $community_member_user_info_row_array_num);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CreateCommunityInputView.class.php,v 1.4 2006/12/28 07:36:16 w-ota Exp $
+
+class CreateCommunityInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $category_group_master_row_array = $request->getAttribute('category_group_master_row_array');
+
+ // ²Ã¹©
+
+ // ¥«¥Æ¥´¥ê¥Þ¥¹¥¿°ìÍ÷
+ $category_master_row_array = array();
+ foreach ($category_group_master_row_array as $category_group_master_row) {
+ foreach ($category_group_master_row['category_master_row_array'] as $category_master_row) {
+ array_push($category_master_row_array, $category_master_row);
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'CreateCommunity');
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CreateCommunity.tpl.php');
+
+ // set
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('category_master_row_array', $category_master_row_array);
+ $this->setAttribute('bbs_open_level_master_row_array', $request->getAttribute('bbs_open_level_master_row_array'));
+ $this->setAttribute('community_folder_open_level_master_row_array', $request->getAttribute('community_folder_open_level_master_row_array'));
+ $this->setAttribute('self_open_level_master_row_array', $request->getAttribute('self_open_level_master_row_array'));
+ $this->setAttribute('edit_community_ml_address',
+ $request->getAttribute('edit_community_ml_address'));
+
+ // ¥¨¥é¡¼»þ¤Î¥á¥Ã¥»¡¼¥¸É½¼¨
+ $this->setAttribute('error_message',
+ $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+require_once(dirname(__FILE__).'/AnswerScheduleSuccessView.class.php');
+require_once(dirname(__FILE__).'/AnswerScheduleSuccessView.class.php');
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ë·èÄê¥á¡¼¥ëÆþÎϲèÌÌ
+ *
+ * @author z-satosi
+ * @version $Revision: 1.3 $
+ */
+
+class DecideScheduleInputView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $this->setScreenId("0001");
+ $this->setTemplate('DecideSchedule_input.tpl.php');
+
+ $current_module = 'Community';
+ $current_action = 'DecideSchedule';
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó
+ $acs_user_info_row = $request->getAttribute('acs_user_info_row');
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $target_community_row =& $request->getAttribute('target_community_row');
+ $this->setAttribute('target_community_row', $target_community_row);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÀßÄê
+ $schedule =& $request->getAttribute('schedule');
+ $this->setAttribute('schedule', $schedule);
+
+ // ¶¦ÄÌURL¥Ñ¥é¥á¡¼¥¿
+ $url_params = "community_id=" . $target_community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $this->setAttribute('url_community_top',
+ $this->getControllerPath($current_module, 'Index') .
+ "&" . $url_params);
+
+ // ¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷¤ÎURL
+ $this->setAttribute('url_schedule_list',
+ $this->getControllerPath($current_module, 'Schedule') .
+ "&" . $url_params);
+
+ // ¥³¥ß¥Ã¥ÈÀè¤ÎURL
+ $this->setAttribute('url_commit',
+ $this->getControllerPath($current_module, $current_action));
+
+ // ¥¹¥±¥¸¥å¡¼¥ë·èÄêÆü
+ $mailentry_adjustment_id = & $request->getAttribute('mailentry_adjustment_id');
+ $adjustment_dates_list =& $schedule->get_adjustment_dates();
+
+ $this->setAttribute('mailentry_adjustment_id', $mailentry_adjustment_id);
+ $this->setAttribute('adjustment_date',
+ $adjustment_dates_list[$mailentry_adjustment_id]['date_string']);
+
+ // ¸À¸ì°ìÍ÷
+ $html_options_lang_list = ACSMsg::get_lang_list_array();
+ $this->setAttribute('html_options_lang_list', $html_options_lang_list);
+
+ // Á´¸À¸ì¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ $java_subject_var_string = "var subject_list = new Array();\n";
+ $java_message_var_string = "var msg_list = new Array();\n";
+ $sel_index = 0;
+ $index = 0;
+ foreach($html_options_lang_list as $key => $val){
+
+ $msg = $schedule->get_decision_mail_message($key, $mailentry_adjustment_id);
+ $subject = $schedule->get_decision_mail_subject($key);
+
+ if($key == ACSMsg::get_lang()){
+ $default_subject = $subject;
+ $default_message = $msg;
+ $sel_index = $index;
+ }
+
+ $java_msg = htmlspecialchars(str_replace("\r", "", str_replace("\n", "\\n", $msg)));
+
+ // "&" -> "&" ¤ØÌ᤹
+ $java_subject = str_replace("&", "&", $subject);
+ $java_msg = str_replace("&", "&", $java_msg);
+
+ $java_subject_var_string = $java_subject_var_string .
+ 'subject_list["' . $key . '"] = "' . $java_subject . '";' . "\n";
+
+ $java_message_var_string = $java_message_var_string .
+ 'msg_list["' . $key . '"] = "' . $java_msg . '";' . "\n";
+ $index++;
+ }
+ $this->setAttribute('java_subject_var_string', $java_subject_var_string);
+ $this->setAttribute('java_message_var_string', $java_message_var_string);
+ $this->setAttribute('java_default_lang_index', $sel_index);
+
+ // ¸½ºß¤Îɽ¼¨¸À¸ì¤ÎÀßÄê
+ $this->setAttribute('current_lang', ACSMsg::get_lang());
+
+ $this->setAttribute('mail_subject', $request->getAttribute('mail_subject'));
+ if ($request->getAttribute('mail_message')) {
+ $this->setAttribute('mail_subject', $request->getAttribute('mail_subject'));
+ $this->setAttribute('mail_message', $request->getAttribute('mail_message'));
+ } else {
+ $this->setAttribute('mail_subject', $default_subject);
+ $this->setAttribute('mail_message', $default_message);
+ }
+
+ // ¥¹¥±¥¸¥å¡¼¥ë·èÄê¤ÎURL
+ $current_module = 'Community';
+ $cancel_url = $this->getControllerPath($current_module, 'DecideSchedule') .
+ "&" . $url_params . "&schedule_id=" . $schedule->schedule_id .
+ "&mailentry_adjustment_id=" . $mailentry_adjustment_id;
+
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // ¥¨¥é¡¼»þ¤Î¥á¥Ã¥»¡¼¥¸É½¼¨
+ $this->setAttribute('error_message',
+ $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+require_once(dirname(__FILE__).'/AnswerScheduleSuccessView.class.php');
+
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ë·èÄê
+ *
+ * @author z-satosi
+ * @version $Revision: 1.2 $
+ */
+
+class DecideScheduleSuccessView extends AnswerScheduleSuccessView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $this->setAttribute('is_decision_screen', TRUE);
+ $this->setAttribute('mailentry_adjustment_id',
+ $request->getAttribute('mailentry_adjustment_id'));
+ $this->setAttribute('current_module','Community');
+ $this->setAttribute('current_action', 'DecideSchedule');
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/Community/views
+ * DeleteBBSResView_confirm
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/02/23
+ */
+
+class DeleteBBSResSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteBBSRes.tpl.php');
+ $back_url = $request->getAttribute('back_url');
+ $delete_bbs_url = $request->getAttribute('delete_bbs_res_url');
+ // parameter set
+ $this->setAttribute('delete_bbs_res_url', $delete_bbs_url);
+ $this->setAttribute('back_url', $back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡Åê¹Æºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/Community/views
+ * DeleteBBSView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/02/23
+ */
+
+class DeleteBBSSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteBBS.tpl.php');
+ $back_url = $request->getAttribute('back_url');
+ $delete_bbs_url = $request->getAttribute('delete_bbs_url');
+
+ // parameter set
+ $this->setAttribute('delete_bbs_url', $delete_bbs_url);
+ $this->setAttribute('back_url', $back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DeleteCommunityLinkInputView.class.php,v 1.1 2006/03/07 07:35:16 w-ota Exp $
+
+class DeleteCommunityLinkInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $delete_community_row = $request->getAttribute('delete_community_row');
+ $mode = $request->getAttribute('mode');
+
+ // ²Ã¹©
+ $delete_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $delete_community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄêURL
+ $community_link_url = $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id'];
+
+ // action URL
+ $action_url = $this->getControllerPath('Community', 'DeleteCommunityLink') . '&community_id=' . $community_row['community_id'] . '&delete_community_id=' . $delete_community_row['community_id'] . '&mode=' . $mode;
+ // back URL
+ $back_url = $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id'];
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('delete_community_row', $delete_community_row);
+ $this->setAttribute('mode', $mode);
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('community_link_url', $community_link_url);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteCommunityLink.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðºï½ü ¥á¥ó¥Ð°ìÍ÷ɽ¼¨¡ÊÁªÂò¡Ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.8 $ $Date: 2006/03/30 08:21:11 $
+ */
+class DeleteCommunityMemberListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_row = $request->getAttribute('target_community_row');
+ $target_community_member_info_row_array = $request->getAttribute('target_community_member_info_row_array');
+
+ // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¥æ¡¼¥¶
+ $delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
+
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&community_id=' . $target_community_row['community_id'];
+
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= $target_community_info;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'],
+$target_community_row['community_id']);
+
+ // ºï½ü³Îǧ²èÌÌ¥¢¥¯¥·¥ç¥óURL
+ $confirm_action_url = $this->getControllerPath('Community', 'DeleteCommunityMemberList');
+ $confirm_action_url .= $target_community_info;
+
+ // ¥á¥ó¥Ð¥ê¥¹¥È
+ $community_member_info_row_array = array();
+ foreach ($target_community_member_info_row_array as $target_community_member_info_row) {
+ $a_community_member_info_row = array();
+ $top_page_url = "";
+ $is_selected = false;
+ $is_disabled = false;
+
+ $top_page_url = $this->getControllerPath('User', DEFAULT_ACTION);
+ $top_page_url .= "&id=" . $target_community_member_info_row['user_community_id'];
+
+ if ($delete_user_community_id_array) {
+ $is_selected = in_array($target_community_member_info_row['user_community_id'], $delete_user_community_id_array);
+ }
+
+ // Ëܿͤξì¹ç¤Ï¡¢ÁªÂòÉÔ²Ä
+ if ($target_community_member_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_disabled = true;
+ }
+
+ $a_community_member_info_row['community_id'] = $target_community_member_info_row['user_community_id'];
+ $a_community_member_info_row['name'] = $target_community_member_info_row['community_name'];
+ $a_community_member_info_row['top_page_url'] = $top_page_url;
+ $a_community_member_info_row['image_url'] = ACSUser::get_image_url($target_community_member_info_row['user_community_id'], 'thumb');
+ $a_community_member_info_row['is_selected'] = $is_selected;
+ $a_community_member_info_row['is_disabled'] = $is_disabled;
+
+ array_push($community_member_info_row_array, $a_community_member_info_row);
+ }
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ÀßÄê
+ $error_msg_array = array();
+ $error_row = $request->getErrors();
+ if ($error_row) {
+ foreach ($error_row as $key => $msg) {
+ array_push($error_msg_array, $msg);
+ }
+ }
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('target_community_name', $target_community_row['community_name']);
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('confirm_action_url', $confirm_action_url);
+
+ $this->setAttribute('community_member_info_row_array', $community_member_info_row_array);
+
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteCommunityMemberList_input.tpl.php');
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ðºï½ü ¥á¥ó¥Ð°ìÍ÷ɽ¼¨¡Ê³Îǧ¡Ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/02/20 07:06:10 $
+ */
+class DeleteCommunityMemberListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $target_community_row = $request->getAttribute('target_community_row');
+ $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
+
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&community_id=' . $target_community_row['community_id'];
+
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= $target_community_info;
+
+ // ºï½ü³Îǧ²èÌÌ¥¢¥¯¥·¥ç¥óURL
+ $back_action_url = $this->getControllerPath('Community', 'DeleteCommunityMemberList');
+ $back_action_url .= $target_community_info;
+
+ $delete_action_url = $this->getControllerPath('Community',
+ 'DeleteCommunityMember');
+ $delete_action_url .= $target_community_info;
+
+ // ¥á¥ó¥Ð¥ê¥¹¥È
+ $community_member_info_row_array = array();
+ foreach ($delete_user_info_row_array as $target_community_member_info_row) {
+ $a_community_member_info_row = array();
+ $top_page_url = "";
+
+ $top_page_url = $this->getControllerPath('User', DEFAULT_ACTION);
+ $top_page_url .= "&id=" . $target_community_member_info_row['user_community_id'];
+
+ $a_community_member_info_row['community_id'] = $target_community_member_info_row['user_community_id'];
+ $a_community_member_info_row['name'] = $target_community_member_info_row['community_name'];
+ $a_community_member_info_row['top_page_url'] = $top_page_url;
+ $a_community_member_info_row['image_url'] = ACSUser::get_image_url($target_community_member_info_row['user_community_id'], 'thumb');
+
+ array_push($community_member_info_row_array, $a_community_member_info_row);
+ }
+
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('target_community_name', $target_community_row['community_name']);
+
+ // form ¤Î¥¢¥¯¥·¥ç¥óÀè URL
+ $this->setAttribute('back_action_url', $back_action_url);
+ $this->setAttribute('delete_action_url', $delete_action_url);
+
+ $this->setAttribute('community_member_info_row_array', $community_member_info_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteCommunityMemberList_confirm.tpl.php');
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü¡Ê³Îǧ¡Ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2006/02/20 07:06:10 $
+ */
+class DeleteCommunitySuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_community_row = $request->getAttribute('target_community_row');
+ $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&community_id=' . $target_community_row['community_id'];
+
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= $target_community_info;
+
+ // ¥¥ã¥ó¥»¥ëURL
+ $cancel_action_url = $community_top_page_url;
+
+ // ºï½ü¥¢¥¯¥·¥ç¥óURL
+ $delete_action_url = $this->getControllerPath('Community',
+ 'DeleteCommunity');
+ $delete_action_url .= $target_community_info;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤Î³µÍ×
+ $delete_community_row = array();
+
+ $delete_community_row['community_name'] = $target_community_row['community_name'];
+ $delete_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . $target_community_info;
+ $delete_community_row['image_url'] = ACSCommunity::get_image_url($target_community_row['community_id']);
+ $delete_community_row['community_profile'] = $target_community_row['community_profile']['contents_value'];
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('target_community_name', $target_community_row['community_name']);
+ $this->setAttribute('delete_community_row', $delete_community_row);
+
+ // form ¤Î¥¢¥¯¥·¥ç¥óÀè URL
+ $this->setAttribute('cancel_action_url', $cancel_action_url);
+ $this->setAttribute('delete_action_url', $delete_action_url);
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteCommunity_confirm.tpl.php');
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºï½ü
+ *
+ * @author kuwayama
+ * @version $Revision: 1.2 $ $Date: 2006/03/20 10:45:19 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class DeleteFolderSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_community_id = $target_community_info_row['community_id'];
+
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('Community', 'DeleteFolder');
+ $action_url .= $target_community_info;
+ $action_url .= $folder_info;
+ $action_url .= "&action_type=delete";
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('Community', 'Folder');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+
+ // ̾Á°Êѹ¹ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // ̾Á°Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteFolder.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // ̾Á°Êѹ¹ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/Community/views
+ * DeleteProfileImageView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/02/16
+ */
+
+class DeleteProfileImageInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteProfileImage.tpl.php');
+ $back_url = $request->getAttribute('back_url');
+
+ // parameter set
+ $this->setAttribute('delete_image_url', $delete_image_url);
+ $this->setAttribute('back_url', $back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: EditBBSView::INPUT.class.php,v 1.1 2006/06/08 05:53:03 w-ota Exp $
+
+class EditBBSInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row = $request->getAttribute('bbs_row');
+ $form = $request->getAttribute('form');
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤Î¥Ç¡¼¥¿Éü¸µ
+ if (is_array($form)) {
+ $bbs_row['subject'] = $form['subject'];
+ $bbs_row['body'] = $form['body'];
+ }
+
+ // get
+ if ($bbs_row['file_id'] != '') {
+ $bbs_row['file_url'] = ACSBBSFile::get_image_url($bbs_row['bbs_id'], 'thumb');
+ }
+
+ // form action ³Îǧ²èÌ̤ؤÎÁ«°Ü
+ $action_url = $this->getControllerPath('Community', 'EditBBS') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ // BBS URL
+ $bbs_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'];
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('bbs_row', $bbs_row);
+ $this->setAttribute('action_url', $action_url);
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('bbs_url', $bbs_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditBBS.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditBBSResInputView.class.php,v 1.1 2006/06/08 05:53:03 w-ota Exp $
+
+class EditBBSResInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_res_row = $request->getAttribute('bbs_res_row');
+ $form = $request->getAttribute('form');
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤Î¥Ç¡¼¥¿Éü¸µ
+ if (is_array($form)) {
+ $bbs_res_row['subject'] = $form['subject'];
+ $bbs_res_row['body'] = $form['body'];
+ }
+
+ // form action ³Îǧ²èÌ̤ؤÎÁ«°Ü
+ $action_url = $this->getControllerPath('Community', 'EditBBSRes')
+ . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_res_row['bbs_id'] . '&bbs_res_id=' . $bbs_res_row['bbs_res_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ // BBS URL
+ $bbs_url = $this->getControllerPath('Community', 'BBS') . '&community_id=' . $community_row['community_id'];
+ // BBSRes URL
+ $bbs_res_url = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_res_row['bbs_id'];
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('community_row', $request->getAttribute('community_row'));
+ $this->setAttribute('bbs_res_row', $bbs_res_row);
+ $this->setAttribute('action_url', $action_url);
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('bbs_url', $bbs_url);
+ $this->setAttribute('bbs_res_url', $bbs_res_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditBBSRes.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditCommunityAdminView::INPUT.class.php,v 1.1 2006/03/07 07:34:35 w-ota Exp $
+
+class EditCommunityAdminInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $community_member_user_info_row_array = $request->getAttribute('community_member_user_info_row_array');
+
+ foreach ($community_member_user_info_row_array as $index => $user_info_row) {
+ // ¼«Ê¬¤Î¥æ¡¼¥¶¾ðÊó¤ÏÀßÄêÂоݳ°
+ if ($user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ unset($community_member_user_info_row_array[$index]);
+ continue;
+ }
+ $community_member_user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $community_member_user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ $community_member_user_info_row_array[$index]['is_community_admin'] = ACSCommunity::is_community_admin($user_info_row['user_community_id'], $community_row['community_id']);
+ }
+
+ // ¥¢¥¯¥»¥¹¼Ô ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô
+ $acs_user_info_row['is_community_admin'] = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ $acs_user_community_row = ACSCommunity::get_community_row($acs_user_info_row['user_community_id']);
+ $acs_user_info_row['community_name'] = $acs_user_community_row['community_name'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // action URL
+ $action_url = $this->getControllerPath('Community', 'EditCommunityAdmin') . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditCommunityAdmin.tpl.php');
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('action_url', $action_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£µ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¡¡Êѹ¹²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.4 $ $Date: 2006/03/09
+ */
+// $Id: EditCommunityView::INPUT.class.php,v 1.4 2006/12/18 07:42:13 w-ota Exp $
+
+class EditCommunityInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $category_group_master_row_array = $request->getAttribute('category_group_master_row_array');
+ $community_row = $request->getAttribute('community_row');
+ $sub_community_row_array = $request->getAttribute('sub_community_row_array');
+ $parent_community_row_array = $request->getAttribute('parent_community_row_array');
+
+ // ²Ã¹©
+ $community_row['register_date'] = ACSLib::convert_pg_date_to_str($community_row['register_date'], 0, 0, 0); // ÅÐÏ¿Æü
+
+ // ·Ç¼¨ÈÄ¡¦¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϡʵìÀßÄê¡Ë
+ foreach (array('bbs', 'community_folder') as $key) {
+ foreach($community_row['contents_row_array'][$key]['trusted_community_row_array'] as $index => $trusted_community_row) {
+ $community_row['contents_row_array'][$key]['trusted_community_row_array'][$index]['top_page_url'] =
+ $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $trusted_community_row['community_id'];
+ }
+ }
+
+ // ¥«¥Æ¥´¥ê¥Þ¥¹¥¿°ìÍ÷
+ $category_master_row_array = array();
+ foreach ($category_group_master_row_array as $category_group_master_row) {
+ foreach ($category_group_master_row['category_master_row_array'] as $category_master_row) {
+ array_push($category_master_row_array, $category_master_row);
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'EditCommunity'). '&community_id=' . $community_row['community_id'];
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity');
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditCommunity.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('category_master_row_array', $category_master_row_array);
+ $this->setAttribute('bbs_open_level_master_row_array', $request->getAttribute('bbs_open_level_master_row_array'));
+ $this->setAttribute('community_folder_open_level_master_row_array', $request->getAttribute('community_folder_open_level_master_row_array'));
+ $this->setAttribute('self_open_level_master_row_array', $request->getAttribute('self_open_level_master_row_array'));
+ $this->setAttribute('edit_community_ml_address',
+ $request->getAttribute('edit_community_ml_address'));
+
+ // ¥¨¥é¡¼»þ¤Î¥á¥Ã¥»¡¼¥¸É½¼¨
+ $this->setAttribute('error_message',
+ $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditExternalRSSView::INPUT.class.php,v 1.1 2007/03/28 05:58:21 w-ota Exp $
+
+class EditExternalRSSInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $community_admin_user_info_row_array = $request->getAttribute('community_admin_user_info_row_array');
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ if (is_array($community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'])) {
+ foreach ($community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'] as $index => $trusted_community_row) {
+ $trusted_community_row = ACSCommunity::get_community_row($trusted_community_row['community_id']);
+ $trusted_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $trusted_community_row['community_id'];
+ $community_row['contents_row_array']['external_rss_url']['trusted_community_row_array'][$index] = $trusted_community_row;
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'EditExternalRSS') . '&community_id=' . $community_row['community_id'];
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ÁªÂò
+ $select_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditExternalRSS.tpl.php');
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('community_admin_user_info_row_array', $community_admin_user_info_row_array);
+
+ $this->setAttribute('external_rss_url_open_level_master_row_array', $request->getAttribute('external_rss_url_open_level_master_row_array'));
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('select_trusted_community_url', $select_trusted_community_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditFileDetailView::SUCCESS.class.php,v 1.2 2006/12/08 05:06:37 w-ota Exp $
+
+class EditFileDetailSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_community_row = $request->getAttribute('target_community_row');
+ $file_obj = $request->getAttribute('file_obj');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+ $file_detail_info_row = $request->getAttribute('file_detail_info_row');
+
+ $target_folder_obj = $community_folder_obj->get_folder_obj();
+ $target_community_id = $target_community_row['community_id'];
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&community_id=' . $target_community_id;
+ $target_folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'],
+ $target_community_row['community_id']);
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_put_folder = $target_folder_obj->is_put_folder($target_community_row['community_id']);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó //
+ $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . $target_community_info;
+
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó
+ $file_info_row = array();
+ $file_info_row['file_id'] = $file_obj->get_file_id();
+ $file_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_info_row['mime_type'] = $file_obj->get_mime_type();
+ $file_info_row['file_size_kb'] = $file_obj->get_file_size_kb();
+ $file_info_row['file_size'] = $file_obj->get_file_size();
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['link_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
+
+ // ÅÐÏ¿¼Ô
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['entry_user_community_link_url'] .= '&id=' . $file_obj->get_entry_user_community_id();;
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+
+ // ¹¹¿·¼Ô
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['update_user_community_link_url'] .= '&id=' . $file_obj->get_update_user_community_id();;
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $community_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ $folder_name = $target_community_row['community_name'];
+ //$folder_name .= "¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'EditFileDetailSuccessView.class.php', 'FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('Community', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+ /* ---------------- */
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó */
+ /* ---------------- */
+ $detail_folder_obj = $community_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ if ($is_community_member) {
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+ $_trusted_community_row['community_top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $trusted_community_row['community_id'];
+
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+ }
+ // link url
+ $detail_folder_row['link_url'] = $this->getControllerPath('Community', 'Folder')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id();
+
+ // action URL
+ $action_url = $this->getControllerPath('Community', 'EditFileDetail');
+ $action_url .= $target_community_info;
+ $action_url .= $target_folder_info;
+ $action_url .= '&file_id=' . $file_info_row['file_id'];
+
+ // Ìá¤êÀèURL¡Ê¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¡Ë
+ $back_url = "";
+ $back_url = $this->getControllerPath('Community', 'FileDetail');
+ $back_url .= $target_community_info;
+ $back_url .= $target_folder_info;
+ $back_url .= '&file_id=' . $file_info_row['file_id'];
+
+
+ // set
+ $this->setAttribute('target_community_row', $target_community_row);
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('file_info_row', $file_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditFileDetail.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºîÀ®¡¦Êѹ¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2006/11/20 08:44:15 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class EditFolderInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $edit_folder_id = $request->getAttribute('edit_folder_id');
+ $default_data_row = $request->getAttribute('default_data_row'); // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃÍ
+
+ $parent_community_row_array = $request->getAttribute('parent_community_row_array');
+ $sub_community_row_array = $request->getAttribute('sub_community_row_array');
+
+ $target_community_id = $target_community_info_row['community_id'];
+ $view_mode = $request->getAttribute('view_mode');
+
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+ if ($view_mode == 'update') {
+ $edit_folder_info = '&edit_folder_id=' . $edit_folder_id;
+ } else {
+ $edit_folder_info = "";
+ }
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $_target_community_info_row['community_id'] = $target_community_info_row['community_id'];
+ $_target_community_info_row['community_name'] = $target_community_info_row['community_name'];
+ $_target_community_info_row['top_page_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $_target_community_info_row['top_page_url'] .= $target_community_info;
+
+
+ // ÅÐÏ¿¡¦¹¹¿·½èÍýURL
+ $action_url = "";
+ $action_url = $this->getControllerPath('Community', 'EditFolder');
+ $action_url .= $target_community_info;
+ $action_url .= $folder_info;
+ $action_url .= $edit_folder_info;
+ $action_url .= '&action_type=' . $view_mode;
+
+ $cancel_url = "";
+ if ($view_mode == 'create') {
+ $cancel_url = $this->getControllerPath('Community', 'Folder');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+ } elseif ($view_mode == 'update') {
+ $cancel_url = $this->getControllerPath('Community', 'FolderDetail');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+ $cancel_url .= '&detail_folder_id=' . $edit_folder_id;
+ }
+
+ // ¸ø³«ÈϰϤòÀßÄê¤Ç¤¤ë¤«¤É¤¦¤«
+ $is_set_open_level_available = $user_folder_obj->is_set_open_level_available();
+
+ // ¸ø³«ÈÏ°ÏÁªÂò»è¼èÆÀ
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D40'), ACSMsg::get_mst('contents_type_master','D32'));
+ // ¥Ç¥Õ¥©¥ë¥Èɽ¼¨¥Ç¡¼¥¿¤¬¤¢¤ë¾ì¹ç¡¢is_default ¤òÊѹ¹¤¹¤ë
+ if ($default_data_row) {
+ $selected_open_level_code = $default_data_row['open_level_code'];
+ $index_count = 0;
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if ($open_level_master_row['open_level_code'] == $selected_open_level_code) {
+ $open_level_master_row_array[$index_count]['is_default'] = true;
+ } else {
+ $open_level_master_row_array[$index_count]['is_default'] = false;
+ }
+ $index_count++;
+ }
+ }
+
+ // -------------------------
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£
+ $trusted_community_row_array = array();
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£
+ $parent_community_info_array = $this->make_trusted_community_row_array($controller, $parent_community_row_array);
+ //array_push($trusted_community_row_array, $parent_community_row_array);
+
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£
+ $sub_community_info_array = $this->make_trusted_community_row_array($controller, $sub_community_row_array);
+ //array_push($trusted_community_row_array, $sub_community_row_array);
+
+ // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£
+ $selected_trusted_community_row_array = ACSCommunity::get_each_community_row_array($default_data_row['trusted_community_id_array']);
+ $selected_trusted_community_info_array = $this->make_trusted_community_row_array($controller, $selected_trusted_community_row_array);
+
+ // ¥Ç¥Õ¥©¥ë¥È¤Çɽ¼¨¤¹¤ë±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¤òºîÀ®
+ //$trusted_community_row_array = array_merge($parent_community_info_array, $sub_community_info_array, $selected_trusted_community_info_array);
+ //$trusted_community_row_array = array_unique($trusted_community_row_array);
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃURL
+ #index.php?module=Community&action=SelectTrustedCommunity&form_name=folder_open_level_form
+ $add_trusted_community_url = "";
+ $add_trusted_community_url = $this->getControllerPath('Community', 'SelectTrustedCommunity');
+ $add_trusted_community_url .= '&form_name=folder_info';
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditFolder.tpl.php');
+
+ // set
+ $this->setAttribute('target_community_info_row', $_target_community_info_row);
+ $this->setAttribute('view_mode', $view_mode);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ $this->setAttribute('is_set_open_level_available', $is_set_open_level_available);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('parent_community_info_array', $parent_community_info_array);
+ $this->setAttribute('sub_community_info_array', $sub_community_info_array);
+ $this->setAttribute('selected_trusted_community_info_array', $selected_trusted_community_info_array);
+ $this->setAttribute('add_trusted_community_url', $add_trusted_community_url);
+// $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ $this->setAttribute('default_data_row', $default_data_row);
+
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+
+ function make_trusted_community_row_array (&$controller, $target_community_row_array) {
+ $community_row_array = array();
+ foreach ($target_community_row_array as $target_community_row) {
+ $community_row = array();
+ $community_row['community_id'] = $target_community_row['community_id'];
+ $community_row['community_name'] = $target_community_row['community_name'];
+ $community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
+
+ array_push($community_row_array, $community_row);
+ }
+ return $community_row_array;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¼Ì¿¿¥¢¥Ã¥×¥í¡¼¥Éµ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿Êѹ¹²èÌÌ
+ * @package acs/webapp/modules/Communication/views
+ * EditProfileImageView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/02/16
+ */
+
+class EditProfileImageInputView extends BaseView
+{
+ /**
+ * execute ¥á¥½¥Ã¥É
+ *¡¡¥á¥Ã¥»¡¼¥¸¥Ñ¥Ã¥·¥ó¥°
+ * @param object $user ¥æ¡¼¥¶¾ðÊó
+ * @param object $request ¥ê¥¯¥¨¥¹¥È¾ðÊó
+ * @param object $controller ¡õ¥¢¥É¥ì¥¹¡¡¥³¥ó¥È¥í¡¼¥é
+ *
+ * @return parent::execute() BaseView¥¯¥é¥¹¼Â¹Ô
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //action¥¯¥é¥¹¤«¤éÄÌÃÎset¤µ¤ì¤¿user_community_id ¤ò¼èÆÀ¤¹¤ë
+ $user_community_id = $request->getAttribute('community_id');
+ //action¥¯¥é¥¹¤«¤éÄÌÃÎset¤µ¤ì¤¿target_community_info_row ¤ò¼èÆÀ¤·$profileÊÑ¿ô¤Î¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎó¤È¤¹¤ë
+ $profile = $request->getAttribute('target_community_info_row');
+
+ // ²èÁü¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹¤òÀßÄê
+ $profile['image_url'] = ACSCommunity::get_image_url($user_community_id);
+ $file_id = ""; //¹¹¿·½èÍýÍÑ (¿·µ¬ÄɲäؤÎÂбþ)
+
+ // ¥á¥Ë¥å¡¼ÀßÄê ¿·µ¬ÅÐÏ¿°Ê³°¤Ïºï½ü¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+ $image_new_mode = $request->getAttribute('image_new_add');
+ $menu = array();
+ if($image_new_mode){
+ $menu['delete_image_url'] = null;
+ }else{
+ $file_id = $profile['file_id']; //¹¹¿·½èÍýÍÑ ÄɲÃ
+ //ºï½ü¤Î°Õ»×³ÎǧURL ver1.3
+ $delete_confirm_url = $this->getControllerPath('Community','DeleteProfileImage');
+ $delete_confirm_url .= '&community_id=' . $user_community_id;
+ $delete_confirm_url .= '&file_id=' . $file_id;
+ $menu['delete_image_url'] = $delete_confirm_url;
+ }
+ $menu['image_new_mode']=$image_new_mode;
+
+ //²èÁü¤Î¥¢¥Ã¥×¥í¡¼¥ÉURL ver1.1
+ $upload_image_url = $this->getControllerPath('Community','UploadProfileImage');
+ $upload_image_url .= '&community_id=' . $user_community_id;
+ $upload_image_url .= '&image_new_mode=' . $image_new_mode; //ver1.1
+ $upload_image_url .= '&file_id=' . $file_id; //¹¹¿·½èÍýÍÑ¡¡ÄɲÃ
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ÀßÄê
+ $error_msg_array = array();
+ $error_row = $request->getAttribute('error_row');
+ if ($error_row) {
+ foreach ($error_row as $key => $msg) {
+ array_push($error_msg_array, $msg);
+ }
+ }
+
+ //set
+
+ $back_url = $request->getAttribute('back_url');
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('profile', $profile);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('error_msg_array', $error_msg_array);
+ $this->setAttribute('upload_image_url', $upload_image_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditProfileImage.tpl.php');
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+require_once(ACS_LIB_TEMPLATE_DIR . 'ACSTemplateLib.class.php');
+
+/**
+ * ¥¹¥±¥¸¥å¡¼¥ë¤ÎºîÀ®¡¦½¤ÀµÉ½¼¨
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+
+class EditScheduleInputView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $this->setScreenId("0001");
+ $this->setTemplate('EditSchedule.tpl.php');
+
+ $current_module = 'Community';
+ $current_action = 'EditSchedule';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $target_community_row =& $request->getAttribute('target_community_row');
+ $this->setAttribute('target_community_row', $target_community_row);
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÀßÄê
+ $schedule =& $request->getAttribute('schedule');
+ $this->setAttribute('schedule', $schedule);
+
+ // ÆþÎÏÃͤÎÀßÄê
+ $this->setAttribute('edit_append_adjustment_dates',
+ $request->getAttribute('edit_append_adjustment_dates'));
+ $this->setAttribute('delete_ajustment_dates_checked',
+ $request->getAttribute('delete_ajustment_dates_checked'));
+ $this->setAttribute('send_annouce_mail_checked',
+ $request->getAttribute('send_annouce_mail_checked'));
+
+ // POST-URL
+ $this->setAttribute('posturl',
+ $this->getControllerPath($current_module, $current_action));
+
+ // ¶¦ÄÌURL¥Ñ¥é¥á¡¼¥¿
+ $url_params = "community_id=" . $target_community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $this->setAttribute('url_community_top',
+ $this->getControllerPath($current_module, 'Index') .
+ "&" . $url_params);
+
+ // ¥¹¥±¥¸¥å¡¼¥ëÄ´À°É½°ìÍ÷¤ÎURL
+ $this->setAttribute('url_schedule_list',
+ $this->getControllerPath($current_module, 'Schedule') .
+ "&" . $url_params);
+
+ // ¸õÊäÆü»þ¼«Æ°ºîÀ®options¥ê¥¹¥È¤ÎÀ¸À®
+ $this->setAttribute('html_options_generate_year',
+ ACSTemplateLib::get_year_select_options());
+ $this->setAttribute('html_options_generate_month',
+ ACSTemplateLib::get_month_select_options());
+ $this->setAttribute('html_options_generate_day',
+ ACSTemplateLib::get_day_select_options());
+
+ // ÄùÀÚÆü»þoptions¥ê¥¹¥È¤ÎÀ¸À®
+ $closing_array = $request->getAttribute('closing_datetime_array');
+ $this->setAttribute('html_options_closing_year',
+ ACSTemplateLib::get_year_select_options($closing_array['year']));
+ $this->setAttribute('html_options_closing_month',
+ ACSTemplateLib::get_month_select_options($closing_array['month']));
+ $this->setAttribute('html_options_closing_day',
+ ACSTemplateLib::get_day_select_options($closing_array['day']));
+ $this->setAttribute('html_options_closing_hour',
+ ACSTemplateLib::get_hour_select_options($closing_array['hours']));
+ $this->setAttribute('html_options_closing_min',
+ ACSTemplateLib::get_min_select_options($closing_array['minutes']));
+
+ // ÂоݤΥ饸¥ª¥Ü¥¿¥ó¥Á¥§¥Ã¥¯ÀßÄê
+ if ($schedule->is_target_all()) {
+ $this->setAttribute('html_checked_target_all', ' CHECKED');
+ $this->setAttribute('html_checked_target_free', '');
+ } else {
+ $this->setAttribute('html_checked_target_all', '');
+ $this->setAttribute('html_checked_target_free', ' CHECKED');
+ }
+
+ // ¥¨¥é¡¼»þ¤Î¥á¥Ã¥»¡¼¥¸É½¼¨
+ $this->setAttribute('error_message',
+ $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: FileDetailView::SUCCESS.class.php,v 1.90 2009/06/19 10:05:00 acs Exp $
+
+class FileDetailSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_community_row = $request->getAttribute('target_community_row');
+ $file_obj = $request->getAttribute('file_obj');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+ $file_detail_info_row = $request->getAttribute('file_detail_info_row');
+ $file_history_row_array = $request->getAttribute('file_history_row_array');
+
+ $target_folder_obj = $community_folder_obj->get_folder_obj();
+ $target_community_id = $target_community_row['community_id'];
+
+ $is_community_admin = $request->getAttribute('is_community_admin');
+ $file_public_access_row = $request->getAttribute('file_public_access_row');
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&community_id=' . $target_community_id;
+ $target_folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'],
+ $target_community_row['community_id']);
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_put_folder = $target_folder_obj->is_put_folder($target_community_row['community_id']);
+
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤«¤É¤¦¤«
+ if ($file_obj->get_owner_community_id() != $target_community_id) {
+ $is_put_file = true;
+ } else {
+ $is_put_file = false;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó //
+ $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . $target_community_info;
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó //
+ $file_info_row = array();
+ $file_info_row['file_id'] = $file_obj->get_file_id();
+ $file_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_info_row['mime_type'] = $file_obj->get_mime_type();
+ $file_info_row['file_size_kb'] = $file_obj->get_file_size_kb();
+ $file_info_row['file_size'] = $file_obj->get_file_size();
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['link_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
+ // ÅÐÏ¿¼Ô
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['entry_user_community_link_url'] .= '&id=' . $file_obj->get_entry_user_community_id();;
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ // ¹¹¿·¼Ô
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['update_user_community_link_url'] .= '&id=' . $file_obj->get_update_user_community_id();;
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $community_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ $folder_name = $target_community_row['community_name'];
+ //$folder_name .= "¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'FileDetailSuccessView.class.php', 'FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('Community', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+ // ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó //
+ $detail_folder_obj = $community_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ if ($is_community_member) {
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+ $_trusted_community_row['community_top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $trusted_community_row['community_id'];
+
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤ÏÈó¸ø³«
+ if ($is_root_folder) {
+ $detail_folder_row['open_level_name'] = ACSMsg::get_mst('open_level_master','D04');
+ $detail_folder_row['trusted_community_row_array'] = array();
+ }
+
+ // link url
+ $detail_folder_row['link_url'] = $this->getControllerPath('Community', 'Folder')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id();
+
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó //
+ foreach ($file_history_row_array as $index => $file_history_row) {
+ $file_history_row_array[$index]['update_date'] = ACSLib::convert_pg_date_to_str($file_history_row['update_date'], 1, 1);
+ $file_history_row_array[$index]['link_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $file_history_row['community_id'];
+ $file_history_row_array[$index]['download_history_file_url'] = $this->getControllerPath('Community', 'DownloadHistoryFile')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id() . '&file_id=' . $file_history_row['file_id'] . '&file_history_id=' . $file_history_row['file_history_id'];
+ if ($index != 0 && !$is_put_file) {
+ $file_history_row_array[$index]['restore_history_file_url'] = $this->getControllerPath('Community', 'RestoreHistoryFile')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id() . '&file_id=' . $file_history_row['file_id'] . '&file_history_id=' . $file_history_row['file_history_id'];
+ }
+ foreach ($file_history_row['file_history_comment_row_array'] as $index2 => $file_history_comment_row) {
+ $file_history_row_array[$index]['file_history_comment_row_array'][$index2]['post_date'] =
+ ACSLib::convert_pg_date_to_str($file_history_comment_row['post_date'], false, true, true);
+ $file_history_row_array[$index]['file_history_comment_row_array'][$index2]['link_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $file_history_comment_row['community_id'];
+ }
+ }
+
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥ÈURL
+ $file_history_comment_url = $this->getControllerPath('Community', 'FileHistoryComment')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id']
+ . '&file_history_id=' . $file_history_row_array[0]['file_history_id'];
+
+
+ // ¥á¥Ë¥å¡¼ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤Ïɽ¼¨¤·¤Ê¤¤
+ if ($is_community_member && (!$is_put_folder && $file_obj->get_owner_community_id() == $target_community_id)) {
+ // ¥Õ¥¡¥¤¥ë¹¹¿·URL
+ $menu['update_file_url'] = $this->getControllerPath('Community', 'UpdateFile')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id'];
+
+ // ̾Á°Êѹ¹URL
+ $menu['rename_folder_list_url'] = $this->getControllerPath('Community', 'RenameFolderList')
+ . $target_community_info . $target_folder_info . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // °ÜÆ°URL
+ $menu['move_folder_list_url'] = $this->getControllerPath('Community', 'MoveFolderList')
+ . $target_community_info . $target_folder_info . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // ºï½üURL
+ $menu['delete_folder_url'] = $this->getControllerPath('Community', 'DeleteFolder')
+ . $target_community_info . $target_folder_info . '&action_type=confirm' . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // ¾ÜºÙ¾ðÊóÊÔ½¸URL
+ $menu['edit_file_detail_url'] = $this->getControllerPath('Community', 'EditFileDetail')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id'];
+ }
+
+ if(!$is_put_file){
+ // ¥Õ¥¡¥¤¥ë¸ø³«¾ðÊó
+ if($file_public_access_row['file_id'] != ""){
+ $file_public_access_row['access_start_date_disp'] =
+ ACSLib::convert_pg_date_to_str($file_public_access_row['access_start_date'], 0, 0, 0);
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹URLÀßÄê
+ $file_public_access_row['access_url'] =
+ ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL') .
+ $this->getControllerPath('Public', 'DownloadFile') .
+ "&key=" . $file_public_access_row['access_code'];
+
+ }
+ // ¥Õ¥¡¥¤¥ë¸ø³«ÀßÄêURL
+ $file_public_access_row['submit_url'] =
+ $this->getControllerPath('Community', 'PublicAccessFileDetail')
+ . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
+ }
+
+ // Ìá¤êÀèURL¡Ê¥Õ¥©¥ë¥À°ìÍ÷¡Ë//
+ $back_url = "";
+ $back_url = $this->getControllerPath('Community', 'Folder');
+ $back_url .= $target_community_info;
+ $back_url .= $target_folder_info;
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $file_history_row_array, $display_count);
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('target_community_row', $target_community_row);
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('is_root_folder', $is_root_folder);
+ $this->setAttribute('is_put_folder', $is_put_folder);
+ $this->setAttribute('is_put_file', $is_put_file);
+ $this->setAttribute('path_folder_obj_row_array', $path_folder_obj_row_array);
+
+ $this->setAttribute('file_info_row', $file_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $this->setAttribute('file_history_row_array', $file_history_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('file_history_comment_url', $file_history_comment_url);
+ $this->setAttribute('is_community_admin', $is_community_admin);
+ $this->setAttribute('file_public_access_row', $file_public_access_row);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FileDetail.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À¾ðÊó¾ÜºÙ
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/12/08 05:06:37 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class FolderDetailSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+ $detail_community_folder_obj = $request->getAttribute('detail_community_folder_obj');
+
+ $target_community_id = $target_community_info_row['community_id'];
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $_target_community_info_row['community_name'] = $target_community_info_row['community_name'];
+ $_target_community_info_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
+ $_target_community_info_row['top_page_url'] .= $target_community_info;
+
+ // ¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $target_community_id);
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_put_folder = $detail_community_folder_obj->folder_obj->is_put_folder($target_community_info_row['community_id']);
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $community_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ $folder_name = $target_community_info_row['community_name'];
+ //$folder_name .= "¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'FolderDetailSuccessView.class.php', 'FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_community_info_row['community_name']));
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('Community', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+ /* ---------------- */
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó */
+ /* ---------------- */
+ $detail_folder_obj = $detail_community_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+ $_trusted_community_row['community_top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION)
+ . '&community_id=' . $trusted_community_row['community_id'];
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+
+ // ÅÐÏ¿¼Ô
+ $detail_folder_row['entry_user_community_name'] = $detail_folder_obj->get_entry_user_community_name();
+ $detail_folder_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $detail_folder_row['entry_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_entry_user_community_id();;
+ $detail_folder_row['entry_date'] = $detail_folder_obj->get_entry_date_yyyymmddhmi();
+
+ // ¹¹¿·¼Ô
+ $detail_folder_row['update_user_community_name'] = $detail_folder_obj->get_update_user_community_name();
+ $detail_folder_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $detail_folder_row['update_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_update_user_community_id();;
+ $detail_folder_row['update_date'] = $detail_folder_obj->get_update_date_yyyymmddhmi();
+
+ // ¥á¥Ë¥å¡¼
+ if ($is_community_member && !$is_put_folder) {
+ // ¥Õ¥©¥ë¥À¾ðÊóÊÔ½¸¥á¥Ë¥å¡¼
+ $edit_folder_url = $this->getControllerPath('Community', 'EditFolder');
+ $edit_folder_url .= $target_community_info;
+ $edit_folder_url .= $folder_info;
+ $edit_folder_url .= '&edit_folder_id=' . $detail_community_folder_obj->folder_obj->get_folder_id();
+ $menu['edit_folder_url'] = $edit_folder_url;
+
+ // ¥Õ¥©¥ë¥Àºï½ü¥á¥Ë¥å¡¼
+ $delete_folder_url = $this->getControllerPath('Community', 'DeleteFolder');
+ $delete_folder_url .= $target_community_info;
+ $delete_folder_url .= $folder_info;
+ $delete_folder_url .= '&action_type=confirm';
+ $delete_folder_url .= '&selected_folder[]=' . $detail_community_folder_obj->folder_obj->get_folder_id();
+ $menu['delete_folder_url'] = $delete_folder_url;
+
+ // ¥Õ¥©¥ë¥À°ÜÆ°¥á¥Ë¥å¡¼
+ $move_folder_url = $this->getControllerPath('Community', 'MoveFolderList');
+ $move_folder_url .= $target_community_info;
+ $move_folder_url .= $folder_info;
+ $move_folder_url .= '&selected_folder[]=' . $detail_community_folder_obj->folder_obj->get_folder_id();
+ $menu['move_folder_url'] = $move_folder_url;
+ }
+
+ // Ìá¤êÀèURL¡Ê¥Õ¥©¥ë¥À°ìÍ÷¡Ë
+ $back_url = "";
+ $back_url = $this->getControllerPath('Community', 'Folder');
+ $back_url .= $target_community_info;
+ $back_url .= $folder_info;
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FolderDetail.tpl.php');
+
+ // set
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('is_put_folder', $is_put_folder);
+ $this->setAttribute('target_community_info_row', $_target_community_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('back_url', $back_url);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥Àɽ¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.20 $ $Date: 2006/12/08 05:06:37 $
+ */
+class FolderSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_row = $request->getAttribute('target_community_row');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+ $target_folder_obj = $community_folder_obj->get_folder_obj();
+ $folder_obj_array = $target_folder_obj->get_folder_obj_array();
+ $file_obj_array = $target_folder_obj->get_file_obj_array();
+
+ $mode = $request->getAttribute('mode');
+ if ($mode == 'group') {
+ $file_detail_info_row_array = $request->getAttribute('file_detail_info_row_array');
+ $file_contents_type_master_row_array_array = $request->getAttribute('file_contents_type_master_row_array_array');
+ }
+
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&community_id=' . $target_community_row['community_id'];
+ // URL ¤ËÉղ乤ë target_folder
+ $target_folder_info = '&folder_id=' . $target_folder_obj->get_folder_id();
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= $target_community_info;
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $community_folder_obj->get_path_folder_obj_array();
+ // ɽ¼¨ÍѤ˲ù©
+ $path_folder_obj_row_array = $this->make_display_folder_row_array($path_folder_obj_array, $target_community_info, $target_folder_info, $target_community_row, $mode, $controller);
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï
+ $target_folder_open_level_row['name'] = $target_folder_obj->get_open_level_name();
+ $target_folder_open_level_row['trusted_community_row_array'] = $this->make_display_trusted_community_row_array($target_folder_obj->get_trusted_community_row_array(), &$controller);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'],
+ $target_community_row['community_id']);
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_put_folder = $target_folder_obj->is_put_folder($target_community_row['community_id']);
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É URL
+ $upload_file_url = $this->getControllerPath('Community',
+ 'UploadFile');
+ $upload_file_url .= $target_community_info;
+ $upload_file_url .= $target_folder_info;
+
+ /* ¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë°ìÍ÷ */
+ // ¥Õ¥©¥ë¥À°ìÍ÷
+ $display_folder_obj_array = $target_folder_obj->get_display_folder_obj_array_for_community($acs_user_info_row, $target_community_row);
+ $folder_row_array = $this->make_display_folder_row_array($display_folder_obj_array, $target_community_info, $target_folder_info, $target_community_row, $mode, $controller);
+
+
+ if ($mode == 'group') {
+ // ¥°¥ë¡¼¥×ɽ¼¨ //
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+
+ // »ØÄê¤Ê¤·¤Î¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É
+ $default_file_category_code = array_search(ACSMsg::get_mst('file_category_master','D0000'), $file_category_master_array);
+
+ $file_detail_info_row_array_array = array();
+ foreach ($file_category_master_array as $file_category_code => $file_category_name) {
+ $file_detail_info_row_array_array[$file_category_code] = array();
+ $file_detail_info_row_array_array[$file_category_code]['file_category_code'] = $file_category_code;
+ $file_detail_info_row_array_array[$file_category_code]['file_category_name'] = $file_category_name;
+ $file_detail_info_row_array_array[$file_category_code]['file_detail_info_row_array'] = array();
+ }
+
+
+ // Action¤Ç¼èÆÀ¤·¤¿$file_detail_info_row¤ÎÇÛÎó¤ò¡¢¥Õ¥¡¥¤¥ë¼ïÎॳ¡¼¥É¤´¤È¤ÎÇÛÎó¤Ë¿¶¤êʬ¤±¤ë
+ foreach ($file_detail_info_row_array as $file_detail_info_row) {
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É
+ $file_category_code = $file_detail_info_row['file_category_code'];
+
+ // ¥ê¥ó¥¯URL
+ $file_detail_info_row['link_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info;
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_info_row['file_detail_url'] = $this->getControllerPath('Community', 'FileDetail')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info;
+ // ¥µ¥à¥Í¥¤¥ë²èÁüURL
+ if ($file_category_master_array[$file_category_code] == ACSMsg::get_mst('file_category_master','D0003')) {
+ $file_detail_info_row['image_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info . '&mode=thumb';
+ }
+
+ // push
+ if ($file_category_code == '') {
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È(»ØÄê¤Ê¤·)°·¤¤
+ $file_category_code = $default_file_category_code;
+ }
+ array_push($file_detail_info_row_array_array[$file_category_code]['file_detail_info_row_array'], $file_detail_info_row);
+ }
+
+ // ¥Õ¥©¥ë¥À Ä̾ïɽ¼¨URL
+ $folder_url = $this->getControllerPath('Community', 'Folder');
+ $folder_url .= $target_community_info;
+ $folder_url .= $target_folder_info;
+
+ } else {
+ // ¥Õ¥¡¥¤¥ë°ìÍ÷
+ $file_row_array = array();
+ foreach ($file_obj_array as $file_obj) {
+ $a_file = array();
+ $link_url = "";
+ $update_user_community_link_url = "";
+
+ $link_url = $this->getControllerPath('Community',
+ 'DownloadFile');
+ $link_url .= $target_community_info;
+ $link_url .= "&file_id=" . $file_obj->get_file_id();
+ $link_url .= $target_folder_info;
+
+ $update_user_community_link_url = $this->getControllerPath('User', 'Index');
+ $update_user_community_link_url .= "&id=" . $file_obj->get_update_user_community_id();
+
+ $a_file['name'] = $file_obj->get_display_file_name();
+ $a_file['file_id'] = $file_obj->get_file_id();
+ $a_file['link_url'] = $link_url;
+ $a_file['file_size'] = $file_obj->get_file_size_kb();
+ $a_file['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $a_file['update_user_community_link_url'] = $update_user_community_link_url;
+ $a_file['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $a_file['detail_url'] = $this->getControllerPath('Community', 'FileDetail');
+ $a_file['detail_url'] .= $target_community_info;
+ $a_file['detail_url'] .= "&file_id=" . $file_obj->get_file_id();
+ $a_file['detail_url'] .= $target_folder_info;
+
+ // ¥×¥Ã¥È¥Õ¥¡¥¤¥ë¤«¤É¤¦¤«
+ if ($file_obj->get_owner_community_id() == $target_community_row['community_id']) {
+ $a_file['is_put'] = false;
+ } else {
+ $a_file['is_put'] = true;
+ }
+
+ array_push($file_row_array, $a_file);
+ }
+
+ // ¥Õ¥©¥ë¥À ¥°¥ë¡¼¥×ɽ¼¨URL
+ $folder_group_mode_url = $this->getControllerPath('Community', 'Folder');
+ $folder_group_mode_url .= $target_community_info;
+ $folder_group_mode_url .= $target_folder_info;
+ $folder_group_mode_url .= '&mode=group';
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢Èó¸ø³«¤È¤·¤Æ°·¤¦
+ if ((!$is_community_member) && $is_root_folder) {
+ $file_row_array = array();
+ $file_detail_info_row_array_array = array();
+ }
+
+ // ¥Õ¥©¥ë¥ÀºîÀ® URL
+ if (!$is_put_folder) {
+ $edit_folder_url = $this->getControllerPath('Community', 'EditFolder');
+ $edit_folder_url .= $target_community_info;
+ $edit_folder_url .= $target_folder_info;
+ } else {
+ $edit_folder_url = "";
+ }
+
+ // ̾Á°Êѹ¹URL
+ $rename_folder_url = "";
+ $rename_folder_url = $this->getControllerPath('Community', 'RenameFolderList');
+ $rename_folder_url .= $target_community_info;
+ $rename_folder_url .= $target_folder_info;
+
+ // ºï½üURL
+ $delete_folder_url = "";
+ $delete_folder_url = $this->getControllerPath('Community', 'DeleteFolder');
+ $delete_folder_url .= $target_community_info;
+ $delete_folder_url .= $target_folder_info;
+ $delete_folder_url .= "&action_type=confirm"; // Á«°Ü¤¹¤ëÀè¤Î²èÌ̤ϳÎǧ²èÌÌ
+
+ // °ÜÆ°URL
+ $move_folder_url = "";
+ $move_folder_url = $this->getControllerPath('Community', 'MoveFolderList');
+ $move_folder_url .= $target_community_info;
+ $move_folder_url .= $target_folder_info;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¸¡º÷URL
+ $search_folder_url = $this->getControllerPath('Community', 'SearchFolder');
+ $search_folder_url .= $target_community_info;
+
+ $this->setAttribute('target_folder_open_level_row', $target_folder_open_level_row);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('is_root_folder', $is_root_folder);
+ $this->setAttribute('is_put_folder', $is_put_folder);
+ $this->setAttribute('upload_file_url', $upload_file_url);
+ $this->setAttribute('folder_put_community_url', $folder_put_community_url);
+
+ $this->setAttribute('target_user_community_name', $target_community_row['community_name']);
+
+ $this->setAttribute('path_folder_obj_row_array', $path_folder_obj_row_array);
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // Áàºî¥á¥Ë¥å¡¼
+ $this->setAttribute('edit_folder_url', $edit_folder_url);
+ $this->setAttribute('rename_folder_url', $rename_folder_url);
+ $this->setAttribute('delete_folder_url', $delete_folder_url);
+ $this->setAttribute('move_folder_url', $move_folder_url);
+ $this->setAttribute('search_folder_url', $search_folder_url);
+
+ $this->setAttribute('mode', $mode);
+ if ($mode == 'group') {
+ $this->setAttribute('folder_url', $folder_url);
+ $this->setAttribute('file_detail_info_row_array_array', $file_detail_info_row_array_array);
+ $this->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ } else {
+ $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
+ }
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ if ($mode == 'group') {
+ $this->setScreenId("0001");
+ $this->setTemplate('Folder_group.tpl.php');
+ } else {
+ $this->setScreenId("0001");
+ $this->setTemplate('Folder.tpl.php');
+ }
+
+ return parent::execute();
+ }
+
+ function make_display_folder_row_array ($folder_obj_array,
+ $target_community_info,
+ $target_folder_info,
+ $target_community_row,
+ $mode,
+ &$controller) {
+ $folder_row_array = array();
+ foreach ($folder_obj_array as $folder_obj) {
+ $folder_row = array();
+ $link_url = "";
+ $name = "";
+ $update_user_community_link_url = "";
+
+ $link_url = $this->getControllerPath('Community', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $folder_obj->get_folder_id();
+ if ($mode == 'group') {
+ $link_url .= '&mode=' . $mode;
+ }
+
+
+ $update_user_community_link_url = $this->getControllerPath('User', 'Index');
+ $update_user_community_link_url .= "&id=" . $folder_obj->get_update_user_community_id();
+
+ // ¥Õ¥©¥ë¥À¾ÜºÙ URL
+ $detail_url = $this->getControllerPath('Community', 'FolderDetail');
+ $detail_url .= $target_community_info;
+ $detail_url .= $target_folder_info;
+ $detail_url .= "&detail_folder_id=" . $folder_obj->get_folder_id();
+
+ if ($folder_obj->get_is_root_folder()) {
+ $name = $target_community_row['community_name'];
+ //$name .= "¤Î¥Õ¥©¥ë¥À";
+ $name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'FolderSuccessView.class.php', 'FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
+ } else {
+ $name = $folder_obj->get_folder_name();
+ }
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $trusted_community_row_array = $folder_obj->get_trusted_community_row_array();
+ $new_trusted_community_row_array = $this->make_display_trusted_community_row_array($trusted_community_row_array, &$controller);
+
+ $folder_row['name'] = $name;
+ $folder_row['folder_id'] = $folder_obj->get_folder_id();
+ $folder_row['link_url'] = $link_url;
+ $folder_row['open_level_name'] = $folder_obj->get_open_level_name();
+ $folder_row['trusted_community_row_array'] = $new_trusted_community_row_array;
+ $folder_row['update_user_community_name'] = $folder_obj->get_update_user_community_name();
+ $folder_row['update_user_community_link_url'] = $update_user_community_link_url;
+ $folder_row['update_date'] = $folder_obj->get_update_date_yyyymmddhmi();
+
+ $folder_row['detail_url'] = $detail_url;
+
+ // ¥×¥Ã¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $folder_row['is_put'] = $folder_obj->is_put_folder($target_community_row['community_id']);
+
+ array_push($folder_row_array, $folder_row);
+ }
+ return $folder_row_array;
+ }
+
+ function make_display_trusted_community_row_array ($trusted_community_row_array, &$controller) {
+ $new_trusted_community_row_array = array();
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $new_trusted_community_row = array();
+ $community_top_page_url = "";
+
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= "&community_id=" . $trusted_community_row['community_id'];
+
+ $new_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+ $new_trusted_community_row['community_top_page_url'] = $community_top_page_url;
+
+ array_push($new_trusted_community_row_array, $new_trusted_community_row);
+ }
+
+ return $new_trusted_community_row_array;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ *¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸ (¥¨¥é¡¼)
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/23 10:04:00 $
+ */
+class IndexErrorView extends BaseView
+{
+ function execute() {
+
+ $this->setScreenId("0001");
+ $this->setTemplate('Index_error.tpl.php');
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£µ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¡¡Êѹ¹²èÌÌ
+ * @package acs/webapp/modules/Community/views
+ * @author w-ota v 1.24 2006/03/08 @update akitsu
+ * @since PHP 4.0
+ */
+// $Id: IndexView::SUCCESS.class.php,v 1.33 2007/03/28 05:58:21 w-ota Exp $
+
+class IndexSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $controller = $context->getController();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $sub_community_row_array = $request->getAttribute('sub_community_row_array');
+ $parent_community_row_array = $request->getAttribute('parent_community_row_array');
+ $community_member_user_info_row_array = $request->getAttribute('community_member_user_info_row_array');
+ $community_admin_user_info_row_array = $request->getAttribute('community_admin_user_info_row_array');
+ $community_id = $community_row['community_id'];
+ $bbs_row_array = $request->getAttribute('bbs_row_array');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¿ô
+ $community_member_display_max = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D03'), 'COMMUNITY_MEMBER_DISPLAY_MAX_COUNT');
+
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_id);
+ $is_community_admin = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_id);
+
+ // ·Ç¼¨ÈÄ¿·Ãåµ»ö¿ô
+ $bbs_display_max = 10;
+
+ // URL
+ $bbs_url = $this->getControllerPath("Community", 'BBS') . '&community_id=' . $community_id;
+ $community_folder_url = $this->getControllerPath("Community", 'Folder') . '&community_id=' . $community_id;
+ if (!$is_community_member && $acs_user_info_row['is_acs_user']) {
+ $join_community_url = $this->getControllerPath("Community", 'JoinCommunity') . '&community_id=' . $community_id;
+ }
+ if($is_community_admin){ //¥³¥ß¥å¥Ë¥Æ¥£¡¡¥×¥í¥Õ¥£¡¼¥ë¤ÎÊÔ½¸
+ $community_change_url = $this->getControllerPath("Community", 'EditCommunity') . '&community_id=' . $community_id;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Âà²ñURL
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ç¡¢´ÉÍý¼Ô¤Ç¤Ê¤¤¾ì¹ç¤Ïɽ¼¨
+ if ($is_community_member and !$is_community_admin) {
+ $leave_community_url = $this->getControllerPath("Community", 'LeaveCommunity') . '&community_id=' . $community_id;
+ }
+
+ // RSS½ÐÎÏ¥Ú¡¼¥¸¤ÎURL
+ $PressRelease_community_url = $this->getControllerPath("Community", 'PressReleaseRSS') . '&community_id=' . $community_id; ;
+
+ // ²Ã¹© //
+ $community_row['register_date'] = ACSLib::convert_pg_date_to_str($community_row['register_date'], 0, 0, 0); // ÅÐÏ¿Æü
+ $community_row['community_member_num'] = count($community_member_user_info_row_array); // ¥á¥ó¥Ð¡¼¿ô
+ // ²èÁü¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹¤òÀßÄê
+ $community_row['image_url'] = ACSCommunity::get_image_url($community_id);
+
+ if ($is_community_admin) {
+ $edit_profile_image_url = $this->getControllerPath("Community", 'EditProfileImage') . '&community_id=' . $community_id;
+ }
+
+
+ // »²²Ã»ñ³Ê¤Î¼«Í³»²²Ã²Äǽ¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($community_row['join_trusted_community_row_array'] as $index => $join_trusted_community_row) {
+ $community_row['join_trusted_community_row_array'][$index]['top_page_url'] = $this->getControllerPath("Community", DEFAULT_ACTION) . '&community_id=' . $join_trusted_community_row['community_id'];
+ }
+
+ // ·Ç¼¨ÈĤθø³«¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($community_row['contents_row_array']['bbs']['trusted_community_row_array'] as $index => $trusted_community_row) {
+ $community_row['contents_row_array']['bbs']['trusted_community_row_array'][$index]['top_page_url'] = $this->getControllerPath("Community", DEFAULT_ACTION) . '&community_id=' . $trusted_community_row['community_id'];
+ }
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¸ø³«¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($community_row['contents_row_array']['community_folder']['trusted_community_row_array'] as $index => $trusted_community_row) {
+ $community_row['contents_row_array']['community_folder']['trusted_community_row_array'][$index]['top_page_url'] = $this->getControllerPath("Community", DEFAULT_ACTION) . '&community_id=' . $trusted_community_row['community_id'];
+ }
+
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð
+ $community_member_display_user_info_row_array = array();
+ $array_count = 0;
+ foreach ($community_member_user_info_row_array as $index => $community_member_user_info_row) {
+ $array_count++;
+ $_community_member_row = array();
+
+ $_community_member_row['community_name'] = $community_member_user_info_row['community_name'];
+ $_community_member_row['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $community_member_user_info_row['user_community_id'];
+ $_community_member_row['image_url'] = ACSUser::get_image_url($community_member_user_info_row['user_community_id'], 'thumb');
+ $_community_member_row['friends_row_array_num'] = ACSUser::get_friends_row_array_num($community_member_user_info_row['user_community_id']);
+
+ array_push($community_member_display_user_info_row_array, $_community_member_row);
+
+ if ($array_count == $community_member_display_max) {
+ break;
+ }
+ }
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô
+ foreach ($community_admin_user_info_row_array as $index => $community_admin_user_info_row) {
+ $community_admin_user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $community_admin_user_info_row['user_community_id'];
+ }
+
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($parent_community_row_array as $index => $parent_community_row) {
+ $parent_community_row_array[$index]['top_page_url'] = $this->getControllerPath("Community", DEFAULT_ACTION) . '&community_id=' . $parent_community_row['community_id'];
+ }
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£
+ foreach ($sub_community_row_array as $index => $sub_community_row) {
+ $sub_community_row_array[$index]['top_page_url'] = $this->getControllerPath("Community", DEFAULT_ACTION) . '&community_id=' . $sub_community_row['community_id'];
+ }
+
+ // URL
+ // ¥³¥ß¥å¥Ë¥Æ¥£´Ö¥ê¥ó¥¯ÀßÄê
+ if ($is_community_admin) {
+ $community_link_url = $this->getControllerPath("Community", 'CommunityLink') . '&community_id=' . $community_row['community_id'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð°ìÍ÷
+ $community_member_list_url = $this->getControllerPath("Community", 'CommunityMemberList') . '&community_id=' . $community_row['community_id'];
+
+ // ¥á¥ó¥Ðºï½ü
+ $delete_community_member_list_url = "";
+ if ($is_community_admin) {
+ $delete_community_member_list_url = $this->getControllerPath(
+ "Community",
+ 'DeleteCommunityMemberList');
+ $delete_community_member_list_url .= '&community_id=' . $community_row['community_id'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ºï½ü
+ $delete_community_url = "";
+ if ($is_community_admin) {
+ $delete_community_url = $this->getControllerPath(
+ "Community",
+ 'DeleteCommunity');
+ $delete_community_url .= '&community_id=' . $community_row['community_id'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ URL
+ if ($is_community_admin) {
+ $invite_to_community_url = $this->getControllerPath("Community", 'InviteToCommunity') . '&community_id=' . $community_row['community_id'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥¹¥±¥¸¥å¡¼¥ë URL
+ if($is_community_member){
+ $community_schedule_url = $this->getControllerPath("Community", 'Schedule') . '&community_id=' . $community_id;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼ÔÀßÄê
+ if ($is_community_admin) {
+ $edit_community_admin_url = $this->getControllerPath("Community", 'EditCommunityAdmin') . '&community_id=' . $community_row['community_id'];
+ }
+
+ // ³°ÉôRSS¼«Æ°¼è¤ê¹þ¤ßÀßÄê
+ if ($is_community_admin) {
+ $edit_external_rss_url = $this->getControllerPath("Community", 'EditExternalRSS') . '&community_id=' . $community_row['community_id'];
+ }
+
+ if ($is_community_admin) {
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã ¾µÇ§ÂÔ¤Á
+ $waiting_for_join_community_row_array = $request->getAttribute('waiting_for_join_community_row_array');
+ $waiting_for_join_community_row_array_num = count($waiting_for_join_community_row_array);
+ if ($waiting_for_join_community_row_array_num) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á URL
+ $waiting_for_join_community_url = $this->getControllerPath("Community", 'WaitingList')
+ . '&community_id=' . $community_id
+ . '&waiting_type_code=' . $waiting_for_join_community_row_array[0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_join_community_row_array[0]['waiting_status_code'];
+ }
+
+ // ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $waiting_for_parent_community_link_row_array = $request->getAttribute('waiting_for_parent_community_link_row_array');
+ $waiting_for_parent_community_link_row_array_num = count($waiting_for_parent_community_link_row_array);
+ if ($waiting_for_parent_community_link_row_array_num) {
+ // ¿Æ¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á URL
+ $waiting_for_parent_community_link_url = $this->getControllerPath("Community", 'WaitingList')
+ . '&community_id=' . $community_id
+ . '&waiting_type_code=' . $waiting_for_parent_community_link_row_array[0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_parent_community_link_row_array[0]['waiting_status_code'];
+ }
+
+ // ÂÔµ¡: ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $waiting_for_sub_community_link_row_array = $request->getAttribute('waiting_for_sub_community_link_row_array');
+ $waiting_for_sub_community_link_row_array_num = count($waiting_for_sub_community_link_row_array);
+ if ($waiting_for_sub_community_link_row_array_num) {
+ // ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á URL
+ $waiting_for_sub_community_link_url = $this->getControllerPath("Community", 'WaitingList')
+ . '&community_id=' . $community_id
+ . '&waiting_type_code=' . $waiting_for_sub_community_link_row_array[0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_sub_community_link_row_array[0]['waiting_status_code'];
+ }
+ }
+
+
+ // ·Ç¼¨ÈĤËÂФ¹¤ë¥¢¥¯¥»¥¹¸¢
+ $bbs_contents_row = ACSCommunity::get_contents_row($community_id, ACSMsg::get_mst('contents_type_master','D41'));
+ $bbs_contents_row['trusted_community_row_array'] = ACSCommunity::get_contents_trusted_community_row_array($community_id, $bbs_contents_row['contents_type_code'], $bbs_contents_row['open_level_code']);
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $ret = ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $bbs_contents_row);
+
+ if ($ret) {
+ // ·Ç¼¨ÈǺǿ·¾ðÊó
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ÊÖ¿®²èÌÌURL
+ $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath("Community", 'BBSRes') . '&community_id=' . $community_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+ $bbs_row_array[$index]['bbs_last_post_date'] = ACSLib::convert_pg_date_to_str($bbs_row['bbs_last_post_date'], true, false, false);
+ }
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
+ //----------------------//
+ $bbs_row_array = array_slice($bbs_row_array, 0, $bbs_display_max);
+
+ } else {
+ $bbs_row_array = array();
+ }
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('parent_community_row_array', $parent_community_row_array);
+ $this->setAttribute('sub_community_row_array', $sub_community_row_array);
+ $this->setAttribute('community_member_display_user_info_row_array', $community_member_display_user_info_row_array);
+ $this->setAttribute('community_admin_user_info_row_array', $community_admin_user_info_row_array);
+ $this->setAttribute('bbs_row_array', $bbs_row_array);
+
+ $this->setAttribute('is_community_member', $is_community_member);
+ $this->setAttribute('is_community_admin', $is_community_admin);
+
+ $this->setAttribute('bbs_url', $bbs_url);
+ $this->setAttribute('community_folder_url', $community_folder_url);
+ $this->setAttribute('create_sub_community_url', $create_sub_community_url);
+ $this->setAttribute('join_community_url', $join_community_url);
+ $this->setAttribute('leave_community_url', $leave_community_url);
+ $this->setAttribute('community_change_url',$community_change_url);
+
+ $this->setAttribute('community_schedule_url', $community_schedule_url);
+ $this->setAttribute('community_link_url', $community_link_url);
+ $this->setAttribute('delete_community_url', $delete_community_url);
+ $this->setAttribute('edit_community_admin_url', $edit_community_admin_url);
+ $this->setAttribute('invite_to_community_url', $invite_to_community_url);
+ $this->setAttribute('edit_community_profile_url', $edit_community_profile_url);
+ $this->setAttribute('edit_external_rss_url', $edit_external_rss_url);
+ $this->setAttribute('community_member_list_url', $community_member_list_url);
+ $this->setAttribute('delete_community_member_list_url', $delete_community_member_list_url);
+ $this->setAttribute('PressRelease_community_url', $PressRelease_community_url);
+ //²èÁü
+ $this->setAttribute('edit_profile_image_url', $edit_profile_image_url);
+
+ // ÂÔµ¡
+ $this->setAttribute('waiting_for_join_community_row_array_num', $waiting_for_join_community_row_array_num);
+ $this->setAttribute('waiting_for_join_community_url', $waiting_for_join_community_url);
+ $this->setAttribute('waiting_for_parent_community_link_row_array_num', $waiting_for_parent_community_link_row_array_num);
+ $this->setAttribute('waiting_for_parent_community_link_url', $waiting_for_parent_community_link_url);
+ $this->setAttribute('waiting_for_sub_community_link_row_array_num', $waiting_for_sub_community_link_row_array_num);
+ $this->setAttribute('waiting_for_sub_community_link_url', $waiting_for_sub_community_link_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Index.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: InviteToCommunityView::INPUT.class.php,v 1.3 2006/05/22 07:28:05 w-ota Exp $
+
+class InviteToCommunityInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $community_member_user_info_row_array = $request->getAttribute('community_member_user_info_row_array');
+ $friends_row_array = $request->getAttribute('friends_row_array');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤Ï¾·ÂÔÂоݳ°
+ foreach ($friends_row_array as $index => $user_info_row) {
+ $friends_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $friends_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id']);
+ $friends_row_array[$index]['is_community_member'] = 0;
+ foreach ($community_member_user_info_row_array as $community_member_user_info_row) {
+ if ($user_info_row['user_community_id'] == $community_member_user_info_row['user_community_id']) {
+ $friends_row_array[$index]['is_community_member'] = 1;
+ break;
+ }
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'InviteToCommunity') . '&community_id=' . $community_row['community_id'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('InviteToCommunity.tpl.php');
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('friends_row_array', $friends_row_array);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('form', $request->getAttribute('form'));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: JoinCommunityInputView.class.php,v 1.1 2006/01/06 09:51:35 w-ota Exp $
+
+class JoinCommunityInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $is_admission_required = $request->getAttribute('is_admission_required');
+
+ // URL
+ $action_url = $this->getControllerPath('Community', 'JoinCommunity') . '&community_id=' . $community_row['community_id'];
+ $back_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ if ($is_admission_required) {
+ // ¾µÇ§¤¬É¬Í×
+ $this->setScreenId("0001");
+ $this->setTemplate('JoinCommunity_admission.tpl.php');
+ } else {
+ // ¼«Í³»²²Ã
+ $this->setScreenId("0001");
+ $this->setTemplate('JoinCommunity.tpl.php');
+ }
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('is_admission_required', $is_admission_required);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£Âà²ñ¡Ê³Îǧ¡Ë
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/02 08:48:33 $
+ */
+class LeaveCommunitySuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $target_community_row = $request->getAttribute('target_community_row');
+ $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
+
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&community_id=' . $target_community_row['community_id'];
+
+ // ²Ã¹©
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', 'Index');
+ $community_top_page_url .= $target_community_info;
+
+ // ¥¥ã¥ó¥»¥ëURL
+ $cancel_action_url = $community_top_page_url;
+
+ // Âà²ñ¥¢¥¯¥·¥ç¥óURL
+ $leave_action_url = $this->getControllerPath('Community',
+ 'LeaveCommunity');
+ $leave_action_url .= $target_community_info;
+
+
+ // set
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('target_community_name', $target_community_row['community_name']);
+
+ // form ¤Î¥¢¥¯¥·¥ç¥óÀè URL
+ $this->setAttribute('cancel_action_url', $cancel_action_url);
+ $this->setAttribute('leave_action_url', $leave_action_url);
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('LeaveCommunity_confirm.tpl.php');
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°ÀèÁªÂò
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/19 08:01:39 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class MoveFolderListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $community_folder_obj = $request->getAttribute('community_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_community_id = $target_community_info_row['community_id'];
+
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('Community', 'MoveFolder');
+ $action_url .= $target_community_info;
+ $action_url .= $folder_info;
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('Community', 'Folder');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+
+ // °ÜÆ°ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // °ÜÆ°ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Õ¥©¥ë¥À¹½À®¼èÆÀ
+ $community_folder_tree_obj = $request->getAttribute('community_folder_tree');
+ $folder_tree = array();
+ $selected_folder_id_array = $request->getAttribute('selected_folder_id_array');
+ if (!$selected_folder_id_array) {
+ $selected_folder_id_array = array();
+ }
+ $this->make_folder_tree($community_folder_tree_obj, $folder_tree, $selected_folder_id_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('MoveFolderList.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // °ÜÆ°ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // °ÜÆ°ÀèÁªÂò»è
+ $this->setAttribute('folder_tree', $folder_tree);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+
+ function make_folder_tree ($root_folder_obj, &$_folder_tree, &$selected_folder_id_array, $tree_level = 0) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥ÀÄɲÃ
+ if ($tree_level == 0) {
+ $folder_row = array();
+ $folder_row['folder_id'] = $root_folder_obj->get_folder_id();
+ $folder_row['folder_name'] = $root_folder_obj->get_folder_name();
+ $folder_row['tree_level'] = $tree_level;
+ array_push($_folder_tree, $folder_row);
+ }
+
+ $sub_folder_obj_array = $root_folder_obj->get_sub_folder_obj_array();
+
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ $tree_level++;
+ $folder_row = array();
+
+ // ÁªÂò¤Ç¤¤Ê¤¤°ÜÆ°Àè¥Õ¥©¥ë¥À¤ÏÄɲ䷤ʤ¤
+ if (!in_array($sub_folder_obj->get_folder_id(), $selected_folder_id_array)) {
+ // row ÀßÄê
+ $folder_row['folder_id'] = $sub_folder_obj->get_folder_id();
+ $folder_row['folder_name'] = $sub_folder_obj->get_folder_name();
+ $folder_row['tree_level'] = $tree_level;
+
+ array_push($_folder_tree, $folder_row);
+
+ // ¤µ¤é¤Ë¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¡ÊºÆµ¢¡Ë
+ $this->make_folder_tree($sub_folder_obj, $_folder_tree, $selected_folder_id_array, $tree_level);
+ }
+
+ // 1³¬Áؾå¤Î¸¡º÷¤ËÌá¤ë
+ $tree_level--;
+ }
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹°ìÍ÷
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/20 04:09:35 $
+ */
+class RenameFolderListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_community_id = $target_community_info_row['community_id'];
+
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('Community', 'RenameFolder');
+ $action_url .= $target_community_info;
+ $action_url .= $folder_info;
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('Community', 'Folder');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+
+ // ̾Á°Êѹ¹ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // ̾Á°Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('RenameFolderList.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // ̾Á°Êѹ¹ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: RestoreHistoryFileConfirmView.class.php,v 1.1 2006/05/26 08:44:04 w-ota Exp $
+
+class RestoreHistoryFileSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_info_row = $request->getAttribute('file_info_row');
+ $file_history_row = $request->getAttribute('file_history_row');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó //
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+ $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
+
+ // ²Ã¹©
+ $file_history_row['display_file_name'] = $file_info_row['display_file_name'];
+ $file_history_row['file_size_kb'] = number_format(ceil($file_history_row['file_size'] / 1024)) . " KB";
+ $file_history_row['download_history_file_url'] = $this->getControllerPath('Community', 'DownloadHistoryFile')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id . '&file_history_id=' . $file_history_row['file_history_id'];
+
+ $action_url = $this->getControllerPath('Community', 'RestoreHistoryFile')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id. '&file_history_id=' . $file_history_row['file_history_id'];
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail')
+ . '&community_id=' . $target_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_community_folder_id;
+
+ // set
+ $this->setAttribute('target_community_row', $target_community_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('file_detail_url', $file_detail_url);
+ $this->setAttribute('file_history_row', $file_history_row);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('RestoreHistoryFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥¹¥±¥¸¥å¡¼¥ëɽ¼¨
+ *
+ * @author z-satosi
+ * @version $Revision: 1.1 $
+ */
+
+class ScheduleSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $this->setScreenId("0001");
+ $this->setTemplate('Schedule.tpl.php');
+
+ $current_module = 'Community';
+
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¾ðÊó
+ $this->setAttribute('acs_user_info_row',
+ $request->getAttribute('acs_user_info_row'));
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $target_community_row =& $request->getAttribute('target_community_row');
+ $this->setAttribute('target_community_row', $target_community_row);
+
+ // ¶¦ÄÌURL¥Ñ¥é¥á¡¼¥¿
+ $url_params = "community_id=" . $target_community_row['community_id'];
+
+ // ¥¹¥±¥¸¥å¡¼¥ë¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÇÛÎó
+ $schedules =& $request->getAttribute('schedules');
+
+ // ɽ¼¨ÍÑÇÛÎó¤ÎÀ¸À®
+ $schedule_list = array();
+ $schedule_persons =& $request->getAttribute('schedule_persons');
+ foreach ($schedules as $schedule) {
+ $schedule_params = $url_params . "&schedule_id=" . $schedule->schedule_id;
+
+ $person_count_info = $schedule_persons[$schedule->schedule_id];
+
+ if ($schedule->is_target_all()) {
+ $person_count_info['participate_person_count'] =
+ $request->getAttribute('member_count');
+ }
+
+ $schedule_list[] = array(
+ 'instance' => $schedule,
+ 'url_edit' =>
+ $this->getControllerPath($current_module, 'EditSchedule') .
+ "&" . $schedule_params,
+ 'url_decide' =>
+ $this->getControllerPath($current_module, 'DecideSchedule') .
+ "&" . $schedule_params,
+ 'url_answer' =>
+ $this->getControllerPath($current_module, 'AnswerSchedule') .
+ "&" . $schedule_params,
+ 'disp_detail' =>
+ (mb_strlen($schedule->schedule_detail) > 15 ?
+ mb_substr($schedule->schedule_detail,0,15)."..." :
+ $schedule->schedule_detail),
+ 'disp_person_count' =>
+ $person_count_info['answer_person_count'] . " / " .
+ $person_count_info['participate_person_count'] . " " .
+ ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M004'),
+ 'disp_closing' =>
+ ACSLib::convert_pg_date_to_str($schedule->schedule_closing_datetime),
+ 'disp_status' =>
+ ($schedule->is_fixed() ? ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M001') :
+ ($schedule->is_close() ?
+ ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M002') :
+ ACSMsg::get_msg('Community', 'ScheduleSuccessView.class.php', 'M003')))
+
+ );
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤ÎURL
+ $this->setAttribute('url_community_top',
+ $this->getControllerPath($current_module, 'Index') .
+ "&" . $url_params);
+
+ // ¿·µ¬ºîÀ®¤ÎURL
+ $this->setAttribute('url_schedule_new',
+ $this->getControllerPath($current_module, 'EditSchedule') .
+ "&" . $url_params);
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D03'), 'COMMUNITY_SCHEDULE_LIST_DISPLAY_MAX_COUNT');
+
+ $paging_info = $this->getPagingInfo($controller, $request, $schedule_list, $display_count);
+ $this->setAttribute('schedule_list', $schedule_list);
+
+ $this->setAttribute('paging_info', $paging_info);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨Èĸ¡º÷µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * SearchDiaryView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchBBSInputView.class.php,v 1.3 2006/03/23 01:37:36 kuwayama Exp $
+
+
+class SearchBBSInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $community_id = $request->getParameter('community_id');
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath('Community', 'Index') . '&id=' . '&community_id=' . $community_id;
+ // BBS URL
+ $link_page_url['bbs_page_url'] = $this->getControllerPath('Community', 'BBS') . '&id=' . '&community_id=' . $community_id;
+ //¸¡º÷²èÌÌurl
+ $link_page_url['search_bbs_url'] = SCRIPT_PATH;
+ // get ¤Ç¥µ¥Ö¥ß¥Ã¥È¤¹¤ë¤¿¤á¤Î¡¢Á«°ÜÀè¾ðÊó
+ $module = 'Community';
+ $action = 'SearchResultBBS';
+ $community_id = $community_id;
+ $move_id = '1';
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // set
+ $this->setAttribute('community_row', $target_user_info_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ $this->setAttribute('module',$module);
+ $this->setAttribute('action',$action);
+ $this->setAttribute('community_id',$community_id);
+ $this->setAttribute('move_id',$move_id);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchBBS.tpl.php');
+
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchCommunityView::INPUT.class.php,v 1.12 2006/11/20 08:44:15 w-ota Exp $
+
+class SearchCommunityInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $controller = $context->getController();
+
+ // ACS¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row_array = $request->getAttribute('community_row_array');
+ $category_group_master_row_array = $request->getAttribute('category_group_master_row_array');
+ $category_code_community_num_array = $request->getAttribute('category_code_community_num_array');
+ $form = $request->getAttribute('form');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D03'), 'COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $community_row_array, $display_count);
+
+ // ¥«¥Æ¥´¥ê¥Þ¥¹¥¿°ìÍ÷
+ $category_master_row_array = array();
+ array_push($category_master_row_array,
+ array('category_code' => 0, 'category_name' => ACSMsg::get_mst('file_category_master','D0000')));
+ foreach ($category_group_master_row_array as $category_group_master_row) {
+ foreach ($category_group_master_row['category_master_row_array'] as $category_master_row) {
+ // ¥«¥Æ¥´¥ê¤´¤È¤Î¥³¥ß¥å¥Ë¥Æ¥£¿ô¤ò¥»¥Ã¥È
+ $community_num = intval($category_code_community_num_array[$category_master_row['category_code']]);
+ $category_master_row['community_num'] = $community_num;
+ // push
+ array_push($category_master_row_array, $category_master_row);
+ }
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ if (is_array($community_row_array)) {
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ $community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($community_row['community_id'], 'thumb');
+ $community_row_array[$index]['community_member_num'] = ACSCommunity::get_community_member_num($community_row['community_id']);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£´ÉÍý¼Ô°ìÍ÷
+ $community_row_array[$index]['community_admin_user_info_row_array'] = ACSCommunity::get_community_admin_user_info_row_array($community_row['community_id']);
+ foreach ($community_row_array[$index]['community_admin_user_info_row_array'] as $index2 => $community_admin_user_info_row) {
+ $community_row_array[$index]['community_admin_user_info_row_array'][$index2]['top_page_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $community_admin_user_info_row['user_community_id'];
+ }
+ }
+ }
+
+ if (!$form['search']) {
+ /*----------------------------------------------*/
+ // ½é´üɽ¼¨»þ
+ // ¸½ºß¤Î¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¼èÆÀ
+ $renderMode = $controller->getRenderMode();
+
+ //¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¾å½ñ¤ ¡Ê²èÌ̽ÐÎϤò¥ª¥Õ¤Ë¤·¤Æ¤ë¡Ë
+ $controller->setRenderMode(View::RENDER_VAR);
+ $this->inlineFlg = true;
+
+ // ¥Õ¥©¥ï¡¼¥É¦¤ÇȽÃǤ¹¤ë
+ $request->setAttribute("inline_mode", "1");
+
+ // ¿·Ã女¥ß¥å¥Ë¥Æ¥£
+ $controller->forward("Public", "NewCommunity");
+ $this->setAttribute("NewCommunity", $request->getAttribute("NewCommunity"));
+
+ // ¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¸µ¤ËÌ᤹
+ $controller->setRenderMode($renderMode);
+ $this->inlineFlg = false;
+
+ /*----------------------------------------------*/
+ }
+
+
+ // URL
+ $action_url = $this->getControllerPath();
+
+ // RSS½ÐÎÏ¥Ú¡¼¥¸¤ÎURL
+ $PressRelease_community_url = $this->getControllerPath("Community", 'PressReleaseAllRSS') ;
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£ºîÀ®¤ÎURL
+ $create_community_url = "";
+ if ($acs_user_info_row['is_acs_user']) {
+ $create_community_url = $this->getControllerPath("Community", 'CreateCommunity');
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchCommunity.tpl.php');
+
+ // set
+ $this->setAttribute('category_master_row_array', $category_master_row_array);
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('community_row_array', $community_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', $form["module"]);
+ $this->setAttribute('action', $form["action"]);
+
+ $this->setAttribute('create_community_url', $create_community_url);
+ $this->setAttribute('PressRelease_community_url', $PressRelease_community_url);
+
+ $this->setAttribute('new_community_action_chain_html', $request->getAttribute('new_community_action_chain_html'));
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchFolderView::INPUT.class.php,v 1.3 2006/12/18 07:42:13 w-ota Exp $
+
+class SearchFolderInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $community_row = $request->getAttribute('community_row');
+ $form = $request->getAttribute('form');
+ $folder_row_array = $request->getAttribute('folder_row_array');
+ $put_folder_row_array = $request->getAttribute('put_folder_row_array');
+ $file_info_row_array = $request->getAttribute('file_info_row_array');
+ $put_file_info_row_array = $request->getAttribute('put_file_info_row_array');
+
+ // ²Ã¹©
+ if (is_array($folder_row_array)) {
+ foreach ($folder_row_array as $index => $folder_row) {
+ $folder_row_array[$index]['path'] = '/' . implode('/', $folder_row['path_array']);
+ $folder_row_array[$index]['folder_url'] = $this->getControllerPath('Community', 'Folder')
+ . '&community_id=' . $community_row['community_id']
+ . '&folder_id=' . $folder_row['folder_id'];
+ }
+ }
+
+ if (is_array($put_folder_row_array)) {
+ foreach ($put_folder_row_array as $index => $folder_row) {
+ $put_folder_row_array[$index]['path'] = '/' . implode('/', $folder_row['path_array']);
+ $put_folder_row_array[$index]['folder_url'] = $this->getControllerPath('Community', 'Folder')
+ . '&community_id=' . $community_row['community_id']
+ . '&folder_id=' . $folder_row['folder_id'];
+ }
+ }
+
+ if (is_array($file_info_row_array)) {
+ foreach ($file_info_row_array as $index => $file_info_row) {
+ $file_info_row_array[$index]['path'] = '/' . implode('/', $file_info_row['path_array']);
+ $file_info_row_array[$index]['download_file_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . '&community_id=' . $community_row['community_id']
+ . '&file_id=' . $file_info_row['file_id']
+ . '&folder_id=' . $file_info_row['folder_id'];
+ }
+ }
+
+ if (is_array($put_file_info_row_array)) {
+ foreach ($put_file_info_row_array as $index => $file_info_row) {
+ $put_file_info_row_array[$index]['path'] = '/' . implode('/', $file_info_row['path_array']);
+ $put_file_info_row_array[$index]['download_file_url'] = $this->getControllerPath('Community', 'DownloadFile')
+ . '&community_id=' . $community_row['community_id']
+ . '&file_id=' . $file_info_row['file_id']
+ . '&folder_id=' . $file_info_row['folder_id'];
+ }
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¤«¤É¤¦¤«
+ $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+
+ // URL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ $folder_url = $this->getControllerPath('Community', 'Folder') . '&community_id=' . $community_row['community_id'];
+ $action_url = $this->getControllerPath();
+
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ if (is_array($folder_row_array)) {
+ $folder_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $folder_row_array);
+ }
+ if (is_array($put_folder_row_array)) {
+ $put_folder_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $put_folder_row_array);
+ }
+ if (is_array($file_info_row_array)) {
+ $file_info_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $file_info_row_array);
+
+ // ËܿͰʳ°¤Ïis_root_folder¤Î¥Õ¥¡¥¤¥ë¤ò±ÜÍ÷¤Ç¤¤Ê¤¤
+ $_file_info_row_array = array();
+ foreach ($file_info_row_array as $index => $file_info_row) {
+ if (!$is_community_member && $file_info_row['is_root_folder']) {
+ continue;
+ } else {
+ array_push($_file_info_row_array, $file_info_row);
+ }
+ }
+ $file_info_row_array = $_file_info_row_array;
+ }
+ if (is_array($put_file_info_row_array)) {
+ $put_file_info_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $put_file_info_row_array);
+ }
+
+ //----------------------//
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchFolder.tpl.php');
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('put_folder_row_array', $put_folder_row_array);
+ $this->setAttribute('file_info_row_array', $file_info_row_array);
+ $this->setAttribute('put_file_info_row_array', $put_file_info_row_array);
+
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('folder_url', $folder_url);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'Community');
+ $this->setAttribute('action', 'SearchFolder');
+
+ return parent::execute();
+ }
+}
+
+?>
+
+
--- /dev/null
+<?php
+/**
+ * ·Ç¼¨ÈÄ¡¡¸¡º÷·ë²Ìµ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/Community/views
+ * SearchResultBBSView::SUCCESS
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchResultBBSView::SUCCESS.class.php,v 1.7 2007/03/28 02:51:44 w-ota Exp $
+
+
+class SearchResultBBSSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $community_id = $request->getParameter('community_id');
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $bbs_row_array = $request->getAttribute('bbs_row_array_result');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+ $err_str = $request->getAttribute('err_str');
+ $form_pre = $request->getAttribute('form_pre');
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath('Community', 'Index') . '&id=' . '&community_id=' . $community_id;
+ // BBS URL
+ $link_page_url['bbs_page_url'] = $this->getControllerPath('Community', 'BBS') . '&id=' . '&community_id=' . $community_id;
+ //¸¡º÷²èÌÌurl
+ $link_page_url['search_bbs_url'] = SCRIPT_PATH;
+ // get ¤Ç¥µ¥Ö¥ß¥Ã¥È¤¹¤ë¤¿¤á¤Î¡¢Á«°ÜÀè¾ðÊó
+ $module = 'Community';
+ $action = 'SearchResultBBS';
+ $community_id = $community_id;
+ $move_id = '2';
+
+ // ²Ã¹©
+ if($bbs_row_array){
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ // ¥æ¡¼¥¶²èÁüURL
+ $bbs_row_array[$index]['image_url'] = ACSUser::get_image_url($bbs_row['user_community_id'],'thumb');
+ //¥æ¡¼¥¶¥Ú¡¼¥¸
+ $user_row = ACSUser::get_user_profile_row($bbs_row['user_community_id']);
+ $bbs_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $bbs_row['user_community_id'];
+ $bbs_row_array[$index]['community_name'] = $user_row['community_name'];
+ // Åê¹ÆÆü»þ
+ $bbs_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($bbs_row['post_date']);
+ // ¥³¥á¥ó¥È¥Ú¡¼¥¸URL
+ $bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $bbs_row['community_id'] . '&bbs_id=' . $bbs_row['bbs_id'];
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«
+ if ($bbs_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ if (count($bbs_row['trusted_community_row_array'])
+ && $bbs_row['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('contents_type_master','D11')) {
+ $bbs_row_array[$index]['trusted_community_flag'] = 0;
+ } else {
+ $bbs_row_array[$index]['trusted_community_flag'] = 1;
+ }
+ }
+ }
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $community_row);
+ $bbs_row_array = ACSAccessControl::get_valid_row_array_for_community($acs_user_info_row, $role_array, $bbs_row_array);
+ //ÆÃÊÌ::Á´·ï¸¡º÷¤Î¾ì¹ç¡¡¥¿¡¼¥²¥Ã¥È¤¬¼«Ê¬¤Î¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤ò²óÈò
+ $bbs_row_array_result = array();
+ foreach ($bbs_row_array as $index => $bbs_row) {
+ $role_array = ACSAccessControl::get_community_role_array($acs_user_info_row, $bbs_row);
+ $is_valid_user = ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $bbs_row);
+ if($is_valid_user){ //¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ë
+ // ɽ¼¨¤¹¤ë·Ç¼¨ÈĤΥ³¥ß¥å¥Ë¥Æ¥£Ì¾¤ò¼èÆÀ
+ $bbs_community_name = ACSCommunity::get_community_row($bbs_row['community_id']);
+ $bbs_row['bbs_community_name'] = $bbs_community_name['community_name'];
+ $bbs_row['bbs_community_page_url'] = $this->getControllerPath('Community', 'Index') . '&community_id=' . $bbs_row['community_id'];
+ array_push($bbs_row_array_result, $bbs_row);
+ }
+ }
+ //----------------------//
+ }
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('bbs_row_array_result', $bbs_row_array_result);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $this->setAttribute('err_str',$err_str);
+ $this->setAttribute('form_pre',$form_pre);
+
+ $this->setAttribute('module',$module);
+ $this->setAttribute('action',$action);
+ $this->setAttribute('community_id',$community_id);
+ $this->setAttribute('move_id',$move_id);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchResultBBS.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SelectTrustedCommunityView::SUCCESS.class.php,v 1.6 2006/11/20 08:44:15 w-ota Exp $
+
+
+class SelectTrustedCommunitySuccessView extends SimpleBaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $category_group_master_row_array = $request->getAttribute('category_group_master_row_array');
+ $community_row_array = $request->getAttribute('community_row_array');
+ $form = $request->getAttribute('form');
+
+ // ¥«¥Æ¥´¥ê¥Þ¥¹¥¿°ìÍ÷
+ $category_master_row_array = array();
+ array_push($category_master_row_array, array('category_code' => 0, 'category_name' => ACSMsg::get_mst('file_category_master','D0000')));
+ foreach ($category_group_master_row_array as $category_group_master_row) {
+ foreach ($category_group_master_row['category_master_row_array'] as $category_master_row) {
+ array_push($category_master_row_array, $category_master_row);
+ }
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£°ìÍ÷
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D03'), 'COMMUNITY_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $community_row_array, $display_count);
+
+ // URL
+ $action_url = $this->getControllerPath();
+
+ // set
+ $this->setAttribute('category_master_row_array', $category_master_row_array);
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('community_row_array', $community_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'Community');
+ $this->setAttribute('action', 'SelectTrustedCommunity');
+
+ $this->setAttribute('form_name', $request->getAttribute('form_name'));
+ $this->setAttribute('prefix', $request->getAttribute('prefix'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SelectTrustedCommunity.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UpdateFileView::INPUT.class.php,v 1.1 2006/05/26 08:44:04 w-ota Exp $
+
+class UpdateFileInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó //
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+ $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
+
+
+ $action_url = $this->getControllerPath('Community', 'UpdateFile')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id;
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_url = $this->getControllerPath('Community', 'FileDetail')
+ . '&community_id=' . $target_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_community_folder_id;
+
+ // set
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ $this->setAttribute('target_community_row', $target_community_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('file_detail_url', $file_detail_url);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('UpdateFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UploadFileView::INPUT.class.php,v 1.1 2006/05/26 08:44:04 w-ota Exp $
+
+class UploadFileInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_community_id = $request->getParameter('community_id');
+ $target_community_folder_id = $request->getParameter('folder_id');
+
+ $target_community_row = ACSCommunity::get_community_row($target_community_id);
+ $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
+
+
+ // action
+ $action_url = $this->getControllerPath('Community', 'UploadFile')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
+
+ // ¥Õ¥©¥ë¥ÀURL Ä̾ïɽ¼¨
+ $folder_url = $this->getControllerPath('Community', 'Folder')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
+
+ // ¥Õ¥©¥ë¥ÀURL ¥°¥ë¡¼¥×ɽ¼¨
+ $folder_group_mode_url = $this->getControllerPath('Community', 'Folder')
+ . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&mode=group';
+
+ // set
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ $this->setAttribute('target_community_row', $target_community_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('folder_url', $folder_url);
+ $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('UploadFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: WaitingListView::INPUT.class.php,v 1.6 2006/11/20 08:44:15 w-ota Exp $
+
+class WaitingListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $community_row = $request->getAttribute('community_row');
+ $waiting_type_name = $request->getAttribute('waiting_type_name');
+ $waiting_row_array = $request->getAttribute('waiting_row_array');
+
+ // ²Ã¹©
+ foreach ($waiting_row_array as $index => $waiting_row) {
+ $waiting_row_array[$index]['entry_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
+ $waiting_row_array[$index]['complete_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
+
+ // ÂÔµ¡Â¦¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $waiting_community_row = ACSCommunity::get_community_row($waiting_row['waiting_community_id']);
+ if ($waiting_community_row['community_type_name'] == ACSMsg::get_mst('community_type_master','D10')) {
+ $waiting_row_array[$index]['image_url'] = ACSUser::get_image_url($waiting_row['waiting_community_id'], 'thumb');
+ $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['waiting_community_id'];
+ } elseif ($waiting_community_row['community_type_name'] == ACSMsg::get_mst('community_type_master','D40')) {
+ $waiting_row_array[$index]['image_url'] = ACSCommunity::get_image_url($waiting_row['waiting_community_id'], 'thumb');
+ $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $waiting_row['waiting_community_id'];
+ $waiting_row_array[$index]['entry_user_info_row']['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['entry_user_info_row']['user_community_id'];
+ }
+
+ $waiting_row_array[$index]['action_url'] = $this->getControllerPath('Community', 'WaitingList') . '&community_id=' . $community_row['community_id'] . '&waiting_id=' . $waiting_row['waiting_id'];
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('WaitingList.tpl.php');
+
+ // set
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('community_top_page_url', $community_top_page_url);
+ $this->setAttribute('waiting_type_name', $waiting_type_name);
+ $this->setAttribute('waiting_row_array', $waiting_row_array);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityRankingAction.class.php,v 1.1 2006/03/10 11:45:11 w-ota Exp $
+
+class CommunityRankingAction extends BaseAction {
+
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¿·Ãå¸ø³«¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $ranking_community_row_array = ACSCommunity::get_ranking_community_row_array();
+
+ // set
+ $request->setAttribute('ranking_community_row_array', $ranking_community_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£ ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É(Public Access)
+ *
+ * @author Teramoto
+ * @version $ $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSFileDetailInfo.class.php');
+//require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+
+class DownloadFileAction extends BaseAction
+{
+ function execute () {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $key = $request->getParameter('key');
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_public_access_row =
+ ACSFileDetailInfo::get_file_public_access_row("", "access_code = '" . $key . "'");
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹¿ô¹¹¿·
+ if ($file_public_access_row) {
+ $form = array();
+ $form['all_access_count'] = $file_public_access_row['all_access_count'] + 1;
+ $form['access_count'] = $file_public_access_row['access_count'] + 1;
+ ACSFileDetailInfo::update_file_public_access($file_public_access_row['file_id'], $form);
+ } else {
+ print "NOT FOUND";
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É½èÍý
+ $community_folder_obj = new ACSCommunityFolder($file_public_access_row['community_id'],
+ "",
+ $file_public_access_row['folder_id']);
+ $folder_obj = $community_folder_obj->get_folder_obj();
+ $folder_obj->download_file($file_public_access_row['file_id']);
+ }
+
+ function getDefaultView() {
+ return $this->execute();
+ }
+
+ function getRequestMethods () {
+ return REQ_GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: IndexAction.class.php,v 1.3 2007/03/01 09:01:37 w-ota Exp $
+
+class IndexAction extends BaseAction
+{
+ // GET
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $controller = $context->getController();
+
+// $controller = $context->getController();
+// return View::SUCCESS;
+
+
+ // ưŪ¥È¥Ã¥×¥Ú¡¼¥¸¤Î¾ì¹ç
+ if ($_SERVER['HTTP_ACS_AGENT'] == 'create_statictop'
+ || array_key_exists('realtime',$_REQUEST)
+ || $request->getAttribute('force_realtime')
+ || $acs_user_info_row['is_login_user']
+ ) {
+
+ if ($_SERVER['HTTP_ACS_AGENT'] == 'create_statictop') {
+ ini_set("url_rewriter.tags",''); // url¥Ñ¥é¥á¡¼¥¿¾å¤ÎPHPSESSID¤ò¾Ê¤¯
+ }
+
+ $controller = $context->getController();
+ return View::SUCCESS;
+
+ } else {
+
+ $controller->forward('Public','StaticIndex');
+ //return VIEW_NONE;
+ }
+
+
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewCommunityAction.class.php,v 1.2 2006/11/20 08:44:16 w-ota Exp $
+
+class NewCommunityAction extends BaseAction {
+
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¿·Ãå¸ø³«¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_community_row_array = ACSCommunity::get_new_community_row_array();
+ foreach ($new_community_row_array as $index => $new_community_row) {
+ // ³µÍ×
+ $new_community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($new_community_row['community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+ }
+
+ // set
+ $request->setAttribute('new_community_row_array', $new_community_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+class NewOpenDiaryAction extends BaseAction {
+
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¿·Ãå¸ø³«¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_open_diary_row_array = ACSDiary::get_new_open_diary_row_array();
+
+ // set
+ $request->setAttribute('new_open_diary_row_array', $new_open_diary_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewPressReleaseAction.class.php,v 1.2 2006/05/29 00:36:07 w-ota Exp $
+
+class NewPressReleaseAction extends BaseAction {
+
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¿·Ãå¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_bbs_for_press_release_row_array = ACSBBS::get_new_bbs_for_press_release_row_array();
+
+ // set
+ $request->setAttribute('new_bbs_for_press_release_row_array', $new_bbs_for_press_release_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: StaticIndexAction.class.php,v 1,0 2007/03/01 09:01:37 w-ota Exp $
+
+class StaticIndexAction extends BaseAction
+{
+ // GET
+ function execute() {
+
+ $context = &$this->getContext();
+ $controller = $context->getController();\r
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ $pagefile = ACS_PAGES_DIR . "index.html." . ACSMsg::get_lang();
+ $lockfile = $pagefile.".locked";
+
+ // ÀÅŪ¥Õ¥¡¥¤¥ë½ñ¤´¹¤¨Ãæ¤Î¾ì¹ç(0.5ÉÃÂÔ¤Ä)
+ if (is_readable($lockfile)) {
+ usleep(500000);
+ }
+
+ // ½ñ¤´¹¤¨Ãæ¤Ç¤Ê¤¯¡¢ÀÅŪ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¾ì¹ç
+ if (!is_readable($lockfile) && is_readable($pagefile)) {
+
+ // ÀÅŪ¥Õ¥¡¥¤¥ëºîÀ®»þ´Ö¤¬Í¸ú»þ´ÖÈÏ°ÏÆâ¤Î¾ì¹ç
+ if ((time() - filemtime($pagefile)) <= ACS_PAGES_EFFECTIVE_SEC) {
+
+ // ÀÅŪ¥È¥Ã¥×¤òɸ½à½ÐÎÏ
+ mb_http_output('pass');
+ readfile($pagefile);
+ return;\r
+
+ }
+ }
+ $request->setAttribute('force_realtime', 1);
+ $controller->forward("Public", "Index");\r
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexAction.class.php,v 1.3 2007/03/01 09:01:37 w-ota Exp $
+
+class TestAction extends BaseAction
+{
+ // GET
+ function execute() {
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UserRankingAction.class.php,v 1.1 2006/03/10 11:45:11 w-ota Exp $
+
+class UserRankingAction extends BaseAction {
+
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¥æ¡¼¥¶¥é¥ó¥¥ó¥°¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $ranking_user_info_row_array = ACSUser::get_ranking_user_info_row_array();
+
+ // set
+ $request->setAttribute('ranking_user_info_row_array', $ranking_user_info_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+[module]
+ ENABLED = "On"
+ TITLE = "ACS Public Module"
+ VERSION = "1.0"
+ NAME = "Public"
+ AUTHOR = "acs"
+ HOMEPAGE = ""
+ UPDATE_URL = ""
+ DESCRIPTION = "Academic Community System Public module"
+
--- /dev/null
+<?php
+// $Id: CommunityRanking.tpl.php,v 1.5 2007/03/14 04:28:19 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Public", "CommunityRanking.tpl.php",'M001') ?></div>
+<br>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['ranking_community_row_array'] as $ranking_community_row) {
+ echo "<tr>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">" . $ranking_community_row['rank'] . "</td>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"" . $ranking_community_row['top_page_url'] . "\"><img src=\"" .
+ $ranking_community_row['image_url'] . "\" border=\"0\"></a><br>";
+ echo "<a href=\"" . $ranking_community_row['top_page_url'] . "\">" . htmlspecialchars($ranking_community_row['community_name']) . "</a>";
+ echo " (" . $ranking_community_row['ranking_score'] . "pt)";
+ echo "</td>";
+
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($ranking_community_row['contents_row_array']['community_profile']['contents_value'], 200)));
+ echo "</td>";
+ echo "</tr>";
+}
+?>
+</table>
--- /dev/null
+<?php
+// $Id: Index.tpl.php,v 1.5 2006/12/18 07:42:14 w-ota Exp $
+?>
+<table class="common_table">
+<tr><td valign="top" width="680px">
+<?php echo $this->_tpl_vars['NewPressRelease']; ?>
+</td></tr>
+<tr><td valign="top" width="680px">
+<?php echo $this->_tpl_vars['NewOpenDiary']; ?>
+</td></tr>
+<tr><td valign="top" width="680px">
+<?php echo $this->_tpl_vars['NewCommunity']; ?>
+</td></tr>
+<tr><td valign="top" width="680px">
+<?php echo $this->_tpl_vars['CommunityRanking']; ?>
+</td></tr>
+<tr><td valign="top" width="680px">
+<?php echo $this->_tpl_vars['UserRanking']; ?>
+</td></tr>
+</table>
--- /dev/null
+<?php
+// $Id: NewCommunity.tpl.php,v 1.5 2007/03/14 04:28:19 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Public", "NewCommunity.tpl.php",'M001') ?></div>
+<br>
+
+<table class="common_table" width="675px" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['new_community_row_array'] as $new_community_row) {
+ echo "<tr>";
+
+ // ¼Ì¿¿
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"" . $new_community_row['top_page_url'] . "\"><img src=\"" . $new_community_row["image_url"] . "\" border=\"0\"></a><br>";
+ echo "<a href=\"" . $new_community_row['top_page_url'] . "\">" . htmlspecialchars($new_community_row['community_name']) . "</a>";
+ echo "(" . $new_community_row['community_member_num'] . ")";
+ echo "</td>";
+
+ // ³µÍ×
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">".ACSMsg::get_msg("Public", "NewCommunity.tpl.php",'M002')."<br>";
+ echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($new_community_row['contents_row_array']['community_profile']['contents_value'], 200)));
+ echo "</td>";
+
+ echo "</tr>\n";
+}
+?>
+</table>
--- /dev/null
+<?php
+// $Id: NewOpenDiary.tpl.php,v 1.5 2007/03/30 05:27:21 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Public", "NewOpenDiary.tpl.php" ,'M001') ?></div>
+<br>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['new_open_diary_row_array'] as $new_open_diary_row) {
+?>
+ <tr>
+ <td id="myttl" bgcolor="#DEEEBD" colspan="2">
+ <b><?= htmlspecialchars(ACSTemplateLib::trim_long_str($new_open_diary_row['subject'], 100))?></b>
+
+ <?= $new_open_diary_row['post_date'] ?>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" bgcolor="#ffffff">
+ <a href="<?=$new_open_diary_row['top_page_url']?>"><img src="<?=$new_open_diary_row['image_url']?>" border="0"></a>
+ <br>
+ <a href="<?=$new_open_diary_row['top_page_url']?>"><?= htmlspecialchars($new_open_diary_row['community_name'])?></a>
+ </td>
+ <td valign="top" bgcolor="#ffffff">
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars(ACSTemplateLib::trim_long_str($new_open_diary_row['body'], 500)))) ?>
+ </td>
+ </tr>
+<?php
+}
+?>
+</table>
+
--- /dev/null
+<?php
+// $Id: NewPressRelease.tpl.php,v 1.6 2007/03/30 05:27:21 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Public", "NewPressRelease.tpl.php",'M001') ?></div>
+<br>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['new_bbs_for_press_release_row_array'] as $new_bbs_row) {
+ echo "<tr><td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo "<b>" . htmlspecialchars($new_bbs_row['subject']) . "</b>";
+ echo " ";
+ echo "(<a href=\"$new_bbs_row[top_page_url]\">" . htmlspecialchars($new_bbs_row['community_name']) . "</a>)";
+ echo " ";
+ echo $new_bbs_row['post_date'];
+ echo "</td></tr>";
+
+ echo "<tr><td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ if ($new_bbs_row['file_url']) {
+ echo "<td valign=\"top\">";
+ echo "<a href=\"javascript:w=window.open('" . $new_bbs_row["file_url_alink"] . "','popUp','scrollbars=yes,resizable=yes');w.focus();\">";
+ echo "<img src=\"" . $new_bbs_row['file_url'] . "\" border=\"0\"></a>";
+ echo "</td>";
+ }
+ echo "<td valign=\"top\">" . nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($new_bbs_row['body'])))) . "</td>";
+ echo "</tr></table>";
+ echo "</td></tr>";
+}
+?>
+</table>
--- /dev/null
+test
+2009.03.19
+
--- /dev/null
+<?php
+// $Id: UserRanking.tpl.php,v 1.5 2007/03/14 04:28:19 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("Public", "UserRanking.tpl.php", 'M001') ?></div>
+<br>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['ranking_user_info_row_array'] as $ranking_user_info_row) {
+ echo "<tr>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">" . $ranking_user_info_row['rank'] . "</td>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"" . $ranking_user_info_row['top_page_url'] . "\"><img src=\"" .
+ $ranking_user_info_row['image_url'] . "\" border=\"0\"></a><br>";
+ echo "<a href=\"" . $ranking_user_info_row['top_page_url'] . "\">" .
+ htmlspecialchars($ranking_user_info_row['community_name']) . "</a>";
+ echo " (" . $ranking_user_info_row['ranking_score'] . "pt)";
+ echo "</td>";
+
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($ranking_user_info_row['contents_row_array']['profile']['contents_value'], 200)));
+ echo "</td>";
+ echo "</tr>";
+}
+?>
+</table>
--- /dev/null
+<?php
+// $Id: CommunityRankingView_inline.class.php,v 1.3 2006/11/20 08:44:19 w-ota Exp $
+
+class CommunityRankingInputView extends BaseView
+{
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // get
+ $ranking_community_row_array = $request->getAttribute('ranking_community_row_array');
+
+ // ²Ã¹©
+ $rank = 1;
+ foreach ($ranking_community_row_array as $index => $ranking_community_row) {
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $ranking_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $ranking_community_row['community_id'];
+ // ¼Ì¿¿
+ $ranking_community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($ranking_community_row['community_id'], 'thumb');
+ // ¥×¥í¥Õ¥£¡¼¥ë
+ $ranking_community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($ranking_community_row['community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+ // ½ç°Ì
+ $ranking_community_row_array[$index]['rank'] = $rank;
+ $rank++;
+ }
+
+ // set
+ $this->setAttribute('ranking_community_row_array', $ranking_community_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë
+ $this->setTemplate('CommunityRanking.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("CommunityRanking", $this->render());
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexView::SUCCESS.class.php,v 1.1 2006/03/10 11:45:41 w-ota Exp $
+
+class IndexSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $controller = $context->getController();
+
+ // ACS¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ /*--------------- ¿·Ãå¾ðÊó¤ò¼èÆÀ ---------------*/
+ // ¸½ºß¤Î¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¼èÆÀ
+ $renderMode = $controller->getRenderMode();
+
+ //¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¾å½ñ¤ ¡Ê²èÌ̽ÐÎϤò¥ª¥Õ¤Ë¤·¤Æ¤ë¡Ë
+ $controller->setRenderMode(View::RENDER_VAR);
+ $this->inlineFlg = true;
+
+ // ¥Õ¥©¥ï¡¼¥É¦¤ÇȽÃǤ¹¤ë
+ $request->setAttribute("inline_mode", "1");
+
+ // ¥Õ¥©¥ï¡¼¥É¤¹¤ë
+
+ // 1.¿·Ãå¥Ñ¥Ö¥ê¥Ã¥¯¥ê¥ê¡¼¥¹
+ $controller->forward("Public", "NewPressRelease");
+ $this->setAttribute("NewPressRelease", $request->getAttribute("NewPressRelease"));
+
+ // 2.¿·Ãå¥À¥¤¥¢¥ê¡¼
+ $controller->forward("Public", "NewOpenDiary");
+ $this->setAttribute("NewOpenDiary", $request->getAttribute("NewOpenDiary"));
+
+ // 3.¿·Ã女¥ß¥å¥Ë¥Æ¥£
+ $controller->forward("Public", "NewCommunity");
+ $this->setAttribute("NewCommunity", $request->getAttribute("NewCommunity"));
+
+ // 4.¥³¥ß¥å¥Ë¥Æ¥£¥é¥ó¥¥ó¥°
+ $controller->forward("Public", "CommunityRanking");
+ $this->setAttribute("CommunityRanking", $request->getAttribute("CommunityRanking"));
+
+ // 5.¥æ¡¼¥¶¥é¥ó¥¥ó¥°
+ $controller->forward("Public", "UserRanking");
+ $this->setAttribute("UserRanking", $request->getAttribute("UserRanking"));
+
+ // ¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¸µ¤ËÌ᤹
+ $controller->setRenderMode($renderMode);
+ $this->inlineFlg = false;
+
+ /*----------------------------------------------*/
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Index.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewCommunityView_inline.class.php,v 1.3 2006/06/08 05:51:52 w-ota Exp $
+
+class NewCommunityInputView extends BaseView
+{
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // get
+ $new_community_row_array = $request->getAttribute('new_community_row_array');
+
+ // ²Ã¹©
+ foreach ($new_community_row_array as $index => $new_community_row) {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $new_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $new_community_row['community_id'];
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤Î¼Ì¿¿
+ $new_community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($new_community_row['community_id'], 'thumb');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥á¥ó¥Ð¿ô
+ $new_community_row_array[$index]['community_member_num'] = ACSCommunity::get_community_member_num($new_community_row['community_id']);
+ }
+
+ // set
+ $this->setAttribute('new_community_row_array', $new_community_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë
+ $this->setTemplate('NewCommunity.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewCommunity", $this->render());
+
+ return parent::execute();
+
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+class NewOpenDiaryInputView extends BaseView
+{
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // get
+ $new_open_diary_row_array = $request->getAttribute('new_open_diary_row_array');
+
+ // ²Ã¹©
+ foreach ($new_open_diary_row_array as $index => $new_open_diary_row) {
+ // Åê¹Æ¼Ô¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $new_open_diary_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $new_open_diary_row['user_community_id'];
+ // Åê¹Æ¼Ô¤Î¼Ì¿¿
+ $new_open_diary_row_array[$index]['image_url'] = ACSUser::get_image_url($new_open_diary_row['user_community_id'], 'thumb');
+ // ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥ÈURL
+ $new_open_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_open_diary_row['user_community_id'] . '&diary_id=' . $new_open_diary_row['diary_id'];
+ $new_open_diary_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_open_diary_row['post_date']);
+ }
+ // set
+ $this->setAttribute('new_open_diary_row_array', $new_open_diary_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë
+ $this->setTemplate('NewOpenDiary.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewOpenDiary", $this->render());
+
+ return parent::execute();
+
+ }
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// $Id: NewPressReleaseView_inline.class.php,v 1.1 2006/03/10 11:45:41 w-ota Exp $
+
+class NewPressReleaseInputView extends BaseView
+{
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $new_bbs_for_press_release_row_array = $request->getAttribute('new_bbs_for_press_release_row_array');
+
+ // ²Ã¹©
+ foreach ($new_bbs_for_press_release_row_array as $index => $new_bbs_row) {
+ $new_bbs_for_press_release_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $new_bbs_row['community_id'];
+ $new_bbs_for_press_release_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $new_bbs_row['community_id'] . '&bbs_id=' . $new_bbs_row['bbs_id'];
+ if ($new_bbs_row['file_id']) {
+ $new_bbs_for_press_release_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], 'thumb'); // ¥µ¥à¥Í¥¤¥ë
+ $new_bbs_for_press_release_row_array[$index]['file_url_alink'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], ''); // ¥Ý¥Ã¥×¥¢¥Ã¥×ÍÑ
+ }
+ $new_bbs_for_press_release_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_bbs_row['post_date'], 1, 0);
+ }
+
+ // set
+ $this->setAttribute('new_bbs_for_press_release_row_array', $new_bbs_for_press_release_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë
+ $this->setTemplate('NewPressRelease.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewPressRelease", $this->render());
+
+ return parent::execute();
+
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexView::SUCCESS.class.php,v 1.1 2006/03/10 11:45:41 w-ota Exp $
+
+class TestSuccessView extends PHPView
+{
+ function execute() {
+
+ $this->setTemplate('Test.tpl.php');
+
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: UserRankingView_inline.class.php,v 1.3 2006/11/20 08:44:19 w-ota Exp $
+
+class UserRankingInputView extends BaseView
+{
+ public function execute ()
+ {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // get
+ $ranking_user_info_row_array = $request->getAttribute('ranking_user_info_row_array');
+
+ // ²Ã¹©
+ $rank = 1;
+ foreach ($ranking_user_info_row_array as $index => $ranking_user_info_row) {
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $ranking_user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $ranking_user_info_row['user_community_id'];
+ // ¼Ì¿¿
+ $ranking_user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($ranking_user_info_row['user_community_id'], 'thumb');
+ // ¥×¥í¥Õ¥£¡¼¥ë
+ $ranking_user_info_row_array[$index]['contents_row_array']['profile'] = ACSCommunity::get_contents_row($ranking_user_info_row['user_community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+ // ½ç°Ì
+ $ranking_user_info_row_array[$index]['rank'] = $rank;
+ $rank++;
+ }
+
+ // set
+ $this->setAttribute('ranking_user_info_row_array', $ranking_user_info_row_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È¤ò¥»¥Ã¥È¤¹¤ë
+ $this->setTemplate('UserRanking.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("UserRanking", $this->render());
+
+ return parent::execute();
+
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: AddUserAction.class.php,v 1.7 2008/04/24 16:00:00 y-yuki Exp $
+
+class AddUserAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSGetParameters();
+
+ $user_id = $form['user_id'];
+ if (ACSUser::get_user_info_row_by_user_id($user_id)) {
+ echo ACSMsg::get_msg('System', 'AddUserAction.class.php', 'M001');
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó¤ò¿·µ¬ÅÐÏ¿¤¹¤ë
+ $ret = ACSUser::set_user_info($form);
+ // ¥í¥°ÅÐÏ¿: ¥æ¡¼¥¶¿·µ¬ÅÐÏ¿
+ ACSLog::set_log($acs_user_info_row, 'New User Registration', $ret, "[UserID:{$form['user_id']}]");
+
+ $user_list_url = $this->getControllerPath('System', 'UserList');
+ header("Location: $user_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CreateSystemAnnounceAction.class.php,v 1.2 2006/11/20 08:44:20 w-ota Exp $
+
+class CreateSystemAnnounceAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSGetParameters();
+
+ // Validator¤Ç½ÐÍè¤Ê¤¤¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ //
+ if ($form['expire_date'] != '' && !ACSErrorCheck::is_valid_date($form['expire_date'])) {
+ $this->setError($controller, $request, $user, 'expire_date', ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M001'));
+ return $this->handleError();
+ }
+
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ $ret = ACSSystemAnnounce::set_system_announce($form);
+
+ $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
+ header("Location: $system_announce_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M002'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M003'));
+ parent::regValidateName($validatorManager,
+ "expire_date",
+ true,
+ ACSMsg::get_msg('System', 'CreateSystemAnnounceAction.class.php', 'M004'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DeleteSystemAnnounceAction.class.php,v 1.1 2006/06/13 02:49:43 w-ota Exp $
+
+class DeleteSystemAnnounceAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $system_announce_id = $request->ACSgetParameter('system_announce_id');
+
+ // get
+ $system_announce_row = ACSSystemAnnounce::get_system_announce_row($system_announce_id);
+
+ $request->setAttribute('system_announce_row', $system_announce_row);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSGetParameters();
+
+ $ret = ACSSystemAnnounce::delete_system_announce($form['system_announce_id']);
+
+ $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
+ header("Location: $system_announce_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥æ¡¼¥¶¾ðÊóÊѹ¹²èÌÌ action¥¯¥é¥¹
+ * @package acs/webapp/modules/System/actions
+ * DeleteUserAction
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: DeleteUserAction.class.php,v 1.6 2006/12/08 05:06:39 w-ota Exp $
+
+class DeleteUserAction extends BaseAction
+{
+ // GET([ºï½ü]¥ê¥ó¥¯¤«¤é¤ÎÁ«°Ü)
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_id = $request->getParameter('id');
+ $user_info_row = ACSUser::get_user_profile_row($user_id, 'include_private_flag');
+
+ $request->setAttribute('user_info_row', $user_info_row);
+ $user->setAttribute('user_id', $user_id);
+ return View::SUCCESS;
+ }
+
+ // POST¡Ê[OK]¥Ü¥¿¥ó¤«¤é¤ÎÁ«°Ü¡Ë
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $user_community_id = $user->getAttribute('user_id');
+
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id, 'include_private_flag');
+
+ // ¥æ¡¼¥¶¾ðÊó¤Îºï½ü¥Õ¥é¥°¤òÊѹ¹¤¹¤ë
+ $ret = ACSUser::delete_user_community($user_community_id);
+ if(!$ret){
+ echo "Warning : DB ERROR : Delete user failed.";
+ return;
+ }
+
+ // ¥í¥°ÅÐÏ¿: ¥æ¡¼¥¶ºï½ü
+ ACSLog::set_log($acs_user_info_row, 'Remove User', $ret, "[UserID:$target_user_info_row[user_id]]");
+
+ // ¥æ¡¼¥¶°ìÍ÷¤òɽ¼¨
+ $user_list_url = $this->getControllerPath('System', 'UserList');
+ header("Location: $user_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥àÀßÄêÊÔ½¸
+ *
+ * @author kuwayama
+ * @version $Revision: 1.8 $ $Date: 2007/03/01 09:01:39 $
+ */
+class EditSystemConfigAction extends BaseAction
+{
+ // GET
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // get
+ // ¥·¥¹¥Æ¥àÀßÄê¥Ç¡¼¥¿¼èÆÀ¡ÊÁ´·ï¡Ë
+ $system_config_obj = new ACSSystemConfig();
+
+ // set
+ $request->setAttribute('system_config_obj', $system_config_obj);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥·¥¹¥Æ¥àÀßÄê¥Ç¡¼¥¿¼èÆÀ¡ÊÁ´·ï¡Ë
+ $system_config_obj = new ACSSystemConfig();
+
+
+ // Validator¤Ç½ÐÍè¤Ê¤¤¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ //
+ $err_flg = false;
+ foreach ($system_config_obj->get_system_config_keyword_data_obj_array() as $get_system_config_keyword_data_obj) {
+ $keyword = $get_system_config_keyword_data_obj->get_keyword();
+ $system_config_group_name = $get_system_config_keyword_data_obj->get_system_config_group_name();
+ $name = $get_system_config_keyword_data_obj->get_name();
+ $type = $get_system_config_keyword_data_obj->get_type();
+ // number¤Î¹àÌܤϼ«Á³¿ô
+ if ($type == 'number' && !ACSErrorCheck::is_natural_number($form[$keyword])) {
+ //$this->setError($controller, $request, $user, $keyword, "[$system_config_group_name] -> [$name] ¤ÎÃͤ¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£(1°Ê¾å)");
+ $this->setError($controller, $request, $user, $keyword,
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M_WRONG_VALUE'),
+ array( "{GROUP_NAME}" => $system_config_group_name,
+ "{NAME}" => $name,
+ "{VAL}" => 1)));
+ $err_flg = true;
+ }
+ // number0¤Î¹àÌܤϼ«Á³¿ô(£°¤ò´Þ¤à)
+ if ($type == 'number0' &&
+ !ACSErrorCheck::is_natural_number($form[$keyword],true)) {
+ $this->setError($controller, $request, $user, $keyword,
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M_WRONG_VALUE'),
+ array( "{GROUP_NAME}" => $system_config_group_name,
+ "{NAME}" => $name,
+ "{VAL}" => 0)));
+ $err_flg = true;
+ }
+ }
+ if ($err_flg) {
+ return $this->handleError();
+ }
+
+
+ $ret = true;
+ ACSDB::_do_query("BEGIN");
+
+ foreach ($system_config_obj->get_system_config_keyword_data_obj_array() as $system_config_keyword_data_obj) {
+ $_system_config_row = array();
+ $param_key = $system_config_keyword_data_obj->get_keyword();
+ //$param_key = $system_config_keyword_data_obj->get_system_config_group() . ',' . $system_config_keyword_data_obj->get_keyword();
+
+ // parameter ¼èÆÀ
+ $update_value = $request->getParameter($param_key, 'NO_KEY');
+ if ($update_value == 'NO_KEY') {
+ // POST ¤Ë¥¡¼¤¬¤Ê¤¤¾ì¹ç¡¢Ìµ»ë¤¹¤ë
+ continue;
+ }
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ //if (!$update_value) {
+ if (trim($update_value)=='') {
+ $ret = false;
+ break;
+ }
+
+ // ÃÍ¥Á¥§¥Ã¥¯
+ // number ·¿¤Î¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¿ôÃÍ¥Á¥§¥Ã¥¯¡Ê1 °Ê¾å¡Ë¤ò¹Ô¤¦
+ if ($system_config_keyword_data_obj->get_type() == 'number') {
+ if (!is_numeric($update_value) or ($update_value < 1)) {
+ $ret = false;
+ break;
+ }
+ }
+ // number0 ·¿¤Î¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¿ôÃÍ¥Á¥§¥Ã¥¯¡Ê0 °Ê¾å¡Ë¤ò¹Ô¤¦
+ if ($system_config_keyword_data_obj->get_type() == 'number0') {
+ if (!is_numeric($update_value) or ($update_value < 0)) {
+ $ret = false;
+ break;
+ }
+ }
+
+ // ¹¹¿·½èÍý
+ $ret = ACSSystemConfig::update_value($system_config_keyword_data_obj->get_system_config_group_name(),
+ $system_config_keyword_data_obj->get_keyword(),
+ $update_value);
+ if (!$ret) {
+ break;
+ }
+ }
+ if (!$ret) {
+ // rollback
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Update configuration failed.";
+ exit;
+ }
+
+ // commit
+ ACSDB::_do_query("COMMIT");
+
+ // ¥í¥°ÅÐÏ¿: ¥·¥¹¥Æ¥àÀßÄêÊѹ¹
+ ACSLog::set_log($acs_user_info_row, 'Change System Settings', $ret);
+
+ // ´°Î»²èÌÌɽ¼¨
+ // °ú¿ô¥»¥Ã¥È
+ $message = ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M005');
+ $system_config_url = $this->getControllerPath('System', 'EditSystemConfig');
+ $system_config_link_name = ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M002');
+
+ $system_top_page_url = $this->getControllerPath('System', DEFAULT_ACTION);
+ $system_top_page_link_name = ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M003');
+
+ $done_obj = new ACSDone();
+
+ $done_obj->set_title(ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M004'));
+ $done_obj->set_message($message);
+ $done_obj->add_link($system_config_link_name, $system_config_url);
+ $done_obj->add_link($system_top_page_link_name, $system_top_page_url);
+
+ $request->setAttribute('done_obj', $done_obj);
+
+ // ²èÌ̸ƤӽФ·
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $system_config_obj = new ACSSystemConfig();
+
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ foreach ($system_config_obj->get_system_config_keyword_data_obj_array() as $get_system_config_keyword_data_obj) {
+ $keyword = $get_system_config_keyword_data_obj->get_keyword();
+ $system_config_group_name = $get_system_config_keyword_data_obj->get_system_config_group_name();
+ $name = $get_system_config_keyword_data_obj->get_name();
+
+ parent::regValidateName($validatorManager,
+ $keyword,
+ true,
+ ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M_EMPTY_VALUE'),
+ array("{GROUP_NAME}" => $system_config_group_name,
+ "{NAME}" => $name)));
+ }
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥æ¡¼¥¶¾ðÊóÊѹ¹²èÌÌ action¥¯¥é¥¹
+ * @package acs/webapp/modules/System/actions
+ * EditUserAction
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: EditUserAction.class.php,v 1.8 2008/04/24 16:00:00 y-yuki Exp $
+
+class EditUserAction extends BaseAction
+{
+ // GET([Êѹ¹]¥ê¥ó¥¯¤«¤é¤ÎÁ«°Ü)
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_id = $request->getParameter('id');
+ $user_info_row = ACSUser::get_user_profile_row($user_id, 'include_private_flag');
+
+ $request->setAttribute('user_info_row', $user_info_row);
+ $user->setAttribute('user_id', $user_id);
+ return View::INPUT;
+ }
+
+ // POST¡Ê[Êѹ¹]¥Ü¥¿¥ó¤«¤é¤ÎÁ«°Ü¡Ë
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSGetParameters();
+ $user_community_id = $user->getAttribute('user_id');
+
+ $form['user_community_id'] = $user_community_id;
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id, 'include_private_flag');
+ $post_user_info_row = ACSUser::get_user_info_row_by_user_id($form['user_id']);
+ if ($post_user_info_row
+ && $user_community_id != $post_user_info_row['user_community_id'])
+ {
+ echo ACSMsg::get_msg('System', 'EditUserAction.class.php', 'M002');
+ return;
+ }
+
+ //¥Ñ¥¹¥ï¡¼¥É¥Á¥§¥Ã¥¯
+ if($form['passwd_change'] == 'change_on' && $form['passwd'] == $form['passwd2'] || $form['passwd_change'] == ''){
+ // ¥æ¡¼¥¶¾ðÊó¤òÊѹ¹¤¹¤ë
+ $ret = ACSUser::update_user_info($form);
+ if(!$ret){
+ echo "Warning: Update user information failed.";
+ return;
+ }
+ }else{
+ echo ACSMsg::get_msg('System', 'EditUserAction.class.php', 'M001');
+ return;
+ }
+
+ // ¥í¥°ÅÐÏ¿: ¥æ¡¼¥¶¾ðÊóÊѹ¹
+ ACSLog::set_log($acs_user_info_row, 'Change User Information', $ret, "[UserID:$target_user_info_row[user_id]]");
+
+ // ¥æ¡¼¥¶°ìÍ÷¤òɽ¼¨
+ $user_list_url = $this->getControllerPath('System', 'UserList');
+ header("Location: $user_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+
+
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexAction.class.php,v 1.3 2006/03/27 09:50:26 kuwayama Exp $
+
+
+class IndexAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ return VIEW::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: LogAction.class.php,v 1.2 2006/03/27 09:50:26 kuwayama Exp $
+
+class LogAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSgetParameters();
+
+ // ¥í¥°¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $log_row_array = ACSLog::search_log_row_array($form);
+
+ // set
+ $request->setAttribute('form', $form);
+ $request->setAttribute('log_row_array', $log_row_array);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: LoginInfoAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class LoginInfoAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_id = $request->getParameter('id');
+
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row($user_id);
+ // ¥í¥°¥¤¥ó¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $login_info_row_array = ACSUser::get_login_info_row_array($user_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('login_info_row_array', $login_info_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SystemAnnounceListAction.class.php,v 1.1 2006/06/13 02:49:43 w-ota Exp $
+
+class SystemAnnounceListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹¾ðÊó°ìÍ÷
+ $system_announce_row_array = ACSSystemAnnounce::get_all_system_announce_row_array();
+
+ // set
+ $request->setAttribute('system_announce_row_array', $system_announce_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure() {
+ return false;
+ }
+
+ function getCredential() {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UserListAction.class.php,v 1.4 2006/03/27 09:50:26 kuwayama Exp $
+
+
+class UserListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤«¤É¤¦¤«³Îǧ
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSgetParameters();
+
+ // get
+ // ¥æ¡¼¥¶°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $user_info_row_array = ACSUser::search_all_user_info_row_array($form);
+
+ // set
+ $request->setAttribute('form', $form);
+ $request->setAttribute('user_info_row_array', $user_info_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('SYSTEM_ADMIN_USER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ´ÉÍý¼Ô¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('SYSTEM_ADMIN_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+[module]
+ ENABLED = "On"
+ TITLE = "ACS System Module"
+ VERSION = "1.0"
+ NAME = "System"
+ AUTHOR = "acs"
+ HOMEPAGE = ""
+ UPDATE_URL = ""
+ DESCRIPTION = "Academic Community System Administration module"
+
--- /dev/null
+<?php
+// $Id: AddUser.tpl.php,v 1.4 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M001') ?></div>
+<br><br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M002') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="user_id" size="30"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M003') ?></td>
+<td bgcolor="#ffffff">
+<input type="password" name="passwd" size="20"><br>
+<input type="password" name="passwd2" size="20"> <?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M004') ?><br>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="user_name" size="30"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="mail_addr" size="30"></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M007') ?>"><br>
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("System", "AddUser.tpl.php",'M008') ?></a><br>
--- /dev/null
+<?php
+// $Id: CreateSystemAnnounce.tpl.php,v 1.3 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><a href="<?= $this->_tpl_vars['system_announce_list_url'] ?>"><?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M002') ?></div>
+<br>
+
+<?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M004') ?><br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="subject" value="<?= htmlspecialchars($this->_tpl_vars['form']['subject']) ?>" size="50"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff">
+<textarea name="body" cols="80" rows="5"><?= htmlspecialchars($this->_tpl_vars['form']['body']) ?></textarea>
+</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="expire_date" value="<?= htmlspecialchars($this->_tpl_vars['form']['expire_date']) ?>" size="20"> (YYYY/MM/DD)</td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M008') ?>"><br>
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['system_announce_list_url'] ?>"><?= ACSMsg::get_msg("System", "CreateSystemAnnounce.tpl.php",'M009') ?></a><br>
--- /dev/null
+<?php
+// $Id: DeleteSystemAnnounce.tpl.php,v 1.3 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><a href="<?= $this->_tpl_vars['system_announce_list_url'] ?>"><?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M002') ?></div>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M003') ?><br>
+<br>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['system_announce_row']['subject']) ?></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff"><?= nl2br(htmlspecialchars($this->_tpl_vars['system_announce_row']['body'])) ?></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><?= $this->_tpl_vars['system_announce_row']['expire_date'] ?></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M007') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("System", "DeleteSystemAnnounce.tpl.php",'M008') ?>" onclick="location.href='<?= $this->_tpl_vars['system_announce_list_url'] ?>'">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+// ¥À¥¤¥¢¥ê¡¼
+// $Id: DeleteUser.tpl.php,v 1.3 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl">
+ <?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+<?php
+ /*
+ ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥æ¡¼¥¶¡Î
+ echo $this->_tpl_vars['user_info_row']['user_id'];
+ echo " : ";
+ echo $this->_tpl_vars['user_info_row']['user_name'];
+ ¡Ï¤òºï½ü¤·¤Þ¤¹¡£
+ */
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("System", "DeleteUser.tpl.php",'DELM'),
+ array("{USER_ID}" => $this->_tpl_vars['user_info_row']['user_id'],
+ "{USER_NAME}" => $this->_tpl_vars['user_info_row']['user_name']));
+?><br>
+ <?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M003') ?><br><br>
+ <?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M004') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_user_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M005') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("System", "DeleteUser.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<div class="ttl"><?= ACSMsg::get_msg("System", "EditSystemConfig.tpl.php",'M001') ?></div>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form name="edit_system_config" method="POST" action="<?= $this->_tpl_vars['edit_system_config_url'] ?>">
+<?php
+foreach ($this->_tpl_vars['system_config_row_array'] as $group => $row_array) {
+ print '<p>' . "\n";
+ //print '<table class="common_table" border>' . "\n";
+ print '<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">' . "\n";
+
+ // ¥°¥ë¡¼¥×̾½ÐÎÏ
+ print '<tr>';
+ print '<th class="system_config_th" colspan=2>';
+ print $group;
+ print '</td>';
+ print '</tr>' . "\n";
+
+ // ¹àÌܽÐÎÏ
+ foreach ($row_array as $row) {
+ print '<tr>' . "\n";
+
+ // ¹àÌÜ̾
+ print '<td id="myttl" bgcolor="#DEEEBD">';
+ print $row['name'];
+ print '</td>' . "\n";
+
+ // ÃÍ
+ $type = $row['type'];
+
+ if ($type == 'select') {
+
+ print '<td bgcolor="#ffffff">';
+ print '<select name="' . $row['keyword'] . '" >';
+
+ for ($i = 0; $i < count($row['select']); $i++) {
+ if ($row['value'] == $row['select'][$i][0]) {
+?>
+ <option value='<?=$row['select'][$i][0]?>' selected><?=$row['select'][$i][1]?></option>
+<?php
+ } else {
+?>
+ <option value='<?=$row['select'][$i][0]?>'><?=$row['select'][$i][1]?></option>
+<?php
+ }
+ }
+ print '</select>';
+
+ } else {
+ $display_size = "";
+ // ɽ¼¨¥µ¥¤¥ºÀßÄê
+ if ($type == 'string') {
+ $input_type = 'text';
+ $display_size = " size=80";
+ } elseif ($type == 'password') {
+ $input_type = 'password';
+ $display_size = " size=20";
+ } elseif ($type == 'number') {
+ $input_type = 'text';
+ $display_size = " size=10";
+ } elseif ($type == 'number0') {
+ $input_type = 'text';
+ $display_size = " size=10";
+ }
+ print '<td bgcolor="#ffffff">';
+ print '<input type="' . $input_type . '" name="' . $row['keyword'] . '" value="' . $row['value'] . '"' . $display_size . '>';
+ }
+
+ print $row['unit'];
+ print '<br>';
+ if ($row['note']) {
+ // È÷¹Í¤¬¤¢¤ë¾ì¹ç¤Ïɽ¼¨
+ print '<span class="notice">';
+ print '¢¨' . $row['note'];
+ print '</span>';
+ }
+ print '</td>' . "\n";
+
+ print '</tr>' . "\n";
+ }
+ print '</table>' . "\n";
+
+ print '</p>' . "\n";
+}
+?>
+
+<input type="submit" value="<?= ACSMsg::get_msg("System", "EditSystemConfig.tpl.php",'M002') ?>">
+<input type="reset" value="<?= ACSMsg::get_msg("System", "EditSystemConfig.tpl.php",'M003') ?>">
+</form>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0 |
+// | ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶¾ðÊó¤òÊѹ¹¤¹¤ë²èÌÌ |
+// +----------------------------------------------------------------------+
+// $Id: EditSystemConfig.tpl.php,v 1.6 2008/04/24 16:00:00 y-yuki Exp $
+?>
+
+<SCRIPT language="JavaScript">
+<!--
+// ¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹¤Î°Õ»×¤¬¤¢¤Ã¤¿¤éÆþÎϤò͸ú¤È¤¹¤ë
+function fmTurn(){
+ if(document.edit_user_form.passwd_change.checked){
+ document.edit_user_form.passwd.disabled = false;
+ document.edit_user_form.passwd2.disabled = false;
+ document.edit_user_form.passwd.focus();
+ }else{
+ document.edit_user_form.passwd.disabled = true;
+ document.edit_user_form.passwd2.disabled = true;
+ }
+}
+//-->
+</SCRIPT>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M001') ?></div>
+<br><br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="edit_user_form">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M002') ?></td>
+<td bgcolor="#ffffff">
+ <?php
+ echo "<input type=\"text\" name=\"user_id\" size=\"30\" value=\"";
+ echo $this->_tpl_vars['user_info_row']['user_id'];
+ echo "\">";
+ //echo "\" readonly>";
+
+ echo "<input type=\"hidden\" name=\"old_user_id\" value=\"";
+ echo $this->_tpl_vars['user_info_row']['user_id'];
+ echo "\">";
+ ?>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M003') ?></td>
+<td bgcolor="#ffffff">
+<input type="checkbox" name ="passwd_change" value="change_on" onClick="fmTurn()"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M004') ?><br>
+<input type="password" name="passwd" size="20" style = "" disabled><br>
+<input type="password" name="passwd2" size="20" disabled> <?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M005') ?><br>
+ <span class="comment">
+ <?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M006') ?>
+ </span>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+ <?php
+ echo "<input type=\"text\" name=\"user_name\" size=\"30\" value=\"";
+ echo $this->_tpl_vars['user_info_row']['user_name'];
+ echo "\" style=\"ime-mode: active;\">";
+ ?>
+</td>
+</tr>
+
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M008') ?></td>
+<td bgcolor="#ffffff">
+ <?php
+ echo "<input type=\"text\" name=\"mail_addr\" size=\"40\" value=\"";
+ echo $this->_tpl_vars['user_info_row']['mail_addr'];
+ echo "\" style=\"ime-mode: inactive;\">";
+ ?>
+ </td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M009') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("System", "EditUser.tpl.php",'M010') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'"><br>
+</form>
+<br>
--- /dev/null
+<?php
+// $Id: Index.tpl.php,v 1.6 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "Index.tpl.php",'M001') ?></div>
+
+
+<ul>
+<li><a href="<?= $this->_tpl_vars['user_list_url'] ?>"><?= ACSMsg::get_msg("System", "Index.tpl.php",'M002') ?></a><br><br>
+<li><a href="<?= $this->_tpl_vars['log_url'] ?>"><?= ACSMsg::get_msg("System", "Index.tpl.php",'M003') ?></a><br><br>
+<li><a href="<?= $this->_tpl_vars['system_announce_list_url'] ?>"><?= ACSMsg::get_msg("System", "Index.tpl.php",'M004') ?></a><br><br>
+<li><a href="<?= $this->_tpl_vars['edit_system_config_url'] ?>"><?= ACSMsg::get_msg("System", "Index.tpl.php",'M005') ?></a><br><br>
+</ul>
--- /dev/null
+<?php
+// $Id: Log.tpl.php,v 1.3 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M001') ?></div>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+¥¡¼¥ï¡¼¥É <input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30">
+<input type="submit" value="<?= ACSMsg::get_msg("System", "Log.tpl.php",'M002') ?>">
+</tr></td></table>
+</form>
+</p>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="665">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M003') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M004') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M005') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M006') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M007') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M008') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M009') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "Log.tpl.php",'M010') ?></th>
+</td>
+</tr>
+<?php
+foreach ($this->_tpl_vars['log_row_array'] as $log_row) {
+ echo "<tr>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">$log_row[log_id]</td>";
+ echo "<td bgcolor=\"#ffffff\">$log_row[log_date]</td>";
+ echo "<td bgcolor=\"#ffffff\">$log_row[user_id]</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($log_row['user_name']) . "</td>";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"$log_row[top_page_url]\">" . htmlspecialchars($log_row['community_name']) . "</a></td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($log_row['user_level_name']) . "</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($log_row['message']) . "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ // ¼ºÇÔ
+ if ($log_row['operation_result_name'] == ACSMsg::get_msg("System", "Log.tpl.php",'M011')) {
+ echo "<span class=\"err_msg\">" . htmlspecialchars($log_row['operation_result_name']) . "</a>";
+ } else {
+ echo htmlspecialchars($log_row['operation_result_name']);
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+<br>
--- /dev/null
+<?php
+// $Id: LoginInfo.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M001') ?></div>
+<br><br>
+
+<p>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M002') ?></td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M003') ?></td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M004') ?></td>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['user_id']) ?></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['user_name']) ?></td>
+<td bgcolor="#ffffff">
+<a href="<?=$this->_tpl_vars['top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) ?></a></td>
+</table>
+</p>
+
+<?php
+if ($this->_tpl_vars['login_info_row_array']) {
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M005')."</td>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M006')."</td>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M007')."</td>";
+ echo "</tr>";
+
+ foreach ($this->_tpl_vars['login_info_row_array'] as $login_info_row) {
+ echo "<tr>\n";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo $login_info_row['login_date'];
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo $login_info_row['logout_date'];
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ if ($login_info_row['use_button_flg'] == "f") {
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M008');
+ } else {
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M009');
+ }
+ echo "</td>";
+ echo "</tr>\n";
+ }
+ echo "</table>";
+} else {
+ echo ACSMsg::get_msg("System", "LoginInfo.tpl.php",'M010');
+}
+?>
+
+<br>
--- /dev/null
+<?php
+// $Id: SystemAnnounceList.tpl.php,v 1.4 2007/03/01 09:01:41 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M001') ?></div><br>
+
+<a href="<?= $this->_tpl_vars['create_system_announce_url'] ?>"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M002') ?></a><br>
+<br>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M003') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M004') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M005') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M006') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M007') ?></th>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M008') ?></th>
+</tr>
+<?php
+foreach ($this->_tpl_vars['system_announce_row_array'] as $system_announce_row) {
+ echo "<tr>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">";
+ echo $system_announce_row['post_date'];
+ echo "</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$system_announce_row[top_page_url]\">" . htmlspecialchars($system_announce_row['community_name']) . "</a>";
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo $system_announce_row['subject'];
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars($system_announce_row['body']));
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo $system_announce_row['expire_date'];
+ echo "</td>";
+ echo "<td class=\"nowrap\" align=\"center\" bgcolor=\"#ffffff\">";
+ if ($system_announce_row['system_announce_delete_flag']) {
+ // ÅÓÃæ¤Ç·ÇºÜÃæ»ß¤·¤¿¾ì¹ç
+ echo "<font color=\"#ff0000\"><b>".ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M009')."</b></font>";
+ } else {
+ if ($system_announce_row['is_expire']) {
+ // ·ÇºÜ´ü¸Â¤Ë㤷¤¿¾ì¹ç
+ echo ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M010');
+ } else {
+ // ¸½ºß·ÇºÜÃæ¤Î¾ì¹ç
+ echo "<font color=\"#00aa00\"><b>".ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M011')."</b></font>";
+ echo " <input type=\"button\" value=\"".ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M012')."\" onclick=\"location.href='$system_announce_row[delete_system_announce_url]'\">";
+ }
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+
+if (count($this->_tpl_vars['system_announce_row_array']) == 0) {
+ echo "<tr><td colspan=\"6\" bgcolor=\"#ffffff\">".ACSMsg::get_msg("System", "SystemAnnounceList.tpl.php",'M013')."</td></tr>\n";
+}
+?>
+</table>
+<br>
--- /dev/null
+<?php
+// $Id: UserList.tpl.php,v 1.6 2008/03/24 07:00:36 y-yuki Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M001') ?></div>
+<br><br>
+
+<a href="<?= $this->_tpl_vars['add_user_url'] ?>"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M002') ?></a><br><br>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<?= ACSMsg::get_msg("System", "UserList.tpl.php",'M003') ?> <input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30">
+<input type="submit" value="<?= ACSMsg::get_msg("System", "UserList.tpl.php",'M004') ?>">
+</tr></td>
+</table>
+</form>
+</p>
+
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"> </td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M005') ?></td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M006') ?></td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M007') ?></td>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("System", "UserList.tpl.php",'M008') ?></td>
+</tr>
+
+<?php
+foreach ($this->_tpl_vars['user_info_row_array'] as $user_info_row) {
+ echo "<tr>\n";
+ echo "<td bgcolor=\"#ffffff\">[<a href=";
+ echo $user_info_row['edit_page_url'];
+ echo ">".ACSMsg::get_msg("System", "UserList.tpl.php",'M009')."</a>][<a href=";
+ echo $user_info_row['delete_page_url'];
+ //echo ">".ACSMsg::get_msg("System", "UserList.tpl.php",'M010')."</a>]</td>";
+ echo ">".ACSMsg::get_msg("System", "UserList.tpl.php",'M010')."</a>][<a href=";
+ echo $user_info_row['login_info_url'];
+ echo ">".ACSMsg::get_msg("System", "UserList.tpl.php",'M011')."</a>]</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($user_info_row['user_id']) . "</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($user_info_row['user_name']) . "</td>";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"" .$user_info_row['top_page_url']. "\">" . htmlspecialchars($user_info_row['community_name']) . "</a></td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ if ($user_info_row['mail_addr'] != '') {
+ echo htmlspecialchars($user_info_row['mail_addr']);
+ } else {
+ echo " ";
+ }
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+
+<br>
--- /dev/null
+<?php
+// $Id: AddUserView_input.class.php,v 1.2 2006/01/19 10:03:42 w-ota Exp $
+
+
+class AddUserInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // URL
+ $action_url = $this->getControllerPath('System', 'AddUser');
+ $back_url = $this->getControllerPath('System', 'UserList');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('AddUser.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CreateSystemAnnounceView_input.class.php,v 1.2 2006/06/23 07:53:51 w-ota Exp $
+
+class CreateSystemAnnounceInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $form = $request->getAttribute('form');
+
+ // URL
+ $action_url = $this->getControllerPath('System', 'CreateSystemAnnounce');
+ $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CreateSystemAnnounce.tpl.php');
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+ $this->setAttribute('form', $form);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('system_announce_list_url', $system_announce_list_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DeleteSystemAnnounceView_input.class.php,v 1.1 2006/06/13 02:49:45 w-ota Exp $
+
+class DeleteSystemAnnounceInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $system_announce_row = $request->getAttribute('system_announce_row');
+
+ // URL
+ $action_url = $this->getControllerPath('System', 'DeleteSystemAnnounce')
+ . '&system_announce_id=' . $system_announce_row['system_announce_id'];
+ $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
+
+ // ²Ã¹©
+ $system_announce_row['expire_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['expire_date'], false, false, false);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteSystemAnnounce.tpl.php');
+
+ // set
+ $this->setAttribute('system_announce_row', $system_announce_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('system_announce_list_url', $system_announce_list_url);
+
+ return parent::execute();
+ }
+
+ function isSecure() {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥æ¡¼¥¶¾ðÊóºï½ü³Îǧ²èÌÌ view¥¯¥é¥¹
+ * @package acs/webapp/modules/System/views
+ * DeleteUserView_confirm
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: DeleteUserView_confirm.class.php,v 1.1 2006/03/13 07:04:58 z-akitsu Exp $
+
+
+class DeleteUserSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_info_row = $request->getAttribute('user_info_row');
+
+ // URL
+ $delete_user_url = $this->getControllerPath('System', 'DeleteUser'). '&id=' . $user_info_row['user_community_id'];
+ $back_url = $this->getControllerPath('System', 'UserList');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteUser.tpl.php');
+
+ // set
+ $this->setAttribute('delete_user_url', $delete_user_url);
+ $this->setAttribute('back_url', $back_url);
+
+ $this->setAttribute('user_info_row', $user_info_row);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥àÀßÄêÊÔ½¸
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2008/03/24 07:00:36 $
+ */
+class EditSystemConfigInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $system_config_obj = $request->getAttribute('system_config_obj');
+
+ $form = $request->getAttribute('form');
+
+ // ²Ã¹©
+ // Actoin URL
+ $edit_system_config_url = $this->getControllerPath('System', 'EditSystemConfig');
+
+ // template ÍÑɽ¼¨¥Ç¡¼¥¿ºîÀ®
+ // key: ¥°¥ë¡¼¥×
+ // value: template Íѥǡ¼¥¿¤ÎÇÛÎó
+ $system_config_row_array = array();
+ $system_config_group_array = $system_config_obj->get_system_config_group_array();
+ foreach ($system_config_group_array as $system_config_group) {
+ $_system_config_keyword_data_row_array = array();
+
+ // ¼èÆÀ¤·¤¿¥°¥ë¡¼¥×¤Î¥¡¼¥ï¡¼¥É¤ò¼èÆÀ
+ $system_config_keyword_data_obj_array = $system_config_obj->get_system_config_keyword_data_obj($system_config_group);
+
+ foreach ($system_config_keyword_data_obj_array as $system_config_keyword_data_obj) {
+ // template Íѥǡ¼¥¿¤ÎÇÛÎóºîÀ®
+ $_system_config_keyword_data_row = array();
+
+ $_system_config_keyword_data_row['keyword'] = $system_config_keyword_data_obj->get_keyword();
+ $_system_config_keyword_data_row['name'] = $system_config_keyword_data_obj->get_name();
+ if (is_array($form)) {
+ $_system_config_keyword_data_row['value'] = $form[$_system_config_keyword_data_row['keyword']];
+ } else {
+ $_system_config_keyword_data_row['value'] = $system_config_keyword_data_obj->get_value();
+ }
+ $_system_config_keyword_data_row['type'] = $system_config_keyword_data_obj->get_type();
+ $_system_config_keyword_data_row['unit'] = $system_config_keyword_data_obj->get_unit();
+ $_system_config_keyword_data_row['note'] = $system_config_keyword_data_obj->get_note();
+
+ $wk_select = $system_config_keyword_data_obj->get_select();
+ if ($wk_select) {
+ $wk_select_array = split(",", $wk_select);
+ for ($i = 0; $i < count($wk_select_array); $i++) {
+ $_system_config_keyword_data_row['select'][$i] = split(":", $wk_select_array[$i]);
+ }
+ }
+
+ array_push($_system_config_keyword_data_row_array, $_system_config_keyword_data_row);
+ }
+
+ // key: ¥°¥ë¡¼¥×
+ // value: template Íѥǡ¼¥¿¤ÎÇÛÎó
+ $system_config_row_array[$system_config_group] = $_system_config_keyword_data_row_array;
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditSystemConfig.tpl.php');
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ $this->setAttribute('edit_system_config_url', $edit_system_config_url);
+ $this->setAttribute('system_config_row_array', $system_config_row_array);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥æ¡¼¥¶¾ðÊóÊѹ¹²èÌÌ view¥¯¥é¥¹
+ * @package acs/webapp/modules/System/views
+ * EditUserView_input
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: EditUserView_input.class.php,v 1.1 2006/03/13 07:04:58 z-akitsu Exp $
+
+
+class EditUserInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_info_row = $request->getAttribute('user_info_row');
+
+ // URL
+ $action_url = $this->getControllerPath('System', 'EditUser');
+ $back_url = $this->getControllerPath('System', 'UserList');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditUser.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ $this->setAttribute('user_info_row', $user_info_row);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexView_success.class.php,v 1.6 2006/06/14 05:34:04 w-ota Exp $
+
+
+class IndexSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¥æ¡¼¥¶°ìÍ÷URL
+ $user_list_url = $this->getControllerPath('System', 'UserList');
+
+ // ¥í¥°´ÉÍýURL
+ $log_url = $this->getControllerPath('System', 'Log');
+
+ // ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹(¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻)°ìÍ÷URL
+ $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
+
+ // ¥·¥¹¥Æ¥àÀßÄêURL
+ $edit_system_config_url = $this->getControllerPath('System', 'EditSystemConfig');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Index.tpl.php');
+
+ // set
+ $this->setAttribute('user_list_url', $user_list_url);
+ $this->setAttribute('log_url', $log_url);
+ $this->setAttribute('create_system_announce_url', $create_system_announce_url);
+ $this->setAttribute('system_announce_list_url', $system_announce_list_url);
+ $this->setAttribute('edit_system_config_url', $edit_system_config_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: LogView_input.class.php,v 1.2 2006/11/20 08:44:22 w-ota Exp $
+
+class LogInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $log_row_array = $request->getAttribute('log_row_array');
+ $form = $request->getAttribute('form');
+
+ // ²Ã¹©
+ foreach ($log_row_array as $index => $log_row) {
+ $log_row_array[$index]['log_date'] = ACSLib::convert_pg_date_to_str($log_row['log_date'], true, true, true);
+ $log_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $log_row['user_community_id'];
+ if (ACSLib::get_boolean($log_row_array[$index]['administrator_flag'])) {
+ // ¥·¥¹¥Æ¥à´ÉÍý¼Ô
+ $log_row_array[$index]['user_level_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M001');
+ } else {
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶
+ $log_row_array[$index]['user_level_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M002');
+ }
+ if (ACSLib::get_boolean($log_row_array[$index]['operation_result'])) {
+ // À®¸ù
+ $log_row_array[$index]['operation_result_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M003');
+ } else {
+ // ¼ºÇÔ
+ $log_row_array[$index]['operation_result_name'] = ACSMsg::get_msg('System', 'LogInputView.class.php', 'M004');
+ }
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D07'), 'LOG_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $log_row_array, $display_count);
+
+ // URL
+ $action_url = $this->getControllerPath();
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Log.tpl.php');
+
+ // set
+ $this->setAttribute('form', $form);
+ $this->setAttribute('log_row_array', $log_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'System');
+ $this->setAttribute('action', 'Log');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥í¥°¥¤¥ó¾ðÊó²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/System/views
+ * LoginInfoView_succes
+ * @author nakau v 1.0 2008/03/13 10:03:42
+ * @since PHP 4.0
+ */
+// $Id: LoginInfoView_success.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class LoginInfoSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $login_info_row_array = $request->getAttribute('login_info_row_array');
+
+ $top_page_url = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $target_user_info_row['community_id'];
+
+ // ²Ã¹©
+ foreach ($login_info_row_array as $index => $login_info_row) {
+ $login_info_row_array[$index]['login_date'] = ACSLib::convert_pg_date_to_str($login_info_row['login_date']);
+ $login_info_row_array[$index]['logout_date'] = ACSLib::convert_pg_date_to_str($login_info_row['logout_date']);
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $login_info_row_array, $display_count);
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('LoginInfo.tpl.php');
+
+ // set
+ //$this->setAttribute('form', $form);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('login_info_row_array', $login_info_row_array);
+ $this->setAttribute('top_page_url', $top_page_url);
+ $this->setAttribute('paging_info', $paging_info);
+
+
+ $this->setAttribute('module', 'System');
+ $this->setAttribute('action', 'LoginInfo');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SystemAnnounceListView_success.class.php,v 1.3 2006/11/20 08:44:22 w-ota Exp $
+
+class SystemAnnounceListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $system_announce_row_array = $request->getAttribute('system_announce_row_array');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $system_announce_row_array, $display_count);
+
+ foreach ($system_announce_row_array as $index => $system_announce_row) {
+ $system_announce_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $system_announce_row['community_id'];
+ $system_announce_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['post_date'], true, true);
+ $system_announce_row_array[$index]['expire_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['expire_date'], false, false, false);
+ $system_announce_row_array[$index]['is_expire'] = ACSLib::get_boolean($system_announce_row['is_expire']);
+ $system_announce_row_array[$index]['system_announce_delete_flag'] = ACSLib::get_boolean($system_announce_row['system_announce_delete_flag']);
+ $system_announce_row_array[$index]['delete_system_announce_url'] = $this->getControllerPath('System', 'DeleteSystemAnnounce')
+ . '&system_announce_id=' . $system_announce_row['system_announce_id'];
+ }
+
+
+ // ¥·¥¹¥Æ¥à¥¢¥Ê¥¦¥ó¥¹(¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻)ºîÀ®URL
+ $create_system_announce_url = $this->getControllerPath('System', 'CreateSystemAnnounce');
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SystemAnnounceList.tpl.php');
+
+ // set
+ $this->setAttribute('system_announce_row_array', $system_announce_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('create_system_announce_url', $create_system_announce_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥·¥¹¥Æ¥à¡¡¥æ¡¼¥¶´ÉÍý¡¡¥æ¡¼¥¶¾ðÊóÊѹ¹²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/System/views
+ * UserListView_succes
+ * @author w-ota v 1.2 2006/01/19 10:03:42
+ * @alter akitsu
+ * @since PHP 4.0
+ */
+// $Id: UserListView_success.class.php,v 1.6 2008/03/24 07:00:36 y-yuki Exp $
+
+
+class UserListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $form = $request->getAttribute('form');
+
+ // get
+ $user_info_row_array = $request->getAttribute('user_info_row_array');
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['edit_page_url'] = $this->getControllerPath('System', 'EditUser') . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['delete_page_url'] = $this->getControllerPath('System', 'DeleteUser') . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['login_info_url'] = $this->getControllerPath('System', 'LoginInfo') . '&id=' . $user_info_row['user_community_id'];
+ }
+
+ $add_user_url = $this->getControllerPath('System', 'AddUser');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
+
+ // URL
+ $action_url = $this->getControllerPath();
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('UserList.tpl.php');
+
+ // set
+ $this->setAttribute('form', $form);
+ $this->setAttribute('user_info_row_array', $user_info_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('add_user_url', $add_user_url);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'System');
+ $this->setAttribute('action', 'UserList');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: AddFriendsAction.class.php,v 1.11 2006/11/20 08:44:25 w-ota Exp $
+
+class AddFriendsAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->getParameter('id');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á ¤òÅÐÏ¿¤¹¤ë
+ $waiting_id = ACSWaiting::set_waiting_for_add_friends($user_community_id, $acs_user_info_row['user_community_id'], $form['message']);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§°ÍÍêÄÌÃΥ᡼¥ë
+ ACSWaiting::send_admission_request_notify_mail($waiting_id);
+
+ // forward
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M001'));
+ $done_obj->set_message(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M002'));
+ $done_obj->add_link(ACSMsg::get_msg('User', 'AddFriendsAction.class.php', 'M003'), './');
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ return array('NOT_FRIENDS');
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ChangePasswordAction.class.php,v 1.3 2006/03/28 07:55:34 kuwayama Exp $
+
+class ChangePasswordAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤¹¤ë
+ if($form['passwd'] != '' && $form['passwd'] == $form['passwd2']) {
+ ACSSystem::update_passwd($acs_user_info_row['user_id'], $form['passwd']);
+ }
+
+ $user_list_url = $this->getControllerPath('User', 'Index');
+ header("Location: $user_list_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')
+ && $user->hasCredential('NOT_LDAP_USER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityListAction.class.php,v 1.5 2006/11/20 08:44:25 w-ota Exp $
+
+
+class CommunityListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Á´ÂΤθø³«ÈϰϤò¥»¥Ã¥È¤¹¤ë
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['contents_row_array']['self'] = ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D00'));
+ $community_row_array[$index]['is_community_member'] = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('community_row_array', $community_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡action¥¯¥é¥¹
+ * ¥Ç¥¶¥¤¥óÁªÂò
+ * @package acs/webapp/modules/User/action
+ * SelectDesignAction
+ * @author teramoto
+ * @since PHP 4.0
+ */
+// $Id: ContentsBackupAction.class.php,v 1.2 2007/03/28 02:26:52 w-ota Exp $
+
+class ContentsBackupAction extends BaseAction
+{
+ // GET/POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¹¹¿·ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $acs_user_info_row['user_community_id'];
+
+ // ¥ï¡¼¥¯¥Ç¥£¥ì¥¯¥È¥ê¤ÎºîÀ®(¸ºß¤·¤Ê¤¤¾ì¹ç)
+ $work_dir = ACS_CONTENTS_BACKUP_DIR;
+ ACSLib::make_dir($work_dir);
+
+ $work_dir .= $user_community_id . '/';
+ ACSLib::make_dir($work_dir);
+
+ $work_dir .= ACS_BACKUP_ZIP_DIR_NAME;
+ ACSLib::make_dir($work_dir);
+
+
+ // ¥Ð¥Ã¥¯¥¢¥Ã¥×ÍÑZIP¥¯¥é¥¹¤ÎÀ¸À®
+ $zip = new ACSZip($work_dir);
+
+ // Folder, Diary ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤·¤Æ¤ª¤¯(0·ïÂбþ)
+ ACSLib::make_dir($work_dir . '/' . ACS_BACKUP_MYFOLDER_SUBDIR_NAME);
+ ACSLib::make_dir($work_dir . '/' . ACS_BACKUP_MYDIARY_SUBDIR_NAME);
+
+ // ----- ¥Þ¥¤¥Õ¥©¥ë¥À¥Ð¥Ã¥¯¥¢¥Ã¥×¥³¥ó¥Æ¥ó¥Ä¤ÎÀ¸À®
+ // ¥Õ¥©¥ë¥À¼èÆÀÍѤÎÇÛÎó¤òÀßÄê
+ $form = array('q'=>'', 'order'=>'name');
+
+ // ¥Õ¥©¥ë¥À¤Î¼èÆÀ
+ $folder_row_array = ACSUserFolder::search_folder_row_array($user_community_id, $form);
+
+ // ¥Ñ¥¹¾ðÊó¤ÎÀßÄê
+ foreach ($folder_row_array as $index => $folder_row) {
+ $target_folder_obj = new ACSUserFolder(
+ $user_community_id, $acs_user_info_row, $folder_row['folder_id']);
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ // ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®(¶õ¥Ç¥£¥ì¥¯¥È¥êÂбþ)
+ $zip->make_dir(ACS_BACKUP_MYFOLDER_SUBDIR_NAME . '/' .
+ implode("/",$path_array), ACS_BACKUP_NAME_ENCODING);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¤Î¼èÆÀ
+ $file_info_row_array = ACSUserFolder::search_file_info_row_array($user_community_id, $form);
+
+ // ¥Ñ¥¹¾ðÊó¤ÎÀßÄê
+ foreach ($file_info_row_array as $index => $file_info_row) {
+
+ $target_folder_obj = new ACSUserFolder(
+ $user_community_id, $acs_user_info_row, $file_info_row['folder_id']);
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ array_push($path_array, $file_info_row['display_file_name']);
+ $file_info_row_array[$index]['path_array'] = $path_array;
+ }
+
+ // ¥Þ¥¤¥Õ¥©¥ë¥À¤Î¥Õ¥©¥ë¥À¹½À®¤Ç¥Õ¥¡¥¤¥ë¤òÇÛÃÖ
+ $dest_path_array = array();
+ foreach ($file_info_row_array as $file_info_row) {
+ $from_path = ACS_FOLDER_DIR . $file_info_row['server_file_name'];
+ $dest_path = ACS_BACKUP_MYFOLDER_SUBDIR_NAME .'/'. implode("/", $file_info_row['path_array']);
+
+ // Ʊ°ì̾¥Õ¥¡¥¤¥ë»þ¤ÎÏ¢ÈÖÉÕ²ÃÂбþ
+ $dest_path_array[$dest_path]++;
+ if ($dest_path_array[$dest_path]>1) {
+ $count = $dest_path_array[$dest_path];
+ mb_ereg('.*(\.[^\.\/]*$)', $dest_path, $matches);
+ $ext = $matches[1];
+ if ($ext) {
+ $dest_path = mb_ereg_replace('\.[^\.\/]*$', '', $dest_path);
+ }
+ $dest_path .= '_' . ($count-1) . $ext;
+ }
+
+ $zip->entry($from_path, $dest_path, ACS_BACKUP_NAME_ENCODING);
+ }
+
+ // ----- ¥Þ¥¤¥À¥¤¥¢¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥³¥ó¥Æ¥ó¥Ä¤ÎÀ¸À®
+ $diary_backup = new ACSDiaryBackup($user_community_id, $work_dir . '/' . ACS_BACKUP_MYDIARY_SUBDIR_NAME );
+ $diary_backup->make_contents(ACS_BACKUP_NAME_ENCODING);
+
+ // ¥À¥¦¥ó¥í¡¼¥É»þZIP¥Õ¥¡¥¤¥ë̾¤ÎÀ¸À®
+ $download_filename = 'ACSBackup_' . date('Ymd', time()) . '.zip';
+
+ // ¥Ð¥Ã¥¯¥¢¥Ã¥×zip¥¢¡¼¥«¥¤¥Ö¤ÎºîÀ®(zip°µ½Ì¤Î¼Â¹Ô)
+ $zip->commpress();
+ $zip->download($download_filename);
+
+ // ÉÔɬÍפʥ¥¯¥Õ¥¡¥¤¥ë¤Îºï½ü
+ $zip->clear_work_dir_and_files();
+ }
+
+ function getRequestMethods() {
+ return Request::GET|Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: CreateFriendsGroupAction.class.php,v 1.6 2006/11/20 08:44:25 w-ota Exp $
+
+class CreateFriendsGroupAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $friends_row_array = ACSUser::get_friends_row_array($user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('friends_row_array', $friends_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $user_community_id;
+
+ // ºîÀ®
+ $form['community_id'] = ACSUser::set_friends_group($form);
+ // ¥á¥ó¥Ð¥»¥Ã¥È
+ ACSUser::update_friends_group_member($form);
+
+ $friends_group_list_top_page_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $user_community_id;
+ header("Location: $friends_group_list_top_page_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "community_name",
+ true,
+ ACSMsg::get_msg('User', 'CreateFriendsGroupMemberAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¿Æ ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteDiaryAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @revision ver1.0 2006/03/02
+ */
+// $Id: DeleteDiaryAction.class.php,v 1.4 2006/11/20 08:44:25 w-ota Exp $
+
+class DeleteDiaryAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get parameter
+ $target_community_id = $request->getParameter('id');
+ $diary_id = $request->getParameter('diary_id');
+
+ $back_url = $this->getControllerPath('User','Diary');
+ $back_url .= '&id=' . $target_community_id;
+
+ $delete_diary_url = $this->getControllerPath('User','DeleteDiary') .'&id=' . $target_community_id .'&diary_id=' .$diary_id;
+
+ $request->setAttribute('delete_diary_url', $delete_diary_url);
+ $request->setAttribute('back_url', $back_url);
+ // ɽ¼¨
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_community_id = $request->getParameter('id');
+ $diary_id = $request->getParameter('diary_id');
+ //¥Õ¥¡¥¤¥ë¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ $diary_obj = ACSDiary::get_diary_row($diary_id);
+ if(!$diary_obj){
+ echo "Æüµ¤¬¼èÆÀ¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿";
+ }
+ $ret =ACSDiary::delete_diary($diary_id);
+ if (!$ret) {
+ echo "ERROR: Delete diary failed.";
+ }
+
+ //ɽ¼¨
+ $diary_change_url = $this->getControllerPath('User','Diary');
+ $diary_change_url .= '&id=' . $target_community_id;
+ header("Location: $diary_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼ ¥³¥á¥ó¥È ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteDiaryCommentAction.class.php
+ *
+ * @author $Author: w-ota $
+ * @revision ver1.0 2006/03/02
+ */
+// $Id: DeleteDiaryCommentAction.class.php,v 1.5 2006/11/20 08:44:25 w-ota Exp $
+
+class DeleteDiaryCommentAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get parameter
+ $target_community_id = $request->getParameter('id');
+ $diary_id = $request->getParameter('diary_id');
+ $diary_comment_id = $request->getParameter('diary_comment_id');
+
+ $comment_back_url = $this->getControllerPath('User','DiaryComment');
+ $comment_back_url = $comment_back_url . '&id=' . $target_community_id .'&diary_id=' .$diary_id ;
+
+ $delete_diary_comment_url = $this->getControllerPath('User','DeleteDiaryComment');
+ $delete_diary_comment_url = $delete_diary_comment_url . '&id=' .$target_community_id . '&diary_id=' . $diary_id .'&diary_comment_id=' .$diary_comment_id;
+
+ $request->setAttribute('delete_diary_comment_url', $delete_diary_comment_url);
+ $request->setAttribute('comment_back_url', $comment_back_url);
+ // ɽ¼¨
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_community_id = $request->getParameter('id');
+ $diary_id = $request->getParameter('diary_id');
+ $diary_comment_id = $request->getParameter('diary_comment_id');
+ //ºï½ü¥³¥á¥ó¥È¤Ï¡¢id¤òÇÛÎó¤Ç¼õ¤±ÅϤ¹
+ $diary_comment_id_array = array();
+ array_push($diary_comment_id_array,$diary_comment_id);
+ //¥Õ¥¡¥¤¥ë¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ $ret =ACSDiary::delete_diary_comment($diary_comment_id_array);
+ if (!$ret) {
+ echo "ERROR: Delete diary comment failed.";
+ }
+
+ //ɽ¼¨
+ $diary_change_url = $this->getControllerPath('User','DiaryComment');
+ $diary_change_url .= '&id=' . $target_community_id .'&diary_id=' .$diary_id ;
+ header("Location: $diary_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege (&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ËܿͤÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+
+ // ½ñ¹þ¤ßËܿͤÏOK
+ $diary_comment_row = ACSDiary::get_diary_comment_row($request->getParameter('diary_comment_id'));
+ if ($acs_user_info_row['user_community_id'] == $diary_comment_row['user_community_id']) {
+ return true;
+ }
+
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºï½ü
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class DeleteFolderAction extends BaseAction
+{
+ // ³Îǧ²èÌÌɽ¼¨
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ºï½üÂоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹ºï½üÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹ºï½üÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $user_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+ // set
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::SUCCESS;
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ //return $this->setError($controller, $request, $user, 'selected_folder', 'ºï½ü¤¹¤ë¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£');
+ return $this->setError($controller, $request, $user, 'selected_folder',
+ ACSMsg::get_msg('User', 'DeleteFolderAction.class.php' ,'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ /* ------------ */
+ /* ³Îǧ²èÌÌɽ¼¨ */
+ /* ------------ */
+ if ($request->getParameter('action_type') == 'confirm') {
+ return $this->getDefaultView();
+ }
+
+ /* -------- */
+ /* ºï½ü½èÍý */
+ /* -------- */
+ elseif ($request->getParameter('action_type') == 'delete') {
+ ACSDB::_do_query("BEGIN");
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $delete_folder_id_array = $request->getParameter('selected_folder');
+ if ($delete_folder_id_array) {
+ foreach ($delete_folder_id_array as $folder_id) {
+ // ºï½ü½èÍý
+ $_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($folder_id);
+ $ret = $user_folder_obj->delete_folder($_folder_obj);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Remove folder failed.";
+ exit;
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $delete_file_id_array = $request->getParameter('selected_file');
+ if ($delete_file_id_array) {
+ foreach ($delete_file_id_array as $file_id) {
+ // ºï½ü½èÍý
+ $_file_obj = $user_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $_file_obj->delete_file();
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Remove file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DeleteFriendsAction.class.php,v 1.4 2006/11/20 08:44:25 w-ota Exp $
+
+class DeleteFriendsAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ºï½ü¤¹¤ë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $delete_user_community_id = $request->ACSgetParameter('delete_user_community_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ºï½ü¤¹¤ë¥æ¡¼¥¶¾ðÊó
+ $delete_user_info_row = ACSUser::get_user_info_row_by_user_community_id($delete_user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('delete_user_info_row', $delete_user_info_row);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ $delete_user_community_id = $request->ACSgetParameter('delete_user_community_id');
+
+ $form = $request->ACSGetParameters();
+
+ // ¥Õ¥ì¥ó¥ººï½ü
+ ACSUser::delete_friends($user_community_id, $delete_user_community_id);
+
+ $friends_list_top_page_url = $this->getControllerPath('User', 'FriendsList') . '&id=' . $user_community_id;
+
+ // ACSDone
+ $done_obj = new ACSDone();
+ $done_obj->set_title(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php','M001'));
+ $done_obj->set_message(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php', 'M002'));
+ $done_obj->add_link(ACSMsg::get_msg('User', 'DeleteFriendsAction.class.php', 'M003'), $friends_list_top_page_url);
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DeleteFriendsGroupAction.class.php,v 1.4 2006/03/28 04:38:13 kuwayama Exp $
+
+class DeleteFriendsGroupAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $friends_group_community_id = $request->ACSgetParameter('community_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+ // »ØÄꤵ¤ì¤¿¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¾ðÊó
+ $friends_group_row = ACSCommunity::get_community_row($friends_group_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('friends_group_row', $friends_group_row);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $friends_group_community_id = $request->ACSgetParameter('community_id');
+
+ // ¹¹¿·
+ ACSUser::delete_friends_group($friends_group_community_id);
+
+ $friends_group_list_top_page_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $user_community_id;
+ header("Location: $friends_group_list_top_page_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸ ºï½ü
+ *
+ * @author nakau
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+class DeleteMessageAction extends BaseAction
+{
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_message')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_message',
+ ACSMsg::get_msg('User', 'DeleteMessageAction.class.php', 'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥á¥Ã¥»¡¼¥¸ID¤ò¼èÆÀ
+ $target_message_id = $request->getParameter('selected_message');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('target_message_id', $target_message_id);
+ $request->setAttribute('move_id', $request->getParameter('move_id'));
+
+ /* ------------ */
+ /* ³Îǧ²èÌÌɽ¼¨ */
+ /* ------------ */
+ if ($request->getParameter('action_type') == 'confirm') {
+ return View::SUCCESS;
+ }
+
+ /* -------- */
+ /* ºï½ü½èÍý */
+ /* -------- */
+ elseif ($request->getParameter('action_type') == 'delete') {
+ $move_id = $request->getParameter('move_id');
+ ACSDB::_do_query("BEGIN");
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $delete_message_id_array = $request->getParameter('selected_message');
+ if ($delete_message_id_array) {
+ if ($move_id == 2) {
+ foreach ($delete_message_id_array as $message_id) {
+ // ºï½ü½èÍý
+ $ret =ACSMessage::delete_send_message($message_id);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Delete message failed.";
+ exit;
+ }
+ }
+ } else {
+ foreach ($delete_message_id_array as $message_id) {
+ // ºï½ü½èÍý
+ $ret =ACSMessage::delete_receive_message($message_id);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Delete message failed.";
+ exit;
+ }
+ }
+
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $message_action = $this->getControllerPath('User', 'MessageBox');
+ $message_action .= '&id=' . $target_user_community_id;
+ if($move_id == 2){
+ $message_action .= '&move_id=2';
+ }
+
+ header("Location: $message_action");
+ }
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È */
+ $this->sendError($controller, $request, $user);
+
+ // ¥á¥Ã¥»¡¼¥¸É½¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $move_id = $request->getParameter('move_id');
+
+ $message_action = $this->getControllerPath('User', 'MessageBox');
+ $message_action .= '&id=' . $target_user_community_id;
+ if($move_id == 2){
+ $message_action .= '&move_id=2';
+ }
+ header("Location: $message_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ ºï½ü½èÍý¡¡¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹
+ * DeleteProfileImageAction.class.php
+ *
+ * @author $Author: y-yuki $
+ * @version ver1.0 $ 2006/02/16 $
+ * @import ACSFile.class.php
+ * @import ACSCommunityImageFileModel.class.php
+ */
+// $Id: DeleteProfileImageAction.class.php,v 1.7 2008/03/24 07:00:36 y-yuki Exp $
+
+
+ require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+ require_once(ACS_CLASS_DIR . 'ACSCommunityImageFileModel.class.php');
+
+class DeleteProfileImageAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // set parameter
+ $target_user_community_id = $request->getParameter('id');
+
+ $image_change_url = $this->getControllerPath('User','EditProfileImage');
+ $image_change_url .= '&id=' . $target_user_community_id;
+
+ $delete_image_url = $image_change_url;
+ $back_url = $image_change_url;
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $request->setAttribute('delete_image_url', $delete_image_url);
+ $request->setAttribute('back_url', $back_url);
+
+ // ɽ¼¨
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //ºï½ü½èÍý¤ò¹Ô¤¦
+ $target_user_community_id = $request->getParameter('id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $file_id = $request->getParameter('file_id');
+ $open_level_code = $request->getParameter('open_level_code');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+ //¥Õ¥¡¥¤¥ë¾ðÊó¥Æ¡¼¥Ö¥ë¤Î¥Ç¡¼¥¿ºï½ü
+ ACSDB::_do_query("BEGIN");
+
+ $ret = ACSCommunityImageFileModel::delete_community_image_with_open_level(
+ $file_obj, $open_level_code);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Delete image failed. :image_file";
+ } else {
+ $row = ACSCommunityImageFileModel::get_file_id_with_open_level($file_obj->get_owner_community_id());
+ if ($row == NULL ||
+ ($file_id != $row['file_id_ol05']
+ && $file_id != $row['file_id_ol02']
+ && $file_id != $row['file_id_ol01']
+ )
+ ) {
+ // ¥Õ¥¡¥¤¥ë¤´¤Èºï½ü
+ $ret = $file_obj->delete_file();
+ }
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Delete image failed. :image_file";
+ } else {
+ ACSDB::_do_query("COMMIT");
+ }
+ }
+ //ɽ¼¨
+ $image_change_url = $this->getControllerPath('User','EditProfileImage');
+ $image_change_url .= '&id=' . $target_user_community_id;
+ header("Location: $image_change_url");
+ return View::INPUT;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¡¡Action¥¯¥é¥¹
+ *
+ * DiaryCommentAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author w-ota @editor akitsu
+ * @since PHP 4.0
+ */
+// $Id: DiaryAction.class.php,v 1.13 2007/03/27 02:12:41 w-ota Exp $
+
+class DiaryAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ $year = $request->ACSgetParameter('year'); // ǯ
+ $month = $request->ACSgetParameter('month'); // ·î
+ $day = $request->ACSgetParameter('day'); // Æü
+
+ if (checkdate($month, $day, $year)) {
+ // ǯ·îÆü»ØÄê
+ $diary_row_array = ACSDiary::get_diary_row_array_by_year_month_day($user_community_id, $year, $month, $day);
+ } elseif (checkdate($month, 1, $year)) {
+ // ǯ·î»ØÄê
+ $diary_row_array = ACSDiary::get_diary_row_array_by_year_month($user_community_id, $year, $month);
+ unset($day);
+ } else {
+ // Á´¤Æ¤Î¥À¥¤¥¢¥ê¡¼
+ $diary_row_array = ACSDiary::get_diary_row_array($user_community_id);
+ unset($year);
+ unset($month);
+ unset($day);
+ }
+
+ // ¸ø³«ÈϰϤòºÇ½ªÅÐÏ¿¤ÈƱ¤¸¤â¤Î¤Çɽ¼¨¤·¤Æ¤ª¤¯
+ if($diary_row_array){
+ $last_open_level_code = $diary_row_array[0]['open_level_code'];
+ }
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ foreach ($diary_row_array as $index => $diary_row) {
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row_array[$index]['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+ }
+
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D21'));
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('diary_row_array', $diary_row_array);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $request->setAttribute('last_open_level_code', $last_open_level_code);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ //¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ $move_id = $request->getParameter('move_id');
+ if($move_id == 3){
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_id = $request->ACSGetParameter('id');
+
+ // ¸µ¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');//·ï̾¡§subject ÆâÍÆ¡§body ¸ø³«ÈÏ°Ï¡§open_level_code ²èÁü¡§new_file
+ $form['user_community_id'] = $acs_user_info_row['user_community_id']; // ÅÐÏ¿¼Ô
+
+ $user->setAttribute('new_form_obj',$form);
+ }
+
+ // GET¤Î½èÍý¤Ø
+ return $this->getDefaultView();
+ }
+
+ function getRequestMethods() {
+ return REQ_POST;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥«¥ì¥ó¥À¡¼ºîÀ®¡¡Action¥¯¥é¥¹
+ *
+ * DiaryCalendarAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: DiaryCalendarAction.class.php,v 1.6 2006/11/20 08:44:25 w-ota Exp $
+
+class DiaryCalendarAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ $top_page_url = $this->getControllerPath("User", 'Diary') . '&id=' .$user_community_id;
+
+ $year = $request->ACSgetParameter('year'); // ǯ
+ $month = $request->ACSgetParameter('month'); // ·î
+
+ if (!checkdate($month, 1, $year)) {
+ $date_array = getdate(); // ¸½ºß¤ÎÆüÉÕ¾ðÊó
+ $year = $date_array["year"];
+ $month = $date_array["mon"];
+ }
+
+ //ɽ¼¨·î($year/$month)¤Ë³ºÅö¤¹¤ë¥Ç¡¼¥¿¤ò¸¡º÷¤Ë¹Ô¤¯
+ $diary_row_array = ACSDiary::get_diary_row_array_by_year_month($user_community_id, $year, $month);
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ÎÄɲÃ
+ foreach ($diary_row_array as $index => $diary_row) {
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row_array[$index]['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+ }
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ foreach ($diary_row_array as $index => $diary_row) {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ if (count($diary_row['trusted_community_row_array'])
+ && $diary_row['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $diary_row_array[$index]['trusted_community_flag'] = 0;
+ } else {
+ $diary_row_array[$index]['trusted_community_flag'] = 1;
+ }
+ }
+ }
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $diary_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $diary_row_array);
+
+ //----------------------//
+ // ¥¯¥é¥¹¤ò½é´ü²½
+ // calendar(³«»ÏÍËÆü, Åö·î°Ê³°¤ÎÆüÉÕ¤òɽ¼¨¤¹¤ë¤«¤É¤¦¤«) ¤Î·Á¤Ç»ØÄꤷ¤Þ¤¹¡£
+ // ¢¨³«»ÏÍËÆü¡Ê0-ÆüÍË ¤«¤é 6-ÅÚÍË¡Ë¡¢Åö·î°Ê³°¤ÎÆüÉÕ¤òɽ¼¨¡Ê0-No, 1-Yes¡Ë
+ $calendar_obj = new calendar(0, 0); // ɽ¼¨·î°Ê³°¤ÎÆüÉÕ¤òɽ¼¨¤·¤Ê¤¤¤³¤È¤Ç¶¦Ä̤µ¤»¤ë
+
+ // ¥ê¥ó¥¯¤òÀßÄê
+ $calendar_obj->clear_link();
+ if($diary_row_array){
+ // ¥ê¥ó¥¯¤Î¤¢¤ë´Ö¡¢·«¤êÊÖ¤·
+ foreach ($diary_row_array as $index => $diary_row) {
+ if($diary_row){
+ $link_date = substr($diary_row['post_date'],8,2);
+ if(substr($link_date,0,1) == '0'){
+ $link_date = substr($link_date,1,1);
+ }
+ $calendar_obj->set_link($link_date, $top_page_url ."&year=$year&month=$month&day=$link_date", ACSMsg::get_msg('User', 'DiaryCalendarAction.class.php' ,'M001'));
+ }
+ }
+ }
+
+ // »ØÄê·î¤Î¥«¥ì¥ó¥À¡¼ÉÁ²è
+ // show_calendar(ǯ, ·î, Æü) ¤Î·Á¤Ç»ØÄꤷ¤Þ¤¹¡£
+ // ¢¨Æü¤Ï¾Êά²Äǽ¤Ç¤¹¡£»ØÄꤹ¤ë¤È¤½¤ÎÆü¤¬ÂÀ»ú¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£
+ $calendar_obj->set_str_url($top_page_url);
+ $new_calendar_html = $calendar_obj->show_calendar($year, $month); // ǯ¤È·î¤ò»ØÄꤷ¤Æ¥«¥ì¥ó¥À¡¼¤òɽ¼¨
+
+ $request->setAttribute('new_calendar_html', $new_calendar_html);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¡¡¥³¥á¥ó¥È¡¡Action¥¯¥é¥¹
+ *
+ * DiaryCommentAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author w-ota @editor akitsu
+ * @since PHP 4.0
+ */
+// $Id: DiaryCommentAction.class.php,v 1.17 2007/03/29 01:55:17 w-ota Exp $
+
+class DiaryCommentAction extends BaseAction
+{
+
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤÎdiary_id¤ò¼èÆÀ
+ $diary_id = $request->ACSgetParameter('diary_id');
+
+ // ¥À¥¤¥¢¥ê¡¼¿Æµ»ö¤Î¾ðÊó¤ò¼èÆÀ
+ $diary_row = ACSDiary::get_diary_row($diary_id);
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $user_community_id = $diary_row['user_community_id'];
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¸¢¸Â
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥È
+ $diary_comment_row_array = ACSDiary::get_diary_comment_row_array($diary_row['diary_id']);
+
+ // ¥À¥¤¥¢¥ê¡¼¥¢¥¯¥»¥¹ÍúÎòÅÐÏ¿
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSDiary::set_diary_access_history($acs_user_info_row['user_community_id'], $diary_id);
+ }
+
+ // ÂÀ×¾ðÊó¼èÆÀ
+ $footprint_url = $this->getControllerPath('User', 'DiaryComment')
+ . '&diary_id=' . $diary_row['diary_id'];
+ $where = "foot.contents_link_url = '" . $footprint_url . "'";
+ $where .= " AND foot.visitor_community_id = '" . $acs_user_info_row['user_community_id'] . "'";
+ $footprint_info = ACSUser::get_footprint_list($user_community_id, $where);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('diary_row', $diary_row);
+ $request->setAttribute('diary_comment_row_array', $diary_comment_row_array);
+ $request->setAttribute('footprint_info', $footprint_info);
+
+ return View::INPUT;
+ }
+
+ function execute() {
+
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¸ø³«ÈϰϾðÊó¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $diary_row = ACSDiary::get_diary_row($request->ACSgetParameter('diary_id'));
+ if (!$diary_row) {
+ return false;
+ }
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($diary_row['community_id']);
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æȽÄê
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $ret = ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $diary_row);
+
+ return $ret;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DiaryCommentHistoryAction.class.php,v 1.4 2008/04/24 16:00:00 y-yuki Exp $
+
+class DiaryCommentHistoryAction extends BaseAction
+{
+ function execute() {
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨¤Î¾ì¹ç: 1(true)
+ $inline_mode = $request->ACSgetParameter('inline_mode');
+ if ($inline_mode == null || $inline_mode == '') {
+ $inline_mode = $request->getAttribute("inline_mode");
+ }
+
+ // ¼èÆÀÈϰϤλØÄê
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ ($inline_mode ? 'NEW_INFO_TOP_TERM' : 'NEW_INFO_LIST_TERM'));
+ $request->setAttribute('get_days', $get_days);
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥³¥á¥ó¥È¤·¤¿¥À¥¤¥¢¥ê¡¼°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ if ($inline_mode) {
+ $commented_diary_row_array = ACSDiary::get_commented_diary_row_array($user_community_id, $get_days, true);
+ } else {
+ $commented_diary_row_array = ACSDiary::get_commented_diary_row_array($user_community_id, $get_days);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('commented_diary_row_array', $commented_diary_row_array);
+
+ if ($inline_mode) {
+ return View::INPUT;
+ } else {
+ return View::SUCCESS;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * Æüµ¡¡ÅÐÏ¿¡¦É½¼¨µ¡Ç½¡¡action¥¯¥é¥¹
+ * Æüµ¥³¥á¥ó¥È¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿½èÍý
+ * @package acs/webapp/modules/User/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.6 $ $Date: 2006/03/02
+ */
+// $Id: DiaryCommentPreAction.class.php,v 1.6 2006/11/20 08:44:25 w-ota Exp $
+
+
+class DiaryCommentPreAction extends BaseAction
+{
+ //field
+ var $form;
+
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_community_id = $acs_user_info_row['user_community_id'];
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_id = $request->getParameter('user_id');
+ // Diary¾ðÊó
+ $diary_row_array = $request->getAttribute('diary_row_array');
+
+ // set
+ $request->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('diary_row_array', $diary_row_array);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ¥æ¡¼¥¶¡¼¾ðÊó
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ /* ÆþÎϲèÌ̤è¤ê */
+ if($move_id==1){
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form['body'] = $request->getParameter('body'); //ÆâÍÆ¡§body
+ $form['user_community_id'] = $acs_user_info_row['user_community_id'];
+
+ $user->setAttribute('new_form_obj',$form);
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($form['user_community_id']);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ //¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ return View::SUCCESS;
+
+ /* ÅÐÏ¿³ÎÄê¥Ü¥¿¥ó¡Ö¤Ï¤¤¡×¤è¤ê */
+ } else if($move_id==2) {
+ $user_id = $request->getParameter('id');
+ // ÂоݤÎdiary_id¤ò¼èÆÀ
+ $diary_id = $request->getParameter('diary_id');
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');
+ $form['diary_id'] = $diary_id;
+ //¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ // DB¤Ø¤Î½ñ¤¹þ¤ßÅù
+ ACSDB::_do_query("BEGIN");
+ //DiaryComment¥Æ¡¼¥Ö¥ë¾ðÊó
+ $ret = ACSDiary::set_diary_comment($form);
+ if(!$ret){
+ ACSDB::_do_query("ROLLBACK");
+ echo "ERROR: Insert dairy comment failed.";
+ return;
+ }
+ ACSDB::_do_query("COMMIT");
+ // ½ñ¤¹þ¤ß¸å¡¢GET¤Î½èÍý¤Ø
+ $diary_comment_top_page_url = $this->getControllerPath('User', 'DiaryComment') . '&id=' . $acs_user_info_row['user_community_id'] . '&diary_id=' . $diary_id .'&move_id=4';
+ header("Location: $diary_comment_top_page_url");
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $move_id = $request->getParameter('move_id');
+
+ // ÆþÎϲèÌ̤«¤é¤Î¾ì¹ç¡¢ÆþÎÏ¥Á¥§¥Ã¥¯
+ if ($move_id == 1){
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('User', 'DiaryCommentPreAction.class.php', 'M001'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function getCredential() {
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege (&$controller, &$request, &$user) {
+
+ // ¸ø³«ÈϰϾðÊó¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($request->getParameter('id'));
+ $diary_row = ACSDiary::get_diary_row($request->ACSgetParameter('diary_id'));
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æȽÄê
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $ret = ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $diary_row);
+
+ return $ret;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * Diary¼Ì¿¿É½¼¨
+ *
+ * @author akitsu
+ * @version $Revision: 1.2 $ $Date: 2007/03/28 02:51:45 $
+ */
+
+class DiaryImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $diary_file_id = $request->getParameter('id');
+ $view_mode = $request->getParameter('mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $is_permitted = false;
+
+ /* ¥¢¥¯¥»¥¹¸¢¥Á¥§¥Ã¥¯ */
+ // ±ÜÍ÷²Äǽ¤«¥Á¥§¥Ã¥¯¤¹¤ë
+ // ºï½ü¥Õ¥é¥°¡¢Á´ÂΤθø³«ÈϰϤò¥Á¥§¥Ã¥¯
+
+ /* ¼Ì¿¿É½¼¨ */
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $image_file_id = $diary_file_id;
+ if ($image_file_id) {
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ }
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege (&$controller, &$request, &$user) {
+
+ // ¸ø³«ÈϰϾðÊó¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $diary_file_row = ACSDiaryFile::get_diary_file_row_by_file_id($request->ACSgetParameter('id'));
+ $diary_row = ACSDiary::get_diary_row($diary_file_row['diary_id']);
+ if (!$diary_row) {
+ return false;
+ }
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($diary_row['community_id']);
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æȽÄê
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $ret = ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $diary_row);
+
+ return $ret;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * Æüµ¡¡ÅÐÏ¿¡¦É½¼¨µ¡Ç½¡¡action¥¯¥é¥¹
+ * Æüµ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿½èÍý
+ * @package acs/webapp/modules/User/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.8 $ $Date: 2006/03/01
+ */
+// $Id: DiaryPreAction.class.php,v 1.8 2006/12/08 05:06:41 w-ota Exp $
+
+
+class DiaryPreAction extends BaseAction
+{
+ //field
+ var $form;
+
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_community_id = $request->getParameter('id');
+ // Diary¾ðÊó
+ $diary_row_array = $request->getAttribute('diary_row_array');
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D21'));
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+
+ // set
+ $request->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('diary_row_array', $diary_row_array);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ //return VIEW_CONFIRM;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D21'));
+ // ¥æ¡¼¥¶¡¼¾ðÊó
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_community_id = $request->getParameter('id');
+
+ /* ÆþÎϲèÌ̤è¤ê */
+ if($move_id==1){
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form['subject'] = $request->getParameter('subject');//·ï̾¡§subject
+ $form['body'] = $request->getParameter('body'); //ÆâÍÆ¡§body
+ $form['open_level_code'] = $request->getParameter('open_level_code'); //¸ø³«ÈÏ°Ï¥³¡¼¥É¡§open_level_code
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if($open_level_master_row['open_level_code'] == $form['open_level_code']){
+ $form['open_level_name'] = htmlspecialchars($open_level_master_row['open_level_name']) ;//¸ø³«ÈÏ°Ïɽ¼¨Ì¾¡§open_level_name
+ }
+ }
+ $form['trusted_community_flag'] = $request->getParameter('trusted_community_flag'); //¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤ò»ØÄꤷ¤¿¾ì¹ç
+ $form['trusted_community_id_array'] = $request->getParameter('trusted_community_id_array'); //ÁªÂò¤·¤¿¥°¥ë¡¼¥×·²
+
+ $form['new_file'] = $request->getParameter('new_file'); //²èÁü¡§new_file
+ //¥Õ¥¡¥¤¥ë¾ðÊó¤Î¤¢¤ë¤Ê¤·¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤¯
+ if (!ini_get('mbstring.encoding_translation')) {
+ $form['file_name'] = mb_convert_encoding($_FILES['new_file']['name'], mb_internal_encoding(), mb_http_output());
+ } else {
+ $form['file_name'] = $_FILES['new_file']['name'];
+ }
+ if($form['file_name'] != ''){
+ /* ¥Ç¥£¥ì¥¯¥È¥ê¸ºß¥Á¥§¥Ã¥¯ */
+ // ¤Ê¤¤¾ì¹ç¤ÏºîÀ®¤¹¤ë
+ $to_dir = ACS_TEMPORARY_FILE_DIR;
+ if(!file_exists($to_dir)) {mkdir($to_dir); chmod($to_dir, 0777);}
+ //¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì¹ç¡¢²¾ÃÖ¤¾ì½ê¤òÀßÄꤹ¤ë
+ $_FILES['new_file']['upload_tmp_dir'] = ACS_TEMPORARY_FILE_DIR;
+ //²¾ÃÖ¤¤Î¥Õ¥¡¥¤¥ë̾¤òÀßÄꤹ¤ë
+ $type_name = session_id();
+ $upload = $_FILES['new_file']['upload_tmp_dir'];
+ $upload .= $type_name;
+ if ( !move_uploaded_file( $_FILES['new_file']['tmp_name'], $upload ) ) {
+ echo "Read file failed.\n";
+ }
+ $_FILES['new_file']['tmp_name'] = $upload;
+ $form['file_obj'] = $_FILES['new_file'];
+ $user->setAttribute('new_file_info',$upload);
+ $user->setAttribute('new_file_obj',$_FILES['new_file']);
+ }
+
+ $form['user_community_id'] = $user_community_id;
+ $user->setAttribute('new_form_obj',$form);
+
+ //¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ return View::SUCCESS;
+
+ /* ÅÐÏ¿³ÎÄê¥Ü¥¿¥ó¡Ö¤Ï¤¤¡×¤è¤ê */
+ } else if($move_id==2) {
+ $user_community_id = $request->getParameter('id');
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');
+ $new_file_obj = $form['file_obj'];
+
+ // ¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ // DB¤Ø¤Î½ñ¤¹þ¤ßÅù
+ ACSDB::_do_query("BEGIN");
+ if($form['file_name'] != ""){ //¥Õ¥¡¥¤¥ë¾ðÊ󤬤¢¤Ã¤¿¾ì¹ç
+ //1.¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ(¿·µ¬)
+ $file_obj = ACSFile::get_upload_file_info_instance($user->getAttribute('new_file_obj'),$user_community_id,$form['user_community_id']);
+ if($file_obj){
+ //form¾ðÊó¤ØÅÐÏ¿
+ $form['new_file'] = $file_obj;
+ }else{
+ echo "Create file failed.";
+ return;
+ }
+ }
+ //2.Diary¥Æ¡¼¥Ö¥ë¾ðÊó
+ $ret = ACSDiary::set_Diary($form);
+ if($ret){
+ ACSDB::_do_query("COMMIT");
+ }else{
+ ACSDB::_do_query("ROLLBACK");
+ }
+
+ // ½ñ¤¹þ¤ß¸å¡¢GET¤Î½èÍý¤Ø
+ $diary_top_page_url = $this->getControllerPath('User', 'Diary') . '&id=' . $user_community_id;
+ header("Location: $diary_top_page_url");
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $move_id = $request->getParameter('move_id');
+
+ // ÆþÎϲèÌ̤«¤é¤Î¾ì¹ç¤Î¤ß¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤ò¤¹¤ë
+ if ($move_id == 1) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('User', 'DiaryPreAction.class.php', 'M001'));
+ parent::regValidateName($validatorManager,
+ "body",
+ true,
+ ACSMsg::get_msg('User', 'DiaryPreAction.class.php', 'M002'));
+ parent::regValidateName($validatorManager,
+ "open_level_code",
+ true,
+ ACSMsg::get_msg('User', 'DiaryPreAction.class.php', 'M003'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->execute();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥ì¥Ó¥å¡¼¼Ì¿¿É½¼¨
+ *
+ * @author akitsu
+ * @version $Revision: 1.2 $ $Date: 2006/11/20 08:44:25 $
+ */
+
+class DiaryPreImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $mime_type = $request->getParameter('type');
+ $new_file_info = $request->getParameter('new_file_info');
+
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ if (preg_match('/image/', $mime_type)) {
+ $action = 'inline';//¥Ö¥é¥¦¥¶Æâɽ¼¨
+ mb_http_output('pass'); // output_buffering¤ò̵¸ú¤Ë¤¹¤ë
+ header("Content-disposition: $action; filename=\$file_name\"");
+ header("Content-type: $content_type");
+ // ¥Õ¥¡¥¤¥ë¤òÆɤ߽Ф¹
+ readfile($new_file_info);
+ } else {
+ echo ACSMsg::get_msg('User', 'DiaryPreImageAction.class.php' ,'M001');
+ return $back_url;
+ }
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼RSS Action¥¯¥é¥¹
+ */
+// $Id: DiaryRSSAction.class.php,v 1.1 2006/12/13 09:51:46 w-ota Exp $
+
+class DiaryRSSAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
+
+ // ¼èÆÀ´ü´Ö
+ $term = intval($request->ACSgetParameter('term'));
+ if (!$term) {
+ // ¥·¥¹¥Æ¥àÀßÄê: ¥Þ¥¤¥Ú¡¼¥¸: ¥À¥¤¥¢¥ê¡¼RSS¼èÆÀ´ü´Ö
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'DIARY_RSS_TERM');
+ }
+
+ // ºÇ¿·¤Î¥À¥¤¥¢¥ê¡¼RSS
+ $diary_row_array = ACSDiary::get_new_diary_rss_row_array($user_community_id, $term);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('diary_row_array', $diary_row_array);
+ $request->setAttribute('term', $term);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+ *
+ * @author $Author: w-ota $
+ * @version $Revision: 1.5 $ $Date: 2006/12/18 07:42:15 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class DownloadFileAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($request->getParameter('id'));
+ $target_user_community_id = $request->getParameter('id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $view_mode = $request->getParameter('mode');
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É½èÍý
+ $target_file_id = $request->getParameter('file_id');
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤ÏËܿͰʳ°¥¢¥¯¥»¥¹ÉÔ²Ä
+ $privilege_array = $this->getCredential();
+ //$privilege_array = $user->getPrivileges();
+ if ($folder_obj->get_is_root_folder() && !in_array('USER_PAGE_OWNER', $privilege_array)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎòÅÐÏ¿
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSFile::set_file_access_history($acs_user_info_row['user_community_id'], $target_file_id);
+ }
+
+ if ($view_mode == 'thumb') {
+ $file_obj = ACSFile::get_file_info_instance($target_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ } else {
+ $folder_obj->download_file($target_file_id);
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+// ¥æ¡¼¥¶¤ÎÍúÎò¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É
+// $Id: DownloadHistoryFileAction.class.php,v 1.1 2006/05/18 05:18:20 w-ota Exp $
+
+class DownloadHistoryFileAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($request->getParameter('id'));
+ $target_user_community_id = $request->getParameter('id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ $target_file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+ $view_mode = $request->getParameter('mode');
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É½èÍý
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤ÏËܿͰʳ°¥¢¥¯¥»¥¹ÉÔ²Ä
+ $privilege_array = $this->getCredential();
+
+ if ($folder_obj->get_is_root_folder() && !in_array('USER_PAGE_OWNER', $privilege_array)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $file_obj = ACSFile::get_file_info_instance($target_file_id);
+ if ($view_mode == 'thumb') {
+ $ret = $file_obj->view_image($file_history_id, $view_mode);
+ } else {
+ $file_obj->download_history_file($file_history_id, $view_mode);
+ }
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ * $Id: EditFileDetailAction.class.php,v 1.6 2006/06/16 07:52:34 w-ota Exp $
+ */
+
+class EditFileDetailAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊó
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_id);
+
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('file_obj', $file_obj);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($form['file_category_code']);
+ $file_contents_form_array = array();
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_contents_form = array(
+ 'file_id' => $file_id,
+ 'file_contents_type_code' => $file_contents_type_list_row['file_contents_type_code'],
+ 'file_contents_value' => $form['file_contents_array'][$file_contents_type_list_row['file_contents_type_code']]
+ );
+ array_push($file_contents_form_array, $file_contents_form);
+ }
+
+ $ret = ACSFileDetailInfo::set_file_detail_info($file_id, $form['file_category_code'], $file_contents_form_array);
+
+ if ($ret) {
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail');
+ $file_detail_url .= '&id=' . $target_user_community_id;
+ $file_detail_url .= '&folder_id=' . $target_user_community_folder_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL¤Ø
+ header("Location: $file_detail_url");
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºîÀ®¡¦Êѹ¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.8 $ $Date: 2007/03/01 09:01:42 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class EditFolderAction extends BaseAction
+{
+ /**
+ * ÆþÎϲèÌÌɽ¼¨
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+
+ // ºîÀ®¡¦¹¹¿·¤ÎȽÊÌ
+ if ($request->getParameter('edit_folder_id')) {
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+ $view_mode = 'update';
+ } else {
+ $view_mode = 'create';
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('view_mode', $view_mode);
+ $request->setAttribute('edit_folder_id', $edit_folder_id);
+
+
+ // ¥¨¥é¡¼¤Ç¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ï¡¢ÆþÎÏÃͤò¼èÆÀ
+ // hasErrors ´Ø¿ôºîÀ®¡©
+ if ($this->hasErrors($controller, $request, $user)) {
+
+ // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃͤò row ¤Ë¥»¥Ã¥È
+ $default_data_row['folder_id'] = $request->getParameter('folder_id');
+ $default_data_row['folder_name'] = $request->getParameter('folder_name');
+ $default_data_row['comment'] = $request->getParameter('comment');
+ $default_data_row['open_level_code'] = $request->getParameter('open_level_code');
+ $default_data_row['trusted_community_flag'] = $request->getParameter('trusted_community_flag');
+ $default_data_row['trusted_community_id_array'] = $request->getParameter('trusted_community');
+
+ // set
+ $request->setAttribute('default_data_row', $default_data_row);
+ return View::INPUT;
+ }
+
+ // ¹¹¿·¤Î¾ì¹ç¤Ï¡¢¹¹¿·ÂоݤΥե©¥ë¥ÀID¤ò¼èÆÀ
+ if ($view_mode == 'update') {
+ // ½é´üɽ¼¨¤Î¾ì¹ç¡¢¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ if (!$this->hasErrors($controller, $request, $user)) {
+
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ $update_user_folder_obj = new ACSUserFolder($request->getParameter('id'),
+ $acs_user_info_row,
+ $edit_folder_id);
+ $update_folder_obj = $update_user_folder_obj->get_folder_obj();
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£ID¼èÆÀ
+ $trusted_community_id_array = array();
+ foreach($update_folder_obj->get_trusted_community_row_array() as $trusted_community_row) {
+ array_push($trusted_community_id_array, $trusted_community_row['community_id']);
+ }
+
+ // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃͤò row ¤Ë¥»¥Ã¥È
+ $default_data_row['folder_id'] = $update_folder_obj->get_folder_id();
+ $default_data_row['folder_name'] = $update_folder_obj->get_folder_name();
+ $default_data_row['comment'] = $update_folder_obj->get_comment();
+ $default_data_row['open_level_code'] = $update_folder_obj->get_open_level_code();
+ $default_data_row['trusted_community_flag'] = ""; // view ¤ÇÃͤòȽÃǤ¹¤ë
+ $default_data_row['trusted_community_id_array'] = $trusted_community_id_array;
+ $request->setAttribute('default_data_row', $default_data_row);
+ }
+
+ // set
+ $request->setAttribute('input_data_row', $input_data_row);
+ return View::INPUT;
+ } elseif ($view_mode == 'create') {
+ return View::INPUT;
+ }
+ }
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ // ½èÍý¤Î¼ïÎà
+ $action_type = $request->getParameter('action_type');
+ // get
+ $form = $request->ACSGetParameters();
+
+
+ // Validator¤Ç½ÐÍè¤Ê¤¤¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ //
+ if (mb_strlen($form['folder_name']) > 100) {
+ $this->setError($controller, $request, $user, 'folder_name', ACSMsg::get_msg('User', 'EditFolderAction.class.php', 'M001'));
+ return $this->handleError(&$controller, &$request, &$user);
+ }
+
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ /* ----------------- */
+ /* ÆþÎϲèÌÌɽ¼¨½èÍý */
+ /* ----------------- */
+ // action_type (create or update) ¤¬Â¸ºß¤·¡¢¥¨¥é¡¼¤ÇÁ«°Ü¤·¤Æ¤¤Æ¤¤¤Ê¤¤¾ì¹ç
+ if (!$action_type || $this->hasErrors($controller, $request, $user)) {
+ return $this->getDefaultView();
+ }
+
+
+ // ÁªÂò¤µ¤ì¤¿¸ø³«ÈϰϤÎȽÊ̤Τ¿¤á¤Î¥Ç¡¼¥¿¼èÆÀ
+ $open_level_master_row_array = ACSAccessControl::get_all_open_level_master_row_array();
+
+ /* ---------- */
+ /* ÆþÎÏÃͼèÆÀ */
+ /* ---------- */
+ $edit_folder_id = $request->getParameter('edit_folder_id');
+
+ $input_folder_row = array();
+ $input_folder_row['folder_name'] = $request->getParameter('folder_name');
+ $input_folder_row['comment'] = $request->getParameter('comment');
+ $input_folder_row['open_level_code'] = $request->getParameter('open_level_code');
+
+ $open_level_row = $open_level_master_row_array[$input_folder_row['open_level_code']];
+ $open_level_name = $open_level_row['open_level_name'];
+
+
+ if ($open_level_name == ACSMsg::get_mst('open_level_master','D05')) {
+ if ($request->getParameter('trusted_community_flag') == '0') {
+ // Á´¤Æ¤Îͧ¿Í¤ò¥»¥Ã¥È
+ $friends_community_id = ACSUser::get_friends_community_id($target_user_community_id);
+ $input_folder_row['trusted_community_id_array'] = array($friends_community_id);
+ } else {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¾ì¹ç¤Ï¡¢»ØÄꤵ¤ì¤Æ¤¤¤ë¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×ID¤ò¥»¥Ã¥È
+ $input_folder_row['trusted_community_id_array'] = $request->getParameter('trusted_community');
+ }
+ }
+
+ /* ---------------------- */
+ /* ¥Õ¥©¥ë¥À̾½ÅÊ£¥Á¥§¥Ã¥¯ */
+ /* ---------------------- */
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀÇÛ²¼¤Î¥Õ¥©¥ë¥À¤ò¼èÆÀ
+ $sub_folder_obj_array = $user_folder_obj->folder_obj->get_folder_obj_array();
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ if ($sub_folder_obj->get_folder_id() == $edit_folder_id) {
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¤Ï¥Á¥§¥Ã¥¯ÂоݤȤ·¤Ê¤¤
+ continue;
+ }
+
+ if ($sub_folder_obj->get_folder_name() == $input_folder_row['folder_name']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥È¤·¡¢½èÍý¤òÃæÃǤ¹¤ë
+ return $this->setError($controller, $request, $user, 'folder_name', ACSMsg::get_msg('User', 'EditFolderAction.class.php' ,'M003').'[' . $input_folder_row['folder_name'] . ']');
+ }
+ }
+
+ ACSDB::_do_query("BEGIN");
+ /* -------- */
+ /* ÅÐÏ¿½èÍý */
+ /* -------- */
+ if ($action_type == 'create') {
+ $ret = $user_folder_obj->folder_obj->create_folder($input_folder_row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: ¥Õ¥©¥ë¥À¤òºîÀ®¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£";
+ exit;
+ }
+
+ } elseif ($action_type == 'update') {
+ /* -------- */
+ /* ¹¹¿·½èÍý */
+ /* -------- */
+ // ¹¹¿·ÂоݤΥե©¥ë¥À¾ðÊó¼èÆÀ
+ $update_user_folder_obj = new ACSUserFolder($request->getParameter('id'),
+ $acs_user_info_row,
+ $edit_folder_id);
+
+ $ret = $update_user_folder_obj->folder_obj->update_folder($input_folder_row);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: ¥Õ¥©¥ë¥À¾ðÊó¤òÊѹ¹¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£";
+ exit;
+ }
+ }
+ ACSDB::_do_query("COMMIT;");
+
+ /* -------------------- */
+ /* ¥Õ¥©¥ë¥À°ìÍ÷²èÌÌɽ¼¨ */
+ /* -------------------- */
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $folder_action = $this->getControllerPath('User',
+ 'Folder');
+ $folder_action .= '&id=' . $target_user_info_row['user_community_id'];
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ // ºîÀ®¡¦Êѹ¹½èÍý¤Î¾ì¹ç¤Î¤ß¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤ò¤¹¤ë
+ if ($request->getParameter('action_type')) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "folder_name",
+ true,
+ ACSMsg::get_msg('User', 'EditFolderAction.class.php', 'M002'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: EditFriendsGroupMemberAction.class.php,v 1.6 2006/11/20 08:44:25 w-ota Exp $
+
+class EditFriendsGroupMemberAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $friends_group_community_id = $request->ACSgetParameter('community_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷
+ $friends_row_array = ACSUser::get_friends_row_array($user_community_id);
+ // »ØÄꤵ¤ì¤¿¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¾ðÊó
+ $friends_group_row = ACSCommunity::get_community_row($friends_group_community_id);
+ // »ØÄꤵ¤ì¤¿¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð°ìÍ÷
+ $friends_group_member_row_array = ACSCommunity::get_community_member_user_info_row_array($friends_group_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('friends_row_array', $friends_row_array);
+ $request->setAttribute('friends_group_row', $friends_group_row);
+ $request->setAttribute('friends_group_member_row_array', $friends_group_member_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $friends_group_community_id = $request->ACSgetParameter('community_id');
+
+ $form = $request->ACSGetParameters();
+ $form['user_community_id'] = $user_community_id;
+
+ // ¹¹¿·
+ ACSUser::update_friends_group_member($form);
+
+ $friends_group_list_top_page_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $user_community_id;
+ header("Location: $friends_group_list_top_page_url");
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "community_name",
+ true,
+ ACSMsg::get_msg('User', 'EditFriendsGroupMemberAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditProfileAction.class.php,v 2.0 2008/04/24 16:00:00 y-yuki Exp $
+
+class EditProfileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ if ($acs_user_info_row['is_acs_user'] && $acs_user_info_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ // ¥Þ¥¤¥Ú¡¼¥¸Á´ÂΤ¬Èó¸ø³«¤Î¥æ¡¼¥¶ //
+
+ // Èó¸ø³«¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£¤Î¾ðÊó¤ò¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_profile_row($acs_user_info_row['user_community_id'], 'include_private');
+
+ } elseif (!$acs_user_info_row['is_acs_user'] && $acs_user_info_row['is_ldap_user']) {
+ // ¥·¥¹¥Æ¥à¤Ë̤ÅÐÏ¿¤ÎLDAP¥æ¡¼¥¶ //
+
+ $ldap_user_info_row = ACSLDAP::get_ldap_user_info_row($acs_user_info_row['user_id']);
+
+ $target_user_info_row['contents_row_array'] = array();
+
+ // ¥Ë¥Ã¥¯¥Í¡¼¥à¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò»á̾¤È¤¹¤ë
+ $target_user_info_row['community_name'] = $ldap_user_info_row['user_name'];
+
+ $target_user_info_row['contents_row_array']['user_name'] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D01'));
+ $target_user_info_row['contents_row_array']['user_name']['contents_value'] = $ldap_user_info_row['user_name'];
+ $target_user_info_row['contents_row_array']['mail_addr'] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D02'));
+ $target_user_info_row['contents_row_array']['mail_addr']['contents_value'] = $ldap_user_info_row['mail_addr'];
+ $target_user_info_row['contents_row_array']['belonging'] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D03'));
+ $target_user_info_row['contents_row_array']['belonging']['contents_value'] = $ldap_user_info_row['belonging'];
+ $target_user_info_row['contents_row_array']['friends_list'] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D11'));
+ $target_user_info_row['contents_row_array']['mail_lang'] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D51'));
+
+ // ¿·µ¬LDAP¥æ¡¼¥¶¤Ç¤¢¤ë
+ $is_new_ldap_user = true;
+
+ } else {
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ¥×¥í¥Õ¥£¡¼¥ë
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('is_new_ldap_user', $is_new_ldap_user);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ $form = $request->ACSGetParameters();
+
+ if ($acs_user_info_row['is_acs_user']) {
+ // »á̾¤ÏÊѹ¹¤·¤Ê¤¤
+ $form['user_name'] = $acs_user_info_row['user_name'];
+
+ } else {
+ $form['user_id'] = $acs_user_info_row['user_id'];
+ // LDAP¤«¤é»á̾¼èÆÀ
+ $ldap_user_info_row = ACSLDAP::get_ldap_user_info_row($acs_user_info_row['user_id']);
+ $form['user_name'] = $ldap_user_info_row['user_name'];
+ }
+
+ // INSERT
+ $ret = ACSUser::set_user_profile($acs_user_info_row, $form);
+
+ // ¸À¸ì¤ÎÀÚÂØ
+ ACSMsg::set_lang($form['mail_lang']);
+ ACSMsg::set_lang_cookie($form['mail_lang']);
+
+ if ($ret) {
+ // ½ñ¤¹þ¤ß¸å¡¢GET¤Î½èÍý¤Ø
+ header("Location: ./");
+ } else {
+ exit;
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "mail_addr",
+ true,
+ ACSMsg::get_msg('User', 'EditProfileAction.class.php', 'M001'));
+ parent::regValidateName($validatorManager,
+ "community_name",
+ true,
+ ACSMsg::get_msg('User', 'EditProfileAction.class.php', 'M002'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ÆþÎÏÃͤò set
+ $form = $request->ACSGetParameters();
+ $request->setAttribute('form', $form);
+
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿Êѹ¹²èÌÌ Action¥¯¥é¥¹
+ * @package acs/webapp/modules/User/action
+ * @author akitsu
+ * @since PHP 4.0
+ * @version ver1.1 $Date: 2008/03/24 07:00:36 $
+ */
+
+class EditProfileImageAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ /* ¥¨¥é¡¼¤ò¼èÆÀ */
+ //$error_row = $user->getAttribute('error_row');
+ //$user->removeAttribute('error_row');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ¥×¥í¥Õ¥£¡¼¥ë¾ðÊó¤ò¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
+
+ // ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ $open_level_code_row = array('05', '02', '01');
+
+ //²èÁü¤¬¿·µ¬ÅÐÏ¿¤«¹¹¿·¤«¤òȽÄꤹ¤ë true:¿·µ¬ false:¹¹¿·
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¤Î¸ºß³Îǧ
+
+ // ¥é¥Ù¥ë
+ for ($i = 0; $i < count($open_level_code_row); $i++) {
+ //
+ $image_file_id = $target_user_info_row['file_id_ol' . $open_level_code_row[$i]];
+ if ($image_file_id) {
+ $image_new_add['file_id_ol' . $open_level_code_row[$i]] = false;
+ } else {
+ $image_new_add['file_id_ol' . $open_level_code_row[$i]] = true;
+ }
+ }
+
+ // set
+ //user_community_id ¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('user_community_id', $user_community_id);
+ //target_user_info_row¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ //²èÁü¤¬¿·µ¬ÅÐÏ¿¤«¹¹¿·¤«¤Îimage_new_add¤òview¥¯¥é¥¹¤ØÄÌÃΤ¹¤ë
+ $request->setAttribute('image_new_add',$image_new_add);
+ $request->setAttribute('open_level_code_row', $open_level_code_row);
+// $request->setAttribute('image_file_label', $image_file_label);
+
+ return View::INPUT;
+ }
+
+ function getRequestMethods() {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ¼«Ê¬¤Î¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ if ($user_community_id == $acs_user_info_row['user_community_id']) {
+ // ¼«¥æ¡¼¥¶¤Î¤ßÊѹ¹OK
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸²èÌ̸ÂÄê¤Ç¤Î¼Ì¿¿É½¼¨
+ *
+ * @author y-yuki
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+class EditProfileImageDispAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_community_id = $request->getParameter('id');
+ $view_mode = $request->getParameter('mode');
+ $open_level_code = $request->getParameter('open_level_code');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = ACSUser::get_user_profile_row($target_user_community_id);
+
+ $is_permitted = false;
+
+ /* ¼Ì¿¿É½¼¨ */
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $image_file_id = $target_user_info_row['file_id_ol'. $open_level_code];
+ if ($image_file_id) {
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ } else {
+ $image_url = ACSUser::get_default_image_url($view_mode);
+ header("Location: $image_url");
+ }
+
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ * $Id: FileDetailAction.class.php,v 1.8 2007/03/29 01:55:17 w-ota Exp $
+ */
+
+class FileDetailAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ
+ $file_id = $request->getParameter('file_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤ÏËܿͰʳ°¥¢¥¯¥»¥¹ÉÔ²Ä
+ $privilege_array = $this->getCredential();
+ //if ($folder_obj->get_is_root_folder() && !in_array('USER_PAGE_OWNER', $privilege_array)) {
+ if ($folder_obj->get_is_root_folder() && !$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤Î¾ÜºÙ¾ðÊó
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_id);
+
+ // ¥Õ¥¡¥¤¥ë¤ÎÍúÎò¾ðÊó
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤´¤È¤Î¥³¥á¥ó¥È
+ foreach ($file_history_row_array as $index => $file_history_row) {
+ $file_history_row_array[$index]['file_history_comment_row_array'] = ACSFileHistoryComment::get_file_history_comment_row_array($file_history_row['file_history_id']);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹ÍúÎòÅÐÏ¿
+ if ($acs_user_info_row['is_acs_user']) {
+ ACSFile::set_file_access_history($acs_user_info_row['user_community_id'], $file_id);
+ }
+
+ // ÂÀ×¾ðÊó¼èÆÀ
+ $footprint_url = $this->getControllerPath('User', 'FileDetail')
+ . "&id=" . $target_user_community_id
+ . "&file_id=" . $file_obj->get_file_id()
+ . "&folder_id=" . $user_folder_obj->folder_obj->get_folder_id();
+ $where = "foot.contents_link_url = '" . $footprint_url . "'";
+ $where .= " AND foot.visitor_community_id = '" . $acs_user_info_row['user_community_id'] . "'";
+ $footprint_info = ACSUser::get_footprint_list($target_user_community_id, $where);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('file_obj', $file_obj);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $request->setAttribute('file_history_row_array', $file_history_row_array);
+ $request->setAttribute('footprint_info', $footprint_info);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FileHistoryCommentAction.class.php,v 1.5 2006/12/08 05:06:42 w-ota Exp $
+
+class FileHistoryCommentAction extends BaseAction
+{
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+
+ // form
+ $form = $request->ACSGetParameters();
+
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥Àľ²¼¤Î¥Õ¥¡¥¤¥ë¤ÏËܿͰʳ°¥¢¥¯¥»¥¹ÉÔ²Ä
+ $privilege_array = $this->getCredential();
+ if ($folder_obj->get_is_root_folder() && !in_array('USER_PAGE_OWNER', $privilege_array)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ }
+
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥È¤òÅÐÏ¿¤¹¤ë
+ if ($form['comment'] != '') {
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤¬1·ï¤âÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï"ºîÀ®"¤òÅÐÏ¿¤¹¤ë
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ if (count($file_history_row_array) == 0) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_id = ACSFileHistory::set_file_history($file_info_row, $file_info_row['entry_user_community_id'], '', ACSMsg::get_mst('file_history_operation_master','D0101'));
+ }
+
+ $ret = ACSFileHistoryComment::set_file_history_comment($file_history_id, $acs_user_info_row['user_community_id'], $form['comment']);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail');
+ $file_detail_url .= '&id=' . $target_user_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $file_detail_url");
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "comment",
+ true,
+ ACSMsg::get_msg('User', 'FileHistoryCommentAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ // °ÜÆ°°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('User', 'FileDetail');
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥Àɽ¼¨
+ *
+ * @author $Author: w-ota $
+ * @version $Revision: 1.10 $ $Date: 2006/05/26 08:44:05 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class FolderAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function getDefaultView () {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¤ò¼èÆÀ */
+ //$error_row = $user->getAttribute('error_row');
+ //$user->removeAttribute('error_row');
+
+ $target_user_community_id = $request->getParameter('id');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $mode = $request->getParameter('mode'); // ɽ¼¨¥â¡¼¥É
+
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($request->getParameter('id'));
+
+
+ // ¥°¥ë¡¼¥×ɽ¼¨
+ $file_detail_info_row_array = array();
+ if ($mode == 'group') {
+ // ¥Õ¥¡¥¤¥ë¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó
+ $target_folder_obj = $user_folder_obj->get_folder_obj();
+ $file_obj_array = $target_folder_obj->get_file_obj_array();
+
+ foreach ($file_obj_array as $file_obj) {
+ $file_detail_info_row = ACSFileDetailInfo::get_file_detail_info_row($file_obj->get_file_id());
+ if (!$file_detail_info_row['file_id']) {
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤¬ÀßÄꤵ¤ì¤Æ¤Ê¤¤¾ì¹ç
+ $file_detail_info_row['file_id'] = $file_obj->get_file_id();
+ }
+ $file_detail_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_detail_info_row['thumbnail_server_file_name'] = $file_obj->get_thumbnail_server_file_name();
+ array_push($file_detail_info_row_array, $file_detail_info_row);
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+ }
+
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('error_row', $error_row);
+
+ $request->setAttribute('mode', $mode);
+ if ($mode == 'group') {
+ $request->setAttribute('file_detail_info_row_array', $file_detail_info_row_array);
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ }
+
+ return View::SUCCESS;
+ }
+
+ function execute() {
+ return $this->getDefaultView();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::POST | Request::GET;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó
+ *
+ * @author kuwayama
+ * @version $Revision: 1.2 $ $Date: 2006/05/01 09:58:06 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class FolderDetailAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ // ¾ÜºÙ¾ðÊó¤òɽ¼¨¤¹¤ë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $detail_user_community_folder_id = $request->getParameter('detail_folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ $detail_user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $detail_user_community_folder_id);
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈϰϤǥ¢¥¯¥»¥¹À©¸æ
+ if (!$detail_user_folder_obj->has_privilege($target_user_info_row)) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+ $request->setAttribute('detail_user_folder_obj', $detail_user_folder_obj);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê
+ *
+ * @author kuwayama
+ * @version $Revision: 1.7 $ $Date: 2006/12/18 07:42:15 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+require_once(ACS_CLASS_DIR . 'ACSFolderModel.class.php');
+class FolderPutCommunityAction extends BaseAction
+{
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÁªÂò²èÌÌɽ¼¨
+ */
+ function getDefaultView () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_folder_id = $request->ACSgetParameter('folder_id');
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¥Ä¥ê¡¼¤òÄɲÃ
+ $community_folder_obj_array = array();
+ $community_row_index = 0;
+ foreach ($community_row_array as $community_row) {
+ $community_folder_obj = array();
+ $folder_tree = array();
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ $community_folder_obj = new ACSCommunityFolder($community_row['community_id'], $acs_user_info_row, '');
+ $folder_tree = $community_folder_obj->get_folder_tree();
+ $community_row_array[$community_row_index]['folder_tree'] = $folder_tree;
+ $community_row_index++;
+ }
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¡ÊÀßÄꤵ¤ì¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¡Ë
+ $put_community_row_array = ACSFolderModel::select_put_community($target_folder_id);
+
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('target_folder_id', $target_folder_id);
+ $request->setAttribute('community_row_array', $community_row_array);
+ $request->setAttribute('put_community_row_array', $put_community_row_array);
+
+ return View::INPUT;
+ }
+
+ /**
+ * ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê½èÍý
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_folder_id = $request->ACSgetParameter('folder_id');
+
+ // ACSUserFolder ¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ $user_folder_obj = new ACSUserFolder($user_community_id, $acs_user_info_row, $target_folder_id);
+ $target_folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ÁªÂò¤µ¤ì¤¿ community_id, folder_id ¤ò¼èÆÀ
+ $selected_put_folder_row_array = $request->getParameter('selected_put_folder_id');
+
+ // ----------------------------
+ // ¹¹¿·ÍѤ˥ǡ¼¥¿²Ã¹©
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¹¹¿·ÍѤˡ¢row_array ºîÀ®
+ $put_community_row_array = array();
+ foreach ($selected_put_folder_row_array as $community_id => $folder_id) {
+ array_push($put_community_row_array, array('put_community_id' => $community_id, 'put_community_folder_id' => $folder_id));
+ }
+
+ // ----------------------------
+ // ¹¹¿·½èÍý
+ $ret = $target_folder_obj->update_put_community($target_folder_id, $put_community_row_array);
+ if (!$ret) {
+ print "ERROR: Update put-community failed.<br>\n";
+ exit;
+ }
+
+ // MLÄÌÃÎ¥Á¥§¥Ã¥¯¤¬¤¢¤ì¤ÐML¤Ë¥á¡¼¥ëÁ÷¿®¤¹¤ë
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤Î¼èÆÀ
+ $send_announce_mail = $request->getParameter('send_announce_mail');
+ if($send_announce_mail == "t"){
+ foreach ($selected_put_folder_row_array as $community_id => $folder_id) {
+ $folder_info = ACSFolderModel::select_folder_row($folder_id);
+ ACSCommunityMail::send_putfolder_mail(
+ $acs_user_info_row, $folder_info, $community_id);
+ }
+ }
+
+ // ½èÍý¤¬½ª¤ï¤Ã¤¿¤é¡¢¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤ë
+ $controller->forward('Common', 'CloseChildWindow');
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡action¥¯¥é¥¹
+ * ÂÀ׳Îǧ
+ * @package acs/webapp/modules/User/action
+ * FootprintCheckAction
+ * @author teramoto
+ * @since PHP 4.0
+ */
+// $Id: FootprintCheckAction.class.php,v 1.1 2007/03/27 02:12:41 w-ota Exp $
+
+class FootprintCheckAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $acs_user_info_row['user_community_id'];
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÂÀ×
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), FOOTPRINT_LIST_TERM);
+ $footprint_info_row_array = ACSUser::get_footprint_row($user_community_id, $get_days);
+
+ // set
+ $request->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('user_community_id', $user_community_id);
+ $request->setAttribute('footprint_info_row_array', $footprint_info_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¡¡¥³¥á¥ó¥È¡¡Action¥¯¥é¥¹
+ *
+ * FootprintDiaryCommentAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author w-ota @editor akitsu
+ * @since PHP 4.0
+ */
+// $Id: FootprintDiaryCommentAction.class.php,v 1.1 2007/03/28 02:26:52 w-ota Exp $
+
+class FootprintDiaryCommentAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤÎdiary_id¤ò¼èÆÀ
+ $diary_id = $request->ACSgetParameter('diary_id');
+ $diary_row = ACSDiary::get_diary_row($diary_id);
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $user_community_id = $diary_row['user_community_id'];
+
+ $contents_link_url = $this->getControllerPath('User', 'DiaryComment') .
+ "&diary_id=" . $diary_row['diary_id'];
+
+ // ÂÀ×ÅÐÏ¿
+ $contents_type_name = ACSMsg::get_mst('contents_type_master','D21');
+ $contents_type_arr = ACSDB::get_master_array(
+ "contents_type",
+ "contents_type_name='" . $contents_type_name . "'");
+
+ $form['community_id'] = $user_community_id;
+ $form['visitor_community_id'] = $acs_user_info_row['user_community_id'];
+ $form['contents_type_code'] = array_search($contents_type_name, $contents_type_arr);
+ $form['contents_title'] = $diary_row['subject'];
+ $form['contents_link_url'] = $contents_link_url;
+ $form['contents_date'] = $diary_row['post_date'];
+ $form['post_date'] = 'now';
+
+ $ret = ACSUser::set_footprint($form);
+
+ header("Location: $contents_link_url");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÂÀס¡Action¥¯¥é¥¹
+ *
+ * FootprintFileDetailAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author w-ota @editor akitsu
+ * @since PHP 4.0
+ */
+// $Id: FootprintFileDetailAction.class.php,v 1.1 2007/03/28 02:26:52 w-ota Exp $
+
+class FootprintFileDetailAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $target_user_community_id = $request->ACSgetParameter('id');
+ $folder_id = $request->ACSgetParameter('folder_id');
+ $file_id = $request->ACSgetParameter('file_id');
+
+ $file_obj = ACSFile::get_file_info_instance($file_id);
+
+ $contents_link_url = $this->getControllerPath('User', 'FileDetail') .
+ "&id=" . $target_user_community_id . "&file_id=" . $file_id .
+ "&folder_id=" . $folder_id;
+
+ // ÂÀ×ÅÐÏ¿
+ $contents_type_name = ACSMsg::get_mst('contents_type_master','D33');
+ $contents_type_arr = ACSDB::get_master_array(
+ "contents_type",
+ "contents_type_name='" . $contents_type_name . "'");
+
+ $form['community_id'] = $target_user_community_id;
+ $form['visitor_community_id'] = $acs_user_info_row['user_community_id'];
+ $form['contents_type_code'] = array_search($contents_type_name, $contents_type_arr);
+ $form['contents_title'] = $file_obj->get_display_file_name();
+ $form['contents_link_url'] = $contents_link_url;
+ $form['contents_date'] = $file_obj->get_update_date();
+ $form['post_date'] = 'now';
+
+ $ret = ACSUser::set_footprint($form);
+
+ header("Location: $contents_link_url");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: FriendsGroupListAction.class.php,v 1.4 2006/03/28 04:38:13 kuwayama Exp $
+
+class FriendsGroupListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+ foreach ($friends_group_row_array as $index => $friends_group_row) {
+ $friends_group_row_array[$index]['friends_row_array'] = ACSCommunity::get_community_member_user_info_row_array($friends_group_row['community_id']);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FriendsListAction.class.php,v 1.5 2006/11/20 08:44:25 w-ota Exp $
+
+class FriendsListAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $friends_row_array = ACSUser::get_friends_row_array($user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('friends_row_array', $friends_row_array);
+
+ return View::SUCCESS;
+ }
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó
+ function get_access_control_info(&$controller, &$request, &$user) {
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->getParameter('id');
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥¢¥¯¥»¥¹À©¸æ¾ðÊó //
+ $friends_list_contents_row = ACSCommunity::get_contents_row($user_community_id, ACSMsg::get_mst('contents_type_master','D11'));
+ $access_control_info = array(
+ 'role_array' => ACSAccessControl::get_user_community_role_array($acs_user_info_row, $user_info_row),
+ 'contents_row_array' => array($friends_list_contents_row)
+ );
+ return $access_control_info;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: IndexAction.class.php,v 1.21 2008/03/24 07:00:36 y-yuki Exp $
+
+class IndexAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if (empty($user_community_id)) {
+ $user_community_id = $acs_user_info_row['user_community_id'];
+ }
+
+ // ɽ¼¨ÂоݤΥ桼¥¶¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢¥¨¥é¡¼¤òɽ¼¨
+ if (!ACSUser::get_user_info_row_by_user_community_id($user_community_id)) {
+ // ̤¥í¥°¥¤¥ó¤Î»þ¤ÏPublic/Index¤ËÁ«°Ü
+ header("Location: ./index.php?module=Public&action=Index");
+// return View::ERROR;
+ }
+
+ // ¼«¿È¤Î¥Ú¡¼¥¸¤«
+ if ($acs_user_info_row['user_community_id'] == $user_community_id) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // ¥×¥í¥Õ¥£¡¼¥ë
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º
+ $friends_row_array = ACSUser::get_simple_friends_row_array($user_community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£
+ $community_row_array = ACSUser::get_community_row_array($user_community_id);
+
+ // ºÇ½ª¥í¥°¥¤¥ó
+ // ¥í¥°¥¤¥óºÑ¤ß¤Î¾ì¹ç
+ if($acs_user_info_row['is_login_user']){
+ $last_login_row = ACSCommunity::get_contents_row($user_community_id,
+ ACSMsg::get_mst('contents_type_master','D52'));
+ }
+
+ // ¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥ó¤ò¼èÆÀ¤¹¤ë
+ $selection_css_row = ACSCommunity::get_contents_row($user_community_id,
+ ACSMsg::get_mst('contents_type_master','D53'));
+ $selection_css = $selection_css_row['contents_value'] == '' ?
+ ACS_DEFAULT_SELECTION_CSS_FILE : $selection_css_row['contents_value'];
+
+ $waiting_for_join_community_row_array_array = array();
+ $waiting_for_parent_community_link_row_array_array = array();
+ $waiting_for_sub_community_link_row_array_array = array();
+
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['contents_row_array']['self'] = ACSCommunity::get_contents_row($community_row['community_id'], ACSMsg::get_mst('contents_type_master','D00'));
+ $community_row_array[$index]['is_community_admin'] = ACSCommunity::is_community_admin($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ $community_row_array[$index]['is_community_member'] = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $community_row['community_id']);
+ if ($is_self_page) {
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã ¾µÇ§ÂÔ¤Á (¼«Ê¬¤Î¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£)
+ if ($community_row['is_community_admin'] && $waiting_row_array = ACSWaiting::get_waiting_row_array($community_row['community_id'], ACSMsg::get_mst('waiting_type_master','D20'), ACSMsg::get_mst('waiting_status_master','D10'))) {
+ $waiting_for_join_community_row_array['waiting_row_array'] = $waiting_row_array;
+ $waiting_for_join_community_row_array['community_row'] = $community_row;
+ array_push($waiting_for_join_community_row_array_array, $waiting_for_join_community_row_array);
+ }
+
+ // ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á
+ if ($community_row['is_community_admin'] && $waiting_row_array = ACSWaiting::get_waiting_row_array($community_row['community_id'], ACSMsg::get_mst('waiting_type_master','D40'), ACSMsg::get_mst('waiting_status_master','D10'))) {
+ $waiting_for_parent_community_link_row_array['waiting_row_array'] = $waiting_row_array;
+ $waiting_for_parent_community_link_row_array['community_row'] = $community_row;
+ array_push($waiting_for_parent_community_link_row_array_array, $waiting_for_parent_community_link_row_array);
+ }
+
+ // ÂÔµ¡: ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£Äɲà ¾µÇ§ÂÔ¤Á
+ if ($community_row['is_community_admin'] && $waiting_row_array = ACSWaiting::get_waiting_row_array($community_row['community_id'], ACSMsg::get_mst('waiting_type_master','D50'), ACSMsg::get_mst('waiting_status_master','D10'))) {
+ $waiting_for_sub_community_link_row_array['waiting_row_array'] = $waiting_row_array;
+ $waiting_for_sub_community_link_row_array['community_row'] = $community_row;
+ array_push($waiting_for_sub_community_link_row_array_array, $waiting_for_sub_community_link_row_array);
+ }
+ }
+ }
+
+
+ if ($is_self_page) {
+ // ÂÔµ¡: ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á
+ $waiting_for_add_friends_row_array = ACSWaiting::get_waiting_row_array($user_community_id, ACSMsg::get_mst('waiting_type_master','D10'), ACSMsg::get_mst('waiting_status_master','D10'));
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ ¾µÇ§ÂÔ¤Á
+ $waiting_for_invite_to_community_row_array = ACSWaiting::get_waiting_row_array($user_community_id, ACSMsg::get_mst('waiting_type_master','D30'), ACSMsg::get_mst('waiting_status_master','D10'));
+
+ // ¥Þ¥¤¥À¥¤¥¢¥ê¡¼¤Î¿·Ã女¥á¥ó¥È
+ $new_comment_diary_row_array = ACSDiary::get_new_comment_diary_row_array($user_community_id);
+
+ // ¿·Ãå¥á¥Ã¥»¡¼¥¸
+ $new_message_row_array = ACSMessage::get_new_message_row_array($user_community_id);
+
+ // ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+ $system_announce_row_array = ACSSystemAnnounce::get_valid_system_announce_row_array();
+
+ }
+
+ // set
+ $request->setAttribute('user_community_id', $user_community_id);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('is_self_page', $is_self_page);
+ $request->setAttribute('friends_row_array', $friends_row_array);
+ $request->setAttribute('community_row_array', $community_row_array);
+ $request->setAttribute('waiting_for_add_friends_row_array', $waiting_for_add_friends_row_array);
+ $request->setAttribute('waiting_for_join_community_row_array_array', $waiting_for_join_community_row_array_array);
+ $request->setAttribute('waiting_for_parent_community_link_row_array_array', $waiting_for_parent_community_link_row_array_array);
+ $request->setAttribute('waiting_for_sub_community_link_row_array_array', $waiting_for_sub_community_link_row_array_array);
+ $request->setAttribute('waiting_for_invite_to_community_row_array', $waiting_for_invite_to_community_row_array);
+ $request->setAttribute('new_comment_diary_row_array', $new_comment_diary_row_array);
+ $request->setAttribute('system_announce_row_array', $system_announce_row_array);
+ $request->setAttribute('last_login', $last_login_row['contents_value']);
+ $request->setAttribute('selection_css', $selection_css);
+ $request->setAttribute('new_message_row_array', $new_message_row_array);
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: LoginAction.class.php,v 1.8 2008/04/24 16:00:00 y-yuki Exp $
+
+class LoginAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_id = $user->getAttribute('login_user_id');
+ if ($user_id == null || $user_id == "") {
+ if (ACSSystem::check_connect_outside() != "0") {
+ // LDAPÀܳ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ $this->setError($controller, $request, $user, 'login_input',
+ ACSMsg::get_msg('User', 'LoginAction.class.php' ,'M002'));
+ }
+ else if ($_POST['userid'] != NULL && $_POST['userid'] != "") {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ $this->setError($controller, $request, $user, 'login_input',
+ ACSMsg::get_msg('User', 'LoginAction.class.php' ,'M001'));
+ }
+
+ return View::INPUT;
+ }
+
+ if ($acs_user_info_row['is_acs_user']) {
+ // ¥í¥°ÅÐÏ¿: ¥í¥°¥¤¥ó
+ ACSLog::set_log($acs_user_info_row, 'Login', true, "[UserID:{$acs_user_info_row['user_id']}]");
+
+ // ¥é¥¹¥È¥í¥°¥¤¥óÅÐÏ¿
+ ACSUser::set_last_login($acs_user_info_row);
+ header("Location: ./");
+ }
+ return View::NONE;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: LoginInputAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+class LoginInputAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if (empty($user_community_id)) {
+ $user_community_id = $acs_user_info_row['user_community_id'];
+ }
+
+ $user_id = $user->getAttribute('login_user_id');
+ if ($user_id == null || $user_id == "") {
+ return View::INPUT;
+ }
+ return View::ERROR;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥í¥°¥¢¥¦¥È½èÍý
+ *
+ * @author y-yuki
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+class LogoutAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+
+ // ¥¿¥¤¥à¥¹¥¿¥ó¥×¹¹¿·
+ $ret = ACSUser::upd_login_date($user);
+
+ if (!$ret) {
+ return View::ERROR;
+ }
+
+ // ¥í¥°¥¢¥¦¥È¥æ¡¼¥¶ID¤¬¤Ê¤¯¤Ê¤ë¤ÈBaseAction¤Çǧ¾Ú¤Ç¤¤Ê¤¯¤Ê¤ë
+ $user->removeAttribute('login_user_id');
+ $user->removeAttribute('getLogoutDateEverytime');
+
+ return View::SUCCESS;
+ }
+
+ /**
+ * ǧ¾Ú¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤«
+ * ¥¢¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢Ç§¾Ú¥Á¥§¥Ã¥¯¤¬É¬Íפ«ÀßÄꤹ¤ë
+ * @access public
+ * @return boolean ǧ¾Ú¥Á¥§¥Ã¥¯Í̵¡Êtrue:ɬÍס¢false:ÉÔÍסË
+ */
+ public function isSecure()
+ {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸¡¡Action¥¯¥é¥¹
+ *
+ * MessageAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+class MessageAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+
+ return View::INPUT;
+ }
+
+ function execute() {
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')) {
+ return false;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó¤ò¼èÆÀ
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ if ($request->getParameter('move_id') == 4){
+ $message_id = $request->getParameter('message_id');
+ // ¾¥æ¡¼¥¶¤Î¼õ¿®¥á¥Ã¥»¡¼¥¸¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!ACSMessage::check_message_receiver($message_id, $acs_user_info_row["user_community_id"])) {
+ return false;
+ }
+ }
+ // Ëܿͤξì¹ç¤ÏOK
+ return true;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸BOX¡¡Action¥¯¥é¥¹
+ *
+ * MessageBoxAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageBoxAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+class MessageBoxAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ //Á÷¿®ºÑ²èÌ̤νèÍý
+ $move_id = $request->getParameter('move_id');
+ if($move_id == 2){
+ // Á´¤Æ¤ÎÁ÷¿®ºÑ¥á¥Ã¥»¡¼¥¸
+ $message_row_array = ACSMessage::get_send_message_row_array($user_community_id);
+ } else {
+ // Á´¤Æ¤Î¼õ¿®¥á¥Ã¥»¡¼¥¸
+ $message_row_array = ACSMessage::get_receive_message_row_array($user_community_id);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('message_row_array', $message_row_array);
+ $request->setAttribute('move_id', $move_id);
+
+ return View::INPUT;
+ }
+
+ function execute() {
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸¡¡ÅÐÏ¿¡¦É½¼¨µ¡Ç½¡¡action¥¯¥é¥¹
+ * ¥á¥Ã¥»¡¼¥¸¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿½èÍý
+ * @package acs/webapp/modules/User/action
+ * @author nakau
+ * @since PHP 4.0
+ * @version $Revision: 1.1 $ $Date: 2008/03/06
+ */
+// $Id: MessagePreAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class MessagePreAction extends BaseAction
+{
+ //field
+ var $form;
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+ // ¥æ¡¼¥¶¡¼¾ðÊó
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_community_id = $request->getParameter('id');
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+ /* ÆþÎϲèÌ̤è¤ê */
+ if($move_id==1){
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form['subject'] = $request->getParameter('subject'); //·ï̾¡§subject
+ $form['body'] = $request->getParameter('body'); //ÆâÍÆ¡§body
+ $form['info_mail'] = $request->getParameter('info_mail'); //¥á¡¼¥ëÄÌÃΡ§info_mail
+ $user->setAttribute('new_form_obj',$form);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ //¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ return View::SUCCESS;
+
+ /* ÅÐÏ¿³ÎÄê¥Ü¥¿¥ó¡Ö¤Ï¤¤¡×¤è¤ê */
+ }else if($move_id==2){
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $user_community_id = $request->getParameter('id');
+ //¡ù¡ù¡¡¤³¤³¤«¤é¤Û¤ÜƱ¤¸
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');
+ $new_file_obj = $form['file_obj'];
+ $form['user_community_id'] = $user_community_id;
+ $form['acs_user_info_id'] = $acs_user_info_row['user_community_id'];
+ //¡ù¡ù¡¡¤³¤³¤Þ¤Ç¤Û¤ÜƱ¤¸
+ // DB¤Ø¤Î½ñ¤¹þ¤ßÅù
+ ACSDB::_do_query("BEGIN");
+ // Message¥Æ¡¼¥Ö¥ë¾ðÊó
+ $ret = ACSMessage::set_message($form);
+ if($ret){
+ ACSDB::_do_query("COMMIT");
+ }else{
+ ACSDB::_do_query("ROLLBACK");
+ }
+
+ // ÄÌÃΥ᡼¥ëÁ÷¿®½èÍý
+ if ($form['info_mail'] == "on") {
+ ACSMessage::send_info_mail($ret, $form['user_community_id'], $form['acs_user_info_id']);
+ }
+
+ // ½ñ¤¹þ¤ß¸å¡¢GET¤Î½èÍý¤Ø
+ $action_url = $this->getControllerPath('User', 'MessageBox') . '&id=' . $acs_user_info_row['user_community_id'].'&move_id=2';
+ header("Location: $action_url");
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ $context = $this->getContext();
+ $request = $context->getRequest();
+ $move_id = $request->getParameter('move_id');
+
+ // ÆþÎϲèÌ̤«¤é¤Î¾ì¹ç¤Î¤ß¡¢ÆþÎÏ¥Á¥§¥Ã¥¯¤ò¤¹¤ë
+ if ($move_id == 1) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "subject",
+ true,
+ ACSMsg::get_msg('User', 'MessagePreAction.class.php', 'M001'));
+ }
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->execute();
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('EXECUTE');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸¡¡¾ÜºÙ¡¡Action¥¯¥é¥¹
+ *
+ * MessageShowAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageShowAction.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+class MessageShowAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤÎmessage_id¤ò¼èÆÀ
+ $message_id = $request->ACSgetParameter('message_id');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $user_community_id = $request->ACSgetParameter('id');
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if ($this->get_execute_privilege() == 2
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¥í¥°¥¤¥ó²èÌ̤ËÁ«°Ü
+ $controller->forward("User", "Login");
+ return;
+ }
+ if ($this->get_execute_privilege() == 1
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ //Á÷¿®ºÑ²èÌ̤νèÍý
+ $move_id = $request->getParameter('move_id');
+ if($move_id == 2){
+ // Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¾ÜºÙ
+ $message_row = ACSMessage::get_send_message_row($message_id);
+ } else {
+ // ¼õ¿®¥á¥Ã¥»¡¼¥¸¾ÜºÙ
+ $message_row = ACSMessage::get_receive_message_row($message_id);
+ // ̤ÆÉ¡¦´ûÆÉȽÄê
+ if ($message_row['read_flag'] == "f") {
+ // ̤ÆÉ»þ¡¢DB¤Î¥Õ¥é¥°Êѹ¹
+ $message_receiver_id = $message_row['message_receiver_id'];
+ ACSDB::_do_query("BEGIN");
+ // message_receiver¥Æ¡¼¥Ö¥ë¾ðÊóÊѹ¹
+ $ret = ACSMessage::read_message($message_receiver_id);
+ if($ret){
+ ACSDB::_do_query("COMMIT");
+ }else{
+ ACSDB::_do_query("ROLLBACK");
+ }
+ }
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('message_row', $message_row);
+ $request->setAttribute('move_id', $move_id);
+
+ return View::INPUT;
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function execute() {
+
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')){
+ return 2;
+ }
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return 1;
+ }
+ return 0;
+/*
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+*/
+ }
+
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class MoveFolderAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder(
+ $target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ // °ÜÆ°Àè¥Õ¥©¥ë¥ÀID
+ $move_target_folder_id = $request->getParameter('selected_move_folder_id');
+
+ /* -------- */
+ /* °ÜÆ°½èÍý */
+ /* -------- */
+ ACSDB::_do_query("BEGIN");
+
+ // °ÜÆ°À褬¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ì¹ç¤Ï¡¢¸ø³«ÈϰϤò¥»¥Ã¥È¤¹¤ëɬÍפ¬¤¢¤ë¤¿¤á¡¢
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¾ðÊó¤ò¼èÆÀ¤·¤Æ¤ª¤¯
+ $root_folder_obj = ACSFolder::get_folder_instance(
+ $user_folder_obj->get_root_folder_row($user_folder_obj->get_community_id()));
+
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_id_array = $request->getParameter('selected_folder');
+ if ($selected_folder_id_array) {
+ foreach ($selected_folder_id_array as $folder_id) {
+ // °ÜÆ°¤¹¤ë¥Õ¥©¥ë¥À¼èÆÀ
+ $_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($folder_id);
+
+ // °ÜÆ°½èÍý
+ $ret = $_folder_obj->move_folder($move_target_folder_id);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Move folder failed.";
+ exit;
+ }
+
+ // ¸ø³«ÈϰϤò¹¹¿·
+ if ($move_target_folder_id == $root_folder_obj->get_folder_id()) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Ø°ÜÆ°¤Î¾ì¹ç¡¢¸ø³«ÈϰϤò¥»¥Ã¥È
+ $new_open_level_code = $user_folder_obj->folder_obj->get_open_level_code();
+ $new_trusted_community_row_array = $user_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ } else {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À°Ê³°¤Ø°ÜÆ°¤Î¾ì¹ç¡¢¸ø³«ÈϰϤò¥ê¥»¥Ã¥È
+ $new_open_level_code = "";
+ $new_trusted_community_row_array = array();
+ }
+ $ret = $_folder_obj->update_open_level_code($new_open_level_code, $new_trusted_community_row_array);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Move folder failed.";
+ exit;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À°Ê³°¤Ø¤Ø°ÜÆ°¤Î¾ì¹ç¡¢¥×¥Ã¥È²ò½ü(=¥×¥Ã¥È¾ðÊó¤òÁ´¤Æºï½ü)
+ if ($move_target_folder_id != $root_folder_obj->get_folder_id()) {
+ $ret = ACSFolderModel::delete_put_community_by_folder_id($_folder_obj->get_folder_id());
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Move folder failed.";
+ exit;
+ }
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_id_array = $request->getParameter('selected_file');
+ if ($selected_file_id_array) {
+ foreach ($selected_file_id_array as $file_id) {
+
+ // °ÜÆ°½èÍý
+ $file_obj = $user_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $user_folder_obj->folder_obj->move_file($file_obj, $move_target_folder_id);
+ //$ret = $_file_obj->rename_display_file_name($new_file_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Move file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "selected_move_folder_id",
+ true,
+ ACSMsg::get_msg('User', 'MoveFolderAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ // °ÜÆ°°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('User', 'MoveFolderList');
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°ÀèÁªÂò
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class MoveFolderListAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_folder', ACSMsg::get_msg('User', 'MoveFolderListAction.class.php' ,'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ // °ÜÆ°ÀèÁªÂòÍѤΥե©¥ë¥À¹½À®¼èÆÀ
+ $user_folder_tree = array();
+ $user_folder_tree = $user_folder_obj->get_folder_tree();
+
+ // °ÜÆ°Âоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹°ÜÆ°ÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹°ÜÆ°ÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $user_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+ // set
+ $request->setAttribute('user_folder_tree', $user_folder_tree);
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_folder_id_array', $selected_folder_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::INPUT;
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÅϤ¹ */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: NewBBSAction.class.php,v 1.4 2008/04/24 16:00:00 y-yuki Exp $
+
+class NewBBSAction extends BaseAction
+{
+ function execute() {
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨¤Î¾ì¹ç: 1(true)
+ $inline_mode = $request->ACSgetParameter('inline_mode');
+ if ($inline_mode == null || $inline_mode == '') {
+ $inline_mode = $request->getAttribute("inline_mode");
+ }
+
+ // ¼èÆÀÈϰϤλØÄê
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ ($inline_mode ? 'NEW_INFO_TOP_TERM' : 'NEW_INFO_LIST_TERM'));
+ $request->setAttribute('get_days', $get_days);
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå·Ç¼¨Èĵ»ö°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ if ($inline_mode) {
+ $new_bbs_row_array = ACSBBS::get_new_bbs_row_array($user_community_id, $get_days, true);
+ } else {
+ $new_bbs_row_array = ACSBBS::get_new_bbs_row_array($user_community_id, $get_days);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('new_bbs_row_array', $new_bbs_row_array);
+
+ if ($inline_mode) {
+ return View::INPUT;
+ } else {
+ return View::SUCCESS;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+/**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó
+ *
+ * @author z-satosi
+ * @version $Revision: 1.4 y-yuki Exp $
+ */
+class NewCommunityFolderAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $form = $request->ACSgetParameters();
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨¤Î¾ì¹ç: 1(true)
+ $inline_mode = $request->ACSgetParameter('inline_mode');
+ if ($inline_mode == null || $inline_mode == '') {
+ $inline_mode = $request->getAttribute("inline_mode");
+ }
+
+ // ¼èÆÀÈϰϤλØÄê
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ ($inline_mode ? 'NEW_INFO_TOP_TERM' : 'NEW_INFO_LIST_TERM'));
+ $request->setAttribute('get_days', $get_days);
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ if ($inline_mode) {
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_folder_row_array =
+ ACSCommunityFolder::get_new_community_folder_row_array($user_community_id, $get_days, true);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥×¥Ã¥È¥Õ¥©¥ë¥À°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_put_folder_row_array =
+ ACSCommunityFolder::get_new_community_put_folder_row_array($user_community_id, $form, $get_days, true);
+ } else {
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥Õ¥©¥ë¥À°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_folder_row_array =
+ ACSCommunityFolder::get_new_community_folder_row_array($user_community_id, $get_days);
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¿·Ãå¥×¥Ã¥È¥Õ¥©¥ë¥À°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ $new_put_folder_row_array =
+ ACSCommunityFolder::get_new_community_put_folder_row_array($user_community_id, $form, $get_days);
+
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾¼èÆÀ¥Ð¥Ã¥Õ¥¡
+ $this->community_name_buffer = array();
+
+ // ¥½¡¼¥ÈÍÑÇÛÎó¤Î½é´ü²½
+ $sort_folder_row_array = array();
+
+ // ¥½¡¼¥ÈÍѤ˲ù©(¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥¡¥¤¥ë)
+ foreach ($new_folder_row_array as $index => $new_folder_row) {
+ $sort_index = $new_folder_row['update_date'] . " " .
+ sprintf("%06d", $new_folder_row['file_id']) . "c";
+ $sort_folder_row_array[$sort_index] = $new_folder_row;
+ }
+
+ // ¥½¡¼¥ÈÍѤ˲ù©(¥×¥Ã¥È¥Õ¥¡¥¤¥ë)
+ // (Ê£¿ô¥³¥ß¥å¥Ë¥Æ¥£¤Ø¤Îput¾ðÊ󤬽ÅÊ£¤·¤Ê¤¤¤è¤¦counter¤òÉÕ²Ã)
+ // (¢¨Ê£¿ô¥³¥ß¥å¥Ë¥Æ¥£¤ÏÂè°ì³¬ÁؤΥե¡¥¤¥ë¤Î¤ß¤¬Âбþ¤µ¤ì¤Æ¤¤¤ë)
+ $counter = 0;
+ foreach ($new_put_folder_row_array as $index => $new_folder_row) {
+
+ // PUT¤Ç¤¢¤ë¤³¤È¤Î¥Õ¥é¥°¤òÀßÄê¤ò¤·¤Æ¤ª¤¯
+ $new_folder_row['is_put_icon'] = TRUE;
+
+ $sort_index = $new_folder_row['update_date'] . " " .
+ sprintf("%06d", $new_folder_row['file_id']) . "p" . $counter;
+ $sort_folder_row_array[$sort_index] = $new_folder_row;
+
+ $counter++;
+ }
+
+ // ¥½¡¼¥È¼Â»Ü
+ krsort($sort_folder_row_array);
+
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ if ($inline_mode) {
+ $display_count =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst(
+ 'system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ } else {
+ // view¤Ç¥Ú¡¼¥¸¥ó¥°¤¹¤ë¤Î¤ÇÁ´·ï¼èÆÀ(0=Á´·ï¼èÆÀ)
+ $display_count = 0;
+ }
+
+ // ɽ¼¨ÍѤËÀ°¤¨¤ë
+ $new_folder_row_array = array();
+ foreach ($sort_folder_row_array as $key => $folder_row) {
+
+ // ɽ¼¨·ï¿ô¤Ë㤷¤Æ¤¤¤ë¾ì¹ç¤Ï½èÍý¤·¤Ê¤¤
+ if (count($new_folder_row_array) >= $display_count && $display_count != 0) {
+ break;
+ }
+
+ // put¥Õ¥¡¥¤¥ë¤Î¾ì¹ç
+ if ($folder_row['is_put_icon']) {
+
+ // ¥Õ¥©¥ë¥À¾ðÊó¤Î¼èÆÀ
+ // (¢¨Ê£¿ô¤Î¥Õ¥©¥ë¥À¾ðÊó¤Î¼èÆÀ¤¹¤ë¾ì¹ç¤âÍ)
+ $add_folder_row_array =&
+ $this->getPutFolderRows($acs_user_info_row, $folder_row);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥¡¥¤¥ë¤Î¾ì¹ç
+ } else {
+ // (ɬÍפʥե©¥ë¥À¾ðÊó¤Ï¼èÆÀºÑ¤ß)
+ $folder_row['url_community_id'] = $folder_row['owner_community_id'];
+ $folder_row['url_folder_id'] = $folder_row['folder_id'];
+ $add_folder_row_array = array($folder_row);
+ }
+
+ // ɽ¼¨ÍѾðÊó¤ÎÀßÄê
+ foreach ($add_folder_row_array as $add_folder_row) {
+
+ // ɽ¼¨·ï¿ô¤Ë㤷¤Æ¤¤¤ë¾ì¹ç¤Ï½èÍý¤·¤Ê¤¤
+ if (count($new_folder_row_array) >= $display_count &&
+ $display_count != 0) {
+ break;
+ }
+
+ // ´ûÆɥե饰¤ÎÀßÄê
+ $add_folder_row['is_unread'] =
+ ACSLib::get_boolean($add_folder_row['is_unread']);
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤·¤Æ¤ª¤¯(ºÆÍøÍѤ¹¤ë¤¿¤á)
+ $this->community_name_buffer[$add_folder_row['owner_community_id']] =
+ $add_folder_row['community_name'];
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL¤ÎÀ¸À®
+ $add_folder_row['file_detail_url'] =
+ $this->getControllerPath('Community', 'FileDetail') .
+ '&community_id=' . $add_folder_row['url_community_id'] .
+ '&folder_id=' . $add_folder_row['url_folder_id'] .
+ '&file_id=' . $add_folder_row['file_id'];
+
+ array_push($new_folder_row_array, $add_folder_row);
+ }
+ }
+
+ // set
+ $request->setAttribute('user_community_id', $user_community_id);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('new_folder_row_array', $new_folder_row_array);
+ //$request->setAttribute('new_put_folder_row_array', $new_put_folder_row_array);
+
+ if ($inline_mode) {
+ return View::INPUT;
+ } else {
+ return View::SUCCESS;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ /*
+ * putÀè¤Î¥Õ¥©¥ë¥À¾ðÊó¤ò¼èÆÀ¤¹¤ë(Ê£¿ôputÂбþ)
+ */
+ function & getPutFolderRows(&$acs_user_info_row, &$folder_row) {
+
+ $put_community_id = $folder_row['put_community_id'];
+
+ $put_folder_rows = array();
+
+ // £²³¬Áذʾ忼¤¤³¬ÁؤÎput¥Õ¥¡¥¤¥ë¤Î¾ì¹ç
+ // (putÀè¤Î¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤¬¼èÆÀ¤Ç¤¤Æ¤¤¤Ê¤¤)
+ // (putÀ褬ʣ¿ô¤Î¾ì¹ç¤¢¤ê)
+ if ($put_community_id=='') {
+
+ // ¥æ¡¼¥¶¥Õ¥©¥ë¥Àobj¼èÆÀ
+ $user_folder_obj = new ACSUserFolder(
+ $folder_row['owner_community_id'],
+ $acs_user_info_row,
+ $folder_row['folder_id'] );
+
+ // ¥Ñ¥¹¾ðÊó¼èÆÀ
+ $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
+
+ // Âè1³¬ÁØ¥Õ¥©¥ë¥À£É£Ä¼èÆÀ
+ $second_folder_obj =& $path_folder_obj_array[1];
+
+ // Âè1³¬ÁØ¥Õ¥©¥ë¥À¤«¤é¥×¥Ã¥ÈÀè¤Î¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ(Ê£¿ô¤Î¾ì¹çÍ)
+ $put_community_array =& $second_folder_obj->get_put_community_row_array();
+ foreach ($put_community_array as $put_community) {
+
+ $add_folder_row = $folder_row;
+ $add_folder_row['url_community_id'] = $put_community['community_id'];
+ $add_folder_row['url_folder_id'] = $folder_row['folder_id'];
+ $add_folder_row['community_name'] = $put_community['community_name'];
+
+ $put_folder_rows[] = $add_folder_row;
+ }
+
+
+ // £±³¬ÁØÌܤÎput¥Õ¥¡¥¤¥ë¤Î¾ì¹ç
+ // (putÀè¤Î¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤¬¼èÆÀ¤Ç¤¤Æ¤¤¤ë)
+ } else {
+
+ // ¥Ð¥Ã¥Õ¥¡¤Ë¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤¬Ìµ¤¤¾ì¹ç¤ÏÌ䤤¹ç¤ï¤»¤ë
+ if ($this->community_name_buffer[$put_community_id]=='') {
+ $community_row =& ACSCommunity::get_community_row(
+ $put_community_id);
+ $this->community_name_buffer[$put_community_id] =
+ $community_row['community_name'];
+ }
+
+ // ɽ¼¨ÍѤ˥³¥ß¥å¥Ë¥Æ¥£Ì¾¤òÀßÄꤷ¤Æ¤ª¤¯
+ $folder_row['community_name'] =
+ $this->community_name_buffer[$put_community_id];
+ $folder_row['url_community_id'] = $folder_row['put_community_id'];
+ $folder_row['url_folder_id'] = $folder_row['put_community_folder_id'];
+
+ $put_folder_rows = array($folder_row);
+ }
+ return $put_folder_rows;
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewDiaryAction.class.php,v 1.7 2008/04/24 16:00:00 y-yuki Exp $
+
+class NewDiaryAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+
+ }
+
+ function execute() {
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨¤Î¾ì¹ç: 1(true)
+ $inline_mode = $request->ACSgetParameter('inline_mode');
+ if ($inline_mode == null || $inline_mode == '') {
+ $inline_mode = $request->getAttribute("inline_mode");
+ }
+
+ // ¼èÆÀÈϰϤλØÄê
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ ($inline_mode ? 'NEW_INFO_TOP_TERM' : 'NEW_INFO_LIST_TERM'));
+ $request->setAttribute('get_days', $get_days);
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ if ($inline_mode) {
+ $new_diary_row_array = ACSDiary::get_new_diary_row_array($user_community_id, $get_days, true);
+ } else {
+ $new_diary_row_array = ACSDiary::get_new_diary_row_array($user_community_id, $get_days);
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('new_diary_row_array', $new_diary_row_array);
+
+ if ($inline_mode) {
+ return View::INPUT;
+ } else {
+ return VIEW::SUCCESS;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+
+/**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó
+ *
+ * @author z-satosi
+ * @version $Revision: 1.5 y-yuki Exp $
+ */
+class NewFriendsFolderAction extends BaseAction
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $controller = $context->getController();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if ($user_community_id == null || $user_community_id == '') {
+ $user_community_id = $request->getAttribute("id");
+ }
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()
+ && $acs_user_info_row["user_community_id"] != $user_community_id) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨¤Î¾ì¹ç: 1(true)
+ $inline_mode = $request->ACSgetParameter('inline_mode');
+ if ($inline_mode == null || $inline_mode == '') {
+ $inline_mode = $request->getAttribute("inline_mode");
+ }
+
+ // ¼èÆÀÈϰϤλØÄê
+ $get_days = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ ($inline_mode ? 'NEW_INFO_TOP_TERM' : 'NEW_INFO_LIST_TERM'));
+ $request->setAttribute('get_days', $get_days);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¿·Ãå¥Õ¥¡¥¤¥ë°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+ if ($inline_mode) {
+ $new_file_row_array =
+ ACSUserFolder::get_new_friends_file_row_array($user_community_id, $get_days, true);
+
+ } else {
+ $new_file_row_array =
+ ACSUserFolder::get_new_friends_file_row_array($user_community_id, $get_days);
+ }
+
+ // ɽ¼¨·ï¿ô¼èÆÀ
+ if ($inline_mode) {
+ $display_count =
+ ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ } else {
+ $display_count = count($new_file_row_array);
+ }
+ $request->setAttribute('display_count', $display_count);
+
+ //
+ // ¥Þ¥¤¥Ú¡¼¥¸¿·Ãå¡¢¿·Ãå°ìÍ÷¤È¤â¤Ëɽ¼¨·ï¿ôʬ¤Î¾ðÊó¤ò¼èÆÀ
+ //
+ $rec_cnt = 0;
+ $_new_file_row_array = array();
+ foreach ($new_file_row_array as $index => $new_file_row) {
+
+ // ɽ¼¨·ï¿ô¤Ë㤷¤Æ¤¤¤ë¾ì¹ç¤Ï½ªÎ»
+ if ($rec_cnt >= $display_count) {
+ break;
+ }
+
+ $target_folder_obj = new ACSUserFolder(
+ $new_file_row['owner_community_id'],
+ $acs_user_info_row,
+ $new_file_row['folder_id']);
+
+ $target_file_obj = new ACSFile($new_file_row);
+
+ $new_file_row['is_root_folder'] =
+ $target_folder_obj->folder_obj->get_is_root_folder();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $new_file_row['open_level_code'] =
+ $target_folder_obj->folder_obj->get_open_level_code();
+
+ $new_file_row['open_level_name'] =
+ $target_folder_obj->folder_obj->get_open_level_name();
+
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row(
+ $new_file_row['open_level_code']);
+
+ $new_file_row = array_merge(
+ $new_file_row, $open_level_master_row);
+
+ $new_file_row['trusted_community_row_array'] =
+ $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ array_push($path_array, $new_file_row['display_file_name']);
+ $new_file_row['path_array'] = $path_array;
+
+ //
+ // ¥¢¥¯¥»¥¹¸¢¸Â¤ÎȽÄê
+ //
+ $is_access_ok = TRUE;
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤ÏËܿͰʳ°¤Ê¤Î¤Çis_root_folder¤Î¥Õ¥¡¥¤¥ë¤ò±ÜÍ÷¤Ç¤¤Ê¤¤
+ if ($new_file_row['is_root_folder']) {
+
+ $is_access_ok = FALSE;
+
+ // ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹¸¢¸Â¤ò¥Á¥§¥Ã¥¯¤¹¤ë
+ } else {
+
+ // ¥Õ¥¡¥¤¥ë¤Î¥ª¡¼¥Ê¡¼¾ðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id(
+ $new_file_row['owner_community_id']);
+
+ // ¸¢¸Â¾ðÊó¼èÆÀ
+ $role_array = ACSAccessControl::get_user_community_role_array(
+ $acs_user_info_row, $target_user_info_row);
+
+ // ¥¢¥¯¥»¥¹È½Äê
+ if (!ACSAccessControl::is_valid_user_for_user_community(
+ $acs_user_info_row, $role_array, $new_file_row)) {
+ $is_access_ok = FALSE;
+ }
+ }
+
+ if ($is_access_ok) {
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $new_file_row['file_detail_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, 'FileDetail') .
+ '&id=' . $new_file_row['owner_community_id'] .
+ '&folder_id=' . $new_file_row['folder_id'] .
+ '&file_id=' . $new_file_row['file_id'];
+
+ $new_file_row['is_unread'] =
+ ACSLib::get_boolean($new_file_row['is_unread']);
+
+ array_push($_new_file_row_array, $new_file_row);
+ $rec_cnt = $rec_cnt + 1;
+ }
+ }
+
+ $new_file_row_array = $_new_file_row_array;
+
+ // set
+ $request->setAttribute('user_community_id', $user_community_id);
+ $request->setAttribute('new_file_row_array', $new_file_row_array);
+
+ if ($inline_mode) {
+ return View::INPUT;
+ } else {
+ return VIEW::SUCCESS;
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential () {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤξì¹ç¤ÏOK
+ if (!$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡action¥¯¥é¥¹
+ * ¥×¥í¥Õ¥£¡¼¥ë³Îǧ
+ * @package acs/webapp/modules/User/action
+ * ProfileCheckAction
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: ProfileCheckAction.class.php,v 1.2 2006/03/28 04:47:43 kuwayama Exp $
+
+class ProfileCheckAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ if (empty($user_community_id)) {
+ $user_community_id = $acs_user_info_row['user_community_id'];
+ }
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥×¥í¥Õ¥£¡¼¥ë
+ $target_user_info_row = ACSUser::get_user_profile_row($user_community_id);
+
+ //¥æ¡¼¥¶¤¬±ÜÍ÷¼Ô¤òÁªÂò¤·¤¿¾ì¹ç
+ $view_mode = $request->getParameter('view_mode');
+
+ // set
+ $request->setAttribute('user_community_id', $user_community_id);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('view_mode', $view_mode);
+
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¥Õ¥©¥ë¥À¤Î¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/02/23 01:25:36 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class PutCommunityAction extends BaseAction
+{
+ /**
+ * ½é´ü²èÌÌ
+ * GET¥á¥½¥Ã¥É¤Î¾ì¹ç¡¢¸Æ¤Ð¤ì¤ë
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getRequestMethods () {
+ return Request::GET;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹½èÍý
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class RenameFolderAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+
+ /* ------------- */
+ /* ̾Á°Êѹ¹½èÍý */
+ /* ------------- */
+ // ¿·¤·¤¤Ì¾Á°¤Ç¹¹¿·
+ ACSDB::_do_query("BEGIN");
+ // ¥Õ¥©¥ë¥À
+ $folder_row_array = array();
+ $new_folder_name_array = $request->getParameter('new_folder_name');
+ if ($new_folder_name_array) {
+ foreach ($new_folder_name_array as $folder_id => $new_folder_name) {
+ // ¥Õ¥©¥ë¥À̾ɬ¿Ü¥Á¥§¥Ã¥¯
+ if (!$new_folder_name) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_folder_name', ACSMsg::get_msg('User', 'RenameFolderAction.class.php' ,'M001'));
+ } elseif (mb_strlen($new_folder_name) > 100) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_file_name', ACSMsg::get_msg('User', 'RenameFolderAction.class.php' ,'M002'));
+ }
+
+ // folder_id ƬÈø¤Î¡Ö'¡×¤òºï½ü
+ $folder_id = trim($folder_id, "'");
+ //$folder_id = str_replace("\'", "", $folder_id);
+
+ // ̾Á°¹¹¿·½èÍý
+ $_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($folder_id);
+ $ret = $_folder_obj->rename_folder_name($new_folder_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Rename folder failed.";
+ exit;
+ }
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $file_row_array = array();
+ $new_file_name_array = $request->getParameter('new_file_name');
+ if ($new_file_name_array) {
+ foreach ($new_file_name_array as $file_id => $new_file_name) {
+ // ¥Õ¥¡¥¤¥ë̾ɬ¿Ü¥Á¥§¥Ã¥¯
+ if (!$new_file_name) {
+ ACSDB::_do_query("ROLLBACK;");
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'new_file_name', ACSMsg::get_msg('User', 'RenameFolderAction.class.php' ,'M001'));
+ }
+
+ // file_id ƬÈø¤Î¡Ö'¡×¤òºï½ü
+ $file_id = trim($file_id, "'");
+ //$file_id = str_replace("\'", "", $file_id);
+
+ // ̾Á°¹¹¿·½èÍý
+ $_file_obj = $user_folder_obj->folder_obj->get_file_obj($file_id);
+ $ret = $_file_obj->rename_display_file_name($new_file_name);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK;");
+ print "ERROR: Rename file failed.";
+ exit;
+ }
+ }
+ }
+
+ ACSDB::_do_query("COMMIT;");
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ // ̾Á°Êѹ¹°ìÍ÷¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $controller->forward('User', 'RenameFolderList');
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹°ìÍ÷
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class RenameFolderListAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ɬ¿Ü¥Á¥§¥Ã¥¯
+ // Validator ¤Ç¤Ç¤¤Ê¤¤¥Á¥§¥Ã¥¯¤Ï¤³¤³¤Ç¹Ô¤¦
+ if (!$request->getParameter('selected_folder') && !$request->getParameter('selected_file')) {
+ // ¥¨¥é¡¼¤Î¾ì¹ç¡¢½èÍý½ªÎ»
+ return $this->setError($controller, $request, $user, 'selected_folder', ACSMsg::get_msg('User', 'RenameFolderListAction.class.php' ,'M001'));
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $target_user_community_id = $request->getParameter('id');
+ // ÂоݤȤʤë¥Õ¥©¥ë¥ÀID¤ò¼èÆÀ
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤Î½êͼԾðÊó¼èÆÀ
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($target_user_community_id);
+ // ¥Õ¥©¥ë¥À¾ðÊó¼èÆÀ
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('user_folder_obj', $user_folder_obj);
+
+ // ̾Á°Êѹ¹Âоݤò¼èÆÀ
+ // ¥Õ¥©¥ë¥À
+ $selected_folder_obj_array = array(); // View ¤Ë¤ï¤¿¤¹Êѹ¹ÂоݤΥե©¥ë¥À
+ $selected_folder_row_array = array();
+ $selected_folder_array = $request->getParameter('selected_folder');
+ if ($selected_folder_array) {
+ foreach ($selected_folder_array as $selected_folder_id) {
+ $_selected_folder_obj = $user_folder_obj->folder_obj->get_folder_obj($selected_folder_id);
+ array_push($selected_folder_obj_array, $_selected_folder_obj);
+ }
+ }
+
+ // ¥Õ¥¡¥¤¥ë
+ $selected_file_obj_array = array(); // View ¤Ë¤ï¤¿¤¹Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $selected_file_row_array = array();
+ $selected_file_array = $request->getParameter('selected_file');
+ if ($selected_file_array) {
+ foreach ($selected_file_array as $selected_file_id) {
+ $_selected_file_obj = $user_folder_obj->folder_obj->get_file_obj($selected_file_id);
+ array_push($selected_file_obj_array, $_selected_file_obj);
+ }
+ }
+
+ // set
+ $request->setAttribute('selected_folder_obj_array', $selected_folder_obj_array);
+ $request->setAttribute('selected_file_obj_array', $selected_file_obj_array);
+
+ return View::INPUT;
+ }
+
+ function handleError () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ /* ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥»¥Ã¥·¥ç¥ó¤Ë¥»¥Ã¥È */
+ $this->sendError($controller, $request, $user);
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $folder_action");
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+// ÍúÎò¥Õ¥¡¥¤¥ëÉü³è
+// $Id: RestoreHistoryFileAction.class.php,v 1.2 2006/11/20 08:44:25 w-ota Exp $
+
+class RestoreHistoryFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
+
+ // set
+ $request->setAttribute('file_info_row', $file_info_row);
+ $request->setAttribute('file_history_row', $file_history_row);
+
+ return View::SUCCESS;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_history_id = $request->getParameter('file_history_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_row = ACSFileHistory::get_file_history_row($file_history_id);
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ // ¥Õ¥¡¥¤¥ëÉü³è½èÍý
+
+ // ¥Õ¥©¥ë¥Àobj
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // file_info¹¹¿·
+ $ret = $folder_obj->restore_history_file($file_info_row, $file_history_row);
+
+ if (!$ret) {
+ print "ERROR: Restore file failed.";
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history($file_info_row, $acs_user_info_row['user_community_id'], $form['comment'], ACSMsg::get_mst('file_history_operation_master','D0301'));
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail');
+ $file_detail_url .= '&id=' . $target_user_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $file_detail_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¸¡º÷¡¡Action¥¯¥é¥¹
+ *
+ * SearchDiaryAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchDiaryAction.class.php,v 1.3 2006/11/20 08:44:25 w-ota Exp $
+
+class SearchDiaryAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+ // ¸ø³«ÈϰϤΥꥹ¥È¥Ç¡¼¥¿
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D21'));
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchFolderAction.class.php,v 1.3 2006/12/18 07:42:15 w-ota Exp $
+
+class SearchFolderAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $user_community_id = $request->ACSgetParameter('id');
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($request->getParameter('id'));
+
+ $form = $request->ACSgetParameters();
+
+ // ¸¡º÷»þ
+ if ($form['search']) {
+ $folder_row_array = array();
+ $file_info_row_array = array();
+
+ // ¥Õ¥©¥ë¥À¸¡º÷
+ if ($form['target'] != 'file') {
+ $folder_row_array = ACSUserFolder::search_folder_row_array($user_community_id, $form);
+ }
+ // ¥Õ¥¡¥¤¥ë¸¡º÷
+ if ($form['target'] != 'folder') {
+ $file_info_row_array = ACSUserFolder::search_file_info_row_array($user_community_id, $form);
+ }
+
+ foreach ($folder_row_array as $index => $folder_row) {
+ $target_folder_obj = new ACSUserFolder($user_community_id, $acs_user_info_row, $folder_row['folder_id']);
+ $folder_row_array[$index]['update_date'] = $target_folder_obj->folder_obj->get_update_date_yyyymmddhmi();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $folder_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $folder_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($folder_row_array[$index]['open_level_code']);
+ $folder_row_array[$index] = array_merge($folder_row_array[$index], $open_level_master_row);
+ $folder_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ $folder_row_array[$index]['path_array'] = $path_array;
+ }
+
+ foreach ($file_info_row_array as $index => $file_info_row) {
+
+ $target_folder_obj = new ACSUserFolder($user_community_id, $acs_user_info_row, $file_info_row['folder_id']);
+ $target_file_obj = new ACSFile($file_info_row);
+
+ $file_info_row_array[$index]['file_size'] = $target_file_obj->get_file_size_kb();
+ $file_info_row_array[$index]['update_date'] = $target_file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row_array[$index]['is_root_folder'] = $target_folder_obj->folder_obj->get_is_root_folder();
+
+ // ¸ø³«¥ì¥Ù¥ë
+ $file_info_row_array[$index]['open_level_code'] = $target_folder_obj->folder_obj->get_open_level_code();
+ $file_info_row_array[$index]['open_level_name'] = $target_folder_obj->folder_obj->get_open_level_name();
+ $open_level_master_row = ACSAccessControl::get_open_level_master_row($file_info_row_array[$index]['open_level_code']);
+ $file_info_row_array[$index] = array_merge($file_info_row_array[$index], $open_level_master_row);
+ $file_info_row_array[$index]['trusted_community_row_array'] = $target_folder_obj->folder_obj->get_trusted_community_row_array();
+
+ // ¥Ñ¥¹
+ $path_folder_obj_array = $target_folder_obj->get_path_folder_obj_array();
+ $path_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj_index => $path_folder_obj) {
+ if ($path_folder_obj_index != 0) {
+ array_push($path_array, $path_folder_obj->get_folder_name());
+ }
+ }
+ array_push($path_array, $file_info_row['display_file_name']);
+ $file_info_row_array[$index]['path_array'] = $path_array;
+ }
+ }
+
+ // set
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('form', $form);
+ $request->setAttribute('folder_row_array', $folder_row_array);
+ $request->setAttribute('file_info_row_array', $file_info_row_array);
+
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¸¡º÷·ë²Ì¡¡Action¥¯¥é¥¹
+ *
+ * SearchResultDiaryAction.class.php
+ * @package acs/webapp/module/User/Action
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchResultDiaryAction.class.php,v 1.5 2006/12/08 05:06:42 w-ota Exp $
+
+class SearchResultDiaryAction extends BaseAction
+{
+ // POST ¸¡º÷¥Ü¥¿¥ó¤Î½èÍý
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($user_community_id);
+
+ //mode¡¡²èÌ̤ÎÁ«°Ü¤ò¼èÆÀ¤¹¤ë
+ $move_id = $request->getParameter('move_id');
+
+ // ²èÌ̾å¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ if ($move_id == 1) {
+ $form = $request->getParameters('search_form_default');
+ } else if($move_id == 2) {
+ $form = $request->getParameters('search_form_new');
+ }
+
+ // form¤Î¾ðÊó¤Ë½¾¤¤¸¡º÷¤ò¹Ô¤¦
+ if ($move_id > 0) {
+ $err_str = "";
+ /* Array
+ [id] => 1000
+ [move_id] => 2
+ [q_text] => ¸¡º÷¾ò·ï //¾ò·ï¡Ê¢¨É¬¿Ü¡Ë
+ [search_title] => title_in_serch //·ï̾¤òÁªÂò
+ [search_all] => subject_in_serch //ËÜʸ¤òÁªÂò
+ [open_level_code] => 00 //¸ø³«ÈÏ°Ï¡Ê00¤ÏÁªÂò¤Ê¤·¡Ë¡Ê¢¨É¬¿Ü¡Ë
+ [search_all_about] => all_in_serch //¤¹¤Ù¤Æ¤ÎÆüµ¤òÁªÂò
+ */
+ // ------------ ¸¡º÷¾ðÊó¤Î¼èÆÀ¡ÊÃí°Õ¡ª¥Ð¥¤¥Èñ°Ì¤Ç½èÍý¡Ë
+ for ($i = 1; $i < 3; $i++) {
+ $str_where_create[$i] = ACSDiary::set_diary_where_list($form,$i);
+ if ($str_where_create[$i]['err_str']) {
+ $err_str = $str_where_create[$i]['err_str']; //where¶ç¤Î°ìÉô¤¬ºîÀ®¤Ç¤¤Ê¤¤¥ª¥Ú¥ì¡¼¥¿¥ß¥¹
+ if ($err_str != '') {
+ break;
+ }
+ } else {
+ $str_where[$i] = $str_where_create[$i]['like_sql'];
+ }
+ }
+ //¸ø³«ÈϰϤÏÊÌ»ØÄê
+ $str_open_level_code = '00';
+ if ($form['open_level_code'] != '00') { //¸ø³«ÈϰϤòÁªÂò¤·¤Æ¤¤¤ë¾ì¹ç
+ $str_open_level_code = $form['open_level_code'] ;
+ }
+
+ // ------------
+ // db¸¡º÷½èÍý and or £²²ó¹Ô¤¦
+ if (!$err_str) {
+ $diary_row_array_result = ACSDiary::get_diary_where_array($str_where[1],$str_open_level_code,array());
+ //Ê£¹ç¾ò·ï¤Î¥µ¥Þ¥ê
+ //and´°Á´°ìÃפò¾Ê¤¤¤¿Æüµ¤«¤éorÉôʬ°ìÃפò¸¡º÷¤¹¤ë
+ if ($str_where_create[1]['str_count'] == 2 || $str_where_create[2]['str_count'] == 2) {
+ $str_where_create['not_id'] = array();
+ foreach ($diary_row_array_result as $index => $diary_row) {
+ array_push($str_where_create['not_id'], $diary_row['diary_id']);
+ }
+ $diary_row_array_not = ACSDiary::get_diary_where_array(
+ $str_where[2],$str_open_level_code,$str_where_create['not_id']);
+ foreach ($diary_row_array_not as $index => $diary_row) {
+ array_push($diary_row_array_result, $diary_row);
+ }
+ }
+ if (!$diary_row_array_result) {
+ //$err_str = "³ºÅö¤¹¤ë¾ðÊ󤬤¢¤ê¤Þ¤»¤ó";
+ $err_str = ACSMsg::get_msg('User', 'SearchResultDiaryAction.class.php' ,'M001');
+ } else {
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ foreach ($diary_row_array_result as $index => $diary_row) {
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row_array_result[$index]['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+ }
+ }
+ }
+
+ $request->setAttribute('diary_row_array_result',$diary_row_array_result);
+ $request->setAttribute('err_str',$err_str);
+ $request->setAttribute('form_pre',$form);
+ }
+
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D10'),
+ ACSMsg::get_mst('contents_type_master','D21'));
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+
+ // set
+ $user->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $request->setAttribute('target_user_info_row', $target_user_info_row);
+ $request->setAttribute('diary_row_array', $diary_row_array);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+?>
--- /dev/null
+<?php
+// $Id: SearchUserAction.class.php,v 1.5 2006/11/20 08:44:25 w-ota Exp $
+
+class SearchUserAction extends BaseAction
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $form = $request->ACSgetParameters();
+
+ // ¸¡º÷»þ
+ if ($form['search']) {
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+
+ if ($acs_user_info_row['is_acs_user']) {
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î¥¢¥¯¥»¥¹
+ $user_info_row_array = ACSUser::search_user_info_row_array($form, array(ACSMsg::get_mst('open_level_master','D01'), ACSMsg::get_mst('open_level_master','D02')));
+ // ¼«¸Ê¾Ò²ð
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['contents_row_array']['community_profile'] =
+ ACSCommunity::get_contents_row($user_info_row['user_community_id'], ACSMsg::get_mst('contents_type_master','D08'));
+ }
+ } else {
+ // °ìÈ̥桼¥¶¤Î¥¢¥¯¥»¥¹
+ $user_info_row_array = ACSUser::search_user_info_row_array($form, array(ACSMsg::get_mst('open_level_master','D01')));
+ // ¼«¸Ê¾Ò²ð
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['contents_row_array']['community_profile'] =
+ ACSCommunity::get_contents_row($user_info_row['user_community_id'], ACSMsg::get_mst('contents_type_master','D07'));
+ }
+ }
+
+ // set
+ $request->setAttribute('user_info_row_array', $user_info_row_array);
+ }
+
+ // set
+ $request->setAttribute('form', $form);
+ return View::INPUT;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡action¥¯¥é¥¹
+ * ¥Ç¥¶¥¤¥óÁªÂò
+ * @package acs/webapp/modules/User/action
+ * SelectDesignAction
+ * @author teramoto
+ * @since PHP 4.0
+ */
+// $Id: SelectDesignAction.class.php,v 1.1 2007/03/27 02:12:41 w-ota Exp $
+
+class SelectDesignAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ɽ¼¨ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $acs_user_info_row['user_community_id'];
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Ç¥¶¥¤¥ó¾ðÊó¼èÆÀ
+ $select_design_row_array =
+ ACSCss::get_style_selection_list_array(
+ ACSMsg::get_lang(), ACS_SELECTION_CSS_DIR );
+
+ //$style_url = ACSSystemConfig::get_keyword_value(
+ // ACSMsg::get_mst('system_config_group','D01'), 'DESIGN_STYLE_CSS_URL');
+ $style_url = ACS_SELECTION_CSS_DIR;
+
+ // ÀßÄêºÑ¤Î¥Þ¥¤¥Ú¡¼¥¸¥Ç¥¶¥¤¥ó¤ò¼èÆÀ¤¹¤ë
+ $selection_css_row = ACSCommunity::get_contents_row($user_community_id,
+ ACSMsg::get_mst('contents_type_master','D53'));
+ $selection_css = $selection_css_row['contents_value'] == '' ?
+ ACS_DEFAULT_SELECTION_CSS_FILE : $selection_css_row['contents_value'];
+
+ // set
+ $request->setAttribute('style_url', $style_url);
+ $request->setAttributeByRef('acs_user_info_row', $acs_user_info_row);
+ $request->setAttributeByRef('select_design_row_array', $select_design_row_array);
+ $request->setAttributeByRef('user_community_id', $user_community_id);
+ $request->setAttribute('selection_css', $selection_css);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ¹¹¿·ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $acs_user_info_row['user_community_id'];
+
+ $form = $request->ACSGetParameters();
+
+ // ¥Ç¥¶¥¤¥ó¤ÎÅÐÏ¿¼Â¹Ô
+ $ret = ACSUser::set_design($acs_user_info_row,$form['css_file']);
+
+ if ($ret) {
+ // ½ñ¤¹þ¤ß¸å¡¢GET¤Î½èÍý¤Ø
+ header("Location: ./");
+ }
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Ëܿͤǡ¢LDAPǧ¾Ú°Ê³°¤Î¾ì¹ç¤ÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+
+ function validate () {
+ return TRUE;
+ }
+
+ function registerValidators (&$validatorManager) {
+ /* ɬ¿Ü¥Á¥§¥Ã¥¯ */
+ parent::regValidateName($validatorManager,
+ "css_file",
+ true,
+ ACSMsg::get_msg('User', 'SelectDesignAction.class.php', 'M001'));
+ }
+
+ function handleError () {
+ // ÆþÎϲèÌÌɽ¼¨
+ return $this->getDefaultView();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: SetOpenLevelForProfileAction.class.php,v 1.3 2006/11/20 08:44:25 w-ota Exp $
+
+class SetOpenLevelForProfileAction extends BaseAction
+{
+ // GET
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ // ÂоݤȤʤëcontents_key¤ò¼èÆÀ
+ $contents_key = $request->ACSgetParameter('contents_key');
+ // ÂоݤȤʤ륳¥ó¥Æ¥ó¥Ä¼ïÊÌ¥³¡¼¥É¤ò¼èÆÀ
+ $contents_type_code = $request->ACSgetParameter('contents_type_code');
+
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¸ø³«ÈÏ°Ï
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(
+ ACSMsg::get_mst('community_type_master','D10'), $contents_type_master_array[$contents_type_code]);
+ if ($acs_user_info_row['is_acs_user']) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($user_community_id);
+ } else {
+ $friends_group_row_array = array();
+ }
+
+ // set
+ $request->setAttribute('contents_key', $contents_key);
+ $request->setAttribute('contents_type_code', $contents_type_code);
+ $request->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $request->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ return View::SUCCESS;
+ }
+
+ function isSecure () {
+ return false;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// ¥Õ¥¡¥¤¥ë¹¹¿·
+// $Id: UpdateFileAction.class.php,v 1.3 2006/11/20 08:44:25 w-ota Exp $
+
+class UpdateFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+ // set
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ // ¥Õ¥¡¥¤¥ë¹¹¿·½èÍý
+ if ($_FILES['new_file']['tmp_name'] != '') {
+ // ¥Õ¥¡¥¤¥ëobj
+ $file_obj = ACSFile::get_upload_file_info_instance_for_update($_FILES['new_file'],
+ $target_user_community_id,
+ $acs_user_info_row['user_community_id'],
+ $file_id
+ );
+
+ // ¥Õ¥©¥ë¥Àobj
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¤¬1·ï¤âÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï"ºîÀ®"¤òÅÐÏ¿¤¹¤ë
+ $file_history_row_array = ACSFileHistory::get_file_history_row_array($file_id);
+ if (count($file_history_row_array) == 0) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $file_history_id = ACSFileHistory::set_file_history(
+ $file_info_row,
+ $file_info_row['entry_user_community_id'],
+ '',
+ ACSMsg::get_mst('file_history_operation_master','D0101')
+ );
+ }
+
+ // file_info¹¹¿·, ¥Õ¥¡¥¤¥ëÊݸ
+ $ret = $folder_obj->update_file($file_obj);
+ }
+
+ if (!$ret) {
+ print "ERROR: Upload file failed.";
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history(
+ $file_info_row,
+ $acs_user_info_row['user_community_id'],
+ $form['comment'],
+ ACSMsg::get_mst('file_history_operation_master','D0201')
+ );
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ØÁ«°Ü
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail');
+ $file_detail_url .= '&id=' . $target_user_community_id;
+ $file_detail_url .= '&file_id=' . $file_id;
+ $file_detail_url .= '&folder_id=' . $target_user_community_folder_id;
+ header("Location: $file_detail_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É
+ *
+ * @author $Author: w-ota $
+ * @version $Revision: 1.8 $ $Date: 2006/11/20 08:44:25 $
+ */
+//require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+//require_once(ACS_CLASS_DIR . 'ACSUserFolder.class.php');
+class UploadFileAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // ¾¥æ¡¼¥¶¤Î¥Ç¡¼¥¿¤¬¸«¤¨¤Ê¤¤¤è¤¦¥Á¥§¥Ã¥¯
+ if (!$this->get_execute_privilege()) {
+ // ¤³¤Î¥Ú¡¼¥¸¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ // ¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+ $file_contents_type_master_array = ACSDB::get_master_array('file_contents_type');
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¼ïÊ̤ÎÏ¢ÁÛÇÛÎó¤ò¼èÆÀ¤¹¤ë
+ $file_contents_type_master_row_array_array = ACSFileDetailInfo::get_file_contents_type_master_row_array_array();
+
+ // set
+ $request->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ $request->setAttribute('file_category_master_array', $file_category_master_array);
+ $request->setAttribute('file_contents_type_master_array', $file_contents_type_master_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+ // form
+ $form = $request->ACSGetParameters();
+
+ /* ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É½èÍý */
+
+ $ret = 0;
+ if ($_FILES['new_file']['tmp_name'] != '') {
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_upload_file_info_instance($_FILES['new_file'],
+ $target_user_community_id,
+ $acs_user_info_row['user_community_id']);
+
+ // ¥Õ¥©¥ë¥À¤Ë¥Õ¥¡¥¤¥ëÄɲýèÍý
+ $user_folder_obj = new ACSUserFolder($target_user_community_id,
+ $acs_user_info_row,
+ $target_user_community_folder_id);
+ $folder_obj = $user_folder_obj->get_folder_obj();
+ $ret = $folder_obj->add_file($file_obj);
+ }
+
+ if (!$ret) {
+ print "ERROR: Upload file failed.";
+ }
+
+ if ($ret) {
+ // ¿·µ¬ÅÐÏ¿¤·¤¿¥Õ¥¡¥¤¥ëID
+ $file_id = $file_obj->get_file_id();
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊóÅÐÏ¿
+ if ($ret) {
+ $file_info_row = ACSFileInfoModel::select_file_info_row($file_id);
+ $ret = ACSFileHistory::set_file_history(
+ $file_info_row,
+ $acs_user_info_row['user_community_id'],
+ $form['comment'],
+ ACSMsg::get_mst('file_history_operation_master','D0101'));
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóÅÐÏ¿
+ if ($form['file_category_code'] != '' && $ret) {
+ $file_contents_type_list_row_array = ACSFileDetailInfo::get_file_contents_type_list_row_array($form['file_category_code']);
+ $file_contents_form_array = array();
+ foreach ($file_contents_type_list_row_array as $file_contents_type_list_row) {
+ $file_contents_form = array(
+ 'file_id' => $file_id,
+ 'file_contents_type_code' => $file_contents_type_list_row['file_contents_type_code'],
+ 'file_contents_value' => $form['file_contents_array'][$file_contents_type_list_row['file_contents_type_code']]
+ );
+ array_push($file_contents_form_array, $file_contents_form);
+ }
+
+ $ret = ACSFileDetailInfo::set_file_detail_info($file_id, $form['file_category_code'], $file_contents_form_array);
+ }
+
+
+ // ¥Õ¥©¥ë¥Àɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤·
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $folder_action = $this->getControllerPath('User', 'Folder');
+ $folder_action .= '&id=' . $target_user_community_id;
+ $folder_action .= '&folder_id=' . $target_user_community_folder_id;
+
+ header("Location: $folder_action");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // Èó¥í¥°¥¤¥ó¥æ¡¼¥¶¡¢ËܿͰʳ°¤ÏNG
+ if ($user->hasCredential('PUBLIC_USER')
+ || !$user->hasCredential('USER_PAGE_OWNER')) {
+ return false;
+ }
+ return true;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿¥¢¥Ã¥×¥í¡¼¥É
+ * UploadImageAction.class.php
+ *
+ * @author $Author: y-yuki $
+ * @version $Revision: 1.7 $ $Date: 2008/03/24 07:00:36 $
+ * @import ACSFile.class.php
+ * @import ACSCommunityImageFileModel.class.php
+ * @import ACSFileInfoModel.class.php
+ */
+require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+require_once(ACS_CLASS_DIR . 'ACSCommunityImageFileModel.class.php');
+require_once(ACS_CLASS_DIR . 'ACSFileInfoModel.class.php'); //ver1.1
+
+class UploadProfileImageAction extends BaseAction
+{
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_community_id = $request->getParameter('id');
+ $image_new_mode = $request->getParameter('image_new_mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $file_id = $request->getParameter('file_id');
+ $open_level_code = $request->getParameter('open_level_code');
+
+ if ($_FILES['new_file']["name"] == "") {
+ print "ERROR: This is not imagefile format.";
+ }
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ $file_obj = ACSFile::get_upload_file_info_instance(
+ $_FILES['new_file'],
+ $target_user_community_id,
+ $acs_user_info_row['user_community_id']);
+
+ //¥Õ¥¡¥¤¥ë¤Î¼ïÎà¥Á¥§¥Ã¥¯
+ $image_check = $file_obj->is_image_file();
+ if (!$image_check) {
+ print "ERROR: This is not imagefile format.";
+ }
+
+ /* ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É½èÍý */
+ // ¥Õ¥¡¥¤¥ë¤ÎÊݸ
+ $ret = $file_obj->save_upload_file('PROFILE');
+
+ ACSDB::_do_query("BEGIN");
+
+ // ÄɲäΤß
+ $ret = $file_obj->add_file();
+
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Update image failed.:file_info";
+
+ } else {
+ // ¾å½ñ¤¤µ¤ì¤ë¥Õ¥¡¥¤¥ëID¤ò¼èÆÀ¤¹¤ë
+ $delete_file_id = ACSCommunityImageFileModel::get_file_id_for_open_level($target_user_community_id, $open_level_code);
+
+ // °ìÅÙºï½ü¤¹¤ë¡Ê¶õ¿¶¤ê¤âOK¡Ë
+ $ret = ACSCommunityImageFileModel::delete_community_image_with_open_level(
+ $file_obj, $open_level_code);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Update image failed.:image_file";
+ } else {
+
+ //community_image_file¥Æ¡¼¥Ö¥ë¤Ø¤ÎÄɲÃ
+ $ret = ACSCommunityImageFileModel::put_community_image_with_open_level(
+ $file_obj, $open_level_code);
+ if (!$ret) {
+ ACSDB::_do_query("ROLLBACK");
+ print "ERROR: Update image failed.:image_file";
+ } else {
+
+ // ¾å½ñ¤¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì¹ç¢ªºï½ü
+ if ($delete_file_id) {
+ $delete_file_obj = ACSFile::get_file_info_instance($delete_file_id);
+ $delete_file_obj->delete_file();
+ }
+
+ ACSDB::_do_query("COMMIT"); //Äɲå⡼¥É¤Î¥³¥ß¥Ã¥È
+ }
+ }
+ }
+
+ /* ɽ¼¨¥¢¥¯¥·¥ç¥ó¸Æ¤Ó½Ð¤· */
+ $image_change_url = $this->getControllerPath('User','EditProfileImage');
+ $image_change_url .= '&id=' . $target_user_community_id;
+
+ header("Location: $image_change_url");
+ }
+
+ function getRequestMethods () {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.3 $ $Date: 2008/03/24 07:00:36 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSFile.class.php');
+class UserImageAction extends BaseAction
+{
+ function getDefaultView() {
+ $this->execute();
+ }
+
+
+ function execute () {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $target_user_community_id = $request->getParameter('id');
+ $view_mode = $request->getParameter('mode');
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $target_user_info_row = ACSUser::get_user_profile_row($target_user_community_id);
+ $is_permitted = false;
+
+ /* ¥¢¥¯¥»¥¹¸¢¥Á¥§¥Ã¥¯ */
+ // ¥Þ¥¤¥Ú¡¼¥¸¤¬±ÜÍ÷²Äǽ¤«¥Á¥§¥Ã¥¯¤¹¤ë
+ // ºï½ü¥Õ¥é¥°¡¢Á´ÂΤθø³«ÈϰϤò¥Á¥§¥Ã¥¯
+
+ /* ¼Ì¿¿É½¼¨ */
+ // ¥Õ¥¡¥¤¥ë¾ðÊó¼èÆÀ
+ // (1) °ìÈ̥桼¥¶(³°Éô¥æ¡¼¥¶)¤«¤É¤¦¤«
+ if (!$acs_user_info_row['is_acs_user']) {
+
+ $image_file_id = $target_user_info_row['file_id_ol01'];
+
+ } else {
+ // (2) ¥í¥°¥¤¥ó¥æ¡¼¥¶¤«¤É¤¦¤«
+ $image_file_id = $target_user_info_row['file_id_ol02'];
+
+ // (3) ͧ¿Í¤«¤É¤¦¤«
+ if (ACSUser::is_in_friends_id_array($acs_user_info_row, $target_user_info_row['user_community_id'])) {
+ $image_file_id = $target_user_info_row['file_id_ol05'];
+
+ }
+
+ // (4) Ëܿͤ«¤É¤¦¤«
+ if ($acs_user_info_row['user_id'] == $target_user_info_row['user_id']) {
+ $image_file_id = $target_user_info_row['file_id_ol05'];
+
+ }
+
+ // (5) ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¤É¤¦¤«
+ if (ACSAccessControl::is_system_administrator($acs_user_info_row)) {
+ $image_file_id = $target_user_info_row['file_id_ol05'];
+
+ }
+ }
+
+ if ($image_file_id) {
+ $file_obj = ACSFile::get_file_info_instance($image_file_id);
+ $ret = $file_obj->view_image($view_mode);
+ } else {
+ $image_url = ACSUser::get_default_image_url($view_mode);
+ header("Location: $image_url");
+ }
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+
+ function getRequestMethods () {
+ return REQ_GET;
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: WaitingListAction.class.php,v 1.11 2006/11/20 08:44:25 w-ota Exp $
+
+class WaitingListAction extends BaseAction
+{
+ // GET
+ function getDefaultView() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ if (!$this->get_execute_privilege()) {
+ $controller->forward(SECURE_MODULE, SECURE_ACTION);
+ return;
+ }
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $user_community_id = $request->ACSgetParameter('id');
+ $waiting_type_code = $request->ACSgetParameter('waiting_type_code');
+ $waiting_status_code = $request->ACSgetParameter('waiting_status_code');
+
+ // ÂÔµ¡¼ïÊÌ¥Þ¥¹¥¿
+ $waiting_type_master_array = ACSDB::get_master_array('waiting_type');
+ // ÂÔµ¡¾õÂÖ¥Þ¥¹¥¿
+ $waiting_status_master_array = ACSDB::get_master_array('waiting_status');
+
+ $waiting_type_name = $waiting_type_master_array[$waiting_type_code];
+ $waiting_status_name = $waiting_status_master_array[$waiting_status_code];
+
+ // ÂÔµ¡¾ðÊó
+ $waiting_row_array = ACSWaiting::get_waiting_row_array($user_community_id, $waiting_type_name, $waiting_status_name);
+ if ($waiting_type_name == ACSMsg::get_mst('waiting_type_master','D30')) {
+ foreach ($waiting_row_array as $index => $waiting_row) {
+ $waiting_row_array[$index]['entry_user_info_row'] = ACSUser::get_user_info_row_by_user_community_id($waiting_row['entry_user_community_id']);
+ }
+ }
+
+ // set
+ $request->setAttribute('waiting_type_name', $waiting_type_name);
+ $request->setAttribute('waiting_row_array', $waiting_row_array);
+
+ return View::INPUT;
+ }
+
+ // POST
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // ÂоݤȤʤë¥æ¡¼¥¶¥³¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $form = $request->ACSgetParameters();
+
+ // ÂÔµ¡¾ðÊó
+ $waiting_row = ACSWaiting::get_waiting_row($form['waiting_id']);
+
+ // ACSDone
+ $done_obj = new ACSDone();
+
+
+ if ($form['accept_button']) {
+ // ¾µÇ§¥Ü¥¿¥ó²¡²¼»þ //
+ ACSDB::_do_query("BEGIN");
+
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D10')) {
+ $ret = ACSUser::set_friends($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {
+ $community_member_form = array(
+ 'community_id' => $waiting_row['waiting_community_id'],
+ 'user_community_id' => $waiting_row['community_id']
+ );
+ $ret = ACSCommunity::set_community_member($community_member_form);
+ }
+
+ if ($ret) {
+ // ¾µÇ§ºÑ¤ß¤ò¥»¥Ã¥È
+ $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master','D20'), $acs_user_info_row['user_community_id'], $form['reply_message']);
+ if ($ret) {
+ ACSDB::_do_query("COMMIT");
+
+ // À°¹çÀÊÝ»ý
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D10')) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲäÎÁÐÊý¸þ¤Î½ÅÊ£¤ò²ò½ü
+ ACSWaiting::update_waiting_for_add_friends($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {
+ // ¾·ÂԤνÅÊ£¤ò²ò½ü
+ ACSWaiting::update_waiting_for_invite_to_community($waiting_row['community_id'], $waiting_row['waiting_community_id']);
+ // »²²Ã¤Î½ÅÊ£¤ò²ò½ü
+ ACSWaiting::update_waiting_for_join_community($waiting_row['waiting_community_id'], $waiting_row['community_id']);
+ }
+
+ // ÊÖ¿®¥á¥Ã¥»¡¼¥¸
+ if ($form['reply_message'] != '') {
+ $ret = ACSWaiting::send_admission_accept_notify_mail($form['waiting_id']);
+ }
+
+ //$done_obj->set_title("$waiting_row[waiting_type_name] ¾µÇ§´°Î»");
+ $done_obj->set_title(
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'FIN_ADM'),
+ array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
+
+ $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'M001'));
+ } else {
+ $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'M002'));
+ }
+ } else {
+ ACSDB::_do_query("ROLLBACK");
+ }
+
+ } elseif ($form['reject_button']) {
+ // µñÈݥܥ¿¥ó²¡²¼»þ //
+ $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master','D30'), $acs_user_info_row['user_community_id']);
+ if ($ret) {
+ //$done_obj->set_title("$waiting_row[waiting_type_name] µñÈÝ´°Î»");
+ $done_obj->set_title(
+ ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'FIN_DIS'),
+ array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
+
+ $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'M001'));
+ } else {
+ $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'M002'));
+ }
+ }
+
+ $done_obj->add_link(ACSMsg::get_msg('User', 'WaitingListAction.class.php' ,'M003'), './');
+
+ $request->setAttribute('done_obj', $done_obj);
+ $controller->forward('Common', 'Done');
+ }
+
+ function getRequestMethods() {
+ return Request::POST;
+ }
+
+ function isSecure () {
+ return false;
+ }
+
+ function getCredential() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ return array('USER_PAGE_OWNER');
+ }
+
+ function get_execute_privilege () {
+ $context = $this->getContext();
+ $user = $context->getUser();
+
+ // ËܿͤÏOK
+ if ($user->hasCredential('USER_PAGE_OWNER')) {
+ return true;
+ }
+ return false;
+ }
+}
+
+?>
--- /dev/null
+[module]
+ ENABLED = "On"
+ TITLE = "ACS User Module"
+ VERSION = "1.0"
+ NAME = "User"
+ AUTHOR = "acs"
+ HOMEPAGE = ""
+ UPDATE_URL = ""
+ DESCRIPTION = "Academic Community System User module"
+
--- /dev/null
+<?php
+// $Id: AddFriends.tpl.php,v 1.4 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<span class="sub_title"><?= ACSMsg::get_msg("User", "AddFriends.tpl.php",'M001') ?></span><br><br>
+
+<?php
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "AddFriends.tpl.php",'ADF'), array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+?><br>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<?= ACSMsg::get_msg("User", "AddFriends.tpl.php",'M002') ?> :<br>
+<textarea name="message" cols="50" rows="4"></textarea><br>
+<br>
+<input type="submit" value="<?= ACSMsg::get_msg("User", "AddFriends.tpl.php",'M003') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "AddFriends.tpl.php",'M004') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+
+</form>
--- /dev/null
+<?php
+// $Id: ChangePassword.tpl.php,v 1.3 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "ChangePassword.tpl.php",'M001') ?></div>
+<br><br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "ChangePassword.tpl.php",'M002') ?></td>
+<td bgcolor="#ffffff">
+<input type="password" name="passwd" size="20"><br>
+<input type="password" name="passwd2" size="20"> <?= ACSMsg::get_msg("User", "ChangePassword.tpl.php",'M003') ?><br>
+</td>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "ChangePassword.tpl.php",'M004') ?>"><br>
+</form>
+<br>
--- /dev/null
+<?php
+// $Id: CommunityList.tpl.php,v 1.7 2007/03/28 02:51:47 w-ota Exp $
+?>
+
+<?php
+echo "<div class=\"ttl\">";
+if ($this->_tpl_vars['is_self_page']) {
+ echo ACSMsg::get_msg("User", "CommunityList.tpl.php",'M001');
+} else {
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_top_page_url'] ."\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "CommunityList.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+ echo ACSMsg::get_msg("User", "CommunityList.tpl.php",'M002');
+}
+
+echo " (" .$this->_tpl_vars['community_row_array_num'] .")";
+echo "</div><br>\n";
+
+?>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table width="650" border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td bgcolor="#ffffff">
+<table width="100%" border="0" cellspacing="10" cellpadding="5">
+<?php
+if (count($this->_tpl_vars['community_row_array'])) {
+ $count = 0;
+ foreach ($this->_tpl_vars['community_row_array'] as $community_row) {
+ if ($count % 4 == 0) {
+ echo "<tr>";
+ }
+ echo "<td align=\"center\">";
+ echo "<a href=\"$community_row[top_page_url]\"><img src=\"$community_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$community_row[top_page_url]\">" . htmlspecialchars($community_row['community_name']) . "</a>";
+ echo "(" . $community_row['community_member_num'] . ")";
+ echo "</td>";
+ if ($count % 4 == 3) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td><?= ACSMsg::get_msg('User', 'CommunityList.tpl.php','M003') ?></td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+</tr></td>
+</table>
+<br>
--- /dev/null
+<?php
+// $Id: CreateFriendsGroup.tpl.php,v 1.4 2007/03/01 09:01:43 w-ota Exp $
+
+function is_friends_group($user_community_id, $friends_group_member_row_array) {
+ $ret = false;
+ foreach ($friends_group_member_row_array as $user_info_row) {
+ if ($user_community_id == $user_info_row['user_community_id']) {
+ $ret = true;
+ break;
+ }
+ }
+ return $ret;
+}
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "CreateFriendsGroup.tpl.php",'M001') ?></div><br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#99CC33">
+<tr><td bgcolor="#FFFFFF">
+<?= ACSMsg::get_msg("User", "CreateFriendsGroup.tpl.php",'M002') ?> : <input type="text" name="community_name" value="<?= htmlspecialchars($this->_tpl_vars['form']['community_name']) ?>" size="30"><br>
+<br>
+<?php
+foreach ($this->_tpl_vars['friends_row_array'] as $user_info_row) {
+ echo "<input type=\"checkbox\" name=\"trusted_community_id_array[]\" value=\"$user_info_row[user_community_id]\"";
+ if (is_friends_group($user_info_row['user_community_id'], $this->_tpl_vars['friends_group_member_row_array'])) {
+ echo ' checked';
+ }
+ echo ">";
+ echo htmlspecialchars($user_info_row['user_name']);
+ echo " (" . htmlspecialchars($user_info_row['community_name']) . ")";
+ echo "<br>\n";
+}
+?>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "CreateFriendsGroup.tpl.php",'M003') ?>">
+</td></tr></table>
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/02 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+// ¥À¥¤¥¢¥ê¡¼
+// $Id: DeleteDiary.tpl.php,v 1.2 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<div class="sub_title">
+ <?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M003') ?><br>
+ <?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M004') ?><br><br>
+ <?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M005') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_diary_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M006') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "DeleteDiary.tpl.php",'M007') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/02 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+// ¥À¥¤¥¢¥ê¡¼ ¥³¥á¥ó¥È
+// $Id: DeleteDiaryComment.tpl.php,v 1.2 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<div class="sub_title">
+ <?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M003') ?><br>
+
+ <?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M004') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_diary_comment_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M005') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "DeleteDiaryComment.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['comment_back_url'] ?>'">
+</form>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M001') ?></div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M002') ?><br>
+<?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M004') ?><br>
+</div>
+
+<form name="delete_folder" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M005') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "DeleteFolder.tpl.php",'M006') ?>" onClick="history.back()">
+</form>
--- /dev/null
+<?php
+// $Id: DeleteFriends.tpl.php,v 1.4 2007/03/14 04:28:21 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "DeleteFriends.tpl.php","M001") ?></div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("User", "DeleteFriends.tpl.php","M002") ?><br>
+<?= ACSMsg::get_msg("User", "DeleteFriends.tpl.php","M003") ?><br>
+</div>
+
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td align="center" bgcolor="#ffffff">
+<a href="<?= $this->_tpl_vars['delete_user_info_row']['top_page_url'] ?>"><img src="<?= $this->_tpl_vars['delete_user_info_row']['image_url'] ?>" border="0"></a><br>
+<a href="<?= $this->_tpl_vars['delete_user_info_row']['top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['delete_user_info_row']['community_name']) ?></a>
+</td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteFriends.tpl.php","M004") ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "DeleteFriends.tpl.php","M005") ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+
+</form>
--- /dev/null
+<?php
+// $Id: DeleteFriendsGroup.tpl.php,v 1.2 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<span class="sub_title"><?= ACSMsg::get_msg("User", "DeleteFriendsGroup.tpl.php",'M001') ?></span><br>
+<br>
+<?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "DeleteFriendsGroup.tpl.php",'DELC'),array(
+ "{USER_NAME}" => $this->_tpl_vars['friends_group_row']['community_name'])); ?><br>
+<br>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<input type="submit" value=" OK ">
+<input type="button" value="<?= ACSMsg::get_msg("User", "DeleteFriendsGroup.tpl.php",'M003') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M001') ?></div>
+
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M002') ?><br>
+<?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M003') ?><br>
+<?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M004') ?><br>
+</div>
+
+<form name="delete_Message" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+// ºï½üÂоݤΥá¥Ã¥»¡¼¥¸
+foreach ($this->_tpl_vars['message_id_array'] as $message) {
+ print '<input type="hidden" name="selected_message[]" value="' . $message['message_id'] . '">';
+}
+?>
+</table>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M005') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "DeleteMessage.tpl.php",'M006') ?>" onClick="history.back()">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/2/14 ver1.0 |
+// |ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë¤¿¤á¤Î¥À¥¤¥¢¥í¥° |
+// +----------------------------------------------------------------------+
+//
+// $Id: DeleteProfileImage.tpl.php,v 1.4 2006/11/20 12:17:20 w-ota Exp $
+?>
+
+<div class="sub_title">
+ <?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M001') ?>
+</div>
+<br><br>
+
+<div class="confirm_msg">
+ <?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M002') ?><br>
+ <?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M003') ?><br>
+ <?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M004') ?><br><br>
+</div>
+
+<form name="delete_file" action="<?= $this->_tpl_vars['delete_image_url'] ?>" method="post" enctype="multipart/form-data">
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M005') ?>">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "DeleteProfileImage.tpl.php",'M006') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: w-ota v 1.5 2006/02/15 06:57:02 |
+// | update: akitsu 2006/2/28 ver1.0 |
+// | Diary top²èÌÌ |
+// +----------------------------------------------------------------------+
+// $Id: Diary.tpl.php,v 1.25 2007/03/30 05:27:23 w-ota Exp $
+?>
+
+<div class="ttl">
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ // ¼«Ê¬¤ÎÆüµ¤Ê¤é¤Ð¡¢¥ê¥ó¥¯¤Ï̵¤¤
+ echo ACSMsg::get_msg('User', 'Diary.tpl.php', 'M001');
+} else {
+ // ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'Diary.tpl.php', 'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+ echo ACSMsg::get_msg('User', 'Diary.tpl.php', 'M002');
+}
+?>
+<a href="<?= $this->_tpl_vars['link_page_url']['diary_rss_url'] ?>"><img src="<?php echo ACS_IMAGE_DIR . "rss.png" ?>" border=0></a>
+</div>
+<br>
+
+<?php
+// ³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+
+$value = '';
+if ($this->_tpl_vars['move_id'] == 3) {
+ $value['subject'] = $this->_tpl_vars['form']['subject'];
+ $value['body'] = $this->_tpl_vars['form']['body'];
+}
+?>
+
+<?php
+// ¥À¥¤¥¢¥ê¡¼¸¡º÷²èÌ̤Îɽ¼¨
+echo "<a class=\"ichiran3\" href=\"" .$this->_tpl_vars['link_page_url']['search_diary_url'] ."\">";
+echo ACSMsg::get_msg('User', 'Diary.tpl.php', 'M003');
+echo "</a>";
+?>
+<br>
+<br>
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+
+ // form
+ echo "<form action=\"" .$this->_tpl_vars['action_url']. "\" method=\"post\" name=\"diary_form\" enctype=\"multipart/form-data\">\n";
+
+ // table
+ echo "<table border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M004')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><input type=\"text\" name=\"subject\" value=\"" .$value['subject'] ."\" size=\"50\" style=\"width:400px\"></td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M005')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><textarea name=\"body\" cols=\"60\" rows=\"15\" style=\"width:600px\">";
+ echo htmlspecialchars($value['body']);
+ echo "</textarea></td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M006')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><input type=\"file\" name=\"new_file\" size=50 ></td>";
+ echo "</tr>\n";
+
+ // ¸ø³«ÈÏ°Ï
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M007')."</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<select name=\"open_level_code\" onchange=\"print_sub_menu(this)\">\n";
+
+ // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+ unset($selected);
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ if ($this->_tpl_vars['last_open_level_code']){
+ $selected[$this->_tpl_vars['last_open_level_code']] = ' selected';
+ } else if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+ }
+
+ // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"$open_level_master_row[open_level_code]\"{$selected[$open_level_master_row['open_level_code']]}>";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ echo "</select><br>\n";
+
+ // ³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+ if ($this->_tpl_vars['move_id'] == 3) {
+ unset($selected);
+ $selected[$this->_tpl_vars['form']['open_level_code']] = ' selected';
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×»ØÄê
+ echo "<div id=\"trusted_community_div\"></div>";
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "</table>\n";
+ echo "<br>\n";
+
+ // submit
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M008')."\">\n";
+ echo "</form>\n";
+ echo "<br>\n";
+ echo "<br>\n";
+}
+?>
+
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<script language="JavaScript">
+<!--
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+?>
+ window.onload = function () {
+ // ¸ø³«ÈϰϤΥǥե©¥ë¥ÈÁªÂò
+ select_obj = document.forms["diary_form"].elements["open_level_code"];
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text
+ if (selected_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D05') ?>') {
+ print_sub_menu(select_obj);
+ }
+ }
+<?
+}
+?>
+
+// ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤ÎÏ¢ÁÛÇÛÎó
+trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['friends_group_row_array'] as $friends_group_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$friends_group_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$friends_group_row[community_name]\", ";
+ $str .= "\"top_page_url\" : \"$friends_group_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+// ͧ¿Í¤Ë¸ø³«¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj) {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text
+
+ div_obj = document.getElementById("trusted_community_div");
+
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D05') ?>") {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="trusted_community_flag">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_flag";
+ }
+ input_obj.type = "radio";
+ input_obj.value = "0";
+ input_obj.defaultChecked = true;
+ input_obj.onclick = function () {
+ if (this.form.elements["trusted_community_id_array[]"]) {
+ if (this.form.elements["trusted_community_id_array[]"].value) {
+ // 1¤Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ this.form.elements["trusted_community_id_array[]"].checked = false;
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (i = 0; i < this.form.elements["trusted_community_id_array[]"].length; i++) {
+ this.form.elements["trusted_community_id_array[]"][i].checked = false;
+ }
+ }
+ }
+ }
+ new_cell.appendChild(input_obj);
+ // </td>
+
+ // <td>
+ new_cell = new_row.insertCell(1);
+ // text
+ new_cell.appendChild(document.createTextNode("<?= ACSMsg::get_msg('User', 'Diary.tpl.php', 'M009') ?>"));
+ new_cell.appendChild(document.createElement("br"));
+ // </td>
+ // </tr>
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.setAttribute("vAlign", "top");
+ if (document.all) {
+ // <input>
+ input_obj = document.createElement('<input name="trusted_community_flag">');
+ } else {
+ // <input>
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_flag";
+ }
+ input_obj.type = "radio";
+ input_obj.value = "1";
+ input_obj.defaultChecked = false;
+ new_cell.appendChild(input_obj);
+ // </td>
+
+ // <td>
+ new_cell = new_row.insertCell(1);
+ // text
+ new_cell.appendChild(document.createTextNode("<?= ACSMsg::get_msg('User', 'Diary.tpl.php', 'M010') ?>"));
+ new_cell.appendChild(document.createElement("br"));
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ input_obj.defaultChecked = false;
+ input_obj.onclick = function () {
+ // ³Æ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤¬¥¯¥ê¥Ã¥¯¤µ¤ì¤¿¤È¤¡¢
+ // ¡Ö¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¡×¤Î¥é¥¸¥ª¥Ü¥¿¥ó¤òÁªÂò¾õÂ֤ˤ¹¤ë
+ this.form.elements["trusted_community_flag"][1].checked = true;
+ }
+ new_cell.appendChild(input_obj);
+ // text
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+}
+// -->
+</script>
+
+<!--¡¡Á´ÂΤÎɽ¼¨ -->
+<table border="0" class="common_table"><tr><td valign="top">
+
+<!-- ¤Þ¤ºÆüµ¤Î°ìÍ÷ -->
+<!-- <table border="1" rules='groups' class="commmon_table" cellspacing=0> Àþ¤Îɽ¼¨¤Î¤¿¤á°ì»þ¥³¥á¥ó¥È²½-->
+
+<table class="commmon_table" border="0" cellspacing="0" rules="rows" width="400px">
+<?php
+foreach ($this->_tpl_vars['diary_row_array'] as $diary_row) {
+ if($diary_row['diary_delete_flag']=='f'){ //ºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ßɽ¼¨¤¹¤ë
+ //echo "<THEAD><tr bgcolor='#ccffcc'>\n";
+ echo "<tr bgcolor='#deeebd'>\n";
+ echo "<td>\n";
+ //¥¿¥¤¥È¥ë
+ if ($diary_row['diary_delete_flag']=='f') {
+ echo "<b>" .htmlspecialchars($diary_row['subject']) . "</b>";
+ } else {
+ echo "<b>deleted</b>";
+ }
+ // µÆþÆü
+ echo " " . $diary_row['post_date'] . "\n</td>\n";
+
+ // ºï½ü¥Ü¥¿¥ó
+ echo "<td align=\"right\" valign='top'>\n";
+ echo "<form>\n";
+ // ºï½ü¥Ü¥¿¥ó¤Îɽ¼¨¡¡¡Ü¼«Ê¬
+ if ($this->_tpl_vars['is_self_page'] && $diary_row['diary_delete_flag']=='f') {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M011')."\" onclick=\"location.href='$diary_row[diary_delete_url]'\">";
+ }
+ echo "\n</form>";
+ echo "\n</td>";
+ echo "</tr>\n";
+
+// ËÜʸÉôʬ¡Êºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ßɽ¼¨¡Ë
+ echo "<tr>\n";
+ echo "<td colspan=2>\n";
+ // ¸ø³«ÈÏ°Ï
+ echo "<table class=\"open_level_table\">\n<tr>\n<td>\n";
+ echo ACSMsg::get_msg('User', 'Diary.tpl.php', 'M007')." : " . htmlspecialchars($diary_row['open_level_name']);
+ if ($this->_tpl_vars['is_self_page'] && $diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && $diary_row['trusted_community_flag']) {
+ if (count($diary_row['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($diary_row['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_row['community_name'] != '') {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ }
+ echo " (" . htmlspecialchars($trusted_community_str) . ")";
+ } else {
+ echo " ".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M012');
+ }
+ }
+ echo "</td>\n";
+ echo "</tr>\n</table>\n";
+
+ // ¼Ì¿¿
+ if ($diary_row['file_url']) {
+ echo "<a href=\"javascript:w=window.open('" . $diary_row['file_url_alink'] . "','popUp','scrollbars=yes,resizable=yes');w.focus();\">\n";
+ echo "<img src=\"". $diary_row['file_url'] . "\" style=\"margin-top:10px;margin-bottom:10px\" BORDER=0></a><br>\n";
+ }
+ // ËÜʸ
+ echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($diary_row['body']))));
+ // ¥³¥á¥ó¥È¥ê¥ó¥¯
+ echo "\n<div align=\"right\">\n";
+ echo "<a href=\"" . $diary_row['diary_comment_url'] . "\">".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M013')."(" . $diary_row['diary_comment_num'] . ")</a>\n";
+ echo "</div>\n";
+ echo "</tr>\n";
+ }
+}
+?>
+</table>
+</td>
+<!-- ¤³¤³¤Þ¤ÇÆüµ¤Î°ìÍ÷ -->
+<td><br></td>
+<!-- ¤³¤³¤«¤éÆüµ¤Î¸ºß -->
+<td valign ="top">
+<table border="0"><tr valign ="top"><td>
+<!-- Calendarɽ¼¨ -->
+<?= $this->_tpl_vars['DiaryCalendar'] ?>
+</td></tr>
+
+<tr><td><br><br></td></tr>
+<tr><td>
+<?php
+if(!$this->_tpl_vars['diary_row_array']){
+ echo ACSMsg::get_msg('User', 'Diary.tpl.php', 'M014');
+}else{
+ echo "<b>".ACSMsg::get_msg('User', 'Diary.tpl.php', 'M015')."</b><br><br>";
+
+ // ¥¹¥ì¥Ã¥É°ìÍ÷
+ $str = '';
+ foreach ($this->_tpl_vars['diary_row_array'] as $index => $diary_row) {
+ if($diary_row['diary_delete_flag']=='f'){ //ºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ß°ìÍ÷ɽ¼¨¤¹¤ë
+ if ($str != '') {
+ $str .= "<br>";
+ }
+ $str .= "<a href=\"" . $diary_row['diary_comment_url'] . "\">";
+ $str .= htmlspecialchars(ACSTemplateLib::trim_long_str($diary_row['subject']));
+ $str .= "</a>";
+ $str .= " (" . $diary_row['short_post_date'] . ")";
+ }
+ }
+ echo $str;
+}
+?>
+</td></tr>
+</table>
+
+<!-- ɽ¼¨Á´ÂΤνªÎ» -->
+</td>
+</tr></table>
+<br>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: DiaryCalendar.tpl.php,v 1.2 2006/03/06 03:52:47 z-akitsu Exp $
+//<b>¥À¥¤¥¢¥ê¡¼ ¥«¥ì¥ó¥À¡¼É½¼¨</b>
+//<br><br>
+?>
+ <?= $this->_tpl_vars['new_calendar_html'] ?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: w-ota v 1.5 2006/02/15 06:57:02 |
+// | update: akitsu 2006/2/28 ver1.0 |
+// |Diary ¥³¥á¥ó¥È²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: DiaryComment.tpl.php,v 1.19 2007/03/30 05:27:23 w-ota Exp $
+?>
+
+<?php
+//¼«Ê¬¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¥Þ¥¤¥À¥¤¥¢¥ê¡¼¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+if ($this->_tpl_vars['is_self_page']) {
+ echo "<div class=\"ttl\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['top_page_url'] ."\">";
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M001') ."</a> :: ". ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M002') ."</div><br>\n";
+} else {
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¡Ö¡û¡û¤µ¤ó¤Î¥À¥¤¥¢¥ê¡¼¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<div class=\"ttl\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">";
+ //echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó</a> :: ";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "DiaryComment.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+ echo "<a href=\"" .$this->_tpl_vars['diary_row']['else_user_diary_url'] ."\">";
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M003') ."</a> :: ". ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M002') ."</div><br>\n";
+}
+// ¿Æ¥À¥¤¥¢¥ê¡¼¤¬Ìµ¤¯¤Æ¤â¸«¤é¤ì¤Ê¤¤
+if($this->_tpl_vars['diary_row']['diary_delete_flag']=='t'){
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M004');
+ return;
+}
+
+?>
+
+<!-- ¥À¥¤¥¢¥ê¡¼ -->
+<?php
+//³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+ $value = '';
+ if($this->_tpl_vars['move_id'] == 3){
+ $value['body'] = $this->_tpl_vars['form']['body'];
+ }
+?>
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="650px">
+<tr>
+<td bgcolor="#deeebd">
+<table cellpadding="0" cellspacing="0" width="100%"><tr><td nowrap align="left"><b><?= htmlspecialchars($this->_tpl_vars['diary_row']['subject']) ?></b> <?= $this->_tpl_vars['diary_row']['post_date'] ?></td><td align="right"><?php
+// ¡ØÂÀפò¤Ä¤±¤ë¡Ù¥ê¥ó¥¯
+if($this->_tpl_vars['footprint_url'] != ""){
+ print '<a href="javascript:location=\'' . $this->_tpl_vars['footprint_url'].'\'">';
+ print '<img border="0" src="'.ACS_IMAGE_DIR.'footmark.gif">';
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M010');
+ // ÂÀץܥ¿¥ó²¡²¼ºÑ¤ß¤Î¾ì¹ç
+ if(count($this->_tpl_vars['footprint_info']) > 0){
+ print ' (' . ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M011') . ')';
+ }
+ echo '</a>';
+}
+?></td></tr></table></td>
+</tr>
+<tr>
+<td bgcolor="#ffffff">
+<?php
+// ¸ø³«ÈÏ°Ï
+ echo "<table class=\"open_level_table\">\n<tr>\n<td>\n";
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M005')." : " . htmlspecialchars($this->_tpl_vars['diary_row']['open_level_name']);
+ if ($this->_tpl_vars['is_self_page'] && $this->_tpl_vars['diary_row']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && $this->_tpl_vars['diary_row']['trusted_community_flag']) {
+ if (count($this->_tpl_vars['diary_row']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['diary_row']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_row['community_name'] != '') {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ }
+ echo " (" . htmlspecialchars($trusted_community_str) . ")";
+ } else {
+ echo " ". ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M006');
+ }
+ }
+ echo "</td>\n";
+ echo "</tr>\n</table>\n";
+
+ //¼Ì¿¿
+ if ($this->_tpl_vars['diary_row']['file_url']) {
+ echo "<a href=\"javascript:w=window.open('" . $this->_tpl_vars['diary_row']['file_url_alink'] . "','popUp','scrollbars=yes,resizable=yes');w.focus();\">\n";
+ echo "<img src=\"". $this->_tpl_vars['diary_row']['file_url'] . "\" style=\"margin-top:10px;margin-bottom:10px\" BORDER=0></a><br>";
+ }
+?>
+<?= nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['diary_row']['body'])))) ?>
+</td>
+</tr>
+</table>
+<br>
+<br>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<!-- ¥³¥á¥ó¥È°ìÍ÷ɽ¼¨Éôʬ -->
+<?php
+if ($this->_tpl_vars['diary_comment_row_array']) {
+ echo "<table border=\"0\" cellpadding=\"6\" cellspacing=\"0\" bgcolor=\"#99CC33\">\n";
+ $swf = 0;
+ foreach ($this->_tpl_vars['diary_comment_row_array'] as $diary_comment_row) {
+ echo "<tr>";
+ if ($swf % 2 == 0) {
+ $cur_col = "#eeffcc";
+ } else {
+ $cur_col = "#ffffff";
+ }
+ echo "<td bgcolor=\"" . $cur_col . "\" align=\"center\" width=\"80px\">";
+ //¥æ¡¼¥¶²èÁü¤òɽ¼¨ ºï½ü¥Ç¡¼¥¿¤Ç̵¤¤¾ì¹ç
+ if($diary_comment_row['diary_comment_delete_flag']=='f'){
+ echo "<a href=\"".$diary_comment_row['top_page_url']."\"><img src=\"$diary_comment_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"".$diary_comment_row['top_page_url']."\">" . htmlspecialchars($diary_comment_row['community_name']) . "</a>";
+ }
+ echo "</td>";
+ echo "<td bgcolor=\"" . $cur_col . "\" valign='top'>";
+ echo "<table><tr>";
+ echo "<td bgcolor=\"" . $cur_col . "\" width=\"500px\" colspan=\"2\">";
+ echo $diary_comment_row['post_date'];
+ echo "</td>";
+ // ºï½ü¥Ü¥¿¥ó¡¡ºï½ü¥Ç¡¼¥¿¤Ç̵¤¤¾ì¹ç
+ if($diary_comment_row['diary_comment_delete_flag']=='f'){
+ echo "<td align=\"right\" valign=\"top\" BGCOLOR='#FFFFFF'>";
+ echo "<form>";
+ //ºï½ü¥Ü¥¿¥ó¤Îɽ¼¨¡¡¡Ü¼«Ê¬
+ if (($this->_tpl_vars['is_self_page'] || $diary_comment_row['self_id']== true) && $diary_comment_row['diary_comment_delete_flag']=='f') {
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M007')."\" onclick=\"location.href='". $diary_comment_row['diary_delete_url'] ."'\">";
+ }
+ echo "</form></td>";
+ }
+ echo "</tr>";
+ echo "<tr><td>";
+ //ËÜʸ¤òɽ¼¨ ºï½ü¥Ç¡¼¥¿¤Ç̵¤¤¾ì¹ç
+ if($diary_comment_row['diary_comment_delete_flag']=='f'){
+ echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($diary_comment_row['body']))));
+ }else{
+ echo ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M008');
+ }
+ echo "</td>";
+ echo "</tr>";
+ echo "</table>";
+ echo "</td></tr>";
+ $swf++;
+ }
+ echo "</table>\n";
+ echo "<br><br>\n";
+}
+?>
+
+<?php
+// ¥³¥á¥ó¥ÈÅÐÏ¿Éôʬ
+if ($this->_tpl_vars['acs_user_info_row']['is_acs_user']) {
+ echo "<form action=\"" . $this->_tpl_vars['action_url'] ."\" method=\"post\">\n";
+ echo "<table border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>\n";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M002')."</td>\n";
+ echo "<td bgcolor=\"#ffffff\"><textarea name=\"body\" cols=\"60\" rows=\"8\" style=\"width:500px\">";
+ echo htmlspecialchars($value['body']);
+ echo "</textarea></td>\n";
+ echo "</tr>\n";
+ echo "</table>\n";
+ echo "<br>\n";
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg("User", "DiaryComment.tpl.php",'M009')."\">\n";
+ echo "</form>\n";
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: DiaryCommentHistory.tpl.php,v 1.6 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "DiaryCommentHistory.tpl.php", 'M001') ?></div>
+<br>
+
+<?php
+if ($this->_tpl_vars['get_days'] > 0) {
+?>
+<div class="getdays">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "DiaryCommentHistory.tpl.php", 'GETDAYS'),
+ array('{DAYS}'=>$this->_tpl_vars['get_days'])) ?>
+</div>
+<?php
+}
+?>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+<table class="layout_table">
+<?php
+// ¥ë¡¼¥×³«»Ï
+foreach ($this->_tpl_vars['commented_diary_row_array'] as $commented_diary_row) {
+?>
+<tr>
+ <td width="16px"><img src="<?= ACS_IMAGE_DIR ?>yaj2.gif"></td>
+ <td>
+<?php
+ // ¥³¥á¥ó¥ÈURL¡¢Æüµ¥¿¥¤¥È¥ë
+ if ($commented_diary_row['is_unread']) {
+ echo "<b>";
+ }
+?>
+ <a href="<?= $commented_diary_row['diary_comment_url'] ?>"><?= htmlspecialchars(ACSTemplateLib::trim_long_str($commented_diary_row['subject'])) ?></a>
+<?php
+ // ¥³¥á¥ó¥È¿ô
+ if ($commented_diary_row['is_unread']) {
+ echo "</b>";
+ }
+?>
+ (<?= $commented_diary_row['diary_comment_num'] ?>) (<?= htmlspecialchars($commented_diary_row['community_name']) ?>)
+ </td>
+</tr>
+<?php
+}
+// ¢¬¥ë¡¼¥×½ªÎ»
+
+// ¥³¥á¥ó¥È0·ï¤Î¾ì¹ç
+if (count($this->_tpl_vars['commented_diary_row_array']) == 0) {
+ echo "<tr><td>" . ACSMsg::get_msg("User", "DiaryCommentHistory.tpl.php", 'M002') . "</td></tr>\n";
+}
+?>
+</table>
+
+<?php
+if ($this->_tpl_vars['diary_comment_history_url']) {
+?>
+<br>
+<div align="right">
+ <a class="ichiran" href="<?= $this->_tpl_vars['diary_comment_history_url'] ?>">
+ <?= ACSMsg::get_msg("User", "DiaryCommentHistory.tpl.php", 'M003') ?>
+ </a>
+</div>
+<?php
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/03/02 ver1.0 |
+// |¥À¥¤¥¢¥ê¡¼ ¥³¥á¥ó¥È¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+//
+// $Id: DiaryCommentPre.tpl.php,v 1.7 2007/03/30 05:27:23 w-ota Exp $
+?>
+
+<!-- HTML -->
+
+<?php
+//¼«Ê¬¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¥Þ¥¤¥À¥¤¥¢¥ê¡¼¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+if ($this->_tpl_vars['is_self_page']) {
+ echo "<div class=\"sub_title\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['diary_top_page_url'] ."\">";
+ echo ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M001')."</a> :: ";
+} else {
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¡Ö¡û¡û¤µ¤ó¤Î¥À¥¤¥¢¥ê¡¼¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<div class=\"sub_title\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">";
+ //echo htmlspecialchars($this->_tpl_vars['community_row']['community_name']) . "¤µ¤ó</a> :: ";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['community_row']['community_name'])));
+ echo "</a> :: ";
+
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['diary_top_page_url'] ."\">";
+ echo ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M002')."</a> :: ";
+}
+ echo "<a href=\"" .$this->_tpl_vars['diary_comment_page_url'] ."\">".ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M003')."</a>\n";
+ echo " :: ".ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M004')."</div><br><br>\n";
+?>
+
+<?php
+ if ($this->_tpl_vars['error_message']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸É½¼¨
+ ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+ } else {
+ echo '<div class="confirm_msg">';
+ echo ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M005').'<br>';
+ echo ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M006');
+ echo '</div>';
+ }
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<!-- Æüµ¾ðÊó -->
+<table class="table.confirm_table">
+ <colgroup class="required">
+ <colgroup class="value">
+
+<tr>
+ <td height=150px><?= ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M008') ?></td>
+ <td valign=top>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['body']))) ?>
+ </td>
+</tr>
+
+</table>
+
+<br><br>
+<?php
+ if (!$this->_tpl_vars['error_message']) {
+ echo '<input type="submit" value="OK"> ';
+ }
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "DiaryCommentPre.tpl.php",'M007') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
+<br>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/03/01 ver1.0 |
+// |¥À¥¤¥¢¥ê¡¼¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+//
+// $Id: DiaryPre.tpl.php,v 1.8 2007/03/30 05:27:23 w-ota Exp $
+?>
+
+<!-- HTML -->
+<div class="sub_title">
+<a href="<?= $this->_tpl_vars['diary_top_page_url'] ?>"> <?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M002') ?>
+</div>
+
+<?php
+ if ($this->_tpl_vars['error_message']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸É½¼¨
+ ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+ } else {
+ echo '<div class="confirm_msg">';
+ echo ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M003').'<br>';
+ echo ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M004');
+ echo '</div>';
+ }
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="bbs_form" enctype="multipart/form-data">
+
+<!-- Æüµ¾ðÊó -->
+<table class="table.confirm_table">
+ <colgroup class="required">
+ <colgroup class="value">
+ <colgroup class="partition">
+ <colgroup class="required">
+ <colgroup class="value">
+<tr>
+ <td><?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M005') ?></td>
+ <td><?= htmlspecialchars($this->_tpl_vars['form']['subject']) ?></td>
+ <td></td>
+ <td><?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M006') ?></td>
+ <td>
+ <?php
+ if($this->_tpl_vars['form']['file_name'] != ''){
+ echo $this->_tpl_vars['form']['file_name'];
+ }
+ ?>
+ </td>
+</tr>
+
+<tr>
+ <td height=150px><?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M007') ?></td>
+ <td valign=top>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['body']))) ?>
+ </td>
+ <td></td>
+ <td><?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M008') ?></td>
+ <td>
+ <?php
+ if($this->_tpl_vars['form']['file_name'] != ''){
+ echo "<img src=";
+ echo $this->_tpl_vars['form']['file_url_alink'];
+ echo " border=0>";
+ }
+ ?>
+ </td>
+</tr>
+
+<tr>
+ <td><?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M009') ?></td>
+ <td colspan=4>
+ <?php
+ // ¸ø³«ÈÏ°Ï
+ echo ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M009')." : " . htmlspecialchars($this->_tpl_vars['form']['open_level_name']);
+ if (count($this->_tpl_vars['form']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['form']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ", ";
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ if ($trusted_community_str != '') {
+ echo " (" . htmlspecialchars($trusted_community_str) . ")<br>";;
+ }
+ }
+ ?>
+ </td>
+</tr>
+</table>
+
+<br><br>
+<?php
+ if (!$this->_tpl_vars['error_message']) {
+ echo '<input type="submit" value="'.ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M011').'"> ';
+ }
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M012') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+ <?= ACSMsg::get_msg("User", "DiaryPre.tpl.php",'M013') ?>
+</form>
+<br>
--- /dev/null
+<?php
+// $Id: EditFileDetail.tpl.php,v 1.7 2007/03/28 08:39:33 w-ota Exp $
+?>
+
+<?
+// ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥ÄÀÚ¤êÂؤ¨JS½ÐÎÏ
+ACSTemplateLib::print_change_file_contents_js('edit_file_detail_form', $this->_tpl_vars['file_contents_type_master_array'], $this->_tpl_vars['file_contents_type_master_row_array_array']);
+?>
+
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M001');
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ //$title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+
+ $title .= '</a>';
+ $title .= ' :: <a href="' . $this->_tpl_vars['back_url'] . '">'.ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M002').'</a>';
+}
+?>
+<div class="sub_title"><?= $title ?> :: <?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M003') ?> :: <?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M004') ?></div>
+
+<?php
+// ¥Ñ¥¹¾ðÊó½ÐÎÏ
+$path = "";
+foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+}
+
+print "<p>\n";
+print $path . "\n";
+print "</p>\n";
+?>
+
+<!-- layout_table -->
+
+<form name="edit_file_detail_form" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M005') ?></div></td>
+</tr>
+
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M006') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table"><tr>
+ <td><img src="<?= ACS_IMAGE_DIR . "file.gif" ?>"></td>
+ <td><a href="<?= $this->_tpl_vars['file_info_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_info_row']['display_file_name']) ?></a></td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M007') ?></td>
+<td bgcolor="#ffffff">
+<select name="file_category_code" onchange="change_file_contents()">
+<?php
+unset($selected);
+$selected[$this->_tpl_vars['file_detail_info_row']['file_category_code']] = ' selected';
+foreach ($this->_tpl_vars['file_category_master_array'] as $file_category_code => $file_category_name) {
+ echo "<option value=\"$file_category_code\"$selected[$file_category_code]>" . htmlspecialchars($file_category_name) . "\n";
+}
+?>
+</select>
+</td>
+</tr>
+
+<?php
+foreach ($this->_tpl_vars['file_contents_type_master_array'] as $file_contents_type_code => $file_contents_type_name) {
+ echo "<tr id=\"file_contents_tr[$file_contents_type_code]\"";
+ if (!is_array($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code])) {
+ echo " style=\"display:none\"";
+ }
+ echo ">";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_type_name);
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<textarea name=\"file_contents_array[$file_contents_type_code]\" cols=\"50\" rows=\"3\">";
+ echo htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code]['file_contents_value']);
+ echo "</textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+
+</td></tr></table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M008') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditFileDetail.tpl.php",'M009') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+if ($this->_tpl_vars['view_mode'] == 'create') {
+ $title = ACSMsg::get_msg("User", "EditFolder.tpl.php",'M001');
+ $submit_button_name = ACSMsg::get_msg("User", "EditFolder.tpl.php",'M002');
+} elseif ($this->_tpl_vars['view_mode'] == 'update') {
+ $title = ACSMsg::get_msg("User", "EditFolder.tpl.php",'M003');
+ $submit_button_name = ACSMsg::get_msg("User", "EditFolder.tpl.php",'M004');
+}
+?>
+<div class="ttl"><?= $title ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="folder_info" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+<p>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M005') ?></td>
+ <td bgcolor="#ffffff"><input type="text" name="folder_name" value="<?= htmlspecialchars($this->_tpl_vars['default_data_row']['folder_name']) ?>"></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M006') ?></td>
+ <td bgcolor="#ffffff"><input type="text" name="comment" value="<?= htmlspecialchars($this->_tpl_vars['default_data_row']['comment']) ?>"></td>
+</tr>
+
+<?php
+// ¸ø³«ÈϰϤ¬ÀßÄê¤Ç¤¤ë¾ì¹ç¤Î¤ß¡¢½ÐÎÏ
+if ($this->_tpl_vars['is_set_open_level_available']) {
+?>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <select name="open_level_code" onChange="show_open_level_option(this.options[this.selectedIndex].text)">
+ <?php
+ // ÁªÂò»èºîÀ®
+ $trusted_community_display_mode = 'none';
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default']) {
+ $selected_str = " selected";
+
+ // ÁªÂò¤µ¤ì¤Æ¤¤¤ë¸ø³«ÈϰϤ¬¡Öͧ¿Í¤Ë¸ø³«¡×¤Î¾ì¹ç¤Ï¡¢trusted_community ¤òɽ¼¨¤¹¤ë
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $trusted_community_display_mode = 'block';
+ }
+ } else {
+ $selected_str = "";
+ }
+ print '<option value="' . $open_level_master_row['open_level_code'] . '"' . $selected_str . '>' . htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ ?>
+ </select>
+
+ <div id="trusted_community" style="display:<?= $trusted_community_display_mode ?>;">
+ <table class="layout_table">
+ <tr>
+ <?php
+ // Á´¤Æ¤Îͧ¿Í¤òÁªÂò¤¹¤ë¤«¤É¤¦¤«
+ $checked_str = " checked";
+ $trusted_community_flag_all = "";
+ $trusted_community_flag_friens_group = "";
+ if ($this->_tpl_vars['default_data_row']['trusted_community_flag'] == '0') {
+ $trusted_community_flag_all = $checked_str;
+ } elseif ($this->_tpl_vars['default_data_row']['trusted_community_flag'] == '1') {
+ $trusted_community_flag_friens_group = $checked_str;
+ }
+ ?>
+ <td colspan=2><input type="radio" name="trusted_community_flag" value="0" onClick="select_trusted_community_flag_all_friends(this.form)" <?= $trusted_community_flag_all ?>><?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M007') ?></td>
+ </tr>
+ <tr>
+ <td colspan=2><input type="radio" name="trusted_community_flag" value="1" <?= $trusted_community_flag_friens_group ?>><?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M010') ?></td>
+ </tr>
+
+ <?php
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤¬¤¢¤ë¾ì¹ç¤Î¤ß
+ if ($this->_tpl_vars['friends_group_row_array']) {
+ print '<tr>';
+ // ¥¤¥ó¥Ç¥ó¥Èʬ
+ print '<td><br></td>';
+ print '<td>';
+ foreach ($this->_tpl_vars['friends_group_row_array'] as $friends_group_row) {
+ $checked_str = "";
+
+ // ¥Ç¥Õ¥©¥ë¥ÈÃͤ¬¤¢¤ë¾ì¹ç¡¢¥Á¥§¥Ã¥¯¤¹¤ë¤«¤òȽÊ̤¹¤ë
+ if ($this->_tpl_vars['default_data_row']['trusted_community_id_array']) {
+ if (in_array($friends_group_row['community_id'], $this->_tpl_vars['default_data_row']['trusted_community_id_array'])) {
+ $checked_str = " checked";
+ }
+ }
+
+ print '<input type="checkbox" name="trusted_community[]" value="' . $friends_group_row['community_id'] . '" onClick="select_trusted_community_flag_friends_group(this.form)"' . $checked_str . '>';
+ print htmlspecialchars($friends_group_row['community_name']) . "<br>\n";
+ }
+ print '</td>';
+ print '</tr>' . "\n";
+ }
+ ?>
+ </table>
+ </div>
+ </td>
+</tr>
+<?php
+// ¸ø³«ÈϰϤ¬ÀßÄê¤Ç¤¤ë¾ì¹ç¤Î¤ß¡¢½ÐÎÏ
+}
+?>
+
+</table>
+</p>
+
+<p>
+<input type="submit" value="<?= $submit_button_name ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditFolder.tpl.php",'M008') ?>" onclick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</p>
+</form>
+
+<script type="text/javascript">
+<!--
+ // ͧ¿Í¤Ë¸ø³«¤ÎÁªÂò»èɽ¼¨¤òÁàºî
+ function show_open_level_option (selected_open_level_name) {
+ trusted_community_div_obj = document.getElementById('trusted_community');
+ if (selected_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D05') ?>') {
+ trusted_community_div_obj.style.display = "block";
+ } else {
+ trusted_community_div_obj.style.display = "none";
+ }
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤òÁªÂò¾ì¹ç¤Î½èÍý
+ function select_trusted_community_flag_friends_group (form_obj) {
+ form_obj.elements['trusted_community_flag'][1].checked = true;
+ }
+
+ // Á´¤Æ¤Î¥Õ¥ì¥ó¥º¤òÁªÂò¤·¤¿¾ì¹ç¤Î½èÍý
+ function select_trusted_community_flag_all_friends (form_obj) {
+ if (!form_obj.elements['trusted_community[]']) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤¬¤Ê¤¤¾ì¹ç¤Ï½ªÎ»
+ return;
+ }
+ for (count = 0; count < form_obj.elements['trusted_community[]'].length; count++) {
+ form_obj.elements['trusted_community[]'][count].checked = false;
+ }
+ }
+//-->
+</script>
--- /dev/null
+<?php
+// $Id: EditFriendsGroupMember.tpl.php,v 1.5 2007/03/01 09:01:43 w-ota Exp $
+
+function is_friends_group($user_community_id, $friends_group_member_row_array) {
+ $ret = false;
+ foreach ($friends_group_member_row_array as $user_info_row) {
+ if ($user_community_id == $user_info_row['user_community_id']) {
+ $ret = true;
+ break;
+ }
+ }
+ return $ret;
+}
+?>
+
+<div class="ttl"><?php
+
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "EditFriendsGroupMember.tpl.php",'NAME'),array(
+ "{USER_NAME}" => $this->_tpl_vars['friends_group_row']['community_name']));
+
+//¡Ú= $this->_tpl_vars['friends_group_row']['community_name'] ¡Û¥°¥ë¡¼¥× ¥á¥ó¥ÐÊÔ½¸
+
+?></div><br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#99CC33">
+<tr><td bgcolor="#FFFFFF">
+<?= ACSMsg::get_msg("User", "EditFriendsGroupMember.tpl.php",'M001') ?> : <input type="text" name="community_name" value="<?= htmlspecialchars($this->_tpl_vars['form']['community_name']) ?>" size="30"><br>
+<br>
+<?php
+foreach ($this->_tpl_vars['friends_row_array'] as $user_info_row) {
+ echo "<input type=\"checkbox\" name=\"trusted_community_id_array[]\" value=\"$user_info_row[user_community_id]\"";
+ if (is_friends_group($user_info_row['user_community_id'], $this->_tpl_vars['friends_group_member_row_array'])) {
+ echo ' checked';
+ }
+ echo ">";
+ echo htmlspecialchars($user_info_row['user_name']);
+ echo " (" . htmlspecialchars($user_info_row['community_name']) . ")";
+ echo "<br>\n";
+}
+?>
+</td></tr></table>
+<br>
+
+<input type="submit" value=" OK ">
+</form>
--- /dev/null
+<?php
+// ¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸²èÌÌ
+// $Id: EditProfile.tpl.php,v 1.18 2007/03/27 02:12:43 w-ota Exp $
+?>
+<SCRIPT language="JavaScript">
+<!--
+ function alert_dialog(str_msg , set_keys_obj){
+ alert("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M001') ?>:" + str_msg);
+ set_keys_obj.focus();
+ }
+
+// ---------------------------------------------------------------
+// ÆþÎϥǡ¼¥¿¤Î¸¡ºº¤È¼èÆÀ¡ÊËÜ¿ÍÊÔ½¸²èÌ̤ΤߡË
+
+
+//À¸Ç¯·îÆü
+ function age_check(form_obj){
+ var const_msg = "<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M002') ?>\n" + " <?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M003') ?>";
+ var myform = form_obj.form;
+
+ var inp = myform.birthday.value;
+ if( inp == "" ){// ÆþÎϤʤ·¤Ïµö²Ä
+ return;
+ }
+ if(inp.indexOf("/") < 0){
+ alert_dialog("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M004') ?>\n\n" + const_msg , myform.birthday); return;
+ }
+ var year_set = inp.slice(0,4);
+ var month_set = inp.substring(5,7);
+ var day_set = inp.substring(8,10);
+
+ var birthday = new Date(inp); // ÃÂÀ¸Æü
+ if(!birthday){
+ alert_dialog("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M005') ?>\n\n" + const_msg , myform.birthday); return;
+ }
+ // ¸¡ºº ǯ
+ if(year_set < 1901 || year_set > 2035 || isNaN(year_set)){
+ alert_dialog("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M006') ?>\n " + year_set + "\n\n" + const_msg , myform.birthday); return;
+ }
+ // ¸¡ºº¡¡·î
+ if( month_set < 1 || month_set > 12 || isNaN(month_set)){
+ alert_dialog("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M007') ?>\n " + month_set + "\n\n" + const_msg , myform.birthday); return;
+ }
+ // ¸¡ºº¡¡Æü
+ var day_check = 30;
+ switch(parseInt(month_set)){
+ case 1:
+ day_check = 31;break;
+ case 3:
+ day_check = 31;break;
+ case 5:
+ day_check = 31;break;
+ case 7:
+ day_check = 31;break;
+ case 8:
+ day_check = 31;break;
+ case 10:
+ day_check = 31;break;
+ case 12:
+ day_check = 31;break;
+ case 2:
+ day_check = 29;
+ }
+ if(day_set > day_check || day_set < 1 || isNaN(day_set)){
+ alert_dialog("<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M008') ?>\n " + day_set + "\n\n" + const_msg , myform.birthday); return;
+ }
+ }
+
+// ---------------------------------------------------------------
+//-->
+</SCRIPT>
+
+<?php
+if ($this->_tpl_vars['is_new_ldap_user']) {
+ //echo "<span class=\"sub_title\">".ACSMsg::get_msg("User", "EditProfile.tpl.php",'M009')."</span><br><br>\n";
+ echo "<div class=\"ttl\">".ACSMsg::get_msg("User", "EditProfile.tpl.php",'M009')."</div><br><br>\n";
+ echo ACSMsg::get_msg("User", "EditProfile.tpl.php",'M010')."<br>\n";
+} else {
+ echo "<div class=\"ttl\">".ACSMsg::get_msg("User", "EditProfile.tpl.php",'M011')."</div><br>\n";
+}
+?>
+( <span class="required">*</span> <?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M012') ?>)<br>
+<br>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form name="edit_profile_form" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+
+<?php
+// input¥¿¥°(hidden)¤Î¼«Æ°À¸À®
+foreach ($this->_tpl_vars['target_user_info_row']['contents_row_array'] as $contents_key => $contents_row) {
+ // open_level_code_array
+ echo "<input type=\"hidden\" name=\"open_level_code_array[$contents_key]\" value=\"" .$contents_row['open_level_code'] . "\">\n";
+ // trusted_community_id_csv_array
+ echo "<input type=\"hidden\" name=\"trusted_community_id_csv_array[$contents_key]\" value=\"" .$contents_row['trusted_community_id_csv'] . "\">\n";
+ // trusted_community_flag
+ echo "<input type=\"hidden\" name=\"trusted_community_flag[$contents_key]\" value=\"" .$contents_row['trusted_community_flag'] . "\">\n";
+ echo "\n";
+}
+?>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M013') ?></th>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M014') ?></th>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M015') ?></th>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M016') ?></th>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M017') ?></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['user_name']['contents_value']) ?></td>
+<td id="user_name_td" bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['user_name']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M018') ?>" onclick="window.open('<?= $this->_tpl_vars['set_open_level_for_profile_url'] ?>&contents_key=user_name&contents_type_code=<?= $this->_tpl_vars['target_user_info_row']['contents_row_array']['user_name']['contents_type_code'] ?>', 'SetOpenLevelForProfile', 'width=350,height=300,top=250,left=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')">
+</td>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M020') ?> <span class="required">*</span></td>
+<td bgcolor="#ffffff"><input type="text" name="mail_addr" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['mail_addr']['contents_value']) ?>" size="40"></td>
+<td id="mail_addr_td" bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['mail_addr']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M021') ?> <span class="required">*</span></td>
+<td bgcolor="#ffffff"><input type="text" name="community_name" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) ?>" size="40"></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M022') ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M023') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="belonging" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['belonging']['contents_value']) ?>" size="40"></td>
+<td id="belonging_td" bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['belonging']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M024') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="speciality" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['speciality']['contents_value']) ?>" size="40"></td>
+<td id="speciality_td" bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['speciality']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M025') ?></td>
+<td bgcolor="#ffffff"><input type="text" name="birthplace" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['contents_value']) ?>" size="40"></td>
+<td id="birthplace_td" bgcolor="#ffffff"><?php
+echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['open_level_name']);
+if ($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && $this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['trusted_community_flag']) {
+ if (count($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_row['community_name'] != '') {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ }
+ echo " (" . htmlspecialchars($trusted_community_str) . ")";
+ } else {
+ echo ACSMsg::get_msg("User", "EditProfile.tpl.php",'M026');
+ }
+}
+?>
+</td>
+<td align="center" bgcolor="#ffffff">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M018') ?>" onclick="window.open('<?= $this->_tpl_vars['set_open_level_for_profile_url'] ?>&contents_key=birthplace&contents_type_code=<?= $this->_tpl_vars['target_user_info_row']['contents_row_array']['birthplace']['contents_type_code'] ?>', 'SetOpenLevelForProfile', 'width=350,height=300,top=250,left=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')">
+</td>
+</tr>
+
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M034') ?></td>
+<td bgcolor="#ffffff">
+<input type="text" name="birthday" value="<?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['contents_value']) ?>" size="20" onChange="age_check(this)"> <span class="notice">(YYYY/MM/DD)</span>
+</td>
+<td id="birthday_td" bgcolor="#ffffff">
+<?php
+echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['open_level_name']);
+if ($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && $this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['trusted_community_flag']) {
+ if (count($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['trusted_community_row_array'])) {
+ $trusted_community_str = '';
+ foreach ($this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['trusted_community_row_array'] as $trusted_community_row) {
+ if ($trusted_community_row['community_name'] != '') {
+ if ($trusted_community_str != '') {
+ $trusted_community_str .= ', ';
+ }
+ $trusted_community_str .= $trusted_community_row['community_name'];
+ }
+ }
+ echo " (" . htmlspecialchars($trusted_community_str) . ")";
+ } else {
+ echo ACSMsg::get_msg("User", "EditProfile.tpl.php",'M026');
+ }
+}
+?>
+</td>
+<td align="center" bgcolor="#ffffff">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M018') ?>" onclick="window.open('<?= $this->_tpl_vars['set_open_level_for_profile_url'] ?>&contents_key=birthday&contents_type_code=<?= $this->_tpl_vars['target_user_info_row']['contents_row_array']['birthday']['contents_type_code'] ?>', 'SetOpenLevelForProfile', 'width=350,height=300,top=250,left=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')">
+</td>
+</tr>
+
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M035') ?></td>
+<td bgcolor="#ffffff">
+<select name="mail_lang">
+<?php
+$mail_lang =& $this->_tpl_vars['target_user_info_row']['contents_row_array']['mail_lang'];
+
+if ($mail_lang['contents_value'] == "") {
+ $mail_lang['contents_value'] = ACS_DEFAULT_LANG;
+}
+
+foreach (ACSMsg::get_lang_list_array() as $lang => $lang_name) {
+ echo '<option value="' . $lang . '"' .
+ ($mail_lang['contents_value'] == $lang ? ' selected' : '') . '>' .
+ htmlspecialchars($lang_name) . "\n";
+}
+?>
+</select>
+</td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M022') ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+
+
+<!-- ¼«¸Ê¾Ò²ð ±ÜÍ÷¼Ô¤´¤È¤ËÅÐÏ¿ -->
+<tr>
+<td colspan=4 bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M027') ?></td>
+</tr>
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M028') ?></td>
+<td bgcolor="#ffffff"><textarea name="community_profile" cols="40" rows="5"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile']['contents_value']) ?></textarea></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M029') ?></td>
+<td bgcolor="#ffffff"><textarea name="community_profile_login" cols="40" rows="5"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile_login']['contents_value']) ?></textarea></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile_login']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+
+<tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M030') ?></td>
+<td bgcolor="#ffffff"><textarea name="community_profile_friend" cols="40" rows="5"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile_friend']['contents_value']) ?></textarea></td>
+<td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['community_profile_friend']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M019') ?></td>
+</tr>
+</table>
+<br>
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M031') ?></th>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M015') ?></th>
+<th bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M016') ?></th>
+</tr>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M032') ?></td>
+<td id="friends_list_td" bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['target_user_info_row']['contents_row_array']['friends_list']['open_level_name']) ?></td>
+<td align="center" bgcolor="#ffffff">
+<input type="button" value="<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M018') ?>" onclick="window.open('<?= $this->_tpl_vars['set_open_level_for_profile_url'] ?>&contents_key=friends_list&contents_type_code=<?= $this->_tpl_vars['target_user_info_row']['contents_row_array']['friends_list']['contents_type_code'] ?>', 'SetOpenLevelForProfile', 'width=350,height=300,top=250,left=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')">
+</td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="OK" name="update_button">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "EditProfile.tpl.php",'M033') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
--- /dev/null
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// | Authors: akitsu 2006/2/8 |
+// +----------------------------------------------------------------------+
+//¡¡EditProfileImage.tpl.php
+// $Id: EditProfileImage.tpl.php,v 1.7 2008/03/24 07:00:36 y-yuki Exp $
+//
+// @image_new_mode = ²èÁü¾ðÊó¤ÎÅÐÏ¿¤¬¤Ê¤¤¡¡not¡¡ÅÐÏ¿¤¬¤¢¤ë
+?>
+
+<div class="sub_title"><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M001') ?></div>
+
+<?php
+// ¥×¥í¥Õ¥£¡¼¥ëɽ¼¨³ÈÄ¥
+?>
+ <!-- ²èÁü¾ðÊó -->
+<form name="upload_file" action="<?= $this->_tpl_vars['upload_image_url']['file_id_ol05'] ?>" method="POST" enctype="multipart/form-data">
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+ <tr>
+ <td><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M005') ?></td>
+ </tr>
+ <tr>
+ <td bgcolor="#ffffff">
+ <img src="<?=$this->_tpl_vars['image_file_array'][0] ?>" style="margin-top:10px;margin-bottom:10px"><br>
+ </td>
+ <td bgcolor="#ffffff">
+ <table border=0>
+ <tr>
+ <td colspan="2">
+ <input type="file" name="new_file" size="30">
+ </td>
+ </tr>
+ <tr>
+ <td>
+<?php
+ /* ºï½ü¥Ñ¥¹¾ðÊó½ÐÎÏ */
+ // ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë
+ $path="";
+ if(!$this->_tpl_vars['menu']['image_new_mode05']){
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M002') ?>" onclick="location.href='<?= $this->_tpl_vars['menu']['delete_image_url05'] ?>'">
+<?php
+ }
+ ?>
+ </td>
+ <td>
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M003') ?>">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+</form>
+
+
+<form name="upload_file" action="<?= $this->_tpl_vars['upload_image_url']['file_id_ol02'] ?>" method="POST" enctype="multipart/form-data">
+
+ <tr>
+ <td><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M006') ?></td>
+ </tr>
+ <tr>
+ <td bgcolor="#ffffff">
+ <img src="<?=$this->_tpl_vars['image_file_array'][1] ?>" style="margin-top:10px;margin-bottom:10px"><br>
+ </td>
+ <td bgcolor="#ffffff">
+ <table border=0>
+ <tr>
+ <td colspan="2">
+ <input type="file" name="new_file" size="30">
+ </td>
+ </tr>
+ <tr>
+ <td>
+<?php
+ /* ºï½ü¥Ñ¥¹¾ðÊó½ÐÎÏ */
+ // ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë
+ $path="";
+ if(!$this->_tpl_vars['menu']['image_new_mode02']){
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M002') ?>" onclick="location.href='<?= $this->_tpl_vars['menu']['delete_image_url02'] ?>'">
+<?php
+ }
+ ?>
+ </td>
+ <td>
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M003') ?>">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</form>
+
+<?php
+if($this->_tpl_vars['display_for_public'] == "1"){
+?>
+<form name="upload_file" action="<?= $this->_tpl_vars['upload_image_url']['file_id_ol01'] ?>" method="POST" enctype="multipart/form-data">
+ <tr>
+ <td><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M007') ?></td>
+ </tr>
+ <tr>
+ <td bgcolor="#ffffff">
+ <img src="<?=$this->_tpl_vars['image_file_array'][2] ?>" style="margin-top:10px;margin-bottom:10px"><br>
+ </td>
+ <td bgcolor="#ffffff">
+ <table border=0>
+ <tr>
+ <td colspan="2">
+ <input type="file" name="new_file" size="30">
+ </td>
+ </tr>
+ <tr>
+ <td>
+<?php
+ /* ºï½ü¥Ñ¥¹¾ðÊó½ÐÎÏ */
+ // ºï½ü°Õ»×¤ò³Îǧ¤¹¤ë
+ $path="";
+ if(!$this->_tpl_vars['menu']['image_new_mode01']){
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M002') ?>" onclick="location.href='<?= $this->_tpl_vars['menu']['delete_image_url01'] ?>'">
+<?php
+ }
+ ?>
+ </td>
+ <td>
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M003') ?>">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</form>
+<?php
+}
+?>
+</table>
+
+ <p>
+ <a href="./"><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M004') ?></a>
+ </p>
+
--- /dev/null
+<?php
+// $Id: FileDetail.tpl.php,v 1.12 2007/03/28 09:24:54 w-ota Exp $
+
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "FileDetail.tpl.php",'M001');
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ // $title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "FileDetail.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ $title .= '</a>';
+ $title .= ' :: '.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M002');
+}
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M003') ?></div>
+
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<?php
+/**********************
+if($this->_tpl_vars['footprint_url'] != ""){
+ print '<p><input type="button" onclick="javascript:location=\'' . $this->_tpl_vars['footprint_url'].
+ '\'" value="' . ACSMsg::get_msg("User", "FileDetail.tpl.php",'M030') . '">';
+
+ if(count($this->_tpl_vars['footprint_info']) > 0){
+ print '(' . ACSMsg::get_msg("User", "FileDetail.tpl.php",'M031') . ')';
+ }
+ print '</p></form>';
+}
+**********************/
+// ¥Ñ¥¹¾ðÊó½ÐÎÏ
+$path = "";
+foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+}
+
+print "<p>\n";
+print $path . "\n";
+print "</p>\n";
+?>
+<p>
+<!-- layout_table start //-->
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M004') ?></div></td>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['update_file_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['update_file_url'] . '">'.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M005').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['rename_folder_list_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['rename_folder_list_url'] . '">'.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M006').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['move_folder_list_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['move_folder_list_url'] . '">'.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M007').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['delete_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['delete_folder_url'] . '">'.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M008').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+
+<tr><td colspan="2">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table" width="100%"><tr>
+ <td><img src="<?= ACS_IMAGE_DIR . "file.gif" ?>"></td>
+ <td>
+ <a href="<?= $this->_tpl_vars['file_info_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_info_row']['display_file_name']) ?></a> (<?= htmlspecialchars($this->_tpl_vars['file_info_row']['mime_type']) ?>)
+ </td>
+ <td><?php
+ if($this->_tpl_vars['footprint_url'] != ""){
+ print '   <a href="javascript:location=\'' . $this->_tpl_vars['footprint_url']. '\'">'.
+ '<img border="0" src="'.ACS_IMAGE_DIR.'footmark.gif">'.
+ ACSMsg::get_msg("User", "FileDetail.tpl.php",'M030');
+
+ if(count($this->_tpl_vars['footprint_info']) > 0){
+ print ' (' . ACSMsg::get_msg("User", "FileDetail.tpl.php",'M031') . ')';
+ }
+ print '</a>';
+ }
+ ?></td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M010') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['file_info_row']['file_size_kb'] ?> (<?= $this->_tpl_vars['file_info_row']['file_size'] ?> <?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M011') ?>)</td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M012') ?></td>
+ <td bgcolor="#ffffff"><a href="<?= $this->_tpl_vars['detail_folder_row']['link_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['folder_name']) ?></a></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M013') ?></td>
+ <td bgcolor="#ffffff">
+ <?php
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ if ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) {
+ foreach ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($this->_tpl_vars['is_self_page']
+ && $this->_tpl_vars['detail_folder_row']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && count($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) == 0) {
+
+ //$trusted_community_info_array[0] = '*Âоݤʤ·';
+ $trusted_community_info_array[0] = ACSMsg::get_msg("User", "FileDetail.tpl.php",'M029');
+ }
+
+ print htmlspecialchars($this->_tpl_vars['detail_folder_row']['open_level_name']);
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ ?>
+ <br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M014') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['file_info_row']['entry_user_community_link_url'] ?>"><?= $this->_tpl_vars['file_info_row']['entry_user_community_name'] ?></a>
+ (<?= $this->_tpl_vars['file_info_row']['entry_date'] ?>)
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD" nowrap><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M015') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['file_info_row']['update_user_community_link_url'] ?>"><?= $this->_tpl_vars['file_info_row']['update_user_community_name'] ?></a>
+ (<?= $this->_tpl_vars['file_info_row']['update_date'] ?>)
+ </td>
+</tr>
+</table>
+
+</td></tr>
+</table>
+<!-- layout_table end //-->
+</p>
+
+
+<!-- layout_table -->
+<table class="layout_table">
+<tr>
+ <td><div class="subsub_title"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M016') ?></div></td>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['edit_file_detail_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['edit_file_detail_url'] . '">'.ACSMsg::get_msg("User", "FileDetail.tpl.php",'M017').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+<td colspan="2">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+ if (count($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'])) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" class=\"nowrap\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "FileDetail.tpl.php",'M018')."</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_category_name']) . "</td>";
+ echo "</tr>\n";
+ foreach ($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'] as $file_contents_row) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_row['file_contents_type_name']);
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars($file_contents_row['file_contents_value']));
+ echo "</td>";
+ echo "</tr>\n";
+ }
+ } else {
+ echo "<tr><td bgcolor=\"#ffffff\" width=\"100px\">".ACSMsg::get_msg("User", "FileDetail.tpl.php",'M019')."</td></tr>\n";
+ }
+?>
+</table>
+</td></tr></table>
+<br>
+
+
+<table class="layout_table">
+<tr>
+<td>
+<div class="subsub_title"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M020') ?></div>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+</td>
+</tr>
+<td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"> </td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M021') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M022') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M023') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M024') ?></td>
+<td class="nowrap" id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M025') ?></td>
+</tr>
+<?php
+foreach ($this->_tpl_vars['file_history_row_array'] as $file_history_row) {
+ echo "<tr>\n";
+
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . htmlspecialchars($file_history_row['file_history_operation_name']) . "</td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . htmlspecialchars($file_history_row['update_date']) . "</td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\"><a href=\"$file_history_row[link_url]\">" . htmlspecialchars($file_history_row['community_name']) . "</a></td>\n";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"$file_history_row[download_history_file_url]\">" . htmlspecialchars($file_history_row['display_file_name']) . "</a></td>\n";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">";
+ if ($file_history_row['restore_history_file_url'] != '') {
+ echo "[<a href=\"$file_history_row[restore_history_file_url]\">".ACSMsg::get_msg("User", "FileDetail.tpl.php",'M026')."</a>]";
+ } else {
+ echo " ";
+ }
+ echo "</td>\n";
+ // ¥³¥á¥ó¥È
+ $comment_str = "";
+ foreach ($file_history_row['file_history_comment_row_array'] as $file_history_comment_row) {
+ if ($file_history_comment_row['comment'] != '') {
+ if ($comment_str != '') {
+ $comment_str .= "<br>";
+ }
+ $comment_str .= "<li>";
+ $comment_str .= nl2br(htmlspecialchars($file_history_comment_row['comment']));
+ $comment_str .= "<span class=\"nowrap\"> (";
+ $comment_str .= "<a href=\"$file_history_comment_row[link_url]\">";
+ $comment_str .= htmlspecialchars($file_history_comment_row['community_name']);
+ $comment_str .= "</a> ";
+ $comment_str .= $file_history_comment_row['post_date'];
+ $comment_str .= ")</span>";
+ }
+ }
+ if ($comment_str == '') {
+ $comment_str = ' ';
+ }
+ echo "<td bgcolor=\"#ffffff\">" . $comment_str . "</td>\n"; // ¥¨¥¹¥±¡¼¥×ºÑ
+ echo "</tr>\n";
+}
+?>
+</table>
+
+</td>
+</tr>
+<?php
+if ($this->_tpl_vars['acs_user_info_row']['is_acs_user']) {
+?>
+<tr>
+<td align="right">
+<form action="<?= $this->_tpl_vars['file_history_comment_url'] ?>" method="post">
+<input type="text" name="comment" size="50"> <input type="submit" value="<?= ACSMsg::get_msg("User", "FileDetail.tpl.php",'M027') ?>">
+</form>
+</td>
+</tr>
+<?php
+}
+?>
+</table>
+<br>
+
+
+
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("User", "EditProfileImage.tpl.php",'M028') ?></a>
+<br>
--- /dev/null
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "Folder.tpl.php",'M001');
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ //$title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Folder.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ $title .= '</a>';
+ $title .= ' :: '.ACSMsg::get_msg("User", "Folder.tpl.php",'M002');
+}
+?>
+<div class="ttl"><?= $title ?> [<a href="<?= $this->_tpl_vars['search_folder_url'] ?>"><?= ACSMsg::get_msg("User", "Folder.tpl.php",'M003') ?></a>]</div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_obj_row_array'] as $path_folder_obj) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder_obj['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder_obj['name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<?php
+ // ¸ø³«ÈÏ°Ïɽ¼¨
+ $target_folder_open_level_row = $this->_tpl_vars['target_folder_open_level_row'];
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ // ËܿͤΤßɽ¼¨
+ if ($this->_tpl_vars['is_self_page']) {
+ foreach ($target_folder_open_level_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($target_folder_open_level_row['name'] == ACSMsg::get_mst('open_level_master','D05')
+ && count($target_folder_open_level_row['trusted_community_row_array']) == 0) {
+
+ //$trusted_community_info_array[0] = '*Âоݤʤ·';
+ $trusted_community_info_array[0] = ACSMsg::get_msg("User", "Folder.tpl.php",'M025');
+ }
+ }
+ print '<table class="open_level_table"><tr><td>';
+ print ACSMsg::get_msg("User", "Folder.tpl.php",'M004')." : ";
+ print $target_folder_open_level_row['name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print '</td></tr></table>';
+ print "\n";
+?>
+
+
+<?php if ($this->_tpl_vars['is_self_page']) { ?>
+ <form name="upload_file" action="<?= $this->_tpl_vars['upload_file_url'] ?>" method="POST" enctype="multipart/form-data">
+ <p>
+ <span style="border-style: solid; border-width: 1px; border-color: #555555; background: #FFF5AA; padding: 10px; margin: 5px 0 5px 0;">
+ <input type="file" name="new_file" size="30">
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "Folder.tpl.php",'M026') ?>">
+ <a href="<?= $this->_tpl_vars['upload_file_url'] ?>"><?= ACSMsg::get_msg("User", "Folder.tpl.php",'M005') ?></a>
+ </span>
+ </p>
+ </form>
+
+ <p>
+ <form name="operation" action="" method="POST">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder.tpl.php",'M006') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['move_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder.tpl.php",'M007') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['rename_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder.tpl.php",'M008') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['delete_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder.tpl.php",'M009') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['edit_folder_url'] ?>')">
+ </p>
+
+ <script type="text/javascript">
+ <!--
+ function submit_operation (form_obj, submit_url) {
+ form_obj.action = submit_url;
+ form_obj.submit();
+ }
+ //-->
+ </script>
+<?php } ?>
+
+<p>
+<?php
+ /* ¥Õ¥©¥ë¥À°ìÍ÷ɽ¼¨ */
+ echo "[ ".ACSMsg::get_msg("User", "Folder.tpl.php",'M010')." | <a href=\"" . $this->_tpl_vars['folder_group_mode_url'] . "\">".ACSMsg::get_msg("User", "Folder.tpl.php",'M011')."</a> ]<br><br>\n";
+
+ if (count($this->_tpl_vars['folder_row_array']) > 0 or count($this->_tpl_vars['file_row_array']) > 0 ) {
+ print '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">' . "\n";
+ print '<tr>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M012').'<br></th>' . "\n";
+ if ($this->_tpl_vars['is_self_page']) {
+ // ÁàºîÍÑ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹Ê¬
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M013').'</th>' . "\n";
+ }
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M014').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M015').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M016').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M017').'</th>' . "\n";
+ if ($this->_tpl_vars['is_root_folder']) {
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M004').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M019').'</th>' . "\n";
+ }
+ print '</tr>' . "\n";
+ }
+
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row ) {
+ print "<tr>\n";
+
+ print "<td align=\"center\" bgcolor=\"#ffffff\">";
+ /* ¸ø³«ÈÏ°ÏÀßÄê */
+ if ($this->_tpl_vars['is_self_page'] && $this->_tpl_vars['is_root_folder']) {
+ print '[<a href="' . $folder_row['folder_put_community_url'] . '" target="_blank">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M020').'</a>]<br>';
+ }
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ */
+ print '[<a href="' . $folder_row['detail_url'] . '">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M021').'</a>]';
+ print "</td>\n";
+
+ /* ÁàºîÍѤΥÁ¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ */
+ if ($this->_tpl_vars['is_self_page']) {
+ print '<td bgcolor="#ffffff" align="center">';
+ print '<input type="checkbox" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print "</td>\n";
+ }
+
+ /* ¥Õ¥©¥ë¥À²èÁü */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<table class="layout_table"><tr>';
+ print "<td bgcolor=\"#ffffff\">";
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print "</td>";
+
+ /* ¥Õ¥©¥ë¥À̾ (¥ê¥ó¥¯) */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $folder_row['link_url'] . '">';
+ print htmlspecialchars($folder_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $folder_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($folder_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print "<td bgcolor=\"#ffffff\">";
+ print $folder_row['update_date'];
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ // ËܿͤΤßɽ¼¨
+ if ($this->_tpl_vars['is_self_page']) {
+ foreach ($folder_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($folder_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && count($folder_row['trusted_community_row_array']) == 0) {
+
+ //$trusted_community_info_array[0] = '*Âоݤʤ·';
+ $trusted_community_info_array[0] = ACSMsg::get_msg("User", "Folder.tpl.php",'M025');
+ }
+ }
+
+ print "<td bgcolor=\"#ffffff\">";
+ print $folder_row['open_level_name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ */
+ if ($this->_tpl_vars['is_root_folder']) {
+ print "<td bgcolor=\"#ffffff\">\n";
+ if ($folder_row['put_community_url']) {
+ print '<a href="' . $folder_row['put_community_url'] . '" target="_blank">';
+ print ACSMsg::get_msg("User", "Folder.tpl.php",'M022');
+ print '</a>';
+ } else {
+ print ACSMsg::get_msg("User", "Folder.tpl.php",'M023');
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+ }
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row ) {
+ print "<tr>\n";
+
+ /* ¥Õ¥¡¥¤¥ë¾ÜºÙ */
+ print '<td align="center" bgcolor="#ffffff">';
+ print '[<a href="' . $file_row['detail_url'] . '">'.ACSMsg::get_msg("User", "Folder.tpl.php",'M021').'</a>]';
+ print '</td>' . "\n";
+
+ if ($this->_tpl_vars['is_self_page']) {
+ print '<td align="center" bgcolor="#ffffff">';
+ print '<input type="checkbox" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print '</td>' . "\n";
+ }
+
+ /* ¥Õ¥¡¥¤¥ë²èÁü */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<table class="layout_table"><tr>';
+ print "<td bgcolor=\"#ffffff\">";
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print "</td>";
+
+ /* ¥Õ¥¡¥¤¥ë̾ (¥ê¥ó¥¯) */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $file_row['link_url'] . '">';
+ print htmlspecialchars($file_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $file_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($file_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print "<td bgcolor=\"#ffffff\">";
+ print $file_row['update_date'];
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print '<td align="right" bgcolor="#ffffff">';
+ print $file_row['file_size'];
+ print "</td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+ }
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ */
+ if ($this->_tpl_vars['is_root_folder']) {
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+ }
+
+ print "</tr>\n";
+ }
+ if (count($this->_tpl_vars['folder_row_array']) > 0 or count($this->_tpl_vars['file_row_array']) > 0 ) {
+ print "</table>\n";
+ }
+
+?>
+</p>
+<?php if ($this->_tpl_vars['is_self_page']) { ?>
+</form>
+<?php } ?>
--- /dev/null
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M001');
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ $title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= '</a>';
+ $title .= ' :: <a href="' . $this->_tpl_vars['back_url'] . '">'.ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M002').'</a>';
+}
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M003') ?></div>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder['folder_name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<p>
+<!-- layout_table start //-->
+<table class="layout_table">
+<tr>
+ <td align="right">
+ <?php
+ if ($this->_tpl_vars['menu']['edit_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['edit_folder_url'] . '">'.ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M004').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['move_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['move_folder_url'] . '">'.ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M005').'</a>] ';
+ }
+ if ($this->_tpl_vars['menu']['delete_folder_url']) {
+ print '[<a href="' . $this->_tpl_vars['menu']['delete_folder_url'] . '">'.ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M006').'</a>]';
+ }
+ ?>
+ </td>
+</tr>
+
+<tr><td>
+<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M007') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['folder_name']) ?><br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M008') ?></td>
+ <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['comment']) ?><br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <?php
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ if ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) {
+ foreach ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($this->_tpl_vars['is_self_page']
+ && $this->_tpl_vars['detail_folder_row']['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && count($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) == 0) {
+
+ $trusted_community_info_array[0] = '*Âоݤʤ·';
+ }
+
+ print htmlspecialchars($this->_tpl_vars['detail_folder_row']['open_level_name']);
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ ?>
+ <br></td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M010') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['detail_folder_row']['entry_user_community_link_url'] ?>">
+ <?= $this->_tpl_vars['detail_folder_row']['entry_user_community_name'] ?>
+ </a>
+ (<?= $this->_tpl_vars['detail_folder_row']['entry_date'] ?>)
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M011') ?></td>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['detail_folder_row']['update_user_community_link_url'] ?>">
+ <?= $this->_tpl_vars['detail_folder_row']['update_user_community_name'] ?>
+ </a>
+ (<?= $this->_tpl_vars['detail_folder_row']['update_date'] ?>)
+ </td>
+</tr>
+</table>
+
+</td></tr>
+</table>
+<!-- layout_table end //-->
+</p>
+
+<?php
+// ¥×¥Ã¥È²Äǽ¤Ê¥Õ¥©¥ë¥À¤Î¾ì¹ç¤Î¤ßɽ¼¨¤¹¤ë
+if ($this->_tpl_vars['is_put_available']) {
+?>
+<p>
+<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M012') ?></td>
+ <td bgcolor="#ffffff">
+ <?php
+ if ($this->_tpl_vars['detail_folder_row']['put_community_row_array']) {
+ //print '<table class="common_table" border>';
+ print '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">';
+ $put_community_string_array = array();
+ foreach ($this->_tpl_vars['detail_folder_row']['put_community_row_array'] as $put_community_row) {
+ print '<tr>';
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£
+ print '<td bgcolor="#ffffff">';
+ print '<a href="' . $put_community_row['top_page_url'] . '">';
+ print $put_community_row['community_name'];
+ print '</a>';
+ print '</td>';
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À
+ print '<td bgcolor="#ffffff">';
+ print '<table class="layout_table"><tr><td>';
+ // ¥Õ¥©¥ë¥À²èÁü
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td><td>';
+ print '<a href="' . $put_community_row['folder_link_url'] . '">';
+ print $put_community_row['folder_name'];
+ print '</a>';
+ print '</td></tr></table>';
+ print '</td>';
+
+ print '</tr>';
+ }
+ print '</table>';
+ } else {
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤Ê¤·
+ print ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M013');
+ }
+ ?>
+ </td>
+</tr>
+</table>
+</p>
+<?php } ?>
+
+<p>
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("User", "FolderDetail.tpl.php",'M014') ?></a>
+</p>
--- /dev/null
+<div class="ttl"><?= ACSMsg::get_msg("User", "FolderPutCommunity.tpl.php",'M001') ?></div>
+
+<div class="msg">
+<?= ACSMsg::get_msg("User", "FolderPutCommunity.tpl.php",'M002') ?><br>
+</div>
+
+<p>
+<form name="select_put_community" method="POST" action="<?= $this->_tpl_vars['put_community_url'] ?>">
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['select_community_row_array'] as $select_community_row) {
+ print '<tr>';
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾
+ print '<td bgcolor="#ffffff">';
+ print '<a href="' . $select_community_row['top_page_url'] . '" target="_blank">';
+ print htmlspecialchars($select_community_row['community_name']);
+ print '</a>';
+ print '</td>';
+ print "\n";
+
+ // ¥Õ¥©¥ë¥ÀÁªÂò¤Î select ¥Ü¥Ã¥¯¥¹
+ print '<td bgcolor="#ffffff">';
+ if (count($select_community_row['folder_tree'])) {
+ print '<select name="selected_put_folder_id[' . $select_community_row['community_id'] . ']">';
+ print '<option value="">';
+ foreach ($select_community_row['folder_tree'] as $folder_row) {
+ $selected_str = "";
+ if ($folder_row['is_selected']) {
+ $selected_str = " selected";
+ }
+ print '<option value="' . $folder_row['folder_id'] . '"' . $selected_str . '>';
+ print str_repeat("-", $folder_row['tree_level']);
+ print htmlspecialchars($folder_row['folder_name']);
+ print "\n";
+ }
+ print '</select>';
+ print "\n";
+
+ } else {
+ // ¥³¥ß¥å¥Ë¥Æ¥£¤Ë¥Õ¥©¥ë¥À¤¬¤Ê¤¤¾ì¹ç
+ print ACSMsg::get_msg("User", "FolderPutCommunity.tpl.php",'M003');
+ }
+ print '</td>';
+
+ print '</tr>' . "\n";
+}
+?>
+</table>
+<input type="checkbox" value="t" name="send_announce_mail" <?= $this->_tpl_vars['send_annouce_mail_checked'] ?>>
+ <?= ACSMsg::get_msg("User", "FolderPutCommunity.tpl.php",'M005') ?>
+</p>
+
+<p>
+<input type="submit" value="<?= ACSMsg::get_msg("User", "FolderPutCommunity.tpl.php",'M004') ?>">
+</p>
+</form>
--- /dev/null
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "Folder_group.tpl.php",'M001');
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ //$title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Folder_group.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ $title .= '</a>';
+ $title .= ' :: '.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M002');
+}
+?>
+<div class="sub_title"><?= $title ?> [<a href="<?= $this->_tpl_vars['search_folder_url'] ?>"><?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M003') ?></a>]</div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<?php
+ // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+ $path = "";
+ foreach ($this->_tpl_vars['path_folder_obj_row_array'] as $path_folder_obj) {
+ if ($path != "") {
+ $path .= " / ";
+ }
+ $path .= '<a href="' . $path_folder_obj['link_url'] . '">';
+ $path .= htmlspecialchars($path_folder_obj['name']);
+ $path .= '</a>';
+ }
+
+ print "<p>\n";
+ print $path . "\n";
+ print "</p>\n";
+?>
+
+<?php
+ // ¸ø³«ÈÏ°Ïɽ¼¨
+ $target_folder_open_level_row = $this->_tpl_vars['target_folder_open_level_row'];
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ // ËܿͤΤßɽ¼¨
+ if ($this->_tpl_vars['is_self_page']) {
+ foreach ($target_folder_open_level_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($target_folder_open_level_row['name'] == ACSMsg::get_msg("User", "Folder_group.tpl.php",'M004')
+ && count($target_folder_open_level_row['trusted_community_row_array']) == 0) {
+
+ $trusted_community_info_array[0] = ACSMsg::get_msg("User", "Folder_group.tpl.php",'M005');
+ }
+ }
+ print '<table class="open_level_table"><tr><td>';
+ print ACSMsg::get_msg("User", "Folder_group.tpl.php",'M006')." : ";
+ print $target_folder_open_level_row['name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print '</td></tr></table>';
+ print "\n";
+?>
+
+
+<?php if ($this->_tpl_vars['is_self_page']) { ?>
+ <form name="upload_file" action="<?= $this->_tpl_vars['upload_file_url'] ?>" method="POST" enctype="multipart/form-data">
+ <p>
+ <span style="border-style: solid; border-width: 1px; border-color: #555555; background: #FFF5AA; padding: 10px; margin: 5px 0 5px 0;">
+ <input type="file" name="new_file" size="30">
+ <input type="submit" value="<?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M007') ?>">
+ <a href="<?= $this->_tpl_vars['upload_file_url'] ?>"><?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M008') ?></a>
+ </span>
+ </p>
+ </form>
+
+ <p>
+ <form name="operation" action="" method="POST">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M009') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['move_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M010') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['rename_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M011') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['delete_folder_url'] ?>')">
+ <input type="button" value="<?= ACSMsg::get_msg("User", "Folder_group.tpl.php",'M012') ?>" onClick="submit_operation(this.form, '<?= $this->_tpl_vars['edit_folder_url'] ?>')">
+ </p>
+
+ <script type="text/javascript">
+ <!--
+ function submit_operation (form_obj, submit_url) {
+ form_obj.action = submit_url;
+ form_obj.submit();
+ }
+ //-->
+ </script>
+<?php } ?>
+
+<p>
+<?php
+ /* ¥Õ¥©¥ë¥À°ìÍ÷ɽ¼¨ */
+ echo "[ <a href=\"" . $this->_tpl_vars['folder_url'] . "\">".ACSMsg::get_msg("User", "Folder_group.tpl.php",'M013')."</a> | ".ACSMsg::get_msg("User", "Folder_group.tpl.php",'M014')." ]<br><br>\n";
+
+ if (count($this->_tpl_vars['folder_row_array']) > 0) {
+ print '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">' . "\n";
+ print '<tr>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M015').'<br></th>' . "\n";
+ if ($this->_tpl_vars['is_self_page']) {
+ // ÁàºîÍÑ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹Ê¬
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M016').'</th>' . "\n";
+ }
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M017').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M018').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M019').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M020').'</th>' . "\n";
+ if ($this->_tpl_vars['is_root_folder']) {
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M006').'</th>' . "\n";
+ print '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M022').'</th>' . "\n";
+ }
+ print '</tr>' . "\n";
+ }
+
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print "<tr>\n";
+
+ print "<td bgcolor=\"#ffffff\" align=\"center\" class=\"nowrap\">";
+ /* ¸ø³«ÈÏ°ÏÀßÄê */
+ if ($this->_tpl_vars['is_self_page'] && $this->_tpl_vars['is_root_folder']) {
+ print '[<a href="' . $folder_row['folder_put_community_url'] . '" target="_blank">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M023').'</a>]<br>';
+ }
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ */
+ print '[<a href="' . $folder_row['detail_url'] . '">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M024').'</a>]';
+ print "</td>\n";
+
+ /* ÁàºîÍѤΥÁ¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ */
+ if ($this->_tpl_vars['is_self_page']) {
+ print '<td bgcolor="#ffffff" align="center">';
+ print '<input type="checkbox" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print "</td>\n";
+ }
+
+ /* ¥Õ¥©¥ë¥À²èÁü */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<table class="layout_table"><tr>';
+ print "<td>";
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print "</td>";
+
+ /* ¥Õ¥©¥ë¥À̾ (¥ê¥ó¥¯) */
+ print "<td>";
+ print '<a href="' . $folder_row['link_url'] . '">';
+ print htmlspecialchars($folder_row['name']);
+ print '</a>';
+ print "</td>";
+ print "</tr></table>";
+ print "</td>\n";
+
+ /* ¹¹¿·¼Ô */
+ print "<td bgcolor=\"#ffffff\">";
+ print '<a href="' . $folder_row['update_user_community_link_url'] . '">';
+ print htmlspecialchars($folder_row['update_user_community_name']);
+ print '</a>';
+ print "</td>\n";
+
+ /* ¹¹¿·Æü */
+ print "<td bgcolor=\"#ffffff\">";
+ print $folder_row['update_date'];
+ print "</td>\n";
+
+ /* ¥µ¥¤¥º */
+ print "<td bgcolor=\"#ffffff\"><br></td>\n";
+
+ /* ¸ø³«ÈÏ°Ï */
+ if ($this->_tpl_vars['is_root_folder']) {
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $trusted_community_info_array = array();
+ // ËܿͤΤßɽ¼¨
+ if ($this->_tpl_vars['is_self_page']) {
+ foreach ($folder_row['trusted_community_row_array'] as $trusted_community_row) {
+ $trusted_community_name = htmlspecialchars($trusted_community_row['community_name']);
+ if (!$trusted_community_name) {
+ continue;
+ }
+
+ array_push($trusted_community_info_array, $trusted_community_name);
+ }
+ // ±ÜÍ÷¥³¥ß¥å¥Ë¥Æ¥£¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¡ÖÂоݤʤ·¡×
+ if ($folder_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')
+ && count($folder_row['trusted_community_row_array']) == 0) {
+
+ //$trusted_community_info_array[0] = '*Âоݤʤ·';
+ $trusted_community_info_array[0] = ACSMsg::get_msg("User", "Folder_group.tpl.php",'M005');
+ }
+ }
+
+ print "<td bgcolor=\"#ffffff\">";
+ print $folder_row['open_level_name'];
+ if (count($trusted_community_info_array) > 0) {
+ $trusted_community_str = implode(", ", $trusted_community_info_array);
+ print " ($trusted_community_str)";
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+
+ /* ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ */
+ if ($this->_tpl_vars['is_root_folder']) {
+ print "<td bgcolor=\"#ffffff\">\n";
+ if ($folder_row['put_community_url']) {
+ print '<a href="' . $folder_row['put_community_url'] . '" target="_blank">';
+ print ACSMsg::get_msg("User", "Folder_group.tpl.php",'M025');
+ print '</a>';
+ } else {
+ print ACSMsg::get_msg("User", "Folder_group.tpl.php",'M026');
+ }
+ print "<br>";
+ print "</td>\n";
+ }
+ }
+ if (count($this->_tpl_vars['folder_row_array']) > 0) {
+ print "</table><br>\n";
+ }
+
+?>
+<?php
+// ¥°¥ë¡¼¥×ɽ¼¨
+
+foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'] as $file_contents_type_master_row_array) {
+ $file_category_code = $file_contents_type_master_row_array['file_category_code'];
+ $file_category_name = $file_contents_type_master_row_array['file_category_name'];
+
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤´¤È¤Î¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó¤ÎÏ¢ÁÛÇÛÎó¤¬1·ï°Ê¾å¤¢¤ë¾ì¹ç
+ if (count($this->_tpl_vars['file_detail_info_row_array_array'][$file_category_code]['file_detail_info_row_array']) > 0) {
+ echo "<div class=\"subsub_title\">";
+ echo $file_contents_type_master_row_array['file_category_name'];
+ echo "</div>\n";
+
+ echo '<table class="file_list_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">';
+ echo "<tr>";
+ if ($this->_tpl_vars['is_self_page']) {
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M015')."</th>";
+ }
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M016')."</th>";
+ echo '<th id="myttl" bgcolor="#DEEEBD">'.ACSMsg::get_msg("User", "Folder_group.tpl.php",'M017')."</th>";
+
+ // ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤´¤È¤Î¥¿¥¤¥È¥ëɽ¼¨
+ foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'][$file_category_code]['file_contents_type_master_row_array']
+ as $file_contents_type_master_row) {
+ echo '<th id="myttl" bgcolor="#DEEEBD">';
+ echo htmlspecialchars($file_contents_type_master_row['file_contents_type_name']);
+ echo "</th>";
+ }
+ echo "</tr>\n";
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó
+ foreach ($this->_tpl_vars['file_detail_info_row_array_array'][$file_category_code]['file_detail_info_row_array'] as $file_detail_info_row) {
+ echo "<tr>\n";
+
+ // ´ðËܾðÊó
+ echo "<td align=\"center\" bgcolor=\"#ffffff\" class=\"nowrap\">[<a href=\"$file_detail_info_row[file_detail_url]\">".ACSMsg::get_msg("User", "Folder_group.tpl.php",'M024')."</a>]</td>\n";
+ if ($this->_tpl_vars['is_self_page']) {
+ echo "<td bgcolor=\"#ffffff\" align=\"center\"><input type=\"checkbox\" name=\"selected_file[]\" value=\"$file_detail_info_row[file_id]\"></td>\n";
+ }
+ if ($file_category_name == ACSMsg::get_mst('file_category_master','D0003')) {
+ echo "<td bgcolor=\"#ffffff\" align=\"center\">";
+ echo "<img src=\"$file_detail_info_row[image_url]\"><br>";
+ echo "<a href=\"$file_detail_info_row[link_url]\">$file_detail_info_row[display_file_name]</a>";
+ echo "</td>\n";
+ } else {
+ echo "<td bgcolor=\"#ffffff\"><a href=\"$file_detail_info_row[link_url]\">$file_detail_info_row[display_file_name]</a></td>\n";
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥Ä¤´¤È¤Î¥³¥ó¥Æ¥ó¥Äɽ¼¨
+ foreach ($this->_tpl_vars['file_contents_type_master_row_array_array'][$file_category_code]['file_contents_type_master_row_array']
+ as $file_contents_type_master_row) {
+ echo "<td bgcolor=\"#ffffff\">";
+ $file_contents_value = $file_detail_info_row['file_contents_row_array'][$file_contents_type_master_row['file_contents_type_code']]['file_contents_value'];
+ if ($file_contents_value != '') {
+ echo nl2br(htmlspecialchars($file_contents_value));
+ } else {
+ echo " ";
+ }
+ echo "</td>";
+ }
+
+ echo "</tr>\n";
+ }
+
+ echo "</table><br>\n";
+ }
+}
+
+?>
+</p>
+<?php if ($this->_tpl_vars['is_self_page']) { ?>
+</form>
+<?php } ?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: teramoto 2007/3 ver1.0 |
+// | ÂÀ׳Îǧ²èÌÌ ¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: FootprintCheck.tpl.php,v 1.1 2007/03/27 02:12:43 w-ota Exp $
+?>
+
+<!-- HTML -->
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['top_page_url'] ?>"> <?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M002') ?>
+</div>
+<br>
+<?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'TITLE'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['acs_user_info_row']['community_name']))) ?>
+<br><br>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+if (count($this->_tpl_vars['footprint_info_row_array']) > 0) {
+?>
+
+ <table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+ <tr>
+ <td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M003') ?></td>
+ <td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M004') ?></td>
+ <td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M005') ?></td>
+ <td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M006') ?></td>
+ </tr>
+ <?php
+
+ foreach($this->_tpl_vars['footprint_info_row_array'] as $footprint_row){
+
+ echo '<tr>';
+
+ // ¥¢¥¯¥»¥¹Æü»þ
+ echo '<td bgcolor="#FFFFFF">' . $footprint_row['post_date_disp'] . '</td>';
+ // ¥¢¥¯¥»¥¹¼Ô
+ echo '<td bgcolor="#FFFFFF">';
+ echo '<a href="' . $footprint_row['visitor_url'] . '">' . $footprint_row['community_name'] . '</a>';
+ echo '</td>';
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ
+ echo '<td bgcolor="#FFFFFF">' . $footprint_row['contents_type_name'] . '</td>';
+ // ¥³¥ó¥Æ¥ó¥Ä¾ðÊó
+ echo '<td bgcolor="#FFFFFF">';
+ echo '<a href="' . $footprint_row['contents_link_url'] . '">' . $footprint_row['contents_title'] . '</a>';
+ echo ' ' . $footprint_row['contents_date_disp'];
+ echo '</td>';
+
+ echo '</tr>';
+ }
+ ?>
+ </table>
+<?php
+} else {
+ echo ACSMsg::get_msg("User", "FootprintCheck.tpl.php",'M010');
+}
+?>
--- /dev/null
+<?php
+// $Id: FriendsGroupList.tpl.php,v 1.4 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M001') ?>
+ (<?= $this->_tpl_vars['friends_group_row_array_num'] ?><?= ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M002') ?>)</div><br>
+
+<a class="ichiran3" href="<?= $this->_tpl_vars['create_friends_group_url'] ?>"><?= ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M003') ?></a><br>
+<br>
+
+<?php
+foreach ($this->_tpl_vars['friends_group_row_array'] as $friends_group_row) {
+?>
+
+<table border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCC33" style="margin:10px;">
+<tr>
+<td bgcolor="#F6F2B8" id="myttl" style="padding:5px;">
+
+<?php
+ echo htmlspecialchars($friends_group_row['community_name']);
+ echo " (" . $friends_group_row['friends_row_array_num'] . ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M004').")";
+?>
+
+</td>
+</tr>
+<tr>
+<td bgcolor="#FFFFFF">
+<table border="0" cellspacing="10" cellpadding="5">
+
+<?php
+$ccount = 0;
+ if (count($friends_group_row['friends_row_array'])) {
+ $count = 0;
+ foreach ($friends_group_row['friends_row_array'] as $user_info_row) {
+ if ($count % 6 == 0) {
+ echo "<tr>";
+ }
+ $ccount++;
+ echo "<td class=\"mytbl\" align=\"center\">";
+ echo "<a href=\"$user_info_row[top_page_url]\"><img style=\"border:none\" src=\"$user_info_row[image_url]\"><br>" . htmlspecialchars($user_info_row['community_name']) . "</a><br>";
+ echo "</td>";
+ if ($count % 6 == 5) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+ } else {
+ echo "<tr>";
+ echo "<td>".ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M005')."</td>";
+ echo "</tr>\n";
+ }
+?>
+<tr>
+<td clospan="<?= $ccount ?>" style="padding:5px;" bgcolor="ffffff">
+<?php
+//echo "[ ";
+ echo "<a href=\"$friends_group_row[edit_friends_group_member_url]\">".ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M006')."</a>";
+ echo " | ";
+ echo "<a href=\"$friends_group_row[delete_friends_group_url]\">".ACSMsg::get_msg("User", "FriendsGroupList.tpl.php",'M007')."</a>";
+//echo " ]";
+ echo "<br>\n";
+?>
+
+</table>
+</td>
+</tr>
+</table>
+<?php
+}
+?>
--- /dev/null
+<?
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: w-ota v 1.5 2006/03/07 07:32:55 |
+// | update: akitsu 2006/3/8 ver1.0 |
+// |Diary¡¡top²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: FriendsList.tpl.php,v 1.8 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<?php
+//¼«Ê¬¤Î¥Õ¥ì¥ó¥º¤Ê¤é¤Ð¡¢¥ê¥ó¥¯¤Ï̵¤¤
+if ($this->_tpl_vars['is_self_page']) {
+ echo "<div class=\"ttl\">";
+ echo ACSMsg::get_msg("User", "FriendsList.tpl.php",'M001');
+} else {
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤Î¥Õ¥ì¥ó¥º¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<div class=\"ttl\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">";
+ //echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó</a> :: ";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "FriendsList.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+ echo ACSMsg::get_msg("User", "FriendsList.tpl.php",'M002');
+}
+ echo " (" .$this->_tpl_vars['friends_row_array_num'] .")";
+ echo "</div><br>\n";
+?>
+
+<?php
+if ($this->_tpl_vars['friends_group_list_url'] != '') {
+ echo "<a class=\"ichiran3\" href=\"" .$this->_tpl_vars['friends_group_list_url']. "\">".ACSMsg::get_msg("User", "FriendsList.tpl.php",'M003')."</a><br><br>\n";
+}
+?>
+
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+
+<table width="650" border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td bgcolor="#FFFFFF">
+<table width="100%" border="0" cellspacing="10" cellpadding="5">
+<?php
+if (count($this->_tpl_vars['friends_row_array'])) {
+ $count = 0;
+ foreach ($this->_tpl_vars['friends_row_array'] as $user_info_row) {
+ if ($count % 4 == 0) {
+ echo "<tr>";
+ }
+ echo "<td class=\"mytbl\" align=\"center\">";
+ echo "<a href=\"".$user_info_row['top_page_url']."\">" . "<img style=\"border:none;\" src=\"".$user_info_row['image_url']."\"><br>" . htmlspecialchars($user_info_row['community_name']) . "</a>";
+ echo "(" . $user_info_row['friends_row_array_num'] . ")";
+ if ($user_info_row['delete_friends_url']) {
+ echo " ";
+ echo "[<a href=\"".$user_info_row['delete_friends_url']."\">".ACSMsg::get_msg("User", "FriendsList.tpl.php",'M004')."</a>]";
+ }
+ echo "</td>";
+ if ($count % 4 == 3) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td>".ACSMsg::get_msg("User", "FriendsList.tpl.php",'M005')."</td>";
+ echo "</tr>\n";
+}
+?>
+</table></td></tr>
+
+</table>
+<br>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: kuwayama v 1.14 2006/03/04 00:40:31 |
+// | update: akitsu 2006/3/8 ver1.0 |
+// | User top²èÌÌ |
+// +----------------------------------------------------------------------+
+// $Id: Index.tpl.php,v 1.32 2008/03/24 07:00:36 y-yuki Exp $
+?>
+
+<table class="layout_table" width="665px">
+<tr>
+<td valign="top">
+<!-------------------------------->
+<table class="layout_table">
+<tr>
+ <td align="center">
+ <!-- ¼Ì¿¿ -->
+ <a href="<?=$this->_tpl_vars['menu']['image_change_url'] ?>"><img class="pic" src="<?=$this->_tpl_vars['profile']['image_url'] ?>"></a><br>
+<?php
+if ($this->_tpl_vars['menu']['image_change_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['menu']['image_change_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M001')."</a><br>\n";
+}
+?>
+ <br>
+<?php
+// ¡Ö¡û¡ß¤µ¤ó¡×
+echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Index.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['profile']['community_name'])));
+?>
+ <br>
+<?php
+// ºÇ½ª¥í¥°¥¤¥ó»þ´Ö
+if ($this->_tpl_vars['last_login']){
+ echo "<br><font style='font-size: 8pt'>";
+ echo ACSMsg::get_tag_replace(
+ ACSMsg::get_msg("User", "Index.tpl.php",'LAST_LOGIN'), array(
+ "{LAST_LOGIN}" => htmlspecialchars($this->_tpl_vars['last_login'])));
+ echo "</font><br>";
+}
+?>
+ </td>
+</tr>
+<tr>
+ <td class="nowrap">
+ <br><span class="sub_title"><?= ACSMsg::get_msg("User", "Index.tpl.php",'M002') ?></span><br>
+ <br><a href="<?=$this->_tpl_vars['menu']['diary_url'] ?>">
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M003');
+} else {
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M004');
+}
+?>
+ </a><br>
+<?php
+if ($this->_tpl_vars['profile_edit_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['message_box_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M036')."</a><br>\n";
+}
+?>
+<a href="<?=$this->_tpl_vars['menu']['folder_url'] ?>">
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ echo ACSMsg::get_msg("User", "Index.tpl.php", 'M005');
+} else {
+ echo ACSMsg::get_msg("User", "Index.tpl.php", 'M006');
+}
+?>
+</a><br>
+<?php
+if ($this->_tpl_vars['menu']['change_password_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['menu']['change_password_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M007')."</a><br>\n";
+}
+if ($this->_tpl_vars['profile_edit_url']) {
+ echo "<a href=\"" . $this->_tpl_vars['profile_edit_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M008')."</a><br>\n";
+ echo "<a href=\"" . $this->_tpl_vars['profile_view_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M009')."</a><br>\n";
+ echo "<a href=\"" . $this->_tpl_vars['footprint_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M033')."</a><br>\n";
+ echo "<a href=\"" . $this->_tpl_vars['select_design_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M034')."</a><br>\n";
+ echo "<a href=\"" . $this->_tpl_vars['backup_url'] . "\">".ACSMsg::get_msg("User", "Index.tpl.php",'M035')."</a>\n";
+
+} else if ($this->_tpl_vars['peruse_mode'] != 9) {
+ // °ìÈ̤ǤϤʤ¤
+ echo "<form method=\"get\">";
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("User", "Index.tpl.php",'M037')."\" onclick=\"location.href='" .$this->_tpl_vars['message_btn_url']. "'\">";
+}
+?>
+</td>
+</tr>
+</table>
+<!-------------------------------->
+</td>
+<td width="15px"> </td>
+<td valign="top">
+
+<?php
+// ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+if (count($this->_tpl_vars['system_announce_row_array'])) {
+ echo "<table class=\"system_announce_table\" width=\"95%\">\n";
+ echo "<tr><td>\n";
+ foreach ($this->_tpl_vars['system_announce_row_array'] as $index => $system_announce_row) {
+ if ($index > 0) {
+ echo "<br>\n";
+ }
+ echo "<b>" . htmlspecialchars($system_announce_row['subject']) . "</b> (" .$system_announce_row['post_date']. ")<br>\n";
+ echo "" . nl2br(htmlspecialchars($system_announce_row['body'])) . "<br>\n";
+ }
+ echo "</td></tr>\n";
+ echo "</table><br>\n";
+}
+?>
+
+<?php
+if ($this->_tpl_vars['profile_edit_url']) {
+
+ // ********** ¼«Ê¬¤Î¥Þ¥¤¥Ú¡¼¥¸¤ò¸«¤Æ¤¤¤ë¾ì¹ç **********//
+
+ $br_required = 0; // ²þ¹Ô¤¬É¬Í×
+
+ // ÂÔµ¡: ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲðÍÍê
+ if ($this->_tpl_vars['waiting_for_add_friends_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"".$this->_tpl_vars['waiting_list_for_add_friends_url']."\">";
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M010')." (" . $this->_tpl_vars['waiting_for_add_friends_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M011').")";
+ echo "</a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+
+ // ÂÔµ¡: ´ÉÍý¼Ô¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î¥³¥ß¥å¥Ë¥Æ¥£»²²Ã°ÍÍê
+ foreach ($this->_tpl_vars['waiting_for_join_community_row_array_array'] as $waiting_for_join_community_row_array) {
+ if ($waiting_for_join_community_row_array['waiting_for_join_community_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"".$waiting_for_join_community_row_array['waiting_list_for_join_community_url']."\">";
+ echo htmlspecialchars($waiting_for_join_community_row_array['community_row']['community_name']) . ACSMsg::get_msg("User", "Index.tpl.php",'M012')." :: ";
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M013')." (" . $waiting_for_join_community_row_array['waiting_for_join_community_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M011').")";
+ echo "</a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+ }
+
+ // ÂÔµ¡: ´ÉÍý¼Ô¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲðÍÍê
+ foreach ($this->_tpl_vars['waiting_for_parent_community_link_row_array_array'] as $waiting_for_parent_community_link_row_array) {
+ if ($waiting_for_parent_community_link_row_array['waiting_for_parent_community_link_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"".$waiting_for_parent_community_link_row_array['waiting_list_for_parent_community_link_url']."\">";
+ echo htmlspecialchars($waiting_for_parent_community_link_row_array['community_row']['community_name']) . ACSMsg::get_msg("User", "Index.tpl.php",'M012')." :: ";
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M014')." (" . $waiting_for_parent_community_link_row_array['waiting_for_parent_community_link_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M011').")";
+ echo "</a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+ }
+
+ // ÂÔµ¡: ´ÉÍý¼Ô¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£¤Î¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲðÍÍê
+ foreach ($this->_tpl_vars['waiting_for_sub_community_link_row_array_array'] as $waiting_for_sub_community_link_row_array) {
+ if ($waiting_for_sub_community_link_row_array['waiting_for_sub_community_link_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"".$waiting_for_sub_community_link_row_array['waiting_list_for_sub_community_link_url']."\">";
+ echo htmlspecialchars($waiting_for_sub_community_link_row_array['community_row']['community_name']) . ACSMsg::get_msg("User", "Index.tpl.php",'M012')." :: ";
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M015')." (" . $waiting_for_sub_community_link_row_array['waiting_for_sub_community_link_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M011').")";
+ echo "</a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+ }
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ
+ if ($this->_tpl_vars['waiting_for_invite_to_community_row_array_num']) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"".$this->_tpl_vars['waiting_list_for_invite_to_community_url']."\">";
+ echo ACSMsg::get_msg("User", "Index.tpl.php",'M016')." (" . $this->_tpl_vars['waiting_for_invite_to_community_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M011').")";
+ echo "</a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+
+ // ¿·Ã女¥á¥ó¥È
+ if ($this->_tpl_vars['new_comment_diary_row_array_num'] > 0) {
+ echo "<div align=\"left\">";
+ echo "<a href=\"" . $this->_tpl_vars['new_comment_diary_url'] . "\"><font color=\"red\"><b>";
+ echo $this->_tpl_vars['new_comment_diary_row_array_num'] . ACSMsg::get_msg("User", "Index.tpl.php",'M017');
+ echo "</b></font></a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+
+ // ̤ÆÉ¥á¥Ã¥»¡¼¥¸
+ if ($this->_tpl_vars['new_message_row_array_num'] > 0) {
+ echo "<div align =\"left\">";
+ echo "<a href=\"".$this->_tpl_vars['new_message_url']."\"><font color=\"red\"><b>";
+ echo $this->_tpl_vars['new_message_row_array_num']. ACSMsg::get_msg("User", "Index.tpl.php",'M038');
+ echo "</b></font></a>";
+ echo "</div>\n";
+ $br_required = 1;
+ }
+
+ if ($br_required) {
+ echo "<br>\n";
+ }
+
+ // ³ÆºÇ¿·¾ðÊó
+ echo "<table class=\"layout_table\" width=\"95%\">\n";
+ echo "<tr>\n";
+ echo "<td valign=\"top\" width=\"220px\">".$this->_tpl_vars['NewDiary']."</td>\n";
+ echo "<td valign=\"top\" width=\"220px\">".$this->_tpl_vars['DiaryCommentHistory']."</td>\n";
+ echo "</tr>\n";
+ echo "<tr><td height=\"10\" colspan=\"2\"></td></tr>\n";
+ echo "<tr>\n";
+ echo "<td valign=\"top\" width=\"440\" colspan=\"2\">".$this->_tpl_vars['NewBBS']."</td>\n";
+ echo "</tr>";
+ echo "<tr><td height=\"10\" colspan=\"2\"></td></tr>\n";
+ echo "<tr>\n";
+ echo "<td valign=\"top\" width=\"220px\">" . $this->_tpl_vars['NewFriendsFolder'] . "</td>\n";
+ echo "<td valign=\"top\" width=\"220px\">" . $this->_tpl_vars['NewCommunityFolder'] ."</td>\n";
+ echo "</tr>\n";
+ echo "</table>";
+
+} else {
+ // ********** ¤À¤ì¤«¤Î¥Þ¥¤¥Ú¡¼¥¸¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç **********//
+
+ echo "<div class=\"ttl\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Index.tpl.php",'NAME_PROFILE'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['profile']['community_name'])));
+ echo "</div><br><br>\n";
+
+ if ($this->_tpl_vars['add_myfriends_url']) {
+ echo "<div align=\"left\">";
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("User", "Index.tpl.php",'M018')."\" onclick=\"location.href='" .$this->_tpl_vars[add_myfriends_url]. "'\">";
+ echo "</form>";
+ echo "</div>";
+ echo "<br>";
+ } else if ($this->_tpl_vars['peruse_mode'] != 9) {
+ echo "</form>";
+ }
+
+ // ¥×¥í¥Õ¥£¡¼¥ë¥Æ¡¼¥Ö¥ë
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ if (is_array($this->_tpl_vars['profile']['contents_row_array']['user_name'])) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M019')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['user_name']) . "</td>";
+ echo "</tr>\n";
+ }
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M020')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['community_name']) . "</td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M021')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['belonging']) . "</td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M022')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['speciality']) . "</td>";
+ echo "</tr>\n";
+ if (is_array($this->_tpl_vars['profile']['contents_row_array']['birthplace'])) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M023')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['birthplace']) . "</td>";
+ echo "</tr>\n";
+ }
+ if (is_array($this->_tpl_vars['profile']['contents_row_array']['birthday'])) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M024')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . $this->_tpl_vars['profile']['birthday'] . "</td>";
+ echo "</tr>\n";
+ }
+
+ // ¼«¸Ê¾Ò²ð¤Ï¡¢±ÜÍ÷¼ÔÊ̤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Index.tpl.php",'M025')."</td>";
+ if ($this->_tpl_vars['peruse_mode'] == 1) { //¥í¥°¥¤¥ó¥æ¡¼¥¶
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(ACSTemplateLib::auto_link(htmlspecialchars($this->_tpl_vars['profile']['community_profile_login']))) . "</td>";
+ }
+ if ($this->_tpl_vars['peruse_mode'] == 2) { //¤¹¤Ù¤Æ¤Îͧ¿Í
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(ACSTemplateLib::auto_link(htmlspecialchars($this->_tpl_vars['profile']['community_profile_friend']))) . "</td>";
+ }
+ if ($this->_tpl_vars['peruse_mode'] == 9) { //°ìÈÌ
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(ACSTemplateLib::auto_link(htmlspecialchars($this->_tpl_vars['profile']['community_profile']))) . "</td>";
+ }
+ echo "</tr>\n";
+ echo "</table>\n";
+ echo "<br>";
+}
+
+?>
+
+</td>
+</tr>
+</table>
+<!---------------------------------------------------------------->
+
+<br><br>
+
+<!---------------------------------------------------------------->
+<table class="layout_table" width="660px">
+<tr>
+<td valign="top">
+<!-- ¥Þ¥¤¥Õ¥ì¥ó¥º -->
+<table class="mylist_table">
+<tr>
+<td id="myttl" class="mlttl"><?= ACSMsg::get_msg("User", "Index.tpl.php",'M026') ?> (<?= $this->_tpl_vars['friends_row_array_num'] ?>)</td>
+</tr>
+<tr>
+<td class="mltd">
+<table width="320px" border="0" cellspacing="10" cellpadding="5">
+<?php
+if (count($this->_tpl_vars['friends_row_array'])) {
+ $count = 0;
+ foreach ($this->_tpl_vars['friends_row_array'] as $user_info_row) {
+ if ($count % 3 == 0) {
+ echo "<tr>";
+ }
+ echo '<td align="center" id="mytbl">';
+ echo "<a href=\"" . htmlspecialchars($user_info_row['top_page_url']) . "\">" . '<img src="' . $user_info_row['image_url'] . '" border="0">' . "</a><br>";
+ echo "<a href=\"" . htmlspecialchars($user_info_row['top_page_url']) . "\">";
+ echo htmlspecialchars($user_info_row['community_name']);
+ echo "</a>";
+ echo "(" . $user_info_row['friends_row_array_num'] . ")";
+ echo "</td>";
+ if ($count % 3 == 2) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td id=\"mytbl\">".ACSMsg::get_msg("User", "Index.tpl.php",'M027')."</td>";
+ echo "</tr>\n";
+}
+?>
+<tr>
+<td colspan="3" style="padding:5px;" bgcolor="ffffff">
+<?php
+if ($this->_tpl_vars['friends_list_url']) {
+ echo "<a class=\"ichiran\" href=\"".$this->_tpl_vars['friends_list_url']."\">".ACSMsg::get_msg("User", "Index.tpl.php",'M028')."</a><br>\n";
+}
+if ($this->_tpl_vars['friends_group_list_url']) {
+ echo "<a class=\"ichiran\" href=\"".$this->_tpl_vars['friends_group_list_url']."\">".ACSMsg::get_msg("User", "Index.tpl.php",'M029')."</a><br>\n";
+}
+?>
+</td>
+</tr>
+
+</table></td>
+</tr>
+</table>
+</td>
+<!-------------------------------->
+<td width="20px"> </td>
+<td valign="top">
+<!-- ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£ -->
+
+
+<table class="mylist_table">
+<tr>
+<td id="myttl" class="mlttl"><?= ACSMsg::get_msg("User", "Index.tpl.php",'M030') ?> (<?= $this->_tpl_vars['community_row_array_num'] ?>)</td>
+</tr>
+<tr>
+<td class="mltd">
+<table width="320px" border="0" cellspacing="10" cellpadding="5">
+
+<?php
+if (count($this->_tpl_vars['community_list'])) {
+ $count = 0;
+ foreach ($this->_tpl_vars['community_list'] as $community_row) {
+ if ($count % 3 == 0) {
+ echo "<tr>";
+ }
+ echo '<td align="center" id="mytbl">';
+ echo "<a href=\"" . $community_row['top_page_url'] ."\">" .
+ '<img src="' . $community_row['image_url'] . '" border="0">' . "</a><br>";
+ echo "<a href=\"" . $community_row['top_page_url'] . "\">";
+ echo htmlspecialchars($community_row['community_name']);
+ echo "</a>";
+ echo "(" . $community_row['community_member_num'] . ")";
+ echo "</td>";
+ if ($count % 3 == 2) {
+ echo "</tr>\n";
+ }
+ $count++;
+ }
+} else {
+ echo "<tr>";
+ echo "<td id=\"mytbl\">".ACSMsg::get_msg("User", "Index.tpl.php",'M027')."</td>";
+ echo "</tr>\n";
+}
+?>
+<tr>
+<td colspan="3" style="padding:5px;" bgcolor="ffffff">
+
+<a class="ichiran" href="<?= $this->_tpl_vars['community_list_url'] ?>"><?= ACSMsg::get_msg("User", "Index.tpl.php",'M032') ?></a><br>
+
+</td>
+</tr>
+
+</table></td>
+</tr>
+</table>
+
+
+</td>
+</table>
--- /dev/null
+<?= ACSMsg::get_msg("User", "Index_error.tpl.php", 'M001') ?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: LoginInput.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg('User', 'LoginInput.tpl.php','M001') ?></div>
+<?php
+ // ¥í¥°¥¤¥ó¥¨¥é¡¼»þ
+ echo ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+<tr>
+ <td bgcolor="#FFF5AA">
+ <table class="layout_table">
+ <tr>
+ <td><?= ACSMsg::get_msg('User', 'LoginInput.tpl.php','M002') ?></td>
+ <td><input type="text" name="userid" value="<?= htmlspecialchars($_POST['userid']) ?>" size="30" tabindex="1" style="width:200px"></td>
+ </tr>
+ <tr>
+ <td><?= ACSMsg::get_msg('User', 'LoginInput.tpl.php','M003') ?></td>
+ <td><input type="password" name="passwd" value="<?= htmlspecialchars($_POST['passwd']) ?>" size="30" tabindex="2" style="width:200px"></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">
+ <input type="submit" value="<?= ACSMsg::get_msg('User', 'LoginInput.tpl.php','M004') ?>" tabindex="3">
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+</table>
+
+</form>
+</p>
\ No newline at end of file
--- /dev/null
+<?= ACSMsg::get_msg("User", "Logout.tpl.php", "M001") ?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: nakau v 1.0 2008/02/27 ¡¡ |
+// |¥á¥Ã¥»¡¼¥¸¡¡ÆþÎϲèÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: Message.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+<div class="ttl">
+<?php
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤Î¥á¥Ã¥»¡¼¥¸¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_Message_url'] ."\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Message.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+ echo ACSMsg::get_msg("User", "Message.tpl.php",'M001');
+?>
+</div><br>
+
+
+<?php
+//³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¤ÇÌá¤Ã¤Æ¤¤¿»þ¤Î½èÍý¡¡¾ðÊó²óµ¢
+ $value = '';
+if($this->_tpl_vars['move_id'] == 3){
+ $value['subject'] = $this->_tpl_vars['form']['subject'];
+ $value['body'] = $this->_tpl_vars['form']['body'];
+ if ($this->_tpl_vars['form']['info_mail'] == "on") {
+ $value['info_mail'] = "checked";
+ }
+}
+//ÊÖ¿®¥Ü¥¿¥ó²¡²¼»þ¤Î½èÍý
+if($this->_tpl_vars['move_id'] == 4){
+ $value['subject'] = "Re: ".$this->_tpl_vars['form']['subject'];
+ $value['body'] = ">".str_replace("\n","\n>", $this->_tpl_vars['form']['body']);
+}
+?>
+<br>
+<br>
+<?php
+ // form
+ echo "<form action=\"" . $this->_tpl_vars["action_url"] . "\" method=\"post\" name=\"message_form\">\n";
+ // table
+ echo "<table border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">" .ACSMsg::get_msg("User", "Message.tpl.php",'M002')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"" .$this->_tpl_vars['link_page_url']['else_user_Message_url'] ."\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Message.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a></td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Message.tpl.php",'M003')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><input type=\"text\" name=\"subject\" value=\"" .htmlspecialchars($value['subject']) ."\" size=\"50\" style=\"width:400px\"></td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "Message.tpl.php",'M004')."</td>";
+ echo "<td bgcolor=\"#ffffff\"><textarea name=\"body\" cols=\"60\" rows=\"15\" style=\"width:600px\">";
+ echo htmlspecialchars($value['body']);
+ echo "</textarea></td>";
+ echo "</tr>\n";
+
+
+ echo "</table>\n";
+ echo "<br>\n";
+ echo "<input type=\"checkbox\" name=\"info_mail\" ".$value['info_mail'].">".ACSMsg::get_msg("User", "Message.tpl.php",'M005');
+ echo "<br>\n";
+ echo "<br>\n";
+ echo "<input type=\"hidden\" name=\"acs_user_id\" value=\"".$this->_tpl_vars['acs_user_info_row']['user_community_id']."\">";
+
+ // submit
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg("User", "Message.tpl.php",'M006')."\">\n";
+ echo "</form>\n";
+ echo "<br>\n";
+ echo "<br>\n";
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: nakau v 1.0 2008/03/11 00:40:31 |
+// |User¡¡MessageBox²èÌÌ ¡¡¡¡¡¡¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: MessageBox.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+
+
+<table class="layout_table" width="665px">
+<tr>
+<td valign="top">
+<!-------------------------------->
+<table class="layout_table">
+<tr>
+<td class="nowrap">
+<br>
+<span class="sub_title"><?= ACSMsg::get_msg("User", "MessageBox.tpl.php",'M001') ?></span><br>
+<br>
+
+<table border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td bgcolor="#FFFFFF">
+<table border="0" cellspacing="10" cellpadding="5">
+<tr><td width="60px" height="60px" align="center">
+<a href="<?=$this->_tpl_vars['menu']['receiv_box_url'] ?>">
+<?= ACSMsg::get_msg("User", "MessageBox.tpl.php",'M002') ?>
+</a><br>
+<a href="<?=$this->_tpl_vars['menu']['send_box_url'] ?>">
+<?= ACSMsg::get_msg("User", "MessageBox.tpl.php",'M003') ?>
+</a><br>
+</td></tr>
+</table>
+</td></tr>
+</table>
+
+</td>
+</tr>
+</table>
+<!-------------------------------->
+</td>
+<td width="15px"> </td>
+<td valign="top">
+
+<?php
+echo "<div class=\"ttl\">";
+if ($this->_tpl_vars['move_id'] == 2) {
+ echo ACSMsg::get_msg("User", "MessageBox.tpl.php",'M003');
+} else {
+ echo ACSMsg::get_msg("User", "MessageBox.tpl.php",'M002');
+}
+echo "</div>";
+
+if ($this->_tpl_vars['error_message']) {
+ echo ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+} else {
+ echo "<br><br>\n";
+}
+
+if (count($this->_tpl_vars['message_row_array'])) {
+
+ echo "<form name=\"message_box_form\" method=\"POST\" action=\"" . $this->_tpl_vars["message_delete_url"] . "\">";
+
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+ // ¥á¥Ã¥»¡¼¥¸°ìÍ÷¡¡¥Æ¡¼¥Ö¥ë
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>";
+ echo "<td WIDTH=30px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M004')."</td>";
+ echo "<td WIDTH=30px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M005')."</td>";
+ if ($this->_tpl_vars['move_id'] == 2) {
+ echo "<td WIDTH=130px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M006')."</td>";
+ } else {
+ echo "<td WIDTH=130px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M007')."</td>";
+ }
+ echo "<td WIDTH=230px id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M008')."</td>";
+ echo "<td WIDTH=140px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M009')."</td>";
+ echo "</tr>\n";
+ foreach ($this->_tpl_vars['message_row_array'] as $message_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\" align=\"center\">";
+ if ($message_row['read_flag'] == "f") {
+ echo ACSMsg::get_msg("User", "MessageBox.tpl.php",'M010')."</td>";
+ } else {
+ echo ACSMsg::get_msg("User", "MessageBox.tpl.php",'M011')."</td>";
+ }
+ echo "<td bgcolor=\"#ffffff\" align=\"center\">";
+ echo "<input type=\"checkbox\" name=\"selected_message[]\" value=\"".$message_row['message_id']."\"></td>";
+ echo "<td bgcolor=\"#ffffff\">" ;
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessageBox.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($message_row['user_name'])));
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\"><a href=\"".$message_row['message_show_url']."\">".htmlspecialchars($message_row['subject'])."</a></td>";
+ echo "<td bgcolor=\"#ffffff\">" . $message_row['short_post_date'] . "</td>";
+ echo "</tr>\n";
+ }
+ echo "</table>";
+ echo "         ";
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg("User", "MessageBox.tpl.php",'M005')."\">";
+ echo "</form>";
+} else {
+ echo "<table width=510px><tr><td>";
+ echo ACSMsg::get_msg("User", "MessageBox.tpl.php",'M012');
+ echo "</td></tr></table>";
+}
+
+?>
+
+<!---------------------------------------------------------------->
+
+<br><br>
+
+<!---------------------------------------------------------------->
+
+
+</td>
+</table>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: nakau 2008/03/11 ver1.0 |
+// |¥á¥Ã¥»¡¼¥¸¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+//
+// $Id: MessagePre.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+<!-- HTML -->
+<div class="ttl">
+<?php
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_Message_url'] ."\">";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessagePre.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+
+ echo ACSMsg::get_msg("User", "MessagePre.tpl.php",'M001')."</div><br><br>\n";
+?>
+</div>
+
+<?php
+ if ($this->_tpl_vars['error_message']) {
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸É½¼¨
+ ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+ } else {
+ echo '<div class="confirm_msg">';
+ echo ACSMsg::get_msg("User", "MessagePre.tpl.php",'M002').'<br>';
+ echo ACSMsg::get_msg("User", "MessagePre.tpl.php",'M003');
+ echo '</div>';
+ }
+?>
+
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="post" name="message_form" enctype="multipart/form-data">
+
+<!-- ¥á¥Ã¥»¡¼¥¸¾ðÊó -->
+<table class="table.confirm_table">
+ <colgroup class="required">
+ <colgroup class="value">
+
+<tr>
+ <td height=30px><?= ACSMsg::get_msg("User", "MessagePre.tpl.php",'M004') ?></td>
+ <td>
+ <a href="<?= $this->_tpl_vars['link_page_url']['else_user_Message_url'] ?>">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessagePre.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']))) ?>
+ </a>
+ </td>
+</tr>
+<tr>
+ <td height=30px><?= ACSMsg::get_msg("User", "MessagePre.tpl.php",'M005') ?></td>
+ <td>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['subject']))) ?>
+ </td>
+</tr>
+<tr>
+ <td height=150px><?= ACSMsg::get_msg("User", "MessagePre.tpl.php",'M006') ?></td>
+ <td valign=top>
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['form']['body']))) ?>
+ </td>
+</tr>
+
+</table>
+
+<br><br>
+<?php
+ if (!$this->_tpl_vars['error_message']) {
+ if ($this->_tpl_vars['form']['info_mail'] == "on") {
+ echo ACSMsg::get_msg("User", "MessagePre.tpl.php",'M007');
+ echo "<br><br>";
+ }
+ echo "<input type=\"submit\" value=\"".ACSMsg::get_msg("User", "MessagePre.tpl.php",'M008')."\"> ";
+ }
+ echo "<input type=\"hidden\" name=\"acs_user_id\" value=\"".$this->_tpl_vars['acs_user_info_row']['user_community_id']."\">";
+?>
+ <input type="button" value="<?= ACSMsg::get_msg("User", "MessagePre.tpl.php",'M009') ?>" onclick="location.href='<?= $this->_tpl_vars['back_url'] ?>'">
+</form>
+<br>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: nakau v 1.0 2008/03/11 00:40:31 |
+// |User¡¡message¾ÜºÙ²èÌÌ ¡¡¡¡¡¡¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: MessageShow.tpl.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+?>
+
+
+
+<table class="layout_table" width="665px">
+<tr>
+<td valign="top">
+<!-------------------------------->
+<table class="layout_table">
+<tr>
+<td class="nowrap">
+<br>
+<span class="sub_title"><?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M001') ?></span><br>
+<br>
+
+<table border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td bgcolor="#FFFFFF">
+<table border="0" cellspacing="10" cellpadding="5">
+<tr><td width="60px" height="60px" align="center">
+<a href="<?=$this->_tpl_vars['menu']['receiv_box_url'] ?>">
+<?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M002') ?>
+</a><br>
+<a href="<?=$this->_tpl_vars['menu']['send_box_url'] ?>">
+<?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M003') ?>
+</a><br>
+</td></tr>
+</table>
+</td></tr>
+</table>
+
+</td>
+</tr>
+</table>
+<!-------------------------------->
+</td>
+<td width="15px"> </td>
+<td valign="top">
+
+<?php
+ echo "<div class=\"ttl\">";
+ if ($this->_tpl_vars['move_id'] == 2) {
+ echo ACSMsg::get_msg("User", "MessageShow.tpl.php",'M004');
+ } else {
+ echo ACSMsg::get_msg("User", "MessageShow.tpl.php",'M005');
+ }
+ echo "</div><br><br>\n";
+?>
+
+<form method="post">
+
+<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<?php
+ if ($this->_tpl_vars['move_id'] == 2) {
+ echo "<td height=30px id=\"myttl\" bgcolor=\"#DEEEBD\">". ACSMsg::get_msg("User", "MessageShow.tpl.php",'M006')."</td>";
+ } else {
+ echo "<td height=30px id=\"myttl\" bgcolor=\"#DEEEBD\">". ACSMsg::get_msg("User", "MessageShow.tpl.php",'M007')."</td>";
+ }
+?>
+ <td bgcolor="#ffffff">
+ <a href="<?= $this->_tpl_vars['link_page_url']['else_user_message_url'] ?>">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessageShow.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['message_row']['user_name']))) ?>
+ </a>
+ </td>
+</tr>
+<tr>
+ <td height=30px id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M008') ?></td>
+ <td bgcolor="#ffffff">
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['message_row']['post_date']))) ?>
+ </td>
+</tr>
+<tr>
+ <td height=30px id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M009') ?></td>
+ <td bgcolor="#ffffff">
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['message_row']['subject']))) ?>
+ </td>
+</tr>
+<tr>
+ <td height=150px id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "MessageShow.tpl.php",'M010') ?></td>
+ <td valign=top bgcolor="#ffffff" width="500px">
+ <?= nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['message_row']['body']))) ?>
+ </td>
+</tr>
+
+</table>
+
+
+<?php
+ if ($this->_tpl_vars['move_id'] != 2) {
+ echo "<br>";
+ echo "<input type=\"button\" value=\"".ACSMsg::get_msg("User", "MessageShow.tpl.php",'M011')."\" onclick=\"location.href='".$this->_tpl_vars['message_return_url']."'\">";
+ }
+?>
+</form>
+
+<!---------------------------------------------------------------->
+
+<br><br>
+
+<!---------------------------------------------------------------->
+
+
+</td>
+</table>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M001') ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="rename_folder_list" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<p>
+<?php
+ // °ÜÆ°Àè¥Õ¥©¥ë¥ÀÁªÂò»èºîÀ®
+ if (count($this->_tpl_vars['folder_tree'])) {
+ print ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M002').'¡§';
+ print '<select name="selected_move_folder_id">';
+ print '<option value="">'.ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M003');
+ foreach ($this->_tpl_vars['folder_tree'] as $folder_row) {
+ $selected_str = "";
+ if ($folder_row['is_selected']) {
+ $selected_str = " selected";
+ }
+ print '<option value="' . $folder_row['folder_id'] . '"' . $selected_str . '>';
+ print str_repeat("-", $folder_row['tree_level']);
+ print ' ' . htmlspecialchars($folder_row['folder_name']);
+ print "\n";
+ }
+ print '</select>';
+ print "\n";
+
+ } else {
+ // ¥Õ¥©¥ë¥À¤¬¤Ê¤¤¾ì¹ç
+ print ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M004');
+ }
+?>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M005') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "MoveFolderList.tpl.php",'M006') ?>" onClick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: NewBBS.tpl.php,v 1.7 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "NewBBS.tpl.php", 'M001') ?></div>
+<br>
+
+<?php
+if ($this->_tpl_vars['get_days']>0) {
+?>
+<div class="getdays">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "NewBBS.tpl.php",'GETDAYS'),
+ array('{DAYS}'=>$this->_tpl_vars['get_days'])) ?>
+</div>
+<?php
+}
+?>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="layout_table">
+<?php
+// ¥ë¡¼¥×³«»Ï
+foreach ($this->_tpl_vars['new_bbs_row_array'] as $new_bbs_row) {
+?>
+<tr>
+ <td width="16px"><img src="<?= ACS_IMAGE_DIR ?>yaj2.gif"></td>
+ <td>
+<?php
+ if ($new_bbs_row['is_unread']) {
+ echo "<b>";
+ }
+ echo " <a href=\"" .$new_bbs_row[bbs_res_url]. "\">" . htmlspecialchars(ACSTemplateLib::trim_long_str($new_bbs_row['subject'])) . "</a>";
+ if ($new_bbs_row['is_unread']) {
+ echo "</b>";
+ }
+ echo " ($new_bbs_row[bbs_res_num]) (" . htmlspecialchars($new_bbs_row['community_name']) . ")";
+?>
+ </td>
+</tr>
+<?php
+}
+// ¢¬¥ë¡¼¥×½ªÎ»
+
+// ¥Ç¡¼¥¿¤¬0·ï¤Î¾ì¹ç
+if (count($this->_tpl_vars['new_bbs_row_array']) == 0) {
+ echo "<tr><td>" .ACSMsg::get_msg("User", "NewBBS.tpl.php",'M002'). "</td></tr>\n";
+}
+?>
+</table>
+
+<?php
+if ($this->_tpl_vars['new_bbs_url']) {
+?>
+<br>
+<div align="right">
+ <a class="ichiran" href="<?= $this->_tpl_vars[new_bbs_url]?>">
+ <?= ACSMsg::get_msg("User", "NewBBS.tpl.php", 'M003') ?>
+ </a>
+</div>
+<?php
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: NewCommunityFolder.tpl.php,v 1.6 2007/03/28 08:39:34 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "NewCommunityFolder.tpl.php", 'M001') ?></div>
+<br>
+
+<?php
+if ($this->_tpl_vars['get_days']>0) {
+?>
+<div class="getdays">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "NewCommunityFolder.tpl.php",'GETDAYS'),
+ array('{DAYS}'=>$this->_tpl_vars['get_days'])) ?>
+</div>
+<?php
+}
+?>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="layout_table">
+<?php
+foreach ($this->_tpl_vars['new_folder_row_array'] as $new_folder_row) {
+?>
+ <tr>
+ <td width="16px">
+<?php
+ if ($new_folder_row['is_put_icon']) {
+?>
+ <img src="<?= ACS_IMAGE_DIR.'put_file.gif' ?>">
+<?php
+ } else {
+?>
+ <img src="<?= ACS_IMAGE_DIR.'file.gif' ?>">
+<?php
+ }
+?>
+ </td>
+ <td>
+<?php
+ if ($new_folder_row['is_unread']) {
+ echo "<b>";
+ }
+?>
+ <a href="<?= $new_folder_row['file_detail_url'] ?>">
+ <?= htmlspecialchars(ACSTemplateLib::trim_long_str($new_folder_row['display_file_name'])) ?></a>
+<?php
+ if ($new_folder_row['is_unread']) {
+ echo "</b>";
+ }
+?>
+ (<?= htmlspecialchars($new_folder_row['community_name']) ?>)
+ </td>
+ </tr>
+<?php
+}
+if (count($this->_tpl_vars['new_folder_row_array']) == 0) {
+ echo "<tr><td>".ACSMsg::get_msg("User", "NewCommunityFolder.tpl.php", 'M002')."</td></tr>\n";
+}
+?>
+</table>
+<?php
+if ($this->_tpl_vars['new_folder_url']) {
+ echo "<br>\n";
+ echo "<div align=\"right\">";
+ echo "<a class=\"ichiran\" href=\"" . $this->_tpl_vars['new_folder_url'] . "\">" .
+ ACSMsg::get_msg("User", "NewCommunityFolder.tpl.php", 'M003')."</a> ";
+ echo "</div>\n";
+}
+?>
+
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: NewDiary.tpl.php,v 1.7 2007/03/27 02:12:43 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "NewDiary.tpl.php",'M001') ?></div>
+<br>
+
+<?php
+if ($this->_tpl_vars['get_days']>0) {
+?>
+<div class="getdays">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "NewDiary.tpl.php",'GETDAYS'),
+ array('{DAYS}'=>$this->_tpl_vars['get_days'])) ?>
+</div>
+<?php
+}
+?>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="layout_table">
+<?php
+foreach ($this->_tpl_vars['new_diary_row_array'] as $new_diary_row) {
+ echo "<tr>";
+ echo "<td width=\"16px\">";
+ echo "<img src=\"" . ACS_IMAGE_DIR . 'yaj2.gif' . "\">";
+ echo "</td>";
+ echo "<td> ";
+ if ($new_diary_row['is_unread']) {
+ echo "<b>";
+ }
+ echo "<a href=\"$new_diary_row[diary_comment_url]\">" . htmlspecialchars(ACSTemplateLib::trim_long_str($new_diary_row['subject'])) . "</a>";
+ if ($new_diary_row['is_unread']) {
+ echo "</b>";
+ }
+ echo " ($new_diary_row[diary_comment_num]) (" . htmlspecialchars($new_diary_row['community_name']) . ")";
+
+ echo "</td>";
+ echo "</tr>\n";
+}
+if (count($this->_tpl_vars['new_diary_row_array']) == 0) {
+ echo "<tr><td>".ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M002')."</td></tr>\n";
+}
+?>
+</table>
+
+<?php
+if ($this->_tpl_vars['new_diary_url']) {
+ echo "<br>\n";
+ echo "<div align=\"right\">";
+ echo "<a class=\"ichiran\" href=\"" . $this->_tpl_vars['new_diary_url'] . "\">" . ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M003')."</a> ";
+ echo "</div>\n";
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 5 & mojavi version 3 |
+// +----------------------------------------------------------------------+
+// | Authors: y-yuki v 1.0 2009/01/23 14:40:00 |
+// +----------------------------------------------------------------------+
+// $Id: NewFriendsFolder.tpl.php,v 1.6 2007/03/28 08:39:34 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "NewFriendsFolder.tpl.php", 'M001') ?></div>
+<br>
+
+<?php
+if ($this->_tpl_vars['get_days'] > 0) {
+?>
+ <div class="getdays">
+ <?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "NewFriendsFolder.tpl.php", 'GETDAYS')
+ ,array('{DAYS}'=>$this->_tpl_vars['get_days'])) ?>
+ </div>
+<?php
+}
+?>
+<?php
+// ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+?>
+
+<table class="layout_table">
+<?php
+foreach ($this->_tpl_vars['new_file_row_array'] as $new_file_row) {
+?>
+<tr>
+ <td width="16px"><img src="<?= ACS_IMAGE_DIR.'file.gif' ?>"></td>
+ <td>
+<?php
+ if ($new_file_row['is_unread']) {
+ echo "<b>";
+ }
+?>
+ <a href="<?= $new_file_row['file_detail_url'] ?>">
+ <?= htmlspecialchars(ACSTemplateLib::trim_long_str($new_file_row['display_file_name'])) ?></a>
+<?php
+ if ($new_file_row['is_unread']) {
+ echo "</b>";
+ }
+?>
+ (<?= htmlspecialchars($new_file_row['community_name']) ?>)
+ </td>
+</tr>
+<?php
+}
+// ¥Ç¡¼¥¿¤¬0·ï¤Î¾ì¹ç
+if (count($this->_tpl_vars['new_file_row_array']) == 0) {
+ echo "<tr><td>".ACSMsg::get_msg("User", "NewFriendsFolder.tpl.php",'M002')."</td></tr>\n";
+}
+?>
+</table>
+
+<?php
+if ($this->_tpl_vars['new_folder_url']) {
+ echo "<br>\n";
+ echo "<div align=\"right\">";
+ echo "<a class=\"ichiran\" href=\"" . $this->_tpl_vars['new_folder_url']. "\">" .
+ ACSMsg::get_msg("User", "NewFriendsFolder.tpl.php",'M003')."</a> ";
+ echo "</div>\n";
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/8 ver1.0 |
+// | ¥×¥í¥Õ¥£¡¼¥ëɽ¼¨¤Î³Îǧ²èÌÌ ¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: ProfileCheck.tpl.php,v 1.5 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<!-- HTML -->
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['top_page_url'] ?>"> <?= ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M002') ?>
+</div>
+<br><br>
+<div class="confirm_msg">
+<?= ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M003') ?>
+</div>
+
+<?php
+ //¸½ºß¤Îɽ¼¨¤Ï¡©
+ $strComment = "";
+ switch($this->_tpl_vars['view_mode']){
+ case 1:
+ $strComment = ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M004'); break;
+ case 2:
+ $strComment = ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M005'); break;
+ default:
+ $strComment = ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M006');
+ }
+
+ //ɽ¼¨ÊýË¡¤ÎÁªÂò
+ echo "<a href=\"" .$this->_tpl_vars['menu']['all_url'] . "\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M007')."</a> ";
+ echo "<a href=\"" .$this->_tpl_vars['menu']['login_url'] . "\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M008')."</a> ";
+ echo "<a href=\"" .$this->_tpl_vars['menu']['friend_url'] . "\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M009')."</a>";
+ echo "<br><br><br>";
+
+ echo "<span class=\"comment\">" .$strComment ."</span><br>";
+
+ // ɽ¼¨table
+ //echo "<table class=\"common_table\" border>\n";
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+
+ if ($this->_tpl_vars['profile']['contents_row_array']['user_name']['not_open'] == 1) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M010')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['contents_row_array']['user_name']['contents_value']) . "</td>";
+ echo "</tr>\n";
+ }
+//¤³¤³¤«¤é¡¡°ìÈ̸ø³«¡¡³ÎÄê
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M011')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['community_name']) . "</td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M012')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['belonging']) . "</td>";
+ echo "</tr>\n";
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M013')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['speciality']) . "</td>";
+ echo "</tr>\n";
+//¤³¤³¤Þ¤Ç¡¡°ìÈ̸ø³«¡¡³ÎÄê
+
+ if ($this->_tpl_vars['profile']['contents_row_array']['birthplace']['not_open'] == 1) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M014')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . htmlspecialchars($this->_tpl_vars['profile']['birthplace']) . "</td>";
+ echo "</tr>\n";
+ }
+ if ($this->_tpl_vars['profile']['contents_row_array']['birthday']['not_open'] == 1) {
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M015')."</td>";
+ echo "<td bgcolor=\"#FFFFFF\">" . $this->_tpl_vars['profile']['birthday'] . "</td>";
+ echo "</tr>\n";
+ }
+
+//¼«¸Ê¾Ò²ð¤Ï¡¢±ÜÍ÷¼ÔÊ̤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë
+ echo "<tr>";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "ProfileCheck.tpl.php",'M016')."</td>";
+ if ($this->_tpl_vars['view_mode'] == 1) { //¥í¥°¥¤¥ó¥æ¡¼¥¶
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(htmlspecialchars($this->_tpl_vars['profile']['community_profile_login'])) . "</td>";
+ }
+ if ($this->_tpl_vars['view_mode'] == 2) { //¤¹¤Ù¤Æ¤Îͧ¿Í
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(htmlspecialchars($this->_tpl_vars['profile']['community_profile_friend'])) . "</td>";
+ }
+ if ($this->_tpl_vars['view_mode'] == 0) { //°ìÈÌ
+ echo "<td bgcolor=\"#FFFFFF\">" . nl2br(htmlspecialchars($this->_tpl_vars['profile']['community_profile'])) . "</td>";
+ }
+ echo "</tr>\n";
+ echo "</table>\n";
+ echo "<br>";
+
+
+?>
--- /dev/null
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = ACSMsg::get_msg("User", "PutCommunity.tpl.php",'M001');
+} else {
+ //$title = '<a href="' . $this->_tpl_vars['target_user_community_info_row']['top_page_url'] . '">';
+ //$title .= htmlspecialchars($this->_tpl_vars['target_user_community_info_row']['community_name']);
+ //$title .= '</a>';
+ //$title .= '¤µ¤ó¤Î¥Õ¥©¥ë¥À';
+ $title = ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "PutCommunity.tpl.php",'NAME'),array(
+ "{USER_NAME}" => '<a href="' . $this->_tpl_vars['target_user_community_info_row']['top_page_url'] . '">'.
+ htmlspecialchars($this->_tpl_vars['target_user_community_info_row']['community_name']).
+ '</a>'));
+}
+?>
+<div class="sub_title"><?= $title; ?> :: <?php
+
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "PutCommunity.tpl.php",'PUTCOM'),array(
+ "{FOLDER_NAME}" => htmlspecialchars($this->_tpl_vars['folder_info_row']['folder_name'])));
+
+// htmlspecialchars($this->_tpl_vars['folder_info_row']['folder_name']) ??¡×¤Î¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£
+
+?></div>
+
+
+<p>
+<table class="file_list_table" border>
+<?php
+if (count($this->_tpl_vars['put_community_row_array'])) {
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£É½¼¨
+ foreach ($this->_tpl_vars['put_community_row_array'] as $put_community_row) {
+ print "<tr>";
+
+ print '<td>';
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£
+ print '<a href="' . $put_community_row['top_page_url'] . '">';
+ print htmlspecialchars($put_community_row['community_name']);
+ print '</a><br>';
+ print '</td>';
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À
+ print '<td>';
+
+ print '<table class="layout_table"><tr><td>';
+ // ¥Õ¥©¥ë¥À²èÁü
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+
+ print "</td><td>";
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹
+ print '<a href="' . $put_community_row['put_folder_url'] . '">';
+ print htmlspecialchars($put_community_row['put_folder_name']);
+ print '</a><br>';
+ print "</td></tr></table>";
+
+ print '</td>';
+
+
+ print "</tr>\n";
+ }
+} else {
+ print "<tr>";
+ print "<td>".ACSMsg::get_msg("User", "PutCommunity.tpl.php",'M002')."</td>";
+ print "</tr>";
+}
+?>
+</table>
+</p>
--- /dev/null
+<div class="sub_title"><?= ACSMsg::get_msg("User", "RenameFolderList.tpl.php",'M001') ?></div>
+
+<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?>
+
+<form name="rename_folder_list" method="POST" action="<?= $this->_tpl_vars['action_url'] ?>">
+
+<p>
+<table class="file_list_table">
+<?php
+ // Êѹ¹ÂоݤΥե©¥ë¥À
+ if ($this->_tpl_vars['folder_row_array']) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'folder.png">';
+ print '</td>';
+
+ // ¥Õ¥©¥ë¥À̾
+ print '<td>';
+ print '<input type="hidden" name="selected_folder[]" value="' . $folder_row['folder_id'] . '">';
+ print htmlspecialchars($folder_row['folder_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ // ¿·¥Õ¥©¥ë¥À̾ÆþÎÏ¥Õ¥©¡¼¥à
+ print '<td>';
+ print '<input type="text" name="new_folder_name[\'' . $folder_row['folder_id'] . '\']">';
+ print '</td>';
+
+ print '</tr>'. "\n";
+ }
+ }
+
+ // Êѹ¹ÂоݤΥե¡¥¤¥ë
+ if ($this->_tpl_vars['file_row_array']) {
+ foreach ($this->_tpl_vars['file_row_array'] as $file_row) {
+ print '<tr>';
+
+ // ¥¢¥¤¥³¥ó
+ print '<td>';
+ print '<table class="layout_table"><tr>';
+ print '<td>';
+ print '<img src="' . ACS_IMAGE_DIR . 'file.gif">';
+ print '</td>';
+
+ // ¥Õ¥¡¥¤¥ë̾
+ print '<td>';
+ print '<input type="hidden" name="selected_file[]" value="' . $file_row['file_id'] . '">';
+ print htmlspecialchars($file_row['file_name']);
+ print '</td>';
+ print '</tr></table>';
+
+ // ¿·¥Õ¥¡¥¤¥ë̾ÆþÎÏ¥Õ¥©¡¼¥à
+ print '<td>';
+ print '<input type="text" name="new_file_name[\'' . $file_row['file_id'] . '\']">';
+ print '</td>';
+
+ print '</tr>'. "\n";
+ }
+ }
+?>
+</table>
+</p>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "RenameFolderList.tpl.php",'M002') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "RenameFolderList.tpl.php",'M003') ?>" onClick="location.href='<?= $this->_tpl_vars['cancel_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// $Id: RestoreHistoryFile.tpl.php,v 1.5 2007/03/28 08:39:34 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M001') ?></div>
+<br>
+
+<?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M002') ?><br><br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M003') ?></td>
+ <td bgcolor="#ffffff">
+ <table class="inner_layout_table"><tr>
+ <td><img src="<?= ACS_IMAGE_DIR . "file.gif" ?>"></td>
+ <td>
+ <a href="<?= $this->_tpl_vars['file_history_row']['download_history_file_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['file_history_row']['display_file_name']) ?></a> (<?= htmlspecialchars($this->_tpl_vars['file_history_row']['mime_type']) ?>)
+ </td>
+ </tr></table>
+ </td>
+</tr>
+<tr>
+ <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M004') ?></td>
+ <td bgcolor="#ffffff"><?= $this->_tpl_vars['file_history_row']['file_size_kb'] ?> (<?= $this->_tpl_vars['file_history_row']['file_size'] ?> <?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M005') ?>)</td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M006') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M007') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+</table>
+<br>
+
+<input type="submit" value="<?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M008') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "RestoreHistoryFile.tpl.php",'M009') ?>" onclick="location.href='<?= $this->_tpl_vars['file_detail_url'] ?>'">
+
+</form>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0 |
+// |Diary¡¡¸¡º÷²èÌÌ ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SearchDiary.tpl.php,v 1.7 2007/03/01 09:01:43 w-ota Exp $
+?>
+<script language="JavaScript">
+<!--
+ function fmTurn(){
+ }
+-->
+</script>
+
+<?php
+//¼«Ê¬¤ÎÆüµ¤Ê¤é¤Ð¡¢¥ê¥ó¥¯¤Ï̵¤¤
+if ($this->_tpl_vars['is_self_page']) {
+ echo "<div class=\"ttl\">";
+ echo ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M001')."</div><br><br>\n";
+} else {
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<div class=\"ttl\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_top_page_url'] ."\">";
+ //echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó</a> :: ";
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SearchDiary.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">".ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M002')."</a> :: ".ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M003')."</div><br><br>\n";
+}
+?>
+
+<br>
+<form name="search_form_default" action="<?= $this->_tpl_vars['link_page_url']['search_diary_url'] ?>" method="get" enctype="multipart/form-data">
+ <input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+ <input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+ <input type="hidden" name="id" value="<?= $this->_tpl_vars['id'] ?>">
+ <input type="hidden" name="move_id" value="<?= $this->_tpl_vars['move_id'] ?>">
+ <table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<!--¥¡¼¥ï¡¼¥É -->
+ <input type="text" name="q_text" value="" size="30" style="ime-mode: active;">
+<!--¸¡º÷ÂÐ¾Ý -->
+ <input type="checkbox" name="search_title" value="title_in_serch" checked><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M004') ?>
+ <input type="checkbox" name="search_all" value="subject_in_serch" checked><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M005') ?>
+<!--¸ø³«ÈÏ°Ï -->
+<?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M006') ?>
+<?php
+ // ¸ø³«ÈÏ°Ï
+ echo "<select name=\"open_level_code\">\n";
+ // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+ unset($selected);
+ // µ¬Äê¤Î¥×¥ë¥À¥¦¥ó
+ echo "<option value=\"00\"" . $selected['00'] ." selected>";
+ echo htmlspecialchars(ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M007')) . "\n";
+ // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"$open_level_master_row[open_level_code]\"" .$selected[$open_level_master_row['open_level_code']] . ">";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ echo "</select>\n";
+?>
+
+ <input type="submit" name="search" value="<?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M003') ?>"><br>
+<!-- Âоݤò¹¤²¤ë -->
+ <input type="checkbox" name ="search_all_about" value="all_in_serch" onChange="fmTurn()"><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M009') ?>
+ </td>
+ </tr>
+ </table>
+</form>
+
+<br>
+<dl>
+ <b><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M010') ?></b><br><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M011') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M012') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M013') ?><br>
+ <br>
+ <dt><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M014') ?></dt>
+ <dd><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M015') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M016') ?><br></dd>
+ <br>
+
+ <dt><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M017') ?></dt>
+ <dd><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M018') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M019') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M020') ?><br>
+ <?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M021') ?><br>
+ </dd>
+ <br>
+ <dt><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M022') ?></dt>
+ <dd><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M023') ?><br></dd>
+ <br>
+ <dt><?= ACSMsg::get_msg("User", "SearchDiary.tpl.php",'M024') ?><br></dt>
+
+</dl>
+<br>
+
--- /dev/null
+<?php
+// $Id: SearchFolder.tpl.php,v 1.7 2007/03/28 08:39:34 w-ota Exp $
+?>
+
+<?php
+if ($this->_tpl_vars['is_self_page']) {
+ $title = '<a href="' . $this->_tpl_vars['folder_url'] . '">';
+ $title .= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M001');
+ $title .= '</a>';
+} else {
+ $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
+ //$title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó";
+ $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SearchFolder.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ $title .= '</a>';
+ $title .= ' :: ';
+ $title .= '<a href="' . $this->_tpl_vars['folder_url'] . '">';
+ $title .= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M002');
+ $title .= '</a>';
+}
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M003') ?></div>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="id" value="<?= $this->_tpl_vars['target_user_info_row']['user_community_id'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="##555555">
+<tr><td bgcolor="#FFF5AA">
+<table class="layout_table">
+<tr>
+<td><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M004') ?></td>
+<td>
+<input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30">
+<input type="submit" value="<?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M003') ?>">
+</td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M006') ?></td>
+<td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['target'] == 'folder' || $this->_tpl_vars['form']['target'] == 'file') {
+ $selected[$this->_tpl_vars['form']['target']] = ' checked';
+} else {
+ $selected['folder_file'] = ' checked';
+}
+?>
+<input type="radio" name="target" value="folder_file"<?= $selected['folder_file'] ?>><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M007') ?>
+<input type="radio" name="target" value="folder"<?= $selected['folder'] ?>><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M002') ?>
+<input type="radio" name="target" value="file"<?= $selected['file'] ?>><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M009') ?>
+</td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M010') ?></td>
+<td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['order'] == 'update_date') {
+ $selected[$this->_tpl_vars['form']['order']] = ' selected';
+} else {
+ $selected['name'] = ' selected';
+}
+?>
+<select name="order">
+<option value="name"<?= $selected['name'] ?>><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M011') ?>
+<option value="update_date"<?= $selected['update_date'] ?>><?= ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M012') ?>
+</select>
+</td>
+</tr>
+</table>
+</td></tr></table>
+
+</form>
+</p>
+
+
+<?php
+if ($this->_tpl_vars['form']['search']) {
+ echo "<table class=\"file_list_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ echo "<tr>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M013')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M014')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M015')."</th>\n";
+ echo "<th bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "SearchFolder.tpl.php",'M016')."</th>\n";
+ echo "</tr>\n";
+
+ if (is_array($this->_tpl_vars['folder_row_array'])) {
+ foreach ($this->_tpl_vars['folder_row_array'] as $folder_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "folder.png\"></td>";
+ echo "<td><a href=\"$folder_row[folder_url]\">" . htmlspecialchars($folder_row['folder_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo"</td>";
+ echo "<td bgcolor=\"#ffffff\">" . $folder_row['update_date'] . "</td>";
+ echo "<td bgcolor=\"#ffffff\"> </td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($folder_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ if (is_array($this->_tpl_vars['file_info_row_array'])) {
+ foreach ($this->_tpl_vars['file_info_row_array'] as $file_info_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<table class=\"layout_table\"><tr>";
+ echo "<td><img src=\"" . ACS_IMAGE_DIR . "file.gif\"></td>";
+ echo "<td><a href=\"" . $file_info_row['download_file_url'] . "\">" . htmlspecialchars($file_info_row['display_file_name']) . "</a></td>";
+ echo "</tr></table>";
+ echo "</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . $file_info_row['update_date'] . "</td>";
+ echo "<td class=\"nowrap\" bgcolor=\"#ffffff\">" . $file_info_row['file_size'] . "</td>";
+ echo "<td bgcolor=\"#ffffff\">" . htmlspecialchars($file_info_row['path']) . "</td>";
+ echo "</tr>\n";
+ }
+ }
+
+ echo "</table>\n";
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0 |
+// |Diary¡¡¸¡º÷·ë²Ì²èÌÌ ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SearchResultDiary.tpl.php,v 1.9 2007/03/30 05:27:23 w-ota Exp $
+?>
+<script language="JavaScript">
+<!--
+ function fmTurn(){
+ }
+-->
+</script>
+
+<?php
+//¼«Ê¬¤ÎÆüµ¤Ê¤é¤Ð¡¢¥ê¥ó¥¯¤Ï̵¤¤
+if ($this->_tpl_vars['is_self_page']) {
+ echo "<div class=\"ttl\">";
+ echo ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M001')."</div><br><br>\n";
+} else {
+// ¥¢¥¯¥»¥¹À©¸ÂÆâ¤Ç¾¿Í¤ÎÆüµ¤Ê¤é¤Ð¡¢¡Ö¡û¡û¤µ¤ó¤ÎTOP¡×¤ØÌá¤ë¤³¤È¤¬¤Ç¤¤ë
+ echo "<div class=\"ttl\">";
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_top_page_url'] ."\">";
+ //echo htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "¤µ¤ó</a> :: ";
+
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'NAME'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
+ echo "</a> :: ";
+
+ echo "<a href=\"" .$this->_tpl_vars['link_page_url']['else_user_diary_url'] ."\">".ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M002')."</a> :: ".ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M003')."</div><br><br>\n";
+}
+?>
+
+<br>
+<?php
+ if($this->_tpl_vars['err_str'] != ""){
+ echo "<div class='err_msg'>";
+ echo $this->_tpl_vars['err_str'];
+ echo "</div>";
+ }else{
+?>
+
+<!-- Æüµ¤Î°ìÍ÷ ·ï̾¤Î¤ß -->
+<table>
+<tr><td>
+<?php
+ echo "<b>".ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M004')."</b><br><br>";
+ echo "<span class=\"result_success\">" . count($this->_tpl_vars['diary_row_array_result']) .ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M005')."</span><br><br>";
+ // ¥¹¥ì¥Ã¥É°ìÍ÷
+ $str = '';
+ foreach ($this->_tpl_vars['diary_row_array_result'] as $index => $diary_row) {
+ if($diary_row['diary_delete_flag']=='f'){ //ºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ß°ìÍ÷ɽ¼¨¤¹¤ë
+ if ($str != '') {
+ $str .= " ";
+ }
+ $str .= "<a href=\"$diary_row[diary_comment_url]\">";
+ $str .= htmlspecialchars($diary_row['subject']);
+ $str .= "</a>";
+ }
+ }
+ echo $str;
+?>
+</td></tr>
+<!-- Æüµ¤Î°ìÍ÷ ÅÐÏ¿Æü¤ÈËÜʸ¤Î¤ß -->
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['diary_row_array_result'] as $index => $diary_row) {
+ echo "<tr>";
+ echo "<td bgcolor=\"#DEEEBD\" colspan=\"2\">";
+ echo "<b>" . htmlspecialchars($diary_row['subject']) . "</b>";
+ echo " ";
+ echo $diary_row['post_date'];
+ echo "</td>";
+ echo "</tr>";
+
+ echo "<tr>";
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$diary_row[top_page_url]\"><img src=\"$diary_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$diary_row[top_page_url]\">" . htmlspecialchars($diary_row['community_name']) . "</a>";
+ echo "</td>";
+
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
+ echo nl2br(ACSLib::sp2nbsp(htmlspecialchars($diary_row['body'])));
+ echo "</td>";
+ echo "</tr>";
+}
+?>
+</table>
+</td></tr></table>
+<?php
+ }
+?>
+
+
+<hr>
+
+<!-- ºÆ¸¡º÷ÍѤΥե©¡¼¥à -->
+<?php
+ // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ÎÆþÎÏÃͤòÉü¸µ¤¹¤ë¤¿¤á¤Î½èÍý
+ // ·ï̾¸¡º÷
+ if ($this->_tpl_vars['form_pre']['search_title']) {
+ $serch_title_checked_str = ' checked';
+ } else {
+ $serch_title_checked_str = '';
+ }
+
+ // Á´Ê¸¸¡º÷
+ if ($this->_tpl_vars['form_pre']['search_all']) {
+ $search_all_checked_str = ' checked';
+ } else {
+ $search_all_checked_str = '';
+ }
+
+ // Á´Æüµ¤Çõ¤¹
+ if ($this->_tpl_vars['form_pre']['search_all_about']) {
+ $search_all_about_checked_str = ' checked';
+ } else {
+ $search_all_about_checked_str = '';
+ }
+?>
+<br>
+<span class="sub_title"><?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M006') ?></span>
+<form action="<?= $this->_tpl_vars['link_page_url']['search_diary_url'] ?>" name="search_form_new" method="get" enctype="multipart/form-data">
+ <input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+ <input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+ <input type="hidden" name="id" value="<?= $this->_tpl_vars['id'] ?>">
+ <input type="hidden" name="move_id" value="<?= $this->_tpl_vars['move_id'] ?>">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<!--¥¡¼¥ï¡¼¥É -->
+ <input type="text" name="q_text" value="<?=$this->_tpl_vars['form_pre']['q_text'] ?>" size="30" style="ime-mode: active;">
+<!--¸¡º÷ÂÐ¾Ý -->
+ <input type="checkbox" name="search_title" value="title_in_serch"<?= $serch_title_checked_str ?>><?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M007') ?>
+ <input type="checkbox" name="search_all" value="subject_in_serch"<?= $search_all_checked_str ?>><?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M008') ?>
+<!--¸ø³«ÈÏ°Ï -->
+<?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M009') ?>
+<?php
+ // ¸ø³«ÈÏ°Ï
+ // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+ unset($selected);
+ $selected[$this->_tpl_vars['form_pre']['open_level_code']] = ' selected';
+
+ echo "<select name=\"open_level_code\">\n";
+ // µ¬Äê¤Î¥×¥ë¥À¥¦¥ó
+ echo "<option value=\"00\"" . $selected['00'] . ">";
+ echo htmlspecialchars(ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M010')) . "\n";
+ // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+ foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"$open_level_master_row[open_level_code]\"" .$selected[$open_level_master_row['open_level_code']]. ">";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+ }
+ echo "</select>\n";
+?>
+
+ <input type="submit" name="search" value="<?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M011') ?>"><br>
+<!-- Âоݤò¹¤²¤ë -->
+ <input type="checkbox" name ="search_all_about" value="all_in_serch" onChange="fmTurn()"<?= $search_all_about_checked_str ?>><?= ACSMsg::get_msg("User", "SearchResultDiary.tpl.php",'M012') ?>
+ </td>
+ </tr>
+</table>
+</form>
+
+
--- /dev/null
+<?php
+// $Id: SearchUser.tpl.php,v 1.12 2007/03/14 04:28:21 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M001') ?></div>
+
+<p>
+<form action="<?= $this->_tpl_vars['action_url'] ?>" method="get">
+<input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+<input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+<input type="hidden" name="search" value="1">
+
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+ <td bgcolor="#FFF5AA">
+<table class="layout_table">
+<tr>
+<td><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M002') ?></td>
+<td><input type="text" name="q" value="<?= htmlspecialchars($this->_tpl_vars['form']['q']) ?>" size="30"></td>
+<td><input type="submit" value="<?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M003') ?>"></td>
+</tr>
+<tr>
+<td><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M004') ?></td>
+<td>
+<?php
+unset($selected);
+if ($this->_tpl_vars['form']['order'] == 'community_name' || $this->_tpl_vars['form']['order'] == 'friends_num' || $this->_tpl_vars['form']['order'] == 'community_num') {
+ $selected[$this->_tpl_vars['form']['order']] = ' selected';
+} else {
+ $selected['user_id'] = ' selected';
+}
+?>
+<select name="order">
+<option value="user_id"<?= $selected['user_id'] ?>><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M011') ?>
+<option value="community_name"<?= $selected['community_name'] ?>><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M006') ?>
+<option value="friends_num"<?= $selected['friends_num'] ?>><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M007') ?>
+<option value="community_num"<?= $selected['community_num'] ?>><?= ACSMsg::get_msg("User", "SearchUser.tpl.php",'M008') ?>
+</select>
+</td>
+</tr>
+</table>
+</td></tr></table>
+
+</form>
+</p>
+
+<?php
+if (count($this->_tpl_vars['user_info_row_array'])) {
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+ foreach ($this->_tpl_vars['user_info_row_array'] as $user_info_row) {
+ echo "<tr>";
+ // ¼Ì¿¿
+ echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$user_info_row[top_page_url]\"><img src=\"$user_info_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$user_info_row[top_page_url]\">" . htmlspecialchars($user_info_row['community_name']) . "</a>";
+ echo "(" . $user_info_row['friends_row_array_num'] . ")";
+ echo "</td>";
+ // ¼«¸Ê¾Ò²ð
+ echo "<td valign=\"top\" bgcolor=\"#ffffff\">".ACSMsg::get_msg("User", "SearchUser.tpl.php",'M009')."<br>";
+ echo nl2br(htmlspecialchars($user_info_row['contents_row_array']['community_profile']['contents_value']));
+ echo "</td>";
+ echo "</tr>\n";
+ }
+ echo "</table>\n";
+ echo "<br>\n";
+
+ // ¥Ú¡¼¥¸¥ó¥°É½¼¨
+ ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
+
+} else {
+ if ($this->_tpl_vars['form']['q'] != '') {
+ echo ACSMsg::get_msg("User", "SearchUser.tpl.php",'M010')."<br>\n";
+ }
+}
+?>
--- /dev/null
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4 |
+// +----------------------------------------------------------------------+
+// | Authors: teramoto 2007/3 ver1.0 |
+// | ¥Ç¥¶¥¤¥óÁªÂò²èÌÌ ¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SelectDesign.tpl.php,v 1.1 2007/03/27 02:12:43 w-ota Exp $
+?>
+
+<!-- HTML -->
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['top_page_url'] ?>"> <?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M001') ?></a> :: <?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M002') ?>
+</div>
+<br>
+<?= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SelectDesign.tpl.php",'TITLE'),array(
+ "{USER_NAME}" => htmlspecialchars($this->_tpl_vars['acs_user_info_row']['community_name']))) ?>
+<br>
+<?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M010') ?><br>
+<?php
+ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
+?>
+
+<form name="design_select" action="<?= $this->_tpl_vars['action_url'] ?>" method="post">
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M003') ?></td>
+<td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M004') ?></td>
+<td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M005') ?></td>
+<td id="myttl" bgcolor="#DEEEBD" align="center"><?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M006') ?></td>
+</tr>
+<?php
+foreach($this->_tpl_vars['select_design_row_array'] as $selectdesign_row){
+ if ($selectdesign_row['show_list'] == 'yes') {
+?>
+
+ <tr>
+ <td bgcolor="#FFFFFF">
+ <?php
+ if ($selectdesign_row['thumbnail']) {
+ ?>
+ <img src="<?= $this->_tpl_vars['style_url'] ?>/<?= $selectdesign_row['thumbnail'] ?>">
+ <?php
+ }
+ ?>
+ </td>
+ <td bgcolor="#FFFFFF">
+ <input type="radio" name="css_file" value="<?= $selectdesign_row['filename'] ?>"
+ <?= ($this->_tpl_vars['selection_css']==$selectdesign_row['filename'] ? 'CHECKED' : '') ?>>
+ </td>
+ <td bgcolor="#FFFFFF">
+ <?= nl2br($selectdesign_row['name']) ?>
+ </td>
+ <td bgcolor="#FFFFFF">
+ <?= nl2br($selectdesign_row['description']) ?>
+ </td>
+ </tr>
+
+<?php
+ }
+}
+?>
+</table>
+<br>
+<input type="submit" value="<?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M011') ?>">
+<input type="button" value="<?= ACSMsg::get_msg("User", "SelectDesign.tpl.php",'M012') ?>" onclick="location.href='<?= $this->_tpl_vars['top_page_url'] ?>'">
+</form>
--- /dev/null
+<?php
+// $Id: SetOpenLevelForProfileView.tpl.php,v 1.5 2006/11/20 08:44:26 w-ota Exp $
+?>
+
+<font size="3"><?php
+
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SetOpenLevelForProfileView.tpl.php",'CONT'),array(
+ "{CONTENT_TYPE_NAME}" => htmlspecialchars($this->_tpl_vars['contents_type_name'])));
+
+// ¡Ö??= htmlspecialchars($this->_tpl_vars['contents_type_name']) ??¡×¤Î¸ø³«ÈÏ°ÏÀßÄê</font><br>
+?></font><br>
+<br>
+
+<form name="set_open_level_for_profile_form">
+<?php
+echo "<select name=\"open_level_code\" onchange=\"print_sub_menu(this)\">\n";
+// ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+unset($selected);
+foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ if ($open_level_master_row['is_default'] == 't') {
+ $selected[$open_level_master_row['open_level_code']] = ' selected';
+ break;
+ }
+}
+// ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+ echo "<option value=\"$open_level_master_row[open_level_code]\"{$selected[$open_level_master_row['open_level_code']]}>";
+ echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+}
+echo "</select><br>\n";
+
+//¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×»ØÄê
+echo "<div id=\"trusted_community_div\"></div>";
+?>
+
+<br>
+<input type="button" value=" OK " onclick="update_parent_window()">
+</form>
+
+
+<script language="JavaScript">
+<!--
+// ¿Æ¥¦¥£¥ó¥É¥¦¤Îcontents_key
+contents_key = '<?= $this->_tpl_vars['contents_key'] ?>';
+
+
+// ¥í¡¼¥É»þ¤Î½èÍý
+window.onload = function () {
+ if (!window.opener) {
+ return;
+ }
+
+ focus();
+
+ // ¿Æ¥¦¥£¥ó¥É¥¦¤Î¾ðÊó //
+ parent_form = window.opener.document.forms["edit_profile_form"];
+ // ¿Æ: ¸ø³«¥ì¥Ù¥ë¥³¡¼¥É
+ parent_open_level_code = parent_form.elements["open_level_code_array[" + contents_key + "]"].value;
+ if (parent_form.elements["trusted_community_id_csv_array[" + contents_key + "]"]
+ && parent_form.elements["trusted_community_flag[" + contents_key + "]"]) {
+ // ¿Æ¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)ID¤ÎCSV
+ parent_trusted_community_id_csv = parent_form.elements["trusted_community_id_csv_array[" + contents_key + "]"].value;
+ // ¿Æ¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)ID¤ÎÇÛÎó
+ parent_trusted_community_id_array = parent_trusted_community_id_csv.split(",");
+ // ¿Æ¤Î¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤ÎÍ̵
+ parent_trusted_community_flag = parseInt(parent_form.elements["trusted_community_flag[" + contents_key + "]"].value);
+ }
+
+ // ½é´üÃÍ¥»¥Ã¥È: ¸ø³«ÈÏ°Ï
+ child_form = document.forms["set_open_level_for_profile_form"];
+ child_select_obj = child_form.elements["open_level_code"];
+ for (var i = 0; i < child_select_obj.length; i++) {
+ if (child_select_obj[i].value == parent_open_level_code) {
+ child_select_obj.selectedIndex = i;
+ break;
+ }
+ }
+
+ // ½é´üÃÍ¥»¥Ã¥È: ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥× print_sub_menu()
+ child_open_level_name = child_select_obj.options[child_select_obj.selectedIndex].text;
+ if (child_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D05') ?>') {
+ print_sub_menu(child_select_obj);
+
+ // ½é´üÃÍ¥»¥Ã¥È: ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥é¥¸¥ª¥Ü¥¿¥ó
+ if (parent_trusted_community_flag) {
+ child_form.elements["trusted_community_flag"][parent_trusted_community_flag].checked = true;
+
+ // ½é´üÃÍ¥»¥Ã¥È: ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ if (child_form.elements["trusted_community_id_array[]"]) {
+ if (child_form.elements["trusted_community_id_array[]"].value) {
+ // 1¤Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ check_checkbox(child_form.elements["trusted_community_id_array[]"], parent_trusted_community_id_array);
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < child_form.elements["trusted_community_id_array[]"].length; i++) {
+ check_checkbox(child_form.elements["trusted_community_id_array[]"][i], parent_trusted_community_id_array);
+ }
+ }
+ }
+ }
+ }
+}
+
+
+// ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë
+function check_checkbox(checkbox_obj, trusted_community_id_array) {
+ for (var i = 0; i < trusted_community_id_array.length; i++) {
+ if (checkbox_obj.value == trusted_community_id_array[i]) {
+ checkbox_obj.checked = true;
+ break;
+ }
+ }
+}
+
+
+// ¿Æ¥¦¥£¥ó¥É¥¦¤ò¹¹¿·¤¹¤ë
+function update_parent_window() {
+ if (!window.opener) {
+ return;
+ }
+
+ parent_form = window.opener.document.forms["edit_profile_form"];
+ child_form = document.forms["set_open_level_for_profile_form"];
+ child_select_obj = child_form.elements["open_level_code"];
+
+ // »Ò¥¦¥£¥ó¥É¥¦¤ÎÃÍ
+ child_open_level_code = child_form.elements["open_level_code"].value;
+ child_trusted_community_flag = 0;
+ child_trusted_community_id_csv = '';
+
+ if (child_select_obj.options[child_select_obj.selectedIndex].text == '<?= ACSMsg::get_mst('open_level_master','D05') ?>') {
+ // trusted_community_flag
+ if (child_form.elements["trusted_community_flag"][1].checked) {
+ child_trusted_community_flag = 1;
+ }
+
+ // trusted_community_id_csv
+ child_trusted_community_id_csv = '';
+ if (child_form.elements["trusted_community_id_array[]"]) {
+ if (child_form.elements["trusted_community_id_array[]"].value) {
+ // 1¤Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ if (child_form.elements["trusted_community_id_array[]"].checked) {
+ child_trusted_community_id_csv = child_form.elements["trusted_community_id_array[]"].value;
+ }
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < child_form.elements["trusted_community_id_array[]"].length; i++) {
+ if (child_form.elements["trusted_community_id_array[]"][i].checked) {
+ if (child_trusted_community_id_csv != '') {
+ child_trusted_community_id_csv += ',';
+ }
+ child_trusted_community_id_csv += child_form.elements["trusted_community_id_array[]"][i].value;
+ }
+ }
+ }
+ }
+ }
+
+ // ¿Æ¥¦¥£¥ó¥É¥¦¤Ë¥»¥Ã¥È
+ parent_form.elements["open_level_code_array[" + contents_key + "]"].value = child_open_level_code;
+ if (parent_form.elements["trusted_community_flag[" + contents_key + "]"]) {
+ parent_form.elements["trusted_community_flag[" + contents_key + "]"].value = child_trusted_community_flag;
+ parent_form.elements["trusted_community_id_csv_array[" + contents_key + "]"].value = child_trusted_community_id_csv;
+ }
+
+ // ¿Æ¥¦¥£¥ó¥É¥¦½ñ¤´¹¤¨
+
+ // ½ñ¤´¹¤¨ÂоݤοÆtd
+ parent_td_obj = window.opener.document.getElementById(contents_key + "_td");
+ // ¿Ætd¤Î»Ò¥Î¡¼¥É¾Ãµî
+ while (parent_td_obj.hasChildNodes()) {
+ parent_td_obj.removeChild(parent_td_obj.firstChild);
+ }
+
+ // »Ò¤Ç¸½ºßÁªÂò¤µ¤ì¤Æ¤¤¤ë¸ø³«¥ì¥Ù¥ë̾
+ child_open_level_name = child_select_obj.options[child_select_obj.selectedIndex].text;
+
+ // text
+ parent_td_obj.appendChild(window.opener.document.createTextNode(child_open_level_name));
+ // Êѹ¹¤·¤¿¤â¤Î¤ËÁõ¾þ¤òÉÕ¤±¤ë
+ parent_td_obj.style.color = "#ff0000";
+ parent_form.elements["update_button"].disabled = false;
+ if (child_open_level_name == '<?= ACSMsg::get_mst('open_level_master','D05') ?>') {
+ if (child_form.elements["trusted_community_flag"][1].checked) {
+ trusted_community_str = '';
+
+ if (child_form.elements["trusted_community_id_array[]"]) {
+ if (child_form.elements["trusted_community_id_array[]"].value) {
+ // 1¤Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ if (child_form.elements["trusted_community_id_array[]"].checked) {
+ trusted_community_str = trusted_community_row_array[0]["community_name"];
+ }
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (var i = 0; i < child_form.elements["trusted_community_id_array[]"].length; i++) {
+ if (child_form.elements["trusted_community_id_array[]"][i].checked) {
+ if (trusted_community_str != '') {
+ trusted_community_str += ', ';
+ }
+ trusted_community_str += trusted_community_row_array[i]["community_name"];
+ }
+ }
+ }
+ }
+
+ if (trusted_community_str == '') {
+ //trusted_community_str = '*Âоݤʤ·';
+ trusted_community_str = '<?= ACSMsg::get_msg("User", "SetOpenLevelForProfileView.tpl.php",'M001') ?>';
+ }
+
+ parent_td_obj.appendChild(window.opener.document.createTextNode(" (" + trusted_community_str + ")"));
+ }
+ }
+
+ // ¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤ë
+ window.close();
+}
+
+
+// ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤ÎÏ¢ÁÛÇÛÎó
+trusted_community_row_array = new Array(
+<?php
+$str = '';
+foreach ($this->_tpl_vars['friends_group_row_array'] as $friends_group_row) {
+ if ($str != '') {
+ $str .= ", ";
+ }
+ $str .= "";
+ $str .= "{";
+ $str .= "\"community_id\" : \"$friends_group_row[community_id]\", ";
+ $str .= "\"community_name\" : \"$friends_group_row[community_name]\", ";
+ $str .= "\"top_page_url\" : \"$friends_group_row[top_page_url]\"";
+ $str .= "}";
+}
+echo $str;
+?>
+);
+
+
+// ͧ¿Í¤Ë¸ø³«¤Î¥µ¥Ö¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+function print_sub_menu(select_obj) {
+ selected_open_level_name = select_obj.options[select_obj.selectedIndex].text;
+
+ div_obj = document.getElementById("trusted_community_div");
+
+ while (div_obj.hasChildNodes()) {
+ div_obj.removeChild(div_obj.firstChild);
+ }
+
+ if (selected_open_level_name == "<?= ACSMsg::get_mst('open_level_master','D05') ?>") {
+ // <table>
+ table_obj = document.createElement("table");
+ table_obj.className = "layout_table";
+
+ // <tr>
+ new_row = table_obj.insertRow(0);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="trusted_community_flag">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_flag";
+ }
+ input_obj.type = "radio";
+ input_obj.value = "0";
+ input_obj.defaultChecked = true;
+ input_obj.onclick = function () {
+ if (this.form.elements["trusted_community_id_array[]"]) {
+ if (this.form.elements["trusted_community_id_array[]"].value) {
+ // 1¤Ä¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ this.form.elements["trusted_community_id_array[]"].checked = false;
+ } else {
+ // Ê£¿ô¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹
+ for (i = 0; i < this.form.elements["trusted_community_id_array[]"].length; i++) {
+ this.form.elements["trusted_community_id_array[]"][i].checked = false;
+ }
+ }
+ }
+ }
+ new_cell.appendChild(input_obj);
+ // </td>
+
+ // <td>
+ new_cell = new_row.insertCell(1);
+ // text
+ new_cell.appendChild(document.createTextNode("<?= ACSMsg::get_msg("User", "SetOpenLevelForProfileView.tpl.php",'M002') ?>"));
+ new_cell.appendChild(document.createElement("br"));
+ // </td>
+ // </tr>
+
+
+ // <tr>
+ new_row = table_obj.insertRow(1);
+ // <td>
+ new_cell = new_row.insertCell(0);
+ new_cell.setAttribute("vAlign", "top");
+ if (document.all) {
+ // <input>
+ input_obj = document.createElement('<input name="trusted_community_flag">');
+ } else {
+ // <input>
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_flag";
+ }
+ input_obj.type = "radio";
+ input_obj.value = "1";
+ input_obj.defaultChecked = false;
+ new_cell.appendChild(input_obj);
+ // </td>
+
+ // <td>
+ new_cell = new_row.insertCell(1);
+ // text
+ new_cell.appendChild(document.createTextNode("<?= ACSMsg::get_msg("User", "SetOpenLevelForProfileView.tpl.php",'M003') ?>"));
+ new_cell.appendChild(document.createElement("br"));
+ for (i = 0; i < trusted_community_row_array.length; i++) {
+ // <input>
+ if (document.all) {
+ input_obj = document.createElement('<input name="trusted_community_id_array[]">');
+ } else {
+ input_obj = document.createElement("input");
+ input_obj.name = "trusted_community_id_array[]";
+ }
+ input_obj.type = "checkbox";
+ input_obj.value = trusted_community_row_array[i]["community_id"];
+ input_obj.defaultChecked = false;
+ input_obj.onclick = function () {
+ // ³Æ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤¬¥¯¥ê¥Ã¥¯¤µ¤ì¤¿¤È¤¡¢
+ // ¡Ö¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¡×¤Î¥é¥¸¥ª¥Ü¥¿¥ó¤òÁªÂò¾õÂ֤ˤ¹¤ë
+ this.form.elements["trusted_community_flag"][1].checked = true;
+ }
+ new_cell.appendChild(input_obj);
+ // text
+ new_cell.appendChild(document.createTextNode(trusted_community_row_array[i]["community_name"]));
+ new_cell.appendChild(document.createElement("br"));
+ }
+ // </td>
+ // </tr>
+
+ // </table>
+ div_obj.appendChild(table_obj);
+ }
+}
+// -->
+</script>
--- /dev/null
+<?php
+// $Id: UpdateFile.tpl.php,v 1.4 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M001') ?></div>
+<br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST" enctype="multipart/form-data">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M002') ?></td>
+<td bgcolor="#ffffff"><input type="file" name="new_file" size="50"> <input type="submit" value="<?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M003') ?>"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M004') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M005') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+</table>
+
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['file_detail_url'] ?>"><?= ACSMsg::get_msg("User", "UpdateFile.tpl.php",'M006') ?></a>
--- /dev/null
+<?php
+// $Id: UploadFile.tpl.php,v 1.4 2007/03/01 09:01:43 w-ota Exp $
+?>
+
+<?
+// ¥Õ¥¡¥¤¥ë¥³¥ó¥Æ¥ó¥ÄÀÚ¤êÂؤ¨JS½ÐÎÏ
+ACSTemplateLib::print_change_file_contents_js('upload_file', $this->_tpl_vars['file_contents_type_master_array'], $this->_tpl_vars['file_contents_type_master_row_array_array']);
+?>
+
+<div class="ttl"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M001') ?></div>
+<br>
+
+<form name="upload_file" action="<?= $this->_tpl_vars['action_url'] ?>" method="POST" enctype="multipart/form-data">
+
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M002') ?></td>
+<td bgcolor="#ffffff"><input type="file" name="new_file" size="50"> <input type="submit" value="¥¢¥Ã¥×¥í¡¼¥É"></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M003') ?></td>
+<td bgcolor="#ffffff"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M004') ?><br><textarea name="comment" cols="50" rows="5"></textarea></td>
+</tr>
+<tr>
+<td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M005') ?></td>
+<td bgcolor="#ffffff">
+<select name="file_category_code" onchange="change_file_contents()">
+<?php
+foreach ($this->_tpl_vars['file_category_master_array'] as $file_category_code => $file_category_name) {
+ echo "<option value=\"$file_category_code\">" . htmlspecialchars($file_category_name) . "\n";
+}
+?>
+</select>
+</td>
+</tr>
+
+<?php
+$default_file_category_code = array_search(ACSMsg::get_mst('file_category_master','D0000'), $this->_tpl_vars['file_category_master_array']);
+
+foreach ($this->_tpl_vars['file_contents_type_master_array'] as $file_contents_type_code => $file_contents_type_name) {
+ echo "<tr id=\"file_contents_tr[$file_contents_type_code]\"";
+ if (!array_key_exists($file_contents_type_code, $this->_tpl_vars['file_contents_type_master_row_array_array'][$default_file_category_code]['file_contents_type_master_row_array'])) {
+ echo " style=\"display:none\"";
+ }
+ echo ">";
+ echo "<td id=\"myttl\" bgcolor=\"#DEEEBD\">";
+ echo htmlspecialchars($file_contents_type_name);
+ echo "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo "<textarea name=\"file_contents_array[$file_contents_type_code]\" cols=\"50\" rows=\"3\">";
+ echo htmlspecialchars($this->_tpl_vars['file_detail_info_row']['file_contents_row_array'][$file_contents_type_code]['file_contents_value']);
+ echo "</textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+}
+?>
+</table>
+
+</form>
+<br>
+
+<a href="<?= $this->_tpl_vars['folder_url'] ?>"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M006') ?></a>
+<a href="<?= $this->_tpl_vars['folder_group_mode_url'] ?>"><?= ACSMsg::get_msg("User", "UploadFile.tpl.php",'M007') ?></a><br>
--- /dev/null
+<?php
+// $Id: WaitingList.tpl.php,v 1.10 2007/03/14 04:28:21 w-ota Exp $
+?>
+
+<div class="ttl"><?= $this->_tpl_vars['waiting_type_name'] ?> <?= ACSMsg::get_msg("User", "WaitingList.tpl.php",'M001') ?></div><br>
+<br>
+
+<?php
+foreach ($this->_tpl_vars['waiting_row_array'] as $waiting_row) {
+ echo "<form action=\"$waiting_row[action_url]\" method=\"post\">\n";
+
+ echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
+
+ if ($this->_tpl_vars['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {
+ echo "<tr>";
+ echo "<td align=\"center\" rowspan=\"6\" bgcolor=\"#ffffff\">";
+ if ($waiting_row['waiting_community_row']['contents_row_array']['self']['open_level_name'] == ACSMsg::get_mst('open_level_master','D03')) {
+ echo "<img src=\"$waiting_row[image_url]\"><br>";
+ echo htmlspecialchars($waiting_row['community_name']);
+ echo "<br>";
+ echo ACSMsg::get_msg("User", "WaitingList.tpl.php",'M002');
+ } else {
+ echo "<a href=\"$waiting_row[top_page_url]\"><img src=\"$waiting_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$waiting_row[top_page_url]\">" . htmlspecialchars($waiting_row['community_name']) . "</a>";
+ }
+ echo "</td>";
+
+ // ¼«¸Ê¾Ò²ð
+ echo "<td width=\"50px\" id=\"myttl\" bgcolor=\"#DEEEBD\">" . ACSMsg::get_msg("User", "WaitingList.tpl.php",'M003') . "</td>";
+ echo "<td bgcolor=\"#ffffff\">";
+ echo nl2br(htmlspecialchars($waiting_row['waiting_community_row']['contents_row_array']['community_profile']['contents_value']));
+ echo "</td>";
+ echo "</tr>\n";
+
+ // ¥«¥Æ¥´¥ê
+ echo "<tr>";
+ echo "<td width=\"50px\" id=\"myttl\" bgcolor=\"#DEEEBD\"><nobr>" . ACSMsg::get_msg("User", "WaitingList.tpl.php",'M004') . "</nobr></td>";
+ echo "<td bgcolor=\"#ffffff\">" . $waiting_row['waiting_community_row']['category_name'] . "</td>";
+ echo "</tr>\n";
+
+ echo "<td colspan=\"2\" id=\"myttl\" bgcolor=\"#DEEEBD\">";
+
+ echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "WaitingList.tpl.php",'NAME'),array(
+ "{USER_NAME}" => "<a href=\"" .$waiting_row['entry_user_info_row']['top_page_url'] ."\">" .
+ htmlspecialchars($waiting_row['entry_user_info_row']['community_name']) . "</a>"));
+
+ echo "</td>";
+ echo "</tr>\n";
+
+ } else {
+ echo "<tr>";
+ echo "<td align=\"center\" rowspan=\"4\" bgcolor=\"#ffffff\">";
+ echo "<a href=\"$waiting_row[top_page_url]\"><img src=\"$waiting_row[image_url]\" border=\"0\"></a><br>";
+ echo "<a href=\"$waiting_row[top_page_url]\">" . htmlspecialchars($waiting_row['community_name']) . "</a>";
+ echo "</td>";
+ echo "<td id=\"myttl\" colspan=\"2\" bgcolor=\"#DEEEBD\">";
+ echo ACSMsg::get_msg("User", "WaitingList.tpl.php",'M005')."</td>";
+ echo "</tr>\n";
+ }
+
+ echo "<tr>";
+ echo "<td colspan=\"2\" valign=\"top\" width=\"450px\" bgcolor=\"#ffffff\">";
+ echo ACSMsg::get_msg("User", "WaitingList.tpl.php",'M006')." : " . $waiting_row['entry_date'] . "<br><br>";
+ echo nl2br(htmlspecialchars($waiting_row['message']));
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "<tr>";
+ echo "<td id=\"myttl\" colspan=\"2\" bgcolor=\"#DEEEBD\">".ACSMsg::get_msg("User", "WaitingList.tpl.php",'M007')." <span class=\"notice\">".ACSMsg::get_msg("User", "WaitingList.tpl.php",'M008')."</span></td>";
+ echo "</tr>\n";
+
+ echo "<tr>";
+ echo "<td colspan=\"2\" bgcolor=\"#ffffff\">";
+ echo "<textarea name=\"reply_message\" cols=\"50\" rows=\"4\"></textarea>";
+ echo "</td>";
+ echo "</tr>\n";
+
+ echo "<tr><td colspan=\"3\" bgcolor=\"#ffffff\">";
+ echo "<input type=\"submit\" name=\"accept_button\" value=\"".ACSMsg::get_msg("User", "WaitingList.tpl.php",'M009')."\">\n";
+ echo " ";
+ echo "<input type=\"submit\" name=\"reject_button\" value=\"".ACSMsg::get_msg("User", "WaitingList.tpl.php",'M010')."\">\n";
+ echo "</td></tr>\n";
+
+ echo "</table>\n";
+ echo "<br>\n";
+
+ echo "</form>\n";
+ echo "<br><br>\n";
+}
+?>
--- /dev/null
+<?php
+// $Id: AddFriendsInputView.class.php,v 1.2 2006/01/19 10:03:51 w-ota Exp $
+
+
+class AddFriendsInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+
+ //
+ $action_url = $this->getControllerPath('User', 'AddFriends') . '&id=' . $target_user_info_row['user_community_id'];
+ $back_url = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $target_user_info_row['user_community_id'];
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('AddFriends.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: ChangePasswordInputView.class.php,v 1.2 2006/03/28 08:26:31 kuwayama Exp $
+
+class ChangePasswordInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'ChangePassword') . '&id=' . $acs_user_info_row['user_community_id'];
+ $back_url = $this->getControllerPath('User', DEFAULT_ACTION);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('ChangePassword.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CommunityListView::SUCCESS.class.php,v 1.9 2007/03/28 02:51:48 w-ota Exp $
+
+
+class CommunityListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $community_row_array = $request->getAttribute('community_row_array');
+ $community_row_array_num = count($community_row_array);
+
+ foreach ($community_row_array as $index => $community_row) {
+ $community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ $community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($community_row['community_id'], 'thumb');
+ $community_row_array[$index]['community_member_num'] = ACSCommunity::get_community_member_num($community_row['community_id']);
+
+ // ¥á¥ó¥Ð¤Ç¤Ê¤¤Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ïɽ¼¨Âоݤˤ·¤Ê¤¤
+ if ($community_row['contents_row_array']['self']['open_level_name'] == ACSMsg::get_mst('open_level_master','D03') && !$community_row['is_community_member']) {
+ unset($community_row_array[$index]);
+ }
+ }
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $target_user_info_row['community_id'];
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $community_row_array, $display_count);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CommunityList.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('community_row_array', $community_row_array);
+ $this->setAttribute('community_row_array_num', $community_row_array_num);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: CreateFriendsGroupView::INPUT.class.php,v 1.4 2006/06/16 05:50:21 w-ota Exp $
+
+class CreateFriendsGroupInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $friends_row_array = $request->getAttribute('friends_row_array');
+ $friends_row_array_num = count($friends_row_array);
+
+ $form = $request->getAttribute('form');
+
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤ÎÉü¸µ½èÍý
+ if (is_array($form)) {
+ // ÁªÂò¤·¤¿¥Þ¥¤¥Õ¥ì¥ó¥º
+ $friends_group_member_row_array = array();
+ if (is_array($form['trusted_community_id_array'])) {
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $friends_group_member_row = array();
+ $friends_group_member_row['user_community_id'] = $trusted_community_id;
+ array_push($friends_group_member_row_array, $friends_group_member_row);
+ }
+ }
+ } else {
+ $friends_group_member_row_array = array();
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'CreateFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('CreateFriendsGroup.tpl.php');
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+ $this->setAttribute('form', $form);
+
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('friends_row_array', $friends_row_array);
+ $this->setAttribute('friends_row_array_num', $friends_row_array_num);
+ $this->setAttribute('friends_group_member_row_array', $friends_group_member_row_array);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼ ¥³¥á¥ó¥È¡¡ºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * DeleteCommentDiaryView
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/03/02
+ */
+// $Id: DeleteDiaryCommentView_confirm.class.php,v 1.1 2006/03/02 10:13:50 z-akitsu Exp $
+class DeleteDiaryCommentSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteDiaryComment.tpl.php');
+ $comment_back_url = $request->getAttribute('comment_back_url');
+ $delete_diary_comment_url = $request->getAttribute('delete_diary_comment_url');
+
+ // parameter set
+ $this->setAttribute('delete_diary_comment_url', $delete_diary_comment_url);
+ $this->setAttribute('comment_back_url', $comment_back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¿Æ¡¡ºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * DeleteDiaryView
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 2006/03/02
+ */
+// $Id: DeleteDiaryView_confirm.class.php,v 1.1 2006/03/02 10:13:50 z-akitsu Exp $
+class DeleteDiarySuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteDiary.tpl.php');
+ $back_url = $request->getAttribute('back_url');
+ $delete_diary_url = $request->getAttribute('delete_diary_url');
+
+ // parameter set
+ $this->setAttribute('delete_diary_url', $delete_diary_url);
+ $this->setAttribute('back_url', $back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºï½ü
+ *
+ * @author kuwayama
+ * @version $Revision: 1.2 $ $Date: 2006/05/01 09:58:31 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class DeleteFolderSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ $target_user_info = '&id=' . $target_user_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('User', 'DeleteFolder');
+ $action_url .= $target_user_info;
+ $action_url .= $folder_info;
+ $action_url .= "&action_type=delete";
+
+ // ̾Á°Êѹ¹ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // ̾Á°Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteFolder.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+
+ // ̾Á°Êѹ¹ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DeleteFriendsGroupView::INPUT.class.php,v 1.3 2006/01/19 10:03:51 w-ota Exp $
+
+
+class DeleteFriendsGroupInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $friends_group_row = $request->getAttribute('friends_group_row');
+
+ // ²Ã¹©
+ // URL
+ $action_url = $this->getControllerPath('User', 'DeleteFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
+ $back_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteFriendsGroup.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('friends_group_row', $friends_group_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DeleteFriendsView::INPUT.class.php,v 1.1 2006/03/03 13:22:23 w-ota Exp $
+
+class DeleteFriendsInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $delete_user_info_row = $request->getAttribute('delete_user_info_row');
+
+ // ²Ã¹©
+ $delete_user_info_row['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $delete_user_info_row['user_community_id'];
+ $delete_user_info_row['image_url'] = ACSUser::get_image_url($delete_user_info_row['user_community_id'], 'thumb');
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'DeleteFriends') . '&id=' . $target_user_info_row['user_community_id'] . '&delete_user_community_id=' . $delete_user_info_row['user_community_id'];
+ $back_url = $this->getControllerPath('User', 'FriendsList') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('delete_user_info_row', $delete_user_info_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteFriends.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸ ºï½ü
+ *
+ * @author nakau
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+class DeleteMessageSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $target_message_id = $request->getAttribute('target_message_id');
+
+ // ¥á¥Ã¥»¡¼¥¸¤Î½êͼÔ
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ $target_user_info = '&id=' . $target_user_community_id;
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('User', 'DeleteMessage');
+ $action_url .= $target_user_info;
+ $action_url .= "&action_type=delete";
+
+ $move_id = $request->getAttribute('move_id');
+ if($move_id == 2){
+ $action_url .= "&move_id=2";
+ }
+
+ // ºï½üÂоݥá¥Ã¥»¡¼¥¸
+ $message_id_array = array();
+ foreach ($target_message_id as $message) {
+ $_message_row['message_id'] = $message;
+ array_push($message_id_array, $_message_row);
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteMessage.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('message_id_array', $message_id_array);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿ºï½ü²èÌÌ View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * DeleteProfileImageView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.0 $Date: 2006/02/16 00:47:25 $
+ */
+
+class DeleteProfileImageInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DeleteProfileImage.tpl.php');
+ $back_url = $request->getAttribute('back_url');
+
+ // parameter set
+ $this->setAttribute('delete_image_url', $delete_image_url);
+ $this->setAttribute('back_url', $back_url);
+
+ //ɽ¼¨
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: DiaryCalendarView_inline.class.php,v 1.1 2006/03/03 09:34:53 z-akitsu Exp $
+
+class DiaryCalendarInlineView extends InlineBaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DiaryCalendar.tpl.php');
+
+ // set
+ $this->setAttribute('new_calendar_html', $request->getAttribute('new_calendar_html'));
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DiaryCalendarView_inline.class.php,v 1.1 2006/03/03 09:34:53 z-akitsu Exp $
+
+class DiaryCalendarInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // set
+ $this->setAttribute('new_calendar_html', $request->getAttribute('new_calendar_html'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('DiaryCalendar.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("DiaryCalendar", $this->render());
+
+ // set
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DiaryCommentHistoryView_inline.class.php,v 1.8 2007/03/01 09:01:46 w-ota Exp $
+
+class DiaryCommentHistoryInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
+
+ // ²Ã¹©
+ foreach ($commented_diary_row_array as $index => $commented_diary_row) {
+ $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
+ $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
+ }
+
+ // ¿·ÃåÆüµ°ìÍ÷URL
+ $diary_comment_history_url = $this->getControllerPath(DEFAULT_MODULE, 'DiaryCommentHistory') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $commented_diary_row_array = array_slice($commented_diary_row_array, 0, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
+ $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('DiaryCommentHistory.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("DiaryCommentHistory", $this->render());
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DiaryCommentHistoryView::SUCCESS.class.php,v 1.5 2007/03/01 09:01:46 w-ota Exp $
+
+class DiaryCommentHistorySuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
+
+ // ²Ã¹©
+ foreach ($commented_diary_row_array as $index => $commented_diary_row) {
+ $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
+ $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $commented_diary_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
+ $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DiaryCommentHistory.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥Èµ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * DiaryCommentView::INPUT
+ * @author ota update akitsu
+ * @since PHP 4.0
+ */
+// $Id: DiaryCommentView::INPUT.class.php,v 1.16 2007/03/28 02:26:55 w-ota Exp $
+
+
+class DiaryCommentInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $diary_row = $request->getAttribute('diary_row');
+ $diary_comment_row_array = $request->getAttribute('diary_comment_row_array');
+
+ $footprint_info = $request->getAttribute('footprint_info');
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ if (count($diary_row['trusted_community_row_array'])
+ && $diary_row['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $diary_row['trusted_community_flag'] = 0;
+ } else {
+ $diary_row['trusted_community_flag'] = 1;
+ }
+ }
+
+ // ²Ã¹©
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $diary_row['user_community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $diary_row['top_page_url'] = $link_page_url['top_page_url'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥À¥¤¥¢¥ê¡¼¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $diary_row['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $target_user_info_row['community_id'];
+ // ²èÁüURL
+ $diary_row['image_url'] = ACSUser::get_image_url($diary_row['community_id'],'thumb');
+ // Åê¹ÆÆü»þ
+ $diary_row['post_date'] = ACSLib::convert_pg_date_to_str($diary_row['post_date']);
+
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $diary_row[$index]['file_url'] = "";
+ if($diary_row['file_id'] != ""){
+ $diary_row['file_url'] = ACSDiaryFile::get_image_url($diary_row['file_id'],'thumb'); //Åê¹ÆÆâɽ¼¨ÍÑ
+ $diary_row['file_url_alink'] = ACSDiaryFile::get_image_url($diary_row['file_id'],''); //¥Ý¥Ã¥×¥¢¥Ã¥×ÍÑ
+ }
+
+ //¥³¥á¥ó¥È
+ foreach ($diary_comment_row_array as $comment_index => $diary_comment_row) {
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $diary_comment_row_array[$comment_index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $diary_comment_row['user_community_id'];
+ // ²èÁüURL
+ $diary_comment_row_array[$comment_index]['image_url'] = ACSUser::get_image_url($diary_comment_row['community_id'],'thumb');
+ // Åê¹ÆÆü»þ
+ $diary_comment_row_array[$comment_index]['post_date'] = ACSLib::convert_pg_date_to_str($diary_comment_row['post_date']);
+ // ºï½ü²èÌÌURL
+ $diary_comment_row_array[$comment_index]['diary_delete_url'] = $this->getControllerPath('User', 'DeleteDiaryComment') . '&id=' . $target_user_info_row['user_community_id'] . '&diary_id=' . $diary_row['diary_id'] . '&diary_comment_id=' . $diary_comment_row['diary_comment_id'];
+ $diary_comment_row_array[$comment_index]['self_id'] = false; //¼«Ê¬¤¬Åê¹Æ¤·¤¿comment¤«¤òȽÄꤹ¤ë
+ if($diary_comment_row['user_community_id'] == $acs_user_info_row['user_community_id'] ){
+ $diary_comment_row_array[$comment_index]['self_id'] = true;
+ }
+ }
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // ÂÀ×ÅÐÏ¿URL(¼«²èÌÌ) //
+ $footprint_url = "";
+ if($is_self_page == 0 && $acs_user_info_row['is_login_user']) {
+ $footprint_url = $this->getControllerPath('User', 'FootprintDiaryComment')
+ . '&diary_id=' . $diary_row['diary_id'];
+ }
+
+ // ³Îǧ²èÌ̤Îɽ¼¨ÍÑ
+ $action_url = $this->getControllerPath('User', 'DiaryCommentPre') . '&id=' . $target_user_info_row['community_id'] .'&diary_id=' . $diary_row['diary_id'] .'&move_id=1';
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $diary_comment_row_array, $display_count);
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('diary_row', $diary_row);
+ $this->setAttribute('diary_comment_row_array', $diary_comment_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('footprint_url', $footprint_url);
+ $this->setAttribute('footprint_info', $footprint_info);
+ //$this->setAttribute('footprint_community_id', $footprint_community_id);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DiaryComment.tpl.php');
+
+ // ³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¥Ü¥¿¥ó¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ if($request->getParameter('move_id') == 3){
+ // ¸µ¤Î¥Õ¥©¡¼¥à¾ðÊó¤ò¼èÆÀ¤¹¤ë
+ $form = $user->getAttribute('new_form_obj');//·ï̾¡§subject ÆâÍÆ¡§body
+ // ÂоݤȤʤë¥À¥¤¥¢¥ê¡¼ID¤ò¼èÆÀ¤¹¤ë
+ $diary_id = $request->ACSgetParameter('diary_id');
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * Æüµµ¡Ç½¡¡View¥¯¥é¥¹
+ * ÆþÎϾðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.6 $ $Date: 2006/03/02
+ */
+// $Id: DiaryCommentPreView_confirm.class.php,v 1.6 2006/03/29 08:08:42 kuwayama Exp $
+
+
+class DiaryCommentPreSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£ID¤ò¼èÆÀ
+ $community_id = $request->getParameter('id');
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $community_row = ACSCommunity::get_community_row($community_id);
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ $diary_id = $request->getParameter('diary_id');
+
+ // form action
+ $action_url = $this->getControllerPath('User', 'DiaryCommentPre') . '&id=' . $community_id . '&diary_id=' . $diary_id . '&move_id=2';
+ // action URL ³Îǧ²èÌ̤Υ¥ã¥ó¥»¥ë¥Ü¥¿¥ó
+ $back_url = $this->getControllerPath('User', 'DiaryComment') . '&id=' . $community_id . '&diary_id=' . $diary_id . '&move_id=3';
+
+ // ¥À¥¤¥¢¥ê¡¼¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $link_page_url['diary_top_page_url'] = $this->getControllerPath('User', 'Diary') . '&id=' .$community_id;
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $community_id;
+ $diary_comment_page_url = $this->getControllerPath('User', 'DiaryComment') . '&community_id=' . $community_id .'&diary_id=' . $diary_id;
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('diary_comment_page_url', $diary_comment_page_url);
+ $this->setAttribute('form', $form);
+ $this->setAttribute('community_row', $community_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DiaryCommentPre.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * DiaryView::INPUT
+ * @author ota update akitsu
+ * @since PHP 4.0
+ */
+// $Id: DiaryView::INPUT.class.php,v 1.18 2006/12/13 09:51:49 w-ota Exp $
+
+class DiaryInputView extends BaseView
+{
+ function execute() {
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $controller = $context->getController();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $diary_row_array = $request->getAttribute('diary_row_array');
+ $diary_comment_row_array = $request->getAttribute('diary_comment_row_array');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+ $friends_group_row_array = $request->getAttribute('friends_group_row_array');
+ $last_open_level_code = $request->getAttribute('last_open_level_code');
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $acs_user_info_row['user_community_id'];
+ // ¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+ // ¸¡º÷²èÌÌURL
+ $link_page_url['search_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'SearchDiary') . '&id=' . $target_user_info_row['community_id'];
+ // ¥À¥¤¥¢¥ê¡¼RSS URL
+ $term = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'DIARY_RSS_TERM');
+ $link_page_url['diary_rss_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryRSS')
+ . '&id=' . $target_user_info_row['community_id']
+ . "&term=$term";
+
+ // ²Ã¹©
+ foreach ($diary_row_array as $index => $diary_row) {
+ // ²èÁüURL
+ $diary_row_array[$index]['image_url'] = ACSUser::get_image_url($diary_row['community_id'], 'thumb');
+ // Åê¹ÆÆü»þ
+ $diary_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($diary_row['post_date']);
+ // Åê¹ÆÆü»þ (¾Êά·Ï: M/D)
+ $diary_row_array[$index]['short_post_date'] = gmdate("n/j", strtotime($diary_row['post_date']) + 9*60*60);
+ // ¥³¥á¥ó¥È¥Ú¡¼¥¸URL
+ $diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $target_user_info_row['community_id'] . '&diary_id=' . $diary_row['diary_id'];
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ if (count($diary_row['trusted_community_row_array'])
+ && $diary_row['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $diary_row_array[$index]['trusted_community_flag'] = 0;
+ } else {
+ $diary_row_array[$index]['trusted_community_flag'] = 1;
+ }
+ }
+ // ºï½ü²èÌÌURL
+ $diary_row_array[$index]['diary_delete_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DeleteDiary') . '&id=' . $target_user_info_row['user_community_id'] . '&diary_id=' . $diary_row['diary_id'];
+ // ¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $diary_row_array[$index]['file_url'] = "";
+ if($diary_row['file_id'] != ""){
+ $diary_row_array[$index]['file_url'] = ACSDiaryFile::get_image_url($diary_row['file_id'],'thumb'); //Åê¹ÆÆâɽ¼¨ÍÑ
+ $diary_row_array[$index]['file_url_alink'] = ACSDiaryFile::get_image_url($diary_row['file_id'],''); //¥Ý¥Ã¥×¥¢¥Ã¥×ÍÑ
+ }
+ }
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+ // ½ñ¤¹þ¤ß¥Ü¥¿¥ó¤Ç³Îǧ²èÌ̤òɽ¼¨
+ $action_url = $this->getControllerPath(DEFAULT_MODULE, 'DiaryPre') . '&id=' . $target_user_info_row['user_community_id'] ."&move_id=1";
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $diary_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $diary_row_array);
+ //----------------------//
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $diary_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('diary_row_array', $diary_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $this->setAttribute('last_open_level_code', $last_open_level_code);
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨(¥«¥ì¥ó¥À¡¼) ½é´üÃͤÏÅö·î
+// $this->setAttribute('new_calendar_action_chain', $request->getAttribute('new_calendar_action_chain_html'));
+ /*----------------------------------------------*/
+ // ½é´üɽ¼¨»þ
+ // ¸½ºß¤Î¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¼èÆÀ
+ $renderMode = $controller->getRenderMode();
+
+ //¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¾å½ñ¤ ¡Ê²èÌ̽ÐÎϤò¥ª¥Õ¤Ë¤·¤Æ¤ë¡Ë
+ $controller->setRenderMode(View::RENDER_VAR);
+ $this->inlineFlg = true;
+
+ // ¥Õ¥©¥ï¡¼¥É¦¤ÇȽÃǤ¹¤ë
+ $request->setAttribute("inline_mode", "1");
+
+ // ¿·Ã女¥ß¥å¥Ë¥Æ¥£
+ $controller->forward("User", "DiaryCalendar");
+ $this->setAttribute("DiaryCalendar", $request->getAttribute("DiaryCalendar"));
+
+ // ¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¸µ¤ËÌ᤹
+ $controller->setRenderMode($renderMode);
+ $this->inlineFlg = false;
+
+ /*----------------------------------------------*/
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Diary.tpl.php');
+
+ // ³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¥Ü¥¿¥ó¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ if($request->getParameter('move_id') == 3){
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¡¡ÅÐÏ¿¡¦É½¼¨µ¡Ç½¡¡View¥¯¥é¥¹
+ * Æüµ¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+ * @package acs/webapp/modules/Usery/views
+ * @author akitsu
+ * @since PHP 4.0
+ * @version $Revision: 1.4 $ $Date: 2006/03/01
+ */
+// $Id: DiaryPreView_confirm.class.php,v 1.4 2006/03/30 12:07:10 kuwayama Exp $
+
+
+class DiaryPreSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //get
+ //$target_user_info_row = $request->getAttribute('target_user_info_row');
+ //$diary_row = $request->getAttribute('diary_row_array');
+ //$open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+ //$friends_group_row_array = $request->getAttribute('friends_group_row_array');
+
+ //$acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_id = $request->getParameter('id');
+ // Diary¾ðÊó
+ //$diary_row_array = $request->getAttribute('diary_row_array');
+ // ¥Õ¥¡¥¤¥ë¾ðÊó
+ $new_file_obj = $user->getAttribute('new_file_obj');
+ $new_file_info = $user->getAttribute('new_file_info');
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+
+ // form action
+ $action_url = $this->getControllerPath('User', 'DiaryPre') .'&id=' .$user_id .'&move_id=2';
+ $back_url = $this->getControllerPath('User', 'Diary') . '&id=' .$user_id .'&move_id=3';
+
+ // Diary¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $diary_top_page_url = $this->getControllerPath('User', 'Diary') . '&id=' .$user_id;
+
+ // ²Ã¹©
+ //¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ $form['file_url'] = "";
+ if($form['file_name'] != ""){
+ $file_name = $form['file_name'];
+ $type = $new_file_obj['type'];
+ $form['file_url_alink'] = $this->getControllerPath('User', 'DiaryPreImage') . '&type=' . $type ."&new_file_info=" . $new_file_info;
+ }
+ // set
+
+ // ÁªÂò¤µ¤ì¤¿¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¾ðÊó¼èÆÀ
+ if ($form['trusted_community_id_array']) {
+ $form['trusted_community_row_array'] = array();
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $selected_friends_group_community_row = ACSCommunity::get_community_row($trusted_community_id);
+ array_push($form['trusted_community_row_array'], $selected_friends_group_community_row);
+ }
+ }
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('diary_top_page_url', $diary_top_page_url);
+ $this->setAttribute('form', $form);
+ //$this->setAttribute('new_file_obj', $new_file_obj);
+ //$this->setAttribute('new_file_info', $new_file_info);
+ //$this->setAttribute('diary_row', $diary_row);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('DiaryPre.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: DiaryRSSView::SUCCESS.class.php,v 1.20 2009/06/19 10:10:00 acs Exp $
+
+class DiaryRSSSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $diary_row_array = $request->getAttribute('diary_row_array');
+ $term = $request->getAttribute('term');
+
+ // ¥æ¡¼¥¶¾ðÊó
+ $target_user_info_row['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION)
+ . '&id=' . $target_user_info_row['user_community_id'];
+
+ $target_user_info_row['image_url'] = ACSUser::get_image_url($target_user_info_row['user_community_id']);
+
+ if ($target_user_info_row['file_id'] != '') {
+ $user_file_info_row = ACSFileInfoModel::select_file_info_row($target_user_info_row['file_id']);
+ $target_user_info_row['image_title'] = $user_file_info_row['display_file_name'];
+ } else {
+ // ¼Ì¿¿¤Ï¤¢¤ê¤Þ¤»¤ó
+ $target_user_info_row['image_title'] = ACSMsg::get_msg('User', 'DiaryRSSSuccessView.class.php' ,'M001');
+ }
+
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ foreach ($diary_row_array as $index => $diary_row) {
+ // ͧ¿Í¤Ë¸ø³«
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $diary_row_array[$index]['trusted_community_row_array'] = ACSDiary::get_diary_trusted_community_row_array($diary_row['diary_id']);
+ }
+
+ // ¥À¥¤¥¢¥ê¡¼¥³¥á¥ó¥ÈURL
+ $diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath('User', 'DiaryComment')
+ . '&id=' . $target_user_info_row['community_id'] . '&diary_id=' . $diary_row['diary_id'];
+
+ // ¥Õ¥¡¥¤¥ë¤Î²èÁüURL
+ if ($diary_row['file_id'] != '') {
+ $diary_row_array[$index]['file_url'] = ACSDiaryFile::get_image_url($diary_row['file_id']);
+ }
+ }
+
+ // ACSDiary::print_diary_rss()¤Ç»ÈÍѤ¹¤ë¥Ñ¥é¥á¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
+ $params = array();
+ // ¥Ù¡¼¥¹URL
+ if ($acs_user_info_row['is_acs_user']) {
+ $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_LOGIN_URL');
+ } else {
+ $params['base_url'] = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D01'), 'SYSTEM_BASE_URL');
+ }
+
+ // ¼«¿È¤ÎURL
+ $params['rss_syndication_url'] = $params['base_url']
+ . $this->getControllerPath('User', 'DiaryRSS')
+ . '&id=' . $target_user_info_row['user_community_id']
+ . '&term=' . $term;
+
+ // <description>
+ if ($acs_user_info_row['is_acs_user']) {
+ if (ACSUser::is_friends($acs_user_info_row['user_community_id'], $target_user_info_row['user_community_id'])) {
+ // ͧ¿Í¸þ¤±
+ $params['description'] = $target_user_info_row['contents_row_array']['community_profile_friend']['contents_value'];
+ } else {
+ // ¥í¥°¥¤¥ó¥æ¡¼¥¶¸þ¤±
+ $params['description'] = $target_user_info_row['contents_row_array']['community_profile_login']['contents_value'];
+ }
+ } else {
+ // °ìÈ̸þ¤±
+ $params['description'] = $target_user_info_row['contents_row_array']['community_profile']['contents_value'];
+ }
+
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $diary_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $diary_row_array);
+ //----------------------//
+
+ // RSS½ÐÎÏÉô
+ ACSDiary::print_diary_rss($target_user_info_row, $diary_row_array, $params);
+
+ // ½ªÎ»
+ exit;
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: EditFileDetailView::SUCCESS.class.php,v 1.5 2006/11/20 08:44:28 w-ota Exp $
+
+class EditFileDetailSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $file_obj = $request->getAttribute('file_obj');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $file_detail_info_row = $request->getAttribute('file_detail_info_row');
+
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&id=' . $target_user_community_id;
+ $target_folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ // Ëܿͤ«¤É¤¦¤«
+ if ($target_user_community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = true;
+ } else {
+ $is_self_page = false;
+ }
+
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó
+ $file_info_row = array();
+ $file_info_row['file_id'] = $file_obj->get_file_id();
+ $file_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_info_row['mime_type'] = $file_obj->get_mime_type();
+ $file_info_row['file_size_kb'] = $file_obj->get_file_size_kb();
+ $file_info_row['file_size'] = $file_obj->get_file_size();
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['link_url'] = $this->getControllerPath('User', 'DownloadFile')
+ . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
+
+ // ÅÐÏ¿¼Ô
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['entry_user_community_link_url'] .= '&id=' . $file_obj->get_entry_user_community_id();;
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+
+ // ¹¹¿·¼Ô
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['update_user_community_link_url'] .= '&id=' . $file_obj->get_update_user_community_id();;
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ // $folder_name = $target_user_info_row['community_name'];
+ // $folder_name .= "¤µ¤ó¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('User', 'EditFileDetailSuccessView.class.php' ,'FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_user_info_row['community_name'])
+ );
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('User', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+ /* ---------------- */
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó */
+ /* ---------------- */
+ $detail_folder_obj = $user_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ if ($is_self_page) {
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+ }
+
+ // link url
+ $detail_folder_row['link_url'] = $this->getControllerPath('User', 'Folder')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id();
+
+ // action URL
+ $action_url = $this->getControllerPath('User', 'EditFileDetail');
+ $action_url .= $target_community_info;
+ $action_url .= $target_folder_info;
+ $action_url .= '&file_id=' . $file_info_row['file_id'];
+
+ // Ìá¤êÀèURL (¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊó)
+ $back_url = "";
+ $back_url = $this->getControllerPath('User', 'FileDetail');
+ $back_url .= $target_community_info;
+ $back_url .= $target_folder_info;
+ $back_url .= '&file_id=' . $file_info_row['file_id'];
+
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('file_info_row', $file_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditFileDetail.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ºîÀ®¡¦Êѹ¹
+ *
+ * @author kuwayama
+ * @version $Revision: 1.6 $ $Date: 2006/11/20 08:44:28 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class EditFolderInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $edit_folder_id = $request->getAttribute('edit_folder_id');
+ $default_data_row = $request->getAttribute('default_data_row'); // ¥Ç¥Õ¥©¥ë¥ÈÃͤȤ·¤Æɽ¼¨¤¹¤ëÃÍ
+
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+ $view_mode = $request->getAttribute('view_mode');
+
+ $target_user_info = '&id=' . $target_user_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+ if ($view_mode == 'update') {
+ $edit_folder_info = '&edit_folder_id=' . $edit_folder_id;
+ } else {
+ $edit_folder_info = "";
+ }
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $_target_user_info_row['community_name'] = $target_user_info_row['community_name'];
+ $_target_user_info_row['top_page_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $_target_user_info_row['top_page_url'] .= $target_community_info;
+
+ // ÅÐÏ¿¡¦¹¹¿·½èÍýURL
+ $action_url = "";
+ $action_url = $this->getControllerPath('User', 'EditFolder');
+ $action_url .= $target_user_info;
+ $action_url .= $folder_info;
+ $action_url .= $edit_folder_info;
+ $action_url .= '&action_type=' . $view_mode;
+
+ $cancel_url = "";
+ if ($view_mode == 'create') {
+ $cancel_url = $this->getControllerPath('User', 'Folder');
+ $cancel_url .= $target_user_info;
+ $cancel_url .= $folder_info;
+ } elseif ($view_mode == 'update') {
+ $cancel_url = $this->getControllerPath('User', 'FolderDetail');
+ $cancel_url .= $target_user_info;
+ $cancel_url .= $folder_info;
+ $cancel_url .= '&detail_folder_id=' . $edit_folder_id;
+ }
+
+ // ¸ø³«ÈϰϤòÀßÄê¤Ç¤¤ë¤«¤É¤¦¤«
+ $is_set_open_level_available = $user_folder_obj->is_set_open_level_available();
+
+ // ¸ø³«ÈÏ°ÏÁªÂò»è¼èÆÀ
+ $open_level_master_row_array = ACSAccessControl::get_open_level_master_row_array(ACSMsg::get_mst('community_type_master','D10'), ACSMsg::get_mst('contents_type_master','D32'));
+ // ¥Ç¥Õ¥©¥ë¥Èɽ¼¨¥Ç¡¼¥¿¤¬¤¢¤ë¾ì¹ç¡¢is_default ¤òÊѹ¹¤¹¤ë
+ if ($default_data_row) {
+ $selected_open_level_code = $default_data_row['open_level_code'];
+ $index_count = 0;
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if ($open_level_master_row['open_level_code'] == $selected_open_level_code) {
+ $open_level_master_row_array[$index_count]['is_default'] = true;
+ } else {
+ $open_level_master_row_array[$index_count]['is_default'] = false;
+ }
+ $index_count++;
+ }
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¼èÆÀ (¸ø³«ÈÏ°Ï¡Öͧ¿Í¤Ë¸ø³«¡×¤ÎÁªÂò»è)
+ $friends_group_row_array = ACSUser::get_friends_group_row_array($target_user_info_row['user_community_id']);
+
+ // ͧ¿Í¤Ë¸ø³«¤Î¾ì¹ç¤Î¥ª¥×¥·¥ç¥ó¥Ç¥Õ¥©¥ë¥ÈÃͤòÄɲÃ
+ // default_data_row ¤Ë 'trusted_community_flag' ¤òÄɲ乤ë
+ $selected_trusted_community_id_array = $default_data_row['trusted_community_id_array'];
+
+ // ¡Öͧ¿Í¤Ë¸ø³«¡×¤Î ¸ø³«ÈÏ°Ï¥³¡¼¥É¼èÆÀ
+ foreach ($open_level_master_row_array as $open_level_master_row) {
+ if ($open_level_master_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $friends_open_level_code = $open_level_master_row['open_level_code'];
+ break;
+ }
+ }
+
+ if ($default_data_row['trusted_community_flag']) {
+ // ÁªÂò¤µ¤ì¤¿Ãͤ¬¤ï¤«¤Ã¤Æ¤¤¤ë¾ì¹ç¡Ê¥¨¥é¡¼¤Î¾ì¹ç¡Ë
+ // ¤½¤Î¤Þ¤Þ¤ÎÃͤò»ÈÍѤ¹¤ë
+
+ } elseif ($default_data_row['open_level_code'] != $friends_open_level_code) {
+ // Á´¤Æ¤Îͧ¿Í ¤ò¥Ç¥Õ¥©¥ë¥È¤Ë¤¹¤ë
+ $default_data_row['trusted_community_flag'] = '0';
+
+ } elseif ($friends_group_row_array && $selected_trusted_community_id_array) {
+
+ // »ØÄꤵ¤ì¤Æ¤¤¤ë¥³¥ß¥å¥Ë¥Æ¥£ID¤¬£±¤Ä¤Ç¡¢community_type ¤¬¥Þ¥¤¥Õ¥ì¥ó¥º¤Ç¤Ê¤¤¤Î¾ì¹ç
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥× ¤òÁªÂò¤¹¤ë
+ if (count($selected_trusted_community_id_array) == 1) {
+ $_trusted_community_row = ACSCommunity::get_community_row($selected_trusted_community_id_array[0]);
+ if ($_trusted_community_row['community_type_name'] != ACSMsg::get_mst('community_type_master','D20')) {
+ $default_data_row['trusted_community_flag'] = '1';
+ } else {
+ $default_data_row['trusted_community_flag'] = '0';
+ }
+
+ } else {
+ // Ê£¿ô¤¢¤ë¾ì¹ç¤Ï¡¢¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ $default_data_row['trusted_community_flag'] = '1';
+ }
+
+ } elseif ($default_data_row['open_level_code'] == $friends_open_level_code && !$selected_trusted_community_id_array) {
+ // ͧ¿Í¤Ë¸ø³«¤Ç¡¢±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¤¬¤Ê¤¤¾ì¹ç¤Ï ¥Þ¥¤¥Õ¥ì¥ó¥º¤òÁªÂò
+ $default_data_row['trusted_community_flag'] = '1';
+ }
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditFolder.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $_target_user_info_row);
+ $this->setAttribute('view_mode', $view_mode);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ $this->setAttribute('is_set_open_level_available', $is_set_open_level_available);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+
+ $this->setAttribute('default_data_row', $default_data_row);
+
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: EditFriendsGroupMemberView::INPUT.class.php,v 1.6 2006/06/16 05:50:21 w-ota Exp $
+
+class EditFriendsGroupMemberInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $friends_row_array = $request->getAttribute('friends_row_array');
+ $friends_group_row = $request->getAttribute('friends_group_row');
+ $friends_group_member_row_array = $request->getAttribute('friends_group_member_row_array');
+ $form = $request->getAttribute('form');
+
+ // ²Ã¹©
+ foreach ($friends_row_array as $index => $user_info_row) {
+ $friends_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $friends_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id']);
+ }
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤ÎÉü¸µ½èÍý
+ if (is_array($form)) {
+ // ÁªÂò¤·¤¿¥Þ¥¤¥Õ¥ì¥ó¥º
+ $friends_group_member_row_array = array();
+ if (is_array($form['trusted_community_id_array'])) {
+ foreach ($form['trusted_community_id_array'] as $trusted_community_id) {
+ $friends_group_member_row = array();
+ $friends_group_member_row['user_community_id'] = $trusted_community_id;
+ array_push($friends_group_member_row_array, $friends_group_member_row);
+ }
+ }
+ } else {
+ $form['community_name'] = $friends_group_row['community_name'];
+ }
+
+ foreach ($friends_group_member_row_array as $index => $user_info_row) {
+ $friends_group_member_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $friends_group_member_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id']);
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'EditFriendsGroupMember') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditFriendsGroupMember.tpl.php');
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+ $this->setAttribute('form', $form);
+
+ $this->setAttribute('user_community_id', $user_community_id);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('friends_row_array', $friends_row_array);
+ $this->setAttribute('friends_group_row', $friends_group_row);
+ $this->setAttribute('friends_group_member_row_array', $friends_group_member_row_array);
+ $this->setAttribute('action_url', $action_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¼Ì¿¿¥¢¥Ã¥×¥í¡¼¥Éµ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥×¥í¥Õ¥£¡¼¥ë¼Ì¿¿Êѹ¹²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * EditProfileImageView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ * @revision ver1.5 $Date: 2008/03/24 07:00:36 $
+ */
+
+class EditProfileImageInputView extends BaseView
+{
+ /**
+ * execute ¥á¥½¥Ã¥É
+ *¡¡¥á¥Ã¥»¡¼¥¸¥Ñ¥Ã¥·¥ó¥°
+ * @param object $user ¥æ¡¼¥¶¾ðÊó
+ * @param object $request ¥ê¥¯¥¨¥¹¥È¾ðÊó
+ * @param object $controller ¡õ¥¢¥É¥ì¥¹¡¡¥³¥ó¥È¥í¡¼¥é
+ *
+ * @return parent::execute($controller, $request, $user) BaseView¥¯¥é¥¹¼Â¹Ô
+ */
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //action¥¯¥é¥¹¤«¤éÄÌÃÎset¤µ¤ì¤¿user_community_id ¤ò¼èÆÀ¤¹¤ë
+ $user_community_id = $request->getAttribute('user_community_id');
+ //action¥¯¥é¥¹¤«¤éÄÌÃÎset¤µ¤ì¤¿target_user_info_row ¤ò¼èÆÀ¤·$profileÊÑ¿ô¤Î¥ª¥Ö¥¸¥§¥¯¥ÈÇÛÎó¤È¤¹¤ë
+ $profile = $request->getAttribute('target_user_info_row');
+
+ $image_new_mode = $request->getAttribute('image_new_add');
+ $image_file_label = $request->getAttribute('image_file_label');
+ $open_level_code_row = $request->getAttribute('open_level_code_row');
+ $display_for_public = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D08'), 'DISPLAY_PHOTOS_FOR_PUBLIC');
+ if ($display_for_public == NULL) {
+ $display_for_public = "0";
+ }
+
+ // ²èÁü¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹¤òÀßÄê
+ $image_file_array = ACSUser::get_image_url_with_open_level(
+ $user_community_id, $open_level_code_row);
+// $profile['image_url'] = ACSUser::get_image_url($user_community_id);
+
+ $file_id = ""; //¹¹¿·½èÍýÍÑ¡¡Äɲà ver1.2 2006/2/13 (¿·µ¬ÄɲäؤÎÂбþ)
+
+ // ¥á¥Ë¥å¡¼ÀßÄê ¿·µ¬ÅÐÏ¿°Ê³°¤Ïºï½ü¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë
+ $menu = array();
+ for ($i = 0; $i < count($open_level_code_row); $i++) {
+ $key_name = 'file_id_ol' . $open_level_code_row[$i];
+ if ($image_new_mode[$key_name]) {
+ $menu['delete_image_url' . $open_level_code_row[$i]] = null;
+ } else {
+ $file_id = $profile[$key_name];
+ $delete_confirm_url =
+ $this->getControllerPath(
+ 'User','DeleteProfileImage');
+ $delete_confirm_url .= '&id=' . $user_community_id;
+ $delete_confirm_url .= '&file_id=' . $file_id;
+ $delete_confirm_url .= '&open_level_code=' . $open_level_code_row[$i];
+ $menu['delete_image_url' . $open_level_code_row[$i]]
+ = $delete_confirm_url;
+ }
+ $menu['image_new_mode' . $open_level_code_row[$i]]
+ = $image_new_mode[$key_name];
+
+ //²èÁü¤Î¥¢¥Ã¥×¥í¡¼¥ÉURL ver1.1
+ $upload_image_url[$key_name] = $this->getControllerPath(
+ 'User','UploadProfileImage');
+ $upload_image_url[$key_name] .= '&id=' . $user_community_id;
+ $upload_image_url[$key_name] .= '&image_new_mode=' . $image_new_mode[$key_name];
+ $upload_image_url[$key_name] .= '&file_id=' . $file_id;
+ $upload_image_url[$key_name] .= '&open_level_code=' . $open_level_code_row[$i];
+ }
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ÀßÄê
+ $error_msg_array = array();
+ $error_row = $request->getAttribute('error_row');
+ if ($error_row) {
+ foreach ($error_row as $key => $msg) {
+ array_push($error_msg_array, $msg);
+ }
+ }
+
+ //set
+ $this->setAttribute('image_file_array', $image_file_array);
+ $this->setAttribute('display_for_public', $display_for_public);
+ $this->setAttribute('profile', $profile);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('error_msg_array', $error_msg_array);
+ $this->setAttribute('upload_image_url', $upload_image_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditProfileImage.tpl.php');
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: EditProfileView::INPUT.class.php,v 1.10 2006/11/20 08:44:28 w-ota Exp $
+
+class EditProfileInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $is_new_ldap_user = $request->getAttribute('is_new_ldap_user');
+ $form = $request->getAttribute('form');
+
+ // ²Ã¹©
+
+ // ¥³¥ó¥Æ¥ó¥Ä̾¤ÎÇÛÎó
+ $contents_name_array = array(
+ 'user_name' => ACSMsg::get_mst('contents_type_master','D01'),
+ 'mail_addr' => ACSMsg::get_mst('contents_type_master','D02'),
+ 'belonging' => ACSMsg::get_mst('contents_type_master','D03'),
+ 'speciality' => ACSMsg::get_mst('contents_type_master','D04'),
+ 'birthplace' => ACSMsg::get_mst('contents_type_master','D05'),
+ 'birthday' => ACSMsg::get_mst('contents_type_master','D06'),
+ 'community_profile' => ACSMsg::get_mst('contents_type_master','D07'),
+ 'community_profile_login' => ACSMsg::get_mst('contents_type_master','D08'),
+ 'community_profile_friend' => ACSMsg::get_mst('contents_type_master','D09'),
+ 'friends_list' => ACSMsg::get_mst('contents_type_master','D11'),
+ 'mail_lang' => ACSMsg::get_mst('contents_type_master','D51'),
+ );
+
+ // ÆþÎÏ¥¨¥é¡¼»þ¤ÎÉü¸µ½èÍý
+ if (is_array($form)) {
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ // ¸ø³«ÈÏ°Ï¥Þ¥¹¥¿
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ // $target_user_info_row[contents_row_array]¤ÎÉü¸µ
+ // ¥Ë¥Ã¥¯¥Í¡¼¥à
+ $target_user_info_row['community_name'] = $form['community_name'];
+ // ¾
+ foreach ($contents_name_array as $contents_key => $contents_name) {
+ $target_user_info_row['contents_row_array'][$contents_key]['contents_type_code'] = array_search($contents_name, $contents_type_master_array);
+ $target_user_info_row['contents_row_array'][$contents_key]['contents_type_name'] = $contents_name;
+ if ($contents_key != 'user_name') {
+ $target_user_info_row['contents_row_array'][$contents_key]['contents_value'] = $form[$contents_key];
+ }
+ $target_user_info_row['contents_row_array'][$contents_key]['open_level_code'] = $form['open_level_code_array'][$contents_key];
+ $target_user_info_row['contents_row_array'][$contents_key]['open_level_name'] = $open_level_master_array[$form['open_level_code_array'][$contents_key]];
+
+ // ¿®ÍêºÑ¤ß¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£
+ if ($form['trusted_community_id_csv_array'][$contents_key] != '') {
+ $target_user_info_row['contents_row_array'][$contents_key]['trusted_community_row_array'] = array();
+ $trusted_community_id_array = explode(',', $form['trusted_community_id_csv_array'][$contents_key]);
+ foreach ($trusted_community_id_array as $trusted_community_id) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¥³¥ß¥å¥Ë¥Æ¥£¾ðÊó¤ò¼èÆÀ
+ $friends_group_community_row = ACSCommunity::get_community_row($trusted_community_id);
+ array_push($target_user_info_row['contents_row_array'][$contents_key]['trusted_community_row_array'],
+ $friends_group_community_row);
+ }
+ $target_user_info_row['contents_row_array'][$contents_key]['trusted_community_flag'] = 1;
+ $target_user_info_row['contents_row_array'][$contents_key]['trusted_community_id_csv'] = $form['trusted_community_id_csv_array'][$contents_key];
+ } else {
+ unset($target_user_info_row['contents_row_array'][$contents_key]['trusted_community_row_array']);
+ unset($target_user_info_row['contents_row_array'][$contents_key]['trusted_community_flag']);
+ unset($target_user_info_row['contents_row_array'][$contents_key]['trusted_community_id_csv']);
+ }
+ }
+
+ } else {
+ // ¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Ê¤¤¤È¤¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤò¼èÆÀ¤¹¤ë
+ foreach ($contents_name_array as $contents_key => $contents_name) {
+ if (!$target_user_info_row['contents_row_array'][$contents_key]) {
+ $target_user_info_row['contents_row_array'][$contents_key] = ACSCommunity::get_empty_contents_row(ACSMsg::get_mst('community_type_master','D10'), $contents_name);
+ }
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'EditProfile') . '&id=' . $target_user_info_row['user_community_id'];
+ $back_url = $this->getControllerPath('User', 'Index') . '&id=' . $target_user_info_row['user_community_id'];
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£ÀßÄêURL
+ $set_open_level_for_profile_url = $this->getControllerPath('User', 'SetOpenLevelForProfile') . '&id=' . $target_user_info_row['user_community_id'];
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('EditProfile.tpl.php');
+
+ // set
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('is_new_ldap_user', $is_new_ldap_user);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('set_open_level_for_profile_url', $set_open_level_for_profile_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FileDetailView::SUCCESS.class.php,v 1.10 2007/03/28 09:24:55 w-ota Exp $
+
+class FileDetailSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $file_obj = $request->getAttribute('file_obj');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $file_detail_info_row = $request->getAttribute('file_detail_info_row');
+ $file_history_row_array = $request->getAttribute('file_history_row_array');
+
+ $target_folder_obj = $user_folder_obj->get_folder_obj();
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ $footprint_info = $request->getAttribute('footprint_info');
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&id=' . $target_user_community_id;
+ $target_folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ // Ëܿͤ«¤É¤¦¤«
+ if ($target_user_community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = true;
+ } else {
+ $is_self_page = false;
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+
+ // ¥Õ¥¡¥¤¥ë¾ðÊó //
+ $file_info_row = array();
+ $file_info_row['file_id'] = $file_obj->get_file_id();
+ $file_info_row['display_file_name'] = $file_obj->get_display_file_name();
+ $file_info_row['mime_type'] = $file_obj->get_mime_type();
+ $file_info_row['file_size_kb'] = $file_obj->get_file_size_kb();
+ $file_info_row['file_size'] = $file_obj->get_file_size();
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['link_url'] = $this->getControllerPath('User', 'DownloadFile')
+ . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
+ // ÅÐÏ¿¼Ô
+ $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
+ $file_info_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['entry_user_community_link_url'] .= '&id=' . $file_obj->get_entry_user_community_id();;
+ $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
+ // ¹¹¿·¼Ô
+ $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $file_info_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $file_info_row['update_user_community_link_url'] .= '&id=' . $file_obj->get_update_user_community_id();;
+ $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó //
+ $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ // $folder_name = $target_user_info_row['community_name'];
+ // $folder_name .= "¤µ¤ó¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'FileDetailSuccessView.class.php' ,'FOLDER_NM'), array(
+ "{COMMUNITY_NAME}" => $target_user_info_row['community_name']));
+
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('User', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+
+ // ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó //
+ $detail_folder_obj = $user_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ if ($is_self_page) {
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+ }
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤ÏÈó¸ø³«
+ if ($is_root_folder) {
+ $detail_folder_row['open_level_name'] = ACSMsg::get_mst('open_level_master','D03');
+ $detail_folder_row['trusted_community_row_array'] = array();
+ }
+ // link url
+ $detail_folder_row['link_url'] = $this->getControllerPath('User', 'Folder')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id();
+
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¾ðÊó //
+ foreach ($file_history_row_array as $index => $file_history_row) {
+ $file_history_row_array[$index]['update_date'] = ACSLib::convert_pg_date_to_str($file_history_row['update_date'], 1, 1);
+ $file_history_row_array[$index]['link_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $file_history_row['community_id'];
+ $file_history_row_array[$index]['download_history_file_url'] = $this->getControllerPath('User', 'DownloadHistoryFile')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id() . '&file_id=' . $file_history_row['file_id'] . '&file_history_id=' . $file_history_row['file_history_id'];
+ if ($index != 0) {
+ $file_history_row_array[$index]['restore_history_file_url'] = $this->getControllerPath('User', 'RestoreHistoryFile')
+ . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id() . '&file_id=' . $file_history_row['file_id'] . '&file_history_id=' . $file_history_row['file_history_id'];
+ }
+ foreach ($file_history_row['file_history_comment_row_array'] as $index2 => $file_history_comment_row) {
+ $file_history_row_array[$index]['file_history_comment_row_array'][$index2]['post_date'] =
+ ACSLib::convert_pg_date_to_str($file_history_comment_row['post_date'], false, true, true);
+ $file_history_row_array[$index]['file_history_comment_row_array'][$index2]['link_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $file_history_comment_row['community_id'];
+ }
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $folder_url = $this->getControllerPath('User', 'Folder') . $target_community_info;
+
+ // ÂÀ×ÅÐÏ¿URL(¼«²èÌÌ) //
+ $footprint_url = "";
+ if($is_self_page === false && $acs_user_info_row['is_login_user']) {
+ $footprint_url = $this->getControllerPath('User', 'FootprintFileDetail')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id'];
+ }
+
+ // ¥Õ¥¡¥¤¥ëÍúÎò¥³¥á¥ó¥ÈURL //
+ $file_history_comment_url = $this->getControllerPath('User', 'FileHistoryComment')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id']
+ . '&file_history_id=' . $file_history_row_array[0]['file_history_id'];
+
+
+ // ¥á¥Ë¥å¡¼ //
+ if ($is_self_page) {
+ // ¥Õ¥¡¥¤¥ë¹¹¿·URL
+ $menu['update_file_url'] = $this->getControllerPath('User', 'UpdateFile')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id'];
+
+ // ̾Á°Êѹ¹URL
+ $menu['rename_folder_list_url'] = $this->getControllerPath('User', 'RenameFolderList')
+ . $target_community_info . $target_folder_info . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // °ÜÆ°URL
+ $menu['move_folder_list_url'] = $this->getControllerPath('User', 'MoveFolderList')
+ . $target_community_info . $target_folder_info . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // ºï½üURL
+ $menu['delete_folder_url'] = $this->getControllerPath('User', 'DeleteFolder')
+ . $target_community_info . $target_folder_info . '&action_type=confirm' . '&selected_file[]=' . $file_info_row['file_id'];
+
+ // ¾ÜºÙ¾ðÊóÊÔ½¸URL
+ $menu['edit_file_detail_url'] = $this->getControllerPath('User', 'EditFileDetail')
+ . $target_community_info . $target_folder_info . '&file_id=' . $file_info_row['file_id'];
+ }
+
+
+ // Ìá¤êÀèURL¡Ê¥Õ¥©¥ë¥À°ìÍ÷¡Ë//
+ $back_url = "";
+ $back_url = $this->getControllerPath('User', 'Folder');
+ $back_url .= $target_community_info;
+ $back_url .= $target_folder_info;
+
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $file_history_row_array, $display_count);
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('file_info_row', $file_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('file_detail_info_row', $file_detail_info_row);
+ $this->setAttribute('file_history_row_array', $file_history_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('folder_url', $folder_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('file_history_comment_url', $file_history_comment_url);
+ $this->setAttribute('footprint_url', $footprint_url);
+ $this->setAttribute('footprint_info', $footprint_info);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FileDetail.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À¾ðÊó¾ÜºÙ
+ *
+ * @author kuwayama
+ * @version $Revision: 1.7 $ $Date: 2006/12/08 05:06:44 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class FolderDetailSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $detail_user_folder_obj = $request->getAttribute('detail_user_folder_obj');
+
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ // URLÉղþðÊó¡Êɽ¼¨¤¹¤ë¥æ¡¼¥¶¾ðÊó¡Ë
+ $target_community_info = '&id=' . $target_user_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $_target_user_info_row['community_name'] = $target_user_info_row['community_name'];
+ $_target_user_info_row['top_page_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $_target_user_info_row['top_page_url'] .= $target_community_info;
+
+ // Ëܿͤ«¤É¤¦¤«
+ if ($target_user_community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = true;
+ } else {
+ $is_self_page = false;
+ }
+
+ // ¥×¥Ã¥È²Äǽ¤Ê¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ if ($user_folder_obj->is_put_available()) {
+ $is_put_available = true;
+ } else {
+ $is_put_available = false;
+ }
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
+ $path_folder_row_array = array();
+ foreach ($path_folder_obj_array as $path_folder_obj) {
+ $path_folder_row = array();
+
+ // ¥Õ¥©¥ë¥À̾
+ if ($path_folder_obj->get_is_root_folder()) {
+ $folder_name = $target_user_info_row['community_name'];
+ //$folder_name .= "¤µ¤ó¤Î¥Õ¥©¥ë¥À";
+ $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'FolderDetailSuccessView.class.php' ,'FOLDER_NM'), array(
+ "{COMMUNITY_NAME}" => $target_user_info_row['community_name']));
+
+ } else {
+ $folder_name = $path_folder_obj->get_folder_name();
+ }
+
+ // ¥Õ¥©¥ë¥ÀURL
+ $link_url = $this->getControllerPath('User', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
+
+ // set
+ $path_folder_row['folder_name'] = $folder_name;
+ $path_folder_row['link_url'] = $link_url;
+
+ array_push($path_folder_row_array, $path_folder_row);
+ }
+
+ /* ---------------- */
+ /* ¥Õ¥©¥ë¥À¾ÜºÙ¾ðÊó */
+ /* ---------------- */
+ $detail_folder_obj = $detail_user_folder_obj->get_folder_obj();
+ $detail_folder_row = array();
+ $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
+ $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
+ $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $detail_folder_row['trusted_community_row_array'] = array();
+ $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
+ if ($is_self_page) {
+ foreach ($trusted_community_row_array as $trusted_community_row) {
+ $_trusted_community_row = array();
+ $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
+
+ array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
+ }
+ }
+
+ // ÅÐÏ¿¼Ô
+ $detail_folder_row['entry_user_community_name'] = $detail_folder_obj->get_entry_user_community_name();
+ $detail_folder_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $detail_folder_row['entry_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_entry_user_community_id();;
+ $detail_folder_row['entry_date'] = $detail_folder_obj->get_entry_date_yyyymmddhmi();
+
+ // ¹¹¿·¼Ô
+ $detail_folder_row['update_user_community_name'] = $detail_folder_obj->get_update_user_community_name();
+ $detail_folder_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $detail_folder_row['update_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_update_user_community_id();;
+ $detail_folder_row['update_date'] = $detail_folder_obj->get_update_date_yyyymmddhmi();
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£
+ $detail_folder_row['put_community_row_array'] = array();
+ if ($detail_folder_obj->get_put_community_row_array()) {
+ foreach ($detail_folder_obj->get_put_community_row_array() as $put_community_row) {
+ // ¥á¥ó¥Ð¤Ç¤Ê¤¤Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ïɽ¼¨Âоݤˤ·¤Ê¤¤
+ $_is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $put_community_row['community_id']);
+ if ($put_community_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03') && !$_is_community_member) {
+ continue;
+ }
+
+ $_put_community_row = array();
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ $_put_community_row['community_name'] = $put_community_row['community_name'];
+ $_put_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
+ $_put_community_row['top_page_url'] .= '&community_id=' . $put_community_row['community_id'];
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À¾ðÊó
+ $put_folder_obj = new ACSCommunityFolder($put_community_row['community_id'], $acs_user_info_row, $put_community_row['put_community_folder_id']);
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À̾¡Ê¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¥Ñ¥¹¡Ë
+ $put_folder_path = $put_folder_obj->get_path_folder_obj_array();
+ $folder_path_str = "";
+ foreach ($put_folder_path as $_folder_obj) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤ÏÄɲ䷤ʤ¤
+ if ($_folder_obj->is_root_folder) {
+ continue;
+ }
+
+ $folder_path_str .= $_folder_obj->get_folder_name();
+ $folder_path_str .= "/";
+ }
+ $_put_community_row['folder_name'] = $folder_path_str;
+ $_put_community_row['folder_link_url'] = $this->getControllerPath('Community', 'Folder');
+ $_put_community_row['folder_link_url'] .= '&community_id=' . $put_community_row['community_id'];
+ $_put_community_row['folder_link_url'] .= '&folder_id=' . $put_community_row['put_community_folder_id'];
+
+
+ array_push($detail_folder_row['put_community_row_array'], $_put_community_row);
+ }
+ }
+
+ // ¥á¥Ë¥å¡¼
+ if ($is_self_page) {
+ // ¥Õ¥©¥ë¥À¾ðÊóÊÔ½¸¥á¥Ë¥å¡¼
+ $edit_folder_url = $this->getControllerPath('User', 'EditFolder');
+ $edit_folder_url .= $target_community_info;
+ $edit_folder_url .= $folder_info;
+ $edit_folder_url .= '&edit_folder_id=' . $detail_user_folder_obj->folder_obj->get_folder_id();
+ $menu['edit_folder_url'] = $edit_folder_url;
+
+ // ¥Õ¥©¥ë¥Àºï½ü¥á¥Ë¥å¡¼
+ $delete_folder_url = $this->getControllerPath('User', 'DeleteFolder');
+ $delete_folder_url .= $target_community_info;
+ $delete_folder_url .= $folder_info;
+ $delete_folder_url .= '&action_type=confirm';
+ $delete_folder_url .= '&selected_folder[]=' . $detail_user_folder_obj->folder_obj->get_folder_id();
+ $menu['delete_folder_url'] = $delete_folder_url;
+
+ // ¥Õ¥©¥ë¥À°ÜÆ°¥á¥Ë¥å¡¼
+ $move_folder_url = $this->getControllerPath('User', 'MoveFolderList');
+ $move_folder_url .= $target_community_info;
+ $move_folder_url .= $folder_info;
+ $move_folder_url .= '&selected_folder[]=' . $detail_user_folder_obj->folder_obj->get_folder_id();
+ $menu['move_folder_url'] = $move_folder_url;
+ }
+
+ // Ìá¤êÀèURL¡Ê¥Õ¥©¥ë¥À°ìÍ÷¡Ë
+ $back_url = "";
+ $back_url = $this->getControllerPath('User', 'Folder');
+ $back_url .= $target_community_info;
+ $back_url .= $folder_info;
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FolderDetail.tpl.php');
+
+ // set
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('is_put_available', $is_put_available);
+ $this->setAttribute('target_user_info_row', $_target_user_info_row);
+ $this->setAttribute('path_folder_row_array', $path_folder_row_array);
+ $this->setAttribute('detail_folder_row', $detail_folder_row);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('back_url', $back_url);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥À¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/06/16 07:52:35 $
+ */
+//class FolderPutCommunityInputView extends SimpleBaseView
+class FolderPutCommunityInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // ɽ¼¨ÂоݤΥ桼¥¶¾ðÊó
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ // ɽ¼¨ÂоݤΥե©¥ë¥ÀID
+ $target_folder_id = $request->getAttribute('target_folder_id');
+ // ÁªÂòÂоݤȤʤ륳¥ß¥å¥Ë¥Æ¥£
+ $community_row_array = $request->getAttribute('community_row_array');
+ // ÀßÄꤵ¤ì¤Æ¤¤¤ë¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£
+ $put_community_row_array = $request->getAttribute('put_community_row_array');
+
+
+ // ----------------------------
+ // ²Ã¹©
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄêURL
+ $put_community_url = $this->getControllerPath('User', 'FolderPutCommunity');
+ $put_community_url .= '&id=' . $target_user_info_row['user_community_id'];
+ $put_community_url .= '&folder_id=' . $target_folder_id;
+
+ // ÁªÂò²Äǽ¤Ê¥³¥ß¥å¥Ë¥Æ¥£¤ò²Ã¹©
+ $select_community_row_array = array();
+ foreach ($community_row_array as $community_row) {
+ $select_community_row = array();
+
+ $select_community_row['community_id'] = $community_row['community_id'];
+ $select_community_row['community_name'] = $community_row['community_name'];
+ $select_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
+ $select_community_row['top_page_url'] .= '&community_id=' . $community_row['community_id'];
+
+ // ¥Õ¥©¥ë¥À¥Ä¥ê¡¼¼èÆÀ
+ $select_community_row['folder_tree'] = "";
+ //$folder_tree = $community_row['folder_tree'];
+ $folder_tree = array();
+ $this->make_folder_tree($community_row['folder_tree'], $folder_tree);
+
+ // ÀßÄꤵ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«
+ foreach ($put_community_row_array as $put_community_row) {
+ // ¥Õ¥©¥ë¥À¸¡º÷
+ $folder_tree_index = 0;
+ foreach ($folder_tree as $folder_row) {
+ if ($put_community_row['community_id'] == $community_row['community_id'] &&
+ $put_community_row['put_community_folder_id'] == $folder_row['folder_id']) {
+
+ $folder_tree[$folder_tree_index]['is_selected'] = true;
+ $is_selected = true;
+ break;
+ }
+ $folder_tree_index++;
+ }
+ }
+
+ // ¥Õ¥©¥ë¥À¥Ä¥ê¡¼¤ò¥»¥Ã¥È
+ $select_community_row['folder_tree'] = $folder_tree;
+
+ array_push($select_community_row_array, $select_community_row);
+ }
+
+
+ // ----------------------------
+ // set
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FolderPutCommunity.tpl.php');
+
+ $this->setAttribute('put_community_url', $put_community_url);
+ $this->setAttribute('select_community_row_array', $select_community_row_array);
+
+ return parent::execute();
+ }
+
+ function make_folder_tree ($root_folder_obj, &$_folder_tree, $tree_level = 0) {
+
+ $sub_folder_obj_array = $root_folder_obj->get_sub_folder_obj_array();
+
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ $tree_level++;
+ $folder_row = array();
+
+ // row ÀßÄê
+ $folder_row['folder_id'] = $sub_folder_obj->get_folder_id();
+ $folder_row['folder_name'] = $sub_folder_obj->get_folder_name();
+ $folder_row['is_selected'] = false; // ½é´ü²½
+ $folder_row['tree_level'] = $tree_level;
+
+ array_push($_folder_tree, $folder_row);
+
+ // ¤µ¤é¤Ë¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¡ÊºÆµ¢¡Ë
+ $this->make_folder_tree($sub_folder_obj, $_folder_tree, $tree_level);
+
+ // 1³¬Áؾå¤Î¸¡º÷¤ËÌá¤ë
+ $tree_level--;
+ }
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¤Î¥Õ¥©¥ë¥Àɽ¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.35 $ $Date: 2006/11/20 08:44:28 $
+ */
+class FolderSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+ $target_folder_obj = $user_folder_obj->get_folder_obj();
+ $folder_obj_array = $target_folder_obj->get_folder_obj_array();
+ $file_obj_array = $target_folder_obj->get_file_obj_array();
+
+ $mode = $request->getAttribute('mode');
+ if ($mode == 'group') {
+ $file_detail_info_row_array = $request->getAttribute('file_detail_info_row_array');
+ $file_contents_type_master_row_array_array = $request->getAttribute('file_contents_type_master_row_array_array');
+ }
+
+
+ // URL ¤ËÉղ乤ë target_community
+ $target_community_info = '&id=' . $target_user_info_row['user_community_id'];
+
+ // URL ¤ËÉղ乤ë target_folder
+ $target_folder_info = '&folder_id=' . $target_folder_obj->get_folder_id();
+
+ // ɽ¼¨Âоݥ桼¥¶¤Î¾ðÊó
+ $_target_user_info_row['community_name'] = $target_user_info_row['community_name'];
+ $_target_user_info_row['top_page_url'] = $this->getControllerPath('User', DEFAULT_ACTION) . $target_community_info;
+
+ // ¥Õ¥©¥ë¥À¥Ñ¥¹¾ðÊó
+ $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
+ // ɽ¼¨ÍѤ˲ù©
+ $path_folder_obj_row_array = $this->make_display_folder_row_array($path_folder_obj_array, $target_community_info, $target_user_info_row, $target_folder_info, $acs_user_info_row['user_community_id'], $mode, $controller);
+
+ // ¥Õ¥©¥ë¥À¤Î¸ø³«ÈÏ°Ï
+ $target_folder_open_level_row['name'] = $target_folder_obj->get_open_level_name();
+ $target_folder_open_level_row['trusted_community_row_array'] = $target_folder_obj->get_trusted_community_row_array();
+
+ // Ëܿͤ«¤É¤¦¤«
+ $is_self_page = ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id'])
+ ? true : false;
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤«¤É¤¦¤«
+ $is_root_folder = $target_folder_obj->get_is_root_folder();
+
+ // ¥Õ¥¡¥¤¥ë¥¢¥Ã¥×¥í¡¼¥É URL
+ $upload_file_url = $this->getControllerPath('User',
+ 'UploadFile');
+ $upload_file_url .= $target_community_info;
+ $upload_file_url .= $target_folder_info;
+
+ /* ¥Õ¥©¥ë¥À¡¦¥Õ¥¡¥¤¥ë°ìÍ÷ */
+ // ¥Õ¥©¥ë¥À°ìÍ÷
+ $display_folder_obj_array = $target_folder_obj->get_display_folder_obj_array($acs_user_info_row, $target_user_info_row);
+ $folder_row_array = $this->make_display_folder_row_array($display_folder_obj_array, $target_community_info, $target_user_info_row, $target_folder_info, $acs_user_info_row['user_community_id'], $mode, $controller);
+
+
+ if ($mode == 'group') {
+ // ¥°¥ë¡¼¥×ɽ¼¨ //
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥Þ¥¹¥¿
+ $file_category_master_array = ACSDB::get_master_array('file_category');
+
+ // »ØÄê¤Ê¤·¤Î¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É
+ $default_file_category_code = array_search(ACSMsg::get_mst('file_category_master','D0000'), $file_category_master_array);
+
+ $file_detail_info_row_array_array = array();
+ foreach ($file_category_master_array as $file_category_code => $file_category_name) {
+ $file_detail_info_row_array_array[$file_category_code] = array();
+ $file_detail_info_row_array_array[$file_category_code]['file_category_code'] = $file_category_code;
+ $file_detail_info_row_array_array[$file_category_code]['file_category_name'] = $file_category_name;
+ $file_detail_info_row_array_array[$file_category_code]['file_detail_info_row_array'] = array();
+ }
+
+ // Action¤Ç¼èÆÀ¤·¤¿$file_detail_info_row¤ÎÇÛÎó¤ò¡¢¥Õ¥¡¥¤¥ë¼ïÎॳ¡¼¥É¤´¤È¤ÎÇÛÎó¤Ë¿¶¤êʬ¤±¤ë
+ foreach ($file_detail_info_row_array as $file_detail_info_row) {
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É
+ $file_category_code = $file_detail_info_row['file_category_code'];
+
+ // ¥ê¥ó¥¯URL
+ $file_detail_info_row['link_url'] = $this->getControllerPath('User', 'DownloadFile')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info;
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_info_row['file_detail_url'] = $this->getControllerPath('User', 'FileDetail')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info;
+ // ¥µ¥à¥Í¥¤¥ë²èÁüURL
+ if ($file_category_master_array[$file_category_code] == ACSMsg::get_mst('file_category_master','D0003')) {
+ $file_detail_info_row['image_url'] = $this->getControllerPath('User', 'DownloadFile')
+ . $target_community_info . '&file_id=' . $file_detail_info_row['file_id'] . $target_folder_info . '&mode=thumb';
+ }
+
+ // push
+ if ($file_category_code == '') {
+ // ¥Õ¥¡¥¤¥ë¥«¥Æ¥´¥ê¥³¡¼¥É¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È(»ØÄê¤Ê¤·)°·¤¤
+ $file_category_code = $default_file_category_code;
+ }
+ array_push($file_detail_info_row_array_array[$file_category_code]['file_detail_info_row_array'], $file_detail_info_row);
+ }
+
+ // ¥Õ¥©¥ë¥À Ä̾ïɽ¼¨URL
+ $folder_url = $this->getControllerPath('User', 'Folder');
+ $folder_url .= $target_community_info;
+ $folder_url .= $target_folder_info;
+
+ } else {
+ // Ä̾ïɽ¼¨ //
+ // ¥Õ¥¡¥¤¥ë°ìÍ÷
+ $file_row_array = array();
+ foreach ($file_obj_array as $file_obj) {
+ $a_file = array();
+ $link_url = "";
+ $update_user_community_link_url = "";
+
+ $link_url = $this->getControllerPath('User',
+ 'DownloadFile');
+ $link_url .= $target_community_info;
+ $link_url .= "&file_id=" . $file_obj->get_file_id();
+ $link_url .= $target_folder_info;
+
+ $update_user_community_link_url = $this->getControllerPath('User', 'Index');
+ $update_user_community_link_url .= "&id=" . $file_obj->get_update_user_community_id();
+
+ $a_file['name'] = $file_obj->get_display_file_name();
+ $a_file['file_id'] = $file_obj->get_file_id();
+ $a_file['link_url'] = $link_url;
+ $a_file['file_size'] = $file_obj->get_file_size_kb();
+ $a_file['update_user_community_name'] = $file_obj->get_update_user_community_name();
+ $folder_row['update_user_community_link_url'] = $update_user_community_link_url;
+ $a_file['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
+
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $a_file['detail_url'] = $this->getControllerPath('User', 'FileDetail');
+ $a_file['detail_url'] .= $target_community_info;
+ $a_file['detail_url'] .= "&file_id=" . $file_obj->get_file_id();
+ $a_file['detail_url'] .= $target_folder_info;
+
+ array_push($file_row_array, $a_file);
+ }
+
+ // ¥Õ¥©¥ë¥À ¥°¥ë¡¼¥×ɽ¼¨URL
+ $folder_group_mode_url = $this->getControllerPath('User', 'Folder');
+ $folder_group_mode_url .= $target_community_info;
+ $folder_group_mode_url .= $target_folder_info;
+ $folder_group_mode_url .= '&mode=group';
+ }
+
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢Èó¸ø³«¤È¤·¤Æ°·¤¦
+ if ((!$is_self_page) && $is_root_folder) {
+ $file_row_array = array();
+ $file_detail_info_row_array_array = array();
+ }
+
+ // ¥Õ¥¡¥¤¥ë¥À¥¦¥ó¥í¡¼¥É URL
+ $download_file_url = $this->getControllerPath('User',
+ 'DownloadFile');
+ $download_file_url .= $target_community_info;
+
+
+ // ¥Õ¥©¥ë¥ÀºîÀ® URL
+ $edit_folder_url = $this->getControllerPath('User', 'EditFolder');
+ $edit_folder_url .= $target_community_info;
+ $edit_folder_url .= $target_folder_info;
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê URL
+ $folder_put_community_url = $this->getControllerPath('User',
+ 'FolderPutCommunity');
+ $folder_put_community_url .= $target_community_info;
+
+ // ̾Á°Êѹ¹URL
+ $rename_folder_url = "";
+ $rename_folder_url = $this->getControllerPath('User',
+ 'RenameFolderList');
+ $rename_folder_url .= $target_community_info;
+ $rename_folder_url .= $target_folder_info;
+
+ // ºï½üURL
+ $delete_folder_url = "";
+ $delete_folder_url = $this->getControllerPath('User',
+ 'DeleteFolder');
+ $delete_folder_url .= $target_community_info;
+ $delete_folder_url .= $target_folder_info;
+ $delete_folder_url .= "&action_type=confirm"; // Á«°Ü¤¹¤ëÀè¤Î²èÌ̤ϳÎǧ²èÌÌ
+
+ // °ÜÆ°URL
+ $move_folder_url = "";
+ $move_folder_url = $this->getControllerPath('User',
+ 'MoveFolderList');
+ $move_folder_url .= $target_community_info;
+ $move_folder_url .= $target_folder_info;
+
+ // ¥Þ¥¤¥Õ¥©¥ë¥À¸¡º÷URL
+ $search_folder_url = $this->getControllerPath('User', 'SearchFolder');
+ $search_folder_url .= $target_community_info;
+
+ // set
+ $this->setAttribute('target_folder_open_level_row', $target_folder_open_level_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('is_root_folder', $is_root_folder);
+ $this->setAttribute('upload_file_url', $upload_file_url);
+ $this->setAttribute('edit_folder_url', $edit_folder_url);
+ $this->setAttribute('download_file_url', $download_file_url);
+ $this->setAttribute('folder_put_community_url', $folder_put_community_url);
+ $this->setAttribute('move_folder_url', $move_folder_url);
+ $this->setAttribute('rename_folder_url', $rename_folder_url);
+ $this->setAttribute('delete_folder_url', $delete_folder_url);
+ $this->setAttribute('search_folder_url', $search_folder_url);
+
+ //$this->setAttribute('target_user_community_name', $target_user_info_row['community_name']);
+ $this->setAttribute('target_user_info_row', $_target_user_info_row);
+
+ $this->setAttribute('path_folder_obj_row_array', $path_folder_obj_row_array);
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ $this->setAttribute('mode', $mode);
+ if ($mode == 'group') {
+ $this->setAttribute('folder_url', $folder_url);
+ $this->setAttribute('file_detail_info_row_array_array', $file_detail_info_row_array_array);
+ $this->setAttribute('file_contents_type_master_row_array_array', $file_contents_type_master_row_array_array);
+ } else {
+ $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
+ }
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ if ($mode == 'group') {
+ $this->setScreenId("0001");
+ $this->setTemplate('Folder_group.tpl.php');
+ } else {
+ $this->setScreenId("0001");
+ $this->setTemplate('Folder.tpl.php');
+ }
+
+ return parent::execute();
+ }
+
+ function make_display_folder_row_array ($folder_obj_array,
+ $target_community_info,
+ $target_user_info_row,
+ $target_folder_info,
+ $acs_user_community_id,
+ $mode,
+ &$controller) {
+ $folder_row_array = array();
+ foreach ($folder_obj_array as $folder_obj) {
+ $folder_row = array();
+ $link_url = "";
+ $name = "";
+ $update_user_community_link_url = "";
+ $trusted_community_row_array = array();
+ $put_community_row_array = array();
+
+// $link_url = $this->getControllerPath('User', $controller->getCurrentAction());
+ $link_url = $this->getControllerPath('User', 'Folder');
+ $link_url .= $target_community_info;
+ $link_url .= "&folder_id=" . $folder_obj->get_folder_id();
+ if ($mode == 'group') {
+ $link_url .= '&mode=' . $mode;
+ }
+
+ $folder_put_community_url = $this->getControllerPath('User',
+ 'FolderPutCommunity');
+ $folder_put_community_url .= $target_community_info;
+ $folder_put_community_url .= "&folder_id=" . $folder_obj->get_folder_id();
+
+ // ¥Õ¥©¥ë¥À¾ÜºÙ URL
+ $detail_url = $this->getControllerPath('User', 'FolderDetail');
+ $detail_url .= $target_community_info;
+ $detail_url .= $target_folder_info;
+ $detail_url .= "&detail_folder_id=" . $folder_obj->get_folder_id();
+
+ if ($folder_obj->get_is_root_folder()) {
+ // $name = $target_user_info_row['community_name'];
+ // $name .= "¤µ¤ó¤Î¥Õ¥©¥ë¥À";
+ $name = ACSMsg::get_tag_replace(
+ ACSMsg::get_msg('User', 'FolderSuccessView.class.php','FOLDER_NM'),
+ array("{COMMUNITY_NAME}" => $target_user_info_row['community_name']));
+
+ } else {
+ $name = $folder_obj->get_folder_name();
+ }
+
+ $update_user_community_link_url = $this->getControllerPath('User', 'Index');
+ $update_user_community_link_url .= "&id=" . $folder_obj->get_update_user_community_id();
+
+ // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£Ì¾ºîÀ®
+ $org_trusted_community_row_array = $folder_obj->get_trusted_community_row_array();
+ foreach ($org_trusted_community_row_array as $org_trusted_community_row) {
+ $trusted_community_row = array();
+
+ $trusted_community_row['community_name'] = $org_trusted_community_row['community_name'];
+ // ¥ê¥ó¥¯¤âÄɲ乤롩
+
+ array_push($trusted_community_row_array, $trusted_community_row);
+ }
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤òɽ¼¨¤¹¤ëURL
+ $put_community_url = "";
+ if ($folder_obj->has_put_community()) {
+ // ɽ¼¨²Äǽ¤Ê¥×¥Ã¥È¥³¥ß¥å¥Ë¥Æ¥£¤«¤ò¥Á¥§¥Ã¥¯
+ $_has_put_community = false;
+ foreach ($folder_obj->get_put_community_row_array() as $put_community_row) {
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£ÀßÄê URL
+ // ¥á¥ó¥Ð¤Ç¤Ê¤¤Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ïɽ¼¨Âоݤˤ·¤Ê¤¤
+ $_is_community_member = ACSCommunity::is_community_member($acs_user_community_id, $put_community_row['community_id']);
+ if ($put_community_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03') && !$_is_community_member) {
+ continue;
+ } else {
+ $_has_put_community = true;
+ break;
+ }
+ }
+
+ if ($_has_put_community) {
+ $put_community_url = $this->getControllerPath('User', 'PutCommunity');
+ $put_community_url .= $target_community_info;
+ $put_community_url .= "&folder_id=" . $folder_obj->get_folder_id();
+ }
+ }
+
+ $folder_row['name'] = $name;
+ $folder_row['folder_id'] = $folder_obj->get_folder_id();
+ $folder_row['link_url'] = $link_url;
+ $folder_row['folder_put_community_url'] = $folder_put_community_url;
+ $folder_row['open_level_name'] = $folder_obj->get_open_level_name();
+ $folder_row['trusted_community_row_array'] = $trusted_community_row_array;
+ $folder_row['put_community_url'] = $put_community_url;
+ $folder_row['update_user_community_name'] = $folder_obj->get_update_user_community_name();
+ $folder_row['update_user_community_link_url'] = $update_user_community_link_url;
+ $folder_row['update_date'] = $folder_obj->get_update_date_yyyymmddhmi();
+
+ $folder_row['detail_url'] = $detail_url;
+
+ array_push($folder_row_array, $folder_row);
+ }
+ return $folder_row_array;
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * ÂÀ׳Îǧ²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * ViewFootprint_success
+ * @author teramoto
+ * @since PHP 4.0
+ */
+// $Id: FootprintCheckView::SUCCESS.class.php,v 1.1 2007/03/27 02:12:45 w-ota Exp $
+
+class FootprintCheckSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $footprint_info_row_array = $request->getAttribute('footprint_info_row_array');
+ $user_community_id = $request->getAttribute('user_community_id');
+
+ //top
+ $top_page_url = $this->getControllerPath('User', 'Index') .
+ '&id=' . $user_community_id;
+
+ foreach($footprint_info_row_array as $index => $footprint_row){
+
+ // ÂÀ×ÆüÉÕ
+ $footprint_info_row_array[$index]['post_date_disp'] =
+ ACSLib::convert_pg_date_to_str($footprint_row['post_date']);
+
+ // ÂÀפò¤Ä¤±¤¿¥æ¡¼¥¶¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $footprint_info_row_array[$index]['visitor_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, 'Index') .
+ '&id=' . $footprint_row['visitor_community_id'];
+
+ // ¥³¥ó¥Æ¥ó¥ÄÆüÉÕ
+ $footprint_info_row_array[$index]['contents_date_disp'] =
+ "(" . ACSLib::convert_pg_date_to_str($footprint_row['contents_date'], 0, 0) . ")";
+
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), 'FOOTPRINT_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $footprint_info_row_array, $display_count);
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('top_page_url', $top_page_url);
+ $this->setAttribute('footprint_info_row_array', $footprint_info_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FootprintCheck.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FriendsGroupListView::SUCCESS.class.php,v 1.4 2006/02/17 12:28:15 kuwayama Exp $
+
+
+class FriendsGroupListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $friends_group_row_array = $request->getAttribute('friends_group_row_array');
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¿ô
+ $friends_group_row_array_num = count($friends_group_row_array);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×
+ foreach ($friends_group_row_array as $index => $friends_group_row) {
+ $friends_group_row_array[$index]['edit_friends_group_member_url'] = $this->getControllerPath('User', 'EditFriendsGroupMember') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
+ $friends_group_row_array[$index]['delete_friends_group_url'] = $this->getControllerPath('User', 'DeleteFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
+
+ // ³Æ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð
+ foreach ($friends_group_row_array[$index]['friends_row_array'] as $user_info_row_index => $user_info_row) {
+ $friends_group_row_array[$index]['friends_row_array'][$user_info_row_index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $friends_group_row_array[$index]['friends_row_array'][$user_info_row_index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ }
+ $friends_group_row_array[$index]['friends_row_array_num'] = count($friends_group_row_array[$index]['friends_row_array']);
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×ºîÀ®URL
+ $create_friends_group_url = $this->getControllerPath('User', 'CreateFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'];
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FriendsGroupList.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $this->setAttribute('friends_group_row_array_num', $friends_group_row_array_num);
+ $this->setAttribute('create_friends_group_url', $create_friends_group_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: FriendsListView::SUCCESS.class.php,v 1.8 2006/11/20 08:44:28 w-ota Exp $
+
+class FriendsListSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $friends_row_array = $request->getAttribute('friends_row_array');
+ $friends_row_array_num = count($friends_row_array);
+
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+
+ // ²Ã¹©
+ if ($acs_user_info_row['user_id'] == $target_user_info_row['user_id']) {
+ $friends_group_list_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $target_user_info_row['user_community_id'];
+ }
+
+ foreach ($friends_row_array as $index => $friends_row) {
+ $friends_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $friends_row['user_community_id'];
+ $friends_row_array[$index]['image_url'] = ACSUser::get_image_url($friends_row['user_community_id'], 'thumb');
+ if ($acs_user_info_row['user_id'] == $target_user_info_row['user_id']) {
+ $friends_row_array[$index]['delete_friends_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DeleteFriends') . '&id=' . $target_user_info_row['user_community_id'] . '&delete_user_community_id=' . $friends_row['user_community_id'];
+ }
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¿Í¿ô
+ $friends_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($friends_row['user_community_id']);
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $friends_row_array, $display_count);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('FriendsList.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('friends_row_array', $friends_row_array);
+ $this->setAttribute('friends_row_array_num', $friends_row_array_num);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('friends_group_list_url', $friends_group_list_url);
+
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¥Ú¡¼¥¸ (¥¨¥é¡¼)
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/13 08:30:33 $
+ */
+class IndexErrorView extends BaseView
+{
+ function execute() {
+
+ $this->setScreenId("0001");
+ $this->setTemplate('Index_error.tpl.php');
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * TOP²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * IndexView::SUCCESS
+ * @author kuwayama v 1.23 2006/03/06 06:35:28
+ * @update akitsu
+ * @since PHP 4.0
+ */
+// $Id: IndexView::SUCCESS.class.php,v 1.39 2008/03/24 07:00:36 y-yuki Exp $
+
+class IndexSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $controller = $context->getController();
+
+ // indexÍÑCSS¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
+ $this->clearCSSFile();
+ $this->setSelectionCSSFile($request->getAttribute('selection_css'));
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $is_self_page = $request->getAttribute('is_self_page');
+ $peruse_mode = 9;
+
+ $user_community_id = $request->getAttribute('user_community_id');
+ if ($acs_user_info_row['is_acs_user']) {
+ $peruse_mode = 1; //¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ç¤¹
+ }
+
+ // ¥é¥¹¥È¥í¥°¥¤¥ó
+ $last_login = $request->getAttribute('last_login');
+
+ if($acs_user_info_row['is_acs_user']) {
+ if($last_login == ""){
+ $last_login = ACSMsg::get_msg('User', 'IndexSuccessView.class.php','M001');
+ }else{
+ $last_login = ACSLib::convert_pg_date_to_str($last_login);
+ }
+ } else {
+ $last_login = "";
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÉ½¼¨·ï¿ô
+ $my_friends_display_max =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'FRIENDS_DISPLAY_MAX_COUNT');
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£É½¼¨·ï¿ô
+ $my_community_display_max =
+ ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'COMMUNITY_DISPLAY_MAX_COUNT');
+
+
+ $profile = $request->getAttribute('target_user_info_row');
+
+ // ²èÁü¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹¤òÀßÄê
+ $profile['image_url'] = ACSUser::get_image_url($user_community_id);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¤ÎÀßÄê
+ $friends_row_array = $request->getAttribute('friends_row_array');
+ $friends_row_array_num = count($friends_row_array);
+ $friends_row_array = array_slice($friends_row_array, 0, $my_friends_display_max);
+ foreach ($friends_row_array as $index => $friends_row) {
+ $friends_row_array[$index]['top_page_url'] =
+ $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $friends_row['user_community_id'];
+ $friends_row_array[$index]['image_url'] = ACSUser::get_image_url($friends_row['user_community_id'], 'thumb');
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¿Í¿ô
+ $friends_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($friends_row['user_community_id']);
+ }
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤ÎÀßÄê
+ $community_row_array = $request->getAttribute('community_row_array');
+ $community_row_array_num = count($community_row_array);
+ $community_list = array();
+ $array_count = 0;
+ foreach ($community_row_array as $index => $community_row) {
+ $community_data['community_name'] = $community_row['community_name'];
+ $community_data['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
+ $community_data['image_url'] = ACSCommunity::get_image_url($community_row['community_id'], 'thumb');
+ $community_data['community_member_num'] = ACSCommunity::get_community_member_num($community_row['community_id']);
+
+ // ¥á¥ó¥Ð¤Ç¤Ê¤¤Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ïɽ¼¨Âоݤˤ·¤Ê¤¤
+ if ($community_row['contents_row_array']['self']['open_level_name'] == ACSMsg::get_mst('open_level_master','D03') && !$community_row['is_community_member']) {
+ continue;
+ }
+
+ array_push($community_list, $community_data);
+
+ $array_count++;
+ if ($array_count == $my_community_display_max) {
+ break;
+ }
+ }
+
+ // ¥á¥Ë¥å¡¼ÀßÄê
+ $menu = array();
+ $menu['diary_url'] = $this->getControllerPath("User", 'Diary') . '&id=' . $user_community_id;
+ $menu['folder_url'] = $this->getControllerPath("User", 'Folder') . '&id=' . $user_community_id;
+
+ if ($acs_user_info_row['user_community_id'] == $profile['user_community_id'] && !$acs_user_info_row['is_ldap_user']) {
+ $menu['change_password_url'] = $this->getControllerPath("User", 'ChangePassword') . '&id=' . $user_community_id;
+ }
+
+ if ($acs_user_info_row['user_community_id'] == $profile['user_community_id']) {
+ $menu['image_change_url'] = $this->getControllerPath("User", 'EditProfileImage') . '&id=' . $user_community_id;
+ }
+
+
+ // ¥Þ¥¤¥×¥í¥Õ¥£¡¼¥ëÊÔ½¸ ¼«Ê¬¼«¿È
+ if($acs_user_info_row['user_id'] == $profile['user_id']){
+ $profile_edit_url = $this->getControllerPath("User", 'EditProfile') . '&id=' . $user_community_id;
+ $profile_view_url = $this->getControllerPath("User", 'ProfileCheck') . '&id=' . $user_community_id .'&view_mode=0';
+ // ÂÀ׳ÎǧURL
+ $footprint_url = $this->getControllerPath("User", 'FootprintCheck') .
+ '&id=' . $user_community_id;
+
+ // ¥Ç¥¶¥¤¥óÁªÂòURL
+ $select_design_url = $this->getControllerPath("User", 'SelectDesign') .
+ '&id=' . $user_community_id;
+
+ // ¥Ð¥Ã¥¯¥¢¥Ã¥×URL
+ $backup_url = $this->getControllerPath("User", 'ContentsBackup') .
+ '&id=' . $user_community_id;
+
+ // ¥á¥Ã¥»¡¼¥¸URLÄɲÃ
+ $message_box_url = $this->getControllerPath("User", 'MessageBox') .
+ '&id=' . $user_community_id;
+
+ $peruse_mode = 1;
+ }else {
+ if (ACSUser::is_friends($acs_user_info_row['user_community_id'], $user_community_id)) {
+ $peruse_mode = 2; // ͧ¿Í
+ }
+ }
+
+ // ¥á¥Ã¥»¡¼¥¸¤òÁ÷¤ë¥Ü¥¿¥óÄɲÃ
+ $message_btn_url = $this->getControllerPath("User", 'Message') . '&id=' . $user_community_id;
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $is_friends = ACSUser::is_friends($acs_user_info_row['user_community_id'], $target_user_info_row['user_community_id']);
+ if (!$is_friends && $acs_user_info_row['is_acs_user']) {
+ $add_myfriends_url = $this->getControllerPath("User", 'AddFriends') . '&id=' . $user_community_id;
+ }
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º°ìÍ÷URL
+ $friends_list_url = $this->getControllerPath("User", 'FriendsList') . '&id=' . $user_community_id;
+
+ if ($acs_user_info_row['user_id'] == $target_user_info_row['user_id']) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×°ìÍ÷URL
+ $friends_group_list_url = $this->getControllerPath("User", 'FriendsGroupList') . '&id=' . $target_user_info_row['user_community_id'];
+ }
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£URL
+ $community_list_url = $this->getControllerPath("User", 'CommunityList') . '&id=' . $user_community_id;
+
+ if ($is_self_page) {
+ // ÂÔµ¡: ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ
+ $waiting_for_add_friends_row_array = $request->getAttribute('waiting_for_add_friends_row_array');
+ $waiting_for_add_friends_row_array_num = count($waiting_for_add_friends_row_array);
+ if ($waiting_for_add_friends_row_array_num) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á URL
+ $waiting_list_for_add_friends_url = $this->getControllerPath("User", 'WaitingList')
+ . '&id=' . $user_community_id
+ . '&waiting_type_code=' . $waiting_for_add_friends_row_array[0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_add_friends_row_array[0]['waiting_status_code'];
+ }
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã
+ $waiting_for_join_community_row_array_array = $request->getAttribute('waiting_for_join_community_row_array_array');
+ foreach ($waiting_for_join_community_row_array_array as $index => $waiting_for_join_community_row_array) {
+ $waiting_for_join_community_row_array_array[$index]['waiting_for_join_community_row_array_num'] = count($waiting_for_join_community_row_array['waiting_row_array']);
+ $waiting_for_join_community_row_array_array[$index]['waiting_list_for_join_community_url'] = $this->getControllerPath('Community', 'WaitingList')
+ . '&community_id=' . $waiting_for_join_community_row_array['community_row']['community_id']
+ . '&waiting_type_code=' . $waiting_for_join_community_row_array['waiting_row_array'][0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_join_community_row_array['waiting_row_array'][0]['waiting_status_code'];
+ }
+
+ // ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $waiting_for_parent_community_link_row_array_array = $request->getAttribute('waiting_for_parent_community_link_row_array_array');
+ foreach ($waiting_for_parent_community_link_row_array_array as $index => $waiting_for_parent_community_link_row_array) {
+ $waiting_for_parent_community_link_row_array_array[$index]['waiting_for_parent_community_link_row_array_num'] = count($waiting_for_parent_community_link_row_array['waiting_row_array']);
+ $waiting_for_parent_community_link_row_array_array[$index]['waiting_list_for_parent_community_link_url'] = $this->getControllerPath('Community', 'WaitingList')
+ . '&community_id=' . $waiting_for_parent_community_link_row_array['community_row']['community_id']
+ . '&waiting_type_code=' . $waiting_for_parent_community_link_row_array['waiting_row_array'][0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_parent_community_link_row_array['waiting_row_array'][0]['waiting_status_code'];
+ }
+ // ÂÔµ¡: ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $waiting_for_sub_community_link_row_array_array = $request->getAttribute('waiting_for_sub_community_link_row_array_array');
+ foreach ($waiting_for_sub_community_link_row_array_array as $index => $waiting_for_sub_community_link_row_array) {
+ $waiting_for_sub_community_link_row_array_array[$index]['waiting_for_sub_community_link_row_array_num'] = count($waiting_for_sub_community_link_row_array['waiting_row_array']);
+ $waiting_for_sub_community_link_row_array_array[$index]['waiting_list_for_sub_community_link_url'] = $this->getControllerPath('Community', 'WaitingList')
+ . '&community_id=' . $waiting_for_sub_community_link_row_array['community_row']['community_id']
+ . '&waiting_type_code=' . $waiting_for_sub_community_link_row_array['waiting_row_array'][0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_sub_community_link_row_array['waiting_row_array'][0]['waiting_status_code'];
+ }
+
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ
+ $waiting_for_invite_to_community_row_array = $request->getAttribute('waiting_for_invite_to_community_row_array');
+ $waiting_for_invite_to_community_row_array_num = count($waiting_for_invite_to_community_row_array);
+ if ($waiting_for_invite_to_community_row_array_num) {
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲà ¾µÇ§ÂÔ¤Á URL
+ $waiting_list_for_invite_to_community_url = $this->getControllerPath("User", 'WaitingList')
+ . '&id=' . $user_community_id
+ . '&waiting_type_code=' . $waiting_for_invite_to_community_row_array[0]['waiting_type_code']
+ . '&waiting_status_code=' . $waiting_for_invite_to_community_row_array[0]['waiting_status_code'];
+ }
+
+ // ¿·Ã女¥á¥ó¥È
+ $new_comment_diary_row_array = $request->getAttribute('new_comment_diary_row_array');
+ $new_comment_diary_row_array_num = count($new_comment_diary_row_array);
+ if ($new_comment_diary_row_array_num) {
+ // ¿·Ã女¥á¥ó¥È¤¬¤¢¤ë¥À¥¤¥¢¥ê¡¼¤ÎÃæ¤Ç¡¢ºÇ¤â¥À¥¤¥¢¥ê¡¼¤ÎÅê¹ÆÆü»þ¤¬¸Å¤¤Êª([0])¤Îdiary_id¤ò°ú¿ô¤ËÉÕ¤±¤ë
+ $new_comment_diary_url = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_comment_diary_row_array[0]['community_id'] . '&diary_id=' . $new_comment_diary_row_array[0]['diary_id'];
+ }
+
+ // ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+ $system_announce_row_array = $request->getAttribute('system_announce_row_array');
+ foreach ($system_announce_row_array as $index => $system_announce_row) {
+ $system_announce_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['post_date'], false, false, false);
+ }
+
+ // ¥á¥Ã¥»¡¼¥¸µ¡Ç½
+ $new_message_row_array = $request->getAttribute('new_message_row_array');
+ $new_message_row_array_num = count($new_message_row_array);
+ if ($new_message_row_array_num == 1) {
+ // ¿·Ãå¥á¥Ã¥»¡¼¥¸¤¬°ì·ï¡¡¥á¥Ã¥»¡¼¥¸¾ÜºÙURL
+ $new_message_url = $this->getControllerPath("User", 'MessageShow') . '&id=' . $user_community_id. '&message_id=' . $new_message_row_array[0]['message_id'];
+ } else if ($new_message_row_array_num > 1) {
+ // ¿·Ãå¥á¥Ã¥»¡¼¥¸¤¬Ê£¿ô·ï¡¡¼õ¿®È¢URL
+ $new_message_url = $this->getControllerPath("User", 'MessageBox') . '&id=' . $user_community_id;
+ }
+ // ¥á¥Ã¥»¡¼¥¸µ¡Ç½
+ }
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $profile['contents_row_array']['user_name'] = ACSAccessControl::get_valid_row_for_user_community($acs_user_info_row, $role_array, $profile['contents_row_array']['user_name']);
+ $profile['contents_row_array']['birthplace'] = ACSAccessControl::get_valid_row_for_user_community($acs_user_info_row, $role_array, $profile['contents_row_array']['birthplace']);
+ $profile['contents_row_array']['birthday'] = ACSAccessControl::get_valid_row_for_user_community($acs_user_info_row, $role_array, $profile['contents_row_array']['birthday']);
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥ºÉ½¼¨²ÄÈÝ
+ if (!ACSAccessControl::is_valid_user_for_user_community($acs_user_info_row, $role_array, $profile['contents_row_array']['friends_list'])) {
+ $friends_row_array = array();
+ $friends_list_url = '';
+ //$friends_row_array_num = 0;
+ }
+ //----------------------//
+
+
+ // set
+ $this->setAttribute('profile', $profile);
+ $this->setAttribute('peruse_mode', $peruse_mode); //¥×¥í¥Õ¥£¡¼¥ë¼«¸Ê¾Ò²ðʬ´ôÍÑ
+ $this->setAttribute('friends_row_array', $friends_row_array);
+ $this->setAttribute('friends_row_array_num', $friends_row_array_num);
+ $this->setAttribute('community_list', $community_list);
+ $this->setAttribute('community_row_array_num', $community_row_array_num);
+ $this->setAttribute('last_login', $last_login);
+
+ // ¥á¥Ë¥å¡¼
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('profile_edit_url', $profile_edit_url);
+ $this->setAttribute('profile_view_url', $profile_view_url);
+ $this->setAttribute('footprint_url', $footprint_url);
+ $this->setAttribute('backup_url', $backup_url);
+ $this->setAttribute('select_design_url', $select_design_url);
+ $this->setAttribute('add_myfriends_url', $add_myfriends_url);
+ $this->setAttribute('friends_list_url', $friends_list_url);
+ $this->setAttribute('friends_group_list_url', $friends_group_list_url);
+ $this->setAttribute('manage_friends_url', $manage_friends_url);
+ $this->setAttribute('community_list_url', $community_list_url);
+ $this->setAttribute('message_btn_url', $message_btn_url);
+ $this->setAttribute('message_box_url', $message_box_url);
+
+ // ÂÔµ¡: ¥Þ¥¤¥Õ¥ì¥ó¥ºÄɲÃ
+ $this->setAttribute('waiting_for_add_friends_row_array_num', $waiting_for_add_friends_row_array_num);
+ $this->setAttribute('waiting_list_for_add_friends_url', $waiting_list_for_add_friends_url);
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£»²²Ã
+ $this->setAttribute('waiting_for_join_community_row_array_array', $waiting_for_join_community_row_array_array);
+ // ÂÔµ¡: ¿Æ¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $this->setAttribute('waiting_for_parent_community_link_row_array_array', $waiting_for_parent_community_link_row_array_array);
+ // ÂÔµ¡: ¥µ¥Ö¥³¥ß¥å¥Ë¥Æ¥£ÄɲÃ
+ $this->setAttribute('waiting_for_sub_community_link_row_array_array', $waiting_for_sub_community_link_row_array_array);
+ // ÂÔµ¡: ¥³¥ß¥å¥Ë¥Æ¥£¾·ÂÔ
+ $this->setAttribute('waiting_for_invite_to_community_row_array_num', $waiting_for_invite_to_community_row_array_num);
+ $this->setAttribute('waiting_list_for_invite_to_community_url', $waiting_list_for_invite_to_community_url);
+
+ // ¿·Ã女¥á¥ó¥È¤Î¤¢¤ë¥Þ¥¤¥À¥¤¥¢¥ê¡¼
+ $this->setAttribute('new_comment_diary_row_array_num', $new_comment_diary_row_array_num);
+ $this->setAttribute('new_comment_diary_url', $new_comment_diary_url);
+
+ // ¥·¥¹¥Æ¥à¤«¤é¤Î¤ªÃΤ餻
+ $this->setAttribute('system_announce_row_array', $system_announce_row_array);
+
+ // ¥á¥Ã¥»¡¼¥¸µ¡Ç½
+ $this->setAttribute('new_message_row_array_num', $new_message_row_array_num);
+ $this->setAttribute('new_message_url', $new_message_url);
+
+ // ¥¤¥ó¥é¥¤¥óɽ¼¨
+ /*--------------- ¿·Ãå¾ðÊó¤ò¼èÆÀ ---------------*/
+ // ¸½ºß¤Î¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¼èÆÀ
+ $renderMode = $controller->getRenderMode();
+
+ //¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¾å½ñ¤ ¡Ê²èÌ̽ÐÎϤò¥ª¥Õ¤Ë¤·¤Æ¤ë¡Ë
+ $controller->setRenderMode(View::RENDER_VAR);
+ $this->inlineFlg = true;
+
+ // ¥Õ¥©¥ï¡¼¥É¦¤ÇȽÃǤ¹¤ë
+ $request->setAttribute("inline_mode", "1");
+ $request->setAttribute("id", $user_community_id);
+
+ // ¿·ÃåÆüµ
+ $controller->forward("User", "NewDiary");
+ $this->setAttribute("NewDiary", $request->getAttribute("NewDiary"));
+
+ // Æüµ¥³¥á¥ó¥ÈÍúÎò
+ $controller->forward("User", "DiaryCommentHistory");
+ $this->setAttribute("DiaryCommentHistory", $request->getAttribute("DiaryCommentHistory"));
+
+ // ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£·Ç¼¨ÈÄ¿·Ãåµ»ö
+ $controller->forward("User", "NewBBS");
+ $this->setAttribute("NewBBS", $request->getAttribute("NewBBS"));
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¡§¥Õ¥©¥ë¥À¿·Ãå¾ðÊó
+ $controller->forward("User", "NewFriendsFolder");
+ $this->setAttribute("NewFriendsFolder", $request->getAttribute("NewFriendsFolder"));
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¡§¥Õ¥©¥ë¥À¿·Ãå¾ðÊó
+ $controller->forward("User", "NewCommunityFolder");
+ $this->setAttribute("NewCommunityFolder", $request->getAttribute("NewCommunityFolder"));
+
+ // CSS
+ $this->setAttribute('include_css_array', $this->css_file_array);
+
+ // ¥ì¥ó¥À¡¼¥â¡¼¥É¤ò¸µ¤ËÌ᤹
+ $controller->setRenderMode($renderMode);
+ $this->inlineFlg = false;
+
+ /*----------------------------------------------*/
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Index.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: LoginView::INPUT.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+class LoginInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $user_info_row_array = $request->getAttribute('user_info_row_array');
+ $form = $request->getAttribute('form');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
+
+ // ²Ã¹©
+ if (is_array($user_info_row_array)) {
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ $user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath('User', 'Login');
+ // set
+ $this->setAttribute('form', $form);
+ $this->setAttribute('user_info_row_array', $user_info_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', "User");
+ $this->setAttribute('action', "Login");
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+
+ /* ²èÌÌID¤ò¥»¥Ã¥È¤¹¤ë */
+ $this->setScreenId("0001");
+ $this->setTemplate('LoginInput.tpl.php');
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥í¥°¥¢¥¦¥È¡Ê¥¨¥é¡¼¡Ë½èÍý
+ *
+ * @author y-yuki
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+class LogoutErrorView extends BaseView
+{
+ function execute() {
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Logout.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥í¥°¥¢¥¦¥È½èÍý
+ *
+ * @author y-yuki
+ * @version $Revision: 1.1 $ $Date: 2008/03/24 07:09:27 $
+ */
+class LogoutSuccessView extends BaseView
+{
+ function execute() {
+
+ $this->setAttribute('logout_complete', "1");
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Logout.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * MessageBoxView::INPUT
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageBoxView::INPUT.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class MessageBoxInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $message_row_array = $request->getAttribute('message_row_array');
+ $move_id = $request->getAttribute('move_id');
+
+ // ¥á¥Ë¥å¡¼ÉôURL
+ $menu['receiv_box_url'] = $this->getControllerPath("User", 'MessageBox') . '&id=' . $target_user_info_row['user_community_id'];
+ $menu['send_box_url'] = $this->getControllerPath("User", 'MessageBox') . '&id=' . $target_user_info_row['user_community_id'] .'&move_id=2';
+
+ // ²Ã¹©
+ foreach ($message_row_array as $index => $message_row) {
+ // Åê¹ÆÆü»þ
+ $message_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($message_row['post_date']);
+ // Åê¹ÆÆü»þ (¾Êά·Ï: M/D)
+ $message_row_array[$index]['short_post_date'] = ACSLib::convert_pg_date_to_str($message_row['post_date']);
+ //$message_row_array[$index]['short_post_date'] = gmdate("n/j", strtotime($message_row['post_date']) + 9*60*60);
+ if($move_id == 2){
+ // Á÷¿®ºÑ¥á¥Ã¥»¡¼¥¸¾ÜºÙ¥Ú¡¼¥¸URL
+ $message_row_array[$index]['message_show_url'] = $this->getControllerPath("User", 'MessageShow') . '&id=' . $target_user_info_row['community_id'] . '&message_id=' . $message_row['message_id'] . '&move_id=2';
+ // ºï½ü²èÌÌURL
+ $message_delete_url = $this->getControllerPath("User", 'DeleteMessage') . '&id=' . $target_user_info_row['user_community_id'] . '&action_type=confirm&move_id=2';
+ } else {
+ // ¼õ¿®¥á¥Ã¥»¡¼¥¸¾ÜºÙ¥Ú¡¼¥¸URL
+ $message_row_array[$index]['message_show_url'] = $this->getControllerPath("User", 'MessageShow') . '&id=' . $target_user_info_row['community_id'] . '&message_id=' . $message_row['message_id'];
+ // ºï½ü²èÌÌURL
+ $message_delete_url = $this->getControllerPath("User", 'DeleteMessage') . '&id=' . $target_user_info_row['user_community_id']. '&action_type=confirm' ;
+ }
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $message_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('message_row_array', $message_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('move_id', $move_id);
+ $this->setAttribute('message_delete_url', $message_delete_url);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('MessageBox.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * MessageView::INPUT
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageView::INPUT.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class MessageInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+
+ //¾¿Í¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_Message_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+
+ //³Îǧ²èÌ̥ܥ¿¥ó¤Ç³Îǧ²èÌ̤òɽ¼¨
+ $action_url = $this->getControllerPath('User', 'MessagePre') . '&id=' . $target_user_info_row['user_community_id'] ."&move_id=1";
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('link_page_url', $link_page_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('Message.tpl.php');
+
+ // ³Îǧ²èÌ̤«¤é¥¥ã¥ó¥»¥ë¥Ü¥¿¥ó¤ÇÌá¤Ã¤Æ¤¤¿¤È¤¤Î¤ß¤Î½èÍý
+ if($request->getParameter('move_id') == 3){
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+ // ¥á¥Ã¥»¡¼¥¸ÊÖ¿®¥Ü¥¿¥ó²¡²¼»þ¤Î½èÍý
+ if($request->getParameter('move_id') == 4){
+ $message_id = $request->getParameter('message_id');
+ //°úÍÑ¥á¥Ã¥»¡¼¥¸¼èÆÀ
+ $message_row = ACSMessage::get_message_row($message_id);
+ $form['subject'] = $message_row['subject'];
+ $form['body'] = $message_row['body'];
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('move_id', $request->getParameter('move_id'));
+ }
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸¡¡ÅÐÏ¿¡¦É½¼¨µ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥á¥Ã¥»¡¼¥¸¾ðÊó¡¡³Îǧ¡¦ÅÐÏ¿²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * @author nakau
+ * @since PHP 4.0
+ * @version $Revision: 1.1 $ $Date: 2008/03/06
+ */
+// $Id: MessagePreView_confirm.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class MessagePreSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ //get
+ // ÂоݤȤʤëUserID¤ò¼èÆÀ
+ $user_id = $request->getParameter('id');
+ //¥æ¡¼¥¶ÆþÎϾðÊó
+ $form = $user->getAttribute('new_form_obj');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ // form action
+ $action_url = $this->getControllerPath('User', 'MessagePre') .'&id=' .$user_id .'&move_id=2';
+ $back_url = $this->getControllerPath('User', 'Message') . '&id=' .$user_id .'&move_id=3';
+
+ // Message¥È¥Ã¥×¥Ú¡¼¥¸¤ÎURL
+ $message_top_page_url = $this->getControllerPath('User', 'Message') . '&id=' .$user_id;
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('message_top_page_url', $message_top_page_url);
+ $this->setAttribute('form', $form);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('MessagePre.tpl.php');
+
+ $this->setScreenId("0001");
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥á¥Ã¥»¡¼¥¸¾ÜºÙɽ¼¨µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * MessageShowView::INPUT
+ * @author nakau
+ * @since PHP 4.0
+ */
+// $Id: MessageShowView::INPUT.class.php,v 1.1 2008/03/24 07:09:27 y-yuki Exp $
+
+
+class MessageShowInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $message_row = $request->getAttribute('message_row');
+
+ // ²Ã¹©
+ //Á÷¿®¼Ô¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_message_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $message_row['user_id'];
+
+ // Åê¹ÆÆü»þ
+ $message_row['post_date'] = ACSLib::convert_pg_date_to_str($message_row['post_date']);
+
+ // ¥á¥Ë¥å¡¼ÉôURL
+ $menu['receiv_box_url'] = $this->getControllerPath('User', 'MessageBox') . '&id=' . $acs_user_info_row['user_community_id'];
+ $menu['send_box_url'] = $this->getControllerPath('User', 'MessageBox') . '&id=' . $acs_user_info_row['user_community_id'] .'&move_id=2';
+
+ // ÊÖ¿®¥Ü¥¿¥óURL
+ $message_return_url = $this->getControllerPath('User', 'Message') . '&id=' . $message_row['user_id'].'&message_id='.$message_row['message_id'].'&move_id=4';
+
+ // set
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('message_row', $message_row);
+ $this->setAttribute('message_return_url', $message_return_url);
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('move_id', $request->getAttribute('move_id'));
+ $this->setAttribute('link_page_url', $link_page_url);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('MessageShow.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À °ÜÆ°ÀèÁªÂò
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/05/22 07:28:40 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class MoveFolderListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ $target_user_info = '&id=' . $target_user_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('User', 'MoveFolder');
+ $action_url .= $target_user_info;
+ $action_url .= $folder_info;
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('User', 'Folder');
+ $cancel_url .= $target_user_info;
+ $cancel_url .= $folder_info;
+
+ // °ÜÆ°ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // °ÜÆ°ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Õ¥©¥ë¥À¹½À®¼èÆÀ
+ $user_folder_tree_obj = $request->getAttribute('user_folder_tree');
+ $folder_tree = array();
+ $selected_folder_id_array = $request->getAttribute('selected_folder_id_array');
+ if (!$selected_folder_id_array) {
+ $selected_folder_id_array = array();
+ }
+ $this->make_folder_tree($user_folder_tree_obj, $folder_tree, $selected_folder_id_array);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('MoveFolderList.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // °ÜÆ°ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // °ÜÆ°ÀèÁªÂò»è
+ $this->setAttribute('folder_tree', $folder_tree);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+
+ function make_folder_tree ($root_folder_obj, &$_folder_tree, &$selected_folder_id_array, $tree_level = 0) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥ÀÄɲÃ
+ if ($tree_level == 0) {
+ $folder_row = array();
+ $folder_row['folder_id'] = $root_folder_obj->get_folder_id();
+ $folder_row['folder_name'] = $root_folder_obj->get_folder_name();
+ $folder_row['tree_level'] = $tree_level;
+ array_push($_folder_tree, $folder_row);
+ }
+
+ $sub_folder_obj_array = $root_folder_obj->get_sub_folder_obj_array();
+
+ foreach ($sub_folder_obj_array as $sub_folder_obj) {
+ $tree_level++;
+ $folder_row = array();
+
+ // ÁªÂò¤Ç¤¤Ê¤¤°ÜÆ°Àè¥Õ¥©¥ë¥À¤ÏÄɲ䷤ʤ¤
+ if (!in_array($sub_folder_obj->get_folder_id(), $selected_folder_id_array)) {
+ // row ÀßÄê
+ $folder_row['folder_id'] = $sub_folder_obj->get_folder_id();
+ $folder_row['folder_name'] = $sub_folder_obj->get_folder_name();
+ $folder_row['tree_level'] = $tree_level;
+
+ array_push($_folder_tree, $folder_row);
+
+ // ¤µ¤é¤Ë¥µ¥Ö¥Õ¥©¥ë¥À¤ò¸¡º÷¡ÊºÆµ¢¡Ë
+ $this->make_folder_tree($sub_folder_obj, $_folder_tree, $selected_folder_id_array, $tree_level);
+ }
+
+ // 1³¬Áؾå¤Î¸¡º÷¤ËÌá¤ë
+ $tree_level--;
+ }
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: NewBBSInputView.class.php,v 1.7 2007/03/01 09:01:46 w-ota Exp $
+
+class NewBBSInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_bbs_row_array = $request->getAttribute('new_bbs_row_array');
+
+ // ²Ã¹©
+ foreach ($new_bbs_row_array as $index => $new_bbs_row) {
+ $new_bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $new_bbs_row['community_id'] . '&bbs_id=' . $new_bbs_row['bbs_id'];
+ $new_bbs_row_array[$index]['is_unread'] = ACSLib::get_boolean($new_bbs_row['is_unread']);
+ }
+
+ // ·Ç¼¨ÈÄ¿·Ãåµ»öURL
+ $new_bbs_url = $this->getControllerPath(DEFAULT_MODULE, 'NewBBS') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // ɽ¼¨·ï¿ôÀ©¸æ //
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+ $new_bbs_row_array = array_slice($new_bbs_row_array, 0, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_bbs_row_array', $new_bbs_row_array);
+ $this->setAttribute('new_bbs_url', $new_bbs_url);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('NewBBS.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewBBS", $this->render());
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewBBSSuccessView.class.php,v 1.5 2007/03/01 09:01:46 w-ota Exp $
+
+class NewBBSSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_bbs_row_array = $request->getAttribute('new_bbs_row_array');
+
+ // ²Ã¹©
+ foreach ($new_bbs_row_array as $index => $new_bbs_row) {
+ $new_bbs_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $new_bbs_row['community_id'] . '&bbs_id=' . $new_bbs_row['bbs_id'];
+ $new_bbs_row_array[$index]['is_unread'] = ACSLib::get_boolean($new_bbs_row['is_unread']);
+ }
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $new_bbs_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_bbs_row_array', $new_bbs_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('NewBBS.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewCommunityFolderView_inline.class.php,v 1.4 2007/03/01 09:01:46 w-ota Exp $
+
+/**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó(inline)
+ *
+ * @author z-satosi
+ * @version $Revision: 1.4 $
+ */
+class NewCommunityFolderInputView extends BaseView
+{
+ var $community_name_buffer;
+
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_community_id = $request->getAttribute('user_community_id');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_folder_row_array = $request->getAttribute('new_folder_row_array');
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥Õ¥©¥ë¥À¿·Ãå°ìÍ÷
+ $new_folder_url =
+ $this->getControllerPath(DEFAULT_MODULE, 'NewCommunityFolder') .
+ '&id=' . $user_community_id;
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_folder_row_array', $new_folder_row_array);
+ $this->setAttribute('new_folder_url', $new_folder_url);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('NewCommunityFolder.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewCommunityFolder", $this->render());
+
+ return parent::execute();
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewCommunityFolderView::SUCCESS.class.php,v 1.2 2007/03/01 09:01:46 w-ota Exp $
+
+/**
+ * ¥Þ¥¤¥³¥ß¥å¥Ë¥Æ¥£¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó(success)
+ *
+ * @author z-satosi
+ * @version $Revision: 1.2 $
+ */
+class NewCommunityFolderSuccessView extends BaseView
+{
+ var $community_name_buffer;
+
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_community_id = $request->getAttribute('user_community_id');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_folder_row_array = $request->getAttribute('new_folder_row_array');
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $paging_info = $this->getPagingInfo($controller, $request, $new_folder_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_folder_row_array', $new_folder_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('NewCommunityFolder.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewDiaryView_inline.class.php,v 1.9 2007/03/01 09:01:46 w-ota Exp $
+
+class NewDiaryInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_diary_row_array = $request->getAttribute('new_diary_row_array');
+
+ // ²Ã¹©
+ foreach ($new_diary_row_array as $index => $new_diary_row) {
+ $new_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_diary_row['community_id'] . '&diary_id=' . $new_diary_row['diary_id'];
+ $new_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($new_diary_row['is_unread']);
+ }
+
+ // ¿·ÃåÆüµ°ìÍ÷URL
+ $new_diary_url = $this->getControllerPath(DEFAULT_MODULE, 'NewDiary') . '&id=' . $target_user_info_row['user_community_id'];
+
+ // ɽ¼¨·ï¿ôÀ©¸æ
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $_new_diary_row_array = array();
+ foreach ($new_diary_row_array as $index => $new_diary_row) {
+ if (count($_new_diary_row_array) >= $display_count) {
+ break;
+ }
+
+ // diary_trusted_community
+ if ($new_diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $new_diary_row_array[$index]['trusted_community_row_array']
+ = $new_diary_row['trusted_community_row_array']
+ = ACSDiary::get_diary_trusted_community_row_array($new_diary_row['diary_id']);
+ }
+
+ $diary_target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($new_diary_row['community_id']);
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $diary_target_user_info_row);
+ $new_diary_row = ACSAccessControl::get_valid_row_for_user_community($acs_user_info_row, $role_array, $new_diary_row);
+ if ($new_diary_row) {
+ array_push($_new_diary_row_array, $new_diary_row);
+ }
+ }
+ $new_diary_row_array = $_new_diary_row_array;
+ //----------------------//
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_diary_row_array', $new_diary_row_array);
+ $this->setAttribute('new_diary_url', $new_diary_url);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('NewDiary.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewDiary", $this->render());
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewDiaryView::SUCCESS.class.php,v 1.6 2007/03/01 09:01:46 w-ota Exp $
+
+class NewDiarySuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $new_diary_row_array = $request->getAttribute('new_diary_row_array');
+
+ // ²Ã¹©
+ foreach ($new_diary_row_array as $index => $new_diary_row) {
+ $new_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_diary_row['community_id'] . '&diary_id=' . $new_diary_row['diary_id'];
+ $new_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($new_diary_row['is_unread']);
+ }
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ foreach ($new_diary_row_array as $index => $new_diary_row) {
+ // diary_trusted_community
+ if ($new_diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ $new_diary_row_array[$index]['trusted_community_row_array']
+ = $new_diary_row['trusted_community_row_array']
+ = ACSDiary::get_diary_trusted_community_row_array($new_diary_row['diary_id']);
+ }
+
+ // ´Ê°×½èÍý:
+ $diary_target_user_info_row['user_community_id'] = $new_diary_row['community_id'];
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $diary_target_user_info_row);
+ $new_diary_row = ACSAccessControl::get_valid_row_for_user_community($acs_user_info_row, $role_array, $new_diary_row);
+ if (!$new_diary_row) {
+ unset($new_diary_row_array[$index]);
+ }
+ }
+ //----------------------//
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $new_diary_row_array, $display_count);
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('new_diary_row_array', $new_diary_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('NewDiary.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewFriendsFolderView_inline.class.php,v 1.4 2007/03/01 09:01:46 w-ota Exp $
+
+/**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó(inline)
+ *
+ * @author z-satosi
+ * @version $Revision: 1.4 $
+ */
+class NewFriendsFolderInputView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_community_id = $request->getAttribute('user_community_id');
+ $new_file_row_array = $request->getAttribute('new_file_row_array');
+
+ // ¥Þ¥¤¥Õ¥ì¥ó¥º¥Õ¥©¥ë¥À¿·Ãå°ìÍ÷
+ $new_folder_url =
+ $this->getControllerPath(DEFAULT_MODULE, 'NewFriendsFolder') .
+ '&id=' . $user_community_id;
+ // set
+ $this->setAttribute('new_file_row_array', $new_file_row_array);
+ $this->setAttribute('new_folder_url', $new_folder_url);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setTemplate('NewFriendsFolder.tpl.php');
+ $context->getController()->setRenderMode(View::RENDER_VAR);
+ $request->setAttribute("NewFriendsFolder", $this->render());
+
+ return parent::execute();
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+// $Id: NewFriendsFolderView::SUCCESS.class.php,v 1.2 2007/03/01 09:01:46 w-ota Exp $
+
+/**
+ * ¥Þ¥¤¥Õ¥ì¥ó¥º¤Î¥Õ¥©¥ë¥À¿·Ãå¾ðÊó(success)
+ *
+ * @author z-satosi
+ * @version $Revision: 1.2 $
+ */
+class NewFriendsFolderSuccessView extends BaseView
+{
+ function execute() {
+
+ $context = &$this->getContext();
+ $user = $context->getUser();
+ $request = $context->getRequest();
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_community_id = $request->getAttribute('user_community_id');
+ $new_file_row_array = $request->getAttribute('new_file_row_array');
+ $display_count = ACSSystemConfig::get_keyword_value(
+ ACSMsg::get_mst('system_config_group','D02'),
+ 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $paging_info = $this->getPagingInfo($controller, $request, $new_file_row_array, $display_count);
+
+ // set
+ $this->setAttribute('new_file_row_array', $new_file_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+ $this->setAttribute('get_days', $request->getAttribute('get_days'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('NewFriendsFolder.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥×¥í¥Õ¥£¡¼¥ë³Îǧ²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * ViewProfile_confirm
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: ProfileCheckView_confirm.class.php,v 1.5 2006/11/20 08:44:28 w-ota Exp $
+
+class ProfileCheckSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ $user_community_id = $request->getAttribute('user_community_id');
+
+ $profile = $request->getAttribute('target_user_info_row');
+
+ //¥æ¡¼¥¶¤¬ÁªÂò¤·¤¿±ÜÍ÷¼Ô
+ $view_mode = $request->getAttribute('view_mode');
+
+ // ¸ø³«¥ì¥Ù¥ë¥Þ¥¹¥¿
+ $open_level_master_array = ACSDB::get_master_array('open_level');
+
+ //ɽ¼¨ÂоݤȤʤë¾ðÊó¤ò¼è¼ÎÁªÈ´¤¹¤ë
+ $view_at = array();
+ switch($view_mode){
+ case 1:
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D01'), $open_level_master_array));
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D02'), $open_level_master_array));
+ break;
+ case 2:
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D01'), $open_level_master_array));
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D02'), $open_level_master_array));
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D05'), $open_level_master_array));
+ break;
+ default:
+ array_push($view_at,array_search(ACSMsg::get_mst('open_level_master','D01'), $open_level_master_array));
+ }
+ //°ìÈ̸ø³« 01 ¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³« 02 ¤¹¤Ù¤Æ¤Îͧ¿Í¤Ë¸ø³« 05
+ $profile['contents_row_array']['birthplace'] = ACSAccessControl::set_not_open($profile['contents_row_array']['birthplace'],$view_at);
+ $profile['contents_row_array']['user_name'] = ACSAccessControl::set_not_open($profile['contents_row_array']['user_name'],$view_at);
+ $profile['contents_row_array']['birthday'] = ACSAccessControl::set_not_open($profile['contents_row_array']['birthday'],$view_at);
+
+ //top
+ $top_page_url = $this->getControllerPath('User', 'Index') . '&id=' . $user_community_id;
+
+ // ¥á¥Ë¥å¡¼ÀßÄê
+ $menu = array();
+ //°ìÈ̸ø³« 01
+ $menu['all_url'] = $this->getControllerPath('User', 'ProfileCheck') . '&id=' . $user_community_id . '&view_mode=0';
+ //¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ë¸ø³« 02
+ $menu['login_url'] = $this->getControllerPath('User', 'ProfileCheck') . '&id=' . $user_community_id . '&view_mode=1';
+ //¤¹¤Ù¤Æ¤Îͧ¿Í¤Ë¸ø³« 05
+ $menu['friend_url'] = $this->getControllerPath('User', 'ProfileCheck') . '&id=' . $user_community_id . '&view_mode=2';
+
+ // set
+ $this->setAttribute('profile', $profile);
+
+ // ¥á¥Ë¥å¡¼
+ $this->setAttribute('menu', $menu);
+ $this->setAttribute('top_page_url', $top_page_url);
+ $this->setAttribute('view_mode',$view_mode);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('ProfileCheck.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥æ¡¼¥¶¥Õ¥©¥ë¥À¤Î¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£É½¼¨
+ *
+ * @author kuwayama
+ * @version $Revision: 1.4 $ $Date: 2006/11/20 08:44:28 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class PutCommunitySuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+ $target_user_community_info_row['community_name'] = $target_user_info_row['community_name'];
+ $target_user_community_info_row['top_page_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
+ $target_user_community_info_row['top_page_url'] .= '&id=' . $target_user_community_id;
+
+ // ÂоݤΥե©¥ë¥À
+ $folder_obj = $user_folder_obj->get_folder_obj();
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ $is_self_page = false;
+ if ($target_user_community_id == $acs_user_info_row['user_community_id']) {
+ $is_self_page = true;
+ }
+
+ // ÂоݤΥե©¥ë¥À¾ðÊó
+ $folder_info_row = array();
+ $folder_info_row['folder_name'] = $folder_obj->get_folder_name();
+ $folder_info_row['folder_url'] = $this->getControllerPath('User', 'Folder');
+ $folder_info_row['folder_url'] .= '&id=' . $target_user_community_id;
+
+ // ¥Õ¥©¥ë¥À¤ØÌá¤ëURL
+ $back_url = $folder_info_row['folder_url'];
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+ $org_put_community_row_array = $folder_obj->get_put_community_row_array();
+
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¤òɽ¼¨ÍѤ˲ù©
+ $put_community_row_array = array(); // ¥Æ¥ó¥×¥ì¡¼¥È¤ËÅϤ¹¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£¾ðÊó
+ foreach ($org_put_community_row_array as $put_community_row) {
+ // ¥á¥ó¥Ð¤Ç¤Ê¤¤Èó¸ø³«¥³¥ß¥å¥Ë¥Æ¥£¤Ïɽ¼¨Âоݤˤ·¤Ê¤¤
+ $_is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $put_community_row['community_id']);
+ if ($put_community_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D03') && !$_is_community_member) {
+ continue;
+ }
+
+ $_put_community_row = array();
+
+ // ----------------------
+ // ¥×¥Ã¥ÈÀ襳¥ß¥å¥Ë¥Æ¥£²Ã¹©
+ // ¥³¥ß¥å¥Ë¥Æ¥£Ì¾
+ $_put_community_row['community_name'] = $put_community_row['community_name'];
+
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $_put_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
+ $_put_community_row['top_page_url'] .= '&community_id=' . $put_community_row['community_id'];
+
+
+ // ----------------------
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À²Ã¹©
+
+ // ACSFolder ¥¤¥ó¥¹¥¿¥ó¥¹À¸À®
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À¤Î¥Ñ¥¹¾ðÊó¤ò¼èÆÀ¤¹¤ë¤¿¤á
+ $put_folder_obj = new ACSCommunityFolder($put_community_row['community_id'], $acs_user_info_row, $put_community_row['put_community_folder_id']);
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥À̾¡Ê¥³¥ß¥å¥Ë¥Æ¥£¥Õ¥©¥ë¥À¤Î¥Ñ¥¹¡Ë
+ $put_folder_path = $put_folder_obj->get_path_folder_obj_array();
+ $folder_path_str = "";
+ foreach ($put_folder_path as $_folder_obj) {
+ // ¥ë¡¼¥È¥Õ¥©¥ë¥À¤ÏÄɲ䷤ʤ¤
+ if ($_folder_obj->is_root_folder) {
+ continue;
+ }
+
+ $folder_path_str .= $_folder_obj->get_folder_name();
+ $folder_path_str .= "/";
+ }
+
+ $_put_community_row['put_folder_name'] = $folder_path_str;
+
+ // ¥×¥Ã¥ÈÀè¥Õ¥©¥ë¥ÀURL
+ $put_folder_url = $this->getControllerPath('Community', 'Folder');
+ $put_folder_url .= '&community_id=' . $put_community_row['community_id'];
+ $put_folder_url .= '&folder_id=' . $put_community_row['put_community_folder_id'];
+ $_put_community_row['put_folder_url'] = $put_folder_url;
+
+ array_push($put_community_row_array, $_put_community_row);
+ }
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('PutCommunity.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_community_info_row', $target_user_community_info_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('folder_info_row', $folder_info_row);
+ $this->setAttribute('back_url', $back_url);
+ $this->setAttribute('put_community_row_array', $put_community_row_array);
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹°ìÍ÷
+ *
+ * @author kuwayama
+ * @version $Revision: 1.5 $ $Date: 2006/05/22 07:28:40 $
+ */
+require_once(ACS_CLASS_DIR . 'ACSCommunityFolder.class.php');
+class RenameFolderListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_user_community_id = $target_user_info_row['user_community_id'];
+
+ $target_user_info = '&id=' . $target_user_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('User', 'RenameFolder');
+ $action_url .= $target_user_info;
+ $action_url .= $folder_info;
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('User', 'Folder');
+ $cancel_url .= $target_user_info;
+ $cancel_url .= $folder_info;
+
+ // ̾Á°Êѹ¹ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // ̾Á°Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('RenameFolderList.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // ̾Á°Êѹ¹ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>
--- /dev/null
+<?php
+// $Id: RestoreHistoryFileView_confirm.class.php,v 1.1 2006/05/18 05:18:34 w-ota Exp $
+
+class RestoreHistoryFileSuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+ $file_info_row = $request->getAttribute('file_info_row');
+ $file_history_row = $request->getAttribute('file_history_row');
+
+ // ²Ã¹©
+ $file_history_row['display_file_name'] = $file_info_row['display_file_name'];
+ $file_history_row['file_size_kb'] = number_format(ceil($file_history_row['file_size'] / 1024)) . " KB";
+ $file_history_row['download_history_file_url'] = $this->getControllerPath('User', 'DownloadHistoryFile')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id . '&file_id=' . $file_id . '&file_history_id=' . $file_history_row['file_history_id'];
+
+ $action_url = $this->getControllerPath('User', 'RestoreHistoryFile')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id . '&file_id=' . $file_id. '&file_history_id=' . $file_history_row['file_history_id'];
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail')
+ . '&id=' . $target_user_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_user_community_folder_id;
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('file_detail_url', $file_detail_url);
+ $this->setAttribute('file_history_row', $file_history_row);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('RestoreHistoryFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¸¡º÷µ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * SearchDiaryView::INPUT
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchDiaryView::INPUT.class.php,v 1.4 2006/03/23 01:37:38 kuwayama Exp $
+
+
+class SearchDiaryInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $acs_user_info_row['user_community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤ÎÆüµ¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $target_user_info_row['community_id'];
+
+ //¸¡º÷²èÌÌurl
+ $link_page_url['search_diary_url'] = SCRIPT_PATH;
+ // get ¤Ç¥µ¥Ö¥ß¥Ã¥È¤¹¤ë¤¿¤á¤Î¡¢Á«°ÜÀè¾ðÊó
+ $module = 'User';
+ $action = 'SearchResultDiary';
+ $id = $target_user_info_row['community_id'];
+ $move_id = '1';
+
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ //----------------------//
+
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+
+ $this->setAttribute('module',$module);
+ $this->setAttribute('action',$action);
+ $this->setAttribute('id',$id);
+ $this->setAttribute('move_id',$move_id);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchDiary.tpl.php');
+
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchFolderView::INPUT.class.php,v 1.2 2006/03/21 08:25:10 w-ota Exp $
+
+class SearchFolderInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $form = $request->getAttribute('form');
+ $folder_row_array = $request->getAttribute('folder_row_array');
+ $file_info_row_array = $request->getAttribute('file_info_row_array');
+
+ // ²Ã¹©
+ if (is_array($folder_row_array)) {
+ foreach ($folder_row_array as $index => $folder_row) {
+ $folder_row_array[$index]['path'] = '/' . implode('/', $folder_row['path_array']);
+ $folder_row_array[$index]['folder_url'] = $this->getControllerPath('User', 'Folder')
+ . '&id=' . $target_user_info_row['user_community_id']
+ . '&folder_id=' . $folder_row['folder_id'];
+ }
+ }
+
+ if (is_array($file_info_row_array)) {
+ foreach ($file_info_row_array as $index => $file_info_row) {
+ $file_info_row_array[$index]['path'] = '/' . implode('/', $file_info_row['path_array']);
+ $file_info_row_array[$index]['download_file_url'] = $this->getControllerPath('User', 'DownloadFile')
+ . '&id=' . $target_user_info_row['user_community_id']
+ . '&file_id=' . $file_info_row['file_id']
+ . '&folder_id=' . $file_info_row['folder_id'];
+ }
+ }
+
+ // Ëܿͤ«¤É¤¦¤«
+ $is_self_page = ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id'])
+ ? true : false;
+
+ // URL
+ $folder_url = $this->getControllerPath('User', 'Folder') . '&id=' . $target_user_info_row['user_community_id'];
+ $action_url = $this->getControllerPath();
+
+
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ if (is_array($folder_row_array)) {
+ $folder_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $folder_row_array);
+ }
+ if (is_array($file_info_row_array)) {
+ $file_info_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $file_info_row_array);
+ $_file_info_row_array = array();
+
+ // ËܿͰʳ°¤Ïis_root_folder¤Î¥Õ¥¡¥¤¥ë¤ò±ÜÍ÷¤Ç¤¤Ê¤¤
+ foreach ($file_info_row_array as $index => $file_info_row) {
+ if (!$is_self_page && $file_info_row['is_root_folder']) {
+ continue;
+ } else {
+ array_push($_file_info_row_array, $file_info_row);
+ }
+ }
+ $file_info_row_array = $_file_info_row_array;
+ }
+ //----------------------//
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchFolder.tpl.php');
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+
+ $this->setAttribute('form', $form);
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_info_row_array', $file_info_row_array);
+
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('folder_url', $folder_url);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'User');
+ $this->setAttribute('action', 'SearchFolder');
+
+ return parent::execute();
+ }
+}
+
+?>
+
+
--- /dev/null
+<?php
+/**
+ * ¥À¥¤¥¢¥ê¡¼¸¡º÷·ë²Ìµ¡Ç½¡¡View¥¯¥é¥¹
+ * @package acs/webapp/modules/User/views
+ * SearchResultDiaryView::SUCCESS
+ * @author akitsu
+ * @since PHP 4.0
+ */
+// $Id: SearchResultDiaryView::SUCCESS.class.php,v 1.9 2007/03/28 02:51:48 w-ota Exp $
+
+
+class SearchResultDiarySuccessView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $target_user_info_row = $request->getAttribute('target_user_info_row');
+ $diary_row_array = $request->getAttribute('diary_row_array_result');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+ $friends_group_row_array = $request->getAttribute('friends_group_row_array');
+ $err_str = $request->getAttribute('err_str');
+ $form_pre = $request->getAttribute('form_pre');
+
+ // ¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $acs_user_info_row['user_community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤Î¥È¥Ã¥×¥Ú¡¼¥¸URL
+ $link_page_url['else_user_top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $target_user_info_row['community_id'];
+ //¾¿Í¤ÎÆüµ¤ò±ÜÍ÷¤·¤Æ¤¤¤ë¾ì¹ç¤ÎÆüµ¥Ú¡¼¥¸URL
+ $link_page_url['else_user_diary_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Diary') . '&id=' . $target_user_info_row['community_id'];
+
+ //¸¡º÷²èÌÌurl
+ $link_page_url['search_diary_url'] = SCRIPT_PATH;
+ // get ¤Ç¥µ¥Ö¥ß¥Ã¥È¤¹¤ë¤¿¤á¤Î¡¢Á«°ÜÀè¾ðÊó
+ $module = 'User';
+ $action = 'SearchResultDiary';
+ $id = $target_user_info_row['community_id'];
+ $move_id = '2';
+
+ // ²Ã¹©
+ if($diary_row_array){
+ foreach ($diary_row_array as $index => $diary_row) {
+ // ¥æ¡¼¥¶²èÁüURL
+ $diary_row_array[$index]['image_url'] = ACSUser::get_image_url($diary_row['community_id'],'thumb');
+ //¥æ¡¼¥¶¥Ú¡¼¥¸
+ $user_row = ACSUser::get_user_profile_row($diary_row['community_id']);
+ $diary_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $diary_row['community_id'];
+ $diary_row_array[$index]['community_name'] = $user_row['community_name'];
+ // Åê¹ÆÆü»þ
+ $diary_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($diary_row['post_date']);
+ // ¥³¥á¥ó¥È¥Ú¡¼¥¸URL
+ $diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath('User', 'DiaryComment') . '&id=' . $diary_row['community_id'] . '&diary_id=' . $diary_row['diary_id'];
+
+ // ¿®ÍêºÑ¤ß¥³¥ß¥å¥Ë¥Æ¥£(¥Þ¥¤¥Õ¥ì¥ó¥º¥°¥ë¡¼¥×)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«
+ if ($diary_row['open_level_name'] == ACSMsg::get_mst('open_level_master','D05')) {
+ if (count($diary_row['trusted_community_row_array'])
+ && $diary_row['trusted_community_row_array'][0]['community_type_name'] == ACSMsg::get_mst('community_type_master','D20')) {
+ $diary_row_array[$index]['trusted_community_flag'] = 0;
+ } else {
+ $diary_row_array[$index]['trusted_community_flag'] = 1;
+ }
+ }
+ }
+ //---- ¥¢¥¯¥»¥¹À©¸æ ----//
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $target_user_info_row);
+ $diary_row_array = ACSAccessControl::get_valid_row_array_for_user_community($acs_user_info_row, $role_array, $diary_row_array);
+ //ÆÃÊÌ::Á´·ï¸¡º÷¤Î¾ì¹ç¡¡¥¿¡¼¥²¥Ã¥È¤¬¼«Ê¬¤Î¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤ò²óÈò
+ $diary_row_array_result = array();
+ foreach ($diary_row_array as $index => $diary_row) {
+ $diary_target_user_info_row = ACSUser::get_user_info_row_by_user_community_id($diary_row['community_id']);
+ $role_array = ACSAccessControl::get_user_community_role_array($acs_user_info_row, $diary_target_user_info_row);
+ $is_valid_user = ACSAccessControl::is_valid_user_for_community($acs_user_info_row, $role_array, $diary_row);
+ if($is_valid_user){ //¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ë
+ array_push($diary_row_array_result, $diary_row);
+ }
+ }
+ //----------------------//
+ }
+ // ËܿͤΥڡ¼¥¸¤«¤É¤¦¤«
+ if ($target_user_info_row['user_community_id'] == $acs_user_info_row['user_community_id']) {
+ $is_self_page = 1;
+ } else {
+ $is_self_page = 0;
+ }
+
+ // set
+ $this->setAttribute('target_user_info_row', $target_user_info_row);
+ $this->setAttribute('diary_row_array_result', $diary_row_array_result);
+ $this->setAttribute('is_self_page', $is_self_page);
+ $this->setAttribute('link_page_url', $link_page_url);
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $this->setAttribute('err_str',$err_str);
+ $this->setAttribute('form_pre',$form_pre);
+
+ $this->setAttribute('module',$module);
+ $this->setAttribute('action',$action);
+ $this->setAttribute('id',$id);
+ $this->setAttribute('move_id',$move_id);
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchResultDiary.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SearchUserView::INPUT.class.php,v 1.6 2006/11/20 08:44:28 w-ota Exp $
+
+class SearchUserInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ // ¥æ¡¼¥¶¾ðÊó°ìÍ÷
+ $user_info_row_array = $request->getAttribute('user_info_row_array');
+ $form = $request->getAttribute('form');
+
+ // ¥Ú¡¼¥¸¥ó¥°ÀßÄê
+ $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group','D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
+ $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
+
+ // ²Ã¹©
+ if (is_array($user_info_row_array)) {
+ foreach ($user_info_row_array as $index => $user_info_row) {
+ $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
+ $user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
+ $user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
+ }
+ }
+
+ // URL
+ $action_url = $this->getControllerPath();
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SearchUser.tpl.php');
+
+ // set
+ $this->setAttribute('form', $form);
+ $this->setAttribute('user_info_row_array', $user_info_row_array);
+ $this->setAttribute('paging_info', $paging_info);
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('module', 'User');
+ $this->setAttribute('action', 'SearchUser');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+/**
+ * ¥Þ¥¤¥Ú¡¼¥¸µ¡Ç½¡¡View¥¯¥é¥¹
+ * ¥Ç¥¶¥¤¥óÁªÂò²èÌÌ
+ * @package acs/webapp/modules/User/views
+ * ViewSelectDesign_success
+ * @author teramoto
+ * @since PHP 4.0
+ */
+// $Id: SelectDesignView::INPUT.class.php,v 1.1 2007/03/27 02:12:45 w-ota Exp $
+
+class SelectDesignInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row =& $user->getAttribute('acs_user_info_row');
+ $select_design_row_array =& $request->getAttribute('select_design_row_array');
+ $user_community_id = $request->getAttribute('user_community_id');
+ $style_url = $request->getAttribute('style_url');
+
+ // top
+ $top_page_url = $this->getControllerPath('User', 'Index') .
+ '&id=' . $user_community_id;
+
+ // set
+ $this->setAttribute('style_url', $style_url);
+ $this->setAttribute('acs_user_info_row', $acs_user_info_row);
+ $this->setAttribute('top_page_url', $top_page_url);
+ $this->setAttribute('select_design_row_array', $select_design_row_array);
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+ $this->setAttribute('selection_css', $request->getAttribute('selection_css'));
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SelectDesign.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: SetOpenLevelForProfileView::SUCCESS.class.php,v 1.1 2005/12/22 08:53:45 w-ota Exp $
+
+class SetOpenLevelForProfileSuccessView extends SimpleBaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $contents_key = $request->getAttribute('contents_key');
+ $contents_type_code = $request->getAttribute('contents_type_code');
+ $open_level_master_row_array = $request->getAttribute('open_level_master_row_array');
+ $friends_group_row_array = $request->getAttribute('friends_group_row_array');
+
+ // ¥³¥ó¥Æ¥ó¥Ä¼ïÊÌ¥Þ¥¹¥¿
+ $contents_type_master_array = ACSDB::get_master_array('contents_type');
+ $contents_type_name = $contents_type_master_array[$contents_type_code];
+
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('SetOpenLevelForProfileView.tpl.php');
+
+ // set
+ $this->setAttribute('open_level_master_row_array', $open_level_master_row_array);
+ $this->setAttribute('friends_group_row_array', $friends_group_row_array);
+ $this->setAttribute('contents_key', $contents_key);
+ $this->setAttribute('contents_type_name', $contents_type_name);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UpdateFileView::INPUT.class.php,v 1.2 2006/05/26 08:44:07 w-ota Exp $
+
+class UpdateFileInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+ $file_id = $request->getParameter('file_id');
+
+ $action_url = $this->getControllerPath('User', 'UpdateFile')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id . '&file_id=' . $file_id;
+
+ // ¥Õ¥¡¥¤¥ë¾ÜºÙ¾ðÊóURL
+ $file_detail_url = $this->getControllerPath('User', 'FileDetail')
+ . '&id=' . $target_user_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_user_community_folder_id;
+
+ // set
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('file_detail_url', $file_detail_url);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('UpdateFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: UploadFileView::INPUT.class.php,v 1.1 2006/05/11 04:44:17 w-ota Exp $
+
+class UploadFileInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+ $target_user_community_id = $request->getParameter('id');
+ $target_user_community_folder_id = $request->getParameter('folder_id');
+
+
+ $action_url = $this->getControllerPath('User', 'UploadFile')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id;
+
+ // ¥Õ¥©¥ë¥ÀURL Ä̾ïɽ¼¨
+ $folder_url = $this->getControllerPath('User', 'Folder')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id;
+
+ // ¥Õ¥©¥ë¥ÀURL ¥°¥ë¡¼¥×ɽ¼¨
+ $folder_group_mode_url = $this->getControllerPath('User', 'Folder')
+ . '&id=' . $target_user_community_id . '&folder_id=' . $target_user_community_folder_id . '&mode=group';
+
+ // set
+ $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
+ $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
+ $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
+
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('folder_url', $folder_url);
+ $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
+
+ $this->setScreenId("0001");
+ $this->setTemplate('UploadFile.tpl.php');
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: WaitingListView::INPUT.class.php,v 1.7 2006/11/20 08:44:28 w-ota Exp $
+
+class WaitingListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+
+ $acs_user_info_row = $user->getAttribute('acs_user_info_row');
+
+ // get
+ $waiting_type_name = $request->getAttribute('waiting_type_name');
+ $waiting_row_array = $request->getAttribute('waiting_row_array');
+
+ // ²Ã¹©
+ foreach ($waiting_row_array as $index => $waiting_row) {
+ $waiting_row_array[$index]['entry_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
+ $waiting_row_array[$index]['complete_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
+
+ if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D10')) {
+ $waiting_row_array[$index]['image_url'] = ACSUser::get_image_url($waiting_row['waiting_community_id'], 'thumb');
+ $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['waiting_community_id'];
+ } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master','D30')) {
+ $waiting_row_array[$index]['image_url'] = ACSCommunity::get_image_url($waiting_row['waiting_community_id'], 'thumb');
+ $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $waiting_row['waiting_community_id'];
+ $waiting_row_array[$index]['entry_user_info_row']['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['entry_user_info_row']['user_community_id'];
+ // ¥³¥ß¥å¥Ë¥Æ¥£¥×¥í¥Õ¥£¡¼¥ë
+ $waiting_row_array[$index]['waiting_community_row'] = ACSCommunity::get_community_profile_row($waiting_row['waiting_community_id']);
+ }
+
+ $waiting_row_array[$index]['action_url'] = $this->getControllerPath('User', 'WaitingList') . '&id=' . $acs_user_info_row['user_community_id'] . '&waiting_id=' . $waiting_row['waiting_id'];
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('WaitingList.tpl.php');
+
+ // set
+ $this->setAttribute('waiting_type_name', $waiting_type_name);
+ $this->setAttribute('waiting_row_array', $waiting_row_array);
+
+ return parent::execute();
+ }
+}
+
+?>
--- /dev/null
+<?php
+// $Id: acs_base.tpl.php(for mojavi3),v 1.0 2009/01/23 14:20:00 y-yuki Exp $
+// $Id: acs_super_base.tpl.php,v 1.4 2006/11/20 08:44:29 w-ota Exp $
+?>
+<html>
+<head>
+<meta http-equiv="Content-Script-Type" content="text/javascript">
+<meta http-equiv="Content-Type" content="text/html; charset=EUC_JP">
+<?php
+// CSS
+foreach ($this->_tpl_vars['include_css_array'] as $include_css) {
+ echo '<link rel="stylesheet" href="' . $include_css . '" type="text/css">' . "\n";
+}
+
+// JavaScript
+foreach ($this->_tpl_vars['include_script_array'] as $include_script) {
+ echo '<script src="' . $include_script . '" type="text/javascript"></script>' . "\n";
+}
+
+$topimgFolder = 'img/';
+
+$topimgAry = null;
+$topimgbAry = null;
+
+
+if (ACSMsg::get_lang(FALSE)=='en') {
+
+ $topimgAry = array($topimgFolder . 'mn01e.gif',
+ $topimgFolder . 'mn02e.gif',
+ $topimgFolder . 'mn03e.gif',
+ $topimgFolder . 'mn04e.gif',
+ $topimgFolder . 'mn05e.gif',
+ $topimgFolder . 'mn06e.gif');
+ $topimgbAry = array($topimgFolder. 'mn01eb.gif',
+ $topimgFolder . 'mn02eb.gif',
+ $topimgFolder . 'mn03eb.gif',
+ $topimgFolder . 'mn04eb.gif',
+ $topimgFolder . 'mn05eb.gif',
+ $topimgFolder . 'mn06eb.gif');
+} else {
+
+ $topimgAry = array($topimgFolder . 'mn01.gif',
+ $topimgFolder . 'mn02.gif',
+ $topimgFolder . 'mn03.gif',
+ $topimgFolder . 'mn04.gif',
+ $topimgFolder . 'mn05.gif',
+ $topimgFolder . 'mn06.gif');
+ $topimgbAry = array($topimgFolder . 'mn01b.gif',
+ $topimgFolder . 'mn02b.gif',
+ $topimgFolder . 'mn03b.gif',
+ $topimgFolder . 'mn04b.gif',
+ $topimgFolder . 'mn05b.gif',
+ $topimgFolder . 'mn06b.gif');
+}
+
+?>
+<title><?= ACSMsg::get_msg('templates','acs_base.tpl.php','M001') ?></title>
+
+</head>
+<body onLoad="MM_preloadImages('<?=$topimgbAry[0] ?>','<?=$topimgbAry[1] ?>','<?=$topimgbAry[2] ?>','<?=$topimgbAry[3] ?>','<?=$topimgbAry[4] ?>','<?=$topimgbAry[5] ?>')">
+
+<?php
+$logout_complete = $this->_tpl_vars['logout_complete'];
+?>
+
+<div align="center">
+<br>
+<?php
+if ($this->_tpl_vars['is_login_user'] && $logout_complete != 1) {
+ echo "<a href=\n" . $this->_tpl_vars['public_index_url'] . "\n>\n";
+} else {
+ echo "<a href=\n" . $this->_tpl_vars['public_index_url_not_login'] . "\n>\n";
+}
+?>
+<img style="border-style:none;" src="img/head.jpg" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M002') ?>" width="730" height="78">
+</a>
+
+<table width="730" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFCC33">
+<tr>
+<?php
+if (!$this->_tpl_vars['is_login_user']) {
+?>
+ <td><a href="<?= $this->_tpl_vars[login_url] ?>"><?= ACSMsg::get_msg('templates','acs_base.tpl.php','M003') ?></a></td>
+<?php
+}
+?>
+ <td align="right">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+<?php
+if ($this->_tpl_vars['is_login_user'] && $logout_complete != 1) {
+?>
+ <td><a href="./" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','<?=$topimgbAry[0] ?>',1)"><img src="<?=$topimgAry[0] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M009') ?>" name="Image2" width="70" height="16" hspace="2" border="0"></a></td>
+<?php
+}
+?>
+ <td><a href="<?= $this->_tpl_vars['community_menu_url'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','<?=$topimgbAry[1] ?>',1)"><img src="<?=$topimgAry[1] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M010') ?>" name="Image3" width="70" height="16" hspace="2" border="0"></a></td>
+ <td><a href="<?= $this->_tpl_vars['search_user_url'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','<?=$topimgbAry[2] ?>',1)"><img src="<?=$topimgAry[2] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M011') ?>" name="Image4" width="70" height="16" hspace="2" border=""></a></td>
+<?php
+if ($this->_tpl_vars['system_manage_menu_url']) {
+?>
+ <td><a href="<?= $this->_tpl_vars['system_manage_menu_url'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','<?=$topimgbAry[5] ?>',1)"><img src="<?=$topimgAry[5] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M014') ?>" name="Image7" width="70" height="16" hspace="2" border="0"></a></td>
+<?
+}
+?>
+ <td><a href="<?= $this->_tpl_vars['faq_url'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','<?=$topimgbAry[3] ?>',1)"><img src="<?=$topimgAry[3] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M012') ?>" name="Image5" width="70" height="16" hspace="2" border="0"></a></td>
+<?php
+// add Logout process
+if ($this->_tpl_vars['is_login_user'] && $logout_complete != 1) {
+?>
+ <td><a href="<?= $this->_tpl_vars['logout_url'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','<?=$topimgbAry[4] ?>',1)"><img src="<?=$topimgAry[4] ?>" alt="<?= ACSMsg::get_msg('templates','acs_base.tpl.php','M013') ?>" name="Image8" width="70" height="16" hspace="2" border="0"></a></td>
+<?php
+}
+?>
+ </tr>
+ </table>
+ </td>
+</tr>
+</table>
+
+<table width="730" border="0" cellspacing="0" cellpadding="8">
+<tr>
+ <td>
+<?php
+echo ACSMsg::get_tag_replace(ACSMsg::get_msg('templates','acs_base.tpl.php', 'WELCOME'),
+ array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['acs_user_info_row']['user_name'])));
+?>
+ </td>
+ <td align="right">
+<?php
+if (defined('ACS_LANG_LIST')) {
+ $langs_array = ACSMsg::get_lang_list_array();
+ foreach ($langs_array as $lang => $lang_name) {
+ if (ACSMsg::get_lang(FALSE) != $lang) {
+ $url = ACSMsg::get_lang_url($lang);
+ printf(' <a href="%s">%s</a>', $url, $lang_name);
+ }
+ }
+}
+?>
+ </td>
+</tr>
+</table>
+
+<table width="730" border="0" cellspacing="0" cellpadding="0" id="main_window">
+<tr>
+ <td id="topleft"><img src="img/waku_blank.gif" width="12" height="20"></td>
+ <td width="706" id="over"> </td>
+ <td id="topright"><img src="img/waku_blank.gif" width="12" height="20"></td>
+</tr>
+<tr>
+ <td width="12" id="left"> </td>
+ <td width="706" style="padding:10px;">
+ <?php echo $this->_tpl_vars['content']; ?>
+ </td>
+ <td width="12" id="right"> </td>
+</tr>
+<tr>
+ <td id="underleft"><img src="img/waku_blank.gif" width="12" height="20"></td>
+ <td width="706" id="under"> </td>
+ <td id="underright"><img src="img/waku_blank.gif" width="12" height="20"></td>
+</tr>
+</table>
+
+<br>
+<font color="#666666">Copyright(C) Academic Community System All Rights Reserved.</font></div>
+<br>
+
+</body>
+</html>
--- /dev/null
+<?php
+// $Id: acs_base.tpl.php(for mojavi3),v 1.0 2009/01/23 14:20:00 y-yuki Exp $
+// $Id: acs_super_base.tpl.php,v 1.4 2006/11/20 08:44:29 w-ota Exp $
+?>
+<html>
+<head>
+<meta http-equiv="Content-Script-Type" content="text/javascript">
+<meta http-equiv="Content-Type" content="text/html; charset=EUC_JP">
+<?php
+// CSS
+foreach ($this->_tpl_vars['include_css_array'] as $include_css) {
+ echo '<link rel="stylesheet" href="' . $include_css . '" type="text/css">' . "\n";
+}
+
+// JavaScript
+foreach ($this->_tpl_vars['include_script_array'] as $include_script) {
+ echo '<script src="' . $include_script . '" type="text/javascript"></script>' . "\n";
+}
+?>
+<title><?= ACSMsg::get_msg('templates','acs_base.tpl.php','M001') ?></title>
+
+</head>
+<body onLoad="MM_preloadImages('img/mn01b.gif','img/mn02b.gif','img/mn03b.gif','img/mn04b.gif','img/mn05b.gif')">
+<div class="main">
+ <?php echo $this->_tpl_vars['content']; ?>
+</div>
+</body>
+</html>