11
trabis
Re: @Trabis: Defacer
  • 2009/8/20 16:15

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Show me your footer.php file, please.

12
tzvook
Re: @Trabis: Defacer
  • 2009/8/20 16:19

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hey T .... quick respond

here it is:
<?php
// $Id: footer.php 1471 2008-04-20 14:49:37Z phppp $
//  ------------------------------------------------------------------------ //
//                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 "/modules/defacer/include/beforefooter.php";


if ( !
defined("XOOPS_FOOTER_INCLUDED") ) {
    
define("XOOPS_FOOTER_INCLUDED",1);



    
$xoopsLogger->stopTime'Module display' );
    if (
$xoopsOption['theme_use_smarty'] == 0) {
        
// the old way
        
$footer htmlspecialchars$xoopsConfigMetaFooter['footer'] ) . '<br /><div style="text-align:center">Powered by XOOPS &copy; <a href="http://xoops.sourceforge.net/" rel="external">The XOOPS Project</a></div>';
        if (isset(
$xoopsOption['template_main'])) {
            
$xoopsTpl->xoops_setCaching(0);
            
$xoopsTpl->display('db:'.$xoopsOption['template_main']);
        }
        if (!isset(
$xoopsOption['show_rblock'])) {
            
$xoopsOption['show_rblock'] = 0;
        }
        
themefooter($xoopsOption['show_rblock'], $footer);
        
xoops_footer();
    } else {
        
// RMV-NOTIFY
        
include_once XOOPS_ROOT_PATH '/include/notification_select.php';

        if (!
headers_sent()) {
            
header('Content-Type:text/html; charset='._CHARSET);
            
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
            
//header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
            
header('Cache-Control: private, no-cache');
            
header('Pragma: no-cache');
        }
        
/*
        global $xoopsDB, $xoopsConfig;
        if ( !$xoopsConfig['theme_fromfile'] ) {
            session_write_close();
            $xoopsDB->close();
        }
        */
        //@internal: using global $xoTheme dereferences the variable in old versions, this does not
        
if ( !isset( $xoTheme ) )    $xoTheme =& $GLOBALS['xoTheme'];

        if ( isset( 
$xoopsOption['template_main'] ) && $xoopsOption['template_main'] != $xoTheme->contentTemplate ) {
            
trigger_error"xoopsOption[template_main] should be defined before including header.php"E_USER_WARNING );
            if ( 
false === strpos$xoopsOption['template_main'], ':' ) ) {
                
$xoTheme->contentTemplate 'db:' $xoopsOption['template_main'];
            } else {
                
$xoTheme->contentTemplate $xoopsOption['template_main'];
            }
        }
        
$xoTheme->render();
    }
    
$xoopsLogger->stopTime();
}
?>

13
trabis
Re: @Trabis: Defacer
  • 2009/8/20 16:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


ok, defacer only loads footer if it finds a matching page.

Did you create a page on admin side?
What are the settings for those pages?
Check module preferences, see if defacer is enabled.

14
tzvook
Re: @Trabis: Defacer
  • 2009/8/20 16:31

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Dfacer is enables (as was in default config)
I created a page - contact-us module (added the * ) then went to "themes" and gave it a different theme .... and it's not working

Should the "title" match the module title ?

15
trabis
Re: @Trabis: Defacer
  • 2009/8/20 16:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Seems a dead end. Try use index.php instead of *
Then go to contact-us/index.php and look at the timers again.

16
tzvook
Re: @Trabis: Defacer
  • 2009/8/20 19:27

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Sorry T
Xoops has kicked me by "commander protector" command .... just got home to a new IP ...
10x ... will try that soon ...

17
tzvook
Re: @Trabis: Defacer
  • 2009/8/20 19:51

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Nop - not working
Weird !!!
I'm with 2.3.3 on php 5.28, MySql 5.0.75 .. using XOOPS Hebrew version with almost no hacks ...


18
trabis
Re: @Trabis: Defacer
  • 2009/8/20 21:13

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


tzvook, see if you can get me ftp access to defacer.

19
lasco
Re: @Trabis: Defacer
  • 2009/8/21 4:27

  • lasco

  • Just popping in

  • Posts: 3

  • Since: 2008/12/13



before there was a folder /preload/ defacer.php with the file to put at the root of the site
this file is mandatory for the module work?
this may be the problem tzvook.

I just quickly test the module (on older version)
it works very well, thank you for this module trabi full of future

I just had a problem leaving the page select a special theme, this theme was on the other pages they dont return on defaut theme

i go test this last beta version

20
tzvook
Re: @Trabis: Defacer
  • 2009/8/21 13:22

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


10x lasco

/preload/ defacer.php ?
I have it @ root, but I think it's just for Icms users

Quote:
I just quickly test the module (on older version)
it works very well, thank you for this module trabi full of future


Yep - that's why I need it so badely ;-(

@ T
On it's way (PM) ... 10X

Login

Who's Online

225 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

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

Latest GitHub Commits