pfSense Gold Subscription

Author Topic: [Software] Web-based voucher management  (Read 3735 times)

0 Members and 1 Guest are viewing this topic.

Offline eagle2

  • Newbie
  • *
  • Posts: 21
  • Karma: +4/-0
    • View Profile
[Software] Web-based voucher management
« on: November 23, 2013, 01:56:16 pm »
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:


Offline AYSMAN

  • Jr. Member
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: [Software] Web-based voucher management
« Reply #1 on: October 02, 2017, 02:50:52 am »
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

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 2166
  • Karma: +166/-9
    • View Profile
Re: [Software] Web-based voucher management
« Reply #2 on: October 02, 2017, 05:26:21 am »
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.


Offline heper

  • Hero Member
  • *****
  • Posts: 2690
  • Karma: +253/-11
    • View Profile

Offline eagle2

  • Newbie
  • *
  • Posts: 21
  • Karma: +4/-0
    • View Profile
Re: [Software] Web-based voucher management
« Reply #4 on: October 03, 2017, 03:23:33 pm »
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:

Code: [Select]
<?php
@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");
}
?>


Offline AYSMAN

  • Jr. Member
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: [Software] Web-based voucher management
« Reply #5 on: November 17, 2017, 12:47:12 am »
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:

Code: [Select]
<?php
@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

Offline AYSMAN

  • Jr. Member
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: [Software] Web-based voucher management
« Reply #6 on: November 17, 2017, 12:57:46 am »
and also, kindly provide a sample schema where the vouchers will be uploaded.

Thanks in advance