Keresés

Hirdetés

Új hozzászólás Aktív témák

  • feco93

    tag

    válasz feco93 #15271 üzenetére

    Megcsináltam viszont valamit nagyon el rontottam s nem is működik.
    A template fülön a Create shell script based webpage to www_suste beírtam amiket írtál létre is hozta a Mypage mappát és benne a is van a printer restart lap.
    Ezt a fájlt meg kerestem a webcommanderben és így szereztettem át.

    #!/bin/sh
    ###902MYPAGE;./nyomtato_restart.cgi;asd;nyomtato reset;asd;asd
    web_ui(){
    $(sel ewp "$(ls /etc/init.d|grep uhttpd_ |grep -v uhttpd_suste)") `btn ewpdˇDelete`$b$b<!/td>$tbl2$tbl1<!td><!h3>WEB FILE SERVER $b$b Link Own folder to \"LuCI\" or custom web folder: $b $(sel LOF "$(ls /mnt|awk '{print "/mnt/"$1}')$cm") -link-> $(sel LTF "$(ls /|awk '/www/{print "/"$1}')$cm") `btn "Link"`<!/h3>(Call: 'https://ddns_or_ip/my_folder' - NO PASSWORD!)$b$b<!/td>$tbl2"
    cat <!<! __EOF__
    $tbl1<!td>
    <!h3>Template Function: `btn "button_commandˇButton Name"`<!/h3>
    <!i>-Funkció leírása --> Gomb név<!/i>
    $b$b
    <!textarea $ro_ta>
    `dash 13`
    !Edit these!:
    `dash 13`

    "nyomtato_restart.cgi" = script file name: 1.=in www folder, 2.= in www_9093 folder, (99 = position on index webpage),

    "nyomtato reset" = webpage name (on the webpage): 1.= in index webpage, 2.= template webpage
    "Minta cím",

    "Tab" = webpage tab name (on the webpage),

    "web_ui()" = don't edit title!
    "web_ui()" {} = it's responsible for show html webpage,

    "Template Function:" = description of task to be executed (on the webpage),
    "Funkció leírása",

    "button_command" = the command that the button launches (in the script): 1.= button function, 2.= function call,

    "Button Name" = button name (on the webpage)
    "Gomb név",

    "test_function()" = thes function called by "button_command" (in the script),
    "test_function()" {} = executed script

    "Install to 9093:" = don't edit title!

    "install()" = don't edit title!
    "install()" {} = don't edit!

    web_ui(){
    cat <!<! __EOF__
    $tbl1<!td>$b
    $(btn "buttonˇp910nd-restart")$b$b
    <!/td>$tbl2
    __EOF__
    }
    . /*/cgi-bin/bin/variables
    header
    case "$ACTION" in
    "button")/etc/init.d/p910nd restart;web_ui;;
    *)web_ui;;
    esac
    footer

    S ha megnyitom a 9092/cgi-bin/print-restart.cgi akkor ezt írja:
    Bad Gateway

    The process did not produce any respons

    Viszont olyan jól sikerült az átállítás hogyha csak annyit írok be hogy ip:9093 vagy ip:9092 akkor nem hozza be a fő oldalt. Esetleg ötlet hogy mit rontottam el? Vagy tud valaki küldeni másolatot az index.html fájlról?

Új hozzászólás Aktív témák