echo "<body onLoad=\"CloseWindow('ผิดพลาดเกี่ยวกับการรับส่งค่า')\">ผิดพลาดเกี่ยวกับการรับส่งค่า</body>"; exit; } if ($_GET['action'] == 'add') { $type = $_GET['type']; $id = $_GET['id']; $name = $_GET['name']; if (empty($_GET['name'])) { echo "<body onLoad=\"CloseWindow('ผิดพลาดเกี่ยวกับการรับส่งค่า')\">ผิดพลาดเกี่ยวกับการรับส่งค่า</body>"; exit; } $type = addslashes($type); $id = addslashes($id); $name = addslashes($name); if (checkbookmark($_SESSION['ses_fbid'], $type, $id) == true) { $temp = bookmarking($_SESSION['ses_fbid'], $type, $id, $name); if ($temp == true) { echo "<body onLoad=\"CloseWindow('การ Bookmark เสร็จสมบูรณ์')\">การ Bookmark เสร็จสมบูรณ์</body>"; } else { echo "<body onLoad=\"CloseWindow('การ Bookmark ผิดพลาด')\">การ Bookmark ผิดพลาด</body>"; } } else { echo "<body onLoad=\"CloseWindow('คุณ Bookmark เรื่องนี้ไปแล้ว')\">คุณ Bookmark เรื่องนี้ไปแล้ว</body>"; } } if ($_GET['action'] == 'remove') { $type = $_GET['type']; $id = $_GET['id']; $type = addslashes($type); $id = addslashes($id); if (checkbookmark($_SESSION['ses_fbid'], $type, $id) == false) {
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * You may not modify and/or remove any copyright notices or labels on the software on each * page (unless full license is purchase) and in the header of each script source file. * * You should have received a full copy of the LICENSE AGREEMENT along with * Codefuture Image Hosting Script. If not, see http://codefuture.co.uk/projects/imagehost/license/. * * * ABOUT THIS PAGE ----- * Used For: Admin Bulk image uploader * Last edited: 19/12/2012 * *************************************************************************************************************/ // check for errors coming from other pages if (isset($_SESSION['err'])) { $Err = $_SESSION['err']; unset($_SESSION['err']); } // check for uploaded image to show if (isset($_SESSION['upload']) && isset($_SESSION['show_image'])) { $countThumb = 0; // count number of thumb's on page $thumbHtml = ''; // hold thumbnail page html // image loop
$thumb_Ad_html = !isset($countThumb) || $countThumb < 2 ? get_ad('thumb', 'thumb_Ad', false) : ''; //image box $thumbHtml .= '<div class="img_ad_box ' . (isset($countThumb) && $countThumb > 0 ? ' nextbox' : '') . '"> <div class="img_box' . (!empty($thumb_Ad_html) ? ' left' : '') . '"> <a href="' . $imgurl . '" title="' . $alt . '" class="lightbox" ><img src="' . $thumb_show . '" alt="' . $alt . '" /><br/> <span>' . $alt . '</span></a> </div> ' . $thumb_Ad_html . ' <div class="clear_both"></div> </div>'; // AdSense $thumbHtml .= !isset($delete_id) ? get_ad('gallery', 'thumb_Ad2', false) : ''; //image links $thumbHtml .= '<div id="links" class="boxpanel' . $layout . '"> <h2 class="boxtitle">' . _T("site_index_hide_link") . '</h2> <div class="code_box"><label id="toplabel">' . _T("site_index_social_networks") . ':</label>' . bookmarking($shorturl == null ? $thumb_mid_link : $shorturl, $alt) . '</div>'; // Short URL if ($shorturl != null && !empty($shorturl)) { $thumbHtml .= ' <div class="code_box"><label for="shorturl">' . _T("site_index_short_url_link") . ':</label> <input type="text" id="codehtml" value="' . $shorturl . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div>'; } // Image Links $thumbHtml .= ' <h3>' . _T("site_index_small_thumbnail_link") . '</h3> <div class="code_box"><label for="codelbb">' . _T("site_index_bbcode") . ':</label> <input type="text" id="codelbb" value="' . $links[$countThumb]['thumb_bbcode'] . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div> <div class="code_box"><label for="codehtml"><a href="' . $thumb_link . '" title="' . $alt . '" >' . _T("site_index_html_code") . '</a> :</label> <input type="text" id="codehtml" value="' . $links[$countThumb]['thumb_html'] . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div> <h3>' . _T("site_index_thumbnail_link") . '</h3> <div class="code_box"><label for="codelbb">' . _T("site_index_bbcode") . ':</label> <input type="text" id="codelbb" value="' . $links[$countThumb]['thumb_mid_bbcode'] . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div> <div class="code_box"><label for="codehtml"><a href="' . $thumb_mid_link . '" title="' . $alt . '" >' . _T("site_index_html_code") . '</a> :</label> <input type="text" id="codehtml" value="' . $links[$countThumb]['thumb_mid_html'] . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div> <h3>' . _T("site_index_image_link") . '</h3> <div class="code_box"><label for="codebb">' . _T("site_index_bbcode") . ':</label> <input type="text" id="codebb" value="' . $links[$countThumb]['image_bbcode'] . '" onclick="javascript:this.focus();this.select();" readonly="true" class="text_input long" /></div>