Beispiel #1
0
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
// Author: Raul Recio (AKA UNFOR)                                            //
// Project: The XOOPS Project                                                //
// ------------------------------------------------------------------------- //
include_once 'admin_header.php';
xoops_cp_header();
$index_admin = new ModuleAdmin();
//-----------------------
$xFaqHandler =& xoops_getmodulehandler('contents', $xoopsModule->getVar('dirname'));
$totalFaqs = $xFaqHandler->getCount();
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('contents_active', 1, '='));
$criteriaPublished = new CriteriaCompo();
$criteriaPublished->add(new Criteria('contents_publish', 0, '>'));
$criteriaPublished->add(new Criteria('contents_publish', time(), '<='));
$criteria->add($criteriaPublished);
$totalPublishedFaqs = $xFaqHandler->getCount($criteria);
$xCatHandler =& xoops_getmodulehandler('category', $xoopsModule->getVar('dirname'));
$totalCats = $xCatHandler->getCount();
$totalNonpublishedFaqs = $totalFaqs - $totalPublishedFaqs;
$index_admin->addInfoBox(_MD_XOOPSFAQ_XOOPSFAQCONF);
$index_admin->addInfoBoxLine(_MD_XOOPSFAQ_XOOPSFAQCONF, "<infolabel>" . _MD_XOOPSFAQ_TOTALCATEGORIES . "</infolabel>", $totalCats);
$index_admin->addInfoBoxLine(_MD_XOOPSFAQ_XOOPSFAQCONF, "<infolabel>" . _MD_XOOPSFAQ_TOTALPUBLISHED . "</infolabel>", $totalPublishedFaqs, 'Green');
$index_admin->addInfoBoxLine(_MD_XOOPSFAQ_XOOPSFAQCONF, "<infolabel>" . _MD_XOOPSFAQ_TOTALNONACTIVE . "</infolabel>", $totalNonpublishedFaqs, 'Red');
$index_admin->addInfoBoxLine(_MD_XOOPSFAQ_XOOPSFAQCONF, "<infolabel>" . _MD_XOOPSFAQ_TOTALFAQS . "</infolabel><infotext>", $totalFaqs . "</infotext>");
//----------------------------
echo $index_admin->addNavigation('index.php');
echo $index_admin->renderIndex();
include 'admin_footer.php';
xoops_cp_footer();
Beispiel #2
0
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * presenter module for xoops
 *
 * @copyright       XOOPS Project (http://xoops.org)
 * @license         GPL 2.0 or later
 * @package         presenter
 * @since           2.5.5
 * @author          XOOPS Development Team <*****@*****.**> - <http://xoops.org>
 * @version         $Id: 1.0 index.php 11532 Wed 2013/08/28 4:00:28Z XOOPS Development Team $
 */
include_once __DIR__ . '/admin_header.php';
// Display Admin header
xoops_cp_header();
$currentFile = basename(__FILE__);
$indexAdmin = new ModuleAdmin();
//count "total cat"
$count_cat = $categoriesHandler->getCount();
//count "total slides"
$count_slides = $slidesHandler->getCount();
// InfoBox slides
$indexAdmin->addInfoBox(_AM_PRESENTER_STATISTICS);
// InfoBox cat
$indexAdmin->addInfoBoxLine(_AM_PRESENTER_STATISTICS, _AM_PRESENTER_THEREARE_CATEGORIES, $count_cat);
// InfoBox slides
$indexAdmin->addInfoBoxLine(_AM_PRESENTER_STATISTICS, _AM_PRESENTER_THEREARE_SLIDES, $count_slides);
// Render Index
echo $indexAdmin->addNavigation($currentFile);
echo $indexAdmin->renderIndex();
include_once __DIR__ . '/admin_footer.php';
Beispiel #3
0
 //$indexAdmin->addConfigBoxLine(array(OLEDRION_UPLOAD_PATH, '777'), 'chmod');
 //$indexAdmin->addConfigBoxLine(OLEDRION_ATTACHED_FILES_PATH, 'folder');
 //$indexAdmin->addConfigBoxLine(array(OLEDRION_ATTACHED_FILES_PATH, '777'), 'chmod');
 //$indexAdmin->addConfigBoxLine(OLEDRION_PICTURES_PATH, 'folder');
 //$indexAdmin->addConfigBoxLine(array(OLEDRION_PICTURES_PATH, '777'), 'chmod');
 //$indexAdmin->addConfigBoxLine(OLEDRION_CSV_PATH, 'folder');
 //$indexAdmin->addConfigBoxLine(array(OLEDRION_CSV_PATH, '777'), 'chmod');
 //$indexAdmin->addConfigBoxLine(OLEDRION_CACHE_PATH, 'folder');
 //$indexAdmin->addConfigBoxLine(array(OLEDRION_CACHE_PATH, '777'), 'chmod');
 $categories = $h_oledrion_cat->getCategoriesCount();
 if ($categories == 0) {
     $link = OLEDRION_ADMIN_URL . 'index.php?op=maintain&action=import';
     $link = sprintf('<a href="%s">%s</a>', $link, _AM_OLEDRION_IMPORT_DATA_TITLE);
     $text = sprintf(_AM_OLEDRION_IMPORT_DATA_TEXT, $link);
     $indexAdmin->addInfoBox(_AM_OLEDRION_IMPORT_DATA);
     $indexAdmin->addInfoBoxLine(_AM_OLEDRION_IMPORT_DATA, $text);
 }
 //------ check directories ---------------
 $indexAdmin->addConfigBoxLine('');
 $redirectFile = $_SERVER['PHP_SELF'];
 $languageConstants = array(_AM_OLEDRION_AVAILABLE, _AM_OLEDRION_NOTAVAILABLE, _AM_OLEDRION_CREATETHEDIR, _AM_OLEDRION_NOTWRITABLE, _AM_OLEDRION_SETMPERM, _AM_OLEDRION_DIRCREATED, _AM_OLEDRION_DIRNOTCREATED, _AM_OLEDRION_PERMSET, _AM_OLEDRION_PERMNOTSET);
 //$path =  $xoopsModuleConfig['uploaddir'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_UPLOAD_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['screenshots'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_ATTACHED_FILES_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_PICTURES_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CSV_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CACHE_PATH, 0777, $languageConstants, $redirectFile));
Beispiel #4
0
 * 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      GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package
 * @since
 * @author     XOOPS Development Team
 * @version    $Id $
 */
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
$box = 'Informations';
$indexAdmin->addInfoBox($box);
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : %2\$s - %3\$s (#ID : %4\$s)", "Module", $xoopsModule->getVar('dirname'), $xoopsModule->modinfo['name'], $xoopsModule->getVar('mid')));
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : %2\$s", "Description", $xoopsModule->modinfo['description']));
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : %2\$01.2f %3\$s du %4\$s", _AM_TAF_VERSION, $xoopsModule->getVar('version') / 100, $xoopsModule->modinfo['module_status'], $xoopsModule->modinfo['release_date']));
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : %2\$s", _AM_TAF_AUTHORS, $xoopsModule->modinfo['author']));
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : %2\$s", _AM_TAF_UPGRADE_BY, $xoopsModule->modinfo['author_upgrade']));
$indexAdmin->addInfoBoxLine($box, sprintf("%1\$s : <a href='%2\$s' target='blank'>%3\$s</a>", _AM_TAF_WEB_SITE, $xoopsModule->modinfo['module_website_url'], $xoopsModule->modinfo['module_website_name']));
echo $indexAdmin->addNavigation('index.php');
echo $indexAdmin->renderIndex();
include "admin_footer.php";