/[drupal]/contributions/profiles/glorillacom/glorillacom.profile
ViewVC logotype

Contents of /contributions/profiles/glorillacom/glorillacom.profile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Apr 5 11:06:09 2008 UTC (19 months, 3 weeks ago) by vadbarsdrupalorg
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
GLORilla.com
1 <?php
2
3 // vim: filetype=php
4
5 /**
6 * Installation profile.
7 * Date: Mon, 04/01/2008 - 04:01
8 *
9 */
10
11 include_once('crud.inc');
12
13 /************************************************************
14 * MODULES *
15 ************************************************************/
16 function glorillacom_profile_modules() {
17 return array (
18 0 => 'admin_menu',
19 1 => 'aggregator',
20 2 => 'locale',
21 3 => 'block',
22 4 => 'blog',
23 5 => 'book',
24 6 => 'captcha',
25 7 => 'comment',
26 8 => 'contact',
27 9 => 'fckeditor',
28 10 => 'filter',
29 11 => 'taxonomy',
30 12 => 'image',
31 13 => 'image_captcha',
32 14 => 'image_gallery',
33 15 => 'autolocale',
34 16 => 'menu',
35 17 => 'mimemail',
36 18 => 'node',
37 19 => 'path',
38 20 => 'token',
39 21 => 'pdfview',
40 22 => 'poll',
41 23 => 'print',
42 24 => 'privatemsg',
43 25 => 'profile',
44 26 => 'remover',
45 27 => 'search',
46 28 => 'send',
47 29 => 'system',
48 30 => 'forum',
49 31 => 'text_captcha',
50 32 => 'pathauto',
51 33 => 'tracker',
52 34 => 'upload',
53 35 => 'user',
54 36 => 'views',
55 37 => 'views_bonus',
56 38 => 'views_rss',
57 39 => 'views_ui',
58 40 => 'watchdog',
59 );
60 }
61
62 /************************************************************
63 * DETAILS *
64 ************************************************************/
65 function glorillacom_profile_details() {
66 return array (
67 'name' => 'CMS GLORilla.com',
68 'description' => 'Installation of Ecumenic CMS GLORilla.com',
69 );
70 }
71
72 function glorillacom_profile_final() {
73 /************************************************************
74 * VARIABLES *
75 ************************************************************/
76 variable_set('anonymous', 'Anonymous');
77 variable_set('captcha_administration_mode', 0);
78 variable_set('captcha_description_en', 'This question is for testing whether you are a human visitor and to prevent automated spam submissions.');
79 variable_set('captcha_log_wrong_responses', 0);
80 variable_set('captcha_persistence', '1');
81 variable_set('clean_url', '1');
82 variable_set('comment_anonymous', '0');
83 variable_set('comment_controls', '3');
84 variable_set('comment_default_mode', '2');
85 variable_set('comment_default_order', '2');
86 variable_set('comment_default_per_page', '50');
87 variable_set('comment_form_location', '0');
88 variable_set('comment_image', '2');
89 variable_set('comment_page', 0);
90 variable_set('comment_poll', '2');
91 variable_set('comment_preview', '1');
92 variable_set('comment_story', '2');
93 variable_set('comment_subject_field', '1');
94 variable_set('comment_test', '2');
95 variable_set('file_directory_path', 'files');
96 variable_set('file_directory_temp', '/tmp');
97 variable_set('file_downloads', '1');
98 variable_set('filter_html_1', 1);
99 variable_set('forum_block_num_0', '5');
100 variable_set('forum_block_num_1', '5');
101 variable_set('forum_containers', array (
102 0 => 1,
103 1 => 2,
104 3 => 7,
105 4 => 8,
106 5 => 1,
107 ));
108 variable_set('forum_nav_vocabulary', 2);
109 variable_set('image_default_path', 'images');
110 variable_set('image_gallery_nav_vocabulary', 1);
111 variable_set('image_max_upload_size', '800');
112 variable_set('image_sizes', array (
113 '_original' =>
114 array (
115 'label' => 'Original',
116 'width' => '',
117 'height' => '',
118 'link' => '1',
119 ),
120 'thumbnail' =>
121 array (
122 'label' => 'Thumbnail',
123 'width' => '100',
124 'height' => '100',
125 'link' => '1',
126 ),
127 'preview' =>
128 array (
129 'label' => 'Preview',
130 'width' => '640',
131 'height' => '640',
132 'link' => '1',
133 ),
134 ));
135 variable_set('image_updated', 1203885114);
136 variable_set('img_assist_create_derivatives', array (
137 'properties' => 'properties',
138 'custom_advanced' => 'custom_advanced',
139 'custom_all' => 'custom_all',
140 ));
141 variable_set('img_assist_default_insert_mode', 'filtertag');
142 variable_set('img_assist_default_label', '100x100');
143 variable_set('img_assist_default_link_behavior', 'none');
144 variable_set('img_assist_default_link_url', 'http://');
145 variable_set('img_assist_link', 'icon');
146 variable_set('img_assist_load_description', '1');
147 variable_set('img_assist_load_title', '1');
148 variable_set('img_assist_max_size', '640x640');
149 variable_set('img_assist_page_styling', 'yes');
150 variable_set('img_assist_paths', 'node/*
151 comment/*');
152 variable_set('img_assist_paths_type', '2');
153 variable_set('img_assist_popup_label', 'preview');
154 variable_set('img_assist_preview_count', '8');
155 variable_set('img_assist_textareas_type', '1');
156 variable_set('menu_primary_menu', 2);
157 variable_set('menu_secondary_menu', 2);
158 variable_set('mimemail_engine', 'mimemail');
159 variable_set('node_cron_comments_scale', 1);
160 variable_set('node_cron_last', '1206606740');
161 variable_set('node_cron_last_nid', '8');
162 variable_set('node_cron_views_scale', 1);
163 variable_set('node_options_forum', array (
164 0 => 'status',
165 ));
166 variable_set('node_options_image', array (
167 0 => 'status',
168 ));
169 variable_set('node_options_page', array (
170 0 => 'status',
171 ));
172 variable_set('node_options_poll', array (
173 0 => 'status',
174 ));
175 variable_set('node_options_story', array (
176 0 => 'status',
177 1 => 'promote',
178 ));
179 variable_set('node_options_test', array (
180 0 => 'status',
181 ));
182 variable_set('pathauto_ignore_words', 'a,an,as,at,before,but,by,for,from,is,in,into,like,of,off,on,onto,per,since,than,the,this,that,to,up,via,with');
183 variable_set('pathauto_indexaliases', false);
184 variable_set('pathauto_indexaliases_bulkupdate', false);
185 variable_set('pathauto_max_component_length', '100');
186 variable_set('pathauto_max_length', '100');
187 variable_set('pathauto_modulelist', array (
188 0 => 'node',
189 1 => 'user',
190 2 => 'taxonomy',
191 ));
192 variable_set('pathauto_node_bulkupdate', false);
193 variable_set('pathauto_node_forum_pattern', '');
194 variable_set('pathauto_node_image_pattern', '');
195 variable_set('pathauto_node_page_pattern', '');
196 variable_set('pathauto_node_pattern', 'content/[title-raw]');
197 variable_set('pathauto_node_story_pattern', '');
198 variable_set('pathauto_punctuation_hyphen', 1);
199 variable_set('pathauto_punctuation_quotes', 0);
200 variable_set('pathauto_separator', '-');
201 variable_set('pathauto_taxonomy_1_pattern', '');
202 variable_set('pathauto_taxonomy_2_pattern', '');
203 variable_set('pathauto_taxonomy_applytofeeds', false);
204 variable_set('pathauto_taxonomy_bulkupdate', false);
205 variable_set('pathauto_taxonomy_pattern', 'category/[vocab-raw]/[catpath-raw]');
206 variable_set('pathauto_taxonomy_supportsfeeds', '0/feed');
207 variable_set('pathauto_update_action', '2');
208 variable_set('pathauto_user_bulkupdate', false);
209 variable_set('pathauto_user_pattern', 'users/[user-raw]');
210 variable_set('pathauto_user_supportsfeeds', NULL);
211 variable_set('pathauto_verbose', false);
212 variable_set('pdfview_poll', '1');
213 variable_set('print_display_comment', 0);
214 variable_set('print_display_poll', 1);
215 variable_set('print_display_story', 1);
216 variable_set('print_robot_settings', array (
217 'noindex' => 1,
218 'nofollow' => 1,
219 'noarchive' => 0,
220 'nocache' => 0,
221 ));
222 variable_set('print_settings', array (
223 'show_link' => '0',
224 'show_sys_link' => 1,
225 'book_link' => 1,
226 'logo_url' => '',
227 'css' => '',
228 'urls' => 1,
229 'comments' => 0,
230 'newwindow' => '0',
231 'sendtoprinter' => 0,
232 ));
233 variable_set('print_sourceurl_settings', array (
234 'enabled' => 1,
235 'date' => 0,
236 'forcenode' => 0,
237 ));
238 variable_set('privatemsg_last_cron', 1206607864);
239 variable_set('privatemsg_link_poll', array (
240 ));
241 variable_set('privatemsg_link_story', array (
242 ));
243 variable_set('send_poll', 0);
244 variable_set('send_poll_linktext', 'send to friend');
245 variable_set('send_poll_pernode', 0);
246 variable_set('send_story', 1);
247 variable_set('send_story_linktext', 'send to friend');
248 variable_set('send_story_pernode', 0);
249 variable_set('send_test', 0);
250 variable_set('send_test_linktext', '<none>');
251 variable_set('send_test_pernode', 0);
252 variable_set('site_footer', '<p>Copyright &copy; 2008 <a href="http://glorilla.com/">GLORilla.com</a> All Rights Reserved.<br /> <a href="http://glorilla.com/">GLORilla.com</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License</a>.</p>');
253 variable_set('site_frontpage', 'node');
254 variable_set('site_mail', 'admin@glorilla.com');
255 variable_set('site_mission', '<p>GLORilla.com 1.5.7 / \'First April Edition\'. It has never been easier to create your own dynamic Web site. Manage all your content from the best CMS admin interface and in virtually any language you speak.</p>');
256 variable_set('site_name', 'GLORilla.com - Ecumenic CMS');
257 variable_set('site_slogan', 'powered by Joomla and Drupal');
258 system_theme_data();
259 db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = '%s'", 'glorillacom');
260 variable_set('theme_default', 'glorillacom');
261 variable_set('theme_glorillacom_settings', array (
262 'toggle_logo' => 1,
263 'toggle_name' => 1,
264 'toggle_slogan' => 1,
265 'toggle_mission' => 1,
266 'toggle_node_user_picture' => 0,
267 'toggle_comment_user_picture' => 0,
268 'toggle_search' => 1,
269 'toggle_favicon' => 1,
270 'default_logo' => 0,
271 'logo_path' => 'files/images/logo.gif',
272 'logo_upload' => '',
273 'default_favicon' => 0,
274 'favicon_path' => 'files/images/favicon.ico',
275 'favicon_upload' => '',
276 'op' => 'Save configuration',
277 'form_token' => 'ee95a54425da7619077693308d62e856',
278 ));
279 variable_set('theme_settings', array (
280 'toggle_node_info_page' => false,
281 ));
282 variable_set('upload_image', '1');
283 variable_set('upload_poll', '1');
284 variable_set('upload_story', '1');
285 variable_set('upload_test', '1');
286 variable_set('user_block_max_list_count', '10');
287 variable_set('user_block_seconds_online', '900');
288 variable_set('user_email_verification', 1);
289 variable_set('user_mail_admin_body', '!username,
290
291 A site administrator at !site has created an account for you. You may now log in to !login_uri using the following username and password:
292
293 username: !username
294 password: !password
295
296 You may also log in by clicking on this link or copying and pasting it in your browser:
297
298 !login_url
299
300 This is a one-time login, so it can be used only once.
301
302 After logging in, you will be redirected to !edit_uri so you can change your password.
303
304
305 -- !site team');
306 variable_set('user_mail_admin_subject', 'An administrator created an account for you at !site');
307 variable_set('user_mail_approval_body', '!username,
308
309 Thank you for registering at !site. Your application for an account is currently pending approval. Once it has been granted, you may log in to !login_uri using the following username and password:
310
311 username: !username
312 password: !password
313
314 You may also log in by clicking on this link or copying and pasting it in your browser:
315
316 !login_url
317
318 This is a one-time login, so it can be used only once.
319
320 After logging in, you may wish to change your password at !edit_uri
321
322
323 -- !site team');
324 variable_set('user_mail_approval_subject', 'Account details for !username at !site (pending admin approval)');
325 variable_set('user_mail_pass_body', '!username,
326
327 A request to reset the password for your account has been made at !site.
328
329 You may now log in to !uri_brief by clicking on this link or copying and pasting it in your browser:
330
331 !login_url
332
333 This is a one-time login, so it can be used only once. It expires after one day and nothing will happen if it\'s not used.
334
335 After logging in, you will be redirected to !edit_uri so you can change your password.');
336 variable_set('user_mail_pass_subject', 'Replacement login information for !username at !site');
337 variable_set('user_mail_welcome_body', '!username,
338
339 Thank you for registering at !site. You may now log in to !login_uri using the following username and password:
340
341 username: !username
342 password: !password
343
344 You may also log in by clicking on this link or copying and pasting it in your browser:
345
346 !login_url
347
348 This is a one-time login, so it can be used only once.
349
350 After logging in, you will be redirected to !edit_uri so you can change your password.
351
352
353 -- !site team');
354 variable_set('user_mail_welcome_subject', 'Account details for !username at !site');
355 variable_set('user_pictures', '1');
356 variable_set('user_picture_default', 'files/pictures/no_photo.gif');
357 variable_set('user_picture_dimensions', '85x85');
358 variable_set('user_picture_file_size', '30');
359 variable_set('user_picture_guidelines', '');
360 variable_set('user_picture_path', 'pictures');
361 variable_set('user_register', '1');
362 variable_set('user_registration_help', '');
363 variable_set('views_defaults', array (
364 'frontpage' => 'disabled',
365 'taxonomy_directory' => 'disabled',
366 ));
367
368 /************************************************************
369 * NODE TYPES *
370 ************************************************************/
371 install_add_content_type(array (
372 'name' => 'Blog entry',
373 'module' => 'blog',
374 'description' => 'A blog is a regularly updated journal or diary made up of individual posts shown in reversed chronological order. Each member of the site may create and maintain a blog.',
375 'type' => 'blog',
376 'has_title' => true,
377 'title_label' => 'Title',
378 'has_body' => true,
379 'body_label' => 'Body',
380 'help' => '',
381 'min_word_count' => 0,
382 'custom' => false,
383 'modified' => false,
384 'locked' => true,
385 'orig_type' => 'blog',
386 'is_new' => true,
387 ));
388 install_add_content_type(array (
389 'name' => 'Book page',
390 'module' => 'book',
391 'description' => 'A book is a collaborative writing effort: users can collaborate writing the pages of the book, positioning the pages in the right order, and reviewing or modifying pages previously written. So when you have some information to share or when you read a page of the book and you didn\'t like it, or if you think a certain page could have been written better, you can do something about it.',
392 'type' => 'book',
393 'has_title' => true,
394 'title_label' => 'Title',
395 'has_body' => true,
396 'body_label' => 'Body',
397 'help' => '',
398 'min_word_count' => 0,
399 'custom' => false,
400 'modified' => false,
401 'locked' => true,
402 'orig_type' => 'book',
403 'is_new' => true,
404 ));
405 install_add_content_type(array (
406 'name' => 'Forum topic',
407 'module' => 'forum',
408 'description' => 'Create a new topic for discussion in the forums.',
409 'title_label' => 'Subject',
410 'type' => 'forum',
411 'has_title' => true,
412 'has_body' => true,
413 'body_label' => 'Body',
414 'help' => '',
415 'min_word_count' => 0,
416 'custom' => false,
417 'modified' => false,
418 'locked' => true,
419 'orig_type' => 'forum',
420 'is_new' => true,
421 ));
422 install_add_content_type(array (
423 'type' => 'poll',
424 'name' => 'Poll',
425 'module' => 'poll',
426 'description' => 'A poll is a multiple-choice question which visitors can vote on.',
427 'help' => '',
428 'has_title' => '1',
429 'title_label' => 'Question',
430 'has_body' => '0',
431 'body_label' => '',
432 'min_word_count' => '0',
433 'custom' => '0',
434 'modified' => '1',
435 'locked' => '1',
436 'orig_type' => 'poll',
437 ));
438 install_add_content_type(array (
439 'type' => 'image',
440 'name' => 'Image',
441 'module' => 'image',
442 'description' => 'An image (with thumbnail). This is ideal for publishing photographs or screenshots.',
443 'help' => '',
444 'has_title' => '1',
445 'title_label' => 'Title',
446 'has_body' => '1',
447 'body_label' => 'Body',
448 'min_word_count' => '0',
449 'custom' => '0',
450 'modified' => '1',
451 'locked' => '1',
452 'orig_type' => 'image',
453 ));
454 install_add_content_type(array (
455 'type' => 'page',
456 'name' => 'Page',
457 'module' => 'node',
458 'description' => 'If you want to add a static page, like a contact page or an about page, use a page.',
459 'help' => '',
460 'has_title' => '1',
461 'title_label' => 'Title',
462 'has_body' => '1',
463 'body_label' => 'Body',
464 'min_word_count' => '0',
465 'custom' => '1',
466 'modified' => '1',
467 'locked' => '0',
468 'orig_type' => 'page',
469 ));
470 install_add_content_type(array (
471 'type' => 'story',
472 'name' => 'Story',
473 'module' => 'node',
474 'description' => 'Stories are articles in their simplest form: they have a title, a teaser and a body, but can be extended by other modules. The teaser is part of the body too. Stories may be used as a personal blog or for news articles.',
475 'help' => '',
476 'has_title' => '1',
477 'title_label' => 'Title',
478 'has_body' => '1',
479 'body_label' => 'Body',
480 'min_word_count' => '0',
481 'custom' => '1',
482 'modified' => '1',
483 'locked' => '0',
484 'orig_type' => 'story',
485 ));
486
487 /************************************************************
488 * ROLES *
489 ************************************************************/
490 $role_id = array();
491 install_set_permissions($role_id['administrator'] = install_add_role('administrator'), array (
492 0 => 'access administration menu',
493 1 => ' display drupal links',
494 2 => ' access news feeds',
495 3 => ' administer news feeds',
496 4 => ' administer blocks',
497 5 => ' use PHP for block visibility',
498 6 => ' edit own blog',
499 7 => ' create book pages',
500 8 => ' create new books',
501 9 => ' edit book pages',
502 10 => ' edit own book pages',
503 11 => ' outline posts in books',
504 12 => ' see printer-friendly version',
505 13 => ' administer CAPTCHA settings',
506 14 => ' skip CAPTCHA',
507 15 => ' access comments',
508 16 => ' administer comments',
509 17 => ' post comments',
510 18 => ' post comments without approval',
511 19 => ' access site-wide contact form',
512 20 => ' access fckeditor',
513 21 => ' administer fckeditor',
514 22 => ' allow fckeditor file uploads',
515 23 => ' administer filters',
516 24 => ' administer forums',
517 25 => ' create forum topics',
518 26 => ' edit own forum topics',
519 27 => ' create images',
520 28 => ' edit images',
521 29 => ' edit own images',
522 30 => ' view original images',
523 31 => ' administer images',
524 32 => ' administer locales',
525 33 => ' administer menu',
526 34 => ' access content',
527 35 => ' administer content types',
528 36 => ' administer nodes',
529 37 => ' create page content',
530 38 => ' create story content',
531 39 => ' create test content',
532 40 => ' edit own page content',
533 41 => ' edit own story content',
534 42 => ' edit own test content',
535 43 => ' edit page content',
536 44 => ' edit story content',
537 45 => ' edit test content',
538 46 => ' revert revisions',
539 47 => ' view revisions',
540 48 => ' administer url aliases',
541 49 => ' create url aliases',
542 50 => ' administer pathauto',
543 51 => ' notify of path changes',
544 52 => ' access content as PDF',
545 53 => ' cancel own vote',
546 54 => ' create polls',
547 55 => ' inspect all votes',
548 56 => ' vote on polls',
549 57 => ' access print',
550 58 => ' administer print',
551 59 => ' access private messages',
552 60 => ' administer search',
553 61 => ' search content',
554 62 => ' use advanced search',
555 63 => ' administer send',
556 64 => ' send nodes',
557 65 => ' view send statistics',
558 66 => ' access administration pages',
559 67 => ' administer site configuration',
560 68 => ' select different theme',
561 69 => ' administer taxonomy',
562 70 => ' upload files',
563 71 => ' view uploaded files',
564 72 => ' access user profiles',
565 73 => ' administer access control',
566 74 => ' administer users',
567 75 => ' change own username',
568 76 => ' access all views',
569 77 => ' administer views',
570 ));
571 install_set_permissions(1, array (
572 0 => 'access news feeds',
573 1 => ' see printer-friendly version',
574 2 => ' access comments',
575 3 => ' post comments',
576 4 => ' access site-wide contact form',
577 5 => ' access fckeditor',
578 6 => ' create forum topics',
579 7 => ' access content',
580 8 => ' access content as PDF',
581 9 => ' vote on polls',
582 10 => ' access print',
583 11 => ' access private messages',
584 12 => ' search content',
585 13 => ' send nodes',
586 14 => ' view uploaded files',
587 15 => ' access user profiles',
588 16 => ' access all views',
589 ));
590 install_set_permissions(2, array (
591 0 => 'access news feeds',
592 1 => ' edit own blog',
593 2 => ' see printer-friendly version',
594 3 => ' skip CAPTCHA',
595 4 => ' access comments',
596 5 => ' post comments',
597 6 => ' post comments without approval',
598 7 => ' access site-wide contact form',
599 8 => ' access fckeditor',
600 9 => ' allow fckeditor file uploads',
601 10 => ' create forum topics',
602 11 => ' edit own forum topics',
603 12 => ' create images',
604 13 => ' edit own images',
605 14 => ' access content',
606 15 => ' create story content',
607 16 => ' edit own story content',
608 17 => ' access content as PDF',
609 18 => ' cancel own vote',
610 19 => ' vote on polls',
611 20 => ' access print',
612 21 => ' access private messages',
613 22 => ' search content',
614 23 => ' use advanced search',
615 24 => ' send nodes',
616 25 => ' view send statistics',
617 26 => ' upload files',
618 27 => ' view uploaded files',
619 28 => ' access user profiles',
620 29 => ' access all views',
621 ));
622 install_set_permissions($role_id['editor'] = install_add_role('editor'), array (
623 0 => 'access news feeds',
624 1 => ' administer news feeds',
625 2 => ' edit own blog',
626 3 => ' create book pages',
627 4 => ' create new books',
628 5 => ' edit book pages',
629 6 => ' edit own book pages',
630 7 => ' outline posts in books',
631 8 => ' see printer-friendly version',
632 9 => ' skip CAPTCHA',
633 10 => ' access comments',
634 11 => ' administer comments',
635 12 => ' post comments',
636 13 => ' post comments without approval',
637 14 => ' access site-wide contact form',
638 15 => ' access fckeditor',
639 16 => ' administer fckeditor',
640 17 => ' allow fckeditor file uploads',
641 18 => ' administer filters',
642 19 => ' administer forums',
643 20 => ' create forum topics',
644 21 => ' edit own forum topics',
645 22 => ' create images',
646 23 => ' edit images',
647 24 => ' edit own images',
648 25 => ' view original images',
649 26 => ' administer images',
650 27 => ' administer menu',
651 28 => ' access content',
652 29 => ' administer nodes',
653 30 => ' create page content',
654 31 => ' create story content',
655 32 => ' create test content',
656 33 => ' edit own page content',
657 34 => ' edit own story content',
658 35 => ' edit own test content',
659 36 => ' edit page content',
660 37 => ' edit story content',
661 38 => ' edit test content',
662 39 => ' administer url aliases',
663 40 => ' create url aliases',
664 41 => ' access content as PDF',
665 42 => ' cancel own vote',
666 43 => ' create polls',
667 44 => ' inspect all votes',
668 45 => ' vote on polls',
669 46 => ' access print',
670 47 => ' access private messages',
671 48 => ' search content',
672 49 => ' use advanced search',
673 50 => ' send nodes',
674 51 => ' view send statistics',
675 52 => ' administer taxonomy',
676 53 => ' upload files',
677 54 => ' view uploaded files',
678 55 => ' access user profiles',
679 56 => ' administer users',
680 57 => ' access all views',
681 ));
682
683 /************************************************************
684 * USERS *
685 ************************************************************/
686 db_query("INSERT INTO {users} (uid, name, pass, mail, created, status) VALUES(1, 'admin', '%s', 'admin@mydrupalsite.ru', %d, 1)", md5('admin'), time());
687 user_authenticate('admin', 'admin');
688
689 /************************************************************
690 * MENUS *
691 ************************************************************/
692
693 // Primary links
694 install_menu_create_menu_items(array (
695 0 =>
696 array (
697 'path' => 'about_glorillacom',
698 'title' => 'About GLORilla.com',
699 'description' => 'About GLORilla.com',
700 'weight' => '0',
701 'type' => '118',
702 'children' =>
703 array (
704 ),
705 ),
706 1 =>
707 array (
708 'path' => 'features',
709 'title' => 'Features',
710 'description' => 'Features',
711 'weight' => '0',
712 'type' => '118',
713 'children' =>
714 array (
715 ),
716 ),
717 2 =>
718 array (
719 'path' => 'news',
720 'title' => 'News',
721 'description' => 'News',
722 'weight' => '0',
723 'type' => '118',
724 'children' =>
725 array (
726 ),
727 ),
728 3 =>
729 array (
730 'path' => 'the_community',
731 'title' => 'The Community',
732 'description' => 'The Community',
733 'weight' => '0',
734 'type' => '118',
735 'children' =>
736 array (
737 ),
738 ),
739 4 =>
740 array (
741 'path' => 'forum',
742 'title' => 'Forums',
743 'description' => '',
744 'weight' => '10',
745 'type' => '54',
746 'children' =>
747 array (
748 ),
749 ),
750 ),2);
751
752 // Other menus
753 install_menu_create_menu_items(array (
754 ),0);
755
756 /************************************************************
757 * URL ALIASES *
758 ************************************************************/
759
760 /* db_query(
761 "INSERT INTO {url_alias} (src,dst)
762 VALUES ('%s','%s')",
763 'user/1','users/admin'
764 );
765 */
766 db_query(
767 "INSERT INTO {url_alias} (src,dst)
768 VALUES ('%s','%s')",
769 'node/1','content/what-are-requirements-run-glorillacom-15'
770 );
771 db_query(
772 "INSERT INTO {url_alias} (src,dst)
773 VALUES ('%s','%s')",
774 'node/2','content/glorillacom-community'
775 );
776 db_query(
777 "INSERT INTO {url_alias} (src,dst)
778 VALUES ('%s','%s')",
779 'node/3','content/whats-new-15'
780 );
781 db_query(
782 "INSERT INTO {url_alias} (src,dst)
783 VALUES ('%s','%s')",
784 'aggregator/categories/1','news'
785 );
786 db_query(
787 "INSERT INTO {url_alias} (src,dst)
788 VALUES ('%s','%s')",
789 'node/7','content/glorillacom-used'
790 );
791 db_query(
792 "INSERT INTO {url_alias} (src,dst)
793 VALUES ('%s','%s')",
794 'node/8','content/glorillacom-first-release'
795 );
796 db_query(
797 "INSERT INTO {url_alias} (src,dst)
798 VALUES ('%s','%s')",
799 'node/4','content/welcome-frontpage'
800 );
801 db_query(
802 "INSERT INTO {url_alias} (src,dst)
803 VALUES ('%s','%s')",
804 'node/1','content/glorillacom-used-0'
805 );
806 /************************************************************
807 * BLOCKS *
808 ************************************************************/
809
810 install_add_block('user', 0, 'garland', 1, 0, 'left', 0, 0, 0, '', '');
811 install_add_block('user', 1, 'garland', 1, 0, 'left', 0, 0, 0, '', '');
812 install_add_block('user', 0, 'garland', 1, 0, 'left', 0, 0, 0, '0', 'Login form');
813 install_add_block('user', 1, 'garland', 1, 0, 'left', 0, 0, 0, '0', '');
814 install_add_block('img_assist', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
815 install_add_block('image', 1, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
816 install_add_block('image', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
817 install_add_block('user', 3, 'droomla.com', 1, 0, 'left', 1, 0, 0, '0', '');
818 install_add_block('user', 2, 'droomla.com', 1, 0, 'header', 0, 0, 0, '0', '');
819 install_add_block('user', 1, 'droomla.com', 1, 0, 'left', 0, 0, 0, '0', '');
820 install_add_block('search', 0, 'droomla.com', 1, 0, 'right', 0, 0, 0, '0', '');
821 install_add_block('user', 0, 'droomla.com', 1, 10, 'left', 0, 0, 0, '0', 'Login form');
822 install_add_block('profile', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
823 install_add_block('poll', 0, 'droomla.com', 1, 0, 'right', 1, 0, 0, '0', '');
824 install_add_block('node', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
825 install_add_block('menu', 2, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
826 install_add_block('forum', 1, 'droomla.com', 0, 0, '', 1, 0, 0, '0', '');
827 install_add_block('forum', 0, 'droomla.com', 0, 0, '', 1, 0, 0, '0', '');
828 install_add_block('comment', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
829 install_add_block('book', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
830 install_add_block('blog', 0, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
831 install_add_block('aggregator', -1, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
832 install_add_block('aggregator', -1, 'droomla.com', 0, 0, '', 0, 0, 0, '0', '');
833 install_add_block('image', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
834 install_add_block('user', 3, 'droomlacom', 1, 0, 'header2', 1, 0, 0, '0', '');
835 install_add_block('user', 2, 'droomlacom', 1, 0, 'header', 0, 0, 0, '0', '');
836 install_add_block('user', 1, 'droomlacom', 1, 0, 'left', 0, 0, 0, '0', '');
837 install_add_block('user', 0, 'droomlacom', 1, 10, 'left', 0, 0, 0, '0', 'Login form');
838 install_add_block('search', 0, 'droomlacom', 1, 0, 'right', 0, 0, 0, '0', '');
839 install_add_block('profile', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
840 install_add_block('poll', 0, 'droomlacom', 1, 0, 'right', 1, 0, 0, '0', '');
841 install_add_block('menu', 2, 'droomlacom', 1, 0, 'left', 0, 0, 0, '0', '');
842 install_add_block('node', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
843 install_add_block('forum', 1, 'droomlacom', 0, 0, '', 1, 0, 0, '0', '');
844 install_add_block('forum', 0, 'droomlacom', 0, 0, '', 1, 0, 0, '0', '');
845 install_add_block('comment', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
846 install_add_block('book', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
847 install_add_block('blog', 0, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
848 install_add_block('aggregator', -1, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
849 install_add_block('aggregator', -1, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
850 install_add_block('image', 1, 'droomlacom', 0, 0, '', 0, 0, 0, '0', '');
851 install_add_block('views', send_recently_emailed, 'glorillacom', 0, 0, '', 0, 0, 0, '', '');
852 install_add_block('views', send_most_emailed, 'glorillacom', 0, 0, '', 0, 0, 0, '', '');
853 install_add_block('views', comments_recent, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
854 install_add_block('privatemsg', 0, 'glorillacom', 1, -10, 'right', 1, 0, 0, '0', '');
855 install_add_block('image', 1, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
856 install_add_block('image', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
857 install_add_block('user', 3, 'glorillacom', 1, 0, 'right', 1, 0, 0, '0', '');
858 install_add_block('user', 1, 'glorillacom', 1, -10, 'left', 0, 0, 0, '0', '');
859 install_add_block('user', 2, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
860 install_add_block('user', 0, 'glorillacom', 1, -10, 'right', 0, 0, 0, '0', 'Login form');
861 install_add_block('search', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
862 install_add_block('profile', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
863 install_add_block('poll', 0, 'glorillacom', 1, -1, 'right', 1, 0, 0, '0', '');
864 install_add_block('node', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
865 install_add_block('menu', 2, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
866 install_add_block('forum', 1, 'glorillacom', 1, 0, 'header2', 1, 0, 0, '0', '');
867 install_add_block('forum', 0, 'glorillacom', 1, 0, 'header', 1, 0, 0, '0', '');
868 install_add_block('comment', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
869 install_add_block('book', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
870 install_add_block('blog', 0, 'glorillacom', 0, 0, '', 0, 0, 0, '0', '');
871
872 /************************************************************
873 * EXPORTING NODES *
874 ************************************************************/
875 // exporting nodes of type: Page
876 db_query(
877 "INSERT INTO {node} (nid,vid,type,title,uid,status,created,changed,comment,promote,moderate,sticky)
878 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
879 '1','1','page','What are the requirements to run GLORilla.com 1.5.7?','1','1','1207037041','1206963989','0','0','0','0'
880 );
881 db_query(
882 "INSERT INTO {node} (nid,vid,type,title,uid,status,created,changed,comment,promote,moderate,sticky)
883 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
884 '2','2','page','The GLORilla.com Community','1','1','1207037041','1206964059','0','0','0','0'
885 );
886 db_query(
887 "INSERT INTO {node} (nid,vid,type,title,uid,status,created,changed,comment,promote,moderate,sticky)
888 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
889 '3','3','page',' What\'s New In 1.5.7? ','1','1','1207037041','1206964118','0','0','0','0'
890 );
891 db_query(
892 "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format)
893 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
894 '1','1','1','What are the requirements to run GLORilla.com 1.5.7?','<p>GLORilla.com runs on the PHP pre-processor. PHP comes in many flavours, for a lot of operating systems. Beside PHP you will need a Web server. GLORilla.com is optimized for the Apache Web server, but it can run on different Web servers like Microsoft IIS it just requires additional configuration of PHP and MySQL. GLORilla.com also depends on a database, for this currently you can use MySQL and Postgress. Many people know from their own experience that it\'s not easy to install an Apache Web server and it gets harder if you want to add MySQL, PHP and Perl. XAMPP, WAMP, and MAMP are easy to install distributions containing Apache, MySQL, PHP and Perl for the Windows, Mac OSX and Linux operating systems. These packages are for localhost installations on non-public servers only. The minimum version requirements are: * Apache 1.x or 2.x * PHP 4.3 or up * MySQL 3.23 or up For the latest minimum requirements details visit the <a href="http://glorilla.com/">GLORilla.com Help Site</a> and <a href="http://glorilla.com/forum">Forums</a></p><p>&nbsp;</p>','<p>GLORilla.com runs on the PHP pre-processor. PHP comes in many flavours, for a lot of operating systems. Beside PHP you will need a Web server. GLORilla.com is optimized for the Apache Web server, but it can run on different Web servers like Microsoft IIS it just requires additional configuration of PHP and MySQL. GLORilla.com also depends on a database, for this currently you can use MySQL and Postgress. Many people know from their own experience that it\'s not easy to install an Apache Web server and it gets harder if you want to add MySQL, PHP and Perl.','','1206963989','3'
895 );
896 db_query(
897 "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format)
898 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
899 '2','2','1','The GLORilla.com Community','<p><strong>Got a question?</strong> With more than 140,000 members, the online forums at <a href="http://glorilla.com/forum">GLORilla.com/forum</a> are a great resource for both new and experienced users. Go ahead, ask your toughest questions, the community is waiting to see what you\'re going to do with your GLORilla.com site. <strong>Do you want to show off your new GLORilla.com Web site?</strong> Go ahead, we have a section dedicated to that on our forum. <strong>Do you want to join in?</strong> If you think working with GLORilla.com is fun, wait until you start working on it. We\'re passionate about helping GLORilla.com. Users make the jump to becoming contributing members of the community, so there are many ways you can help GLORilla.com\'s development:</p><ul> <li>Submit news about GLORilla.com. We syndicate all GLORilla.com related news on our news portal. If you have some GLORilla.com news that you would like to share with the community, please submit your short story, article, announcement or review here.</li><li>Report bugs and request features in our trackers. Please read Reporting Bugs, for details on how we like our bug reports served up</li><li>Submit patches for new and/or fixed behaviour. Please read Submitting Patches, for details on how to submit a patch.</li><li>Join the developer forums and share your ideas for how to improve GLORilla.com. We\'re always open to suggestions, although we\'re likely to be sceptical of large-scale suggestions without some code to back it up.</li><li>Join any of the GLORilla.com Working Groups and bring your personal expertise to the GLORilla.com community. More info about the different working groups can be found on the Working Group Roll Call.</li></ul><p>That\'s all you need to know if you\'d like to join the GLORilla.com development community.</p>','<p><strong>Got a question?</strong> With more than 140,000 members, the online forums at <a href="http://glorilla.com/forum">GLORilla.com/forum</a> are a great resource for both new and experienced users. Go ahead, ask your toughest questions, the community is waiting to see what you\'re going to do with your GLORilla.com site. <strong>Do you want to show off your new GLORilla.com Web site?</strong> Go ahead, we have a section dedicated to that on our forum.','','1206964059','3'
900 );
901 db_query(
902 "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format)
903 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
904 '3','3','1',' What\'s New In 1.5.7? ','<p>As with previous releases, GLORilla.com provides a unified and easy-to-use framework for delivering content for Web sites of all kinds. To support the changing nature of the Internet and emerging Web technologies, GLORilla.com required substantial restructuring of its core functionality and we also used this effort to simplify many challenges within the current user interface. GLORilla.com 1.5.7 has many new features. The goals for the GLORilla.com 1.5.7 release are to:</p><ul> <li>Substantially improve usability, manageability, and scalability.</li><li>Expand accessibility to support internationalisation, double-byte characters and Right-to-Left support for Arabic, Farsi, and Hebrew languages for example amongst others.</li><li>Extend the integration of external applications through Web Services and remote authentication such as the Lightweight Directory Access Protocol (LDAP).</li><li>Enhance the content delivery, template and presentation capabilities to support accessibility standards and content delivery to any destination.</li><li>Achieve a more sustainable and flexible framework for Component and Extension developers.</li><li>Deliver backward compatibility with previous releases of Components, Templates, Modules and other Extensions.</li></ul><p>&nbsp;</p>','<p>As with previous releases, GLORilla.com provides a unified and easy-to-use framework for delivering content for Web sites of all kinds. To support the changing nature of the Internet and emerging Web technologies, GLORilla.com required substantial restructuring of its core functionality and we also used this effort to simplify many challenges within the current user interface. GLORilla.com 1.5.7 has many new features. The goals for the GLORilla.com 1.5.7 release are to:</p>','','1206964118','3'
905 );
906 // exporting nodes of type: Story
907 db_query(
908 "INSERT INTO {node} (nid,vid,type,title,uid,status,created,changed,comment,promote,moderate,sticky)
909 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
910 '4','4','story','Welcome to the Frontpage','1','1','1207037041','1206963917','2','1','0','1'
911 );
912 db_query(
913 "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format)
914 VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
915 '4','4','1','Welcome to the Frontpage','<p>GLORilla.com is a free open source framework and content publishing system designed for quickly creating highly interactive multi-language Web sites, online communities, media portals, blogs and eCommerce applications. GLORilla.com provides an easy-to-use graphical user interface that simplifies the management and publishing of large volumes of content including HTML, documents, and rich media. GLORilla.com is used by organisations of all sizes for Public Web sites, Intranets, and Extranets and is supported by a community of thousands of users.</p>','<p>GLORilla.com is a free open source framework and content publishing system designed for quickly creating highly interactive multi-language Web sites, online communities, media portals, blogs and eCommerce applications. GLORilla.com provides an easy-to-use graphical user interface that simplifies the management and publishing of large volumes of content including HTML, documents, and rich media. GLORilla.com is used by organisations of all sizes for Public Web sites, Intranets, and Extranets and is supported by a community of thousands of users.</p>','','1206963917','1'
916 );
917
918 system_initialize_theme_blocks('glorillacom');
919
920 return;
921 }
922
923 ?>

  ViewVC Help
Powered by ViewVC 1.1.2