2006-12-24, 23:47
Let me explain number two
Do somekind of loop, to allow multiple accounts (more than two)
suggested settings.xml
Then in the script call this and read out every single server.
After that do a loop that checks every server instead of as now having first a check ISP1 then a check ISP2..
This will not only compress code, but also be more flexible as it allows to control 3, 4 or more accounts
This is just a basic quick draft when looking at your code of checking emails. Would sure need some more structure/thinking of layouts etc..
But this should get you started in that direction
If anything is unclear, please ask and I'll try and collaborate my ideas..
---------
Also another suggestion is to use password inputs that masks the password as typed and also use some sort of encryption for the stored passwords (just to make it a little harder to get them) I mean, since the .py is not protected it wont be 100% secure, but those wannabe hackers might get confused
Do somekind of loop, to allow multiple accounts (more than two)
suggested settings.xml
Code:
<settings>
<general>
<masterpassenable>-</masterpassenable>
<masterpass>-</masterpass>
</general>
<server id="1">
<name>Name for server ONE</name>
<isp>-</isp>
<user>-</user>
<pass>-</pass>
</server>
<server id="2">
<name>Name for server TWO</name>
<isp>-</isp>
<user>-</user>
<pass>-</pass>
</server>
<server id="3">
<name>Name for server THREE</name>
<isp>-</isp>
<user>-</user>
<pass>-</pass>
</server>
</settings>
Then in the script call this and read out every single server.
After that do a loop that checks every server instead of as now having first a check ISP1 then a check ISP2..
This will not only compress code, but also be more flexible as it allows to control 3, 4 or more accounts
This is just a basic quick draft when looking at your code of checking emails. Would sure need some more structure/thinking of layouts etc..
But this should get you started in that direction
If anything is unclear, please ask and I'll try and collaborate my ideas..
---------
Also another suggestion is to use password inputs that masks the password as typed and also use some sort of encryption for the stored passwords (just to make it a little harder to get them) I mean, since the .py is not protected it wont be 100% secure, but those wannabe hackers might get confused