0) ? $Size : 25; $First=(!array_key_exists('f', $_GET) || empty($_GET['f'])) ? 1 : chk_str($_GET['f'], 4); $First=(is_numeric($First) && $First>0) ? $First : 1; list($GoodAcct, $AcctName)=chk_acct($Key,'A'); if (!$GoodAcct) { $Page='0;url=failed.php'; $First=1; $Size=25; $max_cnt=0; } else { $Page='900;url=amenu.php?k='.$Key; $query='select count(*) from recovery'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); $max_cnt=$cnt_row[0]; if ($First > $max_cnt) { $First=max(1,intval($max_cnt / $Size) * $Size + 1); } } ?>

Recovery Log

'."\n"; $HRef='recovery.php?k='.$Key.'&f='.$First.'&s='.$Size.'&o='; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; $query='select * from recovery order by '.$where; if (!empty($Size) && $Size > 0) { $query.=' limit '.(($First > 1) ? ($First - 1).', ' : '').$Size; } $rcvy_res=mysqli_query($db, $query); while ($rcvy_row=mysqli_fetch_assoc($rcvy_res)) { echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; } echo '
'."\n"; echo 'Date/Time'."\n"; echo ''."\n"; echo 'Email Address'."\n"; echo ''."\n"; echo 'Success'."\n"; echo ''."\n"; echo 'Brewers'."\n"; echo ''."\n"; echo 'IP Address'."\n"; echo '
'."\n"; echo $rcvy_row['chg_ts']."\n"; echo ''."\n"; echo $rcvy_row['email']."\n"; echo ''."\n"; switch ($rcvy_row['success']) { case 'N': echo 'No'; break; case 'Y': echo 'Yes'; break; default: echo 'Unknown'; } echo "\n"; echo ''."\n"; if ($rcvy_row['success'] != 'Y') { echo '—'; } else { $query='select brewer from brewer where email="'.$rcvy_row['email'].'"'; $brew_res=mysqli_query($db, $query); $First=TRUE; while ($brew_row=mysqli_fetch_row($brew_res)) { if (!$First) { echo ' / '; } else { $First=FALSE; } echo ''.$brew_row[0].''; } } echo "\n"; echo ''."\n"; echo $rcvy_row['ip']."\n"; echo '
'."\n"; echo '
'."\n"; table_nav ('recovery.php?k='.$Key.'&o='.$Order, $max_cnt, $First, $Size); ?>