/*
//=============================================================================
/*
/* CTB - China Text Bulletin
/*
/* ӭʹ CTB ̳ʼʹ֮ǰĶȫ˵
/*
/* Welcome to http://www.isyi.com & http://ctb.isyi.com */ 
/*
/* ĵװҳ˵
/*
//=============================================================================
*/

CTB ע

1ȷҳ֧ PHP֧ CTB ҪһЩ test.php Դ²鿴ЩǷЧ

2Ϊ̳ȫϴ̳ admin Ŀ¼޸ΪֻԼ֪Ŀ¼ѸĿ¼µ admin_main.php ΪֻԼ֪ļͬʱ޸ļеĶӦ֣

//=============================================================================
//̨ģļĿ¼б "/" β
$adminDir = 'admin';

//̨ļ
$adminIndex = 'admin_main.php';

//̨ļ
$adminMain = 'admin_main.php';
//=============================================================================

磬 admin Ŀ¼Ϊ akjsfhlahglwgadmin_main.php ļΪasgfkagfa34.phpô޸Ĺ֮Ӧǣ

//=============================================================================
//̨ģļĿ¼б "/" β
$adminDir = 'akjsfhlahglwg';

//̨ļ
$adminIndex = 'asgfkagfa34.php';

//̨ļ
$adminMain = 'asgfkagfa34.php';
//=============================================================================


3ϵͳ windows ģмǰйĿ¼ļΪ 777ûаգͰĿ¼ļΪ 777Ŀ¼µģ

4 CTB ̨֮Կ PHP Ƿ˰ȫģʽȫģʽ°ʱҪֶ£
  a data Ŀ¼£ͨ FTP ½һĿ¼ҪеĿ¼ 1Ϊ 777
  bҪ½飬ظϲ
  c¼̨°

5ð汾󡿵ȲҪĻ뵽ǵ̳аװ

//+---------------------------------------------------------------------------+

CTB װ

1ԭĿ¼ṹϴ

2ķϵͳǡ windowsҪ޸һЩĿ¼ļΪ 777
  ainclude Ŀ¼µ config.php ļ
  badmin Ŀ¼µ tmp Ŀ¼
  cdata Ŀ¼
  ddata Ŀ¼µĿ¼ļdata ļĿ¼ԼĿ¼µļ
  estyles Ŀ¼


3ķϵͳǡ windowsϵ 2 Ҫ

4ʱ̳Ѿʹãעһ»Աʺ

5ʹԤʺţctb/ctb̨̨ûвͬĬΪ̳Ŀ¼µģadmin_index.phpٴνѺ̨ڸΪֻԼ֪֣CTB עһ

5ں̨ġ   áаѸոע»ԱʺΪ³Ա

6˳̨¹Աʺµ¼̨   áɾ ctb Ԥ賬Ա

//+---------------------------------------------------------------------------+

CTB 

ͨ

1ȱ̳ݣѡų́ıݳҲԿ data Ŀ¼Լ include Ŀ¼µ config.php ļ

2 data Ŀ¼⣬ԭ·ϴ°汾еȫĿ¼ļ

3ȷԭеļ𣬰Ҫ޸ԣģ

4°汾ļλڸĿ¼£ļ up1.5to1.6.phpиļϸʾ

5Ϊ°汾һ㶼һЩ¹ܣҪ̨ϵͳã򿪻߹رЩ¹ܵѡ

6

ͨ⣬ÿ°淢жϸ˵ϸĶ

//+---------------------------------------------------------------------------+

CTB ҳá

һҪ CTB ̨ȷ̳·

  ں̨-->ϵͳ-->ϵͳѡctb̳urlΪ̳·ӻ

磺
http://www.some_site.com/ctb

ע⣺治бܣҲindex.php
öǴģ
http://www.some_site.com/ctb/
http://www.some_site.com/ctb/index.php

ֳõҳ

1̳
  aȷ data Ŀ¼´Ŀ¼ cacheΪ 777ûо½һ

  bõʱҪõ HTML ҳмϣ
<script language="JavaScript" src="http://www.some_site.com/index.php?mods=others&action=callNewTopics&newsForumsId=x"></script>

 www.some_site.com Ϊ̳·newsForumsId=x  x Ǹð id newsForumsId=1 ʾ id Ϊ 1 İ 

  cͬʱöЩ id » _ е x ɣ磺newsForumsId=1_2_3_4 ʾ id Ϊ 123  4 а

  dʹû漼ʾһʵʱ

  eõۺͻʱȵȶԶμ mods Ŀ¼ others.php עͽ

2ҳ̳ͶƱ

<script language="JavaScript" src="http://www.some_site.com/index.php?mods=others&action=index_vote&forumid=2&postid=939"></script>

   ˵http://www.some_site.com/index.php ޸ĳԼַ
            forumid ֵΪõİ id
            postid ֵΪõͶƱ id 

//=============================================================================

CTB ϵʽ

Website: http://www.isyi.com

֧̳: http://ctb.isyi.com

ӭʵվһ web ̵ϼվ㡣

Ƕڷѹ򣬲ͬʱΪҵͻҵ

ǵĿǹͬѧϰͬΪй web ԼĹס