Update of /cvsroot/phpwebsite-comm/modules/article/conf In directory sc8-pr-cvs1:/tmp/cvs-serv30555/conf Added Files: approval.php boost.php config.php controlpanel.php fatcat.php help.php layout.php module_rights.txt users.php Log Message: Initial commit to CVS --- NEW FILE: approval.php --- <?php if($_SESSION["OBJ_user"]->allow_access("article")) { if ($approvalChoice == "yes") PHPWS_ArticleManager::approve($id); elseif ($approvalChoice == "no") PHPWS_ArticleManager::refuse($id); elseif ($approvalChoice == "view") { $article = new PHPWS_Article($id); echo $article->view_article(); } } ?> --- NEW FILE: boost.php --- <?php /** * This is the Articlemaster mod_info file for Boost * * @version \$Id\$ * @author Eloi George <el...@NO...> * @module Article Manager */ $mod_title = "article"; $mod_pname = "Article Manager"; $mod_directory = "article"; $mod_filename = "index.php"; $mod_icon = "articlemanager.gif"; $admin_op = "&disp=main_menu"; $allow_view = "all"; $priority = 50; $admin_mod = 1; $active = "on"; $version = 1; $mod_class_files = array("ArticleManager.php", "Article.php", "Section.php",); $mod_sessions = array("SES_ART_master", "SES_ART_article", "SES_ART_section"); ?> --- NEW FILE: config.php --- <?php /** * This is the config file for the articlemanager module. Do not * change these values unless you are sure you know what you * are doing. * * @author Adam Morton <ad...@NO...> * @module articlemanager * @param string image_directory : The directory that articlemanager should store * and retrieve images from * @param string template_directory : The default templates directory for articlemanager. */ $this->image_directory = "images/article/"; $this->image_path = PHPWS_HOME_DIR . $this->image_directory; ?> --- NEW FILE: controlpanel.php --- <?php $image['name'] = 'articlemanager.gif'; $image['alt'] = 'Author: Eloi George'; $link[] = array ('label'=>'Article Manager', 'module'=>'article', 'url'=>'index.php?module=article&disp=main_menu', 'image'=>$image, 'admin'=>TRUE, 'description'=>'Go here to post articles, information & web pages.', 'tab'=>'content'); ?> --- NEW FILE: fatcat.php --- <?php // You MUST use apostrophes. Quotation marks will not work $className = 'PHPWS_Article'; $methodName = 'view_category_row'; ?> --- NEW FILE: help.php --- <?php /** * This is the ArticleManager help info file. It contains some basic help * items to start with. These items can be changed or removed via the * help module included with phpWebSite. * * @author Eloi George <el...@NO...> * @module Article Manager */ $article_title = "Article Title"; $article_title_content = "All articles need titles! Enter one here"; $article_summary = "Article Summary"; $article_summary_content = "Type in a SHORT description of the article here. When a list of articles is shown on the site, this will be displayed as a teaser to get the user to read more.<br /><br /> REMEMBER: It's just a teaser. Keep it short. And try not to use HTML."; $list_mainarticle = "Current Mainarticle"; $list_mainarticle_content = "This column will designate which article is currently set to be shown on your web site mainarticle. The current mainarticle is marked with a <font color=\"lime\"><b><i>CURRENT</i></b></font> flag."; $list_action = "Current Article Action"; $list_action_content = "These are actions you can perform on unsaved articles. The current actions are:<br /><br /> <b>Publish/Expire</b> - This button allows you to immediately PUBLISH (allow articles to be seen) or EXPIRE (remove articles from view without actually deleting them) the article. Publication & Expiration dates will be changed to accordingly.<br /> <b>Edit</b> - This allows you to edit am existing article.<br /> <b>Delete</b> - This allows you to remove a article from your database. You will be asked to confirm the deletion with a \"Yes\" or \"No\" answer."; $current_updated = "Updated Date"; $current_updated_content = "This is the date and user who last updated the article."; $section_new_page = "Start on New Page"; $section_new_page_content = "[Optional] This option enables multi-article stories. When checked, this section will be the first of a new page."; $section_title = "Section Subtitle"; $section_title_content = "This is the subtitle given to this section. HTML is allowed and encouraged."; $section_text = "Section Text"; $section_text_content = "This is the body text for this section. HTML is allowed and encouraged."; $section_image = "Section Image"; $section_image_content = "This lets you upload an image that will be associated with this section. If you choose to use an image, you must also add a \"Short Image Description\"."; $section_lib_image = "Section Library Image"; $section_lib_image_content = "This site maintains a library of pre-approved images to use as an alternative to making, optimizing and uploading custom images. Just select the image you want to be associated with this section. If you choose to use an image, you must also add a \"Short Image Description\"."; $section_image_desc = "Short Image Description"; $section_image_desc_content = "This is a short description of the image associated with this section. It is recommended that the description is no more than 5-6 words."; $section_image_link = "Image Link"; $section_image_link_content = "Putting a link URL in here will turn the image into a clickable link."; $section_image_caption = "Image Caption"; $section_image_caption_content = "Sometimes you might want some text to appear above or below the image (eq: Photo Credits). Enter that text here."; $section_template = "Section Template"; $section_template_content = "This is the template that will be applied to this section when it is viewed. \nMost templates have names that are fairly intuitive. \nIf you wish to create custom templates, please see the TEMPLATE_README included with ArticleManager."; $section_save = "Section Save"; $section_save_content = "This will save a new section or save changes made to an existing section."; $section_remove = "Section Remove"; $section_remove_content = "This option will remove a section from this article entirely. You will be asked to confirm the action."; $section_edit = "Section Edit"; $section_edit_content = "Select the \"Edit\" button to make changes to this section."; $section_move = 'Moving a Section'; $section_move_content = 'Sometimes you may want to move a section to another area on the same page. In stead of a lot of cutting and pasting, you can use the "Move Up" and "Move Down" buttons to shift this section by one space.'; $article_save = "Article Save"; $article_save_content = "This button will save a new article to the database and stamp it as saved. For existing articles it is used as a finishing step to make sure all changes are commited."; $article_info = "Article Information"; $article_info_content = "This is some extra information about this article. Included here is the created date/user and updated date/user. More information may be added here in later versions."; $article_announce = "Announce Article"; $article_announce_content = "This option lets you decide whether this article will show up on the homepage article summary listings.<br /><br />It can still show up everywhere else."; $article_allow_comments = "Allow Comments"; $article_allow_comments_content = "This option lets you decide whether users can add discussion or comments to this article."; $article_allow_anonymous = "Allow Anonymous Comments"; $article_allow_anonymous_content = "This option lets you decide whether unregistered users can add discussion or comments to this article. We recommend that you leave this on NO to discourage trolling posts."; $article_publication_date = "Date of Publication"; $article_publication_date_content = "A story can only be viewable on the site after it is published. You don't need to change this value. It is automatically set to the date this story was created. \nIf you want this story to be invisible until a future date, then you can set it here."; $article_expiration_date = "Date of Expiration"; $article_expiration_date_content = "A story can only remain on the site until it expires. You don't need to change this value. The site administrator has set a default period before stories expire. If you want this story to be deleted before or after this date, then you can set it here."; $article_expiration_flag = 'Never Expires'; $article_expiration_flag_content = 'Check this box if you want this article to never expire.'; $article_cancel = 'Cancel This Article'; $article_cancel_content = 'Pressing this button will take you back to the main menu. You will lose any changes you made.'; $save_title = 'Change Title & Summary Text'; $save_title_content = 'If you\'ve made any changes to the article title or summary, pressing this button will save them. Make sure that you save any editing you\'ve done to any sections first.'; $article_template = "Article Template"; $article_template_content = "This is the template that will be applied to this article when it is viewed. \nMost templates have names that are fairly intuitive. \nIf you wish to create custom templates, please see the TEMPLATE_README included with ArticleManager."; $categories = "Related Topics"; $categories_content = "An article can be assigned to various categories that it's subject matter fits into. This way you can easily see which articles are related to the one that you're viewing."; $authgroups = "Conditional Article Display"; $authgroups_content = "If your administrator has assigned you to groups, you can use this box to select which groups you want to be able to view your article. \nNote that you can only select from the groups that you are a member of."; $restricted_viewing = "Conditional Article Display"; $restricted_viewing_content = "If this is turned on, the user can only see those articles that belong to a group that they are a member of. \nIf an article is not owned by any groups (default setting), everyone can see it."; $summaries_on_homepage = 'Number of Article Summaries'; $summaries_on_homepage_content = 'This specifies the number of summaries of the most recent articles that will show on the home page.<br /><br />A value of 0 result in the box not being shown at all.'; $popular_articles = 'Number of Popular Articles'; $popular_articles_content = 'This specifies how many links to the most popular articles will be shown on the home page.<br /><br />A value of 0 result in the box not being shown at all.'; $prev_n_articles = 'Number of Previous Articles'; $prev_n_articles_content = 'This specifies how many links to the most recent articles will be shown on the home page.<br /><br />These links will not include the articles that are shown in the "Also on this Site" box. If the amount set for this is 10 and the 5 most recent articles are showing up in the Article Summaries Block, then links for the 6th to 16th most recent articles will be shown.<br /><br />A value of 0 result in the box not being shown at all.'; $listings_per_page = 'Default Number of Listings to Show per Page'; $listings_per_page_content = 'Here you can set the default amount of article listings that will show up under the administrative menu.'; $expiration_default = 'Default Expiration Date'; $expiration_default_content = 'Here you can specify how long an article will last in terms of days, months or years on your site.<br /><br />Tip: If you want them to last more that 5 years, save yourself some hassle and just uncheck the "Articles Can Expire" box.'; $can_expire = 'Articles can expire on a predefined date'; $can_expire = 'If this is unchecked, articles will never expire from the site.'; $max_image_size = 'Maximum Uploaded Image Size'; $max_image_size = 'Remember that bigger pictures = more page loading time and higher bandwitdh usage. They can also make your site look bad.<br /><br />Set this to a reasonable amount in Kilobytes to keep your users from uploading huge files.<br /><br />Keep in mind that the maximum efficient page size is 40 to 50 kilobytes, so if you expect to have 2 pictures per page, you may want to limit the maximum size to 15Kb.'; $restricted_viewing = 'Restricted Viewing'; $restricted_viewing = 'This feature is expected to start working in phpWebsite version 9.4.'; $make_metatags = 'Automatically Generate Meta Descriptions'; $make_metatags = 'Checking this box will let phpWebsite automatically change the browser title and description metatag to match the article title and summary.<br /><br />This may or may not work depending on which version of phpWebsite you are using.'; $lock_expiration_time = 'Lock Expiration Time'; $lock_expiration_time = 'Once someone starts editing an article, noone else can open it for editing until either they save it, press the "Cancel Editing" or "Back to Menu" buttons, or this amount of time has passed.'; ?> --- NEW FILE: layout.php --- <?php $layout_info[] = array ("content_var"=>"CNT_article" , "transfer_var"=>"body"); $layout_info[] = array ("content_var"=>"CNT_article_summaries", "theme_var"=>"body", "home_only"=>1); $layout_info[] = array ("content_var"=>"CNT_article_past", "theme_var"=>"right_col_mid", "home_only"=>1); $layout_info[] = array ("content_var"=>"CNT_article_popular", "theme_var"=>"right_col_mid", "home_only"=>1); ?> --- NEW FILE: module_rights.txt --- create_articles::Create Articles edit_articles::Edit Articles edit_own_article::Edit Own Articles delete_articles::Delete Articles delete_own_article::Delete Own Articles images_in_article::Place Images In Articles images_in_library::Place Images In Image Library upload_images::Upload Images choose_section_template::Choose Section Templates choose_article_template::Choose Article Templates insert_external_pages::Insert External Pages allow_comments::Allow/Disallow Comments allow_anon::Allow/Disallow Anonymous Comments change_dates::Change dates of Publication/Expiration set_mainarticle::Set Mainarticle global_article_prefs::Change Default Article Preferences --- NEW FILE: users.php --- <?php $default_admin_menu = "content"; $default_user_menu = "personal"; ?> |