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 ... 40 41 [42] 43 44 ... 123
616
OmnomIRC Development / Re: Missing logs glitch?
« on: May 06, 2011, 09:08:45 pm »
REPRODUCED, DIAGNOSED, AND FIXED.


Had an option in mIRC to trim logs to 100kb. Apparantly it only fires when it's disconnected/reconnected to IRC, so that's why it didn't happen daily. Unchecked and tested, fixed.


(On that note, in testing it, I accidentally did the same to todays logs. Oops. :P)

617
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 07:41:00 pm »
For now, no, though you may need to update it to use view_omnom. I'm removing logbounce.

Omnom is re-enabled now too.

OmnomIRC's presence on Omnimaga.org has been reduced to two userlist files. Shouldn't put any load on Omnimaga anymore.

618
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 07:35:13 pm »
It won't be putting much, if any, extra strain on my server.

619
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 07:29:20 pm »
Almost all of them. I still need the two files to get the userlist.

620
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 06:20:42 pm »
it's also incompatible with AJAX, has a considerably higher client-side load requirement, and constantly refreshes the pages.

621
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 06:17:06 pm »
JSONP wouldn't be any good, it's incompatible with AJAX.

Yup, I got everything I need.

I'm going to make a subdomain on Omnimaga.org, omnom.omnimaga.org. I can then set the document.domain to omnimaga.org for OmnomIRC stuffs, then I can get around the same-origin policy and remove the bounces(logbounce.php, userbounce.php, messagebounce.php), which are the main 3 that are generating traffic.


Edit: JSONP is just a way of moving data.

622
OmnomIRC Development / Re: OmnomIRC temporarily disabled
« on: May 06, 2011, 06:11:45 pm »
I think I just came up with a way where I can take almost all of OmnomIRC off of the server.

Do we have unlimited subdomains?

623
OmnomIRC Development / OmnomIRC temporarily disabled
« on: May 06, 2011, 06:01:24 pm »
OmnomIRC is temporarily disabled until we can track down the source of the site slowness.

iOmnom and iOmnom_Mini are unaffected.

624
Kk. I'll check it when my computer boots up.

Edit: His name had a new line in it. Not sure how, I blame the recovery process.

625
OmnomIRC Development / Re: Various bits of OmnomIRC Source Code
« on: May 05, 2011, 03:10:47 am »
Here's the interesting parts to iOmnom Mini (Note that this code was written in somewhat of a hurry, so the names of the files don't quite make sense, and I haven't refined the code.)


This only exists to be the target for the frame(holding the content div), and to handle the callback function.
Spoiler For chat.php:
Code: [Select]
<?PHP
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<html>
<head>
<title>chat</title>
<script type="text/javascript">
function callback(text)
{
document.getElementById("content").innerHTML = atob(text);
}
</script>
</head>
<body onload="window.location.hash='bottom';">
<div id="content">
<?PHP
define(SMF,"Yup.",true);
include("../Sources/Subs-Package.php");
$theURL = "http://209.90.113.101/IRC/EFNet/view_omnom.php?log=omnimaga&current=true&trim=17";
if (isset($_GET['high']))
$theURL = $theURL . "&high=" . $_GET['high'];
$contents = fetch_web_data($theURL);
echo $contents;
?>
</div>
<a name="bottom"/>
<script type="text/javascript" src="chat2.php">
</script>
</body>
</html>

This is where the real magic happens.

This page sleeps for 5 seconds on every request. It then sends the current chat view, and a bit of javascript to make another script tag to call itself again. That way it keeps a constant connection open, bypassing Opera Mini (and apparently the PSP's browser, according to Frey) limitations of no streaming AJAX and no programmatic refreshing.

Spoiler For chat2.php:
Code: [Select]
<?PHP
header('Content-type: text/javascript');
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
sleep(5);
define(SMF,"Yup.",true);
include("../Sources/Subs-Package.php");
$theURL = "http://209.90.113.101/IRC/EFNet/view_omnom.php?log=omnimaga&current=true&trim=17";
if (isset($_GET['high']))
$theURL = $theURL . "&high=" . $_GET['high'];
$contents = fetch_web_data($theURL);
echo 'callback("'.base64_encode($contents).'");';
?>
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'chat2.php?uid=<?PHP echo gmdate("DdMYH:i:s");?>';
head.appendChild(script);
window.location.hash='a';
window.location.hash='bottom';

This one was altered from the live code to remove the signature generation code. It just handles the form for sending a message and creates the frame for chat.php.

It also handles logging in if you're not already.
Spoiler For index.php:
Code: [Select]
<?PHP
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
require(dirname(__FILE__) . '/../SSI.php');

?>
<html>
<head>
<title>iOmnom Mini</title>
</head>
<body>
<?PHP
if ($user_info['is_guest'])
{
ssi_login("http://www.omnimaga.org/iOmnom_Mini/index.php");
}
else
{
function sign($encstr) {
return "lolnope";
}
echo '
<script type="text/javascript">

</script>
<iframe src="chat.php#bottom" style="width:100%;height:75%;border:0;" scrolling="no" border=0>Please use a browser that supports frames.</iframe>
<form action="messagebounce.php">
<input type="hidden" name="name" value="'.$user_info[name].'"/>
<input type="hidden" name="chan" value="omnimaga"/>
<input type="hidden" name="signature" value="'.sign($user_info[name]).'"/>
<input type="text" name="message" maxlength=100 style="width:100%;height:10%;"/><br/>
<input type="Submit" value="Send" style="width:100%;height:10%;"/>
</form>
';
}
?>
</body>
</html>

This is just what sends the message to my server. Pretty simple.
Spoiler For messagebounce.php:
Code: [Select]
<?php
define
(SMF,"Yup.",true);
include(
"../Sources/Subs-Package.php");
fetch_web_data("http://209.90.113.101/irc/EFNet/message.php?message=" base64_encode(urldecode(stripslashes($_GET["message"]))) . "&signature=" $_GET["signature"] . "&name=" base64_encode(urldecode(stripslashes($_GET["name"]))) . "&chan=" $_GET["chan"]);
header("location:index.php");
?>


626
OmnomIRC Development / Re: iOmnom development thread
« on: May 05, 2011, 01:00:03 am »
Think you can make it time out after like 5 minutes of inactivity?

627
OmnomIRC Development / Re: Option to disable userlist refreshing
« on: May 05, 2011, 12:58:46 am »
I can take a look into it. I have some ideas on how I can fix it, I'll try to get to them tomorrow. I'd rather just fix the refreshing than provide an option to disable it.

If you're curious as to why it's refreshing, it's due to how I made the tab completion get its data.


Edit: Fixed. I'm using ajax for that now too.

628
Miscellaneous / Re: Osama Bin Laden died
« on: May 03, 2011, 01:36:30 pm »
I'm locking this topic so stuff doesn't get more out of hand.

629
Miscellaneous / Re: Osama Bin Laden died
« on: May 03, 2011, 04:51:53 am »
Well, I would.
So I get lowered in respect just because I consider something?
Nice, I can't even have an opinion. Cya in a few days, after I chilled down a bit.


I gotta agree with him, he just had an opinion. You may have not agreed with it, but that's no reason to rate him down.

630
Introduce Yourself! / Re: Hi friends..
« on: May 03, 2011, 04:45:56 am »
Nobody gave you the REAL peanuts?
!peanuts

It's a spambot we were screwing with, it doesn't get the real peanuts.

Pages: 1 ... 40 41 [42] 43 44 ... 123