⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bk_setup_perl.html

📁 BabelKit是一个通用多语言数据库代码表的接口。它接收维护使用多语言的多个数据库代码定义集中的所有编程工作。代码管理和翻译页可以让开发人员定义新的虚拟代码表
💻 HTML
字号:
<html><head><title>BabelKit Perl Source Code Setup</title><link rel="STYLESHEET" type="text/css" href="main.css"></head><!--  Copyright (C) 2003 John Gorman <jgorman@webbysoft.com>  http://www.webbysoft.com/babelkit--><body bgcolor="#F0FFFF" text="#000000"      link="#873852" vlink="#873852" alink="#B52E2E"><center><table width="600"><tr><td><div align="right">[<a href="bk_setup_php.html">PHP Setup</a>][<a href="index.html">Index</a>][<a href="bk_admin.html">Translation Utility</a>]</div><center><h2><a href="http://www.webbysoft.com/babelkit">BabelKit</a>Perl Source Code Setup</h2></center><p>Read the <a href="bk_overview.html">Overview</a> and the<a href="bk_schema.html">Code Table Setup</a> pages first.<p>The BabelKit Perl source code is in the perl directory:<pre>    BabelKit.pm       - BabelKit module definition.    bk_admin.pl       - Setup for bk_admin_main.pl.    bk_admin_main.pl  - BabelKit Translation Utility.    bk_connect.pl     - Database connection setup.    bk_demo.pl        - BabelKit Demo page.    t/test.t          - Regression testing.    Makefile.PL       - Makefile setup.</pre>BabelKit.pm requires the DBI.pm module.  The TranslationUtility and the Demo page need the CGI.pm module.<h4>1. Database Schema and Core Record Loading</h4>Read and follow directions for <a href="bk_schema.html">Code Table Setup</a>.<p>Load and test the bk_code table schema definition as wellas the core data records.  If you want to run the demoload the demo data records as well.<h4>2. Database Connection Setup</h4>Customize the bk_connect.pl file to opena database handle to your database.  If your applicationsetup has already opened a database handle, use thathandle instead of opening a new one.  The handleshould be set up to autocommit.<p>bk_connect.pl is used by bk_admin.pl, bk_demo.pland by t/test.t.<h4>3. BabelKit.pm Installation</h4>Copy the BabelKit.pm file into a directory on your Perlinclude path.  Or do the makefile thing:<pre>    $ perl Makefile.PL    $ make    $ make test         # This WILL FAIL unless you have                        # completed the above steps!!!    # make install</pre><h4>4. BabelKit Translation Utility Setup</h4>You may wish to customize the bk_admin.pl file to your situation:<ul><li>Require and open a <a href="bk_new_perl.html">BabelKit handle</a>.</li><li>Set the $perm_add, $perm_upd and $perm_del global variables.These let the user add, update and delete codes.</li><li>Define the bka_sess_url() function.  Customize this ifyou are carrying session identifiers in your urls.</li><li>Require bk_admin_main.pl and call the bka_admin_main() function.</li></ul>It is fine to make multiple copies of bk_admin.plto set up different permissions for different classesof users.<h4>5. Demo Page Setup</h4>In order for the demo page to function, you will needto load the <a href="bk_schema.html#demodata">demo data records</a>.<p><div align="right">[<a href="bk_setup_php.html">PHP Setup</a>][<a href="index.html">Index</a>][<a href="bk_admin.html">Translation Utility</a>]</div></td></tr></table></center></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -