Thursday, 31 March 2016

How to move your web folder in the account on freeshells.org!

Run ssh and login with your own account (ex. fs-youraccount)

check the path where is located your web area by going up for 2 folders and changing to the web directory

In my case my home folder is:
/var/www/clients/client456/web303/home/fs-guida/
 and my web folder is
/var/www/clients/client456/web303/web

Just create a symbolic mlink
ln -s /var/www/clients/client456/web303/web /var/www/clients/client456/web303/home/fs-guida/

And now you can see your "web" subfolder via ftp.

That's all :)

If you need a basic (italian) guide to have a new shell and website for free follow this link:
http://guida.freeshells.org/
La guida per avere una shell gratis e farci girare un bnc o psybot o altro.

Get the version of opencart from the index file using an external script.

If you are writing standalone scripts that are using the informations from opencart this small function can be useful. It will return the current version of opencart.



function getcurrentversion($indexfile='index.php'){
    if(file_exists($indexfile)) {
        $fd = fopen($indexfile,'r');
        if(empty($fd)){return false;}
        while (!feof($fd)) {
            $buffer = fgets($fd);
            if(preg_match("#define\('VERSION', '(.*?)'\);#",$buffer,$matches)){
                fclose($fd);
                return $matches[1];
            }
        }
        fclose($fd);
    } else {
        return false;
    }
}


I add also a switch with different opencart versions. Not very useful but there are also older and not (not anymore) documented versions.



switch($version){
    case '2.2.0.0':
    break;
    case '2.1.0.2':
    break;
    case '2.1.0.1':
    break;
    case '2.0.3.1':
    break;
    case '2.0.2.0':
    break;
    case '2.0.1.1':
    break;
    case '2.0.1.0':
    break;
    case '2.0.0.0':
    break;
    case '1.5.6.4':
    break;
    case '1.5.6.3':
    break;
    case '1.5.6.2':
    break;
    case '1.5.6.1':
    break;
    case '1.5.6':
    break;
    case '1.5.5.1':
    break;
    case '1.5.4.1':
    break;
    case '1.5.4':
    break;
    case '1.5.0':
    break;
    case '1.5.0.1':
    break;
    case '1.5.0.2':
    break;
    case '1.5.0.3':
    break;
    case '1.5.0.4':
    break;
    case '1.5.0.5':
    break;
    case '1.5.1':
    break;
    case '1.5.1.1':
    break;
    case '1.5.1.2':
    break;
    case '1.5.1.3':
    break;
    case '1.5.2':
    break;
    case '1.5.2.1':
    break;
    case '1.5.3':
    break;
    case '1.5.3.1':
    break;
    case default
        die('Cannot determine your Opencart Version');
    break;
}

Friday, 25 March 2016

how to get out of DFU mode on iphone 6 iphone 5 iphone 4 iphone 3

Just push the home and the power button for around 5-10 seconds

Monday, 21 March 2016

What is the most common resolution for desktop and mobiles in 2016?


The most common resolution on desktops is 1366x768 followed by 1960x1080
The most used resolution on mobile devices (smartphones) is  360x640




Source: w3counter, w3schools, statcounter

Thursday, 17 March 2016

Portable ASP Web Server for Windows! Definitive Solution to not waste time!

If you don't want to install a lot of useless stuff on your computer I highly recommend to use

Baby Web Server
http://www.pablosoftwaresolutions.com/html/baby_web_server.html

This is the fastest, simple, best, portable solution to have a webserver that supports Microsoft ASP (Active Server Pages).

It's simplicity is a miracle if confronted with all the stuff that you need to do with an iis installation and configuration.

It just Works!

how to refresh Wordfence Falcon Cache - wordpress plugin

The fastest way to *refresh* Wordfence Falcon Cache is to Disable and Reenable it from the "Performance Setup"!


OTHERWISE

delete all the files from within

That easy? well, yes ...

Remember to manually backup not only the .htaccess but also your wordpress.




Monday, 14 March 2016

Forbidden tiki-install.php - [SOLUTION]

403  Forbidden tiki-install.php

When this error happens during the installation
403 Forbidden You don't have permission to access /tiki-install.php on this server.

In most cases it's not an error related to the files permissions.

Check your error logs before anything so that you can solve the specific problem as fast as possible.

In my case I got this error:
[rewrite:error] [pid 1964:tid 2044] [client ::1:11439] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : tiki-install.php, referer: http://localhost/tikiwiki/tiki-install.php


And solved by configuring the htaccess with:

Options +FollowSymLinks
If you have installed tikiwiki in a subfolder also remember to change the rewritebase (ex. with tikiwiki):

RewriteBase   /tikiwiki/


Thursday, 3 March 2016

what is tppabs="#" tag?

tppabs="#" is a tag added by teleport pro. If you have grabbed your website you can remove that tag without big risks.

Before removing the tags always backup your pages.

Twitter Delicious Facebook Digg Stumbleupon Favorites More