Sigx

We are the future in the past.
It is currently Tue Mar 19, 2024 2:27 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Test... of a Sig Layout + Functions
PostPosted: Sun Aug 15, 2004 4:38 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
Test sig test

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 15, 2004 4:49 pm 
Offline

Joined: Thu Jul 03, 2003 3:06 pm
Posts: 652
looks cool :)

Image


Image

_________________
Image
~~~SigX C++ Edition~~~


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 15, 2004 4:55 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
Thx :D, i think about the next step for it now. and also planning a purchase.

those features in the SigX for Paid is tempting to use on my WinXP box :wink:

EDIT: btw, nice RemoteSIGs :), especially the Circle one :o, imagestring sure ain't doing that trick or?

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Last edited by Revellion on Mon Aug 16, 2004 2:46 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 2:35 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
Weee, check sig now, it got Now Playing for XMMS!!! :D

thinking of converting it so it uses PHP Sockets on server-side with my PHP-intepreter so it sends info to SigX account each 2 mins or so donno if it's possible thou :\

the $_POST['data];
contains the info for CPU and uptime and etc that the SigX client sends right?

could someone with knowledge on how the SigX is made PM me about how the data should be constructed in-order to make update.php accept my data and username and password from the script..., cause it sure would be nice to have a Linux compatible solution at hand :?

all i know yet is that it's constructed with 3 _POST's
------------
username
password
data

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 2:44 pm 
Offline

Joined: Thu Jul 03, 2003 3:06 pm
Posts: 652
SigX Perl Script
http://forum.yuriy.net/phpbb/viewtopic. ... sc&start=0

_________________
Image
~~~SigX C++ Edition~~~


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 2:47 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
Oh :o, thx :), maybe i can get some info on how it parses the data to sigx :D

*goes of to check it out*

EDIT: btw, the Perl script in itself is very poor, no Now Playing in it :(
*goes of to find a work-around for the Perl script or better maybe begin work on a Linux C++ Client*

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 2:57 pm 
Offline

Joined: Thu Jul 03, 2003 3:06 pm
Posts: 652
in my SigX C++ version what i do is this

"http://sigx.yuriy.net/update.php/username=" +username + "&password=" + password + "&data=" + urlencode( data ) + "&version=Cplus2.1.1";

if your going to write one please make sure you submit the version at the end, it will work withought it but its nice to see what other versions people are using

Edit:
oh and the newline in sigx is represented by *<*

_________________
Image
~~~SigX C++ Edition~~~


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 3:17 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
Thx alot :D, i'am starting the work emmidiatly :), and sure i'll add a nice Version tag for my Client, and when i consider it stable and compatible i'll might throw it in the Contrib forum :D

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 3:42 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1397
Location: Los Angeles
alot of people have made changes and additions to the perl script. and it does have the xmms and alot of other things not included in the original.

_________________
Image

Image

Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 3:43 pm 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
well it can't harm to have another C++ client for Linux on x86 nee'?
maybe not just x86 even, could also include some other architectures aswell.
Thereby making SigX used by even more users

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 4:02 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1397
Location: Los Angeles
yep

_________________
Image

Image

Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 1:17 am 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
as said before i'll post it in Contrib forum if i ever get it to a stable release :)

right now i'am still making the methods of aquring data on GNU Linux that works for all Distro's and not just 1 or 2

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 7:25 pm 
Offline

Joined: Thu Jul 15, 2004 12:09 pm
Posts: 42
Revellion wrote:
Thx alot :D, i'am starting the work emmidiatly :), and sure i'll add a nice Version tag for my Client, and when i consider it stable and compatible i'll might throw it in the Contrib forum :D

There are a couple of things to watch out for. Like everyone else I make up the POST data like this:
Code:
string s = "username="   + userName
   + "&password="   + password
   + "&version="   + VER
   + "&data="   + payload
   ;

So far so good, but if you have any characters above 127, the url-encode that is about to happen to your data will make you end up with some funny characters, so before I get to here I run the payload through my own UrlEncode:
Code:
public static string UrlEncode(string s)
{
   string[] reserved   = {"?", "=", "&"};
   string[] replacement   = {"%22", "%3d", "%26"};

   for (int i = 0; i < reserved.Length; i++)
      s = s.Replace(reserved[i], replacement[i]);
   return s;
}


and then I run the whole thing through:

Code:
public static byte[] StringToByte(string s)
{
   Char[] cAry   = s.ToCharArray();
   byte[] byteAry   = new byte[cAry.Length];

   for (int i = 0; i < cAry.Length; i++)
      byteAry[i] = (byte)(cAry[i] & 0xFF);

   return byteAry;
}


At that point I have a url-encoded (my way) byte array (which is what my POST routine wants) that I write onto the .NET WebRequest output stream. No problems with funny characters.

In case it's not obvious, you must do a POST and not a GET. I screwed around with it for a couple of days trying to create a QueryString and make GET work. <sigh>

-- Rick

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 05, 2004 10:02 am 
Offline

Joined: Sun Aug 15, 2004 4:07 pm
Posts: 9
Location: Somewhere in Sweden
thx :), never thought of that :?, i've gotten abit into the work only so it's still alot to do before it's finished. have to get various system information :)

_________________
Image
Revellion is a PHP5-GD2 Fanatic!, Beware!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group