PHP Labware source code viewer / Internal utilities | 23 Dec, 2025
Root | Help
./LabStoRe/labstore/interface_creator/login_form.php
<?php

/*
Interface Creator
www.bioinformatics.org/phplabware
6 September 2014 release
By Santosh Patnaik, MD, PhD
GPL license
Based on DaDaBik version 3.2 by Eugenio Tacchini - http://www.dadabik.org
*/

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Pragma: no-cache");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-control: private");
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" />
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
<title>
<?php
if($mainsite_name != '') {
  echo $mainsite_name, ' - ';
}
if($parentsite_name != '') {
  echo $parentsite_name, ' - ';
}
echo $site_name;
?>  - Data browser</title>
<link rel="stylesheet" href="../style.css" type="text/css" />
<meta name="Description" content="<?php echo $meta_description; ?>" />
<meta name="Keywords" content="<?php echo $meta_keywords; ?>" />
<meta name="Generator" content="<?php echo $meta_generator; ?>" />
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
function fill_cap(city_field) {
  temp = 'document.contacts_form.'+city_field+'.value';
  city = eval(temp);
  cap=open("fill_cap.php?city="+escape(city),"schermo","toolbar=no,directories=no,menubar=no,width=170,height=250,resizable=yes");
}
function checkCR(evt) {
  var evt  = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = checkCR;

// load htmlarea
_editor_url = "htmlarea/";
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if(navigator.userAgent.indexOf('Mac') >= 0) {win_ie_ver = 0;}
if(navigator.userAgent.indexOf('Linux') >= 0) {win_ie_ver = 0;}
if(navigator.userAgent.indexOf('Windows CE') >= 0) {win_ie_ver = 0;}
if(navigator.userAgent.indexOf('Opera') >= 0) {win_ie_ver = 0;}
if(win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"><\/scr' + 'ipt>');  
}
else {
  document.write('<scr'+'ipt>function editor_generate() { return false; }<\/scr'+'ipt>');
}

//opens a js popup with customizable options. Popup will close and open
//again upon call from pwd-generator link
var mywindow;
function generic_js_popup(url,name,w,h) {
  if (mywindow!=null && !mywindow.closed){
    mywindow.close();
  }
  var options;
  options = "resizable=yes,toolbar=0,status=1,menubar=0,scrollbars=1, width=" + w + ",height=" + h + ",left="+(screen.width-w)/2+",top="+(screen.height-h)/6; 
  mywindow = window.open(url,name,options);
  mywindow.focus();
}

//opens js popup
function popitup(url) {
  window.name='main';
  newwindow=window.open(url,'name','height=500,width=500,scrollbars=yes,resizable=yes');
  if(window.focus) {newwindow.focus()}
  return false;
}
function confipop(url) {
  var agree = confirm ("Are you sure?");
  if(agree){
    newwindow=window.open(url,'poppedfirst','<?php echo $popup_parameters;?>');
    if(window.focus) {newwindow.focus()}
  }
  return false;
}
// -->
//]]>
</script>
</head>
<body>
<table summary="none" class="table_login_form" align="center">
    <tr valign="top" align="center">
        <td colspan="2" align="center" style="text-align:center;">
            <?php
            if($parentsite_name != '') {
  echo('<a href="' . $parentsite_url . '" onclick="javascript:window.open(this.href); window.close(); return false;">' . $parentsite_name . '</a> | ');
}
echo('<a href="' . $dadabik_main_file . '" onclick="javascript:window.open(this.href); window.close(); return false;">' . $site_name . '</a>');
?>
        </td>
    </tr>
    <tr class="tr_header_login_form">
        <td valign="top" style="align:center; text-align:center;">
            <br />
            <b>
                <?php echo $login_messages_ar['please_authenticate'];?>
            </b>
        </td>
    </tr>
    <tr valign="top" align="center">
        <td valign="top" align="center" style="align:center; text-align:center;">
            <form method="post" action="<?php echo $dadabik_login_file;?>">
                <table summary="none">
                    <tr align="center">
                        <td colspan="2" style="align:center; text-align:center;">
                            <?php txt_out($login_message, 'error_messages_form');?>
                        </td>
                    </tr>
                    <tr>
                        <td style="align:right; text-align:right;">
                            <?php echo $login_messages_ar['username'];?>
                        </td>
                        <td style="align:left; text-align:left;">
                            <input type="text" name="username_user" id="username_user" class="input_login_form" />
                        </td>
                    </tr>
                    <tr>
                        <td style="align:right; text-align:right;">
                            <?php echo $login_messages_ar['password'];?>
                        </td>
                        <td style="align:left; text-align:left;">
                            <input type="password" name="password_user" id="password_user" class="input_login_form" />
                            <input type="hidden" id="go_to" name="go_to" value="<?php echo $go_to;?>" />
                        </td>
                    </tr>
                    <tr>
                        <td style="align:right; text-align:right;">
                            Remember me
                        </td>
                        <td style="align:left; text-align:left;">
                            <input type="checkbox" name="remember_me" id="remember_me" class="input_login_form" />
                            <input type="hidden" id="login_submit" name="login_submit" />
                            <input type="hidden" id="function" name="function" value="<?php echo $function;?>" />
                        </td>
                    </tr>
                    <tr align="center">
                        <td colspan="2" style="align:center; text-align:center;">
                            <input type="submit" value="<?php echo $login_messages_ar['login'];?>" />
                        </td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
    <tr valign="top" align="center">
        <td colspan="2" align="center" style="text-align:center;">
            <?php
            if($mainsite_name != '') {
  echo('<a href="' . $mainsite_url . '" onclick="javascript:window.open(this.href); window.close(); return false;">' . $mainsite_name . '</a>');
}
?>
        </td>
    </tr>
</table>
Presented with Sourceer
PHP Labware home | visitors since Sept 2017