Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre><?php
- include_once 'config.php';
- $uploaded_file = $_FILES['bin'] ;
- $uFileName = explode('.',$uploaded_file['name']) ;
- $uFileName[0] = str_replace('ex-',"",$uFileName[0]) ;
- $destination = DIR_EXTRACTED.'ex-'.$uFileName[0].'.'.microtime(true).'.xls';
- # loading the template
- @include_once DIR_TEMPLATES.$uFileName[0].'.php';
- if ( @count($template) == 0 ) die ('No available template for this file. Create a template file in '.DIR_TEMPLATES.$uFileName[0].'.php');
- if ( $uFileName[0] =='skilllevel' )
- extract_skilllevel_bin($uploaded_file['tmp_name'],$destination ) ;
- else
- extract_bin($uploaded_file['tmp_name'],$destination ) ;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement