class Access
{
var $permit;
var $user_id;
var $login;
var $level;
var $user_ip;
var $user_port;
var $user_agent;
var $add;
var $edit;
var $del;
function Access($limit=10)
{
$remaddr = $GLOBALS["REMOTE_ADDR"];
$keyword = $GLOBALS["gpp"];
$this->user_ip = $GLOBALS["REMOTE_ADDR"];
$this->user_port = $GLOBALS["REMOTE_PORT"];
$this->user_agent = $GLOBALS["HTTP_USER_AGENT"];
$sql = "SELECT COUNT(*) FROM actab WHERE (keyword = \"$keyword\")";
$result = sql_execute($sql);
$row = mysqli_fetch_row($result);
mysqli_free_result($result);
$count = (int) $row[0];
if ($count > 0)
{
$sql = "SELECT ip, IF(cdate > NOW(), 1, 0), login, logid, loglevel FROM actab WHERE keyword = \"$keyword\"";
$sql = "SELECT ip, cdate, login, logid, loglevel FROM actab WHERE keyword = \"$keyword\"";
$result = sql_execute($sql);
$row = mysqli_fetch_row($result);
mysqli_free_result($result);
$this->permit = $row[1];
$this->level = $row[4];
if ($this->level < $limit) {$this->permit = 0;}
if ($this->permit > 0)
{
$this->login = $row[2];
$this->user_id = $row[3];
$sql = "UPDATE actab SET cdate = DATE_ADD(NOW(), INTERVAL 60 MINUTE) WHERE keyword = \"$keyword\"";
$result = sql_execute($sql);
}
}
if ($this->permit == 0)
{
$login = $GLOBALS["login"];
$password = $GLOBALS["password"];
if ((strlen($login) > 0) and (strlen($password) > 0))
{
$sql = "SELECT COUNT(*) FROM users WHERE login = \"$login\"";
$result = sql_execute($sql);
$row = mysqli_fetch_row($result);
mysqli_free_result($result);
$count = (int) $row[0];
if ($count > 0)
{
$sql = "SELECT login, password, vkey, id, level, approved FROM users WHERE login = \"$login\"";
$result = sql_execute($sql);
$row = mysqli_fetch_row($result);
mysqli_free_result($result);
$this->level = $row[4];
$this->user_id = $row[3];
$this->permit = 0;
$this->login = $login;
if (($row[1] == $password) and ($row[5] == 1) and ($row[4] >= $limit))
{
$this->permit = 1;
srand(time());
$keyword = rand();
$keyword = $this->user_id . $keyword;
$sql = "UPDATE users SET vkey = \"$this->user_ip\" WHERE login = \"$login\"";
$result = sql_execute($sql);
$sql = "DELETE FROM actab WHERE (logid = $this->user_id) and (ip = \"$this->user_ip\")";
$result = sql_execute($sql);
// $sql = "INSERT INTO actab (keyword, ip, cdate, login, logid, loglevel, useragent, remport)
// VALUES (\"$keyword\",\"$this->user_ip\", DATE_ADD(NOW(), INTERVAL 60 MINUTE),
// \"$login\", $this->user_id, $this->level, \"$this->user_agent\", \"$this->user_port\")";
date_default_timezone_set('Europe/London');
$date = date('Y-m-d H:i:s');
$sql = "INSERT INTO actab (keyword, ip, cdate, login, logid, loglevel, useragent, remport) VALUES (\"$keyword\",\"$this->user_ip\", DATE_ADD(NOW(), INTERVAL 60 MINUTE), \"$login\", $this->user_id, $this->level, \"$this->user_agent\", \"$this->user_port\")";
$result = sql_execute($sql);
$exp = time() + 3600;
@setcookie("gpp",$keyword,$exp,"/");
}
}
}
}
if ($this->permit == 0)
{
$login_form = join(file("login_form.htm"), "\n");
print $login_form;
exit();
}
}
function Set_Permit($item_id)
{
$sql = "SELECT uadd, uedit, udel, id FROM usaccess WHERE (userid = $this->user_id) and (mpid = $item_id)";
$result = sql_execute($sql);
$row = mysqli_fetch_row($result);
mysqli_free_result($result);
$this->add = $row[0];
$this->edit = $row[1];
$this->del = $row[2];
$id = (int) $row[3];
if ($this->level == 30)
{
$this->add = 1;
$this->edit = 1;
$this->del = 1;
$id = (int) 1;
}
if ($id == 0)
{
$login_form = join(file("login_form.htm"), "\n");
print $login_form;
exit();
}
}
}
?>
London Welsh Amateurs
London Welsh Amateurs
Middlesex Affiliation
{AFFILIATION}
Group
{GROUP}
League Level
9
No of Teams
3 Mens Teams, U21, Women's XV and VETS
Address:
Old Deer Park Kew Road Richmond Surrey
TW9 2AZ
View on Map
Training Nights:
Wednesday at 7 (food available)
Youth Teams:
juniors 6 - 18
Womens Teams:
Yes
Contact:
Danny Griffiths
Telephone:
07595 420089
Email:
playrugby@londonwelshrfc.com
Website:
www.londonwelshrfc.com
Comments:
Women's XV, Men's Druids, Dragons, Occies, U21, VETs, junior 6 - 18 and Touch all year on Tuesday at 7:15pm
For academy program refer to information under London Welsh entry on the middlesex website
London Welsh was formed in 1885, the professional part of the club plays in the Championship. The thriving amateur section offering players 6 - 60 competitive rugby and superb player centric coaching. An inclusive, diverse club that retains an authentic feel of the valleys and villages of Wales
If this is your club and any of this information is incorrect or out of date,
please email countyoffice@middlesexrugby.com
Back to club listing
Scroll to top