• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP xoops_error函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: system_users_error

/**
 * @brief display error message & exit (Tentative)
 */
function system_users_error($message)
{
    xoops_cp_header();
    xoops_error($message);
    xoops_cp_footer();
    exit;
}
开发者ID:koki-h,项目名称:xoops_utf8,代码行数:10,代码来源:users.php


示例2: system_modulesadmin_error

/**
 * @brief display error message & exit (Tentative)
 */
function system_modulesadmin_error($message)
{
    xoops_cp_header();
    xoops_error($message);
    xoops_cp_footer();
    exit;
}
开发者ID:koki-h,项目名称:xoops_utf8,代码行数:10,代码来源:modulesadmin.php


示例3: tellafriend_checkModuleAdmin

function tellafriend_checkModuleAdmin()
{
    $f = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
    if (file_exists($f)) {
        include_once $f;
        return true;
    } else {
        echo xoops_error("Error: You don't use the Frameworks \"adminmodule\". Please install this Frameworks");
        return false;
    }
}
开发者ID:jjdai,项目名称:tellafriend,代码行数:11,代码来源:functions.php


示例4: DefaultCheck

 function DefaultCheck()
 {
     if (ini_get('register_globals') == 1) {
         xoops_error(sprintf(_WARNPHPENV, 'register_globals', 'on', _WARNSECURITY), '', 'warning');
     }
     if (is_dir(XOOPS_ROOT_PATH . "/install/")) {
         xoops_error(sprintf(_WARNINSTALL2, XOOPS_ROOT_PATH . '/install/'), '', 'warning');
     }
     if (is_writable(XOOPS_ROOT_PATH . "/mainfile.php")) {
         xoops_error(sprintf(_WARNINWRITEABLE, XOOPS_ROOT_PATH . '/mainfile.php'), '', 'warning');
     }
 }
开发者ID:nouphet,项目名称:rata,代码行数:12,代码来源:admin.php


示例5: ilog_tag_synchronization

/** Remove orphan tag-item links **/
function ilog_tag_synchronization($mid)
{
    $item_handler =& xoops_getmodulehandler("article", "ilog");
    $link_handler =& xoops_getmodulehandler("link", "tag");
    /* clear tag-item links */
    if (version_compare(mysql_get_server_info(), "4.1.0", "ge")) {
        $sql = "    DELETE FROM {$link_handler->table}" . "    WHERE " . "        tag_modid = {$mid}" . "        AND " . "        ( tag_itemid NOT IN " . "            ( SELECT DISTINCT {$item_handler->keyName} " . "                FROM {$item_handler->table} " . "                WHERE {$item_handler->table}.time_publish > 0" . "            ) " . "        )";
    } else {
        $sql = "    DELETE {$link_handler->table} FROM {$link_handler->table}" . "    LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " . "    WHERE " . "        tag_modid = {$mid}" . "        AND " . "        ( aa.{$item_handler->keyName} IS NULL" . "            OR aa.time_publish < 1" . "        )";
    }
    if (!($result = $link_handler->db->queryF($sql))) {
        xoops_error($link_handler->db->error());
    }
}
开发者ID:yunsite,项目名称:xoopsdc,代码行数:15,代码来源:plugin.tag.php


示例6: sendSpider

 function sendSpider($spider)
 {
     @$this->CURLSpidersExchange();
     switch (XOOPS_CURL_LIB) {
         case "PHPCURL":
             $sJSON = new Services_JSON();
             curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'spider=' . $sJSON->encode(array("username" => $this->curl_xoops_username, "password" => $this->curl_xoops_password, "spider" => $spider)));
             $data = curl_exec($this->curl_client);
             xoops_error($data, 'cURL Result');
             exit(0);
             curl_close($this->curl_client);
             $result = $this->obj2array($sJSON->decode($data));
             break;
     }
     return $result;
 }
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:16,代码来源:curl.php


示例7: waiting_del

function waiting_del($id, $redir = null)
{
    if (!$GLOBALS['xoopsSecurity']->check()) {
        redirect_header('admin_waiting.php', 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
    }
    if ($id <= 0) {
        redirect_header('admin_waiting.php', 1);
    }
    $this_handler =& xoops_getModuleHandler('waiting', 'subscribers');
    $obj = $this_handler->get($id);
    if (!is_object($obj)) {
        redirect_header('admin_waiting.php', 1);
    }
    if (!$this_handler->delete($obj)) {
        xoops_cp_header();
        xoops_error(_AM_SUBSCRIBERS_ERROR, $obj->getVar('id'));
        xoops_cp_footer();
        exit;
    }
    redirect_header(!is_null($redir) ? base64_decode($redir) : 'admin_waiting.php', 2, _AM_SUBSCRIBERS_SUCCESS);
}
开发者ID:trabisdementia,项目名称:xuups,代码行数:21,代码来源:admin_waiting.php


示例8: update_wgteams_v10

/**
 * @param $module
 *
 * @return bool
 */
function update_wgteams_v10(&$module)
{
    global $xoopsDB;
    $result = $xoopsDB->query('SELECT t1.tpl_id FROM ' . $xoopsDB->prefix('tplfile') . ' t1, ' . $xoopsDB->prefix('tplfile') . ' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id');
    $tplids = array();
    while (false !== (list($tplid) = $xoopsDB->fetchRow($result))) {
        $tplids[] = $tplid;
    }
    if (count($tplids) > 0) {
        $tplfile_handler = xoops_getHandler('tplfile');
        $duplicate_files = $tplfile_handler->getObjects(new Criteria('tpl_id', '(' . implode(',', $tplids) . ')', 'IN'));
        if (count($duplicate_files) > 0) {
            foreach (array_keys($duplicate_files) as $i) {
                $tplfile_handler->delete($duplicate_files[$i]);
            }
        }
    }
    $sql = 'SHOW INDEX FROM ' . $xoopsDB->prefix('tplfile') . " WHERE KEY_NAME = 'tpl_refid_module_set_file_type'";
    if (!($result = $xoopsDB->queryF($sql))) {
        xoops_error($this->db->error() . '<br>' . $sql);
        return false;
    }
    $ret = array();
    while (false !== ($myrow = $xoopsDB->fetchArray($result))) {
        $ret[] = $myrow;
    }
    if (!empty($ret)) {
        $module->setErrors("'tpl_refid_module_set_file_type' unique index is exist. Note: check 'tplfile' table to be sure this index is UNIQUE because XOOPS CORE need it.");
        return true;
    }
    $sql = 'ALTER TABLE ' . $xoopsDB->prefix('tplfile') . ' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )';
    if (!($result = $xoopsDB->queryF($sql))) {
        xoops_error($xoopsDB->error() . '<br>' . $sql);
        $module->setErrors("'tpl_refid_module_set_file_type' unique index is not added to 'tplfile' table. Warning: do not use XOOPS until you add this unique index.");
        return false;
    }
    return true;
}
开发者ID:ggoffy,项目名称:wgteams,代码行数:43,代码来源:update.php


示例9: update_block

function update_block($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bcachetime, $bmodule, $options = array(), $bgroups = array())
{
    global $xoopsConfig;
    if (empty($bmodule)) {
        xoops_cp_header();
        xoops_error(sprintf(_AM_NOTSELNG, _AM_VISIBLEIN));
        xoops_cp_footer();
        exit;
    }
    $myblock = new XoopsBlock($bid);
    $myblock->setVar('side', $bside);
    $myblock->setVar('weight', $bweight);
    $myblock->setVar('visible', $bvisible);
    $myblock->setVar('title', $btitle);
    $myblock->setVar('content', $bcontent);
    $myblock->setVar('bcachetime', $bcachetime);
    if (isset($options)) {
        $options_count = count($options);
        if ($options_count > 0) {
            //Convert array values to comma-separated
            for ($i = 0; $i < $options_count; $i++) {
                if (is_array($options[$i])) {
                    $options[$i] = implode(',', $options[$i]);
                }
            }
            $options = implode('|', $options);
            $myblock->setVar('options', $options);
        }
    }
    if ($myblock->isCustom()) {
        switch ($bctype) {
            case 'H':
                $name = _AM_CUSTOMHTML;
                break;
            case 'P':
                $name = _AM_CUSTOMPHP;
                break;
            case 'S':
                $name = _AM_CUSTOMSMILE;
                break;
            default:
                $name = _AM_CUSTOMNOSMILE;
                break;
        }
        $myblock->setVar('name', $name);
        $myblock->setVar('c_type', $bctype);
    } else {
        $myblock->setVar('c_type', 'H');
    }
    $msg = _AM_DBUPDATED;
    if ($myblock->store() != false) {
        $db =& Database::getInstance();
        $sql = sprintf("DELETE FROM %s WHERE block_id = %u", $db->prefix('block_module_link'), $bid);
        $db->query($sql);
        foreach ($bmodule as $bmid) {
            $sql = sprintf("INSERT INTO %s (block_id, module_id) VALUES (%u, %d)", $db->prefix('block_module_link'), $bid, intval($bmid));
            $db->query($sql);
        }
        include_once XOOPS_ROOT_PATH . '/class/template.php';
        $xoopsTpl = new XoopsTpl();
        $xoopsTpl->xoops_setCaching(2);
        if ($myblock->getVar('template') != '') {
            if ($xoopsTpl->is_cached('db:' . $myblock->getVar('template'), 'blk_' . $myblock->getVar('bid'))) {
                if (!$xoopsTpl->clear_cache('db:' . $myblock->getVar('template'), 'blk_' . $myblock->getVar('bid'))) {
                    $msg = 'Unable to clear cache for block ID ' . $bid;
                }
            }
        } else {
            if ($xoopsTpl->is_cached('db:system_dummy.html', 'blk_' . $bid)) {
                if (!$xoopsTpl->clear_cache('db:system_dummy.html', 'blk_' . $bid)) {
                    $msg = 'Unable to clear cache for block ID ' . $bid;
                }
            }
        }
        $groupperm_handler =& xoops_gethandler('groupperm');
        $groups_with_access =& $groupperm_handler->getGroupIds("block_read", $bid);
        $removed_groups = array_diff($groups_with_access, $bgroups);
        if (count($removed_groups) > 0) {
            foreach ($removed_groups as $groupid) {
                $criteria = new CriteriaCompo(new Criteria('gperm_name', 'block_read'));
                $criteria->add(new Criteria('gperm_groupid', $groupid));
                $criteria->add(new Criteria('gperm_itemid', $bid));
                $criteria->add(new Criteria('gperm_modid', 1));
                $perm = $groupperm_handler->getObjects($criteria);
                if (isset($perm[0]) && is_object($perm[0])) {
                    $groupperm_handler->delete($perm[0]);
                }
            }
        }
        $new_groups = array_diff($bgroups, $groups_with_access);
        if (count($new_groups) > 0) {
            foreach ($new_groups as $groupid) {
                $groupperm_handler->addRight("block_read", $bid, $groupid);
            }
        }
    } else {
        $msg = 'Failed update of block. ID:' . $bid;
    }
    redirect_header('admin.php?fct=blocksadmin&amp;t=' . time(), 1, $msg);
    exit;
//.........这里部分代码省略.........
开发者ID:gauravsaxena21,项目名称:simantz,代码行数:101,代码来源:blocksadmin.php


示例10: xoops_gethandler

                        $comment_url .= $extra_params;
                    }
                    $comment_url .= $com_config['itemName'];
                }
                $comment_tags['X_COMMENT_URL'] = XOOPS_URL . '/modules/' . $not_module->getVar('dirname') . '/' . $comment_url . '=' . $com_itemid . '&amp;com_id=' . $newcid . '&amp;com_rootid=' . $com_rootid . '&amp;com_mode=' . $com_mode . '&amp;com_order=' . $com_order . '#comment' . $newcid;
                $notification_handler =& xoops_gethandler('notification');
                $notification_handler->triggerEvent($not_category, $not_itemid, $not_event, $comment_tags, false, $not_modid);
            }
            if (!isset($comment_post_results)) {
                // if the comment is active, redirect to posted comment
                if ($comment->getVar('com_status') == XOOPS_COMMENT_ACTIVE) {
                    redirect_header($redirect_page . '=' . $com_itemid . '&amp;com_id=' . $newcid . '&amp;com_rootid=' . $com_rootid . '&amp;com_mode=' . $com_mode . '&amp;com_order=' . $com_order . '#comment' . $newcid, 2, _CM_THANKSPOST);
                } else {
                    // not active, so redirect to top comment page
                    redirect_header($redirect_page . '=' . $com_itemid . '&amp;com_mode=' . $com_mode . '&amp;com_order=' . $com_order . '#comment' . $newcid, 2, _CM_THANKSPOST);
                }
            }
        } else {
            if (!isset($purge_comment_post_results)) {
                include XOOPS_ROOT_PATH . '/header.php';
                xoops_error($comment->getHtmlErrors());
                include XOOPS_ROOT_PATH . '/footer.php';
            } else {
                $comment_post_results = $comment->getErrors();
            }
        }
        break;
    default:
        redirect_header(XOOPS_URL . '/', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
        break;
}
开发者ID:BackupTheBerlios,项目名称:soopa,代码行数:31,代码来源:comment_post.php


示例11: xoops_cp_header

        }
        if ($imagecategory->getVar('imgcat_type') != 'C') {
            xoops_cp_header();
            xoops_error(_MD_SCATDELNG);
            xoops_cp_footer();
            exit;
        }
        $image_handler =& xoops_gethandler('image');
        $images =& $image_handler->getObjects(new Criteria('imgcat_id', $imgcat_id), true, false);
        $errors = array();
        foreach (array_keys($images) as $i) {
            if (!$image_handler->delete($images[$i])) {
                $errors[] = sprintf(_MD_FAILDEL, $i);
            } else {
                if (file_exists(XOOPS_UPLOAD_PATH . '/' . $images[$i]->getVar('image_name')) && !unlink(XOOPS_UPLOAD_PATH . '/' . $images[$i]->getVar('image_name'))) {
                    $errors[] = sprintf(_MD_FAILUNLINK, $i);
                }
            }
        }
        if (!$imgcat_handler->delete($imagecategory)) {
            $errors[] = sprintf(_MD_FAILDELCAT, $imagecategory->getVar('imgcat_name'));
        }
        if (count($errors) > 0) {
            xoops_cp_header();
            xoops_error($errors);
            xoops_cp_footer();
            exit;
        }
        redirect_header('admin.php?fct=images', 2, _MD_AM_DBUPDATED);
    }
}
开发者ID:BackupTheBerlios,项目名称:soopa,代码行数:31,代码来源:main.php


示例12: redirect_header

     redirect_header('admin.php?fct=avatars', 1, 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
 }
 $avatar_id = system_CleanVars($_POST, 'avatar_id', 0, 'int');
 if ($avatar_id <= 0) {
     redirect_header('admin.php?fct=avatars', 1, _AM_SYSTEM_DBERROR);
 }
 $avt_handler = xoops_gethandler('avatar');
 $avatar =& $avt_handler->get($avatar_id);
 if (!is_object($avatar)) {
     redirect_header('admin.php?fct=avatars', 1, _AM_SYSTEM_DBERROR);
 }
 if (!$avt_handler->delete($avatar)) {
     // Call Header
     xoops_cp_header();
     // Display errors
     xoops_error(sprintf(_AM_SYSTEM_AVATAR_FAILDEL, $avatar->getVar('avatar_id')));
     // Call Footer
     xoops_cp_footer();
     exit;
 }
 $file = $avatar->getVar('avatar_file');
 // Delete file
 @unlink(XOOPS_UPLOAD_PATH . '/' . $file);
 // Update member profil
 if (isset($user_id) && $avatar->getVar('avatar_type') == 'C') {
     $xoopsDB->query("UPDATE " . $xoopsDB->prefix('users') . " SET user_avatar='blank.gif' WHERE uid=" . intval($user_id));
 } else {
     $xoopsDB->query("UPDATE " . $xoopsDB->prefix('users') . " SET user_avatar='blank.gif' WHERE user_avatar='" . $file . "'");
 }
 redirect_header('admin.php?fct=avatars', 2, _AM_SYSTEM_DBUPDATED);
 break;
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php


示例13: redirect_header

     redirect_header('admin.php?fct=groups', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
 }
 $system_catids = system_CleanVars($_POST, 'system_catids', array(), 'array');
 $admin_mids = system_CleanVars($_POST, 'admin_mids', array(), 'array');
 $read_mids = system_CleanVars($_POST, 'read_mids', array(), 'array');
 $read_bids = system_CleanVars($_POST, 'read_bids', array(), 'array');
 $member_handler =& xoops_gethandler('member');
 $group =& $member_handler->createGroup();
 $group->setVar('name', $_POST["name"]);
 $group->setVar('description', $_POST["desc"]);
 if (count($system_catids) > 0) {
     $group->setVar('group_type', 'Admin');
 }
 if (!$member_handler->insertGroup($group)) {
     xoops_cp_header();
     xoops_error($group->getHtmlErrors());
     xoops_cp_footer();
 } else {
     $groupid = $group->getVar('groupid');
     $gperm_handler =& xoops_gethandler('groupperm');
     if (count($system_catids) > 0) {
         array_push($admin_mids, 1);
         foreach ($system_catids as $s_cid) {
             $sysperm =& $gperm_handler->create();
             $sysperm->setVar('gperm_groupid', $groupid);
             $sysperm->setVar('gperm_itemid', $s_cid);
             $sysperm->setVar('gperm_name', 'system_admin');
             $sysperm->setVar('gperm_modid', 1);
             $gperm_handler->insert($sysperm);
         }
     }
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:main.php


示例14: Criteria

                             $groups_failed[] = $group;
                         }
                     }
                     if (!empty($groups_failed)) {
                         $group_names = $member_handler->getGroupList(new Criteria('groupid', "(" . implode(", ", $groups_failed) . ")", 'IN'));
                         $adduser_errormsg = sprintf(_AM_SYSTEM_USERS_CNRNU2, implode(", ", $group_names));
                     } else {
                         xoops_load("XoopsUserUtility");
                         XoopsUserUtility::sendWelcome($newuser);
                         redirect_header("admin.php?fct=users", 1, _AM_SYSTEM_DBUPDATED);
                         exit;
                     }
                 }
             }
         }
         xoops_error($adduser_errormsg);
     }
     break;
     // Activ member
 // Activ member
 case 'users_active':
     if (isset($_REQUEST["uid"])) {
         $obj =& $member_handler->getUser($uid);
         //echo $_REQUEST["uid"];
         //print_r($obj);
     }
     $obj->setVar("level", 1);
     if ($member_handler->insertUser($obj, true)) {
         redirect_header("admin.php?fct=users", 1, _AM_SYSTEM_DBUPDATED);
     }
     echo $obj->getHtmlErrors();
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php


示例15: dirname

 * @version         $Id$
 */
include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'mainfile.php';
xoops_header(false);
$denied = true;
if (!empty($_REQUEST['token'])) {
    if ($GLOBALS['xoopsSecurity']->validateToken($_REQUEST['token'], false)) {
        $denied = false;
    }
} else {
    if (is_object($xoopsUser) && $xoopsUser->isAdmin()) {
        $denied = false;
    }
}
if ($denied) {
    xoops_error(_NOPERM);
    exit;
}
$token = isset($_REQUEST['token']) ? $_REQUEST['token'] : '';
$name_form = 'memberslist';
$name_userid = 'uid' . (!empty($_REQUEST['multiple']) ? '[]' : '');
$name_username = 'uname' . (!empty($_REQUEST['multiple']) ? '[]' : '');
xoops_loadLanguage('findusers');
/**
 * Enter description here...
 *
 */
class XoopsRank extends XoopsObject
{
    /**
     * Construct
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:findusers.php


示例16: mktime

	// Published end date
	if( isset($_POST['auto']) && is_array($_POST['autoexp']) ){
		$autoexp = mktime( $_POST['autoexp']['hour'], $_POST['autoexp']['min'], @$_POST['autoexp']['sec'], $_POST['autoexp']['month'], $_POST['autoexp']['day'], $_POST['autoexp']['year'] );
	} elseif ( $story->getVar('expired') > 0 ) {
		$autoexp = $story->getVar('expired');
		$story->setVar('autoexpdate', 1);
	} else {
		$autoexp = time();
	}

	$xoopsOption['template_main'] = "{$mydirname}_submit.html";
//	require_once sprintf('%s/modules/legacy/language/%s/main.php' ,XOOPS_ROOT_PATH, $xoopsConfig['language']);

	require_once XOOPS_ROOT_PATH.'/header.php';
	if( !empty($errors) ) xoops_error($errors);
	// require dirname(dirname(__FILE__)).'/include/storyform.inc.php';
	require dirname(dirname(__FILE__)).'/include/storyform_templatevars.inc.php';
	$xoopsTpl->assign( 'xoops_breadcrumbs' , array(
		array( 'name' => $xoopsModule->getVar('name') , 'url' => XOOPS_URL.'/modules/'.$mydirname.'/' ) ,
		array( 'name' => _MD_SUBMITNEWS ) ,
	) ) ; // GIJ
	$xoopsTpl->assign( 'mod_config' , $xoopsModuleConfig ) ;

	require_once XOOPS_ROOT_PATH.'/footer.php';
}

if( $op == 'delete' ){
	if(empty($storyid)){
		die(_NOPERM);
		exit();
开发者ID:nunoluciano,项目名称:uxcl,代码行数:30,代码来源:submit.php


示例17: intval

            $smile_display = intval($_POST['smile_display']) > 0 ? 1 : 0;
            $newid = $db->genId($db->prefix('smilies') . "_id_seq");
            $sql = sprintf("INSERT INTO %s (id, code, smile_url, emotion, display) VALUES (%d, %s, %s, %s, %d)", $db->prefix('smiles'), $newid, $db->quoteString($smile_code), $db->quoteString($smile_url), $db->quoteString($smile_desc), $smile_display);
            if (!$db->query($sql)) {
                $err = 'Failed storing smiley data into the database';
            }
        }
    } else {
        $err = $uploader->getErrors();
    }
    if (!isset($err)) {
        unset($_SESSION['XoopsEmotions']);
        unset($_SESSION['XoopsEmotions_expire']);
        redirect_header($current_file, 2, _AM_DBUPDATED);
    } else {
        redirect_header($current_file, 3, xoops_error($err));
    }
}
$time = time();
if (!isset($_SESSION['XoopsEmotions']) && @$_SESSION['XoopsEmotions_expire'] < $time) {
    $_SESSION['XoopsEmotions'] = $myts->getSmileys();
    $_SESSION['XoopsEmotions_expire'] = $time + 300;
}
//xoops_header(false);
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE . '">';
echo '<head>';
echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />';
echo '<meta http-equiv="content-language" content="' . _LANGCODE . '" />';
?>
<head>
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:xoopsemotions.php


示例18: xoops_error

    }
    if (!is_writable(XOOPS_UPLOAD_PATH)) {
        xoops_error(sprintf(_AD_WARNINGNOTWRITEABLE, XOOPS_UPLOAD_PATH));
        echo '<br />';
    }
    if (!is_writable(XOOPS_COMPILE_PATH)) {
        xoops_error(sprintf(_AD_WARNINGNOTWRITEABLE, XOOPS_COMPILE_PATH));
        echo '<br />';
    }
    //www fits inside www_private, lets add a trailing slash to make sure it doesn't
    if (strpos(XOOPS_PATH . '/', XOOPS_ROOT_PATH . '/') !== false || strpos(XOOPS_PATH . '/', $_SERVER['DOCUMENT_ROOT'] . '/') !== false) {
        xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDE, XOOPS_PATH));
        echo '<br />';
    }
    if (strpos(XOOPS_VAR_PATH . '/', XOOPS_ROOT_PATH . '/') !== false || strpos(XOOPS_VAR_PATH . '/', $_SERVER['DOCUMENT_ROOT'] . '/') !== false) {
        xoops_error(sprintf(_AD_WARNINGXOOPSLIBINSIDE, XOOPS_VAR_PATH));
        echo '<br />';
    }
}
if (!empty($_GET['xoopsorgnews'])) {
    // Multiple feeds
    $myts =& MyTextSanitizer::getInstance();
    $rssurl = array();
    $rssurl[] = 'http://sourceforge.net/export/rss2_projnews.php?group_id=41586&rss_fulltext=1';
    $rssurl[] = 'http://www.xoops.org/backend.php';
    if ($URLs = (include $GLOBALS['xoops']->path('language/' . xoops_getConfigOption('language') . '/backend.php'))) {
        $rssurl = array_unique(array_merge($rssurl, $URLs));
    }
    $rssfile = 'adminnews-' . xoops_getConfigOption('language');
    xoops_load('XoopsCache');
    $items = array();
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:admin.php


示例19: xoops_trim

         $isreply = 1;
     }
     $forumpost->setIp($HTTP_SERVER_VARS['REMOTE_ADDR']);
     $forumpost->setUid($uid);
 }
 $subject = xoops_trim($HTTP_POST_VARS['subject']);
 $subject = $subject == '' ? _NOTITLE : $subject;
 $forumpost->setSubject($subject);
 $forumpost->setText($HTTP_POST_VARS['message']);
 $forumpost->setNohtml($HTTP_POST_VARS['nohtml']);
 $forumpost->setNosmiley($HTTP_POST_VARS['nosmiley']);
 $forumpost->setIcon($HTTP_POST_VARS['icon']);
 $forumpost->setAttachsig($HTTP_POST_VARS['attachsig']);
 if (!($postid = $forumpost->store())) {
     include_once XOOPS_ROOT_PATH . '/header.php';
     xoops_error('Could not insert forum post');
     include_once XOOPS_ROOT_PATH . '/footer.php';
     exit;
 }
 if (is_object($xoopsUser) && !empty($isnew)) {
     $xoopsUser->incrementPost();
 }
 // RMV-NOTIFY
 // Define tags for notification message
 $tags = array();
 $tags['THREAD_NAME'] = $HTTP_POST_VARS['subject'];
 $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id=' . $postid . '&topic_id=' . $forumpost->topic();
 $tags['POST_URL'] = $tags['THREAD_URL'] . '#forumpost' . $postid;
 include_once 'include/notification.inc.php';
 $forum_info = newbb_notify_iteminfo('forum', $forum);
 $tags['FORUM_NAME'] = $forum_info['name'];
开发者ID:amjadtbssm,项目名称:website,代码行数:31,代码来源:post.php


示例20: time

            }
        }
        $user->setVar('last_login', time());
        if (!$member_handler->insertUser($user)) {
        }
        $_SESSION = array();
        $_SESSION['xoopsUserId'] = $user->getVar('uid');
        $_SESSION['xoopsUserGroups'] = $user->getGroups();
        if (!empty($xoopsConfig['use_ssl'])) {
            xoops_confirm(array($xoopsConfig['sslpost_name'] => session_id()), XOOPS_URL . '/misc.php?action=showpopups&amp;type=ssllogin', _US_PRESSLOGIN, _LOGIN);
        } else {
            echo sprintf(_US_LOGGINGU, $user->getVar('uname'));
            echo '<div style="text-align:center;"><input value="' . _CLOSE . '" type="button" onclick="document.window.opener.location.reload();document.window.close();" /></div>';
        }
    } else {
        xoops_error(_US_INCORRECTLOGIN . '<br /><a href="login.php">' . _BACK . '</a>');
    }
}
if ($op == 'login') {
    echo '
    <div style="text-align: center; padding: 5; margin: 0">
    <form action="login.php" method="post">
      <table class="outer" width="95%">
        <tr>
          <td class="head">' . _USERNAME . '</td>
          <td class="even"><input type="text" name="username" value="" /></td>
        </tr>
        <tr>
          <td class="head">' . _PASSWORD . '</td>
          <td class="even"><input type="password" name="userpass" value="" /></td>
        </tr>
开发者ID:BackupTheBerlios,项目名称:xoops4-svn,代码行数:31,代码来源:login.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP xoops_footer函数代码示例发布时间:2022-05-23
下一篇:
PHP xoops_cp_location函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap