CCcam Web Manager

Status
Not open for further replies.

juli13

Staff member
Administrator
Messages
10,198
CCcam Web Manager V.1.0

CCcam Web Manager allows you to handle almost any file cccam.cfg web.

Insert-Modify Delete Flin
Insert-Modify Delete nline
Insert-Modify Delete Cline
Add-card limits
Add-limits for viewing schedules

Installation Note :

1. Put all file in your webserver
2. Set permission to admin directory to 777
3. create database cccam with phpmyadmin
4. import cccam.sql
5. modify config.inc.php whit your username, password and database name to connect correctly
6. modify load_cccam_config and change your cccam name , and path
7. put load_cccam_config script into /usr/bin
8. set execute permission to file chmod 755 /usr/bin/load_cccam_config
9. add a cronjob to execute every night at 04:00 like this:
nano /etc/crontab
0 4 * * * root /usr/bin/load_cccam_config

With this manager you can manage accounts in a simple, do not worry about the time, does everything automatically!


Known bugs:

If you remove all flin that match a user no longer appears on the user!
to overcome this problem simply add a flin associated to the user.
 

juli13

Staff member
Administrator
Messages
10,198
CCcam Web Manager V 1.0.5

CCcam Web Manager V 1.0.5

02/10/2010

Code:
[B]What is new:[/B]

Added Updating via FTP client (Upload CCcam.cfg to client)
Added management of multiple servers for each client
Other small improvements


[B]Installazione software[/B]

apt-get install apache2 php5 php-cli phpmyadmin rar zip mc mysql-server


[B]Installazione cccam web manager :[/B]

1. Download and copy the folder cccam-cms-new in / var / www
2. Create the database "cccam" with phpmyadmin.
3. Import cccam.sql.
4. Edit config.inc.php with your details to access the database.
5. Edit the file "variable" in the scripts folder and change the names of your emu.
6. give them execute permission;

 chown www-data: www-data-R / var / www / CCcam-cms-new / *
 chmod 755 / var / www / CCcam-cms-new / scripts / *

7. Add to sudoer file the string:
        executed by the shell:
        visudo
        and add:

 www-data ALL = (ALL) NOPASSWD: / var / www / CCcam-cms-new / scripts / *

12. Go to your domain / ip (http://www.miosito.tdl/cccam-cms-new)
    Default Administrator Login:
        Username: admin
        Password: admin
 

juli13

Staff member
Administrator
Messages
10,198
CCcam Web Manager V 1.0.7

What is new:
  • Aggiunto Gestione delle emu Monitor
  • Aggiunto dal personalizzati gestione script manager
Code:
[B]
Info:[/B]


################################################## ###################################
# # Script #
################################################## ###################################

load_cccam_config

1. Farm CCcam.x86
2. CONTROL se sono delle those F-Line scadute, se le trova la disabilita F-Line
3. Crea il file CCcam.cfg
4. copia del giorno precedente CCcam.cfg e lo rinomina
5. copia il file CCcam.cfg generator in automatico in / var / etc
6. permessi setta and a 755
7. riavvia con il nuovo CCcam.x86 CCcam.cfg


enable_auto_update

1. aggiunge cronjob alle da eseguire il file:
0 4 * * * root / var / www / CCcam-cms-new / script / load_cccam_config


disable_auto_update

1. Dalle rimuove cronjob da eseguire il file:
0 4 * * * root / var / www / CCcam-cms-new / script / load_cccam_config



Problemi Conosciuti:

Quando tutte le is cancell flin degli utenti nella list visualizzato non viene l'utente.
Soluzone, aggiungere una flin all'utente associate.

Quando un utente cerca is con il il il manager del search riusltato delle delle somme e sballato flin!
[B]
Installare Script UpdateFtpClient "[/B]

1. Andare nel menu Cam Control poi su config.
2. Add Plugin Script:
3. Script Name: UpdateFtpClient
Script Description: Start CCcam.cfg Client Update
Image Action Script: launch
Script Code:

#!/bin/bash
cd /var/www/cccam-cms-new/admin
sleep 1
php -q cron-client-cccam-update.php
sleep 1
cd /var/www/cccam-cms-new/script
./client_update

4. Click Add Script Plugin
Finish

Nel pannello Emu Monitor Trovate il pulsante per l'aggiornamento dei avviare client!
 

juli13

Staff member
Administrator
Messages
10,198
CCcam(Oscam) Web Manager 2.0 (Tools) update of 05/09/2011

managerz.png


1. Copy the contents of the time the user's home.

2. Edit the config file and set:

root_pass = "your_root_password" -> Set the root password
user = "development" -> Putting the user of linux
pass = "password" -> Set the user password linux
group = "development" -> Set the time the user group

Before you run the installer installed unrar:

sudo apt-get install unrar

3. Run the installer as root.


4. Open the browser and go to http://your_ip_or_your_domain/manager
Authenticate:
User: root
Pass: root

5. First thing to do inside the manager has set the ip of the server, then:
- Menu server manager -> edit and set the correct ip of the manager.

6. Set the server cccam config, then:
- CCcam Menu Manager -> Setup -> edit and add what is right for you.

Let the configuration oscam:

Before completing oscam is necessary to insert in the config manager, so:

- OSCAM Menu Manager -> Config Manager -> Click on the + symbol to add the config, remember to set the device id already Smargo for the moment the manager you can not edit and you have to do it by hand.
- Just added to bring the menu config compile oscam:

Oscam Name: tvsat
Revision: 3146 -> there by default if the product versions you want to compile the latest stable versions of the review makes you want to
Pkg path: / usr / local / etc / tvsat -> is so important to always put the name of the folder will be created which will then tvsat config
Webif: yes -> If you want to enable webif
SmartReader: yes -> If you want to enable USB natively
Pcsc: no -> If you want to enable pcsc
Select Config File: tvsat -> Select config that is right for you
Add On Emu Panel: -> If selected, adds nem Emu Menu Manager -> Emu Monitor button to start and stop the emu
Compile On Server: 10.10.10.155 -> Select does not work if not always

If everything is right now going in the Emu you monitor the status online and offline.
Just below you can start or stop the cam.


Important to change the root password of the manager as follows:

- Go http://youserver/phpmyadmin
- Logging
- The table tb_manager_user
- Edit the user root and set in usr_password SH1 encryption and enter your new password.

Code:
Source code


#!/bin/bash
. config

install(){
clear 
echo " "
echo "Please wait the Web Manger install process start . . ."
echo " "
echo "Update system, please wait . . ."
sleep 2
clear
apt-get -y update 
apt-get -y upgrade
sleep 2
clear
echo " "
echo "Installing . . ."
echo " "
sleep 2
apt-get -y install apache2 php5 mysql-server phpmyadmin openssh-server tofrodos php5-cli mc cvs subversion autoconf libccid automake libtool gettext make tar bzip2 gzip patch ncurses-bin gcc g++ flex bison pkg-config wget libpng3 zlib1g-dev libssl-dev libssl0.9.8 libpcsclite1 libpcsclite-dev libusb-dev rrdtool cmake
sleep 2
reldir=`dirname $0`
cd $reldir
directory=`pwd`
root="${directory}"
filedir="${directory}/file"
tmpdir="${directory}/file/tmp"
cd $filedir
clear
tar xjvf libusb-1.0.8.tar.bz2 -C $tmpdir
cd $tmpdir/libusb-1.0.8
./configure --enable-shared=no
make
make install
cd $root
clear
sleep 1
cd $filedir
cp CCcam.x86 /usr/local/bin
chmod 755 /usr/local/bin/CCcam.x86
mkdir /var/www/manager
unrar x manager.rar /var/www
sleep 2
echo "Set Permission . . ."
sleep 2
mkdir /var/etc
chmod -R 755 /var/www/manager 
chmod -R 777 /var/www/manager/cccam
chmod -R 777 /var/www/manager/graph
chmod -R 777 /var/www/manager/rrd
chmod -R 777 /var/www/manager/tmp
chmod -R 777 /var/www/manager/admin/tmp
chmod -R 777 /var/www/manager/cfg
chmod -R 777 /var/www/manager/script
chmod -R 777 /usr/local/etc
chmod -R 777 /usr/local/bin
chmod -R 777 /var/etc
chown -R $user:$group /var/www/manager
chown -R $user:$group /usr/local/etc/
chown -R $user:$group /usr/local/bin/
chown -R $user:$group /var/etc/

echo "www-data ALL=(ALL) NOPASSWD:/var/www/manager/script/*
www-data ALL=(ALL) NOPASSWD:/bin/chown
www-data ALL=(ALL) NOPASSWD:/bin/chmod
www-data ALL=(ALL) NOPASSWD:/bin/rm
www-data ALL=(ALL) NOPASSWD:/usr/bin/rrdtool
www-data ALL=(ALL) NOPASSWD:/bin/touch" **** /etc/sudoers
chmod 440 /etc/sudoers

echo "0 4 * * *       root    $script_dir/check_fline_restart_cccam" **** /etc/crontab


### installin database

mysql -u$root_user -p$root_pass<<EOFMYSQL
CREATE USER '$user'@'$db_host' IDENTIFIED BY '$pass';
GRANT USAGE ON * . * TO '$user'@'$db_host' IDENTIFIED BY '$pass';
CREATE DATABASE $db_name;
GRANT ALL PRIVILEGES ON \`$db_name\` . * TO '$user'@'$db_host';
EOFMYSQL
cd ..
mysql -u$root_user -p$root_pass -h$db_host $db_name < manager_db.sql;

## Add default user to manager



## Make Config.inc.php

touch /var/www/manager/config.inc.php
echo "<?php
\$db_name = \"$db_name\";
\$db_host = \"$db_host\";
\$db_user = \"$db_user\";
\$db_pass = \"$db_pass\";

\$conn = mysql_connect( \$db_host, \$db_user, \$db_pass ) or die (\"Errore nella connessione al database, verifica nel file config.inc.php se tutto é corretto : \" . mysql_error());

mysql_select_db(\$db_name, \$conn) or die (\"Errore nel selezionare il database : \" . mysql_error());

// Change this value

// Define user and group

\$unix_user  = \"$user\";
\$unix_group = \"$group\";

// Default 1 for master server else for slave put in sequence 2 , 3 , 4 ... ecc
// You find server id from manager in the menu Server Manager
// 1 = Master Server
// 2 = Slave Server 1
// 3 = Slave Server 2
// x = for more server

\$server_ident = \"$server_ident\";

///////////////////////////////////////////////////

// Dir For Put Script

\$script_dir = \"$script_dir\";

// Dir to output CCcam.cfg Client

\$cfg_dir = \"$cfg_dir\";

// tmp folder

\$tmp_folder = \"$tmp_folder\";

// Default Config Path for oscam files

\$oscam_config = \"$oscam_config\";

// Dir of cccamphpinfo stats

\$cccam_server_info = \"$cccam_server_info\";

\$crond_path = \"$crond_path\";



// Define path for rddtools database

\$rrd_path_db = \"$rrd_path_db\";
\$rrd_path_graph = \"$rrd_path_graph\";

// Change default C Line want emu and uphops value

\$wantemu = \"$wantemu\";
\$uphops = \"$uphops\";
?>" > /var/www/manager/config.inc.php






clear
echo " "
echo "Install Complete ..."
echo " "
echo "Now configure the server from http://yourip/manager"
echo "User : root"
echo "Pass : root"
echo " "
echo "Change root password from phpmyadmin in tb_manager_user --> usr_password, set sh1 encription"
echo " "
exit 1
}


first(){
clear
echo "Welcome To CCcam Web Manager Installer"
echo "To continue please change value in the config file."
echo " "
echo -ne "Install ? : ( y|n ) "
	read install
		case $install in
				y) install;;
				n) exit 1;;
		esac
}

first

config


Code:
Source code



	

#!/bin/bash

## System account info
## For configure db mysql

root_user="root"
root_pass="your_root_password"

## User Account UNIX
## For owner file and database user and create

user="sviluppo"
pass="password"
group="sviluppo"

#############
# DB Config #
#############

db_name="manager"
db_host="localhost"
db_user=$user
db_pass=$pass

# Default 1 for master server else for slave put in sequence 2 , 3 , 4 ... ecc
# You find server id from manager in the menu Server Manager
# 1 = Master Server
# 2 = Slave Server 1
# 3 = Slave Server 2
# x = for more server


server_ident="1"
script_dir="/var/www/manager/script"
cfg_dir="/var/www/manager/cfg"
tmp_folder="/var/www/manager/tmp"
oscam_config="/usr/local/etc"
cccam_server_info="/var/www/cccam/localhost/download"
crond_path="/etc/cron.d"
rrd_path_db="/var/www/manager/rrd" 
rrd_path_graph="/var/www/manager/graph"
wantemu="no"
uphops="{ 0:0:2 }"
 
Status
Not open for further replies.
Top