Exemple #1
0
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*********************************************************************************/
ini_set('display_errors', 'Off');
include_once dirname(__FILE__) . '/../lib/AutoLoader.php';
$endorseType = isset($_REQUEST['type']) ? $_REQUEST['type'] : '';
$amount = isset($_REQUEST['amount']) ? $_REQUEST['amount'] : '';
if (strlen($endorseType) > 0) {
    // close session so if printer hangs
    // this script won't lock the session file
    if (session_id() != '') {
        session_write_close();
    }
    switch ($endorseType) {
        case "check":
            ReceiptLib::frank($amount);
            break;
        case "giftcert":
            ReceiptLib::frankgiftcert($amount);
            break;
        case "stock":
            ReceiptLib::frankstock($amount);
            break;
        case "classreg":
            ReceiptLib::frankclassreg();
            break;
        default:
            break;
    }
}
echo "Done";