Darkorbit Private Server Turkish

12/01/2013 19:01 KuzeeyTR#1
Hi,im KuzeeyTR.
First,sorry for bad English because i don't speak English.I started private server setup 3 months ago.And I'm getting 2 errors :

1-Notice:Undefined index: localhost in C:/xampp/htdocs/KERNEL-DOCMS/Init.php on line 52

Notice:Undefined index: root C:/xampp/htdocs/KERNEL-DOCMS/Init.php on line 52
Notice:Undefined index: localhost in C:/xampp/htdocs/KERNEL-DOCMS/Init.php on line 52

Notice:Undefined index: testdb in C:/xampp/htdocs/KERNEL-DOCMS/Init.php on line 52

2-Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\body.php on line 128 Problemas en la conexion

If you could help,I would appreciate.

Thanks.

Image : [Only registered and activated users can see links. Click Here To Register...]
12/01/2013 19:19 UND3RW0RLD#2
[Only registered and activated users can see links. Click Here To Register...]
12/01/2013 19:42 Requi#3
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
[Only registered and activated users can see links. Click Here To Register...]
Nope :P
[Only registered and activated users can see links. Click Here To Register...]
^this
12/01/2013 20:12 KuzeeyTR#4
Thanks Requi,and I'm your #1 Fan ! :)
12/01/2013 20:15 cryz35#5
Quote:
Originally Posted by KuzeeyTR View Post
Thanks Requi,and I'm your #1 Fan ! :)
Kernel-docm/init.php dosyasına sql bilgilerini gir
12/01/2013 20:52 KuzeeyTR#6
Quote:
Originally Posted by cryz35 View Post
Kernel-docm/init.php dosyasına sql bilgilerini gir
<?php
define('IP', str_replace('::1', '127.0.0.1', $_SERVER['REMOTE_ADDR']));
define('KERNEL', dirname(__FILE__) . DIRECTORY_SEPARATOR);

ini_set('default_charset', 'UTF-8');
ini_set('expose_php', 0);
ini_set('session.name', 'DO-BPP1');
ini_set('session.gc_probability', 10);
ini_set('session.gc_divisor', 100);
ini_set('session.cookie_httponly', 1);
ini_set('session.gc_maxlifetime', 600);
ini_set('zlib_output_compression', 'On');

$_SERVER['REQUEST_URI'] = str_replace('.php', '', strtolower($_SERVER['REQUEST_URI']));
if(strstr($_SERVER['REQUEST_URI'], '?')):
define ('URI', explode('?', $_SERVER['REQUEST_URI'])[0]);
else:
define ('URI', $_SERVER['REQUEST_URI']);
endif;

@session_start();

require(KERNEL . "/Server.Config.php");

if(!empty($_SERVER['SERVER_NAME'])):
$_Server = str_replace("www.", "", $_SERVER['SERVER_NAME']);

if(!empty($Config['URL']["devPrivateServer"]) && ($Config['URL']["devPrivateServer"] === $_SERVER['SERVER_NAME'])):
$Config['Lang'] = $Config['URL']['Default']['Lang'];
define("SERVER", "http://" . $_SERVER['SERVER_NAME']);
define("HOST", $_SERVER['SERVER_NAME']);
define("sSERVER", "http://" . $_SERVER['SERVER_NAME']);
elseif(isset($Config['URL']['Other'][$_Server])):
$Config['MySQL'] = $Config['URL']['Other'][$_Server]['MySQL'];
$Config['Lang'] = $Config['URL']['Other'][$_Server]['Lang'];
define("SERVER", ($Config['URL']['Other'][$_Server]["Require.www"]) ? "http://www." . $_Server : "http://" . $_Server);
define("HOST", ($Config['URL']['Other'][$_Server]["Require.www"]) ? "www." . $_Server : $_Server);
define("sSERVER", ($Config['URL']['Other'][$_Server]["SSL.enabled"]) ? "https://" . HOST : "http://" . HOST);
elseif(!empty($Config['URL']["Default"]["Server"])):
$Config['Lang'] = $Config['URL']['Default']['Lang'];
define("SERVER", ($Config["URL"]["Default"]["Require.www"]) ? "http://www." . $Config['URL']["Default"]["Server"] : "http://" . $Config['URL']["Default"]["Server"]);
define("HOST", ($Config["URL"]["Default"]["Require.www"]) ? "www." . $Config['URL']["Default"]["Server"] : $Config['URL']["Default"]["Server"]);
define("sSERVER", ($Config["URL"]["Default"]["SSL.enabled"]) ? "https://" . HOST : "http://" . HOST);
else:
echo "You don´t have access.";
exit;
endif;
else:
exit;
endif;

$MySQLi = new mysqli($Config['MySQL']["localhost"], $Config['MySQL']["root"], $Config['MySQL']["localhost"], $Config['MySQL']["testdb"]);

if ($MySQLi->connect_error) {
die('Error de Conexión MySQLi (' . $MySQLi->connect_errno . ') '
. $mysqli->connect_error);
}

$_mysqliCharacter = $MySQLi->character_set_name();

require 'Class.Core.php';
$Core = new Core();
require 'Class.Users.php';
$Users = new Users();

// AntiHTML & SQL Injection
$_POST = str_replace(['<', '>', '\'', '\'', '\\'], ['<', '>', '"', ''', '&#92;'], $_POST);
$_GET = str_replace(['<', '>', '\'', '\'', '\\'], ['<', '>', '"', ''', '&#92;'], $_GET);

DEFINE('FILES', KERNEL . 'Files/' . DIRECTORY_SEPARATOR . $Config['Lang'] . DIRECTORY_SEPARATOR);
DEFINE('GLOBALS', FILES . '/GLOBAL/');
?>
12/01/2013 21:49 cryz35#7
Quote:
Originally Posted by KuzeeyTR View Post
<?php
define('IP', str_replace('::1', '127.0.0.1', $_SERVER['REMOTE_ADDR']));
define('KERNEL', dirname(__FILE__) . DIRECTORY_SEPARATOR);

ini_set('default_charset', 'UTF-8');
ini_set('expose_php', 0);
ini_set('session.name', 'DO-BPP1');
ini_set('session.gc_probability', 10);
ini_set('session.gc_divisor', 100);
ini_set('session.cookie_httponly', 1);
ini_set('session.gc_maxlifetime', 600);
ini_set('zlib_output_compression', 'On');

$_SERVER['REQUEST_URI'] = str_replace('.php', '', strtolower($_SERVER['REQUEST_URI']));
if(strstr($_SERVER['REQUEST_URI'], '?')):
define ('URI', explode('?', $_SERVER['REQUEST_URI'])[0]);
else:
define ('URI', $_SERVER['REQUEST_URI']);
endif;

@session_start();

require(KERNEL . "/Server.Config.php");

if(!empty($_SERVER['SERVER_NAME'])):
$_Server = str_replace("www.", "", $_SERVER['SERVER_NAME']);

if(!empty($Config['URL']["devPrivateServer"]) && ($Config['URL']["devPrivateServer"] === $_SERVER['SERVER_NAME'])):
$Config['Lang'] = $Config['URL']['Default']['Lang'];
define("SERVER", "http://" . $_SERVER['SERVER_NAME']);
define("HOST", $_SERVER['SERVER_NAME']);
define("sSERVER", "http://" . $_SERVER['SERVER_NAME']);
elseif(isset($Config['URL']['Other'][$_Server])):
$Config['MySQL'] = $Config['URL']['Other'][$_Server]['MySQL'];
$Config['Lang'] = $Config['URL']['Other'][$_Server]['Lang'];
define("SERVER", ($Config['URL']['Other'][$_Server]["Require.www"]) ? "http://www." . $_Server : "http://" . $_Server);
define("HOST", ($Config['URL']['Other'][$_Server]["Require.www"]) ? "www." . $_Server : $_Server);
define("sSERVER", ($Config['URL']['Other'][$_Server]["SSL.enabled"]) ? "https://" . HOST : "http://" . HOST);
elseif(!empty($Config['URL']["Default"]["Server"])):
$Config['Lang'] = $Config['URL']['Default']['Lang'];
define("SERVER", ($Config["URL"]["Default"]["Require.www"]) ? "http://www." . $Config['URL']["Default"]["Server"] : "http://" . $Config['URL']["Default"]["Server"]);
define("HOST", ($Config["URL"]["Default"]["Require.www"]) ? "www." . $Config['URL']["Default"]["Server"] : $Config['URL']["Default"]["Server"]);
define("sSERVER", ($Config["URL"]["Default"]["SSL.enabled"]) ? "https://" . HOST : "http://" . HOST);
else:
echo "You don´t have access.";
exit;
endif;
else:
exit;
endif;

$MySQLi = new mysqli($Config['MySQL']["localhost"], $Config['MySQL']["root"], $Config['MySQL']["localhost"], $Config['MySQL']["testdb"]);

if ($MySQLi->connect_error) {
die('Error de Conexión MySQLi (' . $MySQLi->connect_errno . ') '
. $mysqli->connect_error);
}

$_mysqliCharacter = $MySQLi->character_set_name();

require 'Class.Core.php';
$Core = new Core();
require 'Class.Users.php';
$Users = new Users();

// AntiHTML & SQL Injection
$_POST = str_replace(['<', '>', '\'', '\'', '\\'], ['<', '>', '"', ''', '&#92;'], $_POST);
$_GET = str_replace(['<', '>', '\'', '\'', '\\'], ['<', '>', '"', ''', '&#92;'], $_GET);

DEFINE('FILES', KERNEL . 'Files/' . DIRECTORY_SEPARATOR . $Config['Lang'] . DIRECTORY_SEPARATOR);
DEFINE('GLOBALS', FILES . '/GLOBAL/');
?>
Server.Config.php
SQL bölümünü kendi bilgilerinle değiştirmen gerek.
12/01/2013 22:29 KuzeeyTR#8
evet onu yaptım ama yinede olmuyo Aurora server files bu ICOn 8 i yapmıştım bu olmuyo kayıt olma bölümüde yok ayrıca
12/01/2013 22:36 cryz35#9
Quote:
Originally Posted by KuzeeyTR View Post
evet onu yaptım ama yinede olmuyo Aurora server files bu ICOn 8 i yapmıştım bu olmuyo kayıt olma bölümüde yok ayrıca
wamp yerine xampp kur
12/01/2013 22:42 KuzeeyTR#10
xampp kurulu
03/07/2018 20:44 erdemnet47#11
[Only registered and activated users can see links. Click Here To Register...] benimle iletisime gec sana en iyi file verim