dblog // Views // Note: somehow views module has to be installed early one, moving it further back in this array causes some sql-errors upon // first visiting the site after installation. 'views', 'views_ui', // Core - optional 'taxonomy', 'blog', 'color', 'comment', 'forum', 'help', 'menu', 'path', 'search', 'upload', 'dblog', /* 'syslog', */ // Filters 'geshifilter', // Image 'image', 'img_assist', // Origo modules 'developer_pages', 'formatting_service', 'issue_tracker', 'origo_auth', 'origo_home', 'origo_global', 'origo_statistics', 'origo_xmlrpc_table', // Other modules 'customerror', 'diff', 'jquery_ui', 'mediawiki_filter', 'token', 'pathauto', 'section_edit', 'trash', 'wikitools', // spam 'spam', 'spam_filter_url', 'spam_filter_node_age', 'spam_filter_custom', 'spam_filter_bayesian', // 'duplicate', // Disable duplicate filter for now // Spam control 'captcha', 'image_captcha', ); // get additional modules $additional_modules = array(); foreach (_origo_profile_include_list() as $inc) { $function = $inc .'_modules'; if (function_exists($function)) { $additional_list = $function(); $additional_modules = array_merge($additional_modules, $additional_list); } } // merge with module list defined here return array_merge($list, $additional_modules); } /** * Return a description of the profile for the initial installation screen. * * @return * An array with keys 'name' and 'description' describing this profile, * and optional 'language' to override the language selection for * language-specific profiles. */ function origo_profile_details() { return array( 'name' => 'Origo', 'description' => 'Select this profile to get a Drupal installation with Origo functionality.' ); } /** * Perform any final installation tasks for this profile. * * @param $task * The current $task of the install system. When hook_profile_tasks() * is first called, this is 'profile'. * @param $url * Complete URL to be used for a link or form action on a custom page, * if providing any, to allow the user to proceed with the installation. * * @return * An optional HTML string to display to the user. Only used if you * modify the $task, otherwise discarded. */ function origo_profile_tasks(&$task, $url) { if ($task == 'profile') { // TODO: this seems to throw an error.. // where does $types come from? // bherlig, 2010-06-04 foreach ($types as $type) { $type = (object) _node_type_set_defaults($type); node_type_save($type); } // Default page to not be promoted and have comments disabled. variable_set('node_options_page', array('status')); variable_set('comment_page', COMMENT_NODE_DISABLED); // TODO: it would be nice to have a custom task instead of calling origo_profile_custom_init from here. origo_profile_custom_init(); } } /** * Perform any final installation tasks for this profile. * * @return * An optional HTML string to display to the user on the final installation * screen. */ function origo_profile_custom_init() { // Custom node types // ----------------- $types = array( array( 'type' => 'wiki', 'name' => st('Wiki Page'), 'module' => 'node', 'description' => st('A wiki page can be collaboratively edited.'), 'custom' => TRUE, 'modified' => TRUE, 'locked' => FALSE, ) ); foreach ($types as $type) { $type = (object) _node_type_set_defaults($type); node_type_save($type); } // Blog node type // -------------- // Default blog to be promoted and have comments enabled. variable_set('node_options_blog', array('status', 'promote', 'revision')); variable_set('comment_blog', COMMENT_NODE_READ_WRITE); variable_set('trash_settings_blog', array('enabled', 'move_to_trash_tab', 'remove_delete_button')); variable_set('comment_preview_blog', COMMENT_PREVIEW_OPTIONAL); // Forum node type // --------------- variable_set('comment_preview_forum', COMMENT_PREVIEW_OPTIONAL); // Image node type // --------------- // Default images to not be promoted and have comments enabled variable_set('node_options_image', array('status', 'revision')); variable_set('comment_image', COMMENT_NODE_READ_WRITE); variable_set('upload_image', FALSE); variable_set('comment_preview_image', COMMENT_PREVIEW_OPTIONAL); // Issue node type // --------------- variable_set('comment_preview_issue', COMMENT_PREVIEW_OPTIONAL); // Wiki Page node type // ------------------- // Default wiki page to not be promoted and have comments disabled. variable_set('node_options_wiki', array('status', 'revision')); variable_set('comment_wiki', COMMENT_NODE_READ_WRITE); variable_set('trash_settings_wiki', array('enabled', 'move_to_trash_tab', 'remove_delete_button')); variable_set('comment_preview_wiki', COMMENT_PREVIEW_OPTIONAL); // Theme settings // -------------- // Set as default theme variable_set('theme_default', 'oxymoron'); // Don't display date and author information for page nodes, wiki nodes nodes by default. $theme_settings = variable_get('theme_settings', array()); $theme_settings['toggle_node_info_blog'] = TRUE; // $theme_settings['toggle_node_info_book'] = FALSE; $theme_settings['toggle_node_info_image'] = FALSE; $theme_settings['toggle_node_info_page'] = FALSE; $theme_settings['toggle_node_info_story'] = TRUE; $theme_settings['toggle_node_info_wiki'] = FALSE; variable_set('theme_settings', $theme_settings); // Roles // ----- // add roles db_query("INSERT INTO {role} (`rid`, `name`) VALUES (3, 'owner')"); db_query("INSERT INTO {role} (`rid`, `name`) VALUES (4, 'developer')"); db_query("INSERT INTO {role} (`rid`, `name`) VALUES (5, 'origo admin')"); // Access control settings // ----------------------- // set access permissions for different roles // Anonymous user db_query("UPDATE {permission} SET perm = 'access comments, search Google CSE, view original images, access content, search content, use advanced search, view uploaded files' WHERE rid = 1"); // Authenticated user db_query("UPDATE {permission} SET perm = 'access comments, post comments, post comments without approval, create forum topics, edit own forum topics, search Google CSE, view original images, create issue, access content, view revisions, origo create project, origo request application key, search content, use advanced search, upload files, view uploaded files, access user profiles' WHERE rid = 2"); // Owner db_query("INSERT INTO {permission} (`rid`, `perm`, `tid`) VALUES (3, 'create blog entries, delete any blog entry, delete own blog entries, edit any blog entry, edit own blog entries, access comments, administer comments, post comments, post comments without approval, access private developer pages, administer forums, create forum topics, delete any forum topic, delete own forum topics, edit any forum topic, edit own forum topics, search Google CSE, create images, edit images, edit own images, view original images, access advanced options, access all images, access img_assist, use original size, create issue, edit issue, delete issue, access content, create wiki content, delete any wiki content, delete own wiki content, edit any wiki content, edit own wiki content, revert revisions, view revisions, origo create project, origo create release, origo delete release, origo project settings, origo request application key, search content, use advanced search, purge trash, restore trash, view trash, upload files, view uploaded files, access user profiles, access nonpublic statistics, bypass filters', 0)"); // Member db_query("INSERT INTO {permission} (`rid`, `perm`, `tid`) VALUES (4, 'create blog entries, delete own blog entries, edit own blog entries, access comments, administer comments, post comments, post comments without approval, access private developer pages, create forum topics, edit own forum topics, search Google CSE, create images, edit images, edit own images, view original images, access advanced options, access all images, access img_assist, use original size, create issue, edit issue, access content, create wiki content, edit any wiki content, edit own wiki content, revert revisions, view revisions, origo create project, origo request application key, search content, use advanced search, purge trash, restore trash, view trash, upload files, view uploaded files, access user profiles, access nonpublic statistics, bypass filters', 0)"); // Origo Admin db_query("INSERT INTO {permission} (`rid`, `perm`, `tid`) VALUES (5, 'create blog entries, delete any blog entry, delete own blog entries, edit any blog entry, edit own blog entries, access comments, administer comments, post comments, post comments without approval, access private developer pages, administer forums, create forum topics, delete any forum topic, delete own forum topics, edit any forum topic, edit own forum topics, search Google CSE, create images, edit images, edit own images, view original images, access advanced options, access all images, access img_assist, use original size, create issue, edit issue, delete issue, access content, create wiki content, delete any wiki content, delete own wiki content, edit any wiki content, edit own wiki content, revert revisions, view revisions, origo admin access, origo create project, origo create release, origo delete release, origo project settings, origo request application key, search content, use advanced search, purge trash, restore trash, view trash, upload files, view uploaded files, access user profiles, access nonpublic statistics, bypass filters, administer spam', 0)"); // Input format // ------------ $format_id = 5; // Remove roles from 'Filtered HTML' format db_query("UPDATE {filter_formats} SET roles = '' WHERE format = 1"); // Add mediawiki format db_query("INSERT INTO {filter_formats} (`format`, `name`, `roles`, `cache`) VALUES (%d, 'Mediawiki format', ',1,2,', 1)", $format_id); // Add mediawiki filter and geshi filter to mediawiki format db_query("INSERT INTO {filters} (`format`, `module`, `delta`, `weight`) VALUES (%d, 'mediawiki_filter', 0, 0), (%d, 'geshifilter', 0, 5), (%d, 'img_assist', 0, 10)", $format_id, $format_id, $format_id); // Set mediawiki filter to default variable_set('filter_default_format', $format_id); variable_set('mediawiki_filter_intewiki_links', "Local path | path | Wikipedia | wp | http://en.wikipedia.org/wiki/$1 Issue | issue | issues/$1 "); variable_set('mediawiki_filter_namespace_template_node_type', 'wiki'); variable_set('mediawiki_filter_namespace_main_node_types', array('blog' => 'blog', 'wiki' => 'wiki')); // Wikitools // --------- // Set the wikilink path to 'wiki' wikitools_wiki_path('wiki'); // Main page name is 'Wiki main page' wikitools_main_page_title('Wiki main page'); // Add all content types to wikilink resolving wikitools_node_types(array("blog" => "blog", "wiki" => "wiki")); // Set default wikitools options wikitools_options( array( "node creation" => "node creation", "node search" => "node search", "auto redirect" => "auto redirect", "unique titles" => "unique titles", "delete protection" => "delete protection", "underscore as space" => "underscore as space", ) ); // Set disallowed charachters in node titles wikitools_disallowed_characters("[]{}|"); // Freelinking is not used wikitools_hijack_freelinking(false); variable_set('wikitools_subpages_handling', 'url'); variable_set('wikitools_url_subpages', 'edit, delete, revisions, trash'); // File upload settings variable_set('upload_extensions_default', 'jpg jpeg gif png txt html doc xls pdf ppt pps odt ods odp jnlp zip gz tgz tbz svg'); variable_set('upload_uploadsize_default', '100'); variable_set('upload_usersize_default', '500'); variable_set('roles', array(2 => "authenticated user", 3 => "owner", 4 => "developer", 5 => "origo admin")); variable_set('upload_extensions_2', 'jpg jpeg gif png txt htm html doc xls pdf ppt pps odt ods odp jnlp zip gz tar tgz tbz svg bzip bz2 bzip2 patch 7z'); variable_set('upload_uploadsize_2', '100'); variable_set('upload_usersize_2', '500'); variable_set('upload_extensions_3', 'jpg jpeg gif png txt htm html doc xls pdf ppt pps odt ods odp jnlp zip gz tar tgz tbz svg bzip bz2 bzip2 patch 7z'); variable_set('upload_uploadsize_3', '100'); variable_set('upload_usersize_3', '500'); variable_set('upload_extensions_4', 'jpg jpeg gif png txt htm html doc xls pdf ppt pps odt ods odp jnlp zip gz tar tgz tbz svg bzip bz2 bzip2 patch 7z'); variable_set('upload_uploadsize_4', '100'); variable_set('upload_usersize_4', '500'); variable_set('upload_extensions_5', 'jpg jpeg gif png txt htm html doc xls pdf ppt pps odt ods odp jnlp zip gz tar tgz tbz svg bzip bz2 bzip2 patch 7z'); variable_set('upload_uploadsize_5', '100'); variable_set('upload_usersize_5', '500'); // Image assist // ------------ variable_set('img_assist_default_link_behavior', "node"); variable_set('img_assist_default_insert_mode', "mediawiki"); // Pathauto rules // -------- variable_set('pathauto_modulelist', array( 'blog', 'node', 'taxonomy', 'user', 'forum' )); variable_set('pathauto_taxonomy_supportsfeeds', 'category/[vocab-raw]/[catpath-raw]'); variable_set('pathauto_taxonomy_pattern', ''); variable_set('pathauto_taxonomy_bulkupdate', 0); variable_set('pathauto_taxonomy_applytofeeds', ''); variable_set('pathauto_taxonomy_2_pattern', ''); variable_set('pathauto_taxonomy_1_pattern', ''); variable_set('pathauto_ignore_words', ''); variable_set('pathauto_node_blog_pattern', 'blog/[author-name-raw]/[title-raw]'); variable_set('pathauto_indexaliases', FALSE); variable_set('pathauto_indexaliases_bulkupdate', FALSE); variable_set('pathauto_max_component_length', '100'); variable_set('pathauto_max_length', '100'); variable_set('pathauto_node_bulkupdate', 0); variable_set('pathauto_node_forum_pattern', ''); variable_set('pathauto_node_image_pattern', 'image/[title-raw]'); variable_set('pathauto_node_page_pattern', ''); variable_set('pathauto_node_pattern', ''); variable_set('pathauto_node_story_pattern', 'news/[title-raw]'); variable_set('pathauto_punctuation_quotes', '1'); variable_set('pathauto_separator', '_'); variable_set('pathauto_update_action', '2'); variable_set('pathauto_user_bulkupdate', 0); variable_set('pathauto_user_pattern', 'user/[user-raw]'); // pathauto_user_supportsfeeds | N; ?????? variable_set('pathauto_verbose', 0); variable_set('pathauto_node_applytofeeds', 'feed'); variable_set('pathauto_punctuation_hyphen', '1'); variable_set('pathauto_quotes', '0'); variable_set('pathauto_blog_pattern', 'blog/[user-raw]'); variable_set('pathauto_blog_applytofeeds', 'feed'); variable_set('pathauto_node_book_pattern', '[book]/[title-raw]'); variable_set('pathauto_node_wiki_pattern', 'wiki/[title-raw]'); variable_set('pathauto_node_issue_pattern', 'issues/[issue-id]'); variable_set('pathauto_transliterate', FALSE); variable_set('pathauto_blog_supportsfeeds', 'feed'); variable_set('pathauto_node_supportsfeeds', 'feed'); variable_set('pathauto_forum_supportsfeeds', '0/feed'); variable_set('pathauto_case', '1'); variable_set('pathauto_max_bulk_update', '50'); variable_set('pathauto_reduce_ascii', 0); variable_set('pathauto_blog_bulkupdate', 0); variable_set('pathauto_forum_pattern', '[vocab-raw]/[catpath-raw]'); variable_set('pathauto_forum_bulkupdate', 0); variable_set('pathauto_forum_applytofeeds', '0/feed'); variable_set('pathauto_taxonomy_3_pattern', ''); // enable all replacement-patterns variable_set('pathauto_punctuation_double_quotes', '1'); variable_set('pathauto_punctuation_backtick', '1'); variable_set('pathauto_punctuation_comma', '1'); variable_set('pathauto_punctuation_period', '1'); variable_set('pathauto_punctuation_underscore', '1'); variable_set('pathauto_punctuation_colon', '1'); variable_set('pathauto_punctuation_semicolon', '1'); variable_set('pathauto_punctuation_pipe', '1'); variable_set('pathauto_punctuation_left_curly', '1'); variable_set('pathauto_punctuation_left_square', '1'); variable_set('pathauto_punctuation_right_curly', '1'); variable_set('pathauto_punctuation_right_square', '1'); variable_set('pathauto_punctuation_plus', '1'); variable_set('pathauto_punctuation_equal', '1'); variable_set('pathauto_punctuation_asterisk', '1'); variable_set('pathauto_punctuation_ampersand', '1'); variable_set('pathauto_punctuation_percent', '1'); variable_set('pathauto_punctuation_caret', '1'); variable_set('pathauto_punctuation_dollar', '1'); variable_set('pathauto_punctuation_hash', '1'); variable_set('pathauto_punctuation_at', '1'); variable_set('pathauto_punctuation_exclamation', '1'); variable_set('pathauto_punctuation_tilde', '1'); variable_set('pathauto_punctuation_left_parenthesis', '1'); variable_set('pathauto_punctuation_right_parenthesis', '1'); variable_set('pathauto_punctuation_question_mark', '1'); variable_set('pathauto_punctuation_less_than', '1'); variable_set('pathauto_punctuation_greater_than', '1'); variable_set('pathauto_punctuation_back_slash', '1'); // Spam module settings // ------------ $project_name = variable_get('site_name', 'PROJECT_NAME'); variable_set('spam_filter_comments', 1); variable_set('spam_visitor_action', '1'); variable_set('spam_threshold', '86'); variable_set('spam_log_level', '1'); variable_set('spam_log_delete', '4838400'); variable_set('shared8', "

Your posting on $project_name from %IP has been automatically flagged by our spam filters as being inappropriate for this website.

At Origo we work very hard behind the scenes to keep our web pages free of spam. Unfortunately, sometimes we accidentally block legitimate content. If you are attempting to post legitimate content to this website, you can help us to improve our spam filters by emailing the following information to a site administrator:

%LINK

"); // Wiki related stuff // ------------------ // Configure wiki pages to use section edit variable_set('upload_wiki', 1); variable_set('section_edit_wiki', 1); variable_set('section_edit_header_style_5', 'mediawiki'); //Blocks and Block_Roles // show only custom menu on left side db_query("UPDATE {blocks} SET region = '', status = 0 WHERE theme = 'oxymoron'"); db_query("INSERT INTO {blocks} (`module`, `delta`, `theme`, `status`, `weight`, `region`, `custom`, `throttle`, `visibility`, `pages`, `title`, `cache`) VALUES ('origo_home', '0', 'oxymoron', 1, -10, 'main_navi', 0, 0, 0, '', '', 1), ('origo_home', '1', 'oxymoron', 1, -11, 'main_navi', 0, 0, 0, '', '', 1), ('origo_home', '2', 'oxymoron', 1, -10, 'main_navi', 0, 0, 0, '', '', 1), ('origo_home', '3', 'oxymoron', 1, -12, 'main_navi', 0, 0, 0, '', '', 1), ('origo_global', '0', 'oxymoron', 1, -11, 'origo_left_footer', 0, 0, 0, '', '', 1);"); db_query("INSERT INTO {blocks_roles} (`module`, `delta`, `rid`) VALUES ('block', '2', 2), ('block', '2', 3), ('block', '2', 4), ('block', '2', 5), ('block', '3', 1), ('origo_home', '0', 1), ('origo_home', '1', 2), ('origo_home', '1', 3), ('origo_home', '1', 4), ('origo_home', '1', 5), ('origo_home', '2', 5), ('origo_home', '3', 2), ('origo_home', '3', 3), ('origo_home', '3', 4), ('origo_home', '3', 5)"); // Taxonomy // -------- // Tags over all node types // Note: forums will have #1 db_query("INSERT INTO {vocabulary} (`name`, `description`, `help`, `relations`, `hierarchy`, `multiple`, `required`, `tags`, `module`, `weight`) VALUES " ."('Tags', '', 'Free tagging for your site', 0, 0, 0, 0, 1, 'taxonomy', 0), " ."('Issue Tags', '', '', 0, 0, 0, 0, 1, 'taxonomy', 0);" ); db_query("INSERT INTO {vocabulary_node_types} (`vid`, `type`) VALUES (2, 'blog'), (2, 'wiki'), (3, 'issue')"); // Menu structure // -------------- // inserting menu links requiers inserting the relation's id inserted, too... // thus we need to get this (upcoming upon insertion) id first. $last_id = db_result(db_query("SELECT COUNT(*) FROM {menu_links}")); // downloads $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:8:"Download";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'download', 'download', 'Download', '%s', 'menu', -5, 1, 1, %d)", $options, $last_id); // home $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:4:"Home";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', '', 'node/%', 'Home', '%s', 'menu', -7, 1, 1, %d)", $options, $last_id); // Screenshots $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:11:"Screenshots";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'node/1', 'node/%', 'Screenshots', '%s', 'menu', -4, 1, 1, %d)", $options, $last_id); // Forum $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:5:"Forum";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'forum', 'forum', 'Forum', '%s', 'menu', 1, 1, 1, %d)", $options, $last_id); // Doc $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:3:"Doc";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'node/3', 'node/%', 'Doc', '%s', 'menu', 0, 1, 1, %d)", $options, $last_id); // dev $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:11:"Development";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'node/4', 'node/%', 'Development', '%s', 'menu', 7, 1, 1, %d)", $options, $last_id); // issues $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:6:"Issues";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'issues', 'issues', 'Issues', '%s', 'menu', 5, 1, 1, %d)", $options, $last_id); // blog $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:6:"Issues";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'blog', 'blog', 'Blog', '%s', 'menu', 3, 1, 1, %d)", $options, $last_id); // stats $last_id++; $options = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:10:"Statistics";}}'; db_query("INSERT INTO {menu_links} (`menu_name`, `link_path`, `router_path`, `link_title`, `options`, `module`, `weight`, `depth`, `customized`, `p1`) " ."VALUES ('primary-links', 'statistics', 'statistics', 'Statistics', '%s', 'menu', 5, 1, 1, %d)", $options, $last_id); // Default content // --------------- $project_name = variable_get('site_name', 'PROJECT_NAME'); // Wiki main page // Dumping data for table `node` db_query("INSERT INTO {node} (`nid`, `vid`, `type`, `title`, `uid`, `status`, `created`, `changed`, `comment`, `promote`, `moderate`, `sticky`) VALUES ". "(1, 25, 'wiki', 'Screenshots', 1, 1, 1171996340, 1173849363, 0, 0, 0, 0),". "(3, 26, 'wiki', 'Doc', 1, 1, 1171996485, 1173849397, 0, 0, 0, 0),". "(4, 27, 'wiki', 'Development', 1, 1, 1171996567, 1173849420, 0, 0, 0, 0),". "(5, 29, 'wiki', '" . $project_name . "', 1, 1, 1171996677, 1173850210, 0, 1, 0, 0)"); // Dumping data for table `node_revisions` db_query("INSERT INTO {node_revisions} (`nid`, `vid`, `uid`, `title`, `body`, `teaser`, `log`, `timestamp`, `format`) VALUES ". "(1, 25, 1, 'Screenshots', 'Here you can add screenshots of your project', 'Here you can add screenshots of your project', '', 1173849363, 5),". "(3, 26, 1, 'Doc', '== Documentation ==\r\n\r\nHere you can document your project...', '== Documentation ==\r\n\r\nHere you can document your project...', '', 1173849397, 5),". "(4, 27, 1, 'Development', 'Here you can writeup all the things you ''''''want to share'''''' with your ''''''fellow project members'''''' - just like on the [[Doc]] pages you can create wiki pages.\r\nDid you know that you can ''''''mark'''''' them ''''''private'''''' too? That can be handy to share information that you ''''''don''t'''''' want to ''''''show everybody''''''...', 'Here you can writeup all the things you ''''''want to share'''''' with your ''''''fellow project members'''''' - just like on the [[Doc]] pages you can create wiki pages.\r\nDid you know that you can ''''''mark'''''' them ''''''private'''''' too? That can be handy to share information that you ''''''don''t'''''' want to ''''''show everybody''''''...', '', 1173849420, 5),". "(5, 29, 1, '" . $project_name . "', 'Welcome!\r\n\r\nThis is the new web site of ''''''" . $project_name . "'''''' - find more info here:\r\n* [[Doc]]\r\n* [[Screenshots]]\r\n* [[path:download|Downloads]]\r\nIf you want to report an issue - please refer to the [[path:issues|issue tracker]].\r\n\r\n''''''" . $project_name . "'''''' is hosted by [http://origo.ethz.ch Origo] - if you want to get informed about project activities like wiki edits, commits, forum posts or new releases then [[path:user/register|create an Origo user account]], bookmark this project and configure your [[path:origo_home/settings/subscriptions|work item subscriptions]].\r\nOnce you have an ''''''Origo'''''' account, you can also create ''''''your own'''''' projects - it''s ''''''free''''''!', 'Welcome!\r\n\r\nThis is the new web site of ''''''" . $project_name . "''''''', '', 1173850210, 5)". ""); // Dumping data for table `url_alias` db_query("INSERT INTO {url_alias} (`pid`, `src`, `dst`) VALUES ". "(2, 'node/3', 'wiki/doc'),". "(3, 'node/4', 'wiki/development'),". "(4, 'node/5', 'wiki/" . $project_name . "'),". "(5, 'node/1', 'wiki/screenshots')"); // Dumping data for table `node_access` db_query("INSERT INTO {node_access} (`nid`, `gid`, `realm`, `grant_view`, `grant_update`, `grant_delete`) VALUES ". "(1, 0, 'all', 1, 0, 0),". "(3, 0, 'all', 1, 0, 0),". "(4, 0, 'all', 1, 0, 0),". "(5, 0, 'all', 1, 0, 0),". "(10, 0, 'all', 1, 0, 0)"); //remove latest items from menu db_query("UPDATE {menu_router} SET `type` = '48' WHERE `path` ='tracker' LIMIT 1 ;"); //remove logout from left menu db_query("UPDATE {menu_router} SET `type` = '48' WHERE `path` ='logout' LIMIT 1 ;"); // General settings // ---------------- variable_set('origo_project_name', $project_name); variable_set('site_frontpage', 'node/5'); // this *must* correspond to the node-id given to the wiki-frontpage variable_set('teaser_length', '0'); variable_set('clean_url', '1'); variable_set('user_email_verification', 0); // set some paths variable_set('geshifilter_geshi_dir', '/usr/share/php-geshi'); variable_set('file_downloads', '2'); // variable_set('file_directory_temp', 'sites/'. $project_name .'/files/tmp'); variable_set('file_directory_temp', '/tmp'); variable_set('file_directory_path', 'sites/'. $project_name .'/files'); // set date format (iso 8601)4 variable_set('date_default_timezone', '0'); variable_set('date_format_short', 'Y-m-d H:i'); variable_set('date_format_medium', 'D, Y-m-d H:i'); variable_set('date_format_long', 'l, j. F Y - G:i'); variable_set('date_first_day', '1'); //comment preview optional variable_set('comment_preview', '0'); //comment order (oldest first variable_set('comment_default_order', '2'); // Custom-error pages variable_set('customerror_403_php', 1); variable_set('customerror_403', 'uid): ?>

Oops! Looks like you followed a bad link.

Sorry name; ?>, you don\'t have permission to view the page you\'ve just tried to access.

If you feel that you have received this message in error, please contact us with specific details so that we may review your access to this web site.

This page may be available to clients and registered users only. Please select from one of the other options available to you below.



Error 403 Forbidden: Access to this page is denied'); variable_set('customerror_403_title', ''); variable_set('customerror_404_php', 1); variable_set('customerror_404', '

Oops! Looks like you followed a bad link.

Sorry, no content was found at the requested path - it\'s possible that you\'ve requested this page in error.

Use the search form in the top right, or go to the home page.


Error 404 Not Found: No content found at the requested URL

'); variable_set('customerror_404_title', ''); variable_set('customerror_redirect', ''); variable_set('site_403', 'customerror/403'); variable_set('site_404', 'customerror/404'); // Captcha variable_set('captcha_administration_mode', 0); variable_set('captcha_description','This question is for testing whether you are a human visitor and to prevent automated spam submissions.'); variable_set('captcha_persistence', '1'); variable_set('captcha_log_wrong_responses', 0); variable_set('captcha_wrong_response_counter', 0); db_query("UPDATE {captcha_points} SET module = 'image_captcha', type = 'Image' WHERE form_id = 'user_register'"); db_query("UPDATE {captcha_points} SET module = 'image_captcha', type = 'Image' WHERE form_id = 'user_pass'"); // Image Captcha (part of Captcha) variable_set('image_captcha_image_allowed_chars','aAbBCdEeFfGHhijKLMmNPQRrSTtWXYZ23456789%$#!@?*'); variable_set('image_captcha_code_length','5'); variable_set('image_captcha_character_spacing','1.2'); variable_set('image_captcha_distortion_amplitude','6'); variable_set('image_captcha_bilinair_interpolation',0); variable_set('image_captcha_double_vision',0); variable_set('image_captcha_dot_noise',0); variable_set('image_captcha_line_noise',1); variable_set('image_captcha_noise_level','2'); variable_set('image_captcha_font_size','30'); variable_set('image_captcha_font', drupal_get_path('module', 'captcha') .'/image_captcha/fonts/DejaVuSerif-Bold.ttf'); // Password Strength variable_set('password_strength_verify_on_server', 1); variable_set('password_strength_min_level', "2"); variable_set('password_strength_min_length', "6"); variable_set('password_strength_not_username', 1); // global rss-feed settings variable_set('feed_default_items', "10"); variable_set('feed_item_length', 'fulltext'); // geshi filter setup variable_set('geshifilter_default_line_numbering', "1"); // use line numbers variable_set('geshifilter_css_mode', "1"); // use inline css variable_set('geshifilter_code_container', "1"); // use div container $languages = array('php', 'drupal5', 'drupal6', 'javascript', 'java', 'c', 'cpp', 'python', 'ruby', 'actionscript', 'ada', 'asm', 'apache', 'asp', 'bash', 'cfm', 'cil', 'cobol', 'csharp', 'css', 'delphi', 'diff', 'eiffel', 'fortran', 'freebasic', 'gettext', 'groovy', 'haskel', 'ini', 'java5', 'latex', 'lisp', 'lua', 'make', 'matlab', 'mirc', 'mysql', 'objc', 'ocaml', 'oracle11', 'oracle8', 'pascal', 'perl', 'plsql', 'povray', 'powershell', 'prolog', 'qbasic', 'rails', 'reg', 'robots', 'scala', 'scheme', 'scilab', 'smalltalk', 'smarty', 'sql', 'tcl', 'vb', 'vbnet', 'verilog', 'vhdl', 'xml'); foreach ($languages as $language) { variable_set('geshifilter_language_enabled_' . $language, TRUE); variable_set('geshifilter_language_tags_' . $language, '<' . $language . '>'); } // Views // ----- // set variable `views_defaults` // Note: apparently any mention of a view in this variable will enable it - regardless of it's boolean value. variable_set('views_defaults', array( 'tracker', )); // table `views_display` db_query( <<";}s:22:"last_comment_timestamp";a:2:{s:8:"sortable";i:1;s:9:"separator";s:6:" ";}s:9:"timestamp";a:1:{s:9:"separator";s:0:"";}s:12:"new_comments";a:1:{s:9:"separator";s:0:"";}}s:7:"default";s:22:"last_comment_timestamp";}s:10:"row_plugin";s:6:"fields";s:11:"row_options";a:0:{}}'), (2, 'page', 'Page', 'page', 2, 'a:3:{s:4:"path";s:7:"content";s:4:"menu";a:3:{s:4:"type";s:6:"normal";s:5:"title";s:12:"Recent posts";s:6:"weight";i:0;}s:11:"tab_options";a:3:{s:4:"type";s:4:"none";s:5:"title";N;s:6:"weight";N;}}'), (2, 'feed_1', 'Feed', 'feed', 3, 'a:4:{s:4:"path";s:17:"content/%/rss.xml";s:8:"displays";a:2:{s:7:"default";s:7:"default";s:4:"page";s:4:"page";}s:10:"row_plugin";s:8:"node_rss";s:11:"row_options";a:1:{s:11:"item_length";s:7:"default";}}'); EOT ); // table `views_view` db_query( <<