ここの情報は古いです。ご理解頂いた上でお取り扱いください。

ChangeLog_develop: OpenPNE_2_5_2_to_2_5_3.patch

File OpenPNE_2_5_2_to_2_5_3.patch, 139.6 KB (added by takanashi, 11 years ago)
  • setup/sql/update/update02-for2.3.3-alter_table_biz_shisetsu_add_info.sql

     
     1ALTER TABLE `biz_shisetsu` ADD `info` TEXT NOT NULL;
     2 No newline at end of file
  • setup/sql/update/update01-for2.5.2.3-add_index.sql

     
     1ALTER TABLE c_diary ADD INDEX c_member_id_r_datetime_public_flag(c_member_id, r_datetime, public_flag);
     2ALTER TABLE c_commu ADD INDEX c_commu_category_id_r_datetime(c_commu_category_id, r_datetime);
     3 No newline at end of file
  • setup/sql/update/update11-for2.3.4-mail_queue.sql

     
    1 #
    2 # `mail_queue`
    3 #
    4 
    5 CREATE TABLE mail_queue (
    6   id bigint(20) NOT NULL default '0',
    7   create_time datetime NOT NULL default '0000-00-00 00:00:00',
    8   time_to_send datetime NOT NULL default '0000-00-00 00:00:00',
    9   sent_time datetime default NULL,
    10   id_user bigint(20) NOT NULL default '0',
    11   ip varchar(20) NOT NULL default 'unknown',
    12   sender varchar(50) NOT NULL default '',
    13   recipient varchar(50) NOT NULL default '',
    14   headers text NOT NULL,
    15   body longtext NOT NULL,
    16   try_sent tinyint(4) NOT NULL default '0',
    17   delete_after_send tinyint(1) NOT NULL default '1',
    18   PRIMARY KEY  (id),
    19   KEY id (id),
    20   KEY time_to_send (time_to_send),
    21   KEY id_user (id_user)
    22 );
    23 
    24 #
    25 # `mail_queue_seq`
    26 #
    27 
    28 CREATE TABLE mail_queue_seq (
    29   id int(10) unsigned NOT NULL auto_increment,
    30   PRIMARY KEY  (id)
    31 );
    32 
    33 #
    34 # Data for `mail_queue_seq`
    35 #
    36 
    37 INSERT INTO mail_queue_seq (id) VALUES (1);
    38  No newline at end of file
  • setup/sql/update/update10-for2.3.4-add_receive.sql

     
    1 ALTER TABLE c_message add `image_filename_1` text NOT NULL;
    2 ALTER TABLE c_message add `image_filename_2` text NOT NULL;
    3 ALTER TABLE c_message add `image_filename_3` text NOT NULL;
    4  No newline at end of file
  • setup/sql/update/update06-for2.3.3-alter_table_c_sns_config.sql

     
    1 ALTER TABLE `c_sns_config` CHANGE `c_sns_config_id` `c_sns_config_id` INT( 11 ) NOT NULL AUTO_INCREMENT;
    2  No newline at end of file
  • setup/sql/update/update03-for2.3.2-create_option_tables-mysql40.sql

     
    1 CREATE TABLE `c_session` (
    2   `c_session_id` int(11) NOT NULL auto_increment,
    3   `sess_name` varchar(64) NOT NULL default '',
    4   `sess_id` varchar(32) NOT NULL default '',
    5   `sess_time` int(11) NOT NULL default '0',
    6   `sess_data` text NOT NULL,
    7   PRIMARY KEY  (`c_session_id`),
    8   UNIQUE KEY `sess_name` (`sess_name`,`sess_id`)
    9 ) TYPE=MyISAM;
    10 CREATE TABLE `c_tmp_image` (
    11   `c_tmp_image_id` int(11) NOT NULL auto_increment,
    12   `filename` text NOT NULL,
    13   `bin` longblob NOT NULL,
    14   `r_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
    15   `type` text,
    16   PRIMARY KEY  (`c_tmp_image_id`),
    17   KEY `filename` (`filename`(100))
    18 ) TYPE=MyISAM;
  • setup/sql/update/update03-for2.3.2-create_option_tables-mysql41.sql

     
    1 CREATE TABLE `c_session` (
    2   `c_session_id` int(11) NOT NULL auto_increment,
    3   `sess_name` varchar(64) NOT NULL default '',
    4   `sess_id` varchar(32) NOT NULL default '',
    5   `sess_time` int(11) NOT NULL default '0',
    6   `sess_data` text NOT NULL,
    7   PRIMARY KEY  (`c_session_id`),
    8   UNIQUE KEY `sess_name` (`sess_name`,`sess_id`)
    9 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    10 CREATE TABLE `c_tmp_image` (
    11   `c_tmp_image_id` int(11) NOT NULL auto_increment,
    12   `filename` text NOT NULL,
    13   `bin` longblob NOT NULL,
    14   `r_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
    15   `type` text,
    16   PRIMARY KEY  (`c_tmp_image_id`),
    17   KEY `filename` (`filename`(100))
    18 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  • setup/sql/update/update08-for2.3.4-alter_table_c_sns_config.sql

     
    1 ALTER TABLE `c_sns_config`
    2 ADD `bg_11` TEXT NOT NULL,
    3 ADD `bg_12` TEXT NOT NULL,
    4 ADD `bg_13` TEXT NOT NULL ,
    5 ADD `caption` varchar(100)  NOT NULL,
    6 ADD `symbol` TEXT NOT NULL;
    7 
    8 UPDATE `c_sns_config` SET
    9 bg_11 = 'C1C6CF',bg_12 = 'FFFFFF',bg_13 = 'E9EAF0',caption = '戻す',symbol='E9EAF0'
    10 WHERE c_sns_config_id=1;
    11 
    12 INSERT INTO `c_sns_config` VALUES
    13 (2,'red',    'FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','DCAA9D','FFFFFF','DCAA9D','DCAA9D','FFFFFF','FFFFFF','DCAA9D','E5A6A6','FFFFFF','FAE1DB','赤','E66161'),
    14 (3,'yellow', 'FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','E9DC90','FFFFFF','E9DC90','E9DC90','FFFFFF','FFFFFF','E9DC90','F2D299','FFFFFF','FFF9D6','黄色','FFDE1E'),
    15 (4,'green',  'FFFFFF','AEDC9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','AEDC9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','AEDC9D','FFFFFF','FFFFFF','AEDC9D','FFFFFF','AEDC9D','AEDC9D','FFFFFF','FFFFFF','AEDC9D','C5E5A6','FFFFFF','E3FADB','緑','6FDD46'),
    16 (5,'gold',   'FFFFFF','C6C4B7','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C6C4B7','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C6C4B7','FFFFFF','FFFFFF','C6C4B7','FFFFFF','C6C4B7','C6C4B7','FFFFFF','FFFFFF','C6C4B7','CFCAC1','FFFFFF','F0EFE9','黄金','DEC079'),
    17 (6,'water',  'FFFFFF','95CEEA','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','95CEEA','FFFFFF','FFFFFF','FFFFFF','FFFFFF','95CEEA','FFFFFF','FFFFFF','95CEEA','FFFFFF','95CEEA','95CEEA','FFFFFF','FFFFFF','95CEEA','9BE6F0','FFFFFF','D6F2FF','水色','2BD1E7'),
    18 (7,'purple', 'FFFFFF','C29EE3','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C29EE3','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C29EE3','FFFFFF','FFFFFF','C29EE3','FFFFFF','C29EE3','C29EE3','FFFFFF','FFFFFF','C29EE3','BCA7EC','FFFFFF','EEDCFE','紫','8A1EEA'),
    19 (8,'default','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','B7B9C6','FFFFFF','B7B9C6','B7B9C6','FFFFFF','FFFFFF','B7B9C6','C1C6CF','FFFFFF','E9EAF0','初期設定','E9EAF0');
  • setup/sql/update/update09-for2.3.4-add_message_image.sql

     
    1 ALTER TABLE c_commu_member add `is_receive_message` int(11) NOT NULL default '1';
    2  No newline at end of file
  • setup/sql/update/update05-for2.3.3-add_column_c_diary_comment_image_filenames.sql

     
    1 ALTER TABLE `c_diary_comment` ADD `image_filename_1` TEXT NOT NULL ,
    2 ADD `image_filename_2` TEXT NOT NULL ,
    3 ADD `image_filename_3` TEXT NOT NULL ;
  • setup/sql/update/update15-for2.3.4-add_rollover_flag.sql

     
    1 INSERT INTO `c_admin_config` values (NULL,'OPENPNE_ENABLE_ROLLOVER',0);
    2  No newline at end of file
  • setup/sql/update/update14-for2.3.4-fix_c_diary_public_flag.sql

     
    1 ALTER TABLE `c_diary` CHANGE COLUMN `public_flag` `public_flag` enum('public','friend','private') NOT NULL default 'public';
    2 ALTER TABLE `c_member` CHANGE COLUMN `public_flag_diary` `public_flag_diary` enum('public','friend','private') NOT NULL default 'public';
    3 
    4 UPDATE c_diary INNER JOIN c_member USING (c_member_id) SET c_diary.public_flag = c_member.public_flag_diary ;
    5  No newline at end of file
  • setup/sql/update/update01-for2.3.1-add_index.sql

     
    1 ALTER TABLE c_diary ADD INDEX r_datetime_c_member_id (r_datetime, c_member_id);
    2 ALTER TABLE c_diary_comment ADD INDEX r_datetime_c_diary_id_c_member_id (r_datetime, c_diary_id, c_member_id);
    3 ALTER TABLE c_diary_comment ADD INDEX c_member_id_c_diary_id (c_member_id, c_diary_id);
  • setup/sql/update/update02-for2.3.1-add_index.sql

     
    1 ALTER TABLE c_commu ADD INDEX(r_datetime);
    2 ALTER TABLE c_commu_member ADD INDEX c_commu_id_r_datetime(c_commu_id, r_datetime);
    3 ALTER TABLE c_diary ADD INDEX c_member_id_r_date(c_member_id, r_date);
    4 ALTER TABLE c_diary ADD INDEX c_member_id_r_datetime(c_member_id, r_datetime);
    5 ALTER TABLE c_diary_comment ADD INDEX c_diary_id_r_datetime(c_diary_id, r_datetime);
    6 ALTER TABLE c_friend ADD INDEX c_member_id_from_c_friend_id(c_member_id_from, c_friend_id);
    7 ALTER TABLE c_friend ADD INDEX c_member_id_from_r_datetime(c_member_id_from, r_datetime);
    8 ALTER TABLE c_friend ADD INDEX c_member_id_to_r_datetime_intro(c_member_id_to, r_datetime_intro);
    9 ALTER TABLE c_member ADD INDEX birth_year_c_member_id(birth_year, c_member_id);
    10 ALTER TABLE c_member_profile ADD INDEX c_profile_option_id_c_member_id(c_profile_option_id, c_member_id);
    11 ALTER TABLE c_member_profile ADD INDEX public_flag_c_profile_option_id(public_flag, c_profile_option_id);
    12 ALTER TABLE c_message ADD INDEX c_member_id_from_r_datetime(c_member_id_from, r_datetime);
    13 ALTER TABLE c_message ADD INDEX c_member_id_to_r_datetime(c_member_id_to, r_datetime);
    14 ALTER TABLE c_profile_option ADD INDEX c_profile_id_sort_order(c_profile_id, sort_order);
    15 ALTER TABLE c_rss_cache ADD INDEX c_member_id_r_datetime(c_member_id, r_datetime);
  • setup/sql/update/update13-for2.3.4-add_index_map.sql

     
    1 ALTER TABLE `c_profile_pref` ADD INDEX `map_latitude_map_longitude` ( `map_latitude` , `map_longitude` ) ;
    2  No newline at end of file
  • setup/sql/update/update12-for2.3.4-add_public_flag_for_c_diary.sql

     
    1 ALTER TABLE `c_diary` ADD COLUMN `public_flag` enum('default', 'public','friend','close') NOT NULL default 'default';
    2 ALTER TABLE `c_member` CHANGE COLUMN `public_flag_diary` `public_flag_diary` enum('public','friend','close') NOT NULL default 'public';
    3  No newline at end of file
  • setup/sql/update/update04-for2.3.3-add_index.sql

     
    1 ALTER TABLE c_commu_category_parent ADD INDEX sort_order (sort_order);
    2 ALTER TABLE c_diary ADD INDEX r_datetime (r_datetime);
    3 ALTER TABLE c_diary_comment ADD INDEX c_member_id_r_datetime_c_diary_id (c_member_id, r_datetime, c_diary_id);
    4 ALTER TABLE c_profile_pref ADD INDEX sort_order (sort_order);
    5 ALTER TABLE c_rss_cache ADD INDEX r_datetime (r_datetime);
    6 ALTER TABLE c_rss_cache ADD INDEX r_datetime_c_member_id (r_datetime, c_member_id);
  • setup/sql/update/update07-for2.3.4-commu_map.sql

     
    1 ALTER TABLE `c_commu` ADD `is_display_map` BOOL NOT NULL,
    2 ADD `map_latitude` DOUBLE NOT NULL ,
    3 ADD `map_longitude` DOUBLE NOT NULL ,
    4 ADD `map_zoom` INT NOT NULL ;
    5 
    6 ALTER TABLE `c_profile_pref` ADD `map_latitude` DOUBLE NOT NULL ,
    7 ADD `map_longitude` DOUBLE NOT NULL ,
    8 ADD `map_zoom` INT NOT NULL ;
    9 
    10 UPDATE c_profile_pref SET map_latitude = '43.068612', map_longitude = '141.350768', map_zoom = 7 WHERE c_profile_pref_id = 1;
    11 UPDATE c_profile_pref SET map_latitude = '40.828668', map_longitude = '140.734738', map_zoom = 7 WHERE c_profile_pref_id = 2;
    12 UPDATE c_profile_pref SET map_latitude = '39.701547', map_longitude = '141.136599', map_zoom = 7 WHERE c_profile_pref_id = 3;
    13 UPDATE c_profile_pref SET map_latitude = '38.260027', map_longitude = '140.882158', map_zoom = 7 WHERE c_profile_pref_id = 4;
    14 UPDATE c_profile_pref SET map_latitude = '39.716748', map_longitude = '140.129931', map_zoom = 7 WHERE c_profile_pref_id = 5;
    15 UPDATE c_profile_pref SET map_latitude = '38.248098', map_longitude = '140.327253', map_zoom = 7 WHERE c_profile_pref_id = 6;
    16 UPDATE c_profile_pref SET map_latitude = '37.754123', map_longitude = '140.45968', map_zoom = 7 WHERE c_profile_pref_id = 7;
    17 UPDATE c_profile_pref SET map_latitude = '36.370911', map_longitude = '140.47676', map_zoom = 7 WHERE c_profile_pref_id = 8;
    18 UPDATE c_profile_pref SET map_latitude = '36.559246', map_longitude = '139.898389', map_zoom = 7 WHERE c_profile_pref_id = 9;
    19 UPDATE c_profile_pref SET map_latitude = '36.383399', map_longitude = '139.072833', map_zoom = 7 WHERE c_profile_pref_id = 10;
    20 UPDATE c_profile_pref SET map_latitude = '35.906439', map_longitude = '139.62405', map_zoom = 7 WHERE c_profile_pref_id = 11;
    21 UPDATE c_profile_pref SET map_latitude = '35.613425', map_longitude = '140.112837', map_zoom = 7 WHERE c_profile_pref_id = 12;
    22 UPDATE c_profile_pref SET map_latitude = '35.681391', map_longitude = '139.766103', map_zoom = 7 WHERE c_profile_pref_id = 13;
    23 UPDATE c_profile_pref SET map_latitude = '35.465941', map_longitude = '139.622847', map_zoom = 7 WHERE c_profile_pref_id = 14;
    24 UPDATE c_profile_pref SET map_latitude = '35.667054', map_longitude = '138.569015', map_zoom = 7 WHERE c_profile_pref_id = 19;
    25 UPDATE c_profile_pref SET map_latitude = '36.643307', map_longitude = '138.189101', map_zoom = 7 WHERE c_profile_pref_id = 20;
    26 UPDATE c_profile_pref SET map_latitude = '37.912299', map_longitude = '139.060869', map_zoom = 7 WHERE c_profile_pref_id = 15;
    27 UPDATE c_profile_pref SET map_latitude = '36.701384', map_longitude = '137.213091', map_zoom = 7 WHERE c_profile_pref_id = 16;
    28 UPDATE c_profile_pref SET map_latitude = '36.578117', map_longitude = '136.648166', map_zoom = 7 WHERE c_profile_pref_id = 17;
    29 UPDATE c_profile_pref SET map_latitude = '36.061479', map_longitude = '136.223261', map_zoom = 7 WHERE c_profile_pref_id = 18;
    30 UPDATE c_profile_pref SET map_latitude = '35.409967', map_longitude = '136.756324', map_zoom = 7 WHERE c_profile_pref_id = 21;
    31 UPDATE c_profile_pref SET map_latitude = '34.971629', map_longitude = '138.388579', map_zoom = 7 WHERE c_profile_pref_id = 22;
    32 UPDATE c_profile_pref SET map_latitude = '35.170694', map_longitude = '136.881637', map_zoom = 7 WHERE c_profile_pref_id = 23;
    33 UPDATE c_profile_pref SET map_latitude = '34.734418', map_longitude = '136.510581', map_zoom = 7 WHERE c_profile_pref_id = 24;
    34 UPDATE c_profile_pref SET map_latitude = '35.002997', map_longitude = '135.864651', map_zoom = 7 WHERE c_profile_pref_id = 25;
    35 UPDATE c_profile_pref SET map_latitude = '34.985705', map_longitude = '135.758228', map_zoom = 7 WHERE c_profile_pref_id = 26;
    36 UPDATE c_profile_pref SET map_latitude = '34.702398', map_longitude = '135.495188', map_zoom = 7 WHERE c_profile_pref_id = 27;
    37 UPDATE c_profile_pref SET map_latitude = '34.679453', map_longitude = '135.178221', map_zoom = 7 WHERE c_profile_pref_id = 28;
    38 UPDATE c_profile_pref SET map_latitude = '34.680482', map_longitude = '135.818935', map_zoom = 7 WHERE c_profile_pref_id = 29;
    39 UPDATE c_profile_pref SET map_latitude = '34.232436', map_longitude = '135.191454', map_zoom = 7 WHERE c_profile_pref_id = 30;
    40 UPDATE c_profile_pref SET map_latitude = '35.493953', map_longitude = '134.225901', map_zoom = 7 WHERE c_profile_pref_id = 31;
    41 UPDATE c_profile_pref SET map_latitude = '35.463947', map_longitude = '133.063871', map_zoom = 7 WHERE c_profile_pref_id = 32;
    42 UPDATE c_profile_pref SET map_latitude = '34.666572', map_longitude = '133.918552', map_zoom = 7 WHERE c_profile_pref_id = 33;
    43 UPDATE c_profile_pref SET map_latitude = '34.397446', map_longitude = '132.475593', map_zoom = 7 WHERE c_profile_pref_id = 34;
    44 UPDATE c_profile_pref SET map_latitude = '34.172649', map_longitude = '131.48061', map_zoom = 7 WHERE c_profile_pref_id = 35;
    45 UPDATE c_profile_pref SET map_latitude = '34.074572', map_longitude = '134.551391', map_zoom = 7 WHERE c_profile_pref_id = 36;
    46 UPDATE c_profile_pref SET map_latitude = '34.350754', map_longitude = '134.046821', map_zoom = 7 WHERE c_profile_pref_id = 37;
    47 UPDATE c_profile_pref SET map_latitude = '33.839954', map_longitude = '132.751149', map_zoom = 7 WHERE c_profile_pref_id = 38;
    48 UPDATE c_profile_pref SET map_latitude = '33.566758', map_longitude = '133.543522', map_zoom = 7 WHERE c_profile_pref_id = 39;
    49 UPDATE c_profile_pref SET map_latitude = '33.590002', map_longitude = '130.420622', map_zoom = 7 WHERE c_profile_pref_id = 40;
    50 UPDATE c_profile_pref SET map_latitude = '33.264212', map_longitude = '130.297608', map_zoom = 7 WHERE c_profile_pref_id = 41;
    51 UPDATE c_profile_pref SET map_latitude = '32.753085', map_longitude = '129.870515', map_zoom = 7 WHERE c_profile_pref_id = 42;
    52 UPDATE c_profile_pref SET map_latitude = '32.789207', map_longitude = '130.688499', map_zoom = 7 WHERE c_profile_pref_id = 43;
    53 UPDATE c_profile_pref SET map_latitude = '33.232794', map_longitude = '131.606595', map_zoom = 7 WHERE c_profile_pref_id = 44;
    54 UPDATE c_profile_pref SET map_latitude = '31.915323', map_longitude = '131.432083', map_zoom = 7 WHERE c_profile_pref_id = 45;
    55 UPDATE c_profile_pref SET map_latitude = '31.602098', map_longitude = '130.564112', map_zoom = 7 WHERE c_profile_pref_id = 46;
    56 UPDATE c_profile_pref SET map_latitude = '26.212401', map_longitude = '127.680932', map_zoom = 7 WHERE c_profile_pref_id = 47;
  • webapp_biz/modules/biz/do/s_edit_shisetsu.php

     
    3737
    3838        t_image_clear_tmp(session_id());
    3939
    40         biz_editShisetsu($id, $requests['name'], $filename);
     40        biz_editShisetsu($id, $requests['name'], $filename, $requests['info']);
    4141
    4242        $p = array('msg' => '施設を編集しました');
    4343        openpne_redirect('biz', 'page_s_list', $p);
  • webapp_biz/modules/biz/do/s_add_shisetsu.php

     
    2828
    2929        t_image_clear_tmp(session_id());
    3030
    31         biz_addShisetsu($requests['name'], $filename);
     31        biz_addShisetsu($requests['name'], $filename, $requests['info']);
    3232
    3333        $p = array('msg' => '施設を追加しました');
    3434        openpne_redirect('biz', 'page_s_list', $p);
  • webapp_biz/modules/biz/lib/mysql_functions.php

     
    916916}
    917917
    918918//施設追加
    919 function biz_addShisetsu($name, $image_name)
     919function biz_addShisetsu($name, $image_name, $info = '')
    920920{
    921921    if (!$image_name) {
    922922        $image_name = '0';
     
    925925    $data = array(
    926926        'name' => $name,
    927927        'image_filename' => $image_name,
     928        'info' => $info,
    928929    );
    929930    db_insert('biz_shisetsu', $data);
    930931}
    931932
    932933//施設編集
    933 function biz_editShisetsu($id, $name, $image_name)
     934function biz_editShisetsu($id, $name, $image_name, $info = '')
    934935{
    935936    if (!$image_name) {
    936937        $image_name = 0;
    937938    }
    938939
    939     $sql = 'UPDATE `biz_shisetsu` SET `name` = ?,`image_filename` = ? WHERE `biz_shisetsu_id` = ?';
     940    $sql = 'UPDATE `biz_shisetsu` SET `name` = ?,`image_filename` = ?, `info` = ? WHERE `biz_shisetsu_id` = ?';
    940941    $params = array(
    941942        $name,
    942943        $image_name,
     944        $info,
    943945        intval($id),
    944946    );
    945947    db_query($sql, $params);
  • webapp_biz/modules/biz/validate/do/s_add_shisetsu.ini

     
    33
    44[image_filename]
    55type="string"
     6
     7[info]
     8type="string"
     9default=""
     10 No newline at end of file
  • webapp_biz/modules/biz/validate/do/s_edit_shisetsu.ini

     
    66
    77[target_id]
    88type="int"
     9
     10[info]
     11type="string"
     12default=""
     13 No newline at end of file
  • webapp_biz/modules/biz/templates/s_add_shisetsu.tpl

     
    8686<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    8787</tr>
    8888({*********})
     89({*********})
    8990<tr>
     91<td style="width:636px;height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     92</tr>
     93({*********})
     94<tr>
     95<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     96<td style="width:130px;" class="bg_05" align="center" valign="middle">
     97
     98<div class="padding_s">
     99
     100詳細
     101
     102</div>
     103
     104</td>
     105<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     106<td style="width:503px;" class="bg_02" align="left" valign="middle">
     107
     108<div class="padding_s">
     109
     110<input name="info" size="50">
     111
     112</div>
     113
     114</td>
     115<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     116</tr>
     117({*********})
     118<tr>
    90119<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    91120</tr>
    92121({*********})
  • webapp_biz/modules/biz/templates/fh_biz_schedule_calendar.tpl

     
    9898
    9999({* スケジュール *})
    100100({foreach from=$item.schedule item=item_schedule name=schedule})
     101({* 時間指定変数の初期化 *})
     102({assign var="begin_time_H" value=null})
     103({assign var="begin_time_M" value=null})
     104({assign var="finish_time_H" value=null})
     105({assign var="finish_time_M" value=null})
    101106        ({if !$item_schedule.begin_time})
    102107&nbsp;
    103108<!-- 時間指定なしの予定 -->
  • webapp_biz/modules/biz/templates/s_edit_shisetsu.tpl

     
    9191</tr>
    9292({*********})
    9393<tr>
     94<td style="width:636px;height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     95</tr>
     96({*********})
     97<tr>
     98<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     99<td style="width:130px;" class="bg_05" align="center" valign="middle">
     100
     101<div class="padding_s">
     102
     103詳細
     104
     105</div>
     106
     107</td>
     108<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     109<td style="width:503px;" class="bg_02" align="left" valign="middle">
     110
     111<div class="padding_s">
     112
     113<input name="info" size="50" value="({$list.info})">
     114
     115</div>
     116
     117</td>
     118<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     119</tr>
     120({*********})
     121<tr>
    94122<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    95123</tr>
    96124({*********})
  • webapp_biz/modules/biz/templates/inc_biz_schedule_week.tpl

     
    7777<td style="width:36px;" class="bg_06"><img src="./skin/content_header_1.gif" style="width:30px;height:20px;" class="dummy"></td>
    7878<td style="width:666px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">({$list.name})</span></td>
    7979</tr>
     80({if $list.info})
     81<tr>
     82<td class="border_01 bg_02" align="left" style="width:10px;border-right:none;"><img src="./skin/dummy.gif" style="width:9px;height:10px;" class="dummy"></td>
     83<td class="border_01 bg_02 padding_ss" style="border-left:none;" align="left">
     84({$list.info})
     85</td>
     86</tr>
     87({/if})
    8088</table>
    8189</div>
    8290
  • config.php.sample

     
    285285define('USE_IMAGEMAGICK', false);
    286286
    287287// ImageMagick の convertコマンドのパス
    288 //define('IMGMAGICK_APP', '/usr/bin/convert');
     288define('IMGMAGICK_APP', '/usr/bin/convert');
    289289//define('IMGMAGICK_APP', '"C:\Program Files\ImageMagick-6.2.5-Q16\convert"');
    290290
    291291// ImageMagick のオプション(デフォルトは -resize)
  • webapp/lib/smarty_plugins/function.t_img_url_skin.php

     
    1111    if (OPENPNE_IMG_URL) {
    1212        $url = OPENPNE_IMG_URL;
    1313    } else {
    14         $url = OPENPNE_URL;
     14        if (OPENPNE_USE_PARTIAL_SSL && is_ssl()) {
     15            $url = OPENPNE_SSL_URL;
     16        } else {
     17            $url = OPENPNE_URL;
     18        }
    1519    }
    1620
    1721    if (!$filename = db_get_c_skin_filename4skinname($p['filename'])) {
  • webapp/lib/smarty_plugins/function.t_img_url.php

     
    2121    if (OPENPNE_IMG_URL) {
    2222        $url = OPENPNE_IMG_URL;
    2323    } else {
    24         $url = OPENPNE_URL;
     24        if (OPENPNE_USE_PARTIAL_SSL && is_ssl()) {
     25            $url = OPENPNE_SSL_URL;
     26        } else {
     27            $url = OPENPNE_URL;
     28        }
    2529    }
    2630
    2731    if (!OPENPNE_IMG_CACHE_PUBLIC) {
  • webapp/lib/db/ranking.php

     
    2222function db_ranking_c_friend_ranking($limit = 10)
    2323{
    2424    $sql = 'SELECT c_member_id_to as c_member_id, count(*) as count' .
    25         ' FROM c_friend' .
    26         ' GROUP BY c_member_id_to' .
     25        ' FROM c_friend';
     26    if (!IS_CLOSED_SNS) {
     27      $sql .= ' WHERE c_member_id_to != 1';
     28    }
     29    $sql .= ' GROUP BY c_member_id_to' .
    2730        ' ORDER BY count DESC';
    2831    return db_get_all_limit($sql, 0, $limit);
    2932}
  • webapp/lib/db/member.php

     
    10291029
    10301030function db_member_update_ktai_address($c_member_id, $ktai_address)
    10311031{
    1032     $data = array('ktai_address' => t_encrypt($ktai_address));
     1032    if ($ktai_address == ''){
     1033        $data = array(
     1034            'ktai_address' => t_encrypt($ktai_address),
     1035            'easy_access_id' => t_encrypt(''),
     1036        );
     1037    } else {
     1038        $data = array('ktai_address' => t_encrypt($ktai_address));
     1039    }
    10331040    $where = array('c_member_id' => intval($c_member_id));
    10341041    return db_update('c_member_secure', $data, $where);
    10351042}
  • webapp/lib/db/diary.php

     
    6464    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    6565        $is_recurred = true;
    6666        $funcargs = func_get_args();
    67         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     67        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    6868    }
    6969
    7070    $is_recurred = false;
     
    296296    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    297297        $is_recurred = true;
    298298        $funcargs = func_get_args();
    299         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     299        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    300300    }
    301301
    302302    $is_recurred = false;
     
    334334    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    335335        $is_recurred = true;
    336336        $funcargs = func_get_args();
    337         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     337        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    338338    }
    339339
    340340    $is_recurred = false;
  • webapp/lib/db/commu.php

     
    459459    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    460460        $is_recurred = true;
    461461        $funcargs = func_get_args();
    462         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     462        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    463463    }
    464464
    465465    $is_recurred = false;
     
    10691069    if (!$is_recurred) {  //function cacheのために再帰処理を行う
    10701070        $is_recurred = true;
    10711071        $funcargs = func_get_args();
    1072         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
     1072        return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_FAST, __FUNCTION__, $funcargs);
    10731073    }
    10741074
    10751075    $is_recurred = false;
  • webapp/lib/db/deprecated_temporary2.php

     
    556556
    557557function do_c_event_edit_update_c_commu_topic_comment($c_commu_topic_id, $topic_comment)
    558558{
    559         return db_commu_update_c_commu_topic_comment($c_commu_topic_id, $topic);
     559        return db_commu_update_c_commu_topic_comment($c_commu_topic_id, $topic_comment);
    560560}
    561561
    562562function do_c_event_edit_delete_c_commu_topic_comment_image($c_commu_topic_id, $image_num)
  • webapp/lib/util/cache.php

     
    2929
    3030    if (OPENPNE_USE_FUNCTION_CACHE) {
    3131        $cache =& get_cache_lite_function();
    32         $cache->setOption('lifetime', intval($lifetime));
     32        $cache->setOption('lifeTime', intval($lifetime));
    3333        return call_user_func_array(array(&$cache, 'call'), $arg_list);
    3434    } else {
    3535        $function = array_shift($arg_list);
     
    5757 */
    5858function pne_cache_recursive_call($lifetime, $function, $funcarg)
    5959{
    60     $backtrace = debug_backtrace();
    61 
    6260    if (OPENPNE_USE_FUNCTION_CACHE) {
    6361        array_unshift($funcarg, $function);
    6462        $cache =& get_cache_lite_function();
    65         $cache->setOption('lifetime', intval($lifetime));
     63        $cache->setOption('lifeTime', intval($lifetime));
    6664        return call_user_func_array(array(&$cache, 'call'), $funcarg);
    6765    } else {
    6866        return call_user_func_array($function, $funcarg);
     
    119117 */
    120118function cache_drop_c_commu_topic($c_commu_topic_id)
    121119{
    122     pne_cache_drop('p_c_home_new_topic_comment4c_commu_id', $c_commu_topic_id, 7);
    123     pne_cache_drop('p_c_home_new_topic_comment4c_commu_id', $c_commu_topic_id, 7, 1);
     120    pne_cache_drop('db_commu_new_topic_comment4c_commu_id', $c_commu_topic_id, 7);
     121    pne_cache_drop('db_commu_new_topic_comment4c_commu_id', $c_commu_topic_id, 7, 0);
     122    pne_cache_drop('db_commu_new_topic_comment4c_commu_id', $c_commu_topic_id, 7, 1);
    124123}
    125124
    126125/**
     
    145144
    146145/**
    147146 * プロフィール取得のfunction cacheを削除する
     147 * 旧関数名を呼んでいる限り引数の省略はないのでこれで暫定的な対応とする
    148148 */
    149149function cache_drop_c_member_profile($c_member_id)
    150150{
    151     pne_cache_drop(db_member_c_member4c_member_id, $c_member_id);
     151    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id);
     152    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, false, 'public');
     153    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, false, 'friend');
     154    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, false, 'private');
     155    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, true, 'public');
     156    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, true, 'friend');
     157    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, false, true, 'private');
     158    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, false, 'public');
     159    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, false, 'friend');
     160    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, false, 'private');
     161    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, true, 'public');
     162    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, true, 'friend');
     163    pne_cache_drop('db_member_c_member4c_member_id', $c_member_id, true, true, 'private');
    152164    pne_cache_drop('db_member_c_profile_list');
    153165}
    154166
  • webapp/modules/pc/do/o_regist_prof.php

     
    3131
    3232        $validator = new OpenPNE_Validator();
    3333        if ($mode == 'register') {
     34            session_name('OpenPNEpcregist');
    3435            @session_start();
    3536            $validator->addRequests($_SESSION['prof']);
    3637            $requests['password2'] = $_SESSION['prof']['password'];
     
    112113        default:
    113114            $prof['profile'] = $c_member_profile_list;
    114115
     116            session_name('OpenPNEpcregist');
    115117            @session_start();
    116118            $_SESSION['prof'] = $_REQUEST;
    117119
     
    119121            openpne_forward('pc', 'page', 'o_regist_prof_confirm');
    120122            exit;
    121123        case 'register':
     124            // delete cookie
     125            setcookie(session_name(), '', time() - 3600, ini_get('session.cookie_path'));
     126
    122127            $pre = do_common_c_member_pre4sid($sid);
    123128
    124129            // c_member, c_member_secure
  • webapp/modules/pc/do/o_public_invite.php

     
    7171
    7272        do_h_invite_insert_c_invite_mail_send($c_member_id_invite, $session, '', $pc_address);
    7373
     74        // delete cookie
     75        setcookie(session_name(), '', time() - 3600, ini_get('session.cookie_path'));
     76
    7477        openpne_redirect('pc', 'page_o_public_invite_end');
    7578    }
    7679}
  • webapp/modules/pc/page/o_regist_prof_confirm.php

     
    3434        $this->set('inc_page_header', fetch_inc_page_header('regist'));
    3535
    3636        $this->set('sid', $sid);
     37        session_name('OpenPNEpcregist');
    3738        @session_start();
    3839        $this->set('prof', $_REQUEST['prof']);
    3940        $this->set('pc_address', $pre['pc_address']);
  • webapp/modules/pc/page/o_regist_prof.php

     
    3232
    3333        $this->set('err_msg', $err_msg);
    3434
     35        session_name('OpenPNEpcregist');
    3536        @session_start();
    3637        $this->set('profs', $_SESSION['prof']);
    3738
  • webapp/modules/pc/templates/c_edit.tpl

     
    226226<td class="bg_02" align="left" valign="middle">
    227227
    228228<div class="padding_s">
    229 <input name="is_display_map" type="radio" value="1"({if $c_commu.is_display_map}) checked="checked"({/if})>表示する<br>
    230 <input name="is_display_map" type="radio" value="0"({if !$c_commu.is_display_map}) checked="checked"({/if})>表示しない
     229<input name="is_display_map" type="radio" class="no_bg" value="1"({if $c_commu.is_display_map}) checked="checked"({/if})>表示する<br>
     230<input name="is_display_map" type="radio" class="no_bg" value="0"({if !$c_commu.is_display_map}) checked="checked"({/if})>表示しない
    231231</div>
    232232
    233233</td>
  • webapp/modules/pc/templates/fh_friend_list_delete_c_friend_confilm.tpl

     
    7171({t_form m=pc a=do_fh_friend_list_delete_c_friend})
    7272<input type="hidden" name="sessid" value="({$PHPSESSID})">
    7373<input type="hidden" name="target_c_member_id" value="({$target_c_member_id})">
    74 <input type="submit" value=" 外 す ">&nbsp;
     74<input type="submit" class="submit" value=" 外 す ">&nbsp;
    7575</form>
    7676
    7777</td><td>
  • webapp/modules/admin/do/delete_kakikomi_c_diary_comment.php

     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 書き込み管理(日記削除)
     8class admin_do_delete_kakikomi_c_diary_comment extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        $diary_comment = _do_c_diary_comment4c_diary_comment_id($requests['target_c_diary_comment_id']);
     13        db_diary_delete_c_diary_comment($diary_comment['c_diary_comment_id'],$diary_comment['c_member_id']);
     14
     15        module_client_redirect('delete_kakikomi', '日記コメントを削除しました');
     16    }
     17}
     18
     19?>
  • webapp/modules/admin/do/delete_kakikomi_c_commu_topic_comment.php

    Property changes on: webapp/modules/admin/do/delete_kakikomi_c_diary_comment.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 書き込み管理(日記削除)
     8class admin_do_delete_kakikomi_c_commu_topic_comment extends OpenPNE_Action
     9{
     10    function execute($requests)
     11    {
     12        do_c_bbs_delete_c_commu_topic_comment($requests['target_c_commu_topic_comment_id']);
     13
     14        module_client_redirect('delete_kakikomi', 'トピックコメントを削除しました');
     15    }
     16}
     17
     18?>
  • webapp/modules/admin/lib/db_admin.php

    Property changes on: webapp/modules/admin/do/delete_kakikomi_c_commu_topic_comment.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    610610function do_admin_send_mail($c_member_id, $subject, $body)
    611611{
    612612    $c_member = db_common_c_member4c_member_id($c_member_id, true);
    613     $pc_address = $c_member['secure']['pc_address'];
    614613
     614    if ($c_member['secure']['pc_address']) {
     615        $send_address = $c_member['secure']['pc_address'];
     616    } else {
     617        $send_address = $c_member['secure']['ktai_address'];
     618    }
     619
    615620    if (OPENPNE_MAIL_QUEUE) {
    616621        //メールキューに蓄積
    617         put_mail_queue($pc_address, $subject, $body);
     622        put_mail_queue($send_address, $subject, $body);
    618623    } else {
    619         t_send_email($pc_address, $subject, $body);
     624        t_send_email($send_address, $subject, $body);
    620625    }
    621626}
    622627
     
    689694    }
    690695}
    691696
     697function db_access_analysis_c_admin_user_id4username($username)
     698{
     699        $sql = "SELECT c_admin_user_id FROM c_admin_user" .
     700                " WHERE username = ?";
     701        $params = array($username);
     702        return db_get_one($sql,$params);
     703}
     704
     705function p_access_analysis_month_access_analysis_month($ktai_flag){
     706        $sql = "SELECT concat(left(r_datetime, 7), '-01') as ym, count(*) as count" .
     707                        " FROM c_access_log " .
     708                        " where ktai_flag = ?" .
     709                        " group by ym";
     710        $params = array(intval($ktai_flag));                   
     711        $list = db_get_all($sql,$params);
     712        return $list;
     713}
     714
     715
     716function p_access_analysis_day_access_analysis_day($ym, $ktai_flag){
     717        $sql = "SELECT left(r_datetime,10) as ymd , count(*) as count" .
     718                        " FROM c_access_log " .
     719                        " where left(r_datetime, 7) = ?" .
     720                        " and ktai_flag = ? " .
     721                        " group by ymd";                       
     722        $params = array(intval(substr($ym,0,7)),intval($ktai_flag));
     723        $list = db_get_all($sql,$params);
     724       
     725        $year = substr($ym, 0, 4);
     726        $month = substr($ym, 5,2);
     727       
     728        $return = array();
     729        $days_num = date("t", mktime (0,0,0,$month,1,$year));
     730        for($i=1 ; $i<=$days_num; $i++){
     731                $date = substr($ym,0,8) . substr("00".$i, -2, 2);
     732
     733                $count = 0;
     734                foreach($list as $value){
     735                        if($value['ymd'] == $date) $count = $value['count'];
     736                }
     737                $return[] = array("ymd"=>$date, "count"=>$count);
     738        }
     739        return $return;
     740}
     741
     742function get_page_name($ktai_flag, $orderby=1){
     743        if($orderby==1) $orderby_str = " order by page_name asc";
     744        elseif($orderby==-1) $orderby_str = " order by page_name desc";
     745
     746        $sql = "select distinct page_name from c_access_log " .
     747                        " where ktai_flag = ? " .
     748                        $orderby_str;
     749        $params = array(intval($ktai_flag));
     750        return db_get_col($sql,$params);
     751}
     752
     753function p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby){
     754
     755
     756        if($orderby==1) $orderby_str = " order by page_name asc";
     757        elseif($orderby==-1) $orderby_str = " order by page_name desc";
     758        elseif($orderby==2) $orderby_str = " order by count asc";
     759        elseif($orderby==-2) $orderby_str = " order by count desc";
     760
     761        $sql = "select page_name , count(*) as count from c_access_log where ktai_flag = ? ";
     762        $params = array(intval($ktai_flag));
     763        if($month_flag){
     764                $sql .= " and left(r_datetime, 7) = ? ";
     765                array_push($params,substr($ymd,0,7));
     766        } else {
     767                $sql .= " and left(r_datetime,10) = ? ";
     768                array_push($params,$ymd);
     769        }
     770        $sql .= " group by page_name ". $orderby_str;
     771        $list = db_get_all($sql,$params);
     772
     773        $sum = 0;
     774        $return = array();
     775        if(abs($orderby)==1){
     776                $page_name = get_page_name($ktai_flag, $orderby);
     777                foreach($page_name as $name){
     778                        $count = 0;
     779                        foreach($list as $value){
     780                                if($value['page_name'] == $name) $count = $value['count'];
     781                        }
     782
     783                                list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($name);
     784
     785                        $return[] = array("page_name"=>$name, "count"=> $count, "is_target_c_member_id"=> $is_target_c_member_id, "is_target_c_commu_id"=> $is_target_c_commu_id, "is_target_c_topic_id"=> $is_target_c_topic_id, "is_target_c_diary_id"=> $is_target_c_diary_id, "is_c_member_id"=> $is_c_member_id);
     786                        $sum += $count;
     787                }
     788        }
     789        elseif(abs($orderby)==2){
     790                $page_name = get_page_name($ktai_flag);
     791
     792                $t_page_name = $page_name;
     793
     794                //アクセスがゼロのページを取得する
     795                foreach($page_name as $key=>$name){
     796                        foreach($list as $value){
     797                                if($value['page_name']==$name) unset($page_name[$key]);//$listに含まれるページネームを削除
     798                        }
     799                }
     800
     801                foreach($page_name as $key=>$name){
     802                        $page_name[$key] = array("page_name"=>$name, "count"=>0);
     803                }
     804
     805       
     806                if($orderby==2) $return = array_merge($page_name , $list);
     807                elseif($orderby==-2) $return = array_merge($list, $page_name);
     808
     809                foreach($list as $value){
     810                        $sum += $value['count'];
     811                }
     812
     813                foreach($return as $value){
     814
     815                        list($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id) = get_is_show($value['page_name']);
     816
     817                        $value['is_target_c_member_id'] = $is_target_c_member_id;
     818                        $value['is_target_c_commu_id'] = $is_target_c_commu_id;
     819                        $value['is_target_c_topic_id'] = $is_target_c_topic_id;
     820                        $value['is_target_c_diary_id'] = $is_target_c_diary_id;
     821                        $value['is_c_member_id'] = $is_c_member_id;
     822                        $t_return[] = $value;
     823
     824                }
     825
     826                $return = $t_return;
     827
     828        }
     829       
     830        return array($return, $sum);
     831}
     832
     833
     834/*
     835 * target_commu
     836 *
     837 */
     838function p_access_analysis_target_commu_target_commu4ym_page_name
     839($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
     840       
     841    $start = ($page - 1) * $page_size;
     842       
     843        if($orderby==1) $orderby_str = " order by target_c_commu_id asc";
     844        elseif($orderby==-1) $orderby_str = " order by target_c_commu_id desc";
     845        elseif($orderby==2) $orderby_str = " order by count asc";
     846        elseif($orderby==-2) $orderby_str = " order by count desc";
     847       
     848        $sql = "select target_c_commu_id , count(*) as count from c_access_log  where ktai_flag = ? ";
     849        $params = array(intval($ktai_flag));
     850        if($month_flag){
     851                $sql .= " and left(r_datetime, 7) = ? ";
     852                array_push($params,substr($ymd,0,7));
     853        } else {
     854                $sql .= " and left(r_datetime,10) = ? ";
     855                array_push($params,$ymd);
     856        }
     857        if($page_name!="all"){
     858                $sql .= " and page_name = ? ";
     859                array_push($params,$page_name);
     860        }
     861        $sql .= " and target_c_commu_id <> 0 ";
     862        $sql .= " group by target_c_commu_id " .$orderby_str." limit $start, $page_size";
     863        $list = db_get_all($sql,$params);
     864
     865        $return = array();
     866        $sum = 0;
     867        foreach($list as $key => $value){
     868                if($value['target_c_commu_id']){
     869                        $c_commu = _db_c_commu4c_commu_id($value['target_c_commu_id']);
     870                        $return[] = array_merge($value, $c_commu);
     871                        $sum += $value['count'];
     872                }
     873        }
     874
     875        $sql =   "select count(*) from c_access_log  where ktai_flag = ? ";
     876        $params = array(intval($ktai_flag));
     877        if($month_flag){
     878                $sql .= " and left(r_datetime, 7) = ? ";
     879                array_push($params,substr($ymd,0,7));
     880        } else {
     881                $sql .= " and left(r_datetime,10) = ? ";
     882                array_push($params,$ymd);
     883        }
     884        if($page_name!="all"){
     885                $sql .= " and page_name = ? ";
     886                array_push($params,$page_name);
     887        }
     888        $sql .= " and target_c_commu_id <> 0 ";
     889        $sql .= " group by target_c_commu_id ";
     890        $result = db_get_all($sql,$params);
     891        $total_num = count($result);
     892
     893        if($total_num != 0){
     894                $total_page_num =  ceil($total_num / $page_size);
     895                if($page >= $total_page_num){
     896                        $next = false;
     897                }else{
     898                        $next = true;
     899                }
     900                if($page <= 1){
     901                        $prev = false;
     902                }else{
     903                        $prev = true;
     904                }
     905        }
     906        $start_num = ($page - 1) * $page_size + 1 ;
     907        $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     908
     909        return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     910}
     911
     912function p_access_analysis_target_topic_target_topic4ym_page_name
     913($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
     914       
     915    $start = ($page - 1) * $page_size;
     916       
     917        if($orderby==1) $orderby_str = " order by target_c_commu_topic_id asc";
     918        elseif($orderby==-1) $orderby_str = " order by target_c_commu_topic_id desc";
     919        elseif($orderby==2) $orderby_str = " order by count asc";
     920        elseif($orderby==-2) $orderby_str = " order by count desc";
     921
     922        $where =" where ktai_flag = ? ";
     923        $params = array(intval($ktai_flag));
     924        if($month_flag){
     925                $where .= " and left(r_datetime, 7) = ? ";
     926                array_push($params,substr($ymd,0,7));
     927        } else {
     928                $where .= " and left(r_datetime,10) = ? ";
     929                array_push($params,$ymd);
     930        }
     931        if($page_name!="all"){
     932                $where .= " and page_name = ? ";
     933                array_push($params,$page_name);
     934        }
     935        $sql = "select target_c_commu_topic_id , count(*) as count from c_access_log ";
     936        $sql .= $where." group by target_c_commu_topic_id " .$orderby_str." limit $start, $page_size";
     937        $list = db_get_all($sql,$params);
     938        $sql = "select count(*) from c_access_log ";
     939        $sql .= $where ." group by target_c_commu_topic_id ";
     940        $result = db_get_all($sql,$params);
     941        $total_num = count($result);
     942
     943        $return = array();
     944        $sum = 0;
     945        foreach($list as $key => $value){
     946                if($value['target_c_commu_topic_id']){
     947                        $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
     948                        $c_commu_topic['topic_name'] = $c_commu_topic['name'];
     949                        $c_commu = _db_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
     950                        $c_commu_topic['commu_name'] = $c_commu['name'];
     951                        $return[] = array_merge($value, $c_commu_topic);
     952                        $sum += $value['count'];
     953                }
     954        }
     955
     956        if($total_num != 0){
     957                $total_page_num =  ceil($total_num / $page_size);
     958                if($page >= $total_page_num){
     959                        $next = false;
     960                }else{
     961                        $next = true;
     962                }
     963                if($page <= 1){
     964                        $prev = false;
     965                }else{
     966                        $prev = true;
     967                }
     968        }
     969        $start_num = ($page - 1) * $page_size + 1 ;
     970        $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     971
     972        return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     973}
     974
     975function p_access_analysis_target_diary_target_diary4ym_page_name
     976($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
     977       
     978    $start = ($page - 1) * $page_size;
     979       
     980        if($orderby==1) $orderby_str = " order by target_c_diary_id asc";
     981        elseif($orderby==-1) $orderby_str = " order by target_c_diary_id desc";
     982        elseif($orderby==2) $orderby_str = " order by count asc";
     983        elseif($orderby==-2) $orderby_str = " order by count desc";
     984       
     985        $sql = "select target_c_diary_id , count(*) as count from c_access_log where ktai_flag = ? ";
     986        $params = array(intval($ktai_flag));
     987        if($month_flag){
     988                $sql .= " and left(r_datetime, 7) = ? ";
     989                array_push($params,substr($ymd,0,7));
     990        } else {
     991                $sql .= " and left(r_datetime,10) = ? ";
     992                array_push($params,$ymd);
     993        }
     994        if($page_name!="all"){
     995                $sql .= " and page_name = ? ";
     996                array_push($params,$page_name);
     997        }
     998        $sql .= " and target_c_diary_id <> 0 ";
     999        $sql .= " group by target_c_diary_id " . $orderby_str. " limit $start, $page_size";
     1000//print $sql;
     1001        $list = db_get_all($sql,$params);
     1002//print_r($list);
     1003
     1004        $return = array();
     1005        $sum = 0;
     1006        foreach($list as $key => $value){
     1007                if($value['target_c_diary_id']){
     1008                        $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
     1009                        $c_member = db_common_c_member4c_member_id($c_diary['c_member_id']);
     1010                        $c_diary['nickname'] = $c_member['nickname'];
     1011                        $return[] = array_merge($value, $c_diary);
     1012                        $sum += $value['count'];
     1013                }
     1014        }
     1015
     1016        $sql =   "select count(*) from c_access_log where ktai_flag = ? ";
     1017        $params = array(intval($ktai_flag));
     1018        if($month_flag){
     1019                $sql .= " and left(r_datetime, 7) = ? ";
     1020                array_push($params,substr($ymd,0,7));
     1021        } else {
     1022                $sql .= " and left(r_datetime,10) = ? ";
     1023                array_push($params,$ymd);
     1024        }
     1025        $sql .= " and target_c_diary_id <> 0 ";
     1026        $sql .= " group by target_c_diary_id ";
     1027        $result = db_get_all($sql,$params);
     1028        $total_num = count($result);
     1029
     1030        if($total_num != 0){
     1031                $total_page_num =  ceil($total_num / $page_size);
     1032                if($page >= $total_page_num){
     1033                        $next = false;
     1034                }else{
     1035                        $next = true;
     1036                }
     1037                if($page <= 1){
     1038                        $prev = false;
     1039                }else{
     1040                        $prev = true;
     1041                }
     1042        }
     1043        $start_num = ($page - 1) * $page_size + 1 ;
     1044        $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1045
     1046        return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1047}
     1048
     1049function p_access_analysis_member_access_member4ym_page_name
     1050($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
     1051       
     1052    $start = ($page - 1) * $page_size;
     1053       
     1054        if($orderby==1) $orderby_str = " order by target_c_member_id asc";
     1055        elseif($orderby==-1) $orderby_str = " order by target_c_member_id desc";
     1056        elseif($orderby==2) $orderby_str = " order by count asc";
     1057        elseif($orderby==-2) $orderby_str = " order by count desc";
     1058       
     1059        $where =" where ktai_flag = ? ";
     1060        $params = array(intval($ktai_flag));
     1061        if($month_flag){
     1062                $where .= " and left(r_datetime, 7) = ? ";
     1063                array_push($params,substr($ymd,0,7));
     1064        } else {
     1065                $where .= " and left(r_datetime,10) = ? ";
     1066                array_push($params,$ymd);
     1067        }
     1068        if($page_name!="all"){
     1069                $where .= " and page_name = ? ";
     1070                array_push($params,$page_name);
     1071        }
     1072
     1073        $sql = "select c_member_id , count(*) as count from c_access_log";
     1074        $sql .= $where." group by c_member_id $orderby_str limit $start, $page_size";
     1075        $list = db_get_all($sql,$params);
     1076        $sql = "select count(*) from c_access_log ";
     1077        $sql .= $where ." group by c_member_id ";
     1078        $result = db_get_all($sql,$params);
     1079        $total_num = count($result);
     1080
     1081        $return = array();
     1082        $sum = 0;
     1083        foreach($list as $key => $value){
     1084                if($value['c_member_id']){
     1085                        $c_member = _db_c_member4c_member_id($value['c_member_id']);
     1086                        $return[] = array_merge($value, $c_member);
     1087                        $sum += $value['count'];
     1088                }
     1089        }
     1090
     1091
     1092        if($total_num != 0){
     1093                $total_page_num =  ceil($total_num / $page_size);
     1094                if($page >= $total_page_num){
     1095                        $next = false;
     1096                }else{
     1097                        $next = true;
     1098                }
     1099                if($page <= 1){
     1100                        $prev = false;
     1101                }else{
     1102                        $prev = true;
     1103                }
     1104        }
     1105        $start_num = ($page - 1) * $page_size + 1 ;
     1106        $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1107        return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1108}
     1109
     1110function p_access_analysis_target_member_access_member4ym_page_name
     1111($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby=1){
     1112       
     1113    $start = ($page - 1) * $page_size;
     1114       
     1115        if($orderby==1) $orderby_str = " order by target_c_member_id asc";
     1116        elseif($orderby==-1) $orderby_str = " order by target_c_member_id desc";
     1117        elseif($orderby==2) $orderby_str = " order by count asc";
     1118        elseif($orderby==-2) $orderby_str = " order by count desc";
     1119       
     1120        $where =" where ktai_flag = ? ";
     1121        $params = array(intval($ktai_flag));
     1122        if($month_flag){
     1123                $where .= " and left(r_datetime, 7) = ? ";
     1124                array_push($params,substr($ymd,0,7));
     1125        } else {
     1126                $where .= " and left(r_datetime,10) = ? ";
     1127                array_push($params,$ymd);
     1128        }
     1129        if($page_name!="all"){
     1130                $where .= " and page_name = ? ";
     1131                array_push($params,$page_name);
     1132        }
     1133        $sql = "select target_c_member_id , count(*) as count from c_access_log ";
     1134        $sql .= $where;
     1135        $sql .= " AND target_c_member_id <> 0 ";
     1136        $sql .= " group by target_c_member_id " . $orderby_str. " limit $start, $page_size";
     1137
     1138        $list = db_get_all($sql,$params);
     1139
     1140        $return = array();
     1141        $sum = 0;
     1142        foreach($list as $key => $value){
     1143                if($value['target_c_member_id']){
     1144                        $c_member = db_common_c_member4c_member_id($value['target_c_member_id']);
     1145                        $return[] = array_merge($value, $c_member);
     1146                        $sum += $value['count'];
     1147                }
     1148        }
     1149
     1150        $where =" where ktai_flag = ? ";
     1151        $params = array(intval($ktai_flag));
     1152        if($month_flag){
     1153                $where .= " and left(r_datetime, 7) = ? ";
     1154                array_push($params,substr($ymd,0,7));
     1155        } else {
     1156                $where .= " and left(r_datetime,10) = ? ";
     1157                array_push($params,$ymd);
     1158        }
     1159        if($page_name!="all"){
     1160                $where .= " and page_name = ? ";
     1161                array_push($params,$page_name);
     1162        }
     1163        $sql = "select count(*) from c_access_log " ;
     1164        $sql .= $where;
     1165        $sql .= " AND target_c_member_id <> 0 ";
     1166        $sql .= " group by target_c_member_id ";
     1167       
     1168        $result = db_get_all($sql,$params);
     1169        $total_num = count($result);
     1170
     1171        if($total_num != 0){
     1172                $total_page_num =  ceil($total_num / $page_size);
     1173                if($page >= $total_page_num){
     1174                        $next = false;
     1175                }else{
     1176                        $next = true;
     1177                }
     1178                if($page <= 1){
     1179                        $prev = false;
     1180                }else{
     1181                        $prev = true;
     1182                }
     1183        }
     1184        $start_num = ($page - 1) * $page_size + 1 ;
     1185        $end_num =   ($page - 1) * $page_size + $page_size > $total_num ? $total_num : ($page - 1) * $page_size + $page_size ;
     1186
     1187        return array($return, $sum, $prev, $next, $total_num, $start_num, $end_num);   
     1188}
     1189
     1190
     1191function get_is_show($name){
     1192        //必要のない詳細ボタンを消す
     1193        switch($name){
     1194
     1195                case "h_home":
     1196                {
     1197                        $is_target_c_member_id = 0;
     1198                        $is_target_c_commu_id = 0;
     1199                        $is_target_c_topic_id = 0;
     1200                        $is_target_c_diary_id = 0;
     1201                        $is_c_member_id = 1;
     1202                }
     1203                break;
     1204
     1205
     1206                case "fh_friend_list":
     1207                {
     1208                        $is_target_c_member_id = 0;
     1209                        $is_target_c_commu_id = 0;
     1210                        $is_target_c_topic_id = 0;
     1211                        $is_target_c_diary_id = 0;
     1212                        $is_c_member_id = 1;
     1213                }
     1214                break;
     1215
     1216                case "h_message":
     1217                {
     1218                        $is_target_c_member_id = 0;
     1219                        $is_target_c_commu_id = 0;
     1220                        $is_target_c_topic_id = 0;
     1221                        $is_target_c_diary_id = 0;
     1222                        $is_c_member_id = 1;
     1223                }
     1224                break;
     1225
     1226                case "fh_diary_list":
     1227                {
     1228                        $is_target_c_member_id = 0;
     1229                        $is_target_c_commu_id = 0;
     1230                        $is_target_c_topic_id = 0;
     1231                        $is_target_c_diary_id = 0;
     1232                        $is_c_member_id = 1;
     1233                }
     1234                break;
     1235
     1236                case "h_message_box":
     1237                {
     1238                        $is_target_c_member_id = 0;
     1239                        $is_target_c_commu_id = 0;
     1240                        $is_target_c_topic_id = 0;
     1241                        $is_target_c_diary_id = 0;
     1242                        $is_c_member_id = 1;
     1243                }
     1244                break;
     1245
     1246                case "f_home":
     1247                {
     1248                        $is_target_c_member_id = 1;
     1249                        $is_target_c_commu_id = 0;
     1250                        $is_target_c_topic_id = 0;
     1251                        $is_target_c_diary_id = 0;
     1252                        $is_c_member_id = 1;
     1253                }
     1254                break;
     1255
     1256
     1257                case "h_com_find_all":
     1258                {
     1259                        $is_target_c_member_id = 0;
     1260                        $is_target_c_commu_id = 0;
     1261                        $is_target_c_topic_id = 0;
     1262                        $is_target_c_diary_id = 0;
     1263                        $is_c_member_id = 1;
     1264                }
     1265                break;
     1266
     1267
     1268                case "reply_message":
     1269                {
     1270                        $is_target_c_member_id = 0;
     1271                        $is_target_c_commu_id = 0;
     1272                        $is_target_c_topic_id = 0;
     1273                        $is_target_c_diary_id = 0;
     1274                        $is_c_member_id = 1;
     1275                }
     1276                break;
     1277
     1278
     1279                case "f_message_send":
     1280                {
     1281                        $is_target_c_member_id = 0;
     1282                        $is_target_c_commu_id = 0;
     1283                        $is_target_c_topic_id = 0;
     1284                        $is_target_c_diary_id = 0;
     1285                        $is_c_member_id = 1;
     1286                }
     1287                break;
     1288
     1289                case "f_message_send":
     1290                {
     1291                        $is_target_c_member_id = 0;
     1292                        $is_target_c_commu_id = 0;
     1293                        $is_target_c_topic_id = 0;
     1294                        $is_target_c_diary_id = 0;
     1295                        $is_c_member_id = 1;
     1296                }
     1297                break;
     1298
     1299
     1300                case "h_diary_list_all":
     1301                {
     1302                        $is_target_c_member_id = 0;
     1303                        $is_target_c_commu_id = 0;
     1304                        $is_target_c_topic_id = 0;
     1305                        $is_target_c_diary_id = 0;
     1306                        $is_c_member_id = 1;
     1307                }
     1308                break;
     1309
     1310
     1311                case "h_search":
     1312                {
     1313                        $is_target_c_member_id = 0;
     1314                        $is_target_c_commu_id = 0;
     1315                        $is_target_c_topic_id = 0;
     1316                        $is_target_c_diary_id = 0;
     1317                        $is_c_member_id = 1;
     1318                }
     1319                break;
     1320
     1321
     1322                case "f_message_send_confirm":
     1323                {
     1324                        $is_target_c_member_id = 1;
     1325                        $is_target_c_commu_id = 0;
     1326                        $is_target_c_topic_id = 0;
     1327                        $is_target_c_diary_id = 0;
     1328                        $is_c_member_id = 1;
     1329                }
     1330                break;
     1331
     1332
     1333
     1334                default:
     1335                {
     1336                        $is_target_c_member_id = 1;
     1337                        $is_target_c_commu_id = 1;
     1338                        $is_target_c_topic_id = 1;
     1339                        $is_target_c_diary_id = 1;
     1340                        $is_c_member_id = 1;
     1341                }
     1342        }
     1343
     1344        return array($is_target_c_member_id,$is_target_c_commu_id,$is_target_c_topic_id,$is_target_c_diary_id,$is_c_member_id);
     1345
     1346}
     1347
     1348/**
     1349
     1350カラムごとに条件を指定して絞ったメンバーの一覧を返す
     1351
     1352[引数]
     1353適時追加していく
     1354
     1355$s_access_date  最終ログイン時刻 開始年月日
     1356$e_access_date  最終ログイン時刻 終了年月日
     1357
     1358[返り値]
     1359c_member_list
     1360
     1361*/
     1362function p_member_edit_c_member_list($page_size, $page,$s_access_date='', $e_access_date='')
     1363{
     1364
     1365    $page = intval($page);
     1366    $page_size = intval($page_size);
     1367
     1368        $limit = "";
     1369
     1370        //page_sizeが0の時は全て表示(pagerなし)
     1371        if($page_size != 0){
     1372
     1373                $limit = " LIMIT ".($page_size*($page-1)).",$page_size";
     1374
     1375        }
     1376
     1377        $where = " WHERE 1 ";
     1378
     1379
     1380        //指定された条件で絞っていく
     1381        if($s_access_date != ""){
     1382                $where = $where . " and access_date >= ?";
     1383                $params = array($s_access_date);
     1384        }
     1385
     1386        if($e_access_date != ""){
     1387                $where = $where . " and access_date < ?";
     1388                $params = array($e_access_date);
     1389        }
     1390
     1391    $select = "SELECT * FROM c_member";
     1392        $order = " order by c_member_id";
     1393
     1394    $sql = $select . $where . $order . $limit;
     1395    $list = db_get_all_limit($sql, 0, $limit, $params);
     1396       
     1397    $sql = "select count(*) from c_member".$where;
     1398
     1399    $total_num = db_get_one($sql, $params);
     1400   
     1401       if($total_num != 0 && $page_size != 0){
     1402           $total_page_num =  ceil($total_num / $page_size);
     1403           if($page >= $total_page_num){
     1404               $next = false;
     1405           }else{
     1406               $next = true;
     1407           }
     1408             
     1409           if($page <= 1){
     1410               $prev = false;
     1411           }else{
     1412               $prev = true;
     1413           }
     1414       }
     1415
     1416   
     1417        return array($list , $prev , $next, $total_num);
     1418}
     1419
     1420function _db_c_member4c_member_id($c_member_id) {
     1421        $sql = "SELECT * FROM c_member WHERE c_member_id= ? ";
     1422        $params = array(intval($c_member_id));
     1423        return db_get_row($sql,$params);
     1424}
     1425
     1426/**
     1427 * 男と女の人数を取得
     1428 */
     1429function get_analysis_sex(){
     1430        $sql = "select count(*) from c_member where sex = '男'";
     1431        $analysis_sex['male'] = get_one4db($sql);
     1432        $sql = "select count(*) from c_member where sex = '女'";
     1433        $analysis_sex['female'] = get_one4db($sql);
     1434       
     1435        return $analysis_sex;
     1436       
     1437}
     1438
     1439/**
     1440 * 世代の人数を取得
     1441 */
     1442function get_analysis_generation(){
     1443       
     1444        $analysis_generation = array(
     1445                        '0?9' => 0,
     1446                        '10?19' => 0,
     1447                        '20?29' => 0,
     1448                        '30?39' => 0,
     1449                        '40?49' => 0,
     1450                        '50?59' => 0,
     1451                        '60?69' => 0,
     1452                        '70?79' => 0,
     1453                        '80?' =>0
     1454        );
     1455       
     1456        $sql = "select ((year(curdate()) - birth_year)- (RIGHT(CURDATE(),5)<concat(birth_month,'-',birth_day))) as age from c_member;";
     1457        $lst = db_get_all($sql);
     1458
     1459        $temp = array_keys($analysis_generation);
     1460        foreach($lst as $value){
     1461                $key = (int)($value['age'] / 10);
     1462                if($key > count($analysis_generation)-1)
     1463                        $analysis_generation[$temp[count($analysis_generation)-1]]++;
     1464                else
     1465                        $analysis_generation[$temp[$key]]++;
     1466        }
     1467
     1468        return $analysis_generation;
     1469       
     1470}
     1471
     1472/**
     1473 * 地域別の人数を取得
     1474 */
     1475function get_analysis_region(){
     1476        $pref = p_regist_prof_c_profile_pref_list4null();
     1477        $sql = "select pre_addr_c_profile_pref_id as pref_id from c_member";
     1478        $lst = get_array_list4db($sql);
     1479
     1480        foreach($pref as $value){
     1481                $analysis_region[$value] = 0;   
     1482        }
     1483
     1484        foreach ($lst as $value){
     1485                if($value['pref_id'] == 0)
     1486                        $analysis_region['その他']++;
     1487                else
     1488                        $analysis_region[$pref[$value['pref_id']]]++;
     1489        }
     1490
     1491        return $analysis_region;
     1492       
     1493}
     1494
     1495
     1496function get_analysis_date_month($year = "", $month = ""){
     1497        $sql = "select date_format(r_date,'%Y-%m') from c_member order by r_date";
     1498        $start_date = db_get_one($sql);
     1499
     1500        $i = 0;
     1501        list($y, $m) = split("-",$start_date);
     1502        do{
     1503                $date = date("Y-m", mktime (0,0,0,$m+$i++,1,$y));
     1504                $analysis_date_month[$date] = 0;
     1505        }while($date < date("Y-m"));   
     1506       
     1507        $sql = "select date_format(r_date,'%Y-%m') as d from c_member";
     1508        $lst = db_get_all($sql);
     1509        foreach ($lst as $value){
     1510                $analysis_date_month[$value['d']]++;
     1511        }
     1512        return $analysis_date_month;
     1513}
     1514
     1515function get_analysis_date_day_d($date=""){
     1516        if($date=="") $date = date("Y-m-d");
     1517        return $date;
     1518}
     1519
     1520
     1521function get_analysis_date_day($date=""){
     1522        if($date=="") $date = date("Y-m");
     1523
     1524        //一ヶ月の日数
     1525        $day_num = date("t");
     1526
     1527        for($i=1 ; $i<=$day_num; $i++){
     1528                //一桁の数を二桁にする
     1529                if($i < 10){
     1530                        $i = "0".$i;
     1531                }
     1532                $analysis_date_day[$i] = 0;
     1533        }
     1534
     1535       
     1536        $sql = "select date_format(r_date,'%d') as d from c_member where date_format(r_date,'%Y-%m') = ?";
     1537        $params = array($date);
     1538        $lst = db_get_all($sql,$params);
     1539
     1540        foreach($lst as $value){
     1541                $analysis_date_day[$value['d']]++;
     1542        }
     1543       
     1544        return $analysis_date_day;
     1545}
     1546
     1547function p_access_analysis_select_profile_list(){
     1548        $sql = "SELECT * " .
     1549                        " FROM c_profile " .
     1550                        " where form_type = 'select' ";
     1551                       
     1552        $list = db_get_all($sql);
     1553        return $list;
     1554}
     1555
     1556/**
     1557 * 指定されたIDのプロフィールの人数別一覧を作成
     1558 */
     1559function get_analysis_profile($c_profile_id){
     1560        $sql = "select count(*) as count,value,c_profile.caption from c_member_profile " .
     1561                " LEFT JOIN c_profile ON c_profile.c_profile_id = c_member_profile.c_profile_id " .
     1562                " WHERE c_member_profile.c_profile_id = ? GROUP BY value ";
     1563        $params = array(intval($c_profile_id));
     1564        $analysis_profile = db_get_all($sql,$params);
     1565       
     1566        return $analysis_profile;
     1567}
     1568
     1569function get_analysis_count_profile_all($c_profile_id){
     1570        $sql = "select count(*) as count from c_member_profile " .
     1571                " WHERE c_profile_id = ? ";
     1572        $params = array(intval($c_profile_id));
     1573        $analysis_profile = db_get_one($sql,$params);
     1574       
     1575        return $analysis_profile;
     1576}
     1577
     1578function analysis_profile4c_profile_id($c_profile_id){
     1579        $sql = "SELECT * FROM c_profile" .
     1580                        " WHERE c_profile_id = ? ";
     1581        $params = array(intval($c_profile_id));
     1582        $profile = db_get_row($sql,$params);
     1583       
     1584        return $profile;
     1585}
     1586function monitor_diary_list($keyword,$page_size,$page){
     1587
     1588    $page = intval($page);
     1589    $page_size = intval($page_size);
     1590   
     1591    $where = " where 1 ";
     1592
     1593    if($keyword){
     1594        //全角空白を半角に統一
     1595        $keyword = str_replace(" ", " ", $keyword);
     1596        $keyword_list = explode(" ", $keyword);
     1597           
     1598        for($i=0;$i < count($keyword_list);$i++){
     1599            $keyword = check_search_word( $keyword_list[$i] );
     1600               
     1601            $where .= " and (c_diary.subject like ? ";
     1602            $where .= " or c_diary.body like ? ) ";
     1603            $params[]="%$keyword%";
     1604            $params[]="%$keyword%";
     1605        }
     1606    }
     1607   
     1608    $select = " select c_diary.*";
     1609    $from = " FROM c_diary";
     1610    $order = " ORDER BY r_datetime desc";
     1611   
     1612    $sql = $select . $from . $where . $order;
     1613    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1614    foreach ($list as $key => $value) {
     1615        $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     1616        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
     1617    }
     1618   
     1619    $sql =
     1620        "SELECT count(*) "
     1621        . $from
     1622        . $where ;
     1623    $total_num = db_get_one($sql,$params);
     1624   
     1625    $total_page_num =  ceil($total_num / $page_size);
     1626    $next = ($page < $total_page_num);
     1627    $prev = ($page > 1);
     1628   
     1629    return array($list , $prev , $next, $total_num,$total_page_num); 
     1630}
     1631
     1632function monitor_diary_comment_list($keyword,$page_size,$page){
     1633
     1634    $page = intval($page);
     1635    $page_size = intval($page_size);
     1636   
     1637    $where = " where 1 ";
     1638
     1639    if($keyword){
     1640        //全角空白を半角に統一
     1641        $keyword = str_replace(" ", " ", $keyword);
     1642        $keyword_list = explode(" ", $keyword);
     1643           
     1644        for($i=0;$i < count($keyword_list);$i++){
     1645            $keyword = check_search_word( $keyword_list[$i] );
     1646               
     1647            $where .= " and (c_diary_comment.body like ? ) ";
     1648            $params[]="%$keyword%";
     1649        }
     1650    }
     1651   
     1652    $select = " select c_diary_comment.*,c_diary.subject";
     1653    $from = " FROM c_diary_comment"
     1654        ." LEFT JOIN c_diary ON c_diary.c_diary_id = c_diary_comment.c_diary_id ";
     1655    $order = " ORDER BY r_datetime desc";
     1656   
     1657    $sql = $select . $from . $where . $order;
     1658    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1659    foreach ($list as $key => $value) {
     1660        $list[$key]['c_member'] = db_common_c_member_with_profile($value['c_member_id']);
     1661        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
     1662    }
     1663   
     1664    $sql =
     1665        "SELECT count(*) "
     1666        . $from
     1667        . $where ;
     1668    $total_num = db_get_one($sql,$params);
     1669   
     1670    $total_page_num =  ceil($total_num / $page_size);
     1671    $next = ($page < $total_page_num);
     1672    $prev = ($page > 1);
     1673   
     1674    return array($list , $prev , $next, $total_num,$total_page_num); 
     1675}
     1676
     1677
     1678function monitor_topic_comment_list($keyword,$page_size,$page){
     1679
     1680    $page = intval($page);
     1681    $page_size = intval($page_size);
     1682   
     1683    $where = " where 1 ";
     1684
     1685    if($keyword){
     1686        $keyword = str_replace("?@", " ", $keyword);
     1687        $keyword_list = explode(" ", $keyword);
     1688           
     1689        for($i=0;$i < count($keyword_list);$i++){
     1690            $keyword = check_search_word( $keyword_list[$i] );
     1691               
     1692            $where .= " AND (ctc.body like ? )";
     1693            $params[]="%$keyword%";
     1694        }
     1695    }
     1696   
     1697    $select = " SELECT ctc.*,ct.name as topic_name,c.name as commu_name,m.nickname";
     1698    $from = " FROM c_commu_topic_comment as ctc"
     1699            ." LEFT JOIN c_member as m ON ctc.c_member_id = m.c_member_id "
     1700            ." LEFT JOIN c_commu_topic as ct ON ct.c_commu_topic_id = ctc.c_commu_topic_id "
     1701            ." LEFT JOIN c_commu as c ON c.c_commu_id = ct.c_commu_id ";
     1702    $order = " ORDER BY r_datetime desc";
     1703   
     1704    $sql = $select . $from . $where . $order;
     1705   
     1706    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1707   
     1708    foreach ($list as $key => $value) {
     1709        $list[$key]['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($value['c_commu_topic_id']);
     1710    }
     1711   
     1712    $sql =
     1713        "SELECT count(*) "
     1714        . $from
     1715        . $where ;
     1716    $total_num = db_get_one($sql,$params);
     1717   
     1718    $total_page_num =  ceil($total_num / $page_size);
     1719    $next = ($page < $total_page_num);
     1720    $prev = ($page > 1);
     1721   
     1722    return array($list , $prev , $next, $total_num,$total_page_num); 
     1723}
     1724
     1725
     1726function monitor_topic_list($keyword,$page_size,$page){
     1727
     1728    $page = intval($page);
     1729    $page_size = intval($page_size);
     1730   
     1731    $where = " where 1 ";
     1732
     1733    if($keyword){
     1734        $keyword = str_replace("?@", " ", $keyword);
     1735        $keyword_list = explode(" ", $keyword);
     1736           
     1737        for($i=0;$i < count($keyword_list);$i++){
     1738            $keyword = check_search_word( $keyword_list[$i] );
     1739               
     1740            $where .= " AND (ctc.body like ? ";
     1741            $where .= " OR ct.name like ? ";
     1742            $where .= " OR c.name like ? ) ";
     1743            $params[]="%$keyword%";
     1744            $params[]="%$keyword%";
     1745            $params[]="%$keyword%";
     1746        }
     1747    }
     1748   
     1749    $select = " SELECT ct.*,ct.name as topic_name,c.name as commu_name,m.nickname,ctc.body as body";
     1750    $from = " FROM c_commu_topic as ct"
     1751            ." LEFT JOIN c_member as m ON ct.c_member_id = m.c_member_id "
     1752            ." LEFT JOIN c_commu as c ON c.c_commu_id = ct.c_commu_id "
     1753            ." LEFT JOIN c_commu_topic_comment as ctc ON (ctc.c_commu_topic_id = ct.c_commu_topic_id AND ctc.number = 0)";
     1754    $order = " ORDER BY r_datetime desc";
     1755   
     1756    $sql = $select . $from . $where . $order;
     1757   
     1758    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1759   
     1760    foreach ($list as $key => $value) {
     1761        $list[$key]['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($value['c_commu_topic_id']);
     1762    }
     1763   
     1764    $sql =
     1765        "SELECT count(*) "
     1766        . $from
     1767        . $where ;
     1768    $total_num = db_get_one($sql,$params);
     1769   
     1770    $total_page_num =  ceil($total_num / $page_size);
     1771    $next = ($page < $total_page_num);
     1772    $prev = ($page > 1);
     1773   
     1774    return array($list , $prev , $next, $total_num,$total_page_num); 
     1775}
     1776
     1777function _db_count_c_commu_topic_comments4c_commu_topic_id($c_commu_topic_id){
     1778    $sql = "SELECT count(*) FROM c_commu_topic_comment" .
     1779        " WHERE c_commu_topic_id = ? AND number > 0";
     1780    $params = array($c_commu_topic_id);
     1781    return db_get_one($sql, $params);
     1782}
    6921783?>
  • webapp/modules/admin/lib/etc_admin.php

     
    7878
    7979function admin_client_redirect($p, $msg = '', $tail = '')
    8080{
     81    if (OPENPNE_ADMIN_URL) {
     82        $url = OPENPNE_ADMIN_URL;
     83    } else {
     84        $url = openpne_gen_url_head('admin', 'page_' . $p, true);
     85    }
     86    if (need_ssl_param('admin', 'page_' . $p)) {
     87        $tail .= 'ssl_param=1';
     88    }
     89
    8190    $hash_tbl =& AdminHashTable::singleton();
    8291
    8392    $m = ADMIN_MODULE_NAME;
    8493    $p = $hash_tbl->hash($p);
    8594
    86     if (OPENPNE_ADMIN_URL) {
    87         $url = OPENPNE_ADMIN_URL;
    88     } else {
    89         $url = OPENPNE_URL;
    90     }
    91 
    9295    $url .= "?m=$m&a=page_$p";
    9396    if ($tail) $url .= "&$tail";
    9497    if ($msg)  $url .= '&msg=' . urlencode($msg);
  • webapp/modules/admin/validate/do/delete_kakikomi_c_commu_topic_comment.ini

     
     1[target_c_commu_topic_comment_id]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/do/delete_kakikomi_c_diary_comment.ini

    Property changes on: webapp/modules/admin/validate/do/delete_kakikomi_c_commu_topic_comment.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[target_c_diary_comment_id]
     2type = "int"
     3required = 1
  • webapp/modules/admin/validate/page/diary_list.ini

    Property changes on: webapp/modules/admin/validate/do/delete_kakikomi_c_diary_comment.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[page]
     2type = "int"
     3default = 1
     4
     5[keyword]
     6type = "string"
     7default = ""
  • webapp/modules/admin/validate/page/topic_list.ini

    Property changes on: webapp/modules/admin/validate/page/diary_list.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[page]
     2type = "int"
     3default = 1
     4
     5[keyword]
     6type = "string"
     7default = ""
  • webapp/modules/admin/validate/page/delete_kakikomi.ini

    Property changes on: webapp/modules/admin/validate/page/topic_list.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    11[target_c_diary_id]
    22type = "int"
    33
     4[target_c_diary_comment_id]
     5type = "int"
     6
    47[target_c_commu_id]
    58type = "int"
    69
    710[target_c_commu_topic_id]
    811type = "int"
     12
     13[target_c_commu_topic_comment_id]
     14type = "int"
     15 No newline at end of file
  • webapp/modules/admin/validate/page/diary_comment_list.ini

     
     1[page]
     2type = "int"
     3default = 1
     4
     5[keyword]
     6type = "string"
     7default = ""
  • webapp/modules/admin/validate/page/topic_comment_list.ini

    Property changes on: webapp/modules/admin/validate/page/diary_comment_list.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1[page]
     2type = "int"
     3default = 1
     4
     5[keyword]
     6type = "string"
     7default = ""
  • webapp/modules/admin/page/access_analysis_page.php

    Property changes on: webapp/modules/admin/validate/page/topic_comment_list.ini
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_page extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $orderby = $requests['orderby'];
     16        $orderby1 = $requests['orderby1'];
     17        $orderby2 = $requests['orderby2'];
     18        //----------リクエスト変数-------------//
     19
     20    $v = array();
     21
     22    $v['SNS_NAME'] = SNS_NAME;
     23    $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     24    $this->set($v);
     25
     26        if($orderby1)   $orderby = $orderby1;
     27        elseif($orderby2)       $orderby = $orderby2;
     28
     29
     30        $this->set("ktai_flag" ,$ktai_flag);
     31        $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     32        $this->set("ymd", $ymd);
     33        $this->set("month_flag", $month_flag);
     34       
     35        if($orderby1) $orderby1 *= -1;
     36        else    $orderby1 = -1;
     37
     38        if($orderby2) $orderby2 *= -1;
     39        else    $orderby2 = 2;
     40
     41        $this->set("orderby", $orderby);
     42        $this->set("orderby1", $orderby1);
     43        $this->set("orderby2", $orderby2);
     44
     45        list($access_analysis_month_page, $sum)
     46                = p_access_analysis_page_access_analysis_page4ym($ymd, $month_flag, $ktai_flag, $orderby);
     47        $this->set("access_analysis_month_page", $access_analysis_month_page);
     48        $this->set("sum", $sum);
     49       
     50        //-------------ここまで元ソース---------------//
     51
     52
     53        return 'success';
     54    }
     55}
     56
     57?>
  • webapp/modules/admin/page/access_analysis_target_member.php

    Property changes on: webapp/modules/admin/page/access_analysis_page.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_target_member extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
     22       
     23    $v = array();
     24
     25    $v['SNS_NAME'] = SNS_NAME;
     26    $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     27    $this->set($v);
     28
     29
     30        //-------------ここから元ソース---------------//
     31        $page_size = 10;
     32        $page += $direc;
     33        if($orderby1)   $orderby = $orderby1;
     34        elseif($orderby2)       $orderby = $orderby2;
     35       
     36
     37        $this->set("ktai_flag" ,$ktai_flag);
     38        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     39        $this->set("ymd", $ymd);
     40        $this->set("month_flag", $month_flag);
     41        $this->set("page_name", $page_name);
     42        if($orderby1) $orderby1 *= -1;
     43        else    $orderby1 = -1;
     44
     45        if($orderby2) $orderby2 *= -1;
     46        else    $orderby2 = 2;
     47
     48        $this->set("orderby", $orderby);
     49        $this->set("orderby1", $orderby1);
     50        $this->set("orderby2", $orderby2);
     51
     52        list($target_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     53                = p_access_analysis_target_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     54        $this->set("target_member", $target_member);
     55        $this->set("sum", $sum);
     56        $this->set("is_prev", $is_prev);
     57        $this->set("is_next", $is_next);
     58        $this->set("page", $page);
     59        $this->set("total_num",$total_num);
     60        $this->set('start_num', $start_num);
     61        $this->set('end_num', $end_num);
     62       
     63        //-------------ここまで元ソース---------------//
     64
     65
     66        return 'success';
     67    }
     68}
     69
     70?>
  • webapp/modules/admin/page/user_analysis_profile.php

    Property changes on: webapp/modules/admin/page/access_analysis_target_member.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2
     3
     4class admin_page_user_analysis_profile extends OpenPNE_Action
     5{
     6    function execute($requests)
     7    {
     8
     9        //----------リクエスト変数-------------//
     10        $target_c_profile_id = $requests['target_c_profile_id'];
     11        //----------リクエスト変数-------------//
     12
     13    $v['SNS_NAME'] = SNS_NAME;
     14    $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     15    $this->set($v);
     16       
     17        //-------------ここから元ソース---------------//
     18        $analysis_profile = get_analysis_profile($target_c_profile_id);
     19        $this->set("analysis_profile", $analysis_profile);
     20        $this->set("count_profile_all", get_analysis_count_profile_all($target_c_profile_id));
     21       
     22       
     23        $profile_list = analysis_profile4c_profile_id($target_c_profile_id);
     24        $this->set("profile_caption", $profile_list['caption']);
     25        //-------------ここまで元ソース---------------//
     26
     27        return 'success';
     28    }
     29}
     30
     31?>
  • webapp/modules/admin/page/diary_list.php

    Property changes on: webapp/modules/admin/page/user_analysis_profile.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 管理画面トップページ 認証済み
     8
     9class admin_page_diary_list extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $v = array();
     14       
     15        $page = $requests['page'];
     16        $keyword = $requests['keyword'];
     17        $page_size = 20;
     18       
     19        $v = array();
     20       
     21        list($diary_list,$prev,$next,$total_num,$total_page_num)
     22            = monitor_diary_list($keyword,$page_size,$page);
     23        $this->set('diary_list', $diary_list);
     24        $this->set('page', $page);
     25        $this->set('prev', $prev);
     26        $this->set('next', $next);
     27        $this->set('keyword_encode', urlencode($keyword));
     28        $this->set('keyword', $keyword);
     29        $this->set('total_num', $total_num);
     30       
     31        for($i = $page-10<1 ? 1 : $page-10 ;($i<=$total_page_num)&&($i<$page+10);$i++)
     32            $page_list[]=$i;
     33        $this->set('page_list', $page_list);
     34        $this->set('start_num', ($page-1)*$page_size+1);
     35        $this->set('end_num', ($page-1)*$page_size+count($diary_list));
     36       
     37        $v['SNS_NAME'] = SNS_NAME;
     38        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     39        $this->set($v);
     40        return 'success';
     41    }
     42}
     43
     44?>
     45 No newline at end of file
  • webapp/modules/admin/page/access_analysis_target_topic.php

    Property changes on: webapp/modules/admin/page/diary_list.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_target_topic extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11
     12        //----------リクエスト変数-------------//
     13        $ktai_flag = $requests['ktai_flag'];
     14        $ymd = $requests['ymd'];
     15        $month_flag = $requests['month_flag'];
     16        $page_name = $requests['page_name'];
     17        $page = $requests['page'];
     18        $direc = $requests['direc'];
     19        $orderby = $requests['orderby'];
     20        $orderby1 = $requests['orderby1'];
     21        $orderby2 = $requests['orderby2'];
     22        //----------リクエスト変数-------------//
     23       
     24        $page_size = 10;
     25        $page += $direc;
     26        if($orderby1)   $orderby = $orderby1;
     27        elseif($orderby2)       $orderby = $orderby2;
     28       
     29
     30        $this->set("ktai_flag" ,$ktai_flag);
     31        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     32        $this->set("ymd", $ymd);
     33        $this->set("month_flag", $month_flag);
     34        $this->set("page_name", $page_name);
     35        if($orderby1) $orderby1 *= -1;
     36        else    $orderby1 = -1;
     37
     38        if($orderby2) $orderby2 *= -1;
     39        else    $orderby2 = 2;
     40
     41        $this->set("orderby", $orderby);
     42        $this->set("orderby1", $orderby1);
     43        $this->set("orderby2", $orderby2);
     44
     45        list($target_topic, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     46                = p_access_analysis_target_topic_target_topic4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     47        $this->set("target_topic", $target_topic);
     48        $this->set("sum", $sum);
     49        $this->set("is_prev", $is_prev);
     50        $this->set("is_next", $is_next);
     51        $this->set("page", $page);
     52        $this->set("total_num",$total_num);
     53        $this->set('start_num', $start_num);
     54        $this->set('end_num', $end_num);
     55
     56        //-------------ここまで元ソース---------------//
     57
     58        $v = array();
     59
     60        $v['SNS_NAME'] = SNS_NAME;
     61        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     62        $this->set($v);
     63
     64        return 'success';
     65    }
     66}
     67
     68?>
  • webapp/modules/admin/page/access_analysis_month.php

    Property changes on: webapp/modules/admin/page/access_analysis_target_topic.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7//アクセス解析
     8
     9class admin_page_access_analysis_month extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13                //----------リクエスト変数-------------//
     14                $ktai_flag = $requests['ktai_flag'];
     15                //----------リクエスト変数-------------//
     16
     17        $v = array();
     18
     19        $v['SNS_NAME'] = SNS_NAME;
     20        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     21        $this->set($v);
     22
     23                $this->set("ktai_flag" ,$ktai_flag);
     24                $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     25
     26                $access_analysis_month = p_access_analysis_month_access_analysis_month($ktai_flag);
     27                $this->set("access_analysis_month", $access_analysis_month);
     28
     29                //アクティブユーザー数
     30                $s_access_date = date("Y-m-d H:i:s" , strtotime ("-1 week") );
     31                $list = p_member_edit_c_member_list(100,1,$s_access_date);
     32                $this->set("active_num", $list[3]);
     33       
     34                $nowtime = date("Y-m") . "-01";
     35                $this->set("nowtime", $nowtime);
     36
     37        return 'success';
     38    }
     39}
     40
     41?>
     42 No newline at end of file
  • webapp/modules/admin/page/access_analysis_target_commu.php

    Property changes on: webapp/modules/admin/page/access_analysis_month.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_target_commu extends OpenPNE_Action
     8{
     9        function execute($requests)
     10        {
     11
     12        //----------リクエスト変数-------------//
     13        $ktai_flag = $requests['ktai_flag'];
     14        $ymd = $requests['ymd'];
     15        $month_flag = $requests['month_flag'];
     16        $page_name = $requests['page_name'];
     17        $page = $requests['page'];
     18        $direc = $requests['direc'];
     19        $orderby = $requests['orderby'];
     20        $orderby1 = $requests['orderby1'];
     21        $orderby2 = $requests['orderby2'];
     22        //----------リクエスト変数-------------//
     23       
     24        $page_size = 10;
     25        $page += $direc;
     26        if($orderby1)   $orderby = $orderby1;
     27        elseif($orderby2)       $orderby = $orderby2;
     28       
     29
     30        $this->set("ktai_flag" ,$ktai_flag);
     31        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     32        $this->set("ymd", $ymd);
     33        $this->set("month_flag", $month_flag);
     34        $this->set("page_name", $page_name);
     35        if($orderby1) $orderby1 *= -1;
     36        else    $orderby1 = -1;
     37
     38        if($orderby2) $orderby2 *= -1;
     39        else    $orderby2 = 2;
     40
     41        $this->set("orderby", $orderby);
     42        $this->set("orderby1", $orderby1);
     43        $this->set("orderby2", $orderby2);
     44
     45        list($target_commu, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     46                = p_access_analysis_target_commu_target_commu4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     47        $this->set("target_commu", $target_commu);
     48        $this->set("sum", $sum);
     49        $this->set("is_prev", $is_prev);
     50        $this->set("is_next", $is_next);
     51        $this->set("page", $page);
     52        $this->set("total_num",$total_num);
     53        $this->set('start_num', $start_num);
     54        $this->set('end_num', $end_num);
     55       
     56        //-------------ここまで元ソース---------------//
     57
     58        $v = array();
     59
     60        $v['SNS_NAME'] = SNS_NAME;
     61        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     62        $this->set($v);
     63
     64        return 'success';
     65    }
     66}
     67
     68
     69?>
  • webapp/modules/admin/page/user_analysis.php

    Property changes on: webapp/modules/admin/page/access_analysis_target_commu.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_user_analysis extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12
     13        $v = array();
     14
     15        $v['SNS_NAME'] = SNS_NAME;
     16        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     17        $this->set($v);
     18
     19        return 'success';
     20    }
     21}
     22
     23?>
  • webapp/modules/admin/page/csv_download.php

    Property changes on: webapp/modules/admin/page/user_analysis.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// CSVダウンロード
     8
     9class admin_page_csv_download extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $v = array();
     14
     15        $v['SNS_NAME'] = SNS_NAME;
     16        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     17       
     18        $this->set($v);
     19        return 'success';
     20    }
     21}
     22
     23?>
  • webapp/modules/admin/page/user_analysis_date_month.php

    Property changes on: webapp/modules/admin/page/csv_download.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_user_analysis_date_month extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12        $month = $requests['month'];
     13        //----------リクエスト変数-------------//
     14
     15        $v = array();
     16
     17        $v['SNS_NAME'] = SNS_NAME;
     18        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     19        $this->set($v);
     20        $analysis_date_month = get_analysis_date_month();
     21        $this->set("analysis_date_month", get_analysis_date_month("",$month));
     22        $this->set("analysis_date_month_sum", array_sum($analysis_date_month));
     23
     24        return 'success';
     25    }
     26}
     27
     28?>
  • webapp/modules/admin/page/access_analysis_member.php

    Property changes on: webapp/modules/admin/page/user_analysis_date_month.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_member extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        $month_flag = $requests['month_flag'];
     15        $page_name = $requests['page_name'];
     16        $page = $requests['page'];
     17        $direc = $requests['direc'];
     18        $orderby = $requests['orderby'];
     19        $orderby1 = $requests['orderby1'];
     20        $orderby2 = $requests['orderby2'];
     21        //----------リクエスト変数-------------//
     22
     23        $v = array();
     24
     25        $v['SNS_NAME'] = SNS_NAME;
     26        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     27        $this->set($v);
     28
     29        $page_size = 10;
     30        $page += $direc;
     31        if($orderby1)   $orderby = $orderby1;
     32        elseif($orderby2)       $orderby = $orderby2;
     33       
     34        $this->set("ktai_flag" ,$ktai_flag);
     35        $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     36        $this->set("ymd", $ymd);
     37        $this->set("month_flag", $month_flag);
     38        $this->set("page_name", $page_name);
     39        if($orderby1) $orderby1 *= -1;
     40        else    $orderby1 = -1;
     41
     42        if($orderby2) $orderby2 *= -1;
     43        else    $orderby2 = 2;
     44
     45        $this->set("orderby", $orderby);
     46        $this->set("orderby1", $orderby1);
     47        $this->set("orderby2", $orderby2);
     48
     49        list($access_member, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     50                = p_access_analysis_member_access_member4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     51        $this->set("access_member", $access_member);
     52        $this->set("sum", $sum);
     53        $this->set("is_prev", $is_prev);
     54        $this->set("is_next", $is_next);
     55        $this->set("page", $page);
     56        $this->set("total_num",$total_num);
     57        $this->set('start_num', $start_num);
     58        $this->set('end_num', $end_num);
     59
     60        return 'success';
     61    }
     62}
     63
     64
     65?>
  • webapp/modules/admin/page/topic_comment_list.php

    Property changes on: webapp/modules/admin/page/access_analysis_member.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 管理画面トップページ 認証済み
     8
     9class admin_page_topic_comment_list extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $v = array();
     14       
     15        $page = $requests['page'];
     16        $keyword = $requests['keyword'];
     17        $page_size = 20;
     18       
     19        $v = array();
     20       
     21        list($topic_comment_list,$prev,$next,$total_num,$total_page_num)
     22            = monitor_topic_comment_list($keyword,$page_size,$page);
     23        $this->set('topic_comment_list', $topic_comment_list);
     24        $this->set('page', $page);
     25        $this->set('prev', $prev);
     26        $this->set('next', $next);
     27        $this->set('keyword_encode', urlencode($keyword));
     28        $this->set('keyword', $keyword);
     29        $this->set('total_num', $total_num);
     30       
     31        for($i = $page-10<1 ? 1 : $page-10 ;($i<=$total_page_num)&&($i<$page+10);$i++)
     32            $page_list[]=$i;
     33        $this->set('page_list', $page_list);
     34        $this->set('start_num', ($page-1)*$page_size+1);
     35        $this->set('end_num', ($page-1)*$page_size+count($topic_comment_list));
     36       
     37        $v['SNS_NAME'] = SNS_NAME;
     38        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     39        $this->set($v);
     40        return 'success';
     41    }
     42}
     43
     44?>
     45 No newline at end of file
  • webapp/modules/admin/page/user_analysis_generation.php

    Property changes on: webapp/modules/admin/page/topic_comment_list.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_user_analysis_generation extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12
     13        $v = array();
     14
     15        $v['SNS_NAME'] = SNS_NAME;
     16        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     17        $this->set($v);
     18        $analysis_generation = get_analysis_generation();
     19        $this->set("analysis_generation", $analysis_generation);
     20        $this->set("analysis_generation_sum", array_sum($analysis_generation));
     21
     22        return 'success';
     23    }
     24}
     25
     26?>
  • webapp/modules/admin/page/access_analysis_day.php

    Property changes on: webapp/modules/admin/page/user_analysis_generation.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_day extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12        $ktai_flag = $requests['ktai_flag'];
     13        $ymd = $requests['ymd'];
     14        //----------リクエスト変数-------------//
     15       
     16        $this->set("inc_header" ,analysis_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
     17        $this->set("inc_footer" ,analysis_fetch_inc_footer());
     18        $this->set('SNS_NAME', SNS_NAME);
     19       
     20        //-------------ここから元ソース---------------//
     21        $this->set("ktai_flag" ,$ktai_flag);
     22        $this->set("item_str", ($ktai_flag ? "携帯":"PC"));
     23
     24        $access_analysis_day = p_access_analysis_day_access_analysis_day($ymd, $ktai_flag);
     25        $this->set("access_analysis_day", $access_analysis_day);
     26       
     27        //-------------ここまで元ソース---------------//
     28
     29        return 'success';
     30    }
     31}
     32
     33?>
  • webapp/modules/admin/page/access_analysis_target_diary.php

    Property changes on: webapp/modules/admin/page/access_analysis_day.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_access_analysis_target_diary extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11                //----------リクエスト変数-------------//
     12                $ktai_flag = $requests['ktai_flag'];
     13                $ymd = $requests['ymd'];
     14                $month_flag = $requests['month_flag'];
     15                $page_name = $requests['page_name'];
     16                $page = $requests['page'];
     17                $direc = $requests['direc'];
     18                $orderby = $requests['orderby'];
     19                $orderby1 = $requests['orderby1'];
     20                $orderby2 = $requests['orderby2'];
     21                //----------リクエスト変数-------------//
     22                $this->set("inc_header" ,analysis_fetch_inc_header("TOP>>".SNS_NAME."管理ページ"));
     23                $this->set("inc_footer" ,analysis_fetch_inc_footer());
     24                $this->set('SNS_NAME', SNS_NAME);
     25
     26        $v = array();
     27
     28        $v['SNS_NAME'] = SNS_NAME;
     29        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     30        $this->set($v);
     31
     32                //-------------ここから元ソース---------------//
     33                $page_size = 10;
     34                $page += $direc;
     35                if($orderby1)   $orderby = $orderby1;
     36                elseif($orderby2)       $orderby = $orderby2;
     37       
     38
     39                $this->set("ktai_flag" ,$ktai_flag);
     40                $this->set("item_str", ($ktai_flag ? "携帯版":"PC版"));
     41                $this->set("ymd", $ymd);
     42                $this->set("month_flag", $month_flag);
     43                $this->set("page_name", $page_name);
     44                if($orderby1) $orderby1 *= -1;
     45                else    $orderby1 = -1;
     46
     47                if($orderby2) $orderby2 *= -1;
     48                else    $orderby2 = 2;
     49
     50                $this->set("orderby", $orderby);
     51                $this->set("orderby1", $orderby1);
     52                $this->set("orderby2", $orderby2);
     53
     54                list($target_diary, $sum, $is_prev, $is_next, $total_num, $start_num, $end_num)
     55                        = p_access_analysis_target_diary_target_diary4ym_page_name($ymd, $month_flag, $page_name, $ktai_flag, $page, $page_size, $orderby);
     56                $this->set("target_diary", $target_diary);
     57                $this->set("sum", $sum);
     58                $this->set("is_prev", $is_prev);
     59                $this->set("is_next", $is_next);
     60                $this->set("page", $page);
     61                $this->set("total_num",$total_num);
     62                $this->set('start_num', $start_num);
     63                $this->set('end_num', $end_num);
     64
     65        //-------------ここまで元ソース---------------//
     66
     67        return 'success';
     68    }
     69}
     70
     71
     72?>
     73 No newline at end of file
  • webapp/modules/admin/page/topic_list.php

    Property changes on: webapp/modules/admin/page/access_analysis_target_diary.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 管理画面トップページ 認証済み
     8
     9class admin_page_topic_list extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $v = array();
     14       
     15        //----------???N?G?X?g???-------------//
     16        $page = $requests['page'];
     17        $keyword = $requests['keyword'];
     18        //----------???N?G?X?g???-------------//
     19        $page_size = 20;
     20       
     21        $v = array();
     22       
     23        list($topic_list,$prev,$next,$total_num,$total_page_num)
     24            = monitor_topic_list($keyword,$page_size,$page);
     25        $this->set('topic_list', $topic_list);
     26        $this->set('page', $page);
     27        $this->set('prev', $prev);
     28        $this->set('next', $next);
     29        $this->set('keyword_encode', urlencode($keyword));
     30        $this->set('keyword', $keyword);
     31        $this->set('total_num', $total_num);
     32       
     33        for($i = $page-10<1 ? 1 : $page-10 ;($i<=$total_page_num)&&($i<$page+10);$i++)
     34            $page_list[]=$i;
     35        $this->set('page_list', $page_list);
     36        $this->set('start_num', ($page-1)*$page_size+1);
     37        $this->set('end_num', ($page-1)*$page_size+count($topic_list));
     38       
     39        $v['SNS_NAME'] = SNS_NAME;
     40        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     41        $this->set($v);
     42        return 'success';
     43    }
     44}
     45
     46?>
     47 No newline at end of file
  • webapp/modules/admin/page/user_analysis_date_day.php

    Property changes on: webapp/modules/admin/page/topic_list.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7class admin_page_user_analysis_date_day extends OpenPNE_Action
     8{
     9    function execute($requests)
     10    {
     11        //----------リクエスト変数-------------//
     12    $date = $requests['date'];
     13    $v['SNS_NAME'] = SNS_NAME;
     14    $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     15    $this->set($v);
     16
     17        $analysis_date_day = get_analysis_date_day($date);
     18        $this->set("date", get_analysis_date_day_d($date));
     19        $this->set("analysis_date_day", $analysis_date_day);
     20        $this->set("analysis_date_day_sum", array_sum($analysis_date_day));
     21       
     22        return 'success';
     23    }
     24}
     25
     26?>
  • webapp/modules/admin/page/delete_kakikomi.php

    Property changes on: webapp/modules/admin/page/user_analysis_date_day.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    1414        if ($requests['target_c_diary_id']) {
    1515            $v['c_diary'] = db_diary_get_c_diary4id($requests['target_c_diary_id']);
    1616        }
     17       
     18        if ($requests['target_c_diary_comment_id']) {
     19            $v['c_diary_comment'] = _do_c_diary_comment4c_diary_comment_id($requests['target_c_diary_comment_id']);
     20        }
    1721
    1822        if ($requests['target_c_commu_id']) {
    1923            $v['c_commu'] = _db_c_commu4c_commu_id($requests['target_c_commu_id']);
     
    2226        if ($requests['target_c_commu_topic_id']) {
    2327            $v['c_commu_topic'] = c_topic_detail_c_topic4c_commu_topic_id($requests['target_c_commu_topic_id']);
    2428        }
     29       
     30        if ($requests['target_c_commu_topic_comment_id']) {
     31            $v['c_commu_topic_comment'] = _db_common_c_commu_topic_comment4c_commu_topic_comment_id($requests['target_c_commu_topic_comment_id']);
     32        }
    2533
    2634        $this->set($v);
    2735        return 'success';
  • webapp/modules/admin/page/diary_comment_list.php

     
     1<?php
     2/**
     3 * @copyright 2005-2006 OpenPNE Project
     4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
     5 */
     6
     7// 管理画面トップページ 認証済み
     8
     9class admin_page_diary_comment_list extends OpenPNE_Action
     10{
     11    function execute($requests)
     12    {
     13        $v = array();
     14       
     15        //----------???N?G?X?g???-------------//
     16        $page = $requests['page'];
     17        $keyword = $requests['keyword'];
     18        //----------???N?G?X?g???-------------//
     19        $page_size = 20;
     20       
     21        $v = array();
     22       
     23        list($diary_comment_list,$prev,$next,$total_num,$total_page_num)
     24            = monitor_diary_comment_list($keyword,$page_size,$page);
     25        $this->set('diary_comment_list', $diary_comment_list);
     26        $this->set('page', $page);
     27        $this->set('prev', $prev);
     28        $this->set('next', $next);
     29        $this->set('keyword_encode', urlencode($keyword));
     30        $this->set('keyword', $keyword);
     31        $this->set('total_num', $total_num);
     32       
     33        for($i = $page-10<1 ? 1 : $page-10 ;($i<=$total_page_num)&&($i<$page+10);$i++)
     34            $page_list[]=$i;
     35        $this->set('page_list', $page_list);
     36        $this->set('start_num', ($page-1)*$page_size+1);
     37        $this->set('end_num', ($page-1)*$page_size+count($diary_comment_list));
     38       
     39        $v['SNS_NAME'] = SNS_NAME;
     40        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
     41        $this->set($v);
     42        return 'success';
     43    }
     44}
     45
     46?>
     47 No newline at end of file
  • webapp/modules/admin/templates/inc_header.tpl

    Property changes on: webapp/modules/admin/page/diary_comment_list.php
    ___________________________________________________________________
    Name: svn:keywords
       + Id Date Author Rev URL
    Name: svn:eol-style
       + LF
    
     
    3333({/if})
    3434<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('send_invites')})" title="SNS招待メール送信: 複数のメールアドレス宛に招待メールを送信">SNS招待メール送信</a></li>
    3535<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_image')})" title="画像リスト・管理: SNSに登録されている画像の一覧、登録、削除">画像リスト・管理</a></li>
    36 <li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('delete_kakikomi')})" title="書き込み管理: 日記、コミュニティ、コミュニティトピックの強制削除">書き込み管理</a></li>
     36<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_list')})">日記管理</a></li>
     37<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('diary_comment_list')})">日記コメント管理</a></li>
     38<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_list')})">トピック・イベント管理</a></li>
     39<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('topic_comment_list')})">トピック・イベントのコメント管理</a></li>
     40<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('delete_kakikomi')})" title="書き込み管理: 日記、コミュニティ、コミュニティトピックの強制削除">書き込み削除</a></li>
    3741<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('manage_c_commu')})" title="初期コミュニティ管理: 新規登録時に参加させるコミュニティの設定">初期コミュニティ管理</a></li>
     42<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_generation')})">世代別ユーザー表示</a></li>
     43<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_month')})">登録日別ユーザー表示(月次集計)</a></li>
     44<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_date_day')})">登録日別ユーザー表示(日次集計)</a></li>
     45({foreach from=$profile_list item=item})
     46<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('user_analysis_profile')})&target_c_profile_id=({$item.c_profile_id})">({$item.caption})別ユーザー表示</a></li>
     47({/foreach})
    3848</ul>
    3949({/if})
    4050
     
    6676<li><a href="?m=({$module_name})&amp;a=do_({$hash_tbl->hash('logout','do')})&amp;sessid=({$PHPSESSID})" title="ログアウト: 管理画面からログアウト">ログアウト</a>
    6777</ul>
    6878
     79
     80
    6981<div style="text-align:left;padding:.5em 5px;">
    7082【<a href="./" title="サイトを表示" target="_blank">サイトを表示</a>】
    7183</div>
  • webapp/modules/admin/templates/delete_kakikomi.tpl

     
    1 ({$inc_header|smarty:nodefaults})
    2 
    3 <h2>書き込み管理</h2>
    4 ({if $msg})
    5 <p class="caution">({$msg})</p>
    6 ({/if})
    7 
    8 <p>IDは半角数字で入力してください。</p>
    9 
    10 ({* 日記 *})
    11 <h3>日記</h3>
    12 <div class="caution">
    13 URL例:(XXXがID)<br>
    14 ({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=XXX<br>
    15 </div>
    16 <form action="./" method="get">
    17 <p>
    18 <input type="hidden" name="m" value="({$module_name})">
    19 <input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
    20 ID:<input type="text" name="target_c_diary_id" value="({$requests.target_c_diary_id})" size="6">
    21 <input type="submit" class="submit" value="確認">
    22 </p>
    23 </form>
    24 
    25 ({if $c_diary})
    26 <table>
    27 <tr>
    28 <th>タイトル</th>
    29 <td>({$c_diary.subject})</td>
    30 </tr>
    31 <tr>
    32 <th>本文</th>
    33 <td style="width:360px">({$c_diary.body|t_url2a|nl2br})</td>
    34 </tr>
    35 <tr>
    36 <th>URL</th>
    37 <td><a href="({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})" target="_blank">URL</a></td>
    38 </tr>
    39 <form action="./" method="post">
    40 <tr>
    41 <th><input type="hidden" name="sessid" value="({$PHPSESSID})">
    42 <input type="hidden" name="m" value="({$module_name})">
    43 <input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_diary','do')})">
    44 <input type="hidden" name="target_c_diary_id" value="({$c_diary.c_diary_id})">
    45 &nbsp;</th>
    46 <td><input type="submit" class="submit" value="削除する"></td>
    47 </tr>
    48 </form>
    49 </table>
    50 ({/if})
    51 
    52 <hr>
    53 
    54 ({* コミュニティ *})
    55 <h3>コミュニティ</h3>
    56 <div class="caution">
    57 URL例:(XXXがID)<br>
    58 ({t_url _absolute=1 m=pc a=page_c_home})&amp;target_c_commu_id=XXX<br>
    59 </div>
    60 <form action="./" method="get">
    61 <p>
    62 <input type="hidden" name="m" value="({$module_name})">
    63 <input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
    64 ID:<input type="text" name="target_c_commu_id" value="({$requests.target_c_commu_id})" size="6">
    65 <input type="submit" class="submit" value="確認">
    66 </p>
    67 </form>
    68 
    69 ({if $c_commu})
    70 <table>
    71 <tr>
    72 <th>コミュニティ名</th>
    73 <td style="width:360px">({$c_commu.name})</td>
    74 </tr>
    75 <tr>
    76 <th>説明</th>
    77 <td>({$c_commu.info|t_url2a|nl2br})</td>
    78 </tr>
    79 <tr>
    80 <th>URL</th>
    81 <td><a href="({t_url _absolute=1 m=pc a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})" target="_blank">URL</a></td>
    82 </tr>
    83 <form action="./" method="post">
    84 <tr>
    85 <th><input type="hidden" name="sessid" value="({$PHPSESSID})">
    86 <input type="hidden" name="m" value="({$module_name})">
    87 <input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_commu','do')})">
    88 <input type="hidden" name="target_c_commu_id" value="({$c_commu.c_commu_id})">
    89 &nbsp;</th>
    90 <td><input type="submit" class="submit" value="削除する"></td>
    91 </tr>
    92 </form>
    93 </table>
    94 ({/if})
    95 
    96 <hr>
    97 
    98 ({* コミュニティトピック *})
    99 <h3>コミュニティトピック・イベント</h3>
    100 <div class="caution">
    101 URL例:(XXXがID)<br>
    102 ({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=XXX<br>
    103 ({t_url _absolute=1 m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=XXX
    104 </div>
    105 <form action="./" method="post">
    106 <p>
    107 <input type="hidden" name="m" value="({$module_name})">
    108 <input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
    109 ID:<input type="text" name="target_c_commu_topic_id" value="({$requests.target_c_commu_topic_id})" size="6">
    110 <input type="submit" class="submit" value="確認">
    111 </p>
    112 </form>
    113 
    114 ({if $c_commu_topic})
    115 <table>
    116 <tr>
    117 <th>トピック(イベント)名</th>
    118 <td style="width:360px">({$c_commu_topic.name})</td>
    119 </tr>
    120 <tr>
    121 <th>本文</th>
    122 <td>({$c_commu_topic.body|t_url2a|nl2br})</td>
    123 </tr>
    124 <tr>
    125 <th>URL</th>
    126 <td><a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})" target="_blank">URL</a></td>
    127 </tr>
    128 <form action="./" method="post">
    129 <tr>
    130 <th><input type="hidden" name="sessid" value="({$PHPSESSID})">
    131 <input type="hidden" name="m" value="({$module_name})">
    132 <input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_commu_topic','do')})">
    133 <input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic.c_commu_topic_id})">
    134 &nbsp;</th>
    135 <td><input type="submit" class="submit" value="削除する"></td>
    136 </tr>
    137 </form>
    138 </table>
    139 ({/if})
    140 
    141 ({$inc_footer|smarty:nodefaults})
     1({$inc_header|smarty:nodefaults})
     2
     3<h2>書き込み管理</h2>
     4({if $msg})
     5<p class="caution">({$msg})</p>
     6({/if})
     7
     8<p>IDは半角数字で入力してください。</p>
     9
     10({* 日記 *})
     11<h3>日記</h3>
     12<div class="caution">
     13URL例:(XXXがID)<br>
     14({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=XXX<br>
     15</div>
     16<form action="./" method="get">
     17<p>
     18<input type="hidden" name="m" value="({$module_name})">
     19<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
     20ID:<input type="text" name="target_c_diary_id" value="({$requests.target_c_diary_id})" size="6">
     21<input type="submit" class="submit" value="確認">
     22</p>
     23</form>
     24
     25({if $c_diary})
     26<table>
     27<tr>
     28<th>タイトル</th>
     29<td>({$c_diary.subject})</td>
     30</tr>
     31<tr>
     32<th>本文</th>
     33<td style="width:360px">({$c_diary.body|t_url2a|nl2br})</td>
     34</tr>
     35<tr>
     36<th>URL</th>
     37<td><a href="({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})" target="_blank">URL</a></td>
     38</tr>
     39<form action="./" method="post">
     40<tr>
     41<th><input type="hidden" name="sessid" value="({$PHPSESSID})">
     42<input type="hidden" name="m" value="({$module_name})">
     43<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_diary','do')})">
     44<input type="hidden" name="target_c_diary_id" value="({$c_diary.c_diary_id})">
     45&nbsp;</th>
     46<td><input type="submit" class="submit" value="削除する"></td>
     47</tr>
     48</form>
     49</table>
     50({/if})
     51
     52<hr>
     53
     54({* 日記コメント *})
     55<h3>日記コメント</h3>
     56<div class="caution">
     57日記コメントで表示しているIDを入力してください<br>
     58</div>
     59<form action="./" method="get">
     60<p>
     61<input type="hidden" name="m" value="({$module_name})">
     62<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
     63ID:<input type="text" name="target_c_diary_comment_id" value="({$requests.target_c_diary_comment_id})" size="6">
     64<input type="submit" class="submit" value="確認">
     65</p>
     66</form>
     67
     68({if $c_diary_comment})
     69<table>
     70<tr>
     71<th>本文</th>
     72<td style="width:360px">({$c_diary_comment.body|t_url2a|nl2br})</td>
     73</tr>
     74<tr>
     75<th>URL</th>
     76<td><a href="({t_url _absolute=1 m=pc a=page_fh_diary})&amp;target_c_diary_id=({$c_diary_comment.c_diary_id})" target="_blank">URL</a></td>
     77</tr>
     78<form action="./" method="post">
     79<tr>
     80<th><input type="hidden" name="sessid" value="({$PHPSESSID})">
     81<input type="hidden" name="m" value="({$module_name})">
     82<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_diary_comment','do')})">
     83<input type="hidden" name="target_c_diary_comment_id" value="({$c_diary_comment.c_diary_id})">
     84&nbsp;</th>
     85<td><input type="submit" class="submit" value="削除する"></td>
     86</tr>
     87</form>
     88</table>
     89({/if})
     90
     91<hr>
     92
     93({* コミュニティ *})
     94<h3>コミュニティ</h3>
     95<div class="caution">
     96URL例:(XXXがID)<br>
     97({t_url _absolute=1 m=pc a=page_c_home})&amp;target_c_commu_id=XXX<br>
     98</div>
     99<form action="./" method="get">
     100<p>
     101<input type="hidden" name="m" value="({$module_name})">
     102<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
     103ID:<input type="text" name="target_c_commu_id" value="({$requests.target_c_commu_id})" size="6">
     104<input type="submit" class="submit" value="確認">
     105</p>
     106</form>
     107
     108({if $c_commu})
     109<table>
     110<tr>
     111<th>コミュニティ名</th>
     112<td style="width:360px">({$c_commu.name})</td>
     113</tr>
     114<tr>
     115<th>説明</th>
     116<td>({$c_commu.info|t_url2a|nl2br})</td>
     117</tr>
     118<tr>
     119<th>URL</th>
     120<td><a href="({t_url _absolute=1 m=pc a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})" target="_blank">URL</a></td>
     121</tr>
     122<form action="./" method="post">
     123<tr>
     124<th><input type="hidden" name="sessid" value="({$PHPSESSID})">
     125<input type="hidden" name="m" value="({$module_name})">
     126<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_commu','do')})">
     127<input type="hidden" name="target_c_commu_id" value="({$c_commu.c_commu_id})">
     128&nbsp;</th>
     129<td><input type="submit" class="submit" value="削除する"></td>
     130</tr>
     131</form>
     132</table>
     133({/if})
     134
     135<hr>
     136
     137({* コミュニティトピック *})
     138<h3>コミュニティトピック・イベント</h3>
     139<div class="caution">
     140URL例:(XXXがID)<br>
     141({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=XXX<br>
     142({t_url _absolute=1 m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=XXX
     143</div>
     144<form action="./" method="post">
     145<p>
     146<input type="hidden" name="m" value="({$module_name})">
     147<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
     148ID:<input type="text" name="target_c_commu_topic_id" value="({$requests.target_c_commu_topic_id})" size="6">
     149<input type="submit" class="submit" value="確認">
     150</p>
     151</form>
     152
     153({if $c_commu_topic})
     154<table>
     155<tr>
     156<th>トピック(イベント)名</th>
     157<td style="width:360px">({$c_commu_topic.name})</td>
     158</tr>
     159<tr>
     160<th>本文</th>
     161<td>({$c_commu_topic.body|t_url2a|nl2br})</td>
     162</tr>
     163<tr>
     164<th>URL</th>
     165<td><a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=({$c_commu_topic.c_commu_topic_id})" target="_blank">URL</a></td>
     166</tr>
     167<form action="./" method="post">
     168<tr>
     169<th><input type="hidden" name="sessid" value="({$PHPSESSID})">
     170<input type="hidden" name="m" value="({$module_name})">
     171<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_commu_topic','do')})">
     172<input type="hidden" name="target_c_commu_topic_id" value="({$c_commu_topic.c_commu_topic_id})">
     173&nbsp;</th>
     174<td><input type="submit" class="submit" value="削除する"></td>
     175</tr>
     176</form>
     177</table>
     178({/if})
     179<hr>
     180({* トピックコメント *})
     181<h3>トピックコメント</h3>
     182<div class="caution">
     183トピックコメントで表示しているIDを入力してください<br>
     184</div>
     185<form action="./" method="get">
     186<p>
     187<input type="hidden" name="m" value="({$module_name})">
     188<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_kakikomi')})">
     189ID:<input type="text" name="target_c_commu_topic_comment_id" value="({$requests.target_c_commu_topic_comment_id})" size="6">
     190<input type="submit" class="submit" value="確認">
     191</p>
     192</form>
     193
     194({if $c_commu_topic_comment})
     195<table>
     196<tr>
     197<th>本文</th>
     198<td style="width:360px">({$c_commu_topic_comment.body|t_url2a|nl2br})</td>
     199</tr>
     200<tr>
     201<th>URL</th>
     202<td><a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=({$c_commu_topic_comment.c_commu_topic_id})" target="_blank">URL</a></td>
     203</tr>
     204<form action="./" method="post">
     205<tr>
     206<th><input type="hidden" name="sessid" value="({$PHPSESSID})">
     207<input type="hidden" name="m" value="({$module_name})">
     208<input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_kakikomi_c_commu_topic_comment','do')})">
     209<input type="hidden" name="target_c_commu_topic_comment_id" value="({$c_commu_topic_comment.c_commu_topic_comment_id})">
     210&nbsp;</th>
     211<td><input type="submit" class="submit" value="削除する"></td>
     212</tr>
     213</form>
     214</table>
     215({/if})
     216<br><br>
     217
     218({$inc_footer|smarty:nodefaults})
  • webapp/modules/admin/templates/diary_comment_list.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3({if $msg})
     4<div class="caution">({$msg})</div>
     5({/if})
     6<b>日記コメント</b><br><br>
     7
     8<form action="./" method="GET">
     9<input type="hidden" name="m" value="({$module_name})">
     10<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_comment_list','page')})">
     11<input type="text" name="keyword" value="({$keyword})">
     12<input type="submit" value="検索">
     13</form>
     14<table border="0">
     15<tr><td>
     16({$total_num})件中 ({$start_num})-({$end_num})件目を表示しています
     17({if $page_list})<br>({foreach from=$page_list item=item})({if $page!=$item})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_comment_list','page')})&page=({$item})&keyword=({$keyword_encode})">({$item})</a>({else})<b>({$item})</b>({/if})&nbsp;&nbsp;({/foreach})&nbsp;({/if})
     18({if $prev})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_comment_list','page')})&page=({$page-1})&keyword=({$keyword_encode})"><<前</a> ({/if})
     19({if $next})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_comment_list','page')})&page=({$page+1})&keyword=({$keyword_encode})">次>></a>({/if})
     20</td></tr>
     21
     22({foreach from=$diary_comment_list item=item})
     23<tr><td>
     24<table border="1" width="700" cellpadding="6">
     25<tr>
     26<td width="150">ID</td>
     27<td>
     28({$item.c_diary_comment_id})
     29</td></tr>
     30<tr>
     31<td width="150">タイトル</td>
     32<td>
     33<a href="({t_url _absolute=1 m=pc a=page_fh_diary})&target_c_diary_id=({$item.c_diary_id})" target="_blank">({$item.subject})</a> (コメント({$item.count_comments})件)
     34</td></tr>
     35<tr>
     36<td width="150">作成者</td>
     37<td>
     38<a href="({t_url _absolute=1 m=pc a=page_f_home})&target_c_member_id=({$item.c_member_id})" target="_blank">({$item.c_member.nickname})</a>
     39</td></tr>
     40<tr>
     41<td width="150">作成日</td>
     42<td>
     43({$item.r_datetime})
     44</td></tr>
     45<tr>
     46<td width="150">日記コメント本文</td>
     47<td width="500">
     48({$item.body|nl2br})
     49<tr><td>
     50</table>
     51</td></tr>
     52({/foreach})
     53
     54</table>
     55
     56({$inc_footer|smarty:nodefaults})
     57 No newline at end of file
  • webapp/modules/admin/templates/diary_list.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3({if $msg})
     4<div class="caution">({$msg})</div>
     5({/if})
     6<b>日記</b><br><br>
     7
     8<form action="./" method="GET">
     9<input type="hidden" name="m" value="({$module_name})">
     10<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_list','page')})">
     11<input type="text" name="keyword" value="({$keyword})">
     12<input type="submit" value="検索">
     13</form>
     14<table border="0">
     15<tr><td>
     16({$total_num})件中 ({$start_num})-({$end_num})件目を表示しています
     17({if $page_list})<br>({foreach from=$page_list item=item})({if $page!=$item})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_list','page')})&page=({$item})&keyword=({$keyword_encode})">({$item})</a>({else})<b>({$item})</b>({/if})&nbsp;&nbsp;({/foreach})&nbsp;({/if})
     18({if $prev})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_list','page')})&page=({$page-1})&keyword=({$keyword_encode})"><<前</a> ({/if})
     19({if $next})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('diary_list','page')})&page=({$page+1})&keyword=({$keyword_encode})">次>></a>({/if})
     20</td></tr>
     21
     22({foreach from=$diary_list item=item})
     23<tr><td>
     24<table border="1" width="700" cellpadding="6">
     25<tr>
     26<td width="150">ID</td>
     27<td>
     28({$item.c_diary_id})
     29</td></tr>
     30<tr>
     31<td width="150">タイトル</td>
     32<td>
     33<a href="({t_url _absolute=1 m=pc a=page_fh_diary})&target_c_diary_id=({$item.c_diary_id})" target="_blank">({$item.subject})</a> (コメント({$item.count_comments})件)
     34</td></tr>
     35<tr>
     36<td width="150">作成者</td>
     37<td>
     38<a href="({t_url _absolute=1 m=pc a=page_f_home})&target_c_member_id=({$item.c_member_id})" target="_blank">({$item.c_member.nickname})</a>
     39</td></tr>
     40<tr>
     41<td width="150">作成日</td>
     42<td>
     43({$item.r_datetime})
     44</td></tr>
     45<tr>
     46<td width="150">日記本文</td>
     47<td width="500">
     48({$item.body|nl2br})
     49<tr><td>
     50</table>
     51</td></tr>
     52({/foreach})
     53
     54</table>
     55
     56({$inc_footer|smarty:nodefaults})
     57 No newline at end of file
  • webapp/modules/admin/templates/topic_comment_list.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3({if $msg})
     4<div class="caution">({$msg})</div>
     5({/if})
     6<b>コミュニティのトピック・イベントコメント</b><br><br>
     7
     8<form action="./" method="GET">
     9<input type="hidden" name="m" value="({$module_name})">
     10<input type="hidden" name="a" value="page_({$hash_tbl->hash('topic_comment_list','page')})">
     11<input type="text" name="keyword" value="({$keyword})">
     12<input type="submit" value="検索">
     13</form>
     14<table border="0">
     15<tr><td>
     16({$total_num})件中 ({$start_num})-({$end_num})件目を表示しています
     17({if $page_list})<br>({foreach from=$page_list item=item})({if $page!=$item})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_comment_list','page')})&page=({$item})&keyword=({$keyword_encode})">({$item})</a>({else})<b>({$item})</b>({/if})&nbsp;&nbsp;({/foreach})&nbsp;({/if})
     18({if $prev})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_comment_list','page')})&page=({$page-1})&keyword=({$keyword_encode})"><<前</a> ({/if})
     19({if $next})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_comment_list','page')})&page=({$page+1})&keyword=({$keyword_encode})">次>></a>({/if})
     20</td></tr>
     21({foreach from=$topic_comment_list item=item})
     22<tr><td>
     23<table border="1" width="700" cellpadding="6">
     24<tr>
     25<td width="150">ID</td>
     26<td>
     27({$item.c_commu_topic_comment_id})
     28</td></tr>
     29<tr>
     30<td width="150">トピック名</td>
     31<td>
     32<a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&target_c_commu_topic_id=({$item.c_commu_topic_id})" target="_blank">({$item.topic_name})</a> (({$item.count_comments}))
     33</td></tr>
     34<tr>
     35<td width="150">コミュニティ名</td>
     36<td>
     37<a href="({t_url _absolute=1 m=pc a=page_c_home})&target_c_commu_id=({$item.c_commu_id})" target="_blank">({$item.commu_name})</a>
     38</td></tr>
     39<tr>
     40<td width="150">コメント主</td>
     41<td>
     42<a href="({t_url _absolute=1 m=pc a=page_f_home})&target_c_member_id=({$item.c_member_id})" target="_blank">({$item.nickname})</a>
     43</td></tr>
     44<tr>
     45<td width="150">作成日</td>
     46<td>
     47({$item.r_datetime})
     48</td></tr>
     49<tr>
     50<td width="150">トピックコメント本文</td>
     51<td width="500">
     52({$item.body|nl2br})
     53<tr><td>
     54</table>
     55</td></tr>
     56({/foreach})
     57
     58</table>
     59
     60({$inc_footer|smarty:nodefaults})
     61 No newline at end of file
  • webapp/modules/admin/templates/topic_list.tpl

     
     1({$inc_header|smarty:nodefaults})
     2
     3({if $msg})
     4<div class="caution">({$msg})</div>
     5({/if})
     6<b>コミュニティのトピック・イベント</b><br><br>
     7
     8<form action="./" method="GET">
     9<input type="hidden" name="m" value="({$module_name})">
     10<input type="hidden" name="a" value="page_({$hash_tbl->hash('topic_list','page')})">
     11<input type="text" name="keyword" value="({$keyword})">
     12<input type="submit" value="検索">
     13</form>
     14<table border="0">
     15<tr><td>
     16({$total_num})件中 ({$start_num})-({$end_num})件目を表示しています
     17({if $page_list})<br>({foreach from=$page_list item=item})({if $page!=$item})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_list','page')})&page=({$item})&keyword=({$keyword_encode})">({$item})</a>({else})<b>({$item})</b>({/if})&nbsp;&nbsp;({/foreach})&nbsp;({/if})
     18({if $prev})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_list','page')})&page=({$page-1})&keyword=({$keyword_encode})"><<前</a> ({/if})
     19({if $next})<a href="?m=({$module_name})&a=page_({$hash_tbl->hash('topic_list','page')})&page=({$page+1})&keyword=({$keyword_encode})">次>></a>({/if})
     20</td></tr>
     21({foreach from=$topic_list item=item})
     22<tr><td>
     23<table border="1" width="700" cellpadding="6">
     24<tr>
     25<td width="150">ID</td>
     26<td>
     27({$item.c_commu_topic_id})
     28</td></tr>
     29<tr>
     30<td width="150">トピック名</td>
     31<td>
     32<a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&target_c_commu_topic_id=({$item.c_commu_topic_id})" target="_blank">({$item.topic_name})</a> (({$item.count_comments}))
     33</td></tr>
     34<tr>
     35<td width="150">コミュニティ名</td>
     36<td>
     37<a href="({t_url _absolute=1 m=pc a=page_c_home})&target_c_commu_id=({$item.c_commu_id})" target="_blank">({$item.commu_name})</a>
     38</td></tr>
     39<tr>
     40<td width="150">トピック主</td>
     41<td>
     42<a href="({t_url _absolute=1 m=pc a=page_f_home})&target_c_member_id=({$item.c_member_id})" target="_blank">({$item.nickname})</a>
     43</td></tr>
     44<tr>
     45<td width="150">作成日</td>
     46<td>
     47({$item.r_datetime})
     48</td></tr>
     49<tr>
     50<td width="150">トピック本文</td>
     51<td width="500">
     52({$item.body|nl2br})
     53<tr><td>
     54</table>
     55</td></tr>
     56({/foreach})
     57
     58</table>
     59
     60({$inc_footer|smarty:nodefaults})
     61 No newline at end of file
  • webapp/init.inc

     
    9797ini_set('session.use_cookies', '1');
    9898ini_set('session.use_only_cookies', '1');
    9999
     100$url = parse_url(OPENPNE_URL);
     101if (substr($url['path'], -1) != '/') {
     102    $url['path'] .= '/';
     103}
     104ini_set('session.cookie_path', $url['path']);
     105
    100106// セッション情報をDBに保存
    101107OpenPNE_Auth::set_session_save_handler();
    102108
     
    122128ini_set('arg_separator.output', '&');
    123129
    124130// ファンクションキャッシュ有効期限用定数
     131define('OPENPNE_FUNCTION_CACHE_LIFETIME_FAST', 300);
    125132define('OPENPNE_FUNCTION_CACHE_LIFETIME_SHORT' , 1200);
    126133define('OPENPNE_FUNCTION_CACHE_LIFETIME_LONG' , 3600);
    127134
  • webapp/version.php

     
    1 <?php define('OPENPNE_VERSION', '2.5.2'); ?>
     1<?php define('OPENPNE_VERSION', '2.5.3'); ?>