Hi everyone, I want to share one of my script from my personnal uberCMS edit, the script itself is designed for a shop but you can easily adapt it for a free feature.
The script cost 3 Shells for a user and generate a 8 character string linked to a voucher code that will be insert into the database (table: vouchers), the content of the voucher code is completly random from the character string to the amount and the currency linked. The max/min amount for the gift codes are configurable under the rand function value on line 77 to 79 of the page. Don't worry, if a user know well the URL and try to type it directly, the script will detect if a user have enough Shells to continue the execution of the PHP Script, if not he's redirected to another page.
A dedicated page is delivered with the script to showcasing packages, the packages are listed from a database table (voucher_packages) that is delivered with the script too.
Here's the source of the voucher-gen.php if you don't want to directly download the rar package:
http://pastebin.com/TD5DVbDs
Screenshot:
Additional files: (Contains necessary .tpl files and .sql files and some images too)
http://images.habbostrap.com/strapcm...%20uberCMS.rar
Add these lineto your .htaccess file in order to get working the rewrited URL's:
Credits:Code:RewriteRule ^purchase/confirmVoucherGen/online(|/)$ /voucher-gen.php RewriteRule ^vouchers(|/)$ /vouchers.php
- Meth0d - Original uberCMS
- Jonteh - uberCMS 2.0.1 edit
- Anthony93260 - Fixed some part of the code
- Me - Idea and for coding that shit








