Hi Guys I recently purchased the Cell C HSDPA USB dongle with 24Gb of data for R1499. Here is how you get it to work on Ubuntu 10.04 LTS Plug in your USB dongle. Install "usb_modeswitch" (sudo apt-get install usb_modeswitch). Run "sudo updatedb" Locate "usb_modeswitch.conf" the file should be in /etc/usb_modeswitch.conf and add code below to the end of the file ######################################################## # Huawei E1752 # # Contributor: DefaultVendor= 0x12d1 DefaultProduct= 0x1446 TargetVendor= 0x12d1 TargetProduct= 0x1001 MessageEndpoint= 0x01 MessageContent= "55534243000000000000000000000011060000000000000000000000000000" ######################################################## Run "sudo usb_modeswitch" This should say found one(1) device in the terminal Then go System->Preferences->Network Connections and click on the "Mobile Broadband" tab. Click "Add". Check under "Create a connection fo...
I had to create a custom form recently for my website in Wordpress and had to ensure I cleaned up the input to prevent SQL injection and SPAM. I could use the Contact Form 7 plugin but I had to format the input before sending via email. I used the strip_tags() and trim() PHP functions to sanitize the input $name = strip_tags(trim($name)); So if the input in the form field for name was: <a href="www.scam.com" target="_blank"> WIN</a> The output after using these two functions would just be WIN The trim() function cleared the whitespace before the word "win" and the HTML or PHP tags were removed completely
It's recommended to disable the File Editor option under Appearances in your Wordpress Admin area by adding these lines to your wp-config.php file /** Disable File Editting within Wordpress */ define('DISALLOW_FILE_EDIT', true);
Comments
Post a Comment