Ubuntu apache php PirateBox January 23, 2013 08:03AM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 23, 2013 09:15AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Ubuntu apache php PirateBox January 23, 2013 06:17PM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 24, 2013 04:28PM |
Registered: 11 years ago Posts: 10 |
I was thinking that maybe if I used wpa and gave the password out in the ssid that might help?Language: PHP##### hostapd configuration file ############################################## # Empty lines and lines starting with # are ignored # AP netdevice name (without ';ap'; postfix, i.e., wlan0 uses wlan0ap for # management frames); ath0 for madwifi interface=wlan0 driver=nl80211 # hostapd event logger configuration # Levels (minimum value for logged events): # 0 = verbose debugging # 1 = debugging # 2 = informational messages # 3 = notification # 4 = warning # logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 # Dump file for state information (on SIGUSR1) dump_file=/tmp/hostapd.dump ##### IEEE 802.11 related configuration ####################################### # SSID to be used in IEEE 802.11 management frames ssid=PirateBox Free # Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g, # Default: IEEE 802.11b hw_mode=g # Channel number (IEEE 802.11) # (default: 0, i.e., not set, used with channel_policy=2) channel=1 # Beacon interval in kus (1.024 ms) (default: 100; range 15..65535) beacon_int=100 # DTIM (delivery trafic information message) period (range 1..255): # number of beacons between DTIMs (1 = every beacon includes DTIM element) # (default: 2) dtim_period=2 # Maximum number of stations allowed in station table. New stations will be # rejected after the station table is full. IEEE 802.11 has a limit of 2007 # different association IDs, so this number should not be larger than that. # (default: 2007) max_num_sta=255 # RTS/CTS threshold; 2347 = disabled (default); range 0..2347 # If this field is not included in hostapd.conf, hostapd will not control # RTS threshold and ';iwconfig wlan# rts <val>'; can be used to set it. rts_threshold=2347 # Fragmentation threshold; 2346 = disabled (default); range 256..2346 # If this field is not included in hostapd.conf, hostapd will not control # fragmentation threshold and ';iwconfig wlan# frag <val>'; can be used to set # it. fragm_threshold=2346 ##### IEEE 802.1X-2004 related configuration ################################## # Require IEEE 802.1X authorization ieee8021x=0 ##### WPA/IEEE 802.11i configuration ########################################## # Enable WPA. Setting this variable configures the AP to require WPA (either # WPA-PSK or WPA-RADIUS/EAP based on other configuration). For WPA-PSK, either # wpa_psk or wpa_passphrase must be set and wpa_key_mgmt must include WPA-PSK. # For WPA-RADIUS/EAP, ieee8021x must be set (but without dynamic WEP keys), # RADIUS authentication server must be configured, and WPA-EAP must be included # in wpa_key_mgmt. # This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0) # and/or WPA2 (full IEEE 802.11i/RSN): # bit0 = WPA # bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled) wpa=0 device_name=PirateBox Free # Friendly Name (required for UPnP) # Short description for end use. Should be less than 64 characters. friendly_name=PirateBox Free
Re: Ubuntu apache php PirateBox January 24, 2013 05:17PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Ubuntu apache php PirateBox January 24, 2013 05:35PM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 24, 2013 05:42PM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 24, 2013 06:43PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Ubuntu apache php PirateBox January 24, 2013 06:54PM |
Registered: 12 years ago Posts: 167 |
Re: Ubuntu apache php PirateBox January 24, 2013 07:01PM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 24, 2013 07:27PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Ubuntu apache php PirateBox January 24, 2013 10:50PM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 25, 2013 06:42AM |
Admin Registered: 13 years ago Posts: 4,680 |
/etc/init.d/lighttpd stop update-rc.d lighttpd remove
Re: Ubuntu apache php PirateBox January 26, 2013 07:46AM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox January 26, 2013 08:53AM |
Registered: 11 years ago Posts: 10 |
Re: Ubuntu apache php PirateBox March 31, 2013 03:31PM |
Registered: 10 years ago Posts: 6 |
Re: Ubuntu apache php PirateBox March 31, 2013 03:46PM |
Registered: 11 years ago Posts: 10 |
######### Error Documents ErrorDocument 404 /errors/404.php ErrorDocument 403 /errors/404.php ErrorDocument 500 /errors/404.php ######## End Error Documentserror page 404.php: - the actual redirection
In each folder...movie...series... index.php:Language: PHP<?php header( ';Location: http://192.168.1.105'; ) ; ?>
I will have to fire up the router and get the code/settings from there.Language: PHP<FORM><INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="history.go(-1)"></FORM> <?php echo ';<div style="overflow: hidden;" class="scroll-x tiles">';; echo ';<ul>';; function listFolderFiles($dir,$exclude){ $ffs = scandir($dir); //echo ';<div>';; foreach($ffs as $ff){ if(is_array($exclude) and !in_array($ff,$exclude)){ if($ff != ';.'; && $ff != ';..';&& strtolower(substr($ff, -4)) != ".jpg"){ if(!is_dir($dir.';/';.$ff)){ //This shows the main links to the files echo ';<li><a target="_blank" href="';.ltrim($dir.';/';.$ff,';./';).';">';.$ff.';</a>';; //this shows the folder images/// //echo ';<li><a href="';.ltrim($dir.';/';.$ff,';./';).';"><img src="';.ltrim($dir.';./';).';folder.jpg"/></a></li>';; } else { // This shows the folders/// //echo ';<li>';.$ff.';</li>';; } ///Main listing - this is what displays the links if(is_dir($dir.';/';.$ff)) listFolderFiles($dir.';/';.$ff,$exclude); } } } //echo ';</ul>';; } listFolderFiles(';.';,array(';Thumbs.db';,';index.php';,';src';,';1 - New';)); echo ';</ul>';; echo ';</div>';; ?>