Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 5th October 2012, 07:59
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Till, again today I hit a bump ..
Now my AWBS module is ready and can create clients, domains and email domains all as 1 client known by the billing module.

What I now need is a user to click a singe button on the billing interface like "Control Panel" then there he would be automatically logged into ISPConfig.

I have the logins stored with my billing APP so I can easily add them as hidden fields. I have also searched the forums with no success ..

If its not possible, then do you mind giving me the name of the logged in user SESSION and or what other sessions must be created on successfull user login I could create a script that validates directly with the db if the form redirect fails ..
Reply With Quote
Sponsored Links
  #12  
Old 5th October 2012, 08:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Take a look at the file /usr/local/ispconfig/interface/login/index.php if you like to know how a valid ispconfig session is setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 22nd October 2012, 20:47
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Till, I also did notice that when you rename the database through API, much as it gets renamed in the "web_database" the physical database it self is NOT renamed.

Is it a bug or is working as expected?
Reply With Quote
  #14  
Old 23rd October 2012, 08:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Take a look at the interface, as you see there, the database name is locked and can not be changed after you created it. So the same applies to the api.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 24th October 2012, 12:00
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default Client Delete Issues

Hello Till,

What is the difference between client_delete and client_delete_everything commands?

My understanding would be:

client_delete_everything deletes everything that belongs to that client, and that is sites, domains, email domains, email accounts, databases and ie EVERYTHING

While client_delete should only delete the client leaving the rest of the information in system ..

Unfortunatly client_delete_everything does not return anything and ONLY deletes the client leaving the rest of the information like sites in place ..

Am I missing something?

Thanks, Joseph
Reply With Quote
  #16  
Old 24th October 2012, 19:26
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Any help over there Till ?

Also noticed that sites_web_domain_delete command does not return affected rows as indicated in the documentation, just returns nothing ..so you really can't tell if all went well by comparing the return variables.

Last edited by abdi; 25th October 2012 at 07:31.
Reply With Quote
  #17  
Old 25th October 2012, 11:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

I will check that until the relaese of the final version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #18  
Old 19th November 2012, 16:08
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Am sorry for the double posting, but since this thread is about API inconsistencies, may I kindly request you to check this too:

While in the creation of a domain name via API, I do set the following:

[.....]
'stats_password' => 'my_password',
'stats_type' => 'awstats',
[.....]

Expecting that Stats will be enabled automatically. Unfortunately, they are NOT. I have again to login to control panel to enable them. Is this how it functions or something missing?

NB: The /var/www/clients/client30/web49/web/stats/.htpasswd_stats wouldn't be created through API not until enabled through ISPConfig Panel.
Reply With Quote
  #19  
Old 19th November 2012, 16:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

Please do not double post:

http://www.howtoforge.com/forums/sho...3&postcount=19
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Debian Lenny: waiting for interface eth0:1 before doing NFS mounts (warning) edge Installation/Configuration 2 9th June 2009 07:55
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 21:23
How to create a dhcp server for intranet (with multi-homed alias)? zenny HOWTO-Related Questions 8 29th February 2008 15:16
No DHCP on second LAN interface DrJohn Server Operation 2 8th November 2007 02:58


All times are GMT +2. The time now is 03:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.