Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby gurutech » Sat Feb 04, 2012 3:14 am

I just realized modules are loaded from the .ini files located in /etc/php.d folder. CURL is one of the INI files in this folder, as is GD.

Each of the files is owned by "root" and has rw-r--r-- permissions. (I think that's 644...)

----------------------------------

Messed around with some other settings, but still no positive results. Reset all files from the downloadable file to the "originals" from the file, and only changed the domain.com parts.

On IE and Safari, I get a placeholder "question mark" where the captcha image should be. On firefox, I get nothing. Can't try chrome, as I don't have it installed, and don't intend to (the google update service crashes my system as is nearly impossible to remove.)
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby Hellscream » Mon Feb 06, 2012 1:57 pm

If i have time today i will install linux and try to help u somehow it will be interesting experience for me :).
I have some problems to with reg engine, after user create acc i ger error in mail.conf line 16 ($message2 = adddata($open2,$username,$spassword,$email,$hash);),
acc is created and functional.
2nd problem is when user try to recover pass i get this errors
Undefined variables Username in mailconf.php line 11
Undefined variables Username in mailconf.php line 11
Undefined variables Username in mailconf.php line 16
Undefined variables Username in mailconf.php line 16
Undefined variables Username in mailconf.php line 22

this is my mailconf.php


Code: Select all
<?php
include("rwmail.php");

$fromname = "Hellscream Admin";
$sender = "admin@hellscream.dyndns.org";
$nohash = 'None'; //Don't change!

//Auto register mail
$subject = "Registration on hellscream.dyndnsc.org";
$open1 = file_get_contents('lib/mail/regmail.txt', true);
$message = adddata($open1,$username,$spassword,$email,$nohash);

//Pass reet mail
$subject2 = "Passwordreset request on hellscream.dyndns.org";
$open2 = file_get_contents('lib/mail/passresetmail.txt', true);
$message2 = adddata($open2,$username,$spassword,$email,$hash);

//adminmail
//If a user registers, a mail will be send to the follwoing address...
$adminemail = "my mail";
$adminsubject = "Registration on Subsonic";
$adminmessage = $username." is registered on the server.";
?>


I also didnt mentioned that user receive mail with log on credentials and mail with link for resetting pass so everything working with errors huh :(
Can someone help me with this?
Running:
Apache 2.2.21
MySQL 5.5.16
PHP 5.3.8 (VC9 X86 32bit thread safe) + PEAR
OpenSSL 1.0.0e
ADOdb 5.14
Mercury Mail v4.62
Perl 5.10.1
on Windows 7 x64
THX in advance
Last edited by Hellscream on Sun Feb 12, 2012 10:58 am, edited 1 time in total.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby gurutech » Tue Feb 07, 2012 8:32 pm

Do you have MySQL installed with the "subsonicusers" database and "users" table configured?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby Hellscream » Tue Feb 07, 2012 10:18 pm

Yes o have mysql with apache and php with all necessary modules enabled and i also tried (allow_url_fopen = On), (allow_url_include = On) in my php.ini file but this doesn't solve my problem and yet everything works fine.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby text » Wed Feb 08, 2012 10:32 am

Question:

What if someone I don't know tries to register an account? It will just let them in to download all the content which would otherwise be illegal for them to do? Thus, getting me into trouble?

I like the idea of a user being able to create their own name and password, but I would like a feature that would not allow them access until I (the admin) approved it.

Let me know if this is possible and I'll install it.

Thank you,
Text
text
 
Posts: 40
Joined: Tue Feb 07, 2012 7:34 am

Re: Subsonic registration engine

Postby Hellscream » Wed Feb 08, 2012 1:31 pm

That is what i need to but if you are worried about download access you already have that option and few others that you can enable or disable. So try it and give support to developer to add admin approve for newly created account. I already like it.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby text » Wed Feb 08, 2012 9:20 pm

Hellscream wrote:That is what i need to but if you are worried about download access you already have that option and few others that you can enable or disable. So try it and give support to developer to add admin approve for newly created account. I already like it.


Letting them download would be illegal. Then again, letting them stream or listen to the music would also be illegal. So I can't try it until that feature is implemented. I will wait.

Thanks for your reply,
Text
text
 
Posts: 40
Joined: Tue Feb 07, 2012 7:34 am

Re: Subsonic registration engine

Postby gurutech » Thu Feb 09, 2012 12:25 am

Not sure how letting someone stream music would be illegal. It would be the same as having them sit in your car with you while you are playing your own MP3's on your iphone/android through the stereo.

But as Hellscream stated, you can disable "downloading" as a default option. I have mine set up this way, although the registration part doesn't work for me just yet. I only create accounts for those I know in person, who wouldn't download my music anyway...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby text » Thu Feb 09, 2012 12:50 am

gurutech wrote:Not sure how letting someone stream music would be illegal. It would be the same as having them sit in your car with you while you are playing your own MP3's on your iphone/android through the stereo.

But as Hellscream stated, you can disable "downloading" as a default option. I have mine set up this way, although the registration part doesn't work for me just yet. I only create accounts for those I know in person, who wouldn't download my music anyway...



I don't know what country you live in. But in the United States, it is blatantly illegal to post your music to your own website and allow people to listen to it. Downloading is also illegal. Streaming is also illegal. It is unauthorized distribution. This is not just my own interpretation of copyright law, but a well known fact. Letting you hear a CD while you're in my car (where you are not responsible for what is playing), and letting everyone in the world intentionally access my entire library, streaming (or downloading) my music, is not even comparable.

Plus, you can not forbid anyone from downloading, even if you disable the downloading option. When someone streams content to their computer from the web, there are cache files which can be copied and saved. There are plenty of tools out there (even on Firefox Addons) that will help you do this. There is no difference between streaming and downloading, other than the way the user accesses the file. But either way, those files are (in this case, illegally) downloaded to the users computer.
text
 
Posts: 40
Joined: Tue Feb 07, 2012 7:34 am

Re: Subsonic registration engine

Postby SparkyRih » Fri Feb 10, 2012 1:19 pm

Adding an option to aprove a user shouldn't be a hard thing to do, I will see if I have time this weekend to add it.

I guess y' all know that you can give a new user rights by editing the config file?
For example, if you register on my server, you are allowed to listen to msic, but you are not allowed to donwload it by default.

If some-one has any more questions... I will check this topic more often again from now on...
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 text » Sat Feb 11, 2012 2:44 am

SparkyRih wrote:Adding an option to aprove a user shouldn't be a hard thing to do, I will see if I have time this weekend to add it.

I guess y' all know that you can give a new user rights by editing the config file?
For example, if you register on my server, you are allowed to listen to msic, but you are not allowed to donwload it by default.

If some-one has any more questions... I will check this topic more often again from now on...



That would be really cool. Thank you.
text
 
Posts: 40
Joined: Tue Feb 07, 2012 7:34 am

Re: Subsonic registration engine

Postby Hellscream » Sat Feb 11, 2012 11:51 am

I would be very happy if someone can help me with problem i have in earlier post.
TY
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Subsonic registration engine

Postby SparkyRih » Sat Feb 11, 2012 8:21 pm

I've already started working on an approval feature in my registration engine.
After a user registers, his/her account will be stored in a temp MySQL DB (woa-users), the admin will receive an e-mail with an activation link, after clicking on the link, the admin has to login, and will be provided with the user details and can choose to approve, delete or... do nothing.
After approval, the user will be created in Subsonic (using the settings in the config file), and will be moved from the woa-user table to the real active user table.
Also, approval will be an optional feature (so you can turn it on or off whenever you want by editing the config file).

As an extra (i've added this for my own situation some time ago) it will be possible to register users into a multihost database (like http://img.schattorie.nl).

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)?
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 SparkyRih » Sun Feb 12, 2012 1:27 pm

I've added the approval feature as described above (note that it is set to false by default)...
I've changed a lot of files including both config files, so you should overwrite everything, and reset the config files... I will make a DB table for the config somewhere in the future, that would be an easier way to configure this system...

I've tested pretty much everything, but let me know if there are any bugs...
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 1:30 pm

Awesome i will try NOW :D.
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

PreviousNext

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 3 guests