# Copyright (c) 2007 Erwan Briand # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation # # This program 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. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # ***** END LICENSE BLOCK ***** session_start(); require(dirname(__FILE__).'/include/config.inc.php'); if(isset($_POST['source'])) { if(empty($_POST['source'])) exit("Error (4)."); if(isset($_POST['captcha3'])) { $cap = $_POST['captcha1']; if ($cap == 0) $result = "4"; elseif ($cap == 1) $result = "8"; elseif ($cap == 2) $result = "6"; elseif ($cap == 3) $result = "7"; if(!isset($_POST['captcha2'])) exit("Error (0)."); else { if($_POST['captcha2'] != $result) exit("Error (1)."); } function Handler_message_normal($message) { global $JABBER; global $jid; global $ct_lang; global $racine; $body = $JABBER->GetInfoFromMessageBody($message); $date = date('d/m/Y H:i:s'); $texte = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['source']))); mysql_query("INSERT INTO ct2_jabber_fortunes (date,texte,jid) VALUES ('$date','$texte','$jid') "); $od = mysql_insert_id(); if(file_exists("rss/cache/cache-rss-rss-fortunes.xml")) unlink("rss/cache/cache-rss-rss-fortunes.xml"); $JABBER->SendMessage($jid, NULL, NULL, array("body" => CODINGTEAM_DIVERS_27." ".$racine."/affiche-".$od."-jabber_".$ct_lang.".html ")); Header("Location: ".$racine."/affiche-".$od."-jabber_".$ct_lang.".html"); exit(); } include("include/class.jabber.php"); $jid = $_POST['captcha3']; $JABBER = new Jabber(); $JABBER->server = $JABsrv; $JABBER->port = 5222; $JABBER->username = $JABid; $JABBER->password = $JABpas; $JABBER->resource = $JABbot; $JABBER->Connect(); $JABBER->SendAuth(); $JABBER->SendPresence(); $JABBER->SendMessage($jid, NULL, NULL, array("body" => CODINGTEAM_DIVERS_25)); $JABBER->CruiseControl(30); $JABBER->SendMessage($jid, NULL, NULL, array("body" => CODINGTEAM_DIVERS_26)); sleep(1); $JABBER->Disconnect(); exit("Error (2)."); } else exit("Error (3)."); } ////////////////////////////// PAGE $cadreonecat = 'communaute'; $ct_title = CODINGTEAM_GAUCHE_32.' - CodingTeam.net'; require(dirname(__FILE__).'/prepend.core.php'); ?>
conference.'.$leserveur.'
'; echo ' '; } else { $sa = explode('@', $_GET['action']); if ($sa[1] == 'codingteam') $sb = 'conference.codingteam.net'; elseif ($sa[1] == 'ubuntu-re') $sb = 'conference.jabber.ubuntu-re.org'; $sal = $sa[0].'@'.$sb; echo '
'; ?>
";
echo "
";
?>
?
'.bb_parse($row['texte']).'
'; } echo ''; if ($page>0) { $precedent=$page-1; echo "".CODINGTEAM_PROJETLIBRE_41." "; } $i=0; $j=1; if($nb_total>$nbmbr) { while($i<($nb_total/$nbmbr)) { if($i!=$page) echo" $j "; else echo" $j "; $i++; $j++; } } if($debut+$nbmbr<$nb_total) { $suivant=$page+1; echo " ".CODINGTEAM_PROJETLIBRE_42.""; } } elseif (isset($_GET['show'])) { $pd = $_GET['show']; $stock = mysql_query("SELECT * FROM ct2_jabber_fortunes WHERE id = '$pd' LIMIT 1 "); while ($row = mysql_fetch_array($stock)) { ?>
users.jabberfr.org
chat.jabberfr.org