# Webmaster Tools

## Documentation

- Created: 03/10/2011
- latest Update: 04/19/2013
- By: PHP5 Developer
- Email: roman.codecanyon@gmail.com

Thank you for purchasing this item. If you have have some problems, please contact me

### Requirements

- cURL Extension
- GD Extension with FreeType library
- Mcrypt Extension (MCRYPT_RIJNDAEL_256 ciphername)
- MySQLi Extension
- Multibyte String Functions
- Script execution time must be greater than 60 seconds
- You can not run this script on a free web hosting, because their IPs banned on Google, Twitter, Facebook because of a spam
- Rewrite module (optional)

### Installation

- Upload files to your web server or hosting
- Open /root/config/db.php and set mysql settings
- Import webmaster_tools.sql in MySQL
- See Customization Section

Note. If you installed script not in web-root directory then you need to add RewriteBase /subdir/ into .htaccess file after RewriteEngine on

### Customization

#### App Settings

~/root/config/app.php file:

- admin_email - set your email address
- rewrite - Set to false if mod rewrite module is disabled, true other way
- gmaps_api_key - Set your google maps api key (Static Maps API) to display website location on map

#### Antispam

~/root/config/antispam.php file:

- background - Image Background color
- text_color - Text Color
- font_size - The font size between x and y . Value must be an array
- font_family - List of font's. Fonts must locate in ~/root/fonts/ folder. Value must be an array

#### HTTP Headers

~/root/config/browser.php file:

- The list of user agents used in HTTP Headers

#### Result Caching

~/root/config/cache.php file:

Each module which is using 3-rd party API's must cache data to reduce duplicate requests.
'module_name' => 'time_in_seconds',
DO NOT CHANGE MODULE NAME

#### Captcha

~/root/config/captcha.php file:

You can configure here which module should use captcha.

#### Mcrypt

~/root/config/crypt.php file:

- key - Your secret key
- ciphername - MCRYPT_ciphername constant
- modename - Default: 'ofb'
- source - Default MCRYPT_DEV_RANDOM . Use MCRYPT_RAND on Windows platform instead

#### Database Conf

~/root/config/db.php file:

- host - MySQL Host
- username - Mysql User
- passwd - Password
- dbname - Database name

#### Meta Tags Generator

~/root/config/metagen.php file:

The options which are using Meta Tags Generation module.

#### OG Properties

~/root/config/og.php file:

Open graph meta tag

#### Password Generator

~/root/config/password.php file:

The list of option for Password Generation module.

#### Routes

~/root/config/routes.php file:

Here you can change module urls to your own.
'module_name' =>'your-custom-url',
DO NOT CHANGE MODULE NAME

#### SEO

~/root/config/seo.php file:

Here you can specify title, keywords, description for each module.

#### EU Cookie Law

EUROPA websites must follow the Commission's guidelines on privacy and data protection and inform users that cookies are not being used to gather information unnecessarily.
All websites owned in the EU or targeted towards EU citizens, are now expected to comply with the law. If it is relevant for you and you are using 3rd party tools to analyze statistic, ads campaigns which are using cookies, then you need to inform user about it.
A simple floating widget is used which is enabled by default. All configuration settings are stored in ~root/config/cookieconsent.php file.

    return array(
        'cookieconsent_enable'=>true, // whether to show widget
        'cookieconsent_learnmore'=>"Learn more", // Learn more link text
        'cookieconsent_dismiss'=>"Got it!", // User confirmation text
        'cookieconsent_message'=>"This website uses cookies to ensure you get the best experience on our website.", // Explanation
        'cookieconsent_theme'=>"light-floating", // dark-top, dark-floating, dark-bottom, light-floating, light-top, light-bottom
        'cookieconsent_link'=>"http://www.google.com/intl/en/policies/privacy/partners/", // Leave empty to hide link (Learn more)
    );

### Before Buy

You can not run this script on a free web hosting, because their IPs banned on Google, Twitter, Facebook because of a spam.
Also, I am not responsible if your server's IP will be banned and script will not be able to get information from public API's.