Location: PHPKode > projects > PhpMyInventory > pmi281/Includes/global.inc.php
<?
  // where rare administrative emails will go
  $adminEmail  = "hide@address.com";

  $secureAdmin = 0; # set to 1 if SSL is available
  $sslPort = 443; # what port, if using SSL?

  $rowLimit = 12; # how many records any given page should show at one time

  # -------------------------------------------------------------------- #

  session_register("userID");
  session_register("sessionTime");
  session_register("sessionSecurity");

  $strIncludePrefix = "Includes";
  Include($strIncludePrefix."/db.inc.php");
  Include($strIncludePrefix."/securityFunctions.inc.php");
  Include($strIncludePrefix."/generalFunctions.inc.php");
  Include($strIncludePrefix."/headerFunctions.inc.php");
  Include($strIncludePrefix."/userFunctions.inc.php");
  Include($strIncludePrefix."/showfull.inc.php");

  If ($sessionSecurity < 2) {
      If (($hardwareID OR $peripheralID) AND ($addComment OR $setStatus)) {
          If ($addComment) {
             # If ($peripheralID) {
             #     $strSQL_pc = "INSERT INTO asdf (subjectID, subjectType, commentText,commentOrder,accountID) VALUES ($peripheralID,'p','$commentText',$commentOrder,$accountID)";
             #     $result_pc = dbquery($strSQL_pc);
             # } Else {  # hardware
             #     $strSQL_hc = "INSERT INTO asdf (subjectID, subjectType, commentText,commentOrder,accountID) VALUES ($hardwareID,'h','$commentText',$commentOrder,$accountID)";
             #     $result_hc = dbquery($strSQL_hc);
             # }
          } Else {  # setStatus
              If ($peripheralID) {
                  $strSQL_ps = "UPDATE peripherals SET peripheralStatus='$setStatus' WHERE pk_peripheral=$peripheralID";
                  $result_ps = dbquery($strSQL_ps);
              } Else {  # hardware
                  $strSQL_hs = "UPDATE hardware SET hardwareStatus='$setStatus' WHERE pk_asset=$hardwareID";
                  $result_hs = dbquery($strSQL_hs);
              }
          }
      }
  }
?>
Return current item: PhpMyInventory