[Software] Web-based voucher management
-
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 ;))
-
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
-
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.
-
https://forum.pfsense.org/index.php?topic=108846.0
-
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 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
-
and also, kindly provide a sample schema where the vouchers will be uploaded.
Thanks in advance