addScript("isIframe.js", true); // this makes the page know that it's okay to work as an IFRAME (ie: don't break out of IFRAMEs). $page->addStyle("globalcss.php"); $page->displayHeader(true); // true means header only, no actual display. $acceptable_file_types = getImageMimes(); $ex = "err"; $check = "w00t"; if(getPost('formName') == "addPhotos"){ $fileIndex = "fileToUpload"; $albumId = getPost('albumId', -1); $fileTypeError = false; ob_start(); $fileName_fs = motive_fs_saveFile($fileIndex, $acceptable_file_types); $content = ob_get_clean(); if($content != ""){ if(0 $MAX_NAME_LEN){ $fileName = substr($fileName, 0, ($MAX_NAME_LEN-3))."...\""; } dispSuccess("$check$fileName uploaded."); // STRINGTABLES } else { dispError($ex."Error saving file... please try again."); } } else { $fileName = ""; if(isset($_FILES[$fileIndex]['name'])){ $fileName = " \"".$_FILES[$fileIndex]['name']."\""; } if($fileTypeError){ $msg = "This file type cannot be uploaded"; dispError($ex.$msg); } else { dispError($ex."Error uploading file$fileName... please try again."); // STRINGTABLES } } } else { dispError($ex."Transfer error... please try again."); // STRINGTABLES logEvent("Nothing posted to ".__FILE__ .getUser()->getUserString()." might be trying to mess with it (or just test it).
POST: ".print_r($_POST,true)."
GET: ".print_r($_GET,true)); } print "\n"; ?>