$ext = new extension_upload(); } if ($site->fdat['upload']) { verify_form_token(); $ext->tmp_location = $site->absolute_path . "shared/" . time() . "_" . rand(1, 837838); $ext->extensions_folder = $site->absolute_path . "extensions"; $ext->overwrite_extension = $site->fdat['overwrite']; $ext->unpack_extension('extension'); // variable is the array name in $_FILES where the file resides. $ext->find_file('extension.config.php'); if ($ext->validate_extension()) { sync_extensions(); $synced = 1; } $zip = new archive(); $zip->deltree($ext->tmp_location); @rmdir($ext->tmp_location); } if ($site->fdat['op'] == "upload") { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title><?php echo $site->sys_sona(array('sona' => 'extension_upload', 'tyyp' => 'Admin')); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $site->encoding; ?>