<?php /** * mailing list admin section * * PHP version 5.2 * * @category None * @package None * @author Conor Mac Aoidh <*****@*****.**> * @license GPL 2.0 * @link http://kvsites.ie/ */ ww_addScript('/ww.plugins/mailing-list/files/admin.js'); echo Core_adminSideMenu(array('View List' => $_url, 'New Email' => $_url . '&mailing_list=send_email', 'Form Options' => $_url . '&mailing_list=form_options')); echo '<em>This plugin is deprecated.' . ' Please use the Mailinglist (no hyphen) plugin instead.</em>'; echo '<div class="pages_iframe">'; $page = isset($_GET['mailing_list']) ? $_GET['mailing_list'] : ''; $dir = dirname(__FILE__); switch ($page) { case 'form_options': require_once $dir . '/form_options.php'; break; case 'delete': require_once $dir . '/actions.delete.php'; require_once $dir . '/view_list.php'; break; case 'send_email': require_once $dir . '/actions.email.php'; break; default:
<?php ww_addScript('/ww.plugins/polls/admin/polls.js'); echo Core_adminSideMenu(array('New' => $_url . '&action=newPoll', 'View All' => $_url)); echo '<div class="pages_iframe">'; $edit = $action == 'editPoll' ? 1 : 0; $dir = dirname(__FILE__); switch ($action) { case 'deletePoll': // { if ($id) { require_once $dir . '/actions.delete.php'; } require_once $dir . '/showitems.php'; break; // } // } case 'Edit Poll': // { require_once $dir . '/actions.edit.php'; require_once $dir . '/forms.php'; break; // } // } case 'Create Poll': // { require_once $dir . '/actions.new.php'; require_once $dir . '/forms.php'; break; // } // }
} $c .= '</select></td>'; // } // { show captions in slider $c .= '<th>Show Captions in Slider</th><td>' . '<select name="page_vars[image_gallery_captions_in_slider]">' . '<option>No</option><option value="1"'; if ('1' == @$vars['image_gallery_captions_in_slider']) { $c .= ' selected="selected"'; } $c .= '">Yes</option></select></td></tr>'; // } $c .= '<tr><th>Gallery Container Width:</th>'; $c .= '<td><input type="text" name="page_vars[image_gallery_width]" '; $c .= ' value="' . @$vars['image_gallery_width'] . '"/></td>'; $c .= '<td colspan="2"><i>If left blank this value will be calculated manually, this is ' . 'the recommended method.</i></td>'; $c .= '</tr>'; // } // } // { form footer $c .= '</table>'; $c .= '</div>'; $c .= '</div>'; if (!is_dir(USERBASE . '/ww.cache/image-gallery')) { mkdir(USERBASE . '/ww.cache/image-gallery'); } if (file_exists(USERBASE . '/ww.cache/image-gallery/' . $page['id'])) { unlink(USERBASE . '/ww.cache/image-gallery/' . $page['id']); } file_put_contents(USERBASE . '/ww.cache/image-gallery/' . $page['id'], @$vars['gallery-template']); ww_addScript('/ww.plugins/image-gallery/admin/admin.js'); WW_addCSS('/ww.plugins/image-gallery/admin/admin.css'); // }
$html .= '</tr></thead>'; $html .= '<tbody>'; $comments = dbAll('select * from comments where objectid = ' . $id); foreach ($comments as $comment) { $id = $comment['id']; $html .= '<tr id="comment-' . $id . '">'; $html .= '<td>' . $comment['cdate'] . '</td>'; $html .= '<td>' . $comment['name'] . '</td>'; $html .= '<td>' . $comment['email'] . '</td>'; $html .= '<td>' . $comment['homepage'] . '</td>'; $html .= '<td>' . $comment['comment'] . '</td>'; $html .= '<td>'; $html .= '<a href="javascript:;" onclick="start_moderation(' . $id . ',' . (-1 * $comment['isvalid'] + 1) . ');">'; $html .= $comment['isvalid'] ? 'Unapprove' : 'Approve'; $html .= '</a></td>'; $html .= '<td><a href="javascript:;" onclick="start_edit(' . $id . ',\'' . $comment['comment'] . '\')">'; $html .= 'edit</a></td>'; $html .= '<td><a href="javascript:;" onclick="start_delete(' . $id . ');">' . '[x]</a></td>'; $html .= '</tr>'; } $html .= '</tbody></table>'; $html .= '</div>'; echo $html; // } $noModeration = (int) dbOne('select value from site_vars where name = "comments_no_moderation"', 'value'); echo '<script>var noModeration=' . ($noModeration ? 1 : 0) . ';</script>'; ww_addCss('/ww.plugins/comments/admin/comments-table.css'); ww_addScript('/ww.plugins/comments/admin/comments.js');
<?php /** * Webme Dynamic Search Plugin * * PHP version 5.2 * * @category None * @package None * @author Kae Verens <*****@*****.**> * @license GPL 2.0 * @link http://kvsites.ie/ */ ww_addScript('/ww.plugins/dynamic-search/files/admin.js'); $q = dbAll('select value from site_vars where name="catags"'); $catags = explode(',', $q[0]['value']); if ($_POST['dynamic_submit']) { $add = addslashes($_POST['dynamic_newcat']); $id = dbOne('select id from pages where name="' . $add . '"', 'id'); if (in_array($add, $catags)) { $error = 'That category already exists.'; } if ($id == '' || !$id) { $error = 'The category must be a pagename.'; } elseif (!$error) { array_push($catags, $add); dbQuery('update site_vars set value="' . implode(',', $catags) . '" where name="catags"'); $error = 'Category Added'; } } $delete = addslashes($_GET['dynamic_delete_cat']);