发新话题
打印

i-Stats v1.2 简体中文语言包

i-Stats v1.2 简体中文语言包



一个开源的流量统计PHP代码,安装非常简单,只要查看下载来的代码中install.txt就可以搞定
-Stats比较好用,一目了然又浅显易懂,该有的功能几乎都有,很适合一般个人网站使用。

演示地址:http://www.my-code.org/stats/
作者主页:http://www.my-code.org/
下载地址:http://www.my-code.org/download.php

******************************************************
写在前面的话:

看到这个程序我挺喜欢,去官方找了一下,发现没有中文的语言包,于是就自己手动做了一中文语言包,由于英文不是特别好,欢迎使用该语言包的朋友纠正错误!以下是关于使用中文语言包的一些说明!

******************************************************
修改步骤:

1,修改文件by_hour.php
查找
复制内容到剪贴板
代码:
Forecast for current hour
修改成
复制内容到剪贴板
代码:
<?=$text["hour_ffch"]?>
2,下载中文语言包,并把文件chinese.php文件放到lang目录下!

3,修改文件include/config.inc.php
查找
复制内容到剪贴板
代码:
$cfg['langFile'] = "english.php";
修改成
复制内容到剪贴板
代码:
$cfg['langFile'] = "chinese.php";
*******************************************************
特别说明:

由于本论坛设置了游客不能下载附件功能,所以请注册后下载,仅需注册无需回复即可下载!
不愿意注册的朋友可以去中国站长站下载含有我汉化的简体中文语言包的i-stat文件包。
地址为:http://down.chinaz.com/s/19213.asp
附件: 您所在的用户组无法下载或查看附件
我不去想是否能够成功,既然选择了远方,便只顾风雨兼程;
我不去想身后会不会袭来寒风冷雨,既然目标是地平线,留给世界的只能是背影。

TOP

下面是install.txt说明文件,为新安装使用的朋友做个简单的翻译,不是根据字面意思翻译的,只需按照我的中文说明的步骤安装即可。
复制内容到剪贴板
代码:
PHP i-Stats Installation Instructions
Version 1.2

Contents
=========
1. Requirements
2. New Installations
3. Upgrade
4. Getting Help


1. Requirements  // -------系统环境支持
----------------
Installation of PHP i-Stats 1.2 requires the following:

   -- A web server or web hosting account running on any major OS.
   -- MySQL Database (3.23 or higher).
   -- PHP 4.x with support GD 2.x and MySQL.


2. New Installations //------新安装使用
---------------------
   -- Once you downloaded the file you need to uncompress it.  //下载文件包

   -- After you uncompress the file, you should have a directory called  //减压缩并得到一个PHP_i-Stats_1.2文件夹
      PHP_i-Stats_1.2.
   
   -- Edit the file include/config.inc.php.   //编辑config.inc.php文件

   -- Enter the connection information for MySQL server.  //输入你的MYSQL数据库信息
         ~ $cfg['dbHost']   //数据库服务器
         ~ $cfg['dbUser']  //登陆数据库用户名
         ~ $cfg['dbPass']  //登陆数据库密码
         ~ $cfg['dbName'] //数据库名字
   
   -- Enter the name and url or your website //输入网站信息
         ~ $cfg['sitename']    //输入网站名
         ~ $cfg['siteurl']  //输入网站地址
   
   -- Choose default language file.  //选择一个默认的语言文件
         ~ $cfg['langFile']     //语言文件名

   -- Set Permission   //设置许可信息
         ~ $cfg['public']  // change it to FALSE if you don't want public your statistics ------是否公开
         ~ $cfg['username']    // 管理员
         ~ $cfg['password']     // 密码
   
   -- Execute "sql/SQL_new_install.sql" with MySQL on phpMyAdmin or shell.   // 把文件sql/SQL_new_install.sql导入到相应的数据库
   
   -- Upload all files to your web server. // 上传所有文件到你的网站服务器
   
   -- insert the following code to your web page. For example if you
      placed PHP i-Stats in a directory /stats of your web root, and
      your URL is [url]http://yourdomain.com[/url], you should insert this code
      to your web page:                         // 在你需要统计的页面插入以下JS代码

      <script language="Javascript">
      function replaceText(text){
              while(text.lastIndexOf("&") > 0){
                      text = text.replace('&', '[i-Stats]');
              }
              return text;
      }

      var web_referrer = replaceText(document.referrer);
      <!--
      istat = new Image(1,1);
      istat.src = "http://yourdomain.com/stats/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+web_referrer+"&page="+location.href;
      //-->
      </script>
   
   -- Point your browser at this location for check your stats. For example  
      if your domain name is [url]www.yourdomain.com[/url] and you placed PHP i-Stats
      in a directory /stats of your web root you would enter
      [url]http://www.yourdomain.com/stats/[/url] into your browser. After you done
      this you should see the stats of your website.   // 输入你的统计的访问地址就可以开始统计了


3. Upgrade    // 升级(相对于以前安装过较老版本的安装。)
-----------
   -- Edit the file include/config.inc.php.

   -- upload "upgrade.php" to your current i-Stats directory.

   -- Running [url]http://yourdomain.com/stats/upgrade.php[/url] in your browser.

   -- Delete all "PHP i-Stats" files from your web server (NOT MySQL), and
      upload "PHP i-Stats 1.2" files to web server.


3. Getting Help  // 获得帮助
----------------
If you still can not get PHP i-Stats installed, come to
[url]http://www.samphp.com/forum[/url] and ask your question. Please
be sure and tell us exactly what did not work for you.
我不去想是否能够成功,既然选择了远方,便只顾风雨兼程;
我不去想身后会不会袭来寒风冷雨,既然目标是地平线,留给世界的只能是背影。

TOP

发新话题