Results tagged “php” from Nothing new here

Update: I decided to post a preview release. It's not tested, because i am not able to test properly right now (my overseas download speed at home in Shanghai is about 2kb/s right now with an enormous package loss). The code needs a clean-up, there's no installation manual and i borrowed some pieces of code from other projects, which will expect a proper attribution. If you decide to try this, please let me know how it went. Since this is just an Web interface, you need to have enhanced-ctorrent installed, i did not try to use ctorrent.
Update 07.07.07: I fixed problems with recent version of enhanced-ctorrent. Make sure you use the latest version "dnh3.1-9". Do
ipkg update; ipkg upgrade enhanced-ctorrentUpdate 25.07.07: Fixed the link in the installation howto... sorry.
Update 17.08.07: Quick fix in inc_functions.php for the stupid, no options "ps".
Update 21.01.09: Included many fixes, most stable release to date ;-)
Get the current Version from: Torrential on Google Code, License: GPL 2.0
Please Use the comments here or on my Torrential Google Code page to report bugs. Use the issues function of google code to submit screenshots, fixes, patches, etc! Thanks a lot!
Quick Installation HowTo on NSLU2 with Unslung 6.8:
ipkg update
ipkg install enhanced-ctorrent
ipkg install appweb
/opt/etc/init.d/S81appweb restartcd /opt/var/appWeb/web/
#get the latest link from the google code site linked above, example:
curl -O http://oz4projects.googlecode.com/files/torrentialxxxxxxx.zip
unzip torrential*.zip
chown -R nobody.everyone torrential/
mkdir /public/torrent/
chmod 777 /public/torrent/
vi inc_config.php #(have a look inside)
# visit: http://nslu-ip:7777/torrential/index.php
# user: giveme pass: torrent
# click on Help.
-
eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache.
-
China's Three Gorges Dam reservoir has been fouled by pesticides, fertilizers and sewage, and more than 600 kilometers of the Yangtze river are critically polluted(tags: china environment)
-
(tags: funny)
-
The state of XHTML on the Web today is more broken than the state of HTML, and most people don't realize...
-
Great new theme for the google reader. CSS FTW!
Should I ever need to detect with PHP if a user has IPv6, this code snipplet should do the job:
<?php
$ip = getenv ("REMOTE_ADDR");
if (substr_count($ip,":") > 0
&& substr_count($ip,".") == 0) {
echo 'You are using <a '
.'href="http://www.dnsstuff.com/tools/whois.ch?ip='
. $ip . '"> IPv6 </a>';
} else {
echo "You are using IPv4";
}
?>


