Announcement

Collapse
No announcement yet.

Cyber Cafe Project Please Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rexzooly
    replied
    Originally posted by Desrat View Post
    you want it in the same place as the ini update
    thanks i was able to get that work in your demo but when trying to change it to to intergreat it to my software it dose not work.

    problem is this that i wnat it to logo them in

    something like this i know this is invalied but you get what i need

    Your Code Desrat:
    Code:
    --List all users in the ini file to a table
    tSections = INIFile.GetSectionNames("\\\\****ed\\Cyber Soft\\system32.ini");
    
    --get user name from user
    sName = Input.GetText("Input1");
    	--check the input contained data then continue
    	if sName ~= "" and sName ~= "CANCEL" then -- step through table looking for that name
    		for i, v in tSections do
    		sIniName = INIFile.GetValue("\\\\****ed\\Cyber Soft\\system32.ini", tSections[i], "Name");
    		nCompare1 = String.Compare(sIniName, sName);
    			if nCompare1 == 0 then sCurrentSection = tSections[i]
    			break
    			end
    		end
    	else -- empty input or user cancelled
    	Page.Jump("Page1");
    	end
    
    --check that sCurrentSection has a value and end if its empty no entry was found
    if sCurrentSection then 
    
    --prompt for password
    sPass = Input.GetText("Input2");
    
    	--check the input contained data then continue
    	if sPass ~= "" and sPass ~= "CANEL" then --check pass is correct
    	sIniPass = INIFile.GetValue("\\\\****ed\\Cyber Soft\\system32.ini", sCurrentSection, "Pass");
    	nCompare2 = String.Compare(sIniPass, sPass);
    		
    		if nCompare2 ~= 0 then --pass is wrong
    		Dialog.Message("Notice", "Incorrect Password", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    		
    		else --user valid set variable needed for shutdown action
    		sValid = "true"
    		end
    
    else -- sCurrentSection was empty
    Dialog.Message("Notice", "No user found with that name", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Page.Jump("Page1");
    end
    
    
    --get the amount of time left from the ini file
    nTime = INIFile.GetValue("\\\\****ed\\Cyber Soft\\system32.ini", sCurrentSection, "Time");
    
    --value is a string we need to convert it to a number
    nTime = String.ToNumber(nTime);
    
    	--if time has run out tell the user and close the app
    	if nTime == 0 then
    	Dialog.Message("Notice", "This demo has expired", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
    	Page.Jump("Page1");
    	
    	--the demo has time left let the user now how much time is left in minutes
    	else nMin = nTime / 60;
    	
    	-- round the figure to 1 decimal place
    	nMin = Math.Round(nMin, 1);
    	
    	--alert the user
    	Dialog.Message("Notice", "This demo will expire after " .. nMin .. " minutes", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    end
    this has the app.exit out

    i need at the something like
    Code:
    If sName + sPass ~= sValied ("true");
    end
    i have been rating my brans out i was able to get it to it to login
    to the page 2 but the password did not have to be vailed and naiver
    did the user name
    i could up
    user:dsdassd
    Pass:dsdslkdlass
    and it would still log them in i don't know what i did as it was working before
    i changed something then kinda fked it all up what a n00b i am.

    Please help a n00b in need


    also any idea on my admin panel
    pc: (PC Name) Online user: (User ID)
    eg

    Pc's Online:
    Client One Online Admin
    Client Two Offline last user Admin
    Pc Slot 3
    Pc Slot 4
    Pc Slot 5

    Add Pc to Slot ?
    input box
    input box
    Ok button

    if needed i can make a none working version for people to
    test with please say if so, so i can make time.

    Leave a comment:


  • Desrat
    replied
    Originally posted by rexzooly View Post
    you know your a star you have helped me so much at the mo thanks
    ya i tryed ready the help files i just can't get my head around then i feel
    dumb but its ture lol..

    Ok i will add that commad in before update ini file or after?
    as i removed the update ini file from close to the login button.
    you want it in the same place as the ini update

    Leave a comment:


  • rexzooly
    replied
    Originally posted by Desrat View Post
    if the time is still counting then you need to add a Page.StopTimer(); command to the logout button your using..also 90% of the answers you will ever need are in the help file the remaining 10% can be found here , keep plugging away and keep posting because even though Im neck deep in my project right now theres always plenty of input on this forum..
    you know your a star you have helped me so much at the mo thanks
    ya i tryed ready the help files i just can't get my head around then i feel
    dumb but its ture lol..

    Ok i will add that commad in before update ini file or after?
    as i removed the update ini file from close to the login button.

    Leave a comment:


  • Desrat
    replied
    if the time is still counting then you need to add a Page.StopTimer(); command to the logout button your using..also 90% of the answers you will ever need are in the help file the remaining 10% can be found here , keep plugging away and keep posting because even though Im neck deep in my project right now theres always plenty of input on this forum..
    Last edited by Desrat; 08-28-2007, 07:30 PM.

    Leave a comment:


  • rexzooly
    replied
    Originally posted by rexzooly View Post
    i really could do with some help here

    Ok here is what i need.
    i have the time demo with the users what you made
    but i am having a problem i what them to click logout and the time
    save and ends that users but it don't the timer carries on i tryed
    to added the code thats on the on exit to the logout button but i just get a error

    and is there away to see if lets say adminT.exe is running on \\\\Desk if ture
    run software if fales show timed dialog and end app

    and also the adminT.exe can get the name of the pc that the cyber.exe is running on

    so like this

    ---------------------------------
    Admin Panel
    ----------------------
    PC's Online:

    (PC 4) Online - Loged In
    (PC 5) Online - Loged Off
    (PC PSev) Online - !!Cyber.exe Not Found!!
    (Desk) Online - Admin Panel(AdminT.exe)


    (Admin)(OK) (Exit)
    -------------------------------------------
    i did not have time to do a paint image lol so that one will
    have to do hope you get what i mean.

    also would like to send the logout command if none is on that pc
    anymore so like

    a button for each pc so (PC 4) would be a button and on click
    you would get Shutdown PC 4 Logoff PC 4 and End Cyber User(logout User)

    sorry if i am asking alot i just want to make this software work without
    aproblem


    :( Please help :(

    First thing first thanks to Worm and Desrat as they have helped me change
    things that need to be changed and also opened my eyes to ways to better
    the software.

    Leave a comment:


  • rexzooly
    replied
    Please Help Before 28th 4 pm GMT +0 time (London)

    i really could do with some help here

    Ok here is what i need.
    i have the time demo with the users what you made
    but i am having a problem i what them to click logout and the time
    save and ends that users but it don't the timer carries on i tryed
    to added the code thats on the on exit to the logout button but i just get a error

    and is there away to see if lets say adminT.exe is running on \\\\Desk if ture
    run software if fales show timed dialog and end app

    and also the adminT.exe can get the name of the pc that the cyber.exe is running on

    so like this

    ---------------------------------
    Admin Panel
    ----------------------
    PC's Online:

    (PC 4) Online - Loged In
    (PC 5) Online - Loged Off
    (PC PSev) Online - !!Cyber.exe Not Found!!
    (Desk) Online - Admin Panel(AdminT.exe)


    (Admin)(OK) (Exit)
    -------------------------------------------
    i did not have time to do a paint image lol so that one will
    have to do hope you get what i mean.

    also would like to send the logout command if none is on that pc
    anymore so like

    a button for each pc so (PC 4) would be a button and on click
    you would get Shutdown PC 4 Logoff PC 4 and End Cyber User(logout User)

    sorry if i am asking alot i just want to make this software work without
    aproblem

    Leave a comment:


  • rexzooly
    replied
    Ok i got the login bit to work i think but i can't out how do i do this to end the uesrs setion and return to login.

    also need to limit users in demo version.

    also is there way to detact if a program is running on the server (\\\\Desktop)
    ? as i want to make a little progrom what tells the clients they can run and the app will also tell you how many pcs and there name that are running with the software.

    Leave a comment:


  • rexzooly
    replied
    Originally posted by rexzooly View Post
    Ok my silly doing that was its just that admin you can't edit lol
    right is there a way to limit the amont of users that can be added for the
    demo versio i want to limit to 10 users.
    the full version will be unlimited.

    ok this code it 100% what i needed just need to find way to end all user prosses but the cyber cafe software when user is timed out and when timed out return to login i think i can do the return to login tho.

    just working on it now and added a time not the dialog.message
    this kinda works
    but the problem is i want to be able to click logout and the time will be updated and then i goes to a home login page
    only the secand admin panel is able to shut down the software as i have
    made 2 admin panels for the software.

    and i am finding it hard to convert the dialog.messge logon
    to a input login with loging button

    Leave a comment:


  • rexzooly
    replied
    Originally posted by rexzooly View Post
    hey well that kools great but when i update the a users time
    it just says the users no there closes the window and then i reopen
    it i just sets it back :(

    it logs in with the time and when it logs out it don't update

    is there something i need to add to this?

    but this is a really nice little think thanks Desrat your a * you all are whom
    as helped so fair.
    Ok my silly doing that was its just that admin you can't edit lol
    right is there a way to limit the amont of users that can be added for the
    demo versio i want to limit to 10 users.
    the full version will be unlimited.

    ok this code it 100% what i needed just need to find way to end all user prosses but the cyber cafe software when user is timed out and when timed out return to login i think i can do the return to login tho.

    Leave a comment:


  • rexzooly
    replied
    Originally posted by Desrat View Post
    new apz with login and admin page
    hey well that kools great but when i update the a users time
    it just says the users no there closes the window and then i reopen
    it i just sets it back :(

    it logs in with the time and when it logs out it don't update

    is there something i need to add to this?

    but this is a really nice little think thanks Desrat your a * you all are whom
    as helped so fair.

    Leave a comment:


  • rexzooly
    replied
    Originally posted by Desrat View Post
    new apz with login and admin page
    thanks i will look at this laters

    your all a big help here is a demo as the desktop admin panel i forgot to change the computer name so its set as \\\\(F)ucked not \\\\Desk for the server name

    and is it possable to make the folder to be shared on install
    i am using setup fact ..... 7
    for the ini files and passwords for admin ?
    :yes
    http://cyber.vilpie.co.uk/Downloads/...ft-A_Setup.exe
    This is the demo just the Admin on the server this will changed very soon

    Leave a comment:


  • Desrat
    replied
    new apz with login and admin page
    Attached Files

    Leave a comment:


  • rexzooly
    replied
    Please say this is possable

    i am almost completed the softare
    just need this done then i can make it look pritty and complete it


    Leave a comment:


  • rexzooly
    replied
    Originally posted by Desrat View Post
    well the attached apz will do time limits in the method you describe but its not exactly the method I would have used as its extremely insecure and open to user intervention without some sort of encryption however the apz is there to steer you in at least the direction you asked and as for admin you'd need to specify the method you'd prefer to use (seperate app on same pc, from a seperate PC entirely but in the same network, hidden password protected in built admin)
    erm kinda lost

    the users are just like this

    Name=Test
    Pass=demo
    Time=1700

    Name=josh
    Pass=get
    Time=30

    Name------ so on so forth
    so i need it so if Name=Test Time= ?under the test
    each user will have there own time limit

    i know about the files been unsurea but there will be on the desktop/server for the cyber caff so only staff can get to them

    and then i need someway to edit them without opening the file i want to makes a admin progran for the desktop/server what will edit the file and add users add more time things like that

    this is just a **** take lol i can't close AMS or it will take forever to get it back to work again i with i got the bleaming CD off my friend before i moved :(

    Leave a comment:


  • Desrat
    replied
    well the attached apz will do time limits in the method you describe but its not exactly the method I would have used as its extremely insecure and open to user intervention without some sort of encryption however the apz is there to steer you in at least the direction you asked and as for admin you'd need to specify the method you'd prefer to use (seperate app on same pc, from a seperate PC entirely but in the same network, hidden password protected in built admin)
    Attached Files

    Leave a comment:

Working...
X