1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies. Weitere Informationen

How-To OScamInfoPHP

Dieses Thema im Forum "Linux-Server How-To´s (Italiana)" wurde erstellt von meister85, 22. November 2012.

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. meister85
    Offline

    meister85 VIP

    Registriert:
    21. September 2009
    Beiträge:
    7.927
    Zustimmungen:
    5.229
    Punkte für Erfolge:
    113
    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 -->

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?



    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:

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?

    /oscaminfo

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




    >>>>>

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?

    <<<<<

     
    Zuletzt bearbeitet: 4. Februar 2013
    #1
    giuseppe001sub gefällt das.
Status des Themas:
Es sind keine weiteren Antworten möglich.

Diese Seite empfehlen