Dein Menü

Willkommen Gast. Bitte einloggen oder registrieren.
23. Mai 2012, 21:27:42

Einloggen mit Benutzername, Passwort und Sitzungslänge

Sprache wählen:

Spenden

Donate für den POC!
Deine Spende hilft dem Support, der Erhaltung des Chats und diesem Portal.

Anzeige Amazon

* Chartermember

* Bookmark

Bookmark and Share

* Werbung

vodafone.de
Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on OneviewShare this topic on RedditShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Autor Thema: poc und nuke 7.5  (Gelesen 1815 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline erald

  • Neuling
  • *
  • Beiträge: 1
  • Karma: 0
poc und nuke 7.5
« am: 11. Januar 2005, 00:47:32 »
Werde es mahl auf Deutsch versugen.

Ich habe die chat laufende stand alone ohne viel probleme. Jetzt wil ich das ganze intergrieren in pHP NUke aber habe da einige probleme.

Ich komme ins chat windows aber keine user ist da. Kan einfach chatten aber die user wird nicht angegeben.

Jetzt habe ich einiges analysuert und komme zu folgendes.
Eine registrierte nuke user wird in die database poc geschrieben aber ohne nick name, user und name. Dass email addresse usw ist da. Hab poc.php shon nach geschaut aber bin keine pHP porgramierer also ist mir nicht ganz klar wieso das nicht functioniert.

Hier ist meine poc.php
<?php //-*-php-*-
/*   ********************************************************************   **
**   Copyright notice                                                       **
**                                                                          **
**   (c) 1995-2004 PHPOpenChat Development Team                             **
**   http://phpopenchat.sourceforge.net/                                    **
**                                                                          **
**   All rights reserved                                                    **
**                                                                          **
**   This script is part of the PHPOpenChat project. The PHPOpenChat        **
**   project is free software; you can redistribute it and/or modify        **
**   it under the terms of the GNU General Public License as published by   **
**   the Free Software Foundation; either version 2 of the License, or      **
**   (at your option) any later version.                                    **
**                                                                          **
**   The GNU General Public License can be found at                         **
**   http://www.gnu.org/copyleft/gpl.html.                                  **
**   A copy is found in the textfile GPL and important notices to the       **
**   license from the team is found in the textfile LICENSE distributed     **
**   with these scripts.                                                    **
**                                                                          **
**   This script is distributed in the hope that it will be useful,         **
**   but WITHOUT ANY WARRANTY; without even the implied warranty of         **
**   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          **
**   GNU General Public License for more details.                           **
**                                                                          **
**   This copyright notice MUST APPEAR in all copies of the script!         **
**   ********************************************************************   */

/*
  $Author: letreo $
  $Date: 2004/05/08 18:53:00 $
  $Source: /cvsroot/phpopenchat/chat3/contrib/phpnuke/Attic/poc.php,v $
  $Revision: 1.1.2.2 $
*/

//NOTE: This script is programmed by DJ_pandur2000 an member of our german support forum at
//<http://www.phpopenchat.de/>
//If you have any question don't hesitate to contact
//DJ_Pandur2000 <pandur@pandur2000.com> <http://pandur2000.com/>

include("header.php");
OpenTable(); $index=0;


//PHPOpenChat properties
/*
supposition is, you have installed phpnuke and PHPOpenChat within the document root
of your webserver side by side.

<http://your.host.tld>
                      |
                      +</nuke>
                      |
                      +</phpopenchat>
*/

$poc_doc_root  '/phpchat';
$poc_root_path './../phpchat';

// Scripteinstellungen // Scriptsettings

$dbhost "localhost";         // 'localhost' or 'www.yoursiteurl.com' if on a remote site
$dbuser "nuke";           // username
$dbpwd "xxxxxxx";            // password
$dbname "nuke";       // the name of your database


$mysqlconnect = @mysql_connect($dbhost,$dbuser,$dbpwd);


$channelname 'Karis Chat'//Welcher Channel soll betreten werden
$deftheme 'openchat'// POC default Theme -- POC Standard Theme
$siteurl 'http://www.xxxxxxxx.be'// Deine Domain URL -- Your Domain URL -- without ending  "/"
$nuke_prefix 'nuke_'// Prefix of phpnuke tables // Prefix der PHPnuke Tabellen.. Meist "nuke_"


// User oder Gast? -- User or Guest?


if ($cookie[1] == "") {

// Wenn Gastbenutzer, dann gebe folgenden Inhalt aus (anpassen bitte)
// If Guest, output the following and exit (please, edit ;) )

echo"<table class='fonts' width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td><p><font size='2' face='Georgia, Times New Roman, Times, serif'><strong><font face='Verdana, Arial, Helvetica, sans-serif'>

Sorry, no guest Login!!

    </td>
  </tr>
</table>"
;
CloseTable();

exit;
}


if (
$cookie[1] != "") {
    
$sql2 "SELECT * FROM ".$nuke_prefix."users WHERE user_id='$cookie[0]'";
    
$con2 mysql_db_query($dbname,$sql2,$mysqlconnect);
    
$list2 mysql_fetch_assoc($con2);

$userid $cookie[0];




$username $list2["username"];

if( 
$username != 'Anonymous' ){
  require_once(
$poc_root_path.'/config.inc.php');
  require_once(
POC_INCLUDE_PATH.'/class.Chatter.inc');
  require_once(
POC_INCLUDE_PATH.'/adodb/adodb.inc.php');

  
$chatter = &new POC_Chatter();
  
$chatter->set_nick($list2[username]);

  
$current_chatter $chatter;//save current

  
$chatter->set_user($list2[username]);
  
$chatter->set_email($list2[user_email]); //is hidden by default
  
$chatter->set_name($list2[username]);
  
$chatter->set_homePageURL($list2[user_website]);
  
$chatter->set_icqNumber($list2[user_icq]);
 
// $chatter->set_motto($list2[12]);
  
$chatter->set_aimNickname($list2[user_aim]);
  
$chatter->set_yimNickname($list2[user_yim]);
  
$chatter->set_interests($list2[user_interests]);
  if( !empty(
$list2[user_gender]) ) $gender = ($list2[user_gender]=='1')? 'm':'f';
  
$chatter->set_gender($gender);
  unset(
$gender);
  
$chatter->set_birthday($list2[user_age]);

  
$chatter->set_theme'openchat' );//use default theme of PHPOpenChat

  
if( $list2[user_rank] == '1' ){
    
$chatter->add_to_group('operator');
  }

  if( !empty(
$list2[user_lang]) ){
    
$chatter->set_preferred_language($list2[user_lang]);
  }

  
//do not send registration mails
  
$chatter->set_skip_email();

  if( 
$current_chatter != $chatter ){

echo "current is ongelijk chatters";
    if( !
$chatter->is_registered()) {
echo "chatter registered";
      
$chatter->register();
    } else {
echo "chatter update";
      
$chatter->update();
    }
  }

  unset(
$current_chatter);

  
$chatter->mkinstance_persist();
  unset(
$chatter);


  
header('Status: 301');
  
header('Location: '.$siteurl.''.$poc_doc_root.'/index.php?use_db_instance='$username .'&channel='.$channelname.'');
  exit;
}else{
  die(
'No guest login possible to the chat!');
}

}
CloseTable();
include(
"footer.php");

?>

Hoffe jemanden hat eine ahnung was hier los ist.

POC -PhpOpenChat- Portal

« am: »

Tags:
 

Bequem im Web suchen direkt von hier!

Benutzerdefinierte Suche

Anzeige

www.medionshop.de

Unser Server

www.strato.de -> hier klicken

* Domain Frei?

* Anzeige

Multi Suche


Web
www.phpopenchat.de
www.h-h-c.de

* Networks

Follow Phpopenchat on Twitter
Portal Management Extension PortaMx v0.980-1 | PortaMx © 2008-2010 by PortaMx corp.