Вы находитесь на странице: 1из 108

CNCat 4.3.

2009 "CN-Software" Ltd.

: www.cn-software.com
E-mail: cncat@cn-software.com

CNCat 4.3.3

II CNCat

1
...................................................................................................................................

7
2
...................................................................................................................................

12
CNCat
..........................................................................................................................................................
4.x
12
.........................................................................................................................................................
CNCat 4.x CNCat 4.0
13
.........................................................................................................................................................
CNCat 4.x
13

.........................................................................................................................................................

13
CNCat
..........................................................................................................................................................
3.1, 2.1, 2.0, 1.4
15

.........................................................................................................................................................

15

.........................................................................................................................................................
XML
16

......................................................................................................................................................... 17

3
...................................................................................................................................
CNCat Joomla
18
4
...................................................................................................................................
CNCat WordPress
19

III

23

1
...................................................................................................................................

23
2
...................................................................................................................................

27

.......................................................................................................................................................... 28

.......................................................................................................................................................... 31

3
...................................................................................................................................

33
4 ................................................................................................................................... 35
5
...................................................................................................................................

35

IV

38

1
...................................................................................................................................

38

..........................................................................................................................................................

39
/
.......................................................................................................................................................... 43

..........................................................................................................................................................
/
43
/
.......................................................................................................................................................... 43

.......................................................................................................................................................... 43
.......................................................................................................................................................... 44

.......................................................................................................................................................... 45

.......................................................................................................................................................... 45

.......................................................................................................................................................... 46

..........................................................................................................................................................

50

.......................................................................................................................................................... 50

.......................................................................................................................................................... 53

..........................................................................................................................................................
/
53

2
...................................................................................................................................

54

.......................................................................................................................................................... 55

2009 "CN-Software" Ltd.

.......................................................................................................................................................... 59

..........................................................................................................................................................

60

.......................................................................................................................................................... 61
.......................................................................................................................................................... 63

3
................................................................................................................................... 64

.......................................................................................................................................................... 65

.......................................................................................................................................................... 66

.......................................................................................................................................................... 68

.......................................................................................................................................................... 69

..........................................................................................................................................................

71
RSS
.......................................................................................................................................................... 73

.......................................................................................................................................................... 74
..........................................................................................................................................................
(CRON)
75

.......................................................................................................................................................... 77

.......................................................................................................................................................... 79

.......................................................................................................................................................... 80

.......................................................................................................................................................... 81
.......................................................................................................................................................... 82

.......................................................................................................................................................... 83

.......................................................................................................................................................... 84

.......................................................................................................................................................... 85

.......................................................................................................................................................... 87

4
................................................................................................................................... 88

.......................................................................................................................................................... 88

V :

92

1 ...................................................................................................................................

92

VI A:

94

1
...................................................................................................................................

94
2
...................................................................................................................................

102

..........................................................................................................................................................
HTML-
103

..........................................................................................................................................................

104

..........................................................................................................................................................

104

.......................................................................................................................................................... 104

.......................................................................................................................................................... 105

VII B: CNCat

107

1
...................................................................................................................................
Joomla
107
2
...................................................................................................................................
WordPress
107
3
...................................................................................................................................
" "
107

2009 "CN-Software" Ltd.


CNCat - .
, :
, ;
;
( );
/ ;
;
;
RSS;
;
;
;
;
CNCat.
CNCat PHP MySql.
( , , ).
:
. (HOWTO).

2009 "CN-Software" Ltd.

II

CNCat

CNCat


CNCat Joomla
CNCat WordPress

2.1


CNCat :
1.

CNCat : http://www.cn-software.com/cncat.

2.

(
).

3.

; /install/. ,
http://www.server.com/cncat/install/;
.

CNCat config.php,
, :

2009 "CN-Software" Ltd.

CNCat 4.3.3

(
):

2009 "CN-Software" Ltd.

CNCat

MySql: , , MySql .
, -
.
. .
CNCat CNCat (
cncat41_).
. CNCat.
, CNCat ,
(
), ( ):

CNCat

, , ,
:
;
CNCat:

2009 "CN-Software" Ltd.

10

CNCat 4.3.3

CNCat

, .
:

:
: -
.
: classic, default, simple

2009 "CN-Software" Ltd.

CNCat

11

: , ,
.
. .
, .
config.php;
, CNCat, :


(
config.php). /install/ .
(, http://www.server.com/cncat/),
:

(. )
. http://www.
cn-software.com/ru/cncat/

2009 "CN-Software" Ltd.

12

CNCat 4.3.3

. ,
, ,
.

2.2


CNCat 4.
CNCat 3.1, 2.1, 2.0, 1.4

2.2.1

CNCat 4.x
! (
).
.
CNCat 4.0 ,
CNCat.
() .
.
.
.
.
.
,
.

2009 "CN-Software" Ltd.

CNCat

13

__________
CNCat 4.x CNCat 4.0
CNCat 4.x

2.2.1.1

CNCat 4.x CNCat 4.0


.
XML- ( ).
. (.
). .
- , (
CNCat). !

2.2.1.2

CNCat 4.x
CNCat (. ).
, , cncat41_.
, , - CNCat 4.x XML .
.
.
. .
.
.

2.2.1.3


,
.
, ,

.
, :
1.

2.

default :

2009 "CN-Software" Ltd.

14

CNCat 4.3.3

editor.css
add_article.tpl
article.tpl
extended_article.tpl
/images/category-big.gif
/images/rss.gif
3.

add.tpl default .

4.

: common.tpl menu,

{IF !$CNCAT[config][add_disable]}
:
{IF !$CNCAT[config][add_disable]}<a href="{$CNCAT[abs]}cncat_add.
php"><strong>{$CNCAT[lang][menu_add_link]}</strong></a> |{ENDIF}
{IF $CNCAT[config][add_article_enable]}<a href="{$CNCAT[abs]}
cncat_add_article.php"><strong>{$CNCAT[lang][menu_add_article]}</
strong></a> |{ENDIF}

5.

: index.tpl index
{DISPLAY NEW_ITEMS}
:
<br>{DISPLAY NEW_ARTICLES}
newitem* .

6.

//:

common.tpl itemtype* .
index.tpl index
{DISPLAY SORT}

{DISPLAY ITEM_TYPES}<br>
7.

RSS: category.tpl catpath_currentcat


:
{IF $CNCAT[page][show_rss]}<a href="{$CNCAT[abs]}cncat_rss.php?c={$CNCAT[page]
[cid]}"><img src="{$THEMEURL}images/rss.gif" alt="RSS" style="vertical-align:
2009 "CN-Software" Ltd.

CNCat

15

top; margin-right: -15px;" /></a>{ENDIF}

2.2.2

CNCat 3.1, 2.1, 2.0, 1.4


! XML- (
).
. CNCat,
.
CNCat 3.x, 2.x 1.x :
1.

3.x 2.x - XML- (.


CNCat, ).

2.

3.

CNCat ( ,
. cncat_). .
.

4.

, XML-.

5.

( ).

6.

_top.php _bottom.php ,
.

7.

8.

, .

.
__________

XML

2.2.2.1


, - CNCat 3.x, 2.x, 1.x .
. config.php
:

2009 "CN-Software" Ltd.

16

CNCat 4.3.3

$db["name"]=" ";
$db["prefix"]="";
.
. .
.

2.2.2.2

XML
, - CNCat 3.x, 2., 1x XML.
.
XML- ( 1 ), :

XML

/cncat_export/,
. :

XML

2009 "CN-Software" Ltd.

CNCat

17

. .
.

2.2.2.3


CNCat 3.1 CNCat .
A.
1. .
.
2. , Windows
(, FreeBSD, Linux, .), , PHP
/cncat_config/themes/.
.
.
1.

, - CNCat 3.x,
2.x, 1. - .

2.

( ).

3.

( ).

4.

.
config.php :
$db["name"]=" ";
$db["prefix"]="".

5.

. ,
( ).

2009 "CN-Software" Ltd.

18

2.3

CNCat 4.3.3

CNCat Joomla
CNCat , Joomla, :
1.

CNCat Joomla ( http://www.cn-software.com/ru/cncat/


download/ );

2.

Joomla, - /;

3.

( com_cncat.zip, );

4.

& .

. ,
URL . , .

components/com_cncat/cncat/cncat_config/config.
php.

2009 "CN-Software" Ltd.

CNCat

2.4

19

CNCat WordPress
CNCat WordPress:
1. CNCat WordPress http://www.cn-software.com/ru/
cncat/download/ ;
2. WordPress;
3. cncat WordPress, , http://..com/
wordpress/cncat/ . CNCat;
4. . ,
;
5. ,
WordPress:

6. /install/ ;
7. WordPress, - ;

2009 "CN-Software" Ltd.

20

CNCat 4.3.3

8. .
WordPress;
9. , , CNCat. ,
;

, CNCat
CNCat;

2009 "CN-Software" Ltd.

CNCat

21

10. - CNCat
:

CNCat

2009 "CN-Software" Ltd.

III

23

3.1


:
, , ,
XML (1).
(2).
(3).
() (4).
(5).
(6).
(8) (
).
( , ,
) (7).
(9) (
).
(10) (

2009 "CN-Software" Ltd.

24

CNCat 4.3.3

, , ,
).
.

(11).
.

. (.
).
(1) ,
(. ).
(2) .
(3) (,

2009 "CN-Software" Ltd.

25

, ..). ;
.
(. ).
( - ) (4) ,
().
(. - ). .
, ,
(. ).
(5)
, , ..
(6) :
/ ( );
Google PR Yandex CY;
( ) (. );
;
URL .
,
(. ),
. /
.

2009 "CN-Software" Ltd.

26

CNCat 4.3.3


).

(.

(6) :
;
;
.
:

2009 "CN-Software" Ltd.

27

3.2


:
( ).
( ).
.
,
. ,
.
(.
).
(.
).
__________

2009 "CN-Software" Ltd.

28

3.2.1

CNCat 4.3.3



; (. : ).
: .
, ,
.
, , ,
( ), :

.
: .
.

():

:
() (),
( ).

2009 "CN-Software" Ltd.

29

/ .
( ).
META- "keywords" "description".
.
( ):

2009 "CN-Software" Ltd.

30

CNCat 4.3.3

2009 "CN-Software" Ltd.

31

.

.

3.2.2


,
:

2009 "CN-Software" Ltd.

32

CNCat 4.3.3

2009 "CN-Software" Ltd.

3.3

33


. ,
(. ).
, ( ), .
, .

2009 "CN-Software" Ltd.

34

CNCat 4.3.3


2009 "CN-Software" Ltd.

35

.

.

3.4

.
- :

3.5


, -
.

; :

2009 "CN-Software" Ltd.

36

CNCat 4.3.3


.
.

2009 "CN-Software" Ltd.

IV

38

CNCat 4.3.3



, , ,
:

.
__________

4.1



/
/
/

2009 "CN-Software" Ltd.

39

4.1.1



(, , ..):

,
, , ..
, (, .
.).
:
/ ( ).
;

2009 "CN-Software" Ltd.

40

CNCat 4.3.3

URL / ,
;
;
/ (,

/ (In/Out);
Google PR Yandex CY;
(ID);
(

- ,

- ) ;
- ,

- ) ;

, / ;
. ,
:

2009 "CN-Software" Ltd.

41

, :
/ (. /);
/ (. /);
/ / (.
/);
/;
/ (0-10);
(. );
(. );
, (
).

,
. , ,
,
.
, ..
. , ,
.
/ ;
:

2009 "CN-Software" Ltd.

42

CNCat 4.3.3

,
. ,

2009 "CN-Software" Ltd.

43

:
;
.

, ( 10).
;
;
(/).
.
.

4.1.2

/
, ,
, , .
(. ). ,
, .

4.1.3

/
,
. (.
).

4.1.4

/
,
.
(. ).
, :
.
,
, ( )
.

4.1.5

,
. ,
.

).

2009 "CN-Software" Ltd.

44

CNCat 4.3.3

4.1.6

, (
):

2009 "CN-Software" Ltd.

4.1.7

45

, (.
).
(. ).
,
.

4.1.8

.
,
.
:
, ;
(, , );
(: ,
, ; : , , );
;
;
( );
( );
;
.
(. ).

2009 "CN-Software" Ltd.

46

CNCat 4.3.3

4.1.9



(.
).


, .
: "
".
, (. ),
, :
;
;
Google PR Yandex CY;
(favicon);
;

2009 "CN-Software" Ltd.

47

(
);
.

, .
( ,
..).
(
, ).
, ,
.
.

2009 "CN-Software" Ltd.

48

CNCat 4.3.3

, :
.
, , ,
,

.
.
:

.
.
.

2009 "CN-Software" Ltd.

49

:
1.

/, .

2.

3.

4.

5.

(
).

6.

2009 "CN-Software" Ltd.

50

CNCat 4.3.3

(,
, , ).
.

4.1.10
( URL), ,
:

4.1.11

. (,
) . ,
( 10).
,
( ).
,
.

2009 "CN-Software" Ltd.

51

(, ,
..), :
;
.

, .
( ).

2009 "CN-Software" Ltd.

52

CNCat 4.3.3

2009 "CN-Software" Ltd.

53


(, ).

4.1.12

(. ).

4.1.13 /
/ ,
, . :
1.

,

(. ).
:

2.

, ,

. , (
)

2009 "CN-Software" Ltd.

54

CNCat 4.3.3

4.2

3.

, (.
). ,
. ,
.

4.

(,
, , ). .
,
.

2009 "CN-Software" Ltd.

4.2.1

55

.
,
/ ( / ), (
URL ) :

.
, /
, ,
.


.
. .

2009 "CN-Software" Ltd.

56

CNCat 4.3.3

:
( );
( );
;
;
<META>- keywords description;
;
( , , ..);
/ ;
/ ;
/ .
.

2009 "CN-Software" Ltd.

57

.
1:
(. ).
2:
.
URL (
-; 1000 ).
/

- :


:

;

2009 "CN-Software" Ltd.

58

CNCat 4.3.3

( ) ;
/ (
)
.
CNCat, 4.0, .
.
,
,
:

:
( );
;
, ( );
;
;
( , , ..)
.
.
@.

2009 "CN-Software" Ltd.

59

/
.
/, .
,
.

4.2.2

,
.
:

, ,
,
.

.
.
, ,
.

.

.
- . ,

2009 "CN-Software" Ltd.

60

CNCat 4.3.3

4.2.3


, .
(. ),
Browse (Choose File) , . ,
, . ,
, .
, . ,
, .
.
,
:

,
. /

. ,
.
,
):

(.

2009 "CN-Software" Ltd.

61

:
;
, (
);
.
, .
( ),
. ,
.

4.2.4

2009 "CN-Software" Ltd.

62

CNCat 4.3.3

,
.

, :

, ,
;

2009 "CN-Software" Ltd.

, ;

,
PHP. , . ..
, ,
PHP;

( , , ,
, , , ). ,

( / );

( ,
, ,
);

php php ;

,
).

4.2.5

63

(.

, / ,
- .

(. ),
.
,
.

, ,
:

2009 "CN-Software" Ltd.

64

CNCat 4.3.3

/ ( ) / ,
.

4.3



RSS

(CRON)



""

2009 "CN-Software" Ltd.

65

4.3.1

( - ) :

2009 "CN-Software" Ltd.

66

CNCat 4.3.3

. URL .
:
o ( mod_rewrite): http://www.server.com/?c=48&s=0
o (CNCat 4.x): http://www.server.com/external-services/site-analyzer/s2p0.html
o (CNCat 2.x, 3.x): http://www.server.com/dir/pop/external-services/site-analyzer/

4.3.2

, :

2009 "CN-Software" Ltd.

2009 "CN-Software" Ltd.

67

68

CNCat 4.3.3

:
o favicon - (favicon);
:
o CAPTCHA (Completely Automated Public Turing Test to Tell Computers and
Humans Apart)
( , );
o ,
. , -
CAPTCHA;
o ,
;
o Google PR CY -
.
, ,
.
, ,
.

4.3.3

2009 "CN-Software" Ltd.

69

(.
, ).
, .

4.3.4


,
- :

2009 "CN-Software" Ltd.

70

CNCat 4.3.3

:
-
;
-
;
-
(
/);
CAPTCHA - , ,
;
"" -
( ,
0);
"E-mail " -
( ,
0);
"" -
(
);
- /
;
-

2009 "CN-Software" Ltd.

71

/ ( ,
/ ).
!
,
- .

4.3.5


CNCat .
.
. .
, .
: .
.

2009 "CN-Software" Ltd.

72

CNCat 4.3.3

: .
, : , , , , ,
. , . :

2009 "CN-Software" Ltd.

73

- ( ).
- , /
/ .
- , :
o - ,
/;
o - ,
;
o -
/.
- ,
/ , .
- .
-
( , ).
, .
: , ,
, .

4.3.6

RSS
RSS , RSS :

RSS-

2009 "CN-Software" Ltd.

74

CNCat 4.3.3

RSS : , ,
, .
: , , .
: RSS . %TITLE%,
.
: RSS . %CATNAME%, ,
.
: ,
, , .
, .

4.3.7

(
):
. ,
file_get_contents;
Google PR/Yandex CY - Google

2009 "CN-Software" Ltd.

75

Yandex ;
favicon ;
rob ots.txt - robots.txt. robots.txt
- http://ru.wikipedia.org/wiki/Robots.txt . robots.txt

, , .
, .

4.3.8

(CRON)
, :

:
- .

. :
1. ;

2009 "CN-Software" Ltd.

76

CNCat 4.3.3

2. .
( php wget),
:
: / / /
/ ;
( );

( ).
, .
.

.
:
1
100
1 10 ( )
15 ( )
, 10 .
15 .
.
. ,
.

2009 "CN-Software" Ltd.

, ( ),
. , .

4.3.9


,
( /,
/, /)
.
:

2009 "CN-Software" Ltd.

77

78

CNCat 4.3.3

, .
, /
.

2009 "CN-Software" Ltd.

79

, (
+):
item_id - ID ;
item_title ;
item_descr ;
item_descr_full - ;
item_insert_date - ;
item_submit_date - ;
item_author_email - E-mail ;
item_author_name - ;
link_url - URL ;
link_back_link_url - URL ;
link_rating_pr - page rank (Google PR) ;
link_rating_cy - c ( ) ;
_ext_url - URL ;
DISPLAY BACKLINKS - c .

4.3.10

,
:

2009 "CN-Software" Ltd.

80

CNCat 4.3.3

, .

4.3.11
,
.
.

-
:

:
HTML-, ;
html- ;
URL;

2009 "CN-Software" Ltd.

81

;
;
.
:
HTML-;
URL <a href=...>...</a>;
.
HTML- , :
%CATNAME% - ;
%BACKURL% - ( );
%SITEID% - .
.
.
, ( ).
.
,
.

4.3.12
,
:

( )
:

2009 "CN-Software" Ltd.

82

CNCat 4.3.3

- .

.

CNCat ,
: URL ,
:

- :

4.3.13
.

,
.
.
-
:

2009 "CN-Software" Ltd.

83

:
;
e-mail ;
/ ( );
.
.
; .
.
.

.

4.3.14
.
:

2009 "CN-Software" Ltd.

84

CNCat 4.3.3

4.3.15
:
- ;
- ;
- .
.
.
.
;
- ;
E-mail - :

2009 "CN-Software" Ltd.

85

: ,
.

4.3.16
( - )
XML, .

, , .
CNCat 3.1, 2.1, 2.0, 1.4.
CNCat 4. , XML :

CNCat 4.x

,
, , , (
).
, .
config.php.
1: (.
).

2009 "CN-Software" Ltd.

86

CNCat 4.3.3

CNCat 3.x, 2.x,


1.. CNCat 3.x, 2.x, 1.:

CNCat 3.x, 2.x, 1.

:
;
ID;
ID;
.
. XML XML.
,
(. ):

.
Scripto, Scripto:

2009 "CN-Software" Ltd.

87

Scripto

, Scripto .
, .

4.3.17

XML. , , ,
:

:
;
, ( .);
XML- GZIP;
.
.
1: CNCat 3.x/2.x, 4.x /
( ).
2: ,
cncat_export . ,
, .

2009 "CN-Software" Ltd.

88

4.4

CNCat 4.3.3


. , .
__________

4.4.1


(,
, ..):
1. - :

2. .
:

2009 "CN-Software" Ltd.

89

3. :
( );
( URL) , URL (
, URL );
.
. 0
;
( ).
4. , , ,
.
, ,

: ,

2009 "CN-Software" Ltd.

90

CNCat 4.3.3

2009 "CN-Software" Ltd.

92

CNCat 4.3.3

:
.
__________

5.1


XML
.
http://www.sitemaps.org/
: http://./sitemap.xml

2009 "CN-Software" Ltd.

VI

94

CNCat 4.3.3

A:
CNCat .
( - ).
CNCat :
;
, ;
;
(if-then-else);
.
: PHP-. PHP-
_top.php / _bottom.php,
.
__________

6.1


: :
. ,
.
/cncat_config/themes/.
.

theme.txt (. ).
(*.tpl), (theme.txt)
(style.css, ..).
theme.txt :
title - ( );
screenshot - ;

2009 "CN-Software" Ltd.

A:

95

description - .
,
:

(.tpl)

index
- , , item
.
article
.
category
common

, [+].

extended
extended_article
common

map
common

search
item
article
common

add
add_article
mail
common
js

admin
common
mail
js

, .
tpl-.

index.tpl
index

.
.

, ( ) .

2009 "CN-Software" Ltd.

96

CNCat 4.3.3

common.tpl
top

(header)

bottom

(footer)

menu

(, ..)

searchform

sort_top

sort

sort_delim

sort_bottom

pagenav_top

pagenav_curpage

pagenav_pageitem

pagenav_delim1

pagenav_delim2

pagenav_bottom

filters_top

filter_top

filtval

filtval_delim

filter_bottom

filters_delim

filters_end

, .

2009 "CN-Software" Ltd.

A:

97

category.tpl
cats_top

cats_column_top

cat

; subcat
.

cats_column_bottom

cats_bottom

subcats_top

subcat

subcats_delim

subcats_more

,
, .

subcats_bottom

catpath_top

(->>-> )

catpath_rootcat

catpath_parentcat_delim

catpath_parentcat

catpath_currentcat_delim

catpath_currentcat

catpath_bottom

2009 "CN-Software" Ltd.

98

CNCat 4.3.3

item.tpl
items_top

item

items_bottom

admin_rating_top

( )

admin_rating_num

admin_rating_num_active

admin_rating_delim

admin_rating_bottom

itemcount

favitems_top

(
)

favitems_bottom

brokenscript


( [x])

newitems_top

newitem

newitems_bottom

.
article.tpl
article

newarticles_top

newarticle

newarticles_bottom

2009 "CN-Software" Ltd.

A:

99

extended.tpl

ext

,
. ext,
.

ext_cats_top

ext_cat

ext_cat_delim

ext_cats_bottom

ext_filter_top

ext_filtval

ext_filter_delim

ext_filter_bottom

, .
extended_article.tpl

ext_article

.
ext,
.

ext_cats_top

ext_cat

ext_cat_delim

ext_cats_bottom

ext_filter_top

ext_filtval

ext_filter_delim

ext_filter_bottom

2009 "CN-Software" Ltd.

100

CNCat 4.3.3

map.tpl
map

map_cat_next_level

map_cat

map_cat_prev_level

.
item.tpl.
search.tpl
search

.
add.tpl
add

form

step1
step2
step3

(
)

final

field_link_url
field_back_link
field_site_title
field_cats
field_email
field_descr
field_descr_full
field_meta_keywords
field_meta_descr
field_captcha
field_submit

extfield_ext_int1
extfield_ext_double1
extfield_ext_varchar1
extfield_ext_datetime1
extfield_ext_text1
extfield_ext_text2

2009 "CN-Software" Ltd.

A:

101

add.tpl
extfield_ext_text3
add_filter_top

( )

add_filtval

add_filter_bottom

add_backlinks_top

add_backlink

add_backlinks_bottom

add_errors_top

add_error

add_errors_bottom

add_cat_next_level

add_cat

add_cat_prev_level

.
add_article.tpl
add_article_form

2009 "CN-Software" Ltd.

102

CNCat 4.3.3

admin.tpl
admin_items_begin

admin_item

admin_items_end

admin_item_cat

admin_item_cat_delim

admin_item_rating

JavaScript.
js.tpl
js_calendar

(
)

.
mail.tpl

6.2

mail_admin_to
mail_admin_from
mail_admin_subject
mail_admin_body

mail_add_from
mail_add_reply_to
mail_add_subject
mail_add_body

mail_approve_from
mail_approve_reply_to
mail_approve_subject
mail_approve_body

mail_decline_from
mail_decline_reply_to
mail_decline_subject
mail_decline_body


.
:

2009 "CN-Software" Ltd.

A:

103

{TEMPLATE _}
HTML-
{/TEMPLATE}
.
. :
{TEMPLATE newitem (ITEM[item_id, item_title, item_descr, link_url, link_target])}
ITEM item_id,
item_title, item_descr, link_url, link_target.
HTML- :
HTML-;
;
;
if-then;
if-then-else;
( ).
. HTML- , .
, , .
.
.
__________
HTML-

6.2.1

HTML-
: {DISPLAY _}
: {DISPLAY CATEGORIES}

2009 "CN-Software" Ltd.

104

CNCat 4.3.3

.
CNCat . , index.tpl
, , ..

6.2.2


: {INCLUDE _}
: {INCLUDE top}
; ,
.

6.2.3


1: {$_}
2: {$_[1] }
3: {$_[1][2]}
1: {$CNCAT[item][link_url]}
2: {cn_str($CNCAT[item][item_title])}
. , 1
URL .
2 cn_str(), PHP-
htmlspecialchars(). JS HTML-.
.
: .
:

6.2.4

1.

$CNCAT , ;

2.

$THEMEURL URL ;

3.

$CNCAT_ENGINE CNCat.

1: {IF } HTML- {ENDIF}


2: {IF } HTML- {ELSE} HTML- {ENDIF}
:

2009 "CN-Software" Ltd.

A:

105

{IF $CNCAT[page][cat_item_count]>0}
{$CNCAT[lang][items_in_category]}:
<strong>{$CNCAT[page][cat_item_count]}</strong>
{ELSE}
{$CNCAT[lang][no_items_in_category]}
{ENDIF}
: 0
; .
( ).
:
== != > < >= <= || && %

+ - * /

(. ).
.

6.2.5


1: {_ ()}
2: {_ (, .)}
1: {cn_str($CNCAT[item][item_title])}
2: {cn_date($CNCAT[item][item_insert_date])}
(, , ,
).
:
cn_str(string) ( htmlspecialchars());
cn_date(mysql_date) ;
intval();
ceil();
floor();
round();
cn_copyright() Copyrights ( CNCat Free).

2009 "CN-Software" Ltd.

VII

B: CNCat

107

B: CNCat
Joomla
WordPress
" "

7.1

Joomla
Joomla, CNCat
. Joomla
CNCat Joomla. Joomla CNCat
Joomla.

7.2

WordPress
CNCat WordPress,
WordPress - http://www.cn-software.com/ru/cncat/download/ .
WordPress CNCat WordPress .

7.3

" "
,
, cncat_info_items.php
.
,
PHP :
echo file_get_contents ("http://_/cncat_info_items.php");
, :

2009 "CN-Software" Ltd.

108

CNCat 4.3.3


type

-1 ( )
0
1

limit

( 5).

offset

( 0, ..
).

length

( 150).

sort

:
submit_date ( ) , .. .
rating_moder .
rating_users .

:
http://_/cncat_info_items.php?limit=10&length=100

2009 "CN-Software" Ltd.