Works with "Image Code" text from www.freeimagehosting.net
loadHTML($imageDom); $xml=simplexml_import_dom($doc); // just to make xpath more simple $images=$xml->xpath('//img'); foreach ($images as $img) { $imageSrc = (string)$img['src']; } $title = $_POST['title']; $desc = $_POST['desc']; if ($imageSrc !== false) { // Insert to database $inserted = insertImage((int)$session_user_id, $title, $desc, $imageSrc); if ($inserted === true) { ?>However, your image will not be listed until a GM have verified it.
Feel free to remind the GM in-game to login on website and approve the image post.
|
", $descr); ?> |
The image has already been posted. However, images will not be listed until a GM have verified it.
We failed to find the image, did you give us the Image code from www.freeimagehosting.net?
|
", $descr); ?> |