Ejemplo n.º 1
0
 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();
Ejemplo n.º 2
0
/**
 * 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();
Ejemplo n.º 3
0
<?php

/*
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 2015-2016 XOOPS Project (http://xoops.org)
 * @license   GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author    Richard Griffith <*****@*****.**>
 */
require __DIR__ . '/admin_header.php';
$indexAdmin = new \Xoops\Module\Admin();
$indexAdmin->displayNavigation('index.php');
$max_time = ini_get('max_execution_time');
$indexAdmin->addConfigBoxLine(sprintf('For full function, max_execution_time should be at least 120. (Currently %d)', $max_time), $max_time < 120 ? 'warning' : 'accept');
$indexAdmin->displayIndex();
$xoops->footer();
Ejemplo n.º 4
0
/**
 * 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();
Ejemplo n.º 5
0
<?php

/*
 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.
*/
/**
 * Publisher
 *
 * @copyright    XOOPS Project (http://xoops.org)
 * @license      GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package      Publisher
 * @since        1.0
 * @author       Mage, Mamba
 */
include_once __DIR__ . '/admin_header.php';
$xoops = Xoops::getInstance();
$xoops->header();
$indexAdmin = new \Xoops\Module\Admin();
$indexAdmin->displayNavigation('index.php');
$indexAdmin->addConfigBoxLine('thumbnail', 'service');
$indexAdmin->displayIndex();
$xoops->footer();
Ejemplo n.º 6
0
 * @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();
Ejemplo n.º 7
0
<?php

/*
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    XOOPS Project (http://xoops.org)
 * @license      GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package      debugbar
 * @since
 * @author       XOOPS Development Team
 */
include_once __DIR__ . '/admin_header.php';
$moduleAdmin = new \Xoops\Module\Admin();
$moduleAdmin->displayNavigation('index.php');
$path = dirname(Xoops::getInstance()->getModuleConfig('log_file_path', 'monolog'));
$moduleAdmin->addConfigBoxLine($path, 'folder');
$moduleAdmin->displayIndex();
include_once __DIR__ . '/admin_footer.php';
Ejemplo n.º 8
0
$admin_page->displayNavigation('index.php');
$bg = $xoops->getModuleConfig('qrcode_bgcolor', 'qrcode');
$bg = getBrightness($bg);
$fg = $xoops->getModuleConfig('qrcode_fgcolor', 'qrcode');
$fg = getBrightness($fg);
$contrastMessage = _MI_QRCODE_CONTRAST_OK;
$contrastStatus = 'accept';
if ($bg < $fg) {
    // inverse (light cells on dark backgound) does not work on many readers
    $contrastMessage = _MI_QRCODE_CONTRAST_INVERSE;
    $contrastStatus = 'error';
} elseif ($bg - $fg < 100) {
    $contrastMessage = _MI_QRCODE_CONTRAST_ERROR;
    $contrastStatus = 'error';
}
$admin_page->addConfigBoxLine($contrastMessage, $contrastStatus);
$admin_page->displayIndex();
$xoops->footer();
/**
 * getBrightness get brightness of a color
 *
 * @param string $color 24 bit RGB color as hex digit (i.e. 'FFFFFF')
 *
 * @return int relative brightness of color 1-255001
 */
function getBrightness($color)
{
    $rgb = normalizeColor($color);
    //$brightness = ($rgb['r']*299 + $rgb['g']*587 + $rgb['b']*114) / 1000;
    // luminosity is L = 0.2126 * R + 0.7152 * G + 0.0722.
    $brightness = $rgb['r'] * 0.2126 + $rgb['g'] * 0.7151999999999999 + $rgb['b'] * 0.0722;