:
Http://download.csdn.net/detail/fkedwgwy/4115704
*****************************
* System introduction:
*****************************
Witcms 1.0 is developed based on the PHP + MySQL program structure.
This is a simple but highly scalable CMS, and various forms of presentation modules can be constructed using simple custom tags.
Static generation by the whole site, making the website run faster.
In addition, this CMS is free for Open Source users.
Author: QQ: 13699576
Mail: badwolf@qq.com
Website: www.withost.cn
QQ: 12067810
*****************************
* Instructions:
*****************************
1. Set up the Wamp environment.
2. It is best to have phpMyAdmin.
3. Use phpMyAdmin to create a database name, such as witcms.
4. Use phpMyAdmin to import the witcms. SQL file in witcms.
5. decompress the package to the root directory or Level 2 directory,
Open INC/Conn. php In the advanced text editor (do not use NotePad to open it. notepad ++ is recommended ).
Configure the database user, database password, and database name.
6. Access http: // 127.0.0.1/witcms/admin
7. Account: Admin Password: Admin
*****************************
* Module description:
*****************************
Article module: Title channel author time priority recommendation (1.5) keyword introduction image (Multi-image) Content
Channel module: Name parent-level channel Action Code settings list template content template channel introduction channel content
User Module: User Password
Role module: Configure user channels and permissions.
System Module: website title website description website keywords
Generate static: Generate homepage generate channel generate document
Generate map: Generate sitemap. xml Map
*****************************
* Function description:
*****************************
Generate static pages for the whole site.
Unlimited channel category.
Upload multiple files.
Visual editor.
Dynamic template Creation.
Customize the call Tag.
Role permission management.
Generate a map of sitemap. XML with one click.
*****************************
* Code details:
*****************************
Description: initialization call. Used for homepage, list page, Topic Page, content page, etc.
Code: <? Include_once ("../INC/Inc. php");?>
Description: used to initialize the content page call.
Code: <? Include_once ("../INC/Inc. php"); $ view = w_view (); // initialize the content?>
Description: website title, keywords, and description code
Code: <? Meta ()?>
Description: The Navigation Code reads the list of first-level channels.
Code: <? NAV ()?>
Views the list of current channels and lower-level channels.
Code: <? NAV (0)?>
Description: channel name.
Code: <? = Channel_name (0, "nourl")?>
Parameter: 0 Description: Current channel. You can also specify
Parameter: "nourl" Description: optional parameter, no Channel link output
Description: Current channel path
Code: <? Site_path_links ()?>
Description: single-page call content and summary call.
Code: <? W_single (Array ("chaid" => "0", "chacontent" => "0")?>
Parameter: "chaid" => "0" Description: The current channel is used by default. You can also specify the channel
Parameter: "chacontent" => "0" Description: 0 shows the channel description, 1 does not show (default)
Parameter: "chaintro" => "0" Description: 0 shows the channel abstract, 1 does not show (default)
Code on the channel list page
Code: <? PHP
W_list (
Array (
"Chaid" => "0 ",
"Num" => "20 ",
"Title_sub" => "40 ",
"TOP" => true,
"Intro_sub" => "200 ",
"Orderdate" => "DESC ",
"Ordersort" => "DESC ",
"Orderid" => "DESC ",
"Html" => "<li class = \" Row row {I} \ "> \ n <span> </span> \ n <span> <a href = \" {web_url} {path}/article/{art_date}/{art_id1_.html \ "Target = \" _ blank \ "> {art_title} </a> </span> </LI> \ n"
)
);
?>
Parameter: "chaid" => "0" Description: 0 defaults to the current channel, you can also specify the channel
Parameter: "num" => "20" Description: number of entries displayed on the current page, which must be consistent with the paging code.
Parameter: "title_sub" => "40" Description: The default number of interceptions in the document title. You can also specify the number of interceptions.
Parameter: "intro_sub" => "200" Description: The default number of interceptions in the abstract. You can also specify the number of interceptions.
Parameter: "ordersort" => "DESC" Description: by default, the priority is descending (before the number), and can be changed to ASC positive (with the highest priority)
Parameter: "orderdate" => "DESC" Description: by default, the priority is reversed and can be changed to the ASC positive order.
Parameter: "orderid" => "DESC" Description: by default, the reverse order of the Document ID can be changed to the forward order of ASC (this parameter is valid for the same date + time)
Parameter: "TOP" => true description: only recommended articles are displayed. (top2, top3, top4, and top5 are also supported)
Parameter: "html" => "..." Description: The Code channel is used to customize the output style.
Code for paging the channel list
Code: <? = W_listpage (20);?>
Parameter: 20 indicates the number of entries, which must be consistent with the number set by the list code.
-----------------
Content call:
-----------------
Note: article title
Code: <? = $ View ["art_title"];?>
Note: Source author
Code: <? = $ View ["art_author"];?>
Description: Release Date
Code: <? = $ View ["art_date"];?>
Description: Content
Code: <? = $ View ["art_content"];?>
Description: Part 1
Code: <? Udpage () ;?>
Notes: Related Articles
Code: <? W_corpage ($ view ["art_keyword"], 12);?>
-----------------
Channel Code Channel settings:
-----------------
(List code snippets, which are set at the Code Channel of the background channel for the output structure of the channel page list.
Code:
<Li class = "Row row {I}">
<Span> </span>
<Span> <a href = "{web_url} {path}/article/{art_date}/{art_id1_.html" target = "_ blank"> {art_title} </a> </span>
<Span> {art_date} </span>
</LI>
Note: The number cycle starts from 0 and is generally used to add a style to a specific entry.
Segment: {I}
Note: The website URL can be configured in conn. php, for example, http: // 127.0.0.1.
Segment: {web_url}
Note: The website directory can be configured in conn. php, for example,/witcms.
Clip: {Ptah}
Description: Image path,
No image:/images/noimg.jpg
When there is a picture:/uploadfile/27e000027d1e5592c9137d9ad18c7f7d5.jpg (32md5 file name)
0: The image number is called by default.
Fragment: {art_img0}
(Article URL path. must follow this format. For example: show-2-284.html)
Fragment: {web_url} {path}/article/{art_date}/{art_id1_.html
Note: The title of the article.
Fragment: {art_title}
Description: summary.
Segment: {art_intro}