corrade-http-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 72  →  ?path2? @ 73
/instantMessage/README.txt
@@ -13,11 +13,17 @@
* A webserver.
* PHP version 5 and beyond.
* the curl extension.
* PHP composer.
 
-:[ Setup ]:-
 
1.) Run the following command inside the directory:
 
composer require was/utilities:dev-trunk
 
in order to install all the requirements.
1.) Rename "config.php.dist" to "config.php" and edit "config.php"
to reflect your settings in Corrade.ini
to reflect your Corrade settings.
2.) Enable the Corrade permissions for your configured group:
* talk
* notifications
/instantMessage/composer.json
@@ -0,0 +1,9 @@
{
"repositories": [{
"type": "composer",
"url": "https://satis.grimore.org"
}],
"require": {
"was/utilities": "dev-trunk"
}
}
/instantMessage/composer.lock
@@ -0,0 +1,42 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "88cc596af12877df24911e220bc2ae74",
"packages": [
{
"name": "was/utilities",
"version": "dev-trunk",
"source": {
"type": "svn",
"url": "https://svn.grimore.org/was.php",
"reference": "/trunk/@11"
},
"type": "library",
"license": [
"GNU GPLv3"
],
"authors": [
{
"name": "Wizardry and Steamworks",
"email": "office@grimore.org"
}
],
"description": "Wizardry and Steamworks Utilities and Tools",
"time": "2022-03-11T21:35:58+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"was/utilities": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.0.0"
}
/instantMessage/functions.php
@@ -1,52 +1,8 @@
<?php
 
###########################################################################
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ##
###########################################################################
function atomized_put_contents($file, $data) {
$fp = fopen($file, "w+");
if (flock($fp, LOCK_EX)) {
fwrite($fp, $data);
fflush($fp);
flock($fp, LOCK_UN);
}
fclose($fp);
}
require_once('vendor/was/utilities/src/IO/IO.php');
 
###########################################################################
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ##
###########################################################################
function atomized_get_contents($file) {
$fp = fopen($file, "r+");
$ct = '';
if (flock($fp, LOCK_SH)) {
if (filesize($file)) {
$ct = fread($fp, filesize($file));
}
flock($fp, LOCK_UN);
}
fclose($fp);
return $ct;
}
 
###########################################################################
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ##
###########################################################################
function wasKeyValueGet($key, $data) {
return array_reduce(
explode(
"&",
$data
),
function($o, $p) {
$x = explode("=", $p);
return array_shift($x) != $o ? $o : array_shift($x);
},
$key
);
}
 
###########################################################################
## Copyright (C) Wizardry and Steamworks 2016 - License: GNU GPLv3 ##
###########################################################################
function storeAvatarConversation($firstname, $lastname, $message, $chatFile, $lines) {
/instantMessage/installMessage.php
@@ -11,7 +11,7 @@
###########################################################################
 
require_once('config.php');
require_once('functions.php');
require_once('vendor/was/utilities/src/formats/kvp/kvp.php');
 
###########################################################################
## INTERNALS ##
/instantMessage/sendInstantMessage.php
@@ -12,7 +12,7 @@
###########################################################################
 
require_once('config.php');
require_once('functions.php');
require_once('vendor/was/utilities/src/formats/kvp/kvp.php');
 
###########################################################################
## INTERNALS ##