views:

38

answers:

4

I manage a large number of websites under Wordpress and I'd like to create a sort of control panel on which I would be able to see a list of all sites and the WP version they are running on.

How would you do that?

I should mention that the websites are hosted on different servers.

A: 

For each site, read the generator meta tag.

bogdanvursu
Well not really, I usually remove this tag for security. I guess I'd have to connect to the DB to retrieve the version n°
mike23
+1  A: 

You have to create a db with all databases and they passwords and servers (to connect to the other servers) and retrieve the version, or create a plugin to wordpress that prints the version only if you send some password from get or post (for security reasons), and install it into all wordpress systems, then you only have to read the plugin url. (this is usefull if you don't have direct access to the mysql, this happens on some hosting companys that have the mysql db on a closed network. )

If i were you, i would opt to choose my secound option (bolded)

EDIT: Please in the plugin use Hash protection, or something like that:

Your Platform Side:

<?php
$mypass="test123";
$version = file_get_contents("http://www.example.com/yourpluginurl?pass=".md5($mypass+date("d"))); 
if(isset($version) && $version !== false){
    //your code here
}

Plugin Side:

<?php
$mypass="test123";
if(md5($mypass.date("d")) == $_GET['pass']){
    //Get version here
}
?>
CuSS
This sounds great, I'm going to do that. Thanks.
mike23
Please, use an hash password like, read my EDIT.
CuSS
A: 

You could also FTP in and get the version from wp-includes/version.php. But CuSS' suggestion of a plugin is the best way to go, IMO.

Dennis Pedrie
A: 

Much more secure to use Curl or TFTP to query the file version.php at serverroot/wp-includes/version.php No need to call the database or install a plugin. You will need a local database of all logins/passwords.

songdogtech
That option is really time consumming! The password coulb be a hash, so he doesn't need to store all passwords. :)
CuSS