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();
}
}
}
?>
Chiswick
Chiswick
Middlesex Affiliation
{AFFILIATION}
Group
{GROUP}
League Level
6
No of Teams
3
Address:
Dukes Meadow Dan Mason Drive London Middlesex
W4 2SH
View on Map
Training Nights:
Tuesday & Thursday
Youth Teams:
Womens Teams:
Contact:
Gavin Nichols
Telephone:
07768 707489
Email:
players@chiswickrugby.co.uk
Website:
http://www.chiswickrugby.co.uk
Comments:
Since 2005, when the rebuilding of our clubhouse was completed, Chiswick Rugby Football Club (Chiswick RFC) has flourished in terms of playing numbers. Our First Team has been promoted to London Division 1 South, the club’s highest ever league. The 2nd and 3rd XV teams are playing Middlesex Merit Table rugby.
Success has also followed on the pitch, with the First Team’s success in winning the 2012/2013 Middlesex Senior Cup Final, for the first time in our 55 year history.
We also field a Vets team and are renowned for being a vibrant and friendly club with excellent coaching and training facilities
At Chiswick we also aim to develop the youth of today into rugby players of tomorrow. Our Mini’s section was launched in 2011/12 and is rapidly growing and just like the senior teams, they are taking great pride in wearing our jersey
So whether you are a player, coach, parent or supporter, we welcome you to Riverside Lands, the home of Chiswick RFC.
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