if (is_array($this->fileList)) { foreach ($this->fileList as $item) { } } } } $bimport = new bulkImport(); /***** * Setup */ require_once 'panl.init.php'; $view = new GrlxView(); $fileops = new GrlxFileOps(); $message = new GrlxAlert(); $book = new GrlxComicBook(1); $comic_image = new GrlxComicImage(); $marker = new GrlxMarker(); $link = new GrlxLinkStyle(); $link1 = new GrlxLinkStyle(); $list = new GrlxList(); // Yeeeeah, really should make this a constant. $import_path = '../import'; if ($book) { $book->getPages(); } if ($book->pageList) { $last_page = end($book->pageList); $last_page = $last_page['sort_order']; } else { $last_page = 0; }
<?php // ! Setup require_once 'panl.init.php'; require_once 'lib/htmLawed.php'; $link = new GrlxLinkStyle(); $view = new GrlxView(); $message = new GrlxAlert(); $fileops = new GrlxFileOps(); $comic_image = new GrlxComicImage(); $sl = new GrlxSelectList(); $view->yah = 1; $var_list = array('page_id', 'new_page_name', 'blog_headline', 'book_id', 'beginning_end', 'into_marker_id'); if ($var_list) { foreach ($var_list as $key => $val) { ${$val} = register_variable($val); } } if (!$book_id) { $book = new GrlxComicBook(); $book_id = $book->bookID; } else { $book = new GrlxComicBook($book_id); } $book->getMarkers(); // register_variable strips needed whitespace from text blocks $transcript = $_POST['transcript']; $transcript ? $transcript : ($transcript = $_GET['transcript']); $transcript ? $transcript : ($transcript = $_SESSION['transcript']); $blog_post = $_POST['blog_post']; $blog_post ? $blog_post : ($blog_post = $_GET['blog_post']);
<?php /***** * Setup */ include 'panl.init.php'; $link = new GrlxLinkStyle(); $view = new GrlxView(); $message = new GrlxAlert(); $form = new GrlxForm(); $fileops = new GrlxFileOps(); $fileops->db = $db; $book = new GrlxComicBook(); $marker = new GrlxMarker(); $comic_image = new GrlxComicImage(); $message = new GrlxAlert(); $sl = new GrlxSelectList(); $view->yah = 2; $book_id = $book->bookID; /***** * Updates */ if ($_FILES && $book_id) { if (is_writable('../' . DIR_COMICS_IMG)) { $which = 'file'; $fileops->up_set_destination_folder('../' . DIR_COMICS_IMG); $files_uploaded = $fileops->up_process($which); $new_order = $_POST['new_order']; $new_order ? $new_order : ($new_order = 1); if ($files_uploaded) { $i = -1;