Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Help With Php Nuke...., The config.php file
swat
post Aug 14 2005, 04:57 PM
Post #1


Newbie [Level 2]
**

Group: Members
Posts: 34
Joined: 14-August 05
Member No.: 10,685



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:

CODE
$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


This post has been edited by cmatcmextra: Aug 14 2005, 06:43 PM
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 14 2005, 06:47 PM
Post #2


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,217
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Can we please see the file header.php seeing as that's where the error is.
Go to the top of the page
 
+Quote Post
swat
post Aug 14 2005, 07:40 PM
Post #3


Newbie [Level 2]
**

Group: Members
Posts: 34
Joined: 14-August 05
Member No.: 10,685



here is header.php:

CODE

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


This post has been edited by BuffaloHELP: Aug 14 2005, 07:53 PM
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 15 2005, 07:09 AM
Post #4


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,217
Joined: 11-February 05
From: Heaven
Member No.: 3,709



In header.php someone didn't define themeheader(). Try backing-up header.php and then re-uploading the default version.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Path On Server !(3)
  2. My File Manager Is Working(2)
  3. How Do I Make A (video) File Smaller? (11)
  4. Cannot Delete Folder After Lost Ftp Connection(7)
  5. Help With Sql File?(4)
  6. My Sql Error after uploading(1)
  7. Making The Files In File Manager Invisible(8)
  8. Php.ini File Limit Size?(6)
  9. Integrating Post-nuke With An Existing Smf Forum(7)
  10. License File Expired When Logging Into Cpanel(11)
  11. File Type Utf-16 Unicode Question(0)
  12. File Manager(1)
  13. Wordpress Installation Error [resolved](3)
  14. File Manager In Cpanel Doesn't Work With The Browser Konqueror(1)
  15. Error Trying To Edit File Using Cpanel Filemanager(8)
  1. Php Nuke Index Shows Blank Page(2)
  2. Can't Edit Index(3)
  3. Help With A .rar File In Ftp Server(4)
  4. New Issue(4)
  5. File Manager Problems(3)
  6. File Transfer From Angelfire To Trap17?(1)
  7. File Permissions And Umask Question ?help Pleases(2)
  8. Got A Great Phpbb File With Mods Already Installed?(3)
  9. /tmp Folder In File Manager(4)
  10. Ftp Problem(8)
  11. Unable To Replace .png File In Directory(7)
  12. Issues Uploading A File [resolved](3)
  13. File Manager Not Working(2)


 



- Lo-Fi Version Time is now: 6th September 2008 - 02:16 AM