diff --git a/config.ini b/config.ini index 4a2eb18..b104a2e 100644 --- a/config.ini +++ b/config.ini @@ -2,11 +2,11 @@ id="313" type="module" name="videos" -version="0.2.04" +version="0.2.05" [author] name="KENNY NGUYEN" email="nguyentiendat713@gmail.com" [note] -text="Compatible with NukeViet 4 Final" +text="Compatible with NukeViet 4.1" diff --git a/modules/videos/blocks/global.block_cat_quickplay.php b/modules/videos/blocks/global.block_cat_quickplay.php index 9693d32..62dfd90 100644 --- a/modules/videos/blocks/global.block_cat_quickplay.php +++ b/modules/videos/blocks/global.block_cat_quickplay.php @@ -201,7 +201,7 @@ function nv_block_videos_cat_quickplay($block_config) $href_vid = nv_get_video_href($l['vid_path'], $l['vid_type']); $xtpl->assign('ROW', $l); - $link_player = NV_BASE_SITEURL . $site_mods[$module]['module_file'] . '/player/' . rand(1000, 9999) . 0 . '-' . md5($l['id'] . session_id() . $global_config['sitekey']) . '-' . rand(1000, 9999) . $l['id'] . $global_config['rewrite_endurl']; + $link_player = NV_MY_DOMAIN . NV_BASE_SITEURL . $site_mods[$module]['module_file'] . '/player/' . rand(1000, 9999) . 0 . '-' . md5($l['id'] . session_id() . $global_config['sitekey']) . '-' . rand(1000, 9999) . $l['id'] . $global_config['rewrite_endurl']; $xtpl->assign('PLAYER', $link_player); } diff --git a/modules/videos/funcs/sitemap.php b/modules/videos/funcs/sitemap.php index bd87891..201749c 100644 --- a/modules/videos/funcs/sitemap.php +++ b/modules/videos/funcs/sitemap.php @@ -12,9 +12,9 @@ $url = array(); $cacheFile = NV_LANG_DATA . '_sitemap_' . NV_CACHE_PREFIX . '.cache'; -$pa = NV_CURRENTTIME - 7200; +$cacheTTL = 7200; -if (($cache = $nv_Cache->getItem($module_name, $cacheFile)) != false and filemtime(NV_ROOTDIR . '/' . NV_CACHEDIR . '/' . $module_name . '/' . $cacheFile) >= $pa) { +if (($cache = $nv_Cache->getItem($module_name, $cacheFile, $cacheTTL)) != false) { $url = unserialize($cache); } else { $db->sqlreset() @@ -36,7 +36,7 @@ } $cache = serialize($url); - $nv_Cache->setItem($module_name, $cacheFile, $cache); + $nv_Cache->setItem($module_name, $cacheFile, $cache, $cacheTTL); } nv_xmlSitemap_generate($url); diff --git a/modules/videos/version.php b/modules/videos/version.php index 3ea7846..09757da 100644 --- a/modules/videos/version.php +++ b/modules/videos/version.php @@ -5,7 +5,7 @@ * @Author KENNYNGUYEN (nguyentiendat713@gmail.com) * @Website tradacongnghe.com * @License GNU/GPL version 2 or any later version - * @Createdate Mon, 27 June 2016 08:00:00 GMT + * @Createdate Thursday, 20 October 2016 08:00:00 GMT */ if (! defined('NV_ADMIN') or ! defined('NV_MAINFILE')) die('Stop!!!'); @@ -17,10 +17,10 @@ 'submenu' => 'user-playlist,user-video,rss,search', 'is_sysmod' => 0, // 1:0 => Co phai la module he thong hay khong 'virtual' => 1, // 1:0 => Co cho phep ao hoa module hay khong - 'version' => '0.2.04', // Phien ban cua module - 'date' => 'Mon, 27 June 2016 08:00:00 GMT', // Ngay phat hanh phien ban + 'version' => '0.2.05', // Phien ban cua module + 'date' => 'Thursday, 20 October 2016 08:00:00 GMT', // Ngay phat hanh phien ban 'author' => 'KENNY NGUYEN (nguyentiendat713@gmail.com)', // Tac gia - 'note' => 'Compatible with NukeViet 4 Final', // Ghi chu + 'note' => 'Compatible with NukeViet 4.1', // Ghi chu 'uploads_dir' => array( $module_upload, $module_upload . '/img',