Answer the question
In order to leave comments, you need to log in
How to open LAN ports in Linux instead of IPTV (DLINK router)?
Hello everybody!
I have a DLINK router, in which 3 out of 4 ports are configured as a bridge for IPTV (as I understood from the forums, it is wired in the firmware). There were no firmware for it (more precisely, one was found, but there is no Internet with it), attempts to upload new configs also did not help, as a result, I got inside by changing the root password.
Inside was Linux 2.6.34.8-BL2.1.10.1, web-muzzle - Mbedthis-Appweb After looking at the Appweb
pages, which are not in the router menu, I found a page with ports:
Port1: Route Mode
Port2: Bridge Mode
Port3: Bridge Mode
Port4: Bridge Mode
But there is no page managing ports. IFMGR_CONFIG_LAN_PORT_MODE_ETH_0=1
IFMGR_CONFIG_LAN_PORT_MODE_ETH_1=0
IFMGR_CONFIG_LAN_PORT_MODE_ETH_2=0
IFMGR_CONFIG_LAN_PORT_MODE_ETH_3=0
If all interfaces are set to 1, after uploading the config and rebooting the router, ETH_2,3,4 return to 0. Therefore, I decided that the system controls this from the inside. Unfortunately, with Linux, I'm on a big YOU, and I can not understand where the interfaces are edited. udhcpd_enable 1
interface lan0
start 192.168.0.2
end 192.168.0.200
... options ..
Answer the question
In order to leave comments, you need to log in
You won't change anything. The firmware is protected. Change to alternative firmware.
You have an interesting check for existence, you compare the id of the news with the number of all articles :)
$query = mysql_query("SELECT COUNT(*) FROM news WHERE id='".$get_news."'" ");
and check like this if( $row[0] > 0)
But why do you need it, you can check the result of this query directly:
instead of doing a separate COUNT(*) query, it makes no sense.And
I strongly advise you to use PDO.
You always need to filter parameters. You have a lot of SQL injections here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question