Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Pro1

Użytkownik
  • Postów

    5
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez Pro1

  1. mam taką ścieżkę /home/serwer/public_html/forum/ 

     

     

    <?php

    /**
    * <pre>
    * Invision Power Services
    * Admin control panel gateway index.php file
    * Last Updated: $Date: 2012-03-05 12:33:57 -0500 (Mon, 05 Mar 2012) $
    * </pre>
    *
    * @author         $Author: bfarber $
    * @copyright    © 2001 - 2009 Invision Power Services, Inc.
    *
    * @package        Invision Power Board
    *
    * @version        $Rev: 10390 $
    *
    */

    /**
    * You must define the path to your IPB installation here, with a trailing slash.
    * THIS IS A PATH, NOT A URL. So, for example if this file is located in the root
    * of your site at /home/account/public_html and your forums are in a subfolder
    * named forums, you would set this to /home/account/public_html/forums/
    */
    $path_to_ipb    = './home/serwer/public_html/forum/';


    /**
    * This is the flag in the URL for database friendly URLs. You must have a flag here
    * (i.e. do not try to set this as an empty string). This also needs to be updated in
    * admin/applications_addon/ips/ccs/app_class_ccs.php as well.
    */

    if( !defined( 'DATABASE_FURL_MARKER' ) )
    {
        define( 'DATABASE_FURL_MARKER', '_' );
    }




    /**
    * ------------------------------------------------------------------------------------------
    * No editing below this line
    * ------------------------------------------------------------------------------------------
    */
    define( 'CCS_GATEWAY_CALLED', true );
    define( 'IPB_THIS_SCRIPT', 'public' );
    define( 'IPS_PUBLIC_SCRIPT', 'index.php' );
    require_once( $path_to_ipb . 'initdata.php' );/*noLibHook*/

    //-----------------------------------------
    // Get request uri
    //-----------------------------------------

    $uri    = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');

    //-----------------------------------------
    // Does URI have /index.php/ in it?
    //-----------------------------------------

    if( strpos( $uri, basename(__FILE__) . '/' ) !== false )
    {
        $myUri    = substr( $uri, ( strpos( $uri, basename(__FILE__) . '/' ) + ( strlen( basename(__FILE__) ) + 1 ) ) );
    }
    else
    {
        $myUri    = $uri;
    }

    //-----------------------------------------
    // Does URI have db marker in it
    //-----------------------------------------

    if( strpos( $myUri, '/' . DATABASE_FURL_MARKER . '/' ) !== false )
    {
        $myUri    = substr( $myUri, 0, ( strpos( $myUri, '/' . DATABASE_FURL_MARKER . '/' ) ) );
    }

    //-----------------------------------------
    // Trim off trailing slash, if present
    //-----------------------------------------

    $myUri    = rtrim( $myUri, '/' );

    //-----------------------------------------
    // What about ?key=value?
    // PHP already sets GET, but need to fix page name
    //-----------------------------------------

    if( strpos( $myUri, '?' ) !== false )
    {
        $parameters    = substr( $myUri, strpos( $myUri, '?' ) );
        $myUri        = substr( $myUri, 0, ( strlen($myUri) - strlen($parameters) ) );
    }

    //-----------------------------------------
    // Sort out folders
    //-----------------------------------------

    $uriBits    = explode( '/', $myUri );
    $myFolder    = '';

    if( count($uriBits) > 1 )
    {
        $myUri        = array_pop($uriBits);
        $myFolder    = count($uriBits) ? '/' . implode( '/', $uriBits ) : '';
        $myFolder    = ( $myFolder == '/' ) ? '' : $myFolder;
    }

    //-----------------------------------------
    // Set appropriate params for IPB
    //-----------------------------------------

    if( !$_REQUEST['app'] )
    {
        $_GET['app']        = $_POST['app']        = $_REQUEST['app']        = 'ccs';
    }

    if( !$_REQUEST['module'] )
    {
        $_GET['module']        = $_POST['module']    = $_REQUEST['module']    = 'pages';
    }

    if( !$_REQUEST['section'] )
    {
        $_GET['section']    = $_POST['section']    = $_REQUEST['section']    = 'pages';
    }

    $_GET['page']        = $_POST['page']    = $_REQUEST['page']        = $myUri;
    $_GET['folder']        = $_POST['folder']    = $_REQUEST['folder']    = $myFolder;

    //-----------------------------------------
    // Load registry and controller, and off we go
    //-----------------------------------------

    require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
    require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/

    ipsController::run();
     

    exit(); 

     

  2. Witam , 

    Chcę zrobić aby IP Content było na stronie głównej np domena.pl- ip.content forum.domena.pl -forum

     

    W paczce była instrukcja, zmieniłem ścierzkę w pliku index.php (plik z paczki folder TOOLS)

    i wysłałem go na serwer do głównego folderu public_html

    zmieniłem ustawienia w IP/Content aby kierował na domene główną i owszem kieruje lecz jest błąd 500

     

    w pliku error_log mam takie coś 

    [12-Apr-2014 18:00:35 Europe/Warsaw] PHP Fatal error:  require_once(): Failed opening required './home/serwer/public_html/forum/initdata.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:00:37 Europe/Warsaw] PHP Warning:  require_once(./home/serwer/public_html/forum/initdata.php): failed to open stream: No such file or directory in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:00:37 Europe/Warsaw] PHP Fatal error:  require_once(): Failed opening required './home/serwer/public_html/forum/initdata.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:00:37 Europe/Warsaw] PHP Warning:  require_once(./home/serwer/public_html/forum/initdata.php): failed to open stream: No such file or directory in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:00:37 Europe/Warsaw] PHP Fatal error:  require_once(): Failed opening required './home/serwer/public_html/forum/initdata.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:42:03 Europe/Warsaw] PHP Warning:  require_once(./home/serwer/public_html/forum/initdata.php): failed to open stream: No such file or directory in /home/serwer/public_html/index.php on line 50
    [12-Apr-2014 18:42:03 Europe/Warsaw] PHP Fatal error:  require_once(): Failed opening required './home/serwer/public_html/forum/initdata.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/serwer/public_html/index.php on line 50
    

    Co robię źle?

     

     

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.