-
Fototrend
TP-Link WDR3600 - N600 router
Ú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
footerS ha megnyitom a 9092/cgi-bin/print-restart.cgi akkor ezt írja:
Bad GatewayThe 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
- Külső merevlemezek - USB, eSATA, FireWire HDD
- iPhone topik
- Bestbuy játékok
- Hálózati / IP kamera
- Luck Dragon: Asszociációs játék. :)
- Telekom otthoni szolgáltatások (TV, internet, telefon)
- Meghalt a Windows 10, éljen a Windows 10!
- Vicces képek
- Fejhallgató erősítő és DAC topik
- Anglia - élmények, tapasztalatok
- További aktív témák...
- BESZÁMÍTÁS! 64GB (2x32) Samsung 3200MHz DDR4 memória garanciával hibátlan működéssel
- Eladó egy oneplus 9 pro 256/12
- Okosóra felvásárlás!! Samsung Galaxy Watch 6, Samsung Galaxy Watch 7, Samsung Galaxy Watch Ultra
- BESZÁMÍTÁS! Gigabyte H170 i7 6700K 16GB DDR4 512GB SSD GTX 1080 8GB ZALMAN S2 TG A-Data 600W
- Google Pixel 10 Pro XL Moonstone Super Actua 120 Hz, Pro kamera 5 zoom 256 GB Használt,Gari
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest