/[locfinder]/locfinder/pages/create.php
ViewVC logotype

Diff of /locfinder/pages/create.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by yob, Wed Jan 15 11:23:53 2003 UTC revision 1.2 by yob, Sun Jan 19 14:28:14 2003 UTC
# Line 25  Line 25 
25   *    GNU General Public License for more details.   *    GNU General Public License for more details.
26   *   *
27   *    You should have received a copy of the GNU General Public License   *    You should have received a copy of the GNU General Public License
28   *    along with Foobar; if not, write to the Free Software   *    along with locfinder; if not, write to the Free Software
29   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
30   *   *
31   ********************************************************************/   ********************************************************************/
32    
 $in_locfinder = true;  
   
 // include configuration options  
 include("./config.php");  
 include("./includes/func_mapping.php");  
 include("./includes/func_node.php");  
 include("./includes/func_iprouting.php");  
 include("./includes/func_stats.php");  
   
 // if a form is submitted, then process it  
 if (isset($txt_name)) {  
   
     $exec_code = create_node($txt_owner, $txt_email, $txt_name, $suburb, $txt_lat, $txt_long, $area, 'none', $txt_url, $nodestatus, $pass_password, $pass_password_confirm);  
   
     if ($exec_code != false) {  
   
         $node_id = $exec_code;  
   
         // redirect the user to view their new node!  
         header("location:http://" . $opt_server . $opt_loc_path  . "view.php?id=" . $node_id);  
   
     }  
   
 }  
   
 // include the page header  
 include("header.php");  
33  ?>  ?>
34    
 <? if (isset($exec_code)) { ?>  
   
     <? if (!$exec_code) { ?>  
   
         <table width=100%>  
         <tr><td class="error"><?=$err_message ?></td></tr>  
         </table>  
         <BR>  
     <? } ?>  
   
 <? } ?>  
   
   
35      <h2>Create New Node</h2>      <h2>Create New Node</h2>
36    
37      <p>Please fill in as much information as you can. Fields marked with a <FONT color="red">*</FONT> must be filled in. Any other fields, you may leave blank if you wish; you can always update the entries at a later date.      <p>Please fill in as much information as you can. Fields marked with a <FONT color="red">*</FONT> must be filled in. Any other fields, you may leave blank if you wish; you can always update the entries at a later date.
# Line 80  include("header.php"); Line 40  include("header.php");
40            <tr valign=top>            <tr valign=top>
41              <td>              <td>
42    
43                  <form action="create.php" method="post">                  <form action="index.php" method="post">
44                    <input type="hidden" name="action" value="create">
45    
46                  <table border=0 class="tableline">                  <table border=0 class="tableline">
47    
# Line 105  include("header.php"); Line 66  include("header.php");
66                      <td class="minor" colspan=2><P>Your contact Information and location...<P>Coordinates are in standard GPS format, and you can look them up <a href="#" onClick="popup('<? echo $opt_server . $opt_loc_path  ?>gpslookup.html','Win1',400,250 ); return false">automatically</a> or <a href="#" onClick="popup('<? echo $opt_server . $opt_loc_path  ?>lookup.html','Win1',640,480 ); return false">manually</a> </td>                      <td class="minor" colspan=2><P>Your contact Information and location...<P>Coordinates are in standard GPS format, and you can look them up <a href="#" onClick="popup('<? echo $opt_server . $opt_loc_path  ?>gpslookup.html','Win1',400,250 ); return false">automatically</a> or <a href="#" onClick="popup('<? echo $opt_server . $opt_loc_path  ?>lookup.html','Win1',640,480 ); return false">manually</a> </td>
67                    </tr>                    </tr>
68    
69                    <tr>                    <? if ($opt_defined_suburb_list) {?>
                     <th class="nodeinfo">Contact's name:</th>  
                     <td class="nodeinfo"><INPUT type="text" size=15 name="txt_owner"></td>  
                   </tr>  
   
                   <tr>  
                     <th class="nodeinfo">Contact's email address:<FONT color="red">*</FONT></th>  
                     <td class="nodeinfo"><INPUT type="text" size=15 name="txt_email"></td>  
                   </tr>  
   
70                    <tr>                    <tr>
71                      <th class="nodeinfo">Suburb:</th>                      <th class="nodeinfo">Suburb:</th>
72                      <td class="nodeinfo"><SELECT name='suburb'>                      <td class="nodeinfo"><SELECT name='suburb'>
# Line 123  include("header.php"); Line 75  include("header.php");
75                      <OPTION>---</OPTION>                      <OPTION>---</OPTION>
76                      <?                      <?
77                        //<INPUT type="text" size=15 name="txt_suburb">                        //<INPUT type="text" size=15 name="txt_suburb">
78                        $suburb_file = fopen("suburbs", "r");                        $suburb_file = fopen($opt_suburb_file, "r");
79                                            
80                        while ($data = fgetcsv ($suburb_file, 64, ",")) {                        while ($data = fgetcsv ($suburb_file, 64, ",")) {
81                                            
# Line 137  include("header.php"); Line 89  include("header.php");
89                      </select>                      </select>
90                      </td>                      </td>
91                    </tr>                    </tr>
92                      <? } else { ?>
93    
94                          <tr>
95                            <th class="nodeinfo">Suburb:</th>
96                            <td><input type="text" name="suburb"></td>
97                          <tr>
98    
99                      <? } ?>
100    
101                    <tr>                    <tr>
102                      <th class="nodeinfo">Latitude:<FONT color="red">*</FONT></th>                      <th class="nodeinfo">Latitude:<FONT color="red">*</FONT></th>
# Line 171  include("header.php"); Line 131  include("header.php");
131                    <tr>                    <tr>
132                      <th class="nodeinfo">&nbsp;</th>                      <th class="nodeinfo">&nbsp;</th>
133                    </tr>                    </tr>
                   <?  
                   /*  
                    * OSPF parts commented out until a final decision on routing  
                    *  is made  
                    *  
                   ?>  
                   <tr>  
                     <td class="minor" colspan=2><P>To join the Melbourne Wireless Network, you must be classified using OSPF. If the information here isn't detailed enough, <a href="http://melbourne.wireless.org.au/wiki/?OSPF%20architecture">read</a> a more detailed description, or <a href="http://melbourne.wireless.org.au/wiki/?OSPF%20Help">ask</a> someone for help.<P>Area - start with <a href="img/area_boundaries.png">this</a> map to find out roughly what area you are in. Only use it as a guide, so for example, if your geographically in one Area, but have better LOS to a different Area, choose the 2nd option. If you are connected to only one other person as a client, then you will be the same area as them<p><B>Even if you plan to form part of the Backbone, still specify your 'area of residence', as you can specify which of your interfaces make up part of the backbone in the interface table</B><P>Mode - <B>if your not running OSPF, or have no idea what OSPF is, select none.</b><P>If your running OSPF; <MENU><LI>and route soley within your Area, your an Internal Router; <LI>and route to another area, your a Border Router; <LI>and route to a different network (like another community wireless group) your a System Border Router</MENU></td>  
                   </tr>  
134    
135                    <tr>                    <tr>
                     <th class="nodeinfo">OSPF Primary Area:</th>  
                     <td class="nodeinfo"><SELECT name="ospf_area"><OPTION value="-1" <? echo $ospf_minus_1 ?>>none<OPTION value="--">--<OPTION value=1 <? echo $ospf_1 ?>>1 - Central<OPTION value=2 <? echo $ospf_2 ?>>2 - Western Plains<OPTION value=3 <? echo $ospf_3 ?>>3 - Maribyrnong<OPTION value=4 <? echo $ospf_4 ?>>4 - Merri<OPTION value=5 <? echo $ospf_5 ?>>5 - Darebin<OPTION value=6 <? echo $ospf_6 ?>>6 - Yarra North<OPTION value=7 <? echo $ospf_7 ?>>7 - Yarra Valley<OPTION value=8 <? echo $ospf_8 ?>>8 - Eastern<OPTION value=9 <? echo $ospf_9 ?>>9 - Dandenong Foothills<OPTION value=10 <? echo $ospf_10 ?>>10 - Southern<OPTION value=11 <? echo $ospf_11 ?>>11 - Peninsula</SELECT></td>  
                   </tr>  
   
                   <tr>  
                     <th class="nodeinfo">OSPF Mode:</th>  
                     <td class="nodeinfo"><SELECT name="ospf_mode"><OPTION value="none" <? echo $ospf_none ?>>none<OPTION value="--">--<OPTION value="Area Internal Router" <? echo $ospf_air ?>>Area Internal Router<OPTION value="Area Border Router" <? echo $ospf_abr ?>>Area Border Router<OPTION value="System Border Router" <? echo $ospf_sbr ?>>System Border Router</SELECT></td>  
                   </tr>  
                   <? */ ?>  
                   <tr>  
136                      <td class="minor" colspan=2><P>Melbourne has been divided up into - initially - <a href="img/area_boundaries.png">11 geographical regions</a>. Some areas are quite organised and hold thier own meetings and events, while others are little more than words on our website - the oppurtunity exists to build strong social, as well as network, links with these people in your area. By choosing your area of residence, it also allows us to assign you an ip that will be close to that of your neighbours.<P>It is important that you use the geographical boundaries only as a guide - for example, if you find yourself physically in one area, but with better LOS to a neighbouring area, select the neighbouring area as yours.</td>                      <td class="minor" colspan=2><P>Melbourne has been divided up into - initially - <a href="img/area_boundaries.png">11 geographical regions</a>. Some areas are quite organised and hold thier own meetings and events, while others are little more than words on our website - the oppurtunity exists to build strong social, as well as network, links with these people in your area. By choosing your area of residence, it also allows us to assign you an ip that will be close to that of your neighbours.<P>It is important that you use the geographical boundaries only as a guide - for example, if you find yourself physically in one area, but with better LOS to a neighbouring area, select the neighbouring area as yours.</td>
137                    </tr>                    </tr>
138    
# Line 226  include("header.php"); Line 167  include("header.php");
167                    </tr>                    </tr>
168    
169                    <tr>                    <tr>
                     <td class="minor" colspan=2>Passwords are limited to <b>10</b> characters.</td>  
                   </tr>  
   
                   <tr>  
                     <th class="nodeinfo">Password:<FONT color="red">*</FONT></th>  
                     <td class="nodeinfo"><INPUT type="password" size=30 name="pass_password"></a></td>  
                   </tr>  
   
                   <tr>  
                     <th class="nodeinfo">Retype Password:<FONT color="red">*</FONT></th>  
                     <td class="nodeinfo"><INPUT type="password" size=30 name="pass_password_confirm"></a></td>  
                   </tr>  
   
                   <tr>  
170                      <td colspan=2 align=right><BR><input type="submit" name="submit" value="create >>" class="button"></td>                      <td colspan=2 align=right><BR><input type="submit" name="submit" value="create >>" class="button"></td>
171                    </tr>                    </tr>
172    
# Line 250  include("header.php"); Line 177  include("header.php");
177              </tr>              </tr>
178          </table>          </table>
179    
     <?  
 // include page footer  
 include("footer.php");  
   
   
 ?>  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26