Inheritance: extends Admin
コード例 #1
0
 /**
  * Gets the administraion of the request
  */
 public function getAdministration()
 {
     $this->setState('LOADING_MODULE_ADMIN');
     //Get in admin request
     $request = $this->getInputString("req", "", "G");
     //Get Module Request
     $module = $this->getActiveRequest();
     //Make sure the administraion Exists
     if (file_exists("modules/" . $module . "/" . $module . "ModuleAdmin.php")) {
         //Include Module Information
         include_once "core/lib/ModuleAdmin.php";
         include_once "modules/" . $module . "/" . $module . "ModuleAdmin.php";
         //Creates new module admin
         $m = new ModuleAdmin($this->getController());
         //Give the module administration it's request
         $m->setRequest($request);
         //Sets the controller properly.
         $m->setController($this->getController());
         //Process the given request
         $m->process();
         //Get the content created after processing
         return array($module, $m->getContent());
     } else {
         $this->setState('NO_MODULE_MODULE_ADMIN');
         //Report Error
         die("Error: No Module Administration Exists. Please report to developer and stop using this module until it is fixed.");
     }
 }
コード例 #2
0
ファイル: index.php プロジェクト: mambax7/presenter
 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';
コード例 #3
0
ファイル: index.php プロジェクト: trabisdementia/xuups
<?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    The XOOPS Project (http://www.xoops.org)
 * @license      GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
 * @package      Publisher
 * @since        1.0
 * @author       Mage, Mamba
 * @version      $Id$
 */
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation('index.php');
echo $indexAdmin->renderIndex();
xoops_cp_footer();
コード例 #4
0
ファイル: about.php プロジェクト: geekwright/XoopsCore25
<?php

/**
 * XOOPS Profile module
 *
 * 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       (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license             GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
 * @package             xoopsPoll
 * @since               2.5.0
 * @author              Mage, Mamba
 **/
include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$module_info = $module_handler->get($xoopsModule->getVar('mid'));
$aboutAdmin = new ModuleAdmin();
echo $aboutAdmin->addNavigation(basename(__FILE__));
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
include_once __DIR__ . '/admin_footer.php';
コード例 #5
0
<?php

include_once __DIR__ . '/admin_header.php';
/*
 * 处理
 **/
//头部
include "martin.header.php";
$currentFile = basename(__FILE__);
$myModuleAdmin = new ModuleAdmin();
echo $myModuleAdmin->addNavigation($currentFile);
//parameter 参数
$action = isset($_POST['action']) ? $_POST['action'] : @$_GET['action'];
$action = empty($action) ? 'list' : $action;
$action = trim(strtolower($action));
$id = !empty($_POST['id']) ? $_POST['id'] : @$_GET['id'];
$id = (int) $id;
$typeid = !empty($_POST['typeid']) ? (int) $_POST['typeid'] : (int) @$_GET['typeid'];
$hotel_id = isset($_GET['hotel_id']) ? (int) $_GET['hotel_id'] : 0;
$service_id = isset($_GET['service_id']) ? (int) $_GET['service_id'] : 0;
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
//确认删除
$confirm = isset($_POST['confirm']) ? $_POST['confirm'] : 0;
//parameter 参数
// martin_adminMenu(3, "订房后台 > 酒店服务");
$hotelservice_handler =& xoops_getmodulehandler('hotelservice', MARTIN_DIRNAME, true);
$hotelservicetype_handler =& xoops_getmodulehandler('hotelservicetype', MARTIN_DIRNAME, true);
$HotelServiceObj = $id > 0 ? $hotelservice_handler->get($id) : $hotelservice_handler->create();
$HotelServiceTypeObj = $typeid > 0 ? $hotelservicetype_handler->get($typeid) : $hotelservicetype_handler->create();
switch ($action) {
    case "add":
コード例 #6
0
    global $target_mid, $target_mname, $block_arr;
    $item_list = array();
    foreach (array_keys($block_arr) as $i) {
        $item_list[$block_arr[$i]->getVar("bid")] = $block_arr[$i]->getVar("title");
    }
    $form = new MyXoopsGroupPermForm(_AM_MYLINKS_AGDS, 1, 'block_read', '');
    if ($target_mid > 1) {
        $form->addAppendix('module_admin', $target_mid, $target_mname . ' ' . _AM_MYLINKS_ACTIVERIGHTS);
        $form->addAppendix('module_read', $target_mid, $target_mname . ' ' . _AM_MYLINKS_ACCESSRIGHTS);
    }
    foreach ($item_list as $item_id => $item_name) {
        $form->addItem($item_id, $item_name);
    }
    echo $form->render();
}
if (!empty($_POST['submit'])) {
    if (!$xoopsGTicket->check(true, 'myblocksadmin')) {
        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
    }
    include 'mygroupperm.php';
    redirect_header(XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/admin/myblocksadmin.php{$query4redirect}", 1, _MD_AM_DBUPDATED);
}
//xoops_cp_header();
$index_admin = new ModuleAdmin();
echo $index_admin->addNavigation('myblocksadmin.php');
if (file_exists('./mymenu.php')) {
    include './mymenu.php';
}
list_groups();
include 'footer.php';
xoops_cp_footer();
コード例 #7
0
            xoops_confirm(array('op' => 'delete', 'category_id' => $category_id, 'ok' => 1), 'category.php', _AM_XOOPSFAQ_RUSURECAT);
        }
        break;
    case 'save':
        if (!$GLOBALS['xoopsSecurity']->check()) {
            redirect_header($this->url, 0, $GLOBALS['xoopsSecurity']->getErrors(true));
        }
        $category_id = xoopsFaq_CleanVars($_REQUEST, 'category_id', 0, 'int');
        $obj = 0 == $category_id ? $category_handler->create() : $category_handler->get($category_id);
        if (is_object($obj)) {
            $obj->setVar('category_title', xoopsFaq_CleanVars($_REQUEST, 'category_title', '', 'string'));
            $obj->setVar('category_order', xoopsFaq_CleanVars($_REQUEST, 'category_order', 0, 'int'));
            if ($category_handler->insert($obj, true)) {
                redirect_header('category.php', 1, _AM_XOOPSFAQ_DBSUCCESS);
            }
        }
        $category_handler->displayError(_AM_XOOPSFAQ_ERRORCOULDNOTADDCAT);
        break;
    case 'default':
    default:
        //    xoops_cp_header();
        //xoopsFaq_AdminMenu(1);
        $index_admin = new ModuleAdmin();
        echo $index_admin->addNavigation('category.php');
        //xoopsFaq_DisplayHeading(_AM_XOOPSFAQ_CATEGORY_HEADER, _AM_XOOPSAQ_CATEGORY_LIST_DSC);
        xoopsFaq_DisplayHeading('', _AM_XOOPSFAQ_CATEGORY_LIST_DSC);
        $category_handler->displayAdminListing();
        break;
}
//xoopsFaq_cp_footer();
include_once 'admin_footer.php';
コード例 #8
0
ファイル: admin.php プロジェクト: geekwright/XoopsCore25
<?php

/**
 * Private message
 *
 * 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       (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license             GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package             pm
 * @since               2.3.0
 * @author              Taiwen Jiang <*****@*****.**>
 */
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation(basename(__FILE__));
echo $indexAdmin->renderIndex();
include_once __DIR__ . '/admin_footer.php';
//xoops_cp_footer();
コード例 #9
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.
 */
/**
 * @copyright       The XUUPS Project http://sourceforge.net/projects/xuups/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         Publisher
 * @since           1.0
 * @author          trabis <*****@*****.**>
 * @author          The SmartFactory <www.smartfactory.ca>
 * @version         $Id: admin_header.php 10661 2013-01-04 19:22:48Z trabis $
 */
include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
include_once dirname(__DIR__) . '/include/config.php';
include_once $GLOBALS['xoops']->path('include/cp_header.php');
//xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
xoops_loadLanguage('modinfo', PUBLISHER_DIRNAME);
$imagearray = array('editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />", 'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />", 'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />", 'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />");
include_once $GLOBALS['xoops']->path('Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
ModuleAdmin::loadLanguage();
/*
$myts = MyTextSanitizer::getInstance();

if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
  include_once(XOOPS_ROOT_PATH."/class/template.php");
  $xoopsTpl = new XoopsTpl();
} */
コード例 #10
0
ファイル: index.php プロジェクト: BackupTheBerlios/haxoo-svn
//                                                                           //
//  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: 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);
コード例 #11
0
ファイル: index.php プロジェクト: trabisdementia/publisher
/*
 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    The XOOPS Project (http://www.xoops.org)
 * @license      GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
 * @package      Publisher
 * @since        1.0
 * @author       Mage, Mamba
 * @version      $Id: index.php 10374 2012-12-12 23:39:48Z trabis $
 */
include_once __DIR__ . '/admin_header.php';
include_once dirname(__DIR__) . '/class/utilities.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
    PublisherUtilities::createFolder($uploadFolders[$i]);
    $indexAdmin->addConfigBoxLine($uploadFolders[$i], 'folder');
    //    $indexAdmin->addConfigBoxLine(array($folder[$i], '777'), 'chmod');
}
echo $indexAdmin->addNavigation('index.php');
echo $indexAdmin->renderIndex();
include_once __DIR__ . '/admin_footer.php';
コード例 #12
0
ファイル: dashboard.php プロジェクト: osw17/oledrion
 */
/**
 * Actions relatives au Dashboard (affichage et suppression d'un vote)
 */
if (!defined("OLEDRION_ADMIN")) {
    exit;
}
switch ($action) {
    // ****************************************************************************************************************
    case 'default':
        // Affichage du dashboard
        // ****************************************************************************************************************
        xoops_cp_header();
        include_once dirname(dirname(dirname(__FILE__))) . '/include/directorychecker.php';
        oledrion_utils::htitle(_MI_OLEDRION_ADMENU10, 4);
        $indexAdmin = new ModuleAdmin();
        //$indexAdmin->addConfigBoxLine(OLEDRION_UPLOAD_PATH, 'folder');
        //$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);
コード例 #13
0
$srs = $db->query($sql);
$tplsets = array();
$tplsets_th4disp = '';
$tplset_options = "<option value=''>----</option>\n";
while (list($tplset) = $db->fetchRow($srs)) {
    $tplset4disp = htmlspecialchars($tplset, ENT_QUOTES);
    $tplsets[] = $tplset;
    $th_style = $tplset == $xoopsConfig['template_set'] ? "style='color: yellow;'" : "";
    $tplsets_th4disp .= "<th {$th_style}><input type='checkbox' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].name.indexOf('{$tplset4disp}_check')>=0){elements[i].checked=this.checked;}}}\" />DB-{$tplset4disp}</th>";
    $tplset_options .= "<option value='{$tplset4disp}'>{$tplset4disp}</option>\n";
}
// get tpl_file owned by the module
$sql = "SELECT tpl_file,tpl_desc,tpl_type,COUNT(tpl_id) FROM " . $db->prefix("tplfile") . " WHERE tpl_module='{$target_dirname4sql}' GROUP BY tpl_file ORDER BY tpl_type, tpl_file";
$frs = $db->query($sql);
//xoops_cp_header();
$index_admin = new ModuleAdmin();
echo $index_admin->addNavigation('mytplsadmin.php');
if (file_exists('./mymenu.php')) {
    include './mymenu.php';
}
echo "<h3 style='text-align:left;'>" . _AM_MYLINKS_TPLSETS . " : {$target_mname}</h3>\n";
// beginning of table & form
echo "<form name='MainForm' action='?dirname=" . htmlspecialchars($target_dirname, ENT_QUOTES) . "' method='post'>\n" . "  " . $xoopsGTicket->getTicketHtml(__LINE__) . "\n" . "  <table class='outer'>\n" . "    <tr>\n" . "      <th>" . _AM_MYLINKS_FILENAME . "</th>\n" . "      <th>type</th>\n" . "      <th><input type='checkbox' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].name.indexOf('basecheck')>=0){elements[i].checked=this.checked;}}}\" />file</th>\n" . "        {$tplsets_th4disp}\n" . "    </tr>\n";
// STYLE for distinguishing fingerprints
$fingerprint_styles = array('', 'background-color:#00FF00', 'background-color:#00CC88', 'background-color:#00FFFF', 'background-color:#0088FF', 'background-color:#FF8800', 'background-color:#0000FF', 'background-color:#FFFFFF');
// template ROWS
while (list($tpl_file, $tpl_desc, $type, $count) = $db->fetchRow($frs)) {
    $evenodd = @$evenodd == 'even' ? 'odd' : 'even';
    $fingerprint_style_count = 0;
    // information about the template
    echo "    <tr>\n" . "      <td class='{$evenodd}'>\n" . "        <dl>\n" . "          <dt>" . htmlspecialchars($tpl_file, ENT_QUOTES) . "</dt>\n" . "          <dd>" . htmlspecialchars($tpl_desc, ENT_QUOTES) . "</dd>\n" . "        </dl>\n" . "      </td>\n" . "      <td class='{$evenodd}'>{$type}<br />({$count})</td>\n";
コード例 #14
0
ファイル: admin.page.php プロジェクト: XoopsModules25x/about
 * 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
 * @copyright      XOOPS Project (http://xoops.org)
 * @license        GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @since          1.0.0
 * @author         Mengjue Shao <*****@*****.**>
 * @author         Susheng Yang <*****@*****.**>
 */
include __DIR__ . '/admin_header.php';
xoops_cp_header();
//loadModuleAdminMenu(1);
$myModuleAdmin = new ModuleAdmin();
echo $myModuleAdmin->addNavigation(basename(__FILE__));
$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? 'edit' : 'list');
$page_id = isset($_REQUEST['id']) ? $_REQUEST['id'] : '';
$page_handler = xoops_getModuleHandler('page', 'about');
switch ($op) {
    default:
    case 'list':
        //page order
        if (isset($_POST['page_order'])) {
            $page_order = $_POST['page_order'];
            foreach ($page_order as $page_id => $order) {
                $page_obj = $page_handler->get($page_id);
                if ($page_order[$page_id] != $page_obj->getVar('page_order')) {
                    $page_obj->setVar('page_order', $page_order[$page_id]);
                    $page_handler->insert($page_obj);
コード例 #15
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       Hervé Thouzard (http://www.herve-thouzard.com)
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         marquee
 * @author 			Hervé Thouzard (http://www.herve-thouzard.com)
 *
 * Version : $Id:
 * ****************************************************************************
 */
require_once '../../../include/cp_header.php';
require_once XOOPS_ROOT_PATH . '/modules/marquee/admin/functions.php';
require_once XOOPS_ROOT_PATH . '/modules/marquee/include/functions.php';
require_once XOOPS_ROOT_PATH . '/modules/marquee/class/marquee_utils.php';
include_once 'admin_header.php';
$marqueeAdmin = new ModuleAdmin();
$op = 'default';
if (isset($_POST['op'])) {
    $op = $_POST['op'];
} elseif (isset($_GET['op'])) {
    $op = $_GET['op'];
}
// Verify that a field exists inside a mysql table
function marquee_FieldExists($fieldname, $table)
{
    global $xoopsDB;
    $result = $xoopsDB->queryF("SHOW COLUMNS FROM\t{$table} LIKE '{$fieldname}'");
    return $xoopsDB->getRowsNum($result) > 0;
}
// Verify if the table is up to date
if (!marquee_FieldExists('marquee_marqueeid', $xoopsDB->prefix('marquee'))) {
コード例 #16
0
ファイル: step.php プロジェクト: RanLee/Xoops_demo
 * 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 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @package         profile
 * @since           2.3.0
 * @author          Jan Pedersen
 * @author          Taiwen Jiang <*****@*****.**>
 * @version         $Id: step.php 12593 2014-06-14 16:04:02Z beckmi $
 */
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_STEP, 'step.php?op=new', 'add', '');
echo $indexAdmin->addNavigation('step.php');
echo $indexAdmin->renderButton('right', '');
$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list');
$handler =& xoops_getmodulehandler('regstep');
switch ($op) {
    case "list":
        $GLOBALS['xoopsTpl']->assign('steps', $handler->getObjects(null, true, false));
        $template_main = "profile_admin_steplist.tpl";
        break;
    case "new":
        $obj =& $handler->create();
        include_once '../include/forms.php';
        $form = profile_getStepForm($obj);
        $form->display();
コード例 #17
0
ファイル: about.php プロジェクト: mambax7/jill_booking-1
 * 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    Marquee
 * @since        2.5.0
 * @author     Mage, Mamba
 * @version    $Id $
 **/
include '../../../include/cp_header.php';
include '../../../class/xoopsformloader.php';
xoops_cp_header();
include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
$module_info =& $module_handler->get($xoopsModule->getVar("mid"));
$module_info = '<div id="about">
        <label>' . _AM_XDIR_ABOUT_DESCRIPTION . '</label><text>' . $module_info->getInfo("description") . '</text><br />
        <label>' . _AM_XDIR_ABOUT_RELEASEDATE . '</label><text class="bold">' . $module_info->getInfo("release_date") . '</text><br />
        <label>' . _AM_XDIR_ABOUT_UPDATEDATE . '</label><text class="bold">' . formatTimestamp($xoopsModule->getVar("last_update"), "m") . '</text><br />
                <label>' . _AM_XDIR_ABOUT_MODULE_STATUS . '</label><text>' . $module_info->getInfo("module_status") . '</text><br />
                <label>' . _AM_XDIR_ABOUT_WEBSITE . '</label><text><a class="tooltip" href="' . $module_info->getInfo("module_website_url") . '" rel="external" title="' . $module_info->getInfo("module_website_name") . ' - ' . $module_info->getInfo("module_website_url") . '">
                ' . $module_info->getInfo("module_website_name") . '</a></text></div>';
$about_admin = new ModuleAdmin();
$about_admin->addLabel($xoopsModule->getVar("name"));
$about_admin->addLabel(_AM_XDIR_ABOUT_MODULE_INFO);
$about_admin->addLineLabel($xoopsModule->getVar("name"), '', '6KJ7RW5DR3VTJ', '', 'module');
$about_admin->addLineLabel(_AM_XDIR_ABOUT_MODULE_INFO, $module_info, '', '', 'information');
$about_admin->addChangelogLabel(_AM_XDIR_ABOUT_CHANGELOG);
echo $about_admin->addNavigation('about.php');
echo $about_admin->renderabout();
echo "<div class='center smallsmall italic pad5'><b>" . $xoopsModule->getVar("name") . "</b> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
xoops_cp_footer();
コード例 #18
0
ファイル: index.php プロジェクト: BackupTheBerlios/haxoo-svn
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  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 //
// ------------------------------------------------------------------------- //
require_once '../../../include/cp_header.php';
include 'header.php';
$index_admin = new ModuleAdmin();
// Temporarily 'homeless' links (to be revised in admin.php breakup)
$result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_broken") . "");
list($totalBrokenLinks) = $xoopsDB->fetchRow($result);
if ($totalBrokenLinks > 0) {
    $totalBrokenLinks = "<span style='color: #ff0000; font-weight: bold'>{$totalBrokenLinks}</span>";
}
$result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_mod") . "");
list($totalModRequests) = $xoopsDB->fetchRow($result);
if ($totalModRequests > 0) {
    $totalModRequests = "<span style='color: #ff0000; font-weight: bold'>{$totalModRequests}</span>";
}
$result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_links") . " WHERE status='0'");
list($totalNewLinks) = $xoopsDB->fetchRow($result);
if ($totalNewLinks > 0) {
    $totalNewLinks = "<span style='color: #ff0000; font-weight: bold'>{$totalNewLinks}</span>";
コード例 #19
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.
 *
 * @copyright       (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license             GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package             profile
 * @since               2.3.0
 * @author              Jan Pedersen
 * @author              Taiwen Jiang <*****@*****.**>
 */
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation(basename(__FILE__));
$op = \Xmf\Request::getCmd('op', 'edit');
$perm_desc = '';
switch ($op) {
    case 'visibility':
        //redirect_header("visibility.php", 0, _PROFILE_AM_PROF_VISIBLE);
        header('Location: visibility.php');
        break;
    case 'edit':
        $title_of_form = _PROFILE_AM_PROF_EDITABLE;
        $perm_name = 'profile_edit';
        $restriction = 'field_edit';
        $anonymous = false;
        break;
    case 'search':
コード例 #20
0
<?php

/**
 * Module & Theme Resource Download Harvester and Loader
 *
 * 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 3 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @author      	Simon Antony Roberts (wishcraft) <*****@*****.**>
 * @category  		resources
 * @description 	Module & Theme Resource Download Harvester and Loader
 * @version			1.0.1
 * @see				1.0.1
 * @link        	https://github.com/ChronolabsCooperative/Xoops25ModuleResources
 * @link        	https://github.com/ChronolabsCooperative/Xoops26ModuleResources
 * @see				http://internetfounder.wordpress.com
 */
$module_info =& $module_handler->get($xoopsModule->getVar("mid"));
$aboutAdmin = new ModuleAdmin();
echo $aboutAdmin->addNavigation('admin?op=about');
echo $aboutAdmin->renderabout($aboutAdmin['paypal-catno'], false);
コード例 #21
0
ファイル: index.php プロジェクト: prolin99/tad_web
<?php

/**
 * Tad Web module
 *
 * 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      Tad Web
 * @since        2.5.0
 * @author       Tad
 * @version      $Id $
 **/
require_once '../../../include/cp_header.php';
include 'header.php';
include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
$index_admin = new ModuleAdmin();
$index_admin->addConfigLabel(_AM_XDIR_CONFIG_CHECK);
$index_admin->addLineConfigLabel(_AM_XDIR_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php');
$index_admin->addLineConfigLabel(_AM_XDIR_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops');
echo $index_admin->addNavigation('index.php');
echo $index_admin->renderIndex();
include "footer.php";
xoops_cp_footer();
コード例 #22
0
ファイル: permissions.php プロジェクト: RanLee/Xoops_demo
 * 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 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @package         profile
 * @since           2.3.0
 * @author          Jan Pedersen
 * @author          Taiwen Jiang <*****@*****.**>
 * @version         $Id: permissions.php 12593 2014-06-14 16:04:02Z beckmi $
 */
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation('permissions.php');
$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : "edit";
$perm_desc = "";
switch ($op) {
    case "visibility":
        //redirect_header("visibility.php", 0, _PROFILE_AM_PROF_VISIBLE);
        header("Location: visibility.php");
        break;
    case "edit":
        $title_of_form = _PROFILE_AM_PROF_EDITABLE;
        $perm_name = "profile_edit";
        $restriction = "field_edit";
        $anonymous = false;
        break;
    case "search":
コード例 #23
0
ファイル: main.php プロジェクト: BackupTheBerlios/haxoo-svn
function listModReq()
{
    global $xoopsDB, $myts, $eh, $xoopsModuleConfig, $xoopsModule;
    //global $xoopsDB, $myts, $eh, $myCatTree, $xoopsModuleConfig, $xoopsModule;
    $result = $xoopsDB->query("SELECT requestid, lid, cid, title, url, logourl, description, modifysubmitter FROM " . $xoopsDB->prefix("mylinks_mod") . " ORDER BY requestid");
    $totalModRequests = $xoopsDB->getRowsNum($result);
    //xoops_cp_header();
    $index_admin = new ModuleAdmin();
    echo $index_admin->addNavigation('main.php?op=listModReq');
    $mylinksCatHandler =& xoops_getmodulehandler('category', $xoopsModule->getVar('dirname'));
    //echo "<h4>" . _MD_MYLINKS_WEBLINKSCONF . "</h4>\n";
    echo "<table class='outer' style='width: 100%; border-weight: 0px; margin: 1px;'>\n" . "  <tr class='even'><th>" . sprintf(_MD_MYLINKS_BROKENREPORTS, $totalModRequests) . "</th></tr>\n" . "  <tr class='odd'>\n" . "    <td>\n";
    if ($totalModRequests > 0) {
        echo "  <table style='width: 95%;'>\n" . "    <tr>\n" . "      <td>\n";
        $lookup_lid = array();
        while (list($requestid, $lid, $cid, $title, $url, $logourl, $description, $submitterid) = $xoopsDB->fetchRow($result)) {
            $catObj = $mylinksCatHandler->get($cid);
            $lookup_lid[$requestid] = $lid;
            $result2 = $xoopsDB->query("SELECT cid, title, url, logourl, submitter FROM " . $xoopsDB->prefix("mylinks_links") . " WHERE lid='{$lid}'");
            list($origcid, $origtitle, $origurl, $origlogourl, $ownerid) = $xoopsDB->fetchRow($result2);
            $origCatObj = $mylinksCatHandler->get($origcid);
            $result2 = $xoopsDB->query("SELECT description FROM " . $xoopsDB->prefix("mylinks_text") . " WHERE lid='{$lid}'");
            list($origdescription) = $xoopsDB->fetchRow($result2);
            $result7 = $xoopsDB->query("SELECT uname, email FROM " . $xoopsDB->prefix("users") . " WHERE uid='{$submitterid}'");
            $result8 = $xoopsDB->query("SELECT uname, email FROM " . $xoopsDB->prefix("users") . " WHERE uid='{$ownerid}'");
            $cidtitle = $catObj->getVar('title');
            $cidtitle = $myts->htmlSpecialChars($cidtitle);
            $origcidtitle = $origCatObj->getVar('title');
            $origcidtitle = $myts->htmlSpecialChars($cidtitle);
            /*
                        $cidtitle     = $catObj->getPathFromID();
                        $origcidtitle = $origCatObj->getPathFromID();
            */
            list($submitter, $submitteremail) = $xoopsDB->fetchRow($result7);
            list($owner, $owneremail) = $xoopsDB->fetchRow($result8);
            $title = $myts->htmlSpecialChars($title);
            $url = $myts->htmlSpecialChars($url);
            //$url   = urldecode($url);
            // use original image file to prevent users from changing screen shots file
            $origlogourl = $myts->htmlSpecialChars($origlogourl);
            $logourl = $origlogourl;
            //$logourl     = urldecode($logourl);
            $description = $myts->displayTarea($description, 0);
            $origurl = $myts->htmlSpecialChars($origurl);
            //$origurl     = urldecode($origurl);
            //$origlogourl = urldecode($origlogourl);
            $origdescription = $myts->displayTarea($origdescription, 0);
            $owner = '' == $owner ? 'administration' : $owner;
            echo "        <table style='border-width: 1px; border-color: black; padding: 5px; margin: auto; text-align: center; width: 800px;'>\n" . "          <tr><td>\n" . "            <table style='width: 100%; background-color: #DDDDDD'>\n" . "\t\t\t    <tr>\n" . "                <td style='vertical-align: top; width: 45%; font-weight: bold;'>" . _MD_MYLINKS_ORIGINAL . "</td>\n" . "                <td rowspan='14' style='vertical-align: top; text-align: left; font-size: small;'><br />" . _MD_MYLINKS_DESCRIPTIONC . "<br />{$origdescription}</td>\n" . "              </tr>\n" . "              <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITETITLE . "{$origtitle}</td></tr>\n" . "              <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITEURL . "{$origurl}</td></tr>\n" . "              <tr><td style='vertical-align= top; width: 45%; font-size: small;'>" . _MD_MYLINKS_CATEGORYC . "{$origcidtitle}</td></tr>\n" . "              <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SHOTIMAGE . "";
            if ($xoopsModuleConfig['useshots'] && !empty($origlogourl)) {
                echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/images/shots/{$origlogourl}' style='width: " . $xoopsModuleConfig['shotwidth'] . ";' />";
            } else {
                echo "&nbsp;";
            }
            echo "</td></tr>\n" . "        </table>\n" . "      </td></tr>\n" . "      <tr><td>\n" . "        <table style='width: 100%; background-color: #DDDDDD'>\n" . "\t\t    <tr>\n" . "            <td style='vertical-align: top; width: 45%; font-weight: bold;'>" . _MD_MYLINKS_PROPOSED . "</td>\n" . "            <td rowspan='14' style='vertical-align: top; text-align: left; font-size: small;'><br />" . _MD_MYLINKS_DESCRIPTIONC . "<br />{$description}</td>\n" . "          </tr>\n" . "          <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITETITLE . "{$title}</td></tr>\n" . "          <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITEURL . "{$url}</td></tr>\n" . "          <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_CATEGORYC . "{$cidtitle}</td></tr>\n" . "          <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SHOTIMAGE . "";
            if ($xoopsModuleConfig['useshots'] == 1 && !empty($logourl)) {
                echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/images/shots/{$logourl}' style='width: " . $xoopsModuleConfig['shotwidth'] . ";' alt='' />";
            } else {
                echo "&nbsp;";
            }
            echo "</td></tr>\n" . "        </table>\n" . "      </td></tr>\n" . "    </table>\n" . "    <table style='text-align: center; width: 800px; margin: auto;'>\n" . "      <tr>\n";
            if ('' == $submitteremail) {
                echo "      <td style='text-align: center; font-weight: bold;'>" . _MD_MYLINKS_SUBMITTER . "{$submitter}</td>\n";
            } else {
                echo "      <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_SUBMITTER . "<a href='mailto:{$submitteremail}'>{$submitter}</a></td>\n";
            }
            if ('' == $owneremail) {
                echo "      <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_OWNER . "{$owner}</td>\n";
            } else {
                echo "      <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_OWNER . "<a href='mailto:{$owneremail}'>{$owner}</a></td>\n";
            }
            echo "      <td style='text-align: center; font-size: small;'>\n" . "        <form style='display: inline; margin-right: 1.5em;' action='main.php?op=changeModReq&amp;requestid={$requestid}' method='post'><input type='submit' value='" . _MD_MYLINKS_APPROVE . "' /></form>\n" . "        <form style='display: inline; margin-right: 1.5em;' action='main.php?op=modLink&amp;lid=" . $lookup_lid[$requestid] . "' method='post'><input type='submit' value='" . _EDIT . "' /></form>\n" . "        <form style='display: inline;' action='main.php?op=ignoreModReq&amp;requestid={$requestid}' method='post'><input type='submit' value='" . _MD_MYLINKS_IGNORE . "' /></form>\n" . "      </td>\n" . "    </tr>\n" . "  </table><br /><br />\n";
        }
        echo "    </td></tr></table>";
    } else {
        echo "      <em>" . _MD_MYLINKS_NOMODREQ . "</em>\n";
    }
    echo "    </td>\n" . "  </tr>\n" . "</table>\n";
    include 'footer.php';
}
コード例 #24
0
ファイル: prune.php プロジェクト: RanLee/Xoops_demo
 * 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 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @package         pm
 * @since           2.3.0
 * @author          Jan Pedersen
 * @author          Taiwen Jiang <*****@*****.**>
 * @version         $Id: prune.php 12593 2014-06-14 16:04:02Z beckmi $
 */
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation('prune.php');
$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : "form";
$pm_handler =& xoops_getmodulehandler('message');
switch ($op) {
    default:
    case "form":
        $form = $pm_handler->getPruneForm();
        $form->display();
        break;
    case "prune":
        $criteria = new CriteriaCompo();
        if ($_REQUEST['after']['date'] && $_REQUEST['after']['date'] != "YYYY/MM/DD") {
            $criteria->add(new Criteria('msg_time', strtotime($_REQUEST['after']['date']) + intval($_REQUEST['after']['time']), ">"));
        }
        if ($_REQUEST['before']['date'] && $_REQUEST['before']['date'] != "YYYY/MM/DD") {
コード例 #25
0
ファイル: sidebar.php プロジェクト: openeyeswales/OpenEyes
    } else {
        ?>
					<?php 
        echo CHtml::link($title, array($uri));
        ?>
				<?php 
    }
    ?>
			</li>
		<?php 
}
?>
	</ul>
</div>
<?php 
foreach (ModuleAdmin::getAll() as $module => $items) {
    ?>
	<div class="admin box">
		<h2><?php 
    echo $module;
    ?>
</h2>
		<ul class="navigation admin">
			<?php 
    foreach ($items as $item => $uri) {
        $e = explode('/', $uri);
        $action = array_pop($e);
        ?>
				<li<?php 
        if (Yii::app()->getController()->action->id == $action) {
            ?>
コード例 #26
0
ファイル: about.php プロジェクト: trabisdementia/publisher
/**
 * 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    The XOOPS Project (http://www.xoops.org)
 * @license      GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
 * @package      Publisher
 * @since        1.0
 * @author       Mage, Mamba
 * @version      $Id: about.php 10374 2012-12-12 23:39:48Z trabis $
 */
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$aboutAdmin = new ModuleAdmin();
echo $aboutAdmin->addNavigation('about.php');
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
//    if (version_compare(PHP_VERSION, '5.4.0') >= 0) {
//        echo 'I am at least PHP version 5.4.0, my version: ' . PHP_VERSION . "\n";
//    } else {
//        echo 'I am using PHP lower than 5.4, my version: ' . PHP_VERSION . "\n";
//    }
include_once __DIR__ . '/admin_footer.php';
コード例 #27
0
ファイル: field.php プロジェクト: geekwright/XoopsCore25
 * 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       (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license             GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package             profile
 * @since               2.3.0
 * @author              Jan Pedersen
 * @author              Taiwen Jiang <*****@*****.**>
 */
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_FIELD, 'field.php?op=new', 'add', '');
echo $indexAdmin->addNavigation(basename(__FILE__));
echo $indexAdmin->renderButton('right', '');
$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);
コード例 #28
0
ファイル: main.php プロジェクト: jjdai/tellafriend
        redirect_header("main.php", 2, _AM_TAF_MSG_REMOVED);
        exit;
    }
}
// query for listing
$rs = $xoopsDB->query("SELECT count(lid) FROM {$log_table}");
list($numrows) = $xoopsDB->fetchRow($rs);
$prs = $xoopsDB->query("SELECT l.lid, l.uid, l.ip, l.agent, l.mail_fromemail, l.mail_to, l.timestamp, u.uname, result, date_send" . " FROM {$log_table} l LEFT JOIN " . $xoopsDB->prefix("users") . " u ON l.uid=u.uid" . " ORDER BY date_send DESC LIMIT {$pos},{$num}");
// Page Navigation
require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
$nav = new XoopsPageNav($numrows, $num, $pos, 'pos', "num={$num}");
$nav_html = $nav->renderNav(10);
// beggining of Output
xoops_cp_header();
//include( './mymenu.php' );
$indexAdmin = new ModuleAdmin();
echo $indexAdmin->addNavigation('main.php');
// check $xoopsModule
if (!is_object($xoopsModule)) {
    redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
}
// title
//echo "<h3 style='text-align:left;'>".$xoopsModule->name()."</h3>\n" ;
// header of log listing
echo "\n<table width='95%' border='0' cellpadding='4' cellspacing='0'><tr><td>\n<form action='' method='GET' style='margin-bottom:0px;text-align:right'>\n  {$nav_html} &nbsp; \n</form>\n<form name='MainForm' action='' method='POST' style='margin-top:0px;'>\n" . $xoopsGTicket->getTicketHtml(__LINE__) . "\n<input type='hidden' name='action' value='' />\n<table width='95%' class='outer' cellpadding='4' cellspacing='1'>\n  <tr valign='middle'>\n    <th width='5'><input type='checkbox' name='dummy' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'){elements[i].checked=this.checked;}}}\" /></th>\n    <th>" . _AM_TAF_DATETIME . "</th>\n    <th>" . _AM_TAF_USER . "</th>\n    <th>" . _AM_TAF_IP . "<br />" . _AM_TAF_AGENT . "</th>\n    <th>" . _AM_TAF_MAIL_FROM . "</th>\n    <th>" . _AM_TAF_MAIL_TO . "</th>\n    <th>" . _AM_TAF_MAIL_RESULT . "</th>\n  </tr>\n";
// body of log listing
$oddeven = 'odd';
while (list($lid, $uid, $ip, $agent, $mail_fromemail, $mail_to, $timestamp, $uname, $result, $date_send) = $xoopsDB->fetchRow($prs)) {
    $oddeven = $oddeven == 'odd' ? 'even' : 'odd';
    $ip = htmlspecialchars($ip, ENT_QUOTES);
    $mail_fromemail = htmlspecialchars($mail_fromemail, ENT_QUOTES);
コード例 #29
0
ファイル: category.php プロジェクト: RanLee/Xoops_demo
//  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_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
$indexAdmin = new ModuleAdmin();
$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_CATEGORY, 'category.php?op=new', 'add', '');
echo $indexAdmin->addNavigation('category.php');
echo $indexAdmin->renderButton('right', '');
$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.tpl";
        break;
    case "new":
コード例 #30
0
ファイル: about.php プロジェクト: mambax7/presenter
<?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.
*/
/**
 * 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 about.php 11532 Wed 2013/08/28 4:00:28Z XOOPS Development Team $
 */
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
$currentFile = basename(__FILE__);
$aboutAdmin = new ModuleAdmin();
echo $aboutAdmin->addNavigation($currentFile);
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
include_once __DIR__ . '/admin_footer.php';