-
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
- GAMER PC : RYZEN 5 4500 / 16GB DDR4 / ASUS RX 480 8GB / WiFi / Bluetooth / 512GB M.2 SSD / 500GB HDD
- Dell Latitude 7390, 13,3" FHD IPS , I5-7300U CPU, 16GB DDR4, 512GB SSD, WIN 11, ( olvasd végig )
- Acer PREDATOR HELIOS NEO 16 / i9-14900HX / RTX 4070 (140W) / 1 TB SSD / 240HZ
- Topping A70 Pro fejhallgató erősítő
- Topping D70 Pro Octo DAC
- Csere-Beszámítás! Xbox One X 1TB Játékkonzol Olvass! Model 1787
- OLCSÓ MONITOROK
- Apple iPhone 13 128GB, Kártyafüggetlen, 1 Év Garanciával
- Bomba ár! Lenovo ThinkPad T480s - i7-8GEN I 16GB I 256GB I 14" WQHD I HDMI I Cam I W11 I Gari!
- Bomba ár! Dell Latitude E6530 - i5-3GEN I 4GB I 500GB I HDMI I 15,6" HD+ I W10 I Garancia!
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PC Trade Systems Kft.
Város: Szeged