SearchSearch   ProfileProfile   Log inLog in   RegisterRegister 

Trigger a file batch procedure

 
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum
View previous topic :: View next topic  
Author Message
agelmi



Joined: 28 Oct 2005
Posts: 11

PostPosted: Thu Nov 16, 2006 4:44 pm    
Post subject: Trigger a file batch procedure

I'm wondering if there is a way to launch a file batch each time a user correctly logs in...
How can i do?
_________________
Thanks,
Angelo
Back to top
philip
Forum facilitator


Joined: 09 May 2006
Posts: 25

PostPosted: Fri Nov 17, 2006 7:46 am    
Post subject:

Sorry, we do not support this feature.

However, you can customise the "fs_login.php" located in "[FirstSpot Directory]\authserv\".

Search for the following code:
if($objrsult=='TR_MODE') {

\\ insert your code below
$obj = new COM("FSCONFIG.Cfgmgr") or die;
$obj->runCommand("[full path of your file batch]");
$obj->Release();
$obj=null;
\\ end of code

...
...

} else if($objrsult=='SUCCESS' || $objrsult=='INSERT_TABLE') {

\\ insert your code below
$obj = new COM("FSCONFIG.Cfgmgr") or die;
$obj->runCommand("[full path of your file batch]");
$obj->Release();
$obj=null;
\\ end of code

...
...

} else if($objrsult=='ALREADY_SERVING') {

Hope it helps.

Cheers,
Philip
_________________
~ Patronsoft Limited ~
Back to top
Display posts from previous:   
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group