/** * Load html content from next page. * * @param $dom * DOM object from current page. * * @return * DOM object from the next page. */ function next_page_load($dom) { $next = $dom->find('a#next_page_link'); if (is_object($next[0])) { $nexturl = MAIN_DOMAIN . $next[0]->getAttribute('href'); $dom = page_load($nexturl); return $dom; } return FALSE; }
$config['maxShow'] = 10; $config['fulls'] = "{$xl_folder}{$folder}/"; $config['thumbs'] = "{$xl_folder}{$folder}/thumbs/"; $config['start'] = 0; $config['max'] = 0; $config['page'] = isset($_GET['page']) ? $_GET['page'] : "0"; $link = "?xl=Gallery&ID={$id}"; if ($act == "Del") { global $config, $title, $i, $id; $full = $config['fulls'] . $Filename; $thumbs = $config['thumbs'] . $Filename; unlink($full); unlink($thumbs); $msg = "Đã xóa <b>" . $Filename . "</b> thành công."; $page = "?xl=Gallery&ID={$ID}"; page_load($msg, $page); return false; } else { function PrintThumbs() { global $config, $title, $i, $id; if (!$id) { header("location:?xl=Gallery&ID=1"); } if ($id >= $i) { $msg = "Thể loại này không có thực<br>- Xin chọn thể loại từ danh mục có sẵn."; $page = "?xl=Home"; page_load2($msg, $page); return false; } if (!file_exists($config['fulls'])) {
<?php include "conexion.php"; include "controler.php"; page_load(); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> function nuevoAjax() { /* Crea el objeto AJAX. Esta funcion es generica para cualquier utilidad de este tipo, por lo que se puede copiar tal como esta aqui */ var xmlhttp=false; try { // Creacion del objeto AJAX para navegadores no IE xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { // Creacion del objet AJAX para IE xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch(E) { xmlhttp=false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp=new XMLHttpRequest(); } return xmlhttp;