$datas = array();
+
$dir = WS_COLLECTIONS . '/apns/' . $_POST['collection_id'];
if (!file_exists($dir)) {
mkdir($dir, 0777, true);
if (!$_FILES[$t]['error']) {
$ext = CubeIT_Files::getExtension($_FILES[$t]['name']);
- move_uploaded_file($_FILES[$t]['tmp_name'], $wdir . '/' . $t . '.' . $ext);
+ //move_uploaded_file($_FILES[$t]['tmp_name'], $wdir . '/' . $t . '.' . $ext);
$save['theme'][$t] = $t . '.' . $ext;
if ($t == 'filesalt') {
- CubeIT_Files::rmdir($wdir . '/filesalt');
- $unzip = CubeIT_Util_Zip::extract($wdir . '/' . $t . '.' . $ext, $wdir . '/filesalt');
+ $d = $wdir . '/filesalt';
+ CubeIT_Files::rmdir($d);
+ $unzip = CubeIT_Util_Zip::extract($wdir . '/' . $t . '.' . $ext, $d);
}
}
}
+
foreach ($_POST['group'] as $gid => $group) {
if ($gid && $gid == 'new_') {
continue;