• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Biała strona Acc Maker

Status
Not open for further replies.

krisek1997

New Member
Joined
Apr 23, 2011
Messages
9
Reaction score
0
Witam, mam problem a mianowicie taki:
Postanowiłem dodać questy do acc. No więc dodaje, zapisuje wchodzę na acc i..
..nie działa mi strona.
Jak wchodzę z no-ip jak i z cyfrowego biała stronka ...
No to wyłączyłem questy na acc ale dalej nic, nie wiem w czym może być problem...
FW mam wyłączony, VPS restartowałem (reboot) ale nie działa.
Mam Linux, Debian 32bit
 
ja bym włączył error reporting albo odpalić w ssh stronę.
php index.php - pokaże ewentualne błędy ;)
Jeśli nie działa to
Code:
apt-get install php-cgi
 
ja bym włączył error reporting
możesz ciut jaśniej ?.. dzięki :)
masz tutaj wrzucam cały index.php
PHP:
<?PHP
//start :)
session_start();
ob_start("ob_gzhandler");
//require('./exaBD.php');
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
//##### CONFIG #####
include('config-and-functions.php');
$action = $_REQUEST['action'];
//##### LOGOUT #####
if($action == "logout") 
{
    unset($_SESSION['account']);
    unset($_SESSION['password']);
}
//##### LOGIN #####
//check is player logged
$logged = FALSE;
if(isset($_SESSION['account'])) 
{
    $account_logged = $ots->createObject('Account');
    $account_logged->load($_SESSION['account']);
    if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) 
    {
        $logged = TRUE;
        $group_id_of_acc_logged = $account_logged->getPageAccess();
    } 
    else 
    {
        $logged = FALSE;
        unset($_SESSION['account']);
        unset($account_logged);
    }
}
$login_account = strtoupper(trim($_POST['account_login']));
$login_password = trim($_POST['password_login']);
if(!$logged && !empty($login_account) && !empty($login_password)) 
{
    $login_password = password_ency($login_password);
    $account_logged = $ots->createObject('Account');
    $account_logged->find($login_account);
    if($account_logged->isLoaded()) 
    {
        if($login_password == $account_logged->getPassword()) 
        {
            $_SESSION['account'] = $account_logged->getId();
            $_SESSION['password'] = $login_password;
            $logged = TRUE;
            $account_logged->setCustomField("page_lastday", time());
            $group_id_of_acc_logged = $account_logged->getPageAccess();
        } 
        else
            $logged = FALSE;
    }
}
//#### LOAD PAGE ##########
//load subtopic page
if(empty($_REQUEST['subtopic'])) 
{
    $_REQUEST['subtopic'] = "latestnews";
    $subtopic = "latestnews";
}
switch($_REQUEST['subtopic']) 
{
    case "war";
        $topic = "Wojny Gildii";
        $subtopic = "war";
        include("war.php");
    break;  
    case "chartosell";
        $topic = "Lista postaci na sprzedasz";
        $subtopic = "chartosell";
    include("sellcharlist.php");
        break;
    case "buychar":
        $topic = "Kup postac";
        $subtopic = "buychar";
    include("buychar.php");
         break;  
    case "latestnews":
        $topic = "Latest News";
        $subtopic = "latestnews";
        include("latestnews.php");
    break;
    case "auctionsystem":
        $topic = "Aukcje";
        $subtopic = "auctionsystem";
        include("auctionsystem.php");
    break;
    case "frags":
        $topic = "Top Fragujacy";
        $subtopic = "frags";
        include("frags.php");
    break;
    case "shopadmin":
        $topic = "Admin Shop";
        $subtopic = "shopadmin";
        include("shopadmin.php");
    break;
    case "archive";
        $subtopic = "archive";
        $topic = "News Archives";
        include("archive.php");
    break;

    case "creatures";
        $topic = "Creatures";
        $subtopic = "creatures";
        include("creatures.php");
    break;
    case "spells";
        $topic = "Spells";
        $subtopic = "spells";
        include("spells.php");
    break;
    case "serverinfo";
        $subtopic = "serverinfo";
        $topic = "Server Info";
        include("serverinfo.php");
    break;
    case "experiencetable";
        $topic = "Experience Table";
        $subtopic = "experiencetable";
        include("experiencetable.php");
    break;

    case "characters";
        $topic = "Characters";
        $subtopic = "characters";
        include("characters.php");
    break;
    case "whoisonline";
        $topic = "Who is online?";
        $subtopic = "whoisonline";
        include("whoisonline.php");
    break;
    case "highscores";
        $topic = "Highscores";
        $subtopic = "highscores";
        include("highscores.php");
    break;
    case "killstatistics";
        $topic = "Last Kills";
        $subtopic = "killstatistics";
        include("killstatistics.php");
    break;
      case "bans":
         $topic = "Banishments";
        $subtopic = "bans";
        include("bans.php");
     break;
    case "houses";
        $topic = "Houses";
        $subtopic = "houses";
        include("houses.php");
    break;
    case "guilds";
        $topic = "Guilds";
        $subtopic = "guilds";
        include("guilds.php");
    break;

    case "forum":
        $topic = "Forum";
        $subtopic = "forum";
        include("forum.php");
    break;

    case "accountmanagement";
        $topic = "Account Management";
        $subtopic = "accountmanagement";
        include("accountmanagement.php");
    break;
    case "createaccount";
        $topic = "Create Account";
        $subtopic = "createaccount";
        include("createaccount.php");
    break;
    case "lostaccount";
        $topic = "Lost Account Interface";
        $subtopic = "lostaccount";
        include("lostaccount.php");
    break;
    case "downloads";
        $subtopic = "downloads";
        $topic = "Downloads";
        include("downloads.php");
    break;

    case "tibiarules";
        $topic = "Server Rules";
        $subtopic = "tibiarules";
        include("tibiarules.php");
    break;
    case "tracker";
        $subtopic = "tracker";
        $topic = "Tracker";
        include("tracker.php");
    break;
    case "changelog";
        $subtopic = "changelog";
        $topic = "Change Log";
        include("changelog.php");
    break;
    case "team";
        $subtopic = "team";
        $topic = "Gamemasters List";
        include("team.php");
    break;
    case "adminpanel":
        $topic = "Admin Panel";
        $subtopic = "adminpanel";
        include("adminpanel.php");
    break;
    case "namelock";
        $subtopic = "namelock";
        $topic = "Namelock Manager";
        include("namelocks.php");
    break;

    case "buypoints";
        $subtopic = "buypoints";
        $topic = "Buy Points";
        include("buypoints.php");
    break;
    case "shopsystem";
        $subtopic = "shopsystem";
        $topic = "Shop System";
        include("shopsystem.php");
    break;

      case "credits":
         $topic = "Credits";
        $subtopic = "credits";
        include("credits.php");
     break;
}
// ##### generate title of page
if(empty($topic)) 
{
    $title = $GLOBALS['config']['server']["serverName"]." - OTS";
    $main_content .= 'Invalid subtopic. Can\'t load page.';
} 
else
{
    $title = $GLOBALS['config']['server']["serverName"]." - ".$topic;
}
// ##### ADD Fotter for Credits
function getFooter()
{
    echo 'Account maker by <a href="index.php?subtopic=credits">Credits</a>. Layout by '.$GLOBALS['config']['site']['layout'].'.';
}
// ##### LAYOUT
$layout_header = '<script type=\'text/javascript\'>
function GetXmlHttpObject()
{
    var xmlHttp=null;
    try
    {
        xmlHttp=new XMLHttpRequest();
    }
    catch (e)
    {
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}
function MouseOverBigButton(source)
{
    source.firstChild.style.visibility = "visible";
}
function MouseOutBigButton(source)
{
    source.firstChild.style.visibility = "hidden";
}
function BigButtonAction(path)
{
    window.location = path;
}
var';
if($logged)
{
    $layout_header .= "loginStatus=1; loginStatus='true';"; 
} 
else 
{ 
    $layout_header .= "loginStatus=0; loginStatus='false';"; 
}
$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";
include($layout_name."/layout.php");
ob_end_flush();
?>
 
Code:
/etc/php5/apach2/php.ini
Zamień
Code:
display_errors = Off
Na
Code:
display_errors = On
A potem walnij
Code:
/etc/init.d/apache2 restart

I zobacz jakie błedy ;)
 
Aha zaraz dam znać

linijka 86:
Code:
    $config['site']['quests'] = array('Monster Quest' => 5600, 'Helmet's Quest' => 5970, 'Fire Quest' => 5460, 'Knight Quest' => 5940, 'Demon Helmet Quest' => 4010); // list of quests, 'questname' => storage-id,
a błąd taki:
Code:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /var/www/config/config.php on line 86
 
Last edited by a moderator:
Ok działa, teraz tylko to na górze stronki wywala :P
Code:
Notice: Undefined index: sqliteDatabase in /var/www/config-and-functions.php on line 22 Notice: Undefined offset: 1 in /var/www/config-and-functions.php on line 417 Notice: Undefined offset: 2 in /var/www/config-and-functions.php on line 418 Notice: Undefined offset: 1 in /var/www/config-and-functions.php on line 420 Notice: Undefined offset: 1 in /var/www/config-and-functions.php on line 421 Notice: Undefined offset: 1 in /var/www/config-and-functions.php on line 424 Notice: Undefined offset: 1 in /var/www/config-and-functions.php on line 426 Notice: Undefined variable: file_data in /var/www/config-and-functions.php on line 441 Notice: Undefined index: action in /var/www/index.php on line 14 Notice: Undefined index: account_login in /var/www/index.php on line 40 Notice: Undefined index: password_login in /var/www/index.php on line 41 Notice: Undefined variable: main_content in /var/www/latestnews.php on line 14 Notice: Undefined variable: tickers_to_add in /var/www/latestnews.php on line 54 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 56 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 61 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 56 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 61 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 56 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 61 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 56 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 61 Notice: Undefined variable: news_content in /var/www/latestnews.php on line 81 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 82 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 145 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 182 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 182 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 182 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 182
 
Spowrotem On na Off, to co mowil czelabin i nie bedzie notices. Ew. gdzies niedaleko dodaj ~E_NOTICE.
 
No to ustaw poprawnie config.lua (baza mysql) albo ściągnij normalnego gęsiora....

Odnośnie up, lepiej w index.php pod
Code:
<?php
Dać
Code:
<?php
error_reporting(0);
dalszy kod...
 
Status
Not open for further replies.
Back
Top