vincentclee / glype Goto Github PK
View Code? Open in Web Editor NEWGlype proxy is a free, web-based proxy script written in PHP
License: Other
Glype proxy is a free, web-based proxy script written in PHP
License: Other
Can I run it in Cloudflare worker?
After enter url, I try default and simple theme:
ERROR: template failed to load. Please ensure you have correctly installed any custom themes and check you have not removed any files from the default theme.
Add random "Lorem ipsum" from https://loripsum.net/api/5/medium
Parameters are (short, medium, long, verylong)
Edit \themes\default\config.php
$themeReplace['description'] = file_get_contents('http://loripsum.net/api');
I was getting a couple of issues running your code with php8
(v8.0.6)
The first was -> Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /opt/htdocs/admin.php:349
Its depreceated, so I've changed this
if ( ! isset($magicQuotes) ) {
$magicQuotes = get_magic_quotes_gpc();
}
to this
if ( ! isset($magicQuotes) ) {
$magicQuotes = false;
}
and that seems to fix it, def quick-and-dirty - I'm sure you can do better
I was also getting an error on line 991 of browser.php
saying status
was not an int
PHP Warning: curl_exec(): Could not call the CURLOPT_WRITEFUNCTION in /opt/htdocs/browse.php on line 877
PHP Fatal error: Uncaught TypeError: header(): Argument #3 ($response_code) must be of type int, string given in /opt/htdocs/browse.php:991
I fixed this by added a line to check the header line starts Status:
before grabbing the status
, now the proxy mostly works - It seems really odd that the status
thing wasn't a problem before - I'm obviously missing something you've done elsewhere, or how the old library worked??
anyway, this
# Extract the status code (can occur more than once if 100 continue)
if ( $this->status == 0 || ( $this->status == 100 && ! strpos($header, ':') ) ) {
$this->status = substr($header, 9, 3);
}
become this
# Extract the status code (can occur more than once if 100 continue)
if ( $this->status == 0 || ( $this->status == 100 && ! strpos($header, ':') ) ) {
if ( substr($header,0,8) == 'Status: ')
$this->status = intval(substr($header, 9, 3));
}
So now it's mostly working, but I seem to be getting either a very old version of the sites or maybe the mobile version, or an old mobile version? Or maybe the version of the site when it can't find out enough about the client?
I can't see anything obvious in the admin that might fix the web page formatting - any idea???
i am trying to create my own php proxy, but it wont work.
heres my code so far:
https://replit.com/@awdrgyjil1234/simplephpproxy#index.php
how do I fix this?
hi, is it available via docker?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.