@@ 63-83 (lines=21) @@ | ||
60 | // query (added 86400 second margin "begin" & "end") |
|
61 | $result = $db->query('SELECT title,lid,`date` FROM ' . $db->prefix("myalbum{$mydirnumber}_photos") . " WHERE ($whr_cid) AND `date` >= $range_start_s AND `date` < $range_end_s AND `status` > 0"); |
|
62 | ||
63 | while (list($title, $id, $server_time) = $db->fetchRow($result)) { |
|
64 | $user_time = $server_time + $tzoffset_s2u; |
|
65 | if (date('j', $user_time) != $this->date) { |
|
66 | continue; |
|
67 | } |
|
68 | $target_date = date('j', $user_time); |
|
69 | $tmp_array = array( |
|
70 | 'dotgif' => $plugin['dotgif'], |
|
71 | 'dirname' => $plugin['dirname'], |
|
72 | 'link' => XOOPS_URL . "/modules/{$plugin['dirname']}/photo.php?lid=$id&caldate={$this->year}-{$this->month}-$target_date", |
|
73 | 'id' => $id, |
|
74 | 'server_time' => $server_time, |
|
75 | 'user_time' => $user_time, |
|
76 | 'name' => 'lid', |
|
77 | 'title' => $myts->htmlSpecialChars($title), |
|
78 | 'description' => '' |
|
79 | ); |
|
80 | ||
81 | // multiple gifs allowed per a plugin & per a day |
|
82 | $plugin_returns[$target_date][] = $tmp_array; |
|
83 | } |
|
84 |
@@ 48-68 (lines=21) @@ | ||
45 | // query (added 86400 second margin "begin" & "end") |
|
46 | $result = $db->query('SELECT title,lid,`date`,cid FROM ' . $db->prefix('mydownloads_downloads') . " WHERE `date` >= $range_start_s AND `date` < $range_end_s AND `status` > 0"); |
|
47 | ||
48 | while (list($title, $id, $server_time, $cid) = $db->fetchRow($result)) { |
|
49 | $user_time = $server_time + $tzoffset_s2u; |
|
50 | if (date('j', $user_time) != $this->date) { |
|
51 | continue; |
|
52 | } |
|
53 | $target_date = date('j', $user_time); |
|
54 | $tmp_array = array( |
|
55 | 'dotgif' => $plugin['dotgif'], |
|
56 | 'dirname' => $plugin['dirname'], |
|
57 | 'link' => XOOPS_URL . "/modules/{$plugin['dirname']}/singlefile.php?lid=$id&cid=$cid&caldate={$this->year}-{$this->month}-$target_date", |
|
58 | 'id' => $id, |
|
59 | 'server_time' => $server_time, |
|
60 | 'user_time' => $user_time, |
|
61 | 'name' => 'lid', |
|
62 | 'title' => $myts->htmlSpecialChars($title), |
|
63 | 'description' => '' |
|
64 | ); |
|
65 | ||
66 | // multiple gifs allowed per a plugin & per a day |
|
67 | $plugin_returns[$target_date][] = $tmp_array; |
|
68 | } |
|
69 |
@@ 48-68 (lines=21) @@ | ||
45 | // query (added 86400 second margin "begin" & "end") |
|
46 | $result = $db->query('SELECT title,lid,`date`,cid FROM ' . $db->prefix('mylinks_links') . " WHERE `date` >= $range_start_s AND `date` < $range_end_s AND `status` > 0"); |
|
47 | ||
48 | while (list($title, $id, $server_time, $cid) = $db->fetchRow($result)) { |
|
49 | $user_time = $server_time + $tzoffset_s2u; |
|
50 | if (date('j', $user_time) != $this->date) { |
|
51 | continue; |
|
52 | } |
|
53 | $target_date = date('j', $user_time); |
|
54 | $tmp_array = array( |
|
55 | 'dotgif' => $plugin['dotgif'], |
|
56 | 'dirname' => $plugin['dirname'], |
|
57 | 'link' => XOOPS_URL . "/modules/{$plugin['dirname']}/singlelink.php?lid=$id&cid=$cid&caldate={$this->year}-{$this->month}-$target_date", |
|
58 | 'id' => $id, |
|
59 | 'server_time' => $server_time, |
|
60 | 'user_time' => $user_time, |
|
61 | 'name' => 'lid', |
|
62 | 'title' => $myts->htmlSpecialChars($title), |
|
63 | 'description' => '' |
|
64 | ); |
|
65 | ||
66 | // multiple gifs allowed per a plugin & per a day |
|
67 | $plugin_returns[$target_date][] = $tmp_array; |
|
68 | } |
|
69 |
@@ 48-68 (lines=21) @@ | ||
45 | // query (added 86400 second margin "begin" & "end") |
|
46 | $result = $db->query('SELECT title,lid,`time_update` FROM ' . $db->prefix('weblinks_link') . " WHERE `time_update` >= $range_start_s AND `time_update` < $range_end_s"); |
|
47 | ||
48 | while (list($title, $id, $server_time) = $db->fetchRow($result)) { |
|
49 | $user_time = $server_time + $tzoffset_s2u; |
|
50 | if (date('j', $user_time) != $this->date) { |
|
51 | continue; |
|
52 | } |
|
53 | $target_date = date('j', $user_time); |
|
54 | $tmp_array = array( |
|
55 | 'dotgif' => $plugin['dotgif'], |
|
56 | 'dirname' => $plugin['dirname'], |
|
57 | 'link' => XOOPS_URL . "/modules/{$plugin['dirname']}/singlelink.php?lid=$id&caldate={$this->year}-{$this->month}-$target_date", |
|
58 | 'id' => $id, |
|
59 | 'server_time' => $server_time, |
|
60 | 'user_time' => $user_time, |
|
61 | 'name' => 'lid', |
|
62 | 'title' => $myts->htmlSpecialChars($title), |
|
63 | 'description' => '' |
|
64 | ); |
|
65 | ||
66 | // multiple gifs allowed per a plugin & per a day |
|
67 | $plugin_returns[$target_date][] = $tmp_array; |
|
68 | } |
|
69 |
@@ 46-66 (lines=21) @@ | ||
43 | // query (added 86400 second margin "begin" & "end") |
|
44 | $result = $db->query('SELECT title,id,`stamp` FROM ' . $db->prefix('yomi_log') . " WHERE `stamp` >= $range_start_s AND `stamp` < $range_end_s"); |
|
45 | ||
46 | while (list($title, $id, $server_time) = $db->fetchRow($result)) { |
|
47 | $user_time = $server_time + $tzoffset_s2u; |
|
48 | if (date('j', $user_time) != $this->date) { |
|
49 | continue; |
|
50 | } |
|
51 | $target_date = date('j', $user_time); |
|
52 | $tmp_array = array( |
|
53 | 'dotgif' => $plugin['dotgif'], |
|
54 | 'dirname' => $plugin['dirname'], |
|
55 | 'link' => XOOPS_URL . "/modules/{$plugin['dirname']}/single_link.php?item_id=$id&caldate={$this->year}-{$this->month}-$target_date", |
|
56 | 'id' => $id, |
|
57 | 'server_time' => $server_time, |
|
58 | 'user_time' => $user_time, |
|
59 | 'name' => 'item_id', |
|
60 | 'title' => $myts->htmlSpecialChars($title), |
|
61 | 'description' => '' |
|
62 | ); |
|
63 | ||
64 | // multiple gifs allowed per a plugin & per a day |
|
65 | $plugin_returns[$target_date][] = $tmp_array; |
|
66 | } |
|
67 |