'1')); if ($submit) { $full_name = trim($full_name); $purpose = trim($purpose); $license_other = trim($license_other); $description = trim($description); $unix_name = strtolower($unix_name); /* Fierce validation */ if (strlen($full_name)<3) { $feedback .= "Invalid Full Name"; } else if (!account_groupnamevalid($unix_name)) { $feedback .= "Invalid Unix Name"; } else if (db_numrows(db_query("SELECT group_id FROM groups WHERE unix_group_name='$unix_name'")) > 0) { $feedback .= "Unix group name already taken"; } else if (strlen($purpose)<20) { $feedback .= "Please describe your Registration Purpose in a more comprehensive manner"; } else if (strlen($description)<10) { $feedback .= "Please use more comprehensive Project Description"; } else if (strlen($description)>255) { $feedback .= "Maximum length for Project Description is 255 chars."; } else if (!$license) { $feedback .= "You have not chosen a license"; } else if ($license!="other" && $license_other) { $feedback .= "Conflicting licenses choice"; } else if ($license=="other" && strlen($license_other)<50) { $feedback .= "Please give more comprehensive licensing description"; } else { $group = new Group(); $u =& session_get_user(); $res = $group->create( $u, $full_name, $unix_name, $description, $license, $license_other, $purpose ); if (!$res) { $feedback .= $group->getErrorMessage(); } else { $HTML->header(array('title'=>'Registration Complete','pagename'=>'register_complete')); ?>
Your project has been submitted to the admininstrators. Within 72 hours, you will receive decision notification and further instructions.
Thank you for choosing .
footer(array()); exit(); } } } else if ($i_disagree) { session_redirect("/"); } site_header(array('title'=>'Project Information','pagename'=>'register_projectinfo')); ?>To apply for project registration, you should fill in basic information about it. Please read descriptions below carefully and provide complete and comprehensive data. All fields below are mandatory.