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_RECOMPILED.'ex-'.$uFileName[0].'.'.microtime(true).'.bin';
- echo $destination.'<br />';
- echo $uFileName[0].'<br />';
- # loading the template
- @include_once DIR_TEMPLATES.$uFileName[0].'.php';
- print_r($template);
- 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' ){
- compile_skilllevel_bin($uploaded_file['tmp_name'],$destination ) ;
- }
- else{
- compile_bin($uploaded_file['tmp_name'],$destination ) ;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement