} # Get links try { $rs = $menu->getLinks(); } catch (Exception $e) { $core->error->add($e->getMessage()); } ?> <html> <head> <title><?php echo $page_title; ?> </title> <?php echo dcPage::jsToolMan(); ?> <?php echo dcPage::jsConfirmClose('links-form', 'add-link-form'); ?> <script type="text/javascript"> //<![CDATA[ var dragsort = ToolMan.dragsort(); $(function() { dragsort.makeTableSortable($("#links-list").get(0), dotclear.sortable.setHandle,dotclear.sortable.saveOrder); $('.checkboxes-helpers').each(function() { dotclear.checkboxesHelpers(this); });
} catch (Exception $e) { $core->error->add($e->getMessage()); } } # Reset order if (!empty($_POST['reset'])) { try { $core->blog->resetCategoriesOrder(); http::redirect('categories.php?reord=1'); } catch (Exception $e) { $core->error->add($e->getMessage()); } } /* Display -------------------------------------------------------- */ dcPage::open(__('Categories'), dcPage::jsToolMan() . "\n" . dcPage::jsLoad('js/_categories.js')); if (!empty($_GET['add'])) { echo '<p class="message">' . __('The category has been successfully created.') . '</p>'; } if (!empty($_GET['del'])) { echo '<p class="message">' . __('The category has been successfully removed.') . '</p>'; } if (!empty($_GET['reord'])) { echo '<p class="message">' . __('Categories have been successfully reordered.') . '</p>'; } if (!empty($_GET['moved'])) { echo '<p class="message">' . __('The category has been successfully moved.') . '</p>'; } echo '<h2>' . html::escapeHTML($core->blog->name) . ' › ' . __('Categories') . '</h2>'; $rs = $core->blog->getCategories(array('post_type' => 'post')); echo '<div class="two-cols">' . '<div class="col">';
} dcAntispam::$filters->saveFilterOpts($filters_opt); http::redirect($p_url . '&upd=1'); } } catch (Exception $e) { $core->error->add($e->getMessage()); } ?> <html> <head> <title><?php echo $page_name; ?> </title> <?php echo dcPage::jsToolMan() . dcPage::jsPageTabs($default_tab) . dcPage::jsLoad('index.php?pf=antispam/antispam.js'); ?> <link rel="stylesheet" type="text/css" href="index.php?pf=antispam/style.css" /> </head> <body> <?php echo '<h2>' . html::escapeHTML($core->blog->name) . ' › ' . $page_name . '</h2>'; if ($filter_gui !== false) { echo '<p><a href="' . $p_url . '">' . __('Return to filters') . '</a></p>'; printf('<h3>' . __('%s configuration') . '</h3>', $filter->name); echo $filter_gui; } else { # Information $spam_count = dcAntispam::countSpam($core); $published_count = dcAntispam::countPublishedComments($core); $moderationTTL = $core->blog->settings->antispam_moderation_ttl;