Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

How-To OScamInfoPHP

    Nobody is reading this thread right now.
Status
Für weitere Antworten geschlossen.

meister85

Best Member
Boardveteran
Registriert
21. September 2009
Beiträge
7.781
Reaktionspunkte
4.999
Punkte
373
Ciao Ragazzi,

qui vi voglio spiegare come installare la OScamInfoPHP.

Vi servono questi pacchetti:

Code:
apt-get update && apt-get install php5 curl

Per prima dovete scraricare il pacchetto --> Link ist nicht mehr aktiv.

Ora dobbiamo creare una cartella oscaminfo in /var/www/

Code:
mkdir /var/www/oscaminfo

Code:
chmod 775 /var/www/oscaminfo

Ora copiamo tramite FTP tutte le files del Pacchetto scaricato in /var/www/oscaminfo

Ci sono tre files che dovete modificare:

- config.global.php
- config.oscam.php
- config.user.php

Iniziamo con la config.global.php. Dovete modificare la password che vi serve per il panello Admin!

Code:
nano /var/www/oscaminfo/config.global.php

Code:
<?php
/* Autorefresh in seconds for OSCam Info */
DEFINE('REFRESH_SECS',30);

/* Language de=german / en=english */
DEFINE('LANGUAGE','de');

/* A custom notice in the header (empty if no message should be displayed)*/
DEFINE('CUSTOM_NOTICE','Welcome to OScam Info');

/* A custom stlye for the main grid, available are 'blue' and 'gray' */
DEFINE('OSCAM_STYLE','blue');

/* The width (in px) of the mainwindow(s), full screen size can be set with 'full' */
DEFINE('SCREEN_SIZE','1000');

/* The Adminuser */
DEFINE('ADM_USER','admin');

/* The Adminpassword */
DEFINE('ADM_PASS','[COLOR=#ff0000]password[/COLOR]');

/* Connect through proxyserver, if no proxy is needed just leave blank */
DEFINE('PROXY_URL',''); 
DEFINE('PROXY_PORT','');
DEFINE('PROXY_USER','');
DEFINE('PROXY_PASS','');

/* Lower than this percent the values will cumulated */
DEFINE('LOWER_THAN','1,5');

/* Available entries per page */
DEFINE('ENTRIES_PER_PAGE','10,20,30,40,50');

/* Default entries per page */
DEFINE('ENTRIES_PER_PAGE_DEFAULT','30');

/* Channel picons update every XX days */
DEFINE('CHANNEL_PICONS','14'); 

/* Enable logging */
DEFINE('LOG_ENABLE',false);

/* Logging path of file oscaminfophp.log */
DEFINE('LOG_PATH','/var/log');

/* Logging deep, what should be logged (comma seperared): logins,tabs,stats,search */
DEFINE('LOG_DEEP','logins,tabs,stats,search');
?>

Per salvare metti:

Code:
Strg + X

Code:
Y

Ora dobbiamo modificare la config.oscam.php. I parametri da cambiare lo marcati rossi.

Code:
nano /var/www/oscaminfo/config.oscam.php

Ci mettete cosi:

Code:
<?php
/*
  Define your OSCam Servers here. For each Server one 
  block must be defined. If you need more just dupicate 
  a block and edit the settings.

  Below you see a example with three server with the names
  Server1, Server2 and Server3
 */

  $server["Server"] = array(
                        "url"        => "[COLOR=#ff0000]192.168.0.1[/COLOR]", 
                        "port"        => "[COLOR=#ff0000]80[/COLOR]", 
                        "user"        => "[COLOR=#ff0000]USERNAME[/COLOR]",
                        "pass"        => "[COLOR=#ff0000]PASSWORT[/COLOR]",
                        "ssl"        => [COLOR=#ff0000]false[/COLOR]
                        );
?>

Queste date le prendete dalla oscam.conf:

Code:
"url" = IP del Server
"port" = httpport della oscam.conf
"user" = httpuser della oscam.conf
"pass" = httppwd della oscam.conf
"ssl" = se non usate SSL metti a false!

Per salvare metti:

Code:
Strg + X

Code:
Y

Ora ci manca solo la config.user.php. I parametri da cambiare lo marcati rossi.

Code:
nano /var/www/oscaminfo/config.user.php

Code:
<?php
/*
 Here your users must be defined. For each user must be
 one block defined. If you need more just dupicate a block
 and edit the settings.
 
 In the tabs section you have to define which tabs of OSCam Info
 the user can be access. Avaiable are: clients, readers, pairs, log
 
 In the onlyclients section you can define which conncted clients the
 user will see. You can set a unique clientname or a protocol. If you
 set a protocol all users which are using this protocol will be shown.
 To allow to see all clients just uncomment the section or delete it,
 like user bill in the example config.
 
 In the onlyreaders section you can define which conncted readers the
 user will see. You can set a unique readername or a protocol. If you
 set a protocol all readers which are using this protocol will be shown.
 To allow to see all readers just uncommend the section or delete it,
 like user bill in the example config.
 
 In the oscam section you have to define which oscam servers (defined
 in config.oscam.php) the user can access.
 
 In the sort section the default sorting can be defined after logging
 in. Possible values are: 
 identname_asc,identname_desc,country_asc,country_desc,protocol_asc,
 protocol_desc,request_asc,request_desc,ecmtime_asc,ecmtime_desc,
 loggedin_asc,loggedin_desc,lastactivity_asc,lastactivity_desc,
 connection_asc,connection_desc

 Below you see a example with three users with the usernames
 john, james and bill.

 */


$user["[COLOR=#ff0000]testuser[/COLOR]"] = array(
                 "password"    => "[COLOR=#ff0000]mypass[/COLOR]", 
                 "tabs"        => "clients,readers,pairs,log", 
//                 "onlyclients"     => "newcamd,peer1,peer2",
//                 "onlyreaders"     => "mouse,reader1",
                 "oscam"    => "Server",
                 "sort"        => ""
                 );
?>

Per salvare metti:

Code:
Strg + X

Code:
Y

Il testuser e mypass le dovete cambiare. Questi parametri vi servono per il Log-In sul OScamInfoPHP!!!

L´ultima cosa da fare e riavviare il Webserver!

Code:
/etc/init.d/apache2 restart

Per avviare l´oscamInfoPHP andate su un Browser e mettete:

/oscaminfo

Naturalmente l´IP la dovete sostituire con quella vosta ;-)




>>>>> Per domande clicca qui <<<<<
 
Zuletzt bearbeitet:
Status
Für weitere Antworten geschlossen.
Zurück
Oben