Skip to content

Commit bdc09d7

Browse files
committed
Update Data demo
1 parent ce8360d commit bdc09d7

19 files changed

+486
-226
lines changed

assets/news/nukeviet-cms.jpg

3.54 KB
Loading
3.96 KB
Loading

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"true/punycode": "^2.0"
3535
},
3636
"require-dev": {
37+
"jasig/phpcas": "*"
3738
}
3839
}

install/data_vi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
(4, 1, 1, 'Logo và tên gọi NukeViet', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=logo-va-ten-goi-nukeviet" . $global_config['rewrite_exturl'] . "', '', '', 3, 4, 1, '', '6', 'about', 'logo-va-ten-goi-nukeviet" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
348348
(5, 1, 1, 'Giấy phép sử dụng NukeViet', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=giay-phep-su-dung-nukeviet" . $global_config['rewrite_exturl'] . "', '', '', 4, 5, 1, '', '6', 'about', 'giay-phep-su-dung-nukeviet" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
349349
(6, 1, 1, 'Những tính năng của NukeViet CMS 4.0', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=nhung-tinh-nang-cua-nukeviet-cms-4-0" . $global_config['rewrite_exturl'] . "', '', '', 5, 6, 1, '', '6', 'about', 'nhung-tinh-nang-cua-nukeviet-cms-4-0" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
350-
(7, 1, 1, 'Các yêu cầu cài đặt', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=cac-yeu-cau-cai-dat" . $global_config['rewrite_exturl'] . "', '', '', 6, 7, 1, '', '6', 'about', 'cac-yeu-cau-cai-dat" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
350+
(7, 1, 1, 'Yêu cầu sử dụng NukeViet 4', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=Yeu-cau-su-dung-NukeViet-4" . $global_config['rewrite_exturl'] . "', '', '', 6, 7, 1, '', '6', 'about', 'cac-yeu-cau-cai-dat" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
351351
(8, 1, 1, 'Giới thiệu về Công ty cổ phần phát triển nguồn mở Việt Nam', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=gioi-thieu-ve-cong-ty-co-phan-phat-trien-nguon-mo-viet-nam" . $global_config['rewrite_exturl'] . "', '', '', 7, 8, 1, '', '6', 'about', 'gioi-thieu-ve-cong-ty-co-phan-phat-trien-nguon-mo-viet-nam" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
352352
(9, 1, 1, 'Ủng hộ, hỗ trợ và tham gia phát triển NukeViet', '" . NV_BASE_SITEURL . "index.php?language=vi&nv=about&op=ung-ho-ho-tro-va-tham-gia-phat-trien-nukeviet" . $global_config['rewrite_exturl'] . "', '', '', 8, 9, 1, '', '6', 'about', 'ung-ho-ho-tro-va-tham-gia-phat-trien-nukeviet" . $global_config['rewrite_exturl'] . "', 1, '', 0, 1),
353353
(10, 0, 1, 'Tin Tức', '" . NV_BASE_SITEURL . "index.php?language=" . $lang_data . "&nv=news', '', '', 2, 10, 0, '11,12,13,14,15,16,17', '6', 'news', '', 1, '', 1, 1),

modules/news/admin/content.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@
4747
$mk = nv_mkdir(NV_UPLOADS_REAL_DIR . '/' . $cp, $p);
4848
if ($mk[0] > 0) {
4949
$upload_real_dir_page = $mk[2];
50-
$db->query("INSERT INTO " . NV_UPLOAD_GLOBALTABLE . "_dir (dirname, time) VALUES ('" . NV_UPLOADS_DIR . "/" . $cp . $p . "', 0)");
50+
try {
51+
$db->query("INSERT INTO " . NV_UPLOAD_GLOBALTABLE . "_dir (dirname, time) VALUES ('" . NV_UPLOADS_DIR . "/" . $cp . $p . "', 0)");
52+
}
53+
catch (PDOException $e) {
54+
trigger_error($e->getMessage());
55+
}
5156
}
5257
} elseif (! empty($p)) {
5358
$upload_real_dir_page = NV_UPLOADS_REAL_DIR . '/' . $cp . $p;
@@ -1023,4 +1028,4 @@
10231028

10241029
include NV_ROOTDIR . '/includes/header.php';
10251030
echo nv_admin_theme($contents);
1026-
include NV_ROOTDIR . '/includes/footer.php';
1031+
include NV_ROOTDIR . '/includes/footer.php';

modules/news/global.functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
function nv_set_status_module()
2626
{
27-
global $db, $module_name, $module_data, $global_config;
27+
global $nv_Cache, $db, $module_name, $module_data, $global_config;
2828

2929
$check_run_cronjobs = NV_ROOTDIR . '/' . NV_LOGS_DIR . '/data_logs/cronjobs_' . md5($module_data . 'nv_set_status_module' . $global_config['sitekey']) . '.txt';
3030
$p = NV_CURRENTTIME - 300;

modules/news/language/data_vi.php

+434-180
Large diffs are not rendered by default.

modules/page/language/data_vi.php

+38-38
Large diffs are not rendered by default.

modules/voting/language/data_vi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020

2121
$sth = $db->prepare("INSERT INTO " . $db_config['prefix'] . "_" . $lang . "_" . $module_data . " VALUES (:vid, :question, '', 1, 1, '6', 1275318563, 0, 1)");
2222
$sth->bindValue(':vid', 2, PDO::PARAM_INT);
23-
$sth->bindValue(':question', 'Bạn biết gì về NukeViet 3?', PDO::PARAM_STR);
23+
$sth->bindValue(':question', 'Bạn biết gì về NukeViet 4?', PDO::PARAM_STR);
2424
$sth->execute();
2525

2626
$sth->bindValue(':vid', 3, PDO::PARAM_INT);
27-
$sth->bindValue(':question', 'Bạn quan tâm gì nhất ở mã nguồn mở?', PDO::PARAM_STR);
27+
$sth->bindValue(':question', 'Lợi ích của phần mềm nguồn mở là gì?', PDO::PARAM_STR);
2828
$sth->execute();
2929

3030
$sth = $db->prepare("INSERT INTO " . $db_config['prefix'] . "_" . $lang . "_" . $module_data . "_rows VALUES (?, ?, ?, ?, ?)");
3131
$sth->execute(array(5, 2, 'Một bộ sourcecode cho web hoàn toàn mới.', '', 0));
3232
$sth->execute(array(6, 2, 'Mã nguồn mở, sử dụng miễn phí.', '', 0));
33-
$sth->execute(array(7, 2, 'Sử dụng xHTML, CSS và hỗ trợ Ajax', '', 0));
33+
$sth->execute(array(7, 2, 'Sử dụng HTML5, CSS3 và hỗ trợ Ajax', '', 0));
3434
$sth->execute(array(8, 2, 'Tất cả các ý kiến trên', '', 0));
3535
$sth->execute(array(9, 3, 'Liên tục được cải tiến, sửa đổi bởi cả thế giới.', '', 0));
3636
$sth->execute(array(10, 3, 'Được sử dụng miễn phí không mất tiền.', '', 0));
3737
$sth->execute(array(11, 3, 'Được tự do khám phá, sửa đổi theo ý thích.', '', 0));
3838
$sth->execute(array(12, 3, 'Phù hợp để học tập, nghiên cứu vì được tự do sửa đổi theo ý thích.', '', 0));
39-
$sth->execute(array(13, 3, 'Tất cả các ý kiến trên', '', 0));
39+
$sth->execute(array(13, 3, 'Tất cả các ý kiến trên', '', 0));
12.9 KB
Loading

uploads/about/nukevietcms-180x84.png

11.7 KB
Loading

uploads/about/nukevietcms.png

83.7 KB
Loading
12.8 KB
Loading
13 KB
Loading

uploads/about/nukevietvn.png

79.1 KB
Loading

uploads/about/nukevietvn_180x84.png

11.3 KB
Loading

uploads/about/w.png

11.9 KB
Loading

uploads/news/nukeviet-cms.jpg

81.5 KB
Loading
210 KB
Loading

0 commit comments

Comments
 (0)