-
PROHARDVER!
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
- BESZÁMÍTÁS! GIGABYTE B450 R7 5700X 32GB DDR4 512GB SSD RX 6700XT 8GB COOLER MASTER CMP 510 CM 750W
- Samsung Galaxy S23 Ultra 5G 256GB, Kártyafüggetlen, 1 Év Garanciával
- LG 27GR93U-B - 27" IPS - UHD 4K - 144Hz 1ms - NVIDIA G-Sync - FreeSync Premium - HDR 400
- Eredeti DELL 240W töltők (LA240PM160)
- Telefon felvásárlás!! iPhone 16/iPhone 16 Plus/iPhone 16 Pro/iPhone 16 Pro Max
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest