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

32.988.

02
004.738.5
69

69

.
CMS Drupal: (+CD ).
.: , 2010. 256 .: . ( 100%).
ISBN 978-5-49807-241-8

, , , , , , , ,
HTML-, . ?
CMS, , -, . CMS Drupal.
? -, . , ,
, . , -, : , , . , , . . !
32.988.02
004.738.5

. .

, , , . , ,
, .

ISBN 978-5-49807-241-8

, 2010


...............................................................................................................8
..................................................................................................9
1. CMS ..................................................................................10
2. Drupal ........................................14
3. Drupal .......................................................179
1. ..................................249
2. - ...................................252


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

1. CMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10
CMS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
CMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2. Drupal . . . . . . . . . . . . . . . . . . . . . 14
Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
CMS Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
CMS Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Unicode library install the PHP mbstring extension . . . . . . . . . . . . . . . . . . . . 43
Copy the ./sites/default/default.settings.php file to ./sites/default/
settings.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
register_globals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
. . . . . . . . . . . . . . . . . . . . . . . . 46
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
. . . . . . . . . . . . . . . . . . 53
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
. . . . . . . . . . . . . . . . . . . . . . . . . . 64
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
. . . . . . . . . . . . . . . . . . . . . . . . . . 67
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
RSS- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
. . . . . . . . . . . . . . . . . . . . 101
Aggregator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Blog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Blog API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Content translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Database logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Forum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Legacy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Locale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
OpenID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Path. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PHP filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Poll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Search. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Syslog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Taxonomy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Throttle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tracker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Update status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Upload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BUEditor . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
backup_migrate . . . . . . . . . . . . . . . . . . . . .
token . . . . . . . . . . . . . . . . .
submitted_by . . . . . . . . . . . . . . . . . . .
captcha . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cck . . . . . . . . . . . . . . .
views . . . . . . . . . . . . . . . . . . . . . . . . .

115
116
116
116
117
117
118
118
119
120
120
122
123
123
126
127
128
130
130
131
137
139
140
142
145
145
151
155
156
159
159
162
165

3. Drupal

179
180
180
181
182
183
185

.............................
Drupal PHP: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PHP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

PHP . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
, . . . . . . . . . . . . . . . . . . . . . . . .
CMS Drupal . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CMS Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CMS Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
settings.php sites\default . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
update.php. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cron.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.htaccess. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
robots.txt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
sitemap.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

186
189
196
196
210
215
216
217
220
224
227
228
231
231
235
236
239
239
241
242
243
244
246
248

1.

. . . . . . . . . . . . . . . . . . 249
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
CMS Drupal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

2. - . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Drupal . . . . . . . . . . . . . . . . . . . . . . .
http://www.onestyle.com.ua . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

252
252
253
253
254
254
254
254


.
, ,
.
, ,
, HTML, CSS, JavaScript, PHP, Java. , Adobe Photoshop Adobe Illustrator
( CorelDRAW). ,
, , .
.
CMS . , CMS
(Content Management System /) ,
.
, . -.
.
CMS, .
CMS,
. .
CMS Drupal.
:

 ;
 ;
 CMS Drupal;
 Drupal;
 ( );
 Drupal.
, . , , , .
, , , , .


,
dgurski@minsk.piter.com ( , ).
!
http://www.piter.com
.

CMS
CMS
CMS

1. CMS

: CMS
.
-.
. ,
.
CMS. :
, .
.
. . ,
.
.
, ,
. ,
. ,
, , .
. .
. ,
.
,

?..
, . . ,
CMS - , , . CMS . . ,
, .
, CMS.
2,
CMS Drupal. , CMS , .

11

12

1. S


CMS
CMS .
-, / .
, 510 . -, 530 . , ,
.
, CMS ,
, , .
CMS ,
.
. CMS ,
HTML
.

CMS
CMS Drupal. ,
, CMS Drupal.
CMS. , . , CMS Bitrix.
CMS $200, $10 000.
CMS. .

( CMS
), . . , $80. , Bitrix
,
$3000.
CMS Drupal. , Joomla!. ,
Drupal. .
CMS Joomla! , CMS Drupal.

CMS

: CMS? , , CMS?
: .
CMS , .
,
, .
CMS

CMS. . ,
.
- CMS? CMS
?
: . CMS
, CMS . CMS .
CMS: Drupal, Joomla!, Mambo ( Joomla!), Wordpress, Typo3
Bitrix.

13

Drupal
Drupal


Drupal
CMS Drupal
CMS Drupal




Drupal

, CMS, .
. , CMS Drupal.

Drupal
CMS Drupal?
. , . , CMS Drupal ,
. ,
.
 , Drupal . ,
.
, .
 Drupal ,
. ,
.
.
 Drupal RSS- , , .
 Drupal
.
URL- RSS- .
 5 , :
, ,
, . .
 .
. , Drupal . ,
, Microsoft Word,
.
 Drupal ,

15

16

2. Drupal

.
.
 ? Drupal
.
 , Drupal
. .
 , (), , Drupal
, .
 . , , /
.
 ( ) Drupal.
. ,
.
Drupal http://www.drupal.org.
CMS Drupal, ,
.
, ( ).


.
-, , .
, .
Drupal . .
, .
, , IP-,
.
,
.


IP-, . .
 .
 - ,
. ?
 , .
 ,
( - ).

- Apache IIS.
-,
.
,
. ?

. ?

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

17

18

2. Drupal

-, .
-. -. , , ,
(, ).
, ,
.
- .
, ,
- .
-. - . -,
.
, -.
, , - , , , ,
- , .
, - , (,
). , . , ,
. , ,
.
.
, . - ?

. .
, -, .

. -
:
.
.
 http://hostpro.ua. , ,
. , .
, , ,
, .
. , ;
.
.
. ,
. .
, ( ).
 http://majordomo.ru. .
, .
,
, .
 :
http://eserver.ru, http://mirohost.net, http://peterhost.ru.


, .
,
. , , .

19

20

2. Drupal

. ,
Linux ( UNIX-) Windows.
Linux . , Linux-
, CMS Drupal . , CMS Drupal
PHP, Linux-.
Windows- ASP. PHP
.
, , CMS Drupal MySQL, Windows- MSSQL. MySQL
.
, CMS Drupal - Apache, Windows - IIS.
Windows MSSQL, Windows, - IIS. Windows- . , CMS Drupal, MySQL, Apache, PHP
. Windows-,
?
, Linux-.
Linux Linux Windows. ,
.
. CMS Drupal
PHP, MySQL PostgreSQL. MySQL, .
, PHP MySQL,
. PHP
5 ( PHP, CMS Drupal, 4)
MySQL 4 5. .
, , mod_rewrite Apache. , mysql/mysqli, gd2, mbstring,
xml PHP ( ).

.
CMS Drupal. , CMS Drupal.
,
.
CMS Drupal
.
, CMS
Drupal, . ,
.
. , .
, .
,
45 %. .
, , . , .
. , . ,
CMS Drupal ( ,
), .
.
, , .
,
3 ( , 3/6/12
).
,
.
.
, .

21

22

2. Drupal


, .
, IP-,
.
IP-. URL-.
URL-,
.


,
.
.
() .
. : http://_.__. , http://mysite.ru.

, , . , .ru,
.com.ua, .com.

.ru ,
. ,
.ru . :
 .af ;
 .am ;
 .az ;
 .by ;
 .cz ;
 .ee ;
 .kg ;
 .kz ;
 .lt ;

 .md ;
 .ua .

,
, http://www.onestyle.com.ua/txt.
php?u=304.

,
/ .
, :
 .com , ;
 .net , (
, (, http://
anekdotov.net));
 .org ;
 .info ;
 .biz ;
 .name , .


http://www.onestyle.com.ua/txt.php?u=306.

.ru, .ua .com.


, ,
.
. , ,
. : http://_.__.__. , http://mysite.com.ua.
. , ,
() .

23

24

2. Drupal


, . , .ru
:
 adygeya.ru ();
 ulan-ude.ru, buryatia.ru ;
 dagestan.ru ;
 komi.ru ;
 grozny.ru ;
 altai.ru ;
 volgograd.ru, tsaritsyn.ru ;
 msk.ru ;
 spb.ru -;
 baikal.ru ;
 zgrad.ru , .
. :
 ac.ru - , ,
;
 com.ru ;
 edu.ru ;
 int.ru ;
 net.ru , ;
 org.ru ;
 pp.ru .

.ru http://www.onestyle.com.ua/txt.php?u=301.

,
, .
( ,
).

. , . :
http://__.__._______.
.
, .


. ()
. , . ( ), .
-
.
. .
. .
.
,
ICANN ( ).
http://www.icann.org/registrars/accredited-list.
html.
, , .
. .
.
, , , (,
) .
.
.
.

25

26

2. Drupal

? ,
, , , . ,
- ,
, .
, . , . .
, . ,
.
. , . ,
, , .
?
, .
 , . ,
.
 .
,
( ,
).
 , .

 , . , , .
 , ,
.
. ,
, , , . .

 .eu , , ,
.
 .fr ,
.
 .us , .

,
, .
. , .

 .ua
( http://mysite.ua ,
Mysite).
, (
).
 .edu.ua ( ).
, .
 .gov.ua
(
) .gov.ua.
 .net.ua ,

.
. .
, : .ua ($70), .com.ua ($11), .org.ua ($7),
.com ($14), .ru ($20), .mobi ($24).
, .
.
. ,
.

27

28

2. Drupal

. ,
.

Drupal
, , . CMS Drupal.
, - Apache,
PHP MySQL ( PostgreSQL).
(, ,
). .
, Drupal ,
. , ,
.
, CMS Drupal , Apache, PHP MySQL.
( http://apache.org/dyn/closer.cgi) - Apache.
( http://dev.mysql.com/downloads/)
MySQL.
( http://www.php.net/downloads.php)
PHP. PHP - Apache,
PHP ,
MySQL.
, Apache, PHP, MySQL .

,
. , - . , .

-
, Apache+PHP+MySQL ,

Drupal

.
-, . (Denwer). ,
.
( ),
.
- Apache 2, PHP 5, MySQL 5
phpMyAdmin. ,
, .
http://www.denwer.ru. , http://www.denwer.ru/dis/Base/
latest?from=index, .
, . ,

.
http://www.denwer.ru/packages/?from=index.
:
 PHP5 (PostgreSQL, mbstring, PEAR
.);
 PostgreSQL 8.2, phpPgAdmin
PHP ;
 FireBird 2, IBExpert, PHP;
 Parser 3 ( XML MySQL);
 Parser 3 ( XML, MySQL
SMTP-);
 PHP 4, - ( CGI- PHP 5);
 PHP 3;

29

30

2. Drupal

 ActivePerl 5.8, , ;
 ActivePython 2.5;
 - Apache 2.2 (mod_unique_
id, mod_dav .), ;
 MySQL 5 ( mysqladmin, mysqlcheck .);
 MySQL 4.


, ( , ),
.

.
2.1. .
, , . ,
, . , , ,
.

, , ,
, . , - Apache .
,
.
, .


, . home , ,
(
), www,
.

Drupal

, http://drupal.org/ CMS Drupal .


home , , mysite.my, www.
CMS Drupal www.
,
, Apache. Start Denwer,
(
).
,
( , ).
http://localhost,
. ,
,
(, phpMyAdmin).

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


CMS Drupal,
. , . .

Drupal

, FTP. , Drupal .
CMS Drupal . Drupal. http://drupal.org/ Download Drupal <>.

31

32

2. Drupal

, CMS Drupal TAR.GZ.


( Linux), , WinRAR. .
, , ,
CMS Drupal ,
. , CMS Drupal, - . RAR-, CMS Drupal, .


cPanel . ,
, , .
, .
.
, ,
. . . 2.1
( cPanel ).

. 2.1. cPanel

Drupal

cPanel . cPanel ,
: , , , -, , , ,
, - , .

: , ,
(. 2.2).

. 2.2.

PHP.
PHP, : , , .
- .
.
( ). ( )
.
, ,
: Home Directory, Web Root (public_html), Public Ftp Root (public_ftp),
Document Root For. Web Root (public_html),
( , ).
. 2.3
CMS Drupal ( ). .

33

34

2. Drupal

. 2.3.

CMS Drupal. ( ). ,
.
.
, CMS Drupal.
, , . ,
.
, , TAR.GZ, RAR, ZIP,
TAR.GZ CMS Drupal, ( , . 2.3) (
( )
).
, TAR.GZ- CMS Drupal
, . -

Drupal

, ,
: / / Drupal. ,
/ Drupal.
RAR- Drupal.
.

FTP
, ,
FTP : IP-, .
CMS Drupal .
- FTP-. , FileZilla.
http://filezilla-project.org/download.php?type=client.
, .
(. 2.4).

. 2.4. FileZilla

FTP- .  .

35

36

2. Drupal


(. 2.5):
 IP- , ;
 , , FTP- ;
 ;
 FTP.
.

. 2.5. FTP

FTP .
, .
, .
, , .
www public_html (
, ). (. 2.6),
. www

Drupal

. .
CMS Drupal.
www public_html , , , , .

. 2.6. FTP

FileZilla. . ,
CMS Drupal? ,
.
CMS Drupal (
)
FileZilla. CMS Drupal .
, , CMS
Drupal, xmlrpc.php, UPGRADE.txt, update.php, install.php
includes, misc, modules

37

38

2. Drupal

Drupal
, , CMS Drupal ,
, CMS Drupal - ( ).
CMS Drupal ( ). .
, home
. , , , , mysite.my.
www. www
. CMS Drupal
www, -.


CMS Drupal, , .
.
MySQL .
, (. 2.7).
. .
,
. , (. 2.7).
, .
, ,
, , ,
, . .
. , . CMS Drupal , All Privileges,
. , . ,

Drupal

, (. 2.7).
.

. 2.7.

. .
,
.
.


.
MySQL phpMyAdmin.
. , (
phpMyAdmin ),
.

39

40

2. Drupal

, -, ( Start Denwer).
http://localhost/Tools/phpmyadmin/index.php (. 2.8).
,
.

. 2.8. phpMyAdmin

root .
.
.

CMS Drupal
CMS Drupal. , . ,
.
 http://__ (
-, ).

CMS Drupal

, mysite.my, ,
http://mysite.my.
 CMS Drupal ( ).
CMS Drupal, .
Drupal . Drupal.
, .
1. Choose language ( ). Install Drupal
in English.
2. Verify requirements. CMS Drupal ( , Drupal).
3. Database configuration ( ) Set up database: Database configuration
( ). ,
. , , ? .
, Database type MYSQL MYSQLI
( PGSQL1, , PostgreSQL). MYSQLI ,
( ).
Database name, Database username Database password
, ,
.
Database host localhost IP- ,
.
localhost. IP-,
.
MySQL , Database port
.
1

, , Drupal
MSSQL, ( ) .

41

42

2. Drupal

Table prefix. , CMS Drupal .


.
.
, ,
SQL- (CMS
Drupal , ).
4. CMS Drupal ,
. Drupal Drupal installation
complete. Configure site.
,
3, Drupal . , , .
, , (
).
3 CMS Drupal. ,
, .
5. , CMS Drupal .
, CMS Drupal
Drupal installation complete. ...to
your new site. . , (
CMS Drupal).
, .
To begin, create the first account. ,
User account.
Drupal .
, .
, . ,
, .
Username E-mail address.
.

CMS Drupal

CMS Drupal Create new account.


, ,
.
CMS Drupal, Username E-mail address,
.
 Password. .
 Site name Site e-mail address. ( ), .
, CMS Drupal.
 Default time zone.
, . , CMS Drupal .
 Clean URLs. ,
Enabled. .
 Update notifications.
Drupal.
,
. .

2.2. CMS Drupal. CMS Drupal, 2.3. CMS Drupal. CMS Drupal.

CMS Drupal
CMS Drupal
. ,
.

Unicode library install the PHP mbstring extension


, Drupal
. ,
.

43

44

2. Drupal

, CMS Drupal
UTF-8 ( Unicode), PHP
, php_mbstring.dll,
.
,
PHP (, http://
www.denwer.ru/packages/?from=index).
PHP,
php.ini ( usr\local\php< > ) ;extension=php_mbstring.dll
extension=php_mbstring.dll ( ,
).
- .
Drupal ,
. ,
php_mbstring.dll.

Copy the ./sites/default/default.settings.php file to ./sites/


default/settings.php
, .
CMS Drupal sites default.
default.settings.php.
settings.php.

register_globals
CMS Drupal ,
, GET POST-. .
, ,
.
?


php.ini (, INI,
php.ini.TXT) :
[PHP]
register_globals = Off
,
CMS Drupal, www (. .
. Drupal ).
, .


, CMS
Drupal. http://onestyle.com.
ua/o.php?p=193&tag=5.



CMS Drupal. , . ( ) CMS
.
.
CMS Drupal . CMS Drupal, . , CMS Drupal . - ,
CMS Drupal, , ,
http://drupal.org. , - .
.
. ,
.

45

46

2. Drupal

CMS Drupal ,
.


, CMS Drupal.
-
. , -
, , . , ,
?
CMS Drupal .
2008 , CMS
. , CMS Joomla! (
) 57 .
.
Drupal
.
Drupal ,
, .
, CMS Drupal . ,
, . ,
, , , CMS Drupal . ,
( http://drupal.org). ,
CMS Drupal, , .
, CMS Drupal
. ,
CMS Drupal .

CMS Drupal ,
, , security@drupal.org
( CMS, , , ). OpenPGP
0xA1FDFAC2.

, CMS Drupal . , ,
. ( ) .

Locale
Locale. CMS Drupal, . ,
, .
- (/
, , , . .), (
, Drupal).
, , Administer. .
,
Administer . Site building . Site building
. Modules.
/ .


AdministerSite buildingModules.

Modules , CMS
Drupal. Locales .
, Save configuration.


Locale .
CMS Drupal PO. http://
drupaler.ru/.
http://drupaler.ru/translate/download
. , Russian (. 2.9). ,

47

48

2. Drupal

Drupal, .
, .
 . CMS Drupal,
( ).
 . .
 . .
,
.

. 2.9. CMS Drupal


Locale.
 CMS Drupal Locale
AdministerSite configurationLocalization. .
 Drupal : AdministerSite
buildingTranslate interface AdministerSite configurationLanguages.
AdministerSite buildingTranslate interface (. 2.10).

Import Language file ( PO). , ( Import into). Import


, .

. 2.10.

, AdministerSite
buildingTranslate interface. , ,
.
, . , .
CMS Drupal ,
AdministerSite configurationLanguages.
languages page AdministerSite buildingTranslate
interface (. . 2.10).
Default
. Save configuration.

49

50

2. Drupal



, , .
, . . -
?
, . ,
. ,   ( Drupal ), , (. . 2.10).
.

,
CMS Drupal , .

,
, .
, .
. .

2.4. . CMS Drupal, 2.5. . .


CMS Drupal.
, , ,
. , CMS Drupal, . .


, CMS,
, ,
,
. . , , ,
Drupal ( CMS Drupal) ,
.

  (http://<>/?q=admin/settings/
site-information).
. ,
CMS Drupal.

,
.
.
,
.

 . ( , Drupal).
CMS Drupal, .
 E-mail
. (
),
, . . CMS
Drupal,
.
 .
, ( . ).
 : ,
.
.
.

51

52

2. Drupal

 ,
.
( , //,
, ).
. ,
( )
( ).
 , ,
.
. , :
-
, .
 . http://<>/?q=node.
, ,
.

2.6.
(, , . .) .


, , ,
.
CMS Drupal, , , ,
. 
 . , ,
Drupal, .
 , CMS Drupal .
 ( ) - ( ) . ,


.
 ,

.
 ,
( ). ,
(
), .


,
CMS Drupal? . , ,
, .
CMS Drupal , ,
, Drupal, , .
.
CMS Drupal
Drupal http://www.drupal.org ( http://drupal.org/project/themes
http://drupal.org/project/< >). 400 .
, , ( , ,
dev, ). , ,
CMS Drupal ( 1280 800 ).
. ,
.
, .
.


CMS Drupal
. ,

53

54

2. Drupal

themes ( ,
CMS Drupal ) sites\all\themes ( themes ,
).
  .

. ,
, .
, , ,
.
, ( , )
.
, CMS Drupal : Bluemarine, Chameleon, Garland, Marvin, Minnelli, Pushbutton.
( Garland). , ,
?
.

. , ,
, .
, .
  . ,
.
. , , .

2.7.
.

Movable Type
CMS Drupal , ( ) - Movable Type.

CMS Drupal
Gutenberg (http://drupal.org/project/gutenberg). ,
Movable Type. Movable Type sites/all/themes/gutenberg.
Movable Type http://www.thestylecontest.com/.


,
.   , .
, ,
.
.
, .
 / , , ,
, .
 / favicon.ico, , .
 , ( , . .).
 , .
 favicon.ico ( , ,
, ).
, , ,
, .
. , , , . ,
,
.


, CMS Drupal, .
, (

55

56

2. Drupal

). , ,
, , . ,
.  .
CMS Drupal
. CMS
.
, , ,
. ,
, , ,
, .



,
, CMS
Drupal. , .

.
,
, 150300 . . ,
3040 , , (, , )
515 .
, , CMS, . , .


CMS Drupal
. .

. , PHP
,
.
, PHP Perl (
CMS Drupal), , HTML-. ,
, PHP , , HTML-. .
,
, PHP HTML-
.
, HTML- .
(,
)
, CMS Drupal HTML- ,
, PHP.

, , , ? , ,
(, - ).
.

, ,
, .
, - (
), .
, ,
.
,
CMS Drupal .
,  .
: ., (, ) ( , ).

57

58

2. Drupal


.
. ,
, . ,
CMS Drupal
Statistics Throttle.
.
, HTML. . -
,
( 1,52 ,
3045 ).
CMS Drupal
. , .
,
, .
( ) , -
.
CMS Drupal -.
, .
, , .
. ,
,
.
, CMS (
, ).
. , JS- CSS template.php .


 ,
. CSS JavaScript
( CMS Drupal).
CSS- JS- ( CSS-
JS-), . .
,
(
) .
  .


?
. , . .
? , , JPEG-. 200300 ,
1030 . ,
, , ,
, .
CMS Drupal -
!
JPEG,   .
, .
,
.


  .
,

59

60

2. Drupal

CMS Drupal.
: ,
!
. , .

, ,
CMS Drupal.
, CMS Drupal,
. ,
. , ,
CSS- JS- .
, .
files ( Drupal) sites\
default\files ( Drupal). . .
 , , .
.
 .
, , ,
CMS Drupal.


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

, , .
.
 HTML-. CMS
Drupal. HTML, .
, .
 .
, HTML-
( <p> <br>). Enter <p>,
<br>. ,
, , .
, .
 HTML. ,
, ( ).
.


HTML- ,
. .

HTML
-, .
, . ,
<strong>, , <em>, .


rel="nofollow". , ,
, .

 URL. - . ,
http://www.onestyle.com.ua, <a
href="http://www.onestyle.com.ua">http://www.onestyle.com.
ua</a>.
, , .

61

62

2. Drupal

, , ,
.
( href
, <a> </a>
).
 PHP. CMS
Drupal. ,
PHP-, . , PHP-,
.
! , . .
,
. , ,
.
, .


2.8. . .

.   . , ,
, .
.
 Filtered HTML ,
HTML ( , <a>, <em>, <strong>, <cite>, <code>, <ul>,
<ol>, <li>, <dl>, <dt> <dd>) URL (
72 ).

, , <p>, <br /> <img>,


.

 Full HTML
URL ( 72 ). .
 PHP code PHP.
,
. Filtered HTML.
.

, .
? Filtered
HTML ,
- .
, , ,
, ,
. , Filtered HTML. , ,
.
. ,
, - , , - ,
.


, CMS Drupal
, ? , . ,
CMS Drupal, ,
.
, ,   .

63

64

2. Drupal

. ,
. . , , :
http://<>/?q=admin/settings/clean-urls http://<>/admin/settings/clean-urls.
: http://<>/?q=admin/settings http://<>/
admin/settings.
:
(q), . , CMS Drupal,
, .
,
. ,
. , CMS Drupal, , . , -
http://<>/?q=admin/settings, http://<>/admin/settings.
. . .
.
mod_rewrite -
Apache, , , ,
.

2.9. .


,
. , PHP ( CMS Drupal ).
.
 ,
.

 ? , .
 . , .
 , ,
, .
 .
 ,
, .
.
. , . : ,
.
CMS Drupal , ,
. ! CMS Drupal , . ,
, . .
  .
.
 403 ( ) 404 ( ).
.
!
HTML-
.
 .
. ,
.
, .
! .

65

66

2. Drupal

, ,
. , , .
 CMS Drupal , .
.
( CMS Drupal
).
CMS Drupal ,
. 
  . ,
. , , .
.
, CMS Drupal
. , CMS Drupal .
,
, .
,
.


, , . - ( )

. - !
.
. CMS Drupal ,
  .

.
, - .
, .
.
, ,
http://<>/user. .
,
. , .
, .


, , CMS Drupal.
, .
: , , . ,
CMS Drupal .

.


CMS Drupal
.
. , :
 ;
 ,
, , ;
 , , .

67

68

2. Drupal


  .
,
.
, .
,
, ,
.
, ,
. .
 . - , ,
. .
 , .
. , ,
. ,
, .
  .
 . ,
.   .
, ,
. , :


, (
files);

, ;

(
85 85 );

(
30 );

, ,
.

, ,
. ,
.
- (shellcode), PHP, , .
, 1, , , .
, , ,
PHP- CMS , , .
. PHP-
. ,
CMS Drupal, ,
. ,
,
, , .
 . CMS Drupal,
,
. ,
.
, .
1

, .

69

70

2. Drupal


,
. CMS Drupal.
,
, .
http://<>/?q=user/register,
. , ,
, .

,   , , , .

, , ? , ,
. ,
.
.
, : .
, , . , . - :
 , ;
 ( );
 , , , , ;
 ;
 ( CMS);
 ,
( ).

. . , ,

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


 
,
. ,
, . ,
: , , (
), , , . ,
.
( ).
, ,
. Drupal , .


, , ? , .

 .

71

72

2. Drupal

,

. ,
.


,
 .
,
,
. , .
. ,
.

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

, . .


. ,
, ,
. , ,
.

CMS Drupal,
. ,
.
.
CMS Drupal
. , ,
. ,
. ,
, .
, CMS Drupal,  .


,
, .
, . , , ,
, , .

( CMS Drupal) ( CMS
Drupal)  ,
,
.
(
) ( ),
.
,
.
( )
. 2.11.

73

74

2. Drupal

. 2.11.


,
.


, CMS Drupal ,
. ,
, , ,
Forum.
, , .
 .
, .
, . ,
() ,
.


. ,
 . ,
. , .
, . - .


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


,
. ,
, . , ,
.


CMS Drupal .   .

75

76

2. Drupal

( ),
. ,
.
. . ,
, , , , .
:
 % : ;
 _ .
, , dura%,
Duracell%.


, ,
, CMS Drupal , // .
. ,
  , .


.
Drupal, CMS, , . !
.
, , CMS Drupal ,
, .

,  . , ,
. , , .


CMS Drupal. , . ,
:
 ,
;
 ;
 ;
, ( , , , ,
);
 , ; ,
;
 , , ,
(,
, ).
,
. .
, ,
. , .

77

78

2. Drupal

CMS Drupal, ,
.


, . ,
, .
.


,
. ,
,
.
.
, ,
.
,
.
.


. CMS Drupal,
: PHP, MySQL, - Apache.
, .
 Drupal CMS Drupal.
 GD GD, PHP.
 PHP - PHP.
, , PHP (, phpinfo()).

 PHP register globals , register_globals


php.ini. PHP
$_POST[''] $_GET[''] $.
, .
 MySQL - PHP.
, SQL, MySQL ,

.
SQL : ,
, . MySQL,
, ,
, , .

MySQL, , tuning-primer.sh,
http://www.day32.com/MySQL/. , , .

 Unicode .
 - Apache.
 ( cron) cron, , .
cron , , cron (
).
 , MySQL.
 , .
 (
). ,
  .
CMS Drupal .

79

80

2. Drupal

 PHP ,
PHP.
 CMS Drupal. ,
.

2.10.
,
.


- , .
, Drupal.
Node () .
, .

()
,
CMS Drupal .
, .
. ,
, .
, , .
, : , ,
( ) ( ). , .

, , . Garland ,
.

, ( CMS Drupal;

).
/ ,
.

. , , CMS Drupal
. ,
. , , . CMS
Drupal Drupal.


.
: , , .


(
 ). : ,
, .

Drupal
CMS Drupal. CMS Drupal .
:
, , .
, .
 CMS Drupal. .
 :
( ), .

81

82

2. Drupal

Primary links
:
, , .

Secondary links
:
, ,
.


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


CMS Drupal. ,
(
). Content translation.
:
, , .


:
, ,
.


, Aggregator
( CMS Drupal). , Aggregator RSS-
, .
:
, , .


, ( ).
:
, , .
, .

,
.
. 15 .
 , ( ).

header images
CMS Drupal. :
, , .
, .
 ,   ( ).
 HTML- PHP-,
. HTML- <img src="/
themes/Amor_Azul/images/header-image.jpg" alt="Girl" />.

83

84

2. Drupal

 CMS
Drupal (,
. .
),
. Full HTML.

header text content top


CMS Drupal. :
, ,
.
, .
 ,   ( ).
 HTML- PHP-,
. HTML-.
 CMS
Drupal , . Full HTML.

Footer Links
CMS Drupal.
: , , .
, .
 ,   ( ).
 HTML- PHP-,
. HTML- <a href="#">Home</
a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">About Us</a>&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">Services</a>&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;<a href="#">Contact Us</a>&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;.


CMS Drupal ,
. Full HTML.


.
, . ,
.
:
 ,
, ;
 ( CMS), , .
 .
. , , . , ,
 . .
 , . , .
<none>, .
 ,
.

, .
, .

,
. (
),

85

86

2. Drupal

, PHP-, , .


,
.
.   .
:
 ,   (
);
 HTML- PHP- ( ), ;
 ,
.
CMS Drupal (
) . CMS Drupal
.
. , LiveInternet Rambler TOP100.
.
http://top100.rambler.ru/top100/top_add.shtml.ru?top http://www.liveinternet.ru/add.
.

, .
.
Full HTML. , , .
.
, . ,
.
, LiveInternet:

<!--LiveInternet counter--><script type="text/javascript"><!-document.write("<a href='http://www.liveinternet.ru/click' "+


"target=_blank><img src='http://counter.yadro.ru/hit?t52.16;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: "+
" 24 ' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->
, :
<script type="text/javascript"> document.write(<a href='http://www.
liveinternet.ru/click' target=_blank><img src='http://counter.yadro.
ru/hit?t52.16;r"+escape(document.referrer)+((typeof(screen)=="undefine
d")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.
colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.
URL)+";"+Math.random()+"' alt='' border='0' width='88' height='31'></
a>"); </script>

.
.


,
.
, . , , - , ,
.
,
 .
.

87

88

2. Drupal


,
, .
. , ( ) .

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


CMS Drupal , ,
.
 .
( ). , , ,
. . ,

, ( ) .
: ,
, .

, , ,
. , , , .

 . - .
, . .
. ,
. , .
.


,
, . : ; ;
50 ; ;
; ; ;
.

 . CMS Drupal , .
.


,
, . , .

, CMS Drupal, ,
.
.


 .

89

90

2. Drupal

CMS Drupal .
,
. ,
,
. , .
, ,
.
 , . ( - )
, CMS Drupal
.

, ,
, .
.
 , .


,
. , . , .

,
.

,
.

, .


, .

, , :
.
CMS Drupal .

.

.

CMS Drupal .
,
. ,
,
.
.
 , : , , .
 ,
.
 ,
( ) .
 ,
,
, .
 ,
.
 ,
,
, .
 ,

91

92

2. Drupal

( )
.


, .  . ,
.

, , .


, , ,
.
, .
. , . . ,
.
( , ).
,
.
 Title (
<title> ).
 Body ( <body> ).
 n .
, .


, . Filtered HTML.
 ,
, ,
. , ,
.

, , .
 , .
 .
.
 ,
. CMS
Drupal .
CMS Drupal .
 ,
, :
, , .
 , , . , .


( CMS )
.


, .
, ,
( <Primary Links>).

,
.

CMS Drupal.
,

93

94

2. Drupal


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


,   .
404 ( )
. .
,
.
Page, Page.
( Title) -
Page not found, Body
. :
<center><strong> , , ,
, =(</strong></center>
...
Body HTML,
Filtered HTML ( ), Full HTML.
, .
, .
, , , (

, ,
http://< >/?q=).
  ,
404 ( )
. , .


.

2.11. , 404 403.


CMS Drupal , , .
, .
,
.
 , . .
 .
.
 : ,
,
. , , .
, ,
.
 . .

, .

95

96

2. Drupal

, CMS Drupal.  .
CMS Drupal ,
. CMS , .
CMS Drupal , .
 .
, , . .
, , . ,
, , , (, ), ( , ).
 Primary links .
. . ,
.
 Secondary links CMS Drupal.
Primary links
. , .
.
 . ,
 .
. . .  .
, , . , .
 . CMS
, .
 , . CMS
,

, CMS , .
 , . , :


,
, ( );

, .

,
(
, ,
). ,  .

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

97

98

2. Drupal

,
.
,
, , .
,
.
CMS Drupal 
. , .
, CMS . ,
CMS Drupal . ,
, , .

. ,
, (   ). , , , .

, ,
, , .

RSS-
, CMS Drupal, RSS. .
.  RSS, .
 RSS- RSS-.
 XML , RSS-: ,
, .

RSS- http://<>/rss.
xml.
, RSS ,
. , Blog ,
(http://<>/?q=blog/feed), ,
((http://<>/?q=blog/< >/
feed)).

, CMS Drupal
. CMS, ,
- .
, . , , , Color, Comment, Help, Menu
Taxonomy. CMS Drupal Database logging.
CMS Drupal ,
CMS, . ,
Forum Upload. .
, :
, .
, , . ,
. ,
, , , .
, !
.
CMS Drupal , .
. ,

99

100

2. Drupal

, , ,
.

.


CMS Drupal . themes modules. , modules
( , CMS Drupal), sites\all\modules ( modules , ).

, sites\all\modules,  .

, ,  , .
, , INSTALL.txt.
, , ,
.

. ,
.
.


,
 . ,
, . .
- , ,
- ,
.

, ,
, , .
.
,
.

,
sites\all\modules modules. , , . ,
.

. , CMS
Drupal . ,
.


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

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

101

102

2. Drupal

 Block (
).


(
, ), . .

PHP
, PHP- TRUE (PHP-, )
. .

 Filter (  ). ,
, .
.
 Node :


,
;

,
, , ;

create page content create story content


Page ( Story);

edit own page content edit own story content;

edit page content edit story content;

 System :



( );

,
, ;

 User
:


(
, );

, ,
;

,
;

 Watchdog ( CMS Drupal)


. , .

Aggregator
( ). RSS-, RDF Atom.

Aggregator
 ( CMS  RSS-). RSS-,
Aggregator , ,
, .
 , . , .
 RSS- RSS- , Aggregator .
RSS- , ( RSS ) , ,
RSS-.

103

104

2. Drupal

 RSS-
. ,
.


, ,
Aggregator.

RSS-, ( CMS RSS-) .

, ( cron
).

( , )
( CMS RSS-) .

RSS-
, Aggregator , ( CMS RSS-)
. (, ) , .


, ,
, Aggregator.
, Aggregator
RSS- : RSS- <
> < >.


:
 RSS- ;
 RSS- (
, :
, ).

Blog

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


(
http://<>/?q=blog/< >; http://<>/?q=blog/1).
 , Blog
.
.
: , , .


Blog
. , .


:
, , .
CMS Drupal.
CMS
(  ,
). ,

105

106

2. Drupal

, ,
,
.

Blog API
,
API XML-RPC
(, Ecto MacOS (http://infinite-sushi.com/software/ecto/)
http://www.flickr.com/),
. ,
, Aggregator.
, API.


Blog API  API .
.
 -
,
.
, . .
, .
 , .
JPG, JPEG, GIF, PNG, TXT, DOC, XLS, PDF,
PPT, PPS, ODT, ODS, ODP.
 1 . ,


, PHP.
 ,
.

Microsoft Word
Microsoft Word1. ,
Office, . , (. 2.12).
.

. 2.12.

Microsoft Word,
.
.
( )
1

Microsoft Word 2007.

107

108

2. Drupal

. .
 API CMS Drupal
-.
 URL- URL- :
http://<>/xmlrpc.php.

, .

. , API,
, . ,
- Google
(http://docs.google.com),
API: MetaWeblogAPI.


. , , .

Book

.
, FAQ.
,
, , .
.
,
, .
,
, .
:
 ;

  ;

;
 ;
 .


. ,
.
CMS Drupal .
 CMS ,
,
.
 CMS .
, , .
 , , .


Book CMS Drupal . .

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

109

110

2. Drupal


. .


( ,
), .
Book.
.
, .

Color

() .
,
.
Color , (
).
  (http://<>/?q=admin/settings/file-system). .
Color, ,
(, ) style.css . Color style.css. ,
Drupal
style.css. style.css
. files ( Drupal)
sites\default\files ( ),  
.

Comment
. , .

.
:
, , , .

Contact
:

, ( ).

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


, Contact.

111

112

2. Drupal


.   .
,
( , , , ,
. .), :
 ,
;
 ,
;
 ,
(
).
,
http://<>/contact.
.


:

http://<>/?q=contact;
 ( CMS Drupal).

Content translation1
.

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

Drupal.


, .
,
.
, Locale.

Database logging1
,
.

Drupal

CMS Drupal , Site network (http://drupal.org/project/site_network).

,
Drupal . , ,
, CMS Drupal.
CMS Drupal
XML-RPC, CMS Drupal.
, ,
CMS Drupal, , , (
CMS Drupal). , _@, ,
. , mylogin@drupal.org.
 : .

CMS Drupal, CMS Drupal,
1

Drupal.

113

114

2. Drupal

, ( ,
).
Drupal PHP drupal_client_page(),
, .

Forum

. ,
Comment Taxonomy ( ), Forum.


.

. .

. ( ),
.
 .
 . , :


,
;

, ( 25 );

,
.


,
http://<>/?q=forum.
. ,
,
Forum: .
,  . . ,
.


, , Forum
. ,
,
.


:
 ;
 
;
 ( CMS Drupal);
 ( CMS Drupal
).

Help
CMS Drupal. , ,
. , ,
Help .

115

116

2. Drupal

Legacy1

CMS Drupal. ,
Drupal ( ).

.

Locale
CMS Drupal. ,
, , CMS
Drupal .
PO- , .
,
Locale . , ,
, PO. PO-
CMS Drupal, .
,   (http://<>/?q=admin/
settings/locale Drupal)   (http://<>/admin/build/translate/export ).
.

Menu
,
CMS Drupal. CMS Drupal Menu.
1

Drupal.

OpenID1
OpenID ( , OpenID, ). , OpenID.
, CMS Drupal
OpenID. , , (
OpenID ), .
, OpenID,
CMS Drupal , , OpenID,
. OpenID ,
OpenID.
,
OpenID.
. ,
URL- OpenID ( OpenID , ).

2.12. OpenID OpenID


.

Path
(
).
( )
. ( ).
, about. ,
1

Drupal.

117

118

2. Drupal

, http://<>/about, http://<>/
node/33. , .
,  . ( ),
, . , , , , .
:
 ;

.

PHP filter1
PHP- . PHP . , PHP
CMS Drupal ( ,   ).
.
PHP PHP. , , ,
PHP.

Ping
. http://pingomatic.com/.
(, weblogs.com,
Technorati, blo.gs, BlogRolling, Feedster.com, Moreover) , .
1

Drupal.

Poll
, .
http://<>/?q=poll.
, ,  .
,
. .
 , .
 .
 ( CMS Drupal)
, . .
,
.
,
.
 ,
.

, .
:
 (
);
 ,
,
;

;
 ;

119

120

2. Drupal

 ( CMS
Drupal);
 ( ).

Profile

. , ( ),
Profile. (
),
, .
  . , , : ,
, , , , URL, . , ,
.

Search

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

( 100, ).
Search   . -

,
.
, ,
Search .
 , .
. , ,
. Search
. .
, ,
Search 
. . , ,
  .


Search .
,
:
 ,
;
 OR ( , , , ,
, ), ;
 , , ;

type:_;
 , ,
;
 (, *, 0
).

121

122

2. Drupal


:
 ( , );
 ;
 .

Statistics
, ,
 ,
. .
 , .
 , .
 ,
.

.

. Statistics,
, Statistics
.
,
Statistics .
:
 , , , ;
 .

Syslog1

CMS Drupal (  ). , ,
, , , CMS Drupal ,
. ,
CMS Drupal . ,
Syslog.
Syslog Linux
( eventvwr.msc) Windows.
Syslog    .
.

Taxonomy
Taxonomy . ,
().
,
.
, :
 ,
;
 () ;
 .
.
, .
, ,
, .
1

Drupal.

123

124

2. Drupal


,
. .
, Taxonomy , ,
. .

.
, . ,
, ,
. .

Forum,
. .
, , :
 ;
 ,
;
 , ( ,
);
 ;
 CMS Drupal ,
.
, , ( CMS Drupal
).
, . , ( CMS
) ,
, .

-, , .
,
.
,
, .
, ,
.


/ (
). (
,
), .

, .

,

, , . , :
, , , , .
Taxonomy.
, , , , Story :
 ;
 ;
 ;
 ;
 .

125

126

2. Drupal

,
, . ,
, ( ).
Story,
, , ( ).
, , .
, ,
. , ,
. , . (
), ,
, . - , ,
.

2.13. , ,
- .


Taxonomy .

Throttle

.
. ,
(
).
, :

 (
)  ;
 (
)  .
,  , .
 , ,
.
 , , .
 (
Throttle). , ,
Throttle . ,
10 %
.

Tracker
.
, .
,
( ),
, .
, , . ,
, .
, Comment.

127

128

2. Drupal

Trigger1
,
( ),
(, ).


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

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

Drupal.

 URL-,
.


, .
 . ,
.
 :


 :


 :
cron.
 :


 :


129

130

2. Drupal

Update status1
CMS Drupal
.
 . ,
,
. , ,
.
.
 ,
.
 ( ).
 , ( CMS Drupal) , , .

Upload

.   .
. :
 , ( );
 , , ;
 , (
JPG, JPEG, GIF, PNG, TXT, DOC, XLS, PDF, PPT, PPS, ODT, ODS, ODP);
 , ;
 ,
.
, ( )
, .
1

Drupal.

, , .
:

;

( - ).


, CMS Drupal . , , ,

.
, .
 ( CMS Drupal) (http://<>/?q=blog/<ID >) . Blog.
 (http://<>/?q=node/add):


(http://<>/?q=node/add/blog)
;
Blog;

(http://<>/?q=node/add/poll) ; Poll;

(http://<>/?q=node/add/book) ; Book;

(http://<>/?q=node/add/forum)
; Forum;

Page (http://<>/?q=node/add/page)
;

Story (http://<>/?q=node/add/story)
.

131

132

2. Drupal

 (http://<>/?q=user/<ID >)
.
 (http://<>/?q=tracker) ( ), . Tracker.
 ( CMS Drupal RSS-) (http://<>/?
q=aggregator):


(http://<>/?q=aggregator/sources) ( RSS-),
, ; Aggregator;

(http://<>/?q=aggregator/categories) ( RSS-),
, , ; Aggregator.

, (http://<>/?q=admin) , , , . .
 (http://<>/?q=admin/build):


(http://<>/?q=admin/build/block)
, , , ;

(http://<>/?q=admin/build/menu)
, ( , );
Menu;

(http://<>/?q=admin/build/modules) / ,
, CMS Drupal;

( CMS Drupal) (http://<>/


?q=admin/build/path) , , ; Locale;

(http://<>/?q=admin/build/path)
URL- ,
; Path;

(http://<>/?q=admin/build/themes)
, ,
,
;

( CMS Drupal) (http://<>/?q=admin/build/


trigger) ,
( ), ; Trigger;

(http://<>/?q=admin/build/contact)

; Contact.

 (http://<>/?q=admin/content):


( CMS Drupal ) (http://<>/?q=admin/


content/taxonomy) ,
, ;
Taxonomy;

(http://<>/?q=admin/content/comment)
, , , ;
Comment;

(http://<>/?q=admin/content/node-settings) , ,
;

(http://<>/?q=admin/content/book)
; Book;

( CMS Drupal) (http://<>/


?q=admin/content/search) ; Search;

RSS (http://<>/?q=admin/content/rss-publishing)
RSS- ;

( CMS Drupal RSS-) (http://<>/


?q=admin/content/aggregator) , RSS Aggregator, ,
; Aggregator;

133

134

2. Drupal


(http://<>/?q=admin/content/node)
( ), , , , , . .;

(http://<>/?q=admin/content/types)
,
;

(http://<>/?q=admin/content/forum)
/, ; Forum;

 (http://<>/?q=admin/settings):


(http://<>/?q=admin/settings/distributed-authentication)
, CMS Drupal; Drupal;

(http://<>/?q=admin/settings/date-time)
, . .;

( CMS Drupal) (http://<>/?q=admin/


settings/actions) ,
;
;

(http://<>/?q=admin/settings/uploads) ;
Upload;

(http://<>/?q=admin/settings/site-information)
,
( , , , . .);

(http://<>/?q=admin/settings/search) , Search;
Search;

(http://<>/?q=admin/settings/image-toolkit) JPEG-,
;

( CMS Drupal ) (http://<>/?q=admin/


settings/locale) , -

, ,
; Locale;


( CMS Drupal) (http://<>/


?q=admin/settings/logging)
;

(http://<>/?q=admin/settings/performance)
CMS Drupal, ;

(http://<>/?q=admin/settings/throttle) ,
, ;
Throttle;

( CMS Drupal) (http://<>/?q=admin/


settings/sites-registry)
CMS Drupal; Drupal;

(http://<>/?q=admin/settings/site-maintenance) (
,
) ;

(http://<>/?q=admin/settings/error-reporting) , ;

(http://<>/?q=admin/settings/admin)
,
;

(http://<>/?q=admin/settings/file-system)
CMS Drupal ;

(http://<>/?q=admin/settings/filters)
, ,
;

(http://<>/?q=admin/settings/clean-urls) ;

API (http://<>/?q=admin/settings/blogapi)
API , ; Blog API.

135

136

2. Drupal

 (http://<>/?q=admin/user):


(http://<>/?q=admin/user/settings)
;

( CMS Drupal) (http://<>/


?q=admin/user/search) ( ); Search;

(http://<>/?q=admin/user/user) ,
, (,
, ,
. .), ;

(http://<>/?q=admin/user/profile)
,
;
Profile;

(http://<>/?q=admin/user/rules) , ,
;

(http://<>/?q=admin/user/roles) ;

( CMS Drupal ) (http://<>/


?q=admin/user/access)
, .

 ( CMS Drupal (http://<>/?q=admin/


reports)) (http://<>/?q=admin/logs):


(http://<>/?q=admin/logs/watchdog)

, ,
, ;

(http://<>/?q=admin/logs/referrers)
URL, ; Statistics;

(http://<>/?q=admin/logs/access-denied)
, ,
( );

(http://<>/?q=admin/logs/page-not-found)
( ,
), ,
() ; ;

(http://<>/?q=admin/logs/search)
, ;
Statistics;

(http://<>/?q=admin/logs/hits)
, ; Statistics;

(http://<>/?q=admin/logs/pages) ,
; Statistics;

(http://<>/?q=admin/logs/visitors)
,
,
; Statistics;

(http://<>/?q=admin/logs/settings)
CMS Drupal ( Statistics); Statistics;

( CMS Drupal) (http://<>/


?q=admin/reports/updates) CMS Drupal
(,
); Update;

(http://<>/?q=admin/logs/status) CMS
Drupal, -, PHP (,
. .).

 (http://<>/?q=admin/help)
.


Drupal, . , ,

137

138

2. Drupal

. ,
CMS Drupal , .
.
- ,
, , ,
, .
CMS Drupal,
, , http://drupal.org/project/Modules? ,
.
, . , http://drupal.org1 (
,
):
 3rd party integration (350);
 Administration (264);
 CCK (187);
 Commerce/advertising (94);
 Community (193);
 Content (455);
 Content display (486);
 Developer (186);
 e-Commerce (90);
 Evaluation/rating (72);
 Event (46);
 File management (61);
 Filters/editors (153);
 Import/export (77);
 Javascript Utilities (114);
 Location (47);
1

 Mail (113);
 Media (169);
 Multilingual (29);
 Organic Groups (55);
 Paging (20);
 RDF (15);
 Search (78);
 Security (59);
 Statistics (25);
 Syndication (70);
 Taxonomy (137);
 Theme related (129);
 User access/authentication (156);
 User management (140);
 Utility (462);
 Views (115).
, .
.
, .
: , ,
- .

Image (http://www.drupal.org/project/image). ,
, .
.
Node Image Block (http://www.drupal.org/node/48676).
, .
Node Media (http://drupal.org/project/node_media). , , .
.

139

140

2. Drupal

Slideshow (http://www.drupal.org/project/slideshow).
JScript-, -.
Zippy Images (http://www.drupal.org/project/zippy_images).
, ZIP.
Exif (http://www.drupal.org/project/exif). EXIF, , .

BUEditor (http://www.drupal.org/project/bueditor). ,
.
IMCE (http://drupal.org/project/imce). , . ,
. (
).
Comment Upload (http://drupal.org/project/comment_upload). , .
Signature module (http://drupal.org/project/signature).
( , CMS
Drupal ) ,
, .
Views (http://www.drupal.org/project/views).
, ( ,
). ,
(
).
Addressbook (http://www.drupal.org/project/addressbook). .
Job Search (http://www.drupal.org/project/jobsearch). . -

,
.
Map module (http://www.drupal.org/project/map).
Google .
Code Filter (http://drupal.org/project/codefilter). ,
<code> <?php ?>.
GeSHi Filter for syntax highlighting (http://drupal.org/project/geshifilter). Code Filter, ,
. PHP,
.
GeSHi, http://sourceforge.net/project/showfiles.php@group_id=114997.
SpamSpan filter (http://drupal.org/project/spamspan). ,

(, - ,
).
Table of Contents (http://drupal.org/project/tableofcontents). ,
, <h2> <h3>.
, <!--tableofcontents--> (
).
Taxonomy Defaults (http://drupal.org/project/taxonomy_defaults). ,
(
).
Automatic Nodetitles (http://drupal.org/project/auto_nodetitle). . .
,
(
1).
LiveJournal CrossPoster (http://www.valthebald.net/ljxp.html). http://www.livejournal.com

141

142

2. Drupal

, , CMS Drupal.
Comment Mail (http://drupal.org/project/commentmail).
. , ,
, IP- , .
Notify (http://drupal.org/project/notify). .
External Links (http://drupal.org/project/extlink). ( ) .

DB Maintenance (http://drupal.org/project/db_maintenance).
(
: MyISAM, InnoDB, BerkeleyDB) . , , .
Translation template extractor (http://drupal.org/project/potx). CMS Drupal
.
Clickpath (http://drupal.org/project/clickpath). , .
Countdown (http://www.drupal.org/project/countdown). ,
//,
.
Currency Exchange (http://www.drupal.org/project/currency).
( Yahoo! Finance).
download_count (http://drupal.org/project/download_count). ,
, .
, CMS Drupal

(   , ).
Quotes (http://www.drupal.org/project/quotes).
, .
Recipe (http://www.drupal.org/project/recipe). .
Search autocomplete (http://drupal.org/project/search_autocomplete). .
Stock (http://www.drupal.org/project/stock). .
Stock chart (http://www.drupal.org/project/stock_chart).
.
Technorati (http://www.drupal.org/project/technorati).
Technorati .
Timeago (http://www.drupal.org/project/timeago). , .
User Badges (http://www.drupal.org/project/user_badges).
.
Weather (http://www.drupal.org/project/weather).
METeorological Aerodrome Report.
WebCalendar integration (http://www.drupal.org/project/webcal). WebCalendar (http://webcalendar.sourceforge.net/default.htm) CMS Drupal.
Weekly node listing (http://www.drupal.org/project/week). ,
, .
Worklog (http://www.drupal.org/project/worklog).
( ,
).
Ystock (http://www.drupal.org/project/ystock).
.
DHTML Menu (http://drupal.org/project/dhtml_menu).
, JavaScript.

143

144

2. Drupal

, ,
, , (, , ). ,
JS-,

( ,
, ).
XML Sitemap (http://drupal.org/project/xmlsitemap).

sitemap.xml.
. ( URL ) .
sitemap.xml.
FeedBurner (http://drupal.org/project/feedburner).
http://www.feedburner.com/.
RSS- FeedBurner.
Upload path (http://drupal.org/project/uploadpath). , CMS Drupal , . , [user-name]/[nid], <
, >/< >.
Block Cache (http://drupal.org/project/blockcache). .
User Points (http://drupal.org/project/userpoints).
. ,
, . . , . , ,
.
Karma (http://drupal.org/project/karma).
.

. ,
( ). ,
,
, .
Links checker (http://drupal.org/project/linkchecker).
.
Temporary Invitation (http://drupal.org/project/temporary_invitation).
, .
eCommerce (http://drupal.org/project/ecommerce).
-.
RoboXchange (http://drupal.org/project/ec_roboxchange ( eCommerce) http://
drupal.org/project/uc_roboxchange ( Ubercart)). , ,
.
Webmoney payment gateway (http://drupal.org/project/webmoney).
eCommerce
webmoney.
uc_webmoney Webmoney payment gateway for Ubercart (http:///drupal.org/project/uc_webmoney). Ubercart
webmoney.
SmartCache (http://drupal.org/project/smartcache). JS- CSS- .


, CMS Drupal. , CMS Drupal.

BUEditor
: http://www.drupal.org/project/bueditor.

145

146

2. Drupal

CMS Drupal
, A, EM, STRONG . . ,
.
BUEditor
. , . ,
.
, .


http://www.drupal.org . , , sites/all/modules
. BUEditor .

, sites/all/modules
, .
bueditor. , , bueditor_1.25,
bueditor.

. ,
,  .
BUEditor . .


BUEditor . , .
, .
, , , ,
.
http://drupaler.ru/.
http://drupaler.ru/translate/download ,
.

BUEditor,
.
, . .
, .
  (
). , ,
CMS Drupal.

CMS Drupal. , http://drupaler.ru/ .


.


.
.
, ,
. .
,
. .
, ,
,
/ (. 2.13).
BUEditor. Bueditor. ,  BUEditor.
BUEditor (. 2.14).
 . . default. . ,
.

147

148

2. Drupal

. 2.13. ,

 . ,
. ,

. , A,
,
A. ,
.

.


, ,
.

. 2.14. BUEditor

, (, Story). ,
(. 2.15).

. 2.15. , BUEditor

( , ,
- , ).
, .

149

150

2. Drupal

. 2.1 ( ).
2.1. BUEditor

Insert/edit image IMG,


( ),
( width height), ( alt), ,

Insert/edit link A, URL
, , ,
( title).
,
Bold
STRONG, . ,
Italic
EM, .
,

Headers
H1, H2, H3, H4 ( ). ,
Ordered list
OL, . ( ),
Unordered list
UL, .
, Ordered list
Teaser break
<!--break-->.

Preview
, . , .
,
Help
( )


, BUEditor : IMG, A, STRONG, EM, H1, H2, H3, H4, OL, UL. Filtered
HTML, , A, EM, STRONG, CITE, CODE, UL, OL, LI, DL, DT DD.

, ,
H1, H2, H3, H4 . ,
, Filtered HTML.
, .
 
.
Filtered HTML, .
Filtered HTML. HTML <h1> <h2> <h3> <h4>.
, , .

Image
: http://www.drupal.org/project/image.
CMS Drupal
. Upload.
,
.
, , IMG.
.
. - .
- ,
. , Image.
.
.
 Image ,
. Image,
.
 Image Attach .
.

151

152

2. Drupal

 Image Gallery
Image. , . ,
.
 Image Import .
 ImageMagick Advanced Options ImageMagick.
( ).
, ,
http://drupaler.ru/translate/download.

,
, ,
. ,
, , : , , , .
ModuleInfo, http://drupal.org/
project/moduleinfo. , ,   (. 2.16).

. 2.16. ,


Image  .
, , .
:
 ( );
 100 100 ;
 640 640 .
. ,
2222 1500 . (. 2.17)
100 100 (
).
640 640 . ,
, , .
.

. 2.17. ()
()

153

154

2. Drupal

, ,
( ), , . ,
(
).
, ,
.
,  
, ?
. - , Image.

: , , , .

Image
Image , , .
.


,
.
 . Image Attach Settings.
, . .
 Attach images
.
 Teaser image size , : ,
. .

 Full node image size ,


: , .
,
.
,
.


. .
. ,
, . , Existing Image ,
.

backup_migrate
: http://drupal.org/project/backup_migrate.
, .
. , , . ,
, ,
.

. . .
, , ,
. Drupal, backup_migrate.
CMS Drupal ,
. CMS Drupal, , ,
.
, , ( ,
http://drupaler.ru/translate/download).

155

156

2. Drupal


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

,
, (
).

: , , ,
.

token
: http://drupal.org/project/token.
token . ,
. ,
. ,
, (. 2.2).
2.2. ,

[comment-cid]

[comment-nid]

[comment-title]

[comment-title-raw]

( )

[comment-body]

[comment-body-raw]

( )

[comment-author-uid]

[comment-author-name]

[comment-author-name-raw] ( )
[comment-yyyy]

[comment-yy]

( )

[comment-month]

[comment-mon]

[comment-mm]

( )

[comment-m]

( )

[comment-ww]

( )

[comment-date]

( )

[comment-day]

()

[comment-ddd]

[comment-dd]

( )

[comment-d]

( )

[nid]

[type]

[type-name]

[language]

[title]

[title-raw]

( )

[author-uid]

[author-name]

[author-name-raw]

( )

[author-mail]

[author-mail-raw]

(
)

[term]

[term-raw]

( )

[term-id]

[vocab]

[vocab-raw]

( )

[vocab-id]

157

158

2. Drupal
2.2 ()

[yyyy]

[yy]

( )

[month]

()

[mon]

[mm]

( )

[m]

( )

[ww]

( )

[date]

( )

[day]

()

[ddd]

[dd]

( )

[d]

( )

[mod-
]

[menu]

[menu-raw]

, ( )

[menupath]

[menupath-raw]

( )

[menu-link-title]

[menu-link-title-raw]

( )

[vid]

[vocab]

[cat]

[cat-raw]

( )

[vocab-raw]

, ( )

[tid]

[user]

[user-raw]

( )

[uid]

[mail]

[reg-date]

[reg-since]

[log-date]

[log-since]

[date-in-tz]

'

[account-url]

URL

[account-edit]

URL

[user-name]

[user-id]

[user-mail]

[site-url]

URL

[site-name]

[site-slogan]

[site-mission]

[site-mail]

[site-date]

, , :
 Token ;
 Token actions (
), : , URL.

submitted_by
: http://drupal.org/project/submitted_by.
Token, ,
, submitted_by, Token.
submitted_by ,
.
 ,
''Submitted by'' Appearance
( ). , , ,
Token.
. 2.18 , submitted_by.

captcha
: http://drupal.org/project/captcha.

159

160

2. Drupal

. 2.18. () , submitted_by ()

.
.
(),
- . . ,
. ,
, (, , , . .),
.
captcha.
.
 -
(. 2.19). ,
.
 ,
(. 2.19). , . , .


captcha : CAPTCHA Image CAPTCHA.
.
.

. 2.19. : ,

CAPTCHA, . .


 CAPTHA. ( Image
CAPTCHA , ).
 CAPTHA. .
, ,
, . , ( ), .
,
, .
, : , , .

161

162

2. Drupal

( ). ,
.
,
, FORM, .
ID (. 2.20).
, ,
. ,
, , ,
.
 CAPTCHA . : , ,
, , , , . .

. 2.20.

cck
: http://drupal.org/project/cck.
CMS Drupal. -

.
.
, Program.
. ,
, , . . (. 2.21).

. 2.21. , , (
, )


. . , View, .


CCK .
 Content .
, .
 Content copy .
 Content permissions
. ,

163

164

2. Drupal

,
.
, .   ,
.
 Fieldgroup . , ,
.
 Node Reference .
 Number .
 Option Widgets , .
 Text .
 User Reference
(, ,
).


 . ,
,
manage fields .
,
. New Field. .
.
 . .
 Field name CMS Drupal.
 Type of data to store : , , .

 Form element to edit the data ,


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



.
, Content permissions,
, ,
.



Content copy.
 : .
/ .

views
: http://www.drupal.org/project/views.
, . , CMS
Drupal? ,
?
, Views CCK
. ,
, ?
Views CCK
.

165

166

2. Drupal

Views (,
, ), . , ,
.
.


:
 Views ;
 Views exporter ;
 Views UI ,
.


Views UI 
. .
, Views. ,
. .
 Archive , . , .
 Backlinks ,
. , .
 Comments_Recent . ,
.
 Frontpage CMS Drupal.
 Glossary .
,
.
 Taxonomy_term ,
.

 Tracker , , , ,
, .
, :
, , ( ) .
.
, , . .



 . , .
, .
, ,
. .
(. 2.22).
:
.
. , . , , .
Views :
 , ;
 RSS-, ;
 ,
( );
 .

167

168

2. Drupal

. 2.22.

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


, .
.
 Title . ,
. .

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

 .
.
, : (
).
 . ,
,
. ,
.
 Items per Page , . ,
N .
 Header ,
.
 Footer ,
.
 ,
, ,
.
.

169

170

2. Drupal


. , .
, ,
.
, .
. , ,
, .
, .
. . .
 . ,
, ,
. .
(
, http://mysite.ru; , txt/txt_pro_robots).
 . .
.
, . , , . , ( , ).
+. .
, .
.
.
 Content: < > CCK, ,
, .

 : ,
.
 : , , (, , ) .
 : ,
/ .
 : ,
.
 : Body , .
 : ID , .
 : Title , .
 : ,
.
 : - , .
 : , .
 : , (
) .
 : Body ,
.
 : Nid , .
 : Title ,
.
 : User posted or commented , /
/.
 : ,
.
 : ,
.

171

172

2. Drupal

 : / , ( ) .
 : , .
 : , /
.
 : .
 : .
 : , .
 : / .
 : , /
.
 : , / .
 : .
 : .
 ( ):
: Child translation, : Translation set node ID, : , : , :
, : , : , :
, : , : , : , : , : , : ,
: , : , : ,
: Title, : Vid, : , : , : , :
.
,
.
. (. 2.23),
,
( , ).

. 2.23. ,


RSS- , RSS-,
.
.
, ,
, RSS-. ,
, .
RSS-,
. ,
.



. ,

173

174

2. Drupal

,
.
, .


.
. .
, . , . .



CMS Drupal. ,
.
,
.

. . .
, ,
.
+ .
. , .
.
, .
,
.
 : , .
,
.
 : Node link .

 : .
 : CID
.
 : "< >" CMS Drupal.
 :
.
 : ,
.
 : .
 : "< >"
CMS Drupal.
 : Uid , .
 : "< >" CMS Drupal.
 : Attached image , .
 : .
 : , .
 :
.
, . .
:
 ;
 , ;
 , ;
 (
).

175

176

2. Drupal

,
( 2.24).

. 2.24. () ()


Views
. ,
. ,
(. 2.25).
, .
+,
.
, . : Title.

. 2.25. ,

.
1. ,
, .
2. .
3. 1.
4.
.
.
. .

-. , .


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

177

178

2. Drupal

, ,
.
, 
 .


, , .

.
 ,
,
. , .
 ,
,
. , .

.
 ,
. ,
.
, Drupal.
, .

Drupal
Drupal PHP:

CMS Drupal
CMS Drupal
MySQL
Drupal

180

3. Drupal

, CMS Drupal
. ,
PHP - , , , , .
, CMS Drupal ,
HTML, Drupal.
, , HTML, PHP JScript,
.
, .

Drupal PHP:

,
PHP code. HTML, PHP.
.

, PHP code
CMS Drupal. PHP filter.

PHP
, , PHP-,
,
.
PHP code.
. PHP-
<?php ?>, , ,
HTML-.
, PHP-, CMS Drupal .
.

Drupal PHP:

PHP ,
,
. , .
PHP-
. , PHP- , ( , PHP- TRUE (PHP-,
)
).



CMS Drupal. , ,
PHP.
, , ( ), PHP.
, :
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
?>
PHP- . , require_once './includes/
bootstrap.inc'; ,
. - ,
.
PHP-,
, , . , image.
php:
<?php
require_once './includes/bootstrap.inc';

181

182

3. Drupal

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// ,
// , .
drupal_set_header("Content-type: image/jpeg");
$query = "SELECT COUNT(`nid`) FROM `{node}`";
$result = db_result(db_query ($query));
$pic = ImageCreateFromJPEG("img/code.jpg");
$color=ImageColorAllocate($pic, 0, 0, 0);
ImageString($pic,5,20,25,$result,$color);
ImageJPEG($pic);
ImageDestroy($pic);
?>
, JPEG, , code.jpg, img . ,
.
, code.jpg
, .


PHP , , , , CMS Drupal, PHP-,
CMS Drupal
. ,
.
Drupal
( , , . .), .

. ,
, ,
, CMS Drupal.

Drupal PHP:

.
, .

CMS Drupal ,
.

. PHP-
, .
, http://drupal.org/handbook/
customization/php-snippets.
, (
), PHP code.
, ,
PHP code,
. .
. , , . ,


, PHP- TRUE (PHP-, ).
,  , ,
.
 :
<?php
global $user;
if (arg(0) == 'user' && $user->uid == arg(1))

return TRUE;

return FALSE;
?>
 :
<?php
global $user;

183

184

3. Drupal

if (arg(0) == 'user')

return TRUE;

return FALSE;
?>
 :
<?php
global $user;
return (bool) $user->uid;
?>
 :
<?php
global $user;
if (is_array($user->roles) && in_array('admin', $user->roles)) {
return TRUE;
} else return FALSE;
?>
 :
<?php
if ((arg(0) == 'node') && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ( $node->type == forum )

return FALSE;

}
return TRUE;
?>
 :
<?php
if (arg(0)

==

'node' && arg(1)){

$result= db_fetch_object(db_query(SELECT n.type FROM {node} AS


n WHERE n.nid=%d LIMIT 1, arg(1)));
return ($result->type != 'forum');
}
?>
. CMS Drupal . PHP code, PHP-.

 :
<?php
global $user;
if (isset($user->uid)) {
if ($user->uid == 1){
echo ' ';
}else{
echo ' ';
}
}else{
echo ' ';
}
, CMS Drupal. ,
global . :
<?php
global $user;
echo '<br />: ', $user->name;
echo '<br />E-mail: ', $user->mail;
?>


PHP,
CMS Drupal
. , , .
, CMS Drupal, PHP . . .
,
,

.

185

186

3. Drupal

PHP
CMS Drupal , ,
. , PHP , .
, PHP,
Drupal, PEAR Coding Standards. Drupal , , ,
,
(, , - PHP ).
, PHP- , ,
.
 , .
 PHP (, if, for, while, switch . .)
, if ().
.
 switch:
switch () {
case 1:
1;
break;

case 2:
2;
break;
default:
__;
break;
}
 .
, .

(
). ,
. :
my_func($var1, $var2, $var3 = "rst");.
 , ,
. :
$txt

= my_func(1, 2);

$tmp_txt_1 = my_func(1, 2, temp);


 , -
( return).
 .
 ,
, .
.
 , , . :
_my_func().
 .
, , .
 . , ,
( ). .
 => , . : $my_mass =
array('foo' => 'bar');.
 80 .
. :
$my_mass = array('temp', 'temp', 'temp', 'temp',
'foo' => 'bar', 'temp', 'temp', 'temp', 'temp',
'temp', 'temp', 'temp');
 array,
. ,

187

188

3. Drupal

, array,
, . ,
array('temp', 'temp', 'foo' => 'bar')
array('temp', 'temp', 'foo' => 'bar',).
 PHP- Doxygen.
, , #, :
/**
*
* C.
*/
// C++.
# Perl.
# , .
 PHP- XML.
, PHP <?php, PHP ?>.
 PHP,
?>.
, , .
 , CMS Drupal,
// $Id$, CVS
(, // $Id: CODING_STANDARDS.html,v
1.7 2005/11/06 02:03:52 webchick Exp $). ,
<?php.
 URL- ,
example.com example.net,
example.org. RFC 2606.
 TXT.
,
Doxygen. , CMS
Drupal.

Doxygen ,
,
.
Doxygen
// $Id$, , .
.
, .

.
,
, .
Doxygen , .
, ,
,
.
www.stack.nl/~dimitri/doxygen/manual.html.


, CMS Drupal,
, .

. , .
, sites/all/modules
.
, , , , .
. , :
 , ;
 ;

189

190

3. Drupal


, (
);
 ,
:


head , ( - ); , my_module-6.
x-1.0-head;

dev ; , my_module-6.x-1.0-dev;

beta ,
,
; , my_module-6.x-1.0-beta1, my_module-6.x-1.0beta2;

rc ,
(
, ); , my_module-6.x-1.0-rc1, my_module-6.x-1.0-rc2;

pr -
rc; , my_module-6.x-1.0-pr.

,
:
 <_>.info;
 <_>.module.
, ,
README.txt ( ).

<_>.info
, CMS Drupal , .
:
; $Id$
name = < >
description = < >

core = < CMS Drupal>


< >
<_>.info
:
 name ;
, ,
;
 description ,
 ;
, HTML
&_;;
 core CMS Drupal, ;
, , /, x; , 6.x.
, ( ), <_>.info ,
. .
 dependencies[] , , .
,
dependencies[] .
 package ,
. , .
  , ( ).
: Audio, Bot, Chat, E-Commerce, Event, Feed Parser, Organic groups, Station,
Video, Views, Voting (if it uses/requires VotingAPI).
, ,
 ,
.

191

192

3. Drupal

<_>.module
, ,
, , , hook. CMS Drupal
.
_help($path, $arg). ,
.
, ,
 ( ).
:
function _help($path, $arg) {
$output = '';
switch ($path) {
case "admin/help#<>":
$output = '<p>'. t("Displays links to nodes created on this date") .
'</p>';
break;
}
return $output;
}

t ( ) .

, PHP, , $output,
. $output
switch,
. , , , CMS Drupal
,
 . -

switch.
_perm(). , .
(
  (
CMS Drupal )) .

, ,
. ,
. CMS Drupal .
, access content.

:
function _perm() {
return array(' ', '
', ' ');
}
_block(). ,
,
. :
 $op ; :
list ( ,
), view ( );
 $delta ,
.
, :
function _block($op='list', $delta=0) {
if ($op == "list") {
$block[0]["info"] = t(' ');
return $block;
} else if ($op == 'view') {
< ,

193

194

3. Drupal

$block>
return $block;
}
}
_menu(). .
(, ), .
,
, (
,
$items):
function onthisdate_menu() {
$items = array();
$items[' '] = array(
'title' => ' ',
'description' => ' ',
'page callback' => ' ,
',
'page arguments' => array('onthisdate_admin'),
'access arguments' => array(' ,
,
'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
type $items. ,
.
:
 MENU_NORMAL_ITEM
( , );

 MENU_CALLBACK ,
.


, CMS Drupal. http://www.
setegnom.com.
. CMS Drupal

(
). , Moderation skip.

, , code.

, sites/all/modules moderation_skip.
: moderation_skip.info moderation_skip.
module.
moderation_skip.info :
name = Moderation skip
description = "Allow users with certain roles to bypass node moderation."
version = "5.x-0.1"
moderation_skip.module :
<?php
function moderation_skip_perm() {
return array('skip node moderation');
}
function moderation_skip_nodeapi(&$node, $op, $teaser = NULL, $page =
NULL) {
switch ($op) {
case 'submit':
if ($node->status != 1 && user_access('skip node moderation')) {
if (!user_access('administer nodes')) { // Don't reset for admins
$node->status = 1; // Publish the node

195

196

3. Drupal

}
}
break;
}
}
?>
.  ,
  ( CMS
Drupal ).


, (
).
. CMS Drupal,
GPL, .
.
, (
)
, .
CMS Drupal
, PHP. , (), - ,
PHP.

,
, ,
. , (
, ).


, :
 logo.png , , ;
 screenshot.png (150 90 ),

  ;

  ,
http://www.drupal.org ( ). 320 200 screenshot-drupal.org.png screenshot-drupal.
org.jpg.

 background.png -
,
.

( , . .),
images
.
, PHP-, , :
 <_>.info;
 Page.tpl.php , ,
, ,
Template.php ( ,
).

*.tpl.php HTML-
.

, ,
. -

197

198

3. Drupal

, , , , . themes/engines/phptemplate ( ).
 Template.php , . ,
, ( ,
, ).
 node.tpl.php ,
.
 comment.tpl.php ,
.
 box.tpl.php , .
 block.tpl.php ,
.

<_>.info
.
CMS Drupal ,
.
:
; $Id$
name = < >
core = < CMS Drupal>
< >

CMS Drupal , ,
<_>.info ( ),
, .

<_>.info
: name core ( CMS Drupal, -

; , ,
/, x, 6.x).
, <_>.info , :
 description ,
  ;
, HTML
&_;;
 screenshot ,
  (
screenshot.png);
 version ;
 engine , ( , ,
THEME-);
 base theme ( , , );

,
. , : CSS-, JS-,
*.tpl.php, template.php (
template.php,
), . : logo.png, theme-settings.php,
_.info,
color.

 regions[] (, regions[left] = Left sidebar),


;
 features[] ,
. , , :

199

200

3. Drupal

features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links
 stylesheets[all][] , CSS-,
;
 stylesheets[print][] , CSS-, ,
;
 stylesheets[screen, projector][] , CSS-,
, ;

CSS- , CMS Drupal style.css,


. <_>.info,
style.css .
<_>.info,
drupal_add_css(___CSS);.
template.php.

 scripts[] , JS-,
;
 php PHP,
. DRUPAL_MINIMUM_PHP, CMS Drupal.

,
, , CMS Drupal, ,
.

, print_r(get_defined_vars());.

,
. . , ,
. ,
, ,
:
 $directory ,
;
 $zebra odd/even (/)
( CSS );
 $is_front 1 (True), ;
 $picture ;
 $node_url ;
 $submitted , . .

template.php
,
. , .
.
<_>_regions().
,
. ,
, . . , ,
.
, :
function <>_regions() {
return array(

201

202

3. Drupal

'header' => t('header'),


'left' => t('left sidebar'),
'content' => t('content'),
'right' => t('right sidebar'),
'footer' => t('footer'),
);
}
, : header, left sidebar, content, right sidebar footer (
CMS Drupal).
, ,
: $header, $left, $content, $right, $footer (
). ,
node.tpl.php. : $variables['_'] = theme('blocks', '');. .
,
page.tpl.php.
, ,
, .

page.tpl.php
, . ,
, , page-__
.tpl.php ( / -, /node/edit page-node-edit.tpl.php).
, .
page.tpl.php.
, , :
 $content ;
 $date ;

 $id ;
 $links ;
 $name ;
 $page 1 (True),
, ;
 $sticky 1 (True), ;
 $teaser True, $content
;
 $terms ;
 $title ;
 $taxonomy , ;
 $base_path CMS Drupal;
 $feed_icons RSS;
 $footer_message , (
) (   );
 $logo , ;
 $messages
CMS Drupal ( );
 $mission (   );
 $primary_links ;
 $site_name ( 
 );
 $site_slogan (   );
 $directory, $zebra, $picture, $submitted, $node_
url, $is_front.
, $node (
).

203

204

3. Drupal

,
*.tpl.php. var_dump(get_defined_
vars());.

block.tpl.php
block.tpl.php, block--_.tpl.php, block-.
tpl.php, block-.tpl.php. ,
,
.
1. , block.tpl.php ,
, .
2. CMS Drupal block-.tpl.php , , , (,
: left, right, header, footer).
3. CMS Drupal block-.tpl.php
, , .
4. CMS Drupal block--_.
tpl.php. ,
,
( delta
$block).
,
, :
 $id ;
 $block_id
;
 $block_zebra odd/even ( CSS
) ;
 $directory, $zebra, $is_front.
, $block,
:

 $block->module , ;
 $block->delta , ,
module;
 $block->subject ;
 $block->content ;
 $block->status (0 1);
 $block->region , (left,
right, header, footer);
 $block->throttle , Throttle.
. block.tpl.php
PHPTAL theme engine.
<div id="block-<?php print $block->module .'-'. $block->delta; ?>"
class="block block-<?php print $block->module ?>">
<?php if ($block->subject): ?>
<h2><?php print $block->subject ?></h2>
<?php endif;?>
<div class="content"><?php print $block->content ?></div>
</div>

box.tpl.php
:
 $title ;
 $content ;
 $region , ( main, left right).
. box.tpl.php
PHPTAL theme engine.
<div class="box">
<?php if ($title): ?>

205

206

3. Drupal

<h2><?php print $title ?></h2>


<?php endif; ?>
<div class="content"><?php print $content ?></div>
</div>

comment.tpl.php
:
 $author ;
 $content ;
 $date ;
 $id ;
 $links ;
 $new new, ;
 $title ;
 $directory, $zebra, $picture, $submitted, $is_
front.
, $comment.
. comment.
tpl.php PHPTAL theme engine.
<div class="comment<?php print ($comment->new) ? ' comment-new' : '';
print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
<?php print $picture ?>
<?php if ($comment->new) : ?>
<a id="new"></a>
<span class="new"><?php print $new ?></span>
<?php endif; ?>
<h3><?php print $title ?></h3>
<div class="submitted">

<?php print $submitted ?>


</div>
<div class="content">
<?php print $content ?>
</div>
<?php print $links ?>
</div>

node.tpl.php
(
, )
node.tpl.php, node-_.tpl.php (, : book,
forum, page, story). , ,
.
:
 $title ;
 $content ;
 $date ;
 $links (, , );
 $name ;
 $terms , ;
 $teaser True, $content
;
 $promote True, ;
 $sticky True,
;
 $status True, ;
 $comment :

207

208

3. Drupal


0 ;

1 ;

2
.

 $readmore True,
;
 $is_admin True,
;
 $picture, $node_url, $submitted, $is_front.
, $node.
,
. $node print_r($node);.
node.tpl.php
PushButton.
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if
(!$status) { print " node-unpublished"; } ?>">
<?php print $picture ?>
<?php if ($page == 0): ?>
<h1 class="title"><a href="<?php print $node_url ?>"><?php print $title
?></a></h1>
<?php endif; ?>
<span class="submitted"><?php print $submitted ?></span>
<span class="taxonomy"><?php print $terms ?></span>
<div class="content"><?php print $content ?></div>
<?php if ($links): ?>
<div class="links">&raquo; <?php print $links ?></div>
<?php endif; ?>
</div>

color
Color , ,

color, , , color.inc
.


.
, , ,
, .
.
,
.
logo.png , style.css, .
style.css, . , ,
  .


, . , , CMS Drupal,
. .


(engines) .
,
.
, ,
CMS Drupal.
CMS Drupal
PHPTAL theme engine (http://drupal.org/project/phptal).
themes\engines\phptemplate
.

209

210

3. Drupal

, .
,
, CMS Drupal.
:
 Awesomengine: http://drupal.org/project/awesomengine;
 Hexagon: http://drupal.org/project/hexagon;
 Smarty theme engine: http://drupal.org/project/smarty;
 XTemplate: http://drupal.org/project/xtemplate;
 Zengine: http://drupal.org/project/zengine.
,

.

CMS Drupal
CMS Drupal.
: $status, $comment, $sticky . .
, , CMS
Drupal. , . , $user, $node, $block.
CMS Drupal
,
, . , : , , TPL- . .
, , , ,
: global ;. , global $user;.
, ,
. , : ->. , $user->name
.
CMS Drupal,
, .

$user
(
) . , $user .
$user :
global $user;
if (isset($user->uid)) {
//-
}
$user :
 ;
 ;
 page.tpl.php;
 node.tpl.php;
 block.tpl.php;
 comment.tpl.php.
. 3.1 .
3.1. $user

uid

. 1, , . -

name

()

pass

(md5)

mail

mode

sort

threshold

theme

signature

created

access

211

212

3. Drupal

3.1 ()

login

status

, ( 0, )

timezone

language

picture

init

data

.
,
Drupal

hostname

IP-

roles

, ,

$node
, .
$node :
 node.tpl.php;
 comment.tpl.php.
. 3.2 .
3.2. $node

Nid

Type

Language

Uid

Status

Created

Changed

Comment

: 0 ( ), 1 (
) 2 ( )

Promote

Moderate

sticky

tnid

translate

vid

revision_uid

title

body

log

revision_timestamp
format

name

picture

data

CCK,
$node,

last_comment_
timestamp

last_comment_
name

comment_count

taxonomy

, ,

Files

, ,

Iid

RSS- ( Aggregator)

nodewords

- ( Meta Tags)

$block
.
block.tpl.php.
. 3.3 .
3.3. $block

bid

module

delta

213

214

3. Drupal

3.3 ()

theme

status

weight

region

(, , ),

custom

: 0 ( ), 1 (
, ),
2 ( , )

throttle

1, ( )

visibility

: 0 ( , ), 1 ( ), 2 (
PHP , )

pages

title

cache

: 1 ( ), 1 (
), 2 ( ), 4 ( ),
8 ( )

enabled

subject

content

$comment
.
comment.tpl.php.
. 3.4 .
3.4. $comment

cid

pid

, ( -
)

nid

uid

subject

comment

format

timestamp

name

mail

registered_name ( ),
Signature

Picture

Data

Thread

Status

form_build_id

Depth

New


, *.tpl.php
CMS Drupal. .
.
 format_interval()
. , format_interval(444); 7 24 .
 user_is_anonymous() true, .
 user_is_blocked() true,
.
 comment_num_all( ) .
 drupal_get_title() .

215

216

3. Drupal

 drupal_is_front_page() true, .
 arg() , . ,
http://neodn.com/node/add,
, node,
add.

CMS Drupal
, CMS Drupal , , , . . , ,
. , ,
MySQL. ,
CMS Drupal ,
.
, CMS Drupal
(http://www.drupal.org), .
, Sypex Dumper Lite,
http://sypex.net/.
(, ) /
, CMS Drupal. , , ,
dumper.php ( sites\sypexdumper ,
). , dumper.php,
777.

dumper.php , localhost. ,
, dumper.php . , dumper.php, 34 .

, dumper.php
( HTTP, , http://<_>/sites/

CMS Drupal

sypexdumper/dumper.php).
.
.

CMS Drupal
CMS Drupal .
CMS Drupal. , , .
(. 3.5),
. Windows, Microsoft Word. ,
CMS Drupal ,
UNIX, , , Windows. -
(notepad.exe)
,
. , Microsoft Word ( Windows wordpad.exe) Windows,
UNIX, , . , , Windows,
.
3.5. , CMS Drupal

.htaccess

, (,
HTML . .)

CHANGELOG.txt

CMS
Drupal, , Drupal 1.0.0. CMS,
, , ,
, 5.7 5.9

217

218

3. Drupal

3.5 ()

cron.php

cron

index.php

CMS Drupal. 18 ,

INSTALL.mysql.txt

MySQL,
CMS Drupal .

INSTALL.pgsql.txt

PostgreSQL,
CMS Drupal .

install.php


CMS Drupal. , ,

CMS, Drupal . - ( )
(
.htaccess)

INSTALL.txt

, CMS Drupal
, CMS.

LICENSE.txt

CMS Drupal.

MAINTAINERS.txt

CMS Drupal
: .

robots.txt

, .

update.php

CMS Drupal

UPGRADE.txt

, CMS Drupal.

xmlrpc.php

Blog API . . Blog API


. . 2

, .
 files , .
,

CMS Drupal

CMS Drupal ( , ). ,
JS-, , .htaccess, robots.txt .
 includes INC, PHP-
CMS Drupal.
 misc ,
: , JS- CSS-.
 modules , CMS Drupal.
, sites\all\modules.
 profiles CMS Drupal. PROFILE, ,
CMS Drupal .
, profiles.
.
Install Profile API and Profile Wizard (http://drupal.org/project/install_profile_api) Profile Generator (http://drupal.org/project/profile_generator).
 scripts ( SH),
CMS Drupal SSH-.
SSH.
, :


cron-lynx.sh cron ( );

drupal.sh
( Linux);

 sites CMS Drupal,


, .
 themes , CMS Drupal.
,
sites\all\themes.
, CMS Drupal. .

219

220

3. Drupal

settings.php sites\default
settings.php, sites\default
sites\__,
.
CMS Drupal, . CMS
Drupal, , CMS Drupal
, . , .

settings.php ,
, .

.

settings.php
notepad.exe, , ,
PHP-. phpDesigner 2007 Professional (http://www.mpsoftware.org/).
settings.php
, , ini_set(, ). ,
, CMS Drupal. , ini_set, PHP, php.ini. , settings.php, php.ini. ,
, ini_set
php.ini, , settings.php. .
, settings.php.

$db_url = '__://@/__';.
, -

CMS Drupal

CMS Drupal. $db_url, .


,
: $db_url = 'mysqli://root@localhost/bd6';. , $db_url
:
 mysqli , CMS Drupal
mysqli ( mysql
pgsql);
 root , CMS Drupal
;
 localhost IP- URL- ,
CMS Drupal ;
 bd6 , CMS Drupal
.
$db_prefix = '';. , CMS Drupal , . CMS Drupal , :
$db_prex = '';.

,
, .

,
.
:
$db_prefix = array (
'_' => '',
'_' => '',
);

, CMS Drupal ( )

221

222

3. Drupal

(,
, ).
$update_free_access = FALSE|TRUE;. CMS Drupal. update.php
( CMS Drupal ). update.php
, $update_free_access true.
CMS Drupal ,
false.
$base_url = 'URL-';.
, URL (
). ,
http://www.example.com, /test/admin.php
http://www.example.com/test/admin.php. , ,
<base> .
settings.php ,
,
( # ).
$cookie_domain = 'URL-';. . , $cookie_domain = 'example.com';.
$conf = array('site_name' => '_', 'theme_default' => '_', 'anonymous' => '__',);.
( CMS Drupal
).

ini_set
ini_set('arg_separator.output', '&amp;');. ,
URL
GET. , http://xxx.com.ua?a=3&b=2
& ( ). a b.
ini_set('magic_quotes_runtime', 0);. , ,
( stripslashes/addslashes , ).

CMS Drupal

ini_set('magic_quotes_sybase', 0);. , ( ) Sybase-.


, 1, \ '.
ini_set('session.cache_expire', 200000);. ( )
.
ini_set('session.cache_limiter', 'none');. HTTP : nocache, private, public.
ini_set('session.cookie_lifetime', 2000000);. cookie- . 0,
cookie , .
ini_set('session.gc_maxlifetime', 200000);. , .
ini_set('session.save_handler', 'user');.
(, , ( mm), ( les)
,
( user)).
ini_set('session.use_only_cookies', 1);. , - cookies.
0,
cookies, ( ).
ini_set('session.use_trans_sid', 0);. , SID ( ,
cookies).
ini_set('url_rewriter.tags', '');. , sid (session id). a=href,
area=href,frame=src,input=src,form=fakeentry.

php.ini
php.ini, ini_set settings.php, ,
(, CMS

223

224

3. Drupal

Drupal ). , ,
php.ini.
settings.php ini_set('', );.
php.ini, .
 memory_limit , CMS Drupal (, ,
, CMS Drupal).
8 , .
CMS
Drupal , .
, .
CMS Drupal 32 . , settings.php
ini_set('memory_limit', 32M');.

, CMS Drupal ,
 .
, ,
, ,
.

 max_input_time (PHP-)
. 60 .
 max_execution_time ( ). (PHP-) 30 . .

update.php
update.php , CMS
Drupal. ,
.

CMS Drupal
,
CMS Drupal .

CMS Drupal

1. , CMS Drupal ( ), CMS


Drupal, ( , files sites).
2. (
, CMS Drupal).
3. (
  ),
.
4. Garland .
5. CMS Drupal,
.
6. CMS Drupal, ( , CMS).
7. update.php, http://<>/update.php (
, $update_
free_access True; ,
settings.php).
8. ,
update.php.
9. CMS Drupal (, ),
.


,
.
1. .
2. (
, ).
3. update.php, http://<>/update.php.
4. , .

225

226

3. Drupal


, CMS Drupal, - .


CMS Drupal ,
. , ,
, ( , CMS Drupal).
,
. update.php
. path, Linux. , , , path p0 < /.path.
path ,
. ,
CMS Drupal.
, , , , ,
. , ,
. , , +.
.
---.
+++.
. , ,
, .
, , @@.

( ).
:
--- Sites/drupal/sites/all/modules/filter_default/filter_default.module
2007-09-12 15:58:16.000000000 -0500
+++ sites/drupal6/sites/all/modules/filter_default/filter_default.module
2008-04-25 17:18:29.000000000 -0500

CMS Drupal

@@ -59,8 +66,8 @@ function theme_filter_default_admin_defa


for ($i = 1; $i < count($roles)+1; $i++) {
$row = array();
$row[] = $i;
-

$row[] = drupal_render($form['role_'.$i]);

$row[] = drupal_render($form['format_'.$i]);

$row[] = drupal_render($form['role_'. $i]);

$row[] = drupal_render($form['format_'. $i]);


$rows[] = $row;
}

, @@.
, , , 5966 (
lter_default.module sites/all/modules/filter_default).

cron.php
cron. ,
http://<>/cron.php,
.
, CMS
Drupal. , CMS Drupal (
, ).
, cron Linux,
. Windows
http://<>/
cron.php. , .
( taskschd.msc).

3.1. cron Windows Vista.


cron.php.

cron . ,

227

228

3. Drupal

, .
, <_>.
module *_cron().
, .
,
: Aggregator, Drupal ( CMS), Filter, Node, Ping, Poll, Search, Statistics,
System, Watchdog ( ), Database logging ( ), Trigger (
), Update ( ).

.htaccess
.htaccess ,
(, ,
). , , .htaccess
. , php.ini.
.htaccess , ,
, .

php.ini
, php.ini (
php.ini settings.php sites\default).
php_value . , .htaccess, CMS Drupal,
:
php_value magic_quotes_gpc

php_value register_globals

php_value session.auto_start

php_value mbstring.http_input

pass

php_value mbstring.http_output

pass

php_value mbstring.encoding_translation

CMS Drupal

, CMS Drupal .htaccess


php.ini.
 magic_quotes_gpc , GET, POST cookie- ( stripslashes/addslashes
, GET, POST cookie-).
 register_globals
, GET- POST-.
$_GET $_POST, ,
GET- POST-, . , http://xxx.com.ua?a=3&b=2
$a ( , 3) $b ( ,
2). ,
-.
 session.auto_start 1,
.
PHP- session_start();.
 mbstring.http_input
HTTP-. pass HTTP-.
 mbstring.http_output
HTTP-.
 mbstring.encoding_translation , HTTP-.

IP-
.htaccess, ,
, IP-.
IP- IP- Deny from IP-. , ( rss.xml, ):
<Files "rss.xml">
Order Allow,Deny
Allow from all

229

230

3. Drupal

Deny

from 188.127.44.57

Deny

from 188.127.33.52

</Files>
IP-, (
, ,
):
<Files "rss.xml">
Order Deny,Allow
Deny from all
Allow from local.
</Files>


:
-, , http://example.com/my_site/. ,

http://example.com/, http://example.com/
my_site/.
, , - http://example.com/xxx http://example.com/my_site/xxx:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/my_site
RewriteRule ^my_site(.*)$ http://example.com$1 [R=301,L]
,
$base_url, settings.php sites\default.
,
http://example.com.


(
) .htaccess.
, .htaccess,
CMS Drupal , :

MySQL

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

It appears your host is not configured correctly for Clean URLs. Please check for ModRewrite
support with your administrator, . ,
, , :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
, ,
.htaccess.

MySQL
CMS, PHP,
Drupal . , CMS Drupal ,

.
CMS Drupal , ,
.
CMS Drupal. ,
, .


,
CMS Drupal.

231

232

3. Drupal

phpMyAdmin,
.
. , ,
phpMyAdmin
.
, ,
,
MySQL. ,
SSH
MySQL.
, CMS Drupal
. , , MySQL.

PHP

PHP. ,
.
,
PHP-. .
<?php
echo db_result(db_query("SELECT COUNT(name) FROM system WHERE
type='module' AND status=1"));
?>
,
SQL, COUNT. ,
( ), ,
. .
, , .
<?php
$result = db_query("SELECT name FROM system WHERE type='module' AND
status=1");

MySQL

$num_rows = 0;
while ($item = db_fetch_array($result)) {$num_rows++;}
echo $num_rows;
?>
,
SQL ( SELECT,
COUNT), .
CMS Drupal, . . CMS Drupal
db_num_
rows($result), CMS Drupal .
<?php
db_query("UPDATE `node_revisions` SET `format` = '2'");
?>
SQL- INSERT UPDATE.
,
( PHP Code).

PHP
. ,
. . ,
(, Page), Body PHP-
PHP Code.
, . , .
PHP- PHP-
, . ,
, PHP-
:
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
?>

233

234

3. Drupal

PHP-, . ,
PHP-, .
PHP- ,
SQL-. ,
:
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if (isset($_POST['Sql_Command'])){
$_POST['Sql_Command'] = str_replace("\r\n\r\n", "", $_POST['Sql_
Command']);
if (strpos($_POST['Sql_Command'], ";\r\n") === false){
$arr_cmds[0] = $_POST['Sql_Command'];
}else{$arr_cmds = explode(";\r\n", $_POST['Sql_Command']);}
for($i=0;$i<count($arr_cmds);$i++){
$arr_cmds[$i] = str_replace("\r\n", "", $arr_cmds[$i]);
$arr_cmds[$i] = stripslashes($arr_cmds[$i]);
$result = db_query($arr_cmds[$i]) or print($arr_cmds[$i] . ": " .
mysql_error() . "<br />");
while ($row = db_fetch_array($result)) {
foreach ($row as $key => $value) echo $key .' = ' . $value .'; ';
echo "<br />";
}
}
echo "<br />" . $i . " ";
}
?>
<form method="post" id="sql_cmd">
<input type="checkbox" name="sql_back" <?php if ($_POST['sql_back'] ==
'on'){echo 'checked';} ?>> - <br />
<textarea style="width:90%;" rows="10" name="Sql_Command" title="

MySQL

sql"><?php if ($_POST['sql_back'] == 'on'){echo $_POST['Sql_


Command'];}else{echo "select * from where";} ?></textarea>
<input class="cinline" type="Submit" value=" ">
</form>
SQL- PHP-, . , , PHP-
.
.

SQL
, CMS Drupal.
, CMS Drupal.
 UPDATE variable SET value = 's:1:"0";' WHERE name= 'site_offline'; DELETE FROM cache
WHERE cid = 'variables';
.
 UPDATE variable SET value = 's:1:"1";' WHERE name= 'site_offline'; DELETE FROM cache
WHERE cid = 'variables'; .
 UPDATE users SET name='', pass=md5('') WHERE uid=1;
.
 UPDATE `system` SET status=1 WHERE name=' '; .
 SELECT name FROM system WHERE type='module' AND status=1;
, .
 UPDATE `node_revisions` SET `format` = '2';
. format
. :


1 Filtered HTML;

2 PHP code;

3 Full HTML.

 UPDATE blocks SET visibility=0 WHERE module='block' AND delta= LIMIT 1; , delta.

235

236

3. Drupal

 SELECT COUNT(`nid`) FROM `{node}`; , .


 SELECT filename FROM {system}; , CMS Drupal.

,
CMS Drupal. - , .
(. 3.6).
3.6. CMS Drupal

access

, / /

blocks

, ,
( delta, )

blocks_roles

boxes

cache

CMS Drupal,

cache_filter

cache_menu

CMS Drupal, ,

cache_page

( data), CMS
Drupal ( cid)

comments

file_revisions

( description),

files

, , ( filename) (
filepath), ( filesize)

filter_formats

, , ( name), , (
roles)

filters

, ,
( format)

MySQL

flood


Contact, ( timestamp) IP ( hostname)

history

( timestamp) ( nid) ( uid)

menu

, ,
: ( path), ( title),
( description)

node

, . ,
( title), ( created)
( changed), ( comment)

node_access

node_comment_
statistics

, ( nid)

node_counter

node_revisions

, , ( ( body) ( teaser), ( timestamp), ( format)


. .)

node_type

, , : ( name), ( description),
, ( module)

permission

( ),

role

sequences

( name),
CMS Drupal (, , . .), ( id). id
, ,

sessions

system

CMS Drupal

term_data

, ( description),
( name) ( weight)

term_hierarchy


( parent)

237

238

3. Drupal

3.6 ()

term_node

( nid),
, ,
( tid)

term_relation

term_synonym

url_alias

( dst), ( src)

users

,
: ( name), ( pass), (
mail), ( theme), (
created), ( languages), ( picture)

users_roles

variable

, CMS Drupal

vocabulary

, : ( name), ( description),
( weight)

vocabulary_node_
types

( type), ( vid)

watchdog


CMS Drupal

, , .
 Aggregator:


aggregator_category , RSS ; ( title) ( description);

aggregator_category_feed;

aggregator_category_item;

aggregator_feed;

aggregator_item.

 Blog API blogapi_files.


 Book book.
 Contact contact.
 Drupal client client_system.

Drupal

 Forum forum.
 Locale:


locales_meta ( name)
( isdefault);

locales_source , ( source),
, ( location);

locales_target ,
( translation), , ( locale).

 Poll:


poll , ,
( active);

poll_choices ,
( nid);

poll_votes.

 Profile:


profile_fields ,
;

profile_values , .

 Search search_dataset, search_index, search_total.


 Contact accesslog.

Drupal
Drupal,
CMS. . Drupal,
.


, 200 .
,

239

240

3. Drupal

.
. , ,
.
, (
). , CMS Drupal
. ,
.
.
GZIP.
,
. ,
.
, ,
, .
GZIP .

GZIP. ,
. ,
, .
, . .
.
index.php, CMS
Drupal. - notepad.exe ( PHP-).
,
Microsoft Word,
(, ),
CMS Drupal .
:

Drupal

elseif (isset($return)) {
// Print any value (including an empty string) except NULL or
undefined:
print theme('page', $return);
}
:
elseif (isset($return)) {
// Print any value (including an empty string) except NULL or
undefined:
ob_start("ob_gzhandler");
print theme('page', $return);
}
ob_start(ob_gzhandler);. .
25 .
, .




Actions (  ) Triggers (
 ) .
,
. ,
, .
, ?
,
.
trigger_nodeapi, trigger.module (
modules/trigger ).

241

242

3. Drupal

$result = actions_do($aid, $objects[$action_info['type']], $context, $a4,


$a4);
:
if ($aid == 1 && $node->type != 'myask'){}else{
$result = actions_do($aid, $objects[$action_info['type']], $context,
$a4, $a4);
}
$aid (,
), $node->type
, $aid.


, . ,
, , .
.
,
. , :
 ;
 , ;
 ;
 , http://www.
subscribe.ru;
 , , , , ,
.
,
.
.


, . , ,
, .
, ,
.
, .
, - ?
,
. ,
.
,
.
.
 http://webmaster.yandex.ru/ .
 http://www.google.com.ua/addurl/?continue=/addurl Google.
 http://catalog.aport.ru/rus/add/AddUrl.aspx .
 http://www.rambler.ru/doc/add_site_form.shtml? .
 http://search.msn.com/docs/submit.aspx MSN.
 http://search.yahoo.com/info/submit.html Yahoo!.
 http://gogo.ru/wmaster/add_site.html GoGo.
 http://nigma.ru/index_menu.php?action=click_menu&menu_element=add_site
Nigma.
 http://alexa.com/site/help/webmasters Alexa.
, :
 http://goon.ru/cgi-bin/cat/a.cgi Goon.
 http://turtle.ru/add.html Turtle.
 http://43n39e.ru/add .
 http://yottos.com/AddSite.aspx Yottos.
 http://scrubtheweb.com/addurl.html Scrub The Web.
 http://netsearch.org/submit.html NetSearch.

243

244

3. Drupal

,
.

robots.txt

.
robots.txt,
. ,
. , , , . ,
, ,
(, -, , ),
robots.txt.
, robots.txt User-agent:
< >. ,
.
User-agent: *. , robots.txt
.
, robots.txt Crawl-delay:
. ,
. ,
,
.
robots.txt Disallow: <
>. (
) , .
Disallow robots.txt, robots.txt,
CMS Drupal:
User-agent: *
Crawl-delay: 10
Disallow: /database/

Disallow: /includes/
Disallow: /misc/
Disallow: /modules/
Disallow: /sites/
Disallow: /themes/
Disallow: /scripts/
Disallow: /updates/
Disallow: /profiles/
Disallow: /xmlrpc.php
Disallow: /cron.php
Disallow: /update.php
Disallow: /install.php
Disallow: /INSTALL.txt
Disallow: /INSTALL.mysql.txt
Disallow: /INSTALL.pgsql.txt
Disallow: /CHANGELOG.txt
Disallow: /MAINTAINERS.txt
Disallow: /LICENSE.txt
Disallow: /UPGRADE.txt
Disallow: /admin/
Disallow: /comment/reply/
Disallow: /contact/
Disallow: /logout/
Disallow: /node/add/
Disallow: /search/
Disallow: /user/register/
Disallow: /user/password/
Disallow: /user/login/
Disallow: /?q=admin/
Disallow: /?q=comment/reply/
Disallow: /?q=contact/
Disallow: /?q=logout/
Disallow: /?q=node/add/
Disallow: /?q=search/

245

246

3. Drupal

Disallow: /?q=user/password/
Disallow: /?q=user/register/
Disallow: /?q=user/login/
,
Disallow, ,
, , .

robots.txt. , , ,
, .

sitemap.xml
, . , , JS Flash. ,
, , .


, , . sitemap.xml, .
,
.
sitemap.xml. sitemap.xml,
. , sitemap.xml (
10 ) , (
50 000).
sitemaps.xml, sitemapN.xml,
.
sitemap.xml.

, sitemaps.xml:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>http://www.onestyle.com.ua/sitemap1.xml</loc></sitemap>
<sitemap><loc>http://www.onestyle.com.ua/sitemap101.xml</loc></
sitemap>
</sitemapindex>
sitemapN.xml, . sitemapN.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>http://www.onestyle.com.ua/project.php?u=29</loc></url>
<url><loc>http://www.onestyle.com.ua/project.php?u=30</loc></url>
</urlset>
sitemapN.xml, . , , : , ,
. , ?
, :

sitemapN.xml, ,
;
 .


sitemapN.xml,
. ,
sitemapN.xml
, .

247

248

3. Drupal

, sitemap-,
:
 http://google.com/webmasters/sitemaps/ping?sitemap= Google;
 http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=Sitema
pWriter&url=http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap= Yahoo!;
 http://submissions.ask.com/ping?sitemap= Ask.com;
 http://webmaster.live.com/ping.aspx?siteMap= Live Search;
 http://webmaster.yandex.ru/, .
,
sitemapN.xml, (,
). robots.txt Sitemap: <
sitemap>. , Sitemap: http://www.onestyle.
com.ua/sitemaps.xml.
sitemapN.xml.



, . ; ; ,
; , robots.txt sitemap.xml - .
, Google
(http://www.google.com.ua/webmasters/) (http://webmaster.yandex.ru/).
, , . ,
.
, .
.

1.



, ,
, . CMS Drupal
. ,
CMS . .
 http://drupal.org Drupal.
CMS,
, , .
Drupal. , .
, :


http://drupal.org/files/projects/drupal-x.x.tar.gz CMS Drupal ;

http://drupal.org/project/modules/ , ;

http://drupal.org/security/rss.xml RSS- , CMS Drupal;

http://drupal.org/taxonomy/term/14/0/feed RSS-
, ;

http://drupal.org/taxonomy/term/29/0/feed RSS-
, ;

250

1.


http://drupal.org/taxonomy/term/15/0/feed RSS-
, ;

http://drupal.org/planet , ;

http://drupal.org/videocasts Drupal;

http://drupal.org/security .

 http://drupal.bz CMS Drupal ( ).


 http://drupal.ru Drupal-.
CMS Drupal, , .
 http://drupal.by Drupal-.
 http://setegnom.com ,
http://drupal.org.
 http://drupaler.ru
Drupal, , .
, CMS Drupal.
: , , , , , ,
, , , , .

CMS Drupal
CMS Drupal,
- - ,
, . , , .
 http://<>/?q=user/1
CMS Drupal.
 http://<>/?q=blog/1 CMS
Drupal.
 http://<>/?q=admin/logs/status/run-cron
cron.

CMS Drupal

 http://<>/?q=contact
. Contact.
 http://<>/?q=user .
,
.
 http://<>/?q=user/password (, , ).

SQL- , CMS Drupal.


UPDATE users
SET name=, pass=md5() WHERE uid=1;.

 http://<>/?q=admin/logs/status/sql ( CMS Drupal http://<>/


?q=admin/reports/status/sql) SQL, MySQL. ,
MySQL   ( CMS Drupal
 ).
 http://www.drupal5.my/?q=filter/tips
.

251

2.
-
-,
,
CMS Drupal.

, , -
,
CMS Drupal. :
 2.1. .
.
 2.2. CMS Drupal. .
CMS Drupal.
 2.3. CMS Drupal. . CMS Drupal.
 2.4. . .
CMS Drupal.
 2.5. . .
CMS Drupal.
 2.6. . (, , . .),
.
 2.7. .
.

 2.8. . . .
 2.9. .
.
 2.10. . ,
.
 2.11. .
404 403.
 2.12. OpenID. OpenID
.
 2.13. ,
. ,
- .
 3.1. cron.
Windows Vista,
cron.php.


- screen,
( 1280 800 ) ,
http://www.drupal.org. . :
CMS Drupal,
.


modules, themes denwer ,
http://www.drupal.org,
. (
) .
CMS Drupal:
http://www.drupal.org.

253

254

2. -

, code , CMS Drupal (. . 3).


txt -, ,
DOC-,
, http://www.drupal.org. , :
 .doc , , http://www.drupal.org ;
 .doc , , http://www.drupal.org ;
 .doc , , http://www.drupal.org ;
 .doc CMS Drupal.


, web.
. ,
web ,
- Apache, PHP 5 MySQL 5.

Drupal
, web .
: http://drupal5.my http://drupal6.my.
.
, .

http://www.onestyle.com.ua
, web,
http://onestyle. http://www.onestyle.com.ua, -

.
Windows, , - .
http://onestyle, -.
http://www.onestyle.com.ua,
, . , :
 /, CSS
;
 /, DOM ,
DOM, JScript;
 /, MySQL SQL
MySQL ( , );
 /, HTML HTML;
 /, HTML HTML;
 /, , php.ini.

.

255

CMS Drupal:
(+CD )

.
.
.
.
. , . , .
.

17.09.09. 70100/16. . . . 23,22. 2000. 0000.


, 194044, -, . ., 29.
005-93, 2; 95 3005 .
CtP . . . .
197110, -, ., 15.