当前位置: 首页>>代码示例>>PHP>>正文


PHP system_adminVersion函数代码示例

本文整理汇总了PHP中system_adminVersion函数的典型用法代码示例。如果您正苦于以下问题:PHP system_adminVersion函数的具体用法?PHP system_adminVersion怎么用?PHP system_adminVersion使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了system_adminVersion函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: xoops_gethandler

             if ($groups_id > 0 && !in_array($groups_id, array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS))) {
                 $member_handler =& xoops_gethandler('member');
                 $group = $member_handler->getGroup($groups_id);
                 $member_handler->deleteGroup($group);
                 $gperm_handler =& xoops_gethandler('groupperm');
                 $gperm_handler->deleteByGroup($groups_id);
                 redirect_header('admin.php?fct=groups', 1, _AM_SYSTEM_GROUPS_DBUPDATED);
             } else {
                 redirect_header('admin.php?fct=groups', 2, _AM_SYSTEM_GROUPS_ERROR_DELETE);
             }
         } else {
             // Define Stylesheet
             $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
             // Define Breadcrumb and tips
             $xoBreadCrumb->addLink(_AM_SYSTEM_GROUPS_NAV_DELETE);
             $xoBreadCrumb->addHelp(system_adminVersion('groups', 'help') . '#edit');
             $xoBreadCrumb->render();
             // Display message
             xoops_confirm(array("ok" => 1, "groups_id" => $_REQUEST["groups_id"], "op" => "groups_delete"), 'admin.php?fct=groups', sprintf(_AM_SYSTEM_GROUPS_SUREDEL) . '<br \\>' . $obj->getVar("name") . '<br \\>');
         }
     } else {
         redirect_header('admin.php?fct=groups', 1, _AM_SYSTEM_DBERROR);
     }
     break;
     //Add users group
 //Add users group
 case 'action_group':
     $error = true;
     if (isset($_REQUEST['edit_group'])) {
         if (isset($_REQUEST['edit_group']) && $_REQUEST['edit_group'] == 'add_group' && isset($_REQUEST['selgroups'])) {
             foreach ($_REQUEST['memberslist_id'] as $uid) {
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:main.php

示例2: redirect_header

            }
        } else {
            redirect_header('admin.php?fct=blocksadmin', 1, _AM_SYSTEM_DBERROR);
        }
        break;
    case 'clone':
        // Initialize blocks handler
        $block_handler =& xoops_getmodulehandler('block');
        // Get avatar id
        $block_id = system_CleanVars($_REQUEST, 'bid', 0, 'int');
        if ($block_id > 0) {
            // Define main template
            $xoopsOption['template_main'] = 'system_blocks.html';
            // Call Header
            xoops_cp_header();
            // Define Stylesheet
            $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
            // Define Breadcrumb and tips
            $xoBreadCrumb->addLink(_AM_SYSTEM_BLOCKS_ADMIN, system_adminVersion('blocksadmin', 'adminpath'));
            $xoBreadCrumb->addLink(_AM_SYSTEM_BLOCKS_CLONEBLOCK);
            $xoBreadCrumb->render();
            $block = $block_handler->get($block_id);
            $blockform = $block->getForm('clone');
            $xoopsTpl->assign('blockform', $blockform->render());
            // Call Footer
            xoops_cp_footer();
        } else {
            redirect_header('admin.php?fct=blocksadmin', 1, _AM_SYSTEM_DBERROR);
        }
        break;
}
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:main.php

示例3: implode

     $modules->addOptionArray($moduleslist);
     $form->addElement($modules, true);
     $form->addElement(new Xoops\Form\Hidden("active_templates", "0"));
     $form->addElement(new Xoops\Form\Hidden("active_modules", "0"));
     $form->addElement(new Xoops\Form\Hidden("op", "tpls_overload"));
     $form->addElement(new Xoops\Form\Button("", "submit", XoopsLocale::A_SUBMIT, "submit"));
     $form->display();
     break;
     //overload template
 //overload template
 case 'tpls_overload':
     if (!$xoops->security()->check()) {
         $xoops->redirect('admin.php?fct=tplsets', 3, implode('<br />', $xoops->security()->getErrors()));
     }
     // Assign Breadcrumb menu
     $system_breadcrumb->addHelp(system_adminVersion('tplsets', 'help') . '#override');
     $system_breadcrumb->addLink(SystemLocale::FILES_GENERATED);
     $system_breadcrumb->render();
     if ($_REQUEST['select_modules'] == '0' || $_REQUEST['active_modules'] == '1') {
         //Generate modules
         if (isset($_REQUEST['select_theme']) && isset($_REQUEST['force_generated'])) {
             //on verifie si le dossier module existe
             $template_overload = \XoopsBaseConfig::get('themes-path') . '/' . $_REQUEST['select_theme'] . '/modules';
             $indexFile = \XoopsBaseConfig::get('root-path') . "/modules/system/include/index.html";
             $verif_write = false;
             $text = '';
             if (!is_dir($template_overload)) {
                 //Creation du dossier modules
                 if (!is_dir($template_overload)) {
                     mkdir($template_overload, 0777);
                 }
开发者ID:redmexico,项目名称:XoopsCore,代码行数:31,代码来源:main.php

示例4: xoops_getModuleOption

$xoTheme->addScript('modules/system/js/jqueryFileTree.js');
$xoTheme->addScript('modules/system/js/filemanager.js');
$xoTheme->addScript('modules/system/js/admin.js');
$xoTheme->addScript('modules/system/js/code_mirror/codemirror.js');
// Define Stylesheet
$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/code_mirror/docs.css');
$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
// Define Breadcrumb and tips
$xoBreadCrumb->addLink(_AM_SYSTEM_FILEMANAGER_NAV_MAIN, system_adminVersion('filemanager', 'adminpath'));
xoops_load('XoopsFile');
XoopsFile::load('file');
switch ($op) {
    default:
        // Assign Breadcrumb menu
        $xoBreadCrumb->addHelp(system_adminVersion('filemanager', 'help'));
        $xoBreadCrumb->addTips(_AM_SYSTEM_FILEMANAGER_NAV_TIPS);
        $xoBreadCrumb->render();
        $xoopsTpl->assign('index', true);
        $xoopsTpl->debugging = false;
        $nbcolonnes_file = 4;
        $width = 100 / $nbcolonnes_file;
        $root = XOOPS_ROOT_PATH . '/';
        $url_file = XOOPS_URL . '/';
        $xoopsTpl->assign('width', $width);
        if (file_exists($root)) {
            $files = scandir($root);
            natcasesort($files);
            if (count($files) > 2) {
                $count_file = 1;
                $file_arr = array();
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:31,代码来源:main.php

示例5: sprintf

         }
         $groups = $user->getGroups();
         if (in_array(FixedGroups::ADMIN, $groups)) {
             echo $xoops->alert('error', sprintf(SystemLocale::EF_CAN_NOT_DELETE_ADMIN_USER, $user->getVar("uname")));
         } elseif (!$member_handler->deleteUser($user)) {
             echo $xoops->alert('error', sprintf(SystemLocale::EF_COULD_NOT_DELETE_USER, $user->getVar("uname")));
         } else {
             $xoops->getHandlerOnline()->destroy($uid);
             if ($xoops->isActiveModule('notifications')) {
                 Notifications::getInstance()->getHandlerNotification()->unsubscribeByUser($uid);
             }
             $xoops->redirect("admin.php?fct=users", 1, XoopsLocale::S_DATABASE_UPDATED);
         }
     } else {
         //Assign Breadcrumb menu
         $system_breadcrumb->addHelp(system_adminVersion('users', 'help') . '#delete');
         $system_breadcrumb->addLink(SystemLocale::DELETE_USER);
         $system_breadcrumb->render();
         echo $xoops->confirm(array('ok' => 1, 'uid' => $uid, 'op' => 'users_delete'), "admin.php?fct=users", sprintf(SystemLocale::F_DELETE_USER, $user->getVar('uname')) . '<br />');
     }
     break;
     // Delete users
 // Delete users
 case "action_group":
     if (@isset($_REQUEST['memberslist_id']) || @$_REQUEST['memberslist_id'] != '') {
         $system_breadcrumb->render();
         $error = '';
         foreach ($_REQUEST['memberslist_id'] as $del) {
             $del = (int) $del;
             $user = $member_handler->getUser($del);
             $groups = $user->getGroups();
开发者ID:redmexico,项目名称:XoopsCore,代码行数:31,代码来源:main.php

示例6: chmod

         if ($smilies_Handler->delete($obj)) {
             $urlfile = XOOPS_UPLOAD_PATH . '/' . $obj->getVar("smile_url");
             if (is_file($urlfile)) {
                 chmod($urlfile, 0777);
                 unlink($urlfile);
             }
             redirect_header("admin.php?fct=smilies", 2, _AM_SYSTEM_SMILIES_SAVE);
         } else {
             xoops_error($obj->getHtmlErrors());
         }
     } else {
         // Define Stylesheet
         $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
         // Define Breadcrumb and tips
         $xoBreadCrumb->addLink(_AM_SYSTEM_SMILIES_NAV_DELETE);
         $xoBreadCrumb->addHelp(system_adminVersion('smilies', 'help') . '#delete');
         $xoBreadCrumb->render();
         $smilies_img = $obj->getVar("smile_url") ? $obj->getVar("smile_url") : 'blank.gif';
         xoops_confirm(array("ok" => 1, "smilies_id" => $_REQUEST["smilies_id"], "op" => "smilies_delete"), $_SERVER["REQUEST_URI"], sprintf(_AM_SYSTEM_SMILIES_SUREDEL) . '<br \\><img src="' . XOOPS_UPLOAD_URL . '/' . $smilies_img . '" alt="" /><br \\>');
     }
     break;
 case "smilies_update_display":
     // Get smilies id
     $smilies_id = system_CleanVars($_POST, 'smilies_id', 0, 'int');
     if ($smilies_id > 0) {
         $obj =& $smilies_Handler->get($smilies_id);
         $old = $obj->getVar('display');
         $obj->setVar('display', !$old);
         if ($smilies_Handler->insert($obj)) {
             exit;
         }
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php

示例7: system_adminVersion

        } else {
            $xoops->redirect('admin.php?fct=blocksadmin', 1, XoopsLocale::E_DATABASE_NOT_UPDATED);
        }
        break;
    case 'clone':
        // Initialize blocks handler
        $block_handler = $xoops->getHandlerBlock();
        // Get avatar id
        $block_id = $system->cleanVars($_REQUEST, 'bid', 0, 'int');
        if ($block_id > 0) {
            // Call Header
            $xoops->header('admin:system/system_blocks.tpl');
            // Define Stylesheet
            $xoops->theme()->addStylesheet('modules/system/css/admin.css');
            // Define Breadcrumb and tips
            $system_breadcrumb = new \Xoops\Module\Admin();
            $system_breadcrumb->addBreadcrumbLink(SystemLocale::BLOCKS_ADMINISTRATION, system_adminVersion('blocksadmin', 'adminpath'));
            $system_breadcrumb->addBreadcrumbLink(SystemLocale::CLONE_BLOCK);
            $system_breadcrumb->renderBreadcrumb();
            $block = $block_handler->get($block_id);
            /* @var $form SystemBlockForm */
            $form = $xoops->getModuleForm($block, 'block');
            $form->getForm('clone');
            $form->display();
            // Call Footer
            $xoops->footer();
        } else {
            $xoops->redirect('admin.php?fct=blocksadmin', 1, XoopsLocale::E_DATABASE_NOT_UPDATED);
        }
        break;
}
开发者ID:RanLee,项目名称:XoopsCore,代码行数:31,代码来源:main.php

示例8: system_adminVersion

     $form->addElement($subject_text);
     $form->addElement($body_text);
     $form->addElement($to_checkbox);
     $form->addElement($op_hidden);
     $form->addElement($start_hidden);
     $form->addElement($submit_button);
     $form->setRequired($subject_text);
     $form->setRequired($body_text);
     // Assign form
     $xoopsTpl->assign('form', $form->render());
     break;
     // Send
 // Send
 case 'send':
     // Define Breadcrumb and tips
     $xoBreadCrumb->addLink(_AM_SYSTEM_MAILUSERS_MANAGER, system_adminVersion('mailusers', 'adminpath'));
     $xoBreadCrumb->addLink(_AM_SYSTEM_MAILUSERS_LIST);
     $xoBreadCrumb->render();
     if (!empty($_POST['mail_send_to'])) {
         $added = array();
         $added_id = array();
         $criteria = array();
         $count_criteria = 0;
         // user count via criteria;
         if (!empty($_POST['mail_inactive'])) {
             $criteria[] = 'level = 0';
         } else {
             if (!empty($_POST['mail_mailok'])) {
                 $criteria[] = 'user_mailok = 1';
             }
             if (!empty($_POST['mail_lastlog_min'])) {
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:31,代码来源:main.php

示例9: time

 // we dont want to change the module name set by admin
 $temp_name = $module->getVar('name');
 $module->loadInfoAsVar($dirname);
 $module->setVar('name', $temp_name);
 $module->setVar('last_update', time());
 // Call Header
 // Define main template
 $xoopsOption['template_main'] = 'system_header.html';
 // Call Header
 xoops_cp_header();
 // Define Stylesheet
 $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
 // Define Breadcrumb and tips
 $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
 $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_UPDATE);
 $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#update');
 $xoBreadCrumb->render();
 if (!$module_handler->insert($module)) {
     echo '<p>Could not update ' . $module->getVar('name') . '</p>';
     echo "<br /><div class='center'><a href='admin.php?fct=modulesadmin'>" . _AM_SYSTEM_MODULES_BTOMADMIN . "</a></div>";
 } else {
     $newmid = $module->getVar('mid');
     $msgs = array();
     $msgs[] = '<div id="xo-module-log"><div class="header">';
     $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UPDATING . $module->getInfo('name', 's') . '</h4>';
     if ($module->getInfo('image') != false && trim($module->getInfo('image')) != '') {
         $msgs[] = '<img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" />';
     }
     $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getInfo('version');
     if ($module->getInfo('author') != false && trim($module->getInfo('author')) != '') {
         $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . $myts->htmlspecialchars(trim($module->getInfo('author')));
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php

示例10: redirect_header

     $xoopsTpl->assign('verif_session', $verif_session);
     $xoopsTpl->assign('verif_avatar', $verif_avatar);
     $xoopsTpl->assign('verif_maintenance', $verif_maintenance);
     $xoopsTpl->assign('result_cache', $result_cache);
     $xoopsTpl->assign('result_session', $result_session);
     $xoopsTpl->assign('result_avatar', $result_avatar);
     $xoopsTpl->assign('result_maintenance', $result_maintenance);
     $xoopsTpl->assign('maintenance', true);
     break;
 case 'dump_save':
     // Check security
     if (!$GLOBALS['xoopsSecurity']->check()) {
         redirect_header('admin.php?fct=maintenance', 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
     }
     //Define Breadcrumb and tips
     $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_MANAGER, system_adminVersion('maintenance', 'adminpath'));
     $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_DUMP);
     $xoBreadCrumb->render();
     $dump = new SystemMaintenance();
     $dump_modules = isset($_REQUEST['dump_modules']) ? $_REQUEST['dump_modules'] : false;
     $dump_tables = isset($_REQUEST['dump_tables']) ? $_REQUEST['dump_tables'] : false;
     $drop = system_CleanVars($_REQUEST, 'drop', 1, 'int');
     if ($dump_tables === true && $dump_modules === true || $dump_tables === false && $dump_modules === false) {
         redirect_header('admin.php?fct=maintenance', 2, _AM_SYSTEM_MAINTENANCE_DUMP_ERROR_TABLES_OR_MODULES);
     }
     if ($dump_tables !== false) {
         $result = $dump->dump_tables($dump_tables, $drop);
     } elseif ($dump_modules !== false) {
         $result = $dump->dump_modules($dump_modules, $drop);
     }
     $xoopsTpl->assign('result_dump', $result[1]);
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:31,代码来源:main.php

示例11: XoopsFormButtonTray

     $form->addElement(new XoopsFormButtonTray('imgcat_button', _SUBMIT, 'submit', '', false));
     // Define main template
     $xoopsOption['template_main'] = 'system_header.html';
     // Call Header
     xoops_cp_header();
     // Define Stylesheet
     $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
     $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
     $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/lightbox.css');
     // Define scripts
     $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
     $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
     $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.lightbox.js');
     $xoTheme->addScript('modules/system/js/admin.js');
     // Define Breadcrumb and tips
     $xoBreadCrumb->addLink(_AM_SYSTEM_IMAGES_MANAGER, system_adminVersion('images', 'adminpath'));
     $xoBreadCrumb->addLink($imagecategory->getVar('imgcat_name'), '');
     $xoBreadCrumb->render();
     echo "<br />";
     $form->display();
     // Call Footer
     xoops_cp_footer();
     exit;
 case 'updatecat':
     if (!$GLOBALS['xoopsSecurity']->check() || $imgcat_id <= 0) {
         redirect_header('admin.php?fct=images', 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
     }
     $imgcat_handler = xoops_gethandler('imagecategory');
     $imagecategory =& $imgcat_handler->get($imgcat_id);
     if (!is_object($imagecategory)) {
         redirect_header('admin.php?fct=images', 1);
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:main.php

示例12: chmod

             $urlfile = XOOPS_UPLOAD_PATH . '/' . $obj->getVar("rank_image");
             if (is_file($urlfile)) {
                 chmod($urlfile, 0777);
                 unlink($urlfile);
             }
             redirect_header("admin.php?fct=userrank", 2, _AM_SYSTEM_USERRANK_SAVE);
         } else {
             xoops_error($obj->getHtmlErrors());
         }
     } else {
         // Define Stylesheet
         $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
         // Define Breadcrumb and tips
         $xoBreadCrumb->addLink(_AM_SYSTEM_USERRANK_NAV_MANAGER, system_adminVersion('userrank', 'adminpath'));
         $xoBreadCrumb->addLink(_AM_SYSTEM_USERRANK_NAV_DELETE);
         $xoBreadCrumb->addHelp(system_adminVersion('userrank', 'help') . '#delete');
         $xoBreadCrumb->render();
         $rank_img = $obj->getVar("rank_image") ? $obj->getVar("rank_image") : 'blank.gif';
         xoops_confirm(array("ok" => 1, "rank_id" => $_REQUEST["rank_id"], "op" => "userrank_delete"), $_SERVER["REQUEST_URI"], sprintf(_AM_SYSTEM_USERRANK_SUREDEL) . '<br \\><img src="' . XOOPS_UPLOAD_URL . '/' . $rank_img . '" alt="" /><br \\>');
     }
     break;
     // Update userrank status
 // Update userrank status
 case 'userrank_update_special':
     // Get rank id
     $rank_id = system_CleanVars($_POST, 'rank_id', 0, 'int');
     if ($rank_id > 0) {
         $obj =& $userrank_Handler->get($rank_id);
         $old = $obj->getVar('rank_special');
         $obj->setVar('rank_special', !$old);
         if ($userrank_Handler->insert($obj)) {
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:main.php

示例13: formatTimestamp

 $listed_mods[$i]['last_update'] = formatTimestamp($module->getVar('last_update'), 'm');
 $listed_mods[$i]['author'] = $module->getInfo('author');
 $listed_mods[$i]['credits'] = $module->getInfo('credits');
 $listed_mods[$i]['license'] = $module->getInfo('license');
 $listed_mods[$i]['description'] = $module->getInfo('description');
 // Special handling for the System module
 if ($module->getVar('dirname', 'e') === 'system') {
     xoops_load('xoopslists');
     $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin';
     $dirlist = XoopsLists::getDirListAsArray($admin_dir);
     foreach ($dirlist as $directory) {
         if (file_exists($admin_dir . '/' . $directory . '/xoops_version.php')) {
             require $admin_dir . '/' . $directory . '/xoops_version.php';
             if ($modversion['help']) {
                 $list_help[$j]['name'] = system_adminVersion($directory, 'name');
                 $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') . '&amp;' . system_adminVersion($directory, 'help');
             }
             unset($modversion);
             ++$j;
         }
     }
     unset($dirlist);
     // Handling for all other modules
 } else {
     $helplist = $module->getInfo('helpsection');
     $k = 0;
     // Only build the list if one has been defined.
     if (is_array($helplist)) {
         foreach ($helplist as $helpitem) {
             if ($helpitem['name'] !== '' && $helpitem['link'] !== '') {
                 $list_help[$j]['name'] = $helpitem['name'];
开发者ID:geekwright,项目名称:XoopsCore25,代码行数:31,代码来源:help.php

示例14: XoopsFormHidden

     $form->addElement($sort_select);
     $form->addElement($order_select);
     $form->addElement($fct_hidden);
     $form->addElement($limit_text);
     $form->addElement($op_hidden);
     // if this is to find users for a specific group
     if (!empty($_GET['group']) && intval($_GET['group']) > 0) {
         $group_hidden = new XoopsFormHidden("group", intval($_GET['group']));
         $form->addElement($group_hidden);
     }
     $form->addElement($submit_button);
     $form->display();
 } else {
     //Display data
     // Assign Breadcrumb menu
     $xoBreadCrumb->addHelp(system_adminVersion('users', 'help'));
     $xoBreadCrumb->addTips(_AM_SYSTEM_USERS_NAV_TIPS);
     $xoBreadCrumb->render();
     $requete_search = '<br /><br /><strong>See search request: </strong><br /><br />';
     $requete_pagenav = '';
     $criteria = new CriteriaCompo();
     if (!empty($_REQUEST['user_uname'])) {
         $match = !empty($_REQUEST['user_uname_match']) ? intval($_REQUEST['user_uname_match']) : XOOPS_MATCH_START;
         switch ($match) {
             case XOOPS_MATCH_CONTAIN:
                 $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_REQUEST['user_uname'])) . '%', 'LIKE'));
                 break;
             case XOOPS_MATCH_END:
                 $criteria->add(new Criteria('uname', '%' . $myts->addSlashes(trim($_REQUEST['user_uname'])), 'LIKE'));
                 break;
             case XOOPS_MATCH_EQUAL:
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php

示例15: xoops_cp_header

         if (!$avt_handler->insert($avatar)) {
             $error = true;
         }
     }
     break;
 case 'delfile':
     // Define main template
     $xoopsOption['template_main'] = 'system_avatars.html';
     // Call Header
     xoops_cp_header();
     // Define Stylesheet
     $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
     // Define Breadcrumb and tips
     $xoBreadCrumb->addLink(_AM_SYSTEM_AVATAR_MANAGER, system_adminVersion('avatars', 'adminpath'));
     $xoBreadCrumb->addLink(_AM_SYSTEM_AVATAR_DELETE);
     $xoBreadCrumb->addHelp(system_adminVersion('avatars', 'help') . '#delete');
     $xoBreadCrumb->render();
     // Get variables
     $user_id = system_CleanVars($_REQUEST, 'user_id', 0, 'int');
     $avatar_id = system_CleanVars($_REQUEST, 'avatar_id', 0, 'int');
     // Get avatar handler
     $avt_handler =& xoops_gethandler('avatar');
     if ($avatar_id > 0) {
         $avatar = $avt_handler->get($avatar_id);
         $msg = '<div class="spacer"><img src="' . XOOPS_UPLOAD_URL . '/' . $avatar->getVar('avatar_file', 's') . '" alt="" /></div><div class="txtcenter bold">' . $avatar->getVar('avatar_name', 's') . '</div>' . _AM_SYSTEM_AVATAR_SUREDEL;
         // Display message
         xoops_confirm(array('op' => 'delfileok', 'avatar_id' => $avatar_id, 'fct' => 'avatars', 'user_id' => $user_id), 'admin.php', $msg);
     } else {
         redirect_header('admin.php?fct=avatars', 1, _AM_SYSTEM_DBERROR);
     }
     // Call footer
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php


注:本文中的system_adminVersion函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。