Software registration manager

Share your advanced PureBasic knowledge/code with the community.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Software registration manager

Post by Fangbeast »

I'm working on this project for in-house software registration tracker and it's complete enough for most folks. Full project source is here. You just need to comment out any line in the windows code that starts with PV if you don't own the PV library and also have PBOSL libs installed.

Got a few useful features, nothing special but it might help someone. Obviously, I am adding more functions for myself and this software is patterned after my needs but you never know.

All source project
http://www.penguinbyte.com/apps/pbwebst ... ak0.00.rar
http://www.penguinbyte.com/apps/pbwebst ... Client.rar

Latest version (No source)
http://www.penguinbyte.com/apps/pbwebst ... rak103.rar

Current test client for current softtrak server.
http://www.penguinbyte.com/apps/pbwebst ... Client.rar
Last edited by Fangbeast on Mon Feb 12, 2007 3:06 pm, edited 15 times in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Nice!!

Thanks :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

ricardo wrote:Nice!!

Thanks :)
Don't get too excited, it's simple, like me :D :D :D
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

UPDATED: Code to send data to the SoftTak server

Post by Fangbeast »

This is the code I use below to send data to the SoftTrak registration server. MessageHandler() is my custom message handling routine (Which you will also see in SoftTrak) For testing purposes, make up a little gui, add a status bar, gather your data and test it for yourself.

Redirect all MessageHandler information to the statusbar.


REPLACED by the SoftTrak client. Link in first post
Last edited by Fangbeast on Mon Jan 29, 2007 6:58 am, edited 3 times in total.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Update: SoftTrak v0.00

Post by Fangbeast »

1. Code cleaned up.
2. Encryption added to a few places.
a. When client sends server info, it is received in encrypted form.
b. When registration module is recieved, it has encrypted header and data strings.
3. Program creates directories on start if they are not present.
4. Registration import files renamed to ".ptr" as they clashed with my address book program.

NOTE: If someone helps me understand how to handle the #PB_NetworkEvent_File event properly, I'll add that as a choice to send registration data to the server, rather than clunky third party email solutions.

Link in first post
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

well, i cannot download the file directly,
i'l have to put the link here right now:

Download Fangle'z SoftTracker now with rightclick and 'Save As' !
SPAMINATOR NR.1
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Software registration manager client

Post by Fangbeast »

I've made a little client for SoftTrak. With it, you can simply test if the registration server is accepting data or manually add registration information and send it in case the clients' software isn't available.

There is some stupid dummy data saved to an ini file by default that you can load. You can always clear it and save/load new rego data.

Hope it's useful.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Update

Post by Fangbeast »

I've done enough work on the latest version so that the source code will no longer be available from this version on. You still have access to the previous sourcecode.

The latest updates will be provided as exe files (link in first post)

The changes:

1. Added a menu to duplicate all visible and invisible functions

2. Corrected missing product name update on main form (not done after add/edit)

3. Added sales reporting for products and for individual status types. When you open that form, you get a 3 column listing reporting the product, how many copies of that product were sold and the total price received for that product.

4. Colour coded status transactions to make them stand out. Both in the main form and the sale form.

5. Added keyboard shortcut to open sales reporting form (as well as menu)

6. Corrected escaped quote in product name not updating the combo list. I might forgotten in a few other places yet.

7. Fixed some colour problems (I hope)

8. Code is a little cleaner

9. Added client and server colours in the listen form to distinguish events

10. Fixed some balloon tool tip spelling

Other things done too but I've forgotten.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Update SoftTrak 0.01

Post by Fangbeast »

Just updated the softtrak exe to where I am heading with it, I think. Previous exe's and source are still available in the first post.

1. 3 leds indicate whether the server is on, receiving data and if the monitor is checking the temp dir.

2. A background monitor checks to see if any user registration files have arrived and informs you in the status bar.

3. First 3 columns have icons, I liked the idea.

4. No more separate listen server and monitor window, a waste of resources. All messages are redirected to the status bar.

5. Re-ordered the big buttons at the bottom a little, monitor button was also added.

6. All buttons, leds and forms have tool tips now.

7. All tool tips show the keyboard shortcut for the item (If applicable)

8. Order id string was shortened by 2 characters to fit into the field neatly

9. Nice little blue heading bar for the control panel label.

Hope someone has a use for it, works for me :D :D
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

SoftTrak1

Post by Fangbeast »

Due to tests by Dige and Rings in the irc chat; and suggestions by Dige; I was no longer satisfied by the way the registration tracker worked and I changed some major things around. And I mean changed!!

1. The main screen hasn't been touched except that it is no longer the total focus for all records. It is the 'master ledger' where all incoming records will be transferred when approved by the administrator.

2. The import window has completely changed its' function, but not so much it's design. When a client connects to you now, the record will show up in this window (and the incoming table) and not the main window (the master ledger) to stop crapping up your important customer data by people sending you crappy data and deliberate rubbish.

a. When a client connects through the listen server, its IP is checked against a banned list. If found, the client is summarily disconnected. (Bit more to do on this)

b.You can transfer this record; if you are happy with it; to the master ledger. Doing so removes it from the incoming table and the import window.

c. You can delete the record without doing anything to it. This removes it from the display and the incoming table.

d. You can scan the Addresser\Temp directory for incoming registration files emailed by users and this imports all found files into the incoming table and the import window.

If you have the monitor function on, it will be checking that directory for you.

If you have the monitor function on and the import window is open when a file comes in, you will be notified in both the main window status bar and at the bottom of the import window.

e. You can generate an email to the client if they have been banned to explain why this happened and what they can do about it.

This is the string I use

", Just letting you know that the server has marked you as being banned for sending the same registration data more than once. Therefore, the data will never be processed. If this was in error, please email the system administrator to unlock you and then you can try again."

3. Database changed. There is now a work number prefix and work number field. My address book program registration field has been changed to be compatible with it. I'll update the standalone client later.

::NOTES:: Lots of little modules still to be done such as... Open a new database, reload the default one, setup, about, quick keys list, main help, printing, view incoming rego data (in case of deliberate stupid entries), manual ban from the incoming (import) window and others.

Download this version and play with it please and leave some feedback?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Update 1.01

Post by Fangbeast »

SoftTrak v1.01

Added: About program messagerequester
Added: Quick shortcut keys list
Added: Balloon tool tips to the import form
Added: Event checking for import form
Added: Full viewer window when reg item is clicked on in import window
Added: Transfer verified record to active ledger from import rego viewer
Added: Banned ip/email list is updated from main ledger record when saved
Fixed: Escape shortcut missing from registration window
Fixed: Several misspellings
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Just in case anyone is still following this project, I've added load another database and reload master database. Only printing, setup and help file to do (oh my aching eyeballs)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

It seems an interesting project, but any chance you could make it available in a plain zip file for the rest of us ? :wink:
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Why, what's wrong with Winrar? if you don't use WinRar, most of the free multicompression programs can unrar as can many free file managers.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Minor updates and a doc

Post by Fangbeast »

Ive just made minor changes to the data entry form as it was getting too long and added sales history that's only valid for the edit entry form.

There is also a simple .doc format file to explain the program a bit.

It's the last rar link in the first post.

UPDATE: Just updated the client tester but have a nagging feeling I forgot something.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply