rendered paste body<?php
require('connect.php');
session_start();
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && true) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "../login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<script language="JavaScript">
function Rollover(imagename, image, over)
{
if(window.document.images)
{
if (over)
window.document.images["sdhover" + imagename].src = "./images/" + image;
else
window.document.images["sdhover" + imagename].src = "./images/" + image;
}
}
</script>
<html>
<head>
<title>Website Title</title>
<link rel="stylesheet" href="../skins/powder/styles.css" />
<meta name="description" content="Website description" />
<meta name="keywords" content="Website Keywords" />
<style type="text/css">
<!--
.ar11 {font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
}
.style18 {font-size: 12pt}
.style19 {color: #5C5C5C}
.style20 {font-size: 11px; font-family: Arial, Helvetica, sans-serif;}
.style21 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #5C5C5C; }
.style22 {color: #FFFFFF}
.style23 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
.style24 {font-weight: bold}
.style25 {color: #FFFFFF; font-weight: bold; }
-->
</style>
</head>
<body>
<table width="700" border="0" cellpadding="5" cellspacing="0" bgcolor="FFFFF;">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <td bgcolor="#F3F4F2" height="50"><img src="../../images/pd_header3333.jpg" width="768" height="200"></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="1" bgcolor="#53656B"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=1'"><a href="http://www.liveballasleague.net/index.php?categoryid=1">Home</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='http://www..liveballasleague.net/smf'"><a href="http://www.liveballasleague.net/smf/" class="category">Forums</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=9'"><a href="http://www.liveballasleague.net/index.php?categoryid=3" class="category">GM List</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=10'"><a href="http://www.liveballasleague.net/Salaries22.htm">Salaries</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='http://www.liveballasleague.net/stats'"><a href="http://www.liveballasleague.net/stats/index.php" class="category">Stats</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=14'"><a href="http://www.liveballasleague.net/index.php?categoryid=5" class="category">Standings</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=12'"><a href="http://www.liveballasleague.net/ESPN2/ESPN2.html">ESPN2</a></td>
<td style="padding-left: 5px;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#53656B'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onClick="window.location.href='index.php?categoryid=13'"><a href="http://www.liveballasleague.net/login.php">GM Login</a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="#53656B"></td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center" bgcolor="#FFFFFF" width="750" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="3" background="../skins/d_crystal/images/leftside.gif"><img src="../skins/d_crystal/images/spacer.gif" width="3" /></td>
<td valign="top"><p>&npsp;</p>
<p align="center">&npsp;</p>
<div align="center">
<form name="form1" method="post" action="fa_exec.php">
<table width="200" border="0">
<tr>
<td colspan="3" nowrap><div align="center"><span class="style4">
<? $team4=$_SESSION['MM_Username'];
?>
</span>Free Agent Offers </div></td>
</tr>
<tr>
<td nowrap>Player</td>
<td nowrap><select name="name" id="name">
<option value="none" <?php if (!(strcmp("none", $row_p1['name']))) {echo "SELECTED";} ?>>none</option>
<?php
do {
?>
<option value="<?php echo $row_p1['name']?>"<?php if (!(strcmp($row_p1['name'], $row_p1['name']))) {echo "SELECTED";} ?>><?php echo $row_p1['name']?>
<?php echo $row_p1['Ovr']?>
</option>
<?php
} while ($row_p1 = mysql_fetch_assoc($p1));
$rows = mysql_num_rows($p1);
if($rows > 0) {
mysql_data_seek($p1, 0);
$row_p1 = mysql_fetch_assoc($p1);
}
?>
</select></td>
<td nowrap>Sorted by ovr desc (top player is best)</td>
</tr>
<tr>
<td nowrap>Starting Salary<br>
</td>
<td nowrap><input name="salary" type="text" id="salary" value="4,000,000 = 4000000"></td>
<td nowrap>Delete what is in the form </td>
</tr>
<tr>
<td nowrap>Lenght of Contract </td>
<td nowrap><input name="length" type="text" id="length" size="4" maxlength="4">
</td>
<td nowrap>&npsp;</td>
</tr>
<tr>
<td nowrap><span class="style4">Mid Level Exemption ? </span></td>
<td nowrap><select name="Mid" id="Mid">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select></td>
<td nowrap>&npsp;</td>
</tr>
<tr>
<td nowrap>Million Dollar Exemption ? </td>
<td nowrap><span class="style4">
<select name="Mil" id="Mil">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</span></td>
<td nowrap>&npsp;</td>
</tr>
<tr>
<td nowrap>% of Raise per year</td>
<td nowrap><input name="raise" type="text" id="raise" size="4" maxlength="4"></td>
<td nowrap>&npsp;</td>
</tr>
<tr>
<td nowrap>&npsp;</td>
<td nowrap><input type='hidden' name='date' value='<? echo date( 'y-m-d H:i:s' ); ?>' >
<span class="style4">
<input name='team' type='hidden' id="team4" value='<? print $team4; ?>' >
</span></td>
<td nowrap>&npsp;</td>
</tr>
<tr>
<td nowrap>&npsp;</td>
<td nowrap><input type="submit" name="Submit" value="Submit"></td>
<td nowrap>&npsp;</td>
</tr>
</table>
<br>
*DO NOT OFFER 400,000 like that. Offer it like 400000 otherwise it WILL NOT SUBMIT.
</form>
</div>
<p>&npsp;</p>
<p>&npsp;</p>
<p>&npsp;</p>
<p><br>
</p>
<div align=left><p>&npsp;</p>
</div>
<tr><p>&npsp;</p>
</body>
</html>