View Single Post
ישן 31-08-09, 11:10   # 8
SmartSeo
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Jan 2008
הודעות: 531

SmartSeo לא מחובר  

הנה עוד 2 קבצים שקשורים אולי זה יעזור:
PHP קוד:
<?php

ob_start
();
echo <<<html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1255">
</head>
</html>
html;

define('INSIDE'  true);
define('INSTALL' false);

$ugamela_root_path './';
include(
$ugamela_root_path 'extension.inc');
include(
$ugamela_root_path 'common.' $phpEx);

    
includeLang('chat');
    
$BodyTPL gettemplate('chat_body');

    
$nick $user['username'];
    
$parse $lang;

    
$page parsetemplate($BodyTPL$parse);
    
display($page$lang['Chat'], false);


?>

והקובץ השני:
PHP קוד:
<?php



define
('INSIDE'  true);
define('INSTALL' false);

$ugamela_root_path './';
include(
$ugamela_root_path 'extension.inc');
include(
$ugamela_root_path 'common.' $phpEx);

    if (isset(
$_POST["msg"]) && isset($user['username'])) {
       
$nick trim (str_replace ("+","plus",$user['username']));
       
$msg  trim (str_replace ("+","plus",$_POST["msg"]));
       
$msg  addslashes ($_POST["msg"]);
       
$nick addslashes ($user['username']);
    }
    else {
       
$msg="";
       
$nick="";
    }

    if (
$msg!="" && $nick!="") {
       
$query doquery("INSERT INTO {{table}}(user, message, timestamp) VALUES ('".$nick."', '".$msg."', '".time()."')""chat");
    }

?>
  Reply With Quote