css pipe seperated menu

<ul id=”footer-navigation”>
<li><a href=”#”>Top</a></li>
<li><a href=”#”>Valid XHTML</a></li>
<li><a href=”#”>Valid CSS</a></li>
<li><a href=”#”>Get Firefox</a></li>
</ul>

#footer-navigation {
margin-left: 0;
padding-left: 0;
list-style-type: none;
}

#footer-navigation li {
display: inline;
}

#footer-navigation li:after {
content: ” | “;
}

#footer-navigation li:last-child:after {
content: “”;
}

XML over POST with php

$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL, “http://websiteURL”);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, “XML=”.$xmlcontent.”&password=”.$password.”&etc=etc”);
$content=curl_exec($ch);

List all hooked functions

10. List All Hooked Functions

The problem.
When things go wrong, listing all hooked functions can be very useful for debugging.

The solution.
As with the others, this code has to be pasted in your functions.php file. When you have finished debugging, don’t forget to remove the code from functions.php, or else the debugging message will continue to appear.

function list_hooked_functions($tag=false){
global $wp_filter;
if ($tag) {
$hook[$tag]=$wp_filter[$tag];
if (!is_array($hook[$tag])) {
trigger_error(“Nothing found for ‘$tag’ hook”, E_USER_WARNING);
return;
}
}
else {
$hook=$wp_filter;
ksort($hook);
}
echo ‘<pre>’;
foreach($hook as $tag => $priority){
echo “<br />&gt;&gt;&gt;&gt;&gt;\t<strong>$tag</strong><br />”;
ksort($priority);
foreach($priority as $priority => $function){
echo $priority;
foreach($function as $name => $properties) echo “\t$name<br />”;
}
}
echo ‘</pre>’;
return;
}
Once that’s done, simply call the list_hooked_functions() function, as shown below, to print all hooked WordPress functions on your screen.

1
list_hooked_functions();
Code explanation.
If no hook name is provided to the function as an argument, then hooks are printed to the screen using the global variable $wp_filter. Alternatively, you can list one particular hook by passing its name as an attribute:

list_hooked_functions(‘wp_head’);

Create joomla 1.5 admin

This is something I do often enough to not want to google it ..

Step 1
Create the new Joomla! User

REPLACE INTO `jos_users` (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`, `gid`, `registerDate`, `lastvisitDate`, `activation`, `params`) VALUES (’60’, ‘Admin2’, ‘admin2’, ‘user@usersemailaddress’, ‘21232f297a57a5a743894a0e4a801fc3:abcdefghijklmnopqrstuvwxyz012345’, ‘Super Administrator’, ‘0’, ‘0’, ’25’, ‘2000-01-01 00:00:00’, ‘0000-00-00 00:00:00’, ”, ”);
The code above creates a new user with ID number 60 and the name set to admin2.
The password here needs to be changed to an MD5 hash that you know Make an MD% hash here http://www.miraclesalad.com/webtools/md5.php

Step 2
Create an ARO object out of the new Joomla! user

REPLACE INTO `jos_core_acl_aro` (`id`, `section_value`, `value`, `order_value`, `name`, `hidden`) VALUES (‘8’, ‘users’, ’60’, ‘0’, ‘Admin2’, ‘0’);
This creates an ARO object with ID number 8. Note that the ‘name’ field must match the ‘name’ field in Step 1

Step 3
Next you will need to map this ARO object to the Super Administrator group, which by default is group ID 25:

REPLACE INTO `jos_core_acl_groups_aro_map` (`group_id`, `section_value`, `aro_id`) VALUES (’25’, ”, ‘8’);

Thanks ProjectAmplify