require_once INCLUDES . 'classes/classMailer.php'; require_once INCLUDES . 'functions.php'; // DB Connection $helpdeskz = new Registry(); if ($helpdeskz->config['Database']['type'] == 'mysqli') { require_once INCLUDES . 'classes/classMysqli.php'; $db = new MySQLIDB(); } else { require_once INCLUDES . 'classes/classMysql.php'; $db = new MySQLDB(); } $db->connect($helpdeskz->config['Database']['dbname'], $helpdeskz->config['Database']['servername'], $helpdeskz->config['Database']['username'], $helpdeskz->config['Database']['password'], $helpdeskz->config['Database']['tableprefix']); //Settings $settings = array(); $q = $db->query("SELECT * FROM " . TABLE_PREFIX . "settings"); while ($r = $db->fetch_array($q)) { $settings[$r['field']] = $r['value']; } if ($settings['email_piping'] == 'no') { exit; } if (version_compare(PHP_VERSION, '5.3.0', '<')) { echo "This script requires PHP version 5.3.0 or higher to work, sorry."; exit(1); } // because version 5.3.0 is required, we could in theory use the autoloader :) //require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'autoload.php'; // ... but this project is not so much inteded to be installed through composer etc which is a bit of a pain, but that's okay. require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tomaj' . DIRECTORY_SEPARATOR . 'imap-mail-downloader' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'ProcessAction.php'; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tomaj' . DIRECTORY_SEPARATOR . 'imap-mail-downloader' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Downloader.php'; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tomaj' . DIRECTORY_SEPARATOR . 'imap-mail-downloader' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'MailCriteria.php';
<thead> <tr> <th>Nome</th> <th>Quantidade</th> <th>Medida</th> <th>Descartável</th> <th>Categoria</th> <th>Fabricante</th> <th>Sala</th> <th>Lote</th> </tr> </thead> <tbody> <?php while ($row = $mysqlObj->fetch_array($items)) { ?> <tr> <td><?php echo $row['nome']; ?> </td> <td><?php echo $row['quantidade']; ?> </td> <td><?php echo $row['medida']; ?> </td> <?php