Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Software] Web-based voucher management

    Captive Portal
    4
    7
    5.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eagle2
      last edited by

      Hello everyone,

      about a year ago I developed a PHP-software to manage vouchers for the pfSense-captive-portal in German. With a recent update, I included an English version, maybe someone can use it:

      https://sourceforge.net/projects/vouchergen/files/latest/download

      It requires webspace with PHP and MySQL. You can upload your csv voucher lists, generate nice-looking PDF files with vouchers for printing and cutting and even allow people to request a voucher via text message (although the integrated text message gateway is a german company…). Included is a PDF-Readme (please do read it ;))

      Some screenshots:

      1 Reply Last reply Reply Quote 0
      • A
        AYSMAN
        last edited by

        Hi Eagle2,

        Ive tried your vouchergen but when i try  the setup I get this error message. please help

        Parse error: syntax error, unexpected 'to' (T_STRING) in C:\xampp\htdocs\vouchgen\include\zugriff.inc.php on line 3

        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by

          @AYSMAN:

          Ive tried your vouchergen but  ….

          The "but" is : on: 23-11-2013, 19:56:16 » which means this code was written way back in time.

          It has to been rewritten probably.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • H
            heper
            last edited by

            https://forum.pfsense.org/index.php?topic=108846.0

            1 Reply Last reply Reply Quote 0
            • E
              eagle2
              last edited by

              Hi Aysman,

              I'm actually still somewhat maintaining this since it seems to be quite popular in the German community, so it should generally work. Having said that, the code is really messy, not properly documented and some bits are only in German… Anyway, the "zugriff.inc.php" contains the MySQL database credentials and the name of the database to be used. The error means that there's something wrong in there, probably with the name of the database. Please check the contents of the file, it should generally look like this:

              
              @mysql_connect('localhost', 'username', 'password') or die("Verbindung zu MySQL gescheitert! Connection to MySQL failed!");
              @mysql_select_db('databasename') or die("Datenbankzugriff gescheitert! Access to database failed!");
              if (!isset($nolang)){require_once("include/lang.php");
              $lang = new aLang("main", "en");
              }?>
              
              
              1 Reply Last reply Reply Quote 0
              • A
                AYSMAN
                last edited by

                @eagle2:

                Hi Aysman,

                I'm actually still somewhat maintaining this since it seems to be quite popular in the German community, so it should generally work. Having said that, the code is really messy, not properly documented and some bits are only in German… Anyway, the "zugriff.inc.php" contains the MySQL database credentials and the name of the database to be used. The error means that there's something wrong in there, probably with the name of the database. Please check the contents of the file, it should generally look like this:

                
                @mysql_connect('localhost', 'username', 'password') or die("Verbindung zu MySQL gescheitert! Connection to MySQL failed!");
                @mysql_select_db('databasename') or die("Datenbankzugriff gescheitert! Access to database failed!");
                if (!isset($nolang)){require_once("include/lang.php");
                $lang = new aLang("main", "en");
                }?>
                
                

                Hi Eagle2

                cannot find the file zugriff.inc.php anywhere in the folder I downloaded from the link you provided

                1 Reply Last reply Reply Quote 0
                • A
                  AYSMAN
                  last edited by

                  and also, kindly provide a sample schema where the vouchers will be uploaded.

                  Thanks in advance

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.