Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
V0.2-Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
AmusingThrone committed May 22, 2017
1 parent 9a7af08 commit 767f1bf
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,37 @@ function sendMessage($message) {

}

$version = "v0.2";
$version = "v0.2 Alpha";

echo "\n";


sendMessage("Welcome to Kitsune AS2 Auto Installer " . $version);
sendMessage("Welcome to Kitsune Auto Installer " . $version);
sendMessage("Script Designed by AmusingThrone\n");

sendMessage("Would you like to install Kistune AS2 or AS3?");
$protocol = trim(fgets(STDIN));
$protocol = strtolower($protocol);

while ($protocol != "as2" or "as3") {
sendMessage("You can only respond in AS2 or AS3");
sendMessage("Would you like to install Kistune AS2 or AS3?");
$protocol = trim(fgets(STDIN));
$protocol = strtolower($protocol);
}

$url = "";

if ($protocol = "as2") {

$url = "https://github.com/AmusingThrone/kitsune-auto-setup/raw/master/Kitsune.zip";

} elseif ($protocol = "as3") {

$url = "https://github.com/widd/kitsune/archive/master.zip";

}

$zipFile = "Kitsune.zip";
$zipResource = fopen($zipFile, "w");
$ch = curl_init();
Expand Down Expand Up @@ -161,6 +183,6 @@ function sendMessage($message) {
mysqli_close($con);

sendMessage("The database is now setup!");
sendMessage("Kitsune Setup Finished! Enjoy!");
sendMessage("Kitsune " . strtoupper($protocol) . " Setup Finished! Enjoy!");

?>

0 comments on commit 767f1bf

Please sign in to comment.