Jump to content
xisto Community
Sign in to follow this  
swat

Help With Php Nuke.... The config.php file

Recommended Posts

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:

 

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 (see edit history)

Share this post


Link to post
Share on other sites

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://http://www.techgfx.com/;                  *//*     Techgfx - Graeme Allan                       (goose@techgfx.com) *//*                                                                      *//* Copyright Š 2004 - 2006 by [url=http://http://www.conrads-berlin.de/;            *//*     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 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.