akyrho  [ Profile ]

Sort by: Date / Title /

  1. 1 year ago and saved by 2 others
    1. // Vérification de la forme
    2. function isEmail($email){
    3.  return preg_match("/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i", $email)
    4. }
    5.  
    6. // Domaine valide ?
    7. function isEmailDomaine($email){
    8.    list($compte,$domaine)=split('@',$email,2);
    9.    if(!checkdnsrr($domaine,'MX') && !checkdnsrr($domaine,'A')){
    10.      return false;
    11.    }else{
    12.      return true;
    13.    }
  2. 1 year ago and saved by 7 others
    1. /* FICHIERS */
    2. a[href $='.pdf'] { padding-left: 22px; background: transparent url(img/pdf.png) no-repeat center left;}
    3. a[href $='.gif'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
    4. a[href $='.png'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
    5. a[href $='.jpg'] { padding-left: 22px; background: transparent url(img/image.png) no-repeat center left;}
    6. a[href $='.doc'] { padding-left: 22px; background: transparent url(img/word.png) no-repeat center left;}
    7. a[href $='.xls'] { padding-left: 22px; background: transparent url(img/excel.png) no-repeat center left;}
    8. a[href $='.css'] { padding-left: 22px; background: transparent url(img/texte.png) no-repeat center left;}
    9. a[href $='.txt'] { padding-left: 22px; background: transparent url(img/texte.png) no-repeat center left;}
    10. a[href $='.php'] { padding-left: 22px; background: transparent url(img/php.png) no-repeat center left;}
    11. a[href $='.zip'] { padding-left: 22px; background: transparent url(img/compress.png) no-repeat center left;}
    12. a[href $='.rar'] { padding-left: 22px; background: transparent url(img/compress.png) no-repeat center left;}
    13. a[href $='.tar.gz'] { padding-left: 22px; background: transparent url(img/package.png) no-repeat center left;}
    14. a[href $='.pkg.gz'] { padding-left: 22px; background: transparent url(img/package.png) no-repeat center left;}
    15.  
    16. /* PROTOCOLES IM */
    17. a[href ^="aim:"]  { padding-left: 22px; background: transparent url(img/aim.png) no-repeat center left;}
    18. a[href ^="msnim:"] { padding-left: 22px; background: transparent url(img/msn.png) no-repeat center left;}
    19. a[href ^="xmpp:"] { padding-left: 22px; background: transparent url(img/jabber.png) no-repeat center left;}
    20. a[href *="icq.com"]  { padding-left: 22px; background: transparent url(img/icq.gif) no-repeat center left;}
    21. a[href *="edit.yahoo.com/config/send_webmesg?"]  { padding-left: 22px; background: transparent url(img/yahoo.gif) no-repeat center left;}
    22. a[href ^="skype:"]  { padding-left: 22px; background: transparent url(img/skype.png) no-repeat center left;}
    23.  
    24. /* SITES WEB */
    25. a[href *="youtube.com/"] { padding-left: 22px; background: transparent url(img/youtube.png) no-repeat center left;}
    26. a[href *="metacafe.com/"] { padding-left: 22px; background: transparent url(img/metacafe.png) no-repeat center left;}
    27. a[href *="flickr.com"] { padding-left: 22px; background: transparent url(img/flickr.png) no-repeat center left;}
    28. a[href *="zooomr.com"] { padding-left: 22px; background: transparent url(img/zooomr.png) no-repeat center left;}
    29. a[href *="imageshack.us"] { padding-left: 22px; background: transparent url(img/imageshack.png) no-repeat center left;}
    30. a[href *="bubbleshare.com"] { padding-left: 22px; background: transparent url(img/bubbleshare.png) no-repeat center left;}
  3. 1 year ago and saved by 4 others
    1. #passer en root
    2. ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
  4. sponsorised links
  5. 1 year ago and saved by 1 other
    1. display: block;
    2. background: #efefef;
    3. border: 1px solid #B5AEA4;
    4. border-top: 1px solid #eee;
    5. border-left: 1px solid #eee;
    6. margin: 10px auto;
    7. padding: 1em;
  6. 1 year ago and saved by 2 others
    1. // max-width
    2. // Ce code dit que si la largeur du document est supérieure à 1000px, alors il sera forcé à 1000px, sinon il restera à "auto". Si javascript est désactivé alors la largeur sera de 770px;
    3. <!--[if lt IE 7]>
    4. <style type="text/css">
    5. div {
    6. width:770px;
    7. width:expression(document.body.clientWidth >= 1000? "1000px": "auto" );
    8. }
    9. </style>
    10. <![endif]-->
    11.  
    12. // min-width
    13. // Le code dit que si la largeur du document est inférieure à 600px, alors elle est forcée à 600px (il y a donc une apparition des barres d'ascenseur horizontales au seuil de 600px). Si JavaScript n'est pas actif, alors la largeur est fixée à 770px.
    14. <!--[if lt IE 7]>
    15. <style type="text/css">
    16. div {
    17. width:770px;
    18. width:expression(document.body.clientWidth <= 600? "600px": "auto" );
    19. }
    20. </style>
    21. <![endif]-->
    22.  
    23. // min-width et max-width en meme temps
    24. <!--[if lt IE 7]>
    25. <style type="text/css">
    26. div {
    27. width:770px;
    28. width: expression(document.body.clientWidth <= 600? "600px" : document.body.clientWidth >= 1000? "1000px" : "auto");
    29. }
    30. </style>
    31. <![endif]-->
    32.  
    33. // max-height
    34. // Le code dit que si la largeur du document est inférieure à 600px, alors elle est forcée à 600px (il y'a donc une apparition des barres d'ascenseur horizontales au seuil de 600px).
    35. <!--[if lt IE 7]>
    36. <style type="text/css">
    37. div {
    38. height: 500px;
    39. overflow:hidden;
    40. height:expression(
    41. this.scrollHeight > 800? "800px" : "auto" );
    42. }
    43. </style>
    44. <![endif]-->
  7. 1 year ago and saved by 4 others
    Pour activer l'affichage des numéros de lignes dans vim, il faut taper en mode commande :
    :set nu
    
    Pour désactiver l'affichage des numéros de lignes :
    :set nonu
  8. 1 year ago and saved by 4 others
    1. /* A modifier dans la page CSS*/
    2. /* A la place de :*/
    3. background-image: url("image.png");
    4.  
    5. /* remplacer par :*/
    6. filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='image.png');
    7. background-image: none;
    8.  
    9. /* !ATTENTION! Probleme sur les liens, pour resoudre ajouter: */
    10.  
    11. a, input
    12. {
    13. position: relative;
    14. z-index: 1;
    15. }
  9. 1 year ago and saved by 3 others
    1. /* A ajouter entre les balise <head> */
    2. <!--[if lt IE 7]>
    3. <script defer type="text/javascript" src="pngfix.js"></script>
    4. <![endif]-->

First / Previous / Next / Last / Page 1 of 1 (8 posteets)