Beispiel #1
0
 function processInventory()
 {
     global $configArray;
     global $interface;
     $login = $_REQUEST['login'];
     $interface->assign('lastLogin', $login);
     $password1 = $_REQUEST['password1'];
     $interface->assign('lastPassword1', $password1);
     $initials = $_REQUEST['initials'];
     $interface->assign('lastInitials', $initials);
     $password2 = $_REQUEST['password2'];
     $interface->assign('lastPassword2', $password2);
     $barcodes = $_REQUEST['barcodes'];
     $updateIncorrectStatuses = isset($_REQUEST['updateIncorrectStatuses']);
     $interface->assign('lastUpdateIncorrectStatuses', $updateIncorrectStatuses);
     try {
         $catalog = new CatalogConnection($configArray['Catalog']['driver']);
     } catch (PDOException $e) {
         // What should we do with this error?
         if ($configArray['System']['debug']) {
             echo '<pre>';
             echo 'DEBUG: ' . $e->getMessage();
             echo '</pre>';
         }
     }
     $results = $catalog->doInventory($login, $password1, $initials, $password2, $barcodes, $updateIncorrectStatuses);
     return $results;
 }