* @since 11/28/05 * @version 11/28/05 * @param $node The node that we are viewing **/ global $include_path, $jzUSER, $allow_filesystem_modify, $enable_podcast_subscribe, $path; $node = new jzMediaNode($path); $display = new jzDisplay(); // Let's start the page header $this->displayPageTop("", word("Admin Tools")); $this->openBlock(); if ($jzUSER->getSetting('admin') != true) { echo "<br><br><br><center>PERMISSION DENIED!!!"; $this->closeBlock(); } // Let's start our tabs $display->displayTabs(array("Media Management", "Meta Data", "System Tools")); // Let's setup our links $url_array = array(); $url_array['jz_path'] = $node->getPath("String"); $url_array['action'] = "popup"; // Now let's build an array of all the values for below if (checkPermission($jzUSER, "upload", $node->getPath("String")) and $allow_filesystem_modify == "true") { $url_array['ptype'] = "uploadmedia"; $valArr[] = '<a href="' . urlize($url_array) . '">' . word("Add Media") . '</a>'; } $url_array['ptype'] = "addlinktrack"; $valArr[] = '<a href="' . urlize($url_array) . '">' . word("Add Link Track") . '</a>'; $url_array['ptype'] = "setptype"; $valArr[] = '<a href="' . urlize($url_array) . '">' . word("Set Page Type") . '</a>'; $url_array['ptype'] = "scanformedia"; $valArr[] = '<a href="' . urlize($url_array) . '">' . word("Rescan Media") . '</a>';