PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
medifides
/
wp-content
/
plugins
/
hybridator
<?php /* Plugin Name: Hybridator Plugin URI: https://www.dos-group.com/ Description: Customizations. Version: 20180426 Author: DOS Group Author URI: https://www.dos-group.com/ Text Domain: hybridator Domain Path: /languages License: DOS Group SA */ // Die unless loaded from wordpress framework if ( ! defined( 'WPINC' ) ) die; class Hybridator { public function __construct() { add_action( 'wp_footer', array( $this, 'hybrid_inject_scpt' ), 100 ); //The higher the number, the lower the priority and as a result your hook will be executed further down the page. Enqueued scripts are executed at priority level 20. } public function hybrid_inject_scpt() { echo '<style>.credits-dos { display:inline-block; float:right; line-height:40px; color:#fff; font-size:15px; margin-top:13px; }</style> <script type="text/javascript"> var creditsBy = { constructor: function() { var msg = document.createTextNode("Powered by "); var thespan = document.createElement("span"); thespan.appendChild(msg); var link = document.createElement("a"); link.setAttribute("href", "https://www.dos-group.com/"); link.setAttribute("target", "_blank"); var linkMsg = document.createTextNode("DOS Group SA"); link.appendChild(linkMsg); var container = document.createElement("div"); container.className = "credits-dos"; container.appendChild(thespan); container.appendChild(link); document.querySelector(".footer_background .bottom .container .row .col-md-12").appendChild(container); setFeaturedImg.setElement(); } } var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window["safari"] || safari.pushNotification); var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream var setFeaturedImg; var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; if(isSafari && iOS){ setFeaturedImg = { uqs: "article.hentry .featured-post img", tqs: ".themesflat-boxed .page-title", setElement: function() { var srcImg = document.querySelector(this.uqs).getAttribute("src"); document.querySelector(this.tqs).style.background = "url("+srcImg+") transparent center top no-repeat"; document.querySelector("article.hentry .featured-post").style.display = "none"; } }; }else{ setFeaturedImg = { uqs: "article.hentry .featured-post img", tqs: ".themesflat-boxed .page-title", setElement: function() { var srcImg = document.querySelector(this.uqs).getAttribute("src"); document.querySelector(this.tqs).style.background = "url("+srcImg+") transparent center /cover no-repeat "; document.querySelector("article.hentry .featured-post").style.display = "none"; } }; } if(isIE11){ setFeaturedImg = { uqs: "article.hentry .featured-post img", tqs: ".themesflat-boxed .page-title", setElement: function() { var srcImg = document.querySelector(this.uqs).getAttribute("src"); document.querySelector(this.tqs).style.background = "url("+srcImg+")"; document.querySelector("article.hentry .featured-post").style.display = "none"; } }; } window.onload = function() { var st = setTimeout(creditsBy.constructor, 500); var form = document.querySelector("form label input.search-field"); form.value=""; var titleNoResults = document.querySelector("body.search-no-results div.page-title"); if(titleNoResults){ titleNoResults.style.background = "url(http://sandbox.dos-group.com/medifides/wp-content/uploads/2018/07/header6_p.jpg)"; } }; </script>'; } } $hybridator = new Hybridator();
[-] hybridator.php
[open]
[+]
..
[-] readme.txt
[open]