Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Netham45

Pages: 1 ... 25 26 [27] 28 29 ... 123
391
OmnomIRC Development / Re: OmnomIRC Protocol Information
« on: June 25, 2011, 12:10:37 am »
I'm working on the login system, and I've hit a bit of a hangup.

Here's what I got so far

Code: [Select]
Step 1: User hits index.php
Step 2: index.php hits login.php, which will be replacable(SMF,phpBB,etc... versions)
Step 3: login.php will encrypt user data and send it to the forums (OmnomIRC_Login.php, for example). The forums will decrypt it and check it's validity. This will require my own cookies for user info.
ALTERNATIVE
Step 3: login.php will load an iframe to a remote page that will redirect to a local null page. It will then rip the signature from a paramater on the page. This will use the sites' cookies.
Step 4: OmnomIRC_Login.php will return either a signature for the user, or 'INVALID', based off of the result of its check
Step 5: If Invalid, go to the forum to login, or own login. If valid, yay!

I'm stuck on a good way to perform step 3, or a good way to check if the user is logged into the forums by their own site cookies. I'd rather not handle logins separately.

edit: here's an idea.

login.php has a JS callback that marks the signature.

login.php has an iframe that calls the remote one, the remote one them calls a stupid php file on the local page that only calls that callback on index.php
v------------------------------------------------------------------------------^
v-login.php -> OmnomIRC_CheckLogin.php -> signature_callback.php-^

same origin policy  :mad:

392
I don't think so, it wasn't waiting for anything, it'd hit the error and just instantly stop parsing OmnomIRC's javascript.

393
I left error reporting on notice level, and if the sql server has to reconnect it prints a notice, which isn't valid javascript, so it crapped itself.

Edit: And depending on the position of the error, it could have thrown it off later in the sync loop, so it's possible it was also the cause of the longass scrollback.

394
OmnomIRC Development / Re: Online list missing all IRC users
« on: June 24, 2011, 11:42:08 pm »
Should be fixed. I marked an optional field as required by accident, so the bot was just getting spammed with errors when it tried to add users to the database.

395
OmnomIRC Development / Re: Online list missing all IRC users
« on: June 24, 2011, 11:34:57 pm »
Hell if I know...

I appear to have broken something in the loader...

396
OmnomIRC Development / Re: Various bits of OmnomIRC Source Code
« on: June 24, 2011, 11:33:22 pm »
The RAM requirement isn't as high as the CPU requirement is. My MySQL server is only using about 60MB of RAM (only a small fraction of which is OmnomIRC),

The CPU requirement still isn't very high. It could quite possibly run just fine on shared hosting.

397
News / Re: OmnomIRC Release - Current Version: Alpha 2
« on: June 24, 2011, 08:15:21 pm »
I am planning on getting some sort of decent mobile browser for it, though. >:D

I'd use Eeems', but it fails in anything other than webkit. :|

398
News / Re: OmnomIRC Release - Current Version: Alpha 2
« on: June 24, 2011, 07:26:09 pm »
Nope, sadly. And since iOmnom/iOmnom_Mini were using the old remnants of OmnomIRCv1 that were still up, they won't work without a bit of rewriting.

400
News / OmnomIRC Release - Current Version: Alpha 2
« on: June 24, 2011, 05:39:55 pm »
Here's a release of OmnomIRC Alpha 1!


I just finished the installer, so I cannot guarantee that it is bug-free, but it seems to be working for me. It currently doesn't have any of the forum integration with it.

To use: Upload to a web server. Make sure that the web server has write permissions to the folder(for writing the config)
Go to the folder. The installer will request SQL information from you and set up the config and everything. Then go back to the index and enter a username.

Right now, there is no login system either(To be coming soon!), so usernames are unprotected(anyone can use anyones name.)

Download: http://netham45.org/OmnomIRC_Releases/OmnomIRC_Alpha2.zip

Also, along with this release, I will be temporarily ceasing updates on Omnimaga's OmnomIRC while I work on getting this version compatible with SMFs login system.

EDIT: Ohey, we're up to Alpha 2 already! Fixed file paths(were windows paths, now unix paths), and fixed a bug corrupting cookies.

401
OmnomIRC Development / Re: OmnomIRC updates - 06/16
« on: June 24, 2011, 02:35:03 pm »
I'm not getting any more Invalid Date's, is it fixed? :)

It's not fixed on PMs yet, but it should be fixed in chat.

402
News / Re: Website hacking attempt
« on: June 24, 2011, 02:54:38 am »
Once again, mah bad. :P

403
Computer Projects and Ideas / Seamless RDP
« on: June 24, 2011, 01:44:49 am »
Just made this nifty program that makes RDP somewhat more seamless to the host desktop. It's really small, and pretty much complete for what I'm going to do with it.

What I'm doing to make it work is this: Set the wallpaper on the client to 77,77,77 RGB, and set that as the RDP window's transparency key.

Known bugs: 77,77,77 RGB requires 24-bit color depth


Attached is the a bin.


Doesn't relate to calcs, but it's still nifty. :P

Edit: SCREENSHOT!

EDIT2: No need for the entire project. Here's the source in entirety (Set as multi-byte in project properties):
Code: [Select]
#include <windows.h>
#include <iostream>
#include <Psapi.h>

BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);

//Defining these obviously local vars as global so they don't get re-defined every time. Trying to speed shit up.
COLORREF getColor = RGB(0,0,0);
COLORREF transKey = RGB(77,77,77);
unsigned char alpha = 0;
const unsigned char unfocused = 180;
const unsigned char focused = 255;
HWND hwndCurrent;
TCHAR WindowTitle[MAX_PATH] = "";

int main()
{
printf("Press CTRL+C to quit\n");
while(true)
{
EnumWindows(EnumWindowsProc, 0);
Sleep(20);
}
}

BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam) {

GetWindowText(hwnd, WindowTitle, sizeof(WindowTitle));
if (strstr(WindowTitle,"- Remote Desktop Connection"))
{
if (!GetLayeredWindowAttributes(hwnd,&getColor,&alpha,NULL)) SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);

if (GetForegroundWindow() != hwnd)
{
if (alpha != unfocused) SetLayeredWindowAttributes(hwnd,transKey,unfocused,LWA_COLORKEY + LWA_ALPHA);
}
else if (alpha != focused) SetLayeredWindowAttributes(hwnd,transKey,focused,LWA_COLORKEY + LWA_ALPHA);

}
return true;
}

Edit3:
Here's a lite version. run it once on launch. Bin attached.
Code: [Select]
#include <windows.h>
#include <iostream>
#include <Psapi.h>
BOOL CALLBACK EnumWindowsProcess(HWND hwnd, LPARAM lParam);

const COLORREF transKey = RGB(77,77,77);

int main()
{
EnumWindows(EnumWindowsProcess, 0);
}

BOOL CALLBACK EnumWindowsProcess(HWND hwnd, LPARAM lParam)
{
TCHAR WindowTitle[MAX_PATH] = "";
GetWindowText(hwnd, WindowTitle, sizeof(WindowTitle));
if (strstr(WindowTitle,"- Remote Desktop Connection") && !GetLayeredWindowAttributes(hwnd,NULL,NULL,NULL))
{
SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes(hwnd,transKey,255,LWA_COLORKEY + LWA_ALPHA);
}
return true;
}

Edit4:
Performance is awful when Aero is disabled on the host.

404
News / Re: Website hacking attempt
« on: June 24, 2011, 01:14:17 am »
My bad on leaving the script on there, I should have known better.

405
OmnomIRC Development / Re: OmnomIRC updates - 06/16
« on: June 23, 2011, 07:37:06 pm »
I have a suspicion that it's due to the way I'm dealing with timestamps, it might not be safe for different timezones/formats like I initially thought...

Pages: 1 ... 25 26 [27] 28 29 ... 123