diff --git a/coalfax.sql b/coalfax.sql new file mode 100644 index 0000000..28f3984 --- /dev/null +++ b/coalfax.sql @@ -0,0 +1,58 @@ +-- phpMyAdmin SQL Dump +-- version 5.0.2 +-- https://www.phpmyadmin.net/ +-- +-- PHP Version: 7.4.6 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `coalfax` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `coalburners` +-- + +CREATE TABLE `coalburners` ( + `id` mediumint(9) NOT NULL, + `name` varchar(255) NOT NULL, + `proofs` varchar(2083) NOT NULL, + `body` text NOT NULL, + `images` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `coalburners` +-- +ALTER TABLE `coalburners` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `coalburners` +-- +ALTER TABLE `coalburners` + MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..bd7d372 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "dapphp/securimage": "^4.0" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..540dcc9 --- /dev/null +++ b/composer.lock @@ -0,0 +1,71 @@ +{ + "_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": "3f808c44ea98f22ebc47f6e2479cafd7", + "packages": [ + { + "name": "dapphp/securimage", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/dapphp/securimage.git", + "reference": "09d735e30378f506c5dab900af31321351f46e0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dapphp/securimage/zipball/09d735e30378f506c5dab900af31321351f46e0d", + "reference": "09d735e30378f506c5dab900af31321351f46e0d", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "php": ">=5.4" + }, + "suggest": { + "ext-pdo": "For database storage support", + "ext-pdo_mysql": "For MySQL database support", + "ext-pdo_sqlite": "For SQLite3 database support" + }, + "type": "library", + "autoload": { + "classmap": [ + "securimage.php" + ], + "psr-4": { + "Securimage\\": "./" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Drew Phillips", + "email": "drew@drew-phillips.com" + } + ], + "description": "PHP CAPTCHA Library", + "homepage": "https://www.phpcaptcha.org", + "keywords": [ + "Forms", + "anti-spam", + "captcha", + "security" + ], + "time": "2018-03-08T17:54:43+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "1.1.0" +} diff --git a/connect.php b/connect.php new file mode 100644 index 0000000..e1817c3 --- /dev/null +++ b/connect.php @@ -0,0 +1,8 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/index.php b/index.php new file mode 100644 index 0000000..d8d0cc3 --- /dev/null +++ b/index.php @@ -0,0 +1,79 @@ + + +
+ + +ID | +Name | +Proofs | +Body | +Image(s) | +
---|---|---|---|---|
+ | + | + | + | + |