scratch – Diff between revs 49 and 50

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 49 Rev 50
Line 34... Line 34...
34 preg_replace( 34 preg_replace(
35 '/\D/', 35 '/\D/',
36 '', 36 '',
37 hash( 37 hash(
38 'sha512', 38 'sha512',
39 $fingerprint, 39 $fingerprint
40 ) 40 )
41 ), 41 ),
42 $ASSET_HASH_SIZE 42 $ASSET_HASH_SIZE
43 ) 43 )
44 ); 44 );
Line 62... Line 62...
62 case 'SAVE': 62 case 'SAVE':
63 #### Store the file. 63 #### Store the file.
64 atomized_put_contents($userPath.'.html', $_POST['data']); 64 atomized_put_contents($userPath.'.html', $_POST['data']);
65 break; 65 break;
66 case 'LOAD': 66 case 'LOAD':
67 if(!file_exists($userPath)) 67 if(!file_exists($userPath.'.html'))
68 return; 68 return;
69 echo atomized_get_contents($userPath.'.html'); 69 echo atomized_get_contents($userPath.'.html');
70 break; 70 break;
71 } 71 }