Author |
Message |
bdmdesign
Worker


Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany
|
Posted:
Thu Jul 30, 2009 4:52 am |
|
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:
 |
Last edited by bdmdesign on Thu Jul 30, 2009 4:24 pm; edited 1 time in total |
|
|
 |
wHiTeHaT
Life Cycles Becoming CPU Cycles

Joined: Jul 18, 2004
Posts: 579
|
Posted:
Thu Jul 30, 2009 6:02 am |
|
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)
Grtzz wHiTeHaT |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Thu Jul 30, 2009 6:18 am |
|
bdmdesign, welcome to ravenphpscripts.
It looks like wHiTeHaT is helping you, but just one thing please do not double post.
Thanks  |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 7:13 am |
|
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

|
Posted:
Thu Jul 30, 2009 7:18 am |
|
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

|
Posted:
Thu Jul 30, 2009 7:28 am |
|
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

|
Posted:
Thu Jul 30, 2009 7:30 am |
|
you shouldnt worry vor the @ it is a build in php security |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 7:39 am |
|
Lines fixed but the same result |
|
|
|
 |
wHiTeHaT

|
Posted:
Thu Jul 30, 2009 7:41 am |
|
the error reporting should be AFTER:
if (stristr($_SERVER['SCRIPT_NAME'], "config.php")) {
Header("Location: index.php");
die();
} |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 7:44 am |
|
"*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

|
Posted:
Thu Jul 30, 2009 7:47 am |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 7:50 am |
|
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

|
Posted:
Thu Jul 30, 2009 8:15 am |
|
Ok see i have seen the error logs from Apache.
Only registered users can see links on this board! Get registered or login!
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

|
Posted:
Thu Jul 30, 2009 9:20 am |
|
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

|
Posted:
Thu Jul 30, 2009 9:22 am |
|
So mod_unique_id intalled and now i get erros on the page |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 10:07 am |
|
So i will install the modul online, to see if i get the same error or if its my offline Server |
|
|
|
 |
wHiTeHaT

|
Posted:
Thu Jul 30, 2009 10:08 am |
|
could you first post your config file here...
(i'm one of the main devellopers of osc2nuke) |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 10:10 am |
|
Here:
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* 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 */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed COPYRIGHT */
/* */
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com */
/* Techgfx - Graeme Allan (goose@techgfx.com) */
/* */
/* Copyright (c) 2004 - 2006 by 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 */
/************************************************************************/
$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 http://www.YOURSITE.com/admin.php */
/* */
/* 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

|
Posted:
Thu Jul 30, 2009 10:10 am |
|
bdmdesign, please moderate your language.  |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 10:12 am |
|
wHiTeHaT wrote: | could you first post your config file here...
(i'm one of the main devellopers of osc2nuke) |
Ohhh
Nice to meet you |
|
|
|
 |
wHiTeHaT

|
Posted:
Thu Jul 30, 2009 10:16 am |
|
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  |
|
|
|
 |
bdmdesign

|
Posted:
Thu Jul 30, 2009 10:16 am |
|
OK
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

|
Posted:
Thu Jul 30, 2009 4:40 pm |
|
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

|
Posted:
Sat Aug 01, 2009 3:58 am |
|
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 Only registered users can see links on this board! Get registered or login!, 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

|
Posted:
Tue Aug 04, 2009 12:14 pm |
|
I have made a Patch hows working the Blocks, too.
Download the Patch Only registered users can see links on this board! Get registered or login!
Best Regards |
|
|
|
 |
|