Skip to content

Commit

Permalink
added eveonline oauth composer package
Browse files Browse the repository at this point in the history
  • Loading branch information
jbs1 committed May 15, 2018
1 parent c86ceb9 commit dd96efe
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 462 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.gitignore export-ignore
LICENSE export-ignore
README.md export-ignore
.gitattributes export-ignore
eve-srpmail.sublime-project export-ignore
message_ui.png export-ignore
sftp-config.json export-ignore
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If all endpoints are implemeted, it would remove the need to be ingame at all wh
* [ ] From killmail link, automatically find fit to compare to

#### Mail UI
* [ ] all tabs use same message ui with one text field, just different templates
* [x] all tabs use same message ui with one text field, just different templates
* [ ] adapt wysiwyg editor to support ccps custom tags
* [ ] list of common text snippets, added by clicking

Expand All @@ -70,25 +70,23 @@ sudo apt-get install composer
```

### Get source
Clone repo in webfolder or symlink repo to webfolder, eg.:
```
git clone [email protected]:jbs1/eve-srpmail.git
sudo ln -sf ~/eve-srpmail/ /var/www/html
```
Either clone the repository via `git clone [email protected]:jbs1/eve-srpmail.git` or simply download load the latest release from the [Release-Page](https://github.com/jbs1/eve-srpmail/releases).

Put the files in your webdir or link to the via symlink (eg. `sudo ln -sf ~/eve-srpmail/ /var/www/html`).

### Dependencies
You need to install the composer dependencies by running:
You need to install the composer dependencies by running
```
composer install
```
in the root of the repo.
in the root of the dir.


#### Library's used
The following library's were used:
* [Composer](https://getcomposer.org/download/)
* CCP's [ESI API](https://esi.tech.ccp.is/latest/)
* The swagger php client is hostest [here](https://github.com/jbs1/esi-php-client) and installed via [composer](composer.json)
* The swagger php client is hosted [here](https://github.com/jbs1/esi-php-client) and installed via [composer](composer.json)
* To update the API simply run `composer update`. If the repo has been updated, the new version will be pulled.
* [OAuth Client](https://github.com/thephpleague/oauth2-client)
* [EVE OAuth Client](https://github.com/jbs1/oauth2-eveonline)
* Installed via [composer](composer.json)
8 changes: 4 additions & 4 deletions ajax/mail-messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
Fly Safe,
<url=showinfo:1377//". charid().">". $_SESSION["corpmem"][charid()] ."</url>
<url=showinfo:2//". $_SESSION["charinfo"]["corpid"].">". $_SESSION["charinfo"]["corpname"]."</url>";',
<url=showinfo:2//". $_SESSION["charinfo"]["CorporationID"].">". $_SESSION["charinfo"]["CorporationName"]."</url>";',
'Hull SRP Message',
'hull_mail_form',
false,
Expand All @@ -57,7 +57,7 @@
Fly Safe,
<url=showinfo:1377//". charid().">". $_SESSION["corpmem"][charid()] ."</url>
<url=showinfo:2//". $_SESSION["charinfo"]["corpid"].">". $_SESSION["charinfo"]["corpname"]."</url>";',
<url=showinfo:2//". $_SESSION["charinfo"]["CorporationID"].">". $_SESSION["charinfo"]["CorporationName"]."</url>";',
'ISK SRP Message',
'isk_mail_form',
false,
Expand All @@ -76,7 +76,7 @@
Fly Safe,
<url=showinfo:1377//". charid().">". $_SESSION["corpmem"][charid()] ."</url>
<url=showinfo:2//". $_SESSION["charinfo"]["corpid"].">". $_SESSION["charinfo"]["corpname"]."</url>";',
<url=showinfo:2//". $_SESSION["charinfo"]["CorporationID"].">". $_SESSION["charinfo"]["CorporationName"]."</url>";',
'Resubmission SRP Message',
'messages_mail_form',
true,
Expand All @@ -94,7 +94,7 @@
Fly Safe,
<url=showinfo:1377//". charid().">". $_SESSION["corpmem"][charid()] ."</url>
<url=showinfo:2//". $_SESSION["charinfo"]["corpid"].">". $_SESSION["charinfo"]["corpname"]."</url>";',
<url=showinfo:2//". $_SESSION["charinfo"]["CorporationID"].">". $_SESSION["charinfo"]["CorporationName"]."</url>";',
'Rejection SRP Message',
'messages_mail_form',
true,
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
{
"type": "git",
"url": "https://github.com/jbs1/esi-php-client.git"
},
{
"type": "git",
"url": "https://github.com/jbs1/oauth2-eveonline.git"
}
],
"require": {
"league/oauth2-client": "^2.2",
"jbs1/oauth2-eveonline": "*@dev",
"jbs1/esi-php-client": "*@dev"
}
}
Loading

0 comments on commit dd96efe

Please sign in to comment.