├── LICENSE
├── README.md
├── SQL UPDATES
├── old updates
│ ├── 18.06.2017 - Licence key - mail update
│ │ └── import_me.sql
│ ├── 19.06.2017 - Product category
│ │ └── import me.sql
│ ├── 23.06.2017 - Steam Group Rewards
│ │ └── import me.sql
│ ├── 27.06.2017 - FAQ Update
│ │ └── import me.sql
│ ├── 30.06.2017 - Navbar rewrite update
│ │ └── import me.sql
│ ├── INVENTORY VALUE UPDATE
│ │ └── import me.sql
│ ├── MEMBERLIST - BAN UPDATE
│ │ └── IMPORT ME.sql
│ ├── NAVBAR DROPDOWN UPDATE
│ │ └── IMPORT ME.SQL
│ ├── NEWS SYSTEM
│ │ └── import me 15.06.2017.sql
│ ├── PRODUCT ORDER UPDATE
│ │ └── product_order.sql
│ ├── REWARDS UPDATE
│ │ └── reward_update.sql
│ ├── STEAM LOGIN
│ │ └── IMPORT ME.SQL
│ ├── SUPPORT CENTER UPDATE
│ │ └── support_center_sql.sql
│ ├── THEME UPDATE
│ │ └── IMPORT ME.sql
│ ├── TOKEN HISTORY
│ │ └── import 16.06.2017.sql
│ ├── TOKEN UPDATE
│ │ └── IMPORT ME.SQL
│ └── TRACKING UPDATE
│ │ └── import me 04.06.2017.sql
├── version 1.4 - 02.07.2017
│ └── import.sql
├── version 1.4.1 - 02.07.2017
│ └── import.sql
├── version 1.4.2 - 07.07.2017
│ └── import me.sql
├── version 1.4.3 - 07.07.2017
│ └── import me.sql
├── version 1.4.4 - 12.07.2017
│ └── import.sql
├── version 1.4.5 - 19.07.2017
│ └── import.sql
├── version 1.4.6 - 27.07.2017
│ └── import me.sql
├── version 1.4.7 - 17.09.2017
│ └── import me.sql
└── version 1.5 - 15.11.2017
│ └── import me.sql
├── server_files
├── accounts_commend
│ └── accounts_1.txt
├── accounts_report
│ └── accounts_1.txt
├── commend.js
├── npm-debug.log
├── package.json
├── protos
│ ├── base_gcmessages.proto
│ ├── cstrike15_gcmessages.proto
│ ├── engine_gcmessages.proto
│ ├── gcsdk_gcmessages.proto
│ ├── protos.js
│ ├── steammessages.proto
│ └── updater.js
├── report.js
└── sentry
│ ├── README.txt
│ ├── package.json
│ └── steam_sentry.js
└── web_files
├── account.php
├── admin
├── configuration.php
├── contact.php
├── faq.php
├── history.php
├── home.php
├── inc
│ ├── db.php
│ ├── footer.php
│ ├── functions.php
│ ├── graph_commend.php
│ ├── graph_report.php
│ └── header.php
├── index.php
├── language.php
├── mass_token.php
├── memberlist.php
├── nav.php
├── news.php
├── referral.php
├── rewards.php
├── sell.php
├── sell_categories.php
├── support.php
├── support_category.php
├── theme.php
├── token.php
└── whitelist.php
├── commend.php
├── commended.php
├── contact.php
├── converter.php
├── css
├── cerulean
│ └── bootstrap.min.css
├── cosmo
│ └── bootstrap.min.css
├── cyborg
│ └── bootstrap.min.css
├── darkly
│ └── bootstrap.min.css
├── default
│ ├── bootstrap.css
│ └── bootstrap.min.css
├── flatly
│ └── bootstrap.min.css
├── journal
│ └── bootstrap.min.css
├── lumen
│ └── bootstrap.min.css
├── paper
│ └── bootstrap.min.css
├── readable
│ └── bootstrap.min.css
├── sandstone
│ └── bootstrap.min.css
├── simplex
│ └── bootstrap.min.css
├── slate
│ └── bootstrap.min.css
├── solar
│ └── bootstrap.min.css
├── spacelab
│ └── bootstrap.min.css
├── superhero
│ └── bootstrap.min.css
├── united
│ └── bootstrap.min.css
├── wbbtheme.css
└── yeti
│ └── bootstrap.min.css
├── faq.php
├── fonts
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
├── glyphicons-halflings-regular.woff
└── glyphicons-halflings-regular.woff2
├── img
├── empty_icon.png
└── lang
│ ├── en.png
│ └── fr.png
├── inc
├── api_mail.php
├── commend_log.php
├── config.php.default
├── db.php
├── do_commend.php
├── do_report.php
├── do_whitelist.php
├── footer.php
├── functions.php
├── header.php
├── home_last.php
├── jbbcode
│ ├── CodeDefinition.php
│ ├── CodeDefinitionBuilder.php
│ ├── CodeDefinitionSet.php
│ ├── DefaultCodeDefinitionSet.php
│ ├── DocumentElement.php
│ ├── ElementNode.php
│ ├── InputValidator.php
│ ├── Node.php
│ ├── NodeVisitor.php
│ ├── Parser.php
│ ├── ParserException.php
│ ├── TextNode.php
│ ├── Tokenizer.php
│ ├── examples
│ │ ├── 1-GettingStarted.php
│ │ ├── 2-ClosingUnclosedTags.php
│ │ ├── 3-MarkuplessText.php
│ │ ├── 4-CreatingNewCodes.php
│ │ ├── SmileyVisitorTest.php
│ │ └── TagCountingVisitorTest.php
│ ├── tests
│ │ ├── BBCodeToBBCodeTest.php
│ │ ├── BBCodeToTextTest.php
│ │ ├── DefaultCodesTest.php
│ │ ├── HTMLSafeTest.php
│ │ ├── NestLimitTest.php
│ │ ├── ParseContentTest.php
│ │ ├── ParsingEdgeCaseTest.php
│ │ ├── SimpleEvaluationTest.php
│ │ ├── TokenizerTest.php
│ │ └── ValidatorTest.php
│ ├── validators
│ │ ├── CssColorValidator.php
│ │ └── UrlValidator.php
│ └── visitors
│ │ ├── HTMLSafeVisitor.php
│ │ ├── NestLimitVisitor.php
│ │ ├── SmileyVisitor.php
│ │ └── TagCountingVisitor.php
├── language.php
├── report_log.php
├── reported_checker.php
├── rewards
│ └── rewards_checker_tag.php
├── steam_login.php
├── steamauth
│ ├── SteamConfig.php
│ ├── openid.php
│ ├── steamauth.php
│ └── userInfo.php
├── timer_commendbot.php
└── timer_reportbot.php
├── index.php
├── install
├── config.php
├── config_2.php
├── db.sql
├── done.php
├── index.php
├── install.php
└── install_db.php
├── js
├── bootstrap.js
├── bootstrap.min.js
├── holder.js
├── jquery.js
├── jquery.min.js
└── jquery.wysibb.js
├── lang
├── README
├── en.php
└── fr.php
├── login.php
├── products.php
├── referral.php
├── register.php
├── report.php
├── reported.php
├── rewards.php
├── support.php
├── tracking.php
├── update.php
├── update
├── index.php
└── update.php
├── viewticket.php
├── whitelist.php
└── whitelisted.php
/README.md:
--------------------------------------------------------------------------------
1 | # I will not provide any help, so don't bother opening an issue because it will be ignored.
2 |
3 |
4 | # Recommanded specs:
5 |
6 | Debian 8
7 | 2GB Ram
8 | 20GB HDD/SSD
9 |
10 |
11 | # Commands list:
12 |
13 | 1- apt-get update && apt-get upgrade
14 |
15 |
16 | 2- apt-get install apache2 mysql-server php5 phpmyadmin curl
17 |
18 |
19 | 3- ln -s /usr/share/phpmyadmin /var/www/html
20 |
21 |
22 | 4- curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
23 |
24 |
25 | 5- apt-get install nodejs
26 |
27 |
28 | 6- mkdir /var/report-bot
29 |
30 |
31 | 7- cd /var/report-bot
32 |
33 |
34 | 8- After having the server_files uploaded into this directory, run this
35 |
36 |
37 | 9- chmod -R 777 * && npm install
38 |
39 |
40 | 10-crontab -e (then enter the following)
41 |
42 |
43 | */1 * * * * /usr/bin/php /var/www/html/inc/reported_checker.php
44 |
45 |
46 | 0 */6 * * * cd /var/www/html/inc/rewards && /usr/bin/php rewards_checker_tag.php
47 |
48 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/18.06.2017 - Licence key - mail update/import_me.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `users` ADD `email` VARCHAR(255) NULL AFTER `steamid`, ADD `email_subscribed` BOOLEAN NOT NULL AFTER `email`;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/19.06.2017 - Product category/import me.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Lun 19 Juin 2017 à 11:44
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Base de données : `report_bot`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Structure de la table `products_categories`
27 | --
28 |
29 | CREATE TABLE `products_categories` (
30 | `id` int(11) NOT NULL,
31 | `order_id` int(11) DEFAULT NULL,
32 | `name` varchar(255) NOT NULL,
33 | `icon` varchar(255) NOT NULL
34 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
35 |
36 | --
37 | -- Index pour les tables exportées
38 | --
39 |
40 | --
41 | -- Index pour la table `products_categories`
42 | --
43 | ALTER TABLE `products_categories`
44 | ADD PRIMARY KEY (`id`);
45 |
46 | --
47 | -- AUTO_INCREMENT pour les tables exportées
48 | --
49 |
50 | --
51 | -- AUTO_INCREMENT pour la table `products_categories`
52 | --
53 | ALTER TABLE `products_categories`
54 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
55 |
56 | ALTER TABLE `products` ADD `category_id` INT NULL AFTER `id`;
57 |
58 |
59 | ALTER TABLE `products` ADD `category_id` INT NULL AFTER `id`;
60 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
61 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
62 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/23.06.2017 - Steam Group Rewards/import me.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `rewards_config` ADD `steamgroup_url` VARCHAR(255) NULL AFTER `pointsper_commend`;
2 | ALTER TABLE `rewards_config` ADD `steamgroup_points` FLOAT NOT NULL DEFAULT '0' AFTER `steamgroup_url`;
3 | ALTER TABLE `rewards_users` ADD `uip` VARCHAR(255) NULL DEFAULT NULL AFTER `uid`;
4 | ALTER TABLE `rewards_users` ADD `joined_steamgroup` BOOLEAN NOT NULL DEFAULT FALSE AFTER `points`;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/27.06.2017 - FAQ Update/import me.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Mar 27 Juin 2017 à 09:49
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Base de données : `report_bot`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Structure de la table `faq`
27 | --
28 |
29 | CREATE TABLE `faq` (
30 | `id` int(11) NOT NULL,
31 | `question` varchar(255) NOT NULL,
32 | `answer` longtext NOT NULL,
33 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
34 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
35 |
36 | --
37 | -- Index pour les tables exportées
38 | --
39 |
40 | --
41 | -- Index pour la table `faq`
42 | --
43 | ALTER TABLE `faq`
44 | ADD PRIMARY KEY (`id`);
45 |
46 | --
47 | -- AUTO_INCREMENT pour les tables exportées
48 | --
49 |
50 | --
51 | -- AUTO_INCREMENT pour la table `faq`
52 | --
53 | ALTER TABLE `faq`
54 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
55 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
56 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
57 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
58 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/30.06.2017 - Navbar rewrite update/import me.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS nav_tabs;
2 | CREATE TABLE `navbar` (
3 | `id` int(11) NOT NULL,
4 | `parentid` int(11) NOT NULL DEFAULT '0',
5 | `display_order` varchar(255) NOT NULL DEFAULT '1',
6 | `type` varchar(255) NOT NULL DEFAULT 'item',
7 | `name` varchar(255) NOT NULL,
8 | `link` varchar(255) NOT NULL DEFAULT '#',
9 | `text_color` varchar(255) NOT NULL DEFAULT 'white',
10 | `access_level` varchar(255) NOT NULL
11 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
12 |
13 | --
14 | -- Contenu de la table `navbar`
15 | --
16 |
17 | INSERT INTO `navbar` (`id`, `parentid`, `display_order`, `type`, `name`, `link`, `text_color`, `access_level`) VALUES
18 | (1, 0, '1', 'item', 'Home', 'index.php', 'white', 'all'),
19 | (2, 0, '2', 'dropdown_parent', 'Action', '', 'white', 'all'),
20 | (3, 2, '1', 'item', 'Report', 'report.php', 'white', 'all'),
21 | (4, 2, '2', 'item', 'Commend', 'commend.php', 'white', 'all'),
22 | (5, 0, '3', 'dropdown_parent', 'Tools', '', 'white', 'all'),
23 | (6, 5, '2', 'item', 'SteamID Converter', 'converter.php', 'white', 'all'),
24 | (7, 5, '2', 'item', 'Whitelist', 'whitelist.php', 'white', 'all'),
25 | (8, 0, '4', 'dropdown_parent', 'Lists', '', 'white', 'all'),
26 | (9, 8, '1', 'item', 'Banned Players', 'banned.php', 'white', 'all'),
27 | (10, 8, '2', 'item', 'Whitelisted', 'whitelisted.php', 'white', 'all'),
28 | (11, 0, '5', 'dropdown_parent', 'Login / Register', '', 'white', 'non_logged'),
29 | (12, 11, '', 'item', 'Login', 'login.php', 'white', 'all'),
30 | (13, 11, '3', 'item', 'Register', 'register.php', 'white', 'all'),
31 | (14, 0, '6', 'dropdown_parent', 'My Account', '', 'white', 'logged'),
32 | (15, 14, '', 'item', 'Dashboard', 'account.php', 'white', 'all'),
33 | (16, 14, '', 'item', 'Rewards', 'rewards.php', 'white', 'all'),
34 | (17, 14, '', 'item', 'Logout', '?logout', 'white', 'all'),
35 | (18, 0, '7', 'item', 'FAQ', 'faq.php', 'red', 'all'),
36 | (19, 0, '8', 'item', 'Admin', 'admin', 'white', 'admin');
37 |
38 | --
39 | -- Index pour les tables exportées
40 | --
41 |
42 | --
43 | -- Index pour la table `navbar`
44 | --
45 | ALTER TABLE `navbar`
46 | ADD PRIMARY KEY (`id`);
47 |
48 | --
49 | -- AUTO_INCREMENT pour les tables exportées
50 | --
51 |
52 | --
53 | -- AUTO_INCREMENT pour la table `navbar`
54 | --
55 | ALTER TABLE `navbar`
56 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
57 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/INVENTORY VALUE UPDATE/import me.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `reported_list` ADD `inventory_value` VARCHAR(255) NOT NULL AFTER `steamid`;
2 | UPDATE `reported_list` SET `inventory_value` = 'Unknown';
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/MEMBERLIST - BAN UPDATE/IMPORT ME.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Ven 26 Mai 2017 à 20:54
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 |
20 | CREATE TABLE `banned_users` (
21 | `id` int(11) NOT NULL,
22 | `uid` int(11) NOT NULL,
23 | `ip` varchar(255) NOT NULL,
24 | `reason` varchar(255) DEFAULT NULL,
25 | `expiration` date NOT NULL
26 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
27 |
28 | ALTER TABLE `banned_users`
29 | ADD PRIMARY KEY (`id`);
30 |
31 | DROP TABLE IF EXISTS banned;
32 | ALTER TABLE `users` ADD `ip` VARCHAR(255) NULL AFTER `password`;
33 |
34 |
35 |
36 | --
37 | -- AUTO_INCREMENT pour les tables exportées
38 | --
39 |
40 | --
41 | -- AUTO_INCREMENT pour la table `banned_users`
42 | --
43 | ALTER TABLE `banned_users`
44 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
45 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
46 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
47 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
48 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/NAVBAR DROPDOWN UPDATE/IMPORT ME.SQL:
--------------------------------------------------------------------------------
1 | ALTER TABLE `nav_tabs` ADD `is_dropdown` BOOLEAN NULL AFTER `nav_order`;
2 | ALTER TABLE `nav_tabs` ADD `is_dropdown_parent` BOOLEAN NULL AFTER `is_dropdown`;
3 | ALTER TABLE `nav_tabs` ADD `is_dropdown_item` BOOLEAN NULL AFTER `is_dropdown_parent`;
4 | ALTER TABLE `nav_tabs` ADD `dropdown_parentid` INT(11) NULL AFTER `is_dropdown_item`;
5 | UPDATE `nav_tabs` SET `is_dropdown` = 0, `is_dropdown_item` = 0, `dropdown_parentid` = 0, `is_dropdown_parent` = 0;
6 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/NEWS SYSTEM/import me 15.06.2017.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Jeu 15 Juin 2017 à 14:18
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Base de données : `report_bot`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Structure de la table `news`
27 | --
28 |
29 | CREATE TABLE `news` (
30 | `id` int(11) NOT NULL,
31 | `title` varchar(255) NOT NULL,
32 | `message` longtext NOT NULL,
33 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
34 | `addedby_uid` int(11) NOT NULL
35 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
36 |
37 | --
38 | -- Index pour les tables exportées
39 | --
40 |
41 | --
42 | -- Index pour la table `news`
43 | --
44 | ALTER TABLE `news`
45 | ADD PRIMARY KEY (`id`);
46 |
47 | --
48 | -- AUTO_INCREMENT pour les tables exportées
49 | --
50 |
51 | --
52 | -- AUTO_INCREMENT pour la table `news`
53 | --
54 | ALTER TABLE `news`
55 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
56 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
57 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
58 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/PRODUCT ORDER UPDATE/product_order.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `products` ADD `product_order` INT NULL AFTER `id`;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/REWARDS UPDATE/reward_update.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Lun 05 Juin 2017 à 09:02
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Base de données : `report_bot`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Structure de la table `rewards_config`
27 | --
28 |
29 | CREATE TABLE `rewards_config` (
30 | `id` int(11) NOT NULL,
31 | `tag` varchar(255) NOT NULL,
32 | `tag_minconsecutivedays` int(11) NOT NULL DEFAULT '0',
33 | `tag_pointsperday` float NOT NULL DEFAULT '0',
34 | `pointsper_report` float NOT NULL DEFAULT '0',
35 | `pointsper_commend` float DEFAULT '0'
36 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
37 |
38 | --
39 | -- Contenu de la table `rewards_config`
40 | --
41 |
42 | INSERT INTO `rewards_config` (`id`, `tag`, `tag_minconsecutivedays`, `tag_pointsperday`, `pointsper_report`, `pointsper_commend`) VALUES
43 | (1, 'Your Tag', 5, 1, 0.05, 0.5);
44 |
45 | -- --------------------------------------------------------
46 |
47 | --
48 | -- Structure de la table `rewards_history`
49 | --
50 |
51 | CREATE TABLE `rewards_history` (
52 | `id` int(11) NOT NULL,
53 | `uid` int(11) NOT NULL,
54 | `reward_id` int(11) NOT NULL,
55 | `generated_token` varchar(255) DEFAULT NULL,
56 | `cost` int(11) DEFAULT NULL,
57 | `uses` int(11) DEFAULT NULL,
58 | `type` varchar(255) NOT NULL,
59 | `description` longtext,
60 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
61 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
62 |
63 | -- --------------------------------------------------------
64 |
65 | --
66 | -- Structure de la table `rewards_list`
67 | --
68 |
69 | CREATE TABLE `rewards_list` (
70 | `id` int(11) NOT NULL,
71 | `points_cost` int(11) NOT NULL DEFAULT '1',
72 | `reward_type` varchar(255) NOT NULL,
73 | `reward_uses` int(11) NOT NULL,
74 | `description` longtext NOT NULL
75 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
76 |
77 | -- --------------------------------------------------------
78 |
79 | --
80 | -- Structure de la table `rewards_users`
81 | --
82 |
83 | CREATE TABLE `rewards_users` (
84 | `id` int(11) NOT NULL,
85 | `uid` int(11) NOT NULL,
86 | `points` float NOT NULL DEFAULT '0',
87 | `tag_datebegin` date NOT NULL,
88 | `tag_consecutivedays` int(11) NOT NULL DEFAULT '0',
89 | `enable_notification` int(11) NOT NULL DEFAULT '1'
90 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
91 |
92 | --
93 | -- Index pour les tables exportées
94 | --
95 |
96 | --
97 | -- Index pour la table `rewards_config`
98 | --
99 | ALTER TABLE `rewards_config`
100 | ADD PRIMARY KEY (`id`);
101 |
102 | --
103 | -- Index pour la table `rewards_history`
104 | --
105 | ALTER TABLE `rewards_history`
106 | ADD PRIMARY KEY (`id`);
107 |
108 | --
109 | -- Index pour la table `rewards_list`
110 | --
111 | ALTER TABLE `rewards_list`
112 | ADD PRIMARY KEY (`id`);
113 |
114 | --
115 | -- Index pour la table `rewards_users`
116 | --
117 | ALTER TABLE `rewards_users`
118 | ADD PRIMARY KEY (`id`);
119 |
120 | --
121 | -- AUTO_INCREMENT pour les tables exportées
122 | --
123 |
124 | --
125 | -- AUTO_INCREMENT pour la table `rewards_config`
126 | --
127 | ALTER TABLE `rewards_config`
128 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
129 | --
130 | -- AUTO_INCREMENT pour la table `rewards_history`
131 | --
132 | ALTER TABLE `rewards_history`
133 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
134 | --
135 | -- AUTO_INCREMENT pour la table `rewards_list`
136 | --
137 | ALTER TABLE `rewards_list`
138 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
139 | --
140 | -- AUTO_INCREMENT pour la table `rewards_users`
141 | --
142 | ALTER TABLE `rewards_users`
143 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
144 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
145 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
146 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/STEAM LOGIN/IMPORT ME.SQL:
--------------------------------------------------------------------------------
1 | ALTER TABLE `users` ADD `steamid` VARCHAR(17) NULL AFTER `password`;
2 |
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/SUPPORT CENTER UPDATE/support_center_sql.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Weeeishy/CSGO-ReportBot-WebPanel/96e401178a474d3a74c5b8bd2ecb6c1670e0a1fd/SQL UPDATES/old updates/SUPPORT CENTER UPDATE/support_center_sql.sql
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/THEME UPDATE/IMPORT ME.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Weeeishy/CSGO-ReportBot-WebPanel/96e401178a474d3a74c5b8bd2ecb6c1670e0a1fd/SQL UPDATES/old updates/THEME UPDATE/IMPORT ME.sql
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/TOKEN HISTORY/import 16.06.2017.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Client : 127.0.0.1
6 | -- Généré le : Jeu 15 Juin 2017 à 23:44
7 | -- Version du serveur : 5.7.14
8 | -- Version de PHP : 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Base de données : `report_bot`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Structure de la table `tokens_activation`
27 | --
28 |
29 | CREATE TABLE `tokens_activation` (
30 | `id` int(11) NOT NULL,
31 | `token` varchar(255) NOT NULL,
32 | `type` varchar(255) NOT NULL,
33 | `uid` int(11) DEFAULT NULL,
34 | `uip` varchar(255) NOT NULL,
35 | `date` timestamp NOT NULL
36 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
37 |
38 | --
39 | -- Index pour les tables exportées
40 | --
41 |
42 | --
43 | -- Index pour la table `tokens_activation`
44 | --
45 | ALTER TABLE `tokens_activation`
46 | ADD PRIMARY KEY (`id`);
47 |
48 | --
49 | -- AUTO_INCREMENT pour les tables exportées
50 | --
51 |
52 | --
53 | -- AUTO_INCREMENT pour la table `tokens_activation`
54 | --
55 | ALTER TABLE `tokens_activation`
56 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
57 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
58 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
59 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/TOKEN UPDATE/IMPORT ME.SQL:
--------------------------------------------------------------------------------
1 | ALTER TABLE `tokens` ADD `token_type` VARCHAR(255) NULL AFTER `token_use`;
2 | UPDATE `tokens` SET `token_type` = "report";
--------------------------------------------------------------------------------
/SQL UPDATES/old updates/TRACKING UPDATE/import me 04.06.2017.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `commended_list` ADD `commendedby_token` VARCHAR(255) NULL AFTER `commendedby_userid`;
2 | ALTER TABLE `reported_list` ADD `reportedby_token` VARCHAR(255) NULL AFTER `reportedby_userid`;
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4 - 02.07.2017/import.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE `config` (
2 | `id` int(11) NOT NULL,
3 | `current_version` varchar(255) NOT NULL,
4 | `licence_key` varchar(255) NOT NULL,
5 | `steam_api_key` varchar(255) NOT NULL,
6 | `website_navtitle` varchar(255) NOT NULL,
7 | `website_title` varchar(255) NOT NULL,
8 | `captcha_secret_key` varchar(255) NOT NULL,
9 | `captcha_website_key` varchar(255) NOT NULL,
10 | `reportbot_number` int(11) NOT NULL,
11 | `commendbot_number` int(11) NOT NULL,
12 | `log_prefix` varchar(255) NOT NULL,
13 | `report_path` varchar(255) NOT NULL,
14 | `report_log_path` varchar(255) NOT NULL,
15 | `commend_path` varchar(255) NOT NULL,
16 | `commend_log_path` varchar(255) NOT NULL,
17 | `report_timer` int(11) NOT NULL,
18 | `commend_timer` int(11) NOT NULL
19 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
20 |
21 | --
22 | -- Index pour les tables exportées
23 | --
24 |
25 | --
26 | -- Index pour la table `config`
27 | --
28 | ALTER TABLE `config`
29 | ADD PRIMARY KEY (`id`);
30 |
31 |
32 | --
33 | -- AUTO_INCREMENT pour la table `config`
34 | --
35 | ALTER TABLE `config`
36 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
37 |
38 |
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.1 - 02.07.2017/import.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.4.1' WHERE `config`.`id` = 1;
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.2 - 07.07.2017/import me.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.4.2';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.3 - 07.07.2017/import me.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.4.3';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.4 - 12.07.2017/import.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `reported_list` ADD `ban_date` TIMESTAMP NULL DEFAULT NULL AFTER `vac`;
2 | UPDATE `config` SET `current_version` = '1.4.4';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.5 - 19.07.2017/import.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.4.5';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.6 - 27.07.2017/import me.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE `referral_codes` (
2 | `id` int(11) NOT NULL,
3 | `uid` int(11) NOT NULL,
4 | `code` varchar(255) NOT NULL,
5 | `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
6 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
7 |
8 | ALTER TABLE `referral_codes`
9 | ADD PRIMARY KEY (`id`);
10 |
11 | ALTER TABLE `referral_codes`
12 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
13 |
14 |
15 | CREATE TABLE `referral_users` (
16 | `id` int(11) NOT NULL,
17 | `owner_userid` int(11) NOT NULL,
18 | `user_id` int(11) NOT NULL,
19 | `date` timestamp NOT NULL
20 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
21 |
22 | ALTER TABLE `referral_users`
23 | ADD PRIMARY KEY (`id`);
24 |
25 | ALTER TABLE `referral_users`
26 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
27 |
28 | UPDATE `config` SET `current_version` = '1.4.6';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.4.7 - 17.09.2017/import me.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.4.7';
--------------------------------------------------------------------------------
/SQL UPDATES/version 1.5 - 15.11.2017/import me.sql:
--------------------------------------------------------------------------------
1 | UPDATE `config` SET `current_version` = '1.5';
--------------------------------------------------------------------------------
/server_files/accounts_commend/accounts_1.txt:
--------------------------------------------------------------------------------
1 | username:password
--------------------------------------------------------------------------------
/server_files/accounts_report/accounts_1.txt:
--------------------------------------------------------------------------------
1 | username:password
--------------------------------------------------------------------------------
/server_files/npm-debug.log:
--------------------------------------------------------------------------------
1 | 0 info it worked if it ends with ok
2 | 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
3 | 2 info using npm@4.1.2
4 | 3 info using node@v7.5.0
5 | 4 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 | 5 info lifecycle csgo-reportbot-web@1.0.0~prestart: csgo-reportbot-web@1.0.0
7 | 6 silly lifecycle csgo-reportbot-web@1.0.0~prestart: no script for prestart, continuing
8 | 7 info lifecycle csgo-reportbot-web@1.0.0~start: csgo-reportbot-web@1.0.0
9 | 8 verbose lifecycle csgo-reportbot-web@1.0.0~start: unsafe-perm in lifecycle true
10 | 9 verbose lifecycle csgo-reportbot-web@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/var/report-bot/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11 | 10 verbose lifecycle csgo-reportbot-web@1.0.0~start: CWD: /var/report-bot
12 | 11 silly lifecycle csgo-reportbot-web@1.0.0~start: Args: [ '-c', 'node bot.js' ]
13 | 12 silly lifecycle csgo-reportbot-web@1.0.0~start: Returned: code: 1 signal: null
14 | 13 info lifecycle csgo-reportbot-web@1.0.0~start: Failed to exec start script
15 | 14 verbose stack Error: csgo-reportbot-web@1.0.0 start: `node bot.js`
16 | 14 verbose stack Exit status 1
17 | 14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
18 | 14 verbose stack at emitTwo (events.js:106:13)
19 | 14 verbose stack at EventEmitter.emit (events.js:192:7)
20 | 14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
21 | 14 verbose stack at emitTwo (events.js:106:13)
22 | 14 verbose stack at ChildProcess.emit (events.js:192:7)
23 | 14 verbose stack at maybeClose (internal/child_process.js:890:16)
24 | 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
25 | 15 verbose pkgid csgo-reportbot-web@1.0.0
26 | 16 verbose cwd /var/report-bot
27 | 17 error Linux 3.2.0-4-amd64
28 | 18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
29 | 19 error node v7.5.0
30 | 20 error npm v4.1.2
31 | 21 error code ELIFECYCLE
32 | 22 error csgo-reportbot-web@1.0.0 start: `node bot.js`
33 | 22 error Exit status 1
34 | 23 error Failed at the csgo-reportbot-web@1.0.0 start script 'node bot.js'.
35 | 23 error Make sure you have the latest version of node.js and npm installed.
36 | 23 error If you do, this is most likely a problem with the csgo-reportbot-web package,
37 | 23 error not with npm itself.
38 | 23 error Tell the author that this fails on your system:
39 | 23 error node bot.js
40 | 23 error You can get information on how to open an issue for this project with:
41 | 23 error npm bugs csgo-reportbot-web
42 | 23 error Or if that isn't available, you can get their info via:
43 | 23 error npm owner ls csgo-reportbot-web
44 | 23 error There is likely additional logging output above.
45 | 24 verbose exit [ 1, true ]
46 |
--------------------------------------------------------------------------------
/server_files/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "csgo-reportbot-web",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "bot.js",
6 | "dependencies": {
7 | "long": "^3.1.0",
8 | "protobufjs": "^5.0.1",
9 | "q": "^1.4.1",
10 | "readline-sync": "^1.4.4",
11 | "steam": "^1.4.0",
12 | "steamid": "^1.1.0"
13 | },
14 | "devDependencies": {},
15 | "scripts": {
16 | "update": "node ./protos/updater.js",
17 | "install": "npm run update",
18 | "start": "node bot.js"
19 | },
20 | "repository": {
21 | "type": "git",
22 | "url": "Report-Bot-Web"
23 | },
24 | "author": "askwrite, Radat.",
25 | "license": "ISC"
26 | }
--------------------------------------------------------------------------------
/server_files/protos/engine_gcmessages.proto:
--------------------------------------------------------------------------------
1 | import "google/protobuf/descriptor.proto";
2 |
3 | option cc_generic_services = false;
4 |
5 | message CEngineGotvSyncPacket {
6 | optional uint64 match_id = 1;
7 | optional uint32 instance_id = 2;
8 | optional uint32 signupfragment = 3;
9 | optional uint32 currentfragment = 4;
10 | optional float tickrate = 5;
11 | optional uint32 tick = 6;
12 | optional float rtdelay = 8;
13 | optional float rcvage = 9;
14 | optional float keyframe_interval = 10;
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/server_files/protos/protos.js:
--------------------------------------------------------------------------------
1 | var Protobuf = require("protobufjs");
2 |
3 | Protobuf.convertFieldsToCamelCase = true;
4 |
5 | var builder = Protobuf.newBuilder();
6 | Protobuf.loadProtoFile(__dirname + "/base_gcmessages.proto", builder);
7 | Protobuf.loadProtoFile(__dirname + "/cstrike15_gcmessages.proto", builder);
8 | Protobuf.loadProtoFile(__dirname + "/gcsdk_gcmessages.proto", builder);
9 |
10 | module.exports = builder.build();
11 |
--------------------------------------------------------------------------------
/server_files/protos/updater.js:
--------------------------------------------------------------------------------
1 | var fs = require("fs");
2 | var https = require("https");
3 |
4 | var baseUrl = "https://raw.githubusercontent.com/SteamRE/SteamKit/master/Resources/Protobufs/csgo/";
5 | var protos = [
6 | "base_gcmessages.proto",
7 | "steammessages.proto",
8 | "cstrike15_gcmessages.proto",
9 | "gcsdk_gcmessages.proto",
10 | "engine_gcmessages.proto"
11 | ];
12 |
13 | fs.readdir(__dirname, function(err, filenames) {
14 | if (err) {
15 | return err;
16 | }
17 |
18 | filenames.forEach(function(filename) {
19 | if (filename != "protos.js" && filename != "updater.js") {
20 | fs.unlinkSync(__dirname + "/" + filename);
21 | }
22 | });
23 |
24 | protos.forEach(function(proto) {
25 | var file = fs.createWriteStream(__dirname + "/" + proto);
26 | https.get(baseUrl + proto, function(response) {
27 | response.pipe(file);
28 | });
29 | });
30 | });
31 |
--------------------------------------------------------------------------------
/server_files/sentry/README.txt:
--------------------------------------------------------------------------------
1 | How to use Sentrys?
2 |
3 | Steps:
4 |
5 | 1.
6 | npm install . | To install the related stuff.
7 |
8 | 2.
9 | node steam_sentry.js | Login and put the Steam Guard Code in and youre good to go
10 |
11 | 3. Copy the ACCOUNT_NAME.sentry in the folder above. So where the bot-report-web.js is.
12 |
13 | Done. Have Fun.
14 |
--------------------------------------------------------------------------------
/server_files/sentry/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "csgo-reportbot-web",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "bot.js",
6 | "dependencies": {
7 | "long": "^3.1.0",
8 | "protobufjs": "^5.0.1",
9 | "q": "^1.4.1",
10 | "readline-sync": "^1.4.4",
11 | "steam": "0.6.8",
12 | "steamid": "^1.1.0"
13 | },
14 | "devDependencies": {},
15 | "repository": {
16 | "type": "git",
17 | "url": "Report-Bot-Web"
18 | },
19 | "author": "askwrite, Radat.",
20 | "license": "ISC"
21 | }
--------------------------------------------------------------------------------
/server_files/sentry/steam_sentry.js:
--------------------------------------------------------------------------------
1 | var username;
2 | var password;
3 | var steamCode;
4 |
5 | var Steam = require("steam");
6 | var fs = require("fs");
7 | var readline = require("readline");
8 |
9 | var steam = new Steam.SteamClient();
10 |
11 | var rl = readline.createInterface({
12 | input: process.stdin,
13 | output: process.stdout
14 | });
15 |
16 | rl.question("Username: ", function(answer) {
17 | username = answer;
18 | rl.question("Password: ", function(answer2) {
19 | password = answer2;
20 | rl.pause();
21 | steam.logOn({
22 | accountName: username,
23 | password: password
24 | });
25 | });
26 | });
27 |
28 | steam.on("logOnResponse", function(result) {
29 | console.log("Logged in");
30 | setTimeout (function() {
31 | process.exit();
32 | }, 1000);
33 | });
34 |
35 | steam.on("error", function(error) {
36 | if (error.cause == "logonFail") {
37 | if (error.eresult == 63) {
38 | rl.resume();
39 | rl.question("Steam guard code: ", function(answer) {
40 | steamCode = answer;
41 | rl.close();
42 | steam.logOn({
43 | accountName: username,
44 | password: password,
45 | authCode: steamCode
46 | });
47 | });
48 | } else {
49 | console.log("Logon fail: " + error.eresult);
50 | };
51 | };
52 | });
53 |
54 | steam.on('sentry', function(data) {
55 | var format = username + ".sentry";
56 | fs.writeFileSync(format, data);
57 | console.log("Sentry file successfully saved!");
58 | process.exit();
59 | });
60 |
--------------------------------------------------------------------------------
/web_files/admin/contact.php:
--------------------------------------------------------------------------------
1 | query('SELECT steamid FROM contact');
8 | $steamid_show = $req->fetch()->steamid;
9 |
10 | $req = $pdo->query('SELECT custom_message FROM contact');
11 | $custom_show = $req->fetch()->custom_message;
12 | $custom_show = str_replace('
','',$custom_show);
13 |
14 | $custom = "";
15 |
16 | if(isset($_POST['steam_url'])){
17 |
18 | // We check if there is already something into contact table
19 | $req = $pdo->prepare('SELECT * FROM contact');
20 | $req->execute();
21 | if($req->rowCount() == 0){
22 | $custom = nl2br(htmlentities($_POST['custom']));
23 | $steam_url = htmlentities($_POST['steam_url']);
24 |
25 | if((strstr($steam_url, "http://steamcommunity.com/profiles/")) or (strstr($steam_url, "https://steamcommunity.com/profiles/")) or (strstr($steam_url, "http://steamcommunity.com/id/")) or (strstr($steam_url, "https://steamcommunity.com/id/"))){
26 |
27 | $link = $steam_url.'?xml=1';
28 | $xml = simplexml_load_file(rawurlencode($link));
29 | $steamid = $xml->{'steamID64'};
30 |
31 | $req = $pdo->prepare("INSERT INTO contact SET steamid = ?, custom_message = ?");
32 | $req->execute([$steamid, $custom]);
33 | header("Location: contact.php");
34 | exit();
35 |
36 | }else{
37 | // Invalid link
38 | }
39 | }else{
40 | $custom = nl2br(htmlentities($_POST['custom']));
41 | $steam_url = htmlentities($_POST['steam_url']);
42 |
43 | if((strstr($steam_url, "http://steamcommunity.com/profiles/")) or (strstr($steam_url, "https://steamcommunity.com/profiles/")) or (strstr($steam_url, "http://steamcommunity.com/id/")) or (strstr($steam_url, "https://steamcommunity.com/id/"))){
44 |
45 | $link = $steam_url.'?xml=1';
46 | $xml = simplexml_load_file(rawurlencode($link));
47 | $steamid = $xml->{'steamID64'};
48 |
49 | $req = $pdo->prepare("UPDATE contact SET steamid = ?, custom_message = ?");
50 | $req->execute([$steamid, $custom]);
51 | header("Location: contact.php");
52 | exit();
53 | }
54 | }
55 |
56 | }
57 | require_once 'inc/header.php';
58 | ?>
59 |
60 | Contact
61 | = $custom ?>
62 |
63 |
64 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/web_files/admin/faq.php:
--------------------------------------------------------------------------------
1 | prepare("INSERT INTO faq SET question = ?, answer = ?");
18 | $req->execute([$question, $answer]);
19 |
20 | $_SESSION['flash']['success'] = "Question added.";
21 | header("Location: faq.php");
22 | exit();
23 | }
24 | }
25 | }
26 |
27 | if(isset($_GET['del'])){
28 | $id = htmlentities($_GET['del']);
29 |
30 | $req = $pdo->prepare("SELECT * FROM faq WHERE id = ?");
31 | $req->execute([$id]);
32 |
33 | if($req->rowCount() == 0){
34 | $_SESSION['flash']['danger'] = "ID Doesnt exist.";
35 | header("Location: faq.php");
36 | exit();
37 | }
38 |
39 | $req = $pdo->prepare("DELETE FROM faq WHERE id = ?");
40 | $req->execute([$id]);
41 |
42 | $_SESSION['flash']['warning'] = "Question successfully deleted.";
43 | header("Location: faq.php");
44 | exit();
45 | }
46 |
47 | if(isset($_POST['edit_id'])){
48 | $id = htmlentities($_POST['edit_id']);
49 | $question = htmlentities($_POST['edit_question']);
50 | $answer = nl2br(htmlentities($_POST['edit_answer']));
51 |
52 | $req = $pdo->prepare("SELECT * FROM faq WHERE id = ?");
53 | $req->execute([$id]);
54 | if($req->rowCount() == 0){
55 | $_SESSION['flash']['danger'] = "ID Doesnt exist.";
56 | header("Location: faq.php");
57 | exit();
58 | }
59 |
60 | // id exist
61 | $req = $pdo->prepare("UPDATE faq SET question = ?, answer = ? WHERE id = ?");
62 | $req->execute([$question, $answer, $id]);
63 |
64 | $_SESSION['flash']['success'] = "Question successfully updated.";
65 | header("Location: faq.php");
66 | exit();
67 | }
68 |
69 | require_once 'inc/header.php';
70 |
71 | ?>
72 | FAQ - Admin
73 |
74 |
75 |
76 |
77 |
Question list
78 |
79 |
80 |
81 | ID |
82 | Question |
83 | Answer |
84 | |
85 |
86 |
87 |
88 | query("SELECT * FROM faq ORDER BY id ASC");
90 | while($row = $req->fetch()) : ?>
91 |
92 | =$row->id ?> |
93 | =$row->question ?> |
94 | =$row->answer ?> |
95 | |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | query("SELECT * FROM faq");
128 | while($row = $req->fetch()): ?>
129 |
130 |
131 |
132 |
133 |
134 |
135 |
139 |
140 |
141 |
156 |
157 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/web_files/admin/history.php:
--------------------------------------------------------------------------------
1 |
8 |
9 | Token history
10 |
11 |
12 |
Report
13 |
14 |
15 |
16 | ID |
17 | Token |
18 | user IP |
19 | User |
20 | Date |
21 |
22 |
23 |
24 | query("SELECT * FROM tokens_activation WHERE type = 'report' ORDER BY id DESC");
26 | while($row = $req->fetch()){
27 | if(!empty($row->uid)){
28 | $r = $pdo->query("SELECT * FROM users WHERE id = '$row->uid'");
29 | $username = $r->fetch()->username;
30 | }else{
31 | $username = "Unknown";
32 | }
33 | ?>
34 |
35 | = $row->id ?> |
36 | = $row->token ?> |
37 | = $row->uip ?> |
38 | = $username ?> |
39 | = $row->date ?> |
40 |
41 |
44 |
45 |
46 |
47 |
48 |
49 |
Whitelist
50 |
51 |
52 |
53 | ID |
54 | Token |
55 | user IP |
56 | User |
57 | Date |
58 |
59 |
60 |
61 | query("SELECT * FROM tokens_activation WHERE type = 'whitelist' ORDER BY id DESC");
63 | while($row = $req->fetch()){
64 | if(!empty($row->uid)){
65 | $r = $pdo->query("SELECT * FROM users WHERE id = '$row->uid'");
66 | $username = $r->fetch()->username;
67 | }else{
68 | $username = "Unknown";
69 | }
70 | ?>
71 |
72 | = $row->id ?> |
73 | = $row->token ?> |
74 | = $row->uip ?> |
75 | = $username ?> |
76 | = $row->date ?> |
77 |
78 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
Commend
91 |
92 |
93 |
94 | ID |
95 | Token |
96 | user IP |
97 | User |
98 | Date |
99 |
100 |
101 |
102 | query("SELECT * FROM tokens_activation WHERE type = 'commend' ORDER BY id DESC");
104 | while($row = $req->fetch()){
105 | if(!empty($row->uid)){
106 | $r = $pdo->query("SELECT * FROM users WHERE id = '$row->uid'");
107 | $username = $r->fetch()->username;
108 | }else{
109 | $username = "Unknown";
110 | }
111 | ?>
112 |
113 | = $row->id ?> |
114 | = $row->token ?> |
115 | = $row->uip ?> |
116 | = $username ?> |
117 | = $row->date ?> |
118 |
119 |
122 |
123 |
124 |
125 |
126 |
127 |
Account
128 |
129 |
130 |
131 | ID |
132 | Token |
133 | user IP |
134 | User |
135 | Date |
136 |
137 |
138 |
139 | query("SELECT * FROM tokens_activation WHERE type = 'account' ORDER BY id DESC");
141 | while($row = $req->fetch()){
142 | if(!empty($row->uid)){
143 | $r = $pdo->query("SELECT * FROM users WHERE id = '$row->uid'");
144 | $username = $r->fetch()->username;
145 | }else{
146 | $username = "Unknown";
147 | }
148 | ?>
149 |
150 | = $row->id ?> |
151 | = $row->token ?> |
152 | = $row->uip ?> |
153 | = $username ?> |
154 | = $row->date ?> |
155 |
156 |
159 |
160 |
161 |
162 |
163 |
164 |
--------------------------------------------------------------------------------
/web_files/admin/inc/db.php:
--------------------------------------------------------------------------------
1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
5 | $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
--------------------------------------------------------------------------------
/web_files/admin/inc/footer.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
12 |
13 |
38 | Created with ♥ by Yellow
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | email)) : ?>
49 |
54 |
55 |