1

Topic: PunPortal 2.0

Visit the release topic over at PunRes to download it and find out more.

Link: http://www.punres.org/viewtopic.php?id=2622

Re: PunPortal 2.0

[HOWTO] - Post mod release announcement wink

Looking for a certain modification for your forum? Please take a look here before posting.

3 (edited by binczu 2007-09-30 18:22)

Re: PunPortal 2.0

pls help me

Fatal error: Cannot redeclare stripslashes_array() (previously declared in /home/boardh2o/public_html/include/common.php:64) in /home/boardh2o/public_html/include/common.php on line 64

Mu common.php

<?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB 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.

  PunBB 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

************************************************************************/

// Enable DEBUG mode by removing // from the following line
define('PUN_DEBUG', 1);

// This displays all executed queries in the page footer.
// DO NOT enable this in a production environment!
//define('PUN_SHOW_QUERIES', 1);

if (!defined('PUN_ROOT'))
    exit('The constant PUN_ROOT must be defined and point to a valid PunBB installation root directory.');


// Load the functions script
require PUN_ROOT.'include/functions.php';

// Reverse the effect of register_globals
if (@ini_get('register_globals'))
    unregister_globals();


@include PUN_ROOT.'config.php';

// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
    exit('The file \'config.php\' doesn\'t exist or is corrupt. Please run <a href="install.php">install.php</a> to install PunBB first.');


// Record the start time (will be used to calculate the generation time for the page)
list($usec, $sec) = explode(' ', microtime());
$pun_start = ((float)$usec + (float)$sec);

// Make sure PHP reports all errors except E_NOTICE. PunBB supports E_ALL, but a lot of scripts it may interact with, do not.
error_reporting(E_ALL ^ E_NOTICE);

// Turn off magic_quotes_runtime
set_magic_quotes_runtime(0);

// Strip slashes from GET/POST/COOKIE (if magic_quotes_gpc is enabled)
if (get_magic_quotes_gpc())
{
    function stripslashes_array($array)
    {
        return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
    }

    $_GET = stripslashes_array($_GET);
    $_POST = stripslashes_array($_POST);
    $_COOKIE = stripslashes_array($_COOKIE);
}

// Seed the random number generator
mt_srand((double)microtime()*1000000);

// If a cookie name is not specified in config.php, we use the default (punbb_cookie)
if (empty($cookie_name))
    $cookie_name = 'punbb_cookie';

// Define a few commonly used constants
define('PUN_UNVERIFIED', 32000);
define('PUN_ADMIN', 1);
define('PUN_MOD', 2);
define('PUN_GUEST', 3);
define('PUN_MEMBER', 4);


// Load DB abstraction layer and connect
require PUN_ROOT.'include/dblayer/common_db.php';

// Start a transaction
$db->start_transaction();

// Load cached config
@include PUN_ROOT.'cache/cache_config.php';
if (!defined('PUN_CONFIG_LOADED'))
{
    require PUN_ROOT.'include/cache.php';
    generate_config_cache();
    require PUN_ROOT.'cache/cache_config.php';
}

@include PUN_ROOT.'cache/cache_adsense_config.php';
    if (!defined('PUN_ADSENSE_CONFIG_LOADED'))
    {
        require_once PUN_ROOT.'include/cache.php';
        generate_adsense_config_cache();
        require PUN_ROOT.'cache/cache_adsense_config.php';
    }


// Enable output buffering
if (!defined('PUN_DISABLE_BUFFERING'))
{
    // For some very odd reason, "Norton Internet Security" unsets this
    $_SERVER['HTTP_ACCEPT_ENCODING'] = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : '';

    // Should we use gzip output compression?
    if ($pun_config['o_gzip'] && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false))
        ob_start();
    else
        ob_start();
}


// Check/update/set cookie and fetch user info
$pun_user = array();
check_cookie($pun_user);

// Attempt to load the common language file
@include PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
if (!isset($lang_common))
    exit('There is no valid language pack \''.pun_htmlspecialchars($pun_user['language']).'\' installed. Please reinstall a language of that name.');

// Check if we are to display a maintenance message
if ($pun_config['o_maintenance'] && $pun_user['g_id'] > PUN_ADMIN && !defined('PUN_TURN_OFF_MAINT'))
    maintenance_message();


// Load cached bans
@include PUN_ROOT.'cache/cache_bans.php';
if (!defined('PUN_BANS_LOADED'))
{
    require_once PUN_ROOT.'include/cache.php';
    generate_bans_cache();
    require PUN_ROOT.'cache/cache_bans.php';
}

// Check if current user is banned
check_bans();


// Update online list
update_users_online();

Some body help me? my forum don't work ;[

something wrong whit this

function stripslashes_array($array)

Re: PunPortal 2.0

Your include/common.php is being included twice for some reason.

Looking for a certain modification for your forum? Please take a look here before posting.

5 (edited by binczu 2007-09-30 21:17)

Re: PunPortal 2.0

now i have

http://i22.tinypic.com/15zju5d.jpg

i do something and now

http://i22.tinypic.com/1zggako.jpg

How remove this fuckin* pun portal and go on forum??

when i login i have this i can go on users online i can register
but whe i wont go on forum i have this ;/

Can someone help me?

Re: PunPortal 2.0

do you mean you want to rename it insted of punportal on the tab?

Sorry. Unactive due to personal life.

Re: PunPortal 2.0

yes and go on the forum
when i click on index and login i have this ;/

Re: PunPortal 2.0

how turn down this pun portal??

Re: PunPortal 2.0

Can some one add link to download this punportal mod? because in punres.org no more is this plugin...

10

Re: PunPortal 2.0

useless. you just try to make a new index.php page for your forum ,then named the original index.php to forums.php
make some adjust to files. so you could redesign your index page but not using a plugin