One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/env python | |
| # victorvortex.py - A simple Python IRC bot | |
| # Authors: mrtux and OldCoder | |
| # License: CC BY-NC-SA 3.0 | |
| # Revision: see git rev. | |
| #--------------------------------------------------------------------- | |
| # Suggestions. | |
| # These are just suggestions: |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| __git_ps1 () | |
| { | |
| local b="$(git symbolic-ref HEAD 2>/dev/null)"; |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
| # /secure passphrase A-PASSWORD | |
| # ---- Defaults ---- | |
| /set irc.server_default.username "tracphil" | |
| /set irc.server_default.nicks "tracphil, tracphil_" | |
| /set irc.server_default.sasl_mechanism dh-blowfish | |
| # ---- IRC Servers ---- | |
| # Nick and auth settings for freenode | |
| /server add freenode chat.freenode.net |
| <?php | |
| /* | |
| JSON-to-HTML Table | |
| Version 1.0 | |
| October 21, 2017 | |
| Will Bontrager Software LLC | |
| https://www.willmaster.com/ | |
| Copyright 2017 Will Bontrager Software LLC |
| if (count($data->stand)) { | |
| // Open the table | |
| echo "<table>"; | |
| // Cycle through the array | |
| foreach ($data->stand as $idx => $stand) { | |
| // Output a row | |
| echo "<tr>"; | |
| echo "<td>$stand->afko</td>"; |
| <?php | |
| $target_dir = "uploads/"; | |
| $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); | |
| $uploadOk = 1; | |
| $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); | |
| // Check if image file is a actual image or fake image | |
| if(isset($_POST["submit"])) { | |
| $check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); | |
| if($check !== false) { | |
| echo "File is an image - " . $check["mime"] . "."; |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <form action="upload.php" method="post" enctype="multipart/form-data"> | |
| Select image to upload: | |
| <input type="file" name="fileToUpload" id="fileToUpload"> | |
| <input type="submit" value="Upload Image" name="submit"> | |
| </form> |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 |