News & Updates Check this forum for official updates, new release information, and site developments.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-22-2008, 01:22 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2007
Posts: 313
Nick
Default 0.6 beta 3 available

This is a beta. For a stable release, see the downloads section.

0.6 beta 3 is the latest version of glype proxy. It includes a number of bugfixes from earlier betas and introduces a new server load limiting feature. You can specify a value for the maximum load and the script will stop fetching pages if the load is higher. Also available is a Queue Transfers option to enable/disable simultaneous transfers.

<hr>
<span style="font-size: 14pt; line-height: 1.3em;">Bugfixes</span>

Caching
- Updated cache to work properly with unique URLs. CSS documents contain proxified URLs, which obviously conflicts with the unique URL feature. There is now additional parsing applied when reading CSS files from the cache to generate the appropriate unique URL.
- Encoding options are reflected in the filenames of cached CSS documents to avoid incompatibility between path info and normal URLs.
- CTRL+F5 forces cached files to be reloaded but did not update the Last Modified date if different.

Sessions
- Session handling has been moved around to allow faster page loading. To avoid concurrency issues with the session, only one instance of the script will run at a time per user. Previously this meant waiting for the whole transfer to complete before the next can start. The session now closes before the transfer to allow inline elements load without as much delay. The major downside to this is the hugely greater number of simultaneous requests your server will have to deal with. This is controlled by the "Queue Transfers" option which is enabled by default. To allow simultaneous transfers, disable this option.

<hr>
<span style="font-size: 14pt; line-height: 1.3em;">Changes</span>

Javascript used by the script
- Removed the /includes/js/ folder and cut out the mootools effects library. The default theme still uses a show/hide effect on the options and tooltips descriptions but without the huge effects.js file.
- parse.js has been renamed to main.js and now contains additional functions to allow you to jump straight to browse.php without a POST to the /includes/process.php script. To take advantage of this you will of course need to update your custom themes with the new javascript.

Parsing Updates
- Completely rewritten and extended the javascript parsing code for increased compatibility. The javascript is now parsed by javascript so it occurs client side, reducing the amount of work for the server. It also allows compressed javascript, such as from the Dean Edwards /packer/, to be processed on the fly before being passed to the eval(). In this case, the reduced load for the server must now be done by the users' browsers and slow machines processing multiple javascript files may have noticeable performance issues. It also introduces the possiblity of cross-browser bugs but has been tested in FireFox 2 and IE 7. This is experimental and future versions may go back to server side javascript parsing.
- Updated the meta refresh regex which seemed to have some problems (noticed it on orkut.com).
- Added support for window.open()

Streamlined Options
- Moved the optSESSION and optCOOKIE options into /includes/init.php instead of settings. In the highly unlikely event that you need to change these, you'll need to do it direct in the /includes/init.php file.
- Removed the optPARSEALL, optREPLACE and optPLUGINS options. The "sniffing" now done by the script removes practically any gains you'd get by disabling the parse all option. The replace option is unnecessary as there's nothing else to parse (so now href|src|background is hardcoded into the regex searches). There's no benefit in disabling plugins so no need for that either.
- Lowered the default timeout values to 5 and 30 seconds for connecting and the whole transfer respectively.
- Added a new server load limit option. If load exceeds the limit specified, future requests will be sent back to the index page with a "Server Busy" error message and no more pages will be fetched until the load is back under the limit.

Bitfield (this is the b=XX part from the URL)
- Edited the script to accept this value and edit the parsing options as appropriate. This allows the javascript alternative to the /includes/process.php file but also you can now generate quick links with a forced set of options (such as a link to YouTube with "Remove Scripts" disabled).
- It's also now only based on the non-forced options, whereas before it included all options.

Miscellaneous
- Added a SCRIPT_NAME constant that defaults to "browse.php". If for any reason you don't want the script named browse.php (the 100,000 results for site:.edu inurl:browse.php suggest there'd be no reason for filters to block it), you can rename it and the script will use the new name set by SCRIPT_NAME. This can be found in /includes/init.php. You will also need to edit the includes/main.js file.
- Removed HTTP_HOST from the log files. The log files are primarily for recording abuse so the HTTP_HOST is unnecessary. If you wish to use logging to generate stats, you may like to add this back in.

<hr>
<span style="font-size: 14pt; line-height: 1.3em;">Admin Control Panel</span>

This is the other major change for the 0.6 thread. The /tools/ directory has been replaced by an admin control panel. The admin.php script is contained in the /extras/ directory. The whole control panel is self-contained and instructions are provided by the script - simply upload and run it. You can also rename it without a problem and/or move it into a different directory (note: moving it will require editing the configuration options at the top of the script). The control panel allows you to edit the settings, trim the cache and view logs.

<hr>
<span style="font-size: 14pt; line-height: 1.3em;">Compatibility</span>

As usual, themes are backwards compatible and no changes are needed to work with 0.6. New options have been introduced so you will to update your settings file. To upgrade from earlier versions, simply use the included admin control panel to regenerate a new settings file - and of course, upload the new set of source files. Upgrade instructions provided in INSTALL.txt, as usual.

<hr>
<span style="font-size: 14pt; line-height: 1.3em;">Preview</span>

- Proxy script
- Admin control panel
Attached Files:
File Type: zip glype-0.6beta.zip (76.0 KB, 183 views)
File Type: zip glype-0.6b2.zip (94.5 KB, 194 views)
File Type: zip glype-0.6b3.zip (93.2 KB, 211 views)
Nick is offline
Country: United Kingdom
 
Old 04-22-2008, 01:57 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2007
Posts: 313
Nick
Default Re: 0.6 beta 3 available

Updates for beta 3:
- Fixed a hardcoded "cURL enabled" message in the admin control panel. Also checks for safe_mode before trying calls to shell_exec().
- Uses the php://input stream for POSTs so we don't need to mess around with the underscore / period issue.
- Cache URL redirect points to the correct place.
- Uses built-in parse_url() function to separate out the URL parts into a $URL array. Note: if your plugins use any of the urlX constants, they will need updating.
- Further reworking of the parser for support of more sites and features.
and many other small changes/fixes.

Regarding the new Queue Transfers option (explained in first post): the distributed settings.php file has this option on but if you're doing an upgrade, when the admin script cannot find a value for a particular option it will assume it should be off. You should manually check it is on the desired setting since upgrading vs a fresh install will leave you with different values. If you had excessive server load before, you will almost certainly want to have this option on.

The timezone used everywhere in the script is now your server's default. In case PHP cannot determine what timezone or you wish to change it, open up /includes/init.php and edit as appropriate (should be self-explanatory).
Nick is offline
Country: United Kingdom
 
Old 04-22-2008, 03:25 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 4
schrutebucks
Default Re: 0.6 beta 3 available

Awesome! I'm going to throw this on a test server to see how it performs. Hopefully no more high CPU usage
schrutebucks is offline
Country: Canada
 
Old 04-22-2008, 03:40 PM   #4 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 4
schrutebucks
Default Re: 0.6 beta 3 available

I'm getting this error with the admin.php file

"Parse error: syntax error, unexpected T_STRING in /home/iwastemy/public_html/root_testfolder/admin.php on line 1852"

It looks like it's having trouble checking if the settings file is writeable or not. I tried to chmod the settings.php file to be writeable, still no dice.
schrutebucks is offline
Country: Canada
 
Old 04-22-2008, 04:10 PM   #5 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 29
darkness193
Default Re: 0.6 beta 3 available

I've updated my site with this and alot of bugs are now gone. The admin script appears to have an error in it because it won't display anything on my server.
darkness193 is offline
Country: United Kingdom
 
Old 04-22-2008, 05:37 PM   #6 (permalink)
Member
 
Join Date: Feb 2008
Posts: 46
Glueeater
Default Re: 0.6 beta 3 available

Hmm..a little weary about this one just becuase of the client-side stuff and knowing the PCs at my school.

I will wait it out and maybe setup a beta site before putting it on my regular.

Thanks for the quick updates though
Glueeater is offline
Country: United States
 
Old 04-22-2008, 08:36 PM   #7 (permalink)
Junior Member
 
Join Date: Jan 2008
Posts: 10
ace2907
Default Re: 0.6 beta 3 available

hey

amazing script Nick!

just wanted to point out a bug

when I run admin.php for the first time, i get this error:

Code:
Notice: Undefined variable: glypeVersion in /home/********/public_html/admin.php on line 1865
ace2907 is offline
Country: United States
 
Old 04-22-2008, 10:53 PM   #8 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 2
SCORPiON
Default Re: 0.6 beta 3 available

It seems, that there are some errors in opening the cookies.php:

Code:
Notice: Undefined variable: options in /X/themes/glype/main.php on line 59

Notice: Undefined index: encodeURL in /X/includes/init.php on line 682

Notice: Undefined index: stripFlash in /X/includes/init.php on line 682
I also tried to change the theme to the new one (i know, there was no need for it )

greetz
SCORPiON is offline
Country: Austria
 
Old 04-22-2008, 11:17 PM   #9 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 2
Saibot84
Default Re: 0.6 beta 3 available

first of all, GREAT WORK with Glype! I always install the newest beta versions just so I can get the most out of proxified Facebook. I haven't posted here before b/c glype has always performed as expected... some FB apps don't work 100%, but I think it's probably the apps' fault since most of the rest of FB works fine.

With that said, I, too, wanted to report that I am getting the same error as
ace2907
Originally Posted by admin.php
Notice: Undefined variable: glypeVersion in /homepages/*****/admin.php on line 1865
Ok, so I tried to setup web_20 as my theme, and it gives me the following msg when using the proxy:
Quote:
Notice: Use of undefined constant proxyTHEMES - assumed 'proxyTHEMES' in /homepages/*****/includes/init.php on line 509
ERROR: Template not found. Looking for glype/sslwarning.page.php

Warning: Cannot modify header information - headers already sent by (output started at /homepages/*****/includes/init.php:509) in /homepages/*****/browse.php on line 982
ERROR: Template not found. Looking for glype/framedForm.inc.php
Saibot84 is offline
Country: United States
 
Old 04-23-2008, 05:32 AM   #10 (permalink)
Senior Member
 
Join Date: Aug 2007
Posts: 313
Nick
Default Re: 0.6 beta 3 available

Sorry, I must have made some last minute fixes/changes that didn't make it into the package. All the above issues are fixed as of now and the updated package uploaded to the first post. The affected files are: /extras/admin.php and /upload/includes/init.php.

Thanks!
Nick is offline
Country: United Kingdom
 
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why cant i download the beta? warman2442 Proxy Discussion 1 04-30-2008 05:42 PM
0.5.3 Public Beta Testing Nick News & Updates 32 02-16-2008 11:34 AM
0.4 beta 3 released Nick News & Updates 21 11-16-2007 12:16 PM
0.4 beta 2 released Nick News & Updates 2 09-25-2007 12:13 PM
0.4 beta now available Nick News & Updates 2 09-11-2007 03:29 PM


All times are GMT -5. The time now is 08:29 PM.
© 2006-2010 Glype. All Rights Reserved.