Ignore:
Timestamp:
01/16/10 23:37:58 (11 years ago)
Author:
alno
Message:

WebIf:

  • Shutdown Button implemented. This Button kills the Oscam. If you use a restart script you can use it as restart. However, Shutdown only ends oscam.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.h

    r1244 r1258  
    77#define AUTHNONCEVALIDSECS 15
    88#define MAXGETPARAMS 100
     9#define SHUTDOWNREFRESH 30
    910
    1011#define CSS "\
     
    3031TABLE.menu{background-color:black; align:center; font-size: 10px;}\n\
    3132TABLE.menu TD{border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial;}\n\
     33TABLE.menu TD.shutdown{border:2px outset lightgrey; background-color:orange; font-color:black; font-family: Arial;}\n\
    3234TD.menu {border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial; font-size:11px;}\n\
    3335TABLE.configmenu{background-color:black; align:center; font-size: 10px;}\n\
     
    5557
    5658#define TPLREFRESH "\
    57 <meta http-equiv=\"refresh\" content=\"##REFRESHTIME##\"; URL=/status.html\" />\n"
     59<meta http-equiv=\"refresh\" content=\"##REFRESHTIME##; URL=/status.html\" />\n"
    5860
    5961#define TPLMENU "\
     
    6567      <TD CLASS=\"menu\"><A HREF=\"userconfig.html\">USERS</TD>\n\
    6668      <TD CLASS=\"menu\"><A HREF=\"services.html\">SERVICES</TD>\n\
     69      <TD CLASS=\"shutdown\"><A HREF=\"shutdown.html\">SHUTDOWN</TD>\n\
    6770    </TR>\n\
    6871  </TABLE>"
     
    855858##TPLFOOTER##"
    856859
     860#define TPLSHUTDOWN "##TPLHEADER##\
     861##TPLMENU##\n\
     862<br><b>Oscam Shutdown - Try Reconnect in ##SECONDS## Seconds</b><br>\n\
     863##TPLFOOTER##"
     864
    857865enum refreshtypes {REFR_ACCOUNTS, REFR_READERS, REFR_SERVER, REFR_ANTICASC, REFR_SERVICES};
    858866
     
    902910    "SERVICECONFIGLISTBIT",
    903911    "SERVICECONFIGSIDBIT",
    904     "SERVICEEDIT"
     912    "SERVICEEDIT",
     913    "SHUTDOWN"
    905914#ifdef HAVE_DVBAPI
    906915    ,"CONFIGDVBAPI"
     
    966975    TPLSERVICECONFIGLISTBIT,
    967976    TPLSERVICECONFIGSIDBIT,
    968     TPLSERVICEEDIT
     977    TPLSERVICEEDIT,
     978    TPLSHUTDOWN
    969979#ifdef HAVE_DVBAPI
    970980    ,TPLCONFIGDVBAPI
Note: See TracChangeset for help on using the changeset viewer.