move_uploaded_file($scrapimg, $path . '/' . $finalScrapName); //for Scrap type if ($getExtension == "jpg" || $getExtension == "png") { $scrapType = "I"; } elseif ($getExtension == 'gif') { $scrapType = "G"; } else { $scrapType = "F"; } //for generate thumbnails if ($getExtension != "swf") { $thumb->load($path . "/" . $finalScrapName); $thumb->resize(250, 250); $thumb->save($path . "/thumbnail/" . $finalScrapName); } $adminOb->storeScrap($categoryId, $finalScrapName, $scrapType); } } $showfeaturedCategory = $adminOb->showfeaturedCategory(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="style.css" type="text/css"/> <link rel="shortcut icon" href="../images/icon.ico"/> <title>Orkut Papa-Home</title> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>