spirit posteets tagged images  [ Profile ]

Sort by: Date / Title /

  1. 9 years ago
    if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
      access_log off;
      expires 31d;
      break;
    }
    # Matching URLs
    http://domain.com/stylesheets/blog.css?1221178271
    
    if ($request_uri ~* "\.(ico|gif|png|jpe?g|css|js|swf)(\?v\d\d?)?$") {
      access_log off;
      expires 31d;
      break;
    }
    # Matching URLs
    http://domain.com/stylesheets/blog.css
    http://domain.com/stylesheets/blog.css?v1
    http://domain.com/stylesheets/blog.css?v12
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2021"></script>
  2. 9 years ago
    1. En HTML:
    2. <img src="..." align="absmiddle" /> Texte
    3.  
    4. En CSS :
    5. <img src="..." style="vertical-align:middle" /> Texte
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1707"></script>
  3. 11 years ago
    1. <?php
    2. require_once "HTML/QuickForm.php" ;
    3.  
    4. function process()
    5. {
    6.     global $file,$path;
    7.     if ($file->isUploadedFile()) {
    8.         $file->moveUploadedFile( $path);
    9.         print 'Upload done!';
    10.     }
    11.     else {
    12.         print "Keine Datei hochgeladen!";
    13.     }
    14. }
    15.  
    16. function ruleCheckImagesize()
    17. {
    18.     global $file;
    19.     if ($file->isUploadedFile()) {
    20.         $meta = $file-> getValue();
    21.         if($size = @getimagesize( $meta['tmp_name'])) {
    22.             if($size[0] ==  640 && $size[1 ] == 480) {
    23.                 return true;
    24.             }
    25.         }
    26.     }
    27.     return false;
    28. }
    29.      
    30. $uploadForm = new HTML_QuickForm( 'upload_form', 'post');
    31. $uploadForm->registerRule( 'imagesize', 'function', 'ruleCheckImagesize' );
    32. $path = "d:/www/tmp/";
    33. $file = $uploadForm-> addElement('file', 'filename' , 'File:');
    34. $uploadForm->addRule( 'filename', 'Du musst eine Datei wählen''uploadedfile' );
    35. $uploadForm->addRule( 'filename', 'Die Datei muss 640x480px gross sein!''imagesize');
    36. $uploadForm->addElement( 'submit', 'btnUpload', 'Upload' );
    37. if ($uploadForm->validate()) {
    38.     $uploadForm->process( 'process', true);
    39. }
    40. else {
    41.     $uploadForm->display();
    42. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/54"></script>
  4. sponsorised links

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