$imgs = getimagesize(imagepath($ttpic) . $ttpic); if ($imgs[0] == 0) { echo "<b>The image file {$ttpic} was not found.</b><p>\n"; $ttpicw = 0; $ttpich = 0; } else { $ttpicw = $imgs[0]; $ttpich = $imgs[1]; } } else { $ttpic = ''; $ttpicw = 0; $ttpich = 0; } if ($tbanr != '') { $imgs = getimagesize(imagepath($tbanr) . $tbanr); if ($imgs[0] == 0) { echo "<b>The image file {$tbanr} was not found.</b><p>\n"; $tbanrw = 0; $tbanrh = 0; } else { $tbanrw = $imgs[0]; $tbanrh = $imgs[1]; } } else { $tbanr = ''; $tbanrw = 0; $tbanrh = 0; } $fcp->query("select prodlsku from prodlang where prodlsku='{$prodsku}' " . "and prodlzid={$zid} and prodlid={$prodlid}"); $pirc = (int) $fcp->next_record();
} elseif ($string_x == "_") { $tl += 0.6; } else { $tl += 1; } } return $tl; } //=== Prüfen ob alle Daten vorliegen if (!isset($_GET["img"])) { echo "Fehler: Keine Bilddatei übergeben<br>\n"; $img = ""; } else { $img = urldecode($_GET["img"]); //Extract Path and Filename $imgfile = imagepath($img); $studentnr = 0; filename2student($imgfile["filepath"], $imgfile["filename"], "studentdata"); } //=== Daten einlesen if (!isset($_GET["ln"])) { if (!isset($_SESSION["studentdata"][0]["lastname"])) { echo "Fehler: Keinen Nachnamen übergeben<br>\n"; } else { $last_name = $_SESSION["studentdata"][0]["lastname"]; } } else { $last_name = urldecode($_GET["ln"]); } if (!isset($_GET["gn"])) { if (!isset($_SESSION["studentdata"][0]["givenname"])) {
} } $specmastw = 0; $specmasth = 0; if ($specmast) { if (file_exists(imagepath($specmast) . $specmast)) { $imgs = getimagesize(imagepath($specmast) . $specmast); $specmastw = (int) $imgs[0]; $specmasth = (int) $imgs[1]; } } $viewlogow = 0; $viewlogoh = 0; if ($viewlogo) { if (file_exists(imagepath($viewlogo) . $viewlogo)) { $imgs = getimagesize(imagepath($viewlogo) . $viewlogo); $viewlogow = (int) $imgs[0]; $viewlogoh = (int) $imgs[1]; } } if (strlen($webbg) > 0 && strlen($webbg) != 6 || strlen($webtext) > 0 && strlen($webtext) != 6 || strlen($weblink) > 0 && strlen($weblink) != 6 || strlen($webvlink) > 0 && strlen($webvlink) != 6 || strlen($webalink) > 0 && strlen($webalink) != 6) { ?> One of the hex value fields is not equal to 6 characters; they may be empty, but if given they should be exactly 6 hex digits. <p>Please click the "Back" button on your browser and correct the errors. Thank you.<p> <?php exit; } $fcw = new FC_SQL(); if ($act == "update") {
// end error check if statement // if image size is not provided, calculate it if ($logo && ($logoh == 0 || $logow == 0)) { $imgs = getimagesize(imagepath($logo) . $logo); $logow = (int) $imgs[0]; $logoh = (int) $imgs[1]; } // end logo if statement if ($banr && ($banrh == 0 || $banrw == 0)) { $imgs = getimagesize(imagepath($banr) . $banr); $banrw = (int) $imgs[0]; $banrh = (int) $imgs[1]; } // end banner if statement if ($button && ($buttonh == 0 || $buttonw == 0)) { $imgs = getimagesize(imagepath($button) . $button); $buttonw = (int) $imgs[0]; $buttonh = (int) $imgs[1]; } // end banner if statement $fcc = new FC_SQL(); $fdc = new FC_SQL(); $fdcu = new FC_SQL(); // get the path to cat from the upline cat if ($catunder) { $path = new FC_SQL(); $path->query("select catpath from cat where catval={$catunder}"); $path->next_record(); $pathto = $path->f("catpath"); $path->free_result(); } else {