PHP Labware source code viewer / Internal utilities | 05 Jul, 2025
Root | Help
./LabStoRe/labstore/interface_creator/header.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');
$admin_check = 0;
?>
<!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>
<h1 class="onlyscreen">
<?php
if($mainsite_name != '') {
  echo $mainsite_name, ' - ';
}
if($parentsite_name != '') {
  echo $parentsite_name, ' - ';
}
echo $site_name;
?></h1>
<p><?php
if($enable_authentication === 1 or $enable_admin_authentication === 1) {
  if(isset($_SESSION['logged_user_infos_ar']['username_user'])) {
    echo '<a href="', $dadabik_login_file, '?function=logout">', $login_messages_ar['logout'], ' - ', htmlspecialchars($_SESSION['logged_user_infos_ar']['username_user']), '</a> | ';
  }
  else {
    echo '<a href="', $dadabik_login_file, '">', $login_messages_ar['login'], '</a> | ';
  }
}
if($parentsite_name != '') {
  echo '<a href="', $parentsite_url, '">', $parentsite_name, '</a> | ';
}
echo '<a href="', $dadabik_main_file, '">', $site_name, ' - data browser</a> | <a href="admin.php">', $site_name, ' - administration home page</a> | ';
if($mainsite_name != '') {
  echo '<a href="', $mainsite_url, '">', $mainsite_name, '</a>';
}
echo '</p>';
Presented with Sourceer
PHP Labware home | visitors since Sept 2017