1. Start
  2. Requirements
  3. Installation
  4. Facebook API
  5. Customization
    1. Basic Settings
    2. SEO Settings
    3. EU Cookie Law
  6. Google Static Map API
  7. Updates
  8. Before Buy

Domain Statistic Tool

Documentation


Thank you for purchasing this item. If you have have some problems, please contact me: roman.codecanyon@gmail.com


Requirements


Installation


Make sure that directory /root/cache/ has 0777 permissions (should be executable)

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



Facebook API


To get number of shares you must create facebook developer account and facebook web app. Read here how to do it: https://developers.facebook.com/docs/apps/register Once you create www app, get app id and app secret from Facebook Developer Dashboard and put them into ~root/config/facebook.php

Customization


Basic Settings

Open root/config/app.php file:

$config['admin_email'] - set your email address
$config['rewrite'] - Set to false if mod rewrite module is disabled, true other way
$config['captcha'] - Wheter to show captcha (Default: true). Modify this parameter on own risk! I'm not responsible if your app will be banned due to spam
$config['web_cache_time'] - Domain statistic cache time in seconds. One day is recommended value
$config['stat_cache_time'] - Statistic cache time. Number of added domains in the time interval (Total, monthly, daily). Displayed on index page
$config['webs_on_page'] - Count of websites  on a page in "Upcoming" module
$config['upcoming_max'] - Number of upcoming websites. Set to -1 to display all
$config['gmaps_api_key'] - Set your google maps api key (Static Maps API) to display website location on map. Read here how to obtain Static Map API key.
 

SEO Settings and Og Meta Properties

All seo and meta properties phrases located in /root/app/meta.php

MySQL Settings

Mysql settings located in /root/app/db.php



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.

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





To obtain Static Map API key do following steps:

  1. Go to Google Developer Console.
  2. If you don't have a project then create it.
  3. Choose project.
  4. At the left menu go to API Manager->Library
  5. Search for "Google Static Map"
  6. Click "enable".
  7. At the left menu go to API Manager -> Credentials.
  8. Click on "Create credentials" -> API key. If you want, you can protect this key by entering IP address or host or etc.
  9. Copy key

Updates


Version 0.1

Already bought?
New files:

class/class.whois.php
static/images/whois.png


Modified Files:

captcha/captcha.php
class/class.location.php
class/class.response.php
controllers/ajax.php
controllers/domain.php
tmpl/form.php
tmpl/new.php
tmpl/domain.php
static/js/domainstat.js
static/css/style.css
helpers.php
How to fix bug with Geo Location API?
Replace your old file class/class.location.php with new one.
How to implement new features?
  1. Run following queries in MySQL
    1. CREATE TABLE `ds_whois` ( `SiteID` bigint(20) unsigned NOT NULL, `whois` text NULL, PRIMARY KEY (`SiteID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    2. INSERT INTO `ds_whois` (`SiteID`) SELECT SiteID FROM ds_domain;
  2. Insert $config['captcha'] = true; in /config/app.php.
  3. Copy Modified files and New files into your project
  4. Ctrl + F5 in browser to clear cache

NOTE! All existing domains will not have WHOIS information. If you want, you can update it yourself in application. New added domains will have WHOIS information.

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.