<?php

//**************************************************************************************************

// Copyright (c) Flashoculus.com

// www.flashoculus.com

// support@flashoculus.com

// This script is a part of the G-Administrator for Flashoculus G-series Flash Galleries.

// You are licensed to use this product on one (1) domain.

// Please contact us for extra licenses if required.

//**************************************************************************************************


$imageFolder='../T_images/';
$mp3Folder='../T_mp3/';



$ext=strtoupper($_POST['ext']);
$fileTmp=$_FILES['Filedata']['tmp_name'];
$fileName=$_POST['unic'];
$mp3=$_POST['mp3'];



if($ext == '.JPG' || $ext == '.GIF' || $ext == '.PNG'){
  
   move_uploaded_file($fileTmp,$imageFolder.$fileName);
   chmod($imageFolder.$fileName,0644);

}else{
   
   move_uploaded_file($fileTmp,$mp3Folder.$mp3);
   chmod($mp3Folder.$mp3,0644);
   

}
echo 'ok';

?> 



