Add files via upload

This commit is contained in:
DRM-Panel
2023-06-11 18:46:01 +03:00
committed by GitHub
parent a1c2ffaaad
commit df1a573ed1
7 changed files with 778 additions and 0 deletions

90
db.sh Normal file
View File

@@ -0,0 +1,90 @@
#!/bin/bash
# Bash script written by Saad Ismail - me@saadismail.net
# edit to change _db.php
# If /root/.my.cnf exists then it won't ask for root password
if [ -f /root/.my.cnf ]; then
echo "Please enter the NAME of the new MySQL database! (example: database1)"
read dbname
sudo sed -i "s/drm/$dbname/g" /var/www/html/_db.php
echo "Please enter the MySQL database CHARACTER SET! (example: latin1, utf8, ...)"
echo "Enter utf8 if you don't know what you are doing"
read charset
echo "Creating new MySQL database..."
sudo mysql -e "CREATE DATABASE ${dbname} /*\!40100 DEFAULT CHARACTER SET ${charset} */;"
echo "Database successfully created!"
echo "Showing existing databases..."
sudo mysql -e "show databases;"
echo ""
echo "Please enter the NAME of the new MySQL database user! (example: user1)"
read username
sudo sed -i "s/admin/$username/g" /var/www/html/_db.php
echo "Please enter the PASSWORD for the new MySQL database user!"
echo "Note: password will be hidden when typing"
read -s userpass
sudo sed -i "s/passwd/$userpass/g" /var/www/html/_db.php
echo "Creating new user..."
sudo mysql -e "CREATE USER ${username}@localhost IDENTIFIED BY '${userpass}';"
echo "User successfully created!"
echo ""
echo "Granting ALL privileges on ${dbname} to ${username}!"
sudo mysql -e "GRANT ALL PRIVILEGES ON ${dbname}.* TO '${username}'@'localhost';"
sudo mysql -e "FLUSH PRIVILEGES;"
sudo mysql ${dbname} < db.sql
echo "Please enter root user MySQL password!"
echo "Note: password will be hidden when typing"
read -s rootpasswd
# MySQL commands
commands=$(cat <<EOF
USE $dbname;
SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';
SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';
EOF
)
echo "$commands" | mysql -u root -p"$rootpassword"
echo "You're good now :)"
exit
# If /root/.my.cnf doesn't exist then it'll ask for root password
else
echo "Please enter root user MySQL password!"
echo "Note: password will be hidden when typing"
read -s rootpasswd
echo "Please enter the NAME of the new MySQL database! (example: database1)"
read dbname
sudo sed -i "s/drm/$dbname/g" /var/www/html/_db.php
echo "Please enter the MySQL database CHARACTER SET! (example: latin1, utf8, ...)"
echo "Enter utf8 if you don't know what you are doing"
read charset
echo "Creating new MySQL database..."
sudo mysql -uroot -p${rootpasswd} -e "CREATE DATABASE ${dbname} /*\!40100 DEFAULT CHARACTER SET ${charset} */;"
echo "Database successfully created!"
echo "Showing existing databases..."
sudo mysql -uroot -p${rootpasswd} -e "show databases;"
echo ""
echo "Please enter the NAME of the new MySQL database user! (example: user1)"
read username
sudo sed -i "s/admin/$username/g" /var/www/html/_db.php
echo "Please enter the PASSWORD for the new MySQL database user!"
echo "Note: password will be hidden when typing"
read -s userpass
sudo sed -i "s/passwd/$userpass/g" /var/www/html/_db.php
echo "Creating new user..."
sudo mysql -uroot -p${rootpasswd} -e "CREATE USER ${username}@localhost IDENTIFIED BY '${userpass}';"
echo "User successfully created!"
echo ""
echo "Granting ALL privileges on ${dbname} to ${username}!"
sudo mysql -uroot -p${rootpasswd} -e "GRANT ALL PRIVILEGES ON ${dbname}.* TO '${username}'@'localhost';"
sudo mysql -uroot -p${rootpasswd} -e "FLUSH PRIVILEGES;"
sudo mysql -uroot -p${rootpasswd} ${dbname} < db.sql
# MySQL commands
commands=$(cat <<EOF
USE $dbname;
SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';
SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';
EOF
)
echo "$commands" | mysql -u root -p"$rootpasswd"
echo "You're good now :)"
exit
fi

321
db.sql Normal file
View File

@@ -0,0 +1,321 @@
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5ubuntu0.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 14, 2022 at 04:28 AM
-- Server version: 10.1.48-MariaDB-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `drm`
--
-- --------------------------------------------------------
--
-- Table structure for table `cats`
--
CREATE TABLE `cats` (
`CatID` int(11) NOT NULL,
`CatName` varchar(64) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `cats`
--
INSERT INTO `cats` (`CatID`, `CatName`) VALUES
(1, 'General');
-- --------------------------------------------------------
--
-- Table structure for table `channels`
--
CREATE TABLE `channels` (
`ID` int(11) NOT NULL,
`CatID` int(11) NOT NULL DEFAULT '1',
`ChannelName` varchar(64) NOT NULL,
`Manifest` varchar(1024) NOT NULL,
`VariantID` int(11) DEFAULT NULL,
`DownloadPath` varchar(128) DEFAULT NULL,
`StartTime` datetime DEFAULT NULL,
`EndTime` datetime DEFAULT NULL,
`Status` varchar(16) NOT NULL DEFAULT 'Stopped',
`PID` int(11) NOT NULL DEFAULT '0',
`FPID` int(11) DEFAULT '0',
`info` text,
`SegmentJoiner` int(11) DEFAULT '0',
`PlaylistLimit` int(11) DEFAULT '0',
`URLListLimit` int(11) DEFAULT '0',
`UseProxy` tinyint(4) DEFAULT '0',
`ProxyURL` varchar(128) DEFAULT NULL,
`ProxyPort` int(11) DEFAULT NULL,
`ProxyUser` varchar(64) DEFAULT NULL,
`ProxyPass` varchar(64) DEFAULT NULL,
`DownloadUseragent` varchar(255) DEFAULT NULL,
`AudioID` varchar(255) DEFAULT NULL,
`VideoID` varchar(64) DEFAULT NULL,
`AllowedIP` text,
`AutoRestart` tinyint(4) DEFAULT '1',
`Output` varchar(8) NOT NULL DEFAULT 'hls',
`UDPIP` varchar(32) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
--
-- Dumping data for table `channels`
--
INSERT INTO `channels` (`ID`, `CatID`, `ChannelName`, `Manifest`, `VariantID`, `DownloadPath`, `StartTime`, `EndTime`, `Status`, `PID`, `FPID`, `info`, `SegmentJoiner`, `PlaylistLimit`, `URLListLimit`, `UseProxy`, `ProxyURL`, `ProxyPort`, `ProxyUser`, `ProxyPass`, `DownloadUseragent`, `AudioID`, `VideoID`, `AllowedIP`, `AutoRestart`, `Output`, `UDPIP`) VALUES
(1, 1, 'bein prem1', 'https://live-d-main-beinmena.beincdn.com/ch10/b96db17d-e0cd-4a40-8c9f-5911d83f6341/ea42ec8d-adfc-4ef4-8981-799f11d07cc8.ism/ZXhwPTE2NDk5MDA4Njh%2bYWNsPSUyZmNoMTAlMmZiOTZkYjE3ZC1lMGNkLTRhNDAtOGM5Zi01OTExZDgzZjYzNDElMmZlYTQyZWM4ZC1hZGZjLTRlZjQtODk4MS03OTlmMTFkMDdjYzguaXNtJTJmKn5kYXRhPWY0OTcxYmE1LWJiMDUtNDViMS1iNTVkLWM3ODRiNGM5MzE1NX5obWFjPWY2MDM4YmM0NDNmNGI0OWExMWViOGNiNTk4Y2VjOWVhZDQ4Njc2MGIwMGVmN2U3ODAwYzgzMDg1OGVjMjU3ZWY%3d/manifest(format=mpd-time-csf,filter=desktop-fullres,encryption=cenc)', NULL, NULL, NULL, '2022-04-14 04:23:25', 'Stopped', 0, 0, '', 0, 0, 0, 0, NULL, NULL, NULL, NULL, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36', '5_A_primary_12037987828332995369', '1_V_video_17090713503055598136', '[\"\"]', 1, 'hls', ''),
(2, 1, 'jawwy', 'https://akm.cdn.intigral-ott.net/JAW1/JAW1.isml/manifest.mpd', NULL, NULL, NULL, '2022-04-14 04:23:25', 'Stopped', 0, 0, '', 0, 0, 0, 0, NULL, NULL, NULL, NULL, '', 'audio_96052_ara=96000', 'video=3000000', '[\"*\"]', 1, 'hls', ''),
(3, 1, 'FOX REW', 'https://akm.cdn.intigral-ott.net/FXR/FXR.isml/manifest.mpd', NULL, NULL, NULL, '2022-04-14 04:23:25', 'Stopped', 0, 0, '', 0, 0, 0, 0, NULL, NULL, NULL, NULL, '', 'audio_96051_eng=96000', 'video=3000000', '[\"*\"]', 1, 'hls', '');
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- Table structure for table `channel_keys`
--
CREATE TABLE `channel_keys` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`ChannelID` int(11) NOT NULL,
`KID` varchar(32) NOT NULL,
`Key` varchar(32) NOT NULL,
PRIMARY KEY (ID)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
INSERT INTO `channel_keys` (`ID`, `ChannelID`, `KID`, `Key`) VALUES
(1, 1, '9C4DF6B783964B6995628CF95C2A6EB3', '61a4b148c4b0ee4ea27c50cbf8793a78'),
(2, 2, 'E74C7D697BD26595B196C6B96E2D4F5B', 'e288110233737502e8af9184098ab50b'),
(3, 3, '556AF5561CBE3405FC3C241FD23B36C2', '18e9a528c7a22b940122afc832c333bf');
-- --------------------------------------------------------
--
-- Table structure for table `channel_keys`
--
CREATE TABLE `channel_headers` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`ChannelID` int(11) NOT NULL,
`Value` varchar(255) NOT NULL,
PRIMARY KEY (ID)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
--
-- Table structure for table `config`
--
CREATE TABLE `config` (
`ID` int(11) NOT NULL,
`ConfigName` varchar(32) NOT NULL,
`ConfigDesc` varchar(64) NOT NULL,
`ConfigValue` varchar(256) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `config`
--
INSERT INTO `config` (`ID`, `ConfigName`, `ConfigDesc`, `ConfigValue`) VALUES
(1, 'DownloadPath', '', '/var/www/html/download'),
(2, 'BinPath', '', '/var/www/html/'),
(3, 'SegmentJoiner', '', '3'),
(4, 'DeleteEncryptedAfterDecrypt', '', '1'),
(5, 'DeleteDecryptedAfterMerge', '', '1'),
(6, 'PlaylistLimit', '', '3'),
(7, 'URLListLimit', '', '2'),
(8, 'FFMpegCMD', '', '-hide_banner -i [VIDEO] -i [AUDIO] -vcodec copy -scodec copy -acodec copy [OUTPUT]'),
(9, 'M3UDownloadURL', '', 'http://127.0.0.1/download'),
(10, 'ProxyURL', 'Proxy URL', ''),
(11, 'ProxyPort', 'Proxy Port', ''),
(12, 'ProxyUser', 'Proxy Username', ''),
(13, 'ProxyPass', 'Proxy Password', ''),
(14, 'DownloadUseragent', 'Download Useragent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0'),
(15, 'AutoRestart', 'Auto restart channels', '1'),
(16, 'DownloaderPath', 'Downloader Path', '/var/www/html/'),
(17, 'BackupPath', '/var/www/backup', '/var/www/backup'),
(18, 'MaxLogSize', '', '1048576');
-- --------------------------------------------------------
--
-- Table structure for table `notification`
--
CREATE TABLE `notification` (
`ID` int(11) NOT NULL,
`Titel` varchar(32) DEFAULT NULL,
`Msg` varchar(256) DEFAULT NULL,
`Sent` datetime NOT NULL,
`Status` varchar(8) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`ID` int(11) NOT NULL,
`UserID` varchar(16) NOT NULL,
`Password` varchar(32) NOT NULL,
`Role` varchar(16) DEFAULT NULL,
`LastAccess` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`ID`, `UserID`, `Password`, `Role`, `LastAccess`) VALUES
(1, 'admin', 'Admin@2023##', 'Admin', '2022-04-14 03:44:24');
-- --------------------------------------------------------
--
-- Table structure for table `variant`
--
CREATE TABLE `variant` (
`ID` int(11) NOT NULL,
`ChannelID` int(11) NOT NULL,
`Language` varchar(8) DEFAULT NULL,
`Bandwidth` int(11) DEFAULT NULL,
`AudioID` varchar(32) NOT NULL,
`AudioBandwidth` int(11) DEFAULT NULL,
`AudioCodecs` varchar(32) DEFAULT NULL,
`VideoID` varchar(32) NOT NULL,
`VideoBandwidth` int(11) DEFAULT NULL,
`VideoCodecs` varchar(32) DEFAULT NULL,
`Width` int(11) DEFAULT NULL,
`Height` int(11) DEFAULT NULL,
`Framerate` varchar(16) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `variant`
--
INSERT INTO `variant` (`ID`, `ChannelID`, `Language`, `Bandwidth`, `AudioID`, `AudioBandwidth`, `AudioCodecs`, `VideoID`, `VideoBandwidth`, `VideoCodecs`, `Width`, `Height`, `Framerate`) VALUES
(38, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_6140004908920393176', 400000, 'avc1.4D400D', 384, 216, ''),
(37, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_10384369079951789487', 600000, 'avc1.4D4015', 512, 288, ''),
(36, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_15797029007959740831', 949952, 'avc1.4D401E', 640, 360, ''),
(35, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_14851006325304870635', 1400000, 'avc1.4D401E', 768, 432, ''),
(34, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_16981495139092747609', 2200000, 'avc1.4D401F', 1024, 576, ''),
(33, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_17090713503055598136', 3449984, 'avc1.64001F', 1280, 720, ''),
(32, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_15517948687693901110', 4749952, 'avc1.640028', 1600, 900, ''),
(31, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_14759481473095519504', 6000000, '', 1920, 1080, ''),
(30, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_3750956353252827751', 149952, 'avc1.4D400C', 256, 144, ''),
(29, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_17917517102610242332', 249984, 'avc1.4D400D', 384, 216, ''),
(28, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_6140004908920393176', 400000, 'avc1.4D400D', 384, 216, ''),
(27, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_10384369079951789487', 600000, 'avc1.4D4015', 512, 288, ''),
(26, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_15797029007959740831', 949952, 'avc1.4D401E', 640, 360, ''),
(25, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_14851006325304870635', 1400000, 'avc1.4D401E', 768, 432, ''),
(24, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_16981495139092747609', 2200000, 'avc1.4D401F', 1024, 576, ''),
(23, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_17090713503055598136', 3449984, 'avc1.64001F', 1280, 720, ''),
(22, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_15517948687693901110', 4749952, 'avc1.640028', 1600, 900, ''),
(21, 1, 'mul', 0, '5_A_primary_12037987828332995369', 96000, 'mp4a.40.2', '1_V_video_14759481473095519504', 6000000, '', 1920, 1080, ''),
(39, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_17917517102610242332', 249984, 'avc1.4D400D', 384, 216, ''),
(40, 1, 'mul', 0, '5_A_secondary_200482043670721364', 96000, 'mp4a.40.2', '1_V_video_3750956353252827751', 149952, 'avc1.4D400C', 256, 144, ''),
(41, 2, 'ar', 0, 'audio_96052_ara=96000', 96000, 'mp4a.40.2', 'video=350000', 350000, 'avc1.4D401F', 384, 216, '25'),
(42, 2, 'ar', 0, 'audio_96052_ara=96000', 96000, 'mp4a.40.2', 'video=600000', 600000, 'avc1.4D401F', 512, 288, '25'),
(43, 2, 'ar', 0, 'audio_96052_ara=96000', 96000, 'mp4a.40.2', 'video=1300000', 1300000, 'avc1.4D401F', 768, 432, '25'),
(44, 2, 'ar', 0, 'audio_96052_ara=96000', 96000, 'mp4a.40.2', 'video=1800000', 1800000, 'avc1.4D401F', 960, 540, '25'),
(45, 2, 'ar', 0, 'audio_96052_ara=96000', 96000, 'mp4a.40.2', 'video=3000000', 3000000, 'avc1.640029', 1280, 720, '25'),
(46, 3, 'en', 0, 'audio_96051_eng=96000', 96000, 'mp4a.40.2', 'video=350000', 350000, 'avc1.4D401F', 384, 216, '25'),
(47, 3, 'en', 0, 'audio_96051_eng=96000', 96000, 'mp4a.40.2', 'video=600000', 600000, 'avc1.4D401F', 512, 288, '25'),
(48, 3, 'en', 0, 'audio_96051_eng=96000', 96000, 'mp4a.40.2', 'video=1300000', 1300000, 'avc1.4D401F', 768, 432, '25'),
(49, 3, 'en', 0, 'audio_96051_eng=96000', 96000, 'mp4a.40.2', 'video=1800000', 1800000, 'avc1.4D401F', 960, 540, '25'),
(50, 3, 'en', 0, 'audio_96051_eng=96000', 96000, 'mp4a.40.2', 'video=3000000', 3000000, 'avc1.640029', 1280, 720, '25');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cats`
--
ALTER TABLE `cats`
ADD PRIMARY KEY (`CatID`);
--
-- Indexes for table `channels`
--
ALTER TABLE `channels`
ADD PRIMARY KEY (`ID`),
ADD KEY `CatID` (`CatID`);
ALTER TABLE `channel_keys`
ADD KEY `ChannelId` (`ChannelId`);
ALTER TABLE `channel_headers`
ADD KEY `ChannelId` (`ChannelId`);
--
-- Indexes for table `config`
--
ALTER TABLE `config`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `notification`
--
ALTER TABLE `notification`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`ID`),
ADD KEY `UserID` (`UserID`);
--
-- Indexes for table `variant`
--
ALTER TABLE `variant`
ADD PRIMARY KEY (`ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cats`
--
ALTER TABLE `cats`
MODIFY `CatID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `channels`
--
ALTER TABLE `channels`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `config`
--
ALTER TABLE `config`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `notification`
--
ALTER TABLE `notification`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `variant`
--
ALTER TABLE `variant`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;

113
installer-beta.sh Normal file
View File

@@ -0,0 +1,113 @@
#!/bin/bash
#-- UBUNTU 18.04 ONLY --
echo "############################################################################################"
echo "# DRMPHP 0.1 BY DRMSCRIPTS COMMUNITY - HTTPS://DRMPANEL.PP.UA #"
echo "# THIS INSTALL IS BASED ON INSTALLING ALL FILES IN PANEL FOLDER TO THE ROOT OF HTML FOLDER #"
echo "############################################################################################"
echo "####################################################"
echo "# INSTALL STEP 1: REPOS, PACKAGES & PANEL DOWNLOAD #"
echo "####################################################"
# Add Repos
apt install software-properties-common -y;
add-apt-repository ppa:ondrej/php -y;
add-apt-repository ppa:ondrej/apache2 -y;
add-apt-repository ppa:xapienz/curl34 -y;
# Remove any pending packages
apt-get autoremove;
# Run an update
apt-get update -y;
apt full-upgrade -y;
# Install MySQL, Apache2 & Aria2
apt install mysql-server apache2 aria2 -y;
apt-get install php7.4 php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-bz2 php7.4-xmlrpc -y;
# Download Panel
cd /home;
apt install git -y;
git clone https://github.com/DRM-Panel/DRMPHP;
echo "####################################################";
echo "# INSTALL STEP 2: MYSQL, SHORTTAGS, FFMPEG & PANEL #";
echo "####################################################";
#setup sql cnf
content="[mysqld]\nsql-mode=\"NO_ENGINE_SUBSTITUTION\"\n";
echo -e "$content" | tee /etc/mysql/my.cnf > /dev/null;
service mysql restart;
echo "MySQL configured successfully!";
#setup php.ini
sed -i -r 's/short_open_tag = Off$/short_open_tag = On/' /etc/php/7.4/cli/php.ini;
sed -i -r 's/short_open_tag = Off/short_open_tag = On/g' /etc/php/7.4/apache2/php.ini;
echo "php.ini configured successfully!";
#setup sudoers
line="www-data ALL=(ALL) NOPASSWD: ALL";
sed -i "$ a $line" /etc/sudoers;
echo "Sudoers configured successfully!";
service apache2 restart;
cd /home;
#download and setup ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz;
tar -xf ffmpeg-release-amd64-static.tar.xz;
cp -r ffmpeg-6.0-amd64-static/* /usr/bin;
echo "FFMpeg configured successfully!";
cd DRM*;
cp -r panel/. /var/www/html;
cd /var/www/html;
chmod +x mp4decrypt;
mkdir download;
chmod 777 download;
cd ../;
mkdir backup;
chmod 777 backup;
chmod 777 html;
cd /home;
cd DRM*;
cp panel/downloader.php /var/www/html;
echo "Panel configured successfully!";
echo "####################################################";
echo "# INSTALL STEP 3: MYSQL DATABASE SETUP #";
echo "####################################################";
cd /home/DRMPHP;
chmod 777 ./db.sh;
sed -i -e 's/\r$//' db.sh;
./db.sh;
echo "Database configured successfully!";
echo "####################################################";
echo "# INSTALL STEP 4: CLEANUP #";
echo "####################################################";
#delete default apache page
rm /var/www/html/index.html;
echo
echo
echo "####################################################";
echo "# INSTALLATION COMPLETE #";
echo "####################################################";
echo
echo
#--ACCESS
public_ip=$(wget -q "http://api.ipify.org" -O -);
echo "####################################################";
echo "# PANEL DETAILS #";
echo "####################################################";
echo "# USER: admin #";
echo "# PASS: Admin@2023## #";
echo "# URL: http://$public_ip/login.php #";
echo "####################################################";
echo "# NOTE: EDIT <M3U8 Download URL> IN SETTINGS PAGE #";
echo "####################################################";

131
installer-beta_2004.sh Normal file
View File

@@ -0,0 +1,131 @@
#!/bin/bash
#-- UBUNTU 20.04 ONLY --
echo "############################################################################################"
echo "# DRMPHP 0.1 BY DRMSCRIPTS COMMUNITY - HTTPS://DRMPANEL.PP.UA #"
echo "# THIS INSTALL IS BASED ON INSTALLING ALL FILES IN PANEL FOLDER TO THE ROOT OF HTML FOLDER #"
echo "############################################################################################"
echo "############################################################################################"
echo "# For Hetzner please change your source.list in /etc/apt/source.list to the following: #"
echo "# deb http://mirror.hetzner.de/ubuntu/packages focal main restricted #"
echo "# deb http://mirror.hetzner.de/ubuntu/packages focal-updates main restricted #"
echo "############################################################################################"
read -p "Are you sure already change your source.list? (y/n)" answer
# Check the user's response
if [[ "$answer" =~ ^[yY]$ ]] || [[ "$answer" =~ ^[yY][eE][sS]$ ]]; then
echo "Confirmed. Proceeding..."
# Your code here
else
echo "Confirmation declined. Aborting."
exit
# Handle the rejection or exit the script
fi
echo "####################################################"
echo "# INSTALL STEP 1: REPOS, PACKAGES & PANEL DOWNLOAD #"
echo "####################################################"
# Add Repos
apt update -y
apt install git -y;
apt install software-properties-common -y;
add-apt-repository ppa:ondrej/php -y;
add-apt-repository ppa:ondrej/apache2 -y;
# Remove any pending packages
apt-get autoremove;
# Run an update
apt-get update -y;
apt full-upgrade -y;
# Install MySQL, Apache2 & Aria2
apt install mysql-server apache2 aria2 -y;
a2dismod mpm_event;
apt-get install php7.4 php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-bz2 php7.4-xmlrpc -y;
# Download Panel
cd /home;
git clone https://github.com/DRM-Panel/DRMPHP;
echo "####################################################";
echo "# INSTALL STEP 2: MYSQL, SHORTTAGS, FFMPEG & PANEL #";
echo "####################################################";
#setup sql cnf
content="[mysqld]\nsql-mode=\"NO_ENGINE_SUBSTITUTION\"\n";
echo -e "$content" | tee /etc/mysql/my.cnf > /dev/null;
service mysql restart;
echo "MySQL configured successfully!";
#setup php.ini
sed -i -r 's/short_open_tag = Off$/short_open_tag = On/' /etc/php/7.4/cli/php.ini;
sed -i -r 's/short_open_tag = Off/short_open_tag = On/g' /etc/php/7.4/apache2/php.ini;
echo "php.ini configured successfully!";
#setup sudoers
line="www-data ALL=(ALL) NOPASSWD: ALL";
sed -i "$ a $line" /etc/sudoers;
echo "Sudoers configured successfully!";
service apache2 restart;
cd /home;
#download and setup ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz;
tar -xf ffmpeg-release-amd64-static.tar.xz;
cp -r ffmpeg-6.0-amd64-static/* /usr/bin;
echo "FFMpeg configured successfully!";
cd DRM*;
cp -r panel/. /var/www/html;
cd /var/www/html;
chmod +x mp4decrypt;
mkdir download;
chmod 777 download;
cd ../;
mkdir backup;
chmod 777 backup;
chmod 777 html;
cd /home;
cd DRM*;
cp panel/downloader.php /var/www/html;
echo "Panel configured successfully!";
echo "####################################################";
echo "# INSTALL STEP 3: MYSQL DATABASE SETUP #";
echo "####################################################";
cd /home/DRMPHP;
chmod 777 ./db.sh;
sed -i -e 's/\r$//' db.sh;
./db.sh;
echo "Database configured successfully!";
echo "####################################################";
echo "# INSTALL STEP 4: CLEANUP #";
echo "####################################################";
#delete default apache page
rm /var/www/html/index.html;
echo
echo
echo "####################################################";
echo "# INSTALLATION COMPLETE #";
echo "####################################################";
echo
echo
#--ACCESS
public_ip=$(wget -q "http://api.ipify.org" -O -);
echo "####################################################";
echo "# PANEL DETAILS #";
echo "####################################################";
echo "# USER: admin #";
echo "# PASS: Admin@2023## #";
echo "# URL: http://$public_ip/login.php #";
echo "####################################################";
echo "# NOTE: EDIT <M3U8 Download URL> IN SETTINGS PAGE #";
echo "####################################################";

66
readme-1804.txt Normal file
View File

@@ -0,0 +1,66 @@
-- UBUNTU 18.04 ONLY --
###########################################################################################
# THIS INSTALL IS BASED ON INSTALLING ON FILES IN PANEL FOLDER TO THE ROOT OF HTML FOLDER #
###########################################################################################
--REQUIREMENTS
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt full-upgrade
sudo apt install mysql-server apache2 aria2 -y
sudo apt-get install -y php7.4 php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-bz2 php7.4-xmlrpc
--DOWNLOAD
cd /home
sudo apt install git
git clone https://github.com/DRM-Panel/DRMPHP
--SETUP
sudo nano /etc/mysql/my.cnf - Copy the below into the cnf file
[mysqld]
sql-mode="NO_ENGINE_SUBSTITUTION"
sudo service mysql restart
cd DRMPHP/
sudo cp -r cli /etc/php/7.4/
sudo nano /etc/php/7.4/apache2/php.ini - Enable Short Open Tags
sudo visudo - Copy the below into visudo
www-data ALL=(ALL) NOPASSWD: ALL
sudo service apache2 restart
cd /home
sudo wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
sudo tar -xf ffmpeg-release-amd64-static.tar.xz
sudo cp -r ffmpeg-6.0-amd64-static/* /usr/bin
cd DRM*
sudo cp -r panel/. /var/www/html
cd /var/www/html
sudo chmod +x mp4decrypt
sudo mkdir download
sudo chmod 777 download
cd ../
mkdir backup
sudo chmod 777 backup
sudo chmod 777 html
cd /home
cd DRM*
sudo cp panel/downloader.php /var/www/html
cd /home/DRMPHP
sudo chmod 777 ./db.sh
sudo sed -i -e 's/\r$//' db.sh
sudo ./db.sh - Fill in the MYSQL Database & User Details
mysql -u root -p
USE DBNAME
SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';
SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';
exit
cd /var/www/html
sudo nano _db.php - Enter Your DB & User Details
sudo service apache2 restart
--ACCESS
browse to pub server ip
login with admin/Admin@2023##

44
readme-2004.txt Normal file
View File

@@ -0,0 +1,44 @@
# Ubuntu 20.04
1. apt update
2. sudo apt -y install software-properties-common
3. sudo add-apt-repository ppa:ondrej/php
4. sudo add-apt-repository ppa:savoury1/curl34
5. apt update
6. sudo apt install mysql-server apache2 aria2 -y
7. sudo apt-get install -y php7.4 php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-bz2 php7.4-xmlrpc
8. apt install git
9. cd /home && git clone https://github.com/DRM-Panel/DRMPHP
10. cd DRM*
11. cp -r cli /etc/php/7.4
12. wget http://ftp.de.debian.org/debian/pool/main/n/nghttp2/libnghttp2-14_1.52.0-1_amd64.deb
13. dpkg -i libnghttp2-14_1.52.0-1_amd64.deb
14. edit /etc/php/7.4/apache2/php.ini using nano -> ctrl + w -> short_open_tag -> change short_open_tag = Off to be short_open_tag = On
15. visudo -> add www-data ALL=(ALL) NOPASSWD: ALL in the most bottom
16. service apache2 restart
17. cd /home
18. wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
19. tar -xf ffmpeg-release-amd64-static.tar.xz
20. cp -r ffmpeg-6.0-amd64-static/* /usr/bin
21. cd DRM*
22. cp -r panel/. /var/www/html
23. cd /var/www/html
24. chmod +x mp4decrypt
25. mkdir download
26. chmod 777 download
27. cd ../
28. mkdir backup
29. chmod 777 backup
30. chmod 777 html
31. cd /home
32. cd DRM*
34. cp downloader.php /var/www/html
35. cp panel/downloader.php /var/www/html
36. cd /home/DRM*
37. chmod 777 ./db.sh
38. sed -i -e 's/\r$//' db.sh
39. ./db.sh - Fill in the MYSQL Database & User Details
40. cd /var/www/html
41. nano _db.php - Enter Your DB & User Details
42. service apache2 restart
43. browse to pub server ip
44. login with admin/Admin@2023##

13
readme.txt Normal file
View File

@@ -0,0 +1,13 @@
NOTICE: The adding of user lines is a work in progress, do not use in a production enviroment until fully completed.
-- UBUNTU 18.04 --
cd /home
wget https://raw.githubusercontent.com/DRM-Panel/DRMPHP/master/installer-beta.sh
chmod 777 ./installer-beta.sh && sed -i -e 's/\r$//' installer-beta.sh && ./installer-beta.sh
-- UBUNTU 20.04 --
cd /home
wget https://raw.githubusercontent.com/DRM-Panel/DRMPHP/master/installer-beta_2004.sh
chmod 777 ./installer-beta_2004.sh && sed -i -e 's/\r$//' installer-beta_2004.sh && ./installer-beta_2004.sh