Categories
Uncategorized

Showing positions in Joomla

Ever wondered how to tell where the positions are in a Joomla template?

It's simpler than you might think.

Just add ?tp=1 to the end of your URL, as in

http://www.mysite.ca/?tp=1

[ad]

Categories
Joomla!

Removing 'Welcome to the Frontpage' from Joomla

A steady frustration for new Joomla users is the "Welcome to the Frontpage" text that appears on the site.

To remove this, go to Menu Manager (or the "Menu" Dropdown menu in your site's Control Panel), select Main Menu, then click on the Home link.

Click on Parameters (System) and you'll see Page Title controls which will allow you to change or suppress the page title.

There are two controls to be concerned with here:

  1. Page Title: This sets the page title, which may appear on the page itself (This causes the most frustration) but also appears in the title bar.  Typically you don't want to remove this as you want your page title to appear in the titlebar of the browser
  2. Show Page Title: This determines whether the page title appears on the page itself.
Categories
MySQL PHP

Prevent SQL Injection attacks in PHP and MySQL

Place this code in your database connect include, just before the database connection is made.

This ensures that SQL injection attempts are handled before the database is opened.

By doing it up front like this, the input is already escaped and we don't have to deal with it in our other scripts as we use input data.

1
2
3
4
5
6
7
8
9
10
11
12
// ~~~~~~~~~~~~~~~~~~~~ SECURE ALL INPUT FROM SQL INJECTION ~~~~~~~~~~~~~~~~~~~~~~~~ //
// --- escape special characters in input data to prevent SQL injection attacks ---- //
 
// Prevent SQL Injection attacks in POST vars
foreach ($_POST as $key => $value) {
  $_POST[$key] = mysql_real_escape_string($value);
}
// Prevent SQL Injection attacks in GET vars
foreach ($_GET as $key => $value) {
  $_GET[$key] = mysql_real_escape_string($value);
}
// ~~~~~~~~~~~~~~~~~~~ /secure all input from sql injection ~~~~~~~~~~~~~~~~~~~~~~~~ //
Categories
Uncategorized

Windows cannot use this hardware device because it has been prepared for "safe removal"

This error can arise when you try to safely remove a memory chip from an internal reader by right clicking the drive and selecting "Safely Remove".

Resolve the error by rebooting the machine, the reader should be reset at startup.

Now follow these steps:

  • Go into Computer Management,
  • Expand Storage, select Disk Management,
  • In the lower center pane, right-click and select Properties to view the property sheet for the card reader's drive letter,
  • Click the Policies tab and ensure that Optimize for quick removal is selected.

This disables write caching for the card slot, ensuring that no cached information can be lost when you remove the card.

Categories
Uncategorized

Unlocking PDF files

Some .pdf files come with restrictions on printing etc.

Without comment, this site releases those restrictions.

FreeMyPDF.com