Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adristef committed Feb 12, 2021
0 parents commit e8b576e
Show file tree
Hide file tree
Showing 78 changed files with 15,499 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# http://editorconfig.org
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Please read the contributing guidelines linked above before opening an issue.**
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Please read the contributing guidelines linked above before opening a pull request.**
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Submitting an issue

Bug reports and feature requests can be submitted to our [Issue Tracker](https://github.com/autodl-community/autodl-rutorrent/issues).

Some general guidelines to follow:

* Use an appropriate, descriptive title.
* Provide as many details as possible.
* Don't piggy-back. Keep separate topics in separate issues.

If you need to keep some information private, you can e-mail autodl.community@gmail.com with the subject ``Issue #`` replacing \# with the number of your issue.

## Submitting code

Patches are welcome. Keep your code consistent with the rest of the project (use tabs for indentation, etc). If you have any questions or concerns, contact us through the methods listed below.

For simple, single file changes/additions, sending or linking your modified file is acceptable. For complex, multiple file changes, creating a diff file or using GitHub's [Pull Request](https://help.github.com/articles/using-pull-requests/) feature is preferable.

### Pull Requests

[Pull Requests](https://help.github.com/articles/creating-a-pull-request) should originate from a [feature branch][fb] in your [fork][fork], not from the **master** branch.

Commit messages should be written in a [well-formed, consistent](https://sethrobertson.github.io/GitBestPractices/#usemsg) manner. See the [commit log](https://github.com/autodl-community/autodl-rutorrent/commits) for acceptable examples.

Each commit should encompass the smallest logical changeset (e.g. changing two unrelated things in the same file would be two commits rather than one commit of "Change filename".) If you made a mistake in a commit in your Pull Request, you should [amend or rebase](https://www.atlassian.com/git/tutorials/rewriting-history) to change your previous commit(s) then [force push](http://stackoverflow.com/a/12610763) to the [feature branch][fb] in your [fork][fork].

[fb]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#creating-a-branch
[fork]: https://help.github.com/articles/fork-a-repo
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# autodl-rutorrent

[autodl-rutorrent](https://github.com/adristef/autodl-rutorrent) is a plugin for ruTorrent to monitor and configure [autodl-irssi](https://github.com/adristef/autodl-irssi).


## Getting Started

* Installation instructions are provided in the [Wiki](https://github.com/adristef/autodl-rutorrent/wiki)


## Support

See [SUPPORT.md](https://github.com/adristef/autodl-rutorrent/blob/master/SUPPORT.md).


## Appreciation

Showing appreciation is always welcome.


#### Contribute

[Contribute](https://github.com/adristef/autodl-irssi/blob/master/CONTRIBUTING.md) by submitting bug reports, feature requests, or code.

#### Help Others/Stay Informed

**IRC:** ``#autodl-community`` on ``irc.p2p-network.net``
3 changes: 3 additions & 0 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The [issue tracker](https://github.com/autodl-community/autodl-rutorrent/issues) is for feature requests and bug reports only.

The maintainer does not provide support, but other users may be able to help on IRC: ``#autodl-community`` on ``irc.p2p-network.net``
20 changes: 20 additions & 0 deletions _conf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/*
* Rename this file to conf.php. Make sure only your web server can read the renamed file!
*
* You need to edit ~/.autodl/autodl.cfg and add a few options to the [options] section
* # ...
* [options]
* gui-server-port = 12345
* gui-server-password = abcdef
* # ...
*
* $autodlPort and gui-server-port must have the same value.
* $autodlPassword and gui-server-password must have the same value.
* The password cannot be blank.
*/

$autodlPort = 0;
$autodlPassword = "";

?>
15 changes: 15 additions & 0 deletions buildcss.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

shopt -s extglob

root_dir=$(git rev-parse --show-toplevel) || eval 'echo "This script must be run from within the autodl-rutorrent repo directory." 1>&2; exit 1'
styles_dir="$root_dir/styles"
css_dir="$root_dir/css"
style_files="$styles_dir/!(base).styl"

for style in $style_files
do
name=$(basename --suffix=.styl $style)

stylus $style -c -m -o $css_dir/$name.min.css
done
51 changes: 51 additions & 0 deletions command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is IRC Auto Downloader.
*
* The Initial Developer of the Original Code is
* David Nilsson.
* Portions created by the Initial Developer are Copyright (C) 2010, 2011
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** */

// Send /autodl commands

require_once 'getConf.php';

$command = Array("command" => "command");
if (isset($_GET['type']))
$command['type'] = $_GET['type'];
if (isset($_GET['arg1']))
$command['arg1'] = $_GET['arg1'];
if (isset($_GET['arg2']))
$command['arg2'] = $_GET['arg2'];
if (isset($_GET['arg3']))
$command['arg3'] = $_GET['arg3'];
$response = sendAutodlCommand($command);

$res = Array('error' => $response->error);
$jsonData = json_encode($res);

$etag = '"' . md5($jsonData) . '"';
$mtime = 1286000000; // A "valid" Last-Modified time so Chrome tries to GET this file from the server again
checkSameFile($etag, $mtime);

header('Content-Type: application/json; charset=UTF-8');
echo $jsonData;

?>
1 change: 1 addition & 0 deletions css/acid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/acid.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/blue.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e8b576e

Please sign in to comment.