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. */ /** * smiles module * * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package smilies * @since 2.6.0 * @author Mage Grégory (AKA Mage) * @version $Id$ */ include __DIR__ . '/header.php'; $xoops->header(); // folder path $folder_path = \XoopsBaseConfig::get('root-path') . '/uploads/images'; $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); $admin_page->addInfoBox(_MI_IMAGES_IMAGES); $admin_page->addInfoBoxLine(sprintf(_AM_IMAGES_NBCAT, $helper->getHandlerCategories()->getCount())); $admin_page->addInfoBoxLine(sprintf(_AM_IMAGES_NBIMAGES, $helper->getHandlerImages()->getCount())); $admin_page->addConfigBoxLine($folder_path, 'folder'); $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); $admin_page->addConfigBoxLine('thumbnail', 'service'); $admin_page->displayIndex(); $xoops->footer();
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. */ /** * User Rank module * * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package userrank * @since 2.6.0 * @author Cointin Maxime (AKA Kraven30) * @version $Id$ */ include __DIR__ . '/header.php'; $xoops = Xoops::getInstance(); $xoops->header(); $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); $userrank_handler = $xoops->getModuleHandler('rank', 'userrank'); $admin_page->addInfoBox(_USERRANK_MI_USERRANK); $count_all = $userrank_handler->getCount(); $admin_page->addInfoBoxLine(sprintf(_AM_USERRANK_NBTOTAL, '<span class="red">' . $count_all . '</span>')); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('rank_special', 1)); $count_special = $userrank_handler->getCount($criteria); $admin_page->addInfoBoxLine(sprintf(_AM_USERRANK_NBSPECIAL, '<span class="red">' . $count_special . '</span>')); $admin_page->displayIndex(); $xoops->footer();
/** * Alumni module for Xoops * * @copyright XOOPS Project http://xoops.org/ * @license GPL 2.0 or later * @package alumni * @since 2.6.x * @author John Mordo (jlm69) */ include __DIR__ . '/admin_header.php'; $xoops = Xoops::getInstance(); $xoops->header(); $listingHandler = $xoops->getModuleHandler('listing', 'alumni'); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('valid', 1)); $listing_valid = $listingHandler->getCount($criteria); $moderateCriteria = new CriteriaCompo(); $moderateCriteria->add(new Criteria('valid', 0, '=')); $moderate_count = $listingHandler->getCount($moderateCriteria); $indexAdmin = new \Xoops\Module\Admin(); $indexAdmin->displayNavigation('index.php'); $indexAdmin->addInfoBox(AlumniLocale::LISTINGS, 'listing'); $indexAdmin->addInfoBoxLine(sprintf(AlumniLocale::TOTAL_LISTINGS, $moderate_count + $listing_valid), 'listing'); $indexAdmin->addInfoBoxLine(sprintf(AlumniLocale::TOTAL_VALID, $listing_valid), 'listing'); $indexAdmin->addInfoBoxLine(sprintf(AlumniLocale::TOTAL_NOT_VALID, $moderate_count), 'listing'); $extensions = array('comments' => 'extension', 'notifications' => 'extension', 'xcaptcha' => 'extension'); foreach ($extensions as $module => $type) { $indexAdmin->addConfigBoxLine(array($module, 'warning'), $type); } $indexAdmin->displayIndex(); $xoops->footer();
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. */ /** * Protector * * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package protector * @author trabis <*****@*****.**> * @version $Id$ */ include_once __DIR__ . '/header.php'; $xoops = Xoops::getInstance(); $xoops->header(); $xoops->db(); global $xoopsDB; $db = $xoopsDB; $db->prefix('protector_log'); $rs = $db->query("SELECT count(lid) FROM " . $db->prefix('protector_log')); list($numrows) = $db->fetchRow($rs); $indexAdmin = new \Xoops\Module\Admin(); $indexAdmin->displayNavigation('index.php'); $indexAdmin->addInfoBox(_MI_PROTECTOR_ADMININDEX, 'off'); $indexAdmin->addInfoBoxLine(sprintf(_AM_PROTECTOR_NBALERT, '<span class="red">' . $numrows . '</span>'), 'off'); $indexAdmin->displayIndex(); $xoops->footer();
/** * maintenance extensions * * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package maintenance * @since 2.6.0 * @author Mage Grégory (AKA Mage), Cointin Maxime (AKA Kraven30) * @version $Id$ */ include __DIR__ . '/header.php'; $xoops = Xoops::getInstance(); $xoops->header(); $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); // folder path $folder_path = \XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump'; // files $files = glob(\XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump/*.*'); $count = 0; foreach ($files as $filename_path) { if (basename(strtolower($filename_path)) != 'index.html') { ++$count; } } $admin_page->addConfigBoxLine($folder_path, 'folder'); $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); $admin_page->addInfoBox(_MI_MAINTENANCE_DUMP); $admin_page->addInfoBoxLine(sprintf(_AM_MAINTENANCE_NBFILES, $count)); $admin_page->displayIndex(); $xoops->footer();
// total avatars system $avatars_total_s = $avatars_notdisplay_s + $avatars_display_s; // avatars not display custom $criteria = new CriteriaCompo(); $criteria->add(new Criteria('avatar_display', 0)); $criteria->add(new Criteria('avatar_type', 'C')); $avatars_notdisplay_c = $avatar_Handler->getCount($criteria); // avatars display custom $criteria = new CriteriaCompo(); $criteria->add(new Criteria('avatar_display', 0, '!=')); $criteria->add(new Criteria('avatar_type', 'C')); $avatars_display_c = $avatar_Handler->getCount($criteria); // total avatars custom $avatars_total_c = $avatars_notdisplay_c + $avatars_display_c; // folder path $folder_path = \XoopsBaseConfig::get('root-path') . '/uploads/avatars'; $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); $admin_page->addInfoBox(AvatarsLocale::SYSTEM, 'avatar_system'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBTOTAL_S, $avatars_total_s), 'avatar_system'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBDISPLAY_S, '<span class="green">' . $avatars_display_s . '</span>'), 'avatar_system'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBNOTDISPLAY_S, '<span class="red">' . $avatars_notdisplay_s . '</span>'), 'avatar_system'); $admin_page->addInfoBox(AvatarsLocale::CUSTOM, 'avatar_custom'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBTOTAL_C, $avatars_total_c), 'avatar_custom'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBDISPLAY_C, '<span class="green">' . $avatars_display_c . '</span>'), 'avatar_custom'); $admin_page->addInfoBoxLine(sprintf(AvatarsLocale::NBNOTDISPLAY_C, '<span class="red">' . $avatars_notdisplay_c . '</span>'), 'avatar_custom'); $admin_page->addConfigBoxLine($folder_path, 'folder'); $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); $admin_page->addConfigBoxLine('thumbnail', 'service'); $admin_page->displayIndex(); $xoops->footer();
$config = $xcaptcha_handler->Pluginhandler->VerifyData(); $xcaptcha_handler->writeConfig('captcha.config.' . $type, $config); $xoops->redirect('index.php?type=' . $type, 5, _AM_XCAPTCHA_SAVED); } } break; case 'default': default: $type = isset($type) ? $type : 'config'; $xoops->header(); $xoops->theme()->addStylesheet('modules/xcaptcha/css/moduladmin.css'); $admin_page = new \Xoops\Module\Admin(); if ($type === 'config') { $admin_page->displayNavigation('index.php?type=config'); $admin_page->addInfoBox(_AM_XCAPTCHA_FORM); $form = $xoops->getModuleForm($xcaptcha_handler, 'captcha', 'xcaptcha'); $admin_page->addInfoBoxLine($form->render()); } else { if ($plugin = $xcaptcha_handler->loadPluginHandler($type)) { $title = constant('_XCAPTCHA_FORM_' . strtoupper($type)); $form = $xoops->getModuleForm($plugin, $type, 'xcaptcha'); $admin_page->addInfoBox($title); $admin_page->addInfoBoxLine($form->render()); } else { $xoops->redirect('index.php', 5, _AM_XCAPTCHA_ERROR); } } $admin_page->displayIndex(); break; } include __DIR__ . '/footer.php';
$xoops_upload_path = \XoopsBaseConfig::get('uploads-path'); $xoops_upload_url = \XoopsBaseConfig::get('uploads-url'); $xoops_url = \XoopsBaseConfig::get('url'); // Get banners handler $banner_Handler = $helper->getHandlerBanner(); $client_Handler = $helper->getHandlerBannerclient(); // header $xoops->header(); // banners $criteria = new CriteriaCompo(); $criteria->add(new Criteria('banner_status', 0, '!=')); $banners_banner = $banner_Handler->getCount($criteria); // banner clients $criteria = new CriteriaCompo(); $banners_client = $client_Handler->getCount($criteria); // banner finish $criteria = new CriteriaCompo(); $criteria->add(new Criteria('banner_status', 0)); $banners_finish = $banner_Handler->getCount($criteria); // folder path $folder_path = $xoops_root_path . '/uploads/banners'; $admin_page = new \Xoops\Module\Admin(); $admin_page->addInfoBox(_MI_BANNERS_BANNERS); $admin_page->addInfoBoxLine(sprintf(_AM_BANNERS_INDEX_NBTOTAL, $banners_banner)); $admin_page->addInfoBoxLine(sprintf(_AM_BANNERS_INDEX_NBCLIENT, '<span class="green">' . $banners_client . '</span>')); $admin_page->addInfoBoxLine(sprintf(_AM_BANNERS_INDEX_NBFINISH, '<span class="red">' . $banners_finish . '</span>')); $admin_page->addConfigBoxLine($folder_path, 'folder'); $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); $admin_page->displayNavigation('index.php'); $admin_page->displayIndex(); $xoops->footer();
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. */ /** * Mailusers Plugin * * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package mailusers * @since 2.6.0 * @author Mage Grégory (AKA Mage) * @version $Id$ */ include __DIR__ . '/header.php'; $xoops = Xoops::getInstance(); $xoops->header(); $xoops->loadLanguage('admin/preferences', 'system'); $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); $admin_page->addInfoBox(_MI_MAILUSERS_MAILUSER_MANAGER); $tplString = "%1\$s : <span class='red'>%2\$s</span>"; $admin_page->addInfoBoxLine(sprintf($tplString, _AM_MAILUSERS_MAILFROM, $xoops->getConfig('from'))); $admin_page->addInfoBoxLine(sprintf($tplString, _AM_MAILUSERS_MAILERMETHOD, $xoops->getConfig('mailmethod'))); $admin_page->addInfoBoxLine(sprintf($tplString, _AM_MAILUSERS_SENDMAILPATH, $xoops->getConfig('sendmailpath'))); $admin_page->addInfoBoxLine(sprintf($tplString, _AM_MAILUSERS_SMTPHOST, implode(';', $xoops->getConfig('smtphost')))); $admin_page->addInfoBoxLine(sprintf($tplString, _AM_MAILUSERS_SMTPUSER, $xoops->getConfig('smtpuser'))); $admin_page->displayIndex(); $xoops->footer();
* @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package smilies * @since 2.6.0 * @author Mage Grégory (AKA Mage) * @version $Id$ */ include __DIR__ . '/header.php'; $xoops->header(); // smilies not display $criteria = new CriteriaCompo(); $criteria->add(new Criteria('smiley_display', 0)); $smilies_notdisplay = $helper->getHandlerSmilies()->getCount($criteria); // smilies display $criteria = new CriteriaCompo(); $criteria->add(new Criteria('smiley_display', 0, '!=')); $smilies_display = $helper->getHandlerSmilies()->getCount($criteria); // total smilies $smilies_total = $smilies_notdisplay + $smilies_display; // folder path $folder_path = \XoopsBaseConfig::get('root-path') . '/uploads/smilies'; $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); $admin_page->addInfoBox(_MI_SMILIES_SMILIES); $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBTOTAL, $smilies_total)); $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBDISPLAY, '<span class="green">' . $smilies_display . '</span>')); $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBNOTDISPLAY, '<span class="red">' . $smilies_notdisplay . '</span>')); $admin_page->addConfigBoxLine($folder_path, 'folder'); $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); $admin_page->displayIndex(); $xoops->footer();
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package page * @since 2.6.0 * @author Mage Grégory (AKA Mage) * @version $Id$ */ include __DIR__ . '/header.php'; // heaser $xoops->header(); // content not display $criteria = new CriteriaCompo(); $criteria->add(new Criteria('content_status', 0)); $content_notdisplay = $content_Handler->getCount($criteria); // content display $criteria = new CriteriaCompo(); $criteria->add(new Criteria('content_status', 0, '!=')); $content_display = $content_Handler->getCount($criteria); $admin_page = new \Xoops\Module\Admin(); $admin_page->displayNavigation('index.php'); // content $admin_page->addInfoBox(XoopsLocale::CONTENT, 'content'); $admin_page->addInfoBoxLine(sprintf(PageLocale::TOTALCONTENT, $content_notdisplay + $content_display), 'content'); $admin_page->addInfoBoxLine(sprintf(PageLocale::TOTALDISPLAY, $content_display), 'content'); $admin_page->addInfoBoxLine(sprintf(PageLocale::TOTALNOTDISPLAY, $content_notdisplay), 'content'); // extension $extensions = array('comments' => 'extension', 'notifications' => 'extension', 'pdf' => 'extension', 'xoosocialnetwork' => 'extension'); foreach ($extensions as $module => $type) { $admin_page->addConfigBoxLine(array($module, 'warning'), $type); } $admin_page->displayIndex(); $xoops->footer();