MÔ TẢ KỸ THUẬT MÃ NGUỒN MỞ NUKEVIET v3.x doc

60 278 1
MÔ TẢ KỸ THUẬT MÃ NGUỒN MỞ NUKEVIET v3.x doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

- http://nukeviet.vn NUKEVIET v3.x Trang I a) Template, theme: b) Module: c) Block: d) Crontjobs: a) b) II 10 10 a) 10 b) 11 c) 11 d) 12 e) SDL: 12 f) 13 III 14 14 20 Các h 24 26 a) 26 b) 28 IV 29 29 Themes: 30 a) 30 b) 30 c) 32 Modules: 32 a) 32 b) 33 c) 37 Blocks: 39 a) 39 b) 40 c) 41 46 a) 46 b) 47 47 29/08/2011 3:03:15 CH Trang 1/60 V VI VII VIII http://nukeviet.vn Viet: 49 50 50 51 51 odule block 52 52 53 Thông tin Admin 53 53 53 54 55 55 55 55 55 56 56 56 56 56 57 57 58 58 odule 58 58 59 59 59 60 29/08/2011 3:03:15 CH Trang 2/60 - http://nukeviet.vn I T a) Template, theme: theme: admin_default admin_full cho k b) Module: - - công ty Module cơng ty con, chúng ngồi 29/08/2011 3:03:15 CH ó Trang 3/60 - http://nukeviet.vn u ý: c) Block: te m NukeViet 3.0 hi File website Block HTML ch Block RSS cho phép d) Crontjobs: 29/08/2011 3:03:15 CH Trang 4/60 - http://nukeviet.vn 10 a) File mainfile.php File htaccess Charset Apache File CJzip.php File favicon.ico Các file robots.php, robots.txt, web.config File service_shops_nganluong.php File File update_revision.php b) i editors, modules) file index.php index.php ckeditor modules ii iii banners), file config_global.php 29/08/2011 3:03:15 CH Trang 5/60 - http://nukeviet.vn iv Css Dcache Images Js News v images: vi blocks class : array2xml.class, checkurl.class, crypt.class, Diagnostic.class, download.class, error.class, flood.class core cronjobs fonts ini ip_files keywords phpmailer phpmailer phpsvnclient 29/08/2011 3:03:15 CH Trang 6/60 - http://nukeviet.vn utf8 -8 Các file: bots.php constants.php footer.php, header.php functions.php getloadavg.php ini.php $sys_info language.php openid.php request_uri.php $_GET rewrite.php, rewrite_index.php, rewrite_language.php NukeViet sqldata.php timezone.php vii viii : : ix : Ngôn global.php, admin_global.php admin_ten-module.php block.ten-block.php x xi : : xii 29/08/2011 3:03:15 CH Trang 7/60 - xiii http://nukeviet.vn :C xiv xv II : constants.php define( "NV_CONFIG_FILENAME", "config.php" ); define( "NV_CONFIG_FILENAME", "hh/dfggfd.nuke" ); dfggfd.nuke define( "NV_ADMINDIR", "nukemin" ); define( "NV_EDITORSDIR", "admin/editors" ); define( "DIR_FORUM", "forum" ); define( "NV_UPLOADS_DIR", "uploads" ); define( "NV_FILES_DIR", "files" ); define( "NV_BANNER_DIR", "banners" ); define( "NV_LOGS_DIR", "logs" ); define( " NV_TEMP_DIR ", "tmp" ); define( " NV_SESSION_SAVE_PATH ", " sess" ); 29/08/2011 3:03:15 CH Trang 8/60 - http://nukeviet.vn define( "NV_CACHEDIR", "cache" ); define( "NV_DATADIR", "data" ); define( "NV_TEMPNAM_PREFIX", "nv_" ); Tên file error_log: define( 'NV_ERRORLOGS_FILENAME', 'error_log' ); define( "NV_LOGS_EXT", "log" ); : define( "NV_NAME_VARIABLE", "nv" ); define( "NV_OP_VARIABLE", "op" ); define( "NV_LANG_VARIABLE", "language" ); define( "NV_ADMINRELOGIN_VARIABLE", "adminrelogin" ); dmin: define( "NV_ADMINRELOGIN_MAX", ); define( "NV_ADMIN_CHECK_PASS_TIME", 3600 ); :define( 'NV_LIVE_COOKIE_TIME', 31536000 ); define( 'NV_LIVE_SESSION_TIME', ); define( 'ZLIB_OUTPUT_COMPRESSION_LEVEL', ); u: define( 'NV_CRYPT_SHA1', ); - mã hóa md5, 2- mã hóa sha1 define( 'NV_UPASSMAX', 20 ); define( 'NV_UPASSMIN', ); define( 'NV_UNICKMAX', 20 ); define( 'NV_UNICKMIN', ); define( 'NV_GFX_NUM', ); define( 'NV_GFX_WIDTH', 120 ); define( 'NV_GFX_HEIGHT', 25 ); define( 'NV_ONLINE_UPD_TIME', 300 ); define( 'NV_IS_FLOOD_BLOCKER', ); define( "NV_ANTI_IFRAME", ); 29/08/2011 3:03:15 CH Trang 9/60 - http://nukeviet.vn $openid_servers vào file openid.php, 'identity' Các nhà , -nha-cungthemes/ten-theme/images/users/ : a) : NukeViet lood cho website, nhiên dòng: //Co bat tinh nang chong flood hay khong define( 'NV_IS_FLOOD_BLOCKER', ); 29/08/2011 3:03:15 CH Trang 10/60 - http://nukeviet.vn $xtpl->assign( 'ROW', $l ); if ( ! empty( $l['thumb'] ) ) $xtpl->parse( 'main.loop.img' ); $bg = ( $i % == ) ? "bg" : ""; $xtpl->assign( 'bg', $bg ); $i ++; $xtpl->parse( 'main.loop' ); } $xtpl->assign( 'HTML_CONTENT', $html ); $xtpl->parse( 'main' ); return $xtpl->text( 'main' ); } } : ck, tên block array ( 'blockid' => 2, 'numrow' => 5, 'bid' => '120', 'module' => 'news', 'block_name' => 'global.block_blocknews', ) Cronjobs ( ): a) Các cro xóa chúng cronjobs cronjobs cron_ cronjobs cron_ 29/08/2011 3:03:15 CH Trang 46/60 - b) http://nukeviet.vn t crontjob: if ( ! defined( 'NV_IS_CRON' ) ) die( 'Stop!!!' ); T - g: M $my_head = "\n"; 29/08/2011 3:03:15 CH Trang 47/60 - http://nukeviet.vn $my_footer = "\n"; if ( defined( 'NV_EDITOR' ) ) { require_once ( NV_ROOTDIR '/' NV_EDITORSDIR '/' NV_EDITOR '/nv.php' ); } if ( defined( 'NV_EDITOR' ) and nv_function_exists( 'nv_aleditor' ) ) { $data = nv_aleditor( 'description', '100%', '200px', $data); } $("#selectimages").click( function() { nv_open_browse_file( "{NV_BASE_ADMINURL}index.php?{NV_NAME_VARIABLE}=upload&popup=1&area=ima ges&path={IMG_DIR}&type=image", "NVImg", "850", "500", "resizable=no,scrollbars=no,toolbar=no,location=no,status=no" ); return false; }); $("#selecteduid").click( function() { nv_open_browse_file( "{NV_BASE_ADMINURL}index.php?" + nv_name_variable + "=users&" + nv_fc_variable + "=getuserid&area=userid", "NVImg", "850", "600", "resizable=no,scrollbars=no,toolbar=no,location=no,status=no" ); return false; }); NukeViet $_GET['second'] $_GET['second'] != 'crontjobs' $xtpl->assign( 'THEME_IMG_CRONJOBS', NV_BASE_SITEURL "index.php?second=cronjobs&p=" nv_genpass() ); 29/08/2011 3:03:15 CH Trang 48/60 - http://nukeviet.vn $xtpl->out( 'main' ); return $xtpl->text( 'main' ); echo $sitecontent; echo $sitecontent; $client_info cho function nv_site_theme file theme.php Trong file theme.php thay dòng: $xtpl->assign( 'THEME_SEARCH_SUBMIT_ONCLICK', "nv_search_submit('topmenu_search_query', 'topmenu_search_submit', " NV_MIN_SEARCH_LENGTH ", " NV_MAX_SEARCH_LENGTH ");" ); $xtpl->assign( 'THEME_SEARCH_SUBMIT_ONCLICK', "nv_search_submit('topmenu_search_query', 'topmenu_search_checkss', 'topmenu_search_submit', " NV_MIN_SEARCH_LENGTH ", " NV_MAX_SEARCH_LENGTH ");" ); $xtpl->assign( 'CHECKSS', md5( $client_info['session_id'] $global_config['sitekey'] ) ); Trong /themes/default/layout/header.tpl 29/08/2011 3:03:15 CH Trang 49/60 - http://nukeviet.vn e Khi cho mo 7.2 \language\vi\global.php dòng 27: 29/08/2011 3:03:15 CH Trang 50/60 - http://nukeviet.vn - 49: “%1\$s< “%2\ “%1\$s” “%2\$d” - ' " \ \' \" $lang_translator['author'] = "VINADES.,JSC (contact@vinades.vn)"; $lang_translator['createdate'] = "04/03/2010, 15:22"; $lang_translator['copyright'] = "@Copyright (C) 2010 VINADES.,JSC All rights reserved"; $lang_translator['info'] = ""; V C 29/08/2011 3:03:15 CH Trang 51/60 - http://nukeviet.vn ) module block óa NukeViet Hosting h modules/about/admin modules/about/blocks modules/about/funcs modules/about/language Apache) Disallow: /dir_name/ Disallow: /file_name.ext 29/08/2011 3:03:15 CH Trang 52/60 - http://nukeviet.vn chmod Thông tin Admin 5.1 in: admin adm2457 //Ten thu muc admin define( "NV_ADMINDIR", "admin" ); //Ten thu muc editors define( "NV_EDITORSDIR", "admin/editors" ); //Ten thu muc admin define( "NV_ADMINDIR", "adm2457" ); //Ten thu muc editors define( "NV_EDITORSDIR", "adm2457/editors" ); 5.2 - 29/08/2011 3:03:15 CH Trang 53/60 - http://nukeviet.vn Hình 9: N - Hình 10 Hình 11 29/08/2011 3:03:15 CH Trang 54/60 - http://nukeviet.vn khơng /constants.php Tì //Ten file config define( "NV_CONFIG_FILENAME", "config.php" ); : tên file config.php thành cfg.nkv di chuy lênh sau: define( "NV_CONFIG_FILENAME", "config.php" ); h: define( "NV_CONFIG_FILENAME", " /cfg.nkv" ); mã hoá config.php includes/constants.php 29/08/2011 3:03:15 CH Trang 55/60 - http://nukeviet.vn VI cho webs - 1.1 http://fmarcia.info/jsmin/test.html http://www.crockford.com/javascript/jsmin.html an http://dean.edwards.name/packer/) 29/08/2011 3:03:15 CH Trang 56/60 - http://nukeviet.vn ú thành 1E3, 20000 thành 2E4) Côn http://closure-compiler.appspot.com/home Optimiztion: Simple Formatting: Pretty print 29/08/2011 3:03:15 CH Trang 57/60 - http://nukeviet.vn Hình 12 Optimiztion: Simple Hình 13 VII Các http://nukeviet.vn/vi/nvtools/ vào khai báo, vi http://nukeviet.vn/vi/nvtools/main/ 29/08/2011 3:03:15 CH Trang 58/60 - http://nukeviet.vn http://nukeviet.vn/vi/nvtools/theme/ g: http://nukeviet.vn/vi/nvtools/jscompiler/ http://nukeviet.vn/vi/nvtools/csscompiler/ công 6/2011, Ban Q NukeViet NukeViet 29/08/2011 3:03:15 CH Trang 59/60 - http://nukeviet.vn http://nukeviet.vn/phpbb/viewtopic.php?f=22&t=10852 VIII trình -4-85872007 - Fax: +84-4-35500914 Email: contact@vinades.vn - Website: http://vinades.vn 29/08/2011 3:03:15 CH Trang 60/60 ... 11/60 - http:/ /nukeviet. vn chung, : locker''] = d) K : Hình e) , hình 29/08/2011 3:03:15 CH Trang 12/60 - http:/ /nukeviet. vn f) admin : 29/08/2011 3:03:15 CH Trang 13/60 - http:/ /nukeviet. vn d... => ''http://localhost /nukeviet/ admin/index.php?nv=users&op=config'', 29/08/2011 3:03:15 CH Trang 21/60 - http:/ /nukeviet. vn ''is_myreferer'' => 1, ''selfurl'' => ''http://localhost /nukeviet/ '', ''agent''... rewrite_language.php NukeViet sqldata.php timezone.php vii viii : : ix : Ngôn global.php, admin_global.php admin_ten-module.php block.ten-block.php x xi : : xii 29/08/2011 3:03:15 CH Trang 7/60 - xiii http:/ /nukeviet. vn

Ngày đăng: 25/03/2014, 05:24

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan