Skocz do zawartości

Agent

Użytkownik
  • Postów

    15
  • Dołączył

  • Ostatnia wizyta

Informacje o forum

  • Wersja
    IP.Board 3.1.4
  • Forum
    nie mam jeszcze

Osiągnięcia Agent

Uczeń

Uczeń (3/14)

  • Pierwszy post
  • Współtwórca
  • Rozpoczęcie dyskusji
  • Pierwszy tydzień zakończony
  • Miesiąc później

Najnowsze odznaki

0

Reputacja

  1. Nie mogę dać ISO bo poleci mi session_start();. Na razie wszystkie skrypty wywołujące inne klasy, komunikujące się z bazą są w głównym pliku (tymczasowo).
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" > Wszystko jest na miejscu.
  3. Cześć. Mam dziwny problem. Po odczytaniu ostatnich tematów występują problemy z polskimi znakami. W tych co są użyte wyświetlają się inne. Kodowanie dokumentu to UTF-8. Zamiast się otrzymuje siÄ
  4. No właśnie chodziło mi o dwa hostingi Nie zrozumieliśmy się a Ty myślałeś że jestem tępy bo nie umiem skonfigurować takiej rzeczy No trudno, będę kombinować. Jeszcze jedno pytanie. Czy z tego pakietu mogę wyczytać takie info jak: - najnowsze tematy - top 10 użytkowników - dzisiejsi najaktywniejsi - ustawione ostatnie statusy
  5. Mozesz mi powiedzieć jak to skonfigurować? Mam dwie domeny i dwa hostingi. Podałem adresy wcześniej.
  6. A czy jest to bezpieczne rozwiązanie? Skoro ja będę miał dostęp do skryptu to inni znający ścieżkę do pliku też będą potrafili go użyć...
  7. No dobra to jak to rozwiązać?
  8. Mój plik konfiguracyny: <?php /** * @desc Please edit this configuration file to get your ipbwi installation work. * @copyright 2007-2010 IPBWI development team * @package config * @author Matthias Reuter ($LastChangedBy: matthias $) * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License * @version $LastChangedDate: 2009-08-26 19:19:41 +0200 (Mi, 26 Aug 2009) $ * @since 2.0 * @link http://ipbwi.com * @ignore */ /** * The full qualified filesystem path to the folder of your IPB installation. * You must add a trailing slash. * * Example path: '/home/public_html/community/forums/' */ if(!defined('ipbwi_BOARD_PATH')){ define('ipbwi_BOARD_PATH','/domains/openhost.pl/public_html/'); } /** * The full qualified filesystem path to the folder of your IPB Admin directory. * You must add a trailing slash. * * Example path: '/home/public_html/community/forums/admin/' */ if(!defined('ipbwi_BOARD_ADMIN_PATH')){ define('ipbwi_BOARD_ADMIN_PATH',ipbwi_BOARD_PATH.'admin/'); } /** * The full qualified filesystem path to the folder of your IPBWI installation. * You must add a trailing slash. * * Example path: '/home/public_html/website/ipbwi/' */ if(!defined('ipbwi_ROOT_PATH')){ define('ipbwi_ROOT_PATH','/domains/openhost.pl/public_html/ipbwi/'); } /** * The base-URL of your website. This is needed to get the live-examples viewed properly. * You must add a trailing slash. * * Example url: 'http://ipbwi.com/examples/' */ if(!defined('ipbwi_WEB_URL')){ define('ipbwi_WEB_URL','http://www.ipbtest1.yoyo.pl/examples/'); } /** * Make login possible on a different domain as the domain where the board is installed. * * If not set, the board's cookie domain will be used. * Do not touch this setting, if you don't know how to use it. * * Please insert a dot before the domain. * Example: .domain.com * Example for subdomain: .site.domain.com */ if(!defined('ipbwi_COOKIE_DOMAIN')){ define('ipbwi_COOKIE_DOMAIN','openhost.pl'); } /** * IP.board 2 does not support natively UTF-8 character encoding. * Turn this option to true, if you want to get all output-strings * in UTF-8 encoding, otherwise turn to false to get them in ISO encoding. */ if(!defined('ipbwi_UTF8')){ define('ipbwi_UTF8',true); } /** * If you want to define another prefix for ipbwi-tables in your board's database, * you are able to define it here. */ if(!defined('ipbwi_DB_prefix')){ define('ipbwi_DB_prefix','ipbwi_'); } /** * The Default IPBWI Language Pack. * * Language packs should be named XX.inc.php where 'XX' is the * language and be situated in the lib/lang/ folder. * By default, this uses the "en" (English) language pack. */ if(!defined('ipbwi_LANG')){ define('ipbwi_LANG','en'); } /** * Set a forced encoding. * * If you set a encoding here this encoding will be forced instead * of the encoding that is given in the language pack you use. * By default false * e.g. give value like 'ISO-8859-1' * Notice: This will also overwrite ipbwi_UTF8! */ if(!defined('ipbwi_OVERWRITE_ENCODING')){ define('ipbwi_OVERWRITE_ENCODING', false); } /** * Set a forced localisation. * * If you set a localisation here this localisation will be forced * instead of the localisation given in the language pack you use. * By default false * e.g. give value like 'de_DE' * More informations: http://php.net/setlocale */ if(!defined('ipbwi_OVERWRITE_LOCAL')){ define('ipbwi_OVERWRITE_LOCAL', false); } /** * The IPBWI captcha mode. * * Choose between 'gd' for forcing a GD based captcha, 'recaptcha' for using reCaptcha. * Otherwise you can choose 'auto', this will take the method that is configured in * your IP.Board. */ if(!defined('ipbwi_CAPTCHA_MODE')){ define('ipbwi_CAPTCHA_MODE','auto'); } /** * The recaptcha public key from the board */ if(!defined('ipbwi_RECAPTCHA_PUBLIC_KEY')){ define('ipbwi_RECAPTCHA_PUBLIC_KEY', '6Lcl1rwSAAAAAG3JJSiAnTyAPwO8BQAZDegKIUIJ '); } /** * The recaptcha private key from the board */ if(!defined('ipbwi_RECAPTCHA_PRIVATE_KEY')){ define('ipbwi_RECAPTCHA_PRIVATE_KEY', '6Lcl1rwSAAAAADYb2N92hphwEzV41gHwMmKme2wt '); } /** * Set on 'true' if you use the IPBWI in your IPB installation, otherwise 'false' */ if(!defined('ipbwi_IN_IPB')){ define('ipbwi_IN_IPB', false); } ?> Tak mam skonfigurowany plik. Folder ipbwi obok głównych folderów na serwerze forum. Folder examples na serwerze drugim. W przykładowym examples zmieniam kod: <?php /** * @desc This file is only an example for loading IPBWI. Feel free to copy * this code to your own website files. * @copyright 2007-2010 IPBWI development team * @package liveExample * @author Matthias Reuter ($LastChangedBy: matthias $) * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License * @version $LastChangedDate: 2008-09-19 18:49:53 +0000 (Fr, 19 Sep 2008) $ * @since 2.0 * @link http://ipbwi.com * @ignore */ // Initialization $pageTitle = false; require_once('http://openhost.pl/ipbwi/ipbwi.inc.php'); require_once('lib/php/includes.inc.php'); echo $ipbwi->sysInfo(); // Error Output echo $ipbwi->printSystemMessages(); ?> Otrzymuje błąd: Warning: main(http://openhost.pl/ipbwi/ipbwi.inc.php) [function.main]: failed to open stream: Connection refused in /var/www/sites/yoyo.pl/i/p/ipbtest1/examples/info.php on line 17
  9. No dobra, na razie muszę skonfigurować żeby cokolwiek ruszyło
  10. Witam. Mam dwie domeny: www.a.pl - forum www.b.pl - strona Jak mam skonfigurować ten plik? Rozumiem że ma znajdować się na serwerze z forum?
  11. Witam jeszcze raz. Czy konfiguracja jest trudna? Nie mam jeszcze tych bibliotek i chciałbym wcześniej się dowiedzieć. Na czym ona polega?
  12. function load_user() { $user = $this->input->cookie("member_id"); // get user id from cookie return $user; if ($user<>"") { $session=$this->input->cookie("session_id"); // check session data matches if ($session<>"") // we have session data verify it { $this->db->select('member_id'); $this->db->where('id',$session); $query=$this->db->get('board_sessions'); if ($query->num_rows()==1) { $row=$query->row(); if ($row->member_id==$user) { $this->db->where("member_id",$user); $query=$this->db->get('board_members'); if ($query->num_rows()==1) { $this->user_id=$user; $this->user=$query->row_array(); } } } } } } Zależy mi tylko na sprawdzaniu czy użytkownik jest zalogowany na forum www.adres.pl.
  13. Witam, Mam następującą strukturę: - pliki forum - ....... - index2.php - SDK -- Classes -- IPBSDK.php -- SDKConfig.php index2.php: <?php ob_start(); require_once('SDK/IPBSDK.php'); $sdk = IPBSDK::instance(); $login = $sdk->getClass('login'); $self = $_SERVER['PHP_SELF']; if( $sdk->request['dologin'] ) { $login->authLogin( 'admin', 'test' ); header('Location: ' . $self); } if( $sdk->request['logout'] ) { $login->logOut(); header('Location: ' . $self); } if( !$login->isLoggedIn() ) { echo "You are not logged in.<Br/>"; echo "Please <a href='{$self}?dologin=1'>Here</a> to login as admin."; } else { echo "Welcome, {$sdk->memberData['members_display_name']} <Br/>"; echo "Please <a href='{$self}?logout=1'>Here</a> to logout."; } SDKConfig.php <?php /** * IP.Board 3.0 SDK * * Written by InvisionModding.com Staff Team * * Last Updated: $Date: 2009-07-29 12:00:50 +0300 (Wed, 29 Jul 2009) $ * * @author $Author: vadimg88 $ * @copyright (c) 2009 - InvisionModding.com * @license http://www.invisionpower.com/community/board/license.html * @package Invision Power Board * @subpackage IPB SDK * @link http://www.InvisionModding.com * @version $Rev: 3 $ * */ /** * Define the fill path to your forums root directory * Where index.php, initdata.php, conf_global.php files located * You must put a forward slash at the end of the directory! * * Example: C:/wamp/www/ipb300/ */ define( 'IPB_FULL_PATH', '/' ); /** * Define the main IPB SDK directory * * Usually this should be set automatically, But if you see * All sorts of Warning: require_once(SDKConfig.php) [function.require-once]: * failed to open stream: No such file or directory in C:\wamp\www\community\SDK\Classes\SDKLoader.php on line 38 * * Then enter the path to the SDK directory manually the * full path including a trailing slash * */ define('SDK_ROOT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR ); require_once('IPBSDK.php'); Cały czas uzyskuje błąd: You must define the full path to the IPB directory in the SDKConfig.php file. Jaką podać ścieżkę?
  14. Witam, Chciałbym użyć kodu tego co znajduje się w tym dziale. Chodzi mi o IP Board session. Jak to użyć? Gdzie zaznaczyć z którym forum ma współpracować
  15. Witam, Uważam że moja strona jest zbudowana bezpiecznie. Ma sporo zabezpieczeń. Moje pytanie, jak bezpiecznie pobierać informacje z bazy forum na innej stronie (inne domeny). Czy normalnie łączyć się i wyciągać informacje? Głównie zależy na statystycznych danych niż na konkretnych użytkownikach czy postach. Jakieś sugestie
×
×
  • 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ę.