Web Shop

03/02/2015 08:58 romzik#76
Quote:
Originally Posted by Titanos™ View Post
Wenn man es richtig eingestellt hat und es richtig funktioniert dann musst du dich nicht einloggen dann ist dort ein Auto login drinne.
nicht schlecht, aber kann ich trotzdem nicht anmelden... nicht im Spiel, nicht im Browser...
03/02/2015 09:23 -Venom'#77
Quote:
Originally Posted by romzik View Post
nicht schlecht, aber kann ich trotzdem nicht anmelden... nicht im Spiel, nicht im Browser...
Überprüfe deine Einstellungen.

Zur hilfe solltest du das hier:
Code:
	else
				{
					$loggedin = false;
					//die( 'Fehler: Charakter konnte nicht abgerufen werden.' );
				}
			}
			else
			{
				$loggedin = false;
				//die( 'Fehler: Fehlerhafte Account Informationen.' );
			}
		}
		else
		{
			$loggedin = false;
			//die( 'Fehler: Account Informationen stimmen nicht überein.' );
		}
	}
	else
	{
		$loggedin = false;
		//die( 'Fehler: Einige Daten wurden nicht übermittelt.' );
	}
in das ändern:

Code:
	else
				{
					$loggedin = false;
					die( 'Fehler: Charakter konnte nicht abgerufen werden.' );
				}
			}
			else
			{
				$loggedin = false;
				die( 'Fehler: Fehlerhafte Account Informationen.' );
			}
		}
		else
		{
			$loggedin = false;
			die( 'Fehler: Account Informationen stimmen nicht überein.' );
		}
	}
	else
	{
		$loggedin = false;
		die( 'Fehler: Einige Daten wurden nicht übermittelt.' );
	}
Zur Information das ist die Login.php
03/02/2015 09:33 romzik#78
[Only registered and activated users can see links. Click Here To Register...]

Notice: Undefined index: user_id in C:\wamp\www\shop\login.php on line 8

Notice: Undefined index: m_idPlayer in C:\wamp\www\shop\login.php on line 9

Notice: Undefined index: server_index in C:\wamp\www\shop\login.php on line 10

Notice: Undefined index: check in C:\wamp\www\shop\login.php on line 11

Notice: Undefined index: md5 in C:\wamp\www\shop\login.php on line 12
Fehler: Einige Daten wurden nicht übermittelt.

und wenn ich mich anmelde, kommt das: Fehler: Fehlerhafte Account Informationen.

kleine test.. bekomme ich komplette information..
PHP Code:
else
{
    
$SQL = new MSSQLtrue );
    
$Query "SELECT * FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE [account] = %s AND [m_idPlayer] = %s AND [isblock] = 'F'";
    
$character $SQL->Exec$Query$_SESSION['user_id'], sprintf"%07d"$_SESSION['m_idPlayer'] ) ) ? $SQL->fetch[0] : false;
    
print_r($character);
    
$loggedin false;
    die( 
'Fehler: Fehlerhafte Account Informationen.' );

03/02/2015 09:52 -Venom'#79
Quote:
Originally Posted by romzik View Post
[Only registered and activated users can see links. Click Here To Register...]

Notice: Undefined index: user_id in C:\wamp\www\shop\login.php on line 8

Notice: Undefined index: m_idPlayer in C:\wamp\www\shop\login.php on line 9

Notice: Undefined index: server_index in C:\wamp\www\shop\login.php on line 10

Notice: Undefined index: check in C:\wamp\www\shop\login.php on line 11

Notice: Undefined index: md5 in C:\wamp\www\shop\login.php on line 12
Fehler: Einige Daten wurden nicht übermittelt.

und wenn ich mich anmelde, kommt das: Fehler: Fehlerhafte Account Informationen.

kleine test.. bekomme ich komplette information..
PHP Code:
else
{
    
$SQL = new MSSQLtrue );
    
$Query "SELECT * FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE [account] = %s AND [m_idPlayer] = %s AND [isblock] = 'F'";
    
$character $SQL->Exec$Query$_SESSION['user_id'], sprintf"%07d"$_SESSION['m_idPlayer'] ) ) ? $SQL->fetch[0] : false;
    
print_r($character);
    
$loggedin false;
    die( 
'Fehler: Fehlerhafte Account Informationen.' );


Ich werde mal auf den Erendora Server gehen und dir die Gefixte Version des Web Shops geben.

Edit:

Download: [Only registered and activated users can see links. Click Here To Register...]

Sagen die du beachten musst:

Login.php: In zeile 28:

PHP Code:
if( (md5$_SESSION['user_id'].$_SESSION['m_idPlayer'].$_SESSION['server_index'].'DEIN HASH EINTRAGEN' ) == $_SESSION['md5'] ) && $account['password'] == $_SESSION['check'] ) 
Login.php: Zeile 39:
PHP Code:
$_SESSION['md5'] = md5$_SESSION['user_id'].$_SESSION['m_idPlayer'].$_SESSION['server_index'].'DEINEN HASH EINTRAGEN' ); 
Config: Deine einstellungen:

PHP Code:
<?php
    session_start
();
    
    
ini_set('display_errors'false);
    
error_reporting(E_ALL E_NOTICE);
    
$_CONFIG = array();
    
    
define"MSSQL_HOST""DEINE DATENBANK" );        // Host
    
define"MSSQL_USER""ADMINISTRATOR BENUTZER DER DATENBANK" );                            // User
    
define"MSSQL_PASS""DATENBANKPASSWORT" );                            // Pass
    
define"MSSQL_PORT""1433" );                        // Port (default: 1433)
    
define"MSSQL_VERS""10" );                        // Driver version ( 10 => SQL2008, 11 => SQL2012 )
    
define"MSSQL_TRUS"false );                        // Trusting connection ( Localhost => true, Remote => false )
    
    // Class includes
    
include( "class/class.odbc.php" );
    
    
// CDPSrvr
    
define"BILLING_IP",        "IP ADRESSE" );            // Billing IP
    
define"BILLING_PORT",        29000 );                // Billing Port
    
define"BILLING_CHECK1",     0000000 );                // Billing first check value
    
define"BILLING_CHECK2",     0000000 );                // Billing second check value
    
    // Site config
    
$language 'DE';                                    // Shop language ( DE => German, EN => English )
    
$site_title 'Premium Shop';                        // Shop title
    
$charge_url 'DEINE DOMAIN ODER IP EINTRAGEN';                    // Charge url
    
$cash_name 'dPoints';                                 // Currency name
    
$cash_short 'dP';                                    // Currency name (short)
    
$hash_password '';                        // Password hash
    
$hash_shop 'DEIN HASH EINTRAGEN';                        // Shop hash
    
    // Language include
    
include( 'language.php' );
    
    
$shop_cat = array( 'A' => $lang['cat_a'], 'B' => $lang['cat_b'], 'C' => $lang['cat_c'], 'D' => $lang['cat_d'], 'E' => $lang['cat_e'],
                       
'F' => $lang['cat_f'], 'G' => $lang['cat_g'], 'H' => $lang['cat_h'], 'I' => $lang['cat_i'], 'J' => $lang['cat_j'] );
    
    
// Login handling
    
include( 'login.php' );
?>
03/02/2015 10:54 romzik#80
funktioniert trotzdem nicht.. keine ahnung was er will...
03/02/2015 11:15 Sedrika#81
Andere trusted Einstellung mal testen. Von false auf true.
03/02/2015 12:22 romzik#82
Hilfe Leute... verstehe nicht ganz das:
Open include/config.php and change the following settings:

BILLING_IP Don't change this if the web site is on the same root server as the server files.
BILLING_PORT Default is 29000. You can change this just search for PN_ADBILL in your source files.
BILLING_CHECK1 This one is the first check key. This have to be a number and the same as bi2.dwParam4 in CDPSrvr::OnBuyingInfo.
BILLING_CHECK2 This one is the second check key. This have to be a number and the same as bi2.dwParam5 in CDPSrvr::OnBuyingInfo.

$hash_shop This is a hash value for validation and have to be the same as hash in CWebBox::Refresh_Web and CWebBox::Process.

kann jemand per Teamviewer helfen?
05/09/2015 16:22 pakinglalat#83
Okay so I have this problem and hoping for some people to answer on how to fix. So I downloaded a ITEM_DBF from google, yes and then execute it in the database without any problem and I then executed this ITEM_DBF.sql that Sedrika included in his release and unfortunately I receive this errors that I dunno why it appears and have no idea on what to do, should I change something or comment out something or w/e? I really need help. Here is a quoted of the error that I got when I executed the query ITEM_DBF.sql. I am using MSSQL 2005 BTW!

Quote:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '110'.
Msg 102, Level 15, State 6, Line 2
Incorrect syntax near 'HONOR_BROKER_PRIORITY'.
Msg 102, Level 15, State 6, Line 2
Incorrect syntax near 'FILESTREAM'.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '0'.
Msg 2714, Level 16, State 6, Line 2
There is already an object named 'ITEM_TBL' in the database.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 90
Invalid column name 'dwHanded'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 91
Invalid column name 'dwFlag'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 93
Invalid column name 'dwPartsub'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 94
Invalid column name 'dwExclusive'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 97
Invalid column name 'dwShopAble'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 98
Invalid column name 'bCharged'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 101
Invalid column name 'eItemType'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 104
Invalid column name 'fAttackSpeed'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 106
Invalid column name 'nProbability'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 109
Invalid column name 'dwDestParam3'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 112
Invalid column name 'nAdjParamVal3'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 115
Invalid column name 'dwChgParamVal3'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 116
Invalid column name 'nDestData11'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 117
Invalid column name 'nDestData12'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 118
Invalid column name 'nDestData13'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 120
Invalid column name 'dwReqFp'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 124
Invalid column name 'dwReferStat1'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 125
Invalid column name 'dwReferStat2'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 126
Invalid column name 'dwReferTarget1'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 127
Invalid column name 'dwReferTarget2'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 128
Invalid column name 'dwReferValue1'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 129
Invalid column name 'dwReferValue2'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 131
Invalid column name 'nItemResistElecricity'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 132
Invalid column name 'nItemResistFire'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 133
Invalid column name 'nItemResistWind'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 134
Invalid column name 'nItemResistWater'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 135
Invalid column name 'nItemResistEarth'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 139
Invalid column name 'dwFFuelReMax'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 140
Invalid column name 'dwAFuelReMax'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 142
Invalid column name 'szIcon'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 143
Invalid column name 'szCommand'.
Msg 207, Level 16, State 1, Procedure ITEM_STR, Line 293
Invalid column name 'szName'.
05/19/2015 06:55 pakinglalat#84
How to make this available only in the game?
09/14/2015 04:27 macboyem07#85
Quote:
Originally Posted by Sedrika View Post
[Only registered and activated users can see links. Click Here To Register...]

Download [Only registered and activated users can see links. Click Here To Register...]
Download [Only registered and activated users can see links. Click Here To Register...]
Download [Only registered and activated users can see links. Click Here To Register...]








Epilogue:

I will gradually integrate new functions and make them more user friendly.
I hope you enjoy using this shop system i've created from the original design used by Webzen.

Credits:
- Webzen - Design
- Sedrika - Everytihing else









[Only registered and activated users can see links. Click Here To Register...]
09/15/2015 18:42 xTwiLightx#86
Quote:
Originally Posted by macboyem07 View Post
[Only registered and activated users can see links. Click Here To Register...]
You should show us WHICH error...
09/16/2015 07:04 aoyamananami#87
Quote:
Originally Posted by xTwiLightx View Post
You should show us WHICH error...

you can see his error here :)
09/16/2015 12:43 macboyem07#88
Quote:
Originally Posted by xTwiLightx View Post
You should show us WHICH error...
this ERRORS sir:
Quote:
Notice: Undefined index: user_id in C:\xampp\htdocs\webshop\login.php on line 8

Notice: Undefined index: m_idPlayer in C:\xampp\htdocs\webshop\login.php on line 9

Notice: Undefined index: server_index in C:\xampp\htdocs\webshop\login.php on line 10

Notice: Undefined index: check in C:\xampp\htdocs\webshop\login.php on line 11

Notice: Undefined index: md5 in C:\xampp\htdocs\webshop\login.php on line 12
:handsdown:
09/16/2015 18:35 xTwiLightx#89
Quote:
Originally Posted by macboyem07 View Post
this ERRORS sir:
:handsdown:
Your client is not sending a POST request. Something went wrong.

Did you follow this guide 1:1?
Even with a non-changed Neuz it should work.
09/17/2015 03:38 macboyem07#90
Quote:
Originally Posted by xTwiLightx View Post
Your client is not sending a POST request. Something went wrong.

Did you follow this guide 1:1?
Even with a non-changed Neuz it should work.
yeah sir i follow sedrika guide 1 by 1..and i used webshop 1.1.1 ...but same error..i used blessed source base and i change something code on source,i change the path link of webshop because when i open the webshop in game..the webshop go to "http://billing.blablabla.gpotato.blabla."

sorry for my english sir xD..i hope you understand :handsdown: