corrade-http-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 69  →  ?path2? @ 70
File deleted
/downloadTexture/functions.php
/downloadTexture/README.txt
@@ -8,18 +8,26 @@
* A modern browser: Chome, Opera, Firefox, Safari...
* A webserver.
* PHP version 5 and beyond.
* the curl extension.
* the gd extension (libgd).
* the PHP curl extension.
* the PHP gd extension (libgd).
* PHP composer
 
-:[ Setup ]:-
 
1.) Rename "config.php.dist" to "config.php" and edit "config.php"
to reflect your settings in Corrade.ini
2.) Enable the Corrade permissions for your configured group:
1.) Run the following command inside the directory:
 
composer require was/utilities:dev-trunk
 
in order to install all the requirements.
2.) Rename "config.php.dist" to "config.php" and edit "config.php"
to reflect your Corrade settings.
3.) Enable the Corrade permissions for your configured group:
 
* interact
3.) Place the all the files in a directory on your webserver.
4.) Navigate to downloadTexture.html in your browser and enjoy.
 
4.) Place the all the files in a directory on your webserver.
5.) Navigate to downloadTexture.html in your browser and enjoy.
 
-:[ References ]:-
 
[1] Corrade - http://grimore.org/secondlife/scripted_agents/corrade
/downloadTexture/composer.json
@@ -0,0 +1,9 @@
{
"repositories": [{
"type": "composer",
"url": "https://satis.grimore.org"
}],
"require": {
"was/utilities": "dev-trunk"
}
}
/downloadTexture/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"
}
/downloadTexture/downloadTexture.html
@@ -10,7 +10,7 @@
<meta name="description" content="Retrieving and Displaying an In-World Texture">
<meta name="author" content="Wizardry and Steamworks">
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#download").click(function(e) {
/downloadTexture/downloadTexture.php
@@ -12,7 +12,7 @@
###########################################################################
 
require_once('config.php');
require_once('functions.php');
require_once('vendor/was/utilities/src/formats/kvp/kvp.php');
 
###########################################################################
## INTERNALS ##
@@ -65,6 +65,7 @@
die;
}
 
 
####
# II. Convert the image data to a PNG of size 512x512
$im = imagescale(