https://github.com/lukbukkit/random-urf-build
https://github.com/lukbukkit/random-urf-build
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lukbukkit/random-urf-build
- Owner: lukbukkit
- Created: 2015-04-02T08:01:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-12T11:28:09.000Z (over 11 years ago)
- Last Synced: 2026-03-31T00:38:17.085Z (4 months ago)
- Language: PHP
- Homepage: http://randomurfbuild.tk/
- Size: 906 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random-URF-Build
Vistit my project on: http://randomurfbuild.tk/
#Recreate my project
You need a RiotAPI-Key, a MYSQL-Database and a webserver with PHP!
First you add to your Database, two three new tabels:
CREATE TABLE `options` (
`timestamp` int(11) NOT NULL,
`primeKey` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`primeKey`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
CREATE TABLE `GameIdsList` (
`gameID` int(11) DEFAULT NULL,
`primeKey` int(11) NOT NULL AUTO_INCREMENT,
`time` int(11) DEFAULT NULL,
PRIMARY KEY (`primeKey`)
) ENGINE=InnoDB AUTO_INCREMENT=7415 DEFAULT CHARSET=latin1;
CREATE TABLE `champions` (
`id` int(11) NOT NULL,
`keyName` mediumtext,
`name` mediumtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Now insert into options the timestamp, where the updateGameIDs should start reading!
(IMPORTANT NOTE: The timestamp must have to 5-Min-Format like: 1428840000 or 1428326100)
Now open / run the page updateChampions.php, and you have all champions in your database (faster access than RiotAPI) !
We need although cronjobs:
On Unix we add they with crontab -e
*/5 * * * * /usr/bin/php /YOUR_PATH/updateGameIDs.php
0 0 * * * /usr/bin/php /YOUR_PATH/updateChampions.php
And now we are done!