1
deepu
Admin login problem!
  • 2005/11/4 12:20

  • deepu

  • Just popping in

  • Posts: 5

  • Since: 2005/11/4


Hai guys, i have some problem with my admin account.When i trying to login it give me a message like this
"Thank you for logging in, admin.

If the page does not automatically reload, please click here" & redirect to login error page.whatz prob??
So plzz help me guys

2
davidl2
Re: Admin login problem!
  • 2005/11/4 12:23

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Which version of XOOPS are you using?

3
deepu
Re: Admin login problem!
  • 2005/11/4 12:51

  • deepu

  • Just popping in

  • Posts: 5

  • Since: 2005/11/4


am using XOOPS 2.0.13.1& the last thing i modified was a xoop-statistics module(with visitor & refferer counnters) installation
& here is my theme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- 
RMVadded module header -->
<{
$xoops_module_header}>
<
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script>
</
head>
<
body>
  <
table cellspacing="0">
    <
tr id="header">
      <
td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" /></a></td>
      <
td id="headerbanner"><{$xoops_banner}></td>
    </
tr>
    <
tr>
      <
td id="headerbar" colspan="2">&nbsp;</td>
    </
tr>
  </
table>

  <
table cellspacing="0">
    <
tr>
      <
td id="leftcolumn">
        <!-- 
Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="default/theme_blockleft.html"}>
        <{/foreach}>
        <!-- 
End left blocks loop -->

      </
td>

      <
td id="centercolumn">

        <!-- 
Display center blocks if any -->
        <{if 
$xoops_showcblock == 1}>

        <
table cellspacing="0">
          <
tr>
            <
td id="centerCcolumn" colspan="2">

            <!-- 
Start center-center blocks loop -->
            <{foreach 
item=block from=$xoops_ccblocks}>
              <{include 
file="default/theme_blockcenter_c.html"}>
            <{/foreach}>
            <!-- 
End center-center blocks loop -->

            </
td>
          </
tr>
          <
tr>
            <
td id="centerLcolumn">

            <!-- 
Start center-left blocks loop -->
              <{foreach 
item=block from=$xoops_clblocks}>
                <{include 
file="default/theme_blockcenter_l.html"}>
              <{/foreach}>
            <!-- 
End center-left blocks loop -->

            </
td><td id="centerRcolumn">

            <!-- 
Start center-right blocks loop -->
              <{foreach 
item=block from=$xoops_crblocks}>
                <{include 
file="default/theme_blockcenter_r.html"}>
              <{/foreach}>
            <!-- 
End center-right blocks loop -->

            </
td>
          </
tr>
        </
table>

        <{/if}>
        <!-- 
End display center blocks -->

        <
div id="content">
          <{
$xoops_contents}>
        </
div>
      </
td>

      <{if 
$xoops_showrblock == 1}>

      <
td id="rightcolumn">
        <!-- 
Start right blocks loop -->
        <{foreach 
item=block from=$xoops_rblocks}>
          <{include 
file="default/theme_blockright.html"}>
        <{/foreach}>
        <!-- 
End right blocks loop -->
      </
td>

      <{/if}>

    </
tr>
  </
table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a></td>
    </
tr>
  </
table>
</
body>
</
html>




header.php
<?php
// $Id: header.php,v 1.44.6.1 2005/08/15 15:04:58 skalpa Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  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.                                      //
//                                                                           //
//  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.  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 //
//  ------------------------------------------------------------------------ //
if (!defined("XOOPS_ROOT_PATH")) {
    die(
"XOOPS root path not defined");
}
include_once 
XOOPS_ROOT_PATH.'/class/xoopsblock.php';
// for stats by Vismaya!
include_once XOOPS_ROOT_PATH.'/modules/statistics/include/hitcounter.php'
if (
$xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/theme.php')) {
    
// the old way..
    
$xoopsOption['theme_use_smarty'] = 0;
    if (
file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-'.$xoopsConfig['language'].'.php')) {
        include 
XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-'.$xoopsConfig['language'].'.php';
    } elseif (
file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-english.php')) {
        include 
XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-english.php';
    }
    
$config_handler =& xoops_gethandler('config');
    
$xoopsConfigMetaFooter =& $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER);
    
xoops_header(false);
    include 
XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/theme.php';
    
$xoopsOption['show_rblock'] = (!empty($xoopsOption['show_rblock'])) ? $xoopsOption['show_rblock'] : 0;
    
// include Smarty template engine and initialize it
    
require_once XOOPS_ROOT_PATH.'/class/template.php';
    
$xoopsTpl = new XoopsTpl();
    if (
$xoopsConfig['debug_mode'] == 3) {
        
$xoopsTpl->xoops_setDebugging(true);
    }
    if (
$xoopsUser != '') {
        
$xoopsTpl->assign(array('xoops_isuser' => true'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));
    }
    
$xoopsTpl->assign('xoops_requesturi'htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES));
    include 
XOOPS_ROOT_PATH.'/include/old_functions.php';

    if (
$xoopsOption['show_cblock'] || (isset($xoopsModule) && preg_match("/index.php$/i"xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname'))) {
        
$xoopsOption['show_rblock'] = $xoopsOption['show_cblock'] = 1;
    }
    
themeheader($xoopsOption['show_rblock']);
    if (
$xoopsOption['show_cblock']) make_cblock();  //create center block
} else {
    
$xoopsOption['theme_use_smarty'] = 1;
    
// include Smarty template engine and initialize it
    
require_once XOOPS_ROOT_PATH.'/class/template.php';
    
$xoopsTpl = new XoopsTpl();
    
$xoopsTpl->xoops_setCaching(2);
    if (
$xoopsConfig['debug_mode'] == 3) {
        
$xoopsTpl->xoops_setDebugging(true);
    }
    
$xoopsTpl->assign(array('xoops_theme' => $xoopsConfig['theme_set'], 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/''xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']), 'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
    
// Meta tags
    
$config_handler =& xoops_gethandler('config');
    
$criteria = new CriteriaCompo(new Criteria('conf_modid'0));
    
$criteria->add(new Criteria('conf_catid'XOOPS_CONF_METAFOOTER));
    
$config =& $config_handler->getConfigs($criteriatrue);
    foreach (
array_keys($config) as $i) {
        
// prefix each tag with 'xoops_'
        
$xoopsTpl->assign('xoops_'.$config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
    }
    
//unset($config);
    // show banner?
    
if ($xoopsConfig['banners'] == 1) {
        
$xoopsTpl->assign('xoops_banner'xoops_getbanner());
    } else {
        
$xoopsTpl->assign('xoops_banner''&nbsp;');
    }
    
// Weird, but need extra <script> tags for 2.0.x themes
    
$xoopsTpl->assign('xoops_js''//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript"><!--');
    
// get all blocks and assign to smarty
    
$xoopsblock = new XoopsBlock();
    
$block_arr = array();
    if (
$xoopsUser != '') {
        
$xoopsTpl->assign(array('xoops_isuser' => true'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));
        
$groups $xoopsUser->getGroups();
    } else {
        
$xoopsTpl->assign(array('xoops_isuser' => false'xoops_isadmin' => false));
        
$groups XOOPS_GROUP_ANONYMOUS;
    }
    
$toppage false;
    if (isset(
$xoopsModule) && is_object($xoopsModule)) {
        
// set page title
        
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name'));
        
$xoopsTpl->assign('xoops_dirname'$xoopsModule->getVar('dirname'));
        
$moduleid $xoopsModule->getVar('mid');
        if (
preg_match("/index.php$/i"xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
            
$toppage true;
        }
    } else {
        
$xoopsTpl->assign('xoops_pagetitle'htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES));
        
$xoopsTpl->assign('xoops_dirname'"system");
        
$moduleid 0;
        if (!empty(
$xoopsOption['show_cblock'])) {
            
$toppage true;
        }
    }
    
// Get blocks
    
$block_arr =& $xoopsblock->getAllByGroupModule($groups$moduleid$toppageXOOPS_BLOCK_VISIBLE);

    foreach (
array_keys($block_arr) as $i) {
        
$bcachetime $block_arr[$i]->getVar('bcachetime');
        if (empty(
$bcachetime)) {
            
$xoopsTpl->xoops_setCaching(0);
        } else {
            
$xoopsTpl->xoops_setCaching(2);
            
$xoopsTpl->xoops_setCacheTime($bcachetime);
        }
        
$btpl $block_arr[$i]->getVar('template') != '' $block_arr[$i]->getVar('template') : "system_block_dummy.html";

        if (empty(
$bcachetime) || !$xoopsTpl->is_cached('db:'.$btpl'blk_'.$block_arr[$i]->getVar('bid'))) {
            
$xoopsLogger->addBlock($block_arr[$i]->getVar('name'));
            
$bresult =& $block_arr[$i]->buildBlock();
            if (!
$bresult) {
                continue;
            }
            
$xoopsTpl->assign_by_ref('block'$bresult);
            
$bcontent =& $xoopsTpl->fetch('db:'.$btpl'blk_'.$block_arr[$i]->getVar('bid'));
            
$xoopsTpl->clear_assign('block');
        } else {
            
$xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true$bcachetime);
            
$bcontent =& $xoopsTpl->fetch('db:'.$btpl'blk_'.$block_arr[$i]->getVar('bid'));
        }

        switch (
$block_arr[$i]->getVar('side')) {
        case 
XOOPS_SIDEBLOCK_LEFT:
            if (!isset(
$show_lblock)) {
                
$xoopsTpl->assign('xoops_showlblock'1);
                
$show_lblock 1;
            }
            
$xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
            break;
        case 
XOOPS_CENTERBLOCK_LEFT:
            if (!isset(
$show_cblock)) {
                
$xoopsTpl->assign('xoops_showcblock'1);
                
$show_cblock 1;
            }
            
$xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
            break;
        case 
XOOPS_CENTERBLOCK_RIGHT:
            if (!isset(
$show_cblock)) {
                
$xoopsTpl->assign('xoops_showcblock'1);
                
$show_cblock 1;
            }
            
$xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
            break;
        case 
XOOPS_CENTERBLOCK_CENTER:
            if (!isset(
$show_cblock)) {
                
$xoopsTpl->assign('xoops_showcblock'1);
                
$show_cblock 1;
            }
            
$xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
            break;
        case 
XOOPS_SIDEBLOCK_RIGHT:
            if (!isset(
$show_rblock)) {
                
$xoopsTpl->assign('xoops_showrblock'1);
                
$show_rblock 1;
            }
            
$xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
            break;
        }
        unset(
$bcontent);
    }
    
//unset($block_arr);
    
if (!isset($show_rblock)) {
        
$xoopsTpl->assign('xoops_showrblock'0);
    }
    if (!isset(
$show_cblock)) {
        
$xoopsTpl->assign('xoops_showcblock'0);
    }
    if (!isset(
$show_lblock)) {
        
$xoopsTpl->assign('xoops_showlblock'0);
    }
    if (
xoops_getenv('REQUEST_METHOD') != 'POST' && !empty($xoopsModule) && !empty($xoopsConfig['module_cache'][$xoopsModule->getVar('mid')])) {
        
$xoopsTpl->xoops_setCaching(2);
        
$xoopsTpl->xoops_setCacheTime($xoopsConfig['module_cache'][$xoopsModule->getVar('mid')]);
        if (!isset(
$xoopsOption['template_main'])) {
            
$xoopsCachedTemplate 'db:system_dummy.html';
        } else {
            
$xoopsCachedTemplate 'db:'.$xoopsOption['template_main'];
        }
        
// generate safe cache Id
        
$xoopsCachedTemplateId 'mod_'.$xoopsModule->getVar('dirname').'|'.md5(str_replace(XOOPS_URL''$GLOBALS['xoopsRequestUri']));
        if (
$xoopsTpl->is_cached($xoopsCachedTemplate$xoopsCachedTemplateId)) {
            
$xoopsLogger->addExtra($xoopsCachedTemplatesprintf('Cached (regenerates every %d seconds)'$xoopsConfig['module_cache'][$xoopsModule->getVar('mid')]));
            
$xoopsTpl->assign('xoops_contents'$xoopsTpl->fetch($xoopsCachedTemplate$xoopsCachedTemplateId));
            
$xoopsTpl->xoops_setCaching(0);
            if (!
headers_sent()) {
                
header ('Content-Type:text/html; charset='._CHARSET);
            }
            
$xoopsTpl->display($xoopsConfig['theme_set'].'/theme.html');
            if (
$xoopsConfig['debug_mode'] == && $xoopsUserIsAdmin) {
                echo 
'<script type="text/javascript">
                <!--//
                debug_window = openWithSelfMain("", "popup", 680, 450, true);
                debug_window.document.clear();
                '
;
                
$content '<html><head><meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" /><meta http-equiv="content-language" content="'._LANGCODE.'" /><title>'.$xoopsConfig['sitename'].'</title><link rel="stylesheet" type="text/css" media="all" href="'.getcss($xoopsConfig['theme_set']).'" /></head><body>'.$xoopsLogger->dumpAll().'<div style="text-align:center;"><input class="formButton" value="'._CLOSE.'" type="button" onclick="javascript:window.close();" /></div></body></html>';
                
$lines preg_split("/(rn|r|n)( *)/"$content);
                foreach (
$lines as $line) {
                    echo 
'debug_window.document.writeln("'.str_replace('"''"'$line).'");';
                }
                echo 
'
                debug_window.focus();
                debug_window.document.close();
                //-->
                </script>'
;
            }
            exit();
        }
    } else {
        
$xoopsTpl->xoops_setCaching(0);
    }
    if (!isset(
$xoopsOption['template_main'])) {
        
// new themes using Smarty does not have old functions that are required in old modules, so include them now
        
include XOOPS_ROOT_PATH.'/include/old_theme_functions.php';
        
// need this also
        
$xoopsTheme['thename'] = $xoopsConfig['theme_set'];
        
ob_start();
    }
}
?>

Login

Who's Online

131 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits