Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

problem z acc maker i wamp server


konrad9510

Rekomendowane odpowiedzi

Opublikowano

Witam, mam problemy z xampp oraz webserver więc postanowiłem przetestować wamp server i odziwo wszystko chodzi miodzio, lecz problem pojawił się w momencie, gdy chcę zainstalować acc maker'a. No więc wgrywam całego acc maker'a do folderu www znajdującego się w wamp serwer i wywołuje przez localhost/install.php i mam takie błędy:

 

Notice: Undefined index: page in E:\wamp\www\install\install.php on line 40
Notice: Undefined index: page in E:\wamp\www\install\install.php on line 54
Notice: Undefined index: page in E:\wamp\www\install\install.php on line 68

 

A tutaj macie wycinek z install.php od linijki 1 do 72.

<?PHP
$config['site'] = parse_ini_file('config/config.ini');
session_start();
//save config in ini file
function saveconfig_ini($config) {
$file = fopen("config/config.ini", "w");
foreach($config as $param => $data) {
$file_data .= $param.' = "'.str_replace('"', '', $data).'"
';
}
rewind($file);
fwrite($file, $file_data);
fclose($file);
}

function check_password($pass)
{
 $temp = strspn("$pass", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890");
 if ($temp != strlen($pass)) {
 return false;
 }
 else
 {
 $ok = "/[a-zA-Z0-9]{1,40}/";
 return (preg_match($ok, $pass))? true: false;
 }
}

function password_ency($password)
{
$ency = $GLOBALS['passwordency'];
if($ency == 'sha1')
	return sha1($password);
elseif($ency == 'md5')
	return md5($password);
elseif($ency == '')
	return $password;
}

if($_REQUEST['page'] == '' && !isset($_REQUEST['step'])) {
echo '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Installation of account maker</title>
</head>
<frameset cols="230,*">
<frame name="menu" src="install.php?page=menu" />
<frame name="step" src="install.php?page=step&step=0" />
<noframes><body>Frames don\'t work. Install Firefox :P</body></noframes>
</frameset>
</html>';
}
if($_REQUEST['page'] == 'menu') {
echo '<h2>MENU</h2><br>
<b>IF NOT INSTALLED:</b><br>
<a href="install.php?page=step&step=start" target="step">0. Informations</a><br>
<a href="install.php?page=step&step=1" target="step">1. Set server path</a><br>
<a href="install.php?page=step&step=2" target="step">2. Check DataBase connection</a><br>
<a href="install.php?page=step&step=3&server_conf=yes" target="step">3. Add tables and columns to DB</a><br>
<a href="install.php?page=step&step=4&server_conf=yes" target="step">4. Add samples to DB</a><br>
<a href="install.php?page=step&step=5&server_conf=yes" target="step">5. Set Admin Account</a><br>
<b>FOR ADMINS:</b><br>
<a href="index.php?subtopic=adminpanel&action=install_monsters" target="step">6. Load Monsters from OTS</a><br>
<a href="index.php?subtopic=adminpanel&action=install_spells" target="step">7. Load Spells from OTS</a><br>';

}
if($_REQUEST['page'] == 'step') {
if($config['site']['install'] != "no") {
if($_REQUEST['server_conf'] == 'yes' || ($_REQUEST['step'] > 2 && $_REQUEST['step'] < 6)) {
//load server config
$config['server'] = parse_ini_file($config['site']['server_path'].'config.lua');
if(isset($config['server']['mysqlHost'])) {

 

Wersja acc maker'a gesior 0.3.4(beta4) fixed.

 

Proszę o waszą pomoc. ! Pozdrawiam.

install.php

Czy dasz mi + czy - i tak mam to gdzieś, ponieważ nie patrze na reputacje.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...