To be reminded of your password click here";}; if ($r_username=="" and $registered<>"true"){print"
"; if ($resource_user<>""){$nicename=rawurldecode($resource_user);$nicename=stripslashes($nicename); print "

Username: $nicename

Click Here to edit your resource profile


 
";}; print "

Username:

Password:



Lost your password ? Type your username below:

Or enter your E-Mail address:
 

";} else{ if ($resource_user<>"" and $new_edit<>"true"){ $r_username=$resource_user; $r_password=$resource_pass;}else{ $r_username=addslashes($r_username); $r_username=rawurlencode($r_username);}; include "setup.inf"; @mysql_select_db("$dbname") or die( "Unable to select database"); $number = mysql("$dbname", "select r_username,r_pass from $dbtable"); $rowcount = mysql_numrows($number); $newvart = mysql("$dbname", "select r_username,r_pass from $dbtable"); /* check for unique username */ while ($rowcount >= 0): $infoa = mysql_fetch_row($newvart); if ($infoa[0]==$r_username AND $infoa[1]==$r_password ){$edit="true";}; $rowcount=$rowcount-1; endwhile; if ($edit=="true"){ include "setup.inf"; @mysql_select_db("$dbname") or die( "Unable to select database"); $newselect = mysql("$dbname", "select r_name,r_url,r_imageurl,r_type,r_games,r_desc,r_unique_id,r_email,image_x,image_y from $dbtable WHERE r_username = '$r_username' and r_pass = '$r_password'"); $infob = mysql_fetch_row($newselect); $r_name=$infob[0]; $r_url=$infob[1]; $r_imageurl=$infob[2]; $r_type=$infob[3]; $r_desc=$infob[5]; /* check resource type */ if ($r_type==1){$check[0]="selected";}; if ($r_type==2){$check[1]="selected";}; if ($r_type==3){$check[2]="selected";}; if ($r_type==4){$check[3]="selected";}; if ($r_type==5){$check[4]="selected";}; if ($r_type==6){$check[5]="selected";}; if ($r_type==7){$check[6]="selected";}; if ($r_type==8){$check[7]="selected";}; /* explode infob4 into array games and set flags for checkboxes */ $r_games = explode(":", $infob[4]); @mysql_select_db("squadlinks") or die( "Unable to select database"); $number = mysql("squadlinks", "select long_name,short_name from games_list order by long_name"); $rowcount = mysql_numrows($number); $newvart = mysql("squadlinks", "select long_name,short_name from games_list order by long_name"); while ($rowcount > 0): $info = mysql_fetch_row($newvart); if (ereg ("$info[1]",$infob[4])){$g[] = "selected";}else{$g[] = "";}; $rowcount=$rowcount-1; endwhile; /* end */ print "
Site Name:
Email Address:

Site URL:

Image URL: (max size 150x150)

Image Width (max 250px):

Image Height (max 120px):

Type of Site:


"; /* games select */ @mysql_select_db("squadlinks") or die( "Unable to select database"); $number = mysql("squadlinks", "select long_name,short_name from games_list order by long_name"); $rowcount = mysql_numrows($number); $newvart = mysql("squadlinks", "select long_name,short_name from games_list order by long_name"); print "Games played:(hold shift to select multiple)

"; /* end game select */ print "


Site Description.



";};}; ?>