Skip to content

Commit a19b561

Browse files
committed
Restructuring of NukeViet directory
(need to reinstall the site)
1 parent de09fdb commit a19b561

File tree

879 files changed

+2411
-2540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

879 files changed

+2411
-2540
lines changed

.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ RewriteRule ^([a-zA-Z0-9-]+)$ /$1/ [L,R=301]
6767

6868
#nukeviet_rewrite_end
6969
##################################################################################
70+

admin/extensions/manage.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@
108108
{
109109
$files_folders[] = NV_ROOTDIR . '/' . NV_ADMINDIR . '/' . $row['basename'] . '/';
110110

111-
$langs_admin = nv_scandir( NV_ROOTDIR . '/language', '/^[a-z]{2}$/' );
111+
$langs_admin = nv_scandir( NV_ROOTDIR . '/includes/language', '/^[a-z]{2}$/' );
112112
foreach( $langs_admin as $langi )
113113
{
114-
if( file_exists( NV_ROOTDIR . '/language/' . $langi . '/admin_' . $row['basename'] . '.php' ) )
114+
if( file_exists( NV_ROOTDIR . '/includes/language/' . $langi . '/admin_' . $row['basename'] . '.php' ) )
115115
{
116-
$files_folders[] = NV_ROOTDIR . '/language/' . $langi . '/admin_' . $row['basename'] . '.php';
116+
$files_folders[] = NV_ROOTDIR . '/includes/language/' . $langi . '/admin_' . $row['basename'] . '.php';
117117
}
118118
}
119119
}

admin/index.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
exit();
2424
}
2525

26-
if( file_exists( NV_ROOTDIR . '/language/' . NV_LANG_INTERFACE . '/admin_global.php' ) )
26+
if( file_exists( NV_ROOTDIR . '/includes/language/' . NV_LANG_INTERFACE . '/admin_global.php' ) )
2727
{
28-
require NV_ROOTDIR . '/language/' . NV_LANG_INTERFACE . '/admin_global.php';
28+
require NV_ROOTDIR . '/includes/language/' . NV_LANG_INTERFACE . '/admin_global.php';
2929
}
30-
elseif( file_exists( NV_ROOTDIR . '/language/' . NV_LANG_DATA . '/admin_global.php' ) )
30+
elseif( file_exists( NV_ROOTDIR . '/includes/language/' . NV_LANG_DATA . '/admin_global.php' ) )
3131
{
32-
require NV_ROOTDIR . '/language/' . NV_LANG_DATA . '/admin_global.php';
32+
require NV_ROOTDIR . '/includes/language/' . NV_LANG_DATA . '/admin_global.php';
3333
}
34-
elseif( file_exists( NV_ROOTDIR . '/language/en/admin_global.php' ) )
34+
elseif( file_exists( NV_ROOTDIR . '/includes/language/en/admin_global.php' ) )
3535
{
36-
require NV_ROOTDIR . '/language/en/admin_global.php';
36+
require NV_ROOTDIR . '/includes/language/en/admin_global.php';
3737
}
3838

3939
include_once NV_ROOTDIR . '/includes/core/admin_functions.php';
@@ -111,17 +111,17 @@
111111
$include_file = NV_ROOTDIR . '/' . NV_ADMINDIR . '/' . $module_file . '/' . $op . '.php';
112112

113113
// Ket noi voi file ngon ngu cua module
114-
if( file_exists( NV_ROOTDIR . '/language/' . NV_LANG_INTERFACE . '/admin_' . $module_file . '.php' ) )
114+
if( file_exists( NV_ROOTDIR . '/includes/language/' . NV_LANG_INTERFACE . '/admin_' . $module_file . '.php' ) )
115115
{
116-
require NV_ROOTDIR . '/language/' . NV_LANG_INTERFACE . '/admin_' . $module_file . '.php';
116+
require NV_ROOTDIR . '/includes/language/' . NV_LANG_INTERFACE . '/admin_' . $module_file . '.php';
117117
}
118-
elseif( file_exists( NV_ROOTDIR . '/language/' . NV_LANG_DATA . '/admin_' . $module_file . '.php' ) )
118+
elseif( file_exists( NV_ROOTDIR . '/includes/language/' . NV_LANG_DATA . '/admin_' . $module_file . '.php' ) )
119119
{
120-
require NV_ROOTDIR . '/language/' . NV_LANG_DATA . '/admin_' . $module_file . '.php';
120+
require NV_ROOTDIR . '/includes/language/' . NV_LANG_DATA . '/admin_' . $module_file . '.php';
121121
}
122-
elseif( file_exists( NV_ROOTDIR . '/language/en/admin_' . $module_file . '.php' ) )
122+
elseif( file_exists( NV_ROOTDIR . '/includes/language/en/admin_' . $module_file . '.php' ) )
123123
{
124-
require NV_ROOTDIR . '/language/en/admin_' . $module_file . '.php';
124+
require NV_ROOTDIR . '/includes/language/en/admin_' . $module_file . '.php';
125125
}
126126
}
127127
}
@@ -134,10 +134,10 @@
134134

135135
if( $global_config['lang_multi'] )
136136
{
137-
$_language_array = nv_scandir( NV_ROOTDIR . '/language', '/^[a-z]{2}$/' );
137+
$_language_array = nv_scandir( NV_ROOTDIR . '/includes/language', '/^[a-z]{2}$/' );
138138
foreach( $_language_array as $lang_i )
139139
{
140-
if( file_exists( NV_ROOTDIR . '/language/' . $lang_i . '/global.php' ) )
140+
if( file_exists( NV_ROOTDIR . '/includes/language/' . $lang_i . '/global.php' ) )
141141
{
142142
$array_lang_admin[$lang_i] = $language_array[$lang_i]['name'];
143143
}

admin/language/delete.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
}
7373
}
7474

75-
if( is_dir( NV_ROOTDIR . '/language/' . $dirlang ) )
75+
if( is_dir( NV_ROOTDIR . '/includes/language/' . $dirlang ) )
7676
{
77-
$arrcrt = nv_deletefile( NV_ROOTDIR . '/language/' . $dirlang, true );
77+
$arrcrt = nv_deletefile( NV_ROOTDIR . '/includes/language/' . $dirlang, true );
7878

7979
if( $arrcrt[0] == 0 )
8080
{
@@ -132,9 +132,9 @@
132132

133133
$xtpl->parse( 'main' );
134134
$contents = $xtpl->text( 'main' );
135-
135+
136136
$page_title = $language_array[$dirlang]['name'] . ': ' . $lang_module['nv_admin_read'];
137-
137+
138138
include NV_ROOTDIR . '/includes/header.php';
139139
echo nv_admin_theme( $contents );
140140
include NV_ROOTDIR . '/includes/footer.php';

admin/language/download.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
}
4848
}
4949

50-
if( is_dir( NV_ROOTDIR . '/language/' . $dirlang ) )
50+
if( is_dir( NV_ROOTDIR . '/includes/language/' . $dirlang ) )
5151
{
52-
$allowfolder[] = NV_ROOTDIR . '/language/' . $dirlang;
52+
$allowfolder[] = NV_ROOTDIR . '/includes/language/' . $dirlang;
5353
}
5454

5555
//package js language
@@ -72,7 +72,7 @@
7272
$allowfolder[] = NV_ROOTDIR . '/js/language/' . $fjs;
7373
}
7474
}
75-
75+
7676
// Lang theme default
7777
if( file_exists( NV_ROOTDIR . '/themes/default/language/' . $dirlang . '.php' ) )
7878
{
@@ -81,7 +81,7 @@
8181
if( file_exists( NV_ROOTDIR . '/themes/default/language/admin_' . $dirlang . '.php' ) )
8282
{
8383
$allowfolder[] = NV_ROOTDIR . '/themes/default/language/admin_' . $dirlang . '.php';
84-
}
84+
}
8585

8686
// Lang theme mobile_default
8787
if( file_exists( NV_ROOTDIR . '/themes/mobile_default/language/' . $dirlang . '.php' ) )
@@ -92,7 +92,7 @@
9292
{
9393
$allowfolder[] = NV_ROOTDIR . '/themes/mobile_default/language/admin_' . $dirlang . '.php';
9494
}
95-
95+
9696
//package samples data
9797
if( file_exists( NV_ROOTDIR . '/install/data_' . $dirlang . '.php' ) )
9898
{

admin/language/main.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$page_title = $lang_module['nv_lang_data'];
1414

1515
$lang_module['nv_data_note'] = sprintf( $lang_module['nv_data_note'], NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=settings&' . NV_OP_VARIABLE . '=system' );
16-
$lang_array_exit = nv_scandir( NV_ROOTDIR . '/language', '/^[a-z]{2}+$/' );
16+
$lang_array_exit = nv_scandir( NV_ROOTDIR . '/includes/language', '/^[a-z]{2}+$/' );
1717

1818
$xtpl = new XTemplate( 'main.tpl', NV_ROOTDIR . '/themes/' . $global_config['module_theme'] . '/modules/' . $module_file );
1919
$xtpl->assign( 'LANG', $lang_module );

admin/language/read.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function nv_admin_read_lang( $dirlang, $module, $admin_file = 1 )
2626

2727
if( $module == 'global' and preg_match( '/^block\.global\.([a-zA-Z0-9\-\_]+)\.php$/', $admin_file, $m ) )
2828
{
29-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $admin_file;
29+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $admin_file;
3030
$admin_file = 'block.global.' . $m[1];
3131
}
3232
elseif( preg_match( '/^block\.(global|module)\.([a-zA-Z0-9\-\_]+)\_' . $dirlang . '\.php$/', $admin_file, $m ) )
@@ -36,15 +36,15 @@ function nv_admin_read_lang( $dirlang, $module, $admin_file = 1 )
3636
}
3737
elseif( $module == 'global' and $admin_file == 1 )
3838
{
39-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/admin_' . $module . '.php';
39+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/admin_' . $module . '.php';
4040
}
4141
elseif( $module == 'global' and $admin_file == 0 )
4242
{
43-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $module . '.php';
43+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $module . '.php';
4444
}
4545
elseif( $module == 'install' and $admin_file == 0 )
4646
{
47-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $module . '.php';
47+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $module . '.php';
4848
}
4949
elseif( in_array( $module, $modules_exit ) and $admin_file == 1 )
5050
{
@@ -54,10 +54,10 @@ function nv_admin_read_lang( $dirlang, $module, $admin_file = 1 )
5454
{
5555
$include_lang = NV_ROOTDIR . '/modules/' . $module . '/language/' . $dirlang . '.php';
5656
}
57-
elseif( file_exists( NV_ROOTDIR . '/language/' . $dirlang . '/admin_' . $module . '.php' ) )
57+
elseif( file_exists( NV_ROOTDIR . '/includes/language/' . $dirlang . '/admin_' . $module . '.php' ) )
5858
{
5959
$admin_file = 1;
60-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/admin_' . $module . '.php';
60+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/admin_' . $module . '.php';
6161
}
6262

6363
if( $include_lang != '' and file_exists( $include_lang ) )
@@ -221,7 +221,7 @@ function nv_admin_read_lang( $dirlang, $module, $admin_file = 1 )
221221

222222
if( $nv_Request->get_string( 'checksess', 'get' ) == md5( 'readallfile' . session_id() ) )
223223
{
224-
if( ! empty( $dirlang ) and is_dir( NV_ROOTDIR . '/language/' . $dirlang ) )
224+
if( ! empty( $dirlang ) and is_dir( NV_ROOTDIR . '/includes/language/' . $dirlang ) )
225225
{
226226
$array_filename = array();
227227

@@ -241,7 +241,7 @@ function nv_admin_read_lang( $dirlang, $module, $admin_file = 1 )
241241
$array_filename[] = str_replace( NV_ROOTDIR, '', str_replace( '\\', '/', $include_lang ) );
242242
}
243243

244-
$dirs = nv_scandir( NV_ROOTDIR . '/language/' . $dirlang, '/^block\.global\.([a-zA-Z0-9\-\_]+)\.php$/' );
244+
$dirs = nv_scandir( NV_ROOTDIR . '/includes/language/' . $dirlang, '/^block\.global\.([a-zA-Z0-9\-\_]+)\.php$/' );
245245
foreach( $dirs as $file_i )
246246
{
247247
nv_admin_read_lang( $dirlang, 'global', $file_i );

admin/language/setting.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
include NV_ROOTDIR . '/includes/footer.php';
4040
}
4141

42-
$lang_array_exit = nv_scandir( NV_ROOTDIR . '/language', '/^[a-z]{2}+$/' );
42+
$lang_array_exit = nv_scandir( NV_ROOTDIR . '/includes/language', '/^[a-z]{2}+$/' );
4343
$lang_array_data_exit = array();
4444

4545
$columns_array = $db->columns_array( NV_LANGUAGE_GLOBALTABLE . '_file' );
@@ -65,7 +65,7 @@
6565
$arr_lang_func = array();
6666
$check_lang_exit = false;
6767

68-
if( file_exists( NV_ROOTDIR . '/language/' . $key . '/global.php' ) )
68+
if( file_exists( NV_ROOTDIR . '/includes/language/' . $key . '/global.php' ) )
6969
{
7070
$check_lang_exit = true;
7171
$arr_lang_func[] = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=read&amp;dirlang=" . $key . "&amp;checksess=" . md5( "readallfile" . session_id() ) . "\">" . $lang_module['nv_admin_read_all'] . "</a>";

admin/language/write.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function nv_admin_write_lang( $dirlang, $idfile )
5858

5959
if( $module == 'global' and preg_match( '/^block\.global\.([a-zA-Z0-9\-\_]+)$/', $admin_file ) )
6060
{
61-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $admin_file . '.php';
61+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $admin_file . '.php';
6262
}
6363
elseif( in_array( $module, $modules_exit ) and preg_match( '/^block\.(global|module)\.([a-zA-Z0-9\-\_]+)$/', $admin_file ) )
6464
{
@@ -74,20 +74,20 @@ function nv_admin_write_lang( $dirlang, $idfile )
7474
}
7575
elseif( $module == 'global' and $admin_file == 1 )
7676
{
77-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/admin_' . $module . '.php';
77+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/admin_' . $module . '.php';
7878
}
7979
elseif( $module == 'global' and $admin_file == 0 )
8080
{
81-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $module . '.php';
81+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $module . '.php';
8282
}
8383
elseif( $module == 'install' and $admin_file == 0 )
8484
{
85-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/' . $module . '.php';
85+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/' . $module . '.php';
8686
}
8787
else
8888
{
8989
$admin_file = 1;
90-
$include_lang = NV_ROOTDIR . '/language/' . $dirlang . '/admin_' . $module . '.php';
90+
$include_lang = NV_ROOTDIR . '/includes/language/' . $dirlang . '/admin_' . $module . '.php';
9191
}
9292

9393
if( $include_lang == '' )
@@ -221,7 +221,7 @@ function nv_admin_write_lang( $dirlang, $idfile )
221221
if( $nv_Request->isset_request( 'idfile,checksess', 'get' ) and $nv_Request->get_string( 'checksess', 'get' ) == md5( $nv_Request->get_int( 'idfile', 'get' ) . session_id() ) )
222222
{
223223
$idfile = $nv_Request->get_int( 'idfile', 'get' );
224-
nv_mkdir( NV_ROOTDIR . '/language/', $dirlang );
224+
nv_mkdir( NV_ROOTDIR . '/includes/language/', $dirlang );
225225
$content = nv_admin_write_lang( $dirlang, $idfile );
226226

227227
if( empty( $content ) )
@@ -251,7 +251,7 @@ function nv_admin_write_lang( $dirlang, $idfile )
251251

252252
if( $dirlang != '' )
253253
{
254-
nv_mkdir( NV_ROOTDIR . '/language/', $dirlang );
254+
nv_mkdir( NV_ROOTDIR . '/includes/language/', $dirlang );
255255

256256
$content = '';
257257
$array_filename = array();

admin/seotools/robots.php

-9
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,11 @@
9393
}
9494
else
9595
{
96-
$robots_data['/' . NV_CACHEDIR . '/'] = 0;
9796
$robots_data['/' . NV_DATADIR . '/'] = 0;
98-
$robots_data['/' . NV_EDITORSDIR . '/'] = 0;
9997
$robots_data['/includes/'] = 0;
10098
$robots_data['/install/'] = 0;
101-
$robots_data['/language/'] = 0;
102-
$robots_data['/' . NV_LOGS_DIR . '/'] = 0;
10399
$robots_data['/modules/'] = 0;
104100
$robots_data['/robots.php'] = 0;
105-
if( NV_SESSION_SAVE_PATH != '' )
106-
{
107-
$robots_data['/' . NV_SESSION_SAVE_PATH . '/'] = 0;
108-
}
109-
$robots_data['/tmp/'] = 0;
110101
$robots_data['/web.config'] = 0;
111102
}
112103
$robots_other[''] = 0;

admin/settings/cdn.php

-6
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@
1616
$allowzip = array();
1717
$allowzip[] = $dir . '/.htaccess';
1818
$allowzip[] = $dir . '/web.config';
19-
$allowzip[] = $dir . '/images/index.html';
20-
$allowzip[] = $dir . '/js/index.html';
2119
$allowzip[] = $dir . '/modules/index.html';
2220
$allowzip[] = $dir . '/themes/index.html';
2321
$allowzip[] = $dir . '/' . NV_EDITORSDIR . '/index.html';
2422
$dir_no_scan = array( NV_ROOTDIR . '/' . 'install', NV_ROOTDIR . '/' . NV_ADMINDIR, NV_ROOTDIR . '/' . NV_UPLOADS_DIR, NV_ROOTDIR . '/' . NV_FILES_DIR, NV_ROOTDIR . '/' . NV_LOGS_DIR, NV_ROOTDIR . '/' . NV_TEMP_DIR, NV_ROOTDIR . '/' . NV_DATADIR, NV_ROOTDIR . '/' . NV_CACHEDIR );
25-
if( NV_SESSION_SAVE_PATH != '' )
26-
{
27-
$dir_no_scan[] = NV_ROOTDIR . '/' . NV_SESSION_SAVE_PATH;
28-
}
2923
$error = array();
3024
//Ten thu muc luu data
3125
$stack[] = $dir;

admin/settings/ftp.php

-8
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
else
5757
{
5858
$list_valid = array( NV_CACHEDIR, NV_DATADIR, 'images', 'includes', 'js', 'language', NV_LOGS_DIR, 'modules', 'themes', NV_TEMP_DIR, NV_UPLOADS_DIR );
59-
if( NV_SESSION_SAVE_PATH != '' )
60-
{
61-
$list_valid[] = NV_SESSION_SAVE_PATH;
62-
}
6359
$ftp_root = $ftp->detectFtpRoot( $list_valid, NV_ROOTDIR );
6460

6561
if( $ftp_root === false )
@@ -103,10 +99,6 @@
10399
else
104100
{
105101
$check_files = array( NV_CACHEDIR, NV_DATADIR, 'images', 'includes', 'index.php', 'js', 'language', NV_LOGS_DIR, 'modules', 'themes', NV_TEMP_DIR );
106-
if( NV_SESSION_SAVE_PATH != '' )
107-
{
108-
$check_files[] = NV_SESSION_SAVE_PATH;
109-
}
110102
$list_files = $ftp->listDetail( $ftp_path, 'all' );
111103

112104
$a = 0;

admin/settings/main.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555
elseif( ! nv_is_url( $site_logo ) )
5656
{
57-
$array_config['site_logo'] = 'images/logo.png';
57+
$array_config['site_logo'] = NV_UPLOADS_DIR . '/logo.png';
5858
}
5959

6060
$array_config['site_home_module'] = nv_substr( $nv_Request->get_title( 'site_home_module', 'post', '', 1 ), 0, 255 );

admin/settings/system.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
$allow_sitelangs = array();
2727
foreach( $global_config['allow_sitelangs'] as $lang_i )
2828
{
29-
if( file_exists( NV_ROOTDIR . '/language/' . $lang_i . '/global.php' ) )
29+
if( file_exists( NV_ROOTDIR . '/includes/language/' . $lang_i . '/global.php' ) )
3030
{
3131
$allow_sitelangs[] = $lang_i;
3232
}

admin/siteinfo/checkchmod.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
if( defined( 'NV_IS_GODADMIN' ) )
1414
{
1515
$array_dir = array( NV_DATADIR, NV_LOGS_DIR, NV_LOGS_DIR . '/data_logs', NV_LOGS_DIR . '/dump_backup', NV_LOGS_DIR . '/error_logs', NV_LOGS_DIR . '/error_logs/errors256', NV_LOGS_DIR . '/error_logs/old', NV_LOGS_DIR . '/error_logs/tmp', NV_LOGS_DIR . '/ip_logs', NV_LOGS_DIR . '/ref_logs', NV_LOGS_DIR . '/voting_logs', NV_CACHEDIR, NV_UPLOADS_DIR, NV_TEMP_DIR, NV_FILES_DIR, NV_FILES_DIR . '/css' );
16-
if( NV_SESSION_SAVE_PATH != '' )
17-
{
18-
$array_dir[] = NV_SESSION_SAVE_PATH;
19-
}
20-
16+
2117
$error = array();
2218
$ftp_check_login = 0;
2319

admin/siteinfo/system_info.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,11 @@
7070
{
7171
if( preg_match( '/^([a-z0-9\_]+)$/', $modname ) )
7272
{
73-
$info['chmod']['field'][] = array( 'key' => NV_CACHEDIR . '/' .$modname, 'value' => ( is_writable( NV_ROOTDIR . '/' . NV_SESSION_SAVE_PATH ) ? $lang_module['chmod_noneed'] : $lang_module['chmod_need'] ) );
73+
$info['chmod']['field'][] = array( 'key' => NV_CACHEDIR . '/' .$modname, 'value' => ( is_writable( NV_CACHEDIR . '/' .$modname ) ? $lang_module['chmod_noneed'] : $lang_module['chmod_need'] ) );
7474
}
7575
}
7676
closedir( $dh );
7777
}
78-
if( NV_SESSION_SAVE_PATH != '' )
79-
{
80-
$info['chmod']['field'][] = array( 'key' => NV_SESSION_SAVE_PATH, 'value' => ( is_writable( NV_ROOTDIR . '/' . NV_SESSION_SAVE_PATH ) ? $lang_module['chmod_noneed'] : $lang_module['chmod_need'] ) );
81-
}
8278
}
8379

8480
$xtpl = new XTemplate( 'system_info.tpl', NV_ROOTDIR . '/themes/' . $global_config['module_theme'] . '/modules/' . $module_file );

0 commit comments

Comments
 (0)