html {
min-height: 100%;
height: auto;
}
body {
background:url(/images/bg-image.jpg) right bottom no-repeat;
}
html {
min-height: 100%;
height: auto;
}
body {
background:url(/images/bg-image.jpg) right bottom no-repeat;
}
http://browsersize.googlelabs.com/
<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: “”;
}
$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);
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 />>>>>>\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’);
update your_table
set your_field = trim(your_field)
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
Posted: 14 Nov 2010 07:24 AM PST
$(function() { $('#checkall').live('change', function() { var chk = $(this).attr('checked'); $(this).parent().find('li input[type="checkbox"]').attr('checked', chk); }); });
Use this from command Line
> chown -R nobody .
Don’t forget to change the owner back to the account or ftp won’t work – never good
comes from the instructions here: http://help.joomla.org/content/view/40/132/
This guy has a component that does it
http://wiki.waltercedric.com/index.php?title=SecurityImages5.0.X