Page 5 of 18

Re: Subsonic registration engine

PostPosted: Sat Feb 04, 2012 3:14 am
by gurutech
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.)

Re: Subsonic registration engine

PostPosted: Mon Feb 06, 2012 1:57 pm
by Hellscream
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

Re: Subsonic registration engine

PostPosted: Tue Feb 07, 2012 8:32 pm
by gurutech
Do you have MySQL installed with the "subsonicusers" database and "users" table configured?

Re: Subsonic registration engine

PostPosted: Tue Feb 07, 2012 10:18 pm
by Hellscream
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.

Re: Subsonic registration engine

PostPosted: Wed Feb 08, 2012 10:32 am
by text
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

Re: Subsonic registration engine

PostPosted: Wed Feb 08, 2012 1:31 pm
by Hellscream
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.

Re: Subsonic registration engine

PostPosted: Wed Feb 08, 2012 9:20 pm
by text
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

Re: Subsonic registration engine

PostPosted: Thu Feb 09, 2012 12:25 am
by gurutech
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...

Re: Subsonic registration engine

PostPosted: Thu Feb 09, 2012 12:50 am
by text
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.

Re: Subsonic registration engine

PostPosted: Fri Feb 10, 2012 1:19 pm
by SparkyRih
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...

Re: Subsonic registration engine

PostPosted: Sat Feb 11, 2012 2:44 am
by text
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.

Re: Subsonic registration engine

PostPosted: Sat Feb 11, 2012 11:51 am
by Hellscream
I would be very happy if someone can help me with problem i have in earlier post.
TY

Re: Subsonic registration engine

PostPosted: Sat Feb 11, 2012 8:21 pm
by SparkyRih
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)?

Re: Subsonic registration engine

PostPosted: Sun Feb 12, 2012 1:27 pm
by SparkyRih
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...

Re: Subsonic registration engine

PostPosted: Sun Feb 12, 2012 1:30 pm
by Hellscream
Awesome i will try NOW :D.