function sendErrorImageAndDie($cerr) { $new = imageCreate(600, 30); $bgc = imageColorAllocate($new, 255, 255, 255); $tc = imageColorAllocate($new, 0, 0, 0); imageFilledRectangle($new, 0, 0, 150, 30, $bgc); imageString($new, 5, 5, 5, "Error: {$cerr}", $tc); sendImage($new); die; }
if ($total_width <= $break_point) { $resolution = $break_point; } } } } } /* No resolution was found (no cookie or invalid cookie) */ if (!$resolution) { // We send the lowest resolution for mobile-first approach, and highest otherwise $resolution = $is_mobile ? min($resolutions) : max($resolutions); } /* if the requested URL starts with a slash, remove the slash */ if (substr($requested_uri, 0, 1) == "/") { $requested_uri = substr($requested_uri, 1); } /* whew might the cache file be? */ $cache_file = $document_root . "/{$cache_path}/{$resolution}/" . $requested_uri; /* Use the resolution value as a path variable and check to see if an image of the same name exists at that path */ if (file_exists($cache_file)) { // it exists cached at that size if ($watch_cache) { // if cache watching is enabled, compare cache and source modified dates to ensure the cache isn't stale $cache_file = refreshCache($source_file, $cache_file, $resolution); } sendImage($cache_file, $browser_cache); } /* It exists as a source file, and it doesn't exist cached - lets make one: */ $file = generateImage($source_file, $cache_file, $resolution); sendImage($file, $browser_cache);
sendImage('R0lGODlhMgAyAMQAAIXDKYTCKYPAKIPBKIK/KIG+KIG9KIC8J4C7J3+6J3+5J364Jn23Jn22Jny1JXu0JXqzJXmyJHmxJHevJHiwJHauIwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAAAyADIAAAX/ICCOZGmeaKqubOu+cCzPdG3feK7vfO//wKCwFCgaj8ikcslsOp9Q5mBKrVqv2KzWKuh6v+CweEwum89oMmHNbrvf8Lh8Tq/b5YW8fs/v+/+AgYKDhIAGh4iJiouMjY6KB5GSk5SVlpeYmZqbnJgIn6ChoqOkpaanqKmqpgmtrq+wsbKztLAKt7i5uru8vb6/wMHCvgvFxsfIycrLzM3Oz9DMDNPU1dbX2Nna29zd3toN4eLj5OXm5+jkDuvs7e7v8PHy8/T19vIP+fr7/P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Xr17Bjy55Nu7bt27hz697Nu7fv38CDCx9OvLjx48iTK1/OvLnz59CjS59OvXpxA9iza9/Ovbv37+DDix9Pvrz58+jTq1/Pvr379/Djy59Pv779+/jz69/Pv7////8ABijggAQWaOCBCCao4IIMNujggxBGKOGEFFZo4YUYZqjhhhx26OGHIIYo4ogklmjiiSimqOKKLLbo4oswxijjjDTWaOONOOao44489ujjj0AGKSSLBxRp5JFIJqnkkkw26eSTUEYp5ZRUVmnllVhmqeWWXHbp5ZdghinmmGSWaeaZaKap5ppstunmm3DGKeecdNZp55145qnnnnz26eefgAYq6KCEFmrooYgmquiijDbq6KOQRirppJRWaumlmGaq6aacdurpp6CGKuqopJZq6qmopqrqqqy26uqrsMYq66y01mrrrbjmquuuvPbq66/ABivssMQWa+yxyCar7LL/zDbr7LPQRivttNRWa+212Gar7bbcduvtt+CGK+645JZr7rnopqvuuuy26+678MYr77z01mvvvfjmq+++/Pbr778AByzwwAQXbPDBCCes8MIMN+zwwxBHLPHEFFds8cUYZ6zxxhx37PHHIIcs8sgkl2zyySinrPLKLLfs8sswxyzzzDTXbPPNOOes88489+zzz0AHLfTQRBdt9NFIJ6300kw37fTTUEct9dRUV2311VhnrfXWXHft9ddghy322GSXbfbZaKet9tpst+3223DHLffcdNdt991456333nz37fffgAcu+OCEF2744YgnrvjijDfu+OOQRy755JRXbvnl0phnrvnmnHfu+eeghy766KSXbvrpqKeu+uqst+7667DHLvvstNdu++2456777rz37vvvwAcv/PDEF2/88cgnr/zyzDfv/PPQRy/99NRXb/312Gev/fbcd+/99+CHL/745Jdv/vnop6/++uy37/778Mcv//z012///fjnr//+/Pfv//8ADKAAB0jAAhrwgAhMoAIXyMAGOvCBEIygBCdIwQpa8IIYzKAGN8jBDnrwgyAMoQhHSMISmvCEKEyhClfIwha68IUwjKEMZ0jDGtrwhuVKAAA7'); break; case 'tableheader-bg.gif': sendImage('R0lGODlhrgsyALMAAOPs8urw9O3y9eHr8t/q8t7q8uXt8+fu8+Xu8+ju8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rapy62mt30ZLbK+tAqsrs6qGiu2xtK7LK7vugqvtsuVOyy2s8Na7KqzezpptutcGO66l2Lb7rbDxNvssqu4SnG+28p5rbr293nswwgUjHO6wuiq78MSo4krurgZre/G4De8LrLIRK2wtu+9KbGyxIZu8cczRLgwqvSSXSi2+GOt78bYcI6uyzuKK7HDPPP8rLcoAq+wy0UFD/PHOORdNs7cS75sxukqvy3XXVRtNtcslk30u1E4fPHXMAVutM9wUE2yxzUr3DDbRYjsdMd0145xx0/ImnLLbKTd9Nt5Hg7yzz3ervXjUAFNb7dgvl43p/8ArIwv00Wz/vXniLcd7NeCP2xt45nkvnTXMS1s7889Dey003pb76zHSAueNNshtF83r4QKT/vDrGsdet7qrU+4666zn3nHjD5steLmEJx/66W8rfzPye/OcesXNB9+58/wKX775qEM88uPZg7393N0DPzn0Q4v/tN3ll3672tKznuRuJsCVDe5zJxMZ8TpmvKqBr3H6KxX/MGe+XAHgghjMoAY3yMEOevCDIAyhCEdIwhKa8IQoTKEKV8jCFrrwhTCMoQxnSMMa2vCGOMyhDnfIwx768IdADKIQh0jEIhrxiEhMohKXyMQmOvGJUIyiFKdIxSpa8YpYzKIWt8jFLv968YtgDGMVB0DGMprxjGhMoxrXyMY2uvGNcIyjHOdIxzra8Y54zKMe98jHPvrxj4AMpCAHSchCGvKQiEykIhfJyEY68pGQjKQkJ0nJSlrykpjMpCY3yclOevKToAylKEdJylKa8pSoTKUqV8nKVrpSlASIpSxnScta2vKWuMylLnfJy1768pfADKYwZ1mAYRrzmMhMpjKXycxm8rKYzoymNKdJzWpak5jXzKY2t8nNbUKzm+AMpzjHSc5ufrOc6EynOqd5znW6853w9GU740nPetJznvbMpz73qU988vOfAKWmPwNK0IIic6AGTahCn7lQcRagAAt4qEQjKlGIVvT/ohjNKEUzytGOatSjIA2pSEdK0pJydKMbNelEU2pRlYaUpSw1aUxdelKa2vSmOBUpSnG6AJjm9KMVnSlJhfpTov70qEh96UR56tOkPrSpNDUqT51K1ap2dKc37elFpRrVrWbVqi29qldtylWygvWsVsUqWaGaVLaqtKxdRatckarWqLr1qHctKVxdute5+lWsT2XqWJ2a16GCta9/TWxQl5rVwk51sWZNK0gdq9PDKvayemXsWgfbVs6+1bKYDe1kNWtXz+LVtJmVrGhXC9SwlhayhEWtYVXL2toG9rabhW1ndftZ2l6UAcANrnCHS9ziGve4yE2ucpfL3OY697nQ/42udKdL3epa97rYza52t8vd7nr3u+ANr3jHS97ymve86E2vetfL3va6973wja9850vf+tr3vvjNr373y9/++ve/AA6wgAdM4AIb+MAITrCC/duABjv4wRCOsIQnTOEKW/jCGM6whjfM4Q57+MMgDrGIR0ziEpv4xChOsYpXzOIWu/jFMI6xjGdM4xrb+MY4zrGOd8zjHvv4x0AOspCHTOQiG/nISE6ykpfM5CY7+clQjrKUp0zlKlv5yktecHcbUFwui9fLWg6zdcEsXDJ/18xiTvNz0cwANnPXzWqOM3LZDGft1lnOeA4zncd75zznec9f9rOgjQvo8PZ50GouNP94D43oRjO4y3x2dKMVfWZJI5rS3mW0pROM6S1vWr9YDrWoR03qUpv61KhOtapXzepWu/rVsI61rGdN61rb+ta4zrWud83rXvv618AOtrCHTexiG/vYyE62spfN7GY7+9nQjra0p03talv72tjOtra3ze1ue/vb4A63uMdN7nKb+9zoTre6183udrv73fCOt7znTe962/ve+M63vvfN7377+98AD7jAB07wghv84AhPuMIXzvCGO/zhEI+4xCdO8Ypb/OIYz7jGN87xjnv84yAPuchHTvKSm/zkKE+5ylfO8pa7/OUwj7nMZ07zmtv85jjPuc53zvOe+/znQA+60If/TvSiG/3oSE+60pfO9KY7/elQj7rUp071qlv96ljPuta3zvWue/3rYA+72MdO9rKb/exoT7va1872trv97XCPu9znTve62/3ueM+73vfO9777/e+AD7zgB0/4whv+8IhPvOIXz/jGO/7xkI+85CdP+cpb/vKYz7zmN8/5znv+86APvehHT/rSm/70qE+96lfP+ta7/vWwj73sZ0/72tv+9rjPve53z/ve+/73wA++8IdP/OIb//jIT77yl8/85jv/+dCPvvSnT/3qW//62M++9rfP/e57//vgD7/4x0/+8pv//OhPv/rXz/72u//98I+//OdP//rb//74z7/+98//Yf77//8AGIACOIAEWIAGeIAImIAKuIAM2IAO+IAQGIESOIEUWIEWeIEYmIEauIEc2IEe+IEgGIIiOIIkWIImeIIomIIquIIs2IIu+IIwGIMyOIM0WIM2eIM4mIM6uIMvFwEAOw=='); break; case 'top_left.gif': sendImage('R0lGODlhCgAyAMQAAKvWa5rNTYjFL4XDKYTCKYTBKIPBKIPAKIK/KIG+J4G+KIC9J4C8J3+7J366Jn66J365Jn24Jny2Jnu2Jny3Jnu1JXq0JQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAAAKADIAAAV/ICCOZFkGaKoKbOsScCwbdG0jeK4nfO8zwKCwQSwaH8ikMsJsOinQqHRCrVot2Kx2u614v+BwWEIum89nqXqtdrrf8DhkTq877vi8cc/fC/+AfwuDhIWGhgqJiouMjDqPkJGSB5SVlpeXBZqbnJ2dMqChoAOkpaanqKmqq6ynIQA7'); break; case 'loading.gif': sendImage('R0lGODlhEAAQAPIAAP///2ZmZtra2o2NjWZmZqCgoLOzs729vSH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQACgABACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkEAAoAAgAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkEAAoAAwAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkEAAoABAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQACgAFACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQACgAGACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAAKAAcALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA=='); break; } } /***************************************************************** * FUNCTIONS ******************************************************************/ # Quote string function quote($str) { $str = str_replace('\\', '\\\\', $str); $str = str_replace("'", "\\'", $str); return "'{$str}'"; } # Convert filesize from bytes to most suitable unit function formatSize($bytes)
// but I understand that in professional environments, your boss might not like this tag // so that's cool. $tag_str = "freeCap v1.41 - puremango.co.uk"; // for debug: //$tag_str = "[".$word."]"; // ensure tag is right-aligned $tag_width = strlen($tag_str) * 6; // write tag ImageString($im, 2, $width - $tag_width, $height - 13, $tag_str, $tag_col); // unset all sensetive vars // in case someone include()s this file on a shared server // you might think this unneccessary, as it exit()s // but by using register_shutdown_function // on a -very- insecure shared server, they -might- be able to get the word unset($word); // the below aren't really essential, but might aid an OCR attack if discovered. // so we unset them unset($use_dict); unset($dict_location); unset($max_word_length); unset($bg_type); unset($bg_images); unset($merge_type); unset($bg_fade_pct); unset($morph_bg); unset($col_type); unset($max_attempts); unset($font_locations); // output final image :-) sendImage($im); // (sendImage also destroys all used images)
//$target=array("122633509780062768"); $action = "Hello HuanXin!"; $ext['a'] = "a"; $ext['b'] = "b"; var_dump(sendCmd($from, $target_type, $target, $action, $ext)); break; case 37: //发送图片消息 $filePath = "./resource/up/pujing.jpg"; $from = 'admin'; $target_type = "users"; $target = array("zhangsan", "lisi"); $filename = "pujing.jpg"; $ext['a'] = "a"; $ext['b'] = "b"; var_dump(sendImage($filePath, $from, $target_type, $target, $filename, $ext)); break; case 38: //发送语音消息 $filePath = "./resource/up/mangai.mp3"; $from = 'admin'; $target_type = "users"; $target = array("zhangsan", "lisi"); $filename = "mangai.mp3"; $length = 10; $ext['a'] = "a"; $ext['b'] = "b"; var_dump(sendAudio($filePath, $from = "admin", $target_type, $target, $filename, $length, $ext)); break; case 39: //发送视频消息
// but I understand that in professional environments, your boss might not like this tag // so that's cool. $tag_str = "freeCap v1.41 - puremango.co.uk"; // for debug: //$tag_str = "[".$word."]"; // ensure tag is right-aligned $tag_width = strlen($tag_str) * 6; // write tag ImageString($GLOBALS['im1'], 2, $width - $tag_width, $height - 13, $tag_str, $tag_col); // unset all sensetive vars // in case someone include()s this file on a shared server // you might think this unneccessary, as it exit()s // but by using register_shutdown_function // on a -very- insecure shared server, they -might- be able to get the word unset($word); // the below aren't really essential, but might aid an OCR attack if discovered. // so we unset them unset($use_dict); unset($dict_location); unset($max_word_length); unset($bg_type); unset($bg_images); unset($merge_type); unset($bg_fade_pct); unset($morph_bg); unset($col_type); unset($max_attempts); unset($font_locations); // output final image :-) sendImage($GLOBALS['im1']); // (sendImage also destroys all used images)
<?php require_once "./ChessImagerUtils.php"; $direction = getBoardDirection(); $board = makeBoardImage($direction); $pieceArray = parseFenString($_GET['fen']); for ($square = 0; $square < 64; $square++) { mergePiece($board, $pieceArray[$square], $square, $direction); } sendImage($board);
try { $res = $search->search("ecatalogue", $columns, $terms); } catch (Exception $e) { //echo "$e"; sendError(406); } if (isset($res->rows[0]["image"]["resource"])) { $img = $res->rows[0]["image"]["resource"]; } else { sendError(404); } $temp_img = tempnam(sys_get_temp_dir(), 'IMU'); saveImg($temp_img, $img); $fn = $img["identifier"]; $mime = $img["mimeFormat"]; sendImage($temp_img, $mime, $fn); function saveImg($newloc, $image) { // Save a copy of the resource $temp = $image['file']; $copy = fopen($newloc, 'wb'); for (;;) { $data = fread($temp, 4096); // read 4K at a time if ($data === false || strlen($data) == 0) { break; } fwrite($copy, $data); } fclose($copy); }
exit(); } } // save the new file in the appropriate path, and send a version to the browser switch ($extension){ case 'png': $gotSaved = ImagePng($dst, "$document_root/$cache_path/$resolution/$directories/$requested_file"); break; case 'gif': $gotSaved = ImageGif($dst, "$document_root/$cache_path/$resolution/$directories/$requested_file"); break; default: $gotSaved = ImageJpeg($dst, "$document_root/$cache_path/$resolution/$directories/$requested_file", $jpg_quality); break; } if(!$gotSaved) { /* Couldn't save image, notify the client by way of throwing a message in a bottle, as that's all we can do */ $im = ImageCreateTrueColor(800, 200); $text_color = ImageColorAllocate($im, 233, 14, 91); ImageString($im, 1, 5, 5, "Failed to create directories: $document_root/$cache_path/$resolution/$directories", $text_color); header('Content-Type: image/jpeg'); ImageJpeg($im); ImageDestroy($im); exit(); } else { // we saved the image to cache, now deliver the image to the client ImageDestroy($src); ImageDestroy($dst); sendImage("$document_root/$cache_path/$resolution/$directories/$requested_file",$mime_type,$browser_cache); } ?>