Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 000-default.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<VirtualHost *:80>

DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ Open source web player compatible with XtreamCodes V2 API

Use a clean Ubuntu 18.04 (not running any other service or script will fail) and run the following:

*** Original Language ***
```sh
curl -s https://raw.githubusercontent.com/tweakunwanted/OpenXC-Player/master/install.sh | sudo bash
```

*** English Version ***


```sh
curl -s https://raw.githubusercontent.com/R3tr0R4z0r/OpenXC-Player/master/install-ENG.sh | sudo bash
```

After that edit the file `/var/www/html/libs/config.php`

```
Expand All @@ -30,6 +38,21 @@ Edit `/etc/apache2/sites-available/000-default.conf` and add the following above
ServerName domain.com
```

#### Customisation

Edit `/var/www/html/libs/idioma.php` for the following
* To use your own service name edit -- `define("NOME_IPTV", "YOUR SERVICE NAME HERE");`
* Welcome message edit -- `define('HOME_TEXTO_BEMVINDO','Welcome to the webplayer, login below.');`

Change images and design
* All web player graphics can be found here -- `/var/www/html/assets/blue`
* Swap between Pre-configured tempaltes can eb done in -- `/var/www/html/libs/config.php -- $template = 'blue';`
Avialable Templates -- pink, aqua, orange or blue.


#### NOTE: Chrome and Firefox do not support MKV or AVI files as standard, this player has been tested with OperaGX which supports MKV.


### Screenshots

![image](https://user-images.githubusercontent.com/56216907/66614072-f1c31e80-eb9d-11e9-93ad-81610630685a.png)
Expand Down
4 changes: 2 additions & 2 deletions canais.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<div class="thumbr">
<a class="post-thumb" href="canal.php?sessao=<?php echo $_GET['sessao']; ?>&stream=<?php echo $canal_id; ?>&streamtipo=<?php echo $canal_type; ?>&canal=<?php echo urlencode($canal_nome); ?>&img=<?php echo urlencode($canal_img); ?>&catg=<?php echo $_GET['id']; ?>">
<span class="play-btn-border" title="Play"><i class="fa fa-play-circle headline-round" aria-hidden="true"></i></span>
<div class="cactus-note ct-time font-size-1"><span>Ao Vivo</span></div>
<div class="cactus-note ct-time font-size-1"><span>Live</span></div>
<img class="img-responsive" src="<?php echo $canal_img; ?>" alt="<?php echo $canal_nome; ?>" style="width:100%;height:200px;">
</a>
</div>
Expand Down Expand Up @@ -151,4 +151,4 @@
<script src="assets/js/age-verification.js"></script>
<?php } ?>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions filme.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9 video-embed-box">

<?php if($exts == 'avi' || $exts == 'mkv') { ?>
<?php if($exts == 'xxx') { ?>
<center><br><br>
<h4><?php echo ERROR_FORMATO_VIDEO; ?>: <?php echo $exts; ?></h4>
<br><br>
Expand Down Expand Up @@ -377,4 +377,4 @@ function() {
});
</script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion inc/busca.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<form>
<input type="search" id="busca" placeholder="Pesquisar">
<input type="search" id="busca" placeholder="Search">
</form>
4 changes: 2 additions & 2 deletions inc/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
$data_inicio = new DateTime(date('Y-m-d'));
$data_fim = new DateTime($dsfim);
$dateInterval = $data_inicio->diff($data_fim);
echo $dateInterval->days . ' Dias';
echo $dateInterval->days . ' Days';
?>
</div>
</div>
4 changes: 2 additions & 2 deletions inc/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</li>

<li class="dropdown mega-dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Filmes <span class="fa fa-chevron-down pull-right"></span></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo MENU_Film_Title; ?> <span class="fa fa-chevron-down pull-right"></span></a>
<ul class="dropdown-menu">

<?php
Expand Down Expand Up @@ -72,4 +72,4 @@
<li><a href="assinatura.php?sessao=<?php echo gerar_hash(256); ?>"><?php echo MENU_RENOVAR; ?></a></li>
<?php } ?>

<li><a href="?acao=sair"><?php echo MENU_SAIR; ?></a></li>
<li><a href="?acao=sair"><?php echo MENU_SAIR; ?></a></li>
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@

<div class="col-md-12 login-header">
<?php if($_GET['sess'] == 'teste') { ?>
<div class="alert alert-danger"><b>OCORREU UM ERRO</b> Desculpe você já solicitou um teste em nosso sistema.</div>
<div class="alert alert-danger"><b>Error</b> Sorry you already requested a test on our system.</div>
<?php } ?>
<?php if($_GET['sess'] == 'block') { ?>
<div class="alert alert-danger"><b>USUÁRIO BLOQUEADO</b> Desculpe seu usuário esta bloqueado ou vencido entre em contato com o suporte.</div>
<div class="alert alert-danger"><b>Blocked/Expired</b> Sorry this username is blocked or expired please contact support.</div>
<?php } ?>
<?php if($_GET['sess'] == 'erro') { ?>
<div class="alert alert-danger"><b>DADOS INVÁLIDOS</b> Desculpe não foi possível realizar seu login, dados não encontrados no sistema.</div>
<?php } ?>
<div class="alert alert-danger"><b>Credential Error</b> Sorry, the Username and/or Password is incorrect, please check and try again.</div>
<?php } ?>

</div>
<div class="clearfix spacer"></div>
Expand Down
13 changes: 13 additions & 0 deletions install-ENG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

apt update && apt install apache2 php7.2 wget curl git -y
curl -s https://raw.githubusercontent.com/R3tr0R4z0r/OpenXC-Player/master/php7.2-ext.sh | sudo bash
rm -rf /var/www/html
git clone https://github.com/R3tr0R4z0r/OpenXC-Player /var/www/html
rm -rf !$/.git
rm -rf /var/www/html/.gitattributes
rm -rf /var/www/html/install.sh
rm -rf /var/www/html/install-ENG.sh
rm -rf /var/www/html/README.md
rm -rf /var/www/html/php7.2-ext.sh
wget -q https://raw.githubusercontent.com/R3tr0R4z0r/OpenXC-Player/master/000-default.conf -O /etc/apache2/sites-available/000-default.conf
service apache2 restart
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ git clone https://github.com/tweakunwanted/OpenXC-Player /var/www/html
rm -rf !$/.git
rm -rf /var/www/html/.gitattributes
rm -rf /var/www/html/install.sh
rm -rf /var/www/html/install-ENG.sh
rm -rf /var/www/html/README.md
rm -rf /var/www/html/php7.2-ext.sh
wget -q https://raw.githubusercontent.com/tweakunwanted/OpenXC-Player/master/000-default.conf -O /etc/apache2/sites-available/000-default.conf
Expand Down
73 changes: 36 additions & 37 deletions libs/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$template = 'blue';

// WhatsApp Number
define("WHATSAPP", ''); //Numero WhatsApp
define("WHATSAPP", ''); // WhatsApp Number

// Website
define("NOME_IPTV", 'WebPlayer');
Expand All @@ -21,59 +21,58 @@
define("LINK_PAGAR3", ''); // Link 3
define("LINK_PAGAR4", ''); // Link 4

$nome1 = "Mensal";
$valor1 = "29.90"; // Valor Mensal
$nome2 = "Trimestral";
$valor2 = "79.90"; // Valor Mensal
$nome3 = "Semestral";
$valor3 = "129.90"; // Valor Mensal
$nome4 = "Anual";
$valor4 = "199.90"; // Valor Mensal
$nome1 = "Monthly";
$valor1 = "29.90"; // Price for Month
$nome2 = "3 Months";
$valor2 = "79.90"; // Price for 3 Months
$nome3 = "6 Months";
$valor3 = "129.90"; // Price for 6 Months
$nome4 = "12 Months";
$valor4 = "199.90"; // Price for 12 Months

// Settings Xtream-Codes CMS

define("ATIVAR_TESTE", '0'); // 1 = YES / 0 = NO
define("HORAS", '2'); // Trial Duration in hours
define("XTREAM_URL", 'https://cms-eu.xtream-codes.com/'); //URL CMS do Xtream-Codes
define("XTREAM_USER", ''); //Usuário do Xtream-Codes
define("XTREAM_PWD", ''); //Senha do Xtream-Codes
define("XTREAM_PLANO", '1'); //Número do Plano do Xtream-Codes em caso de dúvidas contate o suporte.
define("ATIVA_BLOQUEIO_TESTE", '0'); // Se Ativado (1) = Bloqueia novos cadastros apartir do computador do usuário por 30 dias, evitar testes a todo momento

// CONFIGURAÇÕES DO EMAIL SMTP ENVIO DE TESTES:
define("SMTP_HOST", 'mail.revenda.com');
define("SMTP_USER", '');
define("SMTP_SENHA", '');
define("SMTP_PORTA", '587');
define("SMTP_SEGURANCA", 'tls');
define("EMAIL_ASSUNTO", 'Bem Vindo ao ITV - WebPlayer');
define("HORAS", '12'); // Trial Duration in hours
define("XTREAM_URL", 'https://cms-eu.xtream-codes.cm/'); //URL to Xtream-Codes CMS
define("XTREAM_USER", ''); //Xtream-Codes User
define("XTREAM_PWD", ''); //Xtream-Codes Password
define("XTREAM_PLANO", '1'); //Xtream-Codes Plan Number If in doubt contact support.
define("ATIVA_BLOQUEIO_TESTE", '0'); // If set to Enabled "1" = It will block new registrations from the user's computer for 30 days, avoid testing at all times.

// EMAIL SMTP SNDING SETTINGS TESTS:
define("SMTP_HOST", 'mail.revenda.com'); //Enter your SMTP host domain
define("SMTP_USER", ''); //Enter your SMTP Username here
define("SMTP_SENHA", ''); //Enter your SMTP Password here
define("SMTP_PORTA", '587'); //Enter your SMTP Port here
define("SMTP_SEGURANCA", 'tls'); //Enter your SMTP security here eg. ssl,tls,starttls
define("EMAIL_ASSUNTO", 'Bem Vindo ao ITV - WebPlayer'); //Email Subject
define("EMAIL_REVENDA", 'contato@revenda.com');
define("NOME_REVENDA", 'WebPlayer');

// Adults categories
define("AVISO_ADULTOS_CANAL", 'XXX: ADULTOS'); // Should be the same as XC
define("AVISO_ADULTOS_FILME", 'FILMES: ADULTOS'); // Should be the same as XC
// Você pode ver esta nome quando o sistema gerar as categorias
// You can see this name when the system generates the categories


// ATENÇÃO AO EDITAR O CORPO DO EMAIL
// Dont change the variables
// USE CAUTION WHEN EDITING THE EMAIL BODY!
// Dont change the following variables
//
// %VENCIMENTO%, %NOME%, %USUARIO%, %SENHA%
// %VENCIMENTO%, %NOME%, %USUARIO%, %SENHA%, %EXPIRATION%
//
// Ask a developer for help if needed.


define("CORPO_EMAIL", "Olá %NOME%, seu teste foi criado com sucesso.<br><br>
Você pode fazer seu login em nosso webplayer utilizando os seguintes dados:<br>
<br>
Usuário: <b>%USUARIO%</b> <br>
Senha: <b>%SENHA%</b> <br><br><br>
Você também pode testar nossa lista fazendo o download abaixo:<br><br>
%URL_LISTA%<br><br><br>
Aproveite seu teste é valido até: %VENCIMENTO%<br><br><br>
define("CORPO_EMAIL", "Hello %NAME%, your test has been created successfully. <br> <br>
You can login to our webplayer using the following credentials: <br>
<br>
User: <b>% USER% </b> <br>
Password: <b>% PASSWORD% </b> <br> <br> <br>

Enjoy your test is valid until:%EXPIRATION% <br> <br> <br>

Obrigado<br>
WebPlayer.
Thank you <br>
WebPlayer.

");
66 changes: 0 additions & 66 deletions libs/idioma.php

This file was deleted.

4 changes: 2 additions & 2 deletions libs/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$vl4 = explode(".",$valor4);
// END

// Funções do Sistema
// System Functions

function apixtream($url_api){
$ch = curl_init();
Expand Down Expand Up @@ -127,7 +127,7 @@ function thor($action, $string) {
// hash
$key = hash('sha256', $secret_key);

// iv - método de criptografia AES-256-CBC espera 16 bytes - senão você receberá um aviso
// iv - AES-256-CBC encryption method expects 16 bytes - otherwise you will receive a warning
$iv = substr(hash('sha256', $secret_iv), 0, 16);
if ( $action == 'encode' ) {
$output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
Expand Down
4 changes: 2 additions & 2 deletions serie_play.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9 video-embed-box">

<?php if($exts == 'avi' || $exts == 'mkv') { ?>
<?php if($exts == 'xxx') { ?>
<center><br><br>
<h4><?php echo ERROR_FORMATO_VIDEO; ?>: <?php echo $exts; ?></h4>
<br><br>
Expand Down Expand Up @@ -404,4 +404,4 @@ function() {
});
</script>
</body>
</html>
</html>