$intError = 0; } if (trim($_POST["by_whom"]) == "") { $strErrormessage .= "Please enter By whome.<br>"; $intError = 0; } /*if($hldGlobal->fnCheckDescription($_POST["shot_description"]) == ""){ $strErrormessage .= "Please enter shot description.<br>"; $intError = 0; } if($hldGlobal->fnCheckDescription($_POST["long_description"]) == ""){ $strErrormessage .= "Please enter long description.<br>"; $intError = 0; }*/ if (trim($_POST["page_title"]) != "") { if ($hldGlobal->fnCheckTitle(trim($_POST["page_title"]), trim($_POST["page_name"]))) { $strErrormessage .= "Title already present for " . $hldGlobal->fnGetPageName(trim($_POST["page_name"])) . " .<br>"; $intError = 0; } } if (is_array($_FILES["img"]) && $_FILES["img"]["error"] == 0) { list($width, $height, $type, $attr) = getimagesize($_FILES['img']['tmp_name']); $arrPathInfo = pathinfo($_FILES["img"]["name"]); $strExtension = $arrPathInfo["extension"]; list($usec, $sec) = explode(" ", microtime()); $filename = $arrPathInfo["filename"] . $usec . $sec . "." . $arrPathInfo["extension"]; $uploaddir = '../images/upload'; $uploadfile = $uploaddir . "/" . $filename; if (is_dir($uploaddir)) { if (chmod($uploaddir, 0777)) { $intBool = chmod($uploaddir, 0777);