Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 7:48 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: New account sign up pages...
PostPosted: Thu Jan 25, 2007 2:55 am 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Is there a way to have the sign up pages linked with the a2customer interface rather than the a2billing interface. My reason for this is that i believe that it is more secure if the path to our a2billing directory is not published.

I did try to just copy the entire signup folder from a2customer to a2billing but i get lot of 'call to undefined function messages' as expected.

I would appreciate if there is anyone out there that can help me achieve this.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 25, 2007 4:31 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
copy a2billing/lib/Misc.php file from a2billing to whatever folder you are moving to -> a2customer/lib/... and it should take care of your problems.
if you still having problems post your errors.


Top
 Profile  
 
 Post subject: New account sign up pages...
PostPosted: Thu Jan 25, 2007 2:12 pm 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Svetur,

Before i do anything may i just say that there is already a Misc.php file in a2customer/lib. What do you suggest i do?

Should i replace the Misc.php file under a2customer with the one from a2billing. If i do this wouldn't it have any effect in other areas of a2customer?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 12:02 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
I didn't have misc.php in mine version 1.2.3
What kinds of heading messages do you get??
You can look into the sizes of each misc.php to see if they are the same.


Top
 Profile  
 
 Post subject: New account sign up pages...
PostPosted: Fri Jan 26, 2007 3:30 am 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Svetur,

I am using the same version as you (1.2.3) and i ran a diff command on the two Misc.php (1 from a2customer and the other from a2billing) and there were alot of differences between the two. There must be another way - i don't want to mv the files as i don't know the impact.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 5:37 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
What errors do you get???


Top
 Profile  
 
 Post subject: New account sign up pages...
PostPosted: Fri Jan 26, 2007 2:08 pm 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Error message below::

Fatal error: Call to undefined function: gen_card_with_alias() in /var/www/html/a2customer/signup/form_data/FG_var_index.inc on line 91


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 6:59 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
I had the same thing. gen_card_with_alias() is defined in misc.php
Open misc.php in a2customer/lib/misc.php and look for function gen_card_with_alias(). If you don't see it - just copy this function from a2billing. I just overwrote mine from a2billing folder. Save the old one if you do that just in case.


Top
 Profile  
 
 Post subject: New account sign up pages...
PostPosted: Fri Jan 26, 2007 7:24 pm 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Svetur,

Thank you for your help so far, really appreciated.

I have done as you suggested, the card was created but the following is displyed on the 'Thank you for registering' page.

*********************************

Warning: fopen(BUDDY_SIP_FILE): failed to open stream: Permission denied in /var/www/html/A2customer/lib/Form/Class.FormHandler.inc.php on line 1382

Warning: fopen(BUDDY_IAX_FILE): failed to open stream: Permission denied in /var/www/html/A2customer/lib/Form/Class.FormHandler.inc.php on line 1424

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/A2customer/lib/Form/Class.FormHandler.inc.php:1382) in /var/www/html/A2customer/lib/Form/Class.FormHandler.inc.php on line 1315

New User Inserted

Thanks for registering with us.
A email with your information has been sent to your account [email protected]

Your card number is XXXXXXXXX
Your password is XXXXXXXXXX

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/A2customer/lib/Form/Class.FormHandler.inc.php:1382) in /var/www/html/A2customer/signup/index.php on line 66

*************************

Anymore suggestions?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 11:17 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
Looks like you have enabled sip and iax friend signup in a2billing.conf file. You can try disable it and it should work fine.

I opened formhandler file - looks like we are trying to open BUDDY_SIP and BUDDY_IAX file which i'm assuming is additional_a2billing_sip.conf and additional_a2billing_sip.conf under etc/asterisk.
Check if those files exist and check permissions, because the problem is a2billing is failing to open them to write configs.


Top
 Profile  
 
 Post subject: New account sign up pages...
PostPosted: Sat Jan 27, 2007 2:37 am 
Offline

Joined: Fri Dec 22, 2006 2:43 pm
Posts: 76
Location: London, UK
Svetur,

That was definitely the problem.

Problem solved, thank you for sticking with me through this.

Appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 06, 2007 10:31 pm 
Offline

Joined: Tue Nov 21, 2006 7:01 pm
Posts: 19
I too could not live with the new user signup pages living in a sub-dir of the admin interface. I could not find a way to adequately secure the admin interface and yet keep the signup page accessible by anyone. I needed SSL plus authentication for the admin pages but neither for the signup pages.

I took a slightly different approach, with basically the same results, by copying the signup directory plus other required directories to a new path. This has the advantage of not having to edit any .php files. In this process you get 3 distinct directories: admin, user, newuser

cd /var/www/html
cp /your-source-path/A2Billing_UI admin -R
cp /your-source-path/A2BCustomer_UI user -R
mkdir newuser
cd newuser
cp ../admin/signup . -R
cp ../admin/lib . -R
cp ../admin/Css . -R
cp ../admin/Images . -R

This will give you three webs (admin, user, signup) which you can deploy and secure however you like. Because the directory structures are separate from each other, you can shoose to apply IP access controls, SSL, and authentication individually as needed.

It works for me, hope it helps someone else.

Tim


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group