This file contains 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 | |
function clearOption($uniqid,$name) { | |
/* Suppression de la valeur en session ainsi que MySQL */ | |
unset($_SESSION['options'][$name]); | |
mysql_query("DELETE FROM users_options WHERE uniqid = '".mysql_real_escape_string($uniqid)."' AND name = '".mysql_real_escape_string($name)."' LIMIT 1"); | |
return true; |
This file contains 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
# Add local-only domains here, queries in these domains are answered | |
# from /etc/hosts or DHCP only. | |
local=/localnet/ |
This file contains 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
# LESS CSS | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^css/(.+).css$ /less.php?route=css/$1.less [L,QSA] |
This file contains 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 | |
session_start(); | |
$locale = "fr_FR"; | |
putenv("LC_ALL=".$locale); | |
setlocale(LC_ALL, $locale); | |
bindtextdomain("messages", "./locale"); | |
textdomain("messages"); |
This file contains 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
repo monsite.com | |
RW+ = maxime stagiaire | |
R = stagiaire | |
RW+ NAME/ = maxime | |
R NAME/ = stagiaire | |
RW+ refs/heads/develop NAME/ = stagiaire |
This file contains 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
SetEnvIf Referer www\.baddomain\.com dontlog | |
CustomLog /var/log/apache2/access.log vhosts env=!dontlog | |
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhosts |
This file contains 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
#!/usr/bin/php5 | |
<?php | |
/* Configuration */ | |
$BS_LOGIN = ''; # Votre login BetaSeries | |
$BS_API_KEY = ''; # Votre clé API | |
$DL_FILE = dirname(__FILE__).'/torrents.list'; # Le nom du fichier où sont recensées les URL déjà téléchargées | |
$TMP_FILE = dirname(__FILE__).'/episode.torrent'; # Le nom du fichier temporaire où est stocké le torrent |
This file contains 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://pd.tc/shorten?url=%@&api=1 |
This file contains 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
chmod 755 /System/Library/CoreServices/SystemVersion.plist | |
sudo vim /System/Library/CoreServices/SystemVersion.plist |
This file contains 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 | |
date_default_timezone_set('Europe/Paris'); | |
# Mettez le bon chemin pour le fichier wp-blog-header.php de votre blog WordPress | |
include(dirname(__FILE__).'/../../../wp-blog-header.php'); | |
# Par défaut le fichier gplus.last est dans le même répertoire que le script | |
$gplus_file = dirname(__FILE__)."/gplus.last"; | |
$limit_date = strtotime(trim(file_get_contents($gplus_file))); |