PHP Classes

PHP Chat Room System with Chat Text: Exchange text messages between Web site users

Recommend this page to a friend!
  Info   View files Example   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 125 This week: 1All time: 9,422 This week: 560Up
Version License PHP version Categories
chattext 1.0.0The PHP License5PHP 5, Databases, Chat
Description 

Author

This package can exchange text messages between Web site users.

It allows users to register to a site to send chat messages to other registered users.

The package stores the information records of users and the messages they send to each other in a MySQL database that the package classes access using PDO.

Picture of António Lira Fernandes
Name: António Lira Fernandes <contact>
Classes: 11 packages by
Country: Portugal Portugal
Age: ???
All time rank: 240434 in Portugal Portugal
Week rank: 52 Up2 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

Example

<?php
//@session_start();

ini_set("error_reporting", E_ALL);

require_once
__DIR__ . '/../config.php';
require_once
__DIR__ . '/../bootstrap.php';
use
classes\authentication\Authentication;
use
classes\db\Database;
use
classes\db\TableBD;

$aut= new Authentication();
$userId=$aut->getIdUser();

//$outro["url"]="/erro401.php";
//$outro["nivel"]=10;
//$aut= new ClassAutentica("nar", $outro);
//$userId=$aut->getIdUser();
//$userId=$aut->getIdUser();
//echo "<br><br>ola:" . $userId;
//if (!(($userId==NULL) || ($userId=""))){

?>


<?php

 
//echo "aqui";
 
 
  // $sql="SELECT `jos_content`.`title`, `jos_sections`.`title`, `jos_categories`.`title`, `jos_content`.`created`, `jos_users`.`name`, `jos_content`.`id`, `jos_content`.`ordering` ";
    // $sql=$sql . ",`jos_content`.`created`, `jos_content`.`created_by` ";
    // $sql=$sql . "FROM `jos_users` INNER JOIN (`jos_categories` INNER JOIN (`jos_content` INNER JOIN `jos_sections` ON `jos_content`.`sectionid` = `jos_sections`.`id`) ";
    // $sql=$sql . "ON `jos_content`.`catid` = `jos_categories`.`id`)ON `jos_content`.`created_by` = `jos_users`.`id` ORDER BY `jos_content`.`id` ; ";

  //"SELECT id, `title` FROM `jos_sections` ORDER BY `title`";

$tabela= new TableBD();
$tabela->setTemplate(_CAMINHO_TEMPLATE_ADMIN . "tables.html");
$tabela->setTitulo("Todas Mensagens");
$tabela->preparaTabela("chatText");
$tabela->setAtivaCampos("id, idSender, idDestination,msg", 'ver');

//$tabela->setCampoPass("password",0, "md5");
$tabela->setAtivaCampos("idSender, idDestination,msg", 'novo');
$tabela->setAtivaCampos("idSender, idDestination,msg", 'editar');
$tabela->setCampoLista("idSender",1,"SELECT `id`,`name` FROM `jos_users` order by `name`");
$tabela->setCampoLista("idDestination",1,"SELECT `id`,`name` FROM `jos_users` order by `name`");

//$tabela->setCampoLista("block",2,"1=>inativo,0=>ativo");
//$tabela->setPaginaVer("/public/artigo/ver/");
$tabela->setLabel('idSender',"Remetente");
$tabela->setLabel('idDestination',"Destinatário");
$tabela->setLabel('msg',"Mensagem");

//$tabela->setDefaultValue('created_by',$userId);
//$tabela->setDefaultValue('ordering',"1");
//$tabela->setDefaultValue("created_by", "$userId");
//$tabela->setJSAction('sectionid','onClick="FilterItems(this.value);"');
//$tabela->setCriterio('publish_up>"2019-01-01"');
//$tabela->preparaSQLparaAccao('novo');
//$tabela->fazlista();
//$tabela->includes();
//$tabela->formulario();
$tabela->fazHTML();

//}
?>


Details

// -------------------------------------------------------------------------------- // @version 1.0 - readme.txt // -------------------------------------------------------------------------------- // License GNU/LGPL - March 2021 // @author António Lira Fernandes - alf@esmonserrate.org // https://github.com/alfZone // --------------------------------------------------------------------------------

0 - Sommaire

1 - Introduction
2 - What's new
3 - Corrected bugs
4 - Known bugs or limitations
5 - License
6 - Warning
7 - Documentation
8 - Author
9 - Contribute

1 - Introduction

# chatText The chatTex is a system for sending messages between registered users on a website. Is indicate for the framework in use for more details contact me. Documentation can be found at https://github.com/alfZone/chatText/wiki

2 - What's new

  

3 - Corrected bugs

4 - Known bugs or limitations

Does not allow sending the same message to multiple destinations.

5 - License

Is released under GNU/LGPL license. This library is free, so you can use it at no cost.

I will also appreciate that you send me a mail (alf@esmonserrate.org), just to be aware that someone is using #tabledb.

For more information about GNU/LGPL license : http://www.gnu.org

6 - Warning

This library and the associated files are non commercial, non professional work. It should not have unexpected results. However if any damage is caused by this software the author can not be responsible. The use of this software is at the risk of the user.

7 - Documentation

Documentation can be found at https://github.com/alfZone/chatText/wiki

8 - Author

This software was written by António Lira Fernandes (alf@esmonserrate.org) on its leasure time.

9 - Contribute

If you want to contribute to the development of FILE, please contact alf@esmonserrate.org.


  Files folder image Files  
File Role Description
Files folder imageadministrator (1 file)
Files folder imageapp (1 file)
Files folder imageclasses (3 directories)
Files folder imagejs (1 directory)
Accessible without login Plain text file ChatText.sql Data Auxiliary data
Accessible without login Plain text file index.html Data HTML Template
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  administrator  
File Role Description
  Accessible without login Plain text file chatGerir.php Example Example script

  Files folder image Files  /  app  
File Role Description
  Plain text file ControllerChat.php Class Class source

  Files folder image Files  /  classes  
File Role Description
Files folder imageauthentication (1 file)
Files folder imagechat (1 file)
Files folder imagedb (2 files)

  Files folder image Files  /  classes  /  authentication  
File Role Description
  Plain text file Authentication.php Class Class source

  Files folder image Files  /  classes  /  chat  
File Role Description
  Plain text file ChatText.php Class Class source

  Files folder image Files  /  classes  /  db  
File Role Description
  Plain text file Database.php Class Class source
  Plain text file LayerDB.php Class Class source

  Files folder image Files  /  js  
File Role Description
Files folder imagecode (1 file)

  Files folder image Files  /  js  /  code  
File Role Description
  Accessible without login Plain text file chat.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:125
This week:1
All time:9,422
This week:560Up