This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Dominable.com | |
| Description: Ejemplo de plugin para animar a hacerlos | |
| Author: Alex Moleiro | |
| Version: 0.1 Beta | |
| Author URI: http://twitter.com/MoleiroAlex | |
| License: WTFPL | |
| License URI: http://www.wtfpl.net/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function bloquerEntradaTraficoPorIp($ip){ | |
| $comando = "/sbin/iptables -I INPUT -s " . $ip . " -j DROP"; //178.33.133.172 | |
| shell_exec($comando); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function setStrIPsConectadas(){ | |
| echo $this->ipConectadasStr= shell_exec("netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Util.isScrolledIntoView=function(elem) | |
| { | |
| var docViewTop = $(window).scrollTop(); | |
| var docViewBottom = docViewTop + $(window).height(); | |
| var elemTop = $(elem).offset().top; | |
| var elemBottom = elemTop + $(elem).height(); | |
| return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| .embed-container { | |
| position: relative; padding-bottom: 69.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; | |
| min-width: 250px;} | |
| .embed-container iframe, .embed-container object, .embed-container embed | |
| { position: absolute; top: 0; left: 0; width: 100%; height: 100%; | |
| } | |
| </style> | |
| <div class='embed-container'> | |
| <iframe src='http://www.youtube.com/embed/MtgwHazD1Ok' frameborder='0' allowfullscreen></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/FTPPassiveMode | |
| nano /etc/pure-ftpd.conf | |
| service iptables restart | |
| nano /etc/sysconfig/iptables-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * from cesta_detalle cd | |
| where idproducto = 'dominio_registro' | |
| and | |
| ( | |
| idcesta_detalle= | |
| (select idcesta_detalle_parent | |
| from cesta_detalle cdd | |
| where cd.idcesta_detalle=cdd.idcesta_detalle_parent | |
| ) | |
| or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? // http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/XmlApi | |
| $acctconf = array( | |
| "username" =>$username, | |
| "domain" =>$dominio, | |
| //"plan" =>"default", | |
| "password" =>$pin, | |
| "contactemail"=>$email, | |
| "language"=>"es_es", | |
| "mxcheck"=>"remote" | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if $subcategorias neq '0'} | |
| {foreach from=$subcategorias key=idcategoria item=v} | |
| {assign var=var value=1} // Asignación variable | |
| {foreach from=$v.fotos key=k item=it } | |
| {assign var=var value=$var+1} // Modificación variable | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getTldPorId() | |
| { | |
| var IDs = []; | |
| $("#widgetBusqueda").find("[tld]").each(function() { | |
| IDs.push($(this).attr("tld")); //IDs.push(this.id); | |
| }); | |
| return IDs; | |
| } |