Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Platinum
Author Message
bdmdesign
Worker
Worker



Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany

PostPosted: Thu Jul 30, 2009 4:52 am Reply with quote

Hello,

Im a Platinum User, an litle Coder. I used a long time this Online Shop in my Nuke:


Emporium module for PHP-Nuke / PHP-Nuke Platinum

Module's Name: Emporium
Module's Version: 2.3.5-1
Module's Description: Emporium 2.3.5-1 (Availability Status view, New Products Page and new billing Print Preview / Print).
License: Burnwave Emporium License
Author's Name: Michael Squires
Update Author's Name: Peter Stein - BdMdesigN

But the problem is thats this Shop cant not realy the Multilaguage functions.

So i find the Osc2nuke, download it in the V.: 2.0.

So the problem is i cant see the main page from the Shop, the Adminpanel works fine. I have registered my on the Supportsite, whos made the Modules, but all registered Users seens no Forums. So i cant ask the Coder to a fix.

Can you help me ?

You can see here the Error:

Image


Last edited by bdmdesign on Thu Jul 30, 2009 4:24 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Thu Jul 30, 2009 6:02 am Reply with quote

Can you post the function: function is_user from your mainfile.php and enable error reporting in your config.php ( if not availeble add this to it: error_reporting(E_ALL)Wink

Grtzz wHiTeHaT
 
View user's profile Send private message Send e-mail
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Thu Jul 30, 2009 6:18 am Reply with quote

bdmdesign, welcome to ravenphpscripts.

It looks like wHiTeHaT is helping you, but just one thing please do not double post. Smack

Thanks Wink
 
View user's profile Send private message
bdmdesign







PostPosted: Thu Jul 30, 2009 7:13 am Reply with quote

Sorry for the duble post but i have only Gprs as Inet acces and i must reload this Site to see the Post.
So i had think the post was deleted. Sorry

Ok i will turn on the debug funtion.

the mainfile:

function is_user($user) {
global $prefix, $db, $user_prefix;
if(!is_array($user)) {
$user = base64_decode($user);
$user = addslashes($user);
$user = explode(":", $user);
$uid = "$user[0]";
$pwd = "$user[2]";
} else {
$uid = "$user[0]";
$pwd = "$user[2]";
}
$uid = addslashes($uid);
$uid = intval($uid);
if ($uid != "" AND $pwd != "") {
$result = $db->sql_query("SELECT user_password FROM ".$user_prefix."_users WHERE user_id='$uid'");
$row = $db->sql_fetchrow($result);
$pass = $row['user_password'];
if($pass == $pwd && $pass != "") {
return 1;
}
}
return 0;
}


the config.php:

i added this in the file:

error_reporting(E_ALL)

before


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

and get a blank page after a reload

and so:

"clit",
"bitch",
"fuk",
"fuking",
"motherfucker");
$tipath = "images/topics/";



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

The page works but the main from the shop its the same as befor
No Errors on the site, maby a php.ini error?
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 7:18 am Reply with quote

sorry the smilies replaced my code:

Code:
error_reporting(E_ALL);


is the correct line to add.

Anyway i not see you edited your mainfile.php:

change yours to:
Code:
function is_user($user) {

global $prefix, $db, $user_prefix;
if(!is_array($user)) {
$user = base64_decode($user);
$user = addslashes($user);
$user = explode(":", $user);
$uid = "$user[0]";
$pwd = "$user[2]";
} else {
$uid = "$user[0]";
$pwd = "$user[2]";
}
$uid = addslashes($uid);
$uid = intval($uid);
if ($uid != "" AND $pwd != "") {
$result = $db->sql_query("SELECT user_password FROM ".$user_prefix."_users WHERE user_id='$uid'");
$row = $db->sql_fetchrow($result);
$pass = $row['user_password'];
if($pass == $pwd && $pass != "") {
if (function_exists("osc_user_connect")) { osc_user_connect($uid); }

return 1;
}
}
return 0;
}


Pls report back your results
 
bdmdesign







PostPosted: Thu Jul 30, 2009 7:28 am Reply with quote

I have a other idea:

I have seen that the variabels in the catalog begins whit an @ like this:

@include("modules/catalog/osc_header.php");

but all other variabels from the rest modules and the system was without the @
like this:

include("modules/catalog/osc_header.php");

MfG (Best Regards)
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 7:30 am Reply with quote

you shouldnt worry vor the @ it is a build in php security
 
bdmdesign







PostPosted: Thu Jul 30, 2009 7:39 am Reply with quote

Lines fixed but the same result
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 7:41 am Reply with quote

the error reporting should be AFTER:

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







PostPosted: Thu Jul 30, 2009 7:44 am Reply with quote

"*Edited by Admin*");
$tipath = "images/topics/";



if (stristr($_SERVER['SCRIPT_NAME'], "config.php")) {
Header("Location: index.php");
die();
}
error_reporting(E_ALL)
?>

Thtas i did
 
bdmdesign







PostPosted: Thu Jul 30, 2009 7:47 am Reply with quote

Ohhh
 
bdmdesign







PostPosted: Thu Jul 30, 2009 7:50 am Reply with quote

Header("Location: index.php");
die();
}
error_reporting(E_ALL);
?>

or so

Header("Location: index.php");
die();
}
error_reporting(E_ALL)
?>

It evrytime the same error : HEADING_TITLE
 
bdmdesign







PostPosted: Thu Jul 30, 2009 8:15 am Reply with quote

Ok see i have seen the error logs from Apache.

Error Log
And Apache says:

[Thu Jul 30 16:00:06 2009] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT'
[Thu Jul 30 16:00:13 2009] [error] ModSecurity: ModSecurity requires mod_unique_id to be installed.

Hmmm is thats the reason ??
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 9:20 am Reply with quote

these 2 errors arent refering to your osc2nuke installation.
i also have doubt you use the correct methode for the error reporting.
there should atleast be some error to show up.

Can you post your config.php file withouth the db user name and password , simply replace these with xxxx.
 
bdmdesign







PostPosted: Thu Jul 30, 2009 9:22 am Reply with quote

So mod_unique_id intalled and now i get erros on the page
 
bdmdesign







PostPosted: Thu Jul 30, 2009 10:07 am Reply with quote

So i will install the modul online, to see if i get the same error or if its my offline Server
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 10:08 am Reply with quote

could you first post your config file here...
(i'm one of the main devellopers of osc2nuke)
 
bdmdesign







PostPosted: Thu Jul 30, 2009 10:10 am Reply with quote

Here:
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [ Only registered users can see links on this board! Get registered or login! ] */
/* */
/* 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. */
/* */
/************************************************************************/
/* Additional security checking code 2004 by chatserv */
/* [ Only registered users can see links on this board! Get registered or login! ] -- [ Only registered users can see links on this board! Get registered or login! ] */
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed COPYRIGHT */
/* */
/* Copyright (c) 2004 - 2006 by [ Only registered users can see links on this board! Get registered or login! ] */
/* Techgfx - Graeme Allan (goose@techgfx.com) */
/* */
/* Copyright (c) 2004 - 2006 by [ Only registered users can see links on this board! Get registered or login! ] */
/* MrFluffy - Axel Conrads (axel@conrads-berlin.de) */
/* */
/* Refer to TechGFX.com for detailed information on PHP-Nuke Platinum */
/* */
/* TechGFX: Your dreams, our imagination */
/************************************************************************/

$dbhost = "Würdest";
$dbuname = "Du";
$dbpass = "Gerne";
$dbname = "alles";
$prefix = "Wissen";
$user_prefix = "nW";
$dbtype = "MySQL";
$sitekey = "xxxxxxxxxxxxxxxx";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "SagIchNicht";

/************************************************************************/
/* Database and System Configuration INFORMATION */
/* */
/* dbhost: SQL Database Hostname */
/* dbuname: SQL Username */
/* dbpass: SQL Password */
/* dbname: SQL Database Name */
/* $prefix: Your Database table's prefix */
/* $user_prefix: Your Users' Database table's prefix (To share it) */
/* $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) */
/* */
/************************************************************************/
/* You finished to configure the Database. Now you can change all you */
/* want in the Administration panel. To enter just launch you web */
/* browser pointing to [ Only registered users can see links on this board! Get registered or login! ] */
/* */
/* Remeber to go to Settings section where you can configure your new */
/* site. In that menu you can change all you need to change. */
/* */
/* Congratulations! you now have successfully installed */
/* PHP-Nuke Platinum v.7.6.0. */
/************************************************************************/
/* Thankyou for choosing PHP-Nuke Platinum: Expect to be impressed. */
/************************************************************************/

// Do not touch anything below this line unless you know what you are doing

$reasons = array("As Is",
"Offtopic",
"Flamebait",
"Troll",
"Redundant",
"Insighful",
"Interesting",
"Informative",
"Funny",
"Overrated",
"Underrated");
$badreasons = 4;
$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"ul"=>1);
$CensorList = array("f***",
"cunt",
"f***er",
"f***ing",
"pussy",
"cock",
"c0ck",
"cum",
"twat",
"clit",
"bitch",
"fuk",
"fuking",
"motherfucker");
$tipath = "images/topics/";



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







PostPosted: Thu Jul 30, 2009 10:10 am Reply with quote

bdmdesign, please moderate your language. Smack
 
bdmdesign







PostPosted: Thu Jul 30, 2009 10:12 am Reply with quote

wHiTeHaT wrote:
could you first post your config file here...
(i'm one of the main devellopers of osc2nuke)


Ohhh Very Happy

Nice to meet you
 
wHiTeHaT







PostPosted: Thu Jul 30, 2009 10:16 am Reply with quote

add me to msn i help you out there.. and i also will learn you how to use a forum... you not make friends like this lol Wink
 
bdmdesign







PostPosted: Thu Jul 30, 2009 10:16 am Reply with quote

OK Sad

Im so sorry, i will dont do it again.

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

The admin file is renamed so its dont call admin.php on my servers
 
bdmdesign







PostPosted: Thu Jul 30, 2009 4:40 pm Reply with quote

Ok the errors from the shop are fixed and works now.

It was a include error from the custom_mainfile.php, in the the mainfile.php.
Tomorow i will send a download link for the fixed file.

Thanx wHiTeHaT

And sorry again for my German in the files. Ok my English is not realy the best, i must wrote it more to speak it better.

Thanx and good Night


Your BdMdesigN
 
bdmdesign







PostPosted: Sat Aug 01, 2009 3:58 am Reply with quote

Are you use the Nuke-Platinum DE2 Version (not the new Beta) from nuke-platinum.de and you will use the osc2nuke Addon, but you cant get it to works?

And if you get the same errors, thats we get fix with this Tread?

Make a backup from your mainfile.php, than you must go in includes/custom_files and rename the custom_mainfile.php. If you don't rename this file you will get a blank page.

Now download the fixed mainfile.php, extrac it in your Platinum rootfolder.
That was it.

Please DON'T try the blocks, they dont realy works at this time

MfG / Best Regards

BdMdesigN
 
bdmdesign







PostPosted: Tue Aug 04, 2009 12:14 pm Reply with quote

I have made a Patch hows working the Blocks, too.

Download the Patch here

Best Regards
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Platinum

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©