Deprecated: Tightenco\Collect\Support\Arr::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Arr.php on line 188
Deprecated: Tightenco\Collect\Support\Arr::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Arr.php on line 217
Deprecated: Tightenco\Collect\Support\Collection::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 379
Deprecated: Tightenco\Collect\Support\Collection::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 397
Deprecated: Tightenco\Collect\Support\Collection::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 741
Deprecated: Tightenco\Collect\Support\Traits\EnumeratesValues::times(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 162
Deprecated: Tightenco\Collect\Support\Traits\EnumeratesValues::whenEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 482
Deprecated: Tightenco\Collect\Support\Traits\EnumeratesValues::whenNotEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 496
Deprecated: Tightenco\Collect\Support\Traits\EnumeratesValues::unlessEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 510
Deprecated: Tightenco\Collect\Support\Traits\EnumeratesValues::unlessNotEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 524
Deprecated: Tightenco\Collect\Support\Traits\Conditionable::when(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/Conditionable.php on line 21
Deprecated: Tightenco\Collect\Support\Traits\Conditionable::when(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/Conditionable.php on line 21
Deprecated: Tightenco\Collect\Support\Traits\Conditionable::unless(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/Conditionable.php on line 53
Deprecated: Tightenco\Collect\Support\Traits\Conditionable::unless(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Traits/Conditionable.php on line 53
Deprecated: Tightenco\Collect\Support\Enumerable::times(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 40
Deprecated: Tightenco\Collect\Support\Enumerable::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 298
Deprecated: Tightenco\Collect\Support\Enumerable::when(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 310
Deprecated: Tightenco\Collect\Support\Enumerable::when(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 310
Deprecated: Tightenco\Collect\Support\Enumerable::whenEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 321
Deprecated: Tightenco\Collect\Support\Enumerable::whenNotEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 332
Deprecated: Tightenco\Collect\Support\Enumerable::unless(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 344
Deprecated: Tightenco\Collect\Support\Enumerable::unlessEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 355
Deprecated: Tightenco\Collect\Support\Enumerable::unlessNotEmpty(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 366
Deprecated: Tightenco\Collect\Support\Enumerable::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 478
Deprecated: Tightenco\Collect\Support\Enumerable::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/Enumerable.php on line 620
Deprecated: Tightenco\Collect\Support\LazyCollection::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 430
Deprecated: Tightenco\Collect\Support\LazyCollection::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 454
Deprecated: Tightenco\Collect\Support\LazyCollection::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 734
Deprecated: DI\Bridge\Slim\Bridge::create(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/php-di/slim-bridge/src/Bridge.php on line 25
Deprecated: ParsedownExtra::blockSetextHeader(): Implicitly marking parameter $Block as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/erusev/parsedown-extra/ParsedownExtra.php on line 241
Deprecated: Parsedown::blockSetextHeader(): Implicitly marking parameter $Block as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/erusev/parsedown/Parsedown.php on line 715
Deprecated: Parsedown::blockTable(): Implicitly marking parameter $Block as nullable is deprecated, the explicit nullable type must be used instead in /usr/share/nginx/html/app/vendor/erusev/parsedown/Parsedown.php on line 853
PK- ZZ Canvas/index.html SV
Infinite Canvas
PKز PK- ZZ Infinite-Canvas/README.md SV # Infinite Canvas Project
This project implements an infinite canvas where users can draw and interact with tiles. Each tile is uploaded to a RESTful server when it changes, allowing for dynamic updates and storage.
## Project Structure
```
infinite-canvas-project
├── backend
│ ├── db
│ │ └── schema.sql # SQL schema for the database
│ ├── public
│ │ └── index.php # Entry point for the backend application
│ ├── src
│ │ ├── config.php # Configuration settings for the backend
│ │ ├── db.php # Database connection management
│ │ └── upload_tile.php # Handles tile uploads from the frontend
├── frontend
│ ├── css
│ │ └── styles.css # Styles for the frontend application
│ ├── js
│ │ └── canvas.js # JavaScript for infinite canvas functionality
│ └── index.html # Main HTML file for the frontend application
└── README.md # Documentation for the project
```
## Setup Instructions
### Backend
1. Navigate to the `backend` directory.
2. Create a database and run the SQL schema located in `db/schema.sql` to set up the necessary tables.
3. Configure the database connection settings in `src/config.php`.
4. Deploy the backend using a PHP server (e.g., Apache, Nginx).
### Frontend
1. Navigate to the `frontend` directory.
2. Open `index.html` in a web browser to view and interact with the infinite canvas.
3. Ensure the backend server is running to handle tile uploads.
## Features
- Infinite canvas for drawing
- Tile-based storage system
- RESTful API for tile uploads
- Dynamic updates to the canvas
## Technologies Used
- PHP for backend development
- MySQL for database management
- HTML, CSS, and JavaScript for frontend development
## Contributing
Feel free to submit issues or pull requests for improvements and bug fixes.PKE PK- ZZ % Infinite-Canvas/backend/db/schema.sql SV CREATE TABLE tiles (
id INT AUTO_INCREMENT PRIMARY KEY,
tx INT NOT NULL,
ty INT NOT NULL,
image LONGBLOB NOT NULL,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
UNIQUE KEY unique_tile (tx, ty)
);PKmW PK- ZZ ( Infinite-Canvas/backend/public/index.php SV "GET request received."]);
break;
case 'OPTIONS':
// Handle preflight requests
break;
default:
http_response_code(405);
echo json_encode(["message" => "Method not allowed."]);
break;
}
?>PKD;g g PK- ZZ &