3 // SourceForge: Breaking Down the Barriers to Open Source Development
4 // Copyright 1999-2000 (c) The SourceForge Crew
5 // http://sourceforge.net
7 // $Id: license.php,v 1.31 2000/12/07 21:08:41 tperdue Exp $
9 require "pre.php"; // Initial db and session library, opens session
11 require('account.php');
12 session_require(array('isloggedin'=>'1'));
14 if ($insert_group_name && $group_id && $rand_hash && $form_full_name && $form_unix_name) {
16 check for valid group name
18 $form_unix_name=strtolower($form_unix_name);
20 if (!account_groupnamevalid($form_unix_name)) {
21 exit_error("Invalid Group Name",$register_error);
24 See if it's taken already
26 if (db_numrows(db_query("SELECT group_id FROM groups WHERE unix_group_name='$form_unix_name'")) > 0) {
27 exit_error("Group Name Taken","That group name already exists.");
30 Hash prevents them from updating a live, existing group account
32 $sql="UPDATE groups SET unix_group_name='$form_unix_name', group_name='$form_full_name', ".
33 "http_domain='$form_unix_name.$GLOBALS[sys_default_domain]', homepage='$form_unix_name.$GLOBALS[sys_default_domain]' ".
34 "WHERE group_id='$group_id' AND rand_hash='__$rand_hash'";
35 $result=db_query($sql);
38 exit_error('Error','Missing Info Or Invalid State. Some form variables were missing.
39 If you are certain you entered everything, <B>PLEASE</B> report to admin@'. $GLOBALS['sys_default_domain'].' and
40 include info on your browser and platform configuration');
43 $HTML->header(array('title'=>'License'));
46 <H2>Step 5: License</H2>
48 <P><B><I>If you are applying for a website-only project, please
49 select "website-only" from the choices below and proceed.</I></B>
52 SourceForge was created to advance Open Source software development.
53 To keep things simple, the original SourceForge crew are relying on
54 the outstanding work of the <A href="http://www.opensource.org">Open
55 Source Initiative</A> for their licensing choices.
57 <p>Local policy may require the availability of other licenses,
58 though. This should be handled by the local Sourceforge
59 administrator. If you wish to use a license that is not listed here,
60 please let the administrator know why you wish to use another license.
62 <P>Choosing a license is a serious decision. Please take some time to
63 read the text (and our explanations) of several licenses before making
64 a choice abour your project.
66 <P>For many legal reasons, you may not change a project's license once
67 it has been set. If you feel that you have a special case and legal
68 capability to do this, we will work with you on a case-by-case basis.
73 <LI><A href="http://www.opensource.org/licenses/gpl-license.html" target="_blank">GNU General Public License</A>
74 <LI><A href="http://www.opensource.org/licenses/lgpl-license.html" target="_blank">GNU Library or 'Lesser' Public License</A>
75 <LI><A href="http://www.opensource.org/licenses/bsd-license.html" target="_blank">BSD License</A>
76 <LI><A href="http://www.opensource.org/licenses/mit-license.html" target="_blank">MIT License</A>
77 <LI><A href="http://www.opensource.org/licenses/artistic-license.html" target="_blank">Artistic License</A>
78 <LI><A href="http://www.mozilla.org/MPL/MPL-1.0.html" target="_blank">Mozilla Public License 1.0</A>
79 <LI><A href="http://www.troll.no/qpl" target="_blank">Q Public License</A>
80 <LI><A href="http://www.research.ibm.com/jikes/license/license3.htm" target="_blank">IBM Public License 1.0</A>
81 <LI><A href="http://cvw.mitre.org/cvw/licenses/source/license.html" target="_blank">Collaborative Virtual Workspace License</A>
82 <LI><A href="http://www.risource.org/RPL/RPL-1.0A.shtml" target="_blank">Ricoh Source Code Public License 1.0</A>
83 <LI><A href="http://www.python.org/doc/Copyright.html" target="_blank">Python License</A>
84 <LI><A href="http://www.opensource.org/licenses/zlib-license.html" target="_blank">zlib/libpng License</A>
85 <LI><A href="http://www.sourceforge.net/register/publicdomain.txt" target="_blank">Public Domain</A>
88 <P><B>License for This Project</B>
91 <FORM action="category.php" method="post">
92 <INPUT TYPE="HIDDEN" NAME="insert_license" VALUE="y">
93 <INPUT TYPE="HIDDEN" NAME="group_id" VALUE="<?php echo $group_id; ?>">
94 <INPUT TYPE="HIDDEN" NAME="rand_hash" VALUE="<?php echo $rand_hash; ?>">
95 <B>Your License:</B><BR>
97 echo '<SELECT NAME="form_license">';
98 while (list($k,$v) = each($LICENSE)) {
99 print "<OPTION value=\"$k\"";
106 If you selected "other", please provide an explanation along
107 with a description of your license. Realize that other licenses may
109 <BR><TEXTAREA name="form_license_other" wrap=virtual cols=60 rows=10></TEXTAREA>
111 <H2><FONT COLOR="RED">Do Not Back Arrow After This Point</FONT></H2>
113 <INPUT type=submit name="Submit" value="Step 6: Category">
118 $HTML->footer(array());