$fm_options[-1 * $c] = "[" . $categories[$c] . "]"; foreach (array_keys($forums[$c]) as $f) { $fm_options[$f] = $forums[$c][$f]["prefix"] . $forums[$c][$f]["forum_name"]; } } unset($forums, $categories); $fmform = new XoopsThemeForm(_AM_NEWBB_TYPE_FORUM, 'fmform', xoops_getenv("PHP_SELF"), "post"); $fm_select = new XoopsFormSelect(_AM_NEWBB_PERM_FORUMS, 'forum', null, 5, false); $fm_select->addOptionArray($fm_options); $fmform->addElement($fm_select); $tray = new XoopsFormElementTray(''); $tray->addElement(new XoopsFormHidden('op', 'edit_forum')); $tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); $tray->addElement(new XoopsFormButton('', 'reset', _CANCEL, 'reset')); $fmform->addElement($tray); loadModuleAdminMenu(11, _AM_NEWBB_TYPE_FORUM); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_ACTION . "</legend>"; echo "<br />"; echo "<a style='border: 1px solid #5E5D63; color: #000000; font-family: verdana, tahoma, arial, helvetica, sans-serif; font-size: 1em; padding: 4px 8px; text-align:center;' href='" . xoops_getenv("PHP_SELF") . "?op=add'>"; echo _AM_NEWBB_TYPE_ADD . "</a> | "; echo "<a style='border: 1px solid #5E5D63; color: #000000; font-family: verdana, tahoma, arial, helvetica, sans-serif; font-size: 1em; padding: 4px 8px; text-align:center;' href='" . xoops_getenv("PHP_SELF") . "?op=template'>"; echo _AM_NEWBB_TYPE_TEMPLATE . "</a> | "; echo "<a style='border: 1px solid #5E5D63; color: #000000; font-family: verdana, tahoma, arial, helvetica, sans-serif; font-size: 1em; padding: 4px 8px; text-align:center;' href='" . xoops_getenv("PHP_SELF") . "?op=forum'>"; echo _AM_NEWBB_TYPE_FORUM . "</a> | "; echo "</fieldset>"; echo "<br />"; echo "<br />"; echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_TYPE_FORUM . "</legend>"; echo "<br />"; $fmform->display(); echo "</fieldset>";
<?php include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(4, ""); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; $post_time = isset($_REQUEST["begin"]) ? $_REQUEST["begin"] : ''; $sort = isset($_REQUEST['sort']) ? trim($_REQUEST['sort']) : 'desc'; $start = isset($_REQUEST['start']) ? trim($_REQUEST['start']) : 0; $limit = 10; if (!empty($post_time)) { $begin = isset($_REQUEST["begin"]["date"]) ? strtotime($_REQUEST["begin"]["date"]) : 0; $begin = $begin + $_REQUEST["begin"]["time"]; $finish = isset($_REQUEST["finish"]["date"]) ? strtotime($_REQUEST["finish"]["date"]) : 0; $finish = $finish + $_REQUEST["finish"]["time"]; } else { $begin = time(); $finish = time(); } $subscribe_handler = xoops_getmodulehandler('subscribe', 'newsletter'); $subscribelog_handler = xoops_getmodulehandler('subscribelog', 'newsletter'); switch ($op) { default: case 'list': if ($sort == 'desc') { $time = time(); } else { $time = 0; $criteria = new CriteriaCompo(); $criteria->setSort('subscribe_timestamp'); $criteria->setOrder('asc');
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The BEIJING XOOPS Co.Ltd. http://www.xoops.com.cn * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package spotlight * @since 1.0.0 * @author Mengjue Shao <*****@*****.**> * @author Susheng Yang <*****@*****.**> * @version $Id: admin.page.php 1 2010-8-31 ezsky$ */ include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(2); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['page_id']) ? 'edit' : 'display'); $page_id = isset($_REQUEST['page_id']) ? intval($_REQUEST['page_id']) : ''; $sp_id = isset($_REQUEST['sp_id']) ? intval($_REQUEST['sp_id']) : ''; $sp_handler =& xoops_getmodulehandler('spotlight', 'spotlight'); $page_handler =& xoops_getmodulehandler('page', 'spotlight'); $spotlights = $sp_handler->getList(); if (empty($spotlights)) { redirect_header('admin.spotlight.php', 3, _AM_SPOTLIGHT_PLEASE_ADD_SLIDE); } $sp_name = !empty($sp_id) ? $spotlights[$sp_id] : current($spotlights); $sp_id = !empty($sp_id) ? $sp_id : current($sp_handler->getIds()); switch ($op) { default: case 'display': $page_order = isset($_REQUEST['page_order']) ? $_REQUEST['page_order'] : '';
<?php include "../../../include/cp_header.php"; xoops_cp_header(); include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"; loadModuleAdminMenu(5, "About"); echo '<link rel="stylesheet" type="text/css" media="screen" href="../css/admin.css" />'; echo '<div id="m_body">'; echo "About"; echo '</div>'; xoops_cp_footer();
loadModuleAdminMenu(2, _AM_NEWBB_CREATENEWFORUM); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_CREATENEWFORUM . "</legend>"; echo "<br />"; $parent_forum = @intval($_GET['forum']); $cat_id = @intval($_GET['cat_id']); if (!$parent_forum && !$cat_id) { break; } $forum_obj =& $forum_handler->create(); $forum_obj->setVar("parent_forum", $parent_forum); $forum_obj->setVar("cat_id", $cat_id); include XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/form.forum.php"; echo "</fieldset>"; break; default: loadModuleAdminMenu(2, _AM_NEWBB_FORUM_MANAGER); $echo = "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_FORUM_MANAGER . "</legend>"; $echo .= "<br />"; $echo .= "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; $echo .= "<tr align='center'>"; $echo .= "<td class='bg3' colspan='2'>" . _AM_NEWBB_NAME . "</td>"; $echo .= "<td class='bg3'>" . _AM_NEWBB_EDIT . "</td>"; $echo .= "<td class='bg3'>" . _AM_NEWBB_DELETE . "</td>"; $echo .= "<td class='bg3'>" . _AM_NEWBB_ADD . "</td>"; $echo .= "<td class='bg3'>" . _AM_NEWBB_MOVE . "</td>"; $echo .= "<td class='bg3'>" . _AM_NEWBB_MERGE . "</td>"; $echo .= "</tr>"; $category_handler =& xoops_getmodulehandler('category', 'newbb'); $criteria_category = new CriteriaCompo(new criteria('1', 1)); $criteria_category->setSort('cat_order'); $categories = $category_handler->getList($criteria_category);
} for ($i = 0; $i < count($orders); $i++) { $sql = "update " . $xoopsDB->prefix("bb_forums") . " set forum_order = " . $orders[$i] . " WHERE forum_id=" . $forum[$i]; if (!($result = $xoopsDB->query($sql))) { redirect_header("admin_forum_reorder.php", 1, _AM_NEWBB_FORUM_ERROR); } } redirect_header("admin_forum_reorder.php", 1, _AM_NEWBB_BOARDREORDER); } else { include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; $orders = array(); $cat_orders = array(); $forum = array(); $cat = array(); xoops_cp_header(); loadModuleAdminMenu(6, _AM_NEWBB_SETFORUMORDER); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_SETFORUMORDER . "</legend>"; echo "<br /><br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>"; $tform = new XoopsThemeForm(_AM_NEWBB_SETFORUMORDER, "", ""); $tform->display(); echo "<form name='reorder' method='post'>"; echo "<table border='0' width='100%' cellpadding='2' cellspacing='1' class='outer'>"; echo "<tr>"; echo "<td class='head' align='left' width='60%'><strong>" . _AM_NEWBB_REORDERTITLE . "</strong></td>"; echo "<td class='head' align='center'><strong>" . _AM_NEWBB_REORDERWEIGHT . "</strong></td>"; echo "</tr>"; $forum_handler =& xoops_getmodulehandler('forum', 'newbb'); $category_handler =& xoops_getmodulehandler('category', 'newbb'); $criteria_category = new CriteriaCompo(new criteria('1', 1)); $criteria_category->setSort('cat_order'); $categories = $category_handler->getAll($criteria_category, array("cat_id", "cat_order", "cat_title"));
case "process": default: include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/xoopsformloader.php"; if ($item == 'process') { $process_result = 0; $item_other = 'processed'; $title_other = _AM_XFORUM_PROCESSEDREPORT; $extra = _AM_XFORUM_REPORTEXTRA; } else { $process_result = 1; $item_other = 'process'; $title_other = _AM_XFORUM_PROCESSREPORT; $extra = _DELETE; } $limit = 10; loadModuleAdminMenu(8, _AM_XFORUM_REPORTADMIN); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XFORUM_REPORTADMIN . "</legend>"; echo "<br />"; echo "<a style='border: 1px solid #5E5D63; color: #000000; font-family: verdana, tahoma, arial, helvetica, sans-serif; font-size: 1em; padding: 4px 8px; text-align:center;' href=\"admin_report.php?item={$item_other}\">" . $title_other . "</a><br /><br />"; echo '<form action="' . xoops_getenv('PHP_SELF') . '" method="post">'; echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; echo "<tr align='center'>"; echo "<td class='bg3' width='80%'>" . _AM_XFORUM_REPORTTITLE . "</td>"; echo "<td class='bg3' width='10%'>" . $extra . "</td>"; echo "</tr>"; $reports = $report_handler->getAllReports(0, "ASC", $limit, $start, $process_result); foreach ($reports as $report) { $post_link = "<a href=\"" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/viewtopic.php?post_id=" . $report['post_id'] . "&topic_id=" . $report['topic_id'] . "&forum=" . $report['forum_id'] . "&viewmode=thread\" target=\"checkreport\">" . $myts->htmlSpecialChars($report['subject']) . "</a>"; $checkbox = '<input type="checkbox" name="report_id[' . $report['report_id'] . ']" value="1" checked="checked" />'; if ($item == 'process') { $memo = '<input type="text" name="report_memo[' . $report['report_id'] . ']" maxlength="255" size="80" />';
// This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: XOOPS Foundation // // URL: http://www.xoops.org/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(2, ""); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $handler =& xoops_getmodulehandler('category'); switch ($op) { default: case "list": $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight'); $criteria->setOrder('ASC'); $GLOBALS['xoopsTpl']->assign('categories', $handler->getObjects($criteria, true, false)); $template_main = "profile_admin_categorylist.html"; break; case "new": include_once '../include/forms.php'; $obj =& $handler->create(); $form = $obj->getForm();
<?php /** * Article module for XOOPS * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package article * @since 1.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: admin.block.php 2178 2008-09-26 08:34:09Z phppp $ */ include "header.php"; xoops_cp_header(); require XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/vars.php"; loadModuleAdminMenu(5); echo "<div style=\"padding: 8px;\">"; echo "<h2>Coming soon ...</h2>"; echo "</div>"; xoops_cp_footer(); exit;
<?php include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(0, ""); xoops_loadLanguage("main", "press"); $op = isset($_REQUEST["op"]) ? $_REQUEST["op"] : "create"; $topic_id = isset($_GET["topic_id"]) ? intval($_GET["topic_id"]) : 0; $topic_handler = xoops_getmodulehandler("topics"); $topic = $topic_handler->get($topic_id); switch ($op) { default: case "create": require_once dirname(__FILE__) . "../../include/form.php"; $template_main = "press_cp_edit.html"; break; case "edit": if (is_object($topic)) { $cat_id = $topic->getVar("cat_id"); $subject = $topic->getVar("subject"); $content = $topic->getVar("content", "n"); $date = $topic->getVar("topic_date"); } else { $topic_id = 0; $date = time(); } require_once dirname(__FILE__) . "../../include/form.php"; $template_main = "press_cp_edit.html"; break; case "delete": xoops_confirm(array("topic_id" => $topic_id, "op" => "deletetopic"), "action.php", "确定删除 [ {$topic->getVar("subject")} ] 这篇主题.");
$res = forum_admin_chmod($path, 0777); $msg = $res ? _AM_XFORUM_PERMSET : _AM_XFORUM_PERMNOTSET; redirect_header('index.php', 2, $msg . ': ' . $path); exit; break; case "senddigest": $digest_handler =& xoops_getmodulehandler('digest', 'xforum'); $res = $digest_handler->process(true); $msg = $res ? _AM_XFORUM_DIGEST_FAILED : _AM_XFORUM_DIGEST_SENT; redirect_header('index.php', 2, $msg); exit; break; case "default": default: xoops_cp_header(); loadModuleAdminMenu(0, "Index"); $imageLibs = forum_getImageLibs(); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XFORUM_PREFERENCES . "</legend>"; echo "<div style='padding: 12px;'>" . _AM_XFORUM_POLLMODULE . ": "; $module_handler =& xoops_gethandler('module'); $xoopspoll =& $module_handler->getByDirname('xoopspoll'); if (is_object($xoopspoll)) { $isOK = $xoopspoll->getVar('isactive'); } else { $isOK = false; } echo $isOK ? _AM_XFORUM_AVAILABLE : _AM_XFORUM_NOTAVAILABLE; echo "</div>"; echo "<div style='padding: 8px;'>"; echo "<a href='http://www.imagemagick.org' target='_blank'>" . _AM_XFORUM_IMAGEMAGICK . " </a>"; if (array_key_exists('imagemagick', $imageLibs)) {
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Co.Ltd. http://www.xoops.com.cn * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package links * @since 1.0.0 * @author Mengjue Shao <*****@*****.**> * @author Susheng Yang <*****@*****.**> * @version $Id: admin.index.php 1 2010-1-22 ezsky$ */ include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(0); $path = isset($_REQUEST['path']) ? $_REQUEST['path'] : ''; $cat_handler =& xoops_getmodulehandler('category', 'links'); $links_handler =& xoops_getmodulehandler('links', 'links'); $create = array('logo_dir' => XOOPS_ROOT_PATH . $xoopsModuleConfig['logo_dir']); if ($path) { include_once "../include/functions.php"; switch ($path) { case 'logo_dir': Linksmkdirs($create['logo_dir']); break; default: break; } } foreach ($create as $k => $v) {
// source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include "admin_header.php"; include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/xoopsformloader.php"; xoops_cp_header(); loadModuleAdminMenu(5, _AM_NEWBB_PRUNE_TITLE); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_PRUNE_TITLE . "</legend>"; echo "<br /><br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>"; if (!empty($_POST['submit'])) { $post_list = null; $topic_list = null; $topics_number = 0; $posts_number = 0; if (empty($_POST["forums"])) { redirect_header("./admin_forum_prune.php", 1, _AM_NEWBB_PRUNE_FORUMSELERROR); } elseif (is_array($_POST["forums"])) { $selected_forums = implode(",", $_POST["forums"]); } $prune_days = $myts->addSlashes($_POST["days"]); $prune_ddays = time() - $prune_days; $archive = $myts->addSlashes($_POST["archive"]);
<?php /** * newbb * * @copyright The XOOPS project http://www.xoops.org/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @author Taiwen Jiang (phppp or D.J.) <*****@*****.**> * @since 4.00 * @version $Id$ * @package module::newbb */ include 'admin_header.php'; xoops_cp_header(); loadModuleAdminMenu(12, _AM_NEWBB_SYNCFORUM); //if (!empty($_GET['type'])) { $start = intval(@$_GET['start']); switch (@$_GET['type']) { case "forum": $forum_handler =& xoops_getmodulehandler('forum', 'newbb'); if ($start >= ($count = $forum_handler->getCount())) { break; } if (empty($start)) { $mysql_version = version_compare(mysql_get_server_info(), "4.1.0", "ge"); /* for MySQL 4.1+ */ if ($mysql_version) { $sql = "\tUPDATE " . $xoopsDB->prefix("bb_forums") . "\tSET parent_forum = 0" . "\tWHERE (parent_forum NOT IN ( SELECT DISTINCT forum_id FROM " . $xoopsDB->prefix("bb_forums") . "))" . "\t\tOR parent_forum = forum_id"; } else { // for 4.0+ /* */
*/ /** * XOOPS tag management module * * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @since 1.0.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: syn.tag.php 2292 2008-10-12 04:53:18Z phppp $ * @package tag */ include 'header.php'; require_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; xoops_cp_header(); include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(2) : ""; $limit = 10; $modid = intval(@$_GET['modid']); $start = intval(@$_GET['start']); $limit = isset($_GET['limit']) ? intval($_GET['limit']) : 100; $sql = " SELECT tag_modid, COUNT(DISTINCT tag_id) AS count_tag"; $sql .= " FROM " . $xoopsDB->prefix("tag_link"); $sql .= " GROUP BY tag_modid"; $counts_module = array(); $module_list = array(); if ($result = $xoopsDB->query($sql)) { while ($myrow = $xoopsDB->fetchArray($result)) { $counts_module[$myrow["tag_modid"]] = $myrow["count_tag"]; } if (!empty($counts_module)) { $module_handler =& xoops_gethandler("module");
* @author TDM TEAM DEV MODULE * * **************************************************************************** */ include '../../../include/cp_header.php'; include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; include_once XOOPS_ROOT_PATH . "/class/tree.php"; include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; include_once "../include/functions.php"; xoops_cp_header(); if (!is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php")) { Adminmenu(4, _AM_TDMCREATE_MANAGER_ABOUT); echo "<style>\r\n.CPbigTitle{\r\n\tfont-size: 20px;\r\n\tcolor: #1E90FF;\r\n\tbackground: no-repeat left top;\r\n\tfont-weight: bold;\r\n\theight: 40px;\r\n\tvertical-align: middle;\r\n\tpadding: 10px 0 0 50px;\r\n\tborder-bottom: 3px solid #1E90FF;\r\n}\r\n</style>"; } else { include_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.admin.php'; loadModuleAdminMenu(4, _AM_TDMCREATE_MANAGER_ABOUT); } //menu echo '<div class="CPbigTitle" style="background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px; height: 48px;"><strong>' . _AM_TDMCREATE_MANAGER_ABOUT . '</strong>'; echo '</div><br />'; $versioninfo =& $module_handler->get($xoopsModule->getVar('mid')); echo "\r\n\t<style type=\"text/css\">\r\n\tlabel,text {\r\n\t\tdisplay: block;\r\n\t\tfloat: left;\r\n\t\tmargin-bottom: 2px;\r\n\t}\r\n\tlabel {\r\n\t\ttext-align: right;\r\n\t\twidth: 150px;\r\n\t\tpadding-right: 20px;\r\n\t}\r\n\tbr {\r\n\t\tclear: left;\r\n\t}\r\n\t</style>\r\n"; echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . $xoopsModule->getVar("name") . "</legend>"; echo "<div style='padding: 8px;'>"; echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/" . $versioninfo->getInfo('image') . "' alt='' hspace='10' vspace='0' /></a>\n"; echo "<div style='padding: 5px;'><strong>" . $versioninfo->getInfo('name') . " version " . $versioninfo->getInfo('version') . "</strong></div>\n"; echo "<label>" . _AM_TDMCREATE_ABOUT_RELEASEDATE . ":</label><text>" . $versioninfo->getInfo('release') . "</text><br />"; echo "<label>" . _AM_TDMCREATE_ABOUT_AUTHOR . ":</label><text>" . $versioninfo->getInfo('author') . "</text><br />"; echo "<label>" . _AM_TDMCREATE_ABOUT_CREDITS . ":</label><text>" . $versioninfo->getInfo('credits') . "</text><br />"; echo "<label>" . _AM_TDMCREATE_ABOUT_LICENSE . ":</label><text><a href=\"" . $versioninfo->getInfo('license_file') . "\" target=\"_blank\" >" . $versioninfo->getInfo('license') . "</a></text>\n"; echo "</div>";
} if ($cat_id = $category_obj->getVar("cat_id") && $cat_isNew) { $category_handler->applyPermissionTemplate($category_obj); } redirect_header("admin_cat_manager.php", 2, $message); exit; default: if (!($categories = $category_handler->getByPermission("all"))) { loadModuleAdminMenu(1, _AM_NEWBB_CREATENEWCATEGORY); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_CREATENEWCATEGORY . "</legend>"; echo "<br />"; newCategory(); echo "</fieldset>"; break; } loadModuleAdminMenu(1, _AM_NEWBB_CATADMIN); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_CATADMIN . "</legend>"; echo "<br />"; echo "<a style='border: 1px solid #5E5D63; color: #000000; font-family: verdana, tahoma, arial, helvetica, sans-serif; font-size: 1em; padding: 4px 8px; text-align:center;' href='admin_cat_manager.php?op=mod'>" . _AM_NEWBB_CREATENEWCATEGORY . "</a><br /><br />"; echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; echo "<tr align='center'>"; echo "<td class='bg3'>" . _AM_NEWBB_CATEGORY1 . "</td>"; echo "<td class='bg3' width='10%'>" . _AM_NEWBB_EDIT . "</td>"; echo "<td class='bg3' width='10%'>" . _AM_NEWBB_DELETE . "</td>"; echo "</tr>"; foreach ($categories as $key => $onecat) { $cat_edit_link = "<a href=\"admin_cat_manager.php?op=mod&cat_id=" . $onecat->getVar('cat_id') . "\">" . newbb_displayImage('admin_edit', _EDIT) . "</a>"; $cat_del_link = "<a href=\"admin_cat_manager.php?op=del&cat_id=" . $onecat->getVar('cat_id') . "\">" . newbb_displayImage('admin_delete', _DELETE) . "</a>"; $cat_title_link = "<a href=\"" . XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/index.php?cat=" . $onecat->getVar('cat_id') . "\">" . $onecat->getVar('cat_title') . "</a>"; echo "<tr class='odd' align='left'>"; echo "<td>" . $cat_title_link . "</td>";
} for ($i = 0; $i < count($orders); $i++) { $sql = "update " . $xoopsDB->prefix("xf_forums") . " set forum_order = " . $orders[$i] . " WHERE forum_id=" . $xforum[$i]; if (!($result = $xoopsDB->query($sql))) { redirect_header("admin_forum_reorder.php", 1, _AM_XFORUM_FORUM_ERROR); } } redirect_header("admin_forum_reorder.php", 1, _AM_XFORUM_BOARDREORDER); } else { include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/xoopsformloader.php"; $orders = array(); $cat_orders = array(); $xforum = array(); $cat = array(); xoops_cp_header(); loadModuleAdminMenu(6, _AM_XFORUM_SETFORUMORDER); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XFORUM_SETFORUMORDER . "</legend>"; echo "<br /><br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>"; $tform = new XoopsThemeForm(_AM_XFORUM_SETFORUMORDER, "", ""); $tform->display(); echo "<form name='reorder' method='post'>"; echo "<table border='0' width='100%' cellpadding='2' cellspacing='1' class='outer'>"; echo "<tr>"; echo "<td class='head' align='center' width='3%' height='16'><strong>" . _AM_XFORUM_REORDERID . "</strong>"; echo "</td><td class='head' align='left' width='30%'><strong>" . _AM_XFORUM_REORDERTITLE . "</strong>"; echo "</td><td class='head' align='center' width='5%'><strong>" . _AM_XFORUM_REORDERWEIGHT . "</strong>"; echo "</td></tr>"; $category_handler =& xoops_getmodulehandler('category', 'xforum'); $categories = $category_handler->getAllCats(); $forum_handler =& xoops_getmodulehandler('forum', 'xforum'); $xforums = $forum_handler->getForumsByCategory();
* of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package article * @since 1.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: about.php 2178 2008-09-26 08:34:09Z phppp $ */ include "header.php"; xoops_cp_header(); loadModuleAdminMenu(10); // Fetch moduleinfo //$versioninfo =& $module_handler->get( $xoopsModule->getVar( 'mid' ) ); function art_getInfo($var) { global $xoopsModule; // Moved from xoops_version.php $modinfo["license"] = "GNU see LICENSE"; $modinfo["license_file"] = XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/gpl.txt"; $modinfo["release"] = "2006-06-17"; $modinfo["author_website_url"] = "http://xoopsforge.com"; $modinfo["author_website_name"] = "Xoops Forge"; $modinfo["author_word"] = "Acknowledgement: <br />\r\n <br />The following XOOPSers have made their tremendous contribution during the design and beta test stage, which makes YetAnotherModule available for XOOPS community:<br />\r\n -- Carnuke (http://houseofstrauss.co.uk, http://whitecrows.us), documentation, test, feature design.<br />\r\n -- Richard (WarDick, timeslicer@gmail.com), test.<br />\r\n -- A.D.Horse (http://www.cctv3g.com), test, language.<br />\r\n -- domecc (chweifly@hotmail.com), test, documentation.<br />\r\n -- marco (http://frxoops.org), test.<br />\r\n "; $modinfo["module_status"] = "RC"; $modinfo["module_team"] = "The Xoops Community."; $modinfo["module_website_url"] = "http://xoopsforge.com/modules/article/";
$att_obj->setVar("grate_time", time()); $att_obj->setVar("update_time", time()); $att_handler->insert($att_obj); $att_num = $att_num + 1; } unset($att_obj); } } //update resources res_attachment $res_obj =& $resources_handler->get($res_id); $res_obj->setVar('res_attachment', $att_num); $resources_handler->insert($res_obj); } redirect_header('admin.resources.php', 3, '保存成功'); } loadModuleAdminMenu(3); echo $resources_handler->getHtmlErrors(); $format = "p"; $action = 'action.resources.php?ac=insert'; $form = $cat_obj->getForm($action); $form->display(); break; case 'delete': $res_obj =& $resources_handler->get($res_id); if (!is_object($res_obj) || empty($res_id)) { redirect_header('admin.resources.php', 3, '没有该资源!'); } if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { $criteria = new CriteriaCompo(); $criteria->add(new Criteria('res_id', $res_id)); if ($att_handler->getCount($criteria) > 0) {
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: user.php 3700 2009-10-04 23:01:00Z wishcraft $ */ include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(1, ""); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; if ($op == "editordelete") { $op = isset($_REQUEST['delete']) ? "delete" : "edit"; } $handler =& xoops_gethandler('member'); switch ($op) { default: case "list": include_once $GLOBALS['xoops']->path("/class/xoopsformloader.php"); $form = new XoopsThemeForm(_PROFILE_AM_EDITUSER, 'form', 'user.php'); $form->addElement(new XoopsFormSelectUser(_PROFILE_AM_SELECTUSER, 'id')); $form->addElement(new XoopsFormHidden('op', 'editordelete')); $button_tray = new XoopsFormElementTray(''); $button_tray->addElement(new XoopsFormButton('', 'edit', _EDIT, 'submit')); $button_tray->addElement(new XoopsFormButton('', 'delete', _DELETE, 'submit'));
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: field.php 3700 2009-10-04 23:01:00Z wishcraft $ */ include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(3, ""); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $profilefield_handler =& xoops_getmodulehandler('field'); switch ($op) { default: case "list": $fields = $profilefield_handler->getObjects(null, true, false); $module_handler =& xoops_gethandler('module'); $modules = $module_handler->getObjects(null, true); $cat_handler =& xoops_getmodulehandler('category'); $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight'); $cats = $cat_handler->getObjects($criteria, true); unset($criteria); $categories[0] = _PROFILE_AM_DEFAULT; if (count($cats) > 0) {
<?php include "../../../include/cp_header.php"; xoops_cp_header(); include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"; loadModuleAdminMenu(1, "Forum"); echo "Attività forum"; //SELECT *FROM `prefsnowx_users`WHERE `rank` =6 Tutti i moderatori echo "<select name='user'>"; echo "</select>"; xoops_cp_footer();
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package article * @since 1.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: admin.file.php 2178 2008-09-26 08:34:09Z phppp $ */ include "header.php"; /* * The feature is to be reactivated after article 1.0 release * * redirect to index page by now */ /* header("location: ".XOOPS_URL."/modules/".$GLOBALS["artdirname"]."/admin/index.php"); exit(); */ xoops_cp_header(); require XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/vars.php"; loadModuleAdminMenu(8); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_FILES") . "</legend>"; echo "<div style=\"padding: 8px;\">"; echo "<h2>Coming soon ...</h2>"; echo "</div>"; echo "</fieldset><br />"; xoops_cp_footer(); exit;
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The BEIJING XOOPS Co.Ltd. http://www.xoops.com.cn * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package spotlight * @since 1.0.0 * @author Mengjue Shao <*****@*****.**> * @author Susheng Yang <*****@*****.**> * @version $Id: admin.spotlight.php 1 2010-8-31 ezsky$ */ include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(1); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['sp_id']) ? 'edit' : 'display'); $sp_id = isset($_REQUEST['sp_id']) ? intval($_REQUEST['sp_id']) : 0; $sp_handler =& xoops_getmodulehandler('spotlight', 'spotlight'); switch ($op) { default: case 'display': $spotlights = $sp_handler->getAll(null, array('sp_id', 'sp_name'), false, false); $xoopsTpl->assign('spotlights', $spotlights); $xoopsTpl->display("db:spotlight_admin_spotlight.html"); break; case 'new': $sp_obj =& $sp_handler->create(); $form = $sp_obj->getForm('action.spotlight.php'); $form->assign($xoopsTpl); $xoopsTpl->display("db:spotlight_admin_spotlight.html");
// source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include "admin_header.php"; include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/xoopsformloader.php"; xoops_cp_header(); loadModuleAdminMenu(7, _AM_XFORUM_PRUNE_TITLE); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XFORUM_PRUNE_TITLE . "</legend>"; echo "<br /><br /><table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr><td class='odd'>"; if (!empty($_POST['submit'])) { $post_list = null; $topic_list = null; $topics_number = 0; $posts_number = 0; if (empty($_POST["forums"])) { redirect_header("./admin_forum_prune.php", 1, _AM_XFORUM_PRUNE_FORUMSELERROR); } elseif (is_array($_POST["forums"])) { $selected_forums = implode(",", $_POST["forums"]); } $prune_days = $myts->addSlashes($_POST["days"]); $prune_ddays = time() - $prune_days; $archive = $myts->addSlashes($_POST["archive"]);
<?php include 'header.php'; xoops_cp_header(); loadModuleAdminMenu(5, ""); $op = isset($_REQUEST['op']) ? trim($_REQUEST['op']) : 'list'; $greenep_id = isset($_REQUEST['greenep_id']) ? trim($_REQUEST['greenep_id']) : ''; $greenep_handler = xoops_getmodulehandler('greenep', 'catalog'); $item_handler = xoops_getmodulehandler('item', 'catalog'); switch ($op) { default: case "list": $criteria = new CriteriaCompo(); $criteria->setSort('greenep_rank'); $criteria->setOrder('ASC'); $greenep = $greenep_handler->getAll($criteria, null, false, false); $xoopsTpl->assign('greeneps', $greenep); $template_main = "catalog_admin_greenep.html"; break; case "new": $greenep_obj =& $greenep_handler->create(); $form = $greenep_obj->greenepForm(); $form->display(); break; case "edit": $greenep_obj = $greenep_handler->get($greenep_id); $form = $greenep_obj->greenepForm(); $form->display(); break; case "save": if (!$GLOBALS['xoopsSecurity']->check()) {
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package newbb * @since 4.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: about.php 2167 2008-09-23 13:33:57Z phppp $ */ include "admin_header.php"; xoops_cp_header(); $module_handler =& xoops_gethandler('module'); $versioninfo =& $module_handler->get($xoopsModule->getVar('mid')); loadModuleAdminMenu(-1, _AM_NEWBB_ABOUT . " " . $versioninfo->getInfo('name')); // Left headings... echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/" . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;' /></a>"; echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . " version " . $versioninfo->getInfo('version') . " (" . $versioninfo->getInfo('status_version') . ")</div>"; if ($versioninfo->getInfo('author_realname') != '') { $author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")"; } else { $author_name = $versioninfo->getInfo('author'); } echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_NEWBB_BY . " " . $author_name; echo "</div>"; echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div><br /><br /></>\n"; // Author Information echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; echo "<tr>"; echo "<td colspan='2' class='bg3' align='left'><strong>" . _AM_NEWBB_AUTHOR_INFO . "</strong></td>";
* which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package article * @since 1.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: admin.synchronization.php 2178 2008-09-26 08:34:09Z phppp $ */ include "header.php"; xoops_cp_header(); require XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/vars.php"; loadModuleAdminMenu(9); $type = @$_GET['type']; //if (!empty($_GET['type'])) { $start = intval(@$_GET['start']); switch ($type) { case "category": $category_handler =& xoops_getmodulehandler("category", $xoopsModule->getVar("dirname", "n")); if ($start >= ($count = $category_handler->getCount())) { break; } $limit = empty($_GET['limit']) ? 20 : intval($_GET['limit']); $criteria = new Criteria("1", 1); $criteria->setStart($start); $criteria->setLimit($limit); $categories_obj = $category_handler->getAll($criteria); foreach (array_keys($categories_obj) as $key) {
if ($art_id > 0 && !empty($xoopsModuleConfig['notification_enabled'])) { $notification_handler =& xoops_gethandler('notification'); $tags = array(); $article_obj =& $article_handler->get($spotlight_obj->getVar("art_id")); $tags['ARTICLE_TITLE'] = $article_obj->getVar("art_title"); $tags['ARTICLE_URL'] = XOOPS_URL . '/modules/' . $GLOBALS["artdirname"] . '/view.article.php' . URL_DELIMITER . $art_id; $tags['ARTICLE_ACTION'] = art_constant("MD_NOT_ACTION_PUBLISHED"); $notification_handler->triggerEvent('global', 0, 'article_monitor', $tags); $notification_handler->triggerEvent('article', $art_id, 'article_monitor', $tags); } } redirect_header("admin.spotlight.php", 1, art_constant("AM_DBUPDATED")); } xoops_cp_header(); require XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/include/vars.php"; loadModuleAdminMenu(6); $spotlight_obj =& $spotlight_handler->get(); echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_SPOTLIGHT") . "</legend>"; echo "<div style='padding: 8px;'>"; $form_sp = new XoopsThemeForm(art_constant("AM_SPOTLIGHT"), "formsp", xoops_getenv('PHP_SELF')); $form_sp->setExtra('enctype="multipart/form-data"'); // Current Spotlight if ($spotlight_obj->getVar("art_id")) { $option = 1; $article_obj =& $article_handler->get($spotlight_obj->getVar("art_id")); $message = "<a href='" . XOOPS_URL . "/modules/" . $GLOBALS["artdirname"] . "/view.article.php" . URL_DELIMITER . $spotlight_obj->getVar("art_id") . "' rel='external' title='" . $article_obj->getSummary(true) . "'>" . $article_obj->getVar('art_title') . "</a>"; } else { $option = 0; $message = art_constant("AM_SPOTLIGHT_LASTARTICLE"); } if (!$spotlight_obj->isNew()) {