Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Help With Php Nuke....


3 replies to this topic

#1 swat

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 34 posts

Posted 14 August 2005 - 04:57 PM

Ok ive uploaded everything to server and to phpmyadmin im at the part where you gotta edit the config.php file i seem to my knowledge have everything right thats suppose to be edited but it seems to still have 1 error:

config.php:

$dbhost = "localhost";
$dbuname = "swat_mod";
$dbpass = "******";
$dbname = "swat_nuke01";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "7Ed+UratU+e9-eSwASW8s82MagUV*2";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";

/************************************************************************/
/* Database and System Configuration                        INFORMATION */
/*                                                                      */
/* $dbhost = "localhost";  */
/* $dbuname = "swat_mod"; */ 
/* $dbpass = "******";  */
/* $dbname = "swat_nuke01"; */
/* $prefix = "nuke"; */
/* $user_prefix = "nuke"; */
/* $dbtype:      Your Database Server type. Supported servers are:      */
/*               MySQL, mysql4, postgres, mssql, oracle, msaccess,      */
/*               db2 and mssql-odbc                                     */
/*               Be sure to write it exactly as above, case SeNsItIvE!  */
/* $sitekey:    Security Key. CHANGE it to whatever you want, as long   */
/*               as you want. Just don't use quotes.                    */
/* $gfx_chk:    Set the graphic security code on every login screen,    */
/*      You need to have GD extension installed:                        */
/*      0: No check                                                     */
/*      1: Administrators login only                                    */
/*      2: Users login only                                             */
/*      3: New users registration only                                  */
/*      4: Both, users login and new users registration only            */
/*      5: Administrators and users login only                          */
/*      6: Administrators and new users registration only               */
/*      7: Everywhere on all login options (Admins and Users)           */
/*      NOTE: If you aren't sure set this value to 0                    */
/* $subscription_url : If you manage subscriptions on your site, you    */
/*                    must write here the url of the subscription       */
/*                    information/renewal page. This will send by       */
/*                     email if set.                                    */
/* $admin_file : Administration panel filename. "admin" by default for  */
/*               "admin.php". To improve security please rename the file*/
/*               "admin.php" and change the $admin_file value to the new*/
/*                filename (without the extension .php)                 */
/*                                               

and im still getting this error:

Quote

Fatal error: Call to undefined function: themeheader() in /home/swat/public_html/header.php on line 74

my msn is Impu1sex@hotmail.com if anyone can help me out here i would greatly appreciate it.

Thank You,

Hope im not postin something i shouldnt!

Notice from cmatcmextra:
Added code and quote tags. Please use [-code-] tags for code and [-codebox-] tag for long lines of code. Use [-quote-] tags when copying from anywhere outside your post


Edited by cmatcmextra, 14 August 2005 - 06:43 PM.


#2 electriic ink

    "Britons never never shall be slaves." As true now as it was in 1740.

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,262 posts
  • Gender:Male
  • Location:Heaven
  • Interests:Promotion: Aug 4 2005 8.24pm BST
  • myCENT:74.43

Posted 14 August 2005 - 06:47 PM

Can we please see the file header.php seeing as that's where the error is.

#3 swat

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 34 posts

Posted 14 August 2005 - 07:40 PM

here is header.php:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright © 2002 by Francisco Burzi                                */
/* [url=http://phpnuke.org]http://phpnuke.org[/url]                                                   */
/*                                                                      */
/* 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.       */
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed                  COPYRIGHT */
/*                                                                      */
/* Copyright © 2004 - 2006 by [url=http://www.techgfx.com]http://www.techgfx.com[/url]                  */
/*     Techgfx - Graeme Allan                       (goose@techgfx.com) */
/*                                                                      */
/* Copyright © 2004 - 2006 by [url=http://www.conrads-berlin.de]http://www.conrads-berlin.de[/url]            */
/*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */
/*                                                                      */
/* Refer to TechGFX.com for detailed information on PHP-Nuke Platinum   */
/*                                                                      */
/* TechGFX: Your dreams, our imagination                                */
/************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], "header.php")) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");
/*****************************************************/
/* Security - Protector System v.1.15b3        START */
/*****************************************************/
global $admin_file;
if(!eregi("".$admin_file.".php",$_SERVER['SCRIPT_NAME'])) {
require_once("includes/blocker.php"); }  
/*****************************************************/
/* Security - Protector System v.1.15b3          END */
/*****************************************************/

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    include("includes/ipban.php");
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
	echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
   include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
   include_once("includes/custom_files/custom_header.php");
    }
    themeheader();
}

online();
head();
include("includes/counter.php");

/*****************************************************/
/* Addon - Center Blocks v.2.1.1               START */
/* Addon - Conditional Blocks v.1.1.1          START */
/*****************************************************/
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
        include("includes/cblocks1.php");
}
/*****************************************************/
/* Addon - Conditional Blocks v.1.1.1            END */
/* Addon - Center Blocks v.2.1.1                 END */
/*****************************************************/

?>

Notice from BuffaloHELP:
Corrected double post and used CODEBOX for longer codes instead of CODE. For some reason CODEBOX is coming out longer. Using CODE instead.

Edited by BuffaloHELP, 14 August 2005 - 07:53 PM.


#4 electriic ink

    "Britons never never shall be slaves." As true now as it was in 1740.

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,262 posts
  • Gender:Male
  • Location:Heaven
  • Interests:Promotion: Aug 4 2005 8.24pm BST
  • myCENT:74.43

Posted 15 August 2005 - 07:09 AM

In header.php someone didn't define themeheader(). Try backing-up header.php and then re-uploading the default version.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users