<?php
/*
+-----------------------------------------------------------------------------+
| $Id: verifycode.php 2010-05-24 12:37:44Z Bleakwind $
| Build Verifycode
| Copyright (c) 2003-2010 Bleakwind (www.weaverdream.com)
| http://www.weaverdream.com/
| Release under the GNU Lesser General Public License Version 3 (LGPLv3):
|   http://www.gnu.org/licenses/lgpl.html
+-----------------------------------------------------------------------------+
*/

if( in_array($sys->get['vc'], $VERIFYCODE) ){
    $bwvc = new bwverify();

    $bwvc->width        = 60;
    $bwvc->height       = 20;
    $bwvc->color        = "047CA1";
    $bwvc->mixcolor     = "047CA1";
    $bwvc->bgcolor      = "FDF6C7";
    $bwvc->bordercolor  = "E6B000";
    $bwvc->codelist    = array("3","4","6","7","8","9",
                               "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "M", "N",
                               "P", "R", "T", "U", "V", "W", "X", "Y");

    $bwvc->x_padding    = 3;
    $bwvc->y_padding    = 2;
    $bwvc->x_offset     = 3;
    $bwvc->y_offset     = 2;

    $bwvc->font_family  = "2,3,4,5";
    $bwvc->len          = 4;
    $bwvc->mix_amount   = 0;

    $bwvc->create_image();
    $SESSION->set($sys->get['vc'], $bwvc->transfer_code());
    $bwvc->output();
}
$CONFIGURE['common']['if_output_template'] = "0";
?>
