Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby SparkyRih » Sat Oct 27, 2012 5:14 pm

Maybe it's better to create new topics the next time since we have our own section now...

If I create some kind if installation script it would make everything a whole lot easier, but I'm so short of time lately :S I'm going to try to make somethign like that as soon as possible...
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 pir8radio » Sat Oct 27, 2012 6:01 pm

is there any easy install for IIS yet? i have php installed...

thanks.
pir8radio
 
Posts: 79
Joined: Mon Apr 23, 2012 10:44 pm

Re: Subsonic registration engine

Postby SparkyRih » Sat Oct 27, 2012 10:57 pm

pir8radio wrote:is there any easy install for IIS yet? i have php installed...

thanks.


IIS shouldn't be much different from Apache... Only difference is that you have to set it up in a different way... my script should work fine on IIS if it's setup correctly...
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 asian flavor » Mon Oct 29, 2012 3:09 pm

I'm not sure if this post was pointing towards my asking for help for this mod... if it is, thanks. I'm done with this mod. Maybe locked this topic down and post another topic saying to create new topics for help. I hate board ppl and rarely post. I see now why. Thanks for the great response....


SparkyRih wrote:Maybe it's better to create new topics the next time since we have our own section now...

If I create some kind if installation script it would make everything a whole lot easier, but I'm so short of time lately :S I'm going to try to make somethign like that as soon as possible...
asian flavor
 
Posts: 6
Joined: Tue Oct 23, 2012 11:53 pm

Re: Subsonic registration engine

Postby Digitaldreamer7 » Wed Nov 21, 2012 3:44 am

Any word on the install script? I'm stuck on set up. Thanks!
Digitaldreamer7
 
Posts: 8
Joined: Wed Sep 14, 2011 1:30 am

Re: Subsonic registration engine

Postby SparkyRih » Sun Dec 02, 2012 12:45 pm

Digitaldreamer7 wrote:Any word on the install script? I'm stuck on set up. Thanks!


No I'm sorry, I cna't say when I have time for it...

Tell me where you're stock...
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 dsync89 » Sun Dec 16, 2012 5:31 am

Something weird is going on. Whenever I tried to register user, the data is inserted into the database correctly. But it is NOT in the user list when I view it via the web interface. Likewise, any user that I created using the web interface doesn't show up in the database.

This happens after I update the MusicCabinet mod to the latest version 0.7.16b.

Further inspection shows that the following code was never executed, this is very weird.
Code: Select all
if($subsonicreg==true) {
$url = $protocol."://".$subsonicdomain."/rest/createUser.view?u=".$admin."&p=".$pass."&v=1.1.0&c=remoteregister&username=".$username."&password=".$spassword."&email=".$email."&settingsRole=".$settingsRole."&streamRole=".$streamRole."&jukeboxRole=".$jukeboxRole."&downloadRole=".$downloadRole."&uploadRole=".$uploadRole."&playlistRole=".$playlistRole."&coverartRole=".$coverartRole."&commentRole=".$commentRole."&podcastRole=".$podcastRole."&shareRole=".$shareRole;
open_https_url($url,"",true,"");

}
musicScrape @ Music Cabinet Mod
http://musicscrape.zapto.org:8080
dsync89
 
Posts: 72
Joined: Fri Oct 19, 2012 8:51 am

Re: Subsonic registration engine

Postby gurutech » Sun Dec 16, 2012 5:27 pm

The code I have after "&v=" for mine is 1.5.0, not 1.1.0. Try changing that to the 1.5.0 and see if it works.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby dsync89 » Mon Dec 17, 2012 4:32 am

Actually the code that I posted earlier works when I enter the full link manually at the browser URL.

I'm thinking that the following function: open_https_url($url,"",true,""); doesn't work because there is no HTTP POST that is sent after that.

After changing it to using cURL instead of the function everything works just as it should.
musicScrape @ Music Cabinet Mod
http://musicscrape.zapto.org:8080
dsync89
 
Posts: 72
Joined: Fri Oct 19, 2012 8:51 am

Re: Subsonic registration engine

Postby gurutech » Mon Jan 28, 2013 1:10 am

Trying to get this working again, this time with Madsonic build 4.8 beta 3 (build 3320). Replaced the original "login.jsp" with the one I had backed up prior to upgrading, and the login page works - it allows me to click "register" and fill in the appropriate information (username, email, password, confirm pw, and captcha), then redirects to the appropriate place after clicking OK.

However, I do NOT see a new entry in my SQL database, and do NOT see a new user created in Madsonic.

I have tried downloading the latest version of the Subsonic Registration Engine, basically "starting from scratch", but that did not work either.

Looking for ideas on what to look for while troubleshooting!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby gurutech » Mon Mar 11, 2013 11:11 pm

I can get the registration to go through now, but only if I copy the URL from the code and manually "enter" the appropriate information.

Using the line from the code:
Code: Select all
$url = "http://".$subsonicdomain."/rest/createUser.view?u=".$admin."&p=".$pass."&v=1.9.0&c=remoteregister&username=".$username."&password=".$spassword."&email=".$email."&settingsRole=".$settingsRole."&streamRole=".$streamRole."&jukeboxRole=".$jukeboxRole."&downloadRole=".$downloadRole."&uploadRole=".$uploadRole."&playlistRole=".$playlistRole."&coverartRole=".$coverartRole."&commentRole=".$commentRole."&podcastRole=".$podcastRole."&shareRole=".$shareRole;

will NOT work, but manually entering the line:
Code: Select all
http://domain.com:4040/rest/createUser.view?u=admin&p=adminpassword&v=1.9.0&c=remoteregister&username=usertocreate&password=password&email=email@address.com&settingsRole=true&streamRole=true&jukeboxRole=true&downloadRole=true&uploadRole=true&playlistRole=true&coverartRole=true&commentRole=true&podcastRole=true&shareRole=true

will actually work.

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

Re: Subsonic registration engine

Postby pixxlad » Wed Mar 13, 2013 7:14 pm

i have some questions about moving the database to a sql server host (xampp as an example) and then use that server host / sql host to host the db files? possable? please assist me in this matter!

skype: mrpucko91
mail: admin@snappsiz.com
pixxlad
 
Posts: 5
Joined: Tue Feb 26, 2013 6:02 pm

Re: Subsonic registration engine

Postby gurutech » Sun Mar 24, 2013 1:59 am

I have narrowed the issue down to the "register.php" file - apparently IE thinks there's a "programming" error in the file. I have re-downloaded the package from the SubReg website, and copied the files over my existing ones (made a backup first), and reconfigured them, but still having an issue where the register.php will only load a blank page in Firefox, or give me the "programming" error in IE.

I've reinstalled PHP-MySQL on my server, and have the same issues.

Anyone know what else I can check for?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby Excessive » Wed Nov 27, 2013 4:15 am

I have the very same code errors with everything working fine, though I'm using WAMP 2.0i as before I was using WAMP 2.0c and did not have this issue with windows machines/browsers though it apparently still showed on a linux machine. How do we fix this?

PS: read my post elsewhere abt redoing ur registration engine setup and login.jsp

Cheers :)
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Subsonic registration engine

Postby gurutech » Wed Nov 27, 2013 10:57 pm

This is an old thread. I've since created my own registration engine. I just haven't had any luck integrating it with Facebook (yet)
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