Skip to content
This repository has been archived by the owner on Mar 12, 2018. It is now read-only.

Commit

Permalink
Commit #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Patra3 committed Mar 29, 2016
1 parent 65fc0b3 commit 22be413
Show file tree
Hide file tree
Showing 16 changed files with 348 additions and 13 deletions.
2 changes: 1 addition & 1 deletion glifcos-plugin/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Glifcos-p
main: glifcos\glifcos
version: 1.0.0
version: 0.1-BETA
api: [2.0.0, 1.0.0]
author: HotFireyDeath\Chopstick Software

Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/consolebroadcast.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/cpubroadcast.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/enabledplugin.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/memorybroadcast.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/playerquery.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/pluginbroadcast.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/taskbase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
19 changes: 19 additions & 0 deletions glifcos-plugin/src/glifcos/maintasks/webserverinput.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

namespace glifcos\maintasks;

use pocketmine\scheduler\PluginTask;
Expand Down
2 changes: 1 addition & 1 deletion glifcos-webserver/core.json

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions glifcos-webserver/library/main/userviewers/actions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/
if (isset($_GET["usernew_"])){
if (empty($_GET["usernew_"])){
die("Error. Username field empty. Please press the back button and try again.");
}
else{
// Change username of current user.
$keychain = json_decode(base64_decode($_COOKIE["Authchain"]), true);
$data = json_decode(file_get_contents($_COOKIE["cl"]."/users/".$keychain["user"].".json"), true);
$data["user"] = $_GET["usernew_"];
unlink($_COOKIE["cl"]."/users/".$keychain["user"].".json");
$h = fopen($_COOKIE["cl"]."/users/".$_GET["usernew_"].".json", "w+");
fwrite($h, json_encode($data));
fclose($h);
echo '
<script>
window.location = "usermain.php?_reason=sub";
</script>
';
}
}
if (isset($_GET["pswdnew_"])){
if (empty($_GET["pswdnew_"])){
die("Error. Username field empty. Please press the back button and try again.");
}
else{
// Change username of current user.
$keychain = json_decode(base64_decode($_COOKIE["Authchain"]), true);
$data = json_decode(file_get_contents($_COOKIE["cl"]."/users/".$keychain["user"].".json"), true);
$data["password"] = password_hash($_GET["pswdnew_"], PASSWORD_DEFAULT);
unlink($_COOKIE["cl"]."/users/".$keychain["user"].".json");
$h = fopen($_COOKIE["cl"]."/users/".$keychain["user"].".json", "w+");
fwrite($h, json_encode($data));
fclose($h);
echo '
<script>
window.location = "usermain.php?_reason=sub1";
</script>
';
}
}
if (isset($_GET["delete"])){
if (empty($_GET["delete"])){
// what? $_GET["delete"] is empty..
die("Error. Delete field empty. Please press the back button and try again.");
}
else{
if (!is_file($_COOKIE["cl"]."/users/".$_GET["delete"].".json")){
// Deleting user file not found.
die("Error. File not found. Please press the back button and try again.");
}
else{
// Delete :D
unlink($_COOKIE["cl"]."/users/".$_GET["delete"].".json");
echo '
<script>
window.location = "usermain.php?_reason=ZGVsZXRlZGF1c2Vy";
</script>
';
}
}
}
19 changes: 19 additions & 0 deletions glifcos-webserver/library/main/userviewers/upload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?php

/*
THIS FILE IS PART OF THE GLIFCOS PROJECT BY @HOTFIREYDEATH.
THIS PROJECT IS LICENSED UNDER THE MIT LICENSE (MIT). A COPY OF
THE LICENSE IS AVAILABLE WITH YOUR DOWNLOAD (LICENSE.txt).
___ ___ ___ ___ ___
/\__\ /\__\ /\__\ /\ \ /\__\
/:/ _/_ ___ /:/ _/_ /:/ / /::\ \ /:/ _/_
/:/ /\ \ /\__\ /:/ /\__\ /:/ / /:/\:\ \ /:/ /\ \
/:/ /::\ \ ___ ___ /:/__/ /:/ /:/ / /:/ / ___ /:/ \:\ \ /:/ /::\ \
/:/__\/\:\__\ /\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /\__\ /:/__/ \:\__\ /:/_/:/\:\__\
\:\ \ /:/ / \:\ \ /:/ / \/\:\ \__ \:\/:/ / \:\ \ /:/ / \:\ \ /:/ / \:\/:/ /:/ /
\:\ /:/ / \:\ /:/ / ~~\:\/\__\ \::/__/ \:\ /:/ / \:\ /:/ / \::/ /:/ /
\:\/:/ / \:\/:/ / \::/ / \:\ \ \:\/:/ / \:\/:/ / \/_/:/ /
\::/ / \::/ / /:/ / \:\__\ \::/ / \::/ / /:/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
*/

/*
array (size=1)
'fileToUpload' =>
Expand Down
Loading

0 comments on commit 22be413

Please sign in to comment.