Перейти к содержанию

Calldvel

Пользователи
  • Постов

    10
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные Calldvel

  1. Зарание благодарю за ответ.

    У меня такая проблема: "Когда зашел на /lgsl/admin.php и добавляю сервер sa:mp меня перекидывает на окно авторизации и так каждый раз."

    Вот такая ошибка когда зашел в /lgsl/admin.php - 

    Warning: Cannot modify header information - headers already sent by (output started at /home/contine2/domains/continent-samp.su/public_html/forum/lgsl/lgsl_files/lgsl_config.php:1) in/home/contine2/domains/continent-samp.su/public_html/forum/lgsl/admin.php on line 20

    Warning: Cannot modify header information - headers already sent by (output started at /home/contine2/domains/continent-samp.su/public_html/forum/lgsl/lgsl_files/lgsl_config.php:1) in/home/contine2/domains/continent-samp.su/public_html/forum/lgsl/admin.php on line 29

     
    Путь указал правильно. Логин и Пароль тоже указал.
     
    Вот мой admin.php - строка 29 - "это строка 29_______..."

    <?php
    //------------------------------------------------------------------------------------------------------------+
      require "lgsl_files/lgsl_config.php";


      if (empty($lgsl_config['admin']['user']) || empty($lgsl_config['admin']['pass']))
      {
        exit("ADMIN USERNAME OR PASSWORD MISSING FROM CONFIG");
      }
      elseif ($lgsl_config['admin']['pass'] == "changeme")
      {
        exit("ADMIN PASSWORD MUST BE CHANGED FROM THE DEFAULT");
      }

      $auth   = md5($_SERVER['REMOTE_ADDR'].md5($lgsl_config['admin']['user'].md5($lgsl_config['admin']['pass'])));
      $cookie = isset($_COOKIE['lgsl_admin_auth']) ? $_COOKIE['lgsl_admin_auth'] : "";

      if (isset($_POST['lgsl_user']) && isset($_POST['lgsl_pass']) && $lgsl_config['admin']['user'] == $_POST['lgsl_user'] && $lgsl_config['admin']['pass'] == $_POST['lgsl_pass'])
      {
        setcookie("lgsl_admin_auth", $auth, (time() + (60 * 60 * 24)), "/");
        define("LGSL_ADMIN", TRUE);
      }
      elseif ($cookie == $auth)
      {
        setcookie("lgsl_admin_auth", $auth, (time() + (60 * 60 * 24)), "/");
        define("LGSL_ADMIN", TRUE);
      }
    это строка 29________________________________________________________________________________
      header("Content-Type:text/html; charset=utf-8");
    //------------------------------------------------------------------------------------------------------------+
    ?>

     

    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'


      <head>
        <title>Live Game Server List</title>
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
        <meta http-equiv='content-style-type' content='text/css' />
        <link rel='stylesheet' href='lgsl_style.css' type='text/css' />
      </head>

      <body>
        <div style='height:30px'><br /></div>

     


    <?php
    //------------------------------------------------------------------------------------------------------------+
      if (defined("LGSL_ADMIN"))
      {
        global $output;
        $output = "";
        require "lgsl_files/lgsl_admin.php";
        echo $output;
      }
      else
      {
        echo "
        <form method='post' action=''>
          <table style='margin:auto; text-align:center'>
            <tr><td> Логин: </td><td> <input type='text'     name='lgsl_user' value='' /> </td></tr>
            <tr><td> Пароль: </td><td> <input type='password' name='lgsl_pass' value='' /> </td></tr>
            <tr>
              <td colspan='2'>
                <br />
                <input type='submit' name='lgsl_admin_login' value='Login' />
              </td>
            </tr>
          </div>
        </form>
      }
    //------------------------------------------------------------------------------------------------------------+
    ?>

     

      </body>
    </html>

  2. Извините если что, мне друг дал свой conf_global.php и я изменил данные от бд на свои. Теперь старая ошибка пропала а появилась вот эта:

    An error occurred (500 Error)

    We're sorry, but a temporary technical error has occurred which means we cannot display this site right now. 

    You can try again by clicking the button below, or try again later. 

    Try again


    Fatal error: Uncaught exception 'ErrorException' with message 'mysqli::prepare(): Couldn't fetch IPS\Db' in /home/state54/domains/satetexas-rp.su/public_html/forum/system/Db/Db.php:360 Stack trace: #0 [internal function]: IPS\IPS::errorHandler(2, 'mysqli::prepare...', '/home/contine2/...', 360, Array) #1 /home/contine2/domains/continent-samp.su/public_html/forum/system/Db/Db.php(360): mysqli->prepare('/*IPS\Session\_...') #2 /home/state54/domains/statetexas-rp.su/public_html/forum/system/Db/Db.php(622): IPS\_Db->preparedQuery('REPLACE INTO `c...', Array) #3 /home/state54/domains/statetexas-rp.su/public_html/forum/system/Session/Front.php(274): IPS\_Db->replace('core_sessions', Array, true) #4 [internal function]: IPS\Session\_Front->write('9d13898e62821e8...', '') #5 {main} thrown in /home/state54/domains/statetexas-rp.su/public_html/forum/system/Db/Db.php on line 360

  3. твойдомен.ру/forum/admin/upgrade

    заходил?
     

    Увёл и выскочило вот это:

    Not Found

    The requested URL /forum/admin/upgrade was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    Apache/2 Server at мой домен Port 80
  4. Добрый вечер пользователи данного форума )) У меня появилась ошибка когда закачал движок IPS, потом перехожу по ссылке на свой форум что бы приступить к установке появилось это: 

    Fatal error: IPS\_Db::i(): Failed opening required '/home/state54/domains/statetexas-rp.su/public_html/forum/conf_global.php' (include_path='.:/opt/php54/lib/php') in /home/state54/domains/statetexas-rp.su/public_html/forum/system/Db/Db.php on line 103

    Подскажите пожалуйста что делать мне я в это 0000000000000000000000000000000000000 ))

×
×
  • Создать...