Changeset 1214854
- Timestamp:
- 08/07/2015 12:32:28 PM (10 years ago)
- Location:
- seo-consultant
- Files:
-
- 68 edited
-
tags/1.0/trunk/app/AutoLoader.php (modified) (1 diff)
-
tags/1.0/trunk/app/SeoConsultant.php (modified) (4 diffs)
-
tags/1.0/trunk/app/modules/AnalyzeRequest.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/BrokenLinkChecker.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/CheckLink.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/CheckLiveLink.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/Database.php (modified) (3 diffs)
-
tags/1.0/trunk/app/modules/DetectBrokenLinks.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/GenerateCSV.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/GeneratePDF.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/Logger.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/Report.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/RequestFilter.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/Rewrite.php (modified) (1 diff)
-
tags/1.0/trunk/app/modules/RewriteAccess.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/AnchorTextDistribution.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/BlockedIps.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/BrokenLinks.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/Dashboard.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/Referers.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/ReferringPages.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/Settings.php (modified) (1 diff)
-
tags/1.0/trunk/app/templates/Stats.php (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/AnchorDistributionMainCtrl.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/BlockedIPsMainController.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/BrokenLinksMainController.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/ReferrersMainController.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/ReferringPagesMainController.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/StatsMainController.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/controllers/controllers.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/seo-bootstrap.js (modified) (1 diff)
-
tags/1.0/trunk/assets/javascripts/services/seo-async-service.js (modified) (1 diff)
-
tags/1.0/trunk/plugin.php (modified) (6 diffs)
-
tags/1.0/trunk/readme.txt (modified) (1 diff)
-
trunk/app/AutoLoader.php (modified) (1 diff)
-
trunk/app/SeoConsultant.php (modified) (4 diffs)
-
trunk/app/modules/AnalyzeRequest.php (modified) (1 diff)
-
trunk/app/modules/BrokenLinkChecker.php (modified) (1 diff)
-
trunk/app/modules/CheckLink.php (modified) (1 diff)
-
trunk/app/modules/CheckLiveLink.php (modified) (1 diff)
-
trunk/app/modules/Database.php (modified) (3 diffs)
-
trunk/app/modules/DetectBrokenLinks.php (modified) (1 diff)
-
trunk/app/modules/GenerateCSV.php (modified) (1 diff)
-
trunk/app/modules/GeneratePDF.php (modified) (1 diff)
-
trunk/app/modules/Logger.php (modified) (1 diff)
-
trunk/app/modules/Report.php (modified) (1 diff)
-
trunk/app/modules/RequestFilter.php (modified) (1 diff)
-
trunk/app/modules/Rewrite.php (modified) (1 diff)
-
trunk/app/modules/RewriteAccess.php (modified) (1 diff)
-
trunk/app/templates/AnchorTextDistribution.php (modified) (1 diff)
-
trunk/app/templates/BlockedIps.php (modified) (1 diff)
-
trunk/app/templates/BrokenLinks.php (modified) (1 diff)
-
trunk/app/templates/Dashboard.php (modified) (1 diff)
-
trunk/app/templates/Referers.php (modified) (1 diff)
-
trunk/app/templates/ReferringPages.php (modified) (1 diff)
-
trunk/app/templates/Settings.php (modified) (1 diff)
-
trunk/app/templates/Stats.php (modified) (1 diff)
-
trunk/assets/javascripts/controllers/AnchorDistributionMainCtrl.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/BlockedIPsMainController.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/BrokenLinksMainController.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/ReferrersMainController.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/ReferringPagesMainController.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/StatsMainController.js (modified) (1 diff)
-
trunk/assets/javascripts/controllers/controllers.js (modified) (1 diff)
-
trunk/assets/javascripts/seo-bootstrap.js (modified) (1 diff)
-
trunk/assets/javascripts/services/seo-async-service.js (modified) (1 diff)
-
trunk/plugin.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
seo-consultant/tags/1.0/trunk/app/AutoLoader.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 7 2 8 class AutoLoader 3 9 { -
seo-consultant/tags/1.0/trunk/app/SeoConsultant.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 2 7 require_once 'AutoLoader.php'; 8 9 3 10 class SeoConsultant 4 11 { … … 66 73 //Enqueue Scripts and Stylesheets 67 74 add_action('admin_enqueue_scripts', array($this, 'loadStylesheets'), 1 ); 68 add_action('admin_enqueue_scripts', array($this, 'loadScripts'), 1 ); 75 76 add_action( 'current_screen', array($this, 'do_in_screen'),1); 69 77 70 78 //Initialize Ajax Handler … … 182 190 } 183 191 192 public function do_in_screen(){ 193 $current_screen = get_current_screen(); 194 195 if($current_screen->base === 'dashboard'){ 196 add_action('admin_enqueue_scripts', array($this, 'loadScripts'), 1); 197 } 198 } 199 184 200 /** 185 201 * Helper method for logging potential problematic outputs … … 239 255 240 256 257 258 241 259 } -
seo-consultant/tags/1.0/trunk/app/modules/AnalyzeRequest.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 * Date: 14/7/2015 6 * File: AnalyzeRequest.php 7 * Description: ${CARET} 8 */ 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/BrokenLinkChecker.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 * Date: 13/7/2015 6 * File: BrokenLinkChecker.php 7 */ 2 8 3 9 class BrokenLinkChecker -
seo-consultant/tags/1.0/trunk/app/modules/CheckLink.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 31/7/2015 5 * File: CheckLink.php 6 * Description: ${CARET} 7 */ 2 8 3 9 namespace SeoConsultant; -
seo-consultant/tags/1.0/trunk/app/modules/CheckLiveLink.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 15/7/2015 5 * File: CheckLiveLink.php 6 * Description: Search a url if exist in referer. 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/Database.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 2 6 namespace SeoConsultant; 3 7 … … 117 121 } 118 122 123 //This function doesn't care the domain having links to display it! 124 public function getAllDomains($filter = false){ 125 global $wpdb; 126 $filter = ($filter) ? $filter : array('is_blocked' => 0); 127 $wpdb->get_results( $this->prepare("SELECT DOMAIN_NAME FROM " . self::$HOSTINDEX . " WHERE IS_BLOCKED='%d'",array((int) $filter['is_blocked'])), ARRAY_A); 128 } 129 119 130 120 131 /** … … 157 168 if(!empty($ignored_list)){ 158 169 global $wpdb; 159 $ignoredregexp = implode('|', $ignored_list);170 $ignoredregexp = strtolower(implode('|', $ignored_list)); 160 171 return $wpdb->get_results("SELECT ID from " . self::$HOSTINDEX . " where DOMAIN_NAME REGEXP '$ignoredregexp' AND IGNORED=0;", ARRAY_A); 161 172 } -
seo-consultant/tags/1.0/trunk/app/modules/DetectBrokenLinks.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 7 2 8 class DetectBrokenLinks 3 9 { -
seo-consultant/tags/1.0/trunk/app/modules/GenerateCSV.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 1/8/2015 5 * File: GenerateCSV.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/GeneratePDF.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 2/8/2015 5 * File: GeneratePDF.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/Logger.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 2 6 namespace SeoConsultant; 3 7 -
seo-consultant/tags/1.0/trunk/app/modules/Report.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 6 2 7 class Report 3 8 { -
seo-consultant/tags/1.0/trunk/app/modules/RequestFilter.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 16/7/2015 5 * File: RequestFilter.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/Rewrite.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Rewrite.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/modules/RewriteAccess.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 29/7/2015 5 * File: RewriteAccess.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/AnchorTextDistribution.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 1/8/2015 5 * File: AnchorTextDistribution.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/BlockedIps.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: BlockedIps.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/BrokenLinks.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: BrokenLinks.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/Dashboard.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 2 6 namespace SeoConsultant; 3 7 -
seo-consultant/tags/1.0/trunk/app/templates/Referers.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Referers.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/ReferringPages.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 29/7/2015 5 * File: ReferringPages.php 6 * Description: ${CARET} 7 */ 2 8 3 9 namespace SeoConsultant; -
seo-consultant/tags/1.0/trunk/app/templates/Settings.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Settings.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/app/templates/Stats.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 27/7/2015 5 * File: Stats.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/AnchorDistributionMainCtrl.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 1/8/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/BlockedIPsMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 var blockedIPsMainCtrl = function ($scope, $interval, asyncService) { -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/BrokenLinksMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/ReferrersMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/ReferringPagesMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ; 2 6 (function () { -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/StatsMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 5 1 6 ;(function(){ 2 7 //Do code -
seo-consultant/tags/1.0/trunk/assets/javascripts/controllers/controllers.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ -
seo-consultant/tags/1.0/trunk/assets/javascripts/seo-bootstrap.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 1 4 ;(function(){ 2 5 angular.element(document).ready(function () { -
seo-consultant/tags/1.0/trunk/assets/javascripts/services/seo-async-service.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 29/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Code -
seo-consultant/tags/1.0/trunk/plugin.php
r1214107 r1214854 2 2 /** 3 3 * Plugin Name: SEO Consultant 4 * Plugin URI: http:// ketchupthemes.com/seo-consultant5 * Description: The Ultimate WordPress SEO Tool For Backlinks Reporting and Off Page Analysis.6 * Author: Alex Itsios7 * Author URI: http:// ketchupthemes.com/alex-itsios4 * Plugin URI: http://www.infogeek.gr 5 * Description: An plugin which offers all the functionality to protect your website and make SEO a bit easier 6 * Author: Konstantinos Tsatsarounos 7 * Author URI: http://www.infogeek.gr 8 8 * License: GPL-2.0+ 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 51 51 $db->setupDatabase(); 52 52 } 53 54 53 register_activation_hook(_SEOCONS_FILE, 'seo_consultant_activation'); 55 54 } … … 64 63 65 64 if ($is_data) { 66 global $wpdb;67 65 $db = \SeoConsultant\Database::getInstance(); 68 $blocked_referrers = $ wpdb->get_results("SELECT DOMAIN_NAME FROM " . $db::$HOSTINDEX . " WHERE IS_BLOCKED='1'", ARRAY_A);66 $blocked_referrers = $db->getAllDomains(array('is_blocked' => 1)); 69 67 70 68 $is_forbitten_header = false; 71 foreach ($blocked_referrers as $blocked_referrer) { 72 if (preg_match('/(' . $blocked_referrer['DOMAIN_NAME'] . ')/', $analyzer->referer['domain'])) { 73 $is_forbitten_header = true; 69 if(!empty($blocked_referrers)) { 70 foreach ($blocked_referrers as $blocked_referrer) { 71 if (preg_match('/(' . $blocked_referrer['DOMAIN_NAME'] . ')/', $analyzer->referer['domain'])) { 72 $is_forbitten_header = true; 73 } 74 74 } 75 75 } 76 echo $is_forbitten_header; 77 76 78 77 if ($is_forbitten_header) { 79 78 header("Location: " . $_SERVER['HTTP_REFERER'], true, 303); … … 83 82 } 84 83 } 85 86 87 84 } 88 85 … … 104 101 //get type value 105 102 $type = (isset($_GET['type'])) ? filter_input(INPUT_GET, 'type', FILTER_SANITIZE_STRING) : false; 106 $supported = array('pdf', 'csv');107 103 108 104 //redirect to the file generator responsible for the requested type, if type is not defined, redirects … … 121 117 } 122 118 } 123 124 119 add_action('init', 'seo_downloading_page', 1); 125 120 } -
seo-consultant/tags/1.0/trunk/readme.txt
r1214121 r1214854 1 1 === SEO Consultant === 2 2 3 Contributors: alexitsios, konstantinos_tsatsarounos3 Contributors: alexitsios, Konstantinos_Tsatsarounos 4 4 Tags: seo, backlinks , seo monitor, seo analysis 5 5 Requires at least: 4.0 -
seo-consultant/trunk/app/AutoLoader.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 7 2 8 class AutoLoader 3 9 { -
seo-consultant/trunk/app/SeoConsultant.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 2 7 require_once 'AutoLoader.php'; 8 9 3 10 class SeoConsultant 4 11 { … … 66 73 //Enqueue Scripts and Stylesheets 67 74 add_action('admin_enqueue_scripts', array($this, 'loadStylesheets'), 1 ); 68 add_action('admin_enqueue_scripts', array($this, 'loadScripts'), 1 ); 75 76 add_action( 'current_screen', array($this, 'do_in_screen'),1); 69 77 70 78 //Initialize Ajax Handler … … 182 190 } 183 191 192 public function do_in_screen(){ 193 $current_screen = get_current_screen(); 194 195 if($current_screen->base === 'dashboard'){ 196 add_action('admin_enqueue_scripts', array($this, 'loadScripts'), 1); 197 } 198 } 199 184 200 /** 185 201 * Helper method for logging potential problematic outputs … … 239 255 240 256 257 258 241 259 } -
seo-consultant/trunk/app/modules/AnalyzeRequest.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 * Date: 14/7/2015 6 * File: AnalyzeRequest.php 7 * Description: ${CARET} 8 */ 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/BrokenLinkChecker.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 * Date: 13/7/2015 6 * File: BrokenLinkChecker.php 7 */ 2 8 3 9 class BrokenLinkChecker -
seo-consultant/trunk/app/modules/CheckLink.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 31/7/2015 5 * File: CheckLink.php 6 * Description: ${CARET} 7 */ 2 8 3 9 namespace SeoConsultant; -
seo-consultant/trunk/app/modules/CheckLiveLink.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 15/7/2015 5 * File: CheckLiveLink.php 6 * Description: Search a url if exist in referer. 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/Database.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 2 6 namespace SeoConsultant; 3 7 … … 117 121 } 118 122 123 //This function doesn't care the domain having links to display it! 124 public function getAllDomains($filter = false){ 125 global $wpdb; 126 $filter = ($filter) ? $filter : array('is_blocked' => 0); 127 $wpdb->get_results( $this->prepare("SELECT DOMAIN_NAME FROM " . self::$HOSTINDEX . " WHERE IS_BLOCKED='%d'",array((int) $filter['is_blocked'])), ARRAY_A); 128 } 129 119 130 120 131 /** … … 157 168 if(!empty($ignored_list)){ 158 169 global $wpdb; 159 $ignoredregexp = implode('|', $ignored_list);170 $ignoredregexp = strtolower(implode('|', $ignored_list)); 160 171 return $wpdb->get_results("SELECT ID from " . self::$HOSTINDEX . " where DOMAIN_NAME REGEXP '$ignoredregexp' AND IGNORED=0;", ARRAY_A); 161 172 } -
seo-consultant/trunk/app/modules/DetectBrokenLinks.php
r1214107 r1214854 1 1 <?php 2 3 /** 4 * Created by Konstantinos Tsatsarounos<[email protected]> 5 */ 6 7 2 8 class DetectBrokenLinks 3 9 { -
seo-consultant/trunk/app/modules/GenerateCSV.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 1/8/2015 5 * File: GenerateCSV.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/GeneratePDF.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 2/8/2015 5 * File: GeneratePDF.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/Logger.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 2 6 namespace SeoConsultant; 3 7 -
seo-consultant/trunk/app/modules/Report.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 6 2 7 class Report 3 8 { -
seo-consultant/trunk/app/modules/RequestFilter.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 16/7/2015 5 * File: RequestFilter.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/Rewrite.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Rewrite.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/modules/RewriteAccess.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 29/7/2015 5 * File: RewriteAccess.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/AnchorTextDistribution.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 1/8/2015 5 * File: AnchorTextDistribution.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/BlockedIps.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: BlockedIps.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/BrokenLinks.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: BrokenLinks.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/Dashboard.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 */ 5 2 6 namespace SeoConsultant; 3 7 -
seo-consultant/trunk/app/templates/Referers.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Referers.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/ReferringPages.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 29/7/2015 5 * File: ReferringPages.php 6 * Description: ${CARET} 7 */ 2 8 3 9 namespace SeoConsultant; -
seo-consultant/trunk/app/templates/Settings.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 14/7/2015 5 * File: Settings.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/app/templates/Stats.php
r1214107 r1214854 1 1 <?php 2 /** 3 * Created by Konstantinos Tsatsarounos<[email protected]> 4 * Date: 27/7/2015 5 * File: Stats.php 6 * Description: ${CARET} 7 */ 8 2 9 namespace SeoConsultant; 3 10 -
seo-consultant/trunk/assets/javascripts/controllers/AnchorDistributionMainCtrl.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 1/8/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/trunk/assets/javascripts/controllers/BlockedIPsMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 var blockedIPsMainCtrl = function ($scope, $interval, asyncService) { -
seo-consultant/trunk/assets/javascripts/controllers/BrokenLinksMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/trunk/assets/javascripts/controllers/ReferrersMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Do code -
seo-consultant/trunk/assets/javascripts/controllers/ReferringPagesMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 1 5 ; 2 6 (function () { -
seo-consultant/trunk/assets/javascripts/controllers/StatsMainController.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 4 5 1 6 ;(function(){ 2 7 //Do code -
seo-consultant/trunk/assets/javascripts/controllers/controllers.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ -
seo-consultant/trunk/assets/javascripts/seo-bootstrap.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 30/7/2015. 3 */ 1 4 ;(function(){ 2 5 angular.element(document).ready(function () { -
seo-consultant/trunk/assets/javascripts/services/seo-async-service.js
r1214107 r1214854 1 /** 2 * Created by NEOGEEK on 29/7/2015. 3 */ 4 1 5 ;(function(){ 2 6 //Code -
seo-consultant/trunk/plugin.php
r1214107 r1214854 2 2 /** 3 3 * Plugin Name: SEO Consultant 4 * Plugin URI: http:// ketchupthemes.com/seo-consultant5 * Description: The Ultimate WordPress SEO Tool For Backlinks Reporting and Off Page Analysis.6 * Author: Alex Itsios7 * Author URI: http:// ketchupthemes.com/alex-itsios4 * Plugin URI: http://www.infogeek.gr 5 * Description: An plugin which offers all the functionality to protect your website and make SEO a bit easier 6 * Author: Konstantinos Tsatsarounos 7 * Author URI: http://www.infogeek.gr 8 8 * License: GPL-2.0+ 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 51 51 $db->setupDatabase(); 52 52 } 53 54 53 register_activation_hook(_SEOCONS_FILE, 'seo_consultant_activation'); 55 54 } … … 64 63 65 64 if ($is_data) { 66 global $wpdb;67 65 $db = \SeoConsultant\Database::getInstance(); 68 $blocked_referrers = $ wpdb->get_results("SELECT DOMAIN_NAME FROM " . $db::$HOSTINDEX . " WHERE IS_BLOCKED='1'", ARRAY_A);66 $blocked_referrers = $db->getAllDomains(array('is_blocked' => 1)); 69 67 70 68 $is_forbitten_header = false; 71 foreach ($blocked_referrers as $blocked_referrer) { 72 if (preg_match('/(' . $blocked_referrer['DOMAIN_NAME'] . ')/', $analyzer->referer['domain'])) { 73 $is_forbitten_header = true; 69 if(!empty($blocked_referrers)) { 70 foreach ($blocked_referrers as $blocked_referrer) { 71 if (preg_match('/(' . $blocked_referrer['DOMAIN_NAME'] . ')/', $analyzer->referer['domain'])) { 72 $is_forbitten_header = true; 73 } 74 74 } 75 75 } 76 echo $is_forbitten_header; 77 76 78 77 if ($is_forbitten_header) { 79 78 header("Location: " . $_SERVER['HTTP_REFERER'], true, 303); … … 83 82 } 84 83 } 85 86 87 84 } 88 85 … … 104 101 //get type value 105 102 $type = (isset($_GET['type'])) ? filter_input(INPUT_GET, 'type', FILTER_SANITIZE_STRING) : false; 106 $supported = array('pdf', 'csv');107 103 108 104 //redirect to the file generator responsible for the requested type, if type is not defined, redirects … … 121 117 } 122 118 } 123 124 119 add_action('init', 'seo_downloading_page', 1); 125 120 } -
seo-consultant/trunk/readme.txt
r1214121 r1214854 1 1 === SEO Consultant === 2 2 3 Contributors: alexitsios, konstantinos_tsatsarounos3 Contributors: alexitsios, Konstantinos_Tsatsarounos 4 4 Tags: seo, backlinks , seo monitor, seo analysis 5 5 Requires at least: 4.0
Note: See TracChangeset
for help on using the changeset viewer.