Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby SparkyRih » Sun Feb 12, 2012 1:52 pm

Let me know what you think, or if you have any issues...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby Hellscream » Sun Feb 12, 2012 2:11 pm

OK 1st test after i submit registration data acc created with error on line 24 mailconf.php
User receive mail with credentials, admin receive mail with new user registration but i dont see any approval for new user and ofc acc is active and working.
Btw i add new table in SQL (woausers) and change globalusers table name in subsonicusers.
where do i wrong?
I think i found where i made mistake will post u soon.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby SparkyRih » Sun Feb 12, 2012 2:17 pm

Hellscream wrote:OK 1st test after i submit registration data acc created with error on line 24 mailconf.php
User receive mail with credentials, admin receive mail with new user registration but i dont see any approval for new user and ofc acc is active and working.
Btw i add new table in SQL (woausers) and change globalusers table name in subsonicusers.
where do i wrong?
I think i found where i made mistake will post u soon.


1. Could you give me the exact error you get on line 24?
2. Change the DB name shouldn't be a problem (as long as the DB exists ofcourse)...
3. Are you sure that you've set $woa = true; and $woaadmin = "Youruser"; ?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby Hellscream » Sun Feb 12, 2012 2:44 pm

Notice: Undefined variable: hash in C:\xampp\htdocs\SubRegEngine\lib\mailconf.php on line 24

yes i double checked config.php
woa true
woaadmin here goes user from SS or optional?
THX for your time
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby SparkyRih » Sun Feb 12, 2012 2:54 pm

woaadmin should be a user that is present in the active users DB...

But it's impossible that it doesn't work of $woa is set to true...... are you sure you've replaced avery file?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby Hellscream » Sun Feb 12, 2012 2:57 pm

Yes i replace all files. I think i will create user in active DB and try again will post you in a min.
U where right m8 ty very very much everything work fine accept that error in config.php file line 24 i post earlyer.
Can u register and test from your side.
http://hellscream.subsonic.org
TY for this awesome project +++ keep with good work.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby SparkyRih » Sun Feb 12, 2012 3:11 pm

I laready had an account on your server, but I've registered a second one...
And now I saw the error... it's a Notice error, you can turn those off, they don't really matter... but I will have a look if I can break it out...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby Hellscream » Sun Feb 12, 2012 6:47 pm

TY m8 i just came home and approve acc working fine.
Happy :D
Since u are a genius can u take a look at this post i know its off topic but need help and i think i cant send u pm :(
viewtopic.php?f=8&t=8504
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby gurutech » Tue Feb 14, 2012 2:13 am

SparkyRih wrote:I've already started working on an approval feature in my registration engine.

For all the questions, I don't follow :P
Could you describe your issue, and tell me which platform you're on (Windows > Apache/IIS, Ubuntu > Apache)?


Couple of questions for you - where can I get the "approval" add-in for the registration, and how can I get my registration to work?

I have the standard setup, running Fedora 15, MySQL, PHP, Apache. I have the database and php/jsp files configured as indicated in Mark's text file, but I cannot get the registration or "forgot pass" pages to work. They both seem to load fine, but I cannot get the "captcha" part to work. It just simply does not show an image, therefore no one can register or recover a lost password.

Any ideas?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby Hellscream » Tue Feb 14, 2012 2:45 am

gurutech wrote:
SparkyRih wrote:I've already started working on an approval feature in my registration engine.

For all the questions, I don't follow :P
Could you describe your issue, and tell me which platform you're on (Windows > Apache/IIS, Ubuntu > Apache)?


Couple of questions for you - where can I get the "approval" add-in for the registration, and how can I get my registration to work?

I have the standard setup, running Fedora 15, MySQL, PHP, Apache. I have the database and php/jsp files configured as indicated in Mark's text file, but I cannot get the registration or "forgot pass" pages to work. They both seem to load fine, but I cannot get the "captcha" part to work. It just simply does not show an image, therefore no one can register or recover a lost password.

Any ideas?

Try to enable CURL and GD modules in PHP
Code: Select all
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby gurutech » Tue Feb 14, 2012 4:40 am

Hellscream wrote:
gurutech wrote:
SparkyRih wrote:I've already started working on an approval feature in my registration engine.

For all the questions, I don't follow :P
Could you describe your issue, and tell me which platform you're on (Windows > Apache/IIS, Ubuntu > Apache)?


Couple of questions for you - where can I get the "approval" add-in for the registration, and how can I get my registration to work?

I have the standard setup, running Fedora 15, MySQL, PHP, Apache. I have the database and php/jsp files configured as indicated in Mark's text file, but I cannot get the registration or "forgot pass" pages to work. They both seem to load fine, but I cannot get the "captcha" part to work. It just simply does not show an image, therefore no one can register or recover a lost password.

Any ideas?

Try to enable CURL and GD modules in PHP
Code: Select all
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll


Will this work on a non-Windows setup? I know you mentioned the "curl" extension before, but as far as I can tell, that's already installed.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby SparkyRih » Tue Feb 14, 2012 9:01 am

The platform doesn't matter, as long as your php versions are up to date...

For the captcha, the GD module is used to generate the image, so make sure it's installed correctly, usually this module has to be installed menually...

But according to the php.ini part that you've posted, you are using Windows? than you should be fine...

Edit: Could you try browsing to lib/captcha.php and see if it gives you anny error message?

Edit 2: before you do that, put // in front of the four header lines in the script... if you've done tht, it won't read those four lines to create a real fake image, than it will give you an error message...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby gurutech » Tue Feb 14, 2012 11:52 pm

I'm using Fedora 15. I quoted Hellscream (who I believe is using Windows), and the code section was his suggestion. I will try that now, as your two suggestions didn't generate any errors, so I am thinking it's not even finding the captcha.php file for some reason...

--------------
Edit: Tried adding the coding suggested by Hellscream, but that generated errors upon restarting the service... Linux doesn't use DLL files like Windows does. It uses .so files. I have separate ini files in the /etc/php.d folder, one for each of the dll files listed, but that's it.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby SparkyRih » Wed Feb 15, 2012 9:53 am

I don't know in how far Fedora is different from Ubuntu... but in Ubuntu it is enough to just install Apach, and on top of PHP: cURL and GD, and your ready to go with my system...

Could you create a php page with the following code on it, and mail or PM the URL to it to me? (I don't recommend to post it in public):

Code: Select all
<?php
echo phpinfo();
?>


But you say you think that it doesn't find the captcha.php, to check this: could you browse to the register.php file? if the capatcha doesn't show up there, something is wrong in your system-config (or my code)...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Subsonic registration engine

Postby gurutech » Wed Feb 15, 2012 3:08 pm

PM sent...

When you say to browse to the register.php file, do you mean from explorer, or in the browser itself, like http://mysite.subsonic.org/register.php ?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

PreviousNext

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 0 guests