All query converted to PDO::prepare().
/download
/gallery ARE NOT CONVERTED.
/install
sql file in /wphpmyadmin/data
config file /incfiles/db.php
get PDO instance :
$db=database::$db;
$db->query('....'); All query converted to PDO::prepare().
/download
/gallery ARE NOT CONVERTED.
/install
sql file in /wphpmyadmin/data
config file /incfiles/db.php
get PDO instance :
$db=database::$db;
$db->query('....'); Hi over the last week or so I started a mission coding multiple chatrooms for john cms 6.
This is my final version for now It has alot of feature for admin such as edit message,delete message, clean the room (which clears all messages in that room).
for users they can select , all messages are public, and users can see whos online in the room.
If I get some positive feedback on this coding I may provide more updates theres alot of potential.
before using please check
first of all we need to add this code to incfiles/core.php at line 85
$rid = isset($_REQUEST['rid']) ? abs(intval($_REQUEST['rid'])) : false;
and we also need to add a new function to incfiles/classes/counters.php
this function will enable us to show total amount of chatters in all rooms.
if you decide to add more rooms you will need to modify to suit your needs.
static function chatrooms()
{