| <?php |
| |
| require_once ("common/search_dir.php"); |
| |
| /* |
| * Project Page Paragraph File Rule Class |
| * |
| * This rule validates if the project still uses the "project-page-paragraph.html" file inside the project root directory. |
| * |
| * It checks on the project's url: eclipse.org/<project-name>/project-page-paragraph.html |
| * |
| * @author: mparra@openmex.com |
| * |
| */ |
| |
| class project_page_paragraph_file_rule { |
| |
| function project_page_paragraph_file_rule() { |
| |
| } |
| |
| /* |
| * Standar function that runs the rule. |
| * |
| * @old_object: The project-info-object to retrieve information from |
| * @new_object: Not used |
| */ |
| function process($old_object, $new_object){ |
| $project_name = $old_object->getName(); |
| $result = ""; |
| //Check if project-page-paragraphs.html is inside root folder |
| if($fileObject = @fopen("http://www.eclipse.org/".$project_name."/project-page-paragraph.html",'r')){ //If true, add a reminder to the email |
| $result = "\n - Please move your project-page-paragraph.html file inside your project-info folder."; |
| } |
| return $result; |
| } |
| |
| } |
| ?> |