Menu
Good Morning,
I work in the I.T. department for a small business in Auburn Hills, MI. Most of what we do here are C# based projects, and none of us particularly talented with PHP. The warehouse manager wants us to change the login process for the warehouse people from a scrolldown, where they select their names and punch in that way, to a 4 digit login. The login for the warehouse is a php based application.
Any thoughts? Please Help. Thx!
-paul
if (isset($_SESSION['valid_user'])) {
$set_logout = "1";
}
include 'topmain.php';
include 'leftmain.php';
if (!isset($_GET['sortcolumn'])) {
$sortcolumn = "fullname";
} else {
$sortcolumn = $_GET['sortcolumn'];
}
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ((".$db_prefix."info.timestamp < '".$a."') and
(".$db_prefix."info.timestamp >= '".$b."')) and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ((".$db_prefix."info.timestamp < '".$a."') and (".$db_prefix."info.timestamp >= '".$b."'))
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.groups = '".$display_group."'
and ((".$db_prefix."info.timestamp < '".$a."') and (".$db_prefix."info.timestamp >= '".$b."'))
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.groups = '".$display_group."' and ((".$db_prefix."info.timestamp < '".$a."')
and (".$db_prefix."info.timestamp >= '".$b."')) and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.groups = '".$display_group."'
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.groups = '".$display_group."' and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
|_|=|{|}|[|]|||:|<|>|.|,|?)+$~", $password)) ||<br/>
//(!preg_match("#^([[:alnum:]]|~|!|@|#|$|%|^|&|*|(|)|-|+|
|_|=|{|}|[|]|||:|<|>|.|,|?)+$", $password)) {<br/>
/*elseif (!preg_match("~^([[:alnum:]]|~|!|@|#|$|%|^|&|*|(|)|-|+|
if (isset($_SESSION['valid_user'])) {
$set_logout = "1";
}
include 'topmain.php';
include 'leftmain.php';
if (!isset($_GET['sortcolumn'])) {
$sortcolumn = "fullname";
} else {
$sortcolumn = $_GET['sortcolumn'];
}
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ((".$db_prefix."info.timestamp < '".$a."') and
(".$db_prefix."info.timestamp >= '".$b."')) and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ((".$db_prefix."info.timestamp < '".$a."') and (".$db_prefix."info.timestamp >= '".$b."'))
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.groups = '".$display_group."'
and ((".$db_prefix."info.timestamp < '".$a."') and (".$db_prefix."info.timestamp >= '".$b."'))
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$current_users_date = strtotime(date($datefmt));
$calc = 86400;
$a = $current_users_date + $calc - @$tzo;
$b = $current_users_date - @$tzo;
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.groups = '".$display_group."' and ((".$db_prefix."info.timestamp < '".$a."')
and (".$db_prefix."info.timestamp >= '".$b."')) and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.groups = '".$display_group."'
and ".$db_prefix."employees.disabled <> '1' and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
$query = "select ".$db_prefix."info.*, ".$db_prefix."employees.*, ".$db_prefix."punchlist.*
from ".$db_prefix."info, ".$db_prefix."employees, ".$db_prefix."punchlist
where ".$db_prefix."info.timestamp = ".$db_prefix."employees.tstamp and ".$db_prefix."info.fullname = ".$db_prefix."employees.empfullname
and ".$db_prefix."info.inout
= ".$db_prefix."punchlist.punchitems and ".$db_prefix."employees.office = '".$display_office."'
and ".$db_prefix."employees.groups = '".$display_group."' and ".$db_prefix."employees.disabled <> '1'
and ".$db_prefix."employees.empfullname <> 'admin'
order by $sortcolumn
$sortdirection";
$result = mysql_query($query);
0.1.9 — BETA 5.28