Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Jul 2007
    Posts
    1,512

    Lightbulb AMC Messenger [Open 2 All]

    Everyone Run Project:

    Name:
    AMC Messenger


    You Will Need:

    1.A website or local webserver that as php and mysql
    2.A copy of php121 installed
    3.The Files Below.

    This is not any diffrent to A.B.B.O but simply is open for anyone to change
    edit or whatever and one or two images changed also removed none needed
    code and files that as no longer been used.

    hope some of you enjoy

    I am including the Apz and Serverside.rar


    you will need php121 installed on a web server details of
    php121 can be found at there website www.php121.com



    simply copy all the files within the Serverside.rar there should be 3 files
    within this rar, unrar to your pc and upload to your server i don't advise
    editing these file as this will brake the way the messenger is set up to work with them files.

    //EDIT//

    Also remeber to change the url under Globle or the messenger wont talk to your server lol
    Also if you rename the DIR of php121 to something else remeber to change the DIR under Globle also

    //END EDIT//

    i am intrested in what people come up with please if you get time post back with what you
    have used it for or what you have changed then give use all a tast

    This as been in a along time of making as well i am not as smart as some people
    on here so sorry if some of the code is wrong or a little but crazy.

    Sorry for the images i have used also aka Kai and the alienware image
    as i could not find any good once and now i have none as i have just
    to night reformated my system.



    Credit:
    Credit is to everyone and no one we all get a fair share of credit

    also sorry have to stat this but a big credit gose to AMS(Indigrose) for
    a great product in the first place


    Enjoy

    Files below:
    Last edited by rexzooly; 04-12-2008 at 08:05 AM.

  2. #2
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    thanks, might find this very useful. is there anyway to send data other than text through it? It would be more useful to me than air if you could.

  3. #3
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by screwed over View Post
    thanks, might find this very useful. is there anyway to send data other than text through it? It would be more useful to me than air if you could.

    if you can find a php script that lets you send data/files then i can see
    it its possable to adapt the program to be able to send files to other usres online
    i am not sure tho if thats possable one way would be to add a shared web folder
    but all members using the software would be able to see the files you upload.

    but php121 dose not support file trasnfer so i am not sure how i would get around that one.



    Update:

    Bug fix needed.
    Ok i remeber now that there is a bug if you open the software twice and close
    one it will deleted then decypited file its using away around this was to
    make a boot.exe that booted the main messenger i have got this but others
    might want to do it other ways to stop it from doing this.

    I will post a new version later today or tomorrow with the added Boot.exe
    i will also if i get time get a copy if php121 to bundle with it so everything
    you need is in one place. but i will be only getting the standard version
    not the suppoters version as only the person planing to use php121
    supporters version is able to donate and get it.


    Thanks for the idea screwed over i will look in to this later if i get time.

  4. #4
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Hello,

    Just my opinion on this: you would need to upload a file to the server then download it to ther other's computer. I think it might be possible to make something like a box.net (or any similar service) integrated interface, however I wouldn't recommend you uploading files using your personal server.

    Though that's only my opinion. Hope that helps
    FoxLeader

  5. #5
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    Ok i remeber now that there is a bug if you open the software twice and close
    one it will deleted then decypited file its using away around this was to
    make a boot.exe that booted the main messenger i have got this but others
    might want to do it other ways to stop it from doing this.
    why not on exit make it search through the open processes to see if theres more than one occurences of the application? and if there isnt then delete the file.

    also, is it able to transfer things such as commands? e.g. for an admin? i could probably do that using text (e.g. /Ban_uName) but that way anyone could ban someone etc.

    thanks again for an awesome post!

  6. #6
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by screwed over View Post
    why not on exit make it search through the open processes to see if theres more than one occurences of the application? and if there isnt then delete the file.
    i am not sure how to do this maybe a little example if you could in your spare time?

    Quote Originally Posted by screwed over View Post
    also, is it able to transfer things such as commands? e.g. for an admin? i could probably do that using text (e.g. /Ban_uName) but that way anyone could ban someone etc.

    thanks again for an awesome post!
    PHP121 already covers that but so i don't have to lol erm soon as you install make the first account that becomes the owner/admin account there for that account only unless you make someone else admin also that is the only account that is able to block users.

    hope that awsers that one for you.


    FoxLeader thanks yes i was thinking somthing on these lines but with maybe more of a locked down limit if run on a standard server but i am still lost how
    to intergrat with with the users its a idea i am working on but not going to add untill i know way lot more what i am doing on that matter but talking about box.net i am setting up a Mirror site for AMS still working on the upload
    options it will work with the file that needs to be mirrored will be uploaded to a temp i will be emailed with that users request of mirror and then i set
    the mirror up its for this forum only so over user should not be a problem.

  7. #7
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    ok, try this (should work):
    on StartUp
    Code:
    --if File.IsInUse("Boot.exe") then
    Crypto.Base64DecodeFromFile("lanbuds.sys", "lanbuds.sys_temp");
    IsConnected = HTTP.TestConnection("http://google.com", "2", "80", nil, nil);
    if (IsConnected == false) then
    	Dialog.Message("Notice", "No Internet connection was detected.");
    	Application.Exit();
    end
    Connected = HTTP.TestConnection(sSurl , "2", "80", nil, nil);
    if (Connected == false) then
    	Dialog.Message("Service Error", "We are sorry this service seems to be\r\ndown at this time please try later.");
    	Application.Exit();
    else
    	Page.Jump("Page1");
    end 
    
    if File.DoesExist(_WindowsFolder.."\\AMC\\Data.ini") then
    	wOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences")+1;
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc);
    else
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", "1");
    end
    on ShutDown:
    Code:
    INIFile.SetValue("lanbuds.sys_temp", "URL", "F", "php121login");
    StatusDlg.Show(MB_ICONNONE, false);
    StatusDlg.ShowProgressMeter(true);
    Crypto.Base64EncodeToFile("lanbuds.sys_temp", "lanbuds.sys", 0);
    StatusDlg.Hide();
    if File.DoesExist(appPathOriginal().."\\lanbuds.sys_temp") then
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc-1);
    	nOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences");
    	if nOcc <= 0 then
    		File.Delete(appPathOriginal().."\\lanbuds.sys_temp");
    	end
    end
    
    
    GW = Web.GetURL("Web1");
    GR = sSurl..sSdir.."php121login.php"
    
    if GW ~= GR then
    Web.LoadURL("Web1", sSurl..sSdir.."php121login.php?op=logout");
    end

  8. #8
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by screwed over View Post
    ok, try this (should work):
    on StartUp
    Code:
    --if File.IsInUse("Boot.exe") then
    Crypto.Base64DecodeFromFile("lanbuds.sys", "lanbuds.sys_temp");
    IsConnected = HTTP.TestConnection("http://google.com", "2", "80", nil, nil);
    if (IsConnected == false) then
    	Dialog.Message("Notice", "No Internet connection was detected.");
    	Application.Exit();
    end
    Connected = HTTP.TestConnection(sSurl , "2", "80", nil, nil);
    if (Connected == false) then
    	Dialog.Message("Service Error", "We are sorry this service seems to be\r\ndown at this time please try later.");
    	Application.Exit();
    else
    	Page.Jump("Page1");
    end 
    
    if File.DoesExist(_WindowsFolder.."\\AMC\\Data.ini") then
    	wOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences")+1;
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc);
    else
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", "1");
    end
    on ShutDown:
    Code:
    INIFile.SetValue("lanbuds.sys_temp", "URL", "F", "php121login");
    StatusDlg.Show(MB_ICONNONE, false);
    StatusDlg.ShowProgressMeter(true);
    Crypto.Base64EncodeToFile("lanbuds.sys_temp", "lanbuds.sys", 0);
    StatusDlg.Hide();
    if File.DoesExist(appPathOriginal().."\\lanbuds.sys_temp") then
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc-1);
    	nOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences");
    	if nOcc <= 0 then
    		File.Delete(appPathOriginal().."\\lanbuds.sys_temp");
    	end
    end
    
    
    GW = Web.GetURL("Web1");
    GR = sSurl..sSdir.."php121login.php"
    
    if GW ~= GR then
    Web.LoadURL("Web1", sSurl..sSdir.."php121login.php?op=logout");
    end
    Whats this new INI file doing ?

    I will have a play later with this new code just busy with my site and i have to go out in like 13 mins to meet family.

    looks complexs and good lol just a little info on it please

    Thanks for all the intrest

  9. #9
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    its basicly adding 1 to the occurences in that ini file on open and then subtracting 1 one close, it then checks if theres no occurences and if there is then it doesnt delete the file.

  10. #10
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by screwed over View Post
    its basicly adding 1 to the occurences in that ini file on open and then subtracting 1 one close, it then checks if theres no occurences and if there is then it doesnt delete the file.
    Ok thanks changers will be added later as a i think it makes the code look
    more well pro looking lol and its not a option i thought if using and makes
    it all in one exe but i would like also tell the user beforer the program closes
    if there is more then one open to tell the user online one instandes of the software
    can be used at any one time.


  11. #11
    Join Date
    Jul 2007
    Posts
    1,512
    So So Sorry i did not releace the Fix tonight i was wanting to just get the Mirror
    site all working seems to be all there now so i will do the fix's tomorrow sorry.

    AMC Messenger after this Fix will also be mirrored there
    The Source and the exe with the server Files needed to make
    it work with a link to php121.com to get that installed on your
    server .

    If i get time i might also install php121 on another one of my sites as a test
    server for Dev's


    Rex

  12. #12
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by screwed over View Post
    ok, try this (should work):
    on StartUp
    Code:
    --if File.IsInUse("Boot.exe") then
    Crypto.Base64DecodeFromFile("lanbuds.sys", "lanbuds.sys_temp");
    IsConnected = HTTP.TestConnection("http://google.com", "2", "80", nil, nil);
    if (IsConnected == false) then
    	Dialog.Message("Notice", "No Internet connection was detected.");
    	Application.Exit();
    end
    Connected = HTTP.TestConnection(sSurl , "2", "80", nil, nil);
    if (Connected == false) then
    	Dialog.Message("Service Error", "We are sorry this service seems to be\r\ndown at this time please try later.");
    	Application.Exit();
    else
    	Page.Jump("Page1");
    end 
    
    if File.DoesExist(_WindowsFolder.."\\AMC\\Data.ini") then
    	wOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences")+1;
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc);
    else
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", "1");
    end
    on ShutDown:
    Code:
    INIFile.SetValue("lanbuds.sys_temp", "URL", "F", "php121login");
    StatusDlg.Show(MB_ICONNONE, false);
    StatusDlg.ShowProgressMeter(true);
    Crypto.Base64EncodeToFile("lanbuds.sys_temp", "lanbuds.sys", 0);
    StatusDlg.Hide();
    if File.DoesExist(appPathOriginal().."\\lanbuds.sys_temp") then
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc-1);
    	nOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences");
    	if nOcc <= 0 then
    		File.Delete(appPathOriginal().."\\lanbuds.sys_temp");
    	end
    end
    
    
    GW = Web.GetURL("Web1");
    GR = sSurl..sSdir.."php121login.php"
    
    if GW ~= GR then
    Web.LoadURL("Web1", sSurl..sSdir.."php121login.php?op=logout");
    end


    Vista had a problem with me using this software on limited users and
    using the windows folder so i have added it to the app folder

    Code:
    if File.DoesExist(appPathOriginal().."\\AMC\\Data.ini") then
    	wOcc = INIFile.GetValue(appPathOriginal().."\\AMC\\Data.ini", "Messenger", "Occurences")+1;
    	INIFile.SetValue(appPathOriginal().."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc);
    else
    	INIFile.SetValue(appPathOriginal().."\\AMC\\Data.ini", "Messenger", "Occurences", "1");
    end

  13. #13
    Join Date
    Jul 2007
    Posts
    1,512
    Code:
    if File.DoesExist(appPathOriginal().."\\lanbuds.sys_temp") then
    	INIFile.SetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences", wOcc-1);
    	nOcc = INIFile.GetValue(_WindowsFolder.."\\AMC\\Data.ini", "Messenger", "Occurences");
    	if nOcc <= 0 then
    		File.Delete(appPathOriginal().."\\lanbuds.sys_temp");
    	end
    end
    Also this dose not work gives me a error about w0cc-1

  14. #14
    Join Date
    May 2006
    Posts
    5,380
    i would change

    "_WindowsFolder"

    with

    Shell.GetFolder(SHF_MYDOCUMENTS).."My App Name"; on vista

    and

    Shell.GetFolder(SHF_APPLICATIONDATA) on xp and anything else

    unless you can know for sure the user has access to write to restricted areas then use common unprotected areas to save application settings
    Open your eyes to Narcissism, Don't let her destroy your life!!

  15. #15
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by RizlaUK View Post
    i would change

    "_WindowsFolder"

    with

    Shell.GetFolder(SHF_MYDOCUMENTS).."My App Name"; on vista

    and

    Shell.GetFolder(SHF_APPLICATIONDATA) on xp and anything else

    unless you can know for sure the user has access to write to restricted areas then use common unprotected areas to save application settings
    Thanks for the tips will test them out tomorrow.

    Just need to get this other thing working that screwed over posted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts