Changeset 2496
- Timestamp:
- Sep 4, 2008, 2:57:55 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/template/yoga/admin/user_list.tpl
r2426 r2496 308 308 309 309 </form> 310 311 <script type="text/javascript">// <![CDATA[ 312 {literal}jQuery("form:last").submit( function() { 313 if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 ) 314 if ( jQuery("input[name=selection]:checked", this).length == 0) 315 { 316 alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} ); 317 return false; 318 } 319 return true; 320 } 321 );{/literal} 322 // ]]> 323 </script> 324 -
trunk/include/ws_functions.inc.php
r2463 r2496 919 919 { 920 920 global $conf; 921 921 if (!is_admin() || is_adviser() ) 922 { 923 return new PwgError(401, 'Access denied'); 924 } 925 922 926 // name 923 927 // category_id … … 926 930 // thumbnail_content 927 931 // thumbnail_sum 928 932 929 933 // $fh_log = fopen('/tmp/php.log', 'w'); 930 934 // fwrite($fh_log, time()."\n"); … … 935 939 list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); 936 940 list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4); 937 941 938 942 $upload_dir = sprintf( 939 943 PHPWG_ROOT_PATH.'upload/%s/%s/%s', … … 943 947 ); 944 948 945 fwrite($fh_log, $upload_dir."\n");946 949 //fwrite($fh_log, $upload_dir."\n"); 950 947 951 if (!is_dir($upload_dir)) { 948 952 umask(0000); … … 955 959 956 960 $filename_wo_ext = $date_string.'-'.$random_string; 957 961 958 962 $file_path = $upload_dir.'/'.$filename_wo_ext.'.jpg'; 959 963 $fh_file = fopen($file_path, 'w'); … … 968 972 mkdir($thumbnail_dir, 0777); 969 973 } 970 974 971 975 $thumbnail_path = sprintf( 972 976 '%s/%s%s.%s', … … 1012 1016 array($insert) 1013 1017 ); 1014 1018 1015 1019 // fclose($fh_log); 1016 1020 } -
trunk/template-common/scripts.js
r2429 r2496 121 121 { 122 122 for (var i=0; i<parameters[property].length; i++) 123 url += "&"+property+"[]="+ parameters[property][i];123 url += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); 124 124 } 125 125 else 126 url += "&"+property+"="+ parameters[property];126 url += "&"+property+"="+encodeURIComponent(parameters[property]); 127 127 } 128 128 } … … 151 151 eval('resp = ' + transport.responseText); 152 152 } 153 catch (e) 154 { 153 catch (e) { 155 154 this.dispatchError( 200, e.message + '\n' + transport.responseText.substr(0,512) ); 156 155 }
Note: See TracChangeset
for help on using the changeset viewer.