Show
Ignore:
Timestamp:
02/14/09 03:24:10 (4 years ago)
Author:
rvelices
Message:

Last (I hope) paranoic optims ...
- move get_uysername and get_groupname from public to admin/functions.inc.php
- optim in index.php
- tags.tpl does not need smarty modifier included
- move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r3065 r3145  
    523523  } 
    524524 
    525   include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); 
    526  
    527525  $comm = array( 
    528526    'author' => trim( stripslashes($params['author']) ), 
     
    703701      ) 
    704702  { 
    705     include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); 
    706703    $comment_post_data['author'] = $user['username']; 
    707704    $comment_post_data['key'] = get_comment_post_key($params['image_id']); 
     
    10421039      // last chance to make the directory writable 
    10431040      @chmod($high_dir, 0777); 
    1044        
     1041 
    10451042      if (!is_writable($high_dir)) 
    10461043      { 
     
    10481045      } 
    10491046    } 
    1050      
     1047 
    10511048    secure_directory($high_dir); 
    1052      
     1049 
    10531050    // high resolution path, same name as web size file 
    10541051    $high_path = sprintf( 
     
    14831480  // thumbnail_content 
    14841481  // thumbnail_sum 
    1485    
     1482 
    14861483  $params['image_id'] = (int)$params['image_id']; 
    14871484  if ($params['image_id'] <= 0) 
     
    15371534      ); 
    15381535  } 
    1539    
     1536 
    15401537  if (isset($params['categories'])) 
    15411538  { 
     
    16181615          $current_rank_of[$cat_id] = 0; 
    16191616        } 
    1620          
     1617 
    16211618        if ('auto' == $rank_on_category[$cat_id]) 
    16221619        {