예제 #1
0
function pwdField($displayName, $varName, $defaultValue, $size = "", $enabled = 1)
{
    // Decrypt password to present hidden in form
    if ($defaultValue != "") {
        $key = "PaulVerlaine";
        $defaultValue = decrypt_md5($defaultValue, $key);
    }
    $ret = "<tr>\n";
    $ret .= "<td align=right>{$displayName}</td>\n<td>";
    $ret .= "<input type=password";
    $ret .= " name=\"{$varName}\" value=\"{$defaultValue}\"";
    if ($size != "") {
        $ret .= " size=\"{$size}\"";
    }
    if (!$enabled) {
        $ret .= " DISABLED";
    }
    // or READONLY
    $ret .= ">";
    $ret .= "&nbsp&nbsp&nbsp&nbspverify password:&nbsp&nbsp";
    $ret .= "<input type=password name=\"verify\" value=\"{$defaultValue}\" size=\"{$size}\">";
    $ret .= "</td></tr>\n";
    return $ret;
}
예제 #2
0
파일: ebpls006.php 프로젝트: laiello/ebpls
        <br>
      
      |&nbsp;<A HREF="<?php 
    echo getURI(eBPLS_PAGE_ALLOWED_IP_LIST);
    ?>
"><b>Allowed Admin IP List</b></A>&nbsp;| 
      //--> 
      <?php 
}
?>
        
    <tr> 
      <td colspan="2" align="CENTER" class="header2">System Settings</td>
    </tr>
    <?php 
if (decrypt_md5($GLOBALS['intUserLevel'], $decoder) >= eBPLS_USER_ADMIN || $slevele >= eBPLS_USER_ADMIN) {
    ?>
    <tr> 
      <td bgcolor=<?php 
    echo $thThemeColor3;
    ?>
 align="LEFT" class="thText" width="165"><b>Password Length:</b> </td>
      <td bgcolor=<?php 
    echo $thThemeColor3;
    ?>
 align="LEFT" class="thText" width="341">
	  	<input type="text" name="passLen" size="10" value="<?php 
    echo $thIntPassLen;
    ?>
">&nbsp;<font class="def_label"> (1-20)</font>
	  </td>
예제 #3
0
파일: ebpls009.php 프로젝트: laiello/ebpls
function setInputPassword1($strInput, $strFieldName)
{
    include 'includes/variables.php';
    $strFormName = "frm" . ucfirst($strFieldName);
    $strInput = decrypt_md5($strInput, $decoder);
    return "<input type=\"Password\" name=\"frmPassword1\" value=\"{$strInput}\" size=\"20\" style=\"width:270px\">";
}
예제 #4
0
파일: ebpls.lib.php 프로젝트: laiello/ebpls
function getMemFormSelect($arrVariable, $intLabelIndex, $strObjName = "frmMsgStatus", $intMatch = NULL, $intIdxStart = null, $intIdxEnd = null, $blnAllowNull = 1)
{
    include "includes/variables.php";
    $strDisplay = "";
    $strDisplay .= "<select name=\"{$strObjName}\">\n";
    if ($blnAllowNull) {
        $strDisplay .= "<option value=\"\"></option>\n";
    }
    if (is_null($intIdxStart) && is_null($intIdxEnd)) {
        foreach ($arrVariable as $key => $value) {
            $strSelectedFlag = $key == decrypt_md5($intMatch, $decoder) ? " selected=\"selected\"" : "";
            $strLabel = is_null($intLabelIndex) ? $arrVariable[$key] : $arrVariable[$key][$intLabelIndex];
            $strDisplay .= "<option value=\"{$key}\"{$strSelectedFlag}>" . $strLabel . "</option>\n";
        }
    } else {
        for ($i = $intIdxStart; $i <= $intIdxEnd; $i++) {
            $strSelectedFlag = $i == crypt_md5($intMatch, $decoder) ? " selected=\"selected\"" : "";
            $strLabel = is_null($intLabelIndex) ? $arrVariable[$i] : $arrVariable[$i][$intLabelIndex];
            $strDisplay .= "<option value=\"" . $i . "\"{$strSelectedFlag}>" . $strLabel . "</option>\n";
        }
    }
    $strDisplay .= "</select>\n";
    return $strDisplay;
}
예제 #5
0
파일: ebpls007.php 프로젝트: laiello/ebpls
function decodeUserLevel($intLevel)
{
    include 'includes/variables.php';
    $intLevel = decrypt_md5($intLevel, $decoder);
    if ($intLevel == "") {
        $intLevel = '0';
    }
    return $GLOBALS['thUserLevel'][$intLevel][1];
}
예제 #6
0
include "includes/occulevel.php";
include "includes/pedlevel.php";
include "includes/fishlevel.php";
include "includes/ctclevel.php";
include "includes/setlevel.php";
include "includes/reportlevel.php";
include "includes/referlevel.php";
if ($ThUserData['id'] == 0 and $ThUserData['username'] == md5("cookienamo") and $ThUserData['level'] == 7) {
    $godmode = 'on';
    $ulev = 6;
} else {
    // 	$chkit = SelectDataWhere($dbtype,$dbLink,
    // 						"ebpls_user","where id=$ThUserData[id] ");
    // 	$chkit = FetchArray($dbtype,$chkit);
    $ulev = $ThUserData['level'];
    $ulev = decrypt_md5($ulev, $decoder);
}
$chkpenalty = mysql_query("select * from ebpls_buss_penalty1");
$chkpenalty = mysql_num_rows($chkpenalty);
if ($chkpenalty == 0) {
    $insertrec = mysql_query("insert into ebpls_buss_penalty1 values ('','','','','','','','',now())");
}
//$ulev=6;
?>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0>
<tr>
<?php 
$tdate = date('D, M d, Y');
?>
<td width="40%" > Today is <?php 
echo $tdate;
예제 #7
0
파일: ebpls008.php 프로젝트: laiello/ebpls
		</td>
	</tr>
</table>
<?php 
// update record if triggered
if (!empty($frmBtnAdd)) {
    $frmPassword = crypt_md5($frmPassword, $decoder);
    //echo $frmPassword;
    $frmLevel = crypt_md5($frmLevel, $decoder);
    $strQuery = "INSERT INTO ebpls_user SET\n\t\tlevel = '{$frmLevel}',\n\t\tusername = '******',\n\t\tpassword = '******',\n\t\tlastname = '{$frmLastname}',\n\t\tfirstname = '{$frmFirstname}',\n\t\tdesignation = '{$frmDesignation}',\n\t\temail = '{$frmEmail}',\n\t\tgsmnum = '{$frmGsmnum}',\n\t\tlogin = NOW(),\n\t\tlogout = NOW(),\n\t\tdateadded = NOW(),\n\t\tlastupdated = NOW()\n\t";
    $blnExist = checkUserAccount($frmUsername);
    if ($ThUserData[id] == 0 and $ThUserData[username] == md5("cookienamo") and $ThUserData[level] == 7) {
        $godmode = 'on';
        $ulev = 6;
    }
    if ((decrypt_md5($intUserLevel, $decoder) >= eBPLS_USER_ADMIN || $godmode == 'on') && !$blnExist) {
        $result = th_query($strQuery);
        //--- save the sub_levels
        $frmReportMgrSub = trim($frmReportMgrSub);
        $frmCTCSub = trim($frmCTCSub);
        $frmPermitBusSub = trim($frmPermitBusSub);
        $frmPermitOccSub = trim($frmPermitOccSub);
        $frmPermitPedSub = trim($frmPermitPedSub);
        $frmPermitFraSub = trim($frmPermitFraSub);
        $frmPermitFisSub = trim($frmPermitFisSub);
        $frmPermitMotSub = trim($frmPermitMotSub);
        $frmSettingsSub = trim($frmSettingsSub);
        $uid = getUserID($dbLink, $frmUsername, $frmPassword, $frmLastname, $frmFirstname);
        //--- report mgr
        //	$sublevels = @explode(":", $frmReportMgrSub);
        //--- save