// force UTF-8 Ø define('OFFSET_PATH', 1); require_once dirname(__FILE__) . '/admin-functions.php'; require_once dirname(__FILE__) . '/class-sortable.php'; $_zp_sortable_list = new jQuerySortable('js'); // $_zp_sortable_list->debug(); // Uncomment this line to display serialized object if (getOption('zenphoto_release') != ZENPHOTO_RELEASE) { header("Location: " . FULLWEBPATH . "/" . ZENFOLDER . "/setup.php"); exit; } if (!zp_loggedin()) { header("Location: " . FULLWEBPATH . "/" . ZENFOLDER . "/admin.php"); exit; } // Insert the POST operation handler zenSortablesPostHandler($_zp_sortable_list, 'imageOrder', 'images', 'images'); // Print the admin header printAdminHeader(); // Print the sortable stuff zenSortablesHeader($_zp_sortable_list, 'images', 'imageOrder', 'img', "placeholder:'zensortable_img'"); echo "\n</head>"; ?> <body> <?php // Create our gallery $gallery = new Gallery(); // Create our album if (!isset($_GET['album'])) {
} } } /* NO Admin-only content between this and the next check. */ /************************************************************************************/ /** End Action Handling *************************************************************/ /************************************************************************************/ $page = "edit"; if (isset($_GET['tab'])) { $subtab = sanitize($_GET['tab']); } else { $subtab = ''; } if ($sortablepage = empty($subtab) && !isset($_GET['album']) && !isset($_GET['massedit']) || $subtab === 'subalbuminfo') { $sortablepage = true; zenSortablesPostHandler($_zp_sortable_list, 'albumOrder', 'albumList', 'albums'); } // Print our header printAdminHeader(); if ($sortablepage) { zenSortablesHeader($_zp_sortable_list, 'albumList', 'albumOrder', 'div', "handle:'.handle', axis:'y', containment:'table', placeholder:'zensortable_row'"); } if (empty($subtab)) { ?> <script type="text/javascript" src="js/tag.js"></script> <?php $result = mysql_query('SHOW COLUMNS FROM ' . prefix('albums')); $dbfields = array(); while ($row = mysql_fetch_row($result)) { $dbfields[] = "'" . $row[0] . "'"; }