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 lt IE 9]> | |
| <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> |
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
| $('a[@rel$='external']').click(function(){ | |
| this.target = "_blank"; | |
| }); | |
| /* | |
| Usage: | |
| <a href="http://www.catswhocode.com" rel="external">catswhocode.com</a> | |
| */ |
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 lt IE 9]> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> | |
| <script src="//s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js"></script> | |
| <script src="//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> | |
| <![endif]--> |
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
| #superglobal { | |
| -webkit-overflow-scrolling: touch; | |
| } |
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 | |
| /* | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * PHP 5.4.9 | |
| * | |
| * this is a beginners template for simple encryption decryption | |
| * before using this in production environments, please read about encryption | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' |
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 | |
| $mois = array('00' => "",'01' => "Janvier",'02' => "Février",'03' => "Mars",'04' => "Avril",'05' => "Mai",'06' => "Juin",'07' => "Juillet",'08' => "Août",'09' => "Septembre",'10' => "Octobre",'11' => "Novembre",'12' => "Décembre"); | |
| $jours = array("","Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"); | |
| $jour = $jours[date("N", strtotime($result->date))]; | |
| $mois = $moiss[date("m", strtotime($result->date))]; | |
| ?> |
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
| ############################################################################################ | |
| ## The Master .htaccess | |
| ## | |
| ## Version 3.3 fr | |
| ## | |
| ##----------- | |
| ## Ce fichier est conçu pour être le modèle de fichier .htaccess | |
| ## à mettre sur vos nouveaux sites, augmenter la sécurité et | |
| ## la performance de votre site. Il n'est pas destiné à être juste mis | |
| ## sur votre site. Vous devez passer par toutes ses sections et de le modifier |
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 | |
| $curl_handle=curl_init(); | |
| curl_setopt($curl_handle, CURLOPT_URL, 'http://www.xxxxxx.xx/index.php?option=com_akeeba&view=backup&key=motdepasse_mentionné_dans_les_paramètres'); | |
| curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE); | |
| curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000); | |
| curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1); | |
| $buffer = curl_exec($curl_handle); | |
| curl_close($curl_handle); | |
| if (empty($buffer)) | |
| echo "Sorry, the backup didn't work."; |
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 | |
| global $wp_query; | |
| $postid = $wp_query->post->ID; | |
| echo get_post_meta($postid, 'Your-Custom-Field', true); | |
| wp_reset_query(); | |
| ?> |
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 | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| class WordPress_Plugin_Template_Settings { | |
| private $dir; | |
| private $file; | |
| private $assets_dir; | |
| private $assets_url; | |
| private $settings_base; |