Subversion Repositories computer_asset_manager_v1

Rev

Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 30
Line 38... Line 38...
38
 * chmod 775 ~camp/sysinfo_reports/http
38
 * chmod 775 ~camp/sysinfo_reports/http
39
*/
39
*/
40
 
40
 
41
define ( 'VERSION', '1.0' );
41
define ( 'VERSION', '1.0' );
42
define ( 'BUILD_DATE', '2016-04-03' );
42
define ( 'BUILD_DATE', '2016-04-03' );
43
define ( 'STORAGE_PATH', '/home/camp/sysinfo_reports/http' ); 
43
define ( 'STORAGE_PATH', '/home/camp/sysinfo_reports/unprocessed' ); 
44
define ( 'TESTING', false );
44
define ( 'TESTING', false );
45
 
45
 
46
function sanitize_filename ( $filename, $allowed = 'a-zA-Z0-9-', $special_chars = '_', $replace_char = '-', $removeDups = true ) {
46
function sanitize_filename ( $filename, $allowed = 'a-zA-Z0-9-', $special_chars = '_', $replace_char = '-', $removeDups = true ) {
47
   $filename = str_replace( $allowed . $special_chars,$replace_char, $filename );
47
   $filename = str_replace( $allowed . $special_chars,$replace_char, $filename );
48
   if ( $removeDups )
48
   if ( $removeDups )