From 82b15483c34a2acd9afdb7d7794bc3b0f2954e2d Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 19 Feb 2016 22:49:00 +0100 Subject: [PATCH] half migration thing --- cron.php | 3 - libraries/Console/Application.php | 4 + libraries/Console/Command/ServeCommand.php | 23 +++ libraries/Controllers/Forums.php | 1 - libraries/Controllers/Meta.php | 1 - libraries/Controllers/Premium.php | 1 - libraries/Controllers/User.php | 1 - libraries/Forum/Forum.php | 1 - libraries/Forum/Post.php | 1 - libraries/Forum/Thread.php | 1 - libraries/Migration/IMigration.php | 27 +++ libraries/Utils.php | 2 +- mahou | 34 ++++ .../2015_03_08_104200_initial_structure.php | 185 ++++++++++++++++++ ...2015_04_01_172649_info_pages_and_nulls.php | 48 +++++ ...15_04_06_200332_rename_groups_to_ranks.php | 32 +++ ...04_12_015057_tenshi_and_profile_fields.php | 41 ++++ migrations/2015_04_19_125809_action_codes.php | 27 +++ ...5_04_27_003820_add_profile_field_types.php | 28 +++ .../2015_05_05_061836_faq_forum_and_socks.php | 110 +++++++++++ .../2015_05_08_174736_notifications_table.php | 38 ++++ .../2015_05_24_143425_bread_of_the_future.php | 14 ++ sakura.php | 7 - serve.bat | 3 - serve.sh | 3 - 25 files changed, 612 insertions(+), 24 deletions(-) create mode 100644 libraries/Console/Command/ServeCommand.php create mode 100644 libraries/Migration/IMigration.php create mode 100644 mahou create mode 100644 migrations/2015_03_08_104200_initial_structure.php create mode 100644 migrations/2015_04_01_172649_info_pages_and_nulls.php create mode 100644 migrations/2015_04_06_200332_rename_groups_to_ranks.php create mode 100644 migrations/2015_04_12_015057_tenshi_and_profile_fields.php create mode 100644 migrations/2015_04_19_125809_action_codes.php create mode 100644 migrations/2015_04_27_003820_add_profile_field_types.php create mode 100644 migrations/2015_05_05_061836_faq_forum_and_socks.php create mode 100644 migrations/2015_05_08_174736_notifications_table.php create mode 100644 migrations/2015_05_24_143425_bread_of_the_future.php delete mode 100644 serve.bat delete mode 100644 serve.sh diff --git a/cron.php b/cron.php index 9084d43..56ab8af 100644 --- a/cron.php +++ b/cron.php @@ -17,9 +17,6 @@ if (function_exists('posix_getuid')) { // Define that this page won't require templating define('SAKURA_NO_TPL', true); -// To prevent the CLI from showing up -define('SAKURA_CRON', true); - // Include components require_once 'sakura.php'; diff --git a/libraries/Console/Application.php b/libraries/Console/Application.php index 1f7d56f..a4066db 100644 --- a/libraries/Console/Application.php +++ b/libraries/Console/Application.php @@ -30,6 +30,10 @@ class Application extends \CLIFramework\Application */ public function init() { + // Execute the original init function parent::init(); + + // Add commands with class reference because the autoloader is retarded + $this->command('serve', Command\ServeCommand::class); } } diff --git a/libraries/Console/Command/ServeCommand.php b/libraries/Console/Command/ServeCommand.php new file mode 100644 index 0000000..cdb8104 --- /dev/null +++ b/libraries/Console/Command/ServeCommand.php @@ -0,0 +1,23 @@ + + */ +interface IMigration +{ + /** + * Upgrade the database to a newer version. + */ + public function up(); + + /** + * Downgrade the database to an older version. + */ + public function down(); +} diff --git a/libraries/Utils.php b/libraries/Utils.php index d83b0d5..ed844b6 100644 --- a/libraries/Utils.php +++ b/libraries/Utils.php @@ -61,7 +61,7 @@ class Utils $errfile = str_replace(ROOT, '', $errfile); // Attempt to log the error to the database - if (Database::$database !== null) { + if (DB::$db !== null) { // Encode backtrace data $backtrace = base64_encode(json_encode(debug_backtrace())); diff --git a/mahou b/mahou new file mode 100644 index 0000000..30cfdd3 --- /dev/null +++ b/mahou @@ -0,0 +1,34 @@ +run($argv); + } catch (InvalidOptionException $e) { + die($e->getMessage()); + } +} else { + echo 'Why would you even try to run a console app through a browser?'; +} diff --git a/migrations/2015_03_08_104200_initial_structure.php b/migrations/2015_03_08_104200_initial_structure.php new file mode 100644 index 0000000..9934540 --- /dev/null +++ b/migrations/2015_03_08_104200_initial_structure.php @@ -0,0 +1,185 @@ +execute(); + + // Create bans table + DB::prepare("CREATE TABLE `{prefix}bans` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `uid` bigint(128) unsigned NOT NULL, + `ip` varchar(255) COLLATE utf8_bin NOT NULL, + `type` tinyint(1) unsigned NOT NULL, + `timestamp` int(64) unsigned NOT NULL, + `bannedtill` int(64) unsigned NOT NULL, + `modid` bigint(128) unsigned NOT NULL, + `modip` varchar(255) COLLATE utf8_bin NOT NULL, + `reason` varchar(255) COLLATE utf8_bin DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create config table + DB::prepare("CREATE TABLE `{prefix}config` ( + `config_name` varchar(255) COLLATE utf8_bin NOT NULL, + `config_value` varchar(255) COLLATE utf8_bin NOT NULL + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create groups table + DB::prepare("CREATE TABLE `{prefix}groups` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `groupname` varchar(255) COLLATE utf8_bin NOT NULL, + `colour` varchar(255) COLLATE utf8_bin NOT NULL, + `description` text COLLATE utf8_bin NOT NULL', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create messages table + DB::prepare("CREATE TABLE `{prefix}messages` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `fromUser` bigint(128) unsigned NOT NULL, + `toUsers` varchar(255) COLLATE utf8_bin NOT NULL, + `readBy` varchar(255) COLLATE utf8_bin NOT NULL, + `deletedBy` varchar(255) COLLATE utf8_bin NOT NULL, + `date` int(64) unsigned NOT NULL, + `title` varchar(255) COLLATE utf8_bin NOT NULL, + `content` text COLLATE utf8_bin NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create news table + DB::prepare("CREATE TABLE `{prefix}news` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `uid` bigint(128) unsigned NOT NULL, + `date` int(64) unsigned NOT NULL, + `title` varchar(255) COLLATE utf8_bin NOT NULL, + `content` text COLLATE utf8_bin NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create registration codes table + DB::prepare("CREATE TABLE `{prefix}regcodes` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `code` varchar(32) COLLATE utf8_bin NOT NULL, + `created_by` bigint(128) unsigned NOT NULL, + `used_by` bigint(128) unsigned NOT NULL, + `key_used` tinyint(1) unsigned NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create sessions table + DB::prepare("CREATE TABLE `{prefix}sessions` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `userip` varchar(255) COLLATE utf8_bin NOT NULL, + `useragent` varchar(255) COLLATE utf8_bin DEFAULT NULL, + `userid` bigint(128) unsigned NOT NULL, + `skey` varchar(255) COLLATE utf8_bin NOT NULL, + `started` int(64) unsigned NOT NULL, + `expire` int(64) unsigned NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create users table + DB::prepare("CREATE TABLE `{prefix}users` ( + `id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(255) COLLATE utf8_bin NOT NULL, + `username_clean` varchar(255) COLLATE utf8_bin NOT NULL, + `password_hash` varchar(255) COLLATE utf8_bin NOT NULL, + `password_salt` varchar(255) COLLATE utf8_bin NOT NULL, + `password_algo` varchar(255) COLLATE utf8_bin NOT NULL, + `password_iter` int(16) unsigned NOT NULL, + `password_chan` int(16) unsigned NOT NULL, + `password_new` varchar(255) COLLATE utf8_bin DEFAULT NULL, + `email` varchar(32) COLLATE utf8_bin NOT NULL, + `group_main` mediumint(4) unsigned NOT NULL, + `groups` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '0', + `name_colour` varchar(255) COLLATE utf8_bin DEFAULT NULL DEFAULT '[0]', + `register_ip` varchar(16) COLLATE utf8_bin NOT NULL, + `last_ip` varchar(16) COLLATE utf8_bin NOT NULL, + `usertitle` varchar(64) COLLATE utf8_bin NOT NULL, + `profile_md` text COLLATE utf8_bin, + `avatar_url` varchar(255) COLLATE utf8_bin NOT NULL, + `background_url` varchar(255) COLLATE utf8_bin NOT NULL, + `regdate` int(16) unsigned NOT NULL DEFAULT '0', + `lastdate` int(16) unsigned NOT NULL DEFAULT '0', + `lastunamechange` int(16) unsigned NOT NULL DEFAULT '0', + `birthday` varchar(16) COLLATE utf8_bin DEFAULT NULL, + `profile_data` text COLLATE utf8_bin NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `username_clean` (`username_clean`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Create warnings table + DB::prepare("CREATE TABLE `{prefix}warnings` ( + `id` bigint(128) unsigned NOT NULL AUTO_INCREMENT, + `uid` bigint(128) unsigned NOT NULL, + `mod` bigint(128) unsigned NOT NULL, + `issued` int(64) unsigned NOT NULL, + `expire` int(64) unsigned NOT NULL, + `reason` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT 'Reason for the warning.', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + } + + public function down() + { + // Drop API keys table + DB::prepare("DROP TABLE `{prefix}apikeys`") + ->execute(); + + // Drop bans table + DB::prepare("DROP TABLE `{prefix}bans`") + ->execute(); + + // Drop config table + DB::prepare("DROP TABLE `{prefix}config`") + ->execute(); + + // Drop groups table + DB::prepare("DROP TABLE `{prefix}groups`") + ->execute(); + + // Drop messages table + DB::prepare("DROP TABLE `{prefix}messages`") + ->execute(); + + // Drop news table + DB::prepare("DROP TABLE `{prefix}news`") + ->execute(); + + // Drop registration codes table + DB::prepare("DROP TABLE `{prefix}regcodes`") + ->execute(); + + // Drop sessions table + DB::prepare("DROP TABLE `{prefix}sessions`") + ->execute(); + + // Drop users table + DB::prepare("DROP TABLE `{prefix}users`") + ->execute(); + + // Drop warnings table + DB::prepare("DROP TABLE `{prefix}warnings`") + ->execute(); + } +} diff --git a/migrations/2015_04_01_172649_info_pages_and_nulls.php b/migrations/2015_04_01_172649_info_pages_and_nulls.php new file mode 100644 index 0000000..66ace20 --- /dev/null +++ b/migrations/2015_04_01_172649_info_pages_and_nulls.php @@ -0,0 +1,48 @@ +execute(); + + // Create info pages table + DB::prepare("CREATE TABLE `{prefix}infopages` ( + `shorthand` varchar(255) COLLATE utf8_bin NOT NULL, + `pagetitle` varchar(255) COLLATE utf8_bin NOT NULL, + `content` text COLLATE utf8_bin NOT NULL + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Make certain fields in the users table nullable + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `usertitle` DEFAULT NULL') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `avatar_url` DEFAULT NULL') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `background_url` DEFAULT NULL') + ->execute(); + } + + public function down() + { + // Drop the multi column from the groups table + DB::prepare("ALTER TABLE `{prefix}groups` DROP COLUMN `multi`") + ->execute(); + + // Drop info pages table + DB::prepare("DROP TABLE `{prefix}infopages`") + ->execute(); + + // Revert the null + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `usertitle` NOT NULL') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `avatar_url` NOT NULL') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` MODIFY `background_url` NOT NULL') + ->execute(); + } +} diff --git a/migrations/2015_04_06_200332_rename_groups_to_ranks.php b/migrations/2015_04_06_200332_rename_groups_to_ranks.php new file mode 100644 index 0000000..4217e08 --- /dev/null +++ b/migrations/2015_04_06_200332_rename_groups_to_ranks.php @@ -0,0 +1,32 @@ +execute(); + + // Rename group* columns to rank* in the users table + DB::prepare('ALTER TABLE `{prefix}users` CHANGE `group_main` `rank_main` mediumint(4)') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` CHANGE `groups` `ranks` varchar(255)') + ->execute(); + } + + public function down() + { + // Rename ranks table to groups + DB::prepare("RENAME TABLE `{prefix}ranks` TO `{prefix}groups`") + ->execute(); + + // Rename rank* columns to group* in the users table + DB::prepare('ALTER TABLE `{prefix}users` CHANGE `rank_main` `group_main` mediumint(4)') + ->execute(); + DB::prepare('ALTER TABLE `{prefix}users` CHANGE `ranks` `groups` varchar(255)') + ->execute(); + } +} diff --git a/migrations/2015_04_12_015057_tenshi_and_profile_fields.php b/migrations/2015_04_12_015057_tenshi_and_profile_fields.php new file mode 100644 index 0000000..6d6dfda --- /dev/null +++ b/migrations/2015_04_12_015057_tenshi_and_profile_fields.php @@ -0,0 +1,41 @@ +execute(); + + // Create the tenshi table + DB::prepare("CREATE TABLE `{prefix}tenshi` ( + `id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, + `uid` bigint(255) unsigned NOT NULL, + `startdate` int(64) unsigned NOT NULL, + `expiredate` int(64) unsigned NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + } + + public function down() + { + // Drop the profile fields table + DB::prepare("DROP TABLE `{prefix}profilefields`") + ->execute(); + + // Drop the tenshi table + DB::prepare("DROP TABLE `{prefix}tenshi`") + ->execute(); + } +} diff --git a/migrations/2015_04_19_125809_action_codes.php b/migrations/2015_04_19_125809_action_codes.php new file mode 100644 index 0000000..41cc150 --- /dev/null +++ b/migrations/2015_04_19_125809_action_codes.php @@ -0,0 +1,27 @@ +execute(); + } + + public function down() + { + // Drop the profile fields table + DB::prepare("DROP TABLE `{prefix}actioncodes`") + ->execute(); + } +} diff --git a/migrations/2015_04_27_003820_add_profile_field_types.php b/migrations/2015_04_27_003820_add_profile_field_types.php new file mode 100644 index 0000000..1275ae7 --- /dev/null +++ b/migrations/2015_04_27_003820_add_profile_field_types.php @@ -0,0 +1,28 @@ +execute(); + + // Add linkformat + DB::prepare("ALTER TABLE `{prefix}profilefields` ADD `linkformat` varchar(255) COLLATE utf8_bin NOT NULL") + ->execute(); + } + + public function down() + { + // Drop islink + DB::prepare("ALTER TABLE `{prefix}profilefields` DROP COLUMN `islink`") + ->execute(); + + // Drop linkformat + DB::prepare("ALTER TABLE `{prefix}profilefields` DROP COLUMN `linkformat`") + ->execute(); + } +} diff --git a/migrations/2015_05_05_061836_faq_forum_and_socks.php b/migrations/2015_05_05_061836_faq_forum_and_socks.php new file mode 100644 index 0000000..c0f4256 --- /dev/null +++ b/migrations/2015_05_05_061836_faq_forum_and_socks.php @@ -0,0 +1,110 @@ +execute(); + + // Add forums table + DB::prepare("CREATE TABLE `{prefix}forums` ( + `forum_id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, + `forum_name` varchar(255) COLLATE utf8_bin NOT NULL, + `forum_desc` text COLLATE utf8_bin NOT NULL, + `forum_link` varchar(255) COLLATE utf8_bin NOT NULL, + `forum_category` bigint(255) unsigned NOT NULL DEFAULT '0', + `forum_type` tinyint(4) unsigned NOT NULL DEFAULT '0', + `forum_posts` bigint(128) unsigned NOT NULL DEFAULT '0', + `forum_topics` bigint(255) unsigned NOT NULL DEFAULT '0', + `forum_last_post_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `forum_last_poster_id` bigint(255) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`forum_id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Add posts table + DB::prepare("CREATE TABLE `{prefix}posts` ( + `post_id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, + `topic_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `forum_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `poster_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `poster_ip` varchar(40) COLLATE utf8_bin NOT NULL, + `post_time` int(11) unsigned NOT NULL DEFAULT '0', + `enable_markdown` tinyint(1) unsigned NOT NULL DEFAULT '1', + `enable_sig` tinyint(1) unsigned NOT NULL DEFAULT '1', + `post_subject` varchar(255) COLLATE utf8_bin NOT NULL, + `post_text` text COLLATE utf8_bin NOT NULL, + `post_edit_time` int(11) unsigned NOT NULL DEFAULT '0', + `post_edit_reason` varchar(255) COLLATE utf8_bin NOT NULL, + `post_edit_user` int(255) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`post_id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Add sock_perms table + DB::prepare("CREATE TABLE `{prefix}sock_perms` ( + `rid` bigint(128) unsigned NOT NULL DEFAULT '0', + `uid` bigint(255) unsigned NOT NULL DEFAULT '0', + `perms` varchar(128) COLLATE utf8_bin NOT NULL DEFAULT '1,0,0,0,0,0' + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Add topics table + DB::prepare("CREATE TABLE `{prefix}topics` ( + `topic_id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, + `forum_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `topic_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0', + `topic_title` varchar(255) COLLATE utf8_bin NOT NULL, + `topic_time` int(11) unsigned NOT NULL DEFAULT '0', + `topic_time_limit` int(11) unsigned NOT NULL DEFAULT '0', + `topic_last_reply` int(11) unsigned NOT NULL DEFAULT '0', + `topic_views` bigint(64) unsigned NOT NULL DEFAULT '0', + `topic_replies` bigint(128) unsigned NOT NULL DEFAULT '0', + `topic_status` tinyint(3) unsigned NOT NULL DEFAULT '0', + `topic_status_change` int(11) unsigned NOT NULL DEFAULT '0', + `topic_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `topic_first_post_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `topic_first_poster_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `topic_last_post_id` bigint(255) unsigned NOT NULL DEFAULT '0', + `topic_last_poster_id` bigint(255) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`topic_id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin") + ->execute(); + + // Change mod to iid in warnings table + DB::prepare('ALTER TABLE `{prefix}warnings` CHANGE `mod` `iid` bigint(128)') + ->execute(); + } + + public function down() + { + // Drop the faq table + DB::prepare("DROP TABLE `{prefix}faq`")->execute(); + + // Drop the forums table + DB::prepare("DROP TABLE `{prefix}forums`")->execute(); + + // Drop the posts table + DB::prepare("DROP TABLE `{prefix}posts`")->execute(); + + // Drop the sock_perms table + DB::prepare("DROP TABLE `{prefix}sock_perms`")->execute(); + + // Drop the topics table + DB::prepare("DROP TABLE `{prefix}topics`")->execute(); + + // Change iid to mod in warnings table + DB::prepare('ALTER TABLE `{prefix}warnings` CHANGE `iid` `mod` bigint(128)') + ->execute(); + } +} diff --git a/migrations/2015_05_08_174736_notifications_table.php b/migrations/2015_05_08_174736_notifications_table.php new file mode 100644 index 0000000..b1f94ec --- /dev/null +++ b/migrations/2015_05_08_174736_notifications_table.php @@ -0,0 +1,38 @@ +execute(); + + // Change mod to iid in warnings table + DB::prepare('ALTER TABLE `{prefix}warnings` CHANGE `mod` `iid` bigint(128)') + ->execute(); + } + + public function down() + { + // Drop the notifications table + DB::prepare("DROP TABLE `{prefix}notifications`")->execute(); + + // Change iid to mod in warnings table + DB::prepare('ALTER TABLE `{prefix}warnings` CHANGE `iid` `mod` bigint(128)') + ->execute(); + } +} diff --git a/migrations/2015_05_24_143425_bread_of_the_future.php b/migrations/2015_05_24_143425_bread_of_the_future.php new file mode 100644 index 0000000..09f9f6f --- /dev/null +++ b/migrations/2015_05_24_143425_bread_of_the_future.php @@ -0,0 +1,14 @@ +run($argv); - exit; -} - // Check if we the system has a cron service if (Config::get('no_cron_service')) { // If not do an "asynchronous" call to the cron.php script diff --git a/serve.bat b/serve.bat deleted file mode 100644 index 3000983..0000000 --- a/serve.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -echo This script assumes php.exe is in the PATH variable -php -S localhost:8000 -t public/ server.php diff --git a/serve.sh b/serve.sh deleted file mode 100644 index 46cf600..0000000 --- a/serve.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -echo 'This script assumes php is in the PATH variable' -php -S localhost:8000 -t public/ server.php