$MaxSize) { $e['FILEUP_SIZE']=TRUE; @unlink($_FILES['FILEUP']['tmp_name']); } } } if ((count($e) == 0) && ($Type == 'image')) { $isize=getimagesize($_FILES['FILEUP']['tmp_name']); if (!$isize) { $e['FILEUP_TYPE']=TRUE; @unlink($_FILES['FILEUP']['tmp_name']); } } if (count($e) == 0) { $ResUp=move_uploaded_file($_FILES['FILEUP']['tmp_name'], $target); if (!$ResUp) { $e['FILEUP_MOVE']=TRUE; } } if ((count($e) == 0) && ($Type == 'data') && ($Control_D == 'BACKUP')) { $hbc_name=hbc_name(); $BaseDir=$_SERVER['DOCUMENT_ROOT'].'/'.$hbc_name.'/tmp'; $TransType=ValidateBack($BaseDir, $FileUp); if ($TransType == 0) { rename ($BaseDir.'/'.$FileUp, $_SERVER['DOCUMENT_ROOT'].'/'.$hbc_name.'/back/'.$FileUp); } else { $e['FILEUP_TYPE']=TRUE; } } } if (count($e) == 0) { switch ($Type) { case 'data': $Control=$Control_D; break; case 'image': $Control=$Control_I; break; case 'page': $Control=$Control_P; break; default: $Control='Unknown'; } $query='insert into changelog values(null, null, "'.$Key.'", "", "I", "'.$Control.'", "'.$Type.'", "'.$FileUp.'", "'.(!empty($FileFormat) ? $FileFormat : '').'")'; mysqli_query($db, $query); } ?> '."\n"; } ?>

Process Upload

'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; BuildHidden($e); echo ''."\n"; echo ''."\n"; } else { if ($Type == 'image' || $Type == 'page' || ($Type == 'data' && $Control_D == 'BACKUP')) { $Control=($Type == 'image') ? $Control_I : $Control_P; if ($Control != 'OTHER') { $CtrlRes=upd_ctrl ($Key, $Control, $FileUp); } echo '
'."\n"; echo '
'."\n"; echo ''."\n"; } elseif ($Type == 'data') { $Import_D=array('JUDGE', 'RESULTS'); if ($RenumEntry) { $Import_D[]='ENTRY'; } if (in_array($Control_D, $Import_D)) { echo '
'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo ''."\n"; } } } ?>