Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
Fix version 0..2.05
Browse files Browse the repository at this point in the history
+ Compatible with NukeViet 4.1
  • Loading branch information
anhyeuviolet committed Oct 20, 2016
1 parent 1ea4fc2 commit 1c297db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
id="313"
type="module"
name="videos"
version="0.2.04"
version="0.2.05"

[author]
name="KENNY NGUYEN"
email="[email protected]"

[note]
text="Compatible with NukeViet 4 Final"
text="Compatible with NukeViet 4.1"
2 changes: 1 addition & 1 deletion modules/videos/blocks/global.block_cat_quickplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
6 changes: 3 additions & 3 deletions modules/videos/funcs/sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions modules/videos/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @Author KENNYNGUYEN ([email protected])
* @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!!!');
Expand All @@ -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 ([email protected])', // 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',
Expand Down

0 comments on commit 1c297db

Please sign in to comment.