Ignore:
Timestamp:
Sep 4, 2008, 2:57:55 AM (16 years ago)
Author:
rvelices
Message:
  • remove hello_world plugin (not working anymore)
  • web service method images.add works only for admins now
  • fix template-common js web service calls did not have the parameters url encoded
  • improve admin user_list - submitting the form with no user selected triggers a javascript alert (had fun with jquery selectors)
File:
1 edited

Legend:

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

    r2463 r2496  
    919919{
    920920  global $conf;
    921  
     921  if (!is_admin() || is_adviser() )
     922  {
     923    return new PwgError(401, 'Access denied');
     924  }
     925
    922926  // name
    923927  // category_id
     
    926930  // thumbnail_content
    927931  // thumbnail_sum
    928  
     932
    929933  // $fh_log = fopen('/tmp/php.log', 'w');
    930934  // fwrite($fh_log, time()."\n");
     
    935939  list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
    936940  list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4);
    937  
     941
    938942  $upload_dir = sprintf(
    939943    PHPWG_ROOT_PATH.'upload/%s/%s/%s',
     
    943947    );
    944948
    945   fwrite($fh_log, $upload_dir."\n");
    946  
     949  //fwrite($fh_log, $upload_dir."\n");
     950
    947951  if (!is_dir($upload_dir)) {
    948952    umask(0000);
     
    955959
    956960  $filename_wo_ext = $date_string.'-'.$random_string;
    957  
     961
    958962  $file_path = $upload_dir.'/'.$filename_wo_ext.'.jpg';
    959963  $fh_file = fopen($file_path, 'w');
     
    968972    mkdir($thumbnail_dir, 0777);
    969973  }
    970  
     974
    971975  $thumbnail_path = sprintf(
    972976    '%s/%s%s.%s',
     
    10121016    array($insert)
    10131017    );
    1014  
     1018
    10151019  // fclose($fh_log);
    10161020}
Note: See TracChangeset for help on using the changeset viewer.