Luxbum.net - Script de galerie photo

Changeset 258

Show
Ignore:
Timestamp:
02/11/08 12:58:06 (9 months ago)
Author:
nicolas
Message:

formatage à 4 epaces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-newurl/common.php

    r257 r258  
    22 
    33 
    4 //------------------------------------------------------------------------------ 
    5 // Constantes 
    6 //------------------------------------------------------------------------------ 
     4  //------------------------------------------------------------------------------ 
     5  // Constantes 
     6  //------------------------------------------------------------------------------ 
    77define ('API_DIR', '_fonctions/'); 
    88define ('CONF_DIR', 'conf/'); 
     
    8080 
    8181if (!empty($_COOKIE['lang']) && in_array($_COOKIE['lang'], $locales)) { 
    82    $lang = $_COOKIE['lang']; 
     82    $lang = $_COOKIE['lang']; 
    8383} 
    8484else { 
    85    $lang = l10n::getAcceptedLanguage($locales); 
     85    $lang = l10n::getAcceptedLanguage($locales); 
    8686} 
    8787 
  • branches/trunk-newurl/index.php

    r257 r258  
    33 
    44if (!file_exists('conf/config.php')) { 
    5    exit('<a href="install.php">please install luxbum</a>'); 
     5    exit('<a href="install.php">please install luxbum</a>'); 
    66} 
    77 
     
    2222class lbPostAction { 
    2323 
    24    /** 
    25    
    26     * @param Pluf_HTTP_Request $request 
    27     * @param Commentaire $comment 
    28     * @param CommonFile $file 
    29     * @return Commentaire 
    30     */ 
    31    function comment($request, $comment, $file) { 
    32       if (count($request->POST) > 0 && isset($request->POST['action']) && $request->POST['action'] === 'ct') { 
    33          $comment->fillFromPost($request); 
     24    /** 
     25   
     26    * @param Pluf_HTTP_Request $request 
     27    * @param Commentaire $comment 
     28    * @param CommonFile $file 
     29    * @return Commentaire 
     30    */ 
     31    function comment($request, $comment, $file) { 
     32        if (count($request->POST) > 0 && isset($request->POST['action']) && $request->POST['action'] === 'ct') { 
     33            $comment->fillFromPost($request); 
    3434 
    35          if ($comment->isValidForm()) { 
    36             $comment->fillInfos(); 
    37             $file->saveComment($comment); 
    38             $comment = new Commentaire(); 
    39          
    40      
    41       return $comment; 
    42    
     35            if ($comment->isValidForm()) { 
     36                $comment->fillInfos(); 
     37                $file->saveComment($comment); 
     38                $comment = new Commentaire(); 
     39            
     40       
     41        return $comment; 
     42   
    4343 
    44    /** 
    45    
    46     * @param Pluf_HTTP_Request $request 
    47     * @param Commentaire $comment 
    48     * @param PassPost $$privatePost 
    49     * @return Commentaire 
    50     */ 
    51    function login($request, $privatePost, $dir) { 
    52       if (count($request->POST) > 0 && isset($request->POST['action']) && $request->POST['action'] === 'private') { 
    53          $privatePost->fillFromPost(); 
    54          $privateManager =& PrivateManager::getInstance(); 
    55          if ($privateManager->unlockDir($dir, $privatePost)) { 
    56             return true; 
    57          
    58          return false; 
    59      
    60    
     44    /** 
     45   
     46    * @param Pluf_HTTP_Request $request 
     47    * @param Commentaire $comment 
     48    * @param PassPost $$privatePost 
     49    * @return Commentaire 
     50    */ 
     51    function login($request, $privatePost, $dir) { 
     52        if (count($request->POST) > 0 && isset($request->POST['action']) && $request->POST['action'] === 'private') { 
     53            $privatePost->fillFromPost(); 
     54            $privateManager =& PrivateManager::getInstance(); 
     55            if ($privateManager->unlockDir($dir, $privatePost)) { 
     56                return true; 
     57            
     58            return false; 
     59       
     60   
    6161} 
    6262